diff --git a/common/sdk/src/amino/stakers.amino.ts b/common/sdk/src/amino/stakers.amino.ts index d0057a0c..fd6c43b6 100644 --- a/common/sdk/src/amino/stakers.amino.ts +++ b/common/sdk/src/amino/stakers.amino.ts @@ -73,11 +73,11 @@ export const createStakersAminoConverters = (): AminoConverters => { aminoType: "kyve/stakers/MsgClaimCommissionRewards", toAmino: (msg: MsgClaimCommissionRewards) => ({ creator: msg.creator, - amount: [...msg.amount], + amounts: [...msg.amounts], }), fromAmino: (msg): MsgClaimCommissionRewards => ({ creator: msg.creator, - amount: [...msg.amount], + amounts: [...msg.amounts], }), }, "/kyve.stakers.v1beta1.MsgJoinPool": { diff --git a/common/sdk/src/clients/lcd-client/bundles/v1beta1/query.ts b/common/sdk/src/clients/lcd-client/bundles/v1beta1/query.ts new file mode 100644 index 00000000..0bb4f655 --- /dev/null +++ b/common/sdk/src/clients/lcd-client/bundles/v1beta1/query.ts @@ -0,0 +1,14 @@ +import paramsRes from "@kyvejs/types/lcd/kyve/bundles/v1beta1/params"; + +import { AbstractKyveLCDClient } from "../../lcd-client.abstract"; + +export class BundlesModuleLCDClient extends AbstractKyveLCDClient { + constructor(restEndpoint: string) { + super(restEndpoint); + } + + async params(): Promise { + const endpoint = `/kyve/bundles/v1beta1/params`; + return await this.request(endpoint); + } +} diff --git a/common/sdk/src/clients/lcd-client/client.ts b/common/sdk/src/clients/lcd-client/client.ts index 307afe1a..eb63586e 100644 --- a/common/sdk/src/clients/lcd-client/client.ts +++ b/common/sdk/src/clients/lcd-client/client.ts @@ -1,15 +1,69 @@ -import { KyveRegistryLCDClient } from "./query/v1beta1/query"; +import { BundlesModuleLCDClient } from "./bundles/v1beta1/query"; +import { DelegationModuleLCDClient } from "./delegation/v1beta1/query"; +import { FundersModuleLCDClient } from "./funders/v1beta1/query"; +import { GlobalModuleLCDClient } from "./global/v1beta1/query"; +import { PoolModuleLCDClient } from "./pool/v1beta1/query"; +import { QueryModuleLCDClient } from "./query/v1beta1/query"; +import { StakersModuleLCDClient } from "./stakers/v1beta1/query"; +import { TeamModuleLCDClient } from "./team/v1beta1/query"; class KyveLCDClient { - public query: { v1beta1: KyveRegistryLCDClient }; + public bundles: { + v1beta1: BundlesModuleLCDClient; + }; + public delegation: { + v1beta1: DelegationModuleLCDClient; + }; + public funders: { + v1beta1: FundersModuleLCDClient; + }; + public global: { + v1beta1: GlobalModuleLCDClient; + }; + public pool: { + v1beta1: PoolModuleLCDClient; + }; + public query: { + v1beta1: QueryModuleLCDClient; + }; + public stakers: { + v1beta1: StakersModuleLCDClient; + }; + public team: { + v1beta1: TeamModuleLCDClient; + }; + constructor(restEndpoint: string) { + this.bundles = { + v1beta1: new BundlesModuleLCDClient(restEndpoint), + }; + this.delegation = { + v1beta1: new DelegationModuleLCDClient(restEndpoint), + }; + this.funders = { + v1beta1: new FundersModuleLCDClient(restEndpoint), + }; + this.global = { + v1beta1: new GlobalModuleLCDClient(restEndpoint), + }; + this.pool = { + v1beta1: new PoolModuleLCDClient(restEndpoint), + }; this.query = { - v1beta1: new KyveRegistryLCDClient(restEndpoint), + v1beta1: new QueryModuleLCDClient(restEndpoint), + }; + this.stakers = { + v1beta1: new StakersModuleLCDClient(restEndpoint), + }; + this.team = { + v1beta1: new TeamModuleLCDClient(restEndpoint), }; } } + export type KyveLCDClientType = { kyve: KyveLCDClient; }; + export function createKyveLCDClient(restEndpoint: string): KyveLCDClientType { return { kyve: new KyveLCDClient(restEndpoint), diff --git a/common/sdk/src/clients/lcd-client/delegation/v1beta1/query.ts b/common/sdk/src/clients/lcd-client/delegation/v1beta1/query.ts new file mode 100644 index 00000000..534e9273 --- /dev/null +++ b/common/sdk/src/clients/lcd-client/delegation/v1beta1/query.ts @@ -0,0 +1,14 @@ +import paramsRes from "@kyvejs/types/lcd/kyve/delegation/v1beta1/params"; + +import { AbstractKyveLCDClient } from "../../lcd-client.abstract"; + +export class DelegationModuleLCDClient extends AbstractKyveLCDClient { + constructor(restEndpoint: string) { + super(restEndpoint); + } + + async params(): Promise { + const endpoint = `/kyve/delegation/v1beta1/params`; + return await this.request(endpoint); + } +} diff --git a/common/sdk/src/clients/lcd-client/funders/v1beta1/query.ts b/common/sdk/src/clients/lcd-client/funders/v1beta1/query.ts new file mode 100644 index 00000000..f77102c6 --- /dev/null +++ b/common/sdk/src/clients/lcd-client/funders/v1beta1/query.ts @@ -0,0 +1,14 @@ +import paramsRes from "@kyvejs/types/lcd/kyve/funders/v1beta1/params"; + +import { AbstractKyveLCDClient } from "../../lcd-client.abstract"; + +export class FundersModuleLCDClient extends AbstractKyveLCDClient { + constructor(restEndpoint: string) { + super(restEndpoint); + } + + async params(): Promise { + const endpoint = `/kyve/funders/v1beta1/params`; + return await this.request(endpoint); + } +} diff --git a/common/sdk/src/clients/lcd-client/global/v1beta1/query.ts b/common/sdk/src/clients/lcd-client/global/v1beta1/query.ts new file mode 100644 index 00000000..8f3a7c01 --- /dev/null +++ b/common/sdk/src/clients/lcd-client/global/v1beta1/query.ts @@ -0,0 +1,14 @@ +import paramsRes from "@kyvejs/types/lcd/kyve/global/v1beta1/query"; + +import { AbstractKyveLCDClient } from "../../lcd-client.abstract"; + +export class GlobalModuleLCDClient extends AbstractKyveLCDClient { + constructor(restEndpoint: string) { + super(restEndpoint); + } + + async params(): Promise { + const endpoint = `/kyve/global/v1beta1/params`; + return await this.request(endpoint); + } +} diff --git a/common/sdk/src/clients/lcd-client/pool/v1beta1/query.ts b/common/sdk/src/clients/lcd-client/pool/v1beta1/query.ts new file mode 100644 index 00000000..eec6c36b --- /dev/null +++ b/common/sdk/src/clients/lcd-client/pool/v1beta1/query.ts @@ -0,0 +1,14 @@ +import paramsRes from "@kyvejs/types/lcd/kyve/pool/v1beta1/params"; + +import { AbstractKyveLCDClient } from "../../lcd-client.abstract"; + +export class PoolModuleLCDClient extends AbstractKyveLCDClient { + constructor(restEndpoint: string) { + super(restEndpoint); + } + + async params(): Promise { + const endpoint = `/kyve/pool/v1beta1/params`; + return await this.request(endpoint); + } +} diff --git a/common/sdk/src/clients/lcd-client/query/v1beta1/query.ts b/common/sdk/src/clients/lcd-client/query/v1beta1/query.ts index 8328525e..f0887133 100644 --- a/common/sdk/src/clients/lcd-client/query/v1beta1/query.ts +++ b/common/sdk/src/clients/lcd-client/query/v1beta1/query.ts @@ -51,7 +51,7 @@ type PaginationResponseTypeUtil = Overwrite< { pagination?: { next_key: string; total: string } } >; -export class KyveRegistryLCDClient extends AbstractKyveLCDClient { +export class QueryModuleLCDClient extends AbstractKyveLCDClient { constructor(restEndpoint: string) { super(restEndpoint); } @@ -126,28 +126,7 @@ export class KyveRegistryLCDClient extends AbstractKyveLCDClient { return await this.request(endpoint); } /** end stakers **/ - - // async finalizedBundles( - // params: PaginationPartialRequestUtilType - // ): Promise< - // PaginationResponseTypeUtil - // > { - // const parameters: Record = {}; - // - // if (typeof params?.pagination !== "undefined") { - // parameters.pagination = params.pagination; - // } - // const endpoint = `kyve/query/v1beta1/finalized_bundles/${params.pool_id}`; - // return await this.request(endpoint, parameters); - // } /** Bundles **/ - async finalizedBundle( - params: kyveQueryBundles.QueryFinalizedBundleRequest - ): Promise { - const endpoint = `/kyve/v1/bundles/${params.pool_id}/${params.id}`; - return await this.request(endpoint); - } - async finalizedBundles( params: PaginationPartialRequestUtilType ): Promise< @@ -158,9 +137,22 @@ export class KyveRegistryLCDClient extends AbstractKyveLCDClient { if (typeof params?.pagination !== "undefined") { parameters.pagination = params.pagination; } + + if (typeof params.index !== "undefined") { + parameters.index = params.index; + } + const endpoint = `/kyve/v1/bundles/${params.pool_id}`; return await this.request(endpoint, parameters); } + + async finalizedBundle( + params: kyveQueryBundles.QueryFinalizedBundleRequest + ): Promise { + const endpoint = `/kyve/v1/bundles/${params.pool_id}/${params.id}`; + return await this.request(endpoint); + } + async currentVoteStatus( params: kyveQueryBundles.QueryCurrentVoteStatusRequest ): Promise { diff --git a/common/sdk/src/clients/lcd-client/stakers/v1beta1/query.ts b/common/sdk/src/clients/lcd-client/stakers/v1beta1/query.ts new file mode 100644 index 00000000..4740850a --- /dev/null +++ b/common/sdk/src/clients/lcd-client/stakers/v1beta1/query.ts @@ -0,0 +1,14 @@ +import paramsRes from "@kyvejs/types/lcd/kyve/stakers/v1beta1/params"; + +import { AbstractKyveLCDClient } from "../../lcd-client.abstract"; + +export class StakersModuleLCDClient extends AbstractKyveLCDClient { + constructor(restEndpoint: string) { + super(restEndpoint); + } + + async params(): Promise { + const endpoint = `/kyve/stakers/v1beta1/params`; + return await this.request(endpoint); + } +} diff --git a/common/sdk/src/clients/lcd-client/team/v1beta1/query.ts b/common/sdk/src/clients/lcd-client/team/v1beta1/query.ts new file mode 100644 index 00000000..e09385c5 --- /dev/null +++ b/common/sdk/src/clients/lcd-client/team/v1beta1/query.ts @@ -0,0 +1,41 @@ +import queryReq from "@kyvejs/types/client/kyve/team/v1beta1/query"; +import queryRes from "@kyvejs/types/lcd/kyve/team/v1beta1/query"; + +import { AbstractKyveLCDClient } from "../../lcd-client.abstract"; + +export class TeamModuleLCDClient extends AbstractKyveLCDClient { + constructor(restEndpoint: string) { + super(restEndpoint); + } + + async teamInfo(): Promise { + const endpoint = `/kyve/team/v1beta1/team_info`; + return await this.request(endpoint); + } + + async teamVestingAccounts(): Promise { + const endpoint = `/kyve/team/v1beta1/team_vesting_accounts`; + return await this.request(endpoint); + } + + async teamVestingAccount( + params: queryReq.QueryTeamVestingAccountRequest + ): Promise { + const endpoint = `/kyve/team/v1beta1/team_vesting_account/${params.id}`; + return await this.request(endpoint); + } + + async teamVestingStatus( + params: queryReq.QueryTeamVestingStatusRequest + ): Promise { + const endpoint = `/kyve/team/v1beta1/team_vesting_status/${params.id}`; + return await this.request(endpoint); + } + + async teamVestingStatusByTime( + params: queryReq.QueryTeamVestingStatusByTimeRequest + ): Promise { + const endpoint = `/kyve/team/v1beta1/team_vesting_status_by_time/${params.id}/${params.time}`; + return await this.request(endpoint); + } +} diff --git a/common/types/src/client/amino/amino.ts b/common/types/src/client/amino/amino.ts index 9dee64db..804a46c0 100644 --- a/common/types/src/client/amino/amino.ts +++ b/common/types/src/client/amino/amino.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: amino/amino.proto diff --git a/common/types/src/client/cosmos/app/v1alpha1/module.ts b/common/types/src/client/cosmos/app/v1alpha1/module.ts index 8434c20f..49b4ccc5 100644 --- a/common/types/src/client/cosmos/app/v1alpha1/module.ts +++ b/common/types/src/client/cosmos/app/v1alpha1/module.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: cosmos/app/v1alpha1/module.proto diff --git a/common/types/src/client/cosmos/base/query/v1beta1/pagination.ts b/common/types/src/client/cosmos/base/query/v1beta1/pagination.ts index 21a4c8c1..2dd71f6b 100644 --- a/common/types/src/client/cosmos/base/query/v1beta1/pagination.ts +++ b/common/types/src/client/cosmos/base/query/v1beta1/pagination.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: cosmos/base/query/v1beta1/pagination.proto diff --git a/common/types/src/client/cosmos/base/v1beta1/coin.ts b/common/types/src/client/cosmos/base/v1beta1/coin.ts index 36e9d5cf..25ad32cf 100644 --- a/common/types/src/client/cosmos/base/v1beta1/coin.ts +++ b/common/types/src/client/cosmos/base/v1beta1/coin.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: cosmos/base/v1beta1/coin.proto diff --git a/common/types/src/client/cosmos/gov/v1/gov.ts b/common/types/src/client/cosmos/gov/v1/gov.ts index 5abbd6a5..9d021238 100644 --- a/common/types/src/client/cosmos/gov/v1/gov.ts +++ b/common/types/src/client/cosmos/gov/v1/gov.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: cosmos/gov/v1/gov.proto diff --git a/common/types/src/client/cosmos/gov/v1/tx.ts b/common/types/src/client/cosmos/gov/v1/tx.ts index e108c3a2..0737790e 100644 --- a/common/types/src/client/cosmos/gov/v1/tx.ts +++ b/common/types/src/client/cosmos/gov/v1/tx.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: cosmos/gov/v1/tx.proto diff --git a/common/types/src/client/cosmos/msg/v1/msg.ts b/common/types/src/client/cosmos/msg/v1/msg.ts index 964a82b0..7012edff 100644 --- a/common/types/src/client/cosmos/msg/v1/msg.ts +++ b/common/types/src/client/cosmos/msg/v1/msg.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: cosmos/msg/v1/msg.proto diff --git a/common/types/src/client/cosmos_proto/cosmos.ts b/common/types/src/client/cosmos_proto/cosmos.ts index 864203ec..75fa23b3 100644 --- a/common/types/src/client/cosmos_proto/cosmos.ts +++ b/common/types/src/client/cosmos_proto/cosmos.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: cosmos_proto/cosmos.proto diff --git a/common/types/src/client/gogoproto/gogo.ts b/common/types/src/client/gogoproto/gogo.ts index f8d6a43c..edd73fe6 100644 --- a/common/types/src/client/gogoproto/gogo.ts +++ b/common/types/src/client/gogoproto/gogo.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: gogoproto/gogo.proto diff --git a/common/types/src/client/google/api/annotations.ts b/common/types/src/client/google/api/annotations.ts index 9bb063ea..1d1b2d5f 100644 --- a/common/types/src/client/google/api/annotations.ts +++ b/common/types/src/client/google/api/annotations.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: google/api/annotations.proto diff --git a/common/types/src/client/google/api/http.ts b/common/types/src/client/google/api/http.ts index 00c47d78..0b105734 100644 --- a/common/types/src/client/google/api/http.ts +++ b/common/types/src/client/google/api/http.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: google/api/http.proto diff --git a/common/types/src/client/google/protobuf/any.ts b/common/types/src/client/google/protobuf/any.ts index df2bb7f9..69bacf8e 100644 --- a/common/types/src/client/google/protobuf/any.ts +++ b/common/types/src/client/google/protobuf/any.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: google/protobuf/any.proto diff --git a/common/types/src/client/google/protobuf/duration.ts b/common/types/src/client/google/protobuf/duration.ts index 99dc3ea9..68f69d05 100644 --- a/common/types/src/client/google/protobuf/duration.ts +++ b/common/types/src/client/google/protobuf/duration.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: google/protobuf/duration.proto diff --git a/common/types/src/client/google/protobuf/timestamp.ts b/common/types/src/client/google/protobuf/timestamp.ts index 684c2ab2..84095fd4 100644 --- a/common/types/src/client/google/protobuf/timestamp.ts +++ b/common/types/src/client/google/protobuf/timestamp.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: google/protobuf/timestamp.proto diff --git a/common/types/src/client/kyve/bundles/module/module.ts b/common/types/src/client/kyve/bundles/module/module.ts index f289c2b1..f025fd37 100644 --- a/common/types/src/client/kyve/bundles/module/module.ts +++ b/common/types/src/client/kyve/bundles/module/module.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: kyve/bundles/module/module.proto diff --git a/common/types/src/client/kyve/bundles/v1beta1/bundles.ts b/common/types/src/client/kyve/bundles/v1beta1/bundles.ts index 9073a257..2e6c6b5e 100644 --- a/common/types/src/client/kyve/bundles/v1beta1/bundles.ts +++ b/common/types/src/client/kyve/bundles/v1beta1/bundles.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: kyve/bundles/v1beta1/bundles.proto diff --git a/common/types/src/client/kyve/bundles/v1beta1/events.ts b/common/types/src/client/kyve/bundles/v1beta1/events.ts index 50cd454f..17b0285a 100644 --- a/common/types/src/client/kyve/bundles/v1beta1/events.ts +++ b/common/types/src/client/kyve/bundles/v1beta1/events.ts @@ -1,13 +1,12 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: kyve/bundles/v1beta1/events.proto /* eslint-disable */ import Long from "long"; import _m0 from "protobufjs/minimal"; -import { Coin } from "../../../cosmos/base/v1beta1/coin"; import { BundleStatus, bundleStatusFromJSON, bundleStatusToJSON } from "./bundles"; import { Params } from "./params"; import { VoteType, voteTypeFromJSON, voteTypeToJSON } from "./tx"; @@ -113,20 +112,20 @@ export interface EventBundleFinalized { /** status of the finalized bundle */ status: BundleStatus; /** amount which funders provided to the total bundle reward */ - funders_payout: Coin[]; + funders_payout: string; /** amount which the inflation pool provided to the total reward (in ukyve) */ inflation_payout: string; /** rewards transferred to treasury */ - reward_treasury: Coin[]; + reward_treasury: string; /** - * reward_uploader_commission are the commission rewards of the uploader. - * if the uploader has no delegations the delegation rewards are included here + * reward_uploader are the total rewards (commission + storage cost) + * the uploader received */ - reward_uploader_commission: Coin[]; + reward_uploader: string; /** rewardDelegation rewards distributed among all delegators */ - reward_delegation: Coin[]; + reward_delegation: string; /** rewardTotal the total bundle reward */ - reward_total: Coin[]; + reward_total: string; /** finalized_at the block height where the bundle got finalized */ finalized_at: string; /** uploader the address of the uploader of this bundle */ @@ -134,7 +133,12 @@ export interface EventBundleFinalized { /** next_uploader the address of the next uploader after this bundle */ next_uploader: string; /** reward_uploader_storage_cost are the storage cost rewards for the uploader */ - reward_uploader_storage_cost: Coin[]; + reward_uploader_storage_cost: string; + /** + * reward_uploader_commission are the commission rewards of the uploader. + * if the uploader has no delegations the delegation rewards are included here + */ + reward_uploader_commission: string; } /** @@ -667,16 +671,17 @@ function createBaseEventBundleFinalized(): EventBundleFinalized { abstain: "0", total: "0", status: 0, - funders_payout: [], + funders_payout: "", inflation_payout: "0", - reward_treasury: [], - reward_uploader_commission: [], - reward_delegation: [], - reward_total: [], + reward_treasury: "", + reward_uploader: "", + reward_delegation: "", + reward_total: "", finalized_at: "0", uploader: "", next_uploader: "", - reward_uploader_storage_cost: [], + reward_uploader_storage_cost: "", + reward_uploader_commission: "", }; } @@ -703,23 +708,23 @@ export const EventBundleFinalized = { if (message.status !== 0) { writer.uint32(56).int32(message.status); } - for (const v of message.funders_payout) { - Coin.encode(v!, writer.uint32(66).fork()).ldelim(); + if (message.funders_payout !== "") { + writer.uint32(66).string(message.funders_payout); } if (message.inflation_payout !== "0") { writer.uint32(72).uint64(message.inflation_payout); } - for (const v of message.reward_treasury) { - Coin.encode(v!, writer.uint32(82).fork()).ldelim(); + if (message.reward_treasury !== "") { + writer.uint32(82).string(message.reward_treasury); } - for (const v of message.reward_uploader_commission) { - Coin.encode(v!, writer.uint32(90).fork()).ldelim(); + if (message.reward_uploader !== "") { + writer.uint32(90).string(message.reward_uploader); } - for (const v of message.reward_delegation) { - Coin.encode(v!, writer.uint32(98).fork()).ldelim(); + if (message.reward_delegation !== "") { + writer.uint32(98).string(message.reward_delegation); } - for (const v of message.reward_total) { - Coin.encode(v!, writer.uint32(106).fork()).ldelim(); + if (message.reward_total !== "") { + writer.uint32(106).string(message.reward_total); } if (message.finalized_at !== "0") { writer.uint32(112).uint64(message.finalized_at); @@ -730,8 +735,11 @@ export const EventBundleFinalized = { if (message.next_uploader !== "") { writer.uint32(130).string(message.next_uploader); } - for (const v of message.reward_uploader_storage_cost) { - Coin.encode(v!, writer.uint32(138).fork()).ldelim(); + if (message.reward_uploader_storage_cost !== "") { + writer.uint32(138).string(message.reward_uploader_storage_cost); + } + if (message.reward_uploader_commission !== "") { + writer.uint32(146).string(message.reward_uploader_commission); } return writer; }, @@ -797,7 +805,7 @@ export const EventBundleFinalized = { break; } - message.funders_payout.push(Coin.decode(reader, reader.uint32())); + message.funders_payout = reader.string(); continue; case 9: if (tag !== 72) { @@ -811,28 +819,28 @@ export const EventBundleFinalized = { break; } - message.reward_treasury.push(Coin.decode(reader, reader.uint32())); + message.reward_treasury = reader.string(); continue; case 11: if (tag !== 90) { break; } - message.reward_uploader_commission.push(Coin.decode(reader, reader.uint32())); + message.reward_uploader = reader.string(); continue; case 12: if (tag !== 98) { break; } - message.reward_delegation.push(Coin.decode(reader, reader.uint32())); + message.reward_delegation = reader.string(); continue; case 13: if (tag !== 106) { break; } - message.reward_total.push(Coin.decode(reader, reader.uint32())); + message.reward_total = reader.string(); continue; case 14: if (tag !== 112) { @@ -860,7 +868,14 @@ export const EventBundleFinalized = { break; } - message.reward_uploader_storage_cost.push(Coin.decode(reader, reader.uint32())); + message.reward_uploader_storage_cost = reader.string(); + continue; + case 18: + if (tag !== 146) { + break; + } + + message.reward_uploader_commission = reader.string(); continue; } if ((tag & 7) === 4 || tag === 0) { @@ -880,28 +895,21 @@ export const EventBundleFinalized = { abstain: isSet(object.abstain) ? globalThis.String(object.abstain) : "0", total: isSet(object.total) ? globalThis.String(object.total) : "0", status: isSet(object.status) ? bundleStatusFromJSON(object.status) : 0, - funders_payout: globalThis.Array.isArray(object?.funders_payout) - ? object.funders_payout.map((e: any) => Coin.fromJSON(e)) - : [], + funders_payout: isSet(object.funders_payout) ? globalThis.String(object.funders_payout) : "", inflation_payout: isSet(object.inflation_payout) ? globalThis.String(object.inflation_payout) : "0", - reward_treasury: globalThis.Array.isArray(object?.reward_treasury) - ? object.reward_treasury.map((e: any) => Coin.fromJSON(e)) - : [], - reward_uploader_commission: globalThis.Array.isArray(object?.reward_uploader_commission) - ? object.reward_uploader_commission.map((e: any) => Coin.fromJSON(e)) - : [], - reward_delegation: globalThis.Array.isArray(object?.reward_delegation) - ? object.reward_delegation.map((e: any) => Coin.fromJSON(e)) - : [], - reward_total: globalThis.Array.isArray(object?.reward_total) - ? object.reward_total.map((e: any) => Coin.fromJSON(e)) - : [], + reward_treasury: isSet(object.reward_treasury) ? globalThis.String(object.reward_treasury) : "", + reward_uploader: isSet(object.reward_uploader) ? globalThis.String(object.reward_uploader) : "", + reward_delegation: isSet(object.reward_delegation) ? globalThis.String(object.reward_delegation) : "", + reward_total: isSet(object.reward_total) ? globalThis.String(object.reward_total) : "", finalized_at: isSet(object.finalized_at) ? globalThis.String(object.finalized_at) : "0", uploader: isSet(object.uploader) ? globalThis.String(object.uploader) : "", next_uploader: isSet(object.next_uploader) ? globalThis.String(object.next_uploader) : "", - reward_uploader_storage_cost: globalThis.Array.isArray(object?.reward_uploader_storage_cost) - ? object.reward_uploader_storage_cost.map((e: any) => Coin.fromJSON(e)) - : [], + reward_uploader_storage_cost: isSet(object.reward_uploader_storage_cost) + ? globalThis.String(object.reward_uploader_storage_cost) + : "", + reward_uploader_commission: isSet(object.reward_uploader_commission) + ? globalThis.String(object.reward_uploader_commission) + : "", }; }, @@ -928,23 +936,23 @@ export const EventBundleFinalized = { if (message.status !== 0) { obj.status = bundleStatusToJSON(message.status); } - if (message.funders_payout?.length) { - obj.funders_payout = message.funders_payout.map((e) => Coin.toJSON(e)); + if (message.funders_payout !== "") { + obj.funders_payout = message.funders_payout; } if (message.inflation_payout !== "0") { obj.inflation_payout = message.inflation_payout; } - if (message.reward_treasury?.length) { - obj.reward_treasury = message.reward_treasury.map((e) => Coin.toJSON(e)); + if (message.reward_treasury !== "") { + obj.reward_treasury = message.reward_treasury; } - if (message.reward_uploader_commission?.length) { - obj.reward_uploader_commission = message.reward_uploader_commission.map((e) => Coin.toJSON(e)); + if (message.reward_uploader !== "") { + obj.reward_uploader = message.reward_uploader; } - if (message.reward_delegation?.length) { - obj.reward_delegation = message.reward_delegation.map((e) => Coin.toJSON(e)); + if (message.reward_delegation !== "") { + obj.reward_delegation = message.reward_delegation; } - if (message.reward_total?.length) { - obj.reward_total = message.reward_total.map((e) => Coin.toJSON(e)); + if (message.reward_total !== "") { + obj.reward_total = message.reward_total; } if (message.finalized_at !== "0") { obj.finalized_at = message.finalized_at; @@ -955,8 +963,11 @@ export const EventBundleFinalized = { if (message.next_uploader !== "") { obj.next_uploader = message.next_uploader; } - if (message.reward_uploader_storage_cost?.length) { - obj.reward_uploader_storage_cost = message.reward_uploader_storage_cost.map((e) => Coin.toJSON(e)); + if (message.reward_uploader_storage_cost !== "") { + obj.reward_uploader_storage_cost = message.reward_uploader_storage_cost; + } + if (message.reward_uploader_commission !== "") { + obj.reward_uploader_commission = message.reward_uploader_commission; } return obj; }, @@ -973,16 +984,17 @@ export const EventBundleFinalized = { message.abstain = object.abstain ?? "0"; message.total = object.total ?? "0"; message.status = object.status ?? 0; - message.funders_payout = object.funders_payout?.map((e) => Coin.fromPartial(e)) || []; + message.funders_payout = object.funders_payout ?? ""; message.inflation_payout = object.inflation_payout ?? "0"; - message.reward_treasury = object.reward_treasury?.map((e) => Coin.fromPartial(e)) || []; - message.reward_uploader_commission = object.reward_uploader_commission?.map((e) => Coin.fromPartial(e)) || []; - message.reward_delegation = object.reward_delegation?.map((e) => Coin.fromPartial(e)) || []; - message.reward_total = object.reward_total?.map((e) => Coin.fromPartial(e)) || []; + message.reward_treasury = object.reward_treasury ?? ""; + message.reward_uploader = object.reward_uploader ?? ""; + message.reward_delegation = object.reward_delegation ?? ""; + message.reward_total = object.reward_total ?? ""; message.finalized_at = object.finalized_at ?? "0"; message.uploader = object.uploader ?? ""; message.next_uploader = object.next_uploader ?? ""; - message.reward_uploader_storage_cost = object.reward_uploader_storage_cost?.map((e) => Coin.fromPartial(e)) || []; + message.reward_uploader_storage_cost = object.reward_uploader_storage_cost ?? ""; + message.reward_uploader_commission = object.reward_uploader_commission ?? ""; return message; }, }; diff --git a/common/types/src/client/kyve/bundles/v1beta1/genesis.ts b/common/types/src/client/kyve/bundles/v1beta1/genesis.ts index 3bf6d42d..8cdf9ace 100644 --- a/common/types/src/client/kyve/bundles/v1beta1/genesis.ts +++ b/common/types/src/client/kyve/bundles/v1beta1/genesis.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: kyve/bundles/v1beta1/genesis.proto diff --git a/common/types/src/client/kyve/bundles/v1beta1/params.ts b/common/types/src/client/kyve/bundles/v1beta1/params.ts index 404aa97e..6194f7eb 100644 --- a/common/types/src/client/kyve/bundles/v1beta1/params.ts +++ b/common/types/src/client/kyve/bundles/v1beta1/params.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: kyve/bundles/v1beta1/params.proto diff --git a/common/types/src/client/kyve/bundles/v1beta1/query.ts b/common/types/src/client/kyve/bundles/v1beta1/query.ts index 3719dbdd..9d07008b 100644 --- a/common/types/src/client/kyve/bundles/v1beta1/query.ts +++ b/common/types/src/client/kyve/bundles/v1beta1/query.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: kyve/bundles/v1beta1/query.proto diff --git a/common/types/src/client/kyve/bundles/v1beta1/tx.ts b/common/types/src/client/kyve/bundles/v1beta1/tx.ts index bb7258b7..d2fef630 100644 --- a/common/types/src/client/kyve/bundles/v1beta1/tx.ts +++ b/common/types/src/client/kyve/bundles/v1beta1/tx.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: kyve/bundles/v1beta1/tx.proto diff --git a/common/types/src/client/kyve/delegation/module/module.ts b/common/types/src/client/kyve/delegation/module/module.ts index 4a0836c6..5e1a934d 100644 --- a/common/types/src/client/kyve/delegation/module/module.ts +++ b/common/types/src/client/kyve/delegation/module/module.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: kyve/delegation/module/module.proto diff --git a/common/types/src/client/kyve/delegation/v1beta1/delegation.ts b/common/types/src/client/kyve/delegation/v1beta1/delegation.ts index fa3222a3..96461ad8 100644 --- a/common/types/src/client/kyve/delegation/v1beta1/delegation.ts +++ b/common/types/src/client/kyve/delegation/v1beta1/delegation.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: kyve/delegation/v1beta1/delegation.proto diff --git a/common/types/src/client/kyve/delegation/v1beta1/events.ts b/common/types/src/client/kyve/delegation/v1beta1/events.ts index b26286e6..f58938b0 100644 --- a/common/types/src/client/kyve/delegation/v1beta1/events.ts +++ b/common/types/src/client/kyve/delegation/v1beta1/events.ts @@ -1,13 +1,12 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: kyve/delegation/v1beta1/events.proto /* eslint-disable */ import Long from "long"; import _m0 from "protobufjs/minimal"; -import { Coin } from "../../../cosmos/base/v1beta1/coin"; import { SlashType, slashTypeFromJSON, slashTypeToJSON } from "./delegation"; import { Params } from "./params"; @@ -98,8 +97,8 @@ export interface EventWithdrawRewards { address: string; /** staker is the account address of the protocol node the users withdraws from. */ staker: string; - /** amount ... */ - amount: Coin[]; + /** amounts ... */ + amounts: string; } /** @@ -599,7 +598,7 @@ export const EventRedelegate = { }; function createBaseEventWithdrawRewards(): EventWithdrawRewards { - return { address: "", staker: "", amount: [] }; + return { address: "", staker: "", amounts: "" }; } export const EventWithdrawRewards = { @@ -610,8 +609,8 @@ export const EventWithdrawRewards = { if (message.staker !== "") { writer.uint32(18).string(message.staker); } - for (const v of message.amount) { - Coin.encode(v!, writer.uint32(26).fork()).ldelim(); + if (message.amounts !== "") { + writer.uint32(26).string(message.amounts); } return writer; }, @@ -642,7 +641,7 @@ export const EventWithdrawRewards = { break; } - message.amount.push(Coin.decode(reader, reader.uint32())); + message.amounts = reader.string(); continue; } if ((tag & 7) === 4 || tag === 0) { @@ -657,7 +656,7 @@ export const EventWithdrawRewards = { return { address: isSet(object.address) ? globalThis.String(object.address) : "", staker: isSet(object.staker) ? globalThis.String(object.staker) : "", - amount: globalThis.Array.isArray(object?.amount) ? object.amount.map((e: any) => Coin.fromJSON(e)) : [], + amounts: isSet(object.amounts) ? globalThis.String(object.amounts) : "", }; }, @@ -669,8 +668,8 @@ export const EventWithdrawRewards = { if (message.staker !== "") { obj.staker = message.staker; } - if (message.amount?.length) { - obj.amount = message.amount.map((e) => Coin.toJSON(e)); + if (message.amounts !== "") { + obj.amounts = message.amounts; } return obj; }, @@ -682,7 +681,7 @@ export const EventWithdrawRewards = { const message = createBaseEventWithdrawRewards(); message.address = object.address ?? ""; message.staker = object.staker ?? ""; - message.amount = object.amount?.map((e) => Coin.fromPartial(e)) || []; + message.amounts = object.amounts ?? ""; return message; }, }; diff --git a/common/types/src/client/kyve/delegation/v1beta1/genesis.ts b/common/types/src/client/kyve/delegation/v1beta1/genesis.ts index 403c0f99..88f9492a 100644 --- a/common/types/src/client/kyve/delegation/v1beta1/genesis.ts +++ b/common/types/src/client/kyve/delegation/v1beta1/genesis.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: kyve/delegation/v1beta1/genesis.proto diff --git a/common/types/src/client/kyve/delegation/v1beta1/params.ts b/common/types/src/client/kyve/delegation/v1beta1/params.ts index 0868bbc3..eaa8393c 100644 --- a/common/types/src/client/kyve/delegation/v1beta1/params.ts +++ b/common/types/src/client/kyve/delegation/v1beta1/params.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: kyve/delegation/v1beta1/params.proto diff --git a/common/types/src/client/kyve/delegation/v1beta1/query.ts b/common/types/src/client/kyve/delegation/v1beta1/query.ts index 1574a710..51787f12 100644 --- a/common/types/src/client/kyve/delegation/v1beta1/query.ts +++ b/common/types/src/client/kyve/delegation/v1beta1/query.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: kyve/delegation/v1beta1/query.proto diff --git a/common/types/src/client/kyve/delegation/v1beta1/tx.ts b/common/types/src/client/kyve/delegation/v1beta1/tx.ts index 3583aec6..52c7b68b 100644 --- a/common/types/src/client/kyve/delegation/v1beta1/tx.ts +++ b/common/types/src/client/kyve/delegation/v1beta1/tx.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: kyve/delegation/v1beta1/tx.proto diff --git a/common/types/src/client/kyve/funders/module/module.ts b/common/types/src/client/kyve/funders/module/module.ts index a1f793ad..66639f77 100644 --- a/common/types/src/client/kyve/funders/module/module.ts +++ b/common/types/src/client/kyve/funders/module/module.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: kyve/funders/module/module.proto diff --git a/common/types/src/client/kyve/funders/v1beta1/events.ts b/common/types/src/client/kyve/funders/v1beta1/events.ts index 741869a6..6711aa41 100644 --- a/common/types/src/client/kyve/funders/v1beta1/events.ts +++ b/common/types/src/client/kyve/funders/v1beta1/events.ts @@ -1,13 +1,12 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: kyve/funders/v1beta1/events.proto /* eslint-disable */ import Long from "long"; import _m0 from "protobufjs/minimal"; -import { Coin } from "../../../cosmos/base/v1beta1/coin"; import { Params } from "./params"; export const protobufPackage = "kyve.funders.v1beta1"; @@ -77,9 +76,9 @@ export interface EventFundPool { /** address is the account address of the pool funder. */ address: string; /** amounts is a list of coins the funder has funded */ - amounts: Coin[]; + amounts: string; /** amounts_per_bundle is a list of coins the funder wants to distribute per finalized bundle */ - amounts_per_bundle: Coin[]; + amounts_per_bundle: string; } /** @@ -92,7 +91,7 @@ export interface EventDefundPool { /** address is the account address of the pool funder. */ address: string; /** amounts is a list of coins that the funder wants to defund */ - amounts: Coin[]; + amounts: string; } /** @@ -466,7 +465,7 @@ export const EventUpdateFunder = { }; function createBaseEventFundPool(): EventFundPool { - return { pool_id: "0", address: "", amounts: [], amounts_per_bundle: [] }; + return { pool_id: "0", address: "", amounts: "", amounts_per_bundle: "" }; } export const EventFundPool = { @@ -477,11 +476,11 @@ export const EventFundPool = { if (message.address !== "") { writer.uint32(18).string(message.address); } - for (const v of message.amounts) { - Coin.encode(v!, writer.uint32(26).fork()).ldelim(); + if (message.amounts !== "") { + writer.uint32(26).string(message.amounts); } - for (const v of message.amounts_per_bundle) { - Coin.encode(v!, writer.uint32(34).fork()).ldelim(); + if (message.amounts_per_bundle !== "") { + writer.uint32(34).string(message.amounts_per_bundle); } return writer; }, @@ -512,14 +511,14 @@ export const EventFundPool = { break; } - message.amounts.push(Coin.decode(reader, reader.uint32())); + message.amounts = reader.string(); continue; case 4: if (tag !== 34) { break; } - message.amounts_per_bundle.push(Coin.decode(reader, reader.uint32())); + message.amounts_per_bundle = reader.string(); continue; } if ((tag & 7) === 4 || tag === 0) { @@ -534,10 +533,8 @@ export const EventFundPool = { return { pool_id: isSet(object.pool_id) ? globalThis.String(object.pool_id) : "0", address: isSet(object.address) ? globalThis.String(object.address) : "", - amounts: globalThis.Array.isArray(object?.amounts) ? object.amounts.map((e: any) => Coin.fromJSON(e)) : [], - amounts_per_bundle: globalThis.Array.isArray(object?.amounts_per_bundle) - ? object.amounts_per_bundle.map((e: any) => Coin.fromJSON(e)) - : [], + amounts: isSet(object.amounts) ? globalThis.String(object.amounts) : "", + amounts_per_bundle: isSet(object.amounts_per_bundle) ? globalThis.String(object.amounts_per_bundle) : "", }; }, @@ -549,11 +546,11 @@ export const EventFundPool = { if (message.address !== "") { obj.address = message.address; } - if (message.amounts?.length) { - obj.amounts = message.amounts.map((e) => Coin.toJSON(e)); + if (message.amounts !== "") { + obj.amounts = message.amounts; } - if (message.amounts_per_bundle?.length) { - obj.amounts_per_bundle = message.amounts_per_bundle.map((e) => Coin.toJSON(e)); + if (message.amounts_per_bundle !== "") { + obj.amounts_per_bundle = message.amounts_per_bundle; } return obj; }, @@ -565,14 +562,14 @@ export const EventFundPool = { const message = createBaseEventFundPool(); message.pool_id = object.pool_id ?? "0"; message.address = object.address ?? ""; - message.amounts = object.amounts?.map((e) => Coin.fromPartial(e)) || []; - message.amounts_per_bundle = object.amounts_per_bundle?.map((e) => Coin.fromPartial(e)) || []; + message.amounts = object.amounts ?? ""; + message.amounts_per_bundle = object.amounts_per_bundle ?? ""; return message; }, }; function createBaseEventDefundPool(): EventDefundPool { - return { pool_id: "0", address: "", amounts: [] }; + return { pool_id: "0", address: "", amounts: "" }; } export const EventDefundPool = { @@ -583,8 +580,8 @@ export const EventDefundPool = { if (message.address !== "") { writer.uint32(18).string(message.address); } - for (const v of message.amounts) { - Coin.encode(v!, writer.uint32(26).fork()).ldelim(); + if (message.amounts !== "") { + writer.uint32(26).string(message.amounts); } return writer; }, @@ -615,7 +612,7 @@ export const EventDefundPool = { break; } - message.amounts.push(Coin.decode(reader, reader.uint32())); + message.amounts = reader.string(); continue; } if ((tag & 7) === 4 || tag === 0) { @@ -630,7 +627,7 @@ export const EventDefundPool = { return { pool_id: isSet(object.pool_id) ? globalThis.String(object.pool_id) : "0", address: isSet(object.address) ? globalThis.String(object.address) : "", - amounts: globalThis.Array.isArray(object?.amounts) ? object.amounts.map((e: any) => Coin.fromJSON(e)) : [], + amounts: isSet(object.amounts) ? globalThis.String(object.amounts) : "", }; }, @@ -642,8 +639,8 @@ export const EventDefundPool = { if (message.address !== "") { obj.address = message.address; } - if (message.amounts?.length) { - obj.amounts = message.amounts.map((e) => Coin.toJSON(e)); + if (message.amounts !== "") { + obj.amounts = message.amounts; } return obj; }, @@ -655,7 +652,7 @@ export const EventDefundPool = { const message = createBaseEventDefundPool(); message.pool_id = object.pool_id ?? "0"; message.address = object.address ?? ""; - message.amounts = object.amounts?.map((e) => Coin.fromPartial(e)) || []; + message.amounts = object.amounts ?? ""; return message; }, }; diff --git a/common/types/src/client/kyve/funders/v1beta1/funders.ts b/common/types/src/client/kyve/funders/v1beta1/funders.ts index 477123ad..c8305c68 100644 --- a/common/types/src/client/kyve/funders/v1beta1/funders.ts +++ b/common/types/src/client/kyve/funders/v1beta1/funders.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: kyve/funders/v1beta1/funders.proto diff --git a/common/types/src/client/kyve/funders/v1beta1/genesis.ts b/common/types/src/client/kyve/funders/v1beta1/genesis.ts index 6d119ecf..5ba62375 100644 --- a/common/types/src/client/kyve/funders/v1beta1/genesis.ts +++ b/common/types/src/client/kyve/funders/v1beta1/genesis.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: kyve/funders/v1beta1/genesis.proto diff --git a/common/types/src/client/kyve/funders/v1beta1/params.ts b/common/types/src/client/kyve/funders/v1beta1/params.ts index 067e9e88..e1f1b19d 100644 --- a/common/types/src/client/kyve/funders/v1beta1/params.ts +++ b/common/types/src/client/kyve/funders/v1beta1/params.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: kyve/funders/v1beta1/params.proto @@ -20,14 +20,18 @@ export interface WhitelistCoinEntry { * needs to be unique */ coin_denom: string; + /** coin_decimals are the decimals of the coin */ + coin_decimals: number; /** * min_funding_amount is the minimum required amount of this denom that needs - * to be funded + * to be funded. It is of type math.Int since a uint64 is not sufficient for a + * coin with 18 decimals */ min_funding_amount: string; /** * min_funding_amount_per_bundle is the minimum required amount of this denom - * that needs to be funded per bundle + * that needs to be funded per bundle. It is of type math.Int since a uint64 + * is not sufficient for a coin with 18 decimals */ min_funding_amount_per_bundle: string; /** @@ -50,7 +54,13 @@ export interface Params { } function createBaseWhitelistCoinEntry(): WhitelistCoinEntry { - return { coin_denom: "", min_funding_amount: "0", min_funding_amount_per_bundle: "0", coin_weight: "" }; + return { + coin_denom: "", + coin_decimals: 0, + min_funding_amount: "", + min_funding_amount_per_bundle: "", + coin_weight: "", + }; } export const WhitelistCoinEntry = { @@ -58,14 +68,17 @@ export const WhitelistCoinEntry = { if (message.coin_denom !== "") { writer.uint32(10).string(message.coin_denom); } - if (message.min_funding_amount !== "0") { - writer.uint32(16).uint64(message.min_funding_amount); + if (message.coin_decimals !== 0) { + writer.uint32(16).uint32(message.coin_decimals); } - if (message.min_funding_amount_per_bundle !== "0") { - writer.uint32(24).uint64(message.min_funding_amount_per_bundle); + if (message.min_funding_amount !== "") { + writer.uint32(26).string(message.min_funding_amount); + } + if (message.min_funding_amount_per_bundle !== "") { + writer.uint32(34).string(message.min_funding_amount_per_bundle); } if (message.coin_weight !== "") { - writer.uint32(34).string(message.coin_weight); + writer.uint32(42).string(message.coin_weight); } return writer; }, @@ -89,20 +102,27 @@ export const WhitelistCoinEntry = { break; } - message.min_funding_amount = longToString(reader.uint64() as Long); + message.coin_decimals = reader.uint32(); continue; case 3: - if (tag !== 24) { + if (tag !== 26) { break; } - message.min_funding_amount_per_bundle = longToString(reader.uint64() as Long); + message.min_funding_amount = reader.string(); continue; case 4: if (tag !== 34) { break; } + message.min_funding_amount_per_bundle = reader.string(); + continue; + case 5: + if (tag !== 42) { + break; + } + message.coin_weight = reader.string(); continue; } @@ -117,10 +137,11 @@ export const WhitelistCoinEntry = { fromJSON(object: any): WhitelistCoinEntry { return { coin_denom: isSet(object.coin_denom) ? globalThis.String(object.coin_denom) : "", - min_funding_amount: isSet(object.min_funding_amount) ? globalThis.String(object.min_funding_amount) : "0", + coin_decimals: isSet(object.coin_decimals) ? globalThis.Number(object.coin_decimals) : 0, + min_funding_amount: isSet(object.min_funding_amount) ? globalThis.String(object.min_funding_amount) : "", min_funding_amount_per_bundle: isSet(object.min_funding_amount_per_bundle) ? globalThis.String(object.min_funding_amount_per_bundle) - : "0", + : "", coin_weight: isSet(object.coin_weight) ? globalThis.String(object.coin_weight) : "", }; }, @@ -130,10 +151,13 @@ export const WhitelistCoinEntry = { if (message.coin_denom !== "") { obj.coin_denom = message.coin_denom; } - if (message.min_funding_amount !== "0") { + if (message.coin_decimals !== 0) { + obj.coin_decimals = Math.round(message.coin_decimals); + } + if (message.min_funding_amount !== "") { obj.min_funding_amount = message.min_funding_amount; } - if (message.min_funding_amount_per_bundle !== "0") { + if (message.min_funding_amount_per_bundle !== "") { obj.min_funding_amount_per_bundle = message.min_funding_amount_per_bundle; } if (message.coin_weight !== "") { @@ -148,8 +172,9 @@ export const WhitelistCoinEntry = { fromPartial, I>>(object: I): WhitelistCoinEntry { const message = createBaseWhitelistCoinEntry(); message.coin_denom = object.coin_denom ?? ""; - message.min_funding_amount = object.min_funding_amount ?? "0"; - message.min_funding_amount_per_bundle = object.min_funding_amount_per_bundle ?? "0"; + message.coin_decimals = object.coin_decimals ?? 0; + message.min_funding_amount = object.min_funding_amount ?? ""; + message.min_funding_amount_per_bundle = object.min_funding_amount_per_bundle ?? ""; message.coin_weight = object.coin_weight ?? ""; return message; }, diff --git a/common/types/src/client/kyve/funders/v1beta1/query.ts b/common/types/src/client/kyve/funders/v1beta1/query.ts index dd5cb17c..0d1319bc 100644 --- a/common/types/src/client/kyve/funders/v1beta1/query.ts +++ b/common/types/src/client/kyve/funders/v1beta1/query.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: kyve/funders/v1beta1/query.proto diff --git a/common/types/src/client/kyve/funders/v1beta1/tx.ts b/common/types/src/client/kyve/funders/v1beta1/tx.ts index 1838b452..9ed8ce6a 100644 --- a/common/types/src/client/kyve/funders/v1beta1/tx.ts +++ b/common/types/src/client/kyve/funders/v1beta1/tx.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: kyve/funders/v1beta1/tx.proto diff --git a/common/types/src/client/kyve/global/module/module.ts b/common/types/src/client/kyve/global/module/module.ts index 659044ab..94447ab1 100644 --- a/common/types/src/client/kyve/global/module/module.ts +++ b/common/types/src/client/kyve/global/module/module.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: kyve/global/module/module.proto diff --git a/common/types/src/client/kyve/global/v1beta1/events.ts b/common/types/src/client/kyve/global/v1beta1/events.ts index d21b23ef..cecb3965 100644 --- a/common/types/src/client/kyve/global/v1beta1/events.ts +++ b/common/types/src/client/kyve/global/v1beta1/events.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: kyve/global/v1beta1/events.proto diff --git a/common/types/src/client/kyve/global/v1beta1/genesis.ts b/common/types/src/client/kyve/global/v1beta1/genesis.ts index 14af13ee..0209aa89 100644 --- a/common/types/src/client/kyve/global/v1beta1/genesis.ts +++ b/common/types/src/client/kyve/global/v1beta1/genesis.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: kyve/global/v1beta1/genesis.proto diff --git a/common/types/src/client/kyve/global/v1beta1/global.ts b/common/types/src/client/kyve/global/v1beta1/global.ts index a7b04716..3f6befde 100644 --- a/common/types/src/client/kyve/global/v1beta1/global.ts +++ b/common/types/src/client/kyve/global/v1beta1/global.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: kyve/global/v1beta1/global.proto diff --git a/common/types/src/client/kyve/global/v1beta1/query.ts b/common/types/src/client/kyve/global/v1beta1/query.ts index f1557a59..5aa88f4a 100644 --- a/common/types/src/client/kyve/global/v1beta1/query.ts +++ b/common/types/src/client/kyve/global/v1beta1/query.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: kyve/global/v1beta1/query.proto diff --git a/common/types/src/client/kyve/global/v1beta1/tx.ts b/common/types/src/client/kyve/global/v1beta1/tx.ts index e7e0953b..0170c465 100644 --- a/common/types/src/client/kyve/global/v1beta1/tx.ts +++ b/common/types/src/client/kyve/global/v1beta1/tx.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: kyve/global/v1beta1/tx.proto diff --git a/common/types/src/client/kyve/pool/module/module.ts b/common/types/src/client/kyve/pool/module/module.ts index 63de1f11..8733c748 100644 --- a/common/types/src/client/kyve/pool/module/module.ts +++ b/common/types/src/client/kyve/pool/module/module.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: kyve/pool/module/module.proto diff --git a/common/types/src/client/kyve/pool/v1beta1/events.ts b/common/types/src/client/kyve/pool/v1beta1/events.ts index 8e9ecff0..41176232 100644 --- a/common/types/src/client/kyve/pool/v1beta1/events.ts +++ b/common/types/src/client/kyve/pool/v1beta1/events.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: kyve/pool/v1beta1/events.proto @@ -314,7 +314,7 @@ function createBaseEventCreatePool(): EventCreatePool { config: "", start_key: "", upload_interval: "0", - inflation_share_weight: "0", + inflation_share_weight: "", min_delegation: "0", max_bundle_size: "0", version: "", @@ -348,8 +348,8 @@ export const EventCreatePool = { if (message.upload_interval !== "0") { writer.uint32(56).uint64(message.upload_interval); } - if (message.inflation_share_weight !== "0") { - writer.uint32(64).uint64(message.inflation_share_weight); + if (message.inflation_share_weight !== "") { + writer.uint32(66).string(message.inflation_share_weight); } if (message.min_delegation !== "0") { writer.uint32(72).uint64(message.min_delegation); @@ -432,11 +432,11 @@ export const EventCreatePool = { message.upload_interval = longToString(reader.uint64() as Long); continue; case 8: - if (tag !== 64) { + if (tag !== 66) { break; } - message.inflation_share_weight = longToString(reader.uint64() as Long); + message.inflation_share_weight = reader.string(); continue; case 9: if (tag !== 72) { @@ -507,7 +507,7 @@ export const EventCreatePool = { upload_interval: isSet(object.upload_interval) ? globalThis.String(object.upload_interval) : "0", inflation_share_weight: isSet(object.inflation_share_weight) ? globalThis.String(object.inflation_share_weight) - : "0", + : "", min_delegation: isSet(object.min_delegation) ? globalThis.String(object.min_delegation) : "0", max_bundle_size: isSet(object.max_bundle_size) ? globalThis.String(object.max_bundle_size) : "0", version: isSet(object.version) ? globalThis.String(object.version) : "", @@ -541,7 +541,7 @@ export const EventCreatePool = { if (message.upload_interval !== "0") { obj.upload_interval = message.upload_interval; } - if (message.inflation_share_weight !== "0") { + if (message.inflation_share_weight !== "") { obj.inflation_share_weight = message.inflation_share_weight; } if (message.min_delegation !== "0") { @@ -580,7 +580,7 @@ export const EventCreatePool = { message.config = object.config ?? ""; message.start_key = object.start_key ?? ""; message.upload_interval = object.upload_interval ?? "0"; - message.inflation_share_weight = object.inflation_share_weight ?? "0"; + message.inflation_share_weight = object.inflation_share_weight ?? ""; message.min_delegation = object.min_delegation ?? "0"; message.max_bundle_size = object.max_bundle_size ?? "0"; message.version = object.version ?? ""; @@ -951,7 +951,7 @@ function createBaseEventPoolUpdated(): EventPoolUpdated { logo: "", config: "", upload_interval: "0", - inflation_share_weight: "0", + inflation_share_weight: "", min_delegation: "0", max_bundle_size: "0", storage_provider_id: 0, @@ -982,8 +982,8 @@ export const EventPoolUpdated = { if (message.upload_interval !== "0") { writer.uint32(56).uint64(message.upload_interval); } - if (message.inflation_share_weight !== "0") { - writer.uint32(64).uint64(message.inflation_share_weight); + if (message.inflation_share_weight !== "") { + writer.uint32(66).string(message.inflation_share_weight); } if (message.min_delegation !== "0") { writer.uint32(72).uint64(message.min_delegation); @@ -1057,11 +1057,11 @@ export const EventPoolUpdated = { message.upload_interval = longToString(reader.uint64() as Long); continue; case 8: - if (tag !== 64) { + if (tag !== 66) { break; } - message.inflation_share_weight = longToString(reader.uint64() as Long); + message.inflation_share_weight = reader.string(); continue; case 9: if (tag !== 72) { @@ -1111,7 +1111,7 @@ export const EventPoolUpdated = { upload_interval: isSet(object.upload_interval) ? globalThis.String(object.upload_interval) : "0", inflation_share_weight: isSet(object.inflation_share_weight) ? globalThis.String(object.inflation_share_weight) - : "0", + : "", min_delegation: isSet(object.min_delegation) ? globalThis.String(object.min_delegation) : "0", max_bundle_size: isSet(object.max_bundle_size) ? globalThis.String(object.max_bundle_size) : "0", storage_provider_id: isSet(object.storage_provider_id) ? globalThis.Number(object.storage_provider_id) : 0, @@ -1142,7 +1142,7 @@ export const EventPoolUpdated = { if (message.upload_interval !== "0") { obj.upload_interval = message.upload_interval; } - if (message.inflation_share_weight !== "0") { + if (message.inflation_share_weight !== "") { obj.inflation_share_weight = message.inflation_share_weight; } if (message.min_delegation !== "0") { @@ -1172,7 +1172,7 @@ export const EventPoolUpdated = { message.logo = object.logo ?? ""; message.config = object.config ?? ""; message.upload_interval = object.upload_interval ?? "0"; - message.inflation_share_weight = object.inflation_share_weight ?? "0"; + message.inflation_share_weight = object.inflation_share_weight ?? ""; message.min_delegation = object.min_delegation ?? "0"; message.max_bundle_size = object.max_bundle_size ?? "0"; message.storage_provider_id = object.storage_provider_id ?? 0; diff --git a/common/types/src/client/kyve/pool/v1beta1/genesis.ts b/common/types/src/client/kyve/pool/v1beta1/genesis.ts index d48a82be..9c6e5893 100644 --- a/common/types/src/client/kyve/pool/v1beta1/genesis.ts +++ b/common/types/src/client/kyve/pool/v1beta1/genesis.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: kyve/pool/v1beta1/genesis.proto diff --git a/common/types/src/client/kyve/pool/v1beta1/params.ts b/common/types/src/client/kyve/pool/v1beta1/params.ts index f451b94a..8c995e04 100644 --- a/common/types/src/client/kyve/pool/v1beta1/params.ts +++ b/common/types/src/client/kyve/pool/v1beta1/params.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: kyve/pool/v1beta1/params.proto diff --git a/common/types/src/client/kyve/pool/v1beta1/pool.ts b/common/types/src/client/kyve/pool/v1beta1/pool.ts index b7521d62..cbcfbe10 100644 --- a/common/types/src/client/kyve/pool/v1beta1/pool.ts +++ b/common/types/src/client/kyve/pool/v1beta1/pool.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: kyve/pool/v1beta1/pool.proto @@ -411,7 +411,7 @@ function createBasePool(): Pool { current_index: "0", total_bundles: "0", upload_interval: "0", - inflation_share_weight: "0", + inflation_share_weight: "", min_delegation: "0", max_bundle_size: "0", disabled: false, @@ -458,8 +458,8 @@ export const Pool = { if (message.upload_interval !== "0") { writer.uint32(88).uint64(message.upload_interval); } - if (message.inflation_share_weight !== "0") { - writer.uint32(96).uint64(message.inflation_share_weight); + if (message.inflation_share_weight !== "") { + writer.uint32(98).string(message.inflation_share_weight); } if (message.min_delegation !== "0") { writer.uint32(104).uint64(message.min_delegation); @@ -573,11 +573,11 @@ export const Pool = { message.upload_interval = longToString(reader.uint64() as Long); continue; case 12: - if (tag !== 96) { + if (tag !== 98) { break; } - message.inflation_share_weight = longToString(reader.uint64() as Long); + message.inflation_share_weight = reader.string(); continue; case 13: if (tag !== 104) { @@ -659,7 +659,7 @@ export const Pool = { upload_interval: isSet(object.upload_interval) ? globalThis.String(object.upload_interval) : "0", inflation_share_weight: isSet(object.inflation_share_weight) ? globalThis.String(object.inflation_share_weight) - : "0", + : "", min_delegation: isSet(object.min_delegation) ? globalThis.String(object.min_delegation) : "0", max_bundle_size: isSet(object.max_bundle_size) ? globalThis.String(object.max_bundle_size) : "0", disabled: isSet(object.disabled) ? globalThis.Boolean(object.disabled) : false, @@ -710,7 +710,7 @@ export const Pool = { if (message.upload_interval !== "0") { obj.upload_interval = message.upload_interval; } - if (message.inflation_share_weight !== "0") { + if (message.inflation_share_weight !== "") { obj.inflation_share_weight = message.inflation_share_weight; } if (message.min_delegation !== "0") { @@ -756,7 +756,7 @@ export const Pool = { message.current_index = object.current_index ?? "0"; message.total_bundles = object.total_bundles ?? "0"; message.upload_interval = object.upload_interval ?? "0"; - message.inflation_share_weight = object.inflation_share_weight ?? "0"; + message.inflation_share_weight = object.inflation_share_weight ?? ""; message.min_delegation = object.min_delegation ?? "0"; message.max_bundle_size = object.max_bundle_size ?? "0"; message.disabled = object.disabled ?? false; diff --git a/common/types/src/client/kyve/pool/v1beta1/query.ts b/common/types/src/client/kyve/pool/v1beta1/query.ts index 8cf05544..82da8405 100644 --- a/common/types/src/client/kyve/pool/v1beta1/query.ts +++ b/common/types/src/client/kyve/pool/v1beta1/query.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: kyve/pool/v1beta1/query.proto diff --git a/common/types/src/client/kyve/pool/v1beta1/tx.ts b/common/types/src/client/kyve/pool/v1beta1/tx.ts index 2b54fb69..dd808ef7 100644 --- a/common/types/src/client/kyve/pool/v1beta1/tx.ts +++ b/common/types/src/client/kyve/pool/v1beta1/tx.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: kyve/pool/v1beta1/tx.proto @@ -139,7 +139,7 @@ function createBaseMsgCreatePool(): MsgCreatePool { config: "", start_key: "", upload_interval: "0", - inflation_share_weight: "0", + inflation_share_weight: "", min_delegation: "0", max_bundle_size: "0", version: "", @@ -173,8 +173,8 @@ export const MsgCreatePool = { if (message.upload_interval !== "0") { writer.uint32(56).uint64(message.upload_interval); } - if (message.inflation_share_weight !== "0") { - writer.uint32(64).uint64(message.inflation_share_weight); + if (message.inflation_share_weight !== "") { + writer.uint32(66).string(message.inflation_share_weight); } if (message.min_delegation !== "0") { writer.uint32(72).uint64(message.min_delegation); @@ -257,11 +257,11 @@ export const MsgCreatePool = { message.upload_interval = longToString(reader.uint64() as Long); continue; case 8: - if (tag !== 64) { + if (tag !== 66) { break; } - message.inflation_share_weight = longToString(reader.uint64() as Long); + message.inflation_share_weight = reader.string(); continue; case 9: if (tag !== 72) { @@ -332,7 +332,7 @@ export const MsgCreatePool = { upload_interval: isSet(object.upload_interval) ? globalThis.String(object.upload_interval) : "0", inflation_share_weight: isSet(object.inflation_share_weight) ? globalThis.String(object.inflation_share_weight) - : "0", + : "", min_delegation: isSet(object.min_delegation) ? globalThis.String(object.min_delegation) : "0", max_bundle_size: isSet(object.max_bundle_size) ? globalThis.String(object.max_bundle_size) : "0", version: isSet(object.version) ? globalThis.String(object.version) : "", @@ -366,7 +366,7 @@ export const MsgCreatePool = { if (message.upload_interval !== "0") { obj.upload_interval = message.upload_interval; } - if (message.inflation_share_weight !== "0") { + if (message.inflation_share_weight !== "") { obj.inflation_share_weight = message.inflation_share_weight; } if (message.min_delegation !== "0") { @@ -405,7 +405,7 @@ export const MsgCreatePool = { message.config = object.config ?? ""; message.start_key = object.start_key ?? ""; message.upload_interval = object.upload_interval ?? "0"; - message.inflation_share_weight = object.inflation_share_weight ?? "0"; + message.inflation_share_weight = object.inflation_share_weight ?? ""; message.min_delegation = object.min_delegation ?? "0"; message.max_bundle_size = object.max_bundle_size ?? "0"; message.version = object.version ?? ""; diff --git a/common/types/src/client/kyve/query/module/module.ts b/common/types/src/client/kyve/query/module/module.ts index 51604557..38ab6ab9 100644 --- a/common/types/src/client/kyve/query/module/module.ts +++ b/common/types/src/client/kyve/query/module/module.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: kyve/query/module/module.proto diff --git a/common/types/src/client/kyve/query/v1beta1/account.ts b/common/types/src/client/kyve/query/v1beta1/account.ts index ab020049..87e2b5be 100644 --- a/common/types/src/client/kyve/query/v1beta1/account.ts +++ b/common/types/src/client/kyve/query/v1beta1/account.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: kyve/query/v1beta1/account.proto diff --git a/common/types/src/client/kyve/query/v1beta1/bundles.ts b/common/types/src/client/kyve/query/v1beta1/bundles.ts index 4c5e6812..0ae1c2dc 100644 --- a/common/types/src/client/kyve/query/v1beta1/bundles.ts +++ b/common/types/src/client/kyve/query/v1beta1/bundles.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: kyve/query/v1beta1/bundles.proto @@ -100,8 +100,39 @@ export interface QueryFinalizedBundleRequest { /** QueryFinalizedBundleResponse is the response type for the Query/Staker RPC method. */ export interface QueryFinalizedBundleResponse { - /** finalized_bundles ... */ - finalized_bundles?: FinalizedBundle | undefined; + /** pool_id in which the bundle was created */ + pool_id: string; + /** id is is integrated with each valid bundle produced. */ + id: string; + /** storage_id is the id with which the data can be retrieved from the configured data provider */ + storage_id: string; + /** uploader is the address of the staker who submitted this bundle */ + uploader: string; + /** from_index is the index from where the bundle starts (inclusive) */ + from_index: string; + /** to_index is the index to which the bundle goes (exclusive) */ + to_index: string; + /** from_key is the key of the first data item in the bundle proposal */ + from_key: string; + /** to_key the key of the last data item in the bundle */ + to_key: string; + /** bundle_summary is a summary of the bundle. */ + bundle_summary: string; + /** data_hash is a sha256 hash of the uploaded data. */ + data_hash: string; + /** finalized_at contains details of the block that finalized this bundle. */ + finalized_at?: + | FinalizedAt + | undefined; + /** storage_provider_id the id of the storage provider where the bundle is stored */ + storage_provider_id: string; + /** compression_id the id of the compression type with which the data was compressed */ + compression_id: string; + /** + * stake_security defines the amount of stake which was present in the pool during the finalization of the bundle. + * This field was added in schema version 2. Bundles finalized before that return `null`. + */ + stake_security?: StakeSecurity | undefined; } /** QueryCurrentVoteStatusRequest is the request type for the Query/Staker RPC method. */ @@ -845,13 +876,67 @@ export const QueryFinalizedBundleRequest = { }; function createBaseQueryFinalizedBundleResponse(): QueryFinalizedBundleResponse { - return { finalized_bundles: undefined }; + return { + pool_id: "0", + id: "0", + storage_id: "", + uploader: "", + from_index: "0", + to_index: "0", + from_key: "", + to_key: "", + bundle_summary: "", + data_hash: "", + finalized_at: undefined, + storage_provider_id: "0", + compression_id: "0", + stake_security: undefined, + }; } export const QueryFinalizedBundleResponse = { encode(message: QueryFinalizedBundleResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.finalized_bundles !== undefined) { - FinalizedBundle.encode(message.finalized_bundles, writer.uint32(10).fork()).ldelim(); + if (message.pool_id !== "0") { + writer.uint32(8).uint64(message.pool_id); + } + if (message.id !== "0") { + writer.uint32(16).uint64(message.id); + } + if (message.storage_id !== "") { + writer.uint32(26).string(message.storage_id); + } + if (message.uploader !== "") { + writer.uint32(34).string(message.uploader); + } + if (message.from_index !== "0") { + writer.uint32(40).uint64(message.from_index); + } + if (message.to_index !== "0") { + writer.uint32(48).uint64(message.to_index); + } + if (message.from_key !== "") { + writer.uint32(90).string(message.from_key); + } + if (message.to_key !== "") { + writer.uint32(58).string(message.to_key); + } + if (message.bundle_summary !== "") { + writer.uint32(66).string(message.bundle_summary); + } + if (message.data_hash !== "") { + writer.uint32(74).string(message.data_hash); + } + if (message.finalized_at !== undefined) { + FinalizedAt.encode(message.finalized_at, writer.uint32(82).fork()).ldelim(); + } + if (message.storage_provider_id !== "0") { + writer.uint32(96).uint64(message.storage_provider_id); + } + if (message.compression_id !== "0") { + writer.uint32(104).uint64(message.compression_id); + } + if (message.stake_security !== undefined) { + StakeSecurity.encode(message.stake_security, writer.uint32(114).fork()).ldelim(); } return writer; }, @@ -864,11 +949,102 @@ export const QueryFinalizedBundleResponse = { const tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (tag !== 10) { + if (tag !== 8) { + break; + } + + message.pool_id = longToString(reader.uint64() as Long); + continue; + case 2: + if (tag !== 16) { + break; + } + + message.id = longToString(reader.uint64() as Long); + continue; + case 3: + if (tag !== 26) { + break; + } + + message.storage_id = reader.string(); + continue; + case 4: + if (tag !== 34) { + break; + } + + message.uploader = reader.string(); + continue; + case 5: + if (tag !== 40) { break; } - message.finalized_bundles = FinalizedBundle.decode(reader, reader.uint32()); + message.from_index = longToString(reader.uint64() as Long); + continue; + case 6: + if (tag !== 48) { + break; + } + + message.to_index = longToString(reader.uint64() as Long); + continue; + case 11: + if (tag !== 90) { + break; + } + + message.from_key = reader.string(); + continue; + case 7: + if (tag !== 58) { + break; + } + + message.to_key = reader.string(); + continue; + case 8: + if (tag !== 66) { + break; + } + + message.bundle_summary = reader.string(); + continue; + case 9: + if (tag !== 74) { + break; + } + + message.data_hash = reader.string(); + continue; + case 10: + if (tag !== 82) { + break; + } + + message.finalized_at = FinalizedAt.decode(reader, reader.uint32()); + continue; + case 12: + if (tag !== 96) { + break; + } + + message.storage_provider_id = longToString(reader.uint64() as Long); + continue; + case 13: + if (tag !== 104) { + break; + } + + message.compression_id = longToString(reader.uint64() as Long); + continue; + case 14: + if (tag !== 114) { + break; + } + + message.stake_security = StakeSecurity.decode(reader, reader.uint32()); continue; } if ((tag & 7) === 4 || tag === 0) { @@ -881,16 +1057,66 @@ export const QueryFinalizedBundleResponse = { fromJSON(object: any): QueryFinalizedBundleResponse { return { - finalized_bundles: isSet(object.finalized_bundles) - ? FinalizedBundle.fromJSON(object.finalized_bundles) - : undefined, + pool_id: isSet(object.pool_id) ? globalThis.String(object.pool_id) : "0", + id: isSet(object.id) ? globalThis.String(object.id) : "0", + storage_id: isSet(object.storage_id) ? globalThis.String(object.storage_id) : "", + uploader: isSet(object.uploader) ? globalThis.String(object.uploader) : "", + from_index: isSet(object.from_index) ? globalThis.String(object.from_index) : "0", + to_index: isSet(object.to_index) ? globalThis.String(object.to_index) : "0", + from_key: isSet(object.from_key) ? globalThis.String(object.from_key) : "", + to_key: isSet(object.to_key) ? globalThis.String(object.to_key) : "", + bundle_summary: isSet(object.bundle_summary) ? globalThis.String(object.bundle_summary) : "", + data_hash: isSet(object.data_hash) ? globalThis.String(object.data_hash) : "", + finalized_at: isSet(object.finalized_at) ? FinalizedAt.fromJSON(object.finalized_at) : undefined, + storage_provider_id: isSet(object.storage_provider_id) ? globalThis.String(object.storage_provider_id) : "0", + compression_id: isSet(object.compression_id) ? globalThis.String(object.compression_id) : "0", + stake_security: isSet(object.stake_security) ? StakeSecurity.fromJSON(object.stake_security) : undefined, }; }, toJSON(message: QueryFinalizedBundleResponse): unknown { const obj: any = {}; - if (message.finalized_bundles !== undefined) { - obj.finalized_bundles = FinalizedBundle.toJSON(message.finalized_bundles); + if (message.pool_id !== "0") { + obj.pool_id = message.pool_id; + } + if (message.id !== "0") { + obj.id = message.id; + } + if (message.storage_id !== "") { + obj.storage_id = message.storage_id; + } + if (message.uploader !== "") { + obj.uploader = message.uploader; + } + if (message.from_index !== "0") { + obj.from_index = message.from_index; + } + if (message.to_index !== "0") { + obj.to_index = message.to_index; + } + if (message.from_key !== "") { + obj.from_key = message.from_key; + } + if (message.to_key !== "") { + obj.to_key = message.to_key; + } + if (message.bundle_summary !== "") { + obj.bundle_summary = message.bundle_summary; + } + if (message.data_hash !== "") { + obj.data_hash = message.data_hash; + } + if (message.finalized_at !== undefined) { + obj.finalized_at = FinalizedAt.toJSON(message.finalized_at); + } + if (message.storage_provider_id !== "0") { + obj.storage_provider_id = message.storage_provider_id; + } + if (message.compression_id !== "0") { + obj.compression_id = message.compression_id; + } + if (message.stake_security !== undefined) { + obj.stake_security = StakeSecurity.toJSON(message.stake_security); } return obj; }, @@ -900,8 +1126,23 @@ export const QueryFinalizedBundleResponse = { }, fromPartial, I>>(object: I): QueryFinalizedBundleResponse { const message = createBaseQueryFinalizedBundleResponse(); - message.finalized_bundles = (object.finalized_bundles !== undefined && object.finalized_bundles !== null) - ? FinalizedBundle.fromPartial(object.finalized_bundles) + message.pool_id = object.pool_id ?? "0"; + message.id = object.id ?? "0"; + message.storage_id = object.storage_id ?? ""; + message.uploader = object.uploader ?? ""; + message.from_index = object.from_index ?? "0"; + message.to_index = object.to_index ?? "0"; + message.from_key = object.from_key ?? ""; + message.to_key = object.to_key ?? ""; + message.bundle_summary = object.bundle_summary ?? ""; + message.data_hash = object.data_hash ?? ""; + message.finalized_at = (object.finalized_at !== undefined && object.finalized_at !== null) + ? FinalizedAt.fromPartial(object.finalized_at) + : undefined; + message.storage_provider_id = object.storage_provider_id ?? "0"; + message.compression_id = object.compression_id ?? "0"; + message.stake_security = (object.stake_security !== undefined && object.stake_security !== null) + ? StakeSecurity.fromPartial(object.stake_security) : undefined; return message; }, @@ -1581,7 +1822,7 @@ export interface QueryBundles { /** FinalizedBundles ... */ FinalizedBundlesQuery(request: QueryFinalizedBundlesRequest): Promise; /** FinalizedBundle ... */ - FinalizedBundleQuery(request: QueryFinalizedBundleRequest): Promise; + FinalizedBundleQuery(request: QueryFinalizedBundleRequest): Promise; /** CurrentVoteStatus ... */ CurrentVoteStatus(request: QueryCurrentVoteStatusRequest): Promise; /** CanValidate ... */ @@ -1612,10 +1853,10 @@ export class QueryBundlesClientImpl implements QueryBundles { return promise.then((data) => QueryFinalizedBundlesResponse.decode(_m0.Reader.create(data))); } - FinalizedBundleQuery(request: QueryFinalizedBundleRequest): Promise { + FinalizedBundleQuery(request: QueryFinalizedBundleRequest): Promise { const data = QueryFinalizedBundleRequest.encode(request).finish(); const promise = this.rpc.request(this.service, "FinalizedBundleQuery", data); - return promise.then((data) => FinalizedBundle.decode(_m0.Reader.create(data))); + return promise.then((data) => QueryFinalizedBundleResponse.decode(_m0.Reader.create(data))); } CurrentVoteStatus(request: QueryCurrentVoteStatusRequest): Promise { diff --git a/common/types/src/client/kyve/query/v1beta1/delegation.ts b/common/types/src/client/kyve/query/v1beta1/delegation.ts index e42b209a..39e5fe44 100644 --- a/common/types/src/client/kyve/query/v1beta1/delegation.ts +++ b/common/types/src/client/kyve/query/v1beta1/delegation.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: kyve/query/v1beta1/delegation.proto diff --git a/common/types/src/client/kyve/query/v1beta1/funders.ts b/common/types/src/client/kyve/query/v1beta1/funders.ts index e8b1dcd0..43535cf9 100644 --- a/common/types/src/client/kyve/query/v1beta1/funders.ts +++ b/common/types/src/client/kyve/query/v1beta1/funders.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: kyve/query/v1beta1/funders.proto diff --git a/common/types/src/client/kyve/query/v1beta1/params.ts b/common/types/src/client/kyve/query/v1beta1/params.ts index d0a927e0..cdd2a5ec 100644 --- a/common/types/src/client/kyve/query/v1beta1/params.ts +++ b/common/types/src/client/kyve/query/v1beta1/params.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: kyve/query/v1beta1/params.proto diff --git a/common/types/src/client/kyve/query/v1beta1/pools.ts b/common/types/src/client/kyve/query/v1beta1/pools.ts index e90b98a8..dd123737 100644 --- a/common/types/src/client/kyve/query/v1beta1/pools.ts +++ b/common/types/src/client/kyve/query/v1beta1/pools.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: kyve/query/v1beta1/pools.proto diff --git a/common/types/src/client/kyve/query/v1beta1/query.ts b/common/types/src/client/kyve/query/v1beta1/query.ts index a512c68a..55fb94f7 100644 --- a/common/types/src/client/kyve/query/v1beta1/query.ts +++ b/common/types/src/client/kyve/query/v1beta1/query.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: kyve/query/v1beta1/query.proto @@ -180,7 +180,7 @@ function createBaseBasicPool(): BasicPool { name: "", runtime: "", logo: "", - inflation_share_weight: "0", + inflation_share_weight: "", upload_interval: "0", total_funds: [], total_delegation: "0", @@ -202,8 +202,8 @@ export const BasicPool = { if (message.logo !== "") { writer.uint32(34).string(message.logo); } - if (message.inflation_share_weight !== "0") { - writer.uint32(40).uint64(message.inflation_share_weight); + if (message.inflation_share_weight !== "") { + writer.uint32(42).string(message.inflation_share_weight); } if (message.upload_interval !== "0") { writer.uint32(48).uint64(message.upload_interval); @@ -256,11 +256,11 @@ export const BasicPool = { message.logo = reader.string(); continue; case 5: - if (tag !== 40) { + if (tag !== 42) { break; } - message.inflation_share_weight = longToString(reader.uint64() as Long); + message.inflation_share_weight = reader.string(); continue; case 6: if (tag !== 48) { @@ -307,7 +307,7 @@ export const BasicPool = { logo: isSet(object.logo) ? globalThis.String(object.logo) : "", inflation_share_weight: isSet(object.inflation_share_weight) ? globalThis.String(object.inflation_share_weight) - : "0", + : "", upload_interval: isSet(object.upload_interval) ? globalThis.String(object.upload_interval) : "0", total_funds: globalThis.Array.isArray(object?.total_funds) ? object.total_funds.map((e: any) => Coin.fromJSON(e)) @@ -331,7 +331,7 @@ export const BasicPool = { if (message.logo !== "") { obj.logo = message.logo; } - if (message.inflation_share_weight !== "0") { + if (message.inflation_share_weight !== "") { obj.inflation_share_weight = message.inflation_share_weight; } if (message.upload_interval !== "0") { @@ -358,7 +358,7 @@ export const BasicPool = { message.name = object.name ?? ""; message.runtime = object.runtime ?? ""; message.logo = object.logo ?? ""; - message.inflation_share_weight = object.inflation_share_weight ?? "0"; + message.inflation_share_weight = object.inflation_share_weight ?? ""; message.upload_interval = object.upload_interval ?? "0"; message.total_funds = object.total_funds?.map((e) => Coin.fromPartial(e)) || []; message.total_delegation = object.total_delegation ?? "0"; diff --git a/common/types/src/client/kyve/query/v1beta1/stakers.ts b/common/types/src/client/kyve/query/v1beta1/stakers.ts index 9bb3fc1e..7c8b1158 100644 --- a/common/types/src/client/kyve/query/v1beta1/stakers.ts +++ b/common/types/src/client/kyve/query/v1beta1/stakers.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: kyve/query/v1beta1/stakers.proto diff --git a/common/types/src/client/kyve/stakers/module/module.ts b/common/types/src/client/kyve/stakers/module/module.ts index a5570665..8848d210 100644 --- a/common/types/src/client/kyve/stakers/module/module.ts +++ b/common/types/src/client/kyve/stakers/module/module.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: kyve/stakers/module/module.proto diff --git a/common/types/src/client/kyve/stakers/v1beta1/events.ts b/common/types/src/client/kyve/stakers/v1beta1/events.ts index ae783bc0..e61d6df4 100644 --- a/common/types/src/client/kyve/stakers/v1beta1/events.ts +++ b/common/types/src/client/kyve/stakers/v1beta1/events.ts @@ -1,13 +1,12 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: kyve/stakers/v1beta1/events.proto /* eslint-disable */ import Long from "long"; import _m0 from "protobufjs/minimal"; -import { Coin } from "../../../cosmos/base/v1beta1/coin"; import { Params } from "./params"; export const protobufPackage = "kyve.stakers.v1beta1"; @@ -79,8 +78,8 @@ export interface EventUpdateCommission { export interface EventClaimCommissionRewards { /** staker is the account address of the protocol node. */ staker: string; - /** amount is the amount of the commission rewards claimed */ - amount: Coin[]; + /** amounts is the amount of the commission rewards claimed */ + amounts: string; } /** @@ -503,7 +502,7 @@ export const EventUpdateCommission = { }; function createBaseEventClaimCommissionRewards(): EventClaimCommissionRewards { - return { staker: "", amount: [] }; + return { staker: "", amounts: "" }; } export const EventClaimCommissionRewards = { @@ -511,8 +510,8 @@ export const EventClaimCommissionRewards = { if (message.staker !== "") { writer.uint32(10).string(message.staker); } - for (const v of message.amount) { - Coin.encode(v!, writer.uint32(18).fork()).ldelim(); + if (message.amounts !== "") { + writer.uint32(18).string(message.amounts); } return writer; }, @@ -536,7 +535,7 @@ export const EventClaimCommissionRewards = { break; } - message.amount.push(Coin.decode(reader, reader.uint32())); + message.amounts = reader.string(); continue; } if ((tag & 7) === 4 || tag === 0) { @@ -550,7 +549,7 @@ export const EventClaimCommissionRewards = { fromJSON(object: any): EventClaimCommissionRewards { return { staker: isSet(object.staker) ? globalThis.String(object.staker) : "", - amount: globalThis.Array.isArray(object?.amount) ? object.amount.map((e: any) => Coin.fromJSON(e)) : [], + amounts: isSet(object.amounts) ? globalThis.String(object.amounts) : "", }; }, @@ -559,8 +558,8 @@ export const EventClaimCommissionRewards = { if (message.staker !== "") { obj.staker = message.staker; } - if (message.amount?.length) { - obj.amount = message.amount.map((e) => Coin.toJSON(e)); + if (message.amounts !== "") { + obj.amounts = message.amounts; } return obj; }, @@ -571,7 +570,7 @@ export const EventClaimCommissionRewards = { fromPartial, I>>(object: I): EventClaimCommissionRewards { const message = createBaseEventClaimCommissionRewards(); message.staker = object.staker ?? ""; - message.amount = object.amount?.map((e) => Coin.fromPartial(e)) || []; + message.amounts = object.amounts ?? ""; return message; }, }; diff --git a/common/types/src/client/kyve/stakers/v1beta1/genesis.ts b/common/types/src/client/kyve/stakers/v1beta1/genesis.ts index 883ae6a8..c9eecdf9 100644 --- a/common/types/src/client/kyve/stakers/v1beta1/genesis.ts +++ b/common/types/src/client/kyve/stakers/v1beta1/genesis.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: kyve/stakers/v1beta1/genesis.proto diff --git a/common/types/src/client/kyve/stakers/v1beta1/params.ts b/common/types/src/client/kyve/stakers/v1beta1/params.ts index cdc9d7ca..15a53283 100644 --- a/common/types/src/client/kyve/stakers/v1beta1/params.ts +++ b/common/types/src/client/kyve/stakers/v1beta1/params.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: kyve/stakers/v1beta1/params.proto diff --git a/common/types/src/client/kyve/stakers/v1beta1/query.ts b/common/types/src/client/kyve/stakers/v1beta1/query.ts index 287746eb..3dc7c9b9 100644 --- a/common/types/src/client/kyve/stakers/v1beta1/query.ts +++ b/common/types/src/client/kyve/stakers/v1beta1/query.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: kyve/stakers/v1beta1/query.proto diff --git a/common/types/src/client/kyve/stakers/v1beta1/stakers.ts b/common/types/src/client/kyve/stakers/v1beta1/stakers.ts index 53a46996..258b0a80 100644 --- a/common/types/src/client/kyve/stakers/v1beta1/stakers.ts +++ b/common/types/src/client/kyve/stakers/v1beta1/stakers.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: kyve/stakers/v1beta1/stakers.proto diff --git a/common/types/src/client/kyve/stakers/v1beta1/tx.ts b/common/types/src/client/kyve/stakers/v1beta1/tx.ts index f84267dc..f7e98a4e 100644 --- a/common/types/src/client/kyve/stakers/v1beta1/tx.ts +++ b/common/types/src/client/kyve/stakers/v1beta1/tx.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: kyve/stakers/v1beta1/tx.proto @@ -64,8 +64,8 @@ export interface MsgUpdateCommissionResponse { export interface MsgClaimCommissionRewards { /** creator ... */ creator: string; - /** amount ... */ - amount: Coin[]; + /** amounts ... */ + amounts: Coin[]; } /** MsgClaimCommissionRewardsResponse ... */ @@ -539,7 +539,7 @@ export const MsgUpdateCommissionResponse = { }; function createBaseMsgClaimCommissionRewards(): MsgClaimCommissionRewards { - return { creator: "", amount: [] }; + return { creator: "", amounts: [] }; } export const MsgClaimCommissionRewards = { @@ -547,7 +547,7 @@ export const MsgClaimCommissionRewards = { if (message.creator !== "") { writer.uint32(10).string(message.creator); } - for (const v of message.amount) { + for (const v of message.amounts) { Coin.encode(v!, writer.uint32(18).fork()).ldelim(); } return writer; @@ -572,7 +572,7 @@ export const MsgClaimCommissionRewards = { break; } - message.amount.push(Coin.decode(reader, reader.uint32())); + message.amounts.push(Coin.decode(reader, reader.uint32())); continue; } if ((tag & 7) === 4 || tag === 0) { @@ -586,7 +586,7 @@ export const MsgClaimCommissionRewards = { fromJSON(object: any): MsgClaimCommissionRewards { return { creator: isSet(object.creator) ? globalThis.String(object.creator) : "", - amount: globalThis.Array.isArray(object?.amount) ? object.amount.map((e: any) => Coin.fromJSON(e)) : [], + amounts: globalThis.Array.isArray(object?.amounts) ? object.amounts.map((e: any) => Coin.fromJSON(e)) : [], }; }, @@ -595,8 +595,8 @@ export const MsgClaimCommissionRewards = { if (message.creator !== "") { obj.creator = message.creator; } - if (message.amount?.length) { - obj.amount = message.amount.map((e) => Coin.toJSON(e)); + if (message.amounts?.length) { + obj.amounts = message.amounts.map((e) => Coin.toJSON(e)); } return obj; }, @@ -607,7 +607,7 @@ export const MsgClaimCommissionRewards = { fromPartial, I>>(object: I): MsgClaimCommissionRewards { const message = createBaseMsgClaimCommissionRewards(); message.creator = object.creator ?? ""; - message.amount = object.amount?.map((e) => Coin.fromPartial(e)) || []; + message.amounts = object.amounts?.map((e) => Coin.fromPartial(e)) || []; return message; }, }; diff --git a/common/types/src/client/kyve/team/module/module.ts b/common/types/src/client/kyve/team/module/module.ts index 74938b0a..f4c0c974 100644 --- a/common/types/src/client/kyve/team/module/module.ts +++ b/common/types/src/client/kyve/team/module/module.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: kyve/team/module/module.proto diff --git a/common/types/src/client/kyve/team/v1beta1/events.ts b/common/types/src/client/kyve/team/v1beta1/events.ts index e2acd254..75994fac 100644 --- a/common/types/src/client/kyve/team/v1beta1/events.ts +++ b/common/types/src/client/kyve/team/v1beta1/events.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: kyve/team/v1beta1/events.proto diff --git a/common/types/src/client/kyve/team/v1beta1/genesis.ts b/common/types/src/client/kyve/team/v1beta1/genesis.ts index bbfe6756..3e2b74ce 100644 --- a/common/types/src/client/kyve/team/v1beta1/genesis.ts +++ b/common/types/src/client/kyve/team/v1beta1/genesis.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: kyve/team/v1beta1/genesis.proto diff --git a/common/types/src/client/kyve/team/v1beta1/query.ts b/common/types/src/client/kyve/team/v1beta1/query.ts index 1f049298..df9c4533 100644 --- a/common/types/src/client/kyve/team/v1beta1/query.ts +++ b/common/types/src/client/kyve/team/v1beta1/query.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: kyve/team/v1beta1/query.proto diff --git a/common/types/src/client/kyve/team/v1beta1/team.ts b/common/types/src/client/kyve/team/v1beta1/team.ts index 80152a7f..4e1ecf26 100644 --- a/common/types/src/client/kyve/team/v1beta1/team.ts +++ b/common/types/src/client/kyve/team/v1beta1/team.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: kyve/team/v1beta1/team.proto diff --git a/common/types/src/client/kyve/team/v1beta1/tx.ts b/common/types/src/client/kyve/team/v1beta1/tx.ts index b16326a5..19fd3bb6 100644 --- a/common/types/src/client/kyve/team/v1beta1/tx.ts +++ b/common/types/src/client/kyve/team/v1beta1/tx.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: kyve/team/v1beta1/tx.proto diff --git a/common/types/src/lcd/amino/amino.ts b/common/types/src/lcd/amino/amino.ts index 9dee64db..804a46c0 100644 --- a/common/types/src/lcd/amino/amino.ts +++ b/common/types/src/lcd/amino/amino.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: amino/amino.proto diff --git a/common/types/src/lcd/cosmos/app/v1alpha1/module.ts b/common/types/src/lcd/cosmos/app/v1alpha1/module.ts index 8434c20f..49b4ccc5 100644 --- a/common/types/src/lcd/cosmos/app/v1alpha1/module.ts +++ b/common/types/src/lcd/cosmos/app/v1alpha1/module.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: cosmos/app/v1alpha1/module.proto diff --git a/common/types/src/lcd/cosmos/base/query/v1beta1/pagination.ts b/common/types/src/lcd/cosmos/base/query/v1beta1/pagination.ts index 21a4c8c1..2dd71f6b 100644 --- a/common/types/src/lcd/cosmos/base/query/v1beta1/pagination.ts +++ b/common/types/src/lcd/cosmos/base/query/v1beta1/pagination.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: cosmos/base/query/v1beta1/pagination.proto diff --git a/common/types/src/lcd/cosmos/base/v1beta1/coin.ts b/common/types/src/lcd/cosmos/base/v1beta1/coin.ts index 36e9d5cf..25ad32cf 100644 --- a/common/types/src/lcd/cosmos/base/v1beta1/coin.ts +++ b/common/types/src/lcd/cosmos/base/v1beta1/coin.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: cosmos/base/v1beta1/coin.proto diff --git a/common/types/src/lcd/cosmos/gov/v1/gov.ts b/common/types/src/lcd/cosmos/gov/v1/gov.ts index b0e066dd..290bd6f6 100644 --- a/common/types/src/lcd/cosmos/gov/v1/gov.ts +++ b/common/types/src/lcd/cosmos/gov/v1/gov.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: cosmos/gov/v1/gov.proto diff --git a/common/types/src/lcd/cosmos/gov/v1/tx.ts b/common/types/src/lcd/cosmos/gov/v1/tx.ts index 04f29bc2..68149f0c 100644 --- a/common/types/src/lcd/cosmos/gov/v1/tx.ts +++ b/common/types/src/lcd/cosmos/gov/v1/tx.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: cosmos/gov/v1/tx.proto diff --git a/common/types/src/lcd/cosmos/msg/v1/msg.ts b/common/types/src/lcd/cosmos/msg/v1/msg.ts index 964a82b0..7012edff 100644 --- a/common/types/src/lcd/cosmos/msg/v1/msg.ts +++ b/common/types/src/lcd/cosmos/msg/v1/msg.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: cosmos/msg/v1/msg.proto diff --git a/common/types/src/lcd/cosmos_proto/cosmos.ts b/common/types/src/lcd/cosmos_proto/cosmos.ts index ee769568..7a90439d 100644 --- a/common/types/src/lcd/cosmos_proto/cosmos.ts +++ b/common/types/src/lcd/cosmos_proto/cosmos.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: cosmos_proto/cosmos.proto diff --git a/common/types/src/lcd/gogoproto/gogo.ts b/common/types/src/lcd/gogoproto/gogo.ts index f8d6a43c..edd73fe6 100644 --- a/common/types/src/lcd/gogoproto/gogo.ts +++ b/common/types/src/lcd/gogoproto/gogo.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: gogoproto/gogo.proto diff --git a/common/types/src/lcd/google/api/annotations.ts b/common/types/src/lcd/google/api/annotations.ts index 9bb063ea..1d1b2d5f 100644 --- a/common/types/src/lcd/google/api/annotations.ts +++ b/common/types/src/lcd/google/api/annotations.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: google/api/annotations.proto diff --git a/common/types/src/lcd/google/api/http.ts b/common/types/src/lcd/google/api/http.ts index 00c47d78..0b105734 100644 --- a/common/types/src/lcd/google/api/http.ts +++ b/common/types/src/lcd/google/api/http.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: google/api/http.proto diff --git a/common/types/src/lcd/google/protobuf/any.ts b/common/types/src/lcd/google/protobuf/any.ts index df2bb7f9..69bacf8e 100644 --- a/common/types/src/lcd/google/protobuf/any.ts +++ b/common/types/src/lcd/google/protobuf/any.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: google/protobuf/any.proto diff --git a/common/types/src/lcd/google/protobuf/duration.ts b/common/types/src/lcd/google/protobuf/duration.ts index 99dc3ea9..68f69d05 100644 --- a/common/types/src/lcd/google/protobuf/duration.ts +++ b/common/types/src/lcd/google/protobuf/duration.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: google/protobuf/duration.proto diff --git a/common/types/src/lcd/google/protobuf/timestamp.ts b/common/types/src/lcd/google/protobuf/timestamp.ts index 684c2ab2..84095fd4 100644 --- a/common/types/src/lcd/google/protobuf/timestamp.ts +++ b/common/types/src/lcd/google/protobuf/timestamp.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: google/protobuf/timestamp.proto diff --git a/common/types/src/lcd/kyve/bundles/module/module.ts b/common/types/src/lcd/kyve/bundles/module/module.ts index f289c2b1..f025fd37 100644 --- a/common/types/src/lcd/kyve/bundles/module/module.ts +++ b/common/types/src/lcd/kyve/bundles/module/module.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: kyve/bundles/module/module.proto diff --git a/common/types/src/lcd/kyve/bundles/v1beta1/bundles.ts b/common/types/src/lcd/kyve/bundles/v1beta1/bundles.ts index 46da7e97..de6c0569 100644 --- a/common/types/src/lcd/kyve/bundles/v1beta1/bundles.ts +++ b/common/types/src/lcd/kyve/bundles/v1beta1/bundles.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: kyve/bundles/v1beta1/bundles.proto diff --git a/common/types/src/lcd/kyve/bundles/v1beta1/events.ts b/common/types/src/lcd/kyve/bundles/v1beta1/events.ts index 6fcb6c9f..19ea8196 100644 --- a/common/types/src/lcd/kyve/bundles/v1beta1/events.ts +++ b/common/types/src/lcd/kyve/bundles/v1beta1/events.ts @@ -1,13 +1,12 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: kyve/bundles/v1beta1/events.proto /* eslint-disable */ import Long from "long"; import _m0 from "protobufjs/minimal"; -import { Coin } from "../../../cosmos/base/v1beta1/coin"; import { BundleStatus, bundleStatusFromJSON, bundleStatusToJSON, bundleStatusToNumber } from "./bundles"; import { Params } from "./params"; import { VoteType, voteTypeFromJSON, voteTypeToJSON, voteTypeToNumber } from "./tx"; @@ -113,20 +112,20 @@ export interface EventBundleFinalized { /** status of the finalized bundle */ status: BundleStatus; /** amount which funders provided to the total bundle reward */ - funders_payout: Coin[]; + funders_payout: string; /** amount which the inflation pool provided to the total reward (in ukyve) */ inflation_payout: string; /** rewards transferred to treasury */ - reward_treasury: Coin[]; + reward_treasury: string; /** - * reward_uploader_commission are the commission rewards of the uploader. - * if the uploader has no delegations the delegation rewards are included here + * reward_uploader are the total rewards (commission + storage cost) + * the uploader received */ - reward_uploader_commission: Coin[]; + reward_uploader: string; /** rewardDelegation rewards distributed among all delegators */ - reward_delegation: Coin[]; + reward_delegation: string; /** rewardTotal the total bundle reward */ - reward_total: Coin[]; + reward_total: string; /** finalized_at the block height where the bundle got finalized */ finalized_at: string; /** uploader the address of the uploader of this bundle */ @@ -134,7 +133,12 @@ export interface EventBundleFinalized { /** next_uploader the address of the next uploader after this bundle */ next_uploader: string; /** reward_uploader_storage_cost are the storage cost rewards for the uploader */ - reward_uploader_storage_cost: Coin[]; + reward_uploader_storage_cost: string; + /** + * reward_uploader_commission are the commission rewards of the uploader. + * if the uploader has no delegations the delegation rewards are included here + */ + reward_uploader_commission: string; } /** @@ -667,16 +671,17 @@ function createBaseEventBundleFinalized(): EventBundleFinalized { abstain: "0", total: "0", status: BundleStatus.BUNDLE_STATUS_UNSPECIFIED, - funders_payout: [], + funders_payout: "", inflation_payout: "0", - reward_treasury: [], - reward_uploader_commission: [], - reward_delegation: [], - reward_total: [], + reward_treasury: "", + reward_uploader: "", + reward_delegation: "", + reward_total: "", finalized_at: "0", uploader: "", next_uploader: "", - reward_uploader_storage_cost: [], + reward_uploader_storage_cost: "", + reward_uploader_commission: "", }; } @@ -703,23 +708,23 @@ export const EventBundleFinalized = { if (message.status !== BundleStatus.BUNDLE_STATUS_UNSPECIFIED) { writer.uint32(56).int32(bundleStatusToNumber(message.status)); } - for (const v of message.funders_payout) { - Coin.encode(v!, writer.uint32(66).fork()).ldelim(); + if (message.funders_payout !== "") { + writer.uint32(66).string(message.funders_payout); } if (message.inflation_payout !== "0") { writer.uint32(72).uint64(message.inflation_payout); } - for (const v of message.reward_treasury) { - Coin.encode(v!, writer.uint32(82).fork()).ldelim(); + if (message.reward_treasury !== "") { + writer.uint32(82).string(message.reward_treasury); } - for (const v of message.reward_uploader_commission) { - Coin.encode(v!, writer.uint32(90).fork()).ldelim(); + if (message.reward_uploader !== "") { + writer.uint32(90).string(message.reward_uploader); } - for (const v of message.reward_delegation) { - Coin.encode(v!, writer.uint32(98).fork()).ldelim(); + if (message.reward_delegation !== "") { + writer.uint32(98).string(message.reward_delegation); } - for (const v of message.reward_total) { - Coin.encode(v!, writer.uint32(106).fork()).ldelim(); + if (message.reward_total !== "") { + writer.uint32(106).string(message.reward_total); } if (message.finalized_at !== "0") { writer.uint32(112).uint64(message.finalized_at); @@ -730,8 +735,11 @@ export const EventBundleFinalized = { if (message.next_uploader !== "") { writer.uint32(130).string(message.next_uploader); } - for (const v of message.reward_uploader_storage_cost) { - Coin.encode(v!, writer.uint32(138).fork()).ldelim(); + if (message.reward_uploader_storage_cost !== "") { + writer.uint32(138).string(message.reward_uploader_storage_cost); + } + if (message.reward_uploader_commission !== "") { + writer.uint32(146).string(message.reward_uploader_commission); } return writer; }, @@ -797,7 +805,7 @@ export const EventBundleFinalized = { break; } - message.funders_payout.push(Coin.decode(reader, reader.uint32())); + message.funders_payout = reader.string(); continue; case 9: if (tag !== 72) { @@ -811,28 +819,28 @@ export const EventBundleFinalized = { break; } - message.reward_treasury.push(Coin.decode(reader, reader.uint32())); + message.reward_treasury = reader.string(); continue; case 11: if (tag !== 90) { break; } - message.reward_uploader_commission.push(Coin.decode(reader, reader.uint32())); + message.reward_uploader = reader.string(); continue; case 12: if (tag !== 98) { break; } - message.reward_delegation.push(Coin.decode(reader, reader.uint32())); + message.reward_delegation = reader.string(); continue; case 13: if (tag !== 106) { break; } - message.reward_total.push(Coin.decode(reader, reader.uint32())); + message.reward_total = reader.string(); continue; case 14: if (tag !== 112) { @@ -860,7 +868,14 @@ export const EventBundleFinalized = { break; } - message.reward_uploader_storage_cost.push(Coin.decode(reader, reader.uint32())); + message.reward_uploader_storage_cost = reader.string(); + continue; + case 18: + if (tag !== 146) { + break; + } + + message.reward_uploader_commission = reader.string(); continue; } if ((tag & 7) === 4 || tag === 0) { @@ -880,28 +895,21 @@ export const EventBundleFinalized = { abstain: isSet(object.abstain) ? globalThis.String(object.abstain) : "0", total: isSet(object.total) ? globalThis.String(object.total) : "0", status: isSet(object.status) ? bundleStatusFromJSON(object.status) : BundleStatus.BUNDLE_STATUS_UNSPECIFIED, - funders_payout: globalThis.Array.isArray(object?.funders_payout) - ? object.funders_payout.map((e: any) => Coin.fromJSON(e)) - : [], + funders_payout: isSet(object.funders_payout) ? globalThis.String(object.funders_payout) : "", inflation_payout: isSet(object.inflation_payout) ? globalThis.String(object.inflation_payout) : "0", - reward_treasury: globalThis.Array.isArray(object?.reward_treasury) - ? object.reward_treasury.map((e: any) => Coin.fromJSON(e)) - : [], - reward_uploader_commission: globalThis.Array.isArray(object?.reward_uploader_commission) - ? object.reward_uploader_commission.map((e: any) => Coin.fromJSON(e)) - : [], - reward_delegation: globalThis.Array.isArray(object?.reward_delegation) - ? object.reward_delegation.map((e: any) => Coin.fromJSON(e)) - : [], - reward_total: globalThis.Array.isArray(object?.reward_total) - ? object.reward_total.map((e: any) => Coin.fromJSON(e)) - : [], + reward_treasury: isSet(object.reward_treasury) ? globalThis.String(object.reward_treasury) : "", + reward_uploader: isSet(object.reward_uploader) ? globalThis.String(object.reward_uploader) : "", + reward_delegation: isSet(object.reward_delegation) ? globalThis.String(object.reward_delegation) : "", + reward_total: isSet(object.reward_total) ? globalThis.String(object.reward_total) : "", finalized_at: isSet(object.finalized_at) ? globalThis.String(object.finalized_at) : "0", uploader: isSet(object.uploader) ? globalThis.String(object.uploader) : "", next_uploader: isSet(object.next_uploader) ? globalThis.String(object.next_uploader) : "", - reward_uploader_storage_cost: globalThis.Array.isArray(object?.reward_uploader_storage_cost) - ? object.reward_uploader_storage_cost.map((e: any) => Coin.fromJSON(e)) - : [], + reward_uploader_storage_cost: isSet(object.reward_uploader_storage_cost) + ? globalThis.String(object.reward_uploader_storage_cost) + : "", + reward_uploader_commission: isSet(object.reward_uploader_commission) + ? globalThis.String(object.reward_uploader_commission) + : "", }; }, @@ -928,23 +936,23 @@ export const EventBundleFinalized = { if (message.status !== BundleStatus.BUNDLE_STATUS_UNSPECIFIED) { obj.status = bundleStatusToJSON(message.status); } - if (message.funders_payout?.length) { - obj.funders_payout = message.funders_payout.map((e) => Coin.toJSON(e)); + if (message.funders_payout !== "") { + obj.funders_payout = message.funders_payout; } if (message.inflation_payout !== "0") { obj.inflation_payout = message.inflation_payout; } - if (message.reward_treasury?.length) { - obj.reward_treasury = message.reward_treasury.map((e) => Coin.toJSON(e)); + if (message.reward_treasury !== "") { + obj.reward_treasury = message.reward_treasury; } - if (message.reward_uploader_commission?.length) { - obj.reward_uploader_commission = message.reward_uploader_commission.map((e) => Coin.toJSON(e)); + if (message.reward_uploader !== "") { + obj.reward_uploader = message.reward_uploader; } - if (message.reward_delegation?.length) { - obj.reward_delegation = message.reward_delegation.map((e) => Coin.toJSON(e)); + if (message.reward_delegation !== "") { + obj.reward_delegation = message.reward_delegation; } - if (message.reward_total?.length) { - obj.reward_total = message.reward_total.map((e) => Coin.toJSON(e)); + if (message.reward_total !== "") { + obj.reward_total = message.reward_total; } if (message.finalized_at !== "0") { obj.finalized_at = message.finalized_at; @@ -955,8 +963,11 @@ export const EventBundleFinalized = { if (message.next_uploader !== "") { obj.next_uploader = message.next_uploader; } - if (message.reward_uploader_storage_cost?.length) { - obj.reward_uploader_storage_cost = message.reward_uploader_storage_cost.map((e) => Coin.toJSON(e)); + if (message.reward_uploader_storage_cost !== "") { + obj.reward_uploader_storage_cost = message.reward_uploader_storage_cost; + } + if (message.reward_uploader_commission !== "") { + obj.reward_uploader_commission = message.reward_uploader_commission; } return obj; }, @@ -973,16 +984,17 @@ export const EventBundleFinalized = { message.abstain = object.abstain ?? "0"; message.total = object.total ?? "0"; message.status = object.status ?? BundleStatus.BUNDLE_STATUS_UNSPECIFIED; - message.funders_payout = object.funders_payout?.map((e) => Coin.fromPartial(e)) || []; + message.funders_payout = object.funders_payout ?? ""; message.inflation_payout = object.inflation_payout ?? "0"; - message.reward_treasury = object.reward_treasury?.map((e) => Coin.fromPartial(e)) || []; - message.reward_uploader_commission = object.reward_uploader_commission?.map((e) => Coin.fromPartial(e)) || []; - message.reward_delegation = object.reward_delegation?.map((e) => Coin.fromPartial(e)) || []; - message.reward_total = object.reward_total?.map((e) => Coin.fromPartial(e)) || []; + message.reward_treasury = object.reward_treasury ?? ""; + message.reward_uploader = object.reward_uploader ?? ""; + message.reward_delegation = object.reward_delegation ?? ""; + message.reward_total = object.reward_total ?? ""; message.finalized_at = object.finalized_at ?? "0"; message.uploader = object.uploader ?? ""; message.next_uploader = object.next_uploader ?? ""; - message.reward_uploader_storage_cost = object.reward_uploader_storage_cost?.map((e) => Coin.fromPartial(e)) || []; + message.reward_uploader_storage_cost = object.reward_uploader_storage_cost ?? ""; + message.reward_uploader_commission = object.reward_uploader_commission ?? ""; return message; }, }; diff --git a/common/types/src/lcd/kyve/bundles/v1beta1/genesis.ts b/common/types/src/lcd/kyve/bundles/v1beta1/genesis.ts index 3bf6d42d..8cdf9ace 100644 --- a/common/types/src/lcd/kyve/bundles/v1beta1/genesis.ts +++ b/common/types/src/lcd/kyve/bundles/v1beta1/genesis.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: kyve/bundles/v1beta1/genesis.proto diff --git a/common/types/src/lcd/kyve/bundles/v1beta1/params.ts b/common/types/src/lcd/kyve/bundles/v1beta1/params.ts index 404aa97e..6194f7eb 100644 --- a/common/types/src/lcd/kyve/bundles/v1beta1/params.ts +++ b/common/types/src/lcd/kyve/bundles/v1beta1/params.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: kyve/bundles/v1beta1/params.proto diff --git a/common/types/src/lcd/kyve/bundles/v1beta1/query.ts b/common/types/src/lcd/kyve/bundles/v1beta1/query.ts index 3719dbdd..9d07008b 100644 --- a/common/types/src/lcd/kyve/bundles/v1beta1/query.ts +++ b/common/types/src/lcd/kyve/bundles/v1beta1/query.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: kyve/bundles/v1beta1/query.proto diff --git a/common/types/src/lcd/kyve/bundles/v1beta1/tx.ts b/common/types/src/lcd/kyve/bundles/v1beta1/tx.ts index cb64fbc0..d5d9748f 100644 --- a/common/types/src/lcd/kyve/bundles/v1beta1/tx.ts +++ b/common/types/src/lcd/kyve/bundles/v1beta1/tx.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: kyve/bundles/v1beta1/tx.proto diff --git a/common/types/src/lcd/kyve/delegation/module/module.ts b/common/types/src/lcd/kyve/delegation/module/module.ts index 4a0836c6..5e1a934d 100644 --- a/common/types/src/lcd/kyve/delegation/module/module.ts +++ b/common/types/src/lcd/kyve/delegation/module/module.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: kyve/delegation/module/module.proto diff --git a/common/types/src/lcd/kyve/delegation/v1beta1/delegation.ts b/common/types/src/lcd/kyve/delegation/v1beta1/delegation.ts index 891680b0..f1484fde 100644 --- a/common/types/src/lcd/kyve/delegation/v1beta1/delegation.ts +++ b/common/types/src/lcd/kyve/delegation/v1beta1/delegation.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: kyve/delegation/v1beta1/delegation.proto diff --git a/common/types/src/lcd/kyve/delegation/v1beta1/events.ts b/common/types/src/lcd/kyve/delegation/v1beta1/events.ts index 46e02d4b..23688366 100644 --- a/common/types/src/lcd/kyve/delegation/v1beta1/events.ts +++ b/common/types/src/lcd/kyve/delegation/v1beta1/events.ts @@ -1,13 +1,12 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: kyve/delegation/v1beta1/events.proto /* eslint-disable */ import Long from "long"; import _m0 from "protobufjs/minimal"; -import { Coin } from "../../../cosmos/base/v1beta1/coin"; import { SlashType, slashTypeFromJSON, slashTypeToJSON, slashTypeToNumber } from "./delegation"; import { Params } from "./params"; @@ -98,8 +97,8 @@ export interface EventWithdrawRewards { address: string; /** staker is the account address of the protocol node the users withdraws from. */ staker: string; - /** amount ... */ - amount: Coin[]; + /** amounts ... */ + amounts: string; } /** @@ -599,7 +598,7 @@ export const EventRedelegate = { }; function createBaseEventWithdrawRewards(): EventWithdrawRewards { - return { address: "", staker: "", amount: [] }; + return { address: "", staker: "", amounts: "" }; } export const EventWithdrawRewards = { @@ -610,8 +609,8 @@ export const EventWithdrawRewards = { if (message.staker !== "") { writer.uint32(18).string(message.staker); } - for (const v of message.amount) { - Coin.encode(v!, writer.uint32(26).fork()).ldelim(); + if (message.amounts !== "") { + writer.uint32(26).string(message.amounts); } return writer; }, @@ -642,7 +641,7 @@ export const EventWithdrawRewards = { break; } - message.amount.push(Coin.decode(reader, reader.uint32())); + message.amounts = reader.string(); continue; } if ((tag & 7) === 4 || tag === 0) { @@ -657,7 +656,7 @@ export const EventWithdrawRewards = { return { address: isSet(object.address) ? globalThis.String(object.address) : "", staker: isSet(object.staker) ? globalThis.String(object.staker) : "", - amount: globalThis.Array.isArray(object?.amount) ? object.amount.map((e: any) => Coin.fromJSON(e)) : [], + amounts: isSet(object.amounts) ? globalThis.String(object.amounts) : "", }; }, @@ -669,8 +668,8 @@ export const EventWithdrawRewards = { if (message.staker !== "") { obj.staker = message.staker; } - if (message.amount?.length) { - obj.amount = message.amount.map((e) => Coin.toJSON(e)); + if (message.amounts !== "") { + obj.amounts = message.amounts; } return obj; }, @@ -682,7 +681,7 @@ export const EventWithdrawRewards = { const message = createBaseEventWithdrawRewards(); message.address = object.address ?? ""; message.staker = object.staker ?? ""; - message.amount = object.amount?.map((e) => Coin.fromPartial(e)) || []; + message.amounts = object.amounts ?? ""; return message; }, }; diff --git a/common/types/src/lcd/kyve/delegation/v1beta1/genesis.ts b/common/types/src/lcd/kyve/delegation/v1beta1/genesis.ts index 403c0f99..88f9492a 100644 --- a/common/types/src/lcd/kyve/delegation/v1beta1/genesis.ts +++ b/common/types/src/lcd/kyve/delegation/v1beta1/genesis.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: kyve/delegation/v1beta1/genesis.proto diff --git a/common/types/src/lcd/kyve/delegation/v1beta1/params.ts b/common/types/src/lcd/kyve/delegation/v1beta1/params.ts index 0868bbc3..eaa8393c 100644 --- a/common/types/src/lcd/kyve/delegation/v1beta1/params.ts +++ b/common/types/src/lcd/kyve/delegation/v1beta1/params.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: kyve/delegation/v1beta1/params.proto diff --git a/common/types/src/lcd/kyve/delegation/v1beta1/query.ts b/common/types/src/lcd/kyve/delegation/v1beta1/query.ts index 1574a710..51787f12 100644 --- a/common/types/src/lcd/kyve/delegation/v1beta1/query.ts +++ b/common/types/src/lcd/kyve/delegation/v1beta1/query.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: kyve/delegation/v1beta1/query.proto diff --git a/common/types/src/lcd/kyve/delegation/v1beta1/tx.ts b/common/types/src/lcd/kyve/delegation/v1beta1/tx.ts index 3583aec6..52c7b68b 100644 --- a/common/types/src/lcd/kyve/delegation/v1beta1/tx.ts +++ b/common/types/src/lcd/kyve/delegation/v1beta1/tx.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: kyve/delegation/v1beta1/tx.proto diff --git a/common/types/src/lcd/kyve/funders/module/module.ts b/common/types/src/lcd/kyve/funders/module/module.ts index a1f793ad..66639f77 100644 --- a/common/types/src/lcd/kyve/funders/module/module.ts +++ b/common/types/src/lcd/kyve/funders/module/module.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: kyve/funders/module/module.proto diff --git a/common/types/src/lcd/kyve/funders/v1beta1/events.ts b/common/types/src/lcd/kyve/funders/v1beta1/events.ts index 741869a6..6711aa41 100644 --- a/common/types/src/lcd/kyve/funders/v1beta1/events.ts +++ b/common/types/src/lcd/kyve/funders/v1beta1/events.ts @@ -1,13 +1,12 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: kyve/funders/v1beta1/events.proto /* eslint-disable */ import Long from "long"; import _m0 from "protobufjs/minimal"; -import { Coin } from "../../../cosmos/base/v1beta1/coin"; import { Params } from "./params"; export const protobufPackage = "kyve.funders.v1beta1"; @@ -77,9 +76,9 @@ export interface EventFundPool { /** address is the account address of the pool funder. */ address: string; /** amounts is a list of coins the funder has funded */ - amounts: Coin[]; + amounts: string; /** amounts_per_bundle is a list of coins the funder wants to distribute per finalized bundle */ - amounts_per_bundle: Coin[]; + amounts_per_bundle: string; } /** @@ -92,7 +91,7 @@ export interface EventDefundPool { /** address is the account address of the pool funder. */ address: string; /** amounts is a list of coins that the funder wants to defund */ - amounts: Coin[]; + amounts: string; } /** @@ -466,7 +465,7 @@ export const EventUpdateFunder = { }; function createBaseEventFundPool(): EventFundPool { - return { pool_id: "0", address: "", amounts: [], amounts_per_bundle: [] }; + return { pool_id: "0", address: "", amounts: "", amounts_per_bundle: "" }; } export const EventFundPool = { @@ -477,11 +476,11 @@ export const EventFundPool = { if (message.address !== "") { writer.uint32(18).string(message.address); } - for (const v of message.amounts) { - Coin.encode(v!, writer.uint32(26).fork()).ldelim(); + if (message.amounts !== "") { + writer.uint32(26).string(message.amounts); } - for (const v of message.amounts_per_bundle) { - Coin.encode(v!, writer.uint32(34).fork()).ldelim(); + if (message.amounts_per_bundle !== "") { + writer.uint32(34).string(message.amounts_per_bundle); } return writer; }, @@ -512,14 +511,14 @@ export const EventFundPool = { break; } - message.amounts.push(Coin.decode(reader, reader.uint32())); + message.amounts = reader.string(); continue; case 4: if (tag !== 34) { break; } - message.amounts_per_bundle.push(Coin.decode(reader, reader.uint32())); + message.amounts_per_bundle = reader.string(); continue; } if ((tag & 7) === 4 || tag === 0) { @@ -534,10 +533,8 @@ export const EventFundPool = { return { pool_id: isSet(object.pool_id) ? globalThis.String(object.pool_id) : "0", address: isSet(object.address) ? globalThis.String(object.address) : "", - amounts: globalThis.Array.isArray(object?.amounts) ? object.amounts.map((e: any) => Coin.fromJSON(e)) : [], - amounts_per_bundle: globalThis.Array.isArray(object?.amounts_per_bundle) - ? object.amounts_per_bundle.map((e: any) => Coin.fromJSON(e)) - : [], + amounts: isSet(object.amounts) ? globalThis.String(object.amounts) : "", + amounts_per_bundle: isSet(object.amounts_per_bundle) ? globalThis.String(object.amounts_per_bundle) : "", }; }, @@ -549,11 +546,11 @@ export const EventFundPool = { if (message.address !== "") { obj.address = message.address; } - if (message.amounts?.length) { - obj.amounts = message.amounts.map((e) => Coin.toJSON(e)); + if (message.amounts !== "") { + obj.amounts = message.amounts; } - if (message.amounts_per_bundle?.length) { - obj.amounts_per_bundle = message.amounts_per_bundle.map((e) => Coin.toJSON(e)); + if (message.amounts_per_bundle !== "") { + obj.amounts_per_bundle = message.amounts_per_bundle; } return obj; }, @@ -565,14 +562,14 @@ export const EventFundPool = { const message = createBaseEventFundPool(); message.pool_id = object.pool_id ?? "0"; message.address = object.address ?? ""; - message.amounts = object.amounts?.map((e) => Coin.fromPartial(e)) || []; - message.amounts_per_bundle = object.amounts_per_bundle?.map((e) => Coin.fromPartial(e)) || []; + message.amounts = object.amounts ?? ""; + message.amounts_per_bundle = object.amounts_per_bundle ?? ""; return message; }, }; function createBaseEventDefundPool(): EventDefundPool { - return { pool_id: "0", address: "", amounts: [] }; + return { pool_id: "0", address: "", amounts: "" }; } export const EventDefundPool = { @@ -583,8 +580,8 @@ export const EventDefundPool = { if (message.address !== "") { writer.uint32(18).string(message.address); } - for (const v of message.amounts) { - Coin.encode(v!, writer.uint32(26).fork()).ldelim(); + if (message.amounts !== "") { + writer.uint32(26).string(message.amounts); } return writer; }, @@ -615,7 +612,7 @@ export const EventDefundPool = { break; } - message.amounts.push(Coin.decode(reader, reader.uint32())); + message.amounts = reader.string(); continue; } if ((tag & 7) === 4 || tag === 0) { @@ -630,7 +627,7 @@ export const EventDefundPool = { return { pool_id: isSet(object.pool_id) ? globalThis.String(object.pool_id) : "0", address: isSet(object.address) ? globalThis.String(object.address) : "", - amounts: globalThis.Array.isArray(object?.amounts) ? object.amounts.map((e: any) => Coin.fromJSON(e)) : [], + amounts: isSet(object.amounts) ? globalThis.String(object.amounts) : "", }; }, @@ -642,8 +639,8 @@ export const EventDefundPool = { if (message.address !== "") { obj.address = message.address; } - if (message.amounts?.length) { - obj.amounts = message.amounts.map((e) => Coin.toJSON(e)); + if (message.amounts !== "") { + obj.amounts = message.amounts; } return obj; }, @@ -655,7 +652,7 @@ export const EventDefundPool = { const message = createBaseEventDefundPool(); message.pool_id = object.pool_id ?? "0"; message.address = object.address ?? ""; - message.amounts = object.amounts?.map((e) => Coin.fromPartial(e)) || []; + message.amounts = object.amounts ?? ""; return message; }, }; diff --git a/common/types/src/lcd/kyve/funders/v1beta1/funders.ts b/common/types/src/lcd/kyve/funders/v1beta1/funders.ts index 477123ad..c8305c68 100644 --- a/common/types/src/lcd/kyve/funders/v1beta1/funders.ts +++ b/common/types/src/lcd/kyve/funders/v1beta1/funders.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: kyve/funders/v1beta1/funders.proto diff --git a/common/types/src/lcd/kyve/funders/v1beta1/genesis.ts b/common/types/src/lcd/kyve/funders/v1beta1/genesis.ts index 6d119ecf..5ba62375 100644 --- a/common/types/src/lcd/kyve/funders/v1beta1/genesis.ts +++ b/common/types/src/lcd/kyve/funders/v1beta1/genesis.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: kyve/funders/v1beta1/genesis.proto diff --git a/common/types/src/lcd/kyve/funders/v1beta1/params.ts b/common/types/src/lcd/kyve/funders/v1beta1/params.ts index 067e9e88..e1f1b19d 100644 --- a/common/types/src/lcd/kyve/funders/v1beta1/params.ts +++ b/common/types/src/lcd/kyve/funders/v1beta1/params.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: kyve/funders/v1beta1/params.proto @@ -20,14 +20,18 @@ export interface WhitelistCoinEntry { * needs to be unique */ coin_denom: string; + /** coin_decimals are the decimals of the coin */ + coin_decimals: number; /** * min_funding_amount is the minimum required amount of this denom that needs - * to be funded + * to be funded. It is of type math.Int since a uint64 is not sufficient for a + * coin with 18 decimals */ min_funding_amount: string; /** * min_funding_amount_per_bundle is the minimum required amount of this denom - * that needs to be funded per bundle + * that needs to be funded per bundle. It is of type math.Int since a uint64 + * is not sufficient for a coin with 18 decimals */ min_funding_amount_per_bundle: string; /** @@ -50,7 +54,13 @@ export interface Params { } function createBaseWhitelistCoinEntry(): WhitelistCoinEntry { - return { coin_denom: "", min_funding_amount: "0", min_funding_amount_per_bundle: "0", coin_weight: "" }; + return { + coin_denom: "", + coin_decimals: 0, + min_funding_amount: "", + min_funding_amount_per_bundle: "", + coin_weight: "", + }; } export const WhitelistCoinEntry = { @@ -58,14 +68,17 @@ export const WhitelistCoinEntry = { if (message.coin_denom !== "") { writer.uint32(10).string(message.coin_denom); } - if (message.min_funding_amount !== "0") { - writer.uint32(16).uint64(message.min_funding_amount); + if (message.coin_decimals !== 0) { + writer.uint32(16).uint32(message.coin_decimals); } - if (message.min_funding_amount_per_bundle !== "0") { - writer.uint32(24).uint64(message.min_funding_amount_per_bundle); + if (message.min_funding_amount !== "") { + writer.uint32(26).string(message.min_funding_amount); + } + if (message.min_funding_amount_per_bundle !== "") { + writer.uint32(34).string(message.min_funding_amount_per_bundle); } if (message.coin_weight !== "") { - writer.uint32(34).string(message.coin_weight); + writer.uint32(42).string(message.coin_weight); } return writer; }, @@ -89,20 +102,27 @@ export const WhitelistCoinEntry = { break; } - message.min_funding_amount = longToString(reader.uint64() as Long); + message.coin_decimals = reader.uint32(); continue; case 3: - if (tag !== 24) { + if (tag !== 26) { break; } - message.min_funding_amount_per_bundle = longToString(reader.uint64() as Long); + message.min_funding_amount = reader.string(); continue; case 4: if (tag !== 34) { break; } + message.min_funding_amount_per_bundle = reader.string(); + continue; + case 5: + if (tag !== 42) { + break; + } + message.coin_weight = reader.string(); continue; } @@ -117,10 +137,11 @@ export const WhitelistCoinEntry = { fromJSON(object: any): WhitelistCoinEntry { return { coin_denom: isSet(object.coin_denom) ? globalThis.String(object.coin_denom) : "", - min_funding_amount: isSet(object.min_funding_amount) ? globalThis.String(object.min_funding_amount) : "0", + coin_decimals: isSet(object.coin_decimals) ? globalThis.Number(object.coin_decimals) : 0, + min_funding_amount: isSet(object.min_funding_amount) ? globalThis.String(object.min_funding_amount) : "", min_funding_amount_per_bundle: isSet(object.min_funding_amount_per_bundle) ? globalThis.String(object.min_funding_amount_per_bundle) - : "0", + : "", coin_weight: isSet(object.coin_weight) ? globalThis.String(object.coin_weight) : "", }; }, @@ -130,10 +151,13 @@ export const WhitelistCoinEntry = { if (message.coin_denom !== "") { obj.coin_denom = message.coin_denom; } - if (message.min_funding_amount !== "0") { + if (message.coin_decimals !== 0) { + obj.coin_decimals = Math.round(message.coin_decimals); + } + if (message.min_funding_amount !== "") { obj.min_funding_amount = message.min_funding_amount; } - if (message.min_funding_amount_per_bundle !== "0") { + if (message.min_funding_amount_per_bundle !== "") { obj.min_funding_amount_per_bundle = message.min_funding_amount_per_bundle; } if (message.coin_weight !== "") { @@ -148,8 +172,9 @@ export const WhitelistCoinEntry = { fromPartial, I>>(object: I): WhitelistCoinEntry { const message = createBaseWhitelistCoinEntry(); message.coin_denom = object.coin_denom ?? ""; - message.min_funding_amount = object.min_funding_amount ?? "0"; - message.min_funding_amount_per_bundle = object.min_funding_amount_per_bundle ?? "0"; + message.coin_decimals = object.coin_decimals ?? 0; + message.min_funding_amount = object.min_funding_amount ?? ""; + message.min_funding_amount_per_bundle = object.min_funding_amount_per_bundle ?? ""; message.coin_weight = object.coin_weight ?? ""; return message; }, diff --git a/common/types/src/lcd/kyve/funders/v1beta1/query.ts b/common/types/src/lcd/kyve/funders/v1beta1/query.ts index dd5cb17c..0d1319bc 100644 --- a/common/types/src/lcd/kyve/funders/v1beta1/query.ts +++ b/common/types/src/lcd/kyve/funders/v1beta1/query.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: kyve/funders/v1beta1/query.proto diff --git a/common/types/src/lcd/kyve/funders/v1beta1/tx.ts b/common/types/src/lcd/kyve/funders/v1beta1/tx.ts index 1838b452..9ed8ce6a 100644 --- a/common/types/src/lcd/kyve/funders/v1beta1/tx.ts +++ b/common/types/src/lcd/kyve/funders/v1beta1/tx.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: kyve/funders/v1beta1/tx.proto diff --git a/common/types/src/lcd/kyve/global/module/module.ts b/common/types/src/lcd/kyve/global/module/module.ts index 659044ab..94447ab1 100644 --- a/common/types/src/lcd/kyve/global/module/module.ts +++ b/common/types/src/lcd/kyve/global/module/module.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: kyve/global/module/module.proto diff --git a/common/types/src/lcd/kyve/global/v1beta1/events.ts b/common/types/src/lcd/kyve/global/v1beta1/events.ts index d21b23ef..cecb3965 100644 --- a/common/types/src/lcd/kyve/global/v1beta1/events.ts +++ b/common/types/src/lcd/kyve/global/v1beta1/events.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: kyve/global/v1beta1/events.proto diff --git a/common/types/src/lcd/kyve/global/v1beta1/genesis.ts b/common/types/src/lcd/kyve/global/v1beta1/genesis.ts index 14af13ee..0209aa89 100644 --- a/common/types/src/lcd/kyve/global/v1beta1/genesis.ts +++ b/common/types/src/lcd/kyve/global/v1beta1/genesis.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: kyve/global/v1beta1/genesis.proto diff --git a/common/types/src/lcd/kyve/global/v1beta1/global.ts b/common/types/src/lcd/kyve/global/v1beta1/global.ts index a7b04716..3f6befde 100644 --- a/common/types/src/lcd/kyve/global/v1beta1/global.ts +++ b/common/types/src/lcd/kyve/global/v1beta1/global.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: kyve/global/v1beta1/global.proto diff --git a/common/types/src/lcd/kyve/global/v1beta1/query.ts b/common/types/src/lcd/kyve/global/v1beta1/query.ts index f1557a59..5aa88f4a 100644 --- a/common/types/src/lcd/kyve/global/v1beta1/query.ts +++ b/common/types/src/lcd/kyve/global/v1beta1/query.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: kyve/global/v1beta1/query.proto diff --git a/common/types/src/lcd/kyve/global/v1beta1/tx.ts b/common/types/src/lcd/kyve/global/v1beta1/tx.ts index e7e0953b..0170c465 100644 --- a/common/types/src/lcd/kyve/global/v1beta1/tx.ts +++ b/common/types/src/lcd/kyve/global/v1beta1/tx.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: kyve/global/v1beta1/tx.proto diff --git a/common/types/src/lcd/kyve/pool/module/module.ts b/common/types/src/lcd/kyve/pool/module/module.ts index 63de1f11..8733c748 100644 --- a/common/types/src/lcd/kyve/pool/module/module.ts +++ b/common/types/src/lcd/kyve/pool/module/module.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: kyve/pool/module/module.proto diff --git a/common/types/src/lcd/kyve/pool/v1beta1/events.ts b/common/types/src/lcd/kyve/pool/v1beta1/events.ts index 8e9ecff0..41176232 100644 --- a/common/types/src/lcd/kyve/pool/v1beta1/events.ts +++ b/common/types/src/lcd/kyve/pool/v1beta1/events.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: kyve/pool/v1beta1/events.proto @@ -314,7 +314,7 @@ function createBaseEventCreatePool(): EventCreatePool { config: "", start_key: "", upload_interval: "0", - inflation_share_weight: "0", + inflation_share_weight: "", min_delegation: "0", max_bundle_size: "0", version: "", @@ -348,8 +348,8 @@ export const EventCreatePool = { if (message.upload_interval !== "0") { writer.uint32(56).uint64(message.upload_interval); } - if (message.inflation_share_weight !== "0") { - writer.uint32(64).uint64(message.inflation_share_weight); + if (message.inflation_share_weight !== "") { + writer.uint32(66).string(message.inflation_share_weight); } if (message.min_delegation !== "0") { writer.uint32(72).uint64(message.min_delegation); @@ -432,11 +432,11 @@ export const EventCreatePool = { message.upload_interval = longToString(reader.uint64() as Long); continue; case 8: - if (tag !== 64) { + if (tag !== 66) { break; } - message.inflation_share_weight = longToString(reader.uint64() as Long); + message.inflation_share_weight = reader.string(); continue; case 9: if (tag !== 72) { @@ -507,7 +507,7 @@ export const EventCreatePool = { upload_interval: isSet(object.upload_interval) ? globalThis.String(object.upload_interval) : "0", inflation_share_weight: isSet(object.inflation_share_weight) ? globalThis.String(object.inflation_share_weight) - : "0", + : "", min_delegation: isSet(object.min_delegation) ? globalThis.String(object.min_delegation) : "0", max_bundle_size: isSet(object.max_bundle_size) ? globalThis.String(object.max_bundle_size) : "0", version: isSet(object.version) ? globalThis.String(object.version) : "", @@ -541,7 +541,7 @@ export const EventCreatePool = { if (message.upload_interval !== "0") { obj.upload_interval = message.upload_interval; } - if (message.inflation_share_weight !== "0") { + if (message.inflation_share_weight !== "") { obj.inflation_share_weight = message.inflation_share_weight; } if (message.min_delegation !== "0") { @@ -580,7 +580,7 @@ export const EventCreatePool = { message.config = object.config ?? ""; message.start_key = object.start_key ?? ""; message.upload_interval = object.upload_interval ?? "0"; - message.inflation_share_weight = object.inflation_share_weight ?? "0"; + message.inflation_share_weight = object.inflation_share_weight ?? ""; message.min_delegation = object.min_delegation ?? "0"; message.max_bundle_size = object.max_bundle_size ?? "0"; message.version = object.version ?? ""; @@ -951,7 +951,7 @@ function createBaseEventPoolUpdated(): EventPoolUpdated { logo: "", config: "", upload_interval: "0", - inflation_share_weight: "0", + inflation_share_weight: "", min_delegation: "0", max_bundle_size: "0", storage_provider_id: 0, @@ -982,8 +982,8 @@ export const EventPoolUpdated = { if (message.upload_interval !== "0") { writer.uint32(56).uint64(message.upload_interval); } - if (message.inflation_share_weight !== "0") { - writer.uint32(64).uint64(message.inflation_share_weight); + if (message.inflation_share_weight !== "") { + writer.uint32(66).string(message.inflation_share_weight); } if (message.min_delegation !== "0") { writer.uint32(72).uint64(message.min_delegation); @@ -1057,11 +1057,11 @@ export const EventPoolUpdated = { message.upload_interval = longToString(reader.uint64() as Long); continue; case 8: - if (tag !== 64) { + if (tag !== 66) { break; } - message.inflation_share_weight = longToString(reader.uint64() as Long); + message.inflation_share_weight = reader.string(); continue; case 9: if (tag !== 72) { @@ -1111,7 +1111,7 @@ export const EventPoolUpdated = { upload_interval: isSet(object.upload_interval) ? globalThis.String(object.upload_interval) : "0", inflation_share_weight: isSet(object.inflation_share_weight) ? globalThis.String(object.inflation_share_weight) - : "0", + : "", min_delegation: isSet(object.min_delegation) ? globalThis.String(object.min_delegation) : "0", max_bundle_size: isSet(object.max_bundle_size) ? globalThis.String(object.max_bundle_size) : "0", storage_provider_id: isSet(object.storage_provider_id) ? globalThis.Number(object.storage_provider_id) : 0, @@ -1142,7 +1142,7 @@ export const EventPoolUpdated = { if (message.upload_interval !== "0") { obj.upload_interval = message.upload_interval; } - if (message.inflation_share_weight !== "0") { + if (message.inflation_share_weight !== "") { obj.inflation_share_weight = message.inflation_share_weight; } if (message.min_delegation !== "0") { @@ -1172,7 +1172,7 @@ export const EventPoolUpdated = { message.logo = object.logo ?? ""; message.config = object.config ?? ""; message.upload_interval = object.upload_interval ?? "0"; - message.inflation_share_weight = object.inflation_share_weight ?? "0"; + message.inflation_share_weight = object.inflation_share_weight ?? ""; message.min_delegation = object.min_delegation ?? "0"; message.max_bundle_size = object.max_bundle_size ?? "0"; message.storage_provider_id = object.storage_provider_id ?? 0; diff --git a/common/types/src/lcd/kyve/pool/v1beta1/genesis.ts b/common/types/src/lcd/kyve/pool/v1beta1/genesis.ts index d48a82be..9c6e5893 100644 --- a/common/types/src/lcd/kyve/pool/v1beta1/genesis.ts +++ b/common/types/src/lcd/kyve/pool/v1beta1/genesis.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: kyve/pool/v1beta1/genesis.proto diff --git a/common/types/src/lcd/kyve/pool/v1beta1/params.ts b/common/types/src/lcd/kyve/pool/v1beta1/params.ts index f451b94a..8c995e04 100644 --- a/common/types/src/lcd/kyve/pool/v1beta1/params.ts +++ b/common/types/src/lcd/kyve/pool/v1beta1/params.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: kyve/pool/v1beta1/params.proto diff --git a/common/types/src/lcd/kyve/pool/v1beta1/pool.ts b/common/types/src/lcd/kyve/pool/v1beta1/pool.ts index 94f768b3..884ec321 100644 --- a/common/types/src/lcd/kyve/pool/v1beta1/pool.ts +++ b/common/types/src/lcd/kyve/pool/v1beta1/pool.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: kyve/pool/v1beta1/pool.proto @@ -435,7 +435,7 @@ function createBasePool(): Pool { current_index: "0", total_bundles: "0", upload_interval: "0", - inflation_share_weight: "0", + inflation_share_weight: "", min_delegation: "0", max_bundle_size: "0", disabled: false, @@ -482,8 +482,8 @@ export const Pool = { if (message.upload_interval !== "0") { writer.uint32(88).uint64(message.upload_interval); } - if (message.inflation_share_weight !== "0") { - writer.uint32(96).uint64(message.inflation_share_weight); + if (message.inflation_share_weight !== "") { + writer.uint32(98).string(message.inflation_share_weight); } if (message.min_delegation !== "0") { writer.uint32(104).uint64(message.min_delegation); @@ -597,11 +597,11 @@ export const Pool = { message.upload_interval = longToString(reader.uint64() as Long); continue; case 12: - if (tag !== 96) { + if (tag !== 98) { break; } - message.inflation_share_weight = longToString(reader.uint64() as Long); + message.inflation_share_weight = reader.string(); continue; case 13: if (tag !== 104) { @@ -683,7 +683,7 @@ export const Pool = { upload_interval: isSet(object.upload_interval) ? globalThis.String(object.upload_interval) : "0", inflation_share_weight: isSet(object.inflation_share_weight) ? globalThis.String(object.inflation_share_weight) - : "0", + : "", min_delegation: isSet(object.min_delegation) ? globalThis.String(object.min_delegation) : "0", max_bundle_size: isSet(object.max_bundle_size) ? globalThis.String(object.max_bundle_size) : "0", disabled: isSet(object.disabled) ? globalThis.Boolean(object.disabled) : false, @@ -734,7 +734,7 @@ export const Pool = { if (message.upload_interval !== "0") { obj.upload_interval = message.upload_interval; } - if (message.inflation_share_weight !== "0") { + if (message.inflation_share_weight !== "") { obj.inflation_share_weight = message.inflation_share_weight; } if (message.min_delegation !== "0") { @@ -780,7 +780,7 @@ export const Pool = { message.current_index = object.current_index ?? "0"; message.total_bundles = object.total_bundles ?? "0"; message.upload_interval = object.upload_interval ?? "0"; - message.inflation_share_weight = object.inflation_share_weight ?? "0"; + message.inflation_share_weight = object.inflation_share_weight ?? ""; message.min_delegation = object.min_delegation ?? "0"; message.max_bundle_size = object.max_bundle_size ?? "0"; message.disabled = object.disabled ?? false; diff --git a/common/types/src/lcd/kyve/pool/v1beta1/query.ts b/common/types/src/lcd/kyve/pool/v1beta1/query.ts index 8cf05544..82da8405 100644 --- a/common/types/src/lcd/kyve/pool/v1beta1/query.ts +++ b/common/types/src/lcd/kyve/pool/v1beta1/query.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: kyve/pool/v1beta1/query.proto diff --git a/common/types/src/lcd/kyve/pool/v1beta1/tx.ts b/common/types/src/lcd/kyve/pool/v1beta1/tx.ts index 2b54fb69..dd808ef7 100644 --- a/common/types/src/lcd/kyve/pool/v1beta1/tx.ts +++ b/common/types/src/lcd/kyve/pool/v1beta1/tx.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: kyve/pool/v1beta1/tx.proto @@ -139,7 +139,7 @@ function createBaseMsgCreatePool(): MsgCreatePool { config: "", start_key: "", upload_interval: "0", - inflation_share_weight: "0", + inflation_share_weight: "", min_delegation: "0", max_bundle_size: "0", version: "", @@ -173,8 +173,8 @@ export const MsgCreatePool = { if (message.upload_interval !== "0") { writer.uint32(56).uint64(message.upload_interval); } - if (message.inflation_share_weight !== "0") { - writer.uint32(64).uint64(message.inflation_share_weight); + if (message.inflation_share_weight !== "") { + writer.uint32(66).string(message.inflation_share_weight); } if (message.min_delegation !== "0") { writer.uint32(72).uint64(message.min_delegation); @@ -257,11 +257,11 @@ export const MsgCreatePool = { message.upload_interval = longToString(reader.uint64() as Long); continue; case 8: - if (tag !== 64) { + if (tag !== 66) { break; } - message.inflation_share_weight = longToString(reader.uint64() as Long); + message.inflation_share_weight = reader.string(); continue; case 9: if (tag !== 72) { @@ -332,7 +332,7 @@ export const MsgCreatePool = { upload_interval: isSet(object.upload_interval) ? globalThis.String(object.upload_interval) : "0", inflation_share_weight: isSet(object.inflation_share_weight) ? globalThis.String(object.inflation_share_weight) - : "0", + : "", min_delegation: isSet(object.min_delegation) ? globalThis.String(object.min_delegation) : "0", max_bundle_size: isSet(object.max_bundle_size) ? globalThis.String(object.max_bundle_size) : "0", version: isSet(object.version) ? globalThis.String(object.version) : "", @@ -366,7 +366,7 @@ export const MsgCreatePool = { if (message.upload_interval !== "0") { obj.upload_interval = message.upload_interval; } - if (message.inflation_share_weight !== "0") { + if (message.inflation_share_weight !== "") { obj.inflation_share_weight = message.inflation_share_weight; } if (message.min_delegation !== "0") { @@ -405,7 +405,7 @@ export const MsgCreatePool = { message.config = object.config ?? ""; message.start_key = object.start_key ?? ""; message.upload_interval = object.upload_interval ?? "0"; - message.inflation_share_weight = object.inflation_share_weight ?? "0"; + message.inflation_share_weight = object.inflation_share_weight ?? ""; message.min_delegation = object.min_delegation ?? "0"; message.max_bundle_size = object.max_bundle_size ?? "0"; message.version = object.version ?? ""; diff --git a/common/types/src/lcd/kyve/query/module/module.ts b/common/types/src/lcd/kyve/query/module/module.ts index 51604557..38ab6ab9 100644 --- a/common/types/src/lcd/kyve/query/module/module.ts +++ b/common/types/src/lcd/kyve/query/module/module.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: kyve/query/module/module.proto diff --git a/common/types/src/lcd/kyve/query/v1beta1/account.ts b/common/types/src/lcd/kyve/query/v1beta1/account.ts index ab020049..87e2b5be 100644 --- a/common/types/src/lcd/kyve/query/v1beta1/account.ts +++ b/common/types/src/lcd/kyve/query/v1beta1/account.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: kyve/query/v1beta1/account.proto diff --git a/common/types/src/lcd/kyve/query/v1beta1/bundles.ts b/common/types/src/lcd/kyve/query/v1beta1/bundles.ts index 4c5e6812..0ae1c2dc 100644 --- a/common/types/src/lcd/kyve/query/v1beta1/bundles.ts +++ b/common/types/src/lcd/kyve/query/v1beta1/bundles.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: kyve/query/v1beta1/bundles.proto @@ -100,8 +100,39 @@ export interface QueryFinalizedBundleRequest { /** QueryFinalizedBundleResponse is the response type for the Query/Staker RPC method. */ export interface QueryFinalizedBundleResponse { - /** finalized_bundles ... */ - finalized_bundles?: FinalizedBundle | undefined; + /** pool_id in which the bundle was created */ + pool_id: string; + /** id is is integrated with each valid bundle produced. */ + id: string; + /** storage_id is the id with which the data can be retrieved from the configured data provider */ + storage_id: string; + /** uploader is the address of the staker who submitted this bundle */ + uploader: string; + /** from_index is the index from where the bundle starts (inclusive) */ + from_index: string; + /** to_index is the index to which the bundle goes (exclusive) */ + to_index: string; + /** from_key is the key of the first data item in the bundle proposal */ + from_key: string; + /** to_key the key of the last data item in the bundle */ + to_key: string; + /** bundle_summary is a summary of the bundle. */ + bundle_summary: string; + /** data_hash is a sha256 hash of the uploaded data. */ + data_hash: string; + /** finalized_at contains details of the block that finalized this bundle. */ + finalized_at?: + | FinalizedAt + | undefined; + /** storage_provider_id the id of the storage provider where the bundle is stored */ + storage_provider_id: string; + /** compression_id the id of the compression type with which the data was compressed */ + compression_id: string; + /** + * stake_security defines the amount of stake which was present in the pool during the finalization of the bundle. + * This field was added in schema version 2. Bundles finalized before that return `null`. + */ + stake_security?: StakeSecurity | undefined; } /** QueryCurrentVoteStatusRequest is the request type for the Query/Staker RPC method. */ @@ -845,13 +876,67 @@ export const QueryFinalizedBundleRequest = { }; function createBaseQueryFinalizedBundleResponse(): QueryFinalizedBundleResponse { - return { finalized_bundles: undefined }; + return { + pool_id: "0", + id: "0", + storage_id: "", + uploader: "", + from_index: "0", + to_index: "0", + from_key: "", + to_key: "", + bundle_summary: "", + data_hash: "", + finalized_at: undefined, + storage_provider_id: "0", + compression_id: "0", + stake_security: undefined, + }; } export const QueryFinalizedBundleResponse = { encode(message: QueryFinalizedBundleResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.finalized_bundles !== undefined) { - FinalizedBundle.encode(message.finalized_bundles, writer.uint32(10).fork()).ldelim(); + if (message.pool_id !== "0") { + writer.uint32(8).uint64(message.pool_id); + } + if (message.id !== "0") { + writer.uint32(16).uint64(message.id); + } + if (message.storage_id !== "") { + writer.uint32(26).string(message.storage_id); + } + if (message.uploader !== "") { + writer.uint32(34).string(message.uploader); + } + if (message.from_index !== "0") { + writer.uint32(40).uint64(message.from_index); + } + if (message.to_index !== "0") { + writer.uint32(48).uint64(message.to_index); + } + if (message.from_key !== "") { + writer.uint32(90).string(message.from_key); + } + if (message.to_key !== "") { + writer.uint32(58).string(message.to_key); + } + if (message.bundle_summary !== "") { + writer.uint32(66).string(message.bundle_summary); + } + if (message.data_hash !== "") { + writer.uint32(74).string(message.data_hash); + } + if (message.finalized_at !== undefined) { + FinalizedAt.encode(message.finalized_at, writer.uint32(82).fork()).ldelim(); + } + if (message.storage_provider_id !== "0") { + writer.uint32(96).uint64(message.storage_provider_id); + } + if (message.compression_id !== "0") { + writer.uint32(104).uint64(message.compression_id); + } + if (message.stake_security !== undefined) { + StakeSecurity.encode(message.stake_security, writer.uint32(114).fork()).ldelim(); } return writer; }, @@ -864,11 +949,102 @@ export const QueryFinalizedBundleResponse = { const tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (tag !== 10) { + if (tag !== 8) { + break; + } + + message.pool_id = longToString(reader.uint64() as Long); + continue; + case 2: + if (tag !== 16) { + break; + } + + message.id = longToString(reader.uint64() as Long); + continue; + case 3: + if (tag !== 26) { + break; + } + + message.storage_id = reader.string(); + continue; + case 4: + if (tag !== 34) { + break; + } + + message.uploader = reader.string(); + continue; + case 5: + if (tag !== 40) { break; } - message.finalized_bundles = FinalizedBundle.decode(reader, reader.uint32()); + message.from_index = longToString(reader.uint64() as Long); + continue; + case 6: + if (tag !== 48) { + break; + } + + message.to_index = longToString(reader.uint64() as Long); + continue; + case 11: + if (tag !== 90) { + break; + } + + message.from_key = reader.string(); + continue; + case 7: + if (tag !== 58) { + break; + } + + message.to_key = reader.string(); + continue; + case 8: + if (tag !== 66) { + break; + } + + message.bundle_summary = reader.string(); + continue; + case 9: + if (tag !== 74) { + break; + } + + message.data_hash = reader.string(); + continue; + case 10: + if (tag !== 82) { + break; + } + + message.finalized_at = FinalizedAt.decode(reader, reader.uint32()); + continue; + case 12: + if (tag !== 96) { + break; + } + + message.storage_provider_id = longToString(reader.uint64() as Long); + continue; + case 13: + if (tag !== 104) { + break; + } + + message.compression_id = longToString(reader.uint64() as Long); + continue; + case 14: + if (tag !== 114) { + break; + } + + message.stake_security = StakeSecurity.decode(reader, reader.uint32()); continue; } if ((tag & 7) === 4 || tag === 0) { @@ -881,16 +1057,66 @@ export const QueryFinalizedBundleResponse = { fromJSON(object: any): QueryFinalizedBundleResponse { return { - finalized_bundles: isSet(object.finalized_bundles) - ? FinalizedBundle.fromJSON(object.finalized_bundles) - : undefined, + pool_id: isSet(object.pool_id) ? globalThis.String(object.pool_id) : "0", + id: isSet(object.id) ? globalThis.String(object.id) : "0", + storage_id: isSet(object.storage_id) ? globalThis.String(object.storage_id) : "", + uploader: isSet(object.uploader) ? globalThis.String(object.uploader) : "", + from_index: isSet(object.from_index) ? globalThis.String(object.from_index) : "0", + to_index: isSet(object.to_index) ? globalThis.String(object.to_index) : "0", + from_key: isSet(object.from_key) ? globalThis.String(object.from_key) : "", + to_key: isSet(object.to_key) ? globalThis.String(object.to_key) : "", + bundle_summary: isSet(object.bundle_summary) ? globalThis.String(object.bundle_summary) : "", + data_hash: isSet(object.data_hash) ? globalThis.String(object.data_hash) : "", + finalized_at: isSet(object.finalized_at) ? FinalizedAt.fromJSON(object.finalized_at) : undefined, + storage_provider_id: isSet(object.storage_provider_id) ? globalThis.String(object.storage_provider_id) : "0", + compression_id: isSet(object.compression_id) ? globalThis.String(object.compression_id) : "0", + stake_security: isSet(object.stake_security) ? StakeSecurity.fromJSON(object.stake_security) : undefined, }; }, toJSON(message: QueryFinalizedBundleResponse): unknown { const obj: any = {}; - if (message.finalized_bundles !== undefined) { - obj.finalized_bundles = FinalizedBundle.toJSON(message.finalized_bundles); + if (message.pool_id !== "0") { + obj.pool_id = message.pool_id; + } + if (message.id !== "0") { + obj.id = message.id; + } + if (message.storage_id !== "") { + obj.storage_id = message.storage_id; + } + if (message.uploader !== "") { + obj.uploader = message.uploader; + } + if (message.from_index !== "0") { + obj.from_index = message.from_index; + } + if (message.to_index !== "0") { + obj.to_index = message.to_index; + } + if (message.from_key !== "") { + obj.from_key = message.from_key; + } + if (message.to_key !== "") { + obj.to_key = message.to_key; + } + if (message.bundle_summary !== "") { + obj.bundle_summary = message.bundle_summary; + } + if (message.data_hash !== "") { + obj.data_hash = message.data_hash; + } + if (message.finalized_at !== undefined) { + obj.finalized_at = FinalizedAt.toJSON(message.finalized_at); + } + if (message.storage_provider_id !== "0") { + obj.storage_provider_id = message.storage_provider_id; + } + if (message.compression_id !== "0") { + obj.compression_id = message.compression_id; + } + if (message.stake_security !== undefined) { + obj.stake_security = StakeSecurity.toJSON(message.stake_security); } return obj; }, @@ -900,8 +1126,23 @@ export const QueryFinalizedBundleResponse = { }, fromPartial, I>>(object: I): QueryFinalizedBundleResponse { const message = createBaseQueryFinalizedBundleResponse(); - message.finalized_bundles = (object.finalized_bundles !== undefined && object.finalized_bundles !== null) - ? FinalizedBundle.fromPartial(object.finalized_bundles) + message.pool_id = object.pool_id ?? "0"; + message.id = object.id ?? "0"; + message.storage_id = object.storage_id ?? ""; + message.uploader = object.uploader ?? ""; + message.from_index = object.from_index ?? "0"; + message.to_index = object.to_index ?? "0"; + message.from_key = object.from_key ?? ""; + message.to_key = object.to_key ?? ""; + message.bundle_summary = object.bundle_summary ?? ""; + message.data_hash = object.data_hash ?? ""; + message.finalized_at = (object.finalized_at !== undefined && object.finalized_at !== null) + ? FinalizedAt.fromPartial(object.finalized_at) + : undefined; + message.storage_provider_id = object.storage_provider_id ?? "0"; + message.compression_id = object.compression_id ?? "0"; + message.stake_security = (object.stake_security !== undefined && object.stake_security !== null) + ? StakeSecurity.fromPartial(object.stake_security) : undefined; return message; }, @@ -1581,7 +1822,7 @@ export interface QueryBundles { /** FinalizedBundles ... */ FinalizedBundlesQuery(request: QueryFinalizedBundlesRequest): Promise; /** FinalizedBundle ... */ - FinalizedBundleQuery(request: QueryFinalizedBundleRequest): Promise; + FinalizedBundleQuery(request: QueryFinalizedBundleRequest): Promise; /** CurrentVoteStatus ... */ CurrentVoteStatus(request: QueryCurrentVoteStatusRequest): Promise; /** CanValidate ... */ @@ -1612,10 +1853,10 @@ export class QueryBundlesClientImpl implements QueryBundles { return promise.then((data) => QueryFinalizedBundlesResponse.decode(_m0.Reader.create(data))); } - FinalizedBundleQuery(request: QueryFinalizedBundleRequest): Promise { + FinalizedBundleQuery(request: QueryFinalizedBundleRequest): Promise { const data = QueryFinalizedBundleRequest.encode(request).finish(); const promise = this.rpc.request(this.service, "FinalizedBundleQuery", data); - return promise.then((data) => FinalizedBundle.decode(_m0.Reader.create(data))); + return promise.then((data) => QueryFinalizedBundleResponse.decode(_m0.Reader.create(data))); } CurrentVoteStatus(request: QueryCurrentVoteStatusRequest): Promise { diff --git a/common/types/src/lcd/kyve/query/v1beta1/delegation.ts b/common/types/src/lcd/kyve/query/v1beta1/delegation.ts index e42b209a..39e5fe44 100644 --- a/common/types/src/lcd/kyve/query/v1beta1/delegation.ts +++ b/common/types/src/lcd/kyve/query/v1beta1/delegation.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: kyve/query/v1beta1/delegation.proto diff --git a/common/types/src/lcd/kyve/query/v1beta1/funders.ts b/common/types/src/lcd/kyve/query/v1beta1/funders.ts index 475a89d7..17469d21 100644 --- a/common/types/src/lcd/kyve/query/v1beta1/funders.ts +++ b/common/types/src/lcd/kyve/query/v1beta1/funders.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: kyve/query/v1beta1/funders.proto diff --git a/common/types/src/lcd/kyve/query/v1beta1/params.ts b/common/types/src/lcd/kyve/query/v1beta1/params.ts index d0a927e0..cdd2a5ec 100644 --- a/common/types/src/lcd/kyve/query/v1beta1/params.ts +++ b/common/types/src/lcd/kyve/query/v1beta1/params.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: kyve/query/v1beta1/params.proto diff --git a/common/types/src/lcd/kyve/query/v1beta1/pools.ts b/common/types/src/lcd/kyve/query/v1beta1/pools.ts index 44fedb63..d0787094 100644 --- a/common/types/src/lcd/kyve/query/v1beta1/pools.ts +++ b/common/types/src/lcd/kyve/query/v1beta1/pools.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: kyve/query/v1beta1/pools.proto diff --git a/common/types/src/lcd/kyve/query/v1beta1/query.ts b/common/types/src/lcd/kyve/query/v1beta1/query.ts index 3b190beb..d8d50815 100644 --- a/common/types/src/lcd/kyve/query/v1beta1/query.ts +++ b/common/types/src/lcd/kyve/query/v1beta1/query.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: kyve/query/v1beta1/query.proto @@ -180,7 +180,7 @@ function createBaseBasicPool(): BasicPool { name: "", runtime: "", logo: "", - inflation_share_weight: "0", + inflation_share_weight: "", upload_interval: "0", total_funds: [], total_delegation: "0", @@ -202,8 +202,8 @@ export const BasicPool = { if (message.logo !== "") { writer.uint32(34).string(message.logo); } - if (message.inflation_share_weight !== "0") { - writer.uint32(40).uint64(message.inflation_share_weight); + if (message.inflation_share_weight !== "") { + writer.uint32(42).string(message.inflation_share_weight); } if (message.upload_interval !== "0") { writer.uint32(48).uint64(message.upload_interval); @@ -256,11 +256,11 @@ export const BasicPool = { message.logo = reader.string(); continue; case 5: - if (tag !== 40) { + if (tag !== 42) { break; } - message.inflation_share_weight = longToString(reader.uint64() as Long); + message.inflation_share_weight = reader.string(); continue; case 6: if (tag !== 48) { @@ -307,7 +307,7 @@ export const BasicPool = { logo: isSet(object.logo) ? globalThis.String(object.logo) : "", inflation_share_weight: isSet(object.inflation_share_weight) ? globalThis.String(object.inflation_share_weight) - : "0", + : "", upload_interval: isSet(object.upload_interval) ? globalThis.String(object.upload_interval) : "0", total_funds: globalThis.Array.isArray(object?.total_funds) ? object.total_funds.map((e: any) => Coin.fromJSON(e)) @@ -331,7 +331,7 @@ export const BasicPool = { if (message.logo !== "") { obj.logo = message.logo; } - if (message.inflation_share_weight !== "0") { + if (message.inflation_share_weight !== "") { obj.inflation_share_weight = message.inflation_share_weight; } if (message.upload_interval !== "0") { @@ -358,7 +358,7 @@ export const BasicPool = { message.name = object.name ?? ""; message.runtime = object.runtime ?? ""; message.logo = object.logo ?? ""; - message.inflation_share_weight = object.inflation_share_weight ?? "0"; + message.inflation_share_weight = object.inflation_share_weight ?? ""; message.upload_interval = object.upload_interval ?? "0"; message.total_funds = object.total_funds?.map((e) => Coin.fromPartial(e)) || []; message.total_delegation = object.total_delegation ?? "0"; diff --git a/common/types/src/lcd/kyve/query/v1beta1/stakers.ts b/common/types/src/lcd/kyve/query/v1beta1/stakers.ts index faf90d11..f21ff8f2 100644 --- a/common/types/src/lcd/kyve/query/v1beta1/stakers.ts +++ b/common/types/src/lcd/kyve/query/v1beta1/stakers.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: kyve/query/v1beta1/stakers.proto diff --git a/common/types/src/lcd/kyve/stakers/module/module.ts b/common/types/src/lcd/kyve/stakers/module/module.ts index a5570665..8848d210 100644 --- a/common/types/src/lcd/kyve/stakers/module/module.ts +++ b/common/types/src/lcd/kyve/stakers/module/module.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: kyve/stakers/module/module.proto diff --git a/common/types/src/lcd/kyve/stakers/v1beta1/events.ts b/common/types/src/lcd/kyve/stakers/v1beta1/events.ts index ae783bc0..e61d6df4 100644 --- a/common/types/src/lcd/kyve/stakers/v1beta1/events.ts +++ b/common/types/src/lcd/kyve/stakers/v1beta1/events.ts @@ -1,13 +1,12 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: kyve/stakers/v1beta1/events.proto /* eslint-disable */ import Long from "long"; import _m0 from "protobufjs/minimal"; -import { Coin } from "../../../cosmos/base/v1beta1/coin"; import { Params } from "./params"; export const protobufPackage = "kyve.stakers.v1beta1"; @@ -79,8 +78,8 @@ export interface EventUpdateCommission { export interface EventClaimCommissionRewards { /** staker is the account address of the protocol node. */ staker: string; - /** amount is the amount of the commission rewards claimed */ - amount: Coin[]; + /** amounts is the amount of the commission rewards claimed */ + amounts: string; } /** @@ -503,7 +502,7 @@ export const EventUpdateCommission = { }; function createBaseEventClaimCommissionRewards(): EventClaimCommissionRewards { - return { staker: "", amount: [] }; + return { staker: "", amounts: "" }; } export const EventClaimCommissionRewards = { @@ -511,8 +510,8 @@ export const EventClaimCommissionRewards = { if (message.staker !== "") { writer.uint32(10).string(message.staker); } - for (const v of message.amount) { - Coin.encode(v!, writer.uint32(18).fork()).ldelim(); + if (message.amounts !== "") { + writer.uint32(18).string(message.amounts); } return writer; }, @@ -536,7 +535,7 @@ export const EventClaimCommissionRewards = { break; } - message.amount.push(Coin.decode(reader, reader.uint32())); + message.amounts = reader.string(); continue; } if ((tag & 7) === 4 || tag === 0) { @@ -550,7 +549,7 @@ export const EventClaimCommissionRewards = { fromJSON(object: any): EventClaimCommissionRewards { return { staker: isSet(object.staker) ? globalThis.String(object.staker) : "", - amount: globalThis.Array.isArray(object?.amount) ? object.amount.map((e: any) => Coin.fromJSON(e)) : [], + amounts: isSet(object.amounts) ? globalThis.String(object.amounts) : "", }; }, @@ -559,8 +558,8 @@ export const EventClaimCommissionRewards = { if (message.staker !== "") { obj.staker = message.staker; } - if (message.amount?.length) { - obj.amount = message.amount.map((e) => Coin.toJSON(e)); + if (message.amounts !== "") { + obj.amounts = message.amounts; } return obj; }, @@ -571,7 +570,7 @@ export const EventClaimCommissionRewards = { fromPartial, I>>(object: I): EventClaimCommissionRewards { const message = createBaseEventClaimCommissionRewards(); message.staker = object.staker ?? ""; - message.amount = object.amount?.map((e) => Coin.fromPartial(e)) || []; + message.amounts = object.amounts ?? ""; return message; }, }; diff --git a/common/types/src/lcd/kyve/stakers/v1beta1/genesis.ts b/common/types/src/lcd/kyve/stakers/v1beta1/genesis.ts index 883ae6a8..c9eecdf9 100644 --- a/common/types/src/lcd/kyve/stakers/v1beta1/genesis.ts +++ b/common/types/src/lcd/kyve/stakers/v1beta1/genesis.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: kyve/stakers/v1beta1/genesis.proto diff --git a/common/types/src/lcd/kyve/stakers/v1beta1/params.ts b/common/types/src/lcd/kyve/stakers/v1beta1/params.ts index cdc9d7ca..15a53283 100644 --- a/common/types/src/lcd/kyve/stakers/v1beta1/params.ts +++ b/common/types/src/lcd/kyve/stakers/v1beta1/params.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: kyve/stakers/v1beta1/params.proto diff --git a/common/types/src/lcd/kyve/stakers/v1beta1/query.ts b/common/types/src/lcd/kyve/stakers/v1beta1/query.ts index 287746eb..3dc7c9b9 100644 --- a/common/types/src/lcd/kyve/stakers/v1beta1/query.ts +++ b/common/types/src/lcd/kyve/stakers/v1beta1/query.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: kyve/stakers/v1beta1/query.proto diff --git a/common/types/src/lcd/kyve/stakers/v1beta1/stakers.ts b/common/types/src/lcd/kyve/stakers/v1beta1/stakers.ts index 53a46996..258b0a80 100644 --- a/common/types/src/lcd/kyve/stakers/v1beta1/stakers.ts +++ b/common/types/src/lcd/kyve/stakers/v1beta1/stakers.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: kyve/stakers/v1beta1/stakers.proto diff --git a/common/types/src/lcd/kyve/stakers/v1beta1/tx.ts b/common/types/src/lcd/kyve/stakers/v1beta1/tx.ts index f84267dc..f7e98a4e 100644 --- a/common/types/src/lcd/kyve/stakers/v1beta1/tx.ts +++ b/common/types/src/lcd/kyve/stakers/v1beta1/tx.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: kyve/stakers/v1beta1/tx.proto @@ -64,8 +64,8 @@ export interface MsgUpdateCommissionResponse { export interface MsgClaimCommissionRewards { /** creator ... */ creator: string; - /** amount ... */ - amount: Coin[]; + /** amounts ... */ + amounts: Coin[]; } /** MsgClaimCommissionRewardsResponse ... */ @@ -539,7 +539,7 @@ export const MsgUpdateCommissionResponse = { }; function createBaseMsgClaimCommissionRewards(): MsgClaimCommissionRewards { - return { creator: "", amount: [] }; + return { creator: "", amounts: [] }; } export const MsgClaimCommissionRewards = { @@ -547,7 +547,7 @@ export const MsgClaimCommissionRewards = { if (message.creator !== "") { writer.uint32(10).string(message.creator); } - for (const v of message.amount) { + for (const v of message.amounts) { Coin.encode(v!, writer.uint32(18).fork()).ldelim(); } return writer; @@ -572,7 +572,7 @@ export const MsgClaimCommissionRewards = { break; } - message.amount.push(Coin.decode(reader, reader.uint32())); + message.amounts.push(Coin.decode(reader, reader.uint32())); continue; } if ((tag & 7) === 4 || tag === 0) { @@ -586,7 +586,7 @@ export const MsgClaimCommissionRewards = { fromJSON(object: any): MsgClaimCommissionRewards { return { creator: isSet(object.creator) ? globalThis.String(object.creator) : "", - amount: globalThis.Array.isArray(object?.amount) ? object.amount.map((e: any) => Coin.fromJSON(e)) : [], + amounts: globalThis.Array.isArray(object?.amounts) ? object.amounts.map((e: any) => Coin.fromJSON(e)) : [], }; }, @@ -595,8 +595,8 @@ export const MsgClaimCommissionRewards = { if (message.creator !== "") { obj.creator = message.creator; } - if (message.amount?.length) { - obj.amount = message.amount.map((e) => Coin.toJSON(e)); + if (message.amounts?.length) { + obj.amounts = message.amounts.map((e) => Coin.toJSON(e)); } return obj; }, @@ -607,7 +607,7 @@ export const MsgClaimCommissionRewards = { fromPartial, I>>(object: I): MsgClaimCommissionRewards { const message = createBaseMsgClaimCommissionRewards(); message.creator = object.creator ?? ""; - message.amount = object.amount?.map((e) => Coin.fromPartial(e)) || []; + message.amounts = object.amounts?.map((e) => Coin.fromPartial(e)) || []; return message; }, }; diff --git a/common/types/src/lcd/kyve/team/module/module.ts b/common/types/src/lcd/kyve/team/module/module.ts index 74938b0a..f4c0c974 100644 --- a/common/types/src/lcd/kyve/team/module/module.ts +++ b/common/types/src/lcd/kyve/team/module/module.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: kyve/team/module/module.proto diff --git a/common/types/src/lcd/kyve/team/v1beta1/events.ts b/common/types/src/lcd/kyve/team/v1beta1/events.ts index e2acd254..75994fac 100644 --- a/common/types/src/lcd/kyve/team/v1beta1/events.ts +++ b/common/types/src/lcd/kyve/team/v1beta1/events.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: kyve/team/v1beta1/events.proto diff --git a/common/types/src/lcd/kyve/team/v1beta1/genesis.ts b/common/types/src/lcd/kyve/team/v1beta1/genesis.ts index bbfe6756..3e2b74ce 100644 --- a/common/types/src/lcd/kyve/team/v1beta1/genesis.ts +++ b/common/types/src/lcd/kyve/team/v1beta1/genesis.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: kyve/team/v1beta1/genesis.proto diff --git a/common/types/src/lcd/kyve/team/v1beta1/query.ts b/common/types/src/lcd/kyve/team/v1beta1/query.ts index 1f049298..df9c4533 100644 --- a/common/types/src/lcd/kyve/team/v1beta1/query.ts +++ b/common/types/src/lcd/kyve/team/v1beta1/query.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: kyve/team/v1beta1/query.proto diff --git a/common/types/src/lcd/kyve/team/v1beta1/team.ts b/common/types/src/lcd/kyve/team/v1beta1/team.ts index 80152a7f..4e1ecf26 100644 --- a/common/types/src/lcd/kyve/team/v1beta1/team.ts +++ b/common/types/src/lcd/kyve/team/v1beta1/team.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: kyve/team/v1beta1/team.proto diff --git a/common/types/src/lcd/kyve/team/v1beta1/tx.ts b/common/types/src/lcd/kyve/team/v1beta1/tx.ts index b16326a5..19fd3bb6 100644 --- a/common/types/src/lcd/kyve/team/v1beta1/tx.ts +++ b/common/types/src/lcd/kyve/team/v1beta1/tx.ts @@ -1,6 +1,6 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: -// protoc-gen-ts_proto v1.176.1 +// protoc-gen-ts_proto v1.178.0 // protoc unknown // source: kyve/team/v1beta1/tx.proto