diff --git a/.changeset/clean-plums-march.md b/.changeset/clean-plums-march.md new file mode 100644 index 00000000..2af09e01 --- /dev/null +++ b/.changeset/clean-plums-march.md @@ -0,0 +1,11 @@ +--- +'@sei-js/proto': major +'@sei-js/react': major +'@sei-js/core': major +--- + +- Excludes unnecessary modules in proto codegen +- Remove TM35 client (no longer used) +- Clean up helper functions in favor of using Sei wallet interfaces +- Update react hooks +- Adds mobile wallet support through UI components and inside wallet interfaces diff --git a/packages/core/package.json b/packages/core/package.json index 27054637..86525851 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,50 +1,51 @@ { - "name": "@sei-js/core", - "version": "1.5.0", - "description": "TypeScript library for front end integrations with Sei", - "main": "./dist/index.js", - "types": "./dist/index.d.ts", - "scripts": { - "prebuild": "rimraf dist", - "build": "yarn build:types && yarn build:js && yarn build:prettier", - "build:types": "tsc --project tsconfig.declarations.json", - "build:js": "babel src --out-dir dist --extensions '.js,.jsx,.ts,.tsx' --source-maps --copy-files", - "build:prettier": "prettier --write dist" - }, - "homepage": "https://github.com/sei-protocol/sei-js#readme", - "keywords": [ - "sei", - "javascript", - "typescript", - "cosmos" - ], - "repository": "git@github.com:sei-protocol/sei-js.git", - "license": "MIT", - "private": false, - "dependencies": { - "@cosmjs/amino": "0.29.5", - "@cosmjs/cosmwasm-stargate": "0.29.5", - "@cosmjs/crypto": "0.29.5", - "@cosmjs/encoding": "0.29.5", - "@cosmjs/json-rpc": "0.29.5", - "@cosmjs/math": "0.29.5", - "@cosmjs/proto-signing": "0.29.5", - "@cosmjs/stargate": "0.29.5", - "@cosmjs/tendermint-rpc": "0.29.5", - "@cosmjs/utils": "0.29.5", - "@ethersproject/keccak256": "^5.7.0", - "@keplr-wallet/types": "^0.11.41", - "@sei-js/proto": "1.3.0", - "crypto-js": "^4.1.1", - "readonly-date": "^1.0.0", - "sha.js": "^2.4.11", - "xstream": "^11.14.0" - }, - "devDependencies": { - "@babel/core": "^7.22.9", - "@babel/plugin-transform-runtime": "^7.22.9", - "@babel/preset-env": "^7.22.9", - "@babel/preset-react": "^7.22.5", - "@babel/preset-typescript": "^7.22.5" - } + "name": "@sei-js/core", + "version": "0.0.0-internal-20230811175927", + "description": "TypeScript library for front end integrations with Sei", + "main": "./dist/index.js", + "types": "./dist/index.d.ts", + "scripts": { + "prebuild": "rimraf dist", + "build": "yarn build:types && yarn build:js && yarn build:prettier", + "build:types": "tsc --project tsconfig.declarations.json", + "build:js": "babel src --out-dir dist --extensions '.js,.jsx,.ts,.tsx' --source-maps --copy-files", + "build:prettier": "prettier --write dist", + "test": "jest" + }, + "homepage": "https://github.com/sei-protocol/sei-js#readme", + "keywords": [ + "sei", + "javascript", + "typescript", + "cosmos" + ], + "repository": "git@github.com:sei-protocol/sei-js.git", + "license": "MIT", + "private": false, + "dependencies": { + "@cosmjs/amino": "0.29.5", + "@cosmjs/cosmwasm-stargate": "0.29.5", + "@cosmjs/crypto": "0.29.5", + "@cosmjs/encoding": "0.29.5", + "@cosmjs/json-rpc": "0.29.5", + "@cosmjs/math": "0.29.5", + "@cosmjs/proto-signing": "0.29.5", + "@cosmjs/stargate": "0.29.5", + "@cosmjs/tendermint-rpc": "0.29.5", + "@cosmjs/utils": "0.29.5", + "@ethersproject/keccak256": "^5.7.0", + "@keplr-wallet/types": "^0.11.41", + "@sei-js/proto": "0.0.0-internal-20230811175927", + "crypto-js": "^4.1.1", + "readonly-date": "^1.0.0", + "sha.js": "^2.4.11", + "xstream": "^11.14.0" + }, + "devDependencies": { + "@babel/core": "^7.22.9", + "@babel/plugin-transform-runtime": "^7.22.9", + "@babel/preset-env": "^7.22.9", + "@babel/preset-react": "^7.22.5", + "@babel/preset-typescript": "^7.22.5" + } } diff --git a/packages/core/src/lib/client/common.ts b/packages/core/src/lib/client/common.ts deleted file mode 100644 index d1ab9662..00000000 --- a/packages/core/src/lib/client/common.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { toHex } from '@cosmjs/encoding'; -import { IndexedTx } from '@cosmjs/stargate'; -import { Tendermint35Client } from '../tendermint35'; -import { fromTendermint35Event } from './events'; - -export const txsQuery = async ( - tmClient: Tendermint35Client, - query: string -): Promise => { - const results = await tmClient.txSearchAll({ - query: query, - }); - return results.txs.map((tx) => { - return { - height: tx.height, - hash: toHex(tx.hash).toUpperCase(), - code: tx.result.code, - events: tx.result.events.map(fromTendermint35Event), - rawLog: tx.result.log || '', - tx: tx.tx, - gasUsed: tx.result.gasUsed, - gasWanted: tx.result.gasWanted, - }; - }); -}; diff --git a/packages/core/src/lib/client/events.ts b/packages/core/src/lib/client/events.ts deleted file mode 100644 index 51760130..00000000 --- a/packages/core/src/lib/client/events.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { Event } from '@cosmjs/stargate'; -import { Event as Tendermint35Event } from '../tendermint35'; - -/** - * Takes a Tendermint 0.35 event and converts it into a Stargate `Event` - */ -export function fromTendermint35Event(event: Tendermint35Event): Event { - return { - type: event.type, - attributes: event.attributes, - }; -} diff --git a/packages/core/src/lib/client/index.ts b/packages/core/src/lib/client/index.ts deleted file mode 100644 index 8a9aa1c0..00000000 --- a/packages/core/src/lib/client/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -export * from './events'; -export * from './seiCosmWasmClient'; -export * from './seiSigningCosmWasmClient'; -export * from './seiSigningStargateClient'; -export * from './seiStargateClient'; diff --git a/packages/core/src/lib/client/seiCosmWasmClient.ts b/packages/core/src/lib/client/seiCosmWasmClient.ts deleted file mode 100644 index 4d5630cb..00000000 --- a/packages/core/src/lib/client/seiCosmWasmClient.ts +++ /dev/null @@ -1,88 +0,0 @@ -import { - CosmWasmClient, - HttpEndpoint, - IndexedTx, -} from '@cosmjs/cosmwasm-stargate'; -import { - isSearchByHeightQuery, - isSearchBySentFromOrToQuery, - isSearchByTagsQuery, - SearchTxFilter, - SearchTxQuery, -} from '@cosmjs/stargate'; -import { Tendermint35Client } from '../tendermint35'; -import { txsQuery } from './common'; - -export class SeiCosmWasmClient extends CosmWasmClient { - protected constructor(tmClient: Tendermint35Client | undefined) { - // Temporary workaround to pass a Tendermint35Client into a CosmWasmClient - // eslint-disable-next-line @typescript-eslint/no-explicit-any - super(tmClient as any); - } - - public static async connect( - endpoint: string | HttpEndpoint - ): Promise { - const tmClient = await Tendermint35Client.connect(endpoint); - return new SeiCosmWasmClient(tmClient); - } - - public async getTx(id: string): Promise { - const results = await this.txsQueryTm35(`tx.hash='${id}'`); - return results[0] ?? null; - } - - public async searchTx( - query: SearchTxQuery, - filter: SearchTxFilter = {} - ): Promise { - const minHeight = filter.minHeight || 0; - const maxHeight = filter.maxHeight || Number.MAX_SAFE_INTEGER; - - if (maxHeight < minHeight) return []; // optional optimization - - function withFilters(originalQuery: string): string { - return `${originalQuery} AND tx.height>=${minHeight} AND tx.height<=${maxHeight}`; - } - - let txs: readonly IndexedTx[]; - - if (isSearchByHeightQuery(query)) { - txs = - query.height >= minHeight && query.height <= maxHeight - ? await this.txsQueryTm35(`tx.height=${query.height}`) - : []; - } else if (isSearchBySentFromOrToQuery(query)) { - const sentQuery = withFilters( - `message.module='bank' AND transfer.sender='${query.sentFromOrTo}'` - ); - const receivedQuery = withFilters( - `message.module='bank' AND transfer.recipient='${query.sentFromOrTo}'` - ); - const [sent, received] = await Promise.all( - [sentQuery, receivedQuery].map((rawQuery) => - this.txsQueryTm35(rawQuery) - ) - ); - const sentHashes = sent.map((t) => t.hash); - txs = [...sent, ...received.filter((t) => !sentHashes.includes(t.hash))]; - } else if (isSearchByTagsQuery(query)) { - const rawQuery = withFilters( - query.tags.map((t) => `${t.key}='${t.value}'`).join(' AND ') - ); - txs = await this.txsQueryTm35(rawQuery); - } else { - throw new Error('Unknown query type'); - } - - const filtered = txs.filter( - (tx) => tx.height >= minHeight && tx.height <= maxHeight - ); - return filtered; - } - - private async txsQueryTm35(query: string): Promise { - const tmClient = this.forceGetTmClient() as unknown as Tendermint35Client; - return txsQuery(tmClient, query); - } -} diff --git a/packages/core/src/lib/client/seiSigningCosmWasmClient.ts b/packages/core/src/lib/client/seiSigningCosmWasmClient.ts deleted file mode 100644 index 213e84ff..00000000 --- a/packages/core/src/lib/client/seiSigningCosmWasmClient.ts +++ /dev/null @@ -1,97 +0,0 @@ -import { OfflineSigner } from '@cosmjs/proto-signing'; -import { - HttpEndpoint, - IndexedTx, - isSearchByHeightQuery, - isSearchBySentFromOrToQuery, - isSearchByTagsQuery, - SearchTxFilter, - SearchTxQuery, -} from '@cosmjs/stargate'; -import { - SigningCosmWasmClient, - SigningCosmWasmClientOptions, -} from '@cosmjs/cosmwasm-stargate'; - -import { Tendermint35Client } from '../tendermint35'; -import { txsQuery } from './common'; - -export class SeiSigningCosmWasmClient extends SigningCosmWasmClient { - protected constructor( - tmClient: Tendermint35Client | undefined, - signer: OfflineSigner, - options: SigningCosmWasmClientOptions - ) { - // Temporary workaround to pass a Tendermint35Client into a StargateClient - // eslint-disable-next-line @typescript-eslint/no-explicit-any - super(tmClient as any, signer, options); - } - - public static async connectWithSigner( - endpoint: string | HttpEndpoint, - signer: OfflineSigner, - options: SigningCosmWasmClientOptions = {} - ): Promise { - const tmClient = await Tendermint35Client.connect(endpoint); - return new SeiSigningCosmWasmClient(tmClient, signer, options); - } - - public async getTx(id: string): Promise { - const results = await this.txsQueryTm35(`tx.hash='${id}'`); - return results[0] ?? null; - } - - public async searchTx( - query: SearchTxQuery, - filter: SearchTxFilter = {} - ): Promise { - const minHeight = filter.minHeight || 0; - const maxHeight = filter.maxHeight || Number.MAX_SAFE_INTEGER; - - if (maxHeight < minHeight) return []; // optional optimization - - function withFilters(originalQuery: string): string { - return `${originalQuery} AND tx.height>=${minHeight} AND tx.height<=${maxHeight}`; - } - - let txs: readonly IndexedTx[]; - - if (isSearchByHeightQuery(query)) { - txs = - query.height >= minHeight && query.height <= maxHeight - ? await this.txsQueryTm35(`tx.height=${query.height}`) - : []; - } else if (isSearchBySentFromOrToQuery(query)) { - const sentQuery = withFilters( - `message.module='bank' AND transfer.sender='${query.sentFromOrTo}'` - ); - const receivedQuery = withFilters( - `message.module='bank' AND transfer.recipient='${query.sentFromOrTo}'` - ); - const [sent, received] = await Promise.all( - [sentQuery, receivedQuery].map((rawQuery) => - this.txsQueryTm35(rawQuery) - ) - ); - const sentHashes = sent.map((t) => t.hash); - txs = [...sent, ...received.filter((t) => !sentHashes.includes(t.hash))]; - } else if (isSearchByTagsQuery(query)) { - const rawQuery = withFilters( - query.tags.map((t) => `${t.key}='${t.value}'`).join(' AND ') - ); - txs = await this.txsQueryTm35(rawQuery); - } else { - throw new Error('Unknown query type'); - } - - const filtered = txs.filter( - (tx) => tx.height >= minHeight && tx.height <= maxHeight - ); - return filtered; - } - - private async txsQueryTm35(query: string): Promise { - const tmClient = this.forceGetTmClient() as unknown as Tendermint35Client; - return txsQuery(tmClient, query); - } -} diff --git a/packages/core/src/lib/client/seiSigningStargateClient.ts b/packages/core/src/lib/client/seiSigningStargateClient.ts deleted file mode 100644 index bf4366ef..00000000 --- a/packages/core/src/lib/client/seiSigningStargateClient.ts +++ /dev/null @@ -1,95 +0,0 @@ -import { OfflineSigner } from '@cosmjs/proto-signing'; -import { - HttpEndpoint, - IndexedTx, - isSearchByHeightQuery, - isSearchBySentFromOrToQuery, - isSearchByTagsQuery, - SearchTxFilter, - SearchTxQuery, - SigningStargateClient, - SigningStargateClientOptions, -} from '@cosmjs/stargate'; - -import { Tendermint35Client } from '../tendermint35'; -import { txsQuery } from './common'; - -export class SeiSigningStargateClient extends SigningStargateClient { - protected constructor( - tmClient: Tendermint35Client | undefined, - signer: OfflineSigner, - options: SigningStargateClientOptions - ) { - // Temporary workaround to pass a Tendermint35Client into a StargateClient - // eslint-disable-next-line @typescript-eslint/no-explicit-any - super(tmClient as any, signer, options); - } - - public static async connectWithSigner( - endpoint: string | HttpEndpoint, - signer: OfflineSigner, - options: SigningStargateClientOptions = {} - ): Promise { - const tmClient = await Tendermint35Client.connect(endpoint); - return new SeiSigningStargateClient(tmClient, signer, options); - } - - public async getTx(id: string): Promise { - const results = await this.txsQueryTm35(`tx.hash='${id}'`); - return results[0] ?? null; - } - - public async searchTx( - query: SearchTxQuery, - filter: SearchTxFilter = {} - ): Promise { - const minHeight = filter.minHeight || 0; - const maxHeight = filter.maxHeight || Number.MAX_SAFE_INTEGER; - - if (maxHeight < minHeight) return []; // optional optimization - - function withFilters(originalQuery: string): string { - return `${originalQuery} AND tx.height>=${minHeight} AND tx.height<=${maxHeight}`; - } - - let txs: readonly IndexedTx[]; - - if (isSearchByHeightQuery(query)) { - txs = - query.height >= minHeight && query.height <= maxHeight - ? await this.txsQueryTm35(`tx.height=${query.height}`) - : []; - } else if (isSearchBySentFromOrToQuery(query)) { - const sentQuery = withFilters( - `message.module='bank' AND transfer.sender='${query.sentFromOrTo}'` - ); - const receivedQuery = withFilters( - `message.module='bank' AND transfer.recipient='${query.sentFromOrTo}'` - ); - const [sent, received] = await Promise.all( - [sentQuery, receivedQuery].map((rawQuery) => - this.txsQueryTm35(rawQuery) - ) - ); - const sentHashes = sent.map((t) => t.hash); - txs = [...sent, ...received.filter((t) => !sentHashes.includes(t.hash))]; - } else if (isSearchByTagsQuery(query)) { - const rawQuery = withFilters( - query.tags.map((t) => `${t.key}='${t.value}'`).join(' AND ') - ); - txs = await this.txsQueryTm35(rawQuery); - } else { - throw new Error('Unknown query type'); - } - - const filtered = txs.filter( - (tx) => tx.height >= minHeight && tx.height <= maxHeight - ); - return filtered; - } - - private async txsQueryTm35(query: string): Promise { - const tmClient = this.forceGetTmClient() as unknown as Tendermint35Client; - return txsQuery(tmClient, query); - } -} diff --git a/packages/core/src/lib/client/seiStargateClient.ts b/packages/core/src/lib/client/seiStargateClient.ts deleted file mode 100644 index da68e939..00000000 --- a/packages/core/src/lib/client/seiStargateClient.ts +++ /dev/null @@ -1,92 +0,0 @@ -import { - HttpEndpoint, - IndexedTx, - isSearchByHeightQuery, - isSearchBySentFromOrToQuery, - isSearchByTagsQuery, - SearchTxFilter, - SearchTxQuery, - StargateClient, - StargateClientOptions, -} from '@cosmjs/stargate'; - -import { Tendermint35Client } from '../tendermint35'; -import { txsQuery } from './common'; - -export class SeiStargateClient extends StargateClient { - protected constructor( - tmClient: Tendermint35Client | undefined, - options: StargateClientOptions - ) { - // Temporary workaround to pass a Tendermint35Client into a StargateClient - // eslint-disable-next-line @typescript-eslint/no-explicit-any - super(tmClient as any, options); - } - - public static async connect( - endpoint: string | HttpEndpoint, - options: StargateClientOptions = {} - ): Promise { - const tmClient = await Tendermint35Client.connect(endpoint); - return new SeiStargateClient(tmClient, options); - } - - public async getTx(id: string): Promise { - const results = await this.txsQueryTm35(`tx.hash='${id}'`); - return results[0] ?? null; - } - - public async searchTx( - query: SearchTxQuery, - filter: SearchTxFilter = {} - ): Promise { - const minHeight = filter.minHeight || 0; - const maxHeight = filter.maxHeight || Number.MAX_SAFE_INTEGER; - - if (maxHeight < minHeight) return []; // optional optimization - - function withFilters(originalQuery: string): string { - return `${originalQuery} AND tx.height>=${minHeight} AND tx.height<=${maxHeight}`; - } - - let txs: readonly IndexedTx[]; - - if (isSearchByHeightQuery(query)) { - txs = - query.height >= minHeight && query.height <= maxHeight - ? await this.txsQueryTm35(`tx.height=${query.height}`) - : []; - } else if (isSearchBySentFromOrToQuery(query)) { - const sentQuery = withFilters( - `message.module='bank' AND transfer.sender='${query.sentFromOrTo}'` - ); - const receivedQuery = withFilters( - `message.module='bank' AND transfer.recipient='${query.sentFromOrTo}'` - ); - const [sent, received] = await Promise.all( - [sentQuery, receivedQuery].map((rawQuery) => - this.txsQueryTm35(rawQuery) - ) - ); - const sentHashes = sent.map((t) => t.hash); - txs = [...sent, ...received.filter((t) => !sentHashes.includes(t.hash))]; - } else if (isSearchByTagsQuery(query)) { - const rawQuery = withFilters( - query.tags.map((t) => `${t.key}='${t.value}'`).join(' AND ') - ); - txs = await this.txsQueryTm35(rawQuery); - } else { - throw new Error('Unknown query type'); - } - - const filtered = txs.filter( - (tx) => tx.height >= minHeight && tx.height <= maxHeight - ); - return filtered; - } - - private async txsQueryTm35(query: string): Promise { - const tmClient = this.forceGetTmClient() as unknown as Tendermint35Client; - return txsQuery(tmClient, query); - } -} diff --git a/packages/core/src/lib/index.ts b/packages/core/src/lib/index.ts index 043a2f32..8dcfe7e6 100644 --- a/packages/core/src/lib/index.ts +++ b/packages/core/src/lib/index.ts @@ -1,6 +1,4 @@ -export * from './client'; export * from './queryClient'; export * from './signingClient'; -export * from './tendermint35'; export * from './wallet'; export * from './utils'; diff --git a/packages/core/src/lib/signingClient/cosmWasmClient.ts b/packages/core/src/lib/signingClient/cosmWasmClient.ts index ae324cd1..bc38b11a 100644 --- a/packages/core/src/lib/signingClient/cosmWasmClient.ts +++ b/packages/core/src/lib/signingClient/cosmWasmClient.ts @@ -1,43 +1,21 @@ -import { - CosmWasmClient, - SigningCosmWasmClient, -} from '@cosmjs/cosmwasm-stargate'; +import { CosmWasmClient, SigningCosmWasmClient, SigningCosmWasmClientOptions } from '@cosmjs/cosmwasm-stargate'; import { OfflineSigner } from '@cosmjs/proto-signing'; - -import { SeiCosmWasmClient, SeiSigningCosmWasmClient } from '../client'; -import { SeiClientOptions, SeiSigningCosmWasmClientOptions } from './types'; import { createSeiAminoTypes, createSeiRegistry } from './stargateClient'; -export const getCosmWasmClient = async ( - rpcEndpoint: string, - options: SeiClientOptions = {} -): Promise => { - if (options.useTM34) { - return CosmWasmClient.connect(rpcEndpoint); - } - - return SeiCosmWasmClient.connect(rpcEndpoint); +export const getCosmWasmClient = async (rpcEndpoint: string): Promise => { + return CosmWasmClient.connect(rpcEndpoint); }; export const getSigningCosmWasmClient = async ( - rpcEndpoint: string, - signer: OfflineSigner, - options: SeiSigningCosmWasmClientOptions = {} + rpcEndpoint: string, + signer: OfflineSigner, + options: SigningCosmWasmClientOptions = {} ): Promise => { - const registry = createSeiRegistry(); - const aminoTypes = createSeiAminoTypes(); - - if (options.useTM34) { - return SigningCosmWasmClient.connectWithSigner(rpcEndpoint, signer, { - registry, - aminoTypes, - ...options, - }); - } - - return SeiSigningCosmWasmClient.connectWithSigner(rpcEndpoint, signer, { - registry, - aminoTypes, - ...options, - }); + const registry = createSeiRegistry(); + const aminoTypes = createSeiAminoTypes(); + return SigningCosmWasmClient.connectWithSigner(rpcEndpoint, signer, { + registry, + aminoTypes, + ...options + }); }; diff --git a/packages/core/src/lib/signingClient/index.ts b/packages/core/src/lib/signingClient/index.ts index a086d895..b9eec4fa 100644 --- a/packages/core/src/lib/signingClient/index.ts +++ b/packages/core/src/lib/signingClient/index.ts @@ -1,3 +1,2 @@ export * from './cosmWasmClient'; export * from './stargateClient'; -export * from './types'; diff --git a/packages/core/src/lib/signingClient/stargateClient.ts b/packages/core/src/lib/signingClient/stargateClient.ts index b86093a1..75e7052b 100644 --- a/packages/core/src/lib/signingClient/stargateClient.ts +++ b/packages/core/src/lib/signingClient/stargateClient.ts @@ -1,73 +1,38 @@ -import { - AminoTypes, - SigningStargateClient, - StargateClient, - defaultRegistryTypes, -} from '@cosmjs/stargate'; +import { AminoTypes, SigningStargateClient, SigningStargateClientOptions, StargateClient, StargateClientOptions, defaultRegistryTypes } from '@cosmjs/stargate'; import { OfflineSigner, Registry } from '@cosmjs/proto-signing'; import { - cosmosAminoConverters, - cosmwasmAminoConverters, - cosmwasmProtoRegistry, - ibcAminoConverters, - seiprotocolProtoRegistry, - seiprotocolAminoConverters, + cosmosAminoConverters, + cosmwasmAminoConverters, + cosmwasmProtoRegistry, + ibcAminoConverters, + seiprotocolProtoRegistry, + seiprotocolAminoConverters } from '@sei-js/proto'; -import { SeiSigningStargateClient, SeiStargateClient } from '../client'; -import { - SeiSigningStagateClientOptions, - SeiStagateClientOptions, -} from './types'; - export const createSeiRegistry = (): Registry => { - return new Registry([ - ...defaultRegistryTypes, - ...cosmwasmProtoRegistry, - ...seiprotocolProtoRegistry, - ]); + return new Registry([...defaultRegistryTypes, ...cosmwasmProtoRegistry, ...seiprotocolProtoRegistry]); }; export const createSeiAminoTypes = (): AminoTypes => { - const types = { - ...cosmosAminoConverters, - ...cosmwasmAminoConverters, - ...ibcAminoConverters, - ...seiprotocolAminoConverters, - }; - return new AminoTypes(types); + const types = { + ...cosmosAminoConverters, + ...cosmwasmAminoConverters, + ...ibcAminoConverters, + ...seiprotocolAminoConverters + }; + return new AminoTypes(types); }; -export const getStargateClient = async ( - rpcEndpoint: string, - options: SeiStagateClientOptions = {} -): Promise => { - if (options.useTM34) { - return StargateClient.connect(rpcEndpoint, options); - } - - return SeiStargateClient.connect(rpcEndpoint, options); +export const getStargateClient = async (rpcEndpoint: string, options: StargateClientOptions = {}): Promise => { + return StargateClient.connect(rpcEndpoint, options); }; -export const getSigningClient = async ( - rpcEndpoint: string, - signer: OfflineSigner, - options: SeiSigningStagateClientOptions = {} -): Promise => { - const registry = createSeiRegistry(); - const aminoTypes = createSeiAminoTypes(); - - if (options.useTM34) { - return SigningStargateClient.connectWithSigner(rpcEndpoint, signer, { - registry, - aminoTypes, - ...options, - }); - } - - return SeiSigningStargateClient.connectWithSigner(rpcEndpoint, signer, { - registry, - aminoTypes, - ...options, - }); +export const getSigningClient = async (rpcEndpoint: string, signer: OfflineSigner, options: SigningStargateClientOptions = {}): Promise => { + const registry = createSeiRegistry(); + const aminoTypes = createSeiAminoTypes(); + return SigningStargateClient.connectWithSigner(rpcEndpoint, signer, { + registry, + aminoTypes, + ...options + }); }; diff --git a/packages/core/src/lib/signingClient/types.ts b/packages/core/src/lib/signingClient/types.ts deleted file mode 100644 index 1937e829..00000000 --- a/packages/core/src/lib/signingClient/types.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { SigningCosmWasmClientOptions } from '@cosmjs/cosmwasm-stargate'; -import { - SigningStargateClientOptions, - StargateClientOptions, -} from '@cosmjs/stargate'; - -export type SeiClientOptions = { - useTM34?: boolean; -}; - -export type SeiStagateClientOptions = StargateClientOptions & SeiClientOptions; - -export type SeiSigningStagateClientOptions = SigningStargateClientOptions & - SeiClientOptions; - -export type SeiSigningCosmWasmClientOptions = SigningCosmWasmClientOptions & - SeiClientOptions; diff --git a/packages/core/src/lib/tendermint35/adaptor/index.ts b/packages/core/src/lib/tendermint35/adaptor/index.ts deleted file mode 100644 index 9f5061ff..00000000 --- a/packages/core/src/lib/tendermint35/adaptor/index.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { hashBlock, hashTx } from "../hasher"; -import { Params } from "./requests"; -import { Responses } from "./responses"; -import { Adaptor } from "./types"; - -export { Decoder, Encoder, Params, Responses } from "./types"; - -export const adaptor35: Adaptor = { - params: Params, - responses: Responses, - hashTx: hashTx, - hashBlock: hashBlock, -}; diff --git a/packages/core/src/lib/tendermint35/adaptor/requests.ts b/packages/core/src/lib/tendermint35/adaptor/requests.ts deleted file mode 100644 index 6b20b2f9..00000000 --- a/packages/core/src/lib/tendermint35/adaptor/requests.ts +++ /dev/null @@ -1,222 +0,0 @@ -/* eslint-disable @typescript-eslint/naming-convention */ -import { toBase64, toHex } from '@cosmjs/encoding'; -import { JsonRpcRequest } from '@cosmjs/json-rpc'; - -import { smallIntToApi } from '../inthelpers'; -import { createJsonRpcRequest } from '../jsonrpc'; -import { assertNotEmpty, may } from '../encodings'; -import * as requests from '../requests'; - -interface HeightParam { - readonly height?: number; -} -interface RpcHeightParam { - readonly height?: string; -} -function encodeHeightParam(param: HeightParam): RpcHeightParam { - return { - height: may(smallIntToApi, param.height), - }; -} - -interface RpcBlockchainRequestParams { - readonly minHeight?: string; - readonly maxHeight?: string; -} - -function encodeBlockchainRequestParams( - param: requests.BlockchainRequestParams -): RpcBlockchainRequestParams { - return { - minHeight: may(smallIntToApi, param.minHeight), - maxHeight: may(smallIntToApi, param.maxHeight), - }; -} - -interface RpcBlockSearchParams { - readonly query: string; - readonly page?: string; - readonly per_page?: string; - readonly order_by?: string; -} -function encodeBlockSearchParams( - params: requests.BlockSearchParams -): RpcBlockSearchParams { - return { - query: params.query, - page: may(smallIntToApi, params.page), - per_page: may(smallIntToApi, params.per_page), - order_by: params.order_by, - }; -} - -interface RpcAbciQueryParams { - readonly path: string; - /** hex encoded */ - readonly data: string; - readonly height?: string; - readonly prove?: boolean; -} - -function encodeAbciQueryParams( - params: requests.AbciQueryParams -): RpcAbciQueryParams { - return { - path: assertNotEmpty(params.path), - data: toHex(params.data), - height: may(smallIntToApi, params.height), - prove: params.prove, - }; -} - -interface RpcBroadcastTxParams { - /** base64 encoded */ - readonly tx: string; -} -function encodeBroadcastTxParams( - params: requests.BroadcastTxParams -): RpcBroadcastTxParams { - return { - tx: toBase64(assertNotEmpty(params.tx)), - }; -} - -interface RpcTxParams { - /** hex encoded */ - readonly hash: string; - readonly prove?: boolean; -} -function encodeTxParams(params: requests.TxParams): RpcTxParams { - return { - hash: toHex(assertNotEmpty(params.hash)), - prove: params.prove, - }; -} - -interface RpcTxSearchParams { - readonly query: string; - readonly prove?: boolean; - readonly page?: string; - readonly per_page?: string; - readonly order_by?: string; -} -function encodeTxSearchParams( - params: requests.TxSearchParams -): RpcTxSearchParams { - return { - query: params.query, - prove: params.prove, - page: may(smallIntToApi, params.page), - per_page: may(smallIntToApi, params.per_page), - order_by: params.order_by, - }; -} - -interface RpcValidatorsParams { - readonly height?: string; - readonly page?: string; - readonly per_page?: string; -} -function encodeValidatorsParams( - params: requests.ValidatorsParams -): RpcValidatorsParams { - return { - height: may(smallIntToApi, params.height), - page: may(smallIntToApi, params.page), - per_page: may(smallIntToApi, params.per_page), - }; -} - -export class Params { - public static encodeAbciInfo(req: requests.AbciInfoRequest): JsonRpcRequest { - return createJsonRpcRequest(req.method); - } - - public static encodeAbciQuery( - req: requests.AbciQueryRequest - ): JsonRpcRequest { - return createJsonRpcRequest(req.method, encodeAbciQueryParams(req.params)); - } - - public static encodeBlock(req: requests.BlockRequest): JsonRpcRequest { - return createJsonRpcRequest(req.method, encodeHeightParam(req.params)); - } - - public static encodeBlockchain( - req: requests.BlockchainRequest - ): JsonRpcRequest { - return createJsonRpcRequest( - req.method, - encodeBlockchainRequestParams(req.params) - ); - } - - public static encodeBlockResults( - req: requests.BlockResultsRequest - ): JsonRpcRequest { - return createJsonRpcRequest(req.method, encodeHeightParam(req.params)); - } - - public static encodeBlockSearch( - req: requests.BlockSearchRequest - ): JsonRpcRequest { - return createJsonRpcRequest( - req.method, - encodeBlockSearchParams(req.params) - ); - } - - public static encodeBroadcastTx( - req: requests.BroadcastTxRequest - ): JsonRpcRequest { - return createJsonRpcRequest( - req.method, - encodeBroadcastTxParams(req.params) - ); - } - - public static encodeCommit(req: requests.CommitRequest): JsonRpcRequest { - return createJsonRpcRequest(req.method, encodeHeightParam(req.params)); - } - - public static encodeGenesis(req: requests.GenesisRequest): JsonRpcRequest { - return createJsonRpcRequest(req.method); - } - - public static encodeHealth(req: requests.HealthRequest): JsonRpcRequest { - return createJsonRpcRequest(req.method); - } - - public static encodeNumUnconfirmedTxs( - req: requests.NumUnconfirmedTxsRequest - ): JsonRpcRequest { - return createJsonRpcRequest(req.method); - } - - public static encodeStatus(req: requests.StatusRequest): JsonRpcRequest { - return createJsonRpcRequest(req.method); - } - - public static encodeSubscribe( - req: requests.SubscribeRequest - ): JsonRpcRequest { - const eventTag = { key: 'tm.event', value: req.query.type }; - const query = requests.buildQuery({ tags: [eventTag], raw: req.query.raw }); - return createJsonRpcRequest('subscribe', { query: query }); - } - - public static encodeTx(req: requests.TxRequest): JsonRpcRequest { - return createJsonRpcRequest(req.method, encodeTxParams(req.params)); - } - - // TODO: encode params for query string??? - public static encodeTxSearch(req: requests.TxSearchRequest): JsonRpcRequest { - return createJsonRpcRequest(req.method, encodeTxSearchParams(req.params)); - } - - public static encodeValidators( - req: requests.ValidatorsRequest - ): JsonRpcRequest { - return createJsonRpcRequest(req.method, encodeValidatorsParams(req.params)); - } -} diff --git a/packages/core/src/lib/tendermint35/adaptor/responses.ts b/packages/core/src/lib/tendermint35/adaptor/responses.ts deleted file mode 100644 index 40585428..00000000 --- a/packages/core/src/lib/tendermint35/adaptor/responses.ts +++ /dev/null @@ -1,1016 +0,0 @@ -/* eslint-disable @typescript-eslint/naming-convention */ -import { fromBase64, fromHex } from '@cosmjs/encoding'; -import { JsonRpcSuccessResponse } from '@cosmjs/json-rpc'; -import { assert } from '@cosmjs/utils'; -import { - BlockIdFlag, - CommitSignature, - fromRfc3339WithNanoseconds, - ValidatorPubkey, -} from '@cosmjs/tendermint-rpc'; - -import { DateWithNanoseconds } from '../dates'; -import { apiToBigInt, apiToSmallInt } from '../inthelpers'; -import { SubscriptionEvent } from '../rpcclients'; -import { - assertArray, - assertBoolean, - assertNotEmpty, - assertNumber, - assertObject, - assertSet, - assertString, - dictionaryToStringMap, - may, -} from '../encodings'; -import { hashTx } from '../hasher'; -import * as responses from '../responses'; - -interface AbciInfoResult { - readonly response: RpcAbciInfoResponse; -} - -interface RpcAbciInfoResponse { - readonly data?: string; - readonly last_block_height?: string; - /** base64 encoded */ - readonly last_block_app_hash?: string; -} - -function decodeAbciInfo(data: RpcAbciInfoResponse): responses.AbciInfoResponse { - return { - data: data.data, - lastBlockHeight: may(apiToSmallInt, data.last_block_height), - lastBlockAppHash: may(fromBase64, data.last_block_app_hash), - }; -} - -interface AbciQueryResult { - readonly response: RpcAbciQueryResponse; -} - -export interface RpcProofOp { - readonly type: string; - /** base64 encoded */ - readonly key: string; - /** base64 encoded */ - readonly data: string; -} - -export interface RpcQueryProof { - readonly ops: readonly RpcProofOp[]; -} - -function decodeQueryProof(data: RpcQueryProof): responses.QueryProof { - return { - ops: data.ops.map((op) => ({ - type: op.type, - key: fromBase64(op.key), - data: fromBase64(op.data), - })), - }; -} - -interface RpcAbciQueryResponse { - /** - * Base64 encoded - * - * This can be null since this is a byte slice and due to - * https://github.com/tendermint/tendermint/blob/v0.35.7/abci/types/result.go#L53 - */ - readonly key?: string | null; - /** - * Base64 encoded - * - * This can be null since this is a byte slice and due to - * https://github.com/tendermint/tendermint/blob/v0.35.7/abci/types/result.go#L53 - */ - readonly value?: string | null; - readonly proofOps?: RpcQueryProof | null; - readonly height?: string; - readonly index?: string; - readonly code?: string; // only for errors - readonly codespace?: string; - readonly log?: string; - readonly info?: string; -} - -function decodeAbciQuery( - data: RpcAbciQueryResponse -): responses.AbciQueryResponse { - return { - key: fromBase64(assertString(data.key ?? '')), - value: fromBase64(assertString(data.value ?? '')), - proof: may(decodeQueryProof, data.proofOps), - height: may(apiToSmallInt, data.height), - code: may(apiToSmallInt, data.code), - codespace: assertString(data.codespace ?? ''), - index: may(apiToSmallInt, data.index), - log: data.log, - info: assertString(data.info ?? ''), - }; -} - -/** - * EventAttribute from Tendermint. In 0.35 the type of key and value was changed - * from bytes to string, such that no base64 encoding is used anymore. - */ -interface RpcEventAttribute { - readonly key: string; - readonly value?: string; -} - -function decodeEventAttribute( - attribute: RpcEventAttribute -): responses.EventAttribute { - return { - key: assertNotEmpty(attribute.key), - value: attribute.value ?? '', - }; -} - -function decodeAttributes( - attributes: readonly RpcEventAttribute[] -): responses.EventAttribute[] { - return assertArray(attributes).map(decodeEventAttribute); -} - -interface RpcEvent { - readonly type: string; - /** Can be omitted (see https://github.com/cosmos/cosmjs/pull/1198) */ - readonly attributes?: readonly RpcEventAttribute[]; -} - -export function decodeEvent(event: RpcEvent): responses.Event { - return { - type: event.type, - attributes: event.attributes ? decodeAttributes(event.attributes) : [], - }; -} - -function decodeEvents(events: readonly RpcEvent[]): readonly responses.Event[] { - return assertArray(events).map(decodeEvent); -} - -interface RpcTxData { - readonly codespace?: string; - readonly code?: number; - readonly log?: string; - /** base64 encoded */ - readonly data?: string; - readonly events?: readonly RpcEvent[]; - readonly gas_wanted?: string; - readonly gas_used?: string; -} - -function decodeTxData(data: RpcTxData): responses.TxData { - return { - code: apiToSmallInt(assertNumber(data.code ?? 0)), - codespace: data.codespace, - log: data.log, - data: may(fromBase64, data.data), - events: data.events ? decodeEvents(data.events) : [], - gasWanted: apiToSmallInt(data.gas_wanted ?? '0'), - gasUsed: apiToSmallInt(data.gas_used ?? '0'), - }; -} - -type RpcPubkey = - | { - readonly type: string; - /** base64 encoded */ - readonly value: string; - } - | { - // See: https://github.com/cosmos/cosmjs/issues/1142 - readonly Sum: { - readonly type: string; - readonly value: { - /** base64 encoded */ - [algorithm: string]: string; - }; - }; - }; - -function decodePubkey(data: RpcPubkey): ValidatorPubkey { - if ('Sum' in data) { - // we don't need to check type because we're checking algorithm - const [[algorithm, value]] = Object.entries(data.Sum.value); - assert( - algorithm === 'ed25519' || algorithm === 'secp256k1', - `unknown pubkey type: ${algorithm}` - ); - return { - algorithm, - data: fromBase64(assertNotEmpty(value)), - }; - } else { - switch (data.type) { - // go-amino special code - case 'tendermint/PubKeyEd25519': - return { - algorithm: 'ed25519', - data: fromBase64(assertNotEmpty(data.value)), - }; - case 'tendermint/PubKeySecp256k1': - return { - algorithm: 'secp256k1', - data: fromBase64(assertNotEmpty(data.value)), - }; - default: - throw new Error(`unknown pubkey type: ${data.type}`); - } - } -} - -interface RpcBlockParams { - readonly max_bytes: string; - readonly max_gas: string; -} - -/** - * Note: we do not parse block.time_iota_ms for now because of this CHANGELOG entry - * - * > Add time_iota_ms to block's consensus parameters (not exposed to the application) - * https://github.com/tendermint/tendermint/blob/master/CHANGELOG.md#v0310 - */ -function decodeBlockParams(data: RpcBlockParams): responses.BlockParams { - return { - maxBytes: apiToSmallInt(assertNotEmpty(data.max_bytes)), - maxGas: apiToSmallInt(assertNotEmpty(data.max_gas)), - }; -} - -interface RpcEvidenceParams { - readonly max_age_num_blocks: string; - readonly max_age_duration: string; -} - -function decodeEvidenceParams( - data: RpcEvidenceParams -): responses.EvidenceParams { - return { - maxAgeNumBlocks: apiToSmallInt(assertNotEmpty(data.max_age_num_blocks)), - maxAgeDuration: apiToSmallInt(assertNotEmpty(data.max_age_duration)), - }; -} - -/** - * Example data: - * { - * "block": { - * "max_bytes": "22020096", - * "max_gas": "-1", - * "time_iota_ms": "1000" - * }, - * "evidence": { - * "max_age_num_blocks": "100000", - * "max_age_duration": "172800000000000" - * }, - * "validator": { - * "pub_key_types": [ - * "ed25519" - * ] - * } - * } - */ -interface RpcConsensusParams { - readonly block: RpcBlockParams; - readonly evidence: RpcEvidenceParams; -} - -function decodeConsensusParams( - data: RpcConsensusParams -): responses.ConsensusParams { - return { - block: decodeBlockParams(assertObject(data.block)), - evidence: decodeEvidenceParams(assertObject(data.evidence)), - }; -} - -// for block results -interface RpcValidatorUpdate { - readonly pub_key: RpcPubkey; - // When omitted, this means zero (see https://github.com/cosmos/cosmjs/issues/1177#issuecomment-1160115080) - readonly power?: string; -} - -export function decodeValidatorUpdate( - data: RpcValidatorUpdate -): responses.ValidatorUpdate { - return { - pubkey: decodePubkey(assertObject(data.pub_key)), - votingPower: apiToBigInt(data.power ?? '0'), - }; -} - -interface RpcBlockResultsResponse { - readonly height: string; - readonly txs_results: readonly RpcTxData[] | null; - readonly begin_block_events: readonly RpcEvent[] | null; - readonly end_block_events: readonly RpcEvent[] | null; - readonly validator_updates: readonly RpcValidatorUpdate[] | null; - readonly consensus_param_updates: RpcConsensusParams | null; -} - -function decodeBlockResults( - data: RpcBlockResultsResponse -): responses.BlockResultsResponse { - return { - height: apiToSmallInt(assertNotEmpty(data.height)), - results: (data.txs_results || []).map(decodeTxData), - validatorUpdates: (data.validator_updates || []).map(decodeValidatorUpdate), - consensusUpdates: may(decodeConsensusParams, data.consensus_param_updates), - beginBlockEvents: decodeEvents(data.begin_block_events || []), - endBlockEvents: decodeEvents(data.end_block_events || []), - }; -} - -interface RpcBlockId { - /** hex encoded */ - readonly hash: string; - readonly parts: { - readonly total: number; - /** hex encoded */ - readonly hash: string; - }; -} - -function decodeBlockId(data: RpcBlockId): responses.BlockId { - return { - hash: fromHex(assertNotEmpty(data.hash)), - parts: { - total: assertNotEmpty(data.parts.total), - hash: fromHex(assertNotEmpty(data.parts.hash)), - }, - }; -} - -interface RpcBlockVersion { - readonly block: string; - readonly app?: string; -} - -function decodeBlockVersion(data: RpcBlockVersion): responses.Version { - return { - block: apiToSmallInt(data.block), - app: apiToSmallInt(data.app ?? 0), - }; -} - -interface RpcHeader { - readonly version: RpcBlockVersion; - readonly chain_id: string; - readonly height: string; - readonly time: string; - - readonly last_block_id: RpcBlockId; - - /** hex encoded */ - readonly last_commit_hash: string; - /** hex encoded */ - readonly data_hash: string; - - /** hex encoded */ - readonly validators_hash: string; - /** hex encoded */ - readonly next_validators_hash: string; - /** hex encoded */ - readonly consensus_hash: string; - /** hex encoded */ - readonly app_hash: string; - /** hex encoded */ - readonly last_results_hash: string; - - /** hex encoded */ - readonly evidence_hash: string; - /** hex encoded */ - readonly proposer_address: string; -} - -function decodeHeader(data: RpcHeader): responses.Header { - return { - version: decodeBlockVersion(data.version), - chainId: assertNotEmpty(data.chain_id), - height: apiToSmallInt(assertNotEmpty(data.height)), - time: fromRfc3339WithNanoseconds(assertNotEmpty(data.time)), - - // When there is no last block ID (i.e. this block's height is 1), we get an empty structure like this: - // { hash: '', parts: { total: 0, hash: '' } } - lastBlockId: data.last_block_id.hash - ? decodeBlockId(data.last_block_id) - : null, - - lastCommitHash: fromHex(assertSet(data.last_commit_hash)), - dataHash: fromHex(assertSet(data.data_hash)), - - validatorsHash: fromHex(assertSet(data.validators_hash)), - nextValidatorsHash: fromHex(assertSet(data.next_validators_hash)), - consensusHash: fromHex(assertSet(data.consensus_hash)), - appHash: fromHex(assertSet(data.app_hash)), - lastResultsHash: fromHex(assertSet(data.last_results_hash)), - - evidenceHash: fromHex(assertSet(data.evidence_hash)), - proposerAddress: fromHex(assertNotEmpty(data.proposer_address)), - }; -} - -interface RpcBlockMeta { - readonly block_id: RpcBlockId; - readonly block_size: string; - readonly header: RpcHeader; - readonly num_txs: string; -} - -function decodeBlockMeta(data: RpcBlockMeta): responses.BlockMeta { - return { - blockId: decodeBlockId(data.block_id), - blockSize: apiToSmallInt(assertNotEmpty(data.block_size)), - header: decodeHeader(data.header), - numTxs: apiToSmallInt(assertNotEmpty(data.num_txs)), - }; -} - -interface RpcBlockchainResponse { - readonly last_height: string; - readonly block_metas: readonly RpcBlockMeta[]; -} - -function decodeBlockchain( - data: RpcBlockchainResponse -): responses.BlockchainResponse { - return { - lastHeight: apiToSmallInt(assertNotEmpty(data.last_height)), - blockMetas: assertArray(data.block_metas).map(decodeBlockMeta), - }; -} - -interface RpcBroadcastTxSyncResponse extends RpcTxData { - /** hex encoded */ - readonly hash: string; -} - -function decodeBroadcastTxSync( - data: RpcBroadcastTxSyncResponse -): responses.BroadcastTxSyncResponse { - return { - ...decodeTxData(data), - hash: fromHex(assertNotEmpty(data.hash)), - }; -} - -interface RpcBroadcastTxCommitResponse { - readonly height: string; - /** hex encoded */ - readonly hash: string; - readonly check_tx: RpcTxData; - readonly deliver_tx?: RpcTxData; -} - -function decodeBroadcastTxCommit( - data: RpcBroadcastTxCommitResponse -): responses.BroadcastTxCommitResponse { - return { - height: apiToSmallInt(data.height), - hash: fromHex(assertNotEmpty(data.hash)), - checkTx: decodeTxData(assertObject(data.check_tx)), - deliverTx: may(decodeTxData, data.deliver_tx), - }; -} - -function decodeBlockIdFlag(blockIdFlag: number): BlockIdFlag { - assert(blockIdFlag in BlockIdFlag); - return blockIdFlag; -} - -type RpcSignature = { - readonly block_id_flag: number; - /** hex encoded */ - readonly validator_address: string; - readonly timestamp: string; - /** - * Base64 encoded signature. - * There are cases when this is not set, see https://github.com/cosmos/cosmjs/issues/704#issuecomment-797122415. - */ - readonly signature: string | null; -}; - -/** - * In some cases a timestamp is optional and set to the value 0 in Go. - * This can lead to strings like "0001-01-01T00:00:00Z" (see https://github.com/cosmos/cosmjs/issues/704#issuecomment-797122415). - * This decoder tries to clean up such encoding from the API and turn them - * into undefined values. - */ -function decodeOptionalTime( - timestamp: string -): DateWithNanoseconds | undefined { - const nonZeroTime = timestamp && !timestamp.startsWith('0001-01-01'); - return nonZeroTime ? fromRfc3339WithNanoseconds(timestamp) : undefined; -} - -function decodeCommitSignature(data: RpcSignature): CommitSignature { - return { - blockIdFlag: decodeBlockIdFlag(data.block_id_flag), - validatorAddress: data.validator_address - ? fromHex(data.validator_address) - : undefined, - timestamp: decodeOptionalTime(data.timestamp), - signature: data.signature ? fromBase64(data.signature) : undefined, - }; -} - -interface RpcCommit { - readonly block_id: RpcBlockId; - readonly height: string; - readonly round: string; - readonly signatures: readonly RpcSignature[]; -} - -function decodeCommit(data: RpcCommit): responses.Commit { - return { - blockId: decodeBlockId(assertObject(data.block_id)), - height: apiToSmallInt(assertNotEmpty(data.height)), - round: apiToSmallInt(data.round), - signatures: assertArray(data.signatures).map(decodeCommitSignature), - }; -} - -interface RpcCommitResponse { - readonly signed_header: { - readonly header: RpcHeader; - readonly commit: RpcCommit; - }; - readonly canonical: boolean; -} - -function decodeCommitResponse( - data: RpcCommitResponse -): responses.CommitResponse { - return { - canonical: assertBoolean(data.canonical), - header: decodeHeader(data.signed_header.header), - commit: decodeCommit(data.signed_header.commit), - }; -} - -interface RpcValidatorGenesis { - /** hex-encoded */ - readonly address: string; - readonly pub_key: RpcPubkey; - readonly power: string; - readonly name?: string; -} - -export function decodeValidatorGenesis( - data: RpcValidatorGenesis -): responses.Validator { - return { - address: fromHex(assertNotEmpty(data.address)), - pubkey: decodePubkey(assertObject(data.pub_key)), - votingPower: apiToBigInt(assertNotEmpty(data.power)), - }; -} - -interface RpcGenesisResponse { - readonly genesis_time: string; - readonly chain_id: string; - readonly consensus_params: RpcConsensusParams; - // The validators key is used to specify a set of validators for testnets or PoA blockchains. - // PoS blockchains use the app_state.genutil.gentxs field to stake and bond a number of validators in the first block. - readonly validators?: readonly RpcValidatorGenesis[]; - /** hex encoded */ - readonly app_hash: string; - readonly app_state: Record | undefined; -} - -interface GenesisResult { - readonly genesis: RpcGenesisResponse; -} - -function decodeGenesis(data: RpcGenesisResponse): responses.GenesisResponse { - return { - genesisTime: fromRfc3339WithNanoseconds(assertNotEmpty(data.genesis_time)), - chainId: assertNotEmpty(data.chain_id), - consensusParams: decodeConsensusParams(data.consensus_params), - validators: data.validators - ? assertArray(data.validators).map(decodeValidatorGenesis) - : [], - appHash: fromHex(assertSet(data.app_hash)), // empty string in kvstore app - appState: data.app_state, - }; -} - -// this is in status -interface RpcValidatorInfo { - /** hex encoded */ - readonly address: string; - readonly pub_key: RpcPubkey; - readonly voting_power: string; - readonly proposer_priority?: string; -} - -export function decodeValidatorInfo( - data: RpcValidatorInfo -): responses.Validator { - return { - pubkey: data.pub_key && decodePubkey(assertObject(data.pub_key)), - votingPower: apiToBigInt(assertNotEmpty(data.voting_power)), - address: data.address - ? fromHex(assertNotEmpty(data.address)) - : new Uint8Array(), - proposerPriority: data.proposer_priority - ? apiToSmallInt(data.proposer_priority) - : undefined, - }; -} - -interface RpcNodeInfo { - /** hex encoded */ - readonly id: string; - /** IP and port */ - readonly listen_addr: string; - readonly network: string; - readonly version: string; - readonly channels: string; // ??? - readonly moniker: string; - readonly protocol_version: { - readonly p2p: string; - readonly block: string; - readonly app: string; - }; - /** - * Additional information. E.g. - * { - * "tx_index": "on", - * "rpc_address":"tcp://0.0.0.0:26657" - * } - */ - readonly other: Record; -} - -function decodeNodeInfo(data: RpcNodeInfo): responses.NodeInfo { - return { - id: fromHex(assertNotEmpty(data.id)), - listenAddr: assertNotEmpty(data.listen_addr), - network: assertNotEmpty(data.network), - version: assertString(data.version), // Can be empty (https://github.com/cosmos/cosmos-sdk/issues/7963) - channels: assertNotEmpty(data.channels), - moniker: assertNotEmpty(data.moniker), - other: dictionaryToStringMap(data.other), - protocolVersion: { - app: apiToSmallInt(assertNotEmpty(data.protocol_version.app)), - block: apiToSmallInt(assertNotEmpty(data.protocol_version.block)), - p2p: apiToSmallInt(assertNotEmpty(data.protocol_version.p2p)), - }, - }; -} - -interface RpcSyncInfo { - /** hex encoded */ - readonly latest_block_hash: string; - /** hex encoded */ - readonly latest_app_hash: string; - readonly latest_block_height: string; - readonly latest_block_time: string; - readonly catching_up: boolean; -} - -function decodeSyncInfo(data: RpcSyncInfo): responses.SyncInfo { - return { - latestBlockHash: fromHex(assertNotEmpty(data.latest_block_hash)), - latestAppHash: fromHex(assertNotEmpty(data.latest_app_hash)), - latestBlockTime: fromRfc3339WithNanoseconds( - assertNotEmpty(data.latest_block_time) - ), - latestBlockHeight: apiToSmallInt(assertNotEmpty(data.latest_block_height)), - catchingUp: assertBoolean(data.catching_up), - }; -} - -interface RpcStatusResponse { - readonly node_info: RpcNodeInfo; - readonly sync_info: RpcSyncInfo; - readonly validator_info: RpcValidatorInfo; -} - -function decodeStatus(data: RpcStatusResponse): responses.StatusResponse { - return { - nodeInfo: decodeNodeInfo(data.node_info), - syncInfo: decodeSyncInfo(data.sync_info), - validatorInfo: decodeValidatorInfo(data.validator_info), - }; -} - -/** - * Example data: - * { - * "root_hash": "10A1A17D5F818099B5CAB5B91733A3CC27C0DB6CE2D571AC27FB970C314308BB", - * "data": "ZVlERVhDV2lVNEUwPXhTUjc4Tmp2QkNVSg==", - * "proof": { - * "total": "1", - * "index": "0", - * "leaf_hash": "EKGhfV+BgJm1yrW5FzOjzCfA22zi1XGsJ/uXDDFDCLs=", - * "aunts": [] - * } - * } - */ -interface RpcTxProof { - /** base64 encoded */ - readonly data: string; - /** hex encoded */ - readonly root_hash: string; - readonly proof: { - readonly total: string; - readonly index: string; - /** base64 encoded */ - readonly leaf_hash: string; - /** base64 encoded */ - readonly aunts: readonly string[]; - }; -} - -function decodeTxProof(data: RpcTxProof): responses.TxProof | undefined { - if (!data.data) { - return; - } - return { - data: fromBase64(assertNotEmpty(data.data)), - rootHash: fromHex(assertNotEmpty(data.root_hash)), - proof: { - total: apiToSmallInt(assertNotEmpty(data.proof.total)), - index: apiToSmallInt(assertNotEmpty(data.proof.index)), - leafHash: fromBase64(assertNotEmpty(data.proof.leaf_hash)), - aunts: assertArray(data.proof.aunts).map(fromBase64), - }, - }; -} - -interface RpcTxResponse { - /** Raw tx bytes, base64 encoded */ - readonly tx: string; - readonly tx_result: RpcTxData; - readonly height: string; - readonly index: number; - /** hex encoded */ - readonly hash: string; - readonly proof?: RpcTxProof; -} - -function decodeTxResponse(data: RpcTxResponse): responses.TxResponse { - return { - tx: fromBase64(assertNotEmpty(data.tx)), - result: decodeTxData(assertObject(data.tx_result)), - height: apiToSmallInt(assertNotEmpty(data.height)), - index: apiToSmallInt(assertNumber(data.index)), - hash: fromHex(assertNotEmpty(data.hash)), - proof: may(decodeTxProof, data.proof), - }; -} - -interface RpcTxSearchResponse { - readonly txs: readonly RpcTxResponse[]; - readonly total_count: string; -} - -function decodeTxSearch(data: RpcTxSearchResponse): responses.TxSearchResponse { - return { - totalCount: apiToSmallInt(assertNotEmpty(data.total_count)), - txs: assertArray(data.txs).map(decodeTxResponse), - }; -} - -interface RpcTxEvent { - /** Raw tx bytes, base64 encoded */ - readonly tx: string; - readonly result: RpcTxData; - readonly height: string; -} - -function decodeTxEvent(data: RpcTxEvent): responses.TxEvent { - const tx = fromBase64(assertNotEmpty(data.tx)); - return { - tx: tx, - hash: hashTx(tx), - result: decodeTxData(data.result), - height: apiToSmallInt(assertNotEmpty(data.height)), - }; -} - -interface RpcValidatorsResponse { - readonly block_height: string; - readonly validators: readonly RpcValidatorInfo[]; - readonly count: string; - readonly total: string; -} - -function decodeValidators( - data: RpcValidatorsResponse -): responses.ValidatorsResponse { - return { - blockHeight: apiToSmallInt(assertNotEmpty(data.block_height)), - validators: assertArray(data.validators).map(decodeValidatorInfo), - count: apiToSmallInt(assertNotEmpty(data.count)), - total: apiToSmallInt(assertNotEmpty(data.total)), - }; -} - -// We lost track on how the evidence structure actually looks like. -// This is any now and passed to the caller untouched. -type RpcEvidence = any; - -interface RpcBlock { - readonly header: RpcHeader; - readonly last_commit: RpcCommit; - readonly data: { - /** Raw tx bytes, base64 encoded */ - readonly txs?: readonly string[]; - }; - // It's currently unclear why the deep nesting is requied. - // See https://github.com/tendermint/tendermint/issues/7697. - readonly evidence?: { - readonly evidence?: readonly RpcEvidence[]; - }; -} - -function decodeBlock(data: RpcBlock): responses.Block { - return { - header: decodeHeader(assertObject(data.header)), - // For the block at height 1, last commit is not set. This is represented in an empty object like this: - // { height: '0', round: 0, block_id: { hash: '', parts: [Object] }, signatures: [] } - lastCommit: data.last_commit.block_id.hash - ? decodeCommit(assertObject(data.last_commit)) - : null, - txs: data.data.txs ? assertArray(data.data.txs).map(fromBase64) : [], - // Lift up .evidence.evidence to just .evidence - // See https://github.com/tendermint/tendermint/issues/7697 - evidence: data.evidence?.evidence ?? [], - }; -} - -interface RpcBlockResponse { - readonly block_id: RpcBlockId; - readonly block: RpcBlock; -} - -function decodeBlockResponse(data: RpcBlockResponse): responses.BlockResponse { - return { - blockId: decodeBlockId(data.block_id), - block: decodeBlock(data.block), - }; -} - -interface RpcBlockSearchResponse { - readonly blocks: readonly RpcBlockResponse[]; - readonly total_count: string; -} - -function decodeBlockSearch( - data: RpcBlockSearchResponse -): responses.BlockSearchResponse { - return { - totalCount: apiToSmallInt(assertNotEmpty(data.total_count)), - blocks: assertArray(data.blocks).map(decodeBlockResponse), - }; -} - -interface RpcNumUnconfirmedTxsResponse { - readonly total: string; - readonly total_bytes: string; -} - -function decodeNumUnconfirmedTxs( - data: RpcNumUnconfirmedTxsResponse -): responses.NumUnconfirmedTxsResponse { - return { - total: apiToSmallInt(assertNotEmpty(data.total)), - totalBytes: apiToSmallInt(assertNotEmpty(data.total_bytes)), - }; -} - -export class Responses { - public static decodeAbciInfo( - response: JsonRpcSuccessResponse - ): responses.AbciInfoResponse { - return decodeAbciInfo( - assertObject((response.result as AbciInfoResult).response) - ); - } - - public static decodeAbciQuery( - response: JsonRpcSuccessResponse - ): responses.AbciQueryResponse { - return decodeAbciQuery( - assertObject((response.result as AbciQueryResult).response) - ); - } - - public static decodeBlock( - response: JsonRpcSuccessResponse - ): responses.BlockResponse { - return decodeBlockResponse(response.result as RpcBlockResponse); - } - - public static decodeBlockResults( - response: JsonRpcSuccessResponse - ): responses.BlockResultsResponse { - return decodeBlockResults(response.result as RpcBlockResultsResponse); - } - - public static decodeBlockSearch( - response: JsonRpcSuccessResponse - ): responses.BlockSearchResponse { - return decodeBlockSearch(response.result as RpcBlockSearchResponse); - } - - public static decodeBlockchain( - response: JsonRpcSuccessResponse - ): responses.BlockchainResponse { - return decodeBlockchain(response.result as RpcBlockchainResponse); - } - - public static decodeBroadcastTxSync( - response: JsonRpcSuccessResponse - ): responses.BroadcastTxSyncResponse { - return decodeBroadcastTxSync(response.result as RpcBroadcastTxSyncResponse); - } - - public static decodeBroadcastTxAsync( - response: JsonRpcSuccessResponse - ): responses.BroadcastTxAsyncResponse { - return Responses.decodeBroadcastTxSync(response); - } - - public static decodeBroadcastTxCommit( - response: JsonRpcSuccessResponse - ): responses.BroadcastTxCommitResponse { - return decodeBroadcastTxCommit( - response.result as RpcBroadcastTxCommitResponse - ); - } - - public static decodeCommit( - response: JsonRpcSuccessResponse - ): responses.CommitResponse { - return decodeCommitResponse(response.result as RpcCommitResponse); - } - - public static decodeGenesis( - response: JsonRpcSuccessResponse - ): responses.GenesisResponse { - return decodeGenesis( - assertObject((response.result as GenesisResult).genesis) - ); - } - - public static decodeHealth(): responses.HealthResponse { - return null; - } - - public static decodeNumUnconfirmedTxs( - response: JsonRpcSuccessResponse - ): responses.NumUnconfirmedTxsResponse { - return decodeNumUnconfirmedTxs( - response.result as RpcNumUnconfirmedTxsResponse - ); - } - - public static decodeStatus( - response: JsonRpcSuccessResponse - ): responses.StatusResponse { - return decodeStatus(response.result as RpcStatusResponse); - } - - public static decodeNewBlockEvent( - event: SubscriptionEvent - ): responses.NewBlockEvent { - return decodeBlock(event.data.value.block as RpcBlock); - } - - public static decodeNewBlockHeaderEvent( - event: SubscriptionEvent - ): responses.NewBlockHeaderEvent { - return decodeHeader(event.data.value.header as RpcHeader); - } - - public static decodeTxEvent(event: SubscriptionEvent): responses.TxEvent { - return decodeTxEvent(event.data.value.TxResult as RpcTxEvent); - } - - public static decodeTx( - response: JsonRpcSuccessResponse - ): responses.TxResponse { - return decodeTxResponse(response.result as RpcTxResponse); - } - - public static decodeTxSearch( - response: JsonRpcSuccessResponse - ): responses.TxSearchResponse { - return decodeTxSearch(response.result as RpcTxSearchResponse); - } - - public static decodeValidators( - response: JsonRpcSuccessResponse - ): responses.ValidatorsResponse { - return decodeValidators(response.result as RpcValidatorsResponse); - } -} diff --git a/packages/core/src/lib/tendermint35/adaptor/types.ts b/packages/core/src/lib/tendermint35/adaptor/types.ts deleted file mode 100644 index 549c88af..00000000 --- a/packages/core/src/lib/tendermint35/adaptor/types.ts +++ /dev/null @@ -1,112 +0,0 @@ -import { JsonRpcRequest, JsonRpcSuccessResponse } from '@cosmjs/json-rpc'; - -import { SubscriptionEvent } from '../rpcclients'; -import * as requests from '../requests'; -import * as responses from '../responses'; - -export interface Adaptor { - readonly params: Params; - readonly responses: Responses; - readonly hashTx: (tx: Uint8Array) => Uint8Array; - readonly hashBlock: (header: responses.Header) => Uint8Array; -} - -// Encoder is a generic that matches all methods of Params -export type Encoder = (req: T) => JsonRpcRequest; - -// Decoder is a generic that matches all methods of Responses -export type Decoder = ( - res: JsonRpcSuccessResponse -) => T; - -export interface Params { - readonly encodeAbciInfo: (req: requests.AbciInfoRequest) => JsonRpcRequest; - readonly encodeAbciQuery: (req: requests.AbciQueryRequest) => JsonRpcRequest; - readonly encodeBlock: (req: requests.BlockRequest) => JsonRpcRequest; - readonly encodeBlockchain: ( - req: requests.BlockchainRequest - ) => JsonRpcRequest; - readonly encodeBlockResults: ( - req: requests.BlockResultsRequest - ) => JsonRpcRequest; - readonly encodeBlockSearch: ( - req: requests.BlockSearchRequest - ) => JsonRpcRequest; - readonly encodeBroadcastTx: ( - req: requests.BroadcastTxRequest - ) => JsonRpcRequest; - readonly encodeCommit: (req: requests.CommitRequest) => JsonRpcRequest; - readonly encodeGenesis: (req: requests.GenesisRequest) => JsonRpcRequest; - readonly encodeHealth: (req: requests.HealthRequest) => JsonRpcRequest; - readonly encodeNumUnconfirmedTxs: ( - req: requests.NumUnconfirmedTxsRequest - ) => JsonRpcRequest; - readonly encodeStatus: (req: requests.StatusRequest) => JsonRpcRequest; - readonly encodeSubscribe: (req: requests.SubscribeRequest) => JsonRpcRequest; - readonly encodeTx: (req: requests.TxRequest) => JsonRpcRequest; - readonly encodeTxSearch: (req: requests.TxSearchRequest) => JsonRpcRequest; - readonly encodeValidators: ( - req: requests.ValidatorsRequest - ) => JsonRpcRequest; -} - -export interface Responses { - readonly decodeAbciInfo: ( - response: JsonRpcSuccessResponse - ) => responses.AbciInfoResponse; - readonly decodeAbciQuery: ( - response: JsonRpcSuccessResponse - ) => responses.AbciQueryResponse; - readonly decodeBlock: ( - response: JsonRpcSuccessResponse - ) => responses.BlockResponse; - readonly decodeBlockResults: ( - response: JsonRpcSuccessResponse - ) => responses.BlockResultsResponse; - readonly decodeBlockSearch: ( - response: JsonRpcSuccessResponse - ) => responses.BlockSearchResponse; - readonly decodeBlockchain: ( - response: JsonRpcSuccessResponse - ) => responses.BlockchainResponse; - readonly decodeBroadcastTxSync: ( - response: JsonRpcSuccessResponse - ) => responses.BroadcastTxSyncResponse; - readonly decodeBroadcastTxAsync: ( - response: JsonRpcSuccessResponse - ) => responses.BroadcastTxAsyncResponse; - readonly decodeBroadcastTxCommit: ( - response: JsonRpcSuccessResponse - ) => responses.BroadcastTxCommitResponse; - readonly decodeCommit: ( - response: JsonRpcSuccessResponse - ) => responses.CommitResponse; - readonly decodeGenesis: ( - response: JsonRpcSuccessResponse - ) => responses.GenesisResponse; - readonly decodeHealth: ( - response: JsonRpcSuccessResponse - ) => responses.HealthResponse; - readonly decodeNumUnconfirmedTxs: ( - response: JsonRpcSuccessResponse - ) => responses.NumUnconfirmedTxsResponse; - readonly decodeStatus: ( - response: JsonRpcSuccessResponse - ) => responses.StatusResponse; - readonly decodeTx: (response: JsonRpcSuccessResponse) => responses.TxResponse; - readonly decodeTxSearch: ( - response: JsonRpcSuccessResponse - ) => responses.TxSearchResponse; - readonly decodeValidators: ( - response: JsonRpcSuccessResponse - ) => responses.ValidatorsResponse; - - // events - readonly decodeNewBlockEvent: ( - response: SubscriptionEvent - ) => responses.NewBlockEvent; - readonly decodeNewBlockHeaderEvent: ( - response: SubscriptionEvent - ) => responses.NewBlockHeaderEvent; - readonly decodeTxEvent: (response: SubscriptionEvent) => responses.TxEvent; -} diff --git a/packages/core/src/lib/tendermint35/dates.ts b/packages/core/src/lib/tendermint35/dates.ts deleted file mode 100644 index 71e4e44b..00000000 --- a/packages/core/src/lib/tendermint35/dates.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { ReadonlyDate } from 'readonly-date'; - -export interface ReadonlyDateWithNanoseconds extends ReadonlyDate { - /* Nanoseconds after the time stored in a vanilla ReadonlyDate (millisecond granularity) */ - readonly nanoseconds?: number; -} - -export interface DateWithNanoseconds extends Date { - /** Nanoseconds after the time stored in a vanilla Date (millisecond granularity) */ - nanoseconds?: number; -} diff --git a/packages/core/src/lib/tendermint35/encodings.ts b/packages/core/src/lib/tendermint35/encodings.ts deleted file mode 100644 index 41cb6e9e..00000000 --- a/packages/core/src/lib/tendermint35/encodings.ts +++ /dev/null @@ -1,212 +0,0 @@ -import { toUtf8 } from '@cosmjs/encoding'; - -import { ReadonlyDateWithNanoseconds } from './dates'; -import { BlockId, Version } from './responses'; - -/** - * A runtime checker that ensures a given value is set (i.e. not undefined or null) - * - * This is used when you want to verify that data at runtime matches the expected type. - */ -export function assertSet(value: T): T { - if ((value as unknown) === undefined) { - throw new Error('Value must not be undefined'); - } - - if ((value as unknown) === null) { - throw new Error('Value must not be null'); - } - - return value; -} - -/** - * A runtime checker that ensures a given value is a boolean - * - * This is used when you want to verify that data at runtime matches the expected type. - * This implies assertSet. - */ -export function assertBoolean(value: boolean): boolean { - assertSet(value); - if (typeof (value as unknown) !== 'boolean') { - throw new Error('Value must be a boolean'); - } - return value; -} - -/** - * A runtime checker that ensures a given value is a string. - * - * This is used when you want to verify that data at runtime matches the expected type. - * This implies assertSet. - */ -export function assertString(value: string): string { - assertSet(value); - if (typeof (value as unknown) !== 'string') { - throw new Error('Value must be a string'); - } - return value; -} - -/** - * A runtime checker that ensures a given value is a number - * - * This is used when you want to verify that data at runtime matches the expected type. - * This implies assertSet. - */ -export function assertNumber(value: number): number { - assertSet(value); - if (typeof (value as unknown) !== 'number') { - throw new Error('Value must be a number'); - } - return value; -} - -/** - * A runtime checker that ensures a given value is an array - * - * This is used when you want to verify that data at runtime matches the expected type. - * This implies assertSet. - */ -export function assertArray(value: readonly T[]): readonly T[] { - assertSet(value); - if (!Array.isArray(value as unknown)) { - throw new Error('Value must be a an array'); - } - return value; -} - -/** - * A runtime checker that ensures a given value is an object in the sense of JSON - * (an unordered collection of key–value pairs where the keys are strings) - * - * This is used when you want to verify that data at runtime matches the expected type. - * This implies assertSet. - */ -export function assertObject(value: T): T { - assertSet(value); - if (typeof (value as unknown) !== 'object') { - throw new Error('Value must be an object'); - } - - // Exclude special kind of objects like Array, Date or Uint8Array - // Object.prototype.toString() returns a specified value: - // http://www.ecma-international.org/ecma-262/7.0/index.html#sec-object.prototype.tostring - if (Object.prototype.toString.call(value) !== '[object Object]') { - throw new Error('Value must be a simple object'); - } - - return value; -} - -interface Lengther { - readonly length: number; -} - -/** - * Throws an error if value matches the empty value for the - * given type (array/string of length 0, number of value 0, ...) - * - * Otherwise returns the value. - * - * This implies assertSet - */ -export function assertNotEmpty(value: T): T { - assertSet(value); - - if (typeof value === 'number' && value === 0) { - throw new Error('must provide a non-zero value'); - } else if ((value as any as Lengther).length === 0) { - throw new Error('must provide a non-empty value'); - } - return value; -} - -// may will run the transform if value is defined, otherwise returns undefined -export function may( - transform: (val: T) => U, - value: T | null | undefined -): U | undefined { - return value === undefined || value === null ? undefined : transform(value); -} - -export function dictionaryToStringMap( - obj: Record -): Map { - const out = new Map(); - for (const key of Object.keys(obj)) { - const value = obj[key]; - if (typeof value !== 'string') { - throw new Error('Found dictionary value of type other than string'); - } - out.set(key, value); - } - return out; -} - -// Encodings needed for hashing block headers -// Several of these functions are inspired by https://github.com/nomic-io/js-tendermint/blob/tendermint-0.30/src/ - -// See https://github.com/tendermint/go-amino/blob/v0.15.0/encoder.go#L193-L195 -export function encodeString(s: string): Uint8Array { - const utf8 = toUtf8(s); - return Uint8Array.from([utf8.length, ...utf8]); -} - -// See https://github.com/tendermint/go-amino/blob/v0.15.0/encoder.go#L79-L87 -export function encodeUvarint(n: number): Uint8Array { - return n >= 0x80 - ? // eslint-disable-next-line no-bitwise - Uint8Array.from([(n & 0xff) | 0x80, ...encodeUvarint(n >> 7)]) - : // eslint-disable-next-line no-bitwise - Uint8Array.from([n & 0xff]); -} - -// See https://github.com/tendermint/go-amino/blob/v0.15.0/encoder.go#L134-L178 -export function encodeTime(time: ReadonlyDateWithNanoseconds): Uint8Array { - const milliseconds = time.getTime(); - const seconds = Math.floor(milliseconds / 1000); - const secondsArray = seconds - ? [0x08, ...encodeUvarint(seconds)] - : new Uint8Array(); - const nanoseconds = (time.nanoseconds || 0) + (milliseconds % 1000) * 1e6; - const nanosecondsArray = nanoseconds - ? [0x10, ...encodeUvarint(nanoseconds)] - : new Uint8Array(); - return Uint8Array.from([...secondsArray, ...nanosecondsArray]); -} - -// See https://github.com/tendermint/go-amino/blob/v0.15.0/encoder.go#L180-L187 -export function encodeBytes(bytes: Uint8Array): Uint8Array { - // Since we're only dealing with short byte arrays we don't need a full VarBuffer implementation yet - if (bytes.length >= 0x80) - throw new Error('Not implemented for byte arrays of length 128 or more'); - return bytes.length - ? Uint8Array.from([bytes.length, ...bytes]) - : new Uint8Array(); -} - -export function encodeVersion(version: Version): Uint8Array { - const blockArray = version.block - ? Uint8Array.from([0x08, ...encodeUvarint(version.block)]) - : new Uint8Array(); - const appArray = version.app - ? Uint8Array.from([0x10, ...encodeUvarint(version.app)]) - : new Uint8Array(); - return Uint8Array.from([...blockArray, ...appArray]); -} - -export function encodeBlockId(blockId: BlockId): Uint8Array { - return Uint8Array.from([ - 0x0a, - blockId.hash.length, - ...blockId.hash, - 0x12, - blockId.parts.hash.length + 4, - 0x08, - blockId.parts.total, - 0x12, - blockId.parts.hash.length, - ...blockId.parts.hash, - ]); -} diff --git a/packages/core/src/lib/tendermint35/hasher.ts b/packages/core/src/lib/tendermint35/hasher.ts deleted file mode 100644 index a02d2f81..00000000 --- a/packages/core/src/lib/tendermint35/hasher.ts +++ /dev/null @@ -1,80 +0,0 @@ -import { Sha256, sha256 } from "@cosmjs/crypto"; - -import { - encodeBlockId, - encodeBytes, - encodeString, - encodeTime, - encodeUvarint, - encodeVersion, -} from "./encodings"; -import { Header } from "./responses"; - -// hash is sha256 -// https://github.com/tendermint/tendermint/blob/master/UPGRADING.md#v0260 -export function hashTx(tx: Uint8Array): Uint8Array { - return sha256(tx); -} - -function getSplitPoint(n: number): number { - if (n < 1) throw new Error("Cannot split an empty tree"); - const largestPowerOf2 = 2 ** Math.floor(Math.log2(n)); - return largestPowerOf2 < n ? largestPowerOf2 : largestPowerOf2 / 2; -} - -function hashLeaf(leaf: Uint8Array): Uint8Array { - const hash = new Sha256(Uint8Array.from([0])); - hash.update(leaf); - return hash.digest(); -} - -function hashInner(left: Uint8Array, right: Uint8Array): Uint8Array { - const hash = new Sha256(Uint8Array.from([1])); - hash.update(left); - hash.update(right); - return hash.digest(); -} - -// See https://github.com/tendermint/tendermint/blob/v0.31.8/docs/spec/blockchain/encoding.md#merkleroot -// Note: the hashes input may not actually be hashes, especially before a recursive call -function hashTree(hashes: readonly Uint8Array[]): Uint8Array { - switch (hashes.length) { - case 0: - throw new Error("Cannot hash empty tree"); - case 1: - return hashLeaf(hashes[0]); - default: { - const slicePoint = getSplitPoint(hashes.length); - const left = hashTree(hashes.slice(0, slicePoint)); - const right = hashTree(hashes.slice(slicePoint)); - return hashInner(left, right); - } - } -} - -export function hashBlock(header: Header): Uint8Array { - if (!header.lastBlockId) { - throw new Error( - "Hashing a block header with no last block ID (i.e. header at height 1) is not supported. If you need this, contributions are welcome. Please add documentation and test vectors for this case.", - ); - } - - const encodedFields: readonly Uint8Array[] = [ - encodeVersion(header.version), - encodeString(header.chainId), - encodeUvarint(header.height), - encodeTime(header.time), - encodeBlockId(header.lastBlockId), - - encodeBytes(header.lastCommitHash), - encodeBytes(header.dataHash), - encodeBytes(header.validatorsHash), - encodeBytes(header.nextValidatorsHash), - encodeBytes(header.consensusHash), - encodeBytes(header.appHash), - encodeBytes(header.lastResultsHash), - encodeBytes(header.evidenceHash), - encodeBytes(header.proposerAddress), - ]; - return hashTree(encodedFields); -} diff --git a/packages/core/src/lib/tendermint35/index.ts b/packages/core/src/lib/tendermint35/index.ts deleted file mode 100644 index 468b2e98..00000000 --- a/packages/core/src/lib/tendermint35/index.ts +++ /dev/null @@ -1,79 +0,0 @@ -// Note: all exports in this module are publicly available via -// `import { tendermint35 } from "@cosmjs/tendermint-rpc"` - -export { - AbciInfoRequest, - AbciQueryParams, - AbciQueryRequest, - BlockchainRequest, - BlockRequest, - BlockResultsRequest, - BlockSearchParams, - BlockSearchRequest, - BroadcastTxParams, - BroadcastTxRequest, - CommitRequest, - GenesisRequest, - HealthRequest, - Method, - NumUnconfirmedTxsRequest, - QueryTag, - Request, - StatusRequest, - SubscriptionEventType, - TxParams, - TxRequest, - TxSearchParams, - TxSearchRequest, - ValidatorsParams, - ValidatorsRequest, -} from "./requests"; -export { - AbciInfoResponse, - AbciQueryResponse, - EventAttribute as Attribute, - Block, - BlockchainResponse, - BlockGossipParams, - BlockId, - BlockMeta, - BlockParams, - BlockResponse, - BlockResultsResponse, - BlockSearchResponse, - BroadcastTxAsyncResponse, - BroadcastTxCommitResponse, - broadcastTxCommitSuccess, - BroadcastTxSyncResponse, - broadcastTxSyncSuccess, - Commit, - CommitResponse, - ConsensusParams, - Event, - Evidence, - EvidenceParams, - GenesisResponse, - Header, - HealthResponse, - NewBlockEvent, - NewBlockHeaderEvent, - NodeInfo, - NumUnconfirmedTxsResponse, - ProofOp, - QueryProof, - Response, - StatusResponse, - SyncInfo, - TxData, - TxEvent, - TxProof, - TxResponse, - TxSearchResponse, - TxSizeParams, - Validator, - ValidatorsResponse, - Version, - Vote, - VoteType, -} from "./responses"; -export { Tendermint35Client } from "./tendermint35client"; diff --git a/packages/core/src/lib/tendermint35/inthelpers.ts b/packages/core/src/lib/tendermint35/inthelpers.ts deleted file mode 100644 index c31cf605..00000000 --- a/packages/core/src/lib/tendermint35/inthelpers.ts +++ /dev/null @@ -1,37 +0,0 @@ -import { Int53 } from '@cosmjs/math'; - -import { assertString } from './encodings'; - -/** - * Takes an integer value from the Tendermint RPC API and - * returns it as number. - * - * Only works within the safe integer range. - */ -export function apiToSmallInt(input: string | number): number { - const asInt = - typeof input === 'number' ? new Int53(input) : Int53.fromString(input); - return asInt.toNumber(); -} - -/** - * Takes an integer value from the Tendermint RPC API and - * returns it as BigInt. - * - * This supports the full uint64 and int64 ranges. - */ -export function apiToBigInt(input: string): bigint { - assertString(input); // Runtime check on top of TypeScript just to be safe for semi-trusted API types - if (!input.match(/^-?[0-9]+$/)) { - throw new Error('Invalid string format'); - } - return BigInt(input); -} - -/** - * Takes an integer in the safe integer range and returns - * a string representation to be used in the Tendermint RPC API. - */ -export function smallIntToApi(num: number): string { - return new Int53(num).toString(); -} diff --git a/packages/core/src/lib/tendermint35/jsonrpc.ts b/packages/core/src/lib/tendermint35/jsonrpc.ts deleted file mode 100644 index 0d68b96f..00000000 --- a/packages/core/src/lib/tendermint35/jsonrpc.ts +++ /dev/null @@ -1,36 +0,0 @@ -import { JsonRpcRequest } from '@cosmjs/json-rpc'; - -const numbersWithoutZero = '123456789'; - -/** generates a random numeric character */ -function randomNumericChar(): string { - return numbersWithoutZero[ - Math.floor(Math.random() * numbersWithoutZero.length) - ]; -} - -/** - * An (absolutely not cryptographically secure) random integer > 0. - */ -function randomId(): number { - return parseInt( - Array.from({ length: 12 }) - .map(() => randomNumericChar()) - .join(''), - 10 - ); -} - -/** Creates a JSON-RPC request with random ID */ -export function createJsonRpcRequest( - method: string, - params?: object -): JsonRpcRequest { - const paramsCopy = params ? { ...params } : {}; - return { - jsonrpc: '2.0', - id: randomId(), - method: method, - params: paramsCopy, - }; -} diff --git a/packages/core/src/lib/tendermint35/requests.ts b/packages/core/src/lib/tendermint35/requests.ts deleted file mode 100644 index e4f131c5..00000000 --- a/packages/core/src/lib/tendermint35/requests.ts +++ /dev/null @@ -1,208 +0,0 @@ -/* eslint-disable @typescript-eslint/naming-convention */ - -/** - * RPC methods as documented in https://docs.tendermint.com/master/rpc/ - * - * Enum raw value must match the spelling in the "shell" example call (snake_case) - */ -export enum Method { - AbciInfo = "abci_info", - AbciQuery = "abci_query", - Block = "block", - /** Get block headers for minHeight <= height <= maxHeight. */ - Blockchain = "blockchain", - BlockResults = "block_results", - BlockSearch = "block_search", - BroadcastTxAsync = "broadcast_tx_async", - BroadcastTxSync = "broadcast_tx_sync", - BroadcastTxCommit = "broadcast_tx_commit", - Commit = "commit", - Genesis = "genesis", - Health = "health", - NumUnconfirmedTxs = "num_unconfirmed_txs", - Status = "status", - Subscribe = "subscribe", - Tx = "tx", - TxSearch = "tx_search", - Validators = "validators", - Unsubscribe = "unsubscribe", -} - -export type Request = - | AbciInfoRequest - | AbciQueryRequest - | BlockRequest - | BlockSearchRequest - | BlockchainRequest - | BlockResultsRequest - | BroadcastTxRequest - | CommitRequest - | GenesisRequest - | HealthRequest - | NumUnconfirmedTxsRequest - | StatusRequest - | TxRequest - | TxSearchRequest - | ValidatorsRequest; - -/** - * Raw values must match the tendermint event name - * - * @see https://godoc.org/github.com/tendermint/tendermint/types#pkg-constants - */ -export enum SubscriptionEventType { - NewBlock = "NewBlock", - NewBlockHeader = "NewBlockHeader", - Tx = "Tx", -} - -export interface AbciInfoRequest { - readonly method: Method.AbciInfo; -} - -export interface AbciQueryRequest { - readonly method: Method.AbciQuery; - readonly params: AbciQueryParams; -} - -export interface AbciQueryParams { - readonly path: string; - readonly data: Uint8Array; - readonly height?: number; - /** - * A flag that defines if proofs are included in the response or not. - * - * Internally this is mapped to the old inverse name `trusted` for Tendermint < 0.26. - * Starting with Tendermint 0.26, the default value changed from true to false. - */ - readonly prove?: boolean; -} - -export interface BlockRequest { - readonly method: Method.Block; - readonly params: { - readonly height?: number; - }; -} - -export interface BlockchainRequest { - readonly method: Method.Blockchain; - readonly params: BlockchainRequestParams; -} - -export interface BlockchainRequestParams { - readonly minHeight?: number; - readonly maxHeight?: number; -} - -export interface BlockResultsRequest { - readonly method: Method.BlockResults; - readonly params: { - readonly height?: number; - }; -} - -export interface BlockSearchRequest { - readonly method: Method.BlockSearch; - readonly params: BlockSearchParams; -} - -export interface BlockSearchParams { - readonly query: string; - readonly page?: number; - readonly per_page?: number; - readonly order_by?: string; -} - -export interface BroadcastTxRequest { - readonly method: Method.BroadcastTxAsync | Method.BroadcastTxSync | Method.BroadcastTxCommit; - readonly params: BroadcastTxParams; -} - -export interface BroadcastTxParams { - readonly tx: Uint8Array; -} - -export interface CommitRequest { - readonly method: Method.Commit; - readonly params: { - readonly height?: number; - }; -} - -export interface GenesisRequest { - readonly method: Method.Genesis; -} - -export interface HealthRequest { - readonly method: Method.Health; -} - -export interface NumUnconfirmedTxsRequest { - readonly method: Method.NumUnconfirmedTxs; -} - -export interface StatusRequest { - readonly method: Method.Status; -} - -export interface SubscribeRequest { - readonly method: Method.Subscribe; - readonly query: { - readonly type: SubscriptionEventType; - readonly raw?: string; - }; -} - -export interface QueryTag { - readonly key: string; - readonly value: string; -} - -export interface TxRequest { - readonly method: Method.Tx; - readonly params: TxParams; -} - -export interface TxParams { - readonly hash: Uint8Array; - readonly prove?: boolean; -} - -// TODO: clarify this type -export interface TxSearchRequest { - readonly method: Method.TxSearch; - readonly params: TxSearchParams; -} - -export interface TxSearchParams { - readonly query: string; - readonly prove?: boolean; - readonly page?: number; - readonly per_page?: number; - readonly order_by?: string; -} - -export interface ValidatorsRequest { - readonly method: Method.Validators; - readonly params: ValidatorsParams; -} - -export interface ValidatorsParams { - readonly height?: number; - readonly page?: number; - readonly per_page?: number; -} - -export interface BuildQueryComponents { - readonly tags?: readonly QueryTag[]; - readonly raw?: string; -} - -export function buildQuery(components: BuildQueryComponents): string { - const tags = components.tags ? components.tags : []; - const tagComponents = tags.map((tag) => `${tag.key}='${tag.value}'`); - const rawComponents = components.raw ? [components.raw] : []; - - return [...tagComponents, ...rawComponents].join(" AND "); -} diff --git a/packages/core/src/lib/tendermint35/responses.ts b/packages/core/src/lib/tendermint35/responses.ts deleted file mode 100644 index 4c1b4528..00000000 --- a/packages/core/src/lib/tendermint35/responses.ts +++ /dev/null @@ -1,395 +0,0 @@ -import { ReadonlyDate } from 'readonly-date'; -import { CommitSignature, ValidatorPubkey } from '@cosmjs/tendermint-rpc'; - -import { ReadonlyDateWithNanoseconds } from './dates'; - -export type Response = - | AbciInfoResponse - | AbciQueryResponse - | BlockResponse - | BlockResultsResponse - | BlockSearchResponse - | BlockchainResponse - | BroadcastTxAsyncResponse - | BroadcastTxSyncResponse - | BroadcastTxCommitResponse - | CommitResponse - | GenesisResponse - | HealthResponse - | NumUnconfirmedTxsResponse - | StatusResponse - | TxResponse - | TxSearchResponse - | ValidatorsResponse; - -export interface AbciInfoResponse { - readonly data?: string; - readonly lastBlockHeight?: number; - readonly lastBlockAppHash?: Uint8Array; -} - -export interface ProofOp { - readonly type: string; - readonly key: Uint8Array; - readonly data: Uint8Array; -} - -export interface QueryProof { - readonly ops: readonly ProofOp[]; -} - -export interface AbciQueryResponse { - readonly key: Uint8Array; - readonly value: Uint8Array; - readonly proof?: QueryProof; - readonly height?: number; - readonly index?: number; - readonly code?: number; // non-falsy for errors - readonly codespace: string; - readonly log?: string; - readonly info: string; -} - -export interface BlockResponse { - readonly blockId: BlockId; - readonly block: Block; -} - -export interface BlockResultsResponse { - readonly height: number; - readonly results: readonly TxData[]; - readonly validatorUpdates: readonly ValidatorUpdate[]; - readonly consensusUpdates?: ConsensusParams; - readonly beginBlockEvents: readonly Event[]; - readonly endBlockEvents: readonly Event[]; -} - -export interface BlockSearchResponse { - readonly blocks: readonly BlockResponse[]; - readonly totalCount: number; -} - -export interface BlockchainResponse { - readonly lastHeight: number; - readonly blockMetas: readonly BlockMeta[]; -} - -/** - * No transaction data in here because RPC method BroadcastTxAsync "returns right away, with no response" - */ -export interface BroadcastTxAsyncResponse { - readonly hash: Uint8Array; -} - -export interface BroadcastTxSyncResponse extends TxData { - readonly hash: Uint8Array; -} - -/** - * Returns true iff transaction made it successfully into the transaction pool - */ -export function broadcastTxSyncSuccess(res: BroadcastTxSyncResponse): boolean { - // code must be 0 on success - return res.code === 0; -} - -export interface BroadcastTxCommitResponse { - readonly height: number; - readonly hash: Uint8Array; - readonly checkTx: TxData; - readonly deliverTx?: TxData; -} - -/** - * Returns true iff transaction made it successfully into a block - * (i.e. success in `check_tx` and `deliver_tx` field) - */ -export function broadcastTxCommitSuccess( - response: BroadcastTxCommitResponse -): boolean { - // code must be 0 on success - // deliverTx may be present but empty on failure - return ( - response.checkTx.code === 0 && - !!response.deliverTx && - response.deliverTx.code === 0 - ); -} - -export interface CommitResponse { - readonly header: Header; - readonly commit: Commit; - readonly canonical: boolean; -} - -export interface GenesisResponse { - readonly genesisTime: ReadonlyDate; - readonly chainId: string; - readonly consensusParams: ConsensusParams; - readonly validators: readonly Validator[]; - readonly appHash: Uint8Array; - readonly appState: Record | undefined; -} - -export type HealthResponse = null; - -export interface NumUnconfirmedTxsResponse { - readonly total: number; - readonly totalBytes: number; -} - -export interface StatusResponse { - readonly nodeInfo: NodeInfo; - readonly syncInfo: SyncInfo; - readonly validatorInfo: Validator; -} - -/** - * A transaction from RPC calls like search. - * - * Try to keep this compatible to TxEvent - */ -export interface TxResponse { - readonly tx: Uint8Array; - readonly hash: Uint8Array; - readonly height: number; - readonly index: number; - readonly result: TxData; - readonly proof?: TxProof; -} - -export interface TxSearchResponse { - readonly txs: readonly TxResponse[]; - readonly totalCount: number; -} - -export interface ValidatorsResponse { - readonly blockHeight: number; - readonly validators: readonly Validator[]; - readonly count: number; - readonly total: number; -} - -// Events - -export type NewBlockEvent = Block; - -export type NewBlockHeaderEvent = Header; - -export interface TxEvent { - readonly tx: Uint8Array; - readonly hash: Uint8Array; - readonly height: number; - readonly result: TxData; -} - -// Helper items used above - -/** - * An event attribute. - * - * In 0.35 the type of key and value was changed - * from bytes to string, such that no base64 encoding is used anymore. - */ -export interface EventAttribute { - readonly key: string; - readonly value: string; -} - -export interface Event { - readonly type: string; - readonly attributes: readonly EventAttribute[]; -} - -export interface TxData { - readonly code: number; - readonly codespace?: string; - readonly log?: string; - readonly data?: Uint8Array; - readonly events: readonly Event[]; - readonly gasWanted: number; - readonly gasUsed: number; -} - -export interface TxProof { - readonly data: Uint8Array; - readonly rootHash: Uint8Array; - readonly proof: { - readonly total: number; - readonly index: number; - readonly leafHash: Uint8Array; - readonly aunts: readonly Uint8Array[]; - }; -} - -export interface BlockMeta { - readonly blockId: BlockId; - readonly blockSize: number; - readonly header: Header; - readonly numTxs: number; -} - -export interface BlockId { - readonly hash: Uint8Array; - readonly parts: { - readonly total: number; - readonly hash: Uint8Array; - }; -} - -export interface Block { - readonly header: Header; - /** - * For the block at height 1, last commit is not set. - */ - readonly lastCommit: Commit | null; - readonly txs: readonly Uint8Array[]; - readonly evidence: readonly Evidence[]; -} - -/** - * We lost track on how the evidence structure actually looks like. - * This is any now and passed to the caller untouched. - * - * See also https://github.com/cosmos/cosmjs/issues/980. - */ -export type Evidence = any; - -export interface Commit { - readonly blockId: BlockId; - readonly height: number; - readonly round: number; - readonly signatures: readonly CommitSignature[]; -} - -/** - * raw values from https://github.com/tendermint/tendermint/blob/dfa9a9a30a666132425b29454e90a472aa579a48/types/vote.go#L44 - */ -export enum VoteType { - PreVote = 1, - PreCommit = 2, -} - -export interface Vote { - readonly type: VoteType; - readonly validatorAddress: Uint8Array; - readonly validatorIndex: number; - readonly height: number; - readonly round: number; - readonly timestamp: ReadonlyDate; - readonly blockId: BlockId; - readonly signature: Uint8Array; -} - -export interface Version { - readonly block: number; - readonly app: number; -} - -// https://github.com/tendermint/tendermint/blob/v0.31.8/docs/spec/blockchain/blockchain.md -export interface Header { - // basic block info - readonly version: Version; - readonly chainId: string; - readonly height: number; - readonly time: ReadonlyDateWithNanoseconds; - - /** - * Block ID of the previous block. This can be `null` when the currect block is height 1. - */ - readonly lastBlockId: BlockId | null; - - /** - * Hashes of block data. - * - * This is `sha256("")` for height 1 🤷‍ - */ - readonly lastCommitHash: Uint8Array; - /** - * This is `sha256("")` as long as there is no data 🤷‍ - */ - readonly dataHash: Uint8Array; - - // hashes from the app output from the prev block - readonly validatorsHash: Uint8Array; - readonly nextValidatorsHash: Uint8Array; - readonly consensusHash: Uint8Array; - /** - * This can be an empty string for height 1 and turn into "0000000000000000" later on 🤷‍ - */ - readonly appHash: Uint8Array; - /** - * This is `sha256("")` as long as there is no data 🤷‍ - */ - readonly lastResultsHash: Uint8Array; - - // consensus info - /** - * This is `sha256("")` as long as there is no data 🤷‍ - */ - readonly evidenceHash: Uint8Array; - readonly proposerAddress: Uint8Array; -} - -export interface NodeInfo { - readonly id: Uint8Array; - /** IP and port */ - readonly listenAddr: string; - readonly network: string; - /** - * The Tendermint version. Can be empty (see https://github.com/cosmos/cosmos-sdk/issues/7963). - */ - readonly version: string; - readonly channels: string; // ??? - readonly moniker: string; - readonly other: Map; - readonly protocolVersion: { - readonly p2p: number; - readonly block: number; - readonly app: number; - }; -} - -export interface SyncInfo { - readonly latestBlockHash: Uint8Array; - readonly latestAppHash: Uint8Array; - readonly latestBlockHeight: number; - readonly latestBlockTime: ReadonlyDate; - readonly catchingUp: boolean; -} - -export interface Validator { - readonly address: Uint8Array; - readonly pubkey?: ValidatorPubkey; - readonly votingPower: bigint; - readonly proposerPriority?: number; -} - -export interface ValidatorUpdate { - readonly pubkey: ValidatorPubkey; - readonly votingPower: bigint; -} - -export interface ConsensusParams { - readonly block: BlockParams; - readonly evidence: EvidenceParams; -} - -export interface BlockParams { - readonly maxBytes: number; - readonly maxGas: number; -} - -export interface TxSizeParams { - readonly maxBytes: number; - readonly maxGas: number; -} - -export interface BlockGossipParams { - readonly blockPartSizeBytes: number; -} - -export interface EvidenceParams { - readonly maxAgeNumBlocks: number; - readonly maxAgeDuration: number; -} diff --git a/packages/core/src/lib/tendermint35/rpcclients.ts b/packages/core/src/lib/tendermint35/rpcclients.ts deleted file mode 100644 index ff57c34c..00000000 --- a/packages/core/src/lib/tendermint35/rpcclients.ts +++ /dev/null @@ -1,28 +0,0 @@ -import { JsonRpcRequest } from '@cosmjs/json-rpc'; -import { RpcClient } from '@cosmjs/tendermint-rpc'; -import { Stream } from 'xstream'; - -/** - * An event emitted from Tendermint after subscribing via RPC. - * - * These events are passed as the `result` of JSON-RPC responses, which is kind - * of hacky because it breaks the idea that exactly one JSON-RPC response belongs - * to each JSON-RPC request. But this is how subscriptions work in Tendermint. - */ -export interface SubscriptionEvent { - readonly query: string; - readonly data: { - readonly type: string; - readonly value: any; - }; -} - -export interface RpcStreamingClient extends RpcClient { - readonly listen: (request: JsonRpcRequest) => Stream; -} - -export function instanceOfRpcStreamingClient( - client: RpcClient -): client is RpcStreamingClient { - return typeof (client as any).listen === 'function'; -} diff --git a/packages/core/src/lib/tendermint35/tendermint35client.ts b/packages/core/src/lib/tendermint35/tendermint35client.ts deleted file mode 100644 index 56118247..00000000 --- a/packages/core/src/lib/tendermint35/tendermint35client.ts +++ /dev/null @@ -1,447 +0,0 @@ -import { Stream } from 'xstream'; -import { - HttpClient, - HttpEndpoint, - WebsocketClient, - RpcClient, -} from '@cosmjs/tendermint-rpc'; - -import { createJsonRpcRequest } from './jsonrpc'; -import { instanceOfRpcStreamingClient, SubscriptionEvent } from './rpcclients'; -import { adaptor35, Decoder, Encoder, Params, Responses } from './adaptor'; -import * as requests from './requests'; -import * as responses from './responses'; - -/** - * This Tendermint 0.35 client is taken from @cosmjs/tendermint-rpc. - * Currently, cosmjs does not support Tendermint 0.35 and it's implementation, - * is not exported, so we have to implement it ourselves and do some workarounds - * to create a `SeiStargateClient`. - * - * @see https://github.com/cosmos/cosmjs/issues/1225 - */ -export class Tendermint35Client { - /** - * Creates a new Tendermint client for the given endpoint. - * - * Uses HTTP when the URL schema is http or https. Uses WebSockets otherwise. - */ - public static async connect( - endpoint: string | HttpEndpoint - ): Promise { - if (typeof endpoint === 'object') { - return Tendermint35Client.create(new HttpClient(endpoint)); - } else { - const useHttp = - endpoint.startsWith('http://') || endpoint.startsWith('https://'); - const rpcClient = useHttp - ? new HttpClient(endpoint) - : new WebsocketClient(endpoint); - return Tendermint35Client.create(rpcClient); - } - } - - /** - * Creates a new Tendermint client given an RPC client. - */ - public static async create( - rpcClient: RpcClient - ): Promise { - // For some very strange reason I don't understand, tests start to fail on some systems - // (our CI) when skipping the status call before doing other queries. Sleeping a little - // while did not help. Thus we query the version as a way to say "hi" to the backend, - // even in cases where we don't use the result. - const _version = await this.detectVersion(rpcClient); - return new Tendermint35Client(rpcClient); - } - - private static async detectVersion(client: RpcClient): Promise { - const req = createJsonRpcRequest(requests.Method.Status); - const response = await client.execute(req); - const result = response.result; - - if (!result || !result.node_info) { - throw new Error('Unrecognized format for status response'); - } - - const version = result.node_info.version; - if (typeof version !== 'string') { - throw new Error('Unrecognized version format: must be string'); - } - return version; - } - - private readonly client: RpcClient; - private readonly p: Params; - private readonly r: Responses; - - /** - * Use `Tendermint34Client.connect` or `Tendermint34Client.create` to create an instance. - */ - private constructor(client: RpcClient) { - this.client = client; - this.p = adaptor35.params; - this.r = adaptor35.responses; - } - - public disconnect(): void { - this.client.disconnect(); - } - - public async abciInfo(): Promise { - const query: requests.AbciInfoRequest = { - method: requests.Method.AbciInfo, - }; - return this.doCall(query, this.p.encodeAbciInfo, this.r.decodeAbciInfo); - } - - public async abciQuery( - params: requests.AbciQueryParams - ): Promise { - const query: requests.AbciQueryRequest = { - params: params, - method: requests.Method.AbciQuery, - }; - return this.doCall(query, this.p.encodeAbciQuery, this.r.decodeAbciQuery); - } - - public async block(height?: number): Promise { - const query: requests.BlockRequest = { - method: requests.Method.Block, - params: { height: height }, - }; - return this.doCall(query, this.p.encodeBlock, this.r.decodeBlock); - } - - public async blockResults( - height?: number - ): Promise { - const query: requests.BlockResultsRequest = { - method: requests.Method.BlockResults, - params: { height: height }, - }; - return this.doCall( - query, - this.p.encodeBlockResults, - this.r.decodeBlockResults - ); - } - - /** - * Search for events that are in a block. - * - * NOTE - * This method will error on any node that is running a Tendermint version lower than 0.34.9. - * - * @see https://docs.tendermint.com/master/rpc/#/Info/block_search - */ - public async blockSearch( - params: requests.BlockSearchParams - ): Promise { - const query: requests.BlockSearchRequest = { - params: params, - method: requests.Method.BlockSearch, - }; - const resp = await this.doCall( - query, - this.p.encodeBlockSearch, - this.r.decodeBlockSearch - ); - return { - ...resp, - // make sure we sort by height, as tendermint may be sorting by string value of the height - blocks: [...resp.blocks].sort( - (a, b) => a.block.header.height - b.block.header.height - ), - }; - } - - // this should paginate through all blockSearch options to ensure it returns all results. - // starts with page 1 or whatever was provided (eg. to start on page 7) - // - // NOTE - // This method will error on any node that is running a Tendermint version lower than 0.34.9. - public async blockSearchAll( - params: requests.BlockSearchParams - ): Promise { - let page = params.page || 1; - const blocks: responses.BlockResponse[] = []; - let done = false; - - while (!done) { - const resp = await this.blockSearch({ ...params, page: page }); - blocks.push(...resp.blocks); - if (blocks.length < resp.totalCount) { - page++; - } else { - done = true; - } - } - // make sure we sort by height, as tendermint may be sorting by string value of the height - // and the earlier items may be in a higher page than the later items - blocks.sort((a, b) => a.block.header.height - b.block.header.height); - - return { - totalCount: blocks.length, - blocks: blocks, - }; - } - - /** - * Queries block headers filtered by minHeight <= height <= maxHeight. - * - * @param minHeight The minimum height to be included in the result. Defaults to 0. - * @param maxHeight The maximum height to be included in the result. Defaults to infinity. - */ - public async blockchain( - minHeight?: number, - maxHeight?: number - ): Promise { - const query: requests.BlockchainRequest = { - method: requests.Method.Blockchain, - params: { - minHeight: minHeight, - maxHeight: maxHeight, - }, - }; - return this.doCall(query, this.p.encodeBlockchain, this.r.decodeBlockchain); - } - - /** - * Broadcast transaction to mempool and wait for response - * - * @see https://docs.tendermint.com/master/rpc/#/Tx/broadcast_tx_sync - */ - public async broadcastTxSync( - params: requests.BroadcastTxParams - ): Promise { - const query: requests.BroadcastTxRequest = { - params: params, - method: requests.Method.BroadcastTxSync, - }; - return this.doCall( - query, - this.p.encodeBroadcastTx, - this.r.decodeBroadcastTxSync - ); - } - - /** - * Broadcast transaction to mempool and do not wait for result - * - * @see https://docs.tendermint.com/master/rpc/#/Tx/broadcast_tx_async - */ - public async broadcastTxAsync( - params: requests.BroadcastTxParams - ): Promise { - const query: requests.BroadcastTxRequest = { - params: params, - method: requests.Method.BroadcastTxAsync, - }; - return this.doCall( - query, - this.p.encodeBroadcastTx, - this.r.decodeBroadcastTxAsync - ); - } - - /** - * Broadcast transaction to mempool and wait for block - * - * @see https://docs.tendermint.com/master/rpc/#/Tx/broadcast_tx_commit - */ - public async broadcastTxCommit( - params: requests.BroadcastTxParams - ): Promise { - const query: requests.BroadcastTxRequest = { - params: params, - method: requests.Method.BroadcastTxCommit, - }; - return this.doCall( - query, - this.p.encodeBroadcastTx, - this.r.decodeBroadcastTxCommit - ); - } - - public async commit(height?: number): Promise { - const query: requests.CommitRequest = { - method: requests.Method.Commit, - params: { height: height }, - }; - return this.doCall(query, this.p.encodeCommit, this.r.decodeCommit); - } - - public async genesis(): Promise { - const query: requests.GenesisRequest = { method: requests.Method.Genesis }; - return this.doCall(query, this.p.encodeGenesis, this.r.decodeGenesis); - } - - public async health(): Promise { - const query: requests.HealthRequest = { method: requests.Method.Health }; - return this.doCall(query, this.p.encodeHealth, this.r.decodeHealth); - } - - public async numUnconfirmedTxs(): Promise { - const query: requests.NumUnconfirmedTxsRequest = { - method: requests.Method.NumUnconfirmedTxs, - }; - return this.doCall( - query, - this.p.encodeNumUnconfirmedTxs, - this.r.decodeNumUnconfirmedTxs - ); - } - - public async status(): Promise { - const query: requests.StatusRequest = { method: requests.Method.Status }; - return this.doCall(query, this.p.encodeStatus, this.r.decodeStatus); - } - - public subscribeNewBlock(): Stream { - const request: requests.SubscribeRequest = { - method: requests.Method.Subscribe, - query: { type: requests.SubscriptionEventType.NewBlock }, - }; - return this.subscribe(request, this.r.decodeNewBlockEvent); - } - - public subscribeNewBlockHeader(): Stream { - const request: requests.SubscribeRequest = { - method: requests.Method.Subscribe, - query: { type: requests.SubscriptionEventType.NewBlockHeader }, - }; - return this.subscribe(request, this.r.decodeNewBlockHeaderEvent); - } - - public subscribeTx(query?: string): Stream { - const request: requests.SubscribeRequest = { - method: requests.Method.Subscribe, - query: { - type: requests.SubscriptionEventType.Tx, - raw: query, - }, - }; - return this.subscribe(request, this.r.decodeTxEvent); - } - - /** - * Get a single transaction by hash - * - * @see https://docs.tendermint.com/master/rpc/#/Info/tx - */ - public async tx(params: requests.TxParams): Promise { - const query: requests.TxRequest = { - params: params, - method: requests.Method.Tx, - }; - return this.doCall(query, this.p.encodeTx, this.r.decodeTx); - } - - /** - * Search for transactions that are in a block - * - * @see https://docs.tendermint.com/master/rpc/#/Info/tx_search - */ - public async txSearch( - params: requests.TxSearchParams - ): Promise { - const query: requests.TxSearchRequest = { - params: params, - method: requests.Method.TxSearch, - }; - return this.doCall(query, this.p.encodeTxSearch, this.r.decodeTxSearch); - } - - // this should paginate through all txSearch options to ensure it returns all results. - // starts with page 1 or whatever was provided (eg. to start on page 7) - public async txSearchAll( - params: requests.TxSearchParams - ): Promise { - let page = params.page || 1; - const txs: responses.TxResponse[] = []; - let done = false; - - while (!done) { - const resp = await this.txSearch({ ...params, page: page }); - txs.push(...resp.txs); - if (txs.length < resp.totalCount) { - page++; - } else { - done = true; - } - } - - return { - totalCount: txs.length, - txs: txs, - }; - } - - public async validators( - params: requests.ValidatorsParams - ): Promise { - const query: requests.ValidatorsRequest = { - method: requests.Method.Validators, - params: params, - }; - return this.doCall(query, this.p.encodeValidators, this.r.decodeValidators); - } - - public async validatorsAll( - height?: number - ): Promise { - const validators: responses.Validator[] = []; - let page = 1; - let done = false; - let blockHeight = height; - - while (!done) { - const response = await this.validators({ - per_page: 50, - height: blockHeight, - page: page, - }); - validators.push(...response.validators); - blockHeight = blockHeight || response.blockHeight; - if (validators.length < response.total) { - page++; - } else { - done = true; - } - } - - return { - // NOTE: Default value is for type safety but this should always be set - blockHeight: blockHeight ?? 0, - count: validators.length, - total: validators.length, - validators: validators, - }; - } - - // doCall is a helper to handle the encode/call/decode logic - private async doCall< - T extends requests.Request, - U extends responses.Response - >(request: T, encode: Encoder, decode: Decoder): Promise { - const req = encode(request); - const result = await this.client.execute(req); - return decode(result); - } - - private subscribe( - request: requests.SubscribeRequest, - decode: (e: SubscriptionEvent) => T - ): Stream { - if (!instanceOfRpcStreamingClient(this.client)) { - throw new Error('This RPC client type cannot subscribe to events'); - } - - const req = this.p.encodeSubscribe(request); - const eventStream = this.client.listen(req); - return eventStream.map((event) => { - return decode(event); - }); - } -} diff --git a/packages/core/src/lib/wallet/config.spec.ts b/packages/core/src/lib/wallet/config.spec.ts index 4954debf..943ad4aa 100644 --- a/packages/core/src/lib/wallet/config.spec.ts +++ b/packages/core/src/lib/wallet/config.spec.ts @@ -1,126 +1,52 @@ import { TextEncoder } from 'util'; -import { getChainSuggest, suggestChain } from './config'; +import { getChainSuggest } from './config'; // Needed to generate an offline signer global.TextEncoder = TextEncoder; describe('getChainSuggest', () => { - it('should return a chain config', async () => { - const chainId = 'atlantic-1'; - const restUrl = 'https://rest-url'; - const rpcUrl = 'https://rpc-url'; - expect(getChainSuggest({ chainId, restUrl, rpcUrl })).toEqual({ - chainId: 'atlantic-1', - chainName: 'Sei Testnet', - rpc: rpcUrl, - rest: restUrl, - bip44: { - coinType: 118, - }, - bech32Config: { - bech32PrefixAccAddr: 'sei', - bech32PrefixAccPub: `seipub`, - bech32PrefixValAddr: `seivaloper`, - bech32PrefixValPub: `seivaloperpub`, - bech32PrefixConsAddr: `seivalcons`, - bech32PrefixConsPub: `seivalconspub`, - }, - currencies: [ - { - coinDenom: 'SEI', - coinMinimalDenom: 'usei', - coinDecimals: 6, - }, - { - coinDenom: 'USDC', - coinMinimalDenom: 'uusdc', - coinDecimals: 6, - coinGeckoId: 'usd-coin', - }, - { - coinDenom: 'ATOM', - coinMinimalDenom: 'uatom', - coinDecimals: 6, - coinGeckoId: 'cosmos', - }, - { - coinDenom: 'WETH', - coinMinimalDenom: - 'ibc/C2A89D98873BB55B62CE86700DFACA646EC80352E8D03CC6CF34DD44E46DC75D', - coinDecimals: 18, - coinGeckoId: 'weth', - }, - { - coinDenom: 'WBTC', - coinMinimalDenom: - 'ibc/42BCC21A2B784E813F8878739FD32B4AA2D0A68CAD94F4C88B9EA98609AB0CCD', - coinDecimals: 8, - coinGeckoId: 'bitcoin', - }, - { - coinDenom: 'aUSDC', - coinMinimalDenom: - 'ibc/6D45A5CD1AADE4B527E459025AC1A5AEF41AE99091EF3069F3FEAACAFCECCD21', - coinDecimals: 6, - coinGeckoId: 'usd-coin', - }, - { - coinDenom: 'UST2', - coinMinimalDenom: - 'factory/sei1466nf3zuxpya8q9emxukd7vftaf6h4psr0a07srl5zw74zh84yjqpeheyc/uust2', - coinDecimals: 6, - }, - { - coinDenom: 'uCeler', - coinMinimalDenom: - 'factory/sei174t9p63nzlmsycmd9x9zxx3ejq9lp2y9f69rp9/uceler', - coinDecimals: 6, - }, - ], - feeCurrencies: [ - { - coinDenom: 'SEI', - coinMinimalDenom: 'usei', - coinDecimals: 6, - }, - ], - stakeCurrency: { - coinDenom: 'SEI', - coinMinimalDenom: 'usei', - coinDecimals: 6, - }, - coinType: 118, - features: ['stargate', 'ibc-transfer', 'cosmwasm'], - }); - }); -}); - -describe('suggestChain', () => { - let windowSpy: jest.SpyInstance; - - beforeEach(() => { - windowSpy = jest.spyOn(window, 'window', 'get'); - }); - - afterEach(() => { - windowSpy.mockRestore(); - }); - - it('should throw an error if no wallet is installed', async () => { - windowSpy.mockImplementation(() => ({})); - - const key = 'keplr'; - await expect(suggestChain(key)).rejects.toThrowError(); - }); - - it('should call experimentalSuggestChain and return undefined', async () => { - windowSpy.mockImplementation(() => ({ - keplr: { - experimentalSuggestChain: () => undefined, - }, - })); - - const key = 'keplr'; - await expect(suggestChain(key)).resolves.toBeUndefined(); - }); + it('should return a chain config', async () => { + const chainId = 'pacific-1'; + const restUrl = 'https://rest-url'; + const rpcUrl = 'https://rpc-url'; + expect(getChainSuggest({ chainId, restUrl, rpcUrl })).toEqual({ + chainId, + chainName: 'Sei', + rpc: rpcUrl, + rest: restUrl, + bip44: { + coinType: 118 + }, + bech32Config: { + bech32PrefixAccAddr: 'sei', + bech32PrefixAccPub: `seipub`, + bech32PrefixValAddr: `seivaloper`, + bech32PrefixValPub: `seivaloperpub`, + bech32PrefixConsAddr: `seivalcons`, + bech32PrefixConsPub: `seivalconspub` + }, + currencies: [ + { + coinDenom: 'SEI', + coinMinimalDenom: 'usei', + coinDecimals: 6 + } + ], + feeCurrencies: [ + { + coinDenom: 'SEI', + coinMinimalDenom: 'usei', + coinDecimals: 6, + gasPriceStep: { low: 0.1, average: 0.2, high: 0.3 } + } + ], + stakeCurrency: { + coinDenom: 'SEI', + coinMinimalDenom: 'usei', + coinDecimals: 6 + }, + coinType: 118, + features: ['stargate', 'ibc-transfer', 'cosmwasm'] + }); + }); }); diff --git a/packages/core/src/lib/wallet/config.ts b/packages/core/src/lib/wallet/config.ts index 65935e53..ebbdc129 100644 --- a/packages/core/src/lib/wallet/config.ts +++ b/packages/core/src/lib/wallet/config.ts @@ -1,4 +1,4 @@ -import { ChainInfo, WalletWindowKey } from './types'; +import { ChainConfig, ChainInfo, Currency } from './types'; import { AccountData, OfflineSigner } from '@cosmjs/proto-signing'; import { StdSignature } from '@cosmjs/amino'; @@ -13,8 +13,10 @@ export interface SeiWallet { getAccounts: (chainId: string) => Promise; connect: (chainId: string) => Promise; disconnect: (chainId: string) => Promise; - suggestChain?: (chainId: string) => void; + suggestChain?: (config: ChainConfig) => Promise; signArbitrary?: (chainId: string, signer: string, message: string) => Promise; + verifyArbitrary?: (chainId: string, signingAddress: string, data: string, signature: StdSignature) => Promise; + isMobileSupported: boolean; } export const FIN_WALLET: SeiWallet = { @@ -26,12 +28,14 @@ export const FIN_WALLET: SeiWallet = { disconnect: async (chainId) => await window?.['fin']?.disable(chainId), getOfflineSigner: async (chainId) => window?.['fin']?.getOfflineSignerAuto(chainId), signArbitrary: async (chainId, signer, message) => window?.['fin']?.signArbitrary(chainId, signer, message), + verifyArbitrary: async (chainId, signingAddress, data, signature) => window?.['fin']?.verifyArbitrary(chainId, signingAddress, data, signature), walletInfo: { windowKey: 'fin', name: 'Fin', - website: 'https://chrome.google.com/webstore/detail/fin-wallet-for-sei/dbgnhckhnppddckangcjbkjnlddbjkna', + website: 'https://finwallet.com', icon: 'https://sei-js-assets.s3.us-west-2.amazonaws.com/fin.png' - } + }, + isMobileSupported: false }; export const COMPASS_WALLET: SeiWallet = { @@ -43,12 +47,14 @@ export const COMPASS_WALLET: SeiWallet = { disconnect: async (chainId) => await window?.['compass']?.disable(chainId), getOfflineSigner: async (chainId) => window?.['compass']?.getOfflineSignerAuto(chainId), signArbitrary: async (chainId, signer, message) => window?.['compass']?.signArbitrary(chainId, signer, message), + verifyArbitrary: async (chainId, signingAddress, data, signature) => window?.['compass']?.verifyArbitrary(chainId, signingAddress, data, signature), walletInfo: { windowKey: 'compass', name: 'Compass', website: 'https://chrome.google.com/webstore/detail/compass-wallet/anokgmphncpekkhclmingpimjmcooifb', icon: 'https://sei-js-assets.s3.us-west-2.amazonaws.com/compass.png' - } + }, + isMobileSupported: true }; export const KEPLR_WALLET: SeiWallet = { @@ -60,12 +66,15 @@ export const KEPLR_WALLET: SeiWallet = { disconnect: async (chainId) => await window?.['keplr']?.disable(chainId), getOfflineSigner: async (chainId) => window?.['keplr']?.getOfflineSignerAuto(chainId), signArbitrary: async (chainId, signer, message) => window?.['keplr']?.signArbitrary(chainId, signer, message), + verifyArbitrary: async (chainId, signingAddress, data, signature) => window?.['keplr']?.verifyArbitrary(chainId, signingAddress, data, signature), + suggestChain: async (config) => window?.['keplr']?.experimentalSuggestChain(config), walletInfo: { windowKey: 'keplr', name: 'Keplr', website: 'https://www.keplr.app/download', icon: 'https://sei-js-assets.s3.us-west-2.amazonaws.com/keplr.png' - } + }, + isMobileSupported: false }; export const LEAP_WALLET: SeiWallet = { @@ -77,26 +86,30 @@ export const LEAP_WALLET: SeiWallet = { disconnect: async (chainId) => await window?.['leap']?.disable(chainId), getOfflineSigner: async (chainId) => window?.['leap']?.getOfflineSignerAuto(chainId), signArbitrary: async (chainId, signer, message) => window?.['leap']?.signArbitrary(chainId, signer, message), + verifyArbitrary: async (chainId, signingAddress, data, signature) => window?.['leap']?.verifyArbitrary(chainId, signingAddress, data, signature), + suggestChain: async (config) => window?.['leap']?.experimentalSuggestChain(config), walletInfo: { windowKey: 'leap', name: 'Leap', website: 'https://www.leapwallet.io/download', icon: 'https://sei-js-assets.s3.us-west-2.amazonaws.com/leap.png' - } + }, + isMobileSupported: true }; export const SUPPORTED_WALLETS: SeiWallet[] = [COMPASS_WALLET, FIN_WALLET, LEAP_WALLET, KEPLR_WALLET]; const DEFAULT_CHAIN_INFO = { - chainName: 'Sei Testnet', - chainId: 'atlantic-2', - restUrl: 'https://rest.atlantic-2.seinetwork.io', - rpcUrl: 'https://rpc.atlantic-2.seinetwork.io' + chainName: 'Sei', + chainId: 'pacific-1', + restUrl: 'https://rest.wallet.pacific-1.sei.io/', + rpcUrl: 'https://rpc.wallet.pacific-1.sei.io/', + gasPriceStep: { low: 0.1, average: 0.2, high: 0.3 } }; -export const getChainSuggest = (chainInfo: ChainInfo = {}) => { +export const getChainSuggest = (chainInfo: ChainInfo = {}, currencies: Currency[] = []): ChainConfig => { const prefix = 'sei'; - const { chainId, chainName, rpcUrl, restUrl } = { + const { chainId, chainName, rpcUrl, restUrl, gasPriceStep } = { ...DEFAULT_CHAIN_INFO, ...chainInfo }; @@ -123,52 +136,14 @@ export const getChainSuggest = (chainInfo: ChainInfo = {}) => { coinMinimalDenom: 'usei', coinDecimals: 6 }, - { - coinDenom: 'USDC', - coinMinimalDenom: 'uusdc', - coinDecimals: 6, - coinGeckoId: 'usd-coin' - }, - { - coinDenom: 'ATOM', - coinMinimalDenom: 'uatom', - coinDecimals: 6, - coinGeckoId: 'cosmos' - }, - { - coinDenom: 'WETH', - coinMinimalDenom: 'ibc/C2A89D98873BB55B62CE86700DFACA646EC80352E8D03CC6CF34DD44E46DC75D', - coinDecimals: 18, - coinGeckoId: 'weth' - }, - { - coinDenom: 'WBTC', - coinMinimalDenom: 'ibc/42BCC21A2B784E813F8878739FD32B4AA2D0A68CAD94F4C88B9EA98609AB0CCD', - coinDecimals: 8, - coinGeckoId: 'bitcoin' - }, - { - coinDenom: 'aUSDC', - coinMinimalDenom: 'ibc/6D45A5CD1AADE4B527E459025AC1A5AEF41AE99091EF3069F3FEAACAFCECCD21', - coinDecimals: 6, - coinGeckoId: 'usd-coin' - }, - { - coinDenom: 'UST2', - coinMinimalDenom: 'factory/sei1466nf3zuxpya8q9emxukd7vftaf6h4psr0a07srl5zw74zh84yjqpeheyc/uust2', - coinDecimals: 6 - }, - { - coinDenom: 'uCeler', - coinMinimalDenom: 'factory/sei174t9p63nzlmsycmd9x9zxx3ejq9lp2y9f69rp9/uceler', - coinDecimals: 6 - } + ...currencies ], feeCurrencies: [ { coinDenom: 'SEI', coinMinimalDenom: 'usei', - coinDecimals: 6 + coinDecimals: 6, + gasPriceStep } ], stakeCurrency: { @@ -180,18 +155,3 @@ export const getChainSuggest = (chainInfo: ChainInfo = {}) => { features: ['stargate', 'ibc-transfer', 'cosmwasm'] }; }; - -export const suggestChain = async (inputWallet: WalletWindowKey, chainInfo?: ChainInfo) => { - if (typeof window === 'undefined' || !window) { - throw new Error('Window is undefined.'); - } - - const windowKey = inputWallet === 'coin98' ? 'keplr' : inputWallet; - const walletProvider = window[windowKey]; - if (!walletProvider) { - throw new Error(`Wallet ${inputWallet} is not installed.`); - } - - const config = getChainSuggest(chainInfo); - await walletProvider.experimentalSuggestChain(config); -}; diff --git a/packages/core/src/lib/wallet/connect.spec.ts b/packages/core/src/lib/wallet/connect.spec.ts deleted file mode 100644 index c2130b5c..00000000 --- a/packages/core/src/lib/wallet/connect.spec.ts +++ /dev/null @@ -1,53 +0,0 @@ -import { DirectSecp256k1HdWallet } from '@cosmjs/proto-signing'; -import { TextEncoder } from 'util'; -import { connect } from './connect'; - -// Needed to generate an offline signer -global.TextEncoder = TextEncoder; - -describe('connect', () => { - let windowSpy: jest.SpyInstance; - - beforeEach(() => { - windowSpy = jest.spyOn(window, 'window', 'get'); - }); - - afterEach(() => { - windowSpy.mockRestore(); - }); - - it('should throw an error if window is undefined', async () => { - windowSpy.mockImplementation(() => undefined); - - const key = 'keplr'; - const chainId = 'atlantic-1'; - await expect(connect(key, chainId)).rejects.toThrowError(); - }); - - it('should throw an error if no wallet is installed', async () => { - windowSpy.mockImplementation(() => ({})); - - const key = 'keplr'; - const chainId = 'atlantic-2'; - await expect(connect(key, chainId)).rejects.toThrowError(); - }); - - it('should return offlineSigner and accounts', async () => { - const offlineSigner = await DirectSecp256k1HdWallet.fromMnemonic('trip parent program index any save apple extra marble nothing please pulp'); - const accounts = await offlineSigner.getAccounts(); - windowSpy.mockImplementation(() => ({ - keplr: { - getOfflineSignerAuto: () => offlineSigner, - experimentalSuggestChain: () => undefined, - enable: () => undefined - } - })); - - const key = 'keplr'; - const chainId = 'atlantic-1'; - await expect(connect(key, chainId)).resolves.toEqual({ - offlineSigner, - accounts - }); - }); -}); diff --git a/packages/core/src/lib/wallet/connect.ts b/packages/core/src/lib/wallet/connect.ts deleted file mode 100644 index 24f01295..00000000 --- a/packages/core/src/lib/wallet/connect.ts +++ /dev/null @@ -1,30 +0,0 @@ -import { Keplr as KeplrWindow } from '@keplr-wallet/types'; -import { WalletConnect, WalletWindowInterface, WalletWindowKey } from './types'; - -declare global { - interface Window { - compass?: WalletWindowInterface; - fin?: WalletWindowInterface; - keplr?: KeplrWindow; - leap?: WalletWindowInterface; - } -} - -export const connect = async (inputWallet: WalletWindowKey, chainId: string): Promise => { - if (typeof window === 'undefined' || !window) { - throw new Error('Window is undefined.'); - } - - const walletProvider = inputWallet === 'coin98' ? window[inputWallet]?.keplr : window[inputWallet]; - if (!walletProvider) { - throw new Error(`Wallet ${inputWallet} is not installed.`); - } - - // Enable wallet before attempting to call any methods - await walletProvider.enable(chainId); - - const offlineSigner = await walletProvider.getOfflineSignerAuto(chainId); - const accounts = await offlineSigner.getAccounts(); - - return { offlineSigner, accounts }; -}; diff --git a/packages/core/src/lib/wallet/index.ts b/packages/core/src/lib/wallet/index.ts index df603723..2acd167c 100644 --- a/packages/core/src/lib/wallet/index.ts +++ b/packages/core/src/lib/wallet/index.ts @@ -1,4 +1,2 @@ export * from './config'; export * from './types'; -export * from './connect'; -export * from './signArbitrary'; diff --git a/packages/core/src/lib/wallet/signArbitrary.ts b/packages/core/src/lib/wallet/signArbitrary.ts deleted file mode 100644 index 1396ef9b..00000000 --- a/packages/core/src/lib/wallet/signArbitrary.ts +++ /dev/null @@ -1,53 +0,0 @@ -import { StdSignature } from '@cosmjs/amino'; -import { WalletWindowKey } from './types'; -import { toAscii } from '@cosmjs/encoding'; - -export const walletSignArbitrary = async ( - inputWallet: WalletWindowKey, - chainId: string, - signingAddress: string, - data: string | Uint8Array -) => { - if (typeof window === 'undefined' || !window) { - throw new Error('Window is undefined.'); - } - - if (typeof data === 'string') { - data = toAscii(data); - } - - const windowKey = inputWallet === 'coin98' ? 'keplr' : inputWallet; - const walletProvider = window[windowKey]; - if (!walletProvider) { - throw new Error(`Wallet ${inputWallet} is not installed.`); - } - return walletProvider.signArbitrary(chainId, signingAddress, data); -}; - -export const walletVerifyArbitrary = async ( - inputWallet: WalletWindowKey, - chainId: string, - signingAddress: string, - data: string | Uint8Array, - signature: StdSignature -) => { - if (typeof window === 'undefined' || !window) { - throw new Error('Window is undefined.'); - } - - if (typeof data === 'string') { - data = toAscii(data); - } - - const windowKey = inputWallet === 'coin98' ? 'keplr' : inputWallet; - const walletProvider = window[windowKey]; - if (!walletProvider) { - throw new Error(`Wallet ${inputWallet} is not installed.`); - } - return walletProvider.verifyArbitrary( - chainId, - signingAddress, - data, - signature - ); -}; diff --git a/packages/core/src/lib/wallet/types.ts b/packages/core/src/lib/wallet/types.ts index ebc9d531..2f0b71fe 100644 --- a/packages/core/src/lib/wallet/types.ts +++ b/packages/core/src/lib/wallet/types.ts @@ -1,26 +1,3 @@ -import { StdSignature } from '@cosmjs/amino'; -import { OfflineSigner, AccountData } from '@cosmjs/proto-signing'; - -export type WalletWindowInterface = { - enable: (chainId: string) => Promise; - disable: (chainId: string) => Promise; - getOfflineSigner: (chainId: string) => Promise; - // Will return a signer that only supports Amino if the account is a Ledger-based account, - // and returns a signer that is compatible for both Amino and Protobuf otherwise - getOfflineSignerAuto(chainId: string): Promise; - experimentalSuggestChain: (config: object) => Promise; - // Request Signature for Arbitrary Message - signArbitrary(chainId: string, signer: string, data: string | Uint8Array): Promise; - verifyArbitrary(chainId: string, signer: string, data: string | Uint8Array, signature: StdSignature): Promise; -}; - -export type WalletConnect = { - accounts: readonly AccountData[]; - offlineSigner: OfflineSigner; -}; - -export type WalletWindowKey = 'keplr' | 'leap' | 'coin98' | 'falcon' | 'fin' | 'compass'; - type GasPriceStep = { low: number; average: number; @@ -34,3 +11,42 @@ export type ChainInfo = { rpcUrl?: string; gasPriceStep?: GasPriceStep; }; + +export type FeeCurrency = { + coinDenom: string; + coinMinimalDenom: string; + coinDecimals: number; + gasPriceStep: GasPriceStep; +}; + +export type Currency = { + coinDenom: string; + coinMinimalDenom: string; + coinDecimals: number; + coinGeckoId?: string; + coinImageUrl?: string; +}; + +export type ChainConfig = { + rpc: string; + rest: string; + chainId: string; + chainName: string; + stakeCurrency: Currency; + walletUrlForStaking?: string; + bip44: { + coinType: number; + }; + coinType: number; + bech32Config: { + bech32PrefixAccAddr: string; + bech32PrefixAccPub: string; + bech32PrefixValAddr: string; + bech32PrefixValPub: string; + bech32PrefixConsAddr: string; + bech32PrefixConsPub: string; + }; + currencies: Currency[]; + feeCurrencies: FeeCurrency[]; + features?: string[]; +}; diff --git a/packages/proto/package.json b/packages/proto/package.json index 715af481..747e748d 100644 --- a/packages/proto/package.json +++ b/packages/proto/package.json @@ -1,6 +1,6 @@ { "name": "@sei-js/proto", - "version": "1.3.0", + "version": "0.0.0-internal-20230811175927", "description": "TypeScript library for Sei protobufs generated using Telescope", "author": "besated ", "homepage": "https://github.com/sei-protocol/js-proto#readme", diff --git a/packages/proto/scripts/codegen.js b/packages/proto/scripts/codegen.js index 0ed6f870..1e4b0907 100644 --- a/packages/proto/scripts/codegen.js +++ b/packages/proto/scripts/codegen.js @@ -7,32 +7,67 @@ const outPath = join(__dirname, '../src/codegen'); rimraf(outPath); telescope({ - protoDirs, - outPath, - options: { - prototypes: { - includePackageVar: false, - typingsFormat: { - useExact: false, - timestamp: 'date', - duration: 'duration', - }, - }, - aminoEncoding: { - enabled: true, - }, - lcdClients: { - enabled: true, - }, - rpcClients: { - enabled: false, - camelCase: true, - }, - }, + protoDirs, + outPath, + options: { + removeUnusedImports: true, + tsDisable: { + patterns: ['**/*amino.ts', '**/*registry.ts'] + }, + prototypes: { + excluded: { + packages: [ + 'cosmos.app.v1alpha1', + 'cosmos.app.v1beta1', + 'cosmos.autocli.v1', + 'cosmos.base.kv.v1beta1', + 'cosmos.base.reflection.v1beta1', + 'cosmos.base.snapshots.v1beta1', + 'cosmos.base.store.v1beta1', + 'cosmos.base.tendermint.v1beta1', + 'cosmos.capability.v1beta1', + 'cosmos.crisis.v1beta1', + 'cosmos.evidence.v1beta1', + 'cosmos.feegrant.v1beta1', + 'cosmos.genutil.v1beta1', + 'cosmos.gov.v1', + 'cosmos.group.v1', + 'cosmos.group.v1beta1', + 'cosmos.mint.v1beta1', + 'cosmos.msg.v1', + 'cosmos.nft.v1beta1', + 'cosmos.orm.v1', + 'cosmos.orm.v1alpha1', + 'cosmos.params.v1beta1', + 'cosmos.slashing.v1beta1', + 'cosmos.vesting.v1beta1', + 'google.api', + 'ibc.core.port.v1', + 'ibc.core.types.v1' + ] + }, + includePackageVar: false, + typingsFormat: { + useExact: false, + timestamp: 'date', + duration: 'duration' + } + }, + aminoEncoding: { + enabled: true + }, + lcdClients: { + enabled: true + }, + rpcClients: { + enabled: true, + camelCase: true + } + } }) - .then(() => { - console.log('✨ all done!'); - }) - .catch((e) => { - console.error(e); - }); + .then(() => { + console.log('✨ all done!'); + }) + .catch((e) => { + console.error(e); + }); diff --git a/packages/proto/src/codegen/cosmos/app/v1alpha1/config.ts b/packages/proto/src/codegen/cosmos/app/v1alpha1/config.ts deleted file mode 100644 index b2fc8c56..00000000 --- a/packages/proto/src/codegen/cosmos/app/v1alpha1/config.ts +++ /dev/null @@ -1,132 +0,0 @@ -import { Any, AnySDKType } from "../../../google/protobuf/any"; -import * as _m0 from "protobufjs/minimal"; -import { DeepPartial } from "../../../helpers"; -/** - * Config represents the configuration for a Cosmos SDK ABCI app. - * It is intended that all state machine logic including the version of - * baseapp and tx handlers (and possibly even Tendermint) that an app needs - * can be described in a config object. For compatibility, the framework should - * allow a mixture of declarative and imperative app wiring, however, apps - * that strive for the maximum ease of maintainability should be able to describe - * their state machine with a config object alone. - */ -export interface Config { - /** modules are the module configurations for the app. */ - modules: ModuleConfig[]; -} -/** - * Config represents the configuration for a Cosmos SDK ABCI app. - * It is intended that all state machine logic including the version of - * baseapp and tx handlers (and possibly even Tendermint) that an app needs - * can be described in a config object. For compatibility, the framework should - * allow a mixture of declarative and imperative app wiring, however, apps - * that strive for the maximum ease of maintainability should be able to describe - * their state machine with a config object alone. - */ -export interface ConfigSDKType { - modules: ModuleConfigSDKType[]; -} -/** ModuleConfig is a module configuration for an app. */ -export interface ModuleConfig { - /** - * name is the unique name of the module within the app. It should be a name - * that persists between different versions of a module so that modules - * can be smoothly upgraded to new versions. - * - * For example, for the module cosmos.bank.module.v1.Module, we may chose - * to simply name the module "bank" in the app. When we upgrade to - * cosmos.bank.module.v2.Module, the app-specific name "bank" stays the same - * and the framework knows that the v2 module should receive all the same state - * that the v1 module had. Note: modules should provide info on which versions - * they can migrate from in the ModuleDescriptor.can_migration_from field. - */ - name: string; - /** - * config is the config object for the module. Module config messages should - * define a ModuleDescriptor using the cosmos.app.v1alpha1.is_module extension. - */ - config: Any; -} -/** ModuleConfig is a module configuration for an app. */ -export interface ModuleConfigSDKType { - name: string; - config: AnySDKType; -} -function createBaseConfig(): Config { - return { - modules: [] - }; -} -export const Config = { - encode(message: Config, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - for (const v of message.modules) { - ModuleConfig.encode(v!, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): Config { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseConfig(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.modules.push(ModuleConfig.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): Config { - const message = createBaseConfig(); - message.modules = object.modules?.map(e => ModuleConfig.fromPartial(e)) || []; - return message; - } -}; -function createBaseModuleConfig(): ModuleConfig { - return { - name: "", - config: undefined - }; -} -export const ModuleConfig = { - encode(message: ModuleConfig, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.name !== "") { - writer.uint32(10).string(message.name); - } - if (message.config !== undefined) { - Any.encode(message.config, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): ModuleConfig { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseModuleConfig(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.config = Any.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): ModuleConfig { - const message = createBaseModuleConfig(); - message.name = object.name ?? ""; - message.config = object.config !== undefined && object.config !== null ? Any.fromPartial(object.config) : undefined; - return message; - } -}; \ No newline at end of file diff --git a/packages/proto/src/codegen/cosmos/app/v1alpha1/module.ts b/packages/proto/src/codegen/cosmos/app/v1alpha1/module.ts deleted file mode 100644 index 6bc5959a..00000000 --- a/packages/proto/src/codegen/cosmos/app/v1alpha1/module.ts +++ /dev/null @@ -1,231 +0,0 @@ -import * as _m0 from "protobufjs/minimal"; -import { DeepPartial } from "../../../helpers"; -/** ModuleDescriptor describes an app module. */ -export interface ModuleDescriptor { - /** - * go_import names the package that should be imported by an app to load the - * module in the runtime module registry. Either go_import must be defined here - * or the go_package option must be defined at the file level to indicate - * to users where to location the module implementation. go_import takes - * precedence over go_package when both are defined. - */ - goImport: string; - /** - * use_package refers to a protobuf package that this module - * uses and exposes to the world. In an app, only one module should "use" - * or own a single protobuf package. It is assumed that the module uses - * all of the .proto files in a single package. - */ - usePackage: PackageReference[]; - /** - * can_migrate_from defines which module versions this module can migrate - * state from. The framework will check that one module version is able to - * migrate from a previous module version before attempting to update its - * config. It is assumed that modules can transitively migrate from earlier - * versions. For instance if v3 declares it can migrate from v2, and v2 - * declares it can migrate from v1, the framework knows how to migrate - * from v1 to v3, assuming all 3 module versions are registered at runtime. - */ - canMigrateFrom: MigrateFromInfo[]; -} -/** ModuleDescriptor describes an app module. */ -export interface ModuleDescriptorSDKType { - go_import: string; - use_package: PackageReferenceSDKType[]; - can_migrate_from: MigrateFromInfoSDKType[]; -} -/** PackageReference is a reference to a protobuf package used by a module. */ -export interface PackageReference { - /** name is the fully-qualified name of the package. */ - name: string; - /** - * revision is the optional revision of the package that is being used. - * Protobuf packages used in Cosmos should generally have a major version - * as the last part of the package name, ex. foo.bar.baz.v1. - * The revision of a package can be thought of as the minor version of a - * package which has additional backwards compatible definitions that weren't - * present in a previous version. - * - * A package should indicate its revision with a source code comment - * above the package declaration in one of its fields containing the - * test "Revision N" where N is an integer revision. All packages start - * at revision 0 the first time they are released in a module. - * - * When a new version of a module is released and items are added to existing - * .proto files, these definitions should contain comments of the form - * "Since Revision N" where N is an integer revision. - * - * When the module runtime starts up, it will check the pinned proto - * image and panic if there are runtime protobuf definitions that are not - * in the pinned descriptor which do not have - * a "Since Revision N" comment or have a "Since Revision N" comment where - * N is <= to the revision specified here. This indicates that the protobuf - * files have been updated, but the pinned file descriptor hasn't. - * - * If there are items in the pinned file descriptor with a revision - * greater than the value indicated here, this will also cause a panic - * as it may mean that the pinned descriptor for a legacy module has been - * improperly updated or that there is some other versioning discrepancy. - * Runtime protobuf definitions will also be checked for compatibility - * with pinned file descriptors to make sure there are no incompatible changes. - * - * This behavior ensures that: - * * pinned proto images are up-to-date - * * protobuf files are carefully annotated with revision comments which - * are important good client UX - * * protobuf files are changed in backwards and forwards compatible ways - */ - revision: number; -} -/** PackageReference is a reference to a protobuf package used by a module. */ -export interface PackageReferenceSDKType { - name: string; - revision: number; -} -/** - * MigrateFromInfo is information on a module version that a newer module - * can migrate from. - */ -export interface MigrateFromInfo { - /** - * module is the fully-qualified protobuf name of the module config object - * for the previous module version, ex: "cosmos.group.module.v1.Module". - */ - module: string; -} -/** - * MigrateFromInfo is information on a module version that a newer module - * can migrate from. - */ -export interface MigrateFromInfoSDKType { - module: string; -} -function createBaseModuleDescriptor(): ModuleDescriptor { - return { - goImport: "", - usePackage: [], - canMigrateFrom: [] - }; -} -export const ModuleDescriptor = { - encode(message: ModuleDescriptor, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.goImport !== "") { - writer.uint32(10).string(message.goImport); - } - for (const v of message.usePackage) { - PackageReference.encode(v!, writer.uint32(18).fork()).ldelim(); - } - for (const v of message.canMigrateFrom) { - MigrateFromInfo.encode(v!, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): ModuleDescriptor { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseModuleDescriptor(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.goImport = reader.string(); - break; - case 2: - message.usePackage.push(PackageReference.decode(reader, reader.uint32())); - break; - case 3: - message.canMigrateFrom.push(MigrateFromInfo.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): ModuleDescriptor { - const message = createBaseModuleDescriptor(); - message.goImport = object.goImport ?? ""; - message.usePackage = object.usePackage?.map(e => PackageReference.fromPartial(e)) || []; - message.canMigrateFrom = object.canMigrateFrom?.map(e => MigrateFromInfo.fromPartial(e)) || []; - return message; - } -}; -function createBasePackageReference(): PackageReference { - return { - name: "", - revision: 0 - }; -} -export const PackageReference = { - encode(message: PackageReference, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.name !== "") { - writer.uint32(10).string(message.name); - } - if (message.revision !== 0) { - writer.uint32(16).uint32(message.revision); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): PackageReference { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBasePackageReference(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.revision = reader.uint32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): PackageReference { - const message = createBasePackageReference(); - message.name = object.name ?? ""; - message.revision = object.revision ?? 0; - return message; - } -}; -function createBaseMigrateFromInfo(): MigrateFromInfo { - return { - module: "" - }; -} -export const MigrateFromInfo = { - encode(message: MigrateFromInfo, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.module !== "") { - writer.uint32(10).string(message.module); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): MigrateFromInfo { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMigrateFromInfo(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.module = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): MigrateFromInfo { - const message = createBaseMigrateFromInfo(); - message.module = object.module ?? ""; - return message; - } -}; \ No newline at end of file diff --git a/packages/proto/src/codegen/cosmos/app/v1alpha1/query.ts b/packages/proto/src/codegen/cosmos/app/v1alpha1/query.ts deleted file mode 100644 index 59ec779d..00000000 --- a/packages/proto/src/codegen/cosmos/app/v1alpha1/query.ts +++ /dev/null @@ -1,77 +0,0 @@ -import { Config, ConfigSDKType } from "./config"; -import * as _m0 from "protobufjs/minimal"; -import { DeepPartial } from "../../../helpers"; -/** QueryConfigRequest is the Query/Config request type. */ -export interface QueryConfigRequest {} -/** QueryConfigRequest is the Query/Config request type. */ -export interface QueryConfigRequestSDKType {} -/** QueryConfigRequest is the Query/Config response type. */ -export interface QueryConfigResponse { - /** config is the current app config. */ - config: Config; -} -/** QueryConfigRequest is the Query/Config response type. */ -export interface QueryConfigResponseSDKType { - config: ConfigSDKType; -} -function createBaseQueryConfigRequest(): QueryConfigRequest { - return {}; -} -export const QueryConfigRequest = { - encode(_: QueryConfigRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): QueryConfigRequest { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryConfigRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_: DeepPartial): QueryConfigRequest { - const message = createBaseQueryConfigRequest(); - return message; - } -}; -function createBaseQueryConfigResponse(): QueryConfigResponse { - return { - config: Config.fromPartial({}) - }; -} -export const QueryConfigResponse = { - encode(message: QueryConfigResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.config !== undefined) { - Config.encode(message.config, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): QueryConfigResponse { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryConfigResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.config = Config.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): QueryConfigResponse { - const message = createBaseQueryConfigResponse(); - message.config = object.config !== undefined && object.config !== null ? Config.fromPartial(object.config) : undefined; - return message; - } -}; \ No newline at end of file diff --git a/packages/proto/src/codegen/cosmos/auth/v1beta1/query.rpc.Query.ts b/packages/proto/src/codegen/cosmos/auth/v1beta1/query.rpc.Query.ts new file mode 100644 index 00000000..56ec4397 --- /dev/null +++ b/packages/proto/src/codegen/cosmos/auth/v1beta1/query.rpc.Query.ts @@ -0,0 +1,102 @@ +import { Rpc } from "../../../helpers"; +import * as _m0 from "protobufjs/minimal"; +import { QueryClient, createProtobufRpcClient } from "@cosmjs/stargate"; +import { QueryAccountsRequest, QueryAccountsResponse, QueryAccountRequest, QueryAccountResponse, QueryParamsRequest, QueryParamsResponse, QueryModuleAccountsRequest, QueryModuleAccountsResponse, Bech32PrefixRequest, Bech32PrefixResponse, AddressBytesToStringRequest, AddressBytesToStringResponse, AddressStringToBytesRequest, AddressStringToBytesResponse } from "./query"; +/** Query defines the gRPC querier service. */ +export interface Query { + /** + * Accounts returns all the existing accounts + * + * Since: cosmos-sdk 0.43 + */ + accounts(request?: QueryAccountsRequest): Promise; + /** Account returns account details based on address. */ + account(request: QueryAccountRequest): Promise; + /** Params queries all parameters. */ + params(request?: QueryParamsRequest): Promise; + /** ModuleAccounts returns all the existing module accounts. */ + moduleAccounts(request?: QueryModuleAccountsRequest): Promise; + /** Bech32 queries bech32Prefix */ + bech32Prefix(request?: Bech32PrefixRequest): Promise; + /** AddressBytesToString converts Account Address bytes to string */ + addressBytesToString(request: AddressBytesToStringRequest): Promise; + /** AddressStringToBytes converts Address string to bytes */ + addressStringToBytes(request: AddressStringToBytesRequest): Promise; +} +export class QueryClientImpl implements Query { + private readonly rpc: Rpc; + constructor(rpc: Rpc) { + this.rpc = rpc; + this.accounts = this.accounts.bind(this); + this.account = this.account.bind(this); + this.params = this.params.bind(this); + this.moduleAccounts = this.moduleAccounts.bind(this); + this.bech32Prefix = this.bech32Prefix.bind(this); + this.addressBytesToString = this.addressBytesToString.bind(this); + this.addressStringToBytes = this.addressStringToBytes.bind(this); + } + accounts(request: QueryAccountsRequest = { + pagination: undefined + }): Promise { + const data = QueryAccountsRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.auth.v1beta1.Query", "Accounts", data); + return promise.then(data => QueryAccountsResponse.decode(new _m0.Reader(data))); + } + account(request: QueryAccountRequest): Promise { + const data = QueryAccountRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.auth.v1beta1.Query", "Account", data); + return promise.then(data => QueryAccountResponse.decode(new _m0.Reader(data))); + } + params(request: QueryParamsRequest = {}): Promise { + const data = QueryParamsRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.auth.v1beta1.Query", "Params", data); + return promise.then(data => QueryParamsResponse.decode(new _m0.Reader(data))); + } + moduleAccounts(request: QueryModuleAccountsRequest = {}): Promise { + const data = QueryModuleAccountsRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.auth.v1beta1.Query", "ModuleAccounts", data); + return promise.then(data => QueryModuleAccountsResponse.decode(new _m0.Reader(data))); + } + bech32Prefix(request: Bech32PrefixRequest = {}): Promise { + const data = Bech32PrefixRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.auth.v1beta1.Query", "Bech32Prefix", data); + return promise.then(data => Bech32PrefixResponse.decode(new _m0.Reader(data))); + } + addressBytesToString(request: AddressBytesToStringRequest): Promise { + const data = AddressBytesToStringRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.auth.v1beta1.Query", "AddressBytesToString", data); + return promise.then(data => AddressBytesToStringResponse.decode(new _m0.Reader(data))); + } + addressStringToBytes(request: AddressStringToBytesRequest): Promise { + const data = AddressStringToBytesRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.auth.v1beta1.Query", "AddressStringToBytes", data); + return promise.then(data => AddressStringToBytesResponse.decode(new _m0.Reader(data))); + } +} +export const createRpcQueryExtension = (base: QueryClient) => { + const rpc = createProtobufRpcClient(base); + const queryService = new QueryClientImpl(rpc); + return { + accounts(request?: QueryAccountsRequest): Promise { + return queryService.accounts(request); + }, + account(request: QueryAccountRequest): Promise { + return queryService.account(request); + }, + params(request?: QueryParamsRequest): Promise { + return queryService.params(request); + }, + moduleAccounts(request?: QueryModuleAccountsRequest): Promise { + return queryService.moduleAccounts(request); + }, + bech32Prefix(request?: Bech32PrefixRequest): Promise { + return queryService.bech32Prefix(request); + }, + addressBytesToString(request: AddressBytesToStringRequest): Promise { + return queryService.addressBytesToString(request); + }, + addressStringToBytes(request: AddressStringToBytesRequest): Promise { + return queryService.addressStringToBytes(request); + } + }; +}; \ No newline at end of file diff --git a/packages/proto/src/codegen/cosmos/authz/v1beta1/query.rpc.Query.ts b/packages/proto/src/codegen/cosmos/authz/v1beta1/query.rpc.Query.ts new file mode 100644 index 00000000..e5212aaf --- /dev/null +++ b/packages/proto/src/codegen/cosmos/authz/v1beta1/query.rpc.Query.ts @@ -0,0 +1,60 @@ +import { Rpc } from "../../../helpers"; +import * as _m0 from "protobufjs/minimal"; +import { QueryClient, createProtobufRpcClient } from "@cosmjs/stargate"; +import { QueryGrantsRequest, QueryGrantsResponse, QueryGranterGrantsRequest, QueryGranterGrantsResponse, QueryGranteeGrantsRequest, QueryGranteeGrantsResponse } from "./query"; +/** Query defines the gRPC querier service. */ +export interface Query { + /** Returns list of `Authorization`, granted to the grantee by the granter. */ + grants(request: QueryGrantsRequest): Promise; + /** + * GranterGrants returns list of `GrantAuthorization`, granted by granter. + * + * Since: cosmos-sdk 0.46 + */ + granterGrants(request: QueryGranterGrantsRequest): Promise; + /** + * GranteeGrants returns a list of `GrantAuthorization` by grantee. + * + * Since: cosmos-sdk 0.46 + */ + granteeGrants(request: QueryGranteeGrantsRequest): Promise; +} +export class QueryClientImpl implements Query { + private readonly rpc: Rpc; + constructor(rpc: Rpc) { + this.rpc = rpc; + this.grants = this.grants.bind(this); + this.granterGrants = this.granterGrants.bind(this); + this.granteeGrants = this.granteeGrants.bind(this); + } + grants(request: QueryGrantsRequest): Promise { + const data = QueryGrantsRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.authz.v1beta1.Query", "Grants", data); + return promise.then(data => QueryGrantsResponse.decode(new _m0.Reader(data))); + } + granterGrants(request: QueryGranterGrantsRequest): Promise { + const data = QueryGranterGrantsRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.authz.v1beta1.Query", "GranterGrants", data); + return promise.then(data => QueryGranterGrantsResponse.decode(new _m0.Reader(data))); + } + granteeGrants(request: QueryGranteeGrantsRequest): Promise { + const data = QueryGranteeGrantsRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.authz.v1beta1.Query", "GranteeGrants", data); + return promise.then(data => QueryGranteeGrantsResponse.decode(new _m0.Reader(data))); + } +} +export const createRpcQueryExtension = (base: QueryClient) => { + const rpc = createProtobufRpcClient(base); + const queryService = new QueryClientImpl(rpc); + return { + grants(request: QueryGrantsRequest): Promise { + return queryService.grants(request); + }, + granterGrants(request: QueryGranterGrantsRequest): Promise { + return queryService.granterGrants(request); + }, + granteeGrants(request: QueryGranteeGrantsRequest): Promise { + return queryService.granteeGrants(request); + } + }; +}; \ No newline at end of file diff --git a/packages/proto/src/codegen/cosmos/authz/v1beta1/tx.amino.ts b/packages/proto/src/codegen/cosmos/authz/v1beta1/tx.amino.ts index 99dd2692..6d9368c7 100644 --- a/packages/proto/src/codegen/cosmos/authz/v1beta1/tx.amino.ts +++ b/packages/proto/src/codegen/cosmos/authz/v1beta1/tx.amino.ts @@ -1,3 +1,4 @@ +//@ts-nocheck import { AminoMsg } from "@cosmjs/amino"; import { MsgGrant, MsgExec, MsgRevoke } from "./tx"; export interface MsgGrantAminoType extends AminoMsg { diff --git a/packages/proto/src/codegen/cosmos/authz/v1beta1/tx.registry.ts b/packages/proto/src/codegen/cosmos/authz/v1beta1/tx.registry.ts index 618e668e..bdcdde87 100644 --- a/packages/proto/src/codegen/cosmos/authz/v1beta1/tx.registry.ts +++ b/packages/proto/src/codegen/cosmos/authz/v1beta1/tx.registry.ts @@ -1,3 +1,4 @@ +//@ts-nocheck import { GeneratedType, Registry } from "@cosmjs/proto-signing"; import { MsgGrant, MsgExec, MsgRevoke } from "./tx"; export const registry: ReadonlyArray<[string, GeneratedType]> = [["/cosmos.authz.v1beta1.MsgGrant", MsgGrant], ["/cosmos.authz.v1beta1.MsgExec", MsgExec], ["/cosmos.authz.v1beta1.MsgRevoke", MsgRevoke]]; diff --git a/packages/proto/src/codegen/cosmos/authz/v1beta1/tx.rpc.msg.ts b/packages/proto/src/codegen/cosmos/authz/v1beta1/tx.rpc.msg.ts new file mode 100644 index 00000000..6e5e5ef5 --- /dev/null +++ b/packages/proto/src/codegen/cosmos/authz/v1beta1/tx.rpc.msg.ts @@ -0,0 +1,48 @@ +import { Rpc } from "../../../helpers"; +import * as _m0 from "protobufjs/minimal"; +import { MsgGrant, MsgGrantResponse, MsgExec, MsgExecResponse, MsgRevoke, MsgRevokeResponse } from "./tx"; +/** Msg defines the authz Msg service. */ +export interface Msg { + /** + * Grant grants the provided authorization to the grantee on the granter's + * account with the provided expiration time. If there is already a grant + * for the given (granter, grantee, Authorization) triple, then the grant + * will be overwritten. + */ + grant(request: MsgGrant): Promise; + /** + * Exec attempts to execute the provided messages using + * authorizations granted to the grantee. Each message should have only + * one signer corresponding to the granter of the authorization. + */ + exec(request: MsgExec): Promise; + /** + * Revoke revokes any authorization corresponding to the provided method name on the + * granter's account that has been granted to the grantee. + */ + revoke(request: MsgRevoke): Promise; +} +export class MsgClientImpl implements Msg { + private readonly rpc: Rpc; + constructor(rpc: Rpc) { + this.rpc = rpc; + this.grant = this.grant.bind(this); + this.exec = this.exec.bind(this); + this.revoke = this.revoke.bind(this); + } + grant(request: MsgGrant): Promise { + const data = MsgGrant.encode(request).finish(); + const promise = this.rpc.request("cosmos.authz.v1beta1.Msg", "Grant", data); + return promise.then(data => MsgGrantResponse.decode(new _m0.Reader(data))); + } + exec(request: MsgExec): Promise { + const data = MsgExec.encode(request).finish(); + const promise = this.rpc.request("cosmos.authz.v1beta1.Msg", "Exec", data); + return promise.then(data => MsgExecResponse.decode(new _m0.Reader(data))); + } + revoke(request: MsgRevoke): Promise { + const data = MsgRevoke.encode(request).finish(); + const promise = this.rpc.request("cosmos.authz.v1beta1.Msg", "Revoke", data); + return promise.then(data => MsgRevokeResponse.decode(new _m0.Reader(data))); + } +} \ No newline at end of file diff --git a/packages/proto/src/codegen/cosmos/bank/v1beta1/query.rpc.Query.ts b/packages/proto/src/codegen/cosmos/bank/v1beta1/query.rpc.Query.ts new file mode 100644 index 00000000..d7593fd0 --- /dev/null +++ b/packages/proto/src/codegen/cosmos/bank/v1beta1/query.rpc.Query.ts @@ -0,0 +1,131 @@ +import { Rpc } from "../../../helpers"; +import * as _m0 from "protobufjs/minimal"; +import { QueryClient, createProtobufRpcClient } from "@cosmjs/stargate"; +import { QueryBalanceRequest, QueryBalanceResponse, QueryAllBalancesRequest, QueryAllBalancesResponse, QuerySpendableBalancesRequest, QuerySpendableBalancesResponse, QueryTotalSupplyRequest, QueryTotalSupplyResponse, QuerySupplyOfRequest, QuerySupplyOfResponse, QueryParamsRequest, QueryParamsResponse, QueryDenomMetadataRequest, QueryDenomMetadataResponse, QueryDenomsMetadataRequest, QueryDenomsMetadataResponse, QueryDenomOwnersRequest, QueryDenomOwnersResponse } from "./query"; +/** Query defines the gRPC querier service. */ +export interface Query { + /** Balance queries the balance of a single coin for a single account. */ + balance(request: QueryBalanceRequest): Promise; + /** AllBalances queries the balance of all coins for a single account. */ + allBalances(request: QueryAllBalancesRequest): Promise; + /** + * SpendableBalances queries the spenable balance of all coins for a single + * account. + */ + spendableBalances(request: QuerySpendableBalancesRequest): Promise; + /** TotalSupply queries the total supply of all coins. */ + totalSupply(request?: QueryTotalSupplyRequest): Promise; + /** SupplyOf queries the supply of a single coin. */ + supplyOf(request: QuerySupplyOfRequest): Promise; + /** Params queries the parameters of x/bank module. */ + params(request?: QueryParamsRequest): Promise; + /** DenomsMetadata queries the client metadata of a given coin denomination. */ + denomMetadata(request: QueryDenomMetadataRequest): Promise; + /** + * DenomsMetadata queries the client metadata for all registered coin + * denominations. + */ + denomsMetadata(request?: QueryDenomsMetadataRequest): Promise; + /** + * DenomOwners queries for all account addresses that own a particular token + * denomination. + */ + denomOwners(request: QueryDenomOwnersRequest): Promise; +} +export class QueryClientImpl implements Query { + private readonly rpc: Rpc; + constructor(rpc: Rpc) { + this.rpc = rpc; + this.balance = this.balance.bind(this); + this.allBalances = this.allBalances.bind(this); + this.spendableBalances = this.spendableBalances.bind(this); + this.totalSupply = this.totalSupply.bind(this); + this.supplyOf = this.supplyOf.bind(this); + this.params = this.params.bind(this); + this.denomMetadata = this.denomMetadata.bind(this); + this.denomsMetadata = this.denomsMetadata.bind(this); + this.denomOwners = this.denomOwners.bind(this); + } + balance(request: QueryBalanceRequest): Promise { + const data = QueryBalanceRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.bank.v1beta1.Query", "Balance", data); + return promise.then(data => QueryBalanceResponse.decode(new _m0.Reader(data))); + } + allBalances(request: QueryAllBalancesRequest): Promise { + const data = QueryAllBalancesRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.bank.v1beta1.Query", "AllBalances", data); + return promise.then(data => QueryAllBalancesResponse.decode(new _m0.Reader(data))); + } + spendableBalances(request: QuerySpendableBalancesRequest): Promise { + const data = QuerySpendableBalancesRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.bank.v1beta1.Query", "SpendableBalances", data); + return promise.then(data => QuerySpendableBalancesResponse.decode(new _m0.Reader(data))); + } + totalSupply(request: QueryTotalSupplyRequest = { + pagination: undefined + }): Promise { + const data = QueryTotalSupplyRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.bank.v1beta1.Query", "TotalSupply", data); + return promise.then(data => QueryTotalSupplyResponse.decode(new _m0.Reader(data))); + } + supplyOf(request: QuerySupplyOfRequest): Promise { + const data = QuerySupplyOfRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.bank.v1beta1.Query", "SupplyOf", data); + return promise.then(data => QuerySupplyOfResponse.decode(new _m0.Reader(data))); + } + params(request: QueryParamsRequest = {}): Promise { + const data = QueryParamsRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.bank.v1beta1.Query", "Params", data); + return promise.then(data => QueryParamsResponse.decode(new _m0.Reader(data))); + } + denomMetadata(request: QueryDenomMetadataRequest): Promise { + const data = QueryDenomMetadataRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.bank.v1beta1.Query", "DenomMetadata", data); + return promise.then(data => QueryDenomMetadataResponse.decode(new _m0.Reader(data))); + } + denomsMetadata(request: QueryDenomsMetadataRequest = { + pagination: undefined + }): Promise { + const data = QueryDenomsMetadataRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.bank.v1beta1.Query", "DenomsMetadata", data); + return promise.then(data => QueryDenomsMetadataResponse.decode(new _m0.Reader(data))); + } + denomOwners(request: QueryDenomOwnersRequest): Promise { + const data = QueryDenomOwnersRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.bank.v1beta1.Query", "DenomOwners", data); + return promise.then(data => QueryDenomOwnersResponse.decode(new _m0.Reader(data))); + } +} +export const createRpcQueryExtension = (base: QueryClient) => { + const rpc = createProtobufRpcClient(base); + const queryService = new QueryClientImpl(rpc); + return { + balance(request: QueryBalanceRequest): Promise { + return queryService.balance(request); + }, + allBalances(request: QueryAllBalancesRequest): Promise { + return queryService.allBalances(request); + }, + spendableBalances(request: QuerySpendableBalancesRequest): Promise { + return queryService.spendableBalances(request); + }, + totalSupply(request?: QueryTotalSupplyRequest): Promise { + return queryService.totalSupply(request); + }, + supplyOf(request: QuerySupplyOfRequest): Promise { + return queryService.supplyOf(request); + }, + params(request?: QueryParamsRequest): Promise { + return queryService.params(request); + }, + denomMetadata(request: QueryDenomMetadataRequest): Promise { + return queryService.denomMetadata(request); + }, + denomsMetadata(request?: QueryDenomsMetadataRequest): Promise { + return queryService.denomsMetadata(request); + }, + denomOwners(request: QueryDenomOwnersRequest): Promise { + return queryService.denomOwners(request); + } + }; +}; \ No newline at end of file diff --git a/packages/proto/src/codegen/cosmos/bank/v1beta1/tx.amino.ts b/packages/proto/src/codegen/cosmos/bank/v1beta1/tx.amino.ts index 9aa9a969..f90b78ce 100644 --- a/packages/proto/src/codegen/cosmos/bank/v1beta1/tx.amino.ts +++ b/packages/proto/src/codegen/cosmos/bank/v1beta1/tx.amino.ts @@ -1,3 +1,4 @@ +//@ts-nocheck import { AminoMsg } from "@cosmjs/amino"; import { MsgSend, MsgMultiSend } from "./tx"; export interface MsgSendAminoType extends AminoMsg { diff --git a/packages/proto/src/codegen/cosmos/bank/v1beta1/tx.registry.ts b/packages/proto/src/codegen/cosmos/bank/v1beta1/tx.registry.ts index 9a00ea44..716f9d0d 100644 --- a/packages/proto/src/codegen/cosmos/bank/v1beta1/tx.registry.ts +++ b/packages/proto/src/codegen/cosmos/bank/v1beta1/tx.registry.ts @@ -1,3 +1,4 @@ +//@ts-nocheck import { GeneratedType, Registry } from "@cosmjs/proto-signing"; import { MsgSend, MsgMultiSend } from "./tx"; export const registry: ReadonlyArray<[string, GeneratedType]> = [["/cosmos.bank.v1beta1.MsgSend", MsgSend], ["/cosmos.bank.v1beta1.MsgMultiSend", MsgMultiSend]]; diff --git a/packages/proto/src/codegen/cosmos/bank/v1beta1/tx.rpc.msg.ts b/packages/proto/src/codegen/cosmos/bank/v1beta1/tx.rpc.msg.ts new file mode 100644 index 00000000..c345f9af --- /dev/null +++ b/packages/proto/src/codegen/cosmos/bank/v1beta1/tx.rpc.msg.ts @@ -0,0 +1,28 @@ +import { Rpc } from "../../../helpers"; +import * as _m0 from "protobufjs/minimal"; +import { MsgSend, MsgSendResponse, MsgMultiSend, MsgMultiSendResponse } from "./tx"; +/** Msg defines the bank Msg service. */ +export interface Msg { + /** Send defines a method for sending coins from one account to another account. */ + send(request: MsgSend): Promise; + /** MultiSend defines a method for sending coins from some accounts to other accounts. */ + multiSend(request: MsgMultiSend): Promise; +} +export class MsgClientImpl implements Msg { + private readonly rpc: Rpc; + constructor(rpc: Rpc) { + this.rpc = rpc; + this.send = this.send.bind(this); + this.multiSend = this.multiSend.bind(this); + } + send(request: MsgSend): Promise { + const data = MsgSend.encode(request).finish(); + const promise = this.rpc.request("cosmos.bank.v1beta1.Msg", "Send", data); + return promise.then(data => MsgSendResponse.decode(new _m0.Reader(data))); + } + multiSend(request: MsgMultiSend): Promise { + const data = MsgMultiSend.encode(request).finish(); + const promise = this.rpc.request("cosmos.bank.v1beta1.Msg", "MultiSend", data); + return promise.then(data => MsgMultiSendResponse.decode(new _m0.Reader(data))); + } +} \ No newline at end of file diff --git a/packages/proto/src/codegen/cosmos/base/kv/v1beta1/kv.ts b/packages/proto/src/codegen/cosmos/base/kv/v1beta1/kv.ts deleted file mode 100644 index a7b28db4..00000000 --- a/packages/proto/src/codegen/cosmos/base/kv/v1beta1/kv.ts +++ /dev/null @@ -1,98 +0,0 @@ -import * as _m0 from "protobufjs/minimal"; -import { DeepPartial } from "../../../../helpers"; -/** Pairs defines a repeated slice of Pair objects. */ -export interface Pairs { - pairs: Pair[]; -} -/** Pairs defines a repeated slice of Pair objects. */ -export interface PairsSDKType { - pairs: PairSDKType[]; -} -/** Pair defines a key/value bytes tuple. */ -export interface Pair { - key: Uint8Array; - value: Uint8Array; -} -/** Pair defines a key/value bytes tuple. */ -export interface PairSDKType { - key: Uint8Array; - value: Uint8Array; -} -function createBasePairs(): Pairs { - return { - pairs: [] - }; -} -export const Pairs = { - encode(message: Pairs, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - for (const v of message.pairs) { - Pair.encode(v!, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): Pairs { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBasePairs(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.pairs.push(Pair.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): Pairs { - const message = createBasePairs(); - message.pairs = object.pairs?.map(e => Pair.fromPartial(e)) || []; - return message; - } -}; -function createBasePair(): Pair { - return { - key: new Uint8Array(), - value: new Uint8Array() - }; -} -export const Pair = { - encode(message: Pair, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.key.length !== 0) { - writer.uint32(10).bytes(message.key); - } - if (message.value.length !== 0) { - writer.uint32(18).bytes(message.value); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): Pair { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBasePair(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.key = reader.bytes(); - break; - case 2: - message.value = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): Pair { - const message = createBasePair(); - message.key = object.key ?? new Uint8Array(); - message.value = object.value ?? new Uint8Array(); - return message; - } -}; \ No newline at end of file diff --git a/packages/proto/src/codegen/cosmos/base/reflection/v1beta1/reflection.ts b/packages/proto/src/codegen/cosmos/base/reflection/v1beta1/reflection.ts deleted file mode 100644 index e4b94272..00000000 --- a/packages/proto/src/codegen/cosmos/base/reflection/v1beta1/reflection.ts +++ /dev/null @@ -1,175 +0,0 @@ -import * as _m0 from "protobufjs/minimal"; -import { DeepPartial } from "../../../../helpers"; -/** ListAllInterfacesRequest is the request type of the ListAllInterfaces RPC. */ -export interface ListAllInterfacesRequest {} -/** ListAllInterfacesRequest is the request type of the ListAllInterfaces RPC. */ -export interface ListAllInterfacesRequestSDKType {} -/** ListAllInterfacesResponse is the response type of the ListAllInterfaces RPC. */ -export interface ListAllInterfacesResponse { - /** interface_names is an array of all the registered interfaces. */ - interfaceNames: string[]; -} -/** ListAllInterfacesResponse is the response type of the ListAllInterfaces RPC. */ -export interface ListAllInterfacesResponseSDKType { - interface_names: string[]; -} -/** - * ListImplementationsRequest is the request type of the ListImplementations - * RPC. - */ -export interface ListImplementationsRequest { - /** interface_name defines the interface to query the implementations for. */ - interfaceName: string; -} -/** - * ListImplementationsRequest is the request type of the ListImplementations - * RPC. - */ -export interface ListImplementationsRequestSDKType { - interface_name: string; -} -/** - * ListImplementationsResponse is the response type of the ListImplementations - * RPC. - */ -export interface ListImplementationsResponse { - implementationMessageNames: string[]; -} -/** - * ListImplementationsResponse is the response type of the ListImplementations - * RPC. - */ -export interface ListImplementationsResponseSDKType { - implementation_message_names: string[]; -} -function createBaseListAllInterfacesRequest(): ListAllInterfacesRequest { - return {}; -} -export const ListAllInterfacesRequest = { - encode(_: ListAllInterfacesRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): ListAllInterfacesRequest { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseListAllInterfacesRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_: DeepPartial): ListAllInterfacesRequest { - const message = createBaseListAllInterfacesRequest(); - return message; - } -}; -function createBaseListAllInterfacesResponse(): ListAllInterfacesResponse { - return { - interfaceNames: [] - }; -} -export const ListAllInterfacesResponse = { - encode(message: ListAllInterfacesResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - for (const v of message.interfaceNames) { - writer.uint32(10).string(v!); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): ListAllInterfacesResponse { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseListAllInterfacesResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.interfaceNames.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): ListAllInterfacesResponse { - const message = createBaseListAllInterfacesResponse(); - message.interfaceNames = object.interfaceNames?.map(e => e) || []; - return message; - } -}; -function createBaseListImplementationsRequest(): ListImplementationsRequest { - return { - interfaceName: "" - }; -} -export const ListImplementationsRequest = { - encode(message: ListImplementationsRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.interfaceName !== "") { - writer.uint32(10).string(message.interfaceName); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): ListImplementationsRequest { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseListImplementationsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.interfaceName = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): ListImplementationsRequest { - const message = createBaseListImplementationsRequest(); - message.interfaceName = object.interfaceName ?? ""; - return message; - } -}; -function createBaseListImplementationsResponse(): ListImplementationsResponse { - return { - implementationMessageNames: [] - }; -} -export const ListImplementationsResponse = { - encode(message: ListImplementationsResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - for (const v of message.implementationMessageNames) { - writer.uint32(10).string(v!); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): ListImplementationsResponse { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseListImplementationsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.implementationMessageNames.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): ListImplementationsResponse { - const message = createBaseListImplementationsResponse(); - message.implementationMessageNames = object.implementationMessageNames?.map(e => e) || []; - return message; - } -}; \ No newline at end of file diff --git a/packages/proto/src/codegen/cosmos/base/snapshots/v1beta1/snapshot.ts b/packages/proto/src/codegen/cosmos/base/snapshots/v1beta1/snapshot.ts deleted file mode 100644 index e6197481..00000000 --- a/packages/proto/src/codegen/cosmos/base/snapshots/v1beta1/snapshot.ts +++ /dev/null @@ -1,532 +0,0 @@ -import { Long, DeepPartial } from "../../../../helpers"; -import * as _m0 from "protobufjs/minimal"; -/** Snapshot contains Tendermint state sync snapshot info. */ -export interface Snapshot { - height: Long; - format: number; - chunks: number; - hash: Uint8Array; - metadata: Metadata; -} -/** Snapshot contains Tendermint state sync snapshot info. */ -export interface SnapshotSDKType { - height: Long; - format: number; - chunks: number; - hash: Uint8Array; - metadata: MetadataSDKType; -} -/** Metadata contains SDK-specific snapshot metadata. */ -export interface Metadata { - /** SHA-256 chunk hashes */ - chunkHashes: Uint8Array[]; -} -/** Metadata contains SDK-specific snapshot metadata. */ -export interface MetadataSDKType { - chunk_hashes: Uint8Array[]; -} -/** SnapshotItem is an item contained in a rootmulti.Store snapshot. */ -export interface SnapshotItem { - store?: SnapshotStoreItem; - iavl?: SnapshotIAVLItem; - extension?: SnapshotExtensionMeta; - extensionPayload?: SnapshotExtensionPayload; - kv?: SnapshotKVItem; - schema?: SnapshotSchema; -} -/** SnapshotItem is an item contained in a rootmulti.Store snapshot. */ -export interface SnapshotItemSDKType { - store?: SnapshotStoreItemSDKType; - iavl?: SnapshotIAVLItemSDKType; - extension?: SnapshotExtensionMetaSDKType; - extension_payload?: SnapshotExtensionPayloadSDKType; - kv?: SnapshotKVItemSDKType; - schema?: SnapshotSchemaSDKType; -} -/** SnapshotStoreItem contains metadata about a snapshotted store. */ -export interface SnapshotStoreItem { - name: string; -} -/** SnapshotStoreItem contains metadata about a snapshotted store. */ -export interface SnapshotStoreItemSDKType { - name: string; -} -/** SnapshotIAVLItem is an exported IAVL node. */ -export interface SnapshotIAVLItem { - key: Uint8Array; - value: Uint8Array; - /** version is block height */ - version: Long; - /** height is depth of the tree. */ - height: number; -} -/** SnapshotIAVLItem is an exported IAVL node. */ -export interface SnapshotIAVLItemSDKType { - key: Uint8Array; - value: Uint8Array; - version: Long; - height: number; -} -/** SnapshotExtensionMeta contains metadata about an external snapshotter. */ -export interface SnapshotExtensionMeta { - name: string; - format: number; -} -/** SnapshotExtensionMeta contains metadata about an external snapshotter. */ -export interface SnapshotExtensionMetaSDKType { - name: string; - format: number; -} -/** SnapshotExtensionPayload contains payloads of an external snapshotter. */ -export interface SnapshotExtensionPayload { - payload: Uint8Array; -} -/** SnapshotExtensionPayload contains payloads of an external snapshotter. */ -export interface SnapshotExtensionPayloadSDKType { - payload: Uint8Array; -} -/** SnapshotKVItem is an exported Key/Value Pair */ -export interface SnapshotKVItem { - key: Uint8Array; - value: Uint8Array; -} -/** SnapshotKVItem is an exported Key/Value Pair */ -export interface SnapshotKVItemSDKType { - key: Uint8Array; - value: Uint8Array; -} -/** SnapshotSchema is an exported schema of smt store */ -export interface SnapshotSchema { - keys: Uint8Array[]; -} -/** SnapshotSchema is an exported schema of smt store */ -export interface SnapshotSchemaSDKType { - keys: Uint8Array[]; -} -function createBaseSnapshot(): Snapshot { - return { - height: Long.UZERO, - format: 0, - chunks: 0, - hash: new Uint8Array(), - metadata: Metadata.fromPartial({}) - }; -} -export const Snapshot = { - encode(message: Snapshot, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (!message.height.isZero()) { - writer.uint32(8).uint64(message.height); - } - if (message.format !== 0) { - writer.uint32(16).uint32(message.format); - } - if (message.chunks !== 0) { - writer.uint32(24).uint32(message.chunks); - } - if (message.hash.length !== 0) { - writer.uint32(34).bytes(message.hash); - } - if (message.metadata !== undefined) { - Metadata.encode(message.metadata, writer.uint32(42).fork()).ldelim(); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): Snapshot { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseSnapshot(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.height = (reader.uint64() as Long); - break; - case 2: - message.format = reader.uint32(); - break; - case 3: - message.chunks = reader.uint32(); - break; - case 4: - message.hash = reader.bytes(); - break; - case 5: - message.metadata = Metadata.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): Snapshot { - const message = createBaseSnapshot(); - message.height = object.height !== undefined && object.height !== null ? Long.fromValue(object.height) : Long.UZERO; - message.format = object.format ?? 0; - message.chunks = object.chunks ?? 0; - message.hash = object.hash ?? new Uint8Array(); - message.metadata = object.metadata !== undefined && object.metadata !== null ? Metadata.fromPartial(object.metadata) : undefined; - return message; - } -}; -function createBaseMetadata(): Metadata { - return { - chunkHashes: [] - }; -} -export const Metadata = { - encode(message: Metadata, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - for (const v of message.chunkHashes) { - writer.uint32(10).bytes(v!); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): Metadata { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMetadata(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.chunkHashes.push(reader.bytes()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): Metadata { - const message = createBaseMetadata(); - message.chunkHashes = object.chunkHashes?.map(e => e) || []; - return message; - } -}; -function createBaseSnapshotItem(): SnapshotItem { - return { - store: undefined, - iavl: undefined, - extension: undefined, - extensionPayload: undefined, - kv: undefined, - schema: undefined - }; -} -export const SnapshotItem = { - encode(message: SnapshotItem, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.store !== undefined) { - SnapshotStoreItem.encode(message.store, writer.uint32(10).fork()).ldelim(); - } - if (message.iavl !== undefined) { - SnapshotIAVLItem.encode(message.iavl, writer.uint32(18).fork()).ldelim(); - } - if (message.extension !== undefined) { - SnapshotExtensionMeta.encode(message.extension, writer.uint32(26).fork()).ldelim(); - } - if (message.extensionPayload !== undefined) { - SnapshotExtensionPayload.encode(message.extensionPayload, writer.uint32(34).fork()).ldelim(); - } - if (message.kv !== undefined) { - SnapshotKVItem.encode(message.kv, writer.uint32(42).fork()).ldelim(); - } - if (message.schema !== undefined) { - SnapshotSchema.encode(message.schema, writer.uint32(50).fork()).ldelim(); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): SnapshotItem { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseSnapshotItem(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.store = SnapshotStoreItem.decode(reader, reader.uint32()); - break; - case 2: - message.iavl = SnapshotIAVLItem.decode(reader, reader.uint32()); - break; - case 3: - message.extension = SnapshotExtensionMeta.decode(reader, reader.uint32()); - break; - case 4: - message.extensionPayload = SnapshotExtensionPayload.decode(reader, reader.uint32()); - break; - case 5: - message.kv = SnapshotKVItem.decode(reader, reader.uint32()); - break; - case 6: - message.schema = SnapshotSchema.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): SnapshotItem { - const message = createBaseSnapshotItem(); - message.store = object.store !== undefined && object.store !== null ? SnapshotStoreItem.fromPartial(object.store) : undefined; - message.iavl = object.iavl !== undefined && object.iavl !== null ? SnapshotIAVLItem.fromPartial(object.iavl) : undefined; - message.extension = object.extension !== undefined && object.extension !== null ? SnapshotExtensionMeta.fromPartial(object.extension) : undefined; - message.extensionPayload = object.extensionPayload !== undefined && object.extensionPayload !== null ? SnapshotExtensionPayload.fromPartial(object.extensionPayload) : undefined; - message.kv = object.kv !== undefined && object.kv !== null ? SnapshotKVItem.fromPartial(object.kv) : undefined; - message.schema = object.schema !== undefined && object.schema !== null ? SnapshotSchema.fromPartial(object.schema) : undefined; - return message; - } -}; -function createBaseSnapshotStoreItem(): SnapshotStoreItem { - return { - name: "" - }; -} -export const SnapshotStoreItem = { - encode(message: SnapshotStoreItem, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.name !== "") { - writer.uint32(10).string(message.name); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): SnapshotStoreItem { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseSnapshotStoreItem(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): SnapshotStoreItem { - const message = createBaseSnapshotStoreItem(); - message.name = object.name ?? ""; - return message; - } -}; -function createBaseSnapshotIAVLItem(): SnapshotIAVLItem { - return { - key: new Uint8Array(), - value: new Uint8Array(), - version: Long.ZERO, - height: 0 - }; -} -export const SnapshotIAVLItem = { - encode(message: SnapshotIAVLItem, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.key.length !== 0) { - writer.uint32(10).bytes(message.key); - } - if (message.value.length !== 0) { - writer.uint32(18).bytes(message.value); - } - if (!message.version.isZero()) { - writer.uint32(24).int64(message.version); - } - if (message.height !== 0) { - writer.uint32(32).int32(message.height); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): SnapshotIAVLItem { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseSnapshotIAVLItem(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.key = reader.bytes(); - break; - case 2: - message.value = reader.bytes(); - break; - case 3: - message.version = (reader.int64() as Long); - break; - case 4: - message.height = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): SnapshotIAVLItem { - const message = createBaseSnapshotIAVLItem(); - message.key = object.key ?? new Uint8Array(); - message.value = object.value ?? new Uint8Array(); - message.version = object.version !== undefined && object.version !== null ? Long.fromValue(object.version) : Long.ZERO; - message.height = object.height ?? 0; - return message; - } -}; -function createBaseSnapshotExtensionMeta(): SnapshotExtensionMeta { - return { - name: "", - format: 0 - }; -} -export const SnapshotExtensionMeta = { - encode(message: SnapshotExtensionMeta, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.name !== "") { - writer.uint32(10).string(message.name); - } - if (message.format !== 0) { - writer.uint32(16).uint32(message.format); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): SnapshotExtensionMeta { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseSnapshotExtensionMeta(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.format = reader.uint32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): SnapshotExtensionMeta { - const message = createBaseSnapshotExtensionMeta(); - message.name = object.name ?? ""; - message.format = object.format ?? 0; - return message; - } -}; -function createBaseSnapshotExtensionPayload(): SnapshotExtensionPayload { - return { - payload: new Uint8Array() - }; -} -export const SnapshotExtensionPayload = { - encode(message: SnapshotExtensionPayload, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.payload.length !== 0) { - writer.uint32(10).bytes(message.payload); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): SnapshotExtensionPayload { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseSnapshotExtensionPayload(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.payload = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): SnapshotExtensionPayload { - const message = createBaseSnapshotExtensionPayload(); - message.payload = object.payload ?? new Uint8Array(); - return message; - } -}; -function createBaseSnapshotKVItem(): SnapshotKVItem { - return { - key: new Uint8Array(), - value: new Uint8Array() - }; -} -export const SnapshotKVItem = { - encode(message: SnapshotKVItem, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.key.length !== 0) { - writer.uint32(10).bytes(message.key); - } - if (message.value.length !== 0) { - writer.uint32(18).bytes(message.value); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): SnapshotKVItem { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseSnapshotKVItem(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.key = reader.bytes(); - break; - case 2: - message.value = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): SnapshotKVItem { - const message = createBaseSnapshotKVItem(); - message.key = object.key ?? new Uint8Array(); - message.value = object.value ?? new Uint8Array(); - return message; - } -}; -function createBaseSnapshotSchema(): SnapshotSchema { - return { - keys: [] - }; -} -export const SnapshotSchema = { - encode(message: SnapshotSchema, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - for (const v of message.keys) { - writer.uint32(10).bytes(v!); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): SnapshotSchema { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseSnapshotSchema(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.keys.push(reader.bytes()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): SnapshotSchema { - const message = createBaseSnapshotSchema(); - message.keys = object.keys?.map(e => e) || []; - return message; - } -}; \ No newline at end of file diff --git a/packages/proto/src/codegen/cosmos/base/store/v1beta1/commit_info.ts b/packages/proto/src/codegen/cosmos/base/store/v1beta1/commit_info.ts deleted file mode 100644 index 91c25953..00000000 --- a/packages/proto/src/codegen/cosmos/base/store/v1beta1/commit_info.ts +++ /dev/null @@ -1,179 +0,0 @@ -import { Long, DeepPartial } from "../../../../helpers"; -import * as _m0 from "protobufjs/minimal"; -/** - * CommitInfo defines commit information used by the multi-store when committing - * a version/height. - */ -export interface CommitInfo { - version: Long; - storeInfos: StoreInfo[]; -} -/** - * CommitInfo defines commit information used by the multi-store when committing - * a version/height. - */ -export interface CommitInfoSDKType { - version: Long; - store_infos: StoreInfoSDKType[]; -} -/** - * StoreInfo defines store-specific commit information. It contains a reference - * between a store name and the commit ID. - */ -export interface StoreInfo { - name: string; - commitId: CommitID; -} -/** - * StoreInfo defines store-specific commit information. It contains a reference - * between a store name and the commit ID. - */ -export interface StoreInfoSDKType { - name: string; - commit_id: CommitIDSDKType; -} -/** - * CommitID defines the committment information when a specific store is - * committed. - */ -export interface CommitID { - version: Long; - hash: Uint8Array; -} -/** - * CommitID defines the committment information when a specific store is - * committed. - */ -export interface CommitIDSDKType { - version: Long; - hash: Uint8Array; -} -function createBaseCommitInfo(): CommitInfo { - return { - version: Long.ZERO, - storeInfos: [] - }; -} -export const CommitInfo = { - encode(message: CommitInfo, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (!message.version.isZero()) { - writer.uint32(8).int64(message.version); - } - for (const v of message.storeInfos) { - StoreInfo.encode(v!, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): CommitInfo { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseCommitInfo(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.version = (reader.int64() as Long); - break; - case 2: - message.storeInfos.push(StoreInfo.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): CommitInfo { - const message = createBaseCommitInfo(); - message.version = object.version !== undefined && object.version !== null ? Long.fromValue(object.version) : Long.ZERO; - message.storeInfos = object.storeInfos?.map(e => StoreInfo.fromPartial(e)) || []; - return message; - } -}; -function createBaseStoreInfo(): StoreInfo { - return { - name: "", - commitId: CommitID.fromPartial({}) - }; -} -export const StoreInfo = { - encode(message: StoreInfo, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.name !== "") { - writer.uint32(10).string(message.name); - } - if (message.commitId !== undefined) { - CommitID.encode(message.commitId, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): StoreInfo { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseStoreInfo(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.commitId = CommitID.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): StoreInfo { - const message = createBaseStoreInfo(); - message.name = object.name ?? ""; - message.commitId = object.commitId !== undefined && object.commitId !== null ? CommitID.fromPartial(object.commitId) : undefined; - return message; - } -}; -function createBaseCommitID(): CommitID { - return { - version: Long.ZERO, - hash: new Uint8Array() - }; -} -export const CommitID = { - encode(message: CommitID, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (!message.version.isZero()) { - writer.uint32(8).int64(message.version); - } - if (message.hash.length !== 0) { - writer.uint32(18).bytes(message.hash); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): CommitID { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseCommitID(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.version = (reader.int64() as Long); - break; - case 2: - message.hash = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): CommitID { - const message = createBaseCommitID(); - message.version = object.version !== undefined && object.version !== null ? Long.fromValue(object.version) : Long.ZERO; - message.hash = object.hash ?? new Uint8Array(); - return message; - } -}; \ No newline at end of file diff --git a/packages/proto/src/codegen/cosmos/base/store/v1beta1/listening.ts b/packages/proto/src/codegen/cosmos/base/store/v1beta1/listening.ts deleted file mode 100644 index 05b1f3e3..00000000 --- a/packages/proto/src/codegen/cosmos/base/store/v1beta1/listening.ts +++ /dev/null @@ -1,89 +0,0 @@ -import * as _m0 from "protobufjs/minimal"; -import { DeepPartial } from "../../../../helpers"; -/** - * StoreKVPair is a KVStore KVPair used for listening to state changes (Sets and Deletes) - * It optionally includes the StoreKey for the originating KVStore and a Boolean flag to distinguish between Sets and - * Deletes - * - * Since: cosmos-sdk 0.43 - */ -export interface StoreKVPair { - /** the store key for the KVStore this pair originates from */ - storeKey: string; - /** true indicates a delete operation, false indicates a set operation */ - delete: boolean; - key: Uint8Array; - value: Uint8Array; -} -/** - * StoreKVPair is a KVStore KVPair used for listening to state changes (Sets and Deletes) - * It optionally includes the StoreKey for the originating KVStore and a Boolean flag to distinguish between Sets and - * Deletes - * - * Since: cosmos-sdk 0.43 - */ -export interface StoreKVPairSDKType { - store_key: string; - delete: boolean; - key: Uint8Array; - value: Uint8Array; -} -function createBaseStoreKVPair(): StoreKVPair { - return { - storeKey: "", - delete: false, - key: new Uint8Array(), - value: new Uint8Array() - }; -} -export const StoreKVPair = { - encode(message: StoreKVPair, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.storeKey !== "") { - writer.uint32(10).string(message.storeKey); - } - if (message.delete === true) { - writer.uint32(16).bool(message.delete); - } - if (message.key.length !== 0) { - writer.uint32(26).bytes(message.key); - } - if (message.value.length !== 0) { - writer.uint32(34).bytes(message.value); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): StoreKVPair { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseStoreKVPair(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.storeKey = reader.string(); - break; - case 2: - message.delete = reader.bool(); - break; - case 3: - message.key = reader.bytes(); - break; - case 4: - message.value = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): StoreKVPair { - const message = createBaseStoreKVPair(); - message.storeKey = object.storeKey ?? ""; - message.delete = object.delete ?? false; - message.key = object.key ?? new Uint8Array(); - message.value = object.value ?? new Uint8Array(); - return message; - } -}; \ No newline at end of file diff --git a/packages/proto/src/codegen/cosmos/base/tendermint/v1beta1/query.lcd.ts b/packages/proto/src/codegen/cosmos/base/tendermint/v1beta1/query.lcd.ts deleted file mode 100644 index 4802c8af..00000000 --- a/packages/proto/src/codegen/cosmos/base/tendermint/v1beta1/query.lcd.ts +++ /dev/null @@ -1,63 +0,0 @@ -import { setPaginationParams } from "../../../../helpers"; -import { LCDClient } from "@osmonauts/lcd"; -import { GetNodeInfoRequest, GetNodeInfoResponseSDKType, GetSyncingRequest, GetSyncingResponseSDKType, GetLatestBlockRequest, GetLatestBlockResponseSDKType, GetBlockByHeightRequest, GetBlockByHeightResponseSDKType, GetLatestValidatorSetRequest, GetLatestValidatorSetResponseSDKType, GetValidatorSetByHeightRequest, GetValidatorSetByHeightResponseSDKType } from "./query"; -export class LCDQueryClient { - req: LCDClient; - constructor({ - requestClient - }: { - requestClient: LCDClient; - }) { - this.req = requestClient; - this.getNodeInfo = this.getNodeInfo.bind(this); - this.getSyncing = this.getSyncing.bind(this); - this.getLatestBlock = this.getLatestBlock.bind(this); - this.getBlockByHeight = this.getBlockByHeight.bind(this); - this.getLatestValidatorSet = this.getLatestValidatorSet.bind(this); - this.getValidatorSetByHeight = this.getValidatorSetByHeight.bind(this); - } - /* GetNodeInfo queries the current node info. */ - async getNodeInfo(_params: GetNodeInfoRequest = {}): Promise { - const endpoint = `cosmos/base/tendermint/v1beta1/node_info`; - return await this.req.get(endpoint); - } - /* GetSyncing queries node syncing. */ - async getSyncing(_params: GetSyncingRequest = {}): Promise { - const endpoint = `cosmos/base/tendermint/v1beta1/syncing`; - return await this.req.get(endpoint); - } - /* GetLatestBlock returns the latest block. */ - async getLatestBlock(_params: GetLatestBlockRequest = {}): Promise { - const endpoint = `cosmos/base/tendermint/v1beta1/blocks/latest`; - return await this.req.get(endpoint); - } - /* GetBlockByHeight queries block for given height. */ - async getBlockByHeight(params: GetBlockByHeightRequest): Promise { - const endpoint = `cosmos/base/tendermint/v1beta1/blocks/${params.height}`; - return await this.req.get(endpoint); - } - /* GetLatestValidatorSet queries latest validator-set. */ - async getLatestValidatorSet(params: GetLatestValidatorSetRequest = { - pagination: undefined - }): Promise { - const options: any = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `cosmos/base/tendermint/v1beta1/validatorsets/latest`; - return await this.req.get(endpoint, options); - } - /* GetValidatorSetByHeight queries validator-set at a given height. */ - async getValidatorSetByHeight(params: GetValidatorSetByHeightRequest): Promise { - const options: any = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `cosmos/base/tendermint/v1beta1/validatorsets/${params.height}`; - return await this.req.get(endpoint, options); - } -} \ No newline at end of file diff --git a/packages/proto/src/codegen/cosmos/base/tendermint/v1beta1/query.ts b/packages/proto/src/codegen/cosmos/base/tendermint/v1beta1/query.ts deleted file mode 100644 index 045e2542..00000000 --- a/packages/proto/src/codegen/cosmos/base/tendermint/v1beta1/query.ts +++ /dev/null @@ -1,821 +0,0 @@ -import { PageRequest, PageRequestSDKType, PageResponse, PageResponseSDKType } from "../../query/v1beta1/pagination"; -import { Any, AnySDKType } from "../../../../google/protobuf/any"; -import { BlockID, BlockIDSDKType } from "../../../../tendermint/types/types"; -import { Block, BlockSDKType } from "../../../../tendermint/types/block"; -import { NodeInfo, NodeInfoSDKType } from "../../../../tendermint/p2p/types"; -import { Long, DeepPartial } from "../../../../helpers"; -import * as _m0 from "protobufjs/minimal"; -/** GetValidatorSetByHeightRequest is the request type for the Query/GetValidatorSetByHeight RPC method. */ -export interface GetValidatorSetByHeightRequest { - height: Long; - /** pagination defines an pagination for the request. */ - pagination: PageRequest; -} -/** GetValidatorSetByHeightRequest is the request type for the Query/GetValidatorSetByHeight RPC method. */ -export interface GetValidatorSetByHeightRequestSDKType { - height: Long; - pagination: PageRequestSDKType; -} -/** GetValidatorSetByHeightResponse is the response type for the Query/GetValidatorSetByHeight RPC method. */ -export interface GetValidatorSetByHeightResponse { - blockHeight: Long; - validators: Validator[]; - /** pagination defines an pagination for the response. */ - pagination: PageResponse; -} -/** GetValidatorSetByHeightResponse is the response type for the Query/GetValidatorSetByHeight RPC method. */ -export interface GetValidatorSetByHeightResponseSDKType { - block_height: Long; - validators: ValidatorSDKType[]; - pagination: PageResponseSDKType; -} -/** GetLatestValidatorSetRequest is the request type for the Query/GetValidatorSetByHeight RPC method. */ -export interface GetLatestValidatorSetRequest { - /** pagination defines an pagination for the request. */ - pagination: PageRequest; -} -/** GetLatestValidatorSetRequest is the request type for the Query/GetValidatorSetByHeight RPC method. */ -export interface GetLatestValidatorSetRequestSDKType { - pagination: PageRequestSDKType; -} -/** GetLatestValidatorSetResponse is the response type for the Query/GetValidatorSetByHeight RPC method. */ -export interface GetLatestValidatorSetResponse { - blockHeight: Long; - validators: Validator[]; - /** pagination defines an pagination for the response. */ - pagination: PageResponse; -} -/** GetLatestValidatorSetResponse is the response type for the Query/GetValidatorSetByHeight RPC method. */ -export interface GetLatestValidatorSetResponseSDKType { - block_height: Long; - validators: ValidatorSDKType[]; - pagination: PageResponseSDKType; -} -/** Validator is the type for the validator-set. */ -export interface Validator { - address: string; - pubKey: Any; - votingPower: Long; - proposerPriority: Long; -} -/** Validator is the type for the validator-set. */ -export interface ValidatorSDKType { - address: string; - pub_key: AnySDKType; - voting_power: Long; - proposer_priority: Long; -} -/** GetBlockByHeightRequest is the request type for the Query/GetBlockByHeight RPC method. */ -export interface GetBlockByHeightRequest { - height: Long; -} -/** GetBlockByHeightRequest is the request type for the Query/GetBlockByHeight RPC method. */ -export interface GetBlockByHeightRequestSDKType { - height: Long; -} -/** GetBlockByHeightResponse is the response type for the Query/GetBlockByHeight RPC method. */ -export interface GetBlockByHeightResponse { - blockId: BlockID; - block: Block; -} -/** GetBlockByHeightResponse is the response type for the Query/GetBlockByHeight RPC method. */ -export interface GetBlockByHeightResponseSDKType { - block_id: BlockIDSDKType; - block: BlockSDKType; -} -/** GetLatestBlockRequest is the request type for the Query/GetLatestBlock RPC method. */ -export interface GetLatestBlockRequest {} -/** GetLatestBlockRequest is the request type for the Query/GetLatestBlock RPC method. */ -export interface GetLatestBlockRequestSDKType {} -/** GetLatestBlockResponse is the response type for the Query/GetLatestBlock RPC method. */ -export interface GetLatestBlockResponse { - blockId: BlockID; - block: Block; -} -/** GetLatestBlockResponse is the response type for the Query/GetLatestBlock RPC method. */ -export interface GetLatestBlockResponseSDKType { - block_id: BlockIDSDKType; - block: BlockSDKType; -} -/** GetSyncingRequest is the request type for the Query/GetSyncing RPC method. */ -export interface GetSyncingRequest {} -/** GetSyncingRequest is the request type for the Query/GetSyncing RPC method. */ -export interface GetSyncingRequestSDKType {} -/** GetSyncingResponse is the response type for the Query/GetSyncing RPC method. */ -export interface GetSyncingResponse { - syncing: boolean; -} -/** GetSyncingResponse is the response type for the Query/GetSyncing RPC method. */ -export interface GetSyncingResponseSDKType { - syncing: boolean; -} -/** GetNodeInfoRequest is the request type for the Query/GetNodeInfo RPC method. */ -export interface GetNodeInfoRequest {} -/** GetNodeInfoRequest is the request type for the Query/GetNodeInfo RPC method. */ -export interface GetNodeInfoRequestSDKType {} -/** GetNodeInfoResponse is the response type for the Query/GetNodeInfo RPC method. */ -export interface GetNodeInfoResponse { - nodeInfo: NodeInfo; - applicationVersion: VersionInfo; -} -/** GetNodeInfoResponse is the response type for the Query/GetNodeInfo RPC method. */ -export interface GetNodeInfoResponseSDKType { - node_info: NodeInfoSDKType; - application_version: VersionInfoSDKType; -} -/** VersionInfo is the type for the GetNodeInfoResponse message. */ -export interface VersionInfo { - name: string; - appName: string; - version: string; - gitCommit: string; - buildTags: string; - goVersion: string; - buildDeps: Module[]; - /** Since: cosmos-sdk 0.43 */ - cosmosSdkVersion: string; -} -/** VersionInfo is the type for the GetNodeInfoResponse message. */ -export interface VersionInfoSDKType { - name: string; - app_name: string; - version: string; - git_commit: string; - build_tags: string; - go_version: string; - build_deps: ModuleSDKType[]; - cosmos_sdk_version: string; -} -/** Module is the type for VersionInfo */ -export interface Module { - /** module path */ - path: string; - /** module version */ - version: string; - /** checksum */ - sum: string; -} -/** Module is the type for VersionInfo */ -export interface ModuleSDKType { - path: string; - version: string; - sum: string; -} -function createBaseGetValidatorSetByHeightRequest(): GetValidatorSetByHeightRequest { - return { - height: Long.ZERO, - pagination: PageRequest.fromPartial({}) - }; -} -export const GetValidatorSetByHeightRequest = { - encode(message: GetValidatorSetByHeightRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (!message.height.isZero()) { - writer.uint32(8).int64(message.height); - } - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): GetValidatorSetByHeightRequest { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGetValidatorSetByHeightRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.height = (reader.int64() as Long); - break; - case 2: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): GetValidatorSetByHeightRequest { - const message = createBaseGetValidatorSetByHeightRequest(); - message.height = object.height !== undefined && object.height !== null ? Long.fromValue(object.height) : Long.ZERO; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - } -}; -function createBaseGetValidatorSetByHeightResponse(): GetValidatorSetByHeightResponse { - return { - blockHeight: Long.ZERO, - validators: [], - pagination: PageResponse.fromPartial({}) - }; -} -export const GetValidatorSetByHeightResponse = { - encode(message: GetValidatorSetByHeightResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (!message.blockHeight.isZero()) { - writer.uint32(8).int64(message.blockHeight); - } - for (const v of message.validators) { - Validator.encode(v!, writer.uint32(18).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): GetValidatorSetByHeightResponse { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGetValidatorSetByHeightResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.blockHeight = (reader.int64() as Long); - break; - case 2: - message.validators.push(Validator.decode(reader, reader.uint32())); - break; - case 3: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): GetValidatorSetByHeightResponse { - const message = createBaseGetValidatorSetByHeightResponse(); - message.blockHeight = object.blockHeight !== undefined && object.blockHeight !== null ? Long.fromValue(object.blockHeight) : Long.ZERO; - message.validators = object.validators?.map(e => Validator.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - } -}; -function createBaseGetLatestValidatorSetRequest(): GetLatestValidatorSetRequest { - return { - pagination: PageRequest.fromPartial({}) - }; -} -export const GetLatestValidatorSetRequest = { - encode(message: GetLatestValidatorSetRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): GetLatestValidatorSetRequest { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGetLatestValidatorSetRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): GetLatestValidatorSetRequest { - const message = createBaseGetLatestValidatorSetRequest(); - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - } -}; -function createBaseGetLatestValidatorSetResponse(): GetLatestValidatorSetResponse { - return { - blockHeight: Long.ZERO, - validators: [], - pagination: PageResponse.fromPartial({}) - }; -} -export const GetLatestValidatorSetResponse = { - encode(message: GetLatestValidatorSetResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (!message.blockHeight.isZero()) { - writer.uint32(8).int64(message.blockHeight); - } - for (const v of message.validators) { - Validator.encode(v!, writer.uint32(18).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): GetLatestValidatorSetResponse { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGetLatestValidatorSetResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.blockHeight = (reader.int64() as Long); - break; - case 2: - message.validators.push(Validator.decode(reader, reader.uint32())); - break; - case 3: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): GetLatestValidatorSetResponse { - const message = createBaseGetLatestValidatorSetResponse(); - message.blockHeight = object.blockHeight !== undefined && object.blockHeight !== null ? Long.fromValue(object.blockHeight) : Long.ZERO; - message.validators = object.validators?.map(e => Validator.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - } -}; -function createBaseValidator(): Validator { - return { - address: "", - pubKey: undefined, - votingPower: Long.ZERO, - proposerPriority: Long.ZERO - }; -} -export const Validator = { - encode(message: Validator, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.address !== "") { - writer.uint32(10).string(message.address); - } - if (message.pubKey !== undefined) { - Any.encode(message.pubKey, writer.uint32(18).fork()).ldelim(); - } - if (!message.votingPower.isZero()) { - writer.uint32(24).int64(message.votingPower); - } - if (!message.proposerPriority.isZero()) { - writer.uint32(32).int64(message.proposerPriority); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): Validator { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseValidator(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.address = reader.string(); - break; - case 2: - message.pubKey = Any.decode(reader, reader.uint32()); - break; - case 3: - message.votingPower = (reader.int64() as Long); - break; - case 4: - message.proposerPriority = (reader.int64() as Long); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): Validator { - const message = createBaseValidator(); - message.address = object.address ?? ""; - message.pubKey = object.pubKey !== undefined && object.pubKey !== null ? Any.fromPartial(object.pubKey) : undefined; - message.votingPower = object.votingPower !== undefined && object.votingPower !== null ? Long.fromValue(object.votingPower) : Long.ZERO; - message.proposerPriority = object.proposerPriority !== undefined && object.proposerPriority !== null ? Long.fromValue(object.proposerPriority) : Long.ZERO; - return message; - } -}; -function createBaseGetBlockByHeightRequest(): GetBlockByHeightRequest { - return { - height: Long.ZERO - }; -} -export const GetBlockByHeightRequest = { - encode(message: GetBlockByHeightRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (!message.height.isZero()) { - writer.uint32(8).int64(message.height); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): GetBlockByHeightRequest { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGetBlockByHeightRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.height = (reader.int64() as Long); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): GetBlockByHeightRequest { - const message = createBaseGetBlockByHeightRequest(); - message.height = object.height !== undefined && object.height !== null ? Long.fromValue(object.height) : Long.ZERO; - return message; - } -}; -function createBaseGetBlockByHeightResponse(): GetBlockByHeightResponse { - return { - blockId: BlockID.fromPartial({}), - block: Block.fromPartial({}) - }; -} -export const GetBlockByHeightResponse = { - encode(message: GetBlockByHeightResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.blockId !== undefined) { - BlockID.encode(message.blockId, writer.uint32(10).fork()).ldelim(); - } - if (message.block !== undefined) { - Block.encode(message.block, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): GetBlockByHeightResponse { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGetBlockByHeightResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.blockId = BlockID.decode(reader, reader.uint32()); - break; - case 2: - message.block = Block.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): GetBlockByHeightResponse { - const message = createBaseGetBlockByHeightResponse(); - message.blockId = object.blockId !== undefined && object.blockId !== null ? BlockID.fromPartial(object.blockId) : undefined; - message.block = object.block !== undefined && object.block !== null ? Block.fromPartial(object.block) : undefined; - return message; - } -}; -function createBaseGetLatestBlockRequest(): GetLatestBlockRequest { - return {}; -} -export const GetLatestBlockRequest = { - encode(_: GetLatestBlockRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): GetLatestBlockRequest { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGetLatestBlockRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_: DeepPartial): GetLatestBlockRequest { - const message = createBaseGetLatestBlockRequest(); - return message; - } -}; -function createBaseGetLatestBlockResponse(): GetLatestBlockResponse { - return { - blockId: BlockID.fromPartial({}), - block: Block.fromPartial({}) - }; -} -export const GetLatestBlockResponse = { - encode(message: GetLatestBlockResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.blockId !== undefined) { - BlockID.encode(message.blockId, writer.uint32(10).fork()).ldelim(); - } - if (message.block !== undefined) { - Block.encode(message.block, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): GetLatestBlockResponse { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGetLatestBlockResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.blockId = BlockID.decode(reader, reader.uint32()); - break; - case 2: - message.block = Block.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): GetLatestBlockResponse { - const message = createBaseGetLatestBlockResponse(); - message.blockId = object.blockId !== undefined && object.blockId !== null ? BlockID.fromPartial(object.blockId) : undefined; - message.block = object.block !== undefined && object.block !== null ? Block.fromPartial(object.block) : undefined; - return message; - } -}; -function createBaseGetSyncingRequest(): GetSyncingRequest { - return {}; -} -export const GetSyncingRequest = { - encode(_: GetSyncingRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): GetSyncingRequest { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGetSyncingRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_: DeepPartial): GetSyncingRequest { - const message = createBaseGetSyncingRequest(); - return message; - } -}; -function createBaseGetSyncingResponse(): GetSyncingResponse { - return { - syncing: false - }; -} -export const GetSyncingResponse = { - encode(message: GetSyncingResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.syncing === true) { - writer.uint32(8).bool(message.syncing); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): GetSyncingResponse { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGetSyncingResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.syncing = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): GetSyncingResponse { - const message = createBaseGetSyncingResponse(); - message.syncing = object.syncing ?? false; - return message; - } -}; -function createBaseGetNodeInfoRequest(): GetNodeInfoRequest { - return {}; -} -export const GetNodeInfoRequest = { - encode(_: GetNodeInfoRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): GetNodeInfoRequest { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGetNodeInfoRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_: DeepPartial): GetNodeInfoRequest { - const message = createBaseGetNodeInfoRequest(); - return message; - } -}; -function createBaseGetNodeInfoResponse(): GetNodeInfoResponse { - return { - nodeInfo: NodeInfo.fromPartial({}), - applicationVersion: VersionInfo.fromPartial({}) - }; -} -export const GetNodeInfoResponse = { - encode(message: GetNodeInfoResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.nodeInfo !== undefined) { - NodeInfo.encode(message.nodeInfo, writer.uint32(10).fork()).ldelim(); - } - if (message.applicationVersion !== undefined) { - VersionInfo.encode(message.applicationVersion, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): GetNodeInfoResponse { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGetNodeInfoResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.nodeInfo = NodeInfo.decode(reader, reader.uint32()); - break; - case 2: - message.applicationVersion = VersionInfo.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): GetNodeInfoResponse { - const message = createBaseGetNodeInfoResponse(); - message.nodeInfo = object.nodeInfo !== undefined && object.nodeInfo !== null ? NodeInfo.fromPartial(object.nodeInfo) : undefined; - message.applicationVersion = object.applicationVersion !== undefined && object.applicationVersion !== null ? VersionInfo.fromPartial(object.applicationVersion) : undefined; - return message; - } -}; -function createBaseVersionInfo(): VersionInfo { - return { - name: "", - appName: "", - version: "", - gitCommit: "", - buildTags: "", - goVersion: "", - buildDeps: [], - cosmosSdkVersion: "" - }; -} -export const VersionInfo = { - encode(message: VersionInfo, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.name !== "") { - writer.uint32(10).string(message.name); - } - if (message.appName !== "") { - writer.uint32(18).string(message.appName); - } - if (message.version !== "") { - writer.uint32(26).string(message.version); - } - if (message.gitCommit !== "") { - writer.uint32(34).string(message.gitCommit); - } - if (message.buildTags !== "") { - writer.uint32(42).string(message.buildTags); - } - if (message.goVersion !== "") { - writer.uint32(50).string(message.goVersion); - } - for (const v of message.buildDeps) { - Module.encode(v!, writer.uint32(58).fork()).ldelim(); - } - if (message.cosmosSdkVersion !== "") { - writer.uint32(66).string(message.cosmosSdkVersion); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): VersionInfo { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseVersionInfo(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.appName = reader.string(); - break; - case 3: - message.version = reader.string(); - break; - case 4: - message.gitCommit = reader.string(); - break; - case 5: - message.buildTags = reader.string(); - break; - case 6: - message.goVersion = reader.string(); - break; - case 7: - message.buildDeps.push(Module.decode(reader, reader.uint32())); - break; - case 8: - message.cosmosSdkVersion = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): VersionInfo { - const message = createBaseVersionInfo(); - message.name = object.name ?? ""; - message.appName = object.appName ?? ""; - message.version = object.version ?? ""; - message.gitCommit = object.gitCommit ?? ""; - message.buildTags = object.buildTags ?? ""; - message.goVersion = object.goVersion ?? ""; - message.buildDeps = object.buildDeps?.map(e => Module.fromPartial(e)) || []; - message.cosmosSdkVersion = object.cosmosSdkVersion ?? ""; - return message; - } -}; -function createBaseModule(): Module { - return { - path: "", - version: "", - sum: "" - }; -} -export const Module = { - encode(message: Module, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.path !== "") { - writer.uint32(10).string(message.path); - } - if (message.version !== "") { - writer.uint32(18).string(message.version); - } - if (message.sum !== "") { - writer.uint32(26).string(message.sum); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): Module { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseModule(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.path = reader.string(); - break; - case 2: - message.version = reader.string(); - break; - case 3: - message.sum = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): Module { - const message = createBaseModule(); - message.path = object.path ?? ""; - message.version = object.version ?? ""; - message.sum = object.sum ?? ""; - return message; - } -}; \ No newline at end of file diff --git a/packages/proto/src/codegen/cosmos/bundle.ts b/packages/proto/src/codegen/cosmos/bundle.ts index bde43937..6197372b 100644 --- a/packages/proto/src/codegen/cosmos/bundle.ts +++ b/packages/proto/src/codegen/cosmos/bundle.ts @@ -1,428 +1,232 @@ -import * as _2 from "./app/v1alpha1/config"; -import * as _3 from "./app/v1alpha1/module"; -import * as _4 from "./app/v1alpha1/query"; -import * as _5 from "./auth/v1beta1/auth"; -import * as _6 from "./auth/v1beta1/genesis"; -import * as _7 from "./auth/v1beta1/query"; -import * as _8 from "./authz/v1beta1/authz"; -import * as _9 from "./authz/v1beta1/event"; -import * as _10 from "./authz/v1beta1/genesis"; -import * as _11 from "./authz/v1beta1/query"; -import * as _12 from "./authz/v1beta1/tx"; -import * as _13 from "./bank/v1beta1/authz"; -import * as _14 from "./bank/v1beta1/bank"; -import * as _15 from "./bank/v1beta1/genesis"; -import * as _16 from "./bank/v1beta1/query"; -import * as _17 from "./bank/v1beta1/tx"; -import * as _18 from "./base/abci/v1beta1/abci"; -import * as _19 from "./base/kv/v1beta1/kv"; -import * as _20 from "./base/query/v1beta1/pagination"; -import * as _21 from "./base/reflection/v1beta1/reflection"; -import * as _22 from "./base/reflection/v2alpha1/reflection"; -import * as _23 from "./base/snapshots/v1beta1/snapshot"; -import * as _24 from "./base/store/v1beta1/commit_info"; -import * as _25 from "./base/store/v1beta1/listening"; -import * as _26 from "./base/tendermint/v1beta1/query"; -import * as _27 from "./base/v1beta1/coin"; -import * as _28 from "./capability/v1beta1/capability"; -import * as _29 from "./capability/v1beta1/genesis"; -import * as _30 from "./crisis/v1beta1/genesis"; -import * as _31 from "./crisis/v1beta1/tx"; -import * as _32 from "./crypto/ed25519/keys"; -import * as _33 from "./crypto/hd/v1/hd"; -import * as _34 from "./crypto/keyring/v1/record"; -import * as _35 from "./crypto/multisig/keys"; -import * as _36 from "./crypto/secp256k1/keys"; -import * as _37 from "./crypto/secp256r1/keys"; -import * as _38 from "./distribution/v1beta1/distribution"; -import * as _39 from "./distribution/v1beta1/genesis"; -import * as _40 from "./distribution/v1beta1/query"; -import * as _41 from "./distribution/v1beta1/tx"; -import * as _42 from "./evidence/v1beta1/evidence"; -import * as _43 from "./evidence/v1beta1/genesis"; -import * as _44 from "./evidence/v1beta1/query"; -import * as _45 from "./evidence/v1beta1/tx"; -import * as _46 from "./feegrant/v1beta1/feegrant"; -import * as _47 from "./feegrant/v1beta1/genesis"; -import * as _48 from "./feegrant/v1beta1/query"; -import * as _49 from "./feegrant/v1beta1/tx"; -import * as _50 from "./genutil/v1beta1/genesis"; -import * as _51 from "./gov/v1/genesis"; -import * as _52 from "./gov/v1/gov"; -import * as _53 from "./gov/v1/query"; -import * as _54 from "./gov/v1/tx"; -import * as _55 from "./gov/v1beta1/genesis"; -import * as _56 from "./gov/v1beta1/gov"; -import * as _57 from "./gov/v1beta1/query"; -import * as _58 from "./gov/v1beta1/tx"; -import * as _59 from "./group/v1/events"; -import * as _60 from "./group/v1/genesis"; -import * as _61 from "./group/v1/query"; -import * as _62 from "./group/v1/tx"; -import * as _63 from "./group/v1/types"; -import * as _64 from "./mint/v1beta1/genesis"; -import * as _65 from "./mint/v1beta1/mint"; -import * as _66 from "./mint/v1beta1/query"; -import * as _67 from "./msg/v1/msg"; -import * as _68 from "./nft/v1beta1/event"; -import * as _69 from "./nft/v1beta1/genesis"; -import * as _70 from "./nft/v1beta1/nft"; -import * as _71 from "./nft/v1beta1/query"; -import * as _72 from "./nft/v1beta1/tx"; -import * as _73 from "./orm/v1/orm"; -import * as _74 from "./orm/v1alpha1/schema"; -import * as _75 from "./params/v1beta1/params"; -import * as _76 from "./params/v1beta1/query"; -import * as _77 from "./slashing/v1beta1/genesis"; -import * as _78 from "./slashing/v1beta1/query"; -import * as _79 from "./slashing/v1beta1/slashing"; -import * as _80 from "./slashing/v1beta1/tx"; -import * as _81 from "./staking/v1beta1/authz"; -import * as _82 from "./staking/v1beta1/genesis"; -import * as _83 from "./staking/v1beta1/query"; -import * as _84 from "./staking/v1beta1/staking"; -import * as _85 from "./staking/v1beta1/tx"; -import * as _86 from "./tx/signing/v1beta1/signing"; -import * as _87 from "./tx/v1beta1/service"; -import * as _88 from "./tx/v1beta1/tx"; -import * as _89 from "./upgrade/v1beta1/query"; -import * as _90 from "./upgrade/v1beta1/tx"; -import * as _91 from "./upgrade/v1beta1/upgrade"; -import * as _92 from "./vesting/v1beta1/tx"; -import * as _93 from "./vesting/v1beta1/vesting"; -import * as _180 from "./authz/v1beta1/tx.amino"; -import * as _181 from "./bank/v1beta1/tx.amino"; -import * as _182 from "./crisis/v1beta1/tx.amino"; -import * as _183 from "./distribution/v1beta1/tx.amino"; -import * as _184 from "./evidence/v1beta1/tx.amino"; -import * as _185 from "./feegrant/v1beta1/tx.amino"; -import * as _186 from "./gov/v1/tx.amino"; -import * as _187 from "./gov/v1beta1/tx.amino"; -import * as _188 from "./group/v1/tx.amino"; -import * as _189 from "./nft/v1beta1/tx.amino"; -import * as _190 from "./slashing/v1beta1/tx.amino"; -import * as _191 from "./staking/v1beta1/tx.amino"; -import * as _192 from "./upgrade/v1beta1/tx.amino"; -import * as _193 from "./vesting/v1beta1/tx.amino"; -import * as _194 from "./authz/v1beta1/tx.registry"; -import * as _195 from "./bank/v1beta1/tx.registry"; -import * as _196 from "./crisis/v1beta1/tx.registry"; -import * as _197 from "./distribution/v1beta1/tx.registry"; -import * as _198 from "./evidence/v1beta1/tx.registry"; -import * as _199 from "./feegrant/v1beta1/tx.registry"; -import * as _200 from "./gov/v1/tx.registry"; -import * as _201 from "./gov/v1beta1/tx.registry"; -import * as _202 from "./group/v1/tx.registry"; -import * as _203 from "./nft/v1beta1/tx.registry"; -import * as _204 from "./slashing/v1beta1/tx.registry"; -import * as _205 from "./staking/v1beta1/tx.registry"; -import * as _206 from "./upgrade/v1beta1/tx.registry"; -import * as _207 from "./vesting/v1beta1/tx.registry"; -import * as _208 from "./auth/v1beta1/query.lcd"; -import * as _209 from "./authz/v1beta1/query.lcd"; -import * as _210 from "./bank/v1beta1/query.lcd"; -import * as _211 from "./base/tendermint/v1beta1/query.lcd"; -import * as _212 from "./distribution/v1beta1/query.lcd"; -import * as _213 from "./evidence/v1beta1/query.lcd"; -import * as _214 from "./feegrant/v1beta1/query.lcd"; -import * as _215 from "./gov/v1/query.lcd"; -import * as _216 from "./gov/v1beta1/query.lcd"; -import * as _217 from "./group/v1/query.lcd"; -import * as _218 from "./mint/v1beta1/query.lcd"; -import * as _219 from "./nft/v1beta1/query.lcd"; -import * as _220 from "./params/v1beta1/query.lcd"; -import * as _221 from "./slashing/v1beta1/query.lcd"; -import * as _222 from "./staking/v1beta1/query.lcd"; -import * as _223 from "./tx/v1beta1/service.lcd"; -import * as _224 from "./upgrade/v1beta1/query.lcd"; -import * as _251 from "./lcd"; +import * as _2 from "./auth/v1beta1/auth"; +import * as _3 from "./auth/v1beta1/genesis"; +import * as _4 from "./auth/v1beta1/query"; +import * as _5 from "./authz/v1beta1/authz"; +import * as _6 from "./authz/v1beta1/event"; +import * as _7 from "./authz/v1beta1/genesis"; +import * as _8 from "./authz/v1beta1/query"; +import * as _9 from "./authz/v1beta1/tx"; +import * as _10 from "./bank/v1beta1/authz"; +import * as _11 from "./bank/v1beta1/bank"; +import * as _12 from "./bank/v1beta1/genesis"; +import * as _13 from "./bank/v1beta1/query"; +import * as _14 from "./bank/v1beta1/tx"; +import * as _15 from "./base/abci/v1beta1/abci"; +import * as _16 from "./base/query/v1beta1/pagination"; +import * as _17 from "./base/reflection/v2alpha1/reflection"; +import * as _18 from "./base/v1beta1/coin"; +import * as _19 from "./crypto/ed25519/keys"; +import * as _20 from "./crypto/hd/v1/hd"; +import * as _21 from "./crypto/keyring/v1/record"; +import * as _22 from "./crypto/multisig/keys"; +import * as _23 from "./crypto/secp256k1/keys"; +import * as _24 from "./crypto/secp256r1/keys"; +import * as _25 from "./distribution/v1beta1/distribution"; +import * as _26 from "./distribution/v1beta1/genesis"; +import * as _27 from "./distribution/v1beta1/query"; +import * as _28 from "./distribution/v1beta1/tx"; +import * as _29 from "./gov/v1beta1/genesis"; +import * as _30 from "./gov/v1beta1/gov"; +import * as _31 from "./gov/v1beta1/query"; +import * as _32 from "./gov/v1beta1/tx"; +import * as _33 from "./staking/v1beta1/authz"; +import * as _34 from "./staking/v1beta1/genesis"; +import * as _35 from "./staking/v1beta1/query"; +import * as _36 from "./staking/v1beta1/staking"; +import * as _37 from "./staking/v1beta1/tx"; +import * as _38 from "./tx/signing/v1beta1/signing"; +import * as _39 from "./tx/v1beta1/service"; +import * as _40 from "./tx/v1beta1/tx"; +import * as _41 from "./upgrade/v1beta1/query"; +import * as _42 from "./upgrade/v1beta1/tx"; +import * as _43 from "./upgrade/v1beta1/upgrade"; +import * as _126 from "./authz/v1beta1/tx.amino"; +import * as _127 from "./bank/v1beta1/tx.amino"; +import * as _128 from "./distribution/v1beta1/tx.amino"; +import * as _129 from "./gov/v1beta1/tx.amino"; +import * as _130 from "./staking/v1beta1/tx.amino"; +import * as _131 from "./upgrade/v1beta1/tx.amino"; +import * as _132 from "./authz/v1beta1/tx.registry"; +import * as _133 from "./bank/v1beta1/tx.registry"; +import * as _134 from "./distribution/v1beta1/tx.registry"; +import * as _135 from "./gov/v1beta1/tx.registry"; +import * as _136 from "./staking/v1beta1/tx.registry"; +import * as _137 from "./upgrade/v1beta1/tx.registry"; +import * as _138 from "./auth/v1beta1/query.lcd"; +import * as _139 from "./authz/v1beta1/query.lcd"; +import * as _140 from "./bank/v1beta1/query.lcd"; +import * as _141 from "./distribution/v1beta1/query.lcd"; +import * as _142 from "./gov/v1beta1/query.lcd"; +import * as _143 from "./staking/v1beta1/query.lcd"; +import * as _144 from "./tx/v1beta1/service.lcd"; +import * as _145 from "./upgrade/v1beta1/query.lcd"; +import * as _146 from "./auth/v1beta1/query.rpc.Query"; +import * as _147 from "./authz/v1beta1/query.rpc.Query"; +import * as _148 from "./bank/v1beta1/query.rpc.Query"; +import * as _149 from "./distribution/v1beta1/query.rpc.Query"; +import * as _150 from "./gov/v1beta1/query.rpc.Query"; +import * as _151 from "./staking/v1beta1/query.rpc.Query"; +import * as _152 from "./tx/v1beta1/service.rpc.Service"; +import * as _153 from "./upgrade/v1beta1/query.rpc.Query"; +import * as _154 from "./authz/v1beta1/tx.rpc.msg"; +import * as _155 from "./bank/v1beta1/tx.rpc.msg"; +import * as _156 from "./distribution/v1beta1/tx.rpc.msg"; +import * as _157 from "./gov/v1beta1/tx.rpc.msg"; +import * as _158 from "./staking/v1beta1/tx.rpc.msg"; +import * as _159 from "./upgrade/v1beta1/tx.rpc.msg"; +import * as _204 from "./lcd"; +import * as _205 from "./rpc.query"; +import * as _206 from "./rpc.tx"; export namespace cosmos { - export namespace app { - export const v1alpha1 = { + export namespace auth { + export const v1beta1 = { ..._2, ..._3, - ..._4 + ..._4, + ..._138, + ..._146 }; } - export namespace auth { + export namespace authz { export const v1beta1 = { ..._5, ..._6, ..._7, - ..._208 - }; - } - export namespace authz { - export const v1beta1 = { ..._8, ..._9, - ..._10, - ..._11, - ..._12, - ..._180, - ..._194, - ..._209 + ..._126, + ..._132, + ..._139, + ..._147, + ..._154 }; } export namespace bank { export const v1beta1 = { + ..._10, + ..._11, + ..._12, ..._13, ..._14, - ..._15, - ..._16, - ..._17, - ..._181, - ..._195, - ..._210 + ..._127, + ..._133, + ..._140, + ..._148, + ..._155 }; } export namespace base { export namespace abci { export const v1beta1 = { - ..._18 - }; - } - export namespace kv { - export const v1beta1 = { - ..._19 + ..._15 }; } export namespace query { export const v1beta1 = { - ..._20 + ..._16 }; } export namespace reflection { - export const v1beta1 = { - ..._21 - }; export const v2alpha1 = { - ..._22 - }; - } - export namespace snapshots { - export const v1beta1 = { - ..._23 - }; - } - export namespace store { - export const v1beta1 = { - ..._24, - ..._25 - }; - } - export namespace tendermint { - export const v1beta1 = { - ..._26, - ..._211 + ..._17 }; } export const v1beta1 = { - ..._27 - }; - } - export namespace capability { - export const v1beta1 = { - ..._28, - ..._29 - }; - } - export namespace crisis { - export const v1beta1 = { - ..._30, - ..._31, - ..._182, - ..._196 + ..._18 }; } export namespace crypto { export const ed25519 = { - ..._32 + ..._19 }; export namespace hd { export const v1 = { - ..._33 + ..._20 }; } export namespace keyring { export const v1 = { - ..._34 + ..._21 }; } export const multisig = { - ..._35 + ..._22 }; export const secp256k1 = { - ..._36 + ..._23 }; export const secp256r1 = { - ..._37 + ..._24 }; } export namespace distribution { export const v1beta1 = { - ..._38, - ..._39, - ..._40, - ..._41, - ..._183, - ..._197, - ..._212 - }; - } - export namespace evidence { - export const v1beta1 = { - ..._42, - ..._43, - ..._44, - ..._45, - ..._184, - ..._198, - ..._213 - }; - } - export namespace feegrant { - export const v1beta1 = { - ..._46, - ..._47, - ..._48, - ..._49, - ..._185, - ..._199, - ..._214 - }; - } - export namespace genutil { - export const v1beta1 = { - ..._50 + ..._25, + ..._26, + ..._27, + ..._28, + ..._128, + ..._134, + ..._141, + ..._149, + ..._156 }; } export namespace gov { - export const v1 = { - ..._51, - ..._52, - ..._53, - ..._54, - ..._186, - ..._200, - ..._215 - }; export const v1beta1 = { - ..._55, - ..._56, - ..._57, - ..._58, - ..._187, - ..._201, - ..._216 - }; - } - export namespace group { - export const v1 = { - ..._59, - ..._60, - ..._61, - ..._62, - ..._63, - ..._188, - ..._202, - ..._217 - }; - } - export namespace mint { - export const v1beta1 = { - ..._64, - ..._65, - ..._66, - ..._218 - }; - } - export namespace msg { - export const v1 = { - ..._67 - }; - } - export namespace nft { - export const v1beta1 = { - ..._68, - ..._69, - ..._70, - ..._71, - ..._72, - ..._189, - ..._203, - ..._219 - }; - } - export namespace orm { - export const v1 = { - ..._73 - }; - export const v1alpha1 = { - ..._74 - }; - } - export namespace params { - export const v1beta1 = { - ..._75, - ..._76, - ..._220 - }; - } - export namespace slashing { - export const v1beta1 = { - ..._77, - ..._78, - ..._79, - ..._80, - ..._190, - ..._204, - ..._221 + ..._29, + ..._30, + ..._31, + ..._32, + ..._129, + ..._135, + ..._142, + ..._150, + ..._157 }; } export namespace staking { export const v1beta1 = { - ..._81, - ..._82, - ..._83, - ..._84, - ..._85, - ..._191, - ..._205, - ..._222 + ..._33, + ..._34, + ..._35, + ..._36, + ..._37, + ..._130, + ..._136, + ..._143, + ..._151, + ..._158 }; } export namespace tx { export namespace signing { export const v1beta1 = { - ..._86 + ..._38 }; } export const v1beta1 = { - ..._87, - ..._88, - ..._223 + ..._39, + ..._40, + ..._144, + ..._152 }; } export namespace upgrade { export const v1beta1 = { - ..._89, - ..._90, - ..._91, - ..._192, - ..._206, - ..._224 - }; - } - export namespace vesting { - export const v1beta1 = { - ..._92, - ..._93, - ..._193, - ..._207 + ..._41, + ..._42, + ..._43, + ..._131, + ..._137, + ..._145, + ..._153, + ..._159 }; } export const ClientFactory = { - ..._251 + ..._204, + ..._205, + ..._206 }; } \ No newline at end of file diff --git a/packages/proto/src/codegen/cosmos/capability/v1beta1/capability.ts b/packages/proto/src/codegen/cosmos/capability/v1beta1/capability.ts deleted file mode 100644 index 503e7c1c..00000000 --- a/packages/proto/src/codegen/cosmos/capability/v1beta1/capability.ts +++ /dev/null @@ -1,159 +0,0 @@ -import { Long, DeepPartial } from "../../../helpers"; -import * as _m0 from "protobufjs/minimal"; -/** - * Capability defines an implementation of an object capability. The index - * provided to a Capability must be globally unique. - */ -export interface Capability { - index: Long; -} -/** - * Capability defines an implementation of an object capability. The index - * provided to a Capability must be globally unique. - */ -export interface CapabilitySDKType { - index: Long; -} -/** - * Owner defines a single capability owner. An owner is defined by the name of - * capability and the module name. - */ -export interface Owner { - module: string; - name: string; -} -/** - * Owner defines a single capability owner. An owner is defined by the name of - * capability and the module name. - */ -export interface OwnerSDKType { - module: string; - name: string; -} -/** - * CapabilityOwners defines a set of owners of a single Capability. The set of - * owners must be unique. - */ -export interface CapabilityOwners { - owners: Owner[]; -} -/** - * CapabilityOwners defines a set of owners of a single Capability. The set of - * owners must be unique. - */ -export interface CapabilityOwnersSDKType { - owners: OwnerSDKType[]; -} -function createBaseCapability(): Capability { - return { - index: Long.UZERO - }; -} -export const Capability = { - encode(message: Capability, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (!message.index.isZero()) { - writer.uint32(8).uint64(message.index); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): Capability { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseCapability(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.index = (reader.uint64() as Long); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): Capability { - const message = createBaseCapability(); - message.index = object.index !== undefined && object.index !== null ? Long.fromValue(object.index) : Long.UZERO; - return message; - } -}; -function createBaseOwner(): Owner { - return { - module: "", - name: "" - }; -} -export const Owner = { - encode(message: Owner, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.module !== "") { - writer.uint32(10).string(message.module); - } - if (message.name !== "") { - writer.uint32(18).string(message.name); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): Owner { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseOwner(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.module = reader.string(); - break; - case 2: - message.name = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): Owner { - const message = createBaseOwner(); - message.module = object.module ?? ""; - message.name = object.name ?? ""; - return message; - } -}; -function createBaseCapabilityOwners(): CapabilityOwners { - return { - owners: [] - }; -} -export const CapabilityOwners = { - encode(message: CapabilityOwners, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - for (const v of message.owners) { - Owner.encode(v!, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): CapabilityOwners { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseCapabilityOwners(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.owners.push(Owner.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): CapabilityOwners { - const message = createBaseCapabilityOwners(); - message.owners = object.owners?.map(e => Owner.fromPartial(e)) || []; - return message; - } -}; \ No newline at end of file diff --git a/packages/proto/src/codegen/cosmos/capability/v1beta1/genesis.ts b/packages/proto/src/codegen/cosmos/capability/v1beta1/genesis.ts deleted file mode 100644 index 5fb49f9d..00000000 --- a/packages/proto/src/codegen/cosmos/capability/v1beta1/genesis.ts +++ /dev/null @@ -1,116 +0,0 @@ -import { CapabilityOwners, CapabilityOwnersSDKType } from "./capability"; -import { Long, DeepPartial } from "../../../helpers"; -import * as _m0 from "protobufjs/minimal"; -/** GenesisOwners defines the capability owners with their corresponding index. */ -export interface GenesisOwners { - /** index is the index of the capability owner. */ - index: Long; - /** index_owners are the owners at the given index. */ - indexOwners: CapabilityOwners; -} -/** GenesisOwners defines the capability owners with their corresponding index. */ -export interface GenesisOwnersSDKType { - index: Long; - index_owners: CapabilityOwnersSDKType; -} -/** GenesisState defines the capability module's genesis state. */ -export interface GenesisState { - /** index is the capability global index. */ - index: Long; - /** - * owners represents a map from index to owners of the capability index - * index key is string to allow amino marshalling. - */ - owners: GenesisOwners[]; -} -/** GenesisState defines the capability module's genesis state. */ -export interface GenesisStateSDKType { - index: Long; - owners: GenesisOwnersSDKType[]; -} -function createBaseGenesisOwners(): GenesisOwners { - return { - index: Long.UZERO, - indexOwners: CapabilityOwners.fromPartial({}) - }; -} -export const GenesisOwners = { - encode(message: GenesisOwners, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (!message.index.isZero()) { - writer.uint32(8).uint64(message.index); - } - if (message.indexOwners !== undefined) { - CapabilityOwners.encode(message.indexOwners, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): GenesisOwners { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGenesisOwners(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.index = (reader.uint64() as Long); - break; - case 2: - message.indexOwners = CapabilityOwners.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): GenesisOwners { - const message = createBaseGenesisOwners(); - message.index = object.index !== undefined && object.index !== null ? Long.fromValue(object.index) : Long.UZERO; - message.indexOwners = object.indexOwners !== undefined && object.indexOwners !== null ? CapabilityOwners.fromPartial(object.indexOwners) : undefined; - return message; - } -}; -function createBaseGenesisState(): GenesisState { - return { - index: Long.UZERO, - owners: [] - }; -} -export const GenesisState = { - encode(message: GenesisState, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (!message.index.isZero()) { - writer.uint32(8).uint64(message.index); - } - for (const v of message.owners) { - GenesisOwners.encode(v!, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): GenesisState { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGenesisState(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.index = (reader.uint64() as Long); - break; - case 2: - message.owners.push(GenesisOwners.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): GenesisState { - const message = createBaseGenesisState(); - message.index = object.index !== undefined && object.index !== null ? Long.fromValue(object.index) : Long.UZERO; - message.owners = object.owners?.map(e => GenesisOwners.fromPartial(e)) || []; - return message; - } -}; \ No newline at end of file diff --git a/packages/proto/src/codegen/cosmos/client.ts b/packages/proto/src/codegen/cosmos/client.ts index 79671b98..d4c33abf 100644 --- a/packages/proto/src/codegen/cosmos/client.ts +++ b/packages/proto/src/codegen/cosmos/client.ts @@ -3,49 +3,25 @@ import { AminoTypes, SigningStargateClient } from "@cosmjs/stargate"; import { HttpEndpoint } from "@cosmjs/tendermint-rpc"; import * as cosmosAuthzV1beta1TxRegistry from "./authz/v1beta1/tx.registry"; import * as cosmosBankV1beta1TxRegistry from "./bank/v1beta1/tx.registry"; -import * as cosmosCrisisV1beta1TxRegistry from "./crisis/v1beta1/tx.registry"; import * as cosmosDistributionV1beta1TxRegistry from "./distribution/v1beta1/tx.registry"; -import * as cosmosEvidenceV1beta1TxRegistry from "./evidence/v1beta1/tx.registry"; -import * as cosmosFeegrantV1beta1TxRegistry from "./feegrant/v1beta1/tx.registry"; -import * as cosmosGovV1TxRegistry from "./gov/v1/tx.registry"; import * as cosmosGovV1beta1TxRegistry from "./gov/v1beta1/tx.registry"; -import * as cosmosGroupV1TxRegistry from "./group/v1/tx.registry"; -import * as cosmosNftV1beta1TxRegistry from "./nft/v1beta1/tx.registry"; -import * as cosmosSlashingV1beta1TxRegistry from "./slashing/v1beta1/tx.registry"; import * as cosmosStakingV1beta1TxRegistry from "./staking/v1beta1/tx.registry"; import * as cosmosUpgradeV1beta1TxRegistry from "./upgrade/v1beta1/tx.registry"; -import * as cosmosVestingV1beta1TxRegistry from "./vesting/v1beta1/tx.registry"; import * as cosmosAuthzV1beta1TxAmino from "./authz/v1beta1/tx.amino"; import * as cosmosBankV1beta1TxAmino from "./bank/v1beta1/tx.amino"; -import * as cosmosCrisisV1beta1TxAmino from "./crisis/v1beta1/tx.amino"; import * as cosmosDistributionV1beta1TxAmino from "./distribution/v1beta1/tx.amino"; -import * as cosmosEvidenceV1beta1TxAmino from "./evidence/v1beta1/tx.amino"; -import * as cosmosFeegrantV1beta1TxAmino from "./feegrant/v1beta1/tx.amino"; -import * as cosmosGovV1TxAmino from "./gov/v1/tx.amino"; import * as cosmosGovV1beta1TxAmino from "./gov/v1beta1/tx.amino"; -import * as cosmosGroupV1TxAmino from "./group/v1/tx.amino"; -import * as cosmosNftV1beta1TxAmino from "./nft/v1beta1/tx.amino"; -import * as cosmosSlashingV1beta1TxAmino from "./slashing/v1beta1/tx.amino"; import * as cosmosStakingV1beta1TxAmino from "./staking/v1beta1/tx.amino"; import * as cosmosUpgradeV1beta1TxAmino from "./upgrade/v1beta1/tx.amino"; -import * as cosmosVestingV1beta1TxAmino from "./vesting/v1beta1/tx.amino"; export const cosmosAminoConverters = { ...cosmosAuthzV1beta1TxAmino.AminoConverter, ...cosmosBankV1beta1TxAmino.AminoConverter, - ...cosmosCrisisV1beta1TxAmino.AminoConverter, ...cosmosDistributionV1beta1TxAmino.AminoConverter, - ...cosmosEvidenceV1beta1TxAmino.AminoConverter, - ...cosmosFeegrantV1beta1TxAmino.AminoConverter, - ...cosmosGovV1TxAmino.AminoConverter, ...cosmosGovV1beta1TxAmino.AminoConverter, - ...cosmosGroupV1TxAmino.AminoConverter, - ...cosmosNftV1beta1TxAmino.AminoConverter, - ...cosmosSlashingV1beta1TxAmino.AminoConverter, ...cosmosStakingV1beta1TxAmino.AminoConverter, - ...cosmosUpgradeV1beta1TxAmino.AminoConverter, - ...cosmosVestingV1beta1TxAmino.AminoConverter + ...cosmosUpgradeV1beta1TxAmino.AminoConverter }; -export const cosmosProtoRegistry: ReadonlyArray<[string, GeneratedType]> = [...cosmosAuthzV1beta1TxRegistry.registry, ...cosmosBankV1beta1TxRegistry.registry, ...cosmosCrisisV1beta1TxRegistry.registry, ...cosmosDistributionV1beta1TxRegistry.registry, ...cosmosEvidenceV1beta1TxRegistry.registry, ...cosmosFeegrantV1beta1TxRegistry.registry, ...cosmosGovV1TxRegistry.registry, ...cosmosGovV1beta1TxRegistry.registry, ...cosmosGroupV1TxRegistry.registry, ...cosmosNftV1beta1TxRegistry.registry, ...cosmosSlashingV1beta1TxRegistry.registry, ...cosmosStakingV1beta1TxRegistry.registry, ...cosmosUpgradeV1beta1TxRegistry.registry, ...cosmosVestingV1beta1TxRegistry.registry]; +export const cosmosProtoRegistry: ReadonlyArray<[string, GeneratedType]> = [...cosmosAuthzV1beta1TxRegistry.registry, ...cosmosBankV1beta1TxRegistry.registry, ...cosmosDistributionV1beta1TxRegistry.registry, ...cosmosGovV1beta1TxRegistry.registry, ...cosmosStakingV1beta1TxRegistry.registry, ...cosmosUpgradeV1beta1TxRegistry.registry]; export const getSigningCosmosClientOptions = (): { registry: Registry; aminoTypes: AminoTypes; diff --git a/packages/proto/src/codegen/cosmos/crisis/v1beta1/genesis.ts b/packages/proto/src/codegen/cosmos/crisis/v1beta1/genesis.ts deleted file mode 100644 index 325bb05b..00000000 --- a/packages/proto/src/codegen/cosmos/crisis/v1beta1/genesis.ts +++ /dev/null @@ -1,50 +0,0 @@ -import { Coin, CoinSDKType } from "../../base/v1beta1/coin"; -import * as _m0 from "protobufjs/minimal"; -import { DeepPartial } from "../../../helpers"; -/** GenesisState defines the crisis module's genesis state. */ -export interface GenesisState { - /** - * constant_fee is the fee used to verify the invariant in the crisis - * module. - */ - constantFee: Coin; -} -/** GenesisState defines the crisis module's genesis state. */ -export interface GenesisStateSDKType { - constant_fee: CoinSDKType; -} -function createBaseGenesisState(): GenesisState { - return { - constantFee: undefined - }; -} -export const GenesisState = { - encode(message: GenesisState, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.constantFee !== undefined) { - Coin.encode(message.constantFee, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): GenesisState { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGenesisState(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 3: - message.constantFee = Coin.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): GenesisState { - const message = createBaseGenesisState(); - message.constantFee = object.constantFee !== undefined && object.constantFee !== null ? Coin.fromPartial(object.constantFee) : undefined; - return message; - } -}; \ No newline at end of file diff --git a/packages/proto/src/codegen/cosmos/crisis/v1beta1/tx.amino.ts b/packages/proto/src/codegen/cosmos/crisis/v1beta1/tx.amino.ts deleted file mode 100644 index 24c85c91..00000000 --- a/packages/proto/src/codegen/cosmos/crisis/v1beta1/tx.amino.ts +++ /dev/null @@ -1,37 +0,0 @@ -import { AminoMsg } from "@cosmjs/amino"; -import { MsgVerifyInvariant } from "./tx"; -export interface MsgVerifyInvariantAminoType extends AminoMsg { - type: "cosmos-sdk/MsgVerifyInvariant"; - value: { - sender: string; - invariant_module_name: string; - invariant_route: string; - }; -} -export const AminoConverter = { - "/cosmos.crisis.v1beta1.MsgVerifyInvariant": { - aminoType: "cosmos-sdk/MsgVerifyInvariant", - toAmino: ({ - sender, - invariantModuleName, - invariantRoute - }: MsgVerifyInvariant): MsgVerifyInvariantAminoType["value"] => { - return { - sender, - invariant_module_name: invariantModuleName, - invariant_route: invariantRoute - }; - }, - fromAmino: ({ - sender, - invariant_module_name, - invariant_route - }: MsgVerifyInvariantAminoType["value"]): MsgVerifyInvariant => { - return { - sender, - invariantModuleName: invariant_module_name, - invariantRoute: invariant_route - }; - } - } -}; \ No newline at end of file diff --git a/packages/proto/src/codegen/cosmos/crisis/v1beta1/tx.registry.ts b/packages/proto/src/codegen/cosmos/crisis/v1beta1/tx.registry.ts deleted file mode 100644 index 8a14b484..00000000 --- a/packages/proto/src/codegen/cosmos/crisis/v1beta1/tx.registry.ts +++ /dev/null @@ -1,34 +0,0 @@ -import { GeneratedType, Registry } from "@cosmjs/proto-signing"; -import { MsgVerifyInvariant } from "./tx"; -export const registry: ReadonlyArray<[string, GeneratedType]> = [["/cosmos.crisis.v1beta1.MsgVerifyInvariant", MsgVerifyInvariant]]; -export const load = (protoRegistry: Registry) => { - registry.forEach(([typeUrl, mod]) => { - protoRegistry.register(typeUrl, mod); - }); -}; -export const MessageComposer = { - encoded: { - verifyInvariant(value: MsgVerifyInvariant) { - return { - typeUrl: "/cosmos.crisis.v1beta1.MsgVerifyInvariant", - value: MsgVerifyInvariant.encode(value).finish() - }; - } - }, - withTypeUrl: { - verifyInvariant(value: MsgVerifyInvariant) { - return { - typeUrl: "/cosmos.crisis.v1beta1.MsgVerifyInvariant", - value - }; - } - }, - fromPartial: { - verifyInvariant(value: MsgVerifyInvariant) { - return { - typeUrl: "/cosmos.crisis.v1beta1.MsgVerifyInvariant", - value: MsgVerifyInvariant.fromPartial(value) - }; - } - } -}; \ No newline at end of file diff --git a/packages/proto/src/codegen/cosmos/crisis/v1beta1/tx.ts b/packages/proto/src/codegen/cosmos/crisis/v1beta1/tx.ts deleted file mode 100644 index acf10666..00000000 --- a/packages/proto/src/codegen/cosmos/crisis/v1beta1/tx.ts +++ /dev/null @@ -1,95 +0,0 @@ -import * as _m0 from "protobufjs/minimal"; -import { DeepPartial } from "../../../helpers"; -/** MsgVerifyInvariant represents a message to verify a particular invariance. */ -export interface MsgVerifyInvariant { - sender: string; - invariantModuleName: string; - invariantRoute: string; -} -/** MsgVerifyInvariant represents a message to verify a particular invariance. */ -export interface MsgVerifyInvariantSDKType { - sender: string; - invariant_module_name: string; - invariant_route: string; -} -/** MsgVerifyInvariantResponse defines the Msg/VerifyInvariant response type. */ -export interface MsgVerifyInvariantResponse {} -/** MsgVerifyInvariantResponse defines the Msg/VerifyInvariant response type. */ -export interface MsgVerifyInvariantResponseSDKType {} -function createBaseMsgVerifyInvariant(): MsgVerifyInvariant { - return { - sender: "", - invariantModuleName: "", - invariantRoute: "" - }; -} -export const MsgVerifyInvariant = { - encode(message: MsgVerifyInvariant, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.sender !== "") { - writer.uint32(10).string(message.sender); - } - if (message.invariantModuleName !== "") { - writer.uint32(18).string(message.invariantModuleName); - } - if (message.invariantRoute !== "") { - writer.uint32(26).string(message.invariantRoute); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): MsgVerifyInvariant { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgVerifyInvariant(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.sender = reader.string(); - break; - case 2: - message.invariantModuleName = reader.string(); - break; - case 3: - message.invariantRoute = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): MsgVerifyInvariant { - const message = createBaseMsgVerifyInvariant(); - message.sender = object.sender ?? ""; - message.invariantModuleName = object.invariantModuleName ?? ""; - message.invariantRoute = object.invariantRoute ?? ""; - return message; - } -}; -function createBaseMsgVerifyInvariantResponse(): MsgVerifyInvariantResponse { - return {}; -} -export const MsgVerifyInvariantResponse = { - encode(_: MsgVerifyInvariantResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): MsgVerifyInvariantResponse { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgVerifyInvariantResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_: DeepPartial): MsgVerifyInvariantResponse { - const message = createBaseMsgVerifyInvariantResponse(); - return message; - } -}; \ No newline at end of file diff --git a/packages/proto/src/codegen/cosmos/distribution/v1beta1/query.rpc.Query.ts b/packages/proto/src/codegen/cosmos/distribution/v1beta1/query.rpc.Query.ts new file mode 100644 index 00000000..2fab3cec --- /dev/null +++ b/packages/proto/src/codegen/cosmos/distribution/v1beta1/query.rpc.Query.ts @@ -0,0 +1,121 @@ +import { Rpc } from "../../../helpers"; +import * as _m0 from "protobufjs/minimal"; +import { QueryClient, createProtobufRpcClient } from "@cosmjs/stargate"; +import { QueryParamsRequest, QueryParamsResponse, QueryValidatorOutstandingRewardsRequest, QueryValidatorOutstandingRewardsResponse, QueryValidatorCommissionRequest, QueryValidatorCommissionResponse, QueryValidatorSlashesRequest, QueryValidatorSlashesResponse, QueryDelegationRewardsRequest, QueryDelegationRewardsResponse, QueryDelegationTotalRewardsRequest, QueryDelegationTotalRewardsResponse, QueryDelegatorValidatorsRequest, QueryDelegatorValidatorsResponse, QueryDelegatorWithdrawAddressRequest, QueryDelegatorWithdrawAddressResponse, QueryCommunityPoolRequest, QueryCommunityPoolResponse } from "./query"; +/** Query defines the gRPC querier service for distribution module. */ +export interface Query { + /** Params queries params of the distribution module. */ + params(request?: QueryParamsRequest): Promise; + /** ValidatorOutstandingRewards queries rewards of a validator address. */ + validatorOutstandingRewards(request: QueryValidatorOutstandingRewardsRequest): Promise; + /** ValidatorCommission queries accumulated commission for a validator. */ + validatorCommission(request: QueryValidatorCommissionRequest): Promise; + /** ValidatorSlashes queries slash events of a validator. */ + validatorSlashes(request: QueryValidatorSlashesRequest): Promise; + /** DelegationRewards queries the total rewards accrued by a delegation. */ + delegationRewards(request: QueryDelegationRewardsRequest): Promise; + /** + * DelegationTotalRewards queries the total rewards accrued by a each + * validator. + */ + delegationTotalRewards(request: QueryDelegationTotalRewardsRequest): Promise; + /** DelegatorValidators queries the validators of a delegator. */ + delegatorValidators(request: QueryDelegatorValidatorsRequest): Promise; + /** DelegatorWithdrawAddress queries withdraw address of a delegator. */ + delegatorWithdrawAddress(request: QueryDelegatorWithdrawAddressRequest): Promise; + /** CommunityPool queries the community pool coins. */ + communityPool(request?: QueryCommunityPoolRequest): Promise; +} +export class QueryClientImpl implements Query { + private readonly rpc: Rpc; + constructor(rpc: Rpc) { + this.rpc = rpc; + this.params = this.params.bind(this); + this.validatorOutstandingRewards = this.validatorOutstandingRewards.bind(this); + this.validatorCommission = this.validatorCommission.bind(this); + this.validatorSlashes = this.validatorSlashes.bind(this); + this.delegationRewards = this.delegationRewards.bind(this); + this.delegationTotalRewards = this.delegationTotalRewards.bind(this); + this.delegatorValidators = this.delegatorValidators.bind(this); + this.delegatorWithdrawAddress = this.delegatorWithdrawAddress.bind(this); + this.communityPool = this.communityPool.bind(this); + } + params(request: QueryParamsRequest = {}): Promise { + const data = QueryParamsRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.distribution.v1beta1.Query", "Params", data); + return promise.then(data => QueryParamsResponse.decode(new _m0.Reader(data))); + } + validatorOutstandingRewards(request: QueryValidatorOutstandingRewardsRequest): Promise { + const data = QueryValidatorOutstandingRewardsRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.distribution.v1beta1.Query", "ValidatorOutstandingRewards", data); + return promise.then(data => QueryValidatorOutstandingRewardsResponse.decode(new _m0.Reader(data))); + } + validatorCommission(request: QueryValidatorCommissionRequest): Promise { + const data = QueryValidatorCommissionRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.distribution.v1beta1.Query", "ValidatorCommission", data); + return promise.then(data => QueryValidatorCommissionResponse.decode(new _m0.Reader(data))); + } + validatorSlashes(request: QueryValidatorSlashesRequest): Promise { + const data = QueryValidatorSlashesRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.distribution.v1beta1.Query", "ValidatorSlashes", data); + return promise.then(data => QueryValidatorSlashesResponse.decode(new _m0.Reader(data))); + } + delegationRewards(request: QueryDelegationRewardsRequest): Promise { + const data = QueryDelegationRewardsRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.distribution.v1beta1.Query", "DelegationRewards", data); + return promise.then(data => QueryDelegationRewardsResponse.decode(new _m0.Reader(data))); + } + delegationTotalRewards(request: QueryDelegationTotalRewardsRequest): Promise { + const data = QueryDelegationTotalRewardsRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.distribution.v1beta1.Query", "DelegationTotalRewards", data); + return promise.then(data => QueryDelegationTotalRewardsResponse.decode(new _m0.Reader(data))); + } + delegatorValidators(request: QueryDelegatorValidatorsRequest): Promise { + const data = QueryDelegatorValidatorsRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.distribution.v1beta1.Query", "DelegatorValidators", data); + return promise.then(data => QueryDelegatorValidatorsResponse.decode(new _m0.Reader(data))); + } + delegatorWithdrawAddress(request: QueryDelegatorWithdrawAddressRequest): Promise { + const data = QueryDelegatorWithdrawAddressRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.distribution.v1beta1.Query", "DelegatorWithdrawAddress", data); + return promise.then(data => QueryDelegatorWithdrawAddressResponse.decode(new _m0.Reader(data))); + } + communityPool(request: QueryCommunityPoolRequest = {}): Promise { + const data = QueryCommunityPoolRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.distribution.v1beta1.Query", "CommunityPool", data); + return promise.then(data => QueryCommunityPoolResponse.decode(new _m0.Reader(data))); + } +} +export const createRpcQueryExtension = (base: QueryClient) => { + const rpc = createProtobufRpcClient(base); + const queryService = new QueryClientImpl(rpc); + return { + params(request?: QueryParamsRequest): Promise { + return queryService.params(request); + }, + validatorOutstandingRewards(request: QueryValidatorOutstandingRewardsRequest): Promise { + return queryService.validatorOutstandingRewards(request); + }, + validatorCommission(request: QueryValidatorCommissionRequest): Promise { + return queryService.validatorCommission(request); + }, + validatorSlashes(request: QueryValidatorSlashesRequest): Promise { + return queryService.validatorSlashes(request); + }, + delegationRewards(request: QueryDelegationRewardsRequest): Promise { + return queryService.delegationRewards(request); + }, + delegationTotalRewards(request: QueryDelegationTotalRewardsRequest): Promise { + return queryService.delegationTotalRewards(request); + }, + delegatorValidators(request: QueryDelegatorValidatorsRequest): Promise { + return queryService.delegatorValidators(request); + }, + delegatorWithdrawAddress(request: QueryDelegatorWithdrawAddressRequest): Promise { + return queryService.delegatorWithdrawAddress(request); + }, + communityPool(request?: QueryCommunityPoolRequest): Promise { + return queryService.communityPool(request); + } + }; +}; \ No newline at end of file diff --git a/packages/proto/src/codegen/cosmos/distribution/v1beta1/tx.amino.ts b/packages/proto/src/codegen/cosmos/distribution/v1beta1/tx.amino.ts index 263ab4b3..39db40be 100644 --- a/packages/proto/src/codegen/cosmos/distribution/v1beta1/tx.amino.ts +++ b/packages/proto/src/codegen/cosmos/distribution/v1beta1/tx.amino.ts @@ -1,3 +1,4 @@ +//@ts-nocheck import { AminoMsg } from "@cosmjs/amino"; import { MsgSetWithdrawAddress, MsgWithdrawDelegatorReward, MsgWithdrawValidatorCommission, MsgFundCommunityPool } from "./tx"; export interface MsgSetWithdrawAddressAminoType extends AminoMsg { diff --git a/packages/proto/src/codegen/cosmos/distribution/v1beta1/tx.registry.ts b/packages/proto/src/codegen/cosmos/distribution/v1beta1/tx.registry.ts index 98b599d6..52151ed5 100644 --- a/packages/proto/src/codegen/cosmos/distribution/v1beta1/tx.registry.ts +++ b/packages/proto/src/codegen/cosmos/distribution/v1beta1/tx.registry.ts @@ -1,3 +1,4 @@ +//@ts-nocheck import { GeneratedType, Registry } from "@cosmjs/proto-signing"; import { MsgSetWithdrawAddress, MsgWithdrawDelegatorReward, MsgWithdrawValidatorCommission, MsgFundCommunityPool } from "./tx"; export const registry: ReadonlyArray<[string, GeneratedType]> = [["/cosmos.distribution.v1beta1.MsgSetWithdrawAddress", MsgSetWithdrawAddress], ["/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward", MsgWithdrawDelegatorReward], ["/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission", MsgWithdrawValidatorCommission], ["/cosmos.distribution.v1beta1.MsgFundCommunityPool", MsgFundCommunityPool]]; diff --git a/packages/proto/src/codegen/cosmos/distribution/v1beta1/tx.rpc.msg.ts b/packages/proto/src/codegen/cosmos/distribution/v1beta1/tx.rpc.msg.ts new file mode 100644 index 00000000..95dd6f3b --- /dev/null +++ b/packages/proto/src/codegen/cosmos/distribution/v1beta1/tx.rpc.msg.ts @@ -0,0 +1,56 @@ +import { Rpc } from "../../../helpers"; +import * as _m0 from "protobufjs/minimal"; +import { MsgSetWithdrawAddress, MsgSetWithdrawAddressResponse, MsgWithdrawDelegatorReward, MsgWithdrawDelegatorRewardResponse, MsgWithdrawValidatorCommission, MsgWithdrawValidatorCommissionResponse, MsgFundCommunityPool, MsgFundCommunityPoolResponse } from "./tx"; +/** Msg defines the distribution Msg service. */ +export interface Msg { + /** + * SetWithdrawAddress defines a method to change the withdraw address + * for a delegator (or validator self-delegation). + */ + setWithdrawAddress(request: MsgSetWithdrawAddress): Promise; + /** + * WithdrawDelegatorReward defines a method to withdraw rewards of delegator + * from a single validator. + */ + withdrawDelegatorReward(request: MsgWithdrawDelegatorReward): Promise; + /** + * WithdrawValidatorCommission defines a method to withdraw the + * full commission to the validator address. + */ + withdrawValidatorCommission(request: MsgWithdrawValidatorCommission): Promise; + /** + * FundCommunityPool defines a method to allow an account to directly + * fund the community pool. + */ + fundCommunityPool(request: MsgFundCommunityPool): Promise; +} +export class MsgClientImpl implements Msg { + private readonly rpc: Rpc; + constructor(rpc: Rpc) { + this.rpc = rpc; + this.setWithdrawAddress = this.setWithdrawAddress.bind(this); + this.withdrawDelegatorReward = this.withdrawDelegatorReward.bind(this); + this.withdrawValidatorCommission = this.withdrawValidatorCommission.bind(this); + this.fundCommunityPool = this.fundCommunityPool.bind(this); + } + setWithdrawAddress(request: MsgSetWithdrawAddress): Promise { + const data = MsgSetWithdrawAddress.encode(request).finish(); + const promise = this.rpc.request("cosmos.distribution.v1beta1.Msg", "SetWithdrawAddress", data); + return promise.then(data => MsgSetWithdrawAddressResponse.decode(new _m0.Reader(data))); + } + withdrawDelegatorReward(request: MsgWithdrawDelegatorReward): Promise { + const data = MsgWithdrawDelegatorReward.encode(request).finish(); + const promise = this.rpc.request("cosmos.distribution.v1beta1.Msg", "WithdrawDelegatorReward", data); + return promise.then(data => MsgWithdrawDelegatorRewardResponse.decode(new _m0.Reader(data))); + } + withdrawValidatorCommission(request: MsgWithdrawValidatorCommission): Promise { + const data = MsgWithdrawValidatorCommission.encode(request).finish(); + const promise = this.rpc.request("cosmos.distribution.v1beta1.Msg", "WithdrawValidatorCommission", data); + return promise.then(data => MsgWithdrawValidatorCommissionResponse.decode(new _m0.Reader(data))); + } + fundCommunityPool(request: MsgFundCommunityPool): Promise { + const data = MsgFundCommunityPool.encode(request).finish(); + const promise = this.rpc.request("cosmos.distribution.v1beta1.Msg", "FundCommunityPool", data); + return promise.then(data => MsgFundCommunityPoolResponse.decode(new _m0.Reader(data))); + } +} \ No newline at end of file diff --git a/packages/proto/src/codegen/cosmos/evidence/v1beta1/evidence.ts b/packages/proto/src/codegen/cosmos/evidence/v1beta1/evidence.ts deleted file mode 100644 index dc82341c..00000000 --- a/packages/proto/src/codegen/cosmos/evidence/v1beta1/evidence.ts +++ /dev/null @@ -1,82 +0,0 @@ -import { Timestamp } from "../../../google/protobuf/timestamp"; -import { Long, toTimestamp, fromTimestamp, DeepPartial } from "../../../helpers"; -import * as _m0 from "protobufjs/minimal"; -/** - * Equivocation implements the Evidence interface and defines evidence of double - * signing misbehavior. - */ -export interface Equivocation { - height: Long; - time: Date; - power: Long; - consensusAddress: string; -} -/** - * Equivocation implements the Evidence interface and defines evidence of double - * signing misbehavior. - */ -export interface EquivocationSDKType { - height: Long; - time: Date; - power: Long; - consensus_address: string; -} -function createBaseEquivocation(): Equivocation { - return { - height: Long.ZERO, - time: undefined, - power: Long.ZERO, - consensusAddress: "" - }; -} -export const Equivocation = { - encode(message: Equivocation, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (!message.height.isZero()) { - writer.uint32(8).int64(message.height); - } - if (message.time !== undefined) { - Timestamp.encode(toTimestamp(message.time), writer.uint32(18).fork()).ldelim(); - } - if (!message.power.isZero()) { - writer.uint32(24).int64(message.power); - } - if (message.consensusAddress !== "") { - writer.uint32(34).string(message.consensusAddress); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): Equivocation { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEquivocation(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.height = (reader.int64() as Long); - break; - case 2: - message.time = fromTimestamp(Timestamp.decode(reader, reader.uint32())); - break; - case 3: - message.power = (reader.int64() as Long); - break; - case 4: - message.consensusAddress = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): Equivocation { - const message = createBaseEquivocation(); - message.height = object.height !== undefined && object.height !== null ? Long.fromValue(object.height) : Long.ZERO; - message.time = object.time ?? undefined; - message.power = object.power !== undefined && object.power !== null ? Long.fromValue(object.power) : Long.ZERO; - message.consensusAddress = object.consensusAddress ?? ""; - return message; - } -}; \ No newline at end of file diff --git a/packages/proto/src/codegen/cosmos/evidence/v1beta1/genesis.ts b/packages/proto/src/codegen/cosmos/evidence/v1beta1/genesis.ts deleted file mode 100644 index 65009c68..00000000 --- a/packages/proto/src/codegen/cosmos/evidence/v1beta1/genesis.ts +++ /dev/null @@ -1,47 +0,0 @@ -import { Any, AnySDKType } from "../../../google/protobuf/any"; -import * as _m0 from "protobufjs/minimal"; -import { DeepPartial } from "../../../helpers"; -/** GenesisState defines the evidence module's genesis state. */ -export interface GenesisState { - /** evidence defines all the evidence at genesis. */ - evidence: Any[]; -} -/** GenesisState defines the evidence module's genesis state. */ -export interface GenesisStateSDKType { - evidence: AnySDKType[]; -} -function createBaseGenesisState(): GenesisState { - return { - evidence: [] - }; -} -export const GenesisState = { - encode(message: GenesisState, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - for (const v of message.evidence) { - Any.encode(v!, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): GenesisState { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGenesisState(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.evidence.push(Any.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): GenesisState { - const message = createBaseGenesisState(); - message.evidence = object.evidence?.map(e => Any.fromPartial(e)) || []; - return message; - } -}; \ No newline at end of file diff --git a/packages/proto/src/codegen/cosmos/evidence/v1beta1/query.lcd.ts b/packages/proto/src/codegen/cosmos/evidence/v1beta1/query.lcd.ts deleted file mode 100644 index 0bd37c61..00000000 --- a/packages/proto/src/codegen/cosmos/evidence/v1beta1/query.lcd.ts +++ /dev/null @@ -1,33 +0,0 @@ -import { setPaginationParams } from "../../../helpers"; -import { LCDClient } from "@osmonauts/lcd"; -import { QueryEvidenceRequest, QueryEvidenceResponseSDKType, QueryAllEvidenceRequest, QueryAllEvidenceResponseSDKType } from "./query"; -export class LCDQueryClient { - req: LCDClient; - constructor({ - requestClient - }: { - requestClient: LCDClient; - }) { - this.req = requestClient; - this.evidence = this.evidence.bind(this); - this.allEvidence = this.allEvidence.bind(this); - } - /* Evidence queries evidence based on evidence hash. */ - async evidence(params: QueryEvidenceRequest): Promise { - const endpoint = `cosmos/evidence/v1beta1/evidence/${params.evidenceHash}`; - return await this.req.get(endpoint); - } - /* AllEvidence queries all evidence. */ - async allEvidence(params: QueryAllEvidenceRequest = { - pagination: undefined - }): Promise { - const options: any = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `cosmos/evidence/v1beta1/evidence`; - return await this.req.get(endpoint, options); - } -} \ No newline at end of file diff --git a/packages/proto/src/codegen/cosmos/evidence/v1beta1/query.ts b/packages/proto/src/codegen/cosmos/evidence/v1beta1/query.ts deleted file mode 100644 index e39fd410..00000000 --- a/packages/proto/src/codegen/cosmos/evidence/v1beta1/query.ts +++ /dev/null @@ -1,203 +0,0 @@ -import { PageRequest, PageRequestSDKType, PageResponse, PageResponseSDKType } from "../../base/query/v1beta1/pagination"; -import { Any, AnySDKType } from "../../../google/protobuf/any"; -import * as _m0 from "protobufjs/minimal"; -import { DeepPartial } from "../../../helpers"; -/** QueryEvidenceRequest is the request type for the Query/Evidence RPC method. */ -export interface QueryEvidenceRequest { - /** evidence_hash defines the hash of the requested evidence. */ - evidenceHash: Uint8Array; -} -/** QueryEvidenceRequest is the request type for the Query/Evidence RPC method. */ -export interface QueryEvidenceRequestSDKType { - evidence_hash: Uint8Array; -} -/** QueryEvidenceResponse is the response type for the Query/Evidence RPC method. */ -export interface QueryEvidenceResponse { - /** evidence returns the requested evidence. */ - evidence: Any; -} -/** QueryEvidenceResponse is the response type for the Query/Evidence RPC method. */ -export interface QueryEvidenceResponseSDKType { - evidence: AnySDKType; -} -/** - * QueryEvidenceRequest is the request type for the Query/AllEvidence RPC - * method. - */ -export interface QueryAllEvidenceRequest { - /** pagination defines an optional pagination for the request. */ - pagination: PageRequest; -} -/** - * QueryEvidenceRequest is the request type for the Query/AllEvidence RPC - * method. - */ -export interface QueryAllEvidenceRequestSDKType { - pagination: PageRequestSDKType; -} -/** - * QueryAllEvidenceResponse is the response type for the Query/AllEvidence RPC - * method. - */ -export interface QueryAllEvidenceResponse { - /** evidence returns all evidences. */ - evidence: Any[]; - /** pagination defines the pagination in the response. */ - pagination: PageResponse; -} -/** - * QueryAllEvidenceResponse is the response type for the Query/AllEvidence RPC - * method. - */ -export interface QueryAllEvidenceResponseSDKType { - evidence: AnySDKType[]; - pagination: PageResponseSDKType; -} -function createBaseQueryEvidenceRequest(): QueryEvidenceRequest { - return { - evidenceHash: new Uint8Array() - }; -} -export const QueryEvidenceRequest = { - encode(message: QueryEvidenceRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.evidenceHash.length !== 0) { - writer.uint32(10).bytes(message.evidenceHash); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): QueryEvidenceRequest { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryEvidenceRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.evidenceHash = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): QueryEvidenceRequest { - const message = createBaseQueryEvidenceRequest(); - message.evidenceHash = object.evidenceHash ?? new Uint8Array(); - return message; - } -}; -function createBaseQueryEvidenceResponse(): QueryEvidenceResponse { - return { - evidence: undefined - }; -} -export const QueryEvidenceResponse = { - encode(message: QueryEvidenceResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.evidence !== undefined) { - Any.encode(message.evidence, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): QueryEvidenceResponse { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryEvidenceResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.evidence = Any.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): QueryEvidenceResponse { - const message = createBaseQueryEvidenceResponse(); - message.evidence = object.evidence !== undefined && object.evidence !== null ? Any.fromPartial(object.evidence) : undefined; - return message; - } -}; -function createBaseQueryAllEvidenceRequest(): QueryAllEvidenceRequest { - return { - pagination: PageRequest.fromPartial({}) - }; -} -export const QueryAllEvidenceRequest = { - encode(message: QueryAllEvidenceRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): QueryAllEvidenceRequest { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryAllEvidenceRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): QueryAllEvidenceRequest { - const message = createBaseQueryAllEvidenceRequest(); - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - } -}; -function createBaseQueryAllEvidenceResponse(): QueryAllEvidenceResponse { - return { - evidence: [], - pagination: PageResponse.fromPartial({}) - }; -} -export const QueryAllEvidenceResponse = { - encode(message: QueryAllEvidenceResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - for (const v of message.evidence) { - Any.encode(v!, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): QueryAllEvidenceResponse { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryAllEvidenceResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.evidence.push(Any.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): QueryAllEvidenceResponse { - const message = createBaseQueryAllEvidenceResponse(); - message.evidence = object.evidence?.map(e => Any.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - } -}; \ No newline at end of file diff --git a/packages/proto/src/codegen/cosmos/evidence/v1beta1/tx.amino.ts b/packages/proto/src/codegen/cosmos/evidence/v1beta1/tx.amino.ts deleted file mode 100644 index bc96e7d7..00000000 --- a/packages/proto/src/codegen/cosmos/evidence/v1beta1/tx.amino.ts +++ /dev/null @@ -1,41 +0,0 @@ -import { AminoMsg } from "@cosmjs/amino"; -import { MsgSubmitEvidence } from "./tx"; -export interface MsgSubmitEvidenceAminoType extends AminoMsg { - type: "cosmos-sdk/MsgSubmitEvidence"; - value: { - submitter: string; - evidence: { - type_url: string; - value: Uint8Array; - }; - }; -} -export const AminoConverter = { - "/cosmos.evidence.v1beta1.MsgSubmitEvidence": { - aminoType: "cosmos-sdk/MsgSubmitEvidence", - toAmino: ({ - submitter, - evidence - }: MsgSubmitEvidence): MsgSubmitEvidenceAminoType["value"] => { - return { - submitter, - evidence: { - type_url: evidence.typeUrl, - value: evidence.value - } - }; - }, - fromAmino: ({ - submitter, - evidence - }: MsgSubmitEvidenceAminoType["value"]): MsgSubmitEvidence => { - return { - submitter, - evidence: { - typeUrl: evidence.type_url, - value: evidence.value - } - }; - } - } -}; \ No newline at end of file diff --git a/packages/proto/src/codegen/cosmos/evidence/v1beta1/tx.registry.ts b/packages/proto/src/codegen/cosmos/evidence/v1beta1/tx.registry.ts deleted file mode 100644 index aea65763..00000000 --- a/packages/proto/src/codegen/cosmos/evidence/v1beta1/tx.registry.ts +++ /dev/null @@ -1,34 +0,0 @@ -import { GeneratedType, Registry } from "@cosmjs/proto-signing"; -import { MsgSubmitEvidence } from "./tx"; -export const registry: ReadonlyArray<[string, GeneratedType]> = [["/cosmos.evidence.v1beta1.MsgSubmitEvidence", MsgSubmitEvidence]]; -export const load = (protoRegistry: Registry) => { - registry.forEach(([typeUrl, mod]) => { - protoRegistry.register(typeUrl, mod); - }); -}; -export const MessageComposer = { - encoded: { - submitEvidence(value: MsgSubmitEvidence) { - return { - typeUrl: "/cosmos.evidence.v1beta1.MsgSubmitEvidence", - value: MsgSubmitEvidence.encode(value).finish() - }; - } - }, - withTypeUrl: { - submitEvidence(value: MsgSubmitEvidence) { - return { - typeUrl: "/cosmos.evidence.v1beta1.MsgSubmitEvidence", - value - }; - } - }, - fromPartial: { - submitEvidence(value: MsgSubmitEvidence) { - return { - typeUrl: "/cosmos.evidence.v1beta1.MsgSubmitEvidence", - value: MsgSubmitEvidence.fromPartial(value) - }; - } - } -}; \ No newline at end of file diff --git a/packages/proto/src/codegen/cosmos/evidence/v1beta1/tx.ts b/packages/proto/src/codegen/cosmos/evidence/v1beta1/tx.ts deleted file mode 100644 index 29817560..00000000 --- a/packages/proto/src/codegen/cosmos/evidence/v1beta1/tx.ts +++ /dev/null @@ -1,106 +0,0 @@ -import { Any, AnySDKType } from "../../../google/protobuf/any"; -import * as _m0 from "protobufjs/minimal"; -import { DeepPartial } from "../../../helpers"; -/** - * MsgSubmitEvidence represents a message that supports submitting arbitrary - * Evidence of misbehavior such as equivocation or counterfactual signing. - */ -export interface MsgSubmitEvidence { - submitter: string; - evidence: Any; -} -/** - * MsgSubmitEvidence represents a message that supports submitting arbitrary - * Evidence of misbehavior such as equivocation or counterfactual signing. - */ -export interface MsgSubmitEvidenceSDKType { - submitter: string; - evidence: AnySDKType; -} -/** MsgSubmitEvidenceResponse defines the Msg/SubmitEvidence response type. */ -export interface MsgSubmitEvidenceResponse { - /** hash defines the hash of the evidence. */ - hash: Uint8Array; -} -/** MsgSubmitEvidenceResponse defines the Msg/SubmitEvidence response type. */ -export interface MsgSubmitEvidenceResponseSDKType { - hash: Uint8Array; -} -function createBaseMsgSubmitEvidence(): MsgSubmitEvidence { - return { - submitter: "", - evidence: undefined - }; -} -export const MsgSubmitEvidence = { - encode(message: MsgSubmitEvidence, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.submitter !== "") { - writer.uint32(10).string(message.submitter); - } - if (message.evidence !== undefined) { - Any.encode(message.evidence, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): MsgSubmitEvidence { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgSubmitEvidence(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.submitter = reader.string(); - break; - case 2: - message.evidence = Any.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): MsgSubmitEvidence { - const message = createBaseMsgSubmitEvidence(); - message.submitter = object.submitter ?? ""; - message.evidence = object.evidence !== undefined && object.evidence !== null ? Any.fromPartial(object.evidence) : undefined; - return message; - } -}; -function createBaseMsgSubmitEvidenceResponse(): MsgSubmitEvidenceResponse { - return { - hash: new Uint8Array() - }; -} -export const MsgSubmitEvidenceResponse = { - encode(message: MsgSubmitEvidenceResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.hash.length !== 0) { - writer.uint32(34).bytes(message.hash); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): MsgSubmitEvidenceResponse { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgSubmitEvidenceResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 4: - message.hash = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): MsgSubmitEvidenceResponse { - const message = createBaseMsgSubmitEvidenceResponse(); - message.hash = object.hash ?? new Uint8Array(); - return message; - } -}; \ No newline at end of file diff --git a/packages/proto/src/codegen/cosmos/feegrant/v1beta1/feegrant.ts b/packages/proto/src/codegen/cosmos/feegrant/v1beta1/feegrant.ts deleted file mode 100644 index 812d10fb..00000000 --- a/packages/proto/src/codegen/cosmos/feegrant/v1beta1/feegrant.ts +++ /dev/null @@ -1,296 +0,0 @@ -import { Coin, CoinSDKType } from "../../base/v1beta1/coin"; -import { Timestamp } from "../../../google/protobuf/timestamp"; -import { Duration, DurationSDKType } from "../../../google/protobuf/duration"; -import { Any, AnySDKType } from "../../../google/protobuf/any"; -import * as _m0 from "protobufjs/minimal"; -import { toTimestamp, fromTimestamp, DeepPartial } from "../../../helpers"; -/** - * BasicAllowance implements Allowance with a one-time grant of tokens - * that optionally expires. The grantee can use up to SpendLimit to cover fees. - */ -export interface BasicAllowance { - /** - * spend_limit specifies the maximum amount of tokens that can be spent - * by this allowance and will be updated as tokens are spent. If it is - * empty, there is no spend limit and any amount of coins can be spent. - */ - spendLimit: Coin[]; - /** expiration specifies an optional time when this allowance expires */ - expiration: Date; -} -/** - * BasicAllowance implements Allowance with a one-time grant of tokens - * that optionally expires. The grantee can use up to SpendLimit to cover fees. - */ -export interface BasicAllowanceSDKType { - spend_limit: CoinSDKType[]; - expiration: Date; -} -/** - * PeriodicAllowance extends Allowance to allow for both a maximum cap, - * as well as a limit per time period. - */ -export interface PeriodicAllowance { - /** basic specifies a struct of `BasicAllowance` */ - basic: BasicAllowance; - /** - * period specifies the time duration in which period_spend_limit coins can - * be spent before that allowance is reset - */ - period: Duration; - /** - * period_spend_limit specifies the maximum number of coins that can be spent - * in the period - */ - periodSpendLimit: Coin[]; - /** period_can_spend is the number of coins left to be spent before the period_reset time */ - periodCanSpend: Coin[]; - /** - * period_reset is the time at which this period resets and a new one begins, - * it is calculated from the start time of the first transaction after the - * last period ended - */ - periodReset: Date; -} -/** - * PeriodicAllowance extends Allowance to allow for both a maximum cap, - * as well as a limit per time period. - */ -export interface PeriodicAllowanceSDKType { - basic: BasicAllowanceSDKType; - period: DurationSDKType; - period_spend_limit: CoinSDKType[]; - period_can_spend: CoinSDKType[]; - period_reset: Date; -} -/** AllowedMsgAllowance creates allowance only for specified message types. */ -export interface AllowedMsgAllowance { - /** allowance can be any of basic and periodic fee allowance. */ - allowance: Any; - /** allowed_messages are the messages for which the grantee has the access. */ - allowedMessages: string[]; -} -/** AllowedMsgAllowance creates allowance only for specified message types. */ -export interface AllowedMsgAllowanceSDKType { - allowance: AnySDKType; - allowed_messages: string[]; -} -/** Grant is stored in the KVStore to record a grant with full context */ -export interface Grant { - /** granter is the address of the user granting an allowance of their funds. */ - granter: string; - /** grantee is the address of the user being granted an allowance of another user's funds. */ - grantee: string; - /** allowance can be any of basic, periodic, allowed fee allowance. */ - allowance: Any; -} -/** Grant is stored in the KVStore to record a grant with full context */ -export interface GrantSDKType { - granter: string; - grantee: string; - allowance: AnySDKType; -} -function createBaseBasicAllowance(): BasicAllowance { - return { - spendLimit: [], - expiration: undefined - }; -} -export const BasicAllowance = { - encode(message: BasicAllowance, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - for (const v of message.spendLimit) { - Coin.encode(v!, writer.uint32(10).fork()).ldelim(); - } - if (message.expiration !== undefined) { - Timestamp.encode(toTimestamp(message.expiration), writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): BasicAllowance { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseBasicAllowance(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.spendLimit.push(Coin.decode(reader, reader.uint32())); - break; - case 2: - message.expiration = fromTimestamp(Timestamp.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): BasicAllowance { - const message = createBaseBasicAllowance(); - message.spendLimit = object.spendLimit?.map(e => Coin.fromPartial(e)) || []; - message.expiration = object.expiration ?? undefined; - return message; - } -}; -function createBasePeriodicAllowance(): PeriodicAllowance { - return { - basic: BasicAllowance.fromPartial({}), - period: undefined, - periodSpendLimit: [], - periodCanSpend: [], - periodReset: undefined - }; -} -export const PeriodicAllowance = { - encode(message: PeriodicAllowance, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.basic !== undefined) { - BasicAllowance.encode(message.basic, writer.uint32(10).fork()).ldelim(); - } - if (message.period !== undefined) { - Duration.encode(message.period, writer.uint32(18).fork()).ldelim(); - } - for (const v of message.periodSpendLimit) { - Coin.encode(v!, writer.uint32(26).fork()).ldelim(); - } - for (const v of message.periodCanSpend) { - Coin.encode(v!, writer.uint32(34).fork()).ldelim(); - } - if (message.periodReset !== undefined) { - Timestamp.encode(toTimestamp(message.periodReset), writer.uint32(42).fork()).ldelim(); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): PeriodicAllowance { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBasePeriodicAllowance(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.basic = BasicAllowance.decode(reader, reader.uint32()); - break; - case 2: - message.period = Duration.decode(reader, reader.uint32()); - break; - case 3: - message.periodSpendLimit.push(Coin.decode(reader, reader.uint32())); - break; - case 4: - message.periodCanSpend.push(Coin.decode(reader, reader.uint32())); - break; - case 5: - message.periodReset = fromTimestamp(Timestamp.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): PeriodicAllowance { - const message = createBasePeriodicAllowance(); - message.basic = object.basic !== undefined && object.basic !== null ? BasicAllowance.fromPartial(object.basic) : undefined; - message.period = object.period !== undefined && object.period !== null ? Duration.fromPartial(object.period) : undefined; - message.periodSpendLimit = object.periodSpendLimit?.map(e => Coin.fromPartial(e)) || []; - message.periodCanSpend = object.periodCanSpend?.map(e => Coin.fromPartial(e)) || []; - message.periodReset = object.periodReset ?? undefined; - return message; - } -}; -function createBaseAllowedMsgAllowance(): AllowedMsgAllowance { - return { - allowance: undefined, - allowedMessages: [] - }; -} -export const AllowedMsgAllowance = { - encode(message: AllowedMsgAllowance, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.allowance !== undefined) { - Any.encode(message.allowance, writer.uint32(10).fork()).ldelim(); - } - for (const v of message.allowedMessages) { - writer.uint32(18).string(v!); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): AllowedMsgAllowance { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseAllowedMsgAllowance(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.allowance = Any.decode(reader, reader.uint32()); - break; - case 2: - message.allowedMessages.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): AllowedMsgAllowance { - const message = createBaseAllowedMsgAllowance(); - message.allowance = object.allowance !== undefined && object.allowance !== null ? Any.fromPartial(object.allowance) : undefined; - message.allowedMessages = object.allowedMessages?.map(e => e) || []; - return message; - } -}; -function createBaseGrant(): Grant { - return { - granter: "", - grantee: "", - allowance: undefined - }; -} -export const Grant = { - encode(message: Grant, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.granter !== "") { - writer.uint32(10).string(message.granter); - } - if (message.grantee !== "") { - writer.uint32(18).string(message.grantee); - } - if (message.allowance !== undefined) { - Any.encode(message.allowance, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): Grant { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGrant(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.granter = reader.string(); - break; - case 2: - message.grantee = reader.string(); - break; - case 3: - message.allowance = Any.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): Grant { - const message = createBaseGrant(); - message.granter = object.granter ?? ""; - message.grantee = object.grantee ?? ""; - message.allowance = object.allowance !== undefined && object.allowance !== null ? Any.fromPartial(object.allowance) : undefined; - return message; - } -}; \ No newline at end of file diff --git a/packages/proto/src/codegen/cosmos/feegrant/v1beta1/genesis.ts b/packages/proto/src/codegen/cosmos/feegrant/v1beta1/genesis.ts deleted file mode 100644 index 09a56f1e..00000000 --- a/packages/proto/src/codegen/cosmos/feegrant/v1beta1/genesis.ts +++ /dev/null @@ -1,46 +0,0 @@ -import { Grant, GrantSDKType } from "./feegrant"; -import * as _m0 from "protobufjs/minimal"; -import { DeepPartial } from "../../../helpers"; -/** GenesisState contains a set of fee allowances, persisted from the store */ -export interface GenesisState { - allowances: Grant[]; -} -/** GenesisState contains a set of fee allowances, persisted from the store */ -export interface GenesisStateSDKType { - allowances: GrantSDKType[]; -} -function createBaseGenesisState(): GenesisState { - return { - allowances: [] - }; -} -export const GenesisState = { - encode(message: GenesisState, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - for (const v of message.allowances) { - Grant.encode(v!, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): GenesisState { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGenesisState(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.allowances.push(Grant.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): GenesisState { - const message = createBaseGenesisState(); - message.allowances = object.allowances?.map(e => Grant.fromPartial(e)) || []; - return message; - } -}; \ No newline at end of file diff --git a/packages/proto/src/codegen/cosmos/feegrant/v1beta1/query.lcd.ts b/packages/proto/src/codegen/cosmos/feegrant/v1beta1/query.lcd.ts deleted file mode 100644 index 7fe5fc9b..00000000 --- a/packages/proto/src/codegen/cosmos/feegrant/v1beta1/query.lcd.ts +++ /dev/null @@ -1,44 +0,0 @@ -import { setPaginationParams } from "../../../helpers"; -import { LCDClient } from "@osmonauts/lcd"; -import { QueryAllowanceRequest, QueryAllowanceResponseSDKType, QueryAllowancesRequest, QueryAllowancesResponseSDKType, QueryAllowancesByGranterRequest, QueryAllowancesByGranterResponseSDKType } from "./query"; -export class LCDQueryClient { - req: LCDClient; - constructor({ - requestClient - }: { - requestClient: LCDClient; - }) { - this.req = requestClient; - this.allowance = this.allowance.bind(this); - this.allowances = this.allowances.bind(this); - this.allowancesByGranter = this.allowancesByGranter.bind(this); - } - /* Allowance returns fee granted to the grantee by the granter. */ - async allowance(params: QueryAllowanceRequest): Promise { - const endpoint = `cosmos/feegrant/v1beta1/allowance/${params.granter}/${params.grantee}`; - return await this.req.get(endpoint); - } - /* Allowances returns all the grants for address. */ - async allowances(params: QueryAllowancesRequest): Promise { - const options: any = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `cosmos/feegrant/v1beta1/allowances/${params.grantee}`; - return await this.req.get(endpoint, options); - } - /* AllowancesByGranter returns all the grants given by an address - Since v0.46 */ - async allowancesByGranter(params: QueryAllowancesByGranterRequest): Promise { - const options: any = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `cosmos/feegrant/v1beta1/issued/${params.granter}`; - return await this.req.get(endpoint, options); - } -} \ No newline at end of file diff --git a/packages/proto/src/codegen/cosmos/feegrant/v1beta1/query.ts b/packages/proto/src/codegen/cosmos/feegrant/v1beta1/query.ts deleted file mode 100644 index 83e7b1fb..00000000 --- a/packages/proto/src/codegen/cosmos/feegrant/v1beta1/query.ts +++ /dev/null @@ -1,321 +0,0 @@ -import { PageRequest, PageRequestSDKType, PageResponse, PageResponseSDKType } from "../../base/query/v1beta1/pagination"; -import { Grant, GrantSDKType } from "./feegrant"; -import * as _m0 from "protobufjs/minimal"; -import { DeepPartial } from "../../../helpers"; -/** QueryAllowanceRequest is the request type for the Query/Allowance RPC method. */ -export interface QueryAllowanceRequest { - /** granter is the address of the user granting an allowance of their funds. */ - granter: string; - /** grantee is the address of the user being granted an allowance of another user's funds. */ - grantee: string; -} -/** QueryAllowanceRequest is the request type for the Query/Allowance RPC method. */ -export interface QueryAllowanceRequestSDKType { - granter: string; - grantee: string; -} -/** QueryAllowanceResponse is the response type for the Query/Allowance RPC method. */ -export interface QueryAllowanceResponse { - /** allowance is a allowance granted for grantee by granter. */ - allowance: Grant; -} -/** QueryAllowanceResponse is the response type for the Query/Allowance RPC method. */ -export interface QueryAllowanceResponseSDKType { - allowance: GrantSDKType; -} -/** QueryAllowancesRequest is the request type for the Query/Allowances RPC method. */ -export interface QueryAllowancesRequest { - grantee: string; - /** pagination defines an pagination for the request. */ - pagination: PageRequest; -} -/** QueryAllowancesRequest is the request type for the Query/Allowances RPC method. */ -export interface QueryAllowancesRequestSDKType { - grantee: string; - pagination: PageRequestSDKType; -} -/** QueryAllowancesResponse is the response type for the Query/Allowances RPC method. */ -export interface QueryAllowancesResponse { - /** allowances are allowance's granted for grantee by granter. */ - allowances: Grant[]; - /** pagination defines an pagination for the response. */ - pagination: PageResponse; -} -/** QueryAllowancesResponse is the response type for the Query/Allowances RPC method. */ -export interface QueryAllowancesResponseSDKType { - allowances: GrantSDKType[]; - pagination: PageResponseSDKType; -} -/** QueryAllowancesByGranterRequest is the request type for the Query/AllowancesByGranter RPC method. */ -export interface QueryAllowancesByGranterRequest { - granter: string; - /** pagination defines an pagination for the request. */ - pagination: PageRequest; -} -/** QueryAllowancesByGranterRequest is the request type for the Query/AllowancesByGranter RPC method. */ -export interface QueryAllowancesByGranterRequestSDKType { - granter: string; - pagination: PageRequestSDKType; -} -/** QueryAllowancesByGranterResponse is the response type for the Query/AllowancesByGranter RPC method. */ -export interface QueryAllowancesByGranterResponse { - /** allowances that have been issued by the granter. */ - allowances: Grant[]; - /** pagination defines an pagination for the response. */ - pagination: PageResponse; -} -/** QueryAllowancesByGranterResponse is the response type for the Query/AllowancesByGranter RPC method. */ -export interface QueryAllowancesByGranterResponseSDKType { - allowances: GrantSDKType[]; - pagination: PageResponseSDKType; -} -function createBaseQueryAllowanceRequest(): QueryAllowanceRequest { - return { - granter: "", - grantee: "" - }; -} -export const QueryAllowanceRequest = { - encode(message: QueryAllowanceRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.granter !== "") { - writer.uint32(10).string(message.granter); - } - if (message.grantee !== "") { - writer.uint32(18).string(message.grantee); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): QueryAllowanceRequest { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryAllowanceRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.granter = reader.string(); - break; - case 2: - message.grantee = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): QueryAllowanceRequest { - const message = createBaseQueryAllowanceRequest(); - message.granter = object.granter ?? ""; - message.grantee = object.grantee ?? ""; - return message; - } -}; -function createBaseQueryAllowanceResponse(): QueryAllowanceResponse { - return { - allowance: Grant.fromPartial({}) - }; -} -export const QueryAllowanceResponse = { - encode(message: QueryAllowanceResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.allowance !== undefined) { - Grant.encode(message.allowance, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): QueryAllowanceResponse { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryAllowanceResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.allowance = Grant.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): QueryAllowanceResponse { - const message = createBaseQueryAllowanceResponse(); - message.allowance = object.allowance !== undefined && object.allowance !== null ? Grant.fromPartial(object.allowance) : undefined; - return message; - } -}; -function createBaseQueryAllowancesRequest(): QueryAllowancesRequest { - return { - grantee: "", - pagination: PageRequest.fromPartial({}) - }; -} -export const QueryAllowancesRequest = { - encode(message: QueryAllowancesRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.grantee !== "") { - writer.uint32(10).string(message.grantee); - } - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): QueryAllowancesRequest { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryAllowancesRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.grantee = reader.string(); - break; - case 2: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): QueryAllowancesRequest { - const message = createBaseQueryAllowancesRequest(); - message.grantee = object.grantee ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - } -}; -function createBaseQueryAllowancesResponse(): QueryAllowancesResponse { - return { - allowances: [], - pagination: PageResponse.fromPartial({}) - }; -} -export const QueryAllowancesResponse = { - encode(message: QueryAllowancesResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - for (const v of message.allowances) { - Grant.encode(v!, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): QueryAllowancesResponse { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryAllowancesResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.allowances.push(Grant.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): QueryAllowancesResponse { - const message = createBaseQueryAllowancesResponse(); - message.allowances = object.allowances?.map(e => Grant.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - } -}; -function createBaseQueryAllowancesByGranterRequest(): QueryAllowancesByGranterRequest { - return { - granter: "", - pagination: PageRequest.fromPartial({}) - }; -} -export const QueryAllowancesByGranterRequest = { - encode(message: QueryAllowancesByGranterRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.granter !== "") { - writer.uint32(10).string(message.granter); - } - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): QueryAllowancesByGranterRequest { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryAllowancesByGranterRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.granter = reader.string(); - break; - case 2: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): QueryAllowancesByGranterRequest { - const message = createBaseQueryAllowancesByGranterRequest(); - message.granter = object.granter ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - } -}; -function createBaseQueryAllowancesByGranterResponse(): QueryAllowancesByGranterResponse { - return { - allowances: [], - pagination: PageResponse.fromPartial({}) - }; -} -export const QueryAllowancesByGranterResponse = { - encode(message: QueryAllowancesByGranterResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - for (const v of message.allowances) { - Grant.encode(v!, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): QueryAllowancesByGranterResponse { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryAllowancesByGranterResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.allowances.push(Grant.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): QueryAllowancesByGranterResponse { - const message = createBaseQueryAllowancesByGranterResponse(); - message.allowances = object.allowances?.map(e => Grant.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - } -}; \ No newline at end of file diff --git a/packages/proto/src/codegen/cosmos/feegrant/v1beta1/tx.amino.ts b/packages/proto/src/codegen/cosmos/feegrant/v1beta1/tx.amino.ts deleted file mode 100644 index 9b2db479..00000000 --- a/packages/proto/src/codegen/cosmos/feegrant/v1beta1/tx.amino.ts +++ /dev/null @@ -1,74 +0,0 @@ -import { AminoMsg } from "@cosmjs/amino"; -import { MsgGrantAllowance, MsgRevokeAllowance } from "./tx"; -export interface MsgGrantAllowanceAminoType extends AminoMsg { - type: "cosmos-sdk/MsgGrantAllowance"; - value: { - granter: string; - grantee: string; - allowance: { - type_url: string; - value: Uint8Array; - }; - }; -} -export interface MsgRevokeAllowanceAminoType extends AminoMsg { - type: "cosmos-sdk/MsgRevokeAllowance"; - value: { - granter: string; - grantee: string; - }; -} -export const AminoConverter = { - "/cosmos.feegrant.v1beta1.MsgGrantAllowance": { - aminoType: "cosmos-sdk/MsgGrantAllowance", - toAmino: ({ - granter, - grantee, - allowance - }: MsgGrantAllowance): MsgGrantAllowanceAminoType["value"] => { - return { - granter, - grantee, - allowance: { - type_url: allowance.typeUrl, - value: allowance.value - } - }; - }, - fromAmino: ({ - granter, - grantee, - allowance - }: MsgGrantAllowanceAminoType["value"]): MsgGrantAllowance => { - return { - granter, - grantee, - allowance: { - typeUrl: allowance.type_url, - value: allowance.value - } - }; - } - }, - "/cosmos.feegrant.v1beta1.MsgRevokeAllowance": { - aminoType: "cosmos-sdk/MsgRevokeAllowance", - toAmino: ({ - granter, - grantee - }: MsgRevokeAllowance): MsgRevokeAllowanceAminoType["value"] => { - return { - granter, - grantee - }; - }, - fromAmino: ({ - granter, - grantee - }: MsgRevokeAllowanceAminoType["value"]): MsgRevokeAllowance => { - return { - granter, - grantee - }; - } - } -}; \ No newline at end of file diff --git a/packages/proto/src/codegen/cosmos/feegrant/v1beta1/tx.registry.ts b/packages/proto/src/codegen/cosmos/feegrant/v1beta1/tx.registry.ts deleted file mode 100644 index db2faf69..00000000 --- a/packages/proto/src/codegen/cosmos/feegrant/v1beta1/tx.registry.ts +++ /dev/null @@ -1,52 +0,0 @@ -import { GeneratedType, Registry } from "@cosmjs/proto-signing"; -import { MsgGrantAllowance, MsgRevokeAllowance } from "./tx"; -export const registry: ReadonlyArray<[string, GeneratedType]> = [["/cosmos.feegrant.v1beta1.MsgGrantAllowance", MsgGrantAllowance], ["/cosmos.feegrant.v1beta1.MsgRevokeAllowance", MsgRevokeAllowance]]; -export const load = (protoRegistry: Registry) => { - registry.forEach(([typeUrl, mod]) => { - protoRegistry.register(typeUrl, mod); - }); -}; -export const MessageComposer = { - encoded: { - grantAllowance(value: MsgGrantAllowance) { - return { - typeUrl: "/cosmos.feegrant.v1beta1.MsgGrantAllowance", - value: MsgGrantAllowance.encode(value).finish() - }; - }, - revokeAllowance(value: MsgRevokeAllowance) { - return { - typeUrl: "/cosmos.feegrant.v1beta1.MsgRevokeAllowance", - value: MsgRevokeAllowance.encode(value).finish() - }; - } - }, - withTypeUrl: { - grantAllowance(value: MsgGrantAllowance) { - return { - typeUrl: "/cosmos.feegrant.v1beta1.MsgGrantAllowance", - value - }; - }, - revokeAllowance(value: MsgRevokeAllowance) { - return { - typeUrl: "/cosmos.feegrant.v1beta1.MsgRevokeAllowance", - value - }; - } - }, - fromPartial: { - grantAllowance(value: MsgGrantAllowance) { - return { - typeUrl: "/cosmos.feegrant.v1beta1.MsgGrantAllowance", - value: MsgGrantAllowance.fromPartial(value) - }; - }, - revokeAllowance(value: MsgRevokeAllowance) { - return { - typeUrl: "/cosmos.feegrant.v1beta1.MsgRevokeAllowance", - value: MsgRevokeAllowance.fromPartial(value) - }; - } - } -}; \ No newline at end of file diff --git a/packages/proto/src/codegen/cosmos/feegrant/v1beta1/tx.ts b/packages/proto/src/codegen/cosmos/feegrant/v1beta1/tx.ts deleted file mode 100644 index 82224119..00000000 --- a/packages/proto/src/codegen/cosmos/feegrant/v1beta1/tx.ts +++ /dev/null @@ -1,190 +0,0 @@ -import { Any, AnySDKType } from "../../../google/protobuf/any"; -import * as _m0 from "protobufjs/minimal"; -import { DeepPartial } from "../../../helpers"; -/** - * MsgGrantAllowance adds permission for Grantee to spend up to Allowance - * of fees from the account of Granter. - */ -export interface MsgGrantAllowance { - /** granter is the address of the user granting an allowance of their funds. */ - granter: string; - /** grantee is the address of the user being granted an allowance of another user's funds. */ - grantee: string; - /** allowance can be any of basic, periodic, allowed fee allowance. */ - allowance: Any; -} -/** - * MsgGrantAllowance adds permission for Grantee to spend up to Allowance - * of fees from the account of Granter. - */ -export interface MsgGrantAllowanceSDKType { - granter: string; - grantee: string; - allowance: AnySDKType; -} -/** MsgGrantAllowanceResponse defines the Msg/GrantAllowanceResponse response type. */ -export interface MsgGrantAllowanceResponse {} -/** MsgGrantAllowanceResponse defines the Msg/GrantAllowanceResponse response type. */ -export interface MsgGrantAllowanceResponseSDKType {} -/** MsgRevokeAllowance removes any existing Allowance from Granter to Grantee. */ -export interface MsgRevokeAllowance { - /** granter is the address of the user granting an allowance of their funds. */ - granter: string; - /** grantee is the address of the user being granted an allowance of another user's funds. */ - grantee: string; -} -/** MsgRevokeAllowance removes any existing Allowance from Granter to Grantee. */ -export interface MsgRevokeAllowanceSDKType { - granter: string; - grantee: string; -} -/** MsgRevokeAllowanceResponse defines the Msg/RevokeAllowanceResponse response type. */ -export interface MsgRevokeAllowanceResponse {} -/** MsgRevokeAllowanceResponse defines the Msg/RevokeAllowanceResponse response type. */ -export interface MsgRevokeAllowanceResponseSDKType {} -function createBaseMsgGrantAllowance(): MsgGrantAllowance { - return { - granter: "", - grantee: "", - allowance: undefined - }; -} -export const MsgGrantAllowance = { - encode(message: MsgGrantAllowance, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.granter !== "") { - writer.uint32(10).string(message.granter); - } - if (message.grantee !== "") { - writer.uint32(18).string(message.grantee); - } - if (message.allowance !== undefined) { - Any.encode(message.allowance, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): MsgGrantAllowance { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgGrantAllowance(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.granter = reader.string(); - break; - case 2: - message.grantee = reader.string(); - break; - case 3: - message.allowance = Any.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): MsgGrantAllowance { - const message = createBaseMsgGrantAllowance(); - message.granter = object.granter ?? ""; - message.grantee = object.grantee ?? ""; - message.allowance = object.allowance !== undefined && object.allowance !== null ? Any.fromPartial(object.allowance) : undefined; - return message; - } -}; -function createBaseMsgGrantAllowanceResponse(): MsgGrantAllowanceResponse { - return {}; -} -export const MsgGrantAllowanceResponse = { - encode(_: MsgGrantAllowanceResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): MsgGrantAllowanceResponse { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgGrantAllowanceResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_: DeepPartial): MsgGrantAllowanceResponse { - const message = createBaseMsgGrantAllowanceResponse(); - return message; - } -}; -function createBaseMsgRevokeAllowance(): MsgRevokeAllowance { - return { - granter: "", - grantee: "" - }; -} -export const MsgRevokeAllowance = { - encode(message: MsgRevokeAllowance, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.granter !== "") { - writer.uint32(10).string(message.granter); - } - if (message.grantee !== "") { - writer.uint32(18).string(message.grantee); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): MsgRevokeAllowance { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgRevokeAllowance(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.granter = reader.string(); - break; - case 2: - message.grantee = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): MsgRevokeAllowance { - const message = createBaseMsgRevokeAllowance(); - message.granter = object.granter ?? ""; - message.grantee = object.grantee ?? ""; - return message; - } -}; -function createBaseMsgRevokeAllowanceResponse(): MsgRevokeAllowanceResponse { - return {}; -} -export const MsgRevokeAllowanceResponse = { - encode(_: MsgRevokeAllowanceResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): MsgRevokeAllowanceResponse { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgRevokeAllowanceResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_: DeepPartial): MsgRevokeAllowanceResponse { - const message = createBaseMsgRevokeAllowanceResponse(); - return message; - } -}; \ No newline at end of file diff --git a/packages/proto/src/codegen/cosmos/genutil/v1beta1/genesis.ts b/packages/proto/src/codegen/cosmos/genutil/v1beta1/genesis.ts deleted file mode 100644 index 981c4e9a..00000000 --- a/packages/proto/src/codegen/cosmos/genutil/v1beta1/genesis.ts +++ /dev/null @@ -1,46 +0,0 @@ -import * as _m0 from "protobufjs/minimal"; -import { DeepPartial } from "../../../helpers"; -/** GenesisState defines the raw genesis transaction in JSON. */ -export interface GenesisState { - /** gen_txs defines the genesis transactions. */ - genTxs: Uint8Array[]; -} -/** GenesisState defines the raw genesis transaction in JSON. */ -export interface GenesisStateSDKType { - gen_txs: Uint8Array[]; -} -function createBaseGenesisState(): GenesisState { - return { - genTxs: [] - }; -} -export const GenesisState = { - encode(message: GenesisState, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - for (const v of message.genTxs) { - writer.uint32(10).bytes(v!); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): GenesisState { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGenesisState(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.genTxs.push(reader.bytes()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): GenesisState { - const message = createBaseGenesisState(); - message.genTxs = object.genTxs?.map(e => e) || []; - return message; - } -}; \ No newline at end of file diff --git a/packages/proto/src/codegen/cosmos/gov/v1/genesis.ts b/packages/proto/src/codegen/cosmos/gov/v1/genesis.ts deleted file mode 100644 index 8bd5f55e..00000000 --- a/packages/proto/src/codegen/cosmos/gov/v1/genesis.ts +++ /dev/null @@ -1,113 +0,0 @@ -import { Deposit, DepositSDKType, Vote, VoteSDKType, Proposal, ProposalSDKType, DepositParams, DepositParamsSDKType, VotingParams, VotingParamsSDKType, TallyParams, TallyParamsSDKType } from "./gov"; -import { Long, DeepPartial } from "../../../helpers"; -import * as _m0 from "protobufjs/minimal"; -/** GenesisState defines the gov module's genesis state. */ -export interface GenesisState { - /** starting_proposal_id is the ID of the starting proposal. */ - startingProposalId: Long; - /** deposits defines all the deposits present at genesis. */ - deposits: Deposit[]; - /** votes defines all the votes present at genesis. */ - votes: Vote[]; - /** proposals defines all the proposals present at genesis. */ - proposals: Proposal[]; - /** params defines all the paramaters of related to deposit. */ - depositParams: DepositParams; - /** params defines all the paramaters of related to voting. */ - votingParams: VotingParams; - /** params defines all the paramaters of related to tally. */ - tallyParams: TallyParams; -} -/** GenesisState defines the gov module's genesis state. */ -export interface GenesisStateSDKType { - starting_proposal_id: Long; - deposits: DepositSDKType[]; - votes: VoteSDKType[]; - proposals: ProposalSDKType[]; - deposit_params: DepositParamsSDKType; - voting_params: VotingParamsSDKType; - tally_params: TallyParamsSDKType; -} -function createBaseGenesisState(): GenesisState { - return { - startingProposalId: Long.UZERO, - deposits: [], - votes: [], - proposals: [], - depositParams: DepositParams.fromPartial({}), - votingParams: VotingParams.fromPartial({}), - tallyParams: TallyParams.fromPartial({}) - }; -} -export const GenesisState = { - encode(message: GenesisState, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (!message.startingProposalId.isZero()) { - writer.uint32(8).uint64(message.startingProposalId); - } - for (const v of message.deposits) { - Deposit.encode(v!, writer.uint32(18).fork()).ldelim(); - } - for (const v of message.votes) { - Vote.encode(v!, writer.uint32(26).fork()).ldelim(); - } - for (const v of message.proposals) { - Proposal.encode(v!, writer.uint32(34).fork()).ldelim(); - } - if (message.depositParams !== undefined) { - DepositParams.encode(message.depositParams, writer.uint32(42).fork()).ldelim(); - } - if (message.votingParams !== undefined) { - VotingParams.encode(message.votingParams, writer.uint32(50).fork()).ldelim(); - } - if (message.tallyParams !== undefined) { - TallyParams.encode(message.tallyParams, writer.uint32(58).fork()).ldelim(); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): GenesisState { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGenesisState(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.startingProposalId = (reader.uint64() as Long); - break; - case 2: - message.deposits.push(Deposit.decode(reader, reader.uint32())); - break; - case 3: - message.votes.push(Vote.decode(reader, reader.uint32())); - break; - case 4: - message.proposals.push(Proposal.decode(reader, reader.uint32())); - break; - case 5: - message.depositParams = DepositParams.decode(reader, reader.uint32()); - break; - case 6: - message.votingParams = VotingParams.decode(reader, reader.uint32()); - break; - case 7: - message.tallyParams = TallyParams.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): GenesisState { - const message = createBaseGenesisState(); - message.startingProposalId = object.startingProposalId !== undefined && object.startingProposalId !== null ? Long.fromValue(object.startingProposalId) : Long.UZERO; - message.deposits = object.deposits?.map(e => Deposit.fromPartial(e)) || []; - message.votes = object.votes?.map(e => Vote.fromPartial(e)) || []; - message.proposals = object.proposals?.map(e => Proposal.fromPartial(e)) || []; - message.depositParams = object.depositParams !== undefined && object.depositParams !== null ? DepositParams.fromPartial(object.depositParams) : undefined; - message.votingParams = object.votingParams !== undefined && object.votingParams !== null ? VotingParams.fromPartial(object.votingParams) : undefined; - message.tallyParams = object.tallyParams !== undefined && object.tallyParams !== null ? TallyParams.fromPartial(object.tallyParams) : undefined; - return message; - } -}; \ No newline at end of file diff --git a/packages/proto/src/codegen/cosmos/gov/v1/gov.ts b/packages/proto/src/codegen/cosmos/gov/v1/gov.ts deleted file mode 100644 index 6c965080..00000000 --- a/packages/proto/src/codegen/cosmos/gov/v1/gov.ts +++ /dev/null @@ -1,726 +0,0 @@ -import { Coin, CoinSDKType } from "../../base/v1beta1/coin"; -import { Any, AnySDKType } from "../../../google/protobuf/any"; -import { Timestamp } from "../../../google/protobuf/timestamp"; -import { Duration, DurationSDKType } from "../../../google/protobuf/duration"; -import { Long, DeepPartial, toTimestamp, fromTimestamp } from "../../../helpers"; -import * as _m0 from "protobufjs/minimal"; -/** VoteOption enumerates the valid vote options for a given governance proposal. */ -export enum VoteOption { - /** VOTE_OPTION_UNSPECIFIED - VOTE_OPTION_UNSPECIFIED defines a no-op vote option. */ - VOTE_OPTION_UNSPECIFIED = 0, - /** VOTE_OPTION_YES - VOTE_OPTION_YES defines a yes vote option. */ - VOTE_OPTION_YES = 1, - /** VOTE_OPTION_ABSTAIN - VOTE_OPTION_ABSTAIN defines an abstain vote option. */ - VOTE_OPTION_ABSTAIN = 2, - /** VOTE_OPTION_NO - VOTE_OPTION_NO defines a no vote option. */ - VOTE_OPTION_NO = 3, - /** VOTE_OPTION_NO_WITH_VETO - VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option. */ - VOTE_OPTION_NO_WITH_VETO = 4, - UNRECOGNIZED = -1, -} -export const VoteOptionSDKType = VoteOption; -export function voteOptionFromJSON(object: any): VoteOption { - switch (object) { - case 0: - case "VOTE_OPTION_UNSPECIFIED": - return VoteOption.VOTE_OPTION_UNSPECIFIED; - case 1: - case "VOTE_OPTION_YES": - return VoteOption.VOTE_OPTION_YES; - case 2: - case "VOTE_OPTION_ABSTAIN": - return VoteOption.VOTE_OPTION_ABSTAIN; - case 3: - case "VOTE_OPTION_NO": - return VoteOption.VOTE_OPTION_NO; - case 4: - case "VOTE_OPTION_NO_WITH_VETO": - return VoteOption.VOTE_OPTION_NO_WITH_VETO; - case -1: - case "UNRECOGNIZED": - default: - return VoteOption.UNRECOGNIZED; - } -} -export function voteOptionToJSON(object: VoteOption): string { - switch (object) { - case VoteOption.VOTE_OPTION_UNSPECIFIED: - return "VOTE_OPTION_UNSPECIFIED"; - case VoteOption.VOTE_OPTION_YES: - return "VOTE_OPTION_YES"; - case VoteOption.VOTE_OPTION_ABSTAIN: - return "VOTE_OPTION_ABSTAIN"; - case VoteOption.VOTE_OPTION_NO: - return "VOTE_OPTION_NO"; - case VoteOption.VOTE_OPTION_NO_WITH_VETO: - return "VOTE_OPTION_NO_WITH_VETO"; - case VoteOption.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -/** ProposalStatus enumerates the valid statuses of a proposal. */ -export enum ProposalStatus { - /** PROPOSAL_STATUS_UNSPECIFIED - PROPOSAL_STATUS_UNSPECIFIED defines the default propopsal status. */ - PROPOSAL_STATUS_UNSPECIFIED = 0, - /** - * PROPOSAL_STATUS_DEPOSIT_PERIOD - PROPOSAL_STATUS_DEPOSIT_PERIOD defines a proposal status during the deposit - * period. - */ - PROPOSAL_STATUS_DEPOSIT_PERIOD = 1, - /** - * PROPOSAL_STATUS_VOTING_PERIOD - PROPOSAL_STATUS_VOTING_PERIOD defines a proposal status during the voting - * period. - */ - PROPOSAL_STATUS_VOTING_PERIOD = 2, - /** - * PROPOSAL_STATUS_PASSED - PROPOSAL_STATUS_PASSED defines a proposal status of a proposal that has - * passed. - */ - PROPOSAL_STATUS_PASSED = 3, - /** - * PROPOSAL_STATUS_REJECTED - PROPOSAL_STATUS_REJECTED defines a proposal status of a proposal that has - * been rejected. - */ - PROPOSAL_STATUS_REJECTED = 4, - /** - * PROPOSAL_STATUS_FAILED - PROPOSAL_STATUS_FAILED defines a proposal status of a proposal that has - * failed. - */ - PROPOSAL_STATUS_FAILED = 5, - UNRECOGNIZED = -1, -} -export const ProposalStatusSDKType = ProposalStatus; -export function proposalStatusFromJSON(object: any): ProposalStatus { - switch (object) { - case 0: - case "PROPOSAL_STATUS_UNSPECIFIED": - return ProposalStatus.PROPOSAL_STATUS_UNSPECIFIED; - case 1: - case "PROPOSAL_STATUS_DEPOSIT_PERIOD": - return ProposalStatus.PROPOSAL_STATUS_DEPOSIT_PERIOD; - case 2: - case "PROPOSAL_STATUS_VOTING_PERIOD": - return ProposalStatus.PROPOSAL_STATUS_VOTING_PERIOD; - case 3: - case "PROPOSAL_STATUS_PASSED": - return ProposalStatus.PROPOSAL_STATUS_PASSED; - case 4: - case "PROPOSAL_STATUS_REJECTED": - return ProposalStatus.PROPOSAL_STATUS_REJECTED; - case 5: - case "PROPOSAL_STATUS_FAILED": - return ProposalStatus.PROPOSAL_STATUS_FAILED; - case -1: - case "UNRECOGNIZED": - default: - return ProposalStatus.UNRECOGNIZED; - } -} -export function proposalStatusToJSON(object: ProposalStatus): string { - switch (object) { - case ProposalStatus.PROPOSAL_STATUS_UNSPECIFIED: - return "PROPOSAL_STATUS_UNSPECIFIED"; - case ProposalStatus.PROPOSAL_STATUS_DEPOSIT_PERIOD: - return "PROPOSAL_STATUS_DEPOSIT_PERIOD"; - case ProposalStatus.PROPOSAL_STATUS_VOTING_PERIOD: - return "PROPOSAL_STATUS_VOTING_PERIOD"; - case ProposalStatus.PROPOSAL_STATUS_PASSED: - return "PROPOSAL_STATUS_PASSED"; - case ProposalStatus.PROPOSAL_STATUS_REJECTED: - return "PROPOSAL_STATUS_REJECTED"; - case ProposalStatus.PROPOSAL_STATUS_FAILED: - return "PROPOSAL_STATUS_FAILED"; - case ProposalStatus.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -/** WeightedVoteOption defines a unit of vote for vote split. */ -export interface WeightedVoteOption { - option: VoteOption; - weight: string; -} -/** WeightedVoteOption defines a unit of vote for vote split. */ -export interface WeightedVoteOptionSDKType { - option: VoteOption; - weight: string; -} -/** - * Deposit defines an amount deposited by an account address to an active - * proposal. - */ -export interface Deposit { - proposalId: Long; - depositor: string; - amount: Coin[]; -} -/** - * Deposit defines an amount deposited by an account address to an active - * proposal. - */ -export interface DepositSDKType { - proposal_id: Long; - depositor: string; - amount: CoinSDKType[]; -} -/** Proposal defines the core field members of a governance proposal. */ -export interface Proposal { - id: Long; - messages: Any[]; - status: ProposalStatus; - /** - * final_tally_result is the final tally result of the proposal. When - * querying a proposal via gRPC, this field is not populated until the - * proposal's voting period has ended. - */ - finalTallyResult: TallyResult; - submitTime: Date; - depositEndTime: Date; - totalDeposit: Coin[]; - votingStartTime: Date; - votingEndTime: Date; - /** metadata is any arbitrary metadata attached to the proposal. */ - metadata: string; -} -/** Proposal defines the core field members of a governance proposal. */ -export interface ProposalSDKType { - id: Long; - messages: AnySDKType[]; - status: ProposalStatus; - final_tally_result: TallyResultSDKType; - submit_time: Date; - deposit_end_time: Date; - total_deposit: CoinSDKType[]; - voting_start_time: Date; - voting_end_time: Date; - metadata: string; -} -/** TallyResult defines a standard tally for a governance proposal. */ -export interface TallyResult { - yesCount: string; - abstainCount: string; - noCount: string; - noWithVetoCount: string; -} -/** TallyResult defines a standard tally for a governance proposal. */ -export interface TallyResultSDKType { - yes_count: string; - abstain_count: string; - no_count: string; - no_with_veto_count: string; -} -/** - * Vote defines a vote on a governance proposal. - * A Vote consists of a proposal ID, the voter, and the vote option. - */ -export interface Vote { - proposalId: Long; - voter: string; - options: WeightedVoteOption[]; - /** metadata is any arbitrary metadata to attached to the vote. */ - metadata: string; -} -/** - * Vote defines a vote on a governance proposal. - * A Vote consists of a proposal ID, the voter, and the vote option. - */ -export interface VoteSDKType { - proposal_id: Long; - voter: string; - options: WeightedVoteOptionSDKType[]; - metadata: string; -} -/** DepositParams defines the params for deposits on governance proposals. */ -export interface DepositParams { - /** Minimum deposit for a proposal to enter voting period. */ - minDeposit: Coin[]; - /** - * Maximum period for Atom holders to deposit on a proposal. Initial value: 2 - * months. - */ - maxDepositPeriod: Duration; -} -/** DepositParams defines the params for deposits on governance proposals. */ -export interface DepositParamsSDKType { - min_deposit: CoinSDKType[]; - max_deposit_period: DurationSDKType; -} -/** VotingParams defines the params for voting on governance proposals. */ -export interface VotingParams { - /** Length of the voting period. */ - votingPeriod: Duration; -} -/** VotingParams defines the params for voting on governance proposals. */ -export interface VotingParamsSDKType { - voting_period: DurationSDKType; -} -/** TallyParams defines the params for tallying votes on governance proposals. */ -export interface TallyParams { - /** - * Minimum percentage of total stake needed to vote for a result to be - * considered valid. - */ - quorum: string; - /** Minimum proportion of Yes votes for proposal to pass. Default value: 0.5. */ - threshold: string; - /** - * Minimum value of Veto votes to Total votes ratio for proposal to be - * vetoed. Default value: 1/3. - */ - vetoThreshold: string; -} -/** TallyParams defines the params for tallying votes on governance proposals. */ -export interface TallyParamsSDKType { - quorum: string; - threshold: string; - veto_threshold: string; -} -function createBaseWeightedVoteOption(): WeightedVoteOption { - return { - option: 0, - weight: "" - }; -} -export const WeightedVoteOption = { - encode(message: WeightedVoteOption, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.option !== 0) { - writer.uint32(8).int32(message.option); - } - if (message.weight !== "") { - writer.uint32(18).string(message.weight); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): WeightedVoteOption { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseWeightedVoteOption(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.option = (reader.int32() as any); - break; - case 2: - message.weight = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): WeightedVoteOption { - const message = createBaseWeightedVoteOption(); - message.option = object.option ?? 0; - message.weight = object.weight ?? ""; - return message; - } -}; -function createBaseDeposit(): Deposit { - return { - proposalId: Long.UZERO, - depositor: "", - amount: [] - }; -} -export const Deposit = { - encode(message: Deposit, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (!message.proposalId.isZero()) { - writer.uint32(8).uint64(message.proposalId); - } - if (message.depositor !== "") { - writer.uint32(18).string(message.depositor); - } - for (const v of message.amount) { - Coin.encode(v!, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): Deposit { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseDeposit(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = (reader.uint64() as Long); - break; - case 2: - message.depositor = reader.string(); - break; - case 3: - message.amount.push(Coin.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): Deposit { - const message = createBaseDeposit(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? Long.fromValue(object.proposalId) : Long.UZERO; - message.depositor = object.depositor ?? ""; - message.amount = object.amount?.map(e => Coin.fromPartial(e)) || []; - return message; - } -}; -function createBaseProposal(): Proposal { - return { - id: Long.UZERO, - messages: [], - status: 0, - finalTallyResult: TallyResult.fromPartial({}), - submitTime: undefined, - depositEndTime: undefined, - totalDeposit: [], - votingStartTime: undefined, - votingEndTime: undefined, - metadata: "" - }; -} -export const Proposal = { - encode(message: Proposal, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (!message.id.isZero()) { - writer.uint32(8).uint64(message.id); - } - for (const v of message.messages) { - Any.encode(v!, writer.uint32(18).fork()).ldelim(); - } - if (message.status !== 0) { - writer.uint32(24).int32(message.status); - } - if (message.finalTallyResult !== undefined) { - TallyResult.encode(message.finalTallyResult, writer.uint32(34).fork()).ldelim(); - } - if (message.submitTime !== undefined) { - Timestamp.encode(toTimestamp(message.submitTime), writer.uint32(42).fork()).ldelim(); - } - if (message.depositEndTime !== undefined) { - Timestamp.encode(toTimestamp(message.depositEndTime), writer.uint32(50).fork()).ldelim(); - } - for (const v of message.totalDeposit) { - Coin.encode(v!, writer.uint32(58).fork()).ldelim(); - } - if (message.votingStartTime !== undefined) { - Timestamp.encode(toTimestamp(message.votingStartTime), writer.uint32(66).fork()).ldelim(); - } - if (message.votingEndTime !== undefined) { - Timestamp.encode(toTimestamp(message.votingEndTime), writer.uint32(74).fork()).ldelim(); - } - if (message.metadata !== "") { - writer.uint32(82).string(message.metadata); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): Proposal { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseProposal(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = (reader.uint64() as Long); - break; - case 2: - message.messages.push(Any.decode(reader, reader.uint32())); - break; - case 3: - message.status = (reader.int32() as any); - break; - case 4: - message.finalTallyResult = TallyResult.decode(reader, reader.uint32()); - break; - case 5: - message.submitTime = fromTimestamp(Timestamp.decode(reader, reader.uint32())); - break; - case 6: - message.depositEndTime = fromTimestamp(Timestamp.decode(reader, reader.uint32())); - break; - case 7: - message.totalDeposit.push(Coin.decode(reader, reader.uint32())); - break; - case 8: - message.votingStartTime = fromTimestamp(Timestamp.decode(reader, reader.uint32())); - break; - case 9: - message.votingEndTime = fromTimestamp(Timestamp.decode(reader, reader.uint32())); - break; - case 10: - message.metadata = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): Proposal { - const message = createBaseProposal(); - message.id = object.id !== undefined && object.id !== null ? Long.fromValue(object.id) : Long.UZERO; - message.messages = object.messages?.map(e => Any.fromPartial(e)) || []; - message.status = object.status ?? 0; - message.finalTallyResult = object.finalTallyResult !== undefined && object.finalTallyResult !== null ? TallyResult.fromPartial(object.finalTallyResult) : undefined; - message.submitTime = object.submitTime ?? undefined; - message.depositEndTime = object.depositEndTime ?? undefined; - message.totalDeposit = object.totalDeposit?.map(e => Coin.fromPartial(e)) || []; - message.votingStartTime = object.votingStartTime ?? undefined; - message.votingEndTime = object.votingEndTime ?? undefined; - message.metadata = object.metadata ?? ""; - return message; - } -}; -function createBaseTallyResult(): TallyResult { - return { - yesCount: "", - abstainCount: "", - noCount: "", - noWithVetoCount: "" - }; -} -export const TallyResult = { - encode(message: TallyResult, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.yesCount !== "") { - writer.uint32(10).string(message.yesCount); - } - if (message.abstainCount !== "") { - writer.uint32(18).string(message.abstainCount); - } - if (message.noCount !== "") { - writer.uint32(26).string(message.noCount); - } - if (message.noWithVetoCount !== "") { - writer.uint32(34).string(message.noWithVetoCount); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): TallyResult { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseTallyResult(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.yesCount = reader.string(); - break; - case 2: - message.abstainCount = reader.string(); - break; - case 3: - message.noCount = reader.string(); - break; - case 4: - message.noWithVetoCount = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): TallyResult { - const message = createBaseTallyResult(); - message.yesCount = object.yesCount ?? ""; - message.abstainCount = object.abstainCount ?? ""; - message.noCount = object.noCount ?? ""; - message.noWithVetoCount = object.noWithVetoCount ?? ""; - return message; - } -}; -function createBaseVote(): Vote { - return { - proposalId: Long.UZERO, - voter: "", - options: [], - metadata: "" - }; -} -export const Vote = { - encode(message: Vote, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (!message.proposalId.isZero()) { - writer.uint32(8).uint64(message.proposalId); - } - if (message.voter !== "") { - writer.uint32(18).string(message.voter); - } - for (const v of message.options) { - WeightedVoteOption.encode(v!, writer.uint32(34).fork()).ldelim(); - } - if (message.metadata !== "") { - writer.uint32(42).string(message.metadata); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): Vote { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseVote(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = (reader.uint64() as Long); - break; - case 2: - message.voter = reader.string(); - break; - case 4: - message.options.push(WeightedVoteOption.decode(reader, reader.uint32())); - break; - case 5: - message.metadata = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): Vote { - const message = createBaseVote(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? Long.fromValue(object.proposalId) : Long.UZERO; - message.voter = object.voter ?? ""; - message.options = object.options?.map(e => WeightedVoteOption.fromPartial(e)) || []; - message.metadata = object.metadata ?? ""; - return message; - } -}; -function createBaseDepositParams(): DepositParams { - return { - minDeposit: [], - maxDepositPeriod: undefined - }; -} -export const DepositParams = { - encode(message: DepositParams, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - for (const v of message.minDeposit) { - Coin.encode(v!, writer.uint32(10).fork()).ldelim(); - } - if (message.maxDepositPeriod !== undefined) { - Duration.encode(message.maxDepositPeriod, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): DepositParams { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseDepositParams(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.minDeposit.push(Coin.decode(reader, reader.uint32())); - break; - case 2: - message.maxDepositPeriod = Duration.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): DepositParams { - const message = createBaseDepositParams(); - message.minDeposit = object.minDeposit?.map(e => Coin.fromPartial(e)) || []; - message.maxDepositPeriod = object.maxDepositPeriod !== undefined && object.maxDepositPeriod !== null ? Duration.fromPartial(object.maxDepositPeriod) : undefined; - return message; - } -}; -function createBaseVotingParams(): VotingParams { - return { - votingPeriod: undefined - }; -} -export const VotingParams = { - encode(message: VotingParams, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.votingPeriod !== undefined) { - Duration.encode(message.votingPeriod, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): VotingParams { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseVotingParams(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.votingPeriod = Duration.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): VotingParams { - const message = createBaseVotingParams(); - message.votingPeriod = object.votingPeriod !== undefined && object.votingPeriod !== null ? Duration.fromPartial(object.votingPeriod) : undefined; - return message; - } -}; -function createBaseTallyParams(): TallyParams { - return { - quorum: "", - threshold: "", - vetoThreshold: "" - }; -} -export const TallyParams = { - encode(message: TallyParams, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.quorum !== "") { - writer.uint32(10).string(message.quorum); - } - if (message.threshold !== "") { - writer.uint32(18).string(message.threshold); - } - if (message.vetoThreshold !== "") { - writer.uint32(26).string(message.vetoThreshold); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): TallyParams { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseTallyParams(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.quorum = reader.string(); - break; - case 2: - message.threshold = reader.string(); - break; - case 3: - message.vetoThreshold = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): TallyParams { - const message = createBaseTallyParams(); - message.quorum = object.quorum ?? ""; - message.threshold = object.threshold ?? ""; - message.vetoThreshold = object.vetoThreshold ?? ""; - return message; - } -}; \ No newline at end of file diff --git a/packages/proto/src/codegen/cosmos/gov/v1/query.lcd.ts b/packages/proto/src/codegen/cosmos/gov/v1/query.lcd.ts deleted file mode 100644 index f9486709..00000000 --- a/packages/proto/src/codegen/cosmos/gov/v1/query.lcd.ts +++ /dev/null @@ -1,88 +0,0 @@ -import { setPaginationParams } from "../../../helpers"; -import { LCDClient } from "@osmonauts/lcd"; -import { QueryProposalRequest, QueryProposalResponseSDKType, QueryProposalsRequest, QueryProposalsResponseSDKType, QueryVoteRequest, QueryVoteResponseSDKType, QueryVotesRequest, QueryVotesResponseSDKType, QueryParamsRequest, QueryParamsResponseSDKType, QueryDepositRequest, QueryDepositResponseSDKType, QueryDepositsRequest, QueryDepositsResponseSDKType, QueryTallyResultRequest, QueryTallyResultResponseSDKType } from "./query"; -export class LCDQueryClient { - req: LCDClient; - constructor({ - requestClient - }: { - requestClient: LCDClient; - }) { - this.req = requestClient; - this.proposal = this.proposal.bind(this); - this.proposals = this.proposals.bind(this); - this.vote = this.vote.bind(this); - this.votes = this.votes.bind(this); - this.params = this.params.bind(this); - this.deposit = this.deposit.bind(this); - this.deposits = this.deposits.bind(this); - this.tallyResult = this.tallyResult.bind(this); - } - /* Proposal queries proposal details based on ProposalID. */ - async proposal(params: QueryProposalRequest): Promise { - const endpoint = `cosmos/gov/v1/proposals/${params.proposalId}`; - return await this.req.get(endpoint); - } - /* Proposals queries all proposals based on given status. */ - async proposals(params: QueryProposalsRequest): Promise { - const options: any = { - params: {} - }; - if (typeof params?.proposalStatus !== "undefined") { - options.params.proposal_status = params.proposalStatus; - } - if (typeof params?.voter !== "undefined") { - options.params.voter = params.voter; - } - if (typeof params?.depositor !== "undefined") { - options.params.depositor = params.depositor; - } - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `cosmos/gov/v1/proposals`; - return await this.req.get(endpoint, options); - } - /* Vote queries voted information based on proposalID, voterAddr. */ - async vote(params: QueryVoteRequest): Promise { - const endpoint = `cosmos/gov/v1/proposals/${params.proposalId}/votes/${params.voter}`; - return await this.req.get(endpoint); - } - /* Votes queries votes of a given proposal. */ - async votes(params: QueryVotesRequest): Promise { - const options: any = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `cosmos/gov/v1/proposals/${params.proposalId}/votes`; - return await this.req.get(endpoint, options); - } - /* Params queries all parameters of the gov module. */ - async params(params: QueryParamsRequest): Promise { - const endpoint = `cosmos/gov/v1/params/${params.paramsType}`; - return await this.req.get(endpoint); - } - /* Deposit queries single deposit information based proposalID, depositAddr. */ - async deposit(params: QueryDepositRequest): Promise { - const endpoint = `cosmos/gov/v1/proposals/${params.proposalId}/deposits/${params.depositor}`; - return await this.req.get(endpoint); - } - /* Deposits queries all deposits of a single proposal. */ - async deposits(params: QueryDepositsRequest): Promise { - const options: any = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `cosmos/gov/v1/proposals/${params.proposalId}/deposits`; - return await this.req.get(endpoint, options); - } - /* TallyResult queries the tally of a proposal vote. */ - async tallyResult(params: QueryTallyResultRequest): Promise { - const endpoint = `cosmos/gov/v1/proposals/${params.proposalId}/tally`; - return await this.req.get(endpoint); - } -} \ No newline at end of file diff --git a/packages/proto/src/codegen/cosmos/gov/v1/query.ts b/packages/proto/src/codegen/cosmos/gov/v1/query.ts deleted file mode 100644 index 026ffe47..00000000 --- a/packages/proto/src/codegen/cosmos/gov/v1/query.ts +++ /dev/null @@ -1,846 +0,0 @@ -import { ProposalStatus, Proposal, ProposalSDKType, Vote, VoteSDKType, VotingParams, VotingParamsSDKType, DepositParams, DepositParamsSDKType, TallyParams, TallyParamsSDKType, Deposit, DepositSDKType, TallyResult, TallyResultSDKType } from "./gov"; -import { PageRequest, PageRequestSDKType, PageResponse, PageResponseSDKType } from "../../base/query/v1beta1/pagination"; -import { Long, DeepPartial } from "../../../helpers"; -import * as _m0 from "protobufjs/minimal"; -/** QueryProposalRequest is the request type for the Query/Proposal RPC method. */ -export interface QueryProposalRequest { - /** proposal_id defines the unique id of the proposal. */ - proposalId: Long; -} -/** QueryProposalRequest is the request type for the Query/Proposal RPC method. */ -export interface QueryProposalRequestSDKType { - proposal_id: Long; -} -/** QueryProposalResponse is the response type for the Query/Proposal RPC method. */ -export interface QueryProposalResponse { - proposal: Proposal; -} -/** QueryProposalResponse is the response type for the Query/Proposal RPC method. */ -export interface QueryProposalResponseSDKType { - proposal: ProposalSDKType; -} -/** QueryProposalsRequest is the request type for the Query/Proposals RPC method. */ -export interface QueryProposalsRequest { - /** proposal_status defines the status of the proposals. */ - proposalStatus: ProposalStatus; - /** voter defines the voter address for the proposals. */ - voter: string; - /** depositor defines the deposit addresses from the proposals. */ - depositor: string; - /** pagination defines an optional pagination for the request. */ - pagination: PageRequest; -} -/** QueryProposalsRequest is the request type for the Query/Proposals RPC method. */ -export interface QueryProposalsRequestSDKType { - proposal_status: ProposalStatus; - voter: string; - depositor: string; - pagination: PageRequestSDKType; -} -/** - * QueryProposalsResponse is the response type for the Query/Proposals RPC - * method. - */ -export interface QueryProposalsResponse { - proposals: Proposal[]; - /** pagination defines the pagination in the response. */ - pagination: PageResponse; -} -/** - * QueryProposalsResponse is the response type for the Query/Proposals RPC - * method. - */ -export interface QueryProposalsResponseSDKType { - proposals: ProposalSDKType[]; - pagination: PageResponseSDKType; -} -/** QueryVoteRequest is the request type for the Query/Vote RPC method. */ -export interface QueryVoteRequest { - /** proposal_id defines the unique id of the proposal. */ - proposalId: Long; - /** voter defines the oter address for the proposals. */ - voter: string; -} -/** QueryVoteRequest is the request type for the Query/Vote RPC method. */ -export interface QueryVoteRequestSDKType { - proposal_id: Long; - voter: string; -} -/** QueryVoteResponse is the response type for the Query/Vote RPC method. */ -export interface QueryVoteResponse { - /** vote defined the queried vote. */ - vote: Vote; -} -/** QueryVoteResponse is the response type for the Query/Vote RPC method. */ -export interface QueryVoteResponseSDKType { - vote: VoteSDKType; -} -/** QueryVotesRequest is the request type for the Query/Votes RPC method. */ -export interface QueryVotesRequest { - /** proposal_id defines the unique id of the proposal. */ - proposalId: Long; - /** pagination defines an optional pagination for the request. */ - pagination: PageRequest; -} -/** QueryVotesRequest is the request type for the Query/Votes RPC method. */ -export interface QueryVotesRequestSDKType { - proposal_id: Long; - pagination: PageRequestSDKType; -} -/** QueryVotesResponse is the response type for the Query/Votes RPC method. */ -export interface QueryVotesResponse { - /** votes defined the queried votes. */ - votes: Vote[]; - /** pagination defines the pagination in the response. */ - pagination: PageResponse; -} -/** QueryVotesResponse is the response type for the Query/Votes RPC method. */ -export interface QueryVotesResponseSDKType { - votes: VoteSDKType[]; - pagination: PageResponseSDKType; -} -/** QueryParamsRequest is the request type for the Query/Params RPC method. */ -export interface QueryParamsRequest { - /** - * params_type defines which parameters to query for, can be one of "voting", - * "tallying" or "deposit". - */ - paramsType: string; -} -/** QueryParamsRequest is the request type for the Query/Params RPC method. */ -export interface QueryParamsRequestSDKType { - params_type: string; -} -/** QueryParamsResponse is the response type for the Query/Params RPC method. */ -export interface QueryParamsResponse { - /** voting_params defines the parameters related to voting. */ - votingParams: VotingParams; - /** deposit_params defines the parameters related to deposit. */ - depositParams: DepositParams; - /** tally_params defines the parameters related to tally. */ - tallyParams: TallyParams; -} -/** QueryParamsResponse is the response type for the Query/Params RPC method. */ -export interface QueryParamsResponseSDKType { - voting_params: VotingParamsSDKType; - deposit_params: DepositParamsSDKType; - tally_params: TallyParamsSDKType; -} -/** QueryDepositRequest is the request type for the Query/Deposit RPC method. */ -export interface QueryDepositRequest { - /** proposal_id defines the unique id of the proposal. */ - proposalId: Long; - /** depositor defines the deposit addresses from the proposals. */ - depositor: string; -} -/** QueryDepositRequest is the request type for the Query/Deposit RPC method. */ -export interface QueryDepositRequestSDKType { - proposal_id: Long; - depositor: string; -} -/** QueryDepositResponse is the response type for the Query/Deposit RPC method. */ -export interface QueryDepositResponse { - /** deposit defines the requested deposit. */ - deposit: Deposit; -} -/** QueryDepositResponse is the response type for the Query/Deposit RPC method. */ -export interface QueryDepositResponseSDKType { - deposit: DepositSDKType; -} -/** QueryDepositsRequest is the request type for the Query/Deposits RPC method. */ -export interface QueryDepositsRequest { - /** proposal_id defines the unique id of the proposal. */ - proposalId: Long; - /** pagination defines an optional pagination for the request. */ - pagination: PageRequest; -} -/** QueryDepositsRequest is the request type for the Query/Deposits RPC method. */ -export interface QueryDepositsRequestSDKType { - proposal_id: Long; - pagination: PageRequestSDKType; -} -/** QueryDepositsResponse is the response type for the Query/Deposits RPC method. */ -export interface QueryDepositsResponse { - deposits: Deposit[]; - /** pagination defines the pagination in the response. */ - pagination: PageResponse; -} -/** QueryDepositsResponse is the response type for the Query/Deposits RPC method. */ -export interface QueryDepositsResponseSDKType { - deposits: DepositSDKType[]; - pagination: PageResponseSDKType; -} -/** QueryTallyResultRequest is the request type for the Query/Tally RPC method. */ -export interface QueryTallyResultRequest { - /** proposal_id defines the unique id of the proposal. */ - proposalId: Long; -} -/** QueryTallyResultRequest is the request type for the Query/Tally RPC method. */ -export interface QueryTallyResultRequestSDKType { - proposal_id: Long; -} -/** QueryTallyResultResponse is the response type for the Query/Tally RPC method. */ -export interface QueryTallyResultResponse { - /** tally defines the requested tally. */ - tally: TallyResult; -} -/** QueryTallyResultResponse is the response type for the Query/Tally RPC method. */ -export interface QueryTallyResultResponseSDKType { - tally: TallyResultSDKType; -} -function createBaseQueryProposalRequest(): QueryProposalRequest { - return { - proposalId: Long.UZERO - }; -} -export const QueryProposalRequest = { - encode(message: QueryProposalRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (!message.proposalId.isZero()) { - writer.uint32(8).uint64(message.proposalId); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): QueryProposalRequest { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryProposalRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = (reader.uint64() as Long); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): QueryProposalRequest { - const message = createBaseQueryProposalRequest(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? Long.fromValue(object.proposalId) : Long.UZERO; - return message; - } -}; -function createBaseQueryProposalResponse(): QueryProposalResponse { - return { - proposal: Proposal.fromPartial({}) - }; -} -export const QueryProposalResponse = { - encode(message: QueryProposalResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.proposal !== undefined) { - Proposal.encode(message.proposal, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): QueryProposalResponse { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryProposalResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposal = Proposal.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): QueryProposalResponse { - const message = createBaseQueryProposalResponse(); - message.proposal = object.proposal !== undefined && object.proposal !== null ? Proposal.fromPartial(object.proposal) : undefined; - return message; - } -}; -function createBaseQueryProposalsRequest(): QueryProposalsRequest { - return { - proposalStatus: 0, - voter: "", - depositor: "", - pagination: PageRequest.fromPartial({}) - }; -} -export const QueryProposalsRequest = { - encode(message: QueryProposalsRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.proposalStatus !== 0) { - writer.uint32(8).int32(message.proposalStatus); - } - if (message.voter !== "") { - writer.uint32(18).string(message.voter); - } - if (message.depositor !== "") { - writer.uint32(26).string(message.depositor); - } - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(34).fork()).ldelim(); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): QueryProposalsRequest { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryProposalsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalStatus = (reader.int32() as any); - break; - case 2: - message.voter = reader.string(); - break; - case 3: - message.depositor = reader.string(); - break; - case 4: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): QueryProposalsRequest { - const message = createBaseQueryProposalsRequest(); - message.proposalStatus = object.proposalStatus ?? 0; - message.voter = object.voter ?? ""; - message.depositor = object.depositor ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - } -}; -function createBaseQueryProposalsResponse(): QueryProposalsResponse { - return { - proposals: [], - pagination: PageResponse.fromPartial({}) - }; -} -export const QueryProposalsResponse = { - encode(message: QueryProposalsResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - for (const v of message.proposals) { - Proposal.encode(v!, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): QueryProposalsResponse { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryProposalsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposals.push(Proposal.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): QueryProposalsResponse { - const message = createBaseQueryProposalsResponse(); - message.proposals = object.proposals?.map(e => Proposal.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - } -}; -function createBaseQueryVoteRequest(): QueryVoteRequest { - return { - proposalId: Long.UZERO, - voter: "" - }; -} -export const QueryVoteRequest = { - encode(message: QueryVoteRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (!message.proposalId.isZero()) { - writer.uint32(8).uint64(message.proposalId); - } - if (message.voter !== "") { - writer.uint32(18).string(message.voter); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): QueryVoteRequest { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryVoteRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = (reader.uint64() as Long); - break; - case 2: - message.voter = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): QueryVoteRequest { - const message = createBaseQueryVoteRequest(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? Long.fromValue(object.proposalId) : Long.UZERO; - message.voter = object.voter ?? ""; - return message; - } -}; -function createBaseQueryVoteResponse(): QueryVoteResponse { - return { - vote: Vote.fromPartial({}) - }; -} -export const QueryVoteResponse = { - encode(message: QueryVoteResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.vote !== undefined) { - Vote.encode(message.vote, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): QueryVoteResponse { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryVoteResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.vote = Vote.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): QueryVoteResponse { - const message = createBaseQueryVoteResponse(); - message.vote = object.vote !== undefined && object.vote !== null ? Vote.fromPartial(object.vote) : undefined; - return message; - } -}; -function createBaseQueryVotesRequest(): QueryVotesRequest { - return { - proposalId: Long.UZERO, - pagination: PageRequest.fromPartial({}) - }; -} -export const QueryVotesRequest = { - encode(message: QueryVotesRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (!message.proposalId.isZero()) { - writer.uint32(8).uint64(message.proposalId); - } - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): QueryVotesRequest { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryVotesRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = (reader.uint64() as Long); - break; - case 2: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): QueryVotesRequest { - const message = createBaseQueryVotesRequest(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? Long.fromValue(object.proposalId) : Long.UZERO; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - } -}; -function createBaseQueryVotesResponse(): QueryVotesResponse { - return { - votes: [], - pagination: PageResponse.fromPartial({}) - }; -} -export const QueryVotesResponse = { - encode(message: QueryVotesResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - for (const v of message.votes) { - Vote.encode(v!, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): QueryVotesResponse { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryVotesResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.votes.push(Vote.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): QueryVotesResponse { - const message = createBaseQueryVotesResponse(); - message.votes = object.votes?.map(e => Vote.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - } -}; -function createBaseQueryParamsRequest(): QueryParamsRequest { - return { - paramsType: "" - }; -} -export const QueryParamsRequest = { - encode(message: QueryParamsRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.paramsType !== "") { - writer.uint32(10).string(message.paramsType); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): QueryParamsRequest { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryParamsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.paramsType = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): QueryParamsRequest { - const message = createBaseQueryParamsRequest(); - message.paramsType = object.paramsType ?? ""; - return message; - } -}; -function createBaseQueryParamsResponse(): QueryParamsResponse { - return { - votingParams: VotingParams.fromPartial({}), - depositParams: DepositParams.fromPartial({}), - tallyParams: TallyParams.fromPartial({}) - }; -} -export const QueryParamsResponse = { - encode(message: QueryParamsResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.votingParams !== undefined) { - VotingParams.encode(message.votingParams, writer.uint32(10).fork()).ldelim(); - } - if (message.depositParams !== undefined) { - DepositParams.encode(message.depositParams, writer.uint32(18).fork()).ldelim(); - } - if (message.tallyParams !== undefined) { - TallyParams.encode(message.tallyParams, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): QueryParamsResponse { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryParamsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.votingParams = VotingParams.decode(reader, reader.uint32()); - break; - case 2: - message.depositParams = DepositParams.decode(reader, reader.uint32()); - break; - case 3: - message.tallyParams = TallyParams.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): QueryParamsResponse { - const message = createBaseQueryParamsResponse(); - message.votingParams = object.votingParams !== undefined && object.votingParams !== null ? VotingParams.fromPartial(object.votingParams) : undefined; - message.depositParams = object.depositParams !== undefined && object.depositParams !== null ? DepositParams.fromPartial(object.depositParams) : undefined; - message.tallyParams = object.tallyParams !== undefined && object.tallyParams !== null ? TallyParams.fromPartial(object.tallyParams) : undefined; - return message; - } -}; -function createBaseQueryDepositRequest(): QueryDepositRequest { - return { - proposalId: Long.UZERO, - depositor: "" - }; -} -export const QueryDepositRequest = { - encode(message: QueryDepositRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (!message.proposalId.isZero()) { - writer.uint32(8).uint64(message.proposalId); - } - if (message.depositor !== "") { - writer.uint32(18).string(message.depositor); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): QueryDepositRequest { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryDepositRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = (reader.uint64() as Long); - break; - case 2: - message.depositor = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): QueryDepositRequest { - const message = createBaseQueryDepositRequest(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? Long.fromValue(object.proposalId) : Long.UZERO; - message.depositor = object.depositor ?? ""; - return message; - } -}; -function createBaseQueryDepositResponse(): QueryDepositResponse { - return { - deposit: Deposit.fromPartial({}) - }; -} -export const QueryDepositResponse = { - encode(message: QueryDepositResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.deposit !== undefined) { - Deposit.encode(message.deposit, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): QueryDepositResponse { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryDepositResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.deposit = Deposit.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): QueryDepositResponse { - const message = createBaseQueryDepositResponse(); - message.deposit = object.deposit !== undefined && object.deposit !== null ? Deposit.fromPartial(object.deposit) : undefined; - return message; - } -}; -function createBaseQueryDepositsRequest(): QueryDepositsRequest { - return { - proposalId: Long.UZERO, - pagination: PageRequest.fromPartial({}) - }; -} -export const QueryDepositsRequest = { - encode(message: QueryDepositsRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (!message.proposalId.isZero()) { - writer.uint32(8).uint64(message.proposalId); - } - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): QueryDepositsRequest { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryDepositsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = (reader.uint64() as Long); - break; - case 2: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): QueryDepositsRequest { - const message = createBaseQueryDepositsRequest(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? Long.fromValue(object.proposalId) : Long.UZERO; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - } -}; -function createBaseQueryDepositsResponse(): QueryDepositsResponse { - return { - deposits: [], - pagination: PageResponse.fromPartial({}) - }; -} -export const QueryDepositsResponse = { - encode(message: QueryDepositsResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - for (const v of message.deposits) { - Deposit.encode(v!, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): QueryDepositsResponse { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryDepositsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.deposits.push(Deposit.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): QueryDepositsResponse { - const message = createBaseQueryDepositsResponse(); - message.deposits = object.deposits?.map(e => Deposit.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - } -}; -function createBaseQueryTallyResultRequest(): QueryTallyResultRequest { - return { - proposalId: Long.UZERO - }; -} -export const QueryTallyResultRequest = { - encode(message: QueryTallyResultRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (!message.proposalId.isZero()) { - writer.uint32(8).uint64(message.proposalId); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): QueryTallyResultRequest { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryTallyResultRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = (reader.uint64() as Long); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): QueryTallyResultRequest { - const message = createBaseQueryTallyResultRequest(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? Long.fromValue(object.proposalId) : Long.UZERO; - return message; - } -}; -function createBaseQueryTallyResultResponse(): QueryTallyResultResponse { - return { - tally: TallyResult.fromPartial({}) - }; -} -export const QueryTallyResultResponse = { - encode(message: QueryTallyResultResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.tally !== undefined) { - TallyResult.encode(message.tally, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): QueryTallyResultResponse { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryTallyResultResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.tally = TallyResult.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): QueryTallyResultResponse { - const message = createBaseQueryTallyResultResponse(); - message.tally = object.tally !== undefined && object.tally !== null ? TallyResult.fromPartial(object.tally) : undefined; - return message; - } -}; \ No newline at end of file diff --git a/packages/proto/src/codegen/cosmos/gov/v1/tx.amino.ts b/packages/proto/src/codegen/cosmos/gov/v1/tx.amino.ts deleted file mode 100644 index 20b9f609..00000000 --- a/packages/proto/src/codegen/cosmos/gov/v1/tx.amino.ts +++ /dev/null @@ -1,226 +0,0 @@ -import { voteOptionFromJSON } from "./gov"; -import { AminoMsg } from "@cosmjs/amino"; -import { Long } from "../../../helpers"; -import { MsgSubmitProposal, MsgExecLegacyContent, MsgVote, MsgVoteWeighted, MsgDeposit } from "./tx"; -export interface MsgSubmitProposalAminoType extends AminoMsg { - type: "cosmos-sdk/v1/MsgSubmitProposal"; - value: { - messages: { - type_url: string; - value: Uint8Array; - }[]; - initial_deposit: { - denom: string; - amount: string; - }[]; - proposer: string; - metadata: string; - }; -} -export interface MsgExecLegacyContentAminoType extends AminoMsg { - type: "cosmos-sdk/v1/MsgExecLegacyContent"; - value: { - content: { - type_url: string; - value: Uint8Array; - }; - authority: string; - }; -} -export interface MsgVoteAminoType extends AminoMsg { - type: "cosmos-sdk/v1/MsgVote"; - value: { - proposal_id: string; - voter: string; - option: number; - metadata: string; - }; -} -export interface MsgVoteWeightedAminoType extends AminoMsg { - type: "cosmos-sdk/v1/MsgVoteWeighted"; - value: { - proposal_id: string; - voter: string; - options: { - option: number; - weight: string; - }[]; - metadata: string; - }; -} -export interface MsgDepositAminoType extends AminoMsg { - type: "cosmos-sdk/v1/MsgDeposit"; - value: { - proposal_id: string; - depositor: string; - amount: { - denom: string; - amount: string; - }[]; - }; -} -export const AminoConverter = { - "/cosmos.gov.v1.MsgSubmitProposal": { - aminoType: "cosmos-sdk/v1/MsgSubmitProposal", - toAmino: ({ - messages, - initialDeposit, - proposer, - metadata - }: MsgSubmitProposal): MsgSubmitProposalAminoType["value"] => { - return { - messages: messages.map(el0 => ({ - type_url: el0.typeUrl, - value: el0.value - })), - initial_deposit: initialDeposit.map(el0 => ({ - denom: el0.denom, - amount: el0.amount - })), - proposer, - metadata - }; - }, - fromAmino: ({ - messages, - initial_deposit, - proposer, - metadata - }: MsgSubmitProposalAminoType["value"]): MsgSubmitProposal => { - return { - messages: messages.map(el0 => ({ - typeUrl: el0.type_url, - value: el0.value - })), - initialDeposit: initial_deposit.map(el0 => ({ - denom: el0.denom, - amount: el0.amount - })), - proposer, - metadata - }; - } - }, - "/cosmos.gov.v1.MsgExecLegacyContent": { - aminoType: "cosmos-sdk/v1/MsgExecLegacyContent", - toAmino: ({ - content, - authority - }: MsgExecLegacyContent): MsgExecLegacyContentAminoType["value"] => { - return { - content: { - type_url: content.typeUrl, - value: content.value - }, - authority - }; - }, - fromAmino: ({ - content, - authority - }: MsgExecLegacyContentAminoType["value"]): MsgExecLegacyContent => { - return { - content: { - typeUrl: content.type_url, - value: content.value - }, - authority - }; - } - }, - "/cosmos.gov.v1.MsgVote": { - aminoType: "cosmos-sdk/v1/MsgVote", - toAmino: ({ - proposalId, - voter, - option, - metadata - }: MsgVote): MsgVoteAminoType["value"] => { - return { - proposal_id: proposalId.toString(), - voter, - option, - metadata - }; - }, - fromAmino: ({ - proposal_id, - voter, - option, - metadata - }: MsgVoteAminoType["value"]): MsgVote => { - return { - proposalId: Long.fromString(proposal_id), - voter, - option: voteOptionFromJSON(option), - metadata - }; - } - }, - "/cosmos.gov.v1.MsgVoteWeighted": { - aminoType: "cosmos-sdk/v1/MsgVoteWeighted", - toAmino: ({ - proposalId, - voter, - options, - metadata - }: MsgVoteWeighted): MsgVoteWeightedAminoType["value"] => { - return { - proposal_id: proposalId.toString(), - voter, - options: options.map(el0 => ({ - option: el0.option, - weight: el0.weight - })), - metadata - }; - }, - fromAmino: ({ - proposal_id, - voter, - options, - metadata - }: MsgVoteWeightedAminoType["value"]): MsgVoteWeighted => { - return { - proposalId: Long.fromString(proposal_id), - voter, - options: options.map(el0 => ({ - option: voteOptionFromJSON(el0.option), - weight: el0.weight - })), - metadata - }; - } - }, - "/cosmos.gov.v1.MsgDeposit": { - aminoType: "cosmos-sdk/v1/MsgDeposit", - toAmino: ({ - proposalId, - depositor, - amount - }: MsgDeposit): MsgDepositAminoType["value"] => { - return { - proposal_id: proposalId.toString(), - depositor, - amount: amount.map(el0 => ({ - denom: el0.denom, - amount: el0.amount - })) - }; - }, - fromAmino: ({ - proposal_id, - depositor, - amount - }: MsgDepositAminoType["value"]): MsgDeposit => { - return { - proposalId: Long.fromString(proposal_id), - depositor, - amount: amount.map(el0 => ({ - denom: el0.denom, - amount: el0.amount - })) - }; - } - } -}; \ No newline at end of file diff --git a/packages/proto/src/codegen/cosmos/gov/v1/tx.registry.ts b/packages/proto/src/codegen/cosmos/gov/v1/tx.registry.ts deleted file mode 100644 index 3cdef1e6..00000000 --- a/packages/proto/src/codegen/cosmos/gov/v1/tx.registry.ts +++ /dev/null @@ -1,106 +0,0 @@ -import { GeneratedType, Registry } from "@cosmjs/proto-signing"; -import { MsgSubmitProposal, MsgExecLegacyContent, MsgVote, MsgVoteWeighted, MsgDeposit } from "./tx"; -export const registry: ReadonlyArray<[string, GeneratedType]> = [["/cosmos.gov.v1.MsgSubmitProposal", MsgSubmitProposal], ["/cosmos.gov.v1.MsgExecLegacyContent", MsgExecLegacyContent], ["/cosmos.gov.v1.MsgVote", MsgVote], ["/cosmos.gov.v1.MsgVoteWeighted", MsgVoteWeighted], ["/cosmos.gov.v1.MsgDeposit", MsgDeposit]]; -export const load = (protoRegistry: Registry) => { - registry.forEach(([typeUrl, mod]) => { - protoRegistry.register(typeUrl, mod); - }); -}; -export const MessageComposer = { - encoded: { - submitProposal(value: MsgSubmitProposal) { - return { - typeUrl: "/cosmos.gov.v1.MsgSubmitProposal", - value: MsgSubmitProposal.encode(value).finish() - }; - }, - execLegacyContent(value: MsgExecLegacyContent) { - return { - typeUrl: "/cosmos.gov.v1.MsgExecLegacyContent", - value: MsgExecLegacyContent.encode(value).finish() - }; - }, - vote(value: MsgVote) { - return { - typeUrl: "/cosmos.gov.v1.MsgVote", - value: MsgVote.encode(value).finish() - }; - }, - voteWeighted(value: MsgVoteWeighted) { - return { - typeUrl: "/cosmos.gov.v1.MsgVoteWeighted", - value: MsgVoteWeighted.encode(value).finish() - }; - }, - deposit(value: MsgDeposit) { - return { - typeUrl: "/cosmos.gov.v1.MsgDeposit", - value: MsgDeposit.encode(value).finish() - }; - } - }, - withTypeUrl: { - submitProposal(value: MsgSubmitProposal) { - return { - typeUrl: "/cosmos.gov.v1.MsgSubmitProposal", - value - }; - }, - execLegacyContent(value: MsgExecLegacyContent) { - return { - typeUrl: "/cosmos.gov.v1.MsgExecLegacyContent", - value - }; - }, - vote(value: MsgVote) { - return { - typeUrl: "/cosmos.gov.v1.MsgVote", - value - }; - }, - voteWeighted(value: MsgVoteWeighted) { - return { - typeUrl: "/cosmos.gov.v1.MsgVoteWeighted", - value - }; - }, - deposit(value: MsgDeposit) { - return { - typeUrl: "/cosmos.gov.v1.MsgDeposit", - value - }; - } - }, - fromPartial: { - submitProposal(value: MsgSubmitProposal) { - return { - typeUrl: "/cosmos.gov.v1.MsgSubmitProposal", - value: MsgSubmitProposal.fromPartial(value) - }; - }, - execLegacyContent(value: MsgExecLegacyContent) { - return { - typeUrl: "/cosmos.gov.v1.MsgExecLegacyContent", - value: MsgExecLegacyContent.fromPartial(value) - }; - }, - vote(value: MsgVote) { - return { - typeUrl: "/cosmos.gov.v1.MsgVote", - value: MsgVote.fromPartial(value) - }; - }, - voteWeighted(value: MsgVoteWeighted) { - return { - typeUrl: "/cosmos.gov.v1.MsgVoteWeighted", - value: MsgVoteWeighted.fromPartial(value) - }; - }, - deposit(value: MsgDeposit) { - return { - typeUrl: "/cosmos.gov.v1.MsgDeposit", - value: MsgDeposit.fromPartial(value) - }; - } - } -}; \ No newline at end of file diff --git a/packages/proto/src/codegen/cosmos/gov/v1/tx.ts b/packages/proto/src/codegen/cosmos/gov/v1/tx.ts deleted file mode 100644 index 889ecd53..00000000 --- a/packages/proto/src/codegen/cosmos/gov/v1/tx.ts +++ /dev/null @@ -1,518 +0,0 @@ -import { Any, AnySDKType } from "../../../google/protobuf/any"; -import { Coin, CoinSDKType } from "../../base/v1beta1/coin"; -import { VoteOption, WeightedVoteOption, WeightedVoteOptionSDKType } from "./gov"; -import { Long, DeepPartial } from "../../../helpers"; -import * as _m0 from "protobufjs/minimal"; -/** - * MsgSubmitProposal defines an sdk.Msg type that supports submitting arbitrary - * proposal Content. - */ -export interface MsgSubmitProposal { - messages: Any[]; - initialDeposit: Coin[]; - proposer: string; - /** metadata is any arbitrary metadata attached to the proposal. */ - metadata: string; -} -/** - * MsgSubmitProposal defines an sdk.Msg type that supports submitting arbitrary - * proposal Content. - */ -export interface MsgSubmitProposalSDKType { - messages: AnySDKType[]; - initial_deposit: CoinSDKType[]; - proposer: string; - metadata: string; -} -/** MsgSubmitProposalResponse defines the Msg/SubmitProposal response type. */ -export interface MsgSubmitProposalResponse { - proposalId: Long; -} -/** MsgSubmitProposalResponse defines the Msg/SubmitProposal response type. */ -export interface MsgSubmitProposalResponseSDKType { - proposal_id: Long; -} -/** - * MsgExecLegacyContent is used to wrap the legacy content field into a message. - * This ensures backwards compatibility with v1beta1.MsgSubmitProposal. - */ -export interface MsgExecLegacyContent { - /** content is the proposal's content. */ - content: Any; - /** authority must be the gov module address. */ - authority: string; -} -/** - * MsgExecLegacyContent is used to wrap the legacy content field into a message. - * This ensures backwards compatibility with v1beta1.MsgSubmitProposal. - */ -export interface MsgExecLegacyContentSDKType { - content: AnySDKType; - authority: string; -} -/** MsgExecLegacyContentResponse defines the Msg/ExecLegacyContent response type. */ -export interface MsgExecLegacyContentResponse {} -/** MsgExecLegacyContentResponse defines the Msg/ExecLegacyContent response type. */ -export interface MsgExecLegacyContentResponseSDKType {} -/** MsgVote defines a message to cast a vote. */ -export interface MsgVote { - proposalId: Long; - voter: string; - option: VoteOption; - metadata: string; -} -/** MsgVote defines a message to cast a vote. */ -export interface MsgVoteSDKType { - proposal_id: Long; - voter: string; - option: VoteOption; - metadata: string; -} -/** MsgVoteResponse defines the Msg/Vote response type. */ -export interface MsgVoteResponse {} -/** MsgVoteResponse defines the Msg/Vote response type. */ -export interface MsgVoteResponseSDKType {} -/** MsgVoteWeighted defines a message to cast a vote. */ -export interface MsgVoteWeighted { - proposalId: Long; - voter: string; - options: WeightedVoteOption[]; - metadata: string; -} -/** MsgVoteWeighted defines a message to cast a vote. */ -export interface MsgVoteWeightedSDKType { - proposal_id: Long; - voter: string; - options: WeightedVoteOptionSDKType[]; - metadata: string; -} -/** MsgVoteWeightedResponse defines the Msg/VoteWeighted response type. */ -export interface MsgVoteWeightedResponse {} -/** MsgVoteWeightedResponse defines the Msg/VoteWeighted response type. */ -export interface MsgVoteWeightedResponseSDKType {} -/** MsgDeposit defines a message to submit a deposit to an existing proposal. */ -export interface MsgDeposit { - proposalId: Long; - depositor: string; - amount: Coin[]; -} -/** MsgDeposit defines a message to submit a deposit to an existing proposal. */ -export interface MsgDepositSDKType { - proposal_id: Long; - depositor: string; - amount: CoinSDKType[]; -} -/** MsgDepositResponse defines the Msg/Deposit response type. */ -export interface MsgDepositResponse {} -/** MsgDepositResponse defines the Msg/Deposit response type. */ -export interface MsgDepositResponseSDKType {} -function createBaseMsgSubmitProposal(): MsgSubmitProposal { - return { - messages: [], - initialDeposit: [], - proposer: "", - metadata: "" - }; -} -export const MsgSubmitProposal = { - encode(message: MsgSubmitProposal, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - for (const v of message.messages) { - Any.encode(v!, writer.uint32(10).fork()).ldelim(); - } - for (const v of message.initialDeposit) { - Coin.encode(v!, writer.uint32(18).fork()).ldelim(); - } - if (message.proposer !== "") { - writer.uint32(26).string(message.proposer); - } - if (message.metadata !== "") { - writer.uint32(34).string(message.metadata); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): MsgSubmitProposal { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgSubmitProposal(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.messages.push(Any.decode(reader, reader.uint32())); - break; - case 2: - message.initialDeposit.push(Coin.decode(reader, reader.uint32())); - break; - case 3: - message.proposer = reader.string(); - break; - case 4: - message.metadata = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): MsgSubmitProposal { - const message = createBaseMsgSubmitProposal(); - message.messages = object.messages?.map(e => Any.fromPartial(e)) || []; - message.initialDeposit = object.initialDeposit?.map(e => Coin.fromPartial(e)) || []; - message.proposer = object.proposer ?? ""; - message.metadata = object.metadata ?? ""; - return message; - } -}; -function createBaseMsgSubmitProposalResponse(): MsgSubmitProposalResponse { - return { - proposalId: Long.UZERO - }; -} -export const MsgSubmitProposalResponse = { - encode(message: MsgSubmitProposalResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (!message.proposalId.isZero()) { - writer.uint32(8).uint64(message.proposalId); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): MsgSubmitProposalResponse { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgSubmitProposalResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = (reader.uint64() as Long); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): MsgSubmitProposalResponse { - const message = createBaseMsgSubmitProposalResponse(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? Long.fromValue(object.proposalId) : Long.UZERO; - return message; - } -}; -function createBaseMsgExecLegacyContent(): MsgExecLegacyContent { - return { - content: undefined, - authority: "" - }; -} -export const MsgExecLegacyContent = { - encode(message: MsgExecLegacyContent, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.content !== undefined) { - Any.encode(message.content, writer.uint32(10).fork()).ldelim(); - } - if (message.authority !== "") { - writer.uint32(18).string(message.authority); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): MsgExecLegacyContent { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgExecLegacyContent(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.content = Any.decode(reader, reader.uint32()); - break; - case 2: - message.authority = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): MsgExecLegacyContent { - const message = createBaseMsgExecLegacyContent(); - message.content = object.content !== undefined && object.content !== null ? Any.fromPartial(object.content) : undefined; - message.authority = object.authority ?? ""; - return message; - } -}; -function createBaseMsgExecLegacyContentResponse(): MsgExecLegacyContentResponse { - return {}; -} -export const MsgExecLegacyContentResponse = { - encode(_: MsgExecLegacyContentResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): MsgExecLegacyContentResponse { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgExecLegacyContentResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_: DeepPartial): MsgExecLegacyContentResponse { - const message = createBaseMsgExecLegacyContentResponse(); - return message; - } -}; -function createBaseMsgVote(): MsgVote { - return { - proposalId: Long.UZERO, - voter: "", - option: 0, - metadata: "" - }; -} -export const MsgVote = { - encode(message: MsgVote, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (!message.proposalId.isZero()) { - writer.uint32(8).uint64(message.proposalId); - } - if (message.voter !== "") { - writer.uint32(18).string(message.voter); - } - if (message.option !== 0) { - writer.uint32(24).int32(message.option); - } - if (message.metadata !== "") { - writer.uint32(34).string(message.metadata); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): MsgVote { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgVote(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = (reader.uint64() as Long); - break; - case 2: - message.voter = reader.string(); - break; - case 3: - message.option = (reader.int32() as any); - break; - case 4: - message.metadata = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): MsgVote { - const message = createBaseMsgVote(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? Long.fromValue(object.proposalId) : Long.UZERO; - message.voter = object.voter ?? ""; - message.option = object.option ?? 0; - message.metadata = object.metadata ?? ""; - return message; - } -}; -function createBaseMsgVoteResponse(): MsgVoteResponse { - return {}; -} -export const MsgVoteResponse = { - encode(_: MsgVoteResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): MsgVoteResponse { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgVoteResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_: DeepPartial): MsgVoteResponse { - const message = createBaseMsgVoteResponse(); - return message; - } -}; -function createBaseMsgVoteWeighted(): MsgVoteWeighted { - return { - proposalId: Long.UZERO, - voter: "", - options: [], - metadata: "" - }; -} -export const MsgVoteWeighted = { - encode(message: MsgVoteWeighted, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (!message.proposalId.isZero()) { - writer.uint32(8).uint64(message.proposalId); - } - if (message.voter !== "") { - writer.uint32(18).string(message.voter); - } - for (const v of message.options) { - WeightedVoteOption.encode(v!, writer.uint32(26).fork()).ldelim(); - } - if (message.metadata !== "") { - writer.uint32(34).string(message.metadata); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): MsgVoteWeighted { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgVoteWeighted(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = (reader.uint64() as Long); - break; - case 2: - message.voter = reader.string(); - break; - case 3: - message.options.push(WeightedVoteOption.decode(reader, reader.uint32())); - break; - case 4: - message.metadata = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): MsgVoteWeighted { - const message = createBaseMsgVoteWeighted(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? Long.fromValue(object.proposalId) : Long.UZERO; - message.voter = object.voter ?? ""; - message.options = object.options?.map(e => WeightedVoteOption.fromPartial(e)) || []; - message.metadata = object.metadata ?? ""; - return message; - } -}; -function createBaseMsgVoteWeightedResponse(): MsgVoteWeightedResponse { - return {}; -} -export const MsgVoteWeightedResponse = { - encode(_: MsgVoteWeightedResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): MsgVoteWeightedResponse { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgVoteWeightedResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_: DeepPartial): MsgVoteWeightedResponse { - const message = createBaseMsgVoteWeightedResponse(); - return message; - } -}; -function createBaseMsgDeposit(): MsgDeposit { - return { - proposalId: Long.UZERO, - depositor: "", - amount: [] - }; -} -export const MsgDeposit = { - encode(message: MsgDeposit, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (!message.proposalId.isZero()) { - writer.uint32(8).uint64(message.proposalId); - } - if (message.depositor !== "") { - writer.uint32(18).string(message.depositor); - } - for (const v of message.amount) { - Coin.encode(v!, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): MsgDeposit { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgDeposit(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = (reader.uint64() as Long); - break; - case 2: - message.depositor = reader.string(); - break; - case 3: - message.amount.push(Coin.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): MsgDeposit { - const message = createBaseMsgDeposit(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? Long.fromValue(object.proposalId) : Long.UZERO; - message.depositor = object.depositor ?? ""; - message.amount = object.amount?.map(e => Coin.fromPartial(e)) || []; - return message; - } -}; -function createBaseMsgDepositResponse(): MsgDepositResponse { - return {}; -} -export const MsgDepositResponse = { - encode(_: MsgDepositResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): MsgDepositResponse { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgDepositResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_: DeepPartial): MsgDepositResponse { - const message = createBaseMsgDepositResponse(); - return message; - } -}; \ No newline at end of file diff --git a/packages/proto/src/codegen/cosmos/gov/v1beta1/query.rpc.Query.ts b/packages/proto/src/codegen/cosmos/gov/v1beta1/query.rpc.Query.ts new file mode 100644 index 00000000..9c0507da --- /dev/null +++ b/packages/proto/src/codegen/cosmos/gov/v1beta1/query.rpc.Query.ts @@ -0,0 +1,107 @@ +import { Rpc } from "../../../helpers"; +import * as _m0 from "protobufjs/minimal"; +import { QueryClient, createProtobufRpcClient } from "@cosmjs/stargate"; +import { QueryProposalRequest, QueryProposalResponse, QueryProposalsRequest, QueryProposalsResponse, QueryVoteRequest, QueryVoteResponse, QueryVotesRequest, QueryVotesResponse, QueryParamsRequest, QueryParamsResponse, QueryDepositRequest, QueryDepositResponse, QueryDepositsRequest, QueryDepositsResponse, QueryTallyResultRequest, QueryTallyResultResponse } from "./query"; +/** Query defines the gRPC querier service for gov module */ +export interface Query { + /** Proposal queries proposal details based on ProposalID. */ + proposal(request: QueryProposalRequest): Promise; + /** Proposals queries all proposals based on given status. */ + proposals(request: QueryProposalsRequest): Promise; + /** Vote queries voted information based on proposalID, voterAddr. */ + vote(request: QueryVoteRequest): Promise; + /** Votes queries votes of a given proposal. */ + votes(request: QueryVotesRequest): Promise; + /** Params queries all parameters of the gov module. */ + params(request: QueryParamsRequest): Promise; + /** Deposit queries single deposit information based proposalID, depositAddr. */ + deposit(request: QueryDepositRequest): Promise; + /** Deposits queries all deposits of a single proposal. */ + deposits(request: QueryDepositsRequest): Promise; + /** TallyResult queries the tally of a proposal vote. */ + tallyResult(request: QueryTallyResultRequest): Promise; +} +export class QueryClientImpl implements Query { + private readonly rpc: Rpc; + constructor(rpc: Rpc) { + this.rpc = rpc; + this.proposal = this.proposal.bind(this); + this.proposals = this.proposals.bind(this); + this.vote = this.vote.bind(this); + this.votes = this.votes.bind(this); + this.params = this.params.bind(this); + this.deposit = this.deposit.bind(this); + this.deposits = this.deposits.bind(this); + this.tallyResult = this.tallyResult.bind(this); + } + proposal(request: QueryProposalRequest): Promise { + const data = QueryProposalRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.gov.v1beta1.Query", "Proposal", data); + return promise.then(data => QueryProposalResponse.decode(new _m0.Reader(data))); + } + proposals(request: QueryProposalsRequest): Promise { + const data = QueryProposalsRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.gov.v1beta1.Query", "Proposals", data); + return promise.then(data => QueryProposalsResponse.decode(new _m0.Reader(data))); + } + vote(request: QueryVoteRequest): Promise { + const data = QueryVoteRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.gov.v1beta1.Query", "Vote", data); + return promise.then(data => QueryVoteResponse.decode(new _m0.Reader(data))); + } + votes(request: QueryVotesRequest): Promise { + const data = QueryVotesRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.gov.v1beta1.Query", "Votes", data); + return promise.then(data => QueryVotesResponse.decode(new _m0.Reader(data))); + } + params(request: QueryParamsRequest): Promise { + const data = QueryParamsRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.gov.v1beta1.Query", "Params", data); + return promise.then(data => QueryParamsResponse.decode(new _m0.Reader(data))); + } + deposit(request: QueryDepositRequest): Promise { + const data = QueryDepositRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.gov.v1beta1.Query", "Deposit", data); + return promise.then(data => QueryDepositResponse.decode(new _m0.Reader(data))); + } + deposits(request: QueryDepositsRequest): Promise { + const data = QueryDepositsRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.gov.v1beta1.Query", "Deposits", data); + return promise.then(data => QueryDepositsResponse.decode(new _m0.Reader(data))); + } + tallyResult(request: QueryTallyResultRequest): Promise { + const data = QueryTallyResultRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.gov.v1beta1.Query", "TallyResult", data); + return promise.then(data => QueryTallyResultResponse.decode(new _m0.Reader(data))); + } +} +export const createRpcQueryExtension = (base: QueryClient) => { + const rpc = createProtobufRpcClient(base); + const queryService = new QueryClientImpl(rpc); + return { + proposal(request: QueryProposalRequest): Promise { + return queryService.proposal(request); + }, + proposals(request: QueryProposalsRequest): Promise { + return queryService.proposals(request); + }, + vote(request: QueryVoteRequest): Promise { + return queryService.vote(request); + }, + votes(request: QueryVotesRequest): Promise { + return queryService.votes(request); + }, + params(request: QueryParamsRequest): Promise { + return queryService.params(request); + }, + deposit(request: QueryDepositRequest): Promise { + return queryService.deposit(request); + }, + deposits(request: QueryDepositsRequest): Promise { + return queryService.deposits(request); + }, + tallyResult(request: QueryTallyResultRequest): Promise { + return queryService.tallyResult(request); + } + }; +}; \ No newline at end of file diff --git a/packages/proto/src/codegen/cosmos/gov/v1beta1/tx.amino.ts b/packages/proto/src/codegen/cosmos/gov/v1beta1/tx.amino.ts index cd3194be..b536073d 100644 --- a/packages/proto/src/codegen/cosmos/gov/v1beta1/tx.amino.ts +++ b/packages/proto/src/codegen/cosmos/gov/v1beta1/tx.amino.ts @@ -1,3 +1,4 @@ +//@ts-nocheck import { voteOptionFromJSON } from "./gov"; import { AminoMsg } from "@cosmjs/amino"; import { Long } from "../../../helpers"; diff --git a/packages/proto/src/codegen/cosmos/gov/v1beta1/tx.registry.ts b/packages/proto/src/codegen/cosmos/gov/v1beta1/tx.registry.ts index fbcb08aa..604c0b30 100644 --- a/packages/proto/src/codegen/cosmos/gov/v1beta1/tx.registry.ts +++ b/packages/proto/src/codegen/cosmos/gov/v1beta1/tx.registry.ts @@ -1,3 +1,4 @@ +//@ts-nocheck import { GeneratedType, Registry } from "@cosmjs/proto-signing"; import { MsgSubmitProposal, MsgVote, MsgVoteWeighted, MsgDeposit } from "./tx"; export const registry: ReadonlyArray<[string, GeneratedType]> = [["/cosmos.gov.v1beta1.MsgSubmitProposal", MsgSubmitProposal], ["/cosmos.gov.v1beta1.MsgVote", MsgVote], ["/cosmos.gov.v1beta1.MsgVoteWeighted", MsgVoteWeighted], ["/cosmos.gov.v1beta1.MsgDeposit", MsgDeposit]]; diff --git a/packages/proto/src/codegen/cosmos/gov/v1beta1/tx.rpc.msg.ts b/packages/proto/src/codegen/cosmos/gov/v1beta1/tx.rpc.msg.ts new file mode 100644 index 00000000..6600e5f9 --- /dev/null +++ b/packages/proto/src/codegen/cosmos/gov/v1beta1/tx.rpc.msg.ts @@ -0,0 +1,48 @@ +import { Rpc } from "../../../helpers"; +import * as _m0 from "protobufjs/minimal"; +import { MsgSubmitProposal, MsgSubmitProposalResponse, MsgVote, MsgVoteResponse, MsgVoteWeighted, MsgVoteWeightedResponse, MsgDeposit, MsgDepositResponse } from "./tx"; +/** Msg defines the bank Msg service. */ +export interface Msg { + /** SubmitProposal defines a method to create new proposal given a content. */ + submitProposal(request: MsgSubmitProposal): Promise; + /** Vote defines a method to add a vote on a specific proposal. */ + vote(request: MsgVote): Promise; + /** + * VoteWeighted defines a method to add a weighted vote on a specific proposal. + * + * Since: cosmos-sdk 0.43 + */ + voteWeighted(request: MsgVoteWeighted): Promise; + /** Deposit defines a method to add deposit on a specific proposal. */ + deposit(request: MsgDeposit): Promise; +} +export class MsgClientImpl implements Msg { + private readonly rpc: Rpc; + constructor(rpc: Rpc) { + this.rpc = rpc; + this.submitProposal = this.submitProposal.bind(this); + this.vote = this.vote.bind(this); + this.voteWeighted = this.voteWeighted.bind(this); + this.deposit = this.deposit.bind(this); + } + submitProposal(request: MsgSubmitProposal): Promise { + const data = MsgSubmitProposal.encode(request).finish(); + const promise = this.rpc.request("cosmos.gov.v1beta1.Msg", "SubmitProposal", data); + return promise.then(data => MsgSubmitProposalResponse.decode(new _m0.Reader(data))); + } + vote(request: MsgVote): Promise { + const data = MsgVote.encode(request).finish(); + const promise = this.rpc.request("cosmos.gov.v1beta1.Msg", "Vote", data); + return promise.then(data => MsgVoteResponse.decode(new _m0.Reader(data))); + } + voteWeighted(request: MsgVoteWeighted): Promise { + const data = MsgVoteWeighted.encode(request).finish(); + const promise = this.rpc.request("cosmos.gov.v1beta1.Msg", "VoteWeighted", data); + return promise.then(data => MsgVoteWeightedResponse.decode(new _m0.Reader(data))); + } + deposit(request: MsgDeposit): Promise { + const data = MsgDeposit.encode(request).finish(); + const promise = this.rpc.request("cosmos.gov.v1beta1.Msg", "Deposit", data); + return promise.then(data => MsgDepositResponse.decode(new _m0.Reader(data))); + } +} \ No newline at end of file diff --git a/packages/proto/src/codegen/cosmos/group/v1/events.ts b/packages/proto/src/codegen/cosmos/group/v1/events.ts deleted file mode 100644 index 15f2857d..00000000 --- a/packages/proto/src/codegen/cosmos/group/v1/events.ts +++ /dev/null @@ -1,421 +0,0 @@ -import { ProposalExecutorResult } from "./types"; -import { Long, DeepPartial } from "../../../helpers"; -import * as _m0 from "protobufjs/minimal"; -/** EventCreateGroup is an event emitted when a group is created. */ -export interface EventCreateGroup { - /** group_id is the unique ID of the group. */ - groupId: Long; -} -/** EventCreateGroup is an event emitted when a group is created. */ -export interface EventCreateGroupSDKType { - group_id: Long; -} -/** EventUpdateGroup is an event emitted when a group is updated. */ -export interface EventUpdateGroup { - /** group_id is the unique ID of the group. */ - groupId: Long; -} -/** EventUpdateGroup is an event emitted when a group is updated. */ -export interface EventUpdateGroupSDKType { - group_id: Long; -} -/** EventCreateGroupPolicy is an event emitted when a group policy is created. */ -export interface EventCreateGroupPolicy { - /** address is the account address of the group policy. */ - address: string; -} -/** EventCreateGroupPolicy is an event emitted when a group policy is created. */ -export interface EventCreateGroupPolicySDKType { - address: string; -} -/** EventUpdateGroupPolicy is an event emitted when a group policy is updated. */ -export interface EventUpdateGroupPolicy { - /** address is the account address of the group policy. */ - address: string; -} -/** EventUpdateGroupPolicy is an event emitted when a group policy is updated. */ -export interface EventUpdateGroupPolicySDKType { - address: string; -} -/** EventSubmitProposal is an event emitted when a proposal is created. */ -export interface EventSubmitProposal { - /** proposal_id is the unique ID of the proposal. */ - proposalId: Long; -} -/** EventSubmitProposal is an event emitted when a proposal is created. */ -export interface EventSubmitProposalSDKType { - proposal_id: Long; -} -/** EventWithdrawProposal is an event emitted when a proposal is withdrawn. */ -export interface EventWithdrawProposal { - /** proposal_id is the unique ID of the proposal. */ - proposalId: Long; -} -/** EventWithdrawProposal is an event emitted when a proposal is withdrawn. */ -export interface EventWithdrawProposalSDKType { - proposal_id: Long; -} -/** EventVote is an event emitted when a voter votes on a proposal. */ -export interface EventVote { - /** proposal_id is the unique ID of the proposal. */ - proposalId: Long; -} -/** EventVote is an event emitted when a voter votes on a proposal. */ -export interface EventVoteSDKType { - proposal_id: Long; -} -/** EventExec is an event emitted when a proposal is executed. */ -export interface EventExec { - /** proposal_id is the unique ID of the proposal. */ - proposalId: Long; - /** result is the proposal execution result. */ - result: ProposalExecutorResult; -} -/** EventExec is an event emitted when a proposal is executed. */ -export interface EventExecSDKType { - proposal_id: Long; - result: ProposalExecutorResult; -} -/** EventLeaveGroup is an event emitted when group member leaves the group. */ -export interface EventLeaveGroup { - /** group_id is the unique ID of the group. */ - groupId: Long; - /** address is the account address of the group member. */ - address: string; -} -/** EventLeaveGroup is an event emitted when group member leaves the group. */ -export interface EventLeaveGroupSDKType { - group_id: Long; - address: string; -} -function createBaseEventCreateGroup(): EventCreateGroup { - return { - groupId: Long.UZERO - }; -} -export const EventCreateGroup = { - encode(message: EventCreateGroup, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (!message.groupId.isZero()) { - writer.uint32(8).uint64(message.groupId); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): EventCreateGroup { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventCreateGroup(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.groupId = (reader.uint64() as Long); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): EventCreateGroup { - const message = createBaseEventCreateGroup(); - message.groupId = object.groupId !== undefined && object.groupId !== null ? Long.fromValue(object.groupId) : Long.UZERO; - return message; - } -}; -function createBaseEventUpdateGroup(): EventUpdateGroup { - return { - groupId: Long.UZERO - }; -} -export const EventUpdateGroup = { - encode(message: EventUpdateGroup, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (!message.groupId.isZero()) { - writer.uint32(8).uint64(message.groupId); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): EventUpdateGroup { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventUpdateGroup(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.groupId = (reader.uint64() as Long); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): EventUpdateGroup { - const message = createBaseEventUpdateGroup(); - message.groupId = object.groupId !== undefined && object.groupId !== null ? Long.fromValue(object.groupId) : Long.UZERO; - return message; - } -}; -function createBaseEventCreateGroupPolicy(): EventCreateGroupPolicy { - return { - address: "" - }; -} -export const EventCreateGroupPolicy = { - encode(message: EventCreateGroupPolicy, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.address !== "") { - writer.uint32(10).string(message.address); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): EventCreateGroupPolicy { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventCreateGroupPolicy(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.address = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): EventCreateGroupPolicy { - const message = createBaseEventCreateGroupPolicy(); - message.address = object.address ?? ""; - return message; - } -}; -function createBaseEventUpdateGroupPolicy(): EventUpdateGroupPolicy { - return { - address: "" - }; -} -export const EventUpdateGroupPolicy = { - encode(message: EventUpdateGroupPolicy, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.address !== "") { - writer.uint32(10).string(message.address); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): EventUpdateGroupPolicy { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventUpdateGroupPolicy(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.address = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): EventUpdateGroupPolicy { - const message = createBaseEventUpdateGroupPolicy(); - message.address = object.address ?? ""; - return message; - } -}; -function createBaseEventSubmitProposal(): EventSubmitProposal { - return { - proposalId: Long.UZERO - }; -} -export const EventSubmitProposal = { - encode(message: EventSubmitProposal, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (!message.proposalId.isZero()) { - writer.uint32(8).uint64(message.proposalId); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): EventSubmitProposal { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventSubmitProposal(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = (reader.uint64() as Long); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): EventSubmitProposal { - const message = createBaseEventSubmitProposal(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? Long.fromValue(object.proposalId) : Long.UZERO; - return message; - } -}; -function createBaseEventWithdrawProposal(): EventWithdrawProposal { - return { - proposalId: Long.UZERO - }; -} -export const EventWithdrawProposal = { - encode(message: EventWithdrawProposal, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (!message.proposalId.isZero()) { - writer.uint32(8).uint64(message.proposalId); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): EventWithdrawProposal { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventWithdrawProposal(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = (reader.uint64() as Long); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): EventWithdrawProposal { - const message = createBaseEventWithdrawProposal(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? Long.fromValue(object.proposalId) : Long.UZERO; - return message; - } -}; -function createBaseEventVote(): EventVote { - return { - proposalId: Long.UZERO - }; -} -export const EventVote = { - encode(message: EventVote, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (!message.proposalId.isZero()) { - writer.uint32(8).uint64(message.proposalId); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): EventVote { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventVote(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = (reader.uint64() as Long); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): EventVote { - const message = createBaseEventVote(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? Long.fromValue(object.proposalId) : Long.UZERO; - return message; - } -}; -function createBaseEventExec(): EventExec { - return { - proposalId: Long.UZERO, - result: 0 - }; -} -export const EventExec = { - encode(message: EventExec, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (!message.proposalId.isZero()) { - writer.uint32(8).uint64(message.proposalId); - } - if (message.result !== 0) { - writer.uint32(16).int32(message.result); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): EventExec { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventExec(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = (reader.uint64() as Long); - break; - case 2: - message.result = (reader.int32() as any); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): EventExec { - const message = createBaseEventExec(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? Long.fromValue(object.proposalId) : Long.UZERO; - message.result = object.result ?? 0; - return message; - } -}; -function createBaseEventLeaveGroup(): EventLeaveGroup { - return { - groupId: Long.UZERO, - address: "" - }; -} -export const EventLeaveGroup = { - encode(message: EventLeaveGroup, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (!message.groupId.isZero()) { - writer.uint32(8).uint64(message.groupId); - } - if (message.address !== "") { - writer.uint32(18).string(message.address); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): EventLeaveGroup { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventLeaveGroup(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.groupId = (reader.uint64() as Long); - break; - case 2: - message.address = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): EventLeaveGroup { - const message = createBaseEventLeaveGroup(); - message.groupId = object.groupId !== undefined && object.groupId !== null ? Long.fromValue(object.groupId) : Long.UZERO; - message.address = object.address ?? ""; - return message; - } -}; \ No newline at end of file diff --git a/packages/proto/src/codegen/cosmos/group/v1/genesis.ts b/packages/proto/src/codegen/cosmos/group/v1/genesis.ts deleted file mode 100644 index 6080b16b..00000000 --- a/packages/proto/src/codegen/cosmos/group/v1/genesis.ts +++ /dev/null @@ -1,133 +0,0 @@ -import { GroupInfo, GroupInfoSDKType, GroupMember, GroupMemberSDKType, GroupPolicyInfo, GroupPolicyInfoSDKType, Proposal, ProposalSDKType, Vote, VoteSDKType } from "./types"; -import { Long, DeepPartial } from "../../../helpers"; -import * as _m0 from "protobufjs/minimal"; -/** GenesisState defines the group module's genesis state. */ -export interface GenesisState { - /** - * group_seq is the group table orm.Sequence, - * it is used to get the next group ID. - */ - groupSeq: Long; - /** groups is the list of groups info. */ - groups: GroupInfo[]; - /** group_members is the list of groups members. */ - groupMembers: GroupMember[]; - /** - * group_policy_seq is the group policy table orm.Sequence, - * it is used to generate the next group policy account address. - */ - groupPolicySeq: Long; - /** group_policies is the list of group policies info. */ - groupPolicies: GroupPolicyInfo[]; - /** - * proposal_seq is the proposal table orm.Sequence, - * it is used to get the next proposal ID. - */ - proposalSeq: Long; - /** proposals is the list of proposals. */ - proposals: Proposal[]; - /** votes is the list of votes. */ - votes: Vote[]; -} -/** GenesisState defines the group module's genesis state. */ -export interface GenesisStateSDKType { - group_seq: Long; - groups: GroupInfoSDKType[]; - group_members: GroupMemberSDKType[]; - group_policy_seq: Long; - group_policies: GroupPolicyInfoSDKType[]; - proposal_seq: Long; - proposals: ProposalSDKType[]; - votes: VoteSDKType[]; -} -function createBaseGenesisState(): GenesisState { - return { - groupSeq: Long.UZERO, - groups: [], - groupMembers: [], - groupPolicySeq: Long.UZERO, - groupPolicies: [], - proposalSeq: Long.UZERO, - proposals: [], - votes: [] - }; -} -export const GenesisState = { - encode(message: GenesisState, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (!message.groupSeq.isZero()) { - writer.uint32(8).uint64(message.groupSeq); - } - for (const v of message.groups) { - GroupInfo.encode(v!, writer.uint32(18).fork()).ldelim(); - } - for (const v of message.groupMembers) { - GroupMember.encode(v!, writer.uint32(26).fork()).ldelim(); - } - if (!message.groupPolicySeq.isZero()) { - writer.uint32(32).uint64(message.groupPolicySeq); - } - for (const v of message.groupPolicies) { - GroupPolicyInfo.encode(v!, writer.uint32(42).fork()).ldelim(); - } - if (!message.proposalSeq.isZero()) { - writer.uint32(48).uint64(message.proposalSeq); - } - for (const v of message.proposals) { - Proposal.encode(v!, writer.uint32(58).fork()).ldelim(); - } - for (const v of message.votes) { - Vote.encode(v!, writer.uint32(66).fork()).ldelim(); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): GenesisState { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGenesisState(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.groupSeq = (reader.uint64() as Long); - break; - case 2: - message.groups.push(GroupInfo.decode(reader, reader.uint32())); - break; - case 3: - message.groupMembers.push(GroupMember.decode(reader, reader.uint32())); - break; - case 4: - message.groupPolicySeq = (reader.uint64() as Long); - break; - case 5: - message.groupPolicies.push(GroupPolicyInfo.decode(reader, reader.uint32())); - break; - case 6: - message.proposalSeq = (reader.uint64() as Long); - break; - case 7: - message.proposals.push(Proposal.decode(reader, reader.uint32())); - break; - case 8: - message.votes.push(Vote.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): GenesisState { - const message = createBaseGenesisState(); - message.groupSeq = object.groupSeq !== undefined && object.groupSeq !== null ? Long.fromValue(object.groupSeq) : Long.UZERO; - message.groups = object.groups?.map(e => GroupInfo.fromPartial(e)) || []; - message.groupMembers = object.groupMembers?.map(e => GroupMember.fromPartial(e)) || []; - message.groupPolicySeq = object.groupPolicySeq !== undefined && object.groupPolicySeq !== null ? Long.fromValue(object.groupPolicySeq) : Long.UZERO; - message.groupPolicies = object.groupPolicies?.map(e => GroupPolicyInfo.fromPartial(e)) || []; - message.proposalSeq = object.proposalSeq !== undefined && object.proposalSeq !== null ? Long.fromValue(object.proposalSeq) : Long.UZERO; - message.proposals = object.proposals?.map(e => Proposal.fromPartial(e)) || []; - message.votes = object.votes?.map(e => Vote.fromPartial(e)) || []; - return message; - } -}; \ No newline at end of file diff --git a/packages/proto/src/codegen/cosmos/group/v1/query.lcd.ts b/packages/proto/src/codegen/cosmos/group/v1/query.lcd.ts deleted file mode 100644 index cf24469f..00000000 --- a/packages/proto/src/codegen/cosmos/group/v1/query.lcd.ts +++ /dev/null @@ -1,139 +0,0 @@ -import { setPaginationParams } from "../../../helpers"; -import { LCDClient } from "@osmonauts/lcd"; -import { QueryGroupInfoRequest, QueryGroupInfoResponseSDKType, QueryGroupPolicyInfoRequest, QueryGroupPolicyInfoResponseSDKType, QueryGroupMembersRequest, QueryGroupMembersResponseSDKType, QueryGroupsByAdminRequest, QueryGroupsByAdminResponseSDKType, QueryGroupPoliciesByGroupRequest, QueryGroupPoliciesByGroupResponseSDKType, QueryGroupPoliciesByAdminRequest, QueryGroupPoliciesByAdminResponseSDKType, QueryProposalRequest, QueryProposalResponseSDKType, QueryProposalsByGroupPolicyRequest, QueryProposalsByGroupPolicyResponseSDKType, QueryVoteByProposalVoterRequest, QueryVoteByProposalVoterResponseSDKType, QueryVotesByProposalRequest, QueryVotesByProposalResponseSDKType, QueryVotesByVoterRequest, QueryVotesByVoterResponseSDKType, QueryGroupsByMemberRequest, QueryGroupsByMemberResponseSDKType, QueryTallyResultRequest, QueryTallyResultResponseSDKType } from "./query"; -export class LCDQueryClient { - req: LCDClient; - constructor({ - requestClient - }: { - requestClient: LCDClient; - }) { - this.req = requestClient; - this.groupInfo = this.groupInfo.bind(this); - this.groupPolicyInfo = this.groupPolicyInfo.bind(this); - this.groupMembers = this.groupMembers.bind(this); - this.groupsByAdmin = this.groupsByAdmin.bind(this); - this.groupPoliciesByGroup = this.groupPoliciesByGroup.bind(this); - this.groupPoliciesByAdmin = this.groupPoliciesByAdmin.bind(this); - this.proposal = this.proposal.bind(this); - this.proposalsByGroupPolicy = this.proposalsByGroupPolicy.bind(this); - this.voteByProposalVoter = this.voteByProposalVoter.bind(this); - this.votesByProposal = this.votesByProposal.bind(this); - this.votesByVoter = this.votesByVoter.bind(this); - this.groupsByMember = this.groupsByMember.bind(this); - this.tallyResult = this.tallyResult.bind(this); - } - /* GroupInfo queries group info based on group id. */ - async groupInfo(params: QueryGroupInfoRequest): Promise { - const endpoint = `cosmos/group/v1/group_info/${params.groupId}`; - return await this.req.get(endpoint); - } - /* GroupPolicyInfo queries group policy info based on account address of group policy. */ - async groupPolicyInfo(params: QueryGroupPolicyInfoRequest): Promise { - const endpoint = `cosmos/group/v1/group_policy_info/${params.address}`; - return await this.req.get(endpoint); - } - /* GroupMembers queries members of a group */ - async groupMembers(params: QueryGroupMembersRequest): Promise { - const options: any = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `cosmos/group/v1/group_members/${params.groupId}`; - return await this.req.get(endpoint, options); - } - /* GroupsByAdmin queries groups by admin address. */ - async groupsByAdmin(params: QueryGroupsByAdminRequest): Promise { - const options: any = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `cosmos/group/v1/groups_by_admin/${params.admin}`; - return await this.req.get(endpoint, options); - } - /* GroupPoliciesByGroup queries group policies by group id. */ - async groupPoliciesByGroup(params: QueryGroupPoliciesByGroupRequest): Promise { - const options: any = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `cosmos/group/v1/group_policies_by_group/${params.groupId}`; - return await this.req.get(endpoint, options); - } - /* GroupsByAdmin queries group policies by admin address. */ - async groupPoliciesByAdmin(params: QueryGroupPoliciesByAdminRequest): Promise { - const options: any = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `cosmos/group/v1/group_policies_by_admin/${params.admin}`; - return await this.req.get(endpoint, options); - } - /* Proposal queries a proposal based on proposal id. */ - async proposal(params: QueryProposalRequest): Promise { - const endpoint = `cosmos/group/v1/proposal/${params.proposalId}`; - return await this.req.get(endpoint); - } - /* ProposalsByGroupPolicy queries proposals based on account address of group policy. */ - async proposalsByGroupPolicy(params: QueryProposalsByGroupPolicyRequest): Promise { - const options: any = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `cosmos/group/v1/proposals_by_group_policy/${params.address}`; - return await this.req.get(endpoint, options); - } - /* VoteByProposalVoter queries a vote by proposal id and voter. */ - async voteByProposalVoter(params: QueryVoteByProposalVoterRequest): Promise { - const endpoint = `cosmos/group/v1/vote_by_proposal_voter/${params.proposalId}/${params.voter}`; - return await this.req.get(endpoint); - } - /* VotesByProposal queries a vote by proposal. */ - async votesByProposal(params: QueryVotesByProposalRequest): Promise { - const options: any = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `cosmos/group/v1/votes_by_proposal/${params.proposalId}`; - return await this.req.get(endpoint, options); - } - /* VotesByVoter queries a vote by voter. */ - async votesByVoter(params: QueryVotesByVoterRequest): Promise { - const options: any = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `cosmos/group/v1/votes_by_voter/${params.voter}`; - return await this.req.get(endpoint, options); - } - /* GroupsByMember queries groups by member address. */ - async groupsByMember(params: QueryGroupsByMemberRequest): Promise { - const options: any = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `cosmos/group/v1/groups_by_member/${params.address}`; - return await this.req.get(endpoint, options); - } - /* TallyResult queries the tally of a proposal votes. */ - async tallyResult(params: QueryTallyResultRequest): Promise { - const endpoint = `cosmos/group/v1/proposals/${params.proposalId}/tally`; - return await this.req.get(endpoint); - } -} \ No newline at end of file diff --git a/packages/proto/src/codegen/cosmos/group/v1/query.ts b/packages/proto/src/codegen/cosmos/group/v1/query.ts deleted file mode 100644 index f59b532d..00000000 --- a/packages/proto/src/codegen/cosmos/group/v1/query.ts +++ /dev/null @@ -1,1335 +0,0 @@ -import { PageRequest, PageRequestSDKType, PageResponse, PageResponseSDKType } from "../../base/query/v1beta1/pagination"; -import { GroupInfo, GroupInfoSDKType, GroupPolicyInfo, GroupPolicyInfoSDKType, GroupMember, GroupMemberSDKType, Proposal, ProposalSDKType, Vote, VoteSDKType, TallyResult, TallyResultSDKType } from "./types"; -import { Long, DeepPartial } from "../../../helpers"; -import * as _m0 from "protobufjs/minimal"; -/** QueryGroupInfoRequest is the Query/GroupInfo request type. */ -export interface QueryGroupInfoRequest { - /** group_id is the unique ID of the group. */ - groupId: Long; -} -/** QueryGroupInfoRequest is the Query/GroupInfo request type. */ -export interface QueryGroupInfoRequestSDKType { - group_id: Long; -} -/** QueryGroupInfoResponse is the Query/GroupInfo response type. */ -export interface QueryGroupInfoResponse { - /** info is the GroupInfo for the group. */ - info: GroupInfo; -} -/** QueryGroupInfoResponse is the Query/GroupInfo response type. */ -export interface QueryGroupInfoResponseSDKType { - info: GroupInfoSDKType; -} -/** QueryGroupPolicyInfoRequest is the Query/GroupPolicyInfo request type. */ -export interface QueryGroupPolicyInfoRequest { - /** address is the account address of the group policy. */ - address: string; -} -/** QueryGroupPolicyInfoRequest is the Query/GroupPolicyInfo request type. */ -export interface QueryGroupPolicyInfoRequestSDKType { - address: string; -} -/** QueryGroupPolicyInfoResponse is the Query/GroupPolicyInfo response type. */ -export interface QueryGroupPolicyInfoResponse { - /** info is the GroupPolicyInfo for the group policy. */ - info: GroupPolicyInfo; -} -/** QueryGroupPolicyInfoResponse is the Query/GroupPolicyInfo response type. */ -export interface QueryGroupPolicyInfoResponseSDKType { - info: GroupPolicyInfoSDKType; -} -/** QueryGroupMembersRequest is the Query/GroupMembers request type. */ -export interface QueryGroupMembersRequest { - /** group_id is the unique ID of the group. */ - groupId: Long; - /** pagination defines an optional pagination for the request. */ - pagination: PageRequest; -} -/** QueryGroupMembersRequest is the Query/GroupMembers request type. */ -export interface QueryGroupMembersRequestSDKType { - group_id: Long; - pagination: PageRequestSDKType; -} -/** QueryGroupMembersResponse is the Query/GroupMembersResponse response type. */ -export interface QueryGroupMembersResponse { - /** members are the members of the group with given group_id. */ - members: GroupMember[]; - /** pagination defines the pagination in the response. */ - pagination: PageResponse; -} -/** QueryGroupMembersResponse is the Query/GroupMembersResponse response type. */ -export interface QueryGroupMembersResponseSDKType { - members: GroupMemberSDKType[]; - pagination: PageResponseSDKType; -} -/** QueryGroupsByAdminRequest is the Query/GroupsByAdmin request type. */ -export interface QueryGroupsByAdminRequest { - /** admin is the account address of a group's admin. */ - admin: string; - /** pagination defines an optional pagination for the request. */ - pagination: PageRequest; -} -/** QueryGroupsByAdminRequest is the Query/GroupsByAdmin request type. */ -export interface QueryGroupsByAdminRequestSDKType { - admin: string; - pagination: PageRequestSDKType; -} -/** QueryGroupsByAdminResponse is the Query/GroupsByAdminResponse response type. */ -export interface QueryGroupsByAdminResponse { - /** groups are the groups info with the provided admin. */ - groups: GroupInfo[]; - /** pagination defines the pagination in the response. */ - pagination: PageResponse; -} -/** QueryGroupsByAdminResponse is the Query/GroupsByAdminResponse response type. */ -export interface QueryGroupsByAdminResponseSDKType { - groups: GroupInfoSDKType[]; - pagination: PageResponseSDKType; -} -/** QueryGroupPoliciesByGroupRequest is the Query/GroupPoliciesByGroup request type. */ -export interface QueryGroupPoliciesByGroupRequest { - /** group_id is the unique ID of the group policy's group. */ - groupId: Long; - /** pagination defines an optional pagination for the request. */ - pagination: PageRequest; -} -/** QueryGroupPoliciesByGroupRequest is the Query/GroupPoliciesByGroup request type. */ -export interface QueryGroupPoliciesByGroupRequestSDKType { - group_id: Long; - pagination: PageRequestSDKType; -} -/** QueryGroupPoliciesByGroupResponse is the Query/GroupPoliciesByGroup response type. */ -export interface QueryGroupPoliciesByGroupResponse { - /** group_policies are the group policies info associated with the provided group. */ - groupPolicies: GroupPolicyInfo[]; - /** pagination defines the pagination in the response. */ - pagination: PageResponse; -} -/** QueryGroupPoliciesByGroupResponse is the Query/GroupPoliciesByGroup response type. */ -export interface QueryGroupPoliciesByGroupResponseSDKType { - group_policies: GroupPolicyInfoSDKType[]; - pagination: PageResponseSDKType; -} -/** QueryGroupPoliciesByAdminRequest is the Query/GroupPoliciesByAdmin request type. */ -export interface QueryGroupPoliciesByAdminRequest { - /** admin is the admin address of the group policy. */ - admin: string; - /** pagination defines an optional pagination for the request. */ - pagination: PageRequest; -} -/** QueryGroupPoliciesByAdminRequest is the Query/GroupPoliciesByAdmin request type. */ -export interface QueryGroupPoliciesByAdminRequestSDKType { - admin: string; - pagination: PageRequestSDKType; -} -/** QueryGroupPoliciesByAdminResponse is the Query/GroupPoliciesByAdmin response type. */ -export interface QueryGroupPoliciesByAdminResponse { - /** group_policies are the group policies info with provided admin. */ - groupPolicies: GroupPolicyInfo[]; - /** pagination defines the pagination in the response. */ - pagination: PageResponse; -} -/** QueryGroupPoliciesByAdminResponse is the Query/GroupPoliciesByAdmin response type. */ -export interface QueryGroupPoliciesByAdminResponseSDKType { - group_policies: GroupPolicyInfoSDKType[]; - pagination: PageResponseSDKType; -} -/** QueryProposalRequest is the Query/Proposal request type. */ -export interface QueryProposalRequest { - /** proposal_id is the unique ID of a proposal. */ - proposalId: Long; -} -/** QueryProposalRequest is the Query/Proposal request type. */ -export interface QueryProposalRequestSDKType { - proposal_id: Long; -} -/** QueryProposalResponse is the Query/Proposal response type. */ -export interface QueryProposalResponse { - /** proposal is the proposal info. */ - proposal: Proposal; -} -/** QueryProposalResponse is the Query/Proposal response type. */ -export interface QueryProposalResponseSDKType { - proposal: ProposalSDKType; -} -/** QueryProposalsByGroupPolicyRequest is the Query/ProposalByGroupPolicy request type. */ -export interface QueryProposalsByGroupPolicyRequest { - /** address is the account address of the group policy related to proposals. */ - address: string; - /** pagination defines an optional pagination for the request. */ - pagination: PageRequest; -} -/** QueryProposalsByGroupPolicyRequest is the Query/ProposalByGroupPolicy request type. */ -export interface QueryProposalsByGroupPolicyRequestSDKType { - address: string; - pagination: PageRequestSDKType; -} -/** QueryProposalsByGroupPolicyResponse is the Query/ProposalByGroupPolicy response type. */ -export interface QueryProposalsByGroupPolicyResponse { - /** proposals are the proposals with given group policy. */ - proposals: Proposal[]; - /** pagination defines the pagination in the response. */ - pagination: PageResponse; -} -/** QueryProposalsByGroupPolicyResponse is the Query/ProposalByGroupPolicy response type. */ -export interface QueryProposalsByGroupPolicyResponseSDKType { - proposals: ProposalSDKType[]; - pagination: PageResponseSDKType; -} -/** QueryVoteByProposalVoterRequest is the Query/VoteByProposalVoter request type. */ -export interface QueryVoteByProposalVoterRequest { - /** proposal_id is the unique ID of a proposal. */ - proposalId: Long; - /** voter is a proposal voter account address. */ - voter: string; -} -/** QueryVoteByProposalVoterRequest is the Query/VoteByProposalVoter request type. */ -export interface QueryVoteByProposalVoterRequestSDKType { - proposal_id: Long; - voter: string; -} -/** QueryVoteByProposalVoterResponse is the Query/VoteByProposalVoter response type. */ -export interface QueryVoteByProposalVoterResponse { - /** vote is the vote with given proposal_id and voter. */ - vote: Vote; -} -/** QueryVoteByProposalVoterResponse is the Query/VoteByProposalVoter response type. */ -export interface QueryVoteByProposalVoterResponseSDKType { - vote: VoteSDKType; -} -/** QueryVotesByProposalRequest is the Query/VotesByProposal request type. */ -export interface QueryVotesByProposalRequest { - /** proposal_id is the unique ID of a proposal. */ - proposalId: Long; - /** pagination defines an optional pagination for the request. */ - pagination: PageRequest; -} -/** QueryVotesByProposalRequest is the Query/VotesByProposal request type. */ -export interface QueryVotesByProposalRequestSDKType { - proposal_id: Long; - pagination: PageRequestSDKType; -} -/** QueryVotesByProposalResponse is the Query/VotesByProposal response type. */ -export interface QueryVotesByProposalResponse { - /** votes are the list of votes for given proposal_id. */ - votes: Vote[]; - /** pagination defines the pagination in the response. */ - pagination: PageResponse; -} -/** QueryVotesByProposalResponse is the Query/VotesByProposal response type. */ -export interface QueryVotesByProposalResponseSDKType { - votes: VoteSDKType[]; - pagination: PageResponseSDKType; -} -/** QueryVotesByVoterRequest is the Query/VotesByVoter request type. */ -export interface QueryVotesByVoterRequest { - /** voter is a proposal voter account address. */ - voter: string; - /** pagination defines an optional pagination for the request. */ - pagination: PageRequest; -} -/** QueryVotesByVoterRequest is the Query/VotesByVoter request type. */ -export interface QueryVotesByVoterRequestSDKType { - voter: string; - pagination: PageRequestSDKType; -} -/** QueryVotesByVoterResponse is the Query/VotesByVoter response type. */ -export interface QueryVotesByVoterResponse { - /** votes are the list of votes by given voter. */ - votes: Vote[]; - /** pagination defines the pagination in the response. */ - pagination: PageResponse; -} -/** QueryVotesByVoterResponse is the Query/VotesByVoter response type. */ -export interface QueryVotesByVoterResponseSDKType { - votes: VoteSDKType[]; - pagination: PageResponseSDKType; -} -/** QueryGroupsByMemberRequest is the Query/GroupsByMember request type. */ -export interface QueryGroupsByMemberRequest { - /** address is the group member address. */ - address: string; - /** pagination defines an optional pagination for the request. */ - pagination: PageRequest; -} -/** QueryGroupsByMemberRequest is the Query/GroupsByMember request type. */ -export interface QueryGroupsByMemberRequestSDKType { - address: string; - pagination: PageRequestSDKType; -} -/** QueryGroupsByMemberResponse is the Query/GroupsByMember response type. */ -export interface QueryGroupsByMemberResponse { - /** groups are the groups info with the provided group member. */ - groups: GroupInfo[]; - /** pagination defines the pagination in the response. */ - pagination: PageResponse; -} -/** QueryGroupsByMemberResponse is the Query/GroupsByMember response type. */ -export interface QueryGroupsByMemberResponseSDKType { - groups: GroupInfoSDKType[]; - pagination: PageResponseSDKType; -} -/** QueryTallyResultRequest is the Query/TallyResult request type. */ -export interface QueryTallyResultRequest { - /** proposal_id is the unique id of a proposal. */ - proposalId: Long; -} -/** QueryTallyResultRequest is the Query/TallyResult request type. */ -export interface QueryTallyResultRequestSDKType { - proposal_id: Long; -} -/** QueryTallyResultResponse is the Query/TallyResult response type. */ -export interface QueryTallyResultResponse { - /** tally defines the requested tally. */ - tally: TallyResult; -} -/** QueryTallyResultResponse is the Query/TallyResult response type. */ -export interface QueryTallyResultResponseSDKType { - tally: TallyResultSDKType; -} -function createBaseQueryGroupInfoRequest(): QueryGroupInfoRequest { - return { - groupId: Long.UZERO - }; -} -export const QueryGroupInfoRequest = { - encode(message: QueryGroupInfoRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (!message.groupId.isZero()) { - writer.uint32(8).uint64(message.groupId); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): QueryGroupInfoRequest { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryGroupInfoRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.groupId = (reader.uint64() as Long); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): QueryGroupInfoRequest { - const message = createBaseQueryGroupInfoRequest(); - message.groupId = object.groupId !== undefined && object.groupId !== null ? Long.fromValue(object.groupId) : Long.UZERO; - return message; - } -}; -function createBaseQueryGroupInfoResponse(): QueryGroupInfoResponse { - return { - info: GroupInfo.fromPartial({}) - }; -} -export const QueryGroupInfoResponse = { - encode(message: QueryGroupInfoResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.info !== undefined) { - GroupInfo.encode(message.info, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): QueryGroupInfoResponse { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryGroupInfoResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.info = GroupInfo.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): QueryGroupInfoResponse { - const message = createBaseQueryGroupInfoResponse(); - message.info = object.info !== undefined && object.info !== null ? GroupInfo.fromPartial(object.info) : undefined; - return message; - } -}; -function createBaseQueryGroupPolicyInfoRequest(): QueryGroupPolicyInfoRequest { - return { - address: "" - }; -} -export const QueryGroupPolicyInfoRequest = { - encode(message: QueryGroupPolicyInfoRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.address !== "") { - writer.uint32(10).string(message.address); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): QueryGroupPolicyInfoRequest { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryGroupPolicyInfoRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.address = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): QueryGroupPolicyInfoRequest { - const message = createBaseQueryGroupPolicyInfoRequest(); - message.address = object.address ?? ""; - return message; - } -}; -function createBaseQueryGroupPolicyInfoResponse(): QueryGroupPolicyInfoResponse { - return { - info: GroupPolicyInfo.fromPartial({}) - }; -} -export const QueryGroupPolicyInfoResponse = { - encode(message: QueryGroupPolicyInfoResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.info !== undefined) { - GroupPolicyInfo.encode(message.info, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): QueryGroupPolicyInfoResponse { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryGroupPolicyInfoResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.info = GroupPolicyInfo.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): QueryGroupPolicyInfoResponse { - const message = createBaseQueryGroupPolicyInfoResponse(); - message.info = object.info !== undefined && object.info !== null ? GroupPolicyInfo.fromPartial(object.info) : undefined; - return message; - } -}; -function createBaseQueryGroupMembersRequest(): QueryGroupMembersRequest { - return { - groupId: Long.UZERO, - pagination: PageRequest.fromPartial({}) - }; -} -export const QueryGroupMembersRequest = { - encode(message: QueryGroupMembersRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (!message.groupId.isZero()) { - writer.uint32(8).uint64(message.groupId); - } - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): QueryGroupMembersRequest { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryGroupMembersRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.groupId = (reader.uint64() as Long); - break; - case 2: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): QueryGroupMembersRequest { - const message = createBaseQueryGroupMembersRequest(); - message.groupId = object.groupId !== undefined && object.groupId !== null ? Long.fromValue(object.groupId) : Long.UZERO; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - } -}; -function createBaseQueryGroupMembersResponse(): QueryGroupMembersResponse { - return { - members: [], - pagination: PageResponse.fromPartial({}) - }; -} -export const QueryGroupMembersResponse = { - encode(message: QueryGroupMembersResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - for (const v of message.members) { - GroupMember.encode(v!, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): QueryGroupMembersResponse { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryGroupMembersResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.members.push(GroupMember.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): QueryGroupMembersResponse { - const message = createBaseQueryGroupMembersResponse(); - message.members = object.members?.map(e => GroupMember.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - } -}; -function createBaseQueryGroupsByAdminRequest(): QueryGroupsByAdminRequest { - return { - admin: "", - pagination: PageRequest.fromPartial({}) - }; -} -export const QueryGroupsByAdminRequest = { - encode(message: QueryGroupsByAdminRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.admin !== "") { - writer.uint32(10).string(message.admin); - } - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): QueryGroupsByAdminRequest { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryGroupsByAdminRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.admin = reader.string(); - break; - case 2: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): QueryGroupsByAdminRequest { - const message = createBaseQueryGroupsByAdminRequest(); - message.admin = object.admin ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - } -}; -function createBaseQueryGroupsByAdminResponse(): QueryGroupsByAdminResponse { - return { - groups: [], - pagination: PageResponse.fromPartial({}) - }; -} -export const QueryGroupsByAdminResponse = { - encode(message: QueryGroupsByAdminResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - for (const v of message.groups) { - GroupInfo.encode(v!, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): QueryGroupsByAdminResponse { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryGroupsByAdminResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.groups.push(GroupInfo.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): QueryGroupsByAdminResponse { - const message = createBaseQueryGroupsByAdminResponse(); - message.groups = object.groups?.map(e => GroupInfo.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - } -}; -function createBaseQueryGroupPoliciesByGroupRequest(): QueryGroupPoliciesByGroupRequest { - return { - groupId: Long.UZERO, - pagination: PageRequest.fromPartial({}) - }; -} -export const QueryGroupPoliciesByGroupRequest = { - encode(message: QueryGroupPoliciesByGroupRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (!message.groupId.isZero()) { - writer.uint32(8).uint64(message.groupId); - } - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): QueryGroupPoliciesByGroupRequest { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryGroupPoliciesByGroupRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.groupId = (reader.uint64() as Long); - break; - case 2: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): QueryGroupPoliciesByGroupRequest { - const message = createBaseQueryGroupPoliciesByGroupRequest(); - message.groupId = object.groupId !== undefined && object.groupId !== null ? Long.fromValue(object.groupId) : Long.UZERO; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - } -}; -function createBaseQueryGroupPoliciesByGroupResponse(): QueryGroupPoliciesByGroupResponse { - return { - groupPolicies: [], - pagination: PageResponse.fromPartial({}) - }; -} -export const QueryGroupPoliciesByGroupResponse = { - encode(message: QueryGroupPoliciesByGroupResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - for (const v of message.groupPolicies) { - GroupPolicyInfo.encode(v!, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): QueryGroupPoliciesByGroupResponse { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryGroupPoliciesByGroupResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.groupPolicies.push(GroupPolicyInfo.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): QueryGroupPoliciesByGroupResponse { - const message = createBaseQueryGroupPoliciesByGroupResponse(); - message.groupPolicies = object.groupPolicies?.map(e => GroupPolicyInfo.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - } -}; -function createBaseQueryGroupPoliciesByAdminRequest(): QueryGroupPoliciesByAdminRequest { - return { - admin: "", - pagination: PageRequest.fromPartial({}) - }; -} -export const QueryGroupPoliciesByAdminRequest = { - encode(message: QueryGroupPoliciesByAdminRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.admin !== "") { - writer.uint32(10).string(message.admin); - } - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): QueryGroupPoliciesByAdminRequest { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryGroupPoliciesByAdminRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.admin = reader.string(); - break; - case 2: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): QueryGroupPoliciesByAdminRequest { - const message = createBaseQueryGroupPoliciesByAdminRequest(); - message.admin = object.admin ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - } -}; -function createBaseQueryGroupPoliciesByAdminResponse(): QueryGroupPoliciesByAdminResponse { - return { - groupPolicies: [], - pagination: PageResponse.fromPartial({}) - }; -} -export const QueryGroupPoliciesByAdminResponse = { - encode(message: QueryGroupPoliciesByAdminResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - for (const v of message.groupPolicies) { - GroupPolicyInfo.encode(v!, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): QueryGroupPoliciesByAdminResponse { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryGroupPoliciesByAdminResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.groupPolicies.push(GroupPolicyInfo.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): QueryGroupPoliciesByAdminResponse { - const message = createBaseQueryGroupPoliciesByAdminResponse(); - message.groupPolicies = object.groupPolicies?.map(e => GroupPolicyInfo.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - } -}; -function createBaseQueryProposalRequest(): QueryProposalRequest { - return { - proposalId: Long.UZERO - }; -} -export const QueryProposalRequest = { - encode(message: QueryProposalRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (!message.proposalId.isZero()) { - writer.uint32(8).uint64(message.proposalId); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): QueryProposalRequest { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryProposalRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = (reader.uint64() as Long); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): QueryProposalRequest { - const message = createBaseQueryProposalRequest(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? Long.fromValue(object.proposalId) : Long.UZERO; - return message; - } -}; -function createBaseQueryProposalResponse(): QueryProposalResponse { - return { - proposal: Proposal.fromPartial({}) - }; -} -export const QueryProposalResponse = { - encode(message: QueryProposalResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.proposal !== undefined) { - Proposal.encode(message.proposal, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): QueryProposalResponse { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryProposalResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposal = Proposal.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): QueryProposalResponse { - const message = createBaseQueryProposalResponse(); - message.proposal = object.proposal !== undefined && object.proposal !== null ? Proposal.fromPartial(object.proposal) : undefined; - return message; - } -}; -function createBaseQueryProposalsByGroupPolicyRequest(): QueryProposalsByGroupPolicyRequest { - return { - address: "", - pagination: PageRequest.fromPartial({}) - }; -} -export const QueryProposalsByGroupPolicyRequest = { - encode(message: QueryProposalsByGroupPolicyRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.address !== "") { - writer.uint32(10).string(message.address); - } - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): QueryProposalsByGroupPolicyRequest { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryProposalsByGroupPolicyRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.address = reader.string(); - break; - case 2: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): QueryProposalsByGroupPolicyRequest { - const message = createBaseQueryProposalsByGroupPolicyRequest(); - message.address = object.address ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - } -}; -function createBaseQueryProposalsByGroupPolicyResponse(): QueryProposalsByGroupPolicyResponse { - return { - proposals: [], - pagination: PageResponse.fromPartial({}) - }; -} -export const QueryProposalsByGroupPolicyResponse = { - encode(message: QueryProposalsByGroupPolicyResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - for (const v of message.proposals) { - Proposal.encode(v!, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): QueryProposalsByGroupPolicyResponse { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryProposalsByGroupPolicyResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposals.push(Proposal.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): QueryProposalsByGroupPolicyResponse { - const message = createBaseQueryProposalsByGroupPolicyResponse(); - message.proposals = object.proposals?.map(e => Proposal.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - } -}; -function createBaseQueryVoteByProposalVoterRequest(): QueryVoteByProposalVoterRequest { - return { - proposalId: Long.UZERO, - voter: "" - }; -} -export const QueryVoteByProposalVoterRequest = { - encode(message: QueryVoteByProposalVoterRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (!message.proposalId.isZero()) { - writer.uint32(8).uint64(message.proposalId); - } - if (message.voter !== "") { - writer.uint32(18).string(message.voter); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): QueryVoteByProposalVoterRequest { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryVoteByProposalVoterRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = (reader.uint64() as Long); - break; - case 2: - message.voter = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): QueryVoteByProposalVoterRequest { - const message = createBaseQueryVoteByProposalVoterRequest(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? Long.fromValue(object.proposalId) : Long.UZERO; - message.voter = object.voter ?? ""; - return message; - } -}; -function createBaseQueryVoteByProposalVoterResponse(): QueryVoteByProposalVoterResponse { - return { - vote: Vote.fromPartial({}) - }; -} -export const QueryVoteByProposalVoterResponse = { - encode(message: QueryVoteByProposalVoterResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.vote !== undefined) { - Vote.encode(message.vote, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): QueryVoteByProposalVoterResponse { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryVoteByProposalVoterResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.vote = Vote.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): QueryVoteByProposalVoterResponse { - const message = createBaseQueryVoteByProposalVoterResponse(); - message.vote = object.vote !== undefined && object.vote !== null ? Vote.fromPartial(object.vote) : undefined; - return message; - } -}; -function createBaseQueryVotesByProposalRequest(): QueryVotesByProposalRequest { - return { - proposalId: Long.UZERO, - pagination: PageRequest.fromPartial({}) - }; -} -export const QueryVotesByProposalRequest = { - encode(message: QueryVotesByProposalRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (!message.proposalId.isZero()) { - writer.uint32(8).uint64(message.proposalId); - } - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): QueryVotesByProposalRequest { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryVotesByProposalRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = (reader.uint64() as Long); - break; - case 2: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): QueryVotesByProposalRequest { - const message = createBaseQueryVotesByProposalRequest(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? Long.fromValue(object.proposalId) : Long.UZERO; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - } -}; -function createBaseQueryVotesByProposalResponse(): QueryVotesByProposalResponse { - return { - votes: [], - pagination: PageResponse.fromPartial({}) - }; -} -export const QueryVotesByProposalResponse = { - encode(message: QueryVotesByProposalResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - for (const v of message.votes) { - Vote.encode(v!, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): QueryVotesByProposalResponse { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryVotesByProposalResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.votes.push(Vote.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): QueryVotesByProposalResponse { - const message = createBaseQueryVotesByProposalResponse(); - message.votes = object.votes?.map(e => Vote.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - } -}; -function createBaseQueryVotesByVoterRequest(): QueryVotesByVoterRequest { - return { - voter: "", - pagination: PageRequest.fromPartial({}) - }; -} -export const QueryVotesByVoterRequest = { - encode(message: QueryVotesByVoterRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.voter !== "") { - writer.uint32(10).string(message.voter); - } - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): QueryVotesByVoterRequest { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryVotesByVoterRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.voter = reader.string(); - break; - case 2: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): QueryVotesByVoterRequest { - const message = createBaseQueryVotesByVoterRequest(); - message.voter = object.voter ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - } -}; -function createBaseQueryVotesByVoterResponse(): QueryVotesByVoterResponse { - return { - votes: [], - pagination: PageResponse.fromPartial({}) - }; -} -export const QueryVotesByVoterResponse = { - encode(message: QueryVotesByVoterResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - for (const v of message.votes) { - Vote.encode(v!, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): QueryVotesByVoterResponse { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryVotesByVoterResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.votes.push(Vote.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): QueryVotesByVoterResponse { - const message = createBaseQueryVotesByVoterResponse(); - message.votes = object.votes?.map(e => Vote.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - } -}; -function createBaseQueryGroupsByMemberRequest(): QueryGroupsByMemberRequest { - return { - address: "", - pagination: PageRequest.fromPartial({}) - }; -} -export const QueryGroupsByMemberRequest = { - encode(message: QueryGroupsByMemberRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.address !== "") { - writer.uint32(10).string(message.address); - } - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): QueryGroupsByMemberRequest { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryGroupsByMemberRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.address = reader.string(); - break; - case 2: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): QueryGroupsByMemberRequest { - const message = createBaseQueryGroupsByMemberRequest(); - message.address = object.address ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - } -}; -function createBaseQueryGroupsByMemberResponse(): QueryGroupsByMemberResponse { - return { - groups: [], - pagination: PageResponse.fromPartial({}) - }; -} -export const QueryGroupsByMemberResponse = { - encode(message: QueryGroupsByMemberResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - for (const v of message.groups) { - GroupInfo.encode(v!, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): QueryGroupsByMemberResponse { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryGroupsByMemberResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.groups.push(GroupInfo.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): QueryGroupsByMemberResponse { - const message = createBaseQueryGroupsByMemberResponse(); - message.groups = object.groups?.map(e => GroupInfo.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - } -}; -function createBaseQueryTallyResultRequest(): QueryTallyResultRequest { - return { - proposalId: Long.UZERO - }; -} -export const QueryTallyResultRequest = { - encode(message: QueryTallyResultRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (!message.proposalId.isZero()) { - writer.uint32(8).uint64(message.proposalId); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): QueryTallyResultRequest { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryTallyResultRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = (reader.uint64() as Long); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): QueryTallyResultRequest { - const message = createBaseQueryTallyResultRequest(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? Long.fromValue(object.proposalId) : Long.UZERO; - return message; - } -}; -function createBaseQueryTallyResultResponse(): QueryTallyResultResponse { - return { - tally: TallyResult.fromPartial({}) - }; -} -export const QueryTallyResultResponse = { - encode(message: QueryTallyResultResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.tally !== undefined) { - TallyResult.encode(message.tally, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): QueryTallyResultResponse { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryTallyResultResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.tally = TallyResult.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): QueryTallyResultResponse { - const message = createBaseQueryTallyResultResponse(); - message.tally = object.tally !== undefined && object.tally !== null ? TallyResult.fromPartial(object.tally) : undefined; - return message; - } -}; \ No newline at end of file diff --git a/packages/proto/src/codegen/cosmos/group/v1/tx.amino.ts b/packages/proto/src/codegen/cosmos/group/v1/tx.amino.ts deleted file mode 100644 index fc98b6b0..00000000 --- a/packages/proto/src/codegen/cosmos/group/v1/tx.amino.ts +++ /dev/null @@ -1,583 +0,0 @@ -import { voteOptionFromJSON } from "./types"; -import { AminoMsg } from "@cosmjs/amino"; -import { Long } from "../../../helpers"; -import { execFromJSON, MsgCreateGroup, MsgUpdateGroupMembers, MsgUpdateGroupAdmin, MsgUpdateGroupMetadata, MsgCreateGroupPolicy, MsgCreateGroupWithPolicy, MsgUpdateGroupPolicyAdmin, MsgUpdateGroupPolicyDecisionPolicy, MsgUpdateGroupPolicyMetadata, MsgSubmitProposal, MsgWithdrawProposal, MsgVote, MsgExec, MsgLeaveGroup } from "./tx"; -export interface MsgCreateGroupAminoType extends AminoMsg { - type: "cosmos-sdk/MsgCreateGroup"; - value: { - admin: string; - members: { - address: string; - weight: string; - metadata: string; - added_at: { - seconds: string; - nanos: number; - }; - }[]; - metadata: string; - }; -} -export interface MsgUpdateGroupMembersAminoType extends AminoMsg { - type: "cosmos-sdk/MsgUpdateGroupMembers"; - value: { - admin: string; - group_id: string; - member_updates: { - address: string; - weight: string; - metadata: string; - added_at: { - seconds: string; - nanos: number; - }; - }[]; - }; -} -export interface MsgUpdateGroupAdminAminoType extends AminoMsg { - type: "cosmos-sdk/MsgUpdateGroupAdmin"; - value: { - admin: string; - group_id: string; - new_admin: string; - }; -} -export interface MsgUpdateGroupMetadataAminoType extends AminoMsg { - type: "cosmos-sdk/MsgUpdateGroupMetadata"; - value: { - admin: string; - group_id: string; - metadata: string; - }; -} -export interface MsgCreateGroupPolicyAminoType extends AminoMsg { - type: "cosmos-sdk/MsgCreateGroupPolicy"; - value: { - admin: string; - group_id: string; - metadata: string; - decision_policy: { - type_url: string; - value: Uint8Array; - }; - }; -} -export interface MsgCreateGroupWithPolicyAminoType extends AminoMsg { - type: "cosmos-sdk/MsgCreateGroupWithPolicy"; - value: { - admin: string; - members: { - address: string; - weight: string; - metadata: string; - added_at: { - seconds: string; - nanos: number; - }; - }[]; - group_metadata: string; - group_policy_metadata: string; - group_policy_as_admin: boolean; - decision_policy: { - type_url: string; - value: Uint8Array; - }; - }; -} -export interface MsgUpdateGroupPolicyAdminAminoType extends AminoMsg { - type: "cosmos-sdk/MsgUpdateGroupPolicyAdmin"; - value: { - admin: string; - address: string; - new_admin: string; - }; -} -export interface MsgUpdateGroupPolicyDecisionPolicyAminoType extends AminoMsg { - type: "cosmos-sdk/MsgUpdateGroupPolicyDecisionPolicy"; - value: { - admin: string; - address: string; - decision_policy: { - type_url: string; - value: Uint8Array; - }; - }; -} -export interface MsgUpdateGroupPolicyMetadataAminoType extends AminoMsg { - type: "cosmos-sdk/MsgUpdateGroupPolicyMetadata"; - value: { - admin: string; - address: string; - metadata: string; - }; -} -export interface MsgSubmitProposalAminoType extends AminoMsg { - type: "cosmos-sdk/group/MsgSubmitProposal"; - value: { - address: string; - proposers: string[]; - metadata: string; - messages: { - type_url: string; - value: Uint8Array; - }[]; - exec: number; - }; -} -export interface MsgWithdrawProposalAminoType extends AminoMsg { - type: "cosmos-sdk/group/MsgWithdrawProposal"; - value: { - proposal_id: string; - address: string; - }; -} -export interface MsgVoteAminoType extends AminoMsg { - type: "cosmos-sdk/group/MsgVote"; - value: { - proposal_id: string; - voter: string; - option: number; - metadata: string; - exec: number; - }; -} -export interface MsgExecAminoType extends AminoMsg { - type: "cosmos-sdk/group/MsgExec"; - value: { - proposal_id: string; - signer: string; - }; -} -export interface MsgLeaveGroupAminoType extends AminoMsg { - type: "cosmos-sdk/group/MsgLeaveGroup"; - value: { - address: string; - group_id: string; - }; -} -export const AminoConverter = { - "/cosmos.group.v1.MsgCreateGroup": { - aminoType: "cosmos-sdk/MsgCreateGroup", - toAmino: ({ - admin, - members, - metadata - }: MsgCreateGroup): MsgCreateGroupAminoType["value"] => { - return { - admin, - members: members.map(el0 => ({ - address: el0.address, - weight: el0.weight, - metadata: el0.metadata, - added_at: el0.addedAt - })), - metadata - }; - }, - fromAmino: ({ - admin, - members, - metadata - }: MsgCreateGroupAminoType["value"]): MsgCreateGroup => { - return { - admin, - members: members.map(el0 => ({ - address: el0.address, - weight: el0.weight, - metadata: el0.metadata, - addedAt: el0.added_at - })), - metadata - }; - } - }, - "/cosmos.group.v1.MsgUpdateGroupMembers": { - aminoType: "cosmos-sdk/MsgUpdateGroupMembers", - toAmino: ({ - admin, - groupId, - memberUpdates - }: MsgUpdateGroupMembers): MsgUpdateGroupMembersAminoType["value"] => { - return { - admin, - group_id: groupId.toString(), - member_updates: memberUpdates.map(el0 => ({ - address: el0.address, - weight: el0.weight, - metadata: el0.metadata, - added_at: el0.addedAt - })) - }; - }, - fromAmino: ({ - admin, - group_id, - member_updates - }: MsgUpdateGroupMembersAminoType["value"]): MsgUpdateGroupMembers => { - return { - admin, - groupId: Long.fromString(group_id), - memberUpdates: member_updates.map(el0 => ({ - address: el0.address, - weight: el0.weight, - metadata: el0.metadata, - addedAt: el0.added_at - })) - }; - } - }, - "/cosmos.group.v1.MsgUpdateGroupAdmin": { - aminoType: "cosmos-sdk/MsgUpdateGroupAdmin", - toAmino: ({ - admin, - groupId, - newAdmin - }: MsgUpdateGroupAdmin): MsgUpdateGroupAdminAminoType["value"] => { - return { - admin, - group_id: groupId.toString(), - new_admin: newAdmin - }; - }, - fromAmino: ({ - admin, - group_id, - new_admin - }: MsgUpdateGroupAdminAminoType["value"]): MsgUpdateGroupAdmin => { - return { - admin, - groupId: Long.fromString(group_id), - newAdmin: new_admin - }; - } - }, - "/cosmos.group.v1.MsgUpdateGroupMetadata": { - aminoType: "cosmos-sdk/MsgUpdateGroupMetadata", - toAmino: ({ - admin, - groupId, - metadata - }: MsgUpdateGroupMetadata): MsgUpdateGroupMetadataAminoType["value"] => { - return { - admin, - group_id: groupId.toString(), - metadata - }; - }, - fromAmino: ({ - admin, - group_id, - metadata - }: MsgUpdateGroupMetadataAminoType["value"]): MsgUpdateGroupMetadata => { - return { - admin, - groupId: Long.fromString(group_id), - metadata - }; - } - }, - "/cosmos.group.v1.MsgCreateGroupPolicy": { - aminoType: "cosmos-sdk/MsgCreateGroupPolicy", - toAmino: ({ - admin, - groupId, - metadata, - decisionPolicy - }: MsgCreateGroupPolicy): MsgCreateGroupPolicyAminoType["value"] => { - return { - admin, - group_id: groupId.toString(), - metadata, - decision_policy: { - type_url: decisionPolicy.typeUrl, - value: decisionPolicy.value - } - }; - }, - fromAmino: ({ - admin, - group_id, - metadata, - decision_policy - }: MsgCreateGroupPolicyAminoType["value"]): MsgCreateGroupPolicy => { - return { - admin, - groupId: Long.fromString(group_id), - metadata, - decisionPolicy: { - typeUrl: decision_policy.type_url, - value: decision_policy.value - } - }; - } - }, - "/cosmos.group.v1.MsgCreateGroupWithPolicy": { - aminoType: "cosmos-sdk/MsgCreateGroupWithPolicy", - toAmino: ({ - admin, - members, - groupMetadata, - groupPolicyMetadata, - groupPolicyAsAdmin, - decisionPolicy - }: MsgCreateGroupWithPolicy): MsgCreateGroupWithPolicyAminoType["value"] => { - return { - admin, - members: members.map(el0 => ({ - address: el0.address, - weight: el0.weight, - metadata: el0.metadata, - added_at: el0.addedAt - })), - group_metadata: groupMetadata, - group_policy_metadata: groupPolicyMetadata, - group_policy_as_admin: groupPolicyAsAdmin, - decision_policy: { - type_url: decisionPolicy.typeUrl, - value: decisionPolicy.value - } - }; - }, - fromAmino: ({ - admin, - members, - group_metadata, - group_policy_metadata, - group_policy_as_admin, - decision_policy - }: MsgCreateGroupWithPolicyAminoType["value"]): MsgCreateGroupWithPolicy => { - return { - admin, - members: members.map(el0 => ({ - address: el0.address, - weight: el0.weight, - metadata: el0.metadata, - addedAt: el0.added_at - })), - groupMetadata: group_metadata, - groupPolicyMetadata: group_policy_metadata, - groupPolicyAsAdmin: group_policy_as_admin, - decisionPolicy: { - typeUrl: decision_policy.type_url, - value: decision_policy.value - } - }; - } - }, - "/cosmos.group.v1.MsgUpdateGroupPolicyAdmin": { - aminoType: "cosmos-sdk/MsgUpdateGroupPolicyAdmin", - toAmino: ({ - admin, - address, - newAdmin - }: MsgUpdateGroupPolicyAdmin): MsgUpdateGroupPolicyAdminAminoType["value"] => { - return { - admin, - address, - new_admin: newAdmin - }; - }, - fromAmino: ({ - admin, - address, - new_admin - }: MsgUpdateGroupPolicyAdminAminoType["value"]): MsgUpdateGroupPolicyAdmin => { - return { - admin, - address, - newAdmin: new_admin - }; - } - }, - "/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy": { - aminoType: "cosmos-sdk/MsgUpdateGroupPolicyDecisionPolicy", - toAmino: ({ - admin, - address, - decisionPolicy - }: MsgUpdateGroupPolicyDecisionPolicy): MsgUpdateGroupPolicyDecisionPolicyAminoType["value"] => { - return { - admin, - address, - decision_policy: { - type_url: decisionPolicy.typeUrl, - value: decisionPolicy.value - } - }; - }, - fromAmino: ({ - admin, - address, - decision_policy - }: MsgUpdateGroupPolicyDecisionPolicyAminoType["value"]): MsgUpdateGroupPolicyDecisionPolicy => { - return { - admin, - address, - decisionPolicy: { - typeUrl: decision_policy.type_url, - value: decision_policy.value - } - }; - } - }, - "/cosmos.group.v1.MsgUpdateGroupPolicyMetadata": { - aminoType: "cosmos-sdk/MsgUpdateGroupPolicyMetadata", - toAmino: ({ - admin, - address, - metadata - }: MsgUpdateGroupPolicyMetadata): MsgUpdateGroupPolicyMetadataAminoType["value"] => { - return { - admin, - address, - metadata - }; - }, - fromAmino: ({ - admin, - address, - metadata - }: MsgUpdateGroupPolicyMetadataAminoType["value"]): MsgUpdateGroupPolicyMetadata => { - return { - admin, - address, - metadata - }; - } - }, - "/cosmos.group.v1.MsgSubmitProposal": { - aminoType: "cosmos-sdk/group/MsgSubmitProposal", - toAmino: ({ - address, - proposers, - metadata, - messages, - exec - }: MsgSubmitProposal): MsgSubmitProposalAminoType["value"] => { - return { - address, - proposers, - metadata, - messages: messages.map(el0 => ({ - type_url: el0.typeUrl, - value: el0.value - })), - exec - }; - }, - fromAmino: ({ - address, - proposers, - metadata, - messages, - exec - }: MsgSubmitProposalAminoType["value"]): MsgSubmitProposal => { - return { - address, - proposers, - metadata, - messages: messages.map(el0 => ({ - typeUrl: el0.type_url, - value: el0.value - })), - exec: execFromJSON(exec) - }; - } - }, - "/cosmos.group.v1.MsgWithdrawProposal": { - aminoType: "cosmos-sdk/group/MsgWithdrawProposal", - toAmino: ({ - proposalId, - address - }: MsgWithdrawProposal): MsgWithdrawProposalAminoType["value"] => { - return { - proposal_id: proposalId.toString(), - address - }; - }, - fromAmino: ({ - proposal_id, - address - }: MsgWithdrawProposalAminoType["value"]): MsgWithdrawProposal => { - return { - proposalId: Long.fromString(proposal_id), - address - }; - } - }, - "/cosmos.group.v1.MsgVote": { - aminoType: "cosmos-sdk/group/MsgVote", - toAmino: ({ - proposalId, - voter, - option, - metadata, - exec - }: MsgVote): MsgVoteAminoType["value"] => { - return { - proposal_id: proposalId.toString(), - voter, - option, - metadata, - exec - }; - }, - fromAmino: ({ - proposal_id, - voter, - option, - metadata, - exec - }: MsgVoteAminoType["value"]): MsgVote => { - return { - proposalId: Long.fromString(proposal_id), - voter, - option: voteOptionFromJSON(option), - metadata, - exec: execFromJSON(exec) - }; - } - }, - "/cosmos.group.v1.MsgExec": { - aminoType: "cosmos-sdk/group/MsgExec", - toAmino: ({ - proposalId, - signer - }: MsgExec): MsgExecAminoType["value"] => { - return { - proposal_id: proposalId.toString(), - signer - }; - }, - fromAmino: ({ - proposal_id, - signer - }: MsgExecAminoType["value"]): MsgExec => { - return { - proposalId: Long.fromString(proposal_id), - signer - }; - } - }, - "/cosmos.group.v1.MsgLeaveGroup": { - aminoType: "cosmos-sdk/group/MsgLeaveGroup", - toAmino: ({ - address, - groupId - }: MsgLeaveGroup): MsgLeaveGroupAminoType["value"] => { - return { - address, - group_id: groupId.toString() - }; - }, - fromAmino: ({ - address, - group_id - }: MsgLeaveGroupAminoType["value"]): MsgLeaveGroup => { - return { - address, - groupId: Long.fromString(group_id) - }; - } - } -}; \ No newline at end of file diff --git a/packages/proto/src/codegen/cosmos/group/v1/tx.registry.ts b/packages/proto/src/codegen/cosmos/group/v1/tx.registry.ts deleted file mode 100644 index e2000208..00000000 --- a/packages/proto/src/codegen/cosmos/group/v1/tx.registry.ts +++ /dev/null @@ -1,268 +0,0 @@ -import { GeneratedType, Registry } from "@cosmjs/proto-signing"; -import { MsgCreateGroup, MsgUpdateGroupMembers, MsgUpdateGroupAdmin, MsgUpdateGroupMetadata, MsgCreateGroupPolicy, MsgCreateGroupWithPolicy, MsgUpdateGroupPolicyAdmin, MsgUpdateGroupPolicyDecisionPolicy, MsgUpdateGroupPolicyMetadata, MsgSubmitProposal, MsgWithdrawProposal, MsgVote, MsgExec, MsgLeaveGroup } from "./tx"; -export const registry: ReadonlyArray<[string, GeneratedType]> = [["/cosmos.group.v1.MsgCreateGroup", MsgCreateGroup], ["/cosmos.group.v1.MsgUpdateGroupMembers", MsgUpdateGroupMembers], ["/cosmos.group.v1.MsgUpdateGroupAdmin", MsgUpdateGroupAdmin], ["/cosmos.group.v1.MsgUpdateGroupMetadata", MsgUpdateGroupMetadata], ["/cosmos.group.v1.MsgCreateGroupPolicy", MsgCreateGroupPolicy], ["/cosmos.group.v1.MsgCreateGroupWithPolicy", MsgCreateGroupWithPolicy], ["/cosmos.group.v1.MsgUpdateGroupPolicyAdmin", MsgUpdateGroupPolicyAdmin], ["/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy", MsgUpdateGroupPolicyDecisionPolicy], ["/cosmos.group.v1.MsgUpdateGroupPolicyMetadata", MsgUpdateGroupPolicyMetadata], ["/cosmos.group.v1.MsgSubmitProposal", MsgSubmitProposal], ["/cosmos.group.v1.MsgWithdrawProposal", MsgWithdrawProposal], ["/cosmos.group.v1.MsgVote", MsgVote], ["/cosmos.group.v1.MsgExec", MsgExec], ["/cosmos.group.v1.MsgLeaveGroup", MsgLeaveGroup]]; -export const load = (protoRegistry: Registry) => { - registry.forEach(([typeUrl, mod]) => { - protoRegistry.register(typeUrl, mod); - }); -}; -export const MessageComposer = { - encoded: { - createGroup(value: MsgCreateGroup) { - return { - typeUrl: "/cosmos.group.v1.MsgCreateGroup", - value: MsgCreateGroup.encode(value).finish() - }; - }, - updateGroupMembers(value: MsgUpdateGroupMembers) { - return { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupMembers", - value: MsgUpdateGroupMembers.encode(value).finish() - }; - }, - updateGroupAdmin(value: MsgUpdateGroupAdmin) { - return { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupAdmin", - value: MsgUpdateGroupAdmin.encode(value).finish() - }; - }, - updateGroupMetadata(value: MsgUpdateGroupMetadata) { - return { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupMetadata", - value: MsgUpdateGroupMetadata.encode(value).finish() - }; - }, - createGroupPolicy(value: MsgCreateGroupPolicy) { - return { - typeUrl: "/cosmos.group.v1.MsgCreateGroupPolicy", - value: MsgCreateGroupPolicy.encode(value).finish() - }; - }, - createGroupWithPolicy(value: MsgCreateGroupWithPolicy) { - return { - typeUrl: "/cosmos.group.v1.MsgCreateGroupWithPolicy", - value: MsgCreateGroupWithPolicy.encode(value).finish() - }; - }, - updateGroupPolicyAdmin(value: MsgUpdateGroupPolicyAdmin) { - return { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyAdmin", - value: MsgUpdateGroupPolicyAdmin.encode(value).finish() - }; - }, - updateGroupPolicyDecisionPolicy(value: MsgUpdateGroupPolicyDecisionPolicy) { - return { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy", - value: MsgUpdateGroupPolicyDecisionPolicy.encode(value).finish() - }; - }, - updateGroupPolicyMetadata(value: MsgUpdateGroupPolicyMetadata) { - return { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyMetadata", - value: MsgUpdateGroupPolicyMetadata.encode(value).finish() - }; - }, - submitProposal(value: MsgSubmitProposal) { - return { - typeUrl: "/cosmos.group.v1.MsgSubmitProposal", - value: MsgSubmitProposal.encode(value).finish() - }; - }, - withdrawProposal(value: MsgWithdrawProposal) { - return { - typeUrl: "/cosmos.group.v1.MsgWithdrawProposal", - value: MsgWithdrawProposal.encode(value).finish() - }; - }, - vote(value: MsgVote) { - return { - typeUrl: "/cosmos.group.v1.MsgVote", - value: MsgVote.encode(value).finish() - }; - }, - exec(value: MsgExec) { - return { - typeUrl: "/cosmos.group.v1.MsgExec", - value: MsgExec.encode(value).finish() - }; - }, - leaveGroup(value: MsgLeaveGroup) { - return { - typeUrl: "/cosmos.group.v1.MsgLeaveGroup", - value: MsgLeaveGroup.encode(value).finish() - }; - } - }, - withTypeUrl: { - createGroup(value: MsgCreateGroup) { - return { - typeUrl: "/cosmos.group.v1.MsgCreateGroup", - value - }; - }, - updateGroupMembers(value: MsgUpdateGroupMembers) { - return { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupMembers", - value - }; - }, - updateGroupAdmin(value: MsgUpdateGroupAdmin) { - return { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupAdmin", - value - }; - }, - updateGroupMetadata(value: MsgUpdateGroupMetadata) { - return { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupMetadata", - value - }; - }, - createGroupPolicy(value: MsgCreateGroupPolicy) { - return { - typeUrl: "/cosmos.group.v1.MsgCreateGroupPolicy", - value - }; - }, - createGroupWithPolicy(value: MsgCreateGroupWithPolicy) { - return { - typeUrl: "/cosmos.group.v1.MsgCreateGroupWithPolicy", - value - }; - }, - updateGroupPolicyAdmin(value: MsgUpdateGroupPolicyAdmin) { - return { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyAdmin", - value - }; - }, - updateGroupPolicyDecisionPolicy(value: MsgUpdateGroupPolicyDecisionPolicy) { - return { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy", - value - }; - }, - updateGroupPolicyMetadata(value: MsgUpdateGroupPolicyMetadata) { - return { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyMetadata", - value - }; - }, - submitProposal(value: MsgSubmitProposal) { - return { - typeUrl: "/cosmos.group.v1.MsgSubmitProposal", - value - }; - }, - withdrawProposal(value: MsgWithdrawProposal) { - return { - typeUrl: "/cosmos.group.v1.MsgWithdrawProposal", - value - }; - }, - vote(value: MsgVote) { - return { - typeUrl: "/cosmos.group.v1.MsgVote", - value - }; - }, - exec(value: MsgExec) { - return { - typeUrl: "/cosmos.group.v1.MsgExec", - value - }; - }, - leaveGroup(value: MsgLeaveGroup) { - return { - typeUrl: "/cosmos.group.v1.MsgLeaveGroup", - value - }; - } - }, - fromPartial: { - createGroup(value: MsgCreateGroup) { - return { - typeUrl: "/cosmos.group.v1.MsgCreateGroup", - value: MsgCreateGroup.fromPartial(value) - }; - }, - updateGroupMembers(value: MsgUpdateGroupMembers) { - return { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupMembers", - value: MsgUpdateGroupMembers.fromPartial(value) - }; - }, - updateGroupAdmin(value: MsgUpdateGroupAdmin) { - return { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupAdmin", - value: MsgUpdateGroupAdmin.fromPartial(value) - }; - }, - updateGroupMetadata(value: MsgUpdateGroupMetadata) { - return { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupMetadata", - value: MsgUpdateGroupMetadata.fromPartial(value) - }; - }, - createGroupPolicy(value: MsgCreateGroupPolicy) { - return { - typeUrl: "/cosmos.group.v1.MsgCreateGroupPolicy", - value: MsgCreateGroupPolicy.fromPartial(value) - }; - }, - createGroupWithPolicy(value: MsgCreateGroupWithPolicy) { - return { - typeUrl: "/cosmos.group.v1.MsgCreateGroupWithPolicy", - value: MsgCreateGroupWithPolicy.fromPartial(value) - }; - }, - updateGroupPolicyAdmin(value: MsgUpdateGroupPolicyAdmin) { - return { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyAdmin", - value: MsgUpdateGroupPolicyAdmin.fromPartial(value) - }; - }, - updateGroupPolicyDecisionPolicy(value: MsgUpdateGroupPolicyDecisionPolicy) { - return { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy", - value: MsgUpdateGroupPolicyDecisionPolicy.fromPartial(value) - }; - }, - updateGroupPolicyMetadata(value: MsgUpdateGroupPolicyMetadata) { - return { - typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyMetadata", - value: MsgUpdateGroupPolicyMetadata.fromPartial(value) - }; - }, - submitProposal(value: MsgSubmitProposal) { - return { - typeUrl: "/cosmos.group.v1.MsgSubmitProposal", - value: MsgSubmitProposal.fromPartial(value) - }; - }, - withdrawProposal(value: MsgWithdrawProposal) { - return { - typeUrl: "/cosmos.group.v1.MsgWithdrawProposal", - value: MsgWithdrawProposal.fromPartial(value) - }; - }, - vote(value: MsgVote) { - return { - typeUrl: "/cosmos.group.v1.MsgVote", - value: MsgVote.fromPartial(value) - }; - }, - exec(value: MsgExec) { - return { - typeUrl: "/cosmos.group.v1.MsgExec", - value: MsgExec.fromPartial(value) - }; - }, - leaveGroup(value: MsgLeaveGroup) { - return { - typeUrl: "/cosmos.group.v1.MsgLeaveGroup", - value: MsgLeaveGroup.fromPartial(value) - }; - } - } -}; \ No newline at end of file diff --git a/packages/proto/src/codegen/cosmos/group/v1/tx.ts b/packages/proto/src/codegen/cosmos/group/v1/tx.ts deleted file mode 100644 index d5af3579..00000000 --- a/packages/proto/src/codegen/cosmos/group/v1/tx.ts +++ /dev/null @@ -1,1525 +0,0 @@ -import { Member, MemberSDKType, VoteOption } from "./types"; -import { Any, AnySDKType } from "../../../google/protobuf/any"; -import { Long, DeepPartial } from "../../../helpers"; -import * as _m0 from "protobufjs/minimal"; -/** Exec defines modes of execution of a proposal on creation or on new vote. */ -export enum Exec { - /** - * EXEC_UNSPECIFIED - An empty value means that there should be a separate - * MsgExec request for the proposal to execute. - */ - EXEC_UNSPECIFIED = 0, - /** - * EXEC_TRY - Try to execute the proposal immediately. - * If the proposal is not allowed per the DecisionPolicy, - * the proposal will still be open and could - * be executed at a later point. - */ - EXEC_TRY = 1, - UNRECOGNIZED = -1, -} -export const ExecSDKType = Exec; -export function execFromJSON(object: any): Exec { - switch (object) { - case 0: - case "EXEC_UNSPECIFIED": - return Exec.EXEC_UNSPECIFIED; - case 1: - case "EXEC_TRY": - return Exec.EXEC_TRY; - case -1: - case "UNRECOGNIZED": - default: - return Exec.UNRECOGNIZED; - } -} -export function execToJSON(object: Exec): string { - switch (object) { - case Exec.EXEC_UNSPECIFIED: - return "EXEC_UNSPECIFIED"; - case Exec.EXEC_TRY: - return "EXEC_TRY"; - case Exec.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -/** MsgCreateGroup is the Msg/CreateGroup request type. */ -export interface MsgCreateGroup { - /** admin is the account address of the group admin. */ - admin: string; - /** members defines the group members. */ - members: Member[]; - /** metadata is any arbitrary metadata to attached to the group. */ - metadata: string; -} -/** MsgCreateGroup is the Msg/CreateGroup request type. */ -export interface MsgCreateGroupSDKType { - admin: string; - members: MemberSDKType[]; - metadata: string; -} -/** MsgCreateGroupResponse is the Msg/CreateGroup response type. */ -export interface MsgCreateGroupResponse { - /** group_id is the unique ID of the newly created group. */ - groupId: Long; -} -/** MsgCreateGroupResponse is the Msg/CreateGroup response type. */ -export interface MsgCreateGroupResponseSDKType { - group_id: Long; -} -/** MsgUpdateGroupMembers is the Msg/UpdateGroupMembers request type. */ -export interface MsgUpdateGroupMembers { - /** admin is the account address of the group admin. */ - admin: string; - /** group_id is the unique ID of the group. */ - groupId: Long; - /** - * member_updates is the list of members to update, - * set weight to 0 to remove a member. - */ - memberUpdates: Member[]; -} -/** MsgUpdateGroupMembers is the Msg/UpdateGroupMembers request type. */ -export interface MsgUpdateGroupMembersSDKType { - admin: string; - group_id: Long; - member_updates: MemberSDKType[]; -} -/** MsgUpdateGroupMembersResponse is the Msg/UpdateGroupMembers response type. */ -export interface MsgUpdateGroupMembersResponse {} -/** MsgUpdateGroupMembersResponse is the Msg/UpdateGroupMembers response type. */ -export interface MsgUpdateGroupMembersResponseSDKType {} -/** MsgUpdateGroupAdmin is the Msg/UpdateGroupAdmin request type. */ -export interface MsgUpdateGroupAdmin { - /** admin is the current account address of the group admin. */ - admin: string; - /** group_id is the unique ID of the group. */ - groupId: Long; - /** new_admin is the group new admin account address. */ - newAdmin: string; -} -/** MsgUpdateGroupAdmin is the Msg/UpdateGroupAdmin request type. */ -export interface MsgUpdateGroupAdminSDKType { - admin: string; - group_id: Long; - new_admin: string; -} -/** MsgUpdateGroupAdminResponse is the Msg/UpdateGroupAdmin response type. */ -export interface MsgUpdateGroupAdminResponse {} -/** MsgUpdateGroupAdminResponse is the Msg/UpdateGroupAdmin response type. */ -export interface MsgUpdateGroupAdminResponseSDKType {} -/** MsgUpdateGroupMetadata is the Msg/UpdateGroupMetadata request type. */ -export interface MsgUpdateGroupMetadata { - /** admin is the account address of the group admin. */ - admin: string; - /** group_id is the unique ID of the group. */ - groupId: Long; - /** metadata is the updated group's metadata. */ - metadata: string; -} -/** MsgUpdateGroupMetadata is the Msg/UpdateGroupMetadata request type. */ -export interface MsgUpdateGroupMetadataSDKType { - admin: string; - group_id: Long; - metadata: string; -} -/** MsgUpdateGroupMetadataResponse is the Msg/UpdateGroupMetadata response type. */ -export interface MsgUpdateGroupMetadataResponse {} -/** MsgUpdateGroupMetadataResponse is the Msg/UpdateGroupMetadata response type. */ -export interface MsgUpdateGroupMetadataResponseSDKType {} -/** MsgCreateGroupPolicy is the Msg/CreateGroupPolicy request type. */ -export interface MsgCreateGroupPolicy { - /** admin is the account address of the group admin. */ - admin: string; - /** group_id is the unique ID of the group. */ - groupId: Long; - /** metadata is any arbitrary metadata attached to the group policy. */ - metadata: string; - /** decision_policy specifies the group policy's decision policy. */ - decisionPolicy: Any; -} -/** MsgCreateGroupPolicy is the Msg/CreateGroupPolicy request type. */ -export interface MsgCreateGroupPolicySDKType { - admin: string; - group_id: Long; - metadata: string; - decision_policy: AnySDKType; -} -/** MsgCreateGroupPolicyResponse is the Msg/CreateGroupPolicy response type. */ -export interface MsgCreateGroupPolicyResponse { - /** address is the account address of the newly created group policy. */ - address: string; -} -/** MsgCreateGroupPolicyResponse is the Msg/CreateGroupPolicy response type. */ -export interface MsgCreateGroupPolicyResponseSDKType { - address: string; -} -/** MsgUpdateGroupPolicyAdmin is the Msg/UpdateGroupPolicyAdmin request type. */ -export interface MsgUpdateGroupPolicyAdmin { - /** admin is the account address of the group admin. */ - admin: string; - /** address is the account address of the group policy. */ - address: string; - /** new_admin is the new group policy admin. */ - newAdmin: string; -} -/** MsgUpdateGroupPolicyAdmin is the Msg/UpdateGroupPolicyAdmin request type. */ -export interface MsgUpdateGroupPolicyAdminSDKType { - admin: string; - address: string; - new_admin: string; -} -/** MsgCreateGroupWithPolicy is the Msg/CreateGroupWithPolicy request type. */ -export interface MsgCreateGroupWithPolicy { - /** admin is the account address of the group and group policy admin. */ - admin: string; - /** members defines the group members. */ - members: Member[]; - /** group_metadata is any arbitrary metadata attached to the group. */ - groupMetadata: string; - /** group_policy_metadata is any arbitrary metadata attached to the group policy. */ - groupPolicyMetadata: string; - /** group_policy_as_admin is a boolean field, if set to true, the group policy account address will be used as group and group policy admin. */ - groupPolicyAsAdmin: boolean; - /** decision_policy specifies the group policy's decision policy. */ - decisionPolicy: Any; -} -/** MsgCreateGroupWithPolicy is the Msg/CreateGroupWithPolicy request type. */ -export interface MsgCreateGroupWithPolicySDKType { - admin: string; - members: MemberSDKType[]; - group_metadata: string; - group_policy_metadata: string; - group_policy_as_admin: boolean; - decision_policy: AnySDKType; -} -/** MsgCreateGroupWithPolicyResponse is the Msg/CreateGroupWithPolicy response type. */ -export interface MsgCreateGroupWithPolicyResponse { - /** group_id is the unique ID of the newly created group with policy. */ - groupId: Long; - /** group_policy_address is the account address of the newly created group policy. */ - groupPolicyAddress: string; -} -/** MsgCreateGroupWithPolicyResponse is the Msg/CreateGroupWithPolicy response type. */ -export interface MsgCreateGroupWithPolicyResponseSDKType { - group_id: Long; - group_policy_address: string; -} -/** MsgUpdateGroupPolicyAdminResponse is the Msg/UpdateGroupPolicyAdmin response type. */ -export interface MsgUpdateGroupPolicyAdminResponse {} -/** MsgUpdateGroupPolicyAdminResponse is the Msg/UpdateGroupPolicyAdmin response type. */ -export interface MsgUpdateGroupPolicyAdminResponseSDKType {} -/** MsgUpdateGroupPolicyDecisionPolicy is the Msg/UpdateGroupPolicyDecisionPolicy request type. */ -export interface MsgUpdateGroupPolicyDecisionPolicy { - /** admin is the account address of the group admin. */ - admin: string; - /** address is the account address of group policy. */ - address: string; - /** decision_policy is the updated group policy's decision policy. */ - decisionPolicy: Any; -} -/** MsgUpdateGroupPolicyDecisionPolicy is the Msg/UpdateGroupPolicyDecisionPolicy request type. */ -export interface MsgUpdateGroupPolicyDecisionPolicySDKType { - admin: string; - address: string; - decision_policy: AnySDKType; -} -/** MsgUpdateGroupPolicyDecisionPolicyResponse is the Msg/UpdateGroupPolicyDecisionPolicy response type. */ -export interface MsgUpdateGroupPolicyDecisionPolicyResponse {} -/** MsgUpdateGroupPolicyDecisionPolicyResponse is the Msg/UpdateGroupPolicyDecisionPolicy response type. */ -export interface MsgUpdateGroupPolicyDecisionPolicyResponseSDKType {} -/** MsgUpdateGroupPolicyMetadata is the Msg/UpdateGroupPolicyMetadata request type. */ -export interface MsgUpdateGroupPolicyMetadata { - /** admin is the account address of the group admin. */ - admin: string; - /** address is the account address of group policy. */ - address: string; - /** metadata is the updated group policy metadata. */ - metadata: string; -} -/** MsgUpdateGroupPolicyMetadata is the Msg/UpdateGroupPolicyMetadata request type. */ -export interface MsgUpdateGroupPolicyMetadataSDKType { - admin: string; - address: string; - metadata: string; -} -/** MsgUpdateGroupPolicyMetadataResponse is the Msg/UpdateGroupPolicyMetadata response type. */ -export interface MsgUpdateGroupPolicyMetadataResponse {} -/** MsgUpdateGroupPolicyMetadataResponse is the Msg/UpdateGroupPolicyMetadata response type. */ -export interface MsgUpdateGroupPolicyMetadataResponseSDKType {} -/** MsgSubmitProposal is the Msg/SubmitProposal request type. */ -export interface MsgSubmitProposal { - /** address is the account address of group policy. */ - address: string; - /** - * proposers are the account addresses of the proposers. - * Proposers signatures will be counted as yes votes. - */ - proposers: string[]; - /** metadata is any arbitrary metadata to attached to the proposal. */ - metadata: string; - /** messages is a list of `sdk.Msg`s that will be executed if the proposal passes. */ - messages: Any[]; - /** - * exec defines the mode of execution of the proposal, - * whether it should be executed immediately on creation or not. - * If so, proposers signatures are considered as Yes votes. - */ - exec: Exec; -} -/** MsgSubmitProposal is the Msg/SubmitProposal request type. */ -export interface MsgSubmitProposalSDKType { - address: string; - proposers: string[]; - metadata: string; - messages: AnySDKType[]; - exec: Exec; -} -/** MsgSubmitProposalResponse is the Msg/SubmitProposal response type. */ -export interface MsgSubmitProposalResponse { - /** proposal is the unique ID of the proposal. */ - proposalId: Long; -} -/** MsgSubmitProposalResponse is the Msg/SubmitProposal response type. */ -export interface MsgSubmitProposalResponseSDKType { - proposal_id: Long; -} -/** MsgWithdrawProposal is the Msg/WithdrawProposal request type. */ -export interface MsgWithdrawProposal { - /** proposal is the unique ID of the proposal. */ - proposalId: Long; - /** address is the admin of the group policy or one of the proposer of the proposal. */ - address: string; -} -/** MsgWithdrawProposal is the Msg/WithdrawProposal request type. */ -export interface MsgWithdrawProposalSDKType { - proposal_id: Long; - address: string; -} -/** MsgWithdrawProposalResponse is the Msg/WithdrawProposal response type. */ -export interface MsgWithdrawProposalResponse {} -/** MsgWithdrawProposalResponse is the Msg/WithdrawProposal response type. */ -export interface MsgWithdrawProposalResponseSDKType {} -/** MsgVote is the Msg/Vote request type. */ -export interface MsgVote { - /** proposal is the unique ID of the proposal. */ - proposalId: Long; - /** voter is the voter account address. */ - voter: string; - /** option is the voter's choice on the proposal. */ - option: VoteOption; - /** metadata is any arbitrary metadata to attached to the vote. */ - metadata: string; - /** - * exec defines whether the proposal should be executed - * immediately after voting or not. - */ - exec: Exec; -} -/** MsgVote is the Msg/Vote request type. */ -export interface MsgVoteSDKType { - proposal_id: Long; - voter: string; - option: VoteOption; - metadata: string; - exec: Exec; -} -/** MsgVoteResponse is the Msg/Vote response type. */ -export interface MsgVoteResponse {} -/** MsgVoteResponse is the Msg/Vote response type. */ -export interface MsgVoteResponseSDKType {} -/** MsgExec is the Msg/Exec request type. */ -export interface MsgExec { - /** proposal is the unique ID of the proposal. */ - proposalId: Long; - /** signer is the account address used to execute the proposal. */ - signer: string; -} -/** MsgExec is the Msg/Exec request type. */ -export interface MsgExecSDKType { - proposal_id: Long; - signer: string; -} -/** MsgExecResponse is the Msg/Exec request type. */ -export interface MsgExecResponse {} -/** MsgExecResponse is the Msg/Exec request type. */ -export interface MsgExecResponseSDKType {} -/** MsgLeaveGroup is the Msg/LeaveGroup request type. */ -export interface MsgLeaveGroup { - /** address is the account address of the group member. */ - address: string; - /** group_id is the unique ID of the group. */ - groupId: Long; -} -/** MsgLeaveGroup is the Msg/LeaveGroup request type. */ -export interface MsgLeaveGroupSDKType { - address: string; - group_id: Long; -} -/** MsgLeaveGroupResponse is the Msg/LeaveGroup response type. */ -export interface MsgLeaveGroupResponse {} -/** MsgLeaveGroupResponse is the Msg/LeaveGroup response type. */ -export interface MsgLeaveGroupResponseSDKType {} -function createBaseMsgCreateGroup(): MsgCreateGroup { - return { - admin: "", - members: [], - metadata: "" - }; -} -export const MsgCreateGroup = { - encode(message: MsgCreateGroup, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.admin !== "") { - writer.uint32(10).string(message.admin); - } - for (const v of message.members) { - Member.encode(v!, writer.uint32(18).fork()).ldelim(); - } - if (message.metadata !== "") { - writer.uint32(26).string(message.metadata); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): MsgCreateGroup { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCreateGroup(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.admin = reader.string(); - break; - case 2: - message.members.push(Member.decode(reader, reader.uint32())); - break; - case 3: - message.metadata = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): MsgCreateGroup { - const message = createBaseMsgCreateGroup(); - message.admin = object.admin ?? ""; - message.members = object.members?.map(e => Member.fromPartial(e)) || []; - message.metadata = object.metadata ?? ""; - return message; - } -}; -function createBaseMsgCreateGroupResponse(): MsgCreateGroupResponse { - return { - groupId: Long.UZERO - }; -} -export const MsgCreateGroupResponse = { - encode(message: MsgCreateGroupResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (!message.groupId.isZero()) { - writer.uint32(8).uint64(message.groupId); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): MsgCreateGroupResponse { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCreateGroupResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.groupId = (reader.uint64() as Long); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): MsgCreateGroupResponse { - const message = createBaseMsgCreateGroupResponse(); - message.groupId = object.groupId !== undefined && object.groupId !== null ? Long.fromValue(object.groupId) : Long.UZERO; - return message; - } -}; -function createBaseMsgUpdateGroupMembers(): MsgUpdateGroupMembers { - return { - admin: "", - groupId: Long.UZERO, - memberUpdates: [] - }; -} -export const MsgUpdateGroupMembers = { - encode(message: MsgUpdateGroupMembers, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.admin !== "") { - writer.uint32(10).string(message.admin); - } - if (!message.groupId.isZero()) { - writer.uint32(16).uint64(message.groupId); - } - for (const v of message.memberUpdates) { - Member.encode(v!, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateGroupMembers { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateGroupMembers(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.admin = reader.string(); - break; - case 2: - message.groupId = (reader.uint64() as Long); - break; - case 3: - message.memberUpdates.push(Member.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): MsgUpdateGroupMembers { - const message = createBaseMsgUpdateGroupMembers(); - message.admin = object.admin ?? ""; - message.groupId = object.groupId !== undefined && object.groupId !== null ? Long.fromValue(object.groupId) : Long.UZERO; - message.memberUpdates = object.memberUpdates?.map(e => Member.fromPartial(e)) || []; - return message; - } -}; -function createBaseMsgUpdateGroupMembersResponse(): MsgUpdateGroupMembersResponse { - return {}; -} -export const MsgUpdateGroupMembersResponse = { - encode(_: MsgUpdateGroupMembersResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateGroupMembersResponse { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateGroupMembersResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_: DeepPartial): MsgUpdateGroupMembersResponse { - const message = createBaseMsgUpdateGroupMembersResponse(); - return message; - } -}; -function createBaseMsgUpdateGroupAdmin(): MsgUpdateGroupAdmin { - return { - admin: "", - groupId: Long.UZERO, - newAdmin: "" - }; -} -export const MsgUpdateGroupAdmin = { - encode(message: MsgUpdateGroupAdmin, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.admin !== "") { - writer.uint32(10).string(message.admin); - } - if (!message.groupId.isZero()) { - writer.uint32(16).uint64(message.groupId); - } - if (message.newAdmin !== "") { - writer.uint32(26).string(message.newAdmin); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateGroupAdmin { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateGroupAdmin(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.admin = reader.string(); - break; - case 2: - message.groupId = (reader.uint64() as Long); - break; - case 3: - message.newAdmin = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): MsgUpdateGroupAdmin { - const message = createBaseMsgUpdateGroupAdmin(); - message.admin = object.admin ?? ""; - message.groupId = object.groupId !== undefined && object.groupId !== null ? Long.fromValue(object.groupId) : Long.UZERO; - message.newAdmin = object.newAdmin ?? ""; - return message; - } -}; -function createBaseMsgUpdateGroupAdminResponse(): MsgUpdateGroupAdminResponse { - return {}; -} -export const MsgUpdateGroupAdminResponse = { - encode(_: MsgUpdateGroupAdminResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateGroupAdminResponse { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateGroupAdminResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_: DeepPartial): MsgUpdateGroupAdminResponse { - const message = createBaseMsgUpdateGroupAdminResponse(); - return message; - } -}; -function createBaseMsgUpdateGroupMetadata(): MsgUpdateGroupMetadata { - return { - admin: "", - groupId: Long.UZERO, - metadata: "" - }; -} -export const MsgUpdateGroupMetadata = { - encode(message: MsgUpdateGroupMetadata, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.admin !== "") { - writer.uint32(10).string(message.admin); - } - if (!message.groupId.isZero()) { - writer.uint32(16).uint64(message.groupId); - } - if (message.metadata !== "") { - writer.uint32(26).string(message.metadata); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateGroupMetadata { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateGroupMetadata(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.admin = reader.string(); - break; - case 2: - message.groupId = (reader.uint64() as Long); - break; - case 3: - message.metadata = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): MsgUpdateGroupMetadata { - const message = createBaseMsgUpdateGroupMetadata(); - message.admin = object.admin ?? ""; - message.groupId = object.groupId !== undefined && object.groupId !== null ? Long.fromValue(object.groupId) : Long.UZERO; - message.metadata = object.metadata ?? ""; - return message; - } -}; -function createBaseMsgUpdateGroupMetadataResponse(): MsgUpdateGroupMetadataResponse { - return {}; -} -export const MsgUpdateGroupMetadataResponse = { - encode(_: MsgUpdateGroupMetadataResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateGroupMetadataResponse { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateGroupMetadataResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_: DeepPartial): MsgUpdateGroupMetadataResponse { - const message = createBaseMsgUpdateGroupMetadataResponse(); - return message; - } -}; -function createBaseMsgCreateGroupPolicy(): MsgCreateGroupPolicy { - return { - admin: "", - groupId: Long.UZERO, - metadata: "", - decisionPolicy: undefined - }; -} -export const MsgCreateGroupPolicy = { - encode(message: MsgCreateGroupPolicy, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.admin !== "") { - writer.uint32(10).string(message.admin); - } - if (!message.groupId.isZero()) { - writer.uint32(16).uint64(message.groupId); - } - if (message.metadata !== "") { - writer.uint32(26).string(message.metadata); - } - if (message.decisionPolicy !== undefined) { - Any.encode(message.decisionPolicy, writer.uint32(34).fork()).ldelim(); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): MsgCreateGroupPolicy { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCreateGroupPolicy(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.admin = reader.string(); - break; - case 2: - message.groupId = (reader.uint64() as Long); - break; - case 3: - message.metadata = reader.string(); - break; - case 4: - message.decisionPolicy = Any.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): MsgCreateGroupPolicy { - const message = createBaseMsgCreateGroupPolicy(); - message.admin = object.admin ?? ""; - message.groupId = object.groupId !== undefined && object.groupId !== null ? Long.fromValue(object.groupId) : Long.UZERO; - message.metadata = object.metadata ?? ""; - message.decisionPolicy = object.decisionPolicy !== undefined && object.decisionPolicy !== null ? Any.fromPartial(object.decisionPolicy) : undefined; - return message; - } -}; -function createBaseMsgCreateGroupPolicyResponse(): MsgCreateGroupPolicyResponse { - return { - address: "" - }; -} -export const MsgCreateGroupPolicyResponse = { - encode(message: MsgCreateGroupPolicyResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.address !== "") { - writer.uint32(10).string(message.address); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): MsgCreateGroupPolicyResponse { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCreateGroupPolicyResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.address = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): MsgCreateGroupPolicyResponse { - const message = createBaseMsgCreateGroupPolicyResponse(); - message.address = object.address ?? ""; - return message; - } -}; -function createBaseMsgUpdateGroupPolicyAdmin(): MsgUpdateGroupPolicyAdmin { - return { - admin: "", - address: "", - newAdmin: "" - }; -} -export const MsgUpdateGroupPolicyAdmin = { - encode(message: MsgUpdateGroupPolicyAdmin, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.admin !== "") { - writer.uint32(10).string(message.admin); - } - if (message.address !== "") { - writer.uint32(18).string(message.address); - } - if (message.newAdmin !== "") { - writer.uint32(26).string(message.newAdmin); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateGroupPolicyAdmin { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateGroupPolicyAdmin(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.admin = reader.string(); - break; - case 2: - message.address = reader.string(); - break; - case 3: - message.newAdmin = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): MsgUpdateGroupPolicyAdmin { - const message = createBaseMsgUpdateGroupPolicyAdmin(); - message.admin = object.admin ?? ""; - message.address = object.address ?? ""; - message.newAdmin = object.newAdmin ?? ""; - return message; - } -}; -function createBaseMsgCreateGroupWithPolicy(): MsgCreateGroupWithPolicy { - return { - admin: "", - members: [], - groupMetadata: "", - groupPolicyMetadata: "", - groupPolicyAsAdmin: false, - decisionPolicy: undefined - }; -} -export const MsgCreateGroupWithPolicy = { - encode(message: MsgCreateGroupWithPolicy, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.admin !== "") { - writer.uint32(10).string(message.admin); - } - for (const v of message.members) { - Member.encode(v!, writer.uint32(18).fork()).ldelim(); - } - if (message.groupMetadata !== "") { - writer.uint32(26).string(message.groupMetadata); - } - if (message.groupPolicyMetadata !== "") { - writer.uint32(34).string(message.groupPolicyMetadata); - } - if (message.groupPolicyAsAdmin === true) { - writer.uint32(40).bool(message.groupPolicyAsAdmin); - } - if (message.decisionPolicy !== undefined) { - Any.encode(message.decisionPolicy, writer.uint32(50).fork()).ldelim(); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): MsgCreateGroupWithPolicy { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCreateGroupWithPolicy(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.admin = reader.string(); - break; - case 2: - message.members.push(Member.decode(reader, reader.uint32())); - break; - case 3: - message.groupMetadata = reader.string(); - break; - case 4: - message.groupPolicyMetadata = reader.string(); - break; - case 5: - message.groupPolicyAsAdmin = reader.bool(); - break; - case 6: - message.decisionPolicy = Any.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): MsgCreateGroupWithPolicy { - const message = createBaseMsgCreateGroupWithPolicy(); - message.admin = object.admin ?? ""; - message.members = object.members?.map(e => Member.fromPartial(e)) || []; - message.groupMetadata = object.groupMetadata ?? ""; - message.groupPolicyMetadata = object.groupPolicyMetadata ?? ""; - message.groupPolicyAsAdmin = object.groupPolicyAsAdmin ?? false; - message.decisionPolicy = object.decisionPolicy !== undefined && object.decisionPolicy !== null ? Any.fromPartial(object.decisionPolicy) : undefined; - return message; - } -}; -function createBaseMsgCreateGroupWithPolicyResponse(): MsgCreateGroupWithPolicyResponse { - return { - groupId: Long.UZERO, - groupPolicyAddress: "" - }; -} -export const MsgCreateGroupWithPolicyResponse = { - encode(message: MsgCreateGroupWithPolicyResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (!message.groupId.isZero()) { - writer.uint32(8).uint64(message.groupId); - } - if (message.groupPolicyAddress !== "") { - writer.uint32(18).string(message.groupPolicyAddress); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): MsgCreateGroupWithPolicyResponse { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCreateGroupWithPolicyResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.groupId = (reader.uint64() as Long); - break; - case 2: - message.groupPolicyAddress = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): MsgCreateGroupWithPolicyResponse { - const message = createBaseMsgCreateGroupWithPolicyResponse(); - message.groupId = object.groupId !== undefined && object.groupId !== null ? Long.fromValue(object.groupId) : Long.UZERO; - message.groupPolicyAddress = object.groupPolicyAddress ?? ""; - return message; - } -}; -function createBaseMsgUpdateGroupPolicyAdminResponse(): MsgUpdateGroupPolicyAdminResponse { - return {}; -} -export const MsgUpdateGroupPolicyAdminResponse = { - encode(_: MsgUpdateGroupPolicyAdminResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateGroupPolicyAdminResponse { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateGroupPolicyAdminResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_: DeepPartial): MsgUpdateGroupPolicyAdminResponse { - const message = createBaseMsgUpdateGroupPolicyAdminResponse(); - return message; - } -}; -function createBaseMsgUpdateGroupPolicyDecisionPolicy(): MsgUpdateGroupPolicyDecisionPolicy { - return { - admin: "", - address: "", - decisionPolicy: undefined - }; -} -export const MsgUpdateGroupPolicyDecisionPolicy = { - encode(message: MsgUpdateGroupPolicyDecisionPolicy, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.admin !== "") { - writer.uint32(10).string(message.admin); - } - if (message.address !== "") { - writer.uint32(18).string(message.address); - } - if (message.decisionPolicy !== undefined) { - Any.encode(message.decisionPolicy, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateGroupPolicyDecisionPolicy { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateGroupPolicyDecisionPolicy(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.admin = reader.string(); - break; - case 2: - message.address = reader.string(); - break; - case 3: - message.decisionPolicy = Any.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): MsgUpdateGroupPolicyDecisionPolicy { - const message = createBaseMsgUpdateGroupPolicyDecisionPolicy(); - message.admin = object.admin ?? ""; - message.address = object.address ?? ""; - message.decisionPolicy = object.decisionPolicy !== undefined && object.decisionPolicy !== null ? Any.fromPartial(object.decisionPolicy) : undefined; - return message; - } -}; -function createBaseMsgUpdateGroupPolicyDecisionPolicyResponse(): MsgUpdateGroupPolicyDecisionPolicyResponse { - return {}; -} -export const MsgUpdateGroupPolicyDecisionPolicyResponse = { - encode(_: MsgUpdateGroupPolicyDecisionPolicyResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateGroupPolicyDecisionPolicyResponse { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateGroupPolicyDecisionPolicyResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_: DeepPartial): MsgUpdateGroupPolicyDecisionPolicyResponse { - const message = createBaseMsgUpdateGroupPolicyDecisionPolicyResponse(); - return message; - } -}; -function createBaseMsgUpdateGroupPolicyMetadata(): MsgUpdateGroupPolicyMetadata { - return { - admin: "", - address: "", - metadata: "" - }; -} -export const MsgUpdateGroupPolicyMetadata = { - encode(message: MsgUpdateGroupPolicyMetadata, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.admin !== "") { - writer.uint32(10).string(message.admin); - } - if (message.address !== "") { - writer.uint32(18).string(message.address); - } - if (message.metadata !== "") { - writer.uint32(26).string(message.metadata); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateGroupPolicyMetadata { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateGroupPolicyMetadata(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.admin = reader.string(); - break; - case 2: - message.address = reader.string(); - break; - case 3: - message.metadata = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): MsgUpdateGroupPolicyMetadata { - const message = createBaseMsgUpdateGroupPolicyMetadata(); - message.admin = object.admin ?? ""; - message.address = object.address ?? ""; - message.metadata = object.metadata ?? ""; - return message; - } -}; -function createBaseMsgUpdateGroupPolicyMetadataResponse(): MsgUpdateGroupPolicyMetadataResponse { - return {}; -} -export const MsgUpdateGroupPolicyMetadataResponse = { - encode(_: MsgUpdateGroupPolicyMetadataResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateGroupPolicyMetadataResponse { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateGroupPolicyMetadataResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_: DeepPartial): MsgUpdateGroupPolicyMetadataResponse { - const message = createBaseMsgUpdateGroupPolicyMetadataResponse(); - return message; - } -}; -function createBaseMsgSubmitProposal(): MsgSubmitProposal { - return { - address: "", - proposers: [], - metadata: "", - messages: [], - exec: 0 - }; -} -export const MsgSubmitProposal = { - encode(message: MsgSubmitProposal, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.address !== "") { - writer.uint32(10).string(message.address); - } - for (const v of message.proposers) { - writer.uint32(18).string(v!); - } - if (message.metadata !== "") { - writer.uint32(26).string(message.metadata); - } - for (const v of message.messages) { - Any.encode(v!, writer.uint32(34).fork()).ldelim(); - } - if (message.exec !== 0) { - writer.uint32(40).int32(message.exec); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): MsgSubmitProposal { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgSubmitProposal(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.address = reader.string(); - break; - case 2: - message.proposers.push(reader.string()); - break; - case 3: - message.metadata = reader.string(); - break; - case 4: - message.messages.push(Any.decode(reader, reader.uint32())); - break; - case 5: - message.exec = (reader.int32() as any); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): MsgSubmitProposal { - const message = createBaseMsgSubmitProposal(); - message.address = object.address ?? ""; - message.proposers = object.proposers?.map(e => e) || []; - message.metadata = object.metadata ?? ""; - message.messages = object.messages?.map(e => Any.fromPartial(e)) || []; - message.exec = object.exec ?? 0; - return message; - } -}; -function createBaseMsgSubmitProposalResponse(): MsgSubmitProposalResponse { - return { - proposalId: Long.UZERO - }; -} -export const MsgSubmitProposalResponse = { - encode(message: MsgSubmitProposalResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (!message.proposalId.isZero()) { - writer.uint32(8).uint64(message.proposalId); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): MsgSubmitProposalResponse { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgSubmitProposalResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = (reader.uint64() as Long); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): MsgSubmitProposalResponse { - const message = createBaseMsgSubmitProposalResponse(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? Long.fromValue(object.proposalId) : Long.UZERO; - return message; - } -}; -function createBaseMsgWithdrawProposal(): MsgWithdrawProposal { - return { - proposalId: Long.UZERO, - address: "" - }; -} -export const MsgWithdrawProposal = { - encode(message: MsgWithdrawProposal, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (!message.proposalId.isZero()) { - writer.uint32(8).uint64(message.proposalId); - } - if (message.address !== "") { - writer.uint32(18).string(message.address); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): MsgWithdrawProposal { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgWithdrawProposal(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = (reader.uint64() as Long); - break; - case 2: - message.address = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): MsgWithdrawProposal { - const message = createBaseMsgWithdrawProposal(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? Long.fromValue(object.proposalId) : Long.UZERO; - message.address = object.address ?? ""; - return message; - } -}; -function createBaseMsgWithdrawProposalResponse(): MsgWithdrawProposalResponse { - return {}; -} -export const MsgWithdrawProposalResponse = { - encode(_: MsgWithdrawProposalResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): MsgWithdrawProposalResponse { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgWithdrawProposalResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_: DeepPartial): MsgWithdrawProposalResponse { - const message = createBaseMsgWithdrawProposalResponse(); - return message; - } -}; -function createBaseMsgVote(): MsgVote { - return { - proposalId: Long.UZERO, - voter: "", - option: 0, - metadata: "", - exec: 0 - }; -} -export const MsgVote = { - encode(message: MsgVote, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (!message.proposalId.isZero()) { - writer.uint32(8).uint64(message.proposalId); - } - if (message.voter !== "") { - writer.uint32(18).string(message.voter); - } - if (message.option !== 0) { - writer.uint32(24).int32(message.option); - } - if (message.metadata !== "") { - writer.uint32(34).string(message.metadata); - } - if (message.exec !== 0) { - writer.uint32(40).int32(message.exec); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): MsgVote { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgVote(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = (reader.uint64() as Long); - break; - case 2: - message.voter = reader.string(); - break; - case 3: - message.option = (reader.int32() as any); - break; - case 4: - message.metadata = reader.string(); - break; - case 5: - message.exec = (reader.int32() as any); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): MsgVote { - const message = createBaseMsgVote(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? Long.fromValue(object.proposalId) : Long.UZERO; - message.voter = object.voter ?? ""; - message.option = object.option ?? 0; - message.metadata = object.metadata ?? ""; - message.exec = object.exec ?? 0; - return message; - } -}; -function createBaseMsgVoteResponse(): MsgVoteResponse { - return {}; -} -export const MsgVoteResponse = { - encode(_: MsgVoteResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): MsgVoteResponse { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgVoteResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_: DeepPartial): MsgVoteResponse { - const message = createBaseMsgVoteResponse(); - return message; - } -}; -function createBaseMsgExec(): MsgExec { - return { - proposalId: Long.UZERO, - signer: "" - }; -} -export const MsgExec = { - encode(message: MsgExec, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (!message.proposalId.isZero()) { - writer.uint32(8).uint64(message.proposalId); - } - if (message.signer !== "") { - writer.uint32(18).string(message.signer); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): MsgExec { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgExec(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = (reader.uint64() as Long); - break; - case 2: - message.signer = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): MsgExec { - const message = createBaseMsgExec(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? Long.fromValue(object.proposalId) : Long.UZERO; - message.signer = object.signer ?? ""; - return message; - } -}; -function createBaseMsgExecResponse(): MsgExecResponse { - return {}; -} -export const MsgExecResponse = { - encode(_: MsgExecResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): MsgExecResponse { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgExecResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_: DeepPartial): MsgExecResponse { - const message = createBaseMsgExecResponse(); - return message; - } -}; -function createBaseMsgLeaveGroup(): MsgLeaveGroup { - return { - address: "", - groupId: Long.UZERO - }; -} -export const MsgLeaveGroup = { - encode(message: MsgLeaveGroup, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.address !== "") { - writer.uint32(10).string(message.address); - } - if (!message.groupId.isZero()) { - writer.uint32(16).uint64(message.groupId); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): MsgLeaveGroup { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgLeaveGroup(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.address = reader.string(); - break; - case 2: - message.groupId = (reader.uint64() as Long); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): MsgLeaveGroup { - const message = createBaseMsgLeaveGroup(); - message.address = object.address ?? ""; - message.groupId = object.groupId !== undefined && object.groupId !== null ? Long.fromValue(object.groupId) : Long.UZERO; - return message; - } -}; -function createBaseMsgLeaveGroupResponse(): MsgLeaveGroupResponse { - return {}; -} -export const MsgLeaveGroupResponse = { - encode(_: MsgLeaveGroupResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): MsgLeaveGroupResponse { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgLeaveGroupResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_: DeepPartial): MsgLeaveGroupResponse { - const message = createBaseMsgLeaveGroupResponse(); - return message; - } -}; \ No newline at end of file diff --git a/packages/proto/src/codegen/cosmos/group/v1/types.ts b/packages/proto/src/codegen/cosmos/group/v1/types.ts deleted file mode 100644 index 2cc3f4f0..00000000 --- a/packages/proto/src/codegen/cosmos/group/v1/types.ts +++ /dev/null @@ -1,1164 +0,0 @@ -import { Timestamp } from "../../../google/protobuf/timestamp"; -import { Duration, DurationSDKType } from "../../../google/protobuf/duration"; -import { Any, AnySDKType } from "../../../google/protobuf/any"; -import { Long, toTimestamp, fromTimestamp, DeepPartial } from "../../../helpers"; -import * as _m0 from "protobufjs/minimal"; -/** VoteOption enumerates the valid vote options for a given proposal. */ -export enum VoteOption { - /** VOTE_OPTION_UNSPECIFIED - VOTE_OPTION_UNSPECIFIED defines a no-op vote option. */ - VOTE_OPTION_UNSPECIFIED = 0, - /** VOTE_OPTION_YES - VOTE_OPTION_YES defines a yes vote option. */ - VOTE_OPTION_YES = 1, - /** VOTE_OPTION_ABSTAIN - VOTE_OPTION_ABSTAIN defines an abstain vote option. */ - VOTE_OPTION_ABSTAIN = 2, - /** VOTE_OPTION_NO - VOTE_OPTION_NO defines a no vote option. */ - VOTE_OPTION_NO = 3, - /** VOTE_OPTION_NO_WITH_VETO - VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option. */ - VOTE_OPTION_NO_WITH_VETO = 4, - UNRECOGNIZED = -1, -} -export const VoteOptionSDKType = VoteOption; -export function voteOptionFromJSON(object: any): VoteOption { - switch (object) { - case 0: - case "VOTE_OPTION_UNSPECIFIED": - return VoteOption.VOTE_OPTION_UNSPECIFIED; - case 1: - case "VOTE_OPTION_YES": - return VoteOption.VOTE_OPTION_YES; - case 2: - case "VOTE_OPTION_ABSTAIN": - return VoteOption.VOTE_OPTION_ABSTAIN; - case 3: - case "VOTE_OPTION_NO": - return VoteOption.VOTE_OPTION_NO; - case 4: - case "VOTE_OPTION_NO_WITH_VETO": - return VoteOption.VOTE_OPTION_NO_WITH_VETO; - case -1: - case "UNRECOGNIZED": - default: - return VoteOption.UNRECOGNIZED; - } -} -export function voteOptionToJSON(object: VoteOption): string { - switch (object) { - case VoteOption.VOTE_OPTION_UNSPECIFIED: - return "VOTE_OPTION_UNSPECIFIED"; - case VoteOption.VOTE_OPTION_YES: - return "VOTE_OPTION_YES"; - case VoteOption.VOTE_OPTION_ABSTAIN: - return "VOTE_OPTION_ABSTAIN"; - case VoteOption.VOTE_OPTION_NO: - return "VOTE_OPTION_NO"; - case VoteOption.VOTE_OPTION_NO_WITH_VETO: - return "VOTE_OPTION_NO_WITH_VETO"; - case VoteOption.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -/** ProposalStatus defines proposal statuses. */ -export enum ProposalStatus { - /** PROPOSAL_STATUS_UNSPECIFIED - An empty value is invalid and not allowed. */ - PROPOSAL_STATUS_UNSPECIFIED = 0, - /** PROPOSAL_STATUS_SUBMITTED - Initial status of a proposal when persisted. */ - PROPOSAL_STATUS_SUBMITTED = 1, - /** PROPOSAL_STATUS_CLOSED - Final status of a proposal when the final tally was executed. */ - PROPOSAL_STATUS_CLOSED = 2, - /** PROPOSAL_STATUS_ABORTED - Final status of a proposal when the group was modified before the final tally. */ - PROPOSAL_STATUS_ABORTED = 3, - /** - * PROPOSAL_STATUS_WITHDRAWN - A proposal can be deleted before the voting start time by the owner. When this happens the final status - * is Withdrawn. - */ - PROPOSAL_STATUS_WITHDRAWN = 4, - UNRECOGNIZED = -1, -} -export const ProposalStatusSDKType = ProposalStatus; -export function proposalStatusFromJSON(object: any): ProposalStatus { - switch (object) { - case 0: - case "PROPOSAL_STATUS_UNSPECIFIED": - return ProposalStatus.PROPOSAL_STATUS_UNSPECIFIED; - case 1: - case "PROPOSAL_STATUS_SUBMITTED": - return ProposalStatus.PROPOSAL_STATUS_SUBMITTED; - case 2: - case "PROPOSAL_STATUS_CLOSED": - return ProposalStatus.PROPOSAL_STATUS_CLOSED; - case 3: - case "PROPOSAL_STATUS_ABORTED": - return ProposalStatus.PROPOSAL_STATUS_ABORTED; - case 4: - case "PROPOSAL_STATUS_WITHDRAWN": - return ProposalStatus.PROPOSAL_STATUS_WITHDRAWN; - case -1: - case "UNRECOGNIZED": - default: - return ProposalStatus.UNRECOGNIZED; - } -} -export function proposalStatusToJSON(object: ProposalStatus): string { - switch (object) { - case ProposalStatus.PROPOSAL_STATUS_UNSPECIFIED: - return "PROPOSAL_STATUS_UNSPECIFIED"; - case ProposalStatus.PROPOSAL_STATUS_SUBMITTED: - return "PROPOSAL_STATUS_SUBMITTED"; - case ProposalStatus.PROPOSAL_STATUS_CLOSED: - return "PROPOSAL_STATUS_CLOSED"; - case ProposalStatus.PROPOSAL_STATUS_ABORTED: - return "PROPOSAL_STATUS_ABORTED"; - case ProposalStatus.PROPOSAL_STATUS_WITHDRAWN: - return "PROPOSAL_STATUS_WITHDRAWN"; - case ProposalStatus.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -/** ProposalResult defines types of proposal results. */ -export enum ProposalResult { - /** PROPOSAL_RESULT_UNSPECIFIED - An empty value is invalid and not allowed */ - PROPOSAL_RESULT_UNSPECIFIED = 0, - /** PROPOSAL_RESULT_UNFINALIZED - Until a final tally has happened the status is unfinalized */ - PROPOSAL_RESULT_UNFINALIZED = 1, - /** PROPOSAL_RESULT_ACCEPTED - Final result of the tally */ - PROPOSAL_RESULT_ACCEPTED = 2, - /** PROPOSAL_RESULT_REJECTED - Final result of the tally */ - PROPOSAL_RESULT_REJECTED = 3, - UNRECOGNIZED = -1, -} -export const ProposalResultSDKType = ProposalResult; -export function proposalResultFromJSON(object: any): ProposalResult { - switch (object) { - case 0: - case "PROPOSAL_RESULT_UNSPECIFIED": - return ProposalResult.PROPOSAL_RESULT_UNSPECIFIED; - case 1: - case "PROPOSAL_RESULT_UNFINALIZED": - return ProposalResult.PROPOSAL_RESULT_UNFINALIZED; - case 2: - case "PROPOSAL_RESULT_ACCEPTED": - return ProposalResult.PROPOSAL_RESULT_ACCEPTED; - case 3: - case "PROPOSAL_RESULT_REJECTED": - return ProposalResult.PROPOSAL_RESULT_REJECTED; - case -1: - case "UNRECOGNIZED": - default: - return ProposalResult.UNRECOGNIZED; - } -} -export function proposalResultToJSON(object: ProposalResult): string { - switch (object) { - case ProposalResult.PROPOSAL_RESULT_UNSPECIFIED: - return "PROPOSAL_RESULT_UNSPECIFIED"; - case ProposalResult.PROPOSAL_RESULT_UNFINALIZED: - return "PROPOSAL_RESULT_UNFINALIZED"; - case ProposalResult.PROPOSAL_RESULT_ACCEPTED: - return "PROPOSAL_RESULT_ACCEPTED"; - case ProposalResult.PROPOSAL_RESULT_REJECTED: - return "PROPOSAL_RESULT_REJECTED"; - case ProposalResult.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -/** ProposalExecutorResult defines types of proposal executor results. */ -export enum ProposalExecutorResult { - /** PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED - An empty value is not allowed. */ - PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED = 0, - /** PROPOSAL_EXECUTOR_RESULT_NOT_RUN - We have not yet run the executor. */ - PROPOSAL_EXECUTOR_RESULT_NOT_RUN = 1, - /** PROPOSAL_EXECUTOR_RESULT_SUCCESS - The executor was successful and proposed action updated state. */ - PROPOSAL_EXECUTOR_RESULT_SUCCESS = 2, - /** PROPOSAL_EXECUTOR_RESULT_FAILURE - The executor returned an error and proposed action didn't update state. */ - PROPOSAL_EXECUTOR_RESULT_FAILURE = 3, - UNRECOGNIZED = -1, -} -export const ProposalExecutorResultSDKType = ProposalExecutorResult; -export function proposalExecutorResultFromJSON(object: any): ProposalExecutorResult { - switch (object) { - case 0: - case "PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED": - return ProposalExecutorResult.PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED; - case 1: - case "PROPOSAL_EXECUTOR_RESULT_NOT_RUN": - return ProposalExecutorResult.PROPOSAL_EXECUTOR_RESULT_NOT_RUN; - case 2: - case "PROPOSAL_EXECUTOR_RESULT_SUCCESS": - return ProposalExecutorResult.PROPOSAL_EXECUTOR_RESULT_SUCCESS; - case 3: - case "PROPOSAL_EXECUTOR_RESULT_FAILURE": - return ProposalExecutorResult.PROPOSAL_EXECUTOR_RESULT_FAILURE; - case -1: - case "UNRECOGNIZED": - default: - return ProposalExecutorResult.UNRECOGNIZED; - } -} -export function proposalExecutorResultToJSON(object: ProposalExecutorResult): string { - switch (object) { - case ProposalExecutorResult.PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED: - return "PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED"; - case ProposalExecutorResult.PROPOSAL_EXECUTOR_RESULT_NOT_RUN: - return "PROPOSAL_EXECUTOR_RESULT_NOT_RUN"; - case ProposalExecutorResult.PROPOSAL_EXECUTOR_RESULT_SUCCESS: - return "PROPOSAL_EXECUTOR_RESULT_SUCCESS"; - case ProposalExecutorResult.PROPOSAL_EXECUTOR_RESULT_FAILURE: - return "PROPOSAL_EXECUTOR_RESULT_FAILURE"; - case ProposalExecutorResult.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -/** - * Member represents a group member with an account address, - * non-zero weight and metadata. - */ -export interface Member { - /** address is the member's account address. */ - address: string; - /** weight is the member's voting weight that should be greater than 0. */ - weight: string; - /** metadata is any arbitrary metadata to attached to the member. */ - metadata: string; - /** added_at is a timestamp specifying when a member was added. */ - addedAt: Date; -} -/** - * Member represents a group member with an account address, - * non-zero weight and metadata. - */ -export interface MemberSDKType { - address: string; - weight: string; - metadata: string; - added_at: Date; -} -/** Members defines a repeated slice of Member objects. */ -export interface Members { - /** members is the list of members. */ - members: Member[]; -} -/** Members defines a repeated slice of Member objects. */ -export interface MembersSDKType { - members: MemberSDKType[]; -} -/** ThresholdDecisionPolicy implements the DecisionPolicy interface */ -export interface ThresholdDecisionPolicy { - /** threshold is the minimum weighted sum of yes votes that must be met or exceeded for a proposal to succeed. */ - threshold: string; - /** windows defines the different windows for voting and execution. */ - windows: DecisionPolicyWindows; -} -/** ThresholdDecisionPolicy implements the DecisionPolicy interface */ -export interface ThresholdDecisionPolicySDKType { - threshold: string; - windows: DecisionPolicyWindowsSDKType; -} -/** PercentageDecisionPolicy implements the DecisionPolicy interface */ -export interface PercentageDecisionPolicy { - /** percentage is the minimum percentage the weighted sum of yes votes must meet for a proposal to succeed. */ - percentage: string; - /** windows defines the different windows for voting and execution. */ - windows: DecisionPolicyWindows; -} -/** PercentageDecisionPolicy implements the DecisionPolicy interface */ -export interface PercentageDecisionPolicySDKType { - percentage: string; - windows: DecisionPolicyWindowsSDKType; -} -/** DecisionPolicyWindows defines the different windows for voting and execution. */ -export interface DecisionPolicyWindows { - /** - * voting_period is the duration from submission of a proposal to the end of voting period - * Within this times votes can be submitted with MsgVote. - */ - votingPeriod: Duration; - /** - * min_execution_period is the minimum duration after the proposal submission - * where members can start sending MsgExec. This means that the window for - * sending a MsgExec transaction is: - * `[ submission + min_execution_period ; submission + voting_period + max_execution_period]` - * where max_execution_period is a app-specific config, defined in the keeper. - * If not set, min_execution_period will default to 0. - * - * Please make sure to set a `min_execution_period` that is smaller than - * `voting_period + max_execution_period`, or else the above execution window - * is empty, meaning that all proposals created with this decision policy - * won't be able to be executed. - */ - minExecutionPeriod: Duration; -} -/** DecisionPolicyWindows defines the different windows for voting and execution. */ -export interface DecisionPolicyWindowsSDKType { - voting_period: DurationSDKType; - min_execution_period: DurationSDKType; -} -/** GroupInfo represents the high-level on-chain information for a group. */ -export interface GroupInfo { - /** id is the unique ID of the group. */ - id: Long; - /** admin is the account address of the group's admin. */ - admin: string; - /** metadata is any arbitrary metadata to attached to the group. */ - metadata: string; - /** - * version is used to track changes to a group's membership structure that - * would break existing proposals. Whenever any members weight is changed, - * or any member is added or removed this version is incremented and will - * cause proposals based on older versions of this group to fail - */ - version: Long; - /** total_weight is the sum of the group members' weights. */ - totalWeight: string; - /** created_at is a timestamp specifying when a group was created. */ - createdAt: Date; -} -/** GroupInfo represents the high-level on-chain information for a group. */ -export interface GroupInfoSDKType { - id: Long; - admin: string; - metadata: string; - version: Long; - total_weight: string; - created_at: Date; -} -/** GroupMember represents the relationship between a group and a member. */ -export interface GroupMember { - /** group_id is the unique ID of the group. */ - groupId: Long; - /** member is the member data. */ - member: Member; -} -/** GroupMember represents the relationship between a group and a member. */ -export interface GroupMemberSDKType { - group_id: Long; - member: MemberSDKType; -} -/** GroupPolicyInfo represents the high-level on-chain information for a group policy. */ -export interface GroupPolicyInfo { - /** address is the account address of group policy. */ - address: string; - /** group_id is the unique ID of the group. */ - groupId: Long; - /** admin is the account address of the group admin. */ - admin: string; - /** metadata is any arbitrary metadata to attached to the group policy. */ - metadata: string; - /** - * version is used to track changes to a group's GroupPolicyInfo structure that - * would create a different result on a running proposal. - */ - version: Long; - /** decision_policy specifies the group policy's decision policy. */ - decisionPolicy: Any; - /** created_at is a timestamp specifying when a group policy was created. */ - createdAt: Date; -} -/** GroupPolicyInfo represents the high-level on-chain information for a group policy. */ -export interface GroupPolicyInfoSDKType { - address: string; - group_id: Long; - admin: string; - metadata: string; - version: Long; - decision_policy: AnySDKType; - created_at: Date; -} -/** - * Proposal defines a group proposal. Any member of a group can submit a proposal - * for a group policy to decide upon. - * A proposal consists of a set of `sdk.Msg`s that will be executed if the proposal - * passes as well as some optional metadata associated with the proposal. - */ -export interface Proposal { - /** id is the unique id of the proposal. */ - id: Long; - /** address is the account address of group policy. */ - address: string; - /** metadata is any arbitrary metadata to attached to the proposal. */ - metadata: string; - /** proposers are the account addresses of the proposers. */ - proposers: string[]; - /** submit_time is a timestamp specifying when a proposal was submitted. */ - submitTime: Date; - /** - * group_version tracks the version of the group that this proposal corresponds to. - * When group membership is changed, existing proposals from previous group versions will become invalid. - */ - groupVersion: Long; - /** - * group_policy_version tracks the version of the group policy that this proposal corresponds to. - * When a decision policy is changed, existing proposals from previous policy versions will become invalid. - */ - groupPolicyVersion: Long; - /** status represents the high level position in the life cycle of the proposal. Initial value is Submitted. */ - status: ProposalStatus; - /** - * result is the final result based on the votes and election rule. Initial value is unfinalized. - * The result is persisted so that clients can always rely on this state and not have to replicate the logic. - */ - result: ProposalResult; - /** - * final_tally_result contains the sums of all weighted votes for this - * proposal for each vote option, after tallying. When querying a proposal - * via gRPC, this field is not populated until the proposal's voting period - * has ended. - */ - finalTallyResult: TallyResult; - /** - * voting_period_end is the timestamp before which voting must be done. - * Unless a successfull MsgExec is called before (to execute a proposal whose - * tally is successful before the voting period ends), tallying will be done - * at this point, and the `final_tally_result`, as well - * as `status` and `result` fields will be accordingly updated. - */ - votingPeriodEnd: Date; - /** executor_result is the final result based on the votes and election rule. Initial value is NotRun. */ - executorResult: ProposalExecutorResult; - /** messages is a list of Msgs that will be executed if the proposal passes. */ - messages: Any[]; -} -/** - * Proposal defines a group proposal. Any member of a group can submit a proposal - * for a group policy to decide upon. - * A proposal consists of a set of `sdk.Msg`s that will be executed if the proposal - * passes as well as some optional metadata associated with the proposal. - */ -export interface ProposalSDKType { - id: Long; - address: string; - metadata: string; - proposers: string[]; - submit_time: Date; - group_version: Long; - group_policy_version: Long; - status: ProposalStatus; - result: ProposalResult; - final_tally_result: TallyResultSDKType; - voting_period_end: Date; - executor_result: ProposalExecutorResult; - messages: AnySDKType[]; -} -/** TallyResult represents the sum of weighted votes for each vote option. */ -export interface TallyResult { - /** yes_count is the weighted sum of yes votes. */ - yesCount: string; - /** abstain_count is the weighted sum of abstainers. */ - abstainCount: string; - /** no is the weighted sum of no votes. */ - noCount: string; - /** no_with_veto_count is the weighted sum of veto. */ - noWithVetoCount: string; -} -/** TallyResult represents the sum of weighted votes for each vote option. */ -export interface TallyResultSDKType { - yes_count: string; - abstain_count: string; - no_count: string; - no_with_veto_count: string; -} -/** Vote represents a vote for a proposal. */ -export interface Vote { - /** proposal is the unique ID of the proposal. */ - proposalId: Long; - /** voter is the account address of the voter. */ - voter: string; - /** option is the voter's choice on the proposal. */ - option: VoteOption; - /** metadata is any arbitrary metadata to attached to the vote. */ - metadata: string; - /** submit_time is the timestamp when the vote was submitted. */ - submitTime: Date; -} -/** Vote represents a vote for a proposal. */ -export interface VoteSDKType { - proposal_id: Long; - voter: string; - option: VoteOption; - metadata: string; - submit_time: Date; -} -function createBaseMember(): Member { - return { - address: "", - weight: "", - metadata: "", - addedAt: undefined - }; -} -export const Member = { - encode(message: Member, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.address !== "") { - writer.uint32(10).string(message.address); - } - if (message.weight !== "") { - writer.uint32(18).string(message.weight); - } - if (message.metadata !== "") { - writer.uint32(26).string(message.metadata); - } - if (message.addedAt !== undefined) { - Timestamp.encode(toTimestamp(message.addedAt), writer.uint32(34).fork()).ldelim(); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): Member { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMember(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.address = reader.string(); - break; - case 2: - message.weight = reader.string(); - break; - case 3: - message.metadata = reader.string(); - break; - case 4: - message.addedAt = fromTimestamp(Timestamp.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): Member { - const message = createBaseMember(); - message.address = object.address ?? ""; - message.weight = object.weight ?? ""; - message.metadata = object.metadata ?? ""; - message.addedAt = object.addedAt ?? undefined; - return message; - } -}; -function createBaseMembers(): Members { - return { - members: [] - }; -} -export const Members = { - encode(message: Members, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - for (const v of message.members) { - Member.encode(v!, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): Members { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMembers(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.members.push(Member.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): Members { - const message = createBaseMembers(); - message.members = object.members?.map(e => Member.fromPartial(e)) || []; - return message; - } -}; -function createBaseThresholdDecisionPolicy(): ThresholdDecisionPolicy { - return { - threshold: "", - windows: DecisionPolicyWindows.fromPartial({}) - }; -} -export const ThresholdDecisionPolicy = { - encode(message: ThresholdDecisionPolicy, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.threshold !== "") { - writer.uint32(10).string(message.threshold); - } - if (message.windows !== undefined) { - DecisionPolicyWindows.encode(message.windows, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): ThresholdDecisionPolicy { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseThresholdDecisionPolicy(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.threshold = reader.string(); - break; - case 2: - message.windows = DecisionPolicyWindows.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): ThresholdDecisionPolicy { - const message = createBaseThresholdDecisionPolicy(); - message.threshold = object.threshold ?? ""; - message.windows = object.windows !== undefined && object.windows !== null ? DecisionPolicyWindows.fromPartial(object.windows) : undefined; - return message; - } -}; -function createBasePercentageDecisionPolicy(): PercentageDecisionPolicy { - return { - percentage: "", - windows: DecisionPolicyWindows.fromPartial({}) - }; -} -export const PercentageDecisionPolicy = { - encode(message: PercentageDecisionPolicy, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.percentage !== "") { - writer.uint32(10).string(message.percentage); - } - if (message.windows !== undefined) { - DecisionPolicyWindows.encode(message.windows, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): PercentageDecisionPolicy { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBasePercentageDecisionPolicy(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.percentage = reader.string(); - break; - case 2: - message.windows = DecisionPolicyWindows.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): PercentageDecisionPolicy { - const message = createBasePercentageDecisionPolicy(); - message.percentage = object.percentage ?? ""; - message.windows = object.windows !== undefined && object.windows !== null ? DecisionPolicyWindows.fromPartial(object.windows) : undefined; - return message; - } -}; -function createBaseDecisionPolicyWindows(): DecisionPolicyWindows { - return { - votingPeriod: undefined, - minExecutionPeriod: undefined - }; -} -export const DecisionPolicyWindows = { - encode(message: DecisionPolicyWindows, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.votingPeriod !== undefined) { - Duration.encode(message.votingPeriod, writer.uint32(10).fork()).ldelim(); - } - if (message.minExecutionPeriod !== undefined) { - Duration.encode(message.minExecutionPeriod, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): DecisionPolicyWindows { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseDecisionPolicyWindows(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.votingPeriod = Duration.decode(reader, reader.uint32()); - break; - case 2: - message.minExecutionPeriod = Duration.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): DecisionPolicyWindows { - const message = createBaseDecisionPolicyWindows(); - message.votingPeriod = object.votingPeriod !== undefined && object.votingPeriod !== null ? Duration.fromPartial(object.votingPeriod) : undefined; - message.minExecutionPeriod = object.minExecutionPeriod !== undefined && object.minExecutionPeriod !== null ? Duration.fromPartial(object.minExecutionPeriod) : undefined; - return message; - } -}; -function createBaseGroupInfo(): GroupInfo { - return { - id: Long.UZERO, - admin: "", - metadata: "", - version: Long.UZERO, - totalWeight: "", - createdAt: undefined - }; -} -export const GroupInfo = { - encode(message: GroupInfo, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (!message.id.isZero()) { - writer.uint32(8).uint64(message.id); - } - if (message.admin !== "") { - writer.uint32(18).string(message.admin); - } - if (message.metadata !== "") { - writer.uint32(26).string(message.metadata); - } - if (!message.version.isZero()) { - writer.uint32(32).uint64(message.version); - } - if (message.totalWeight !== "") { - writer.uint32(42).string(message.totalWeight); - } - if (message.createdAt !== undefined) { - Timestamp.encode(toTimestamp(message.createdAt), writer.uint32(50).fork()).ldelim(); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): GroupInfo { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGroupInfo(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = (reader.uint64() as Long); - break; - case 2: - message.admin = reader.string(); - break; - case 3: - message.metadata = reader.string(); - break; - case 4: - message.version = (reader.uint64() as Long); - break; - case 5: - message.totalWeight = reader.string(); - break; - case 6: - message.createdAt = fromTimestamp(Timestamp.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): GroupInfo { - const message = createBaseGroupInfo(); - message.id = object.id !== undefined && object.id !== null ? Long.fromValue(object.id) : Long.UZERO; - message.admin = object.admin ?? ""; - message.metadata = object.metadata ?? ""; - message.version = object.version !== undefined && object.version !== null ? Long.fromValue(object.version) : Long.UZERO; - message.totalWeight = object.totalWeight ?? ""; - message.createdAt = object.createdAt ?? undefined; - return message; - } -}; -function createBaseGroupMember(): GroupMember { - return { - groupId: Long.UZERO, - member: Member.fromPartial({}) - }; -} -export const GroupMember = { - encode(message: GroupMember, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (!message.groupId.isZero()) { - writer.uint32(8).uint64(message.groupId); - } - if (message.member !== undefined) { - Member.encode(message.member, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): GroupMember { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGroupMember(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.groupId = (reader.uint64() as Long); - break; - case 2: - message.member = Member.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): GroupMember { - const message = createBaseGroupMember(); - message.groupId = object.groupId !== undefined && object.groupId !== null ? Long.fromValue(object.groupId) : Long.UZERO; - message.member = object.member !== undefined && object.member !== null ? Member.fromPartial(object.member) : undefined; - return message; - } -}; -function createBaseGroupPolicyInfo(): GroupPolicyInfo { - return { - address: "", - groupId: Long.UZERO, - admin: "", - metadata: "", - version: Long.UZERO, - decisionPolicy: undefined, - createdAt: undefined - }; -} -export const GroupPolicyInfo = { - encode(message: GroupPolicyInfo, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.address !== "") { - writer.uint32(10).string(message.address); - } - if (!message.groupId.isZero()) { - writer.uint32(16).uint64(message.groupId); - } - if (message.admin !== "") { - writer.uint32(26).string(message.admin); - } - if (message.metadata !== "") { - writer.uint32(34).string(message.metadata); - } - if (!message.version.isZero()) { - writer.uint32(40).uint64(message.version); - } - if (message.decisionPolicy !== undefined) { - Any.encode(message.decisionPolicy, writer.uint32(50).fork()).ldelim(); - } - if (message.createdAt !== undefined) { - Timestamp.encode(toTimestamp(message.createdAt), writer.uint32(58).fork()).ldelim(); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): GroupPolicyInfo { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGroupPolicyInfo(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.address = reader.string(); - break; - case 2: - message.groupId = (reader.uint64() as Long); - break; - case 3: - message.admin = reader.string(); - break; - case 4: - message.metadata = reader.string(); - break; - case 5: - message.version = (reader.uint64() as Long); - break; - case 6: - message.decisionPolicy = Any.decode(reader, reader.uint32()); - break; - case 7: - message.createdAt = fromTimestamp(Timestamp.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): GroupPolicyInfo { - const message = createBaseGroupPolicyInfo(); - message.address = object.address ?? ""; - message.groupId = object.groupId !== undefined && object.groupId !== null ? Long.fromValue(object.groupId) : Long.UZERO; - message.admin = object.admin ?? ""; - message.metadata = object.metadata ?? ""; - message.version = object.version !== undefined && object.version !== null ? Long.fromValue(object.version) : Long.UZERO; - message.decisionPolicy = object.decisionPolicy !== undefined && object.decisionPolicy !== null ? Any.fromPartial(object.decisionPolicy) : undefined; - message.createdAt = object.createdAt ?? undefined; - return message; - } -}; -function createBaseProposal(): Proposal { - return { - id: Long.UZERO, - address: "", - metadata: "", - proposers: [], - submitTime: undefined, - groupVersion: Long.UZERO, - groupPolicyVersion: Long.UZERO, - status: 0, - result: 0, - finalTallyResult: TallyResult.fromPartial({}), - votingPeriodEnd: undefined, - executorResult: 0, - messages: [] - }; -} -export const Proposal = { - encode(message: Proposal, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (!message.id.isZero()) { - writer.uint32(8).uint64(message.id); - } - if (message.address !== "") { - writer.uint32(18).string(message.address); - } - if (message.metadata !== "") { - writer.uint32(26).string(message.metadata); - } - for (const v of message.proposers) { - writer.uint32(34).string(v!); - } - if (message.submitTime !== undefined) { - Timestamp.encode(toTimestamp(message.submitTime), writer.uint32(42).fork()).ldelim(); - } - if (!message.groupVersion.isZero()) { - writer.uint32(48).uint64(message.groupVersion); - } - if (!message.groupPolicyVersion.isZero()) { - writer.uint32(56).uint64(message.groupPolicyVersion); - } - if (message.status !== 0) { - writer.uint32(64).int32(message.status); - } - if (message.result !== 0) { - writer.uint32(72).int32(message.result); - } - if (message.finalTallyResult !== undefined) { - TallyResult.encode(message.finalTallyResult, writer.uint32(82).fork()).ldelim(); - } - if (message.votingPeriodEnd !== undefined) { - Timestamp.encode(toTimestamp(message.votingPeriodEnd), writer.uint32(90).fork()).ldelim(); - } - if (message.executorResult !== 0) { - writer.uint32(96).int32(message.executorResult); - } - for (const v of message.messages) { - Any.encode(v!, writer.uint32(106).fork()).ldelim(); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): Proposal { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseProposal(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = (reader.uint64() as Long); - break; - case 2: - message.address = reader.string(); - break; - case 3: - message.metadata = reader.string(); - break; - case 4: - message.proposers.push(reader.string()); - break; - case 5: - message.submitTime = fromTimestamp(Timestamp.decode(reader, reader.uint32())); - break; - case 6: - message.groupVersion = (reader.uint64() as Long); - break; - case 7: - message.groupPolicyVersion = (reader.uint64() as Long); - break; - case 8: - message.status = (reader.int32() as any); - break; - case 9: - message.result = (reader.int32() as any); - break; - case 10: - message.finalTallyResult = TallyResult.decode(reader, reader.uint32()); - break; - case 11: - message.votingPeriodEnd = fromTimestamp(Timestamp.decode(reader, reader.uint32())); - break; - case 12: - message.executorResult = (reader.int32() as any); - break; - case 13: - message.messages.push(Any.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): Proposal { - const message = createBaseProposal(); - message.id = object.id !== undefined && object.id !== null ? Long.fromValue(object.id) : Long.UZERO; - message.address = object.address ?? ""; - message.metadata = object.metadata ?? ""; - message.proposers = object.proposers?.map(e => e) || []; - message.submitTime = object.submitTime ?? undefined; - message.groupVersion = object.groupVersion !== undefined && object.groupVersion !== null ? Long.fromValue(object.groupVersion) : Long.UZERO; - message.groupPolicyVersion = object.groupPolicyVersion !== undefined && object.groupPolicyVersion !== null ? Long.fromValue(object.groupPolicyVersion) : Long.UZERO; - message.status = object.status ?? 0; - message.result = object.result ?? 0; - message.finalTallyResult = object.finalTallyResult !== undefined && object.finalTallyResult !== null ? TallyResult.fromPartial(object.finalTallyResult) : undefined; - message.votingPeriodEnd = object.votingPeriodEnd ?? undefined; - message.executorResult = object.executorResult ?? 0; - message.messages = object.messages?.map(e => Any.fromPartial(e)) || []; - return message; - } -}; -function createBaseTallyResult(): TallyResult { - return { - yesCount: "", - abstainCount: "", - noCount: "", - noWithVetoCount: "" - }; -} -export const TallyResult = { - encode(message: TallyResult, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.yesCount !== "") { - writer.uint32(10).string(message.yesCount); - } - if (message.abstainCount !== "") { - writer.uint32(18).string(message.abstainCount); - } - if (message.noCount !== "") { - writer.uint32(26).string(message.noCount); - } - if (message.noWithVetoCount !== "") { - writer.uint32(34).string(message.noWithVetoCount); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): TallyResult { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseTallyResult(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.yesCount = reader.string(); - break; - case 2: - message.abstainCount = reader.string(); - break; - case 3: - message.noCount = reader.string(); - break; - case 4: - message.noWithVetoCount = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): TallyResult { - const message = createBaseTallyResult(); - message.yesCount = object.yesCount ?? ""; - message.abstainCount = object.abstainCount ?? ""; - message.noCount = object.noCount ?? ""; - message.noWithVetoCount = object.noWithVetoCount ?? ""; - return message; - } -}; -function createBaseVote(): Vote { - return { - proposalId: Long.UZERO, - voter: "", - option: 0, - metadata: "", - submitTime: undefined - }; -} -export const Vote = { - encode(message: Vote, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (!message.proposalId.isZero()) { - writer.uint32(8).uint64(message.proposalId); - } - if (message.voter !== "") { - writer.uint32(18).string(message.voter); - } - if (message.option !== 0) { - writer.uint32(24).int32(message.option); - } - if (message.metadata !== "") { - writer.uint32(34).string(message.metadata); - } - if (message.submitTime !== undefined) { - Timestamp.encode(toTimestamp(message.submitTime), writer.uint32(42).fork()).ldelim(); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): Vote { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseVote(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.proposalId = (reader.uint64() as Long); - break; - case 2: - message.voter = reader.string(); - break; - case 3: - message.option = (reader.int32() as any); - break; - case 4: - message.metadata = reader.string(); - break; - case 5: - message.submitTime = fromTimestamp(Timestamp.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): Vote { - const message = createBaseVote(); - message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? Long.fromValue(object.proposalId) : Long.UZERO; - message.voter = object.voter ?? ""; - message.option = object.option ?? 0; - message.metadata = object.metadata ?? ""; - message.submitTime = object.submitTime ?? undefined; - return message; - } -}; \ No newline at end of file diff --git a/packages/proto/src/codegen/cosmos/lcd.ts b/packages/proto/src/codegen/cosmos/lcd.ts index 954fcdf8..80c6ea05 100644 --- a/packages/proto/src/codegen/cosmos/lcd.ts +++ b/packages/proto/src/codegen/cosmos/lcd.ts @@ -24,61 +24,16 @@ export const createLCDClient = async ({ requestClient }) }, - base: { - tendermint: { - v1beta1: new (await import("./base/tendermint/v1beta1/query.lcd")).LCDQueryClient({ - requestClient - }) - } - }, distribution: { v1beta1: new (await import("./distribution/v1beta1/query.lcd")).LCDQueryClient({ requestClient }) }, - evidence: { - v1beta1: new (await import("./evidence/v1beta1/query.lcd")).LCDQueryClient({ - requestClient - }) - }, - feegrant: { - v1beta1: new (await import("./feegrant/v1beta1/query.lcd")).LCDQueryClient({ - requestClient - }) - }, gov: { - v1: new (await import("./gov/v1/query.lcd")).LCDQueryClient({ - requestClient - }), v1beta1: new (await import("./gov/v1beta1/query.lcd")).LCDQueryClient({ requestClient }) }, - group: { - v1: new (await import("./group/v1/query.lcd")).LCDQueryClient({ - requestClient - }) - }, - mint: { - v1beta1: new (await import("./mint/v1beta1/query.lcd")).LCDQueryClient({ - requestClient - }) - }, - nft: { - v1beta1: new (await import("./nft/v1beta1/query.lcd")).LCDQueryClient({ - requestClient - }) - }, - params: { - v1beta1: new (await import("./params/v1beta1/query.lcd")).LCDQueryClient({ - requestClient - }) - }, - slashing: { - v1beta1: new (await import("./slashing/v1beta1/query.lcd")).LCDQueryClient({ - requestClient - }) - }, staking: { v1beta1: new (await import("./staking/v1beta1/query.lcd")).LCDQueryClient({ requestClient diff --git a/packages/proto/src/codegen/cosmos/mint/v1beta1/genesis.ts b/packages/proto/src/codegen/cosmos/mint/v1beta1/genesis.ts deleted file mode 100644 index 1b1a5693..00000000 --- a/packages/proto/src/codegen/cosmos/mint/v1beta1/genesis.ts +++ /dev/null @@ -1,58 +0,0 @@ -import { Minter, MinterSDKType, Params, ParamsSDKType } from "./mint"; -import * as _m0 from "protobufjs/minimal"; -import { DeepPartial } from "../../../helpers"; -/** GenesisState defines the mint module's genesis state. */ -export interface GenesisState { - /** minter is a space for holding current inflation information. */ - minter: Minter; - /** params defines all the paramaters of the module. */ - params: Params; -} -/** GenesisState defines the mint module's genesis state. */ -export interface GenesisStateSDKType { - minter: MinterSDKType; - params: ParamsSDKType; -} -function createBaseGenesisState(): GenesisState { - return { - minter: Minter.fromPartial({}), - params: Params.fromPartial({}) - }; -} -export const GenesisState = { - encode(message: GenesisState, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.minter !== undefined) { - Minter.encode(message.minter, writer.uint32(10).fork()).ldelim(); - } - if (message.params !== undefined) { - Params.encode(message.params, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): GenesisState { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGenesisState(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.minter = Minter.decode(reader, reader.uint32()); - break; - case 2: - message.params = Params.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): GenesisState { - const message = createBaseGenesisState(); - message.minter = object.minter !== undefined && object.minter !== null ? Minter.fromPartial(object.minter) : undefined; - message.params = object.params !== undefined && object.params !== null ? Params.fromPartial(object.params) : undefined; - return message; - } -}; \ No newline at end of file diff --git a/packages/proto/src/codegen/cosmos/mint/v1beta1/mint.ts b/packages/proto/src/codegen/cosmos/mint/v1beta1/mint.ts deleted file mode 100644 index ccd16677..00000000 --- a/packages/proto/src/codegen/cosmos/mint/v1beta1/mint.ts +++ /dev/null @@ -1,156 +0,0 @@ -import { Long, DeepPartial } from "../../../helpers"; -import * as _m0 from "protobufjs/minimal"; -/** Minter represents the minting state. */ -export interface Minter { - /** current annual inflation rate */ - inflation: string; - /** current annual expected provisions */ - annualProvisions: string; -} -/** Minter represents the minting state. */ -export interface MinterSDKType { - inflation: string; - annual_provisions: string; -} -/** Params holds parameters for the mint module. */ -export interface Params { - /** type of coin to mint */ - mintDenom: string; - /** maximum annual change in inflation rate */ - inflationRateChange: string; - /** maximum inflation rate */ - inflationMax: string; - /** minimum inflation rate */ - inflationMin: string; - /** goal of percent bonded atoms */ - goalBonded: string; - /** expected blocks per year */ - blocksPerYear: Long; -} -/** Params holds parameters for the mint module. */ -export interface ParamsSDKType { - mint_denom: string; - inflation_rate_change: string; - inflation_max: string; - inflation_min: string; - goal_bonded: string; - blocks_per_year: Long; -} -function createBaseMinter(): Minter { - return { - inflation: "", - annualProvisions: "" - }; -} -export const Minter = { - encode(message: Minter, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.inflation !== "") { - writer.uint32(10).string(message.inflation); - } - if (message.annualProvisions !== "") { - writer.uint32(18).string(message.annualProvisions); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): Minter { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMinter(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.inflation = reader.string(); - break; - case 2: - message.annualProvisions = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): Minter { - const message = createBaseMinter(); - message.inflation = object.inflation ?? ""; - message.annualProvisions = object.annualProvisions ?? ""; - return message; - } -}; -function createBaseParams(): Params { - return { - mintDenom: "", - inflationRateChange: "", - inflationMax: "", - inflationMin: "", - goalBonded: "", - blocksPerYear: Long.UZERO - }; -} -export const Params = { - encode(message: Params, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.mintDenom !== "") { - writer.uint32(10).string(message.mintDenom); - } - if (message.inflationRateChange !== "") { - writer.uint32(18).string(message.inflationRateChange); - } - if (message.inflationMax !== "") { - writer.uint32(26).string(message.inflationMax); - } - if (message.inflationMin !== "") { - writer.uint32(34).string(message.inflationMin); - } - if (message.goalBonded !== "") { - writer.uint32(42).string(message.goalBonded); - } - if (!message.blocksPerYear.isZero()) { - writer.uint32(48).uint64(message.blocksPerYear); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): Params { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseParams(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.mintDenom = reader.string(); - break; - case 2: - message.inflationRateChange = reader.string(); - break; - case 3: - message.inflationMax = reader.string(); - break; - case 4: - message.inflationMin = reader.string(); - break; - case 5: - message.goalBonded = reader.string(); - break; - case 6: - message.blocksPerYear = (reader.uint64() as Long); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): Params { - const message = createBaseParams(); - message.mintDenom = object.mintDenom ?? ""; - message.inflationRateChange = object.inflationRateChange ?? ""; - message.inflationMax = object.inflationMax ?? ""; - message.inflationMin = object.inflationMin ?? ""; - message.goalBonded = object.goalBonded ?? ""; - message.blocksPerYear = object.blocksPerYear !== undefined && object.blocksPerYear !== null ? Long.fromValue(object.blocksPerYear) : Long.UZERO; - return message; - } -}; \ No newline at end of file diff --git a/packages/proto/src/codegen/cosmos/mint/v1beta1/query.lcd.ts b/packages/proto/src/codegen/cosmos/mint/v1beta1/query.lcd.ts deleted file mode 100644 index 887e5df2..00000000 --- a/packages/proto/src/codegen/cosmos/mint/v1beta1/query.lcd.ts +++ /dev/null @@ -1,30 +0,0 @@ -import { LCDClient } from "@osmonauts/lcd"; -import { QueryParamsRequest, QueryParamsResponseSDKType, QueryInflationRequest, QueryInflationResponseSDKType, QueryAnnualProvisionsRequest, QueryAnnualProvisionsResponseSDKType } from "./query"; -export class LCDQueryClient { - req: LCDClient; - constructor({ - requestClient - }: { - requestClient: LCDClient; - }) { - this.req = requestClient; - this.params = this.params.bind(this); - this.inflation = this.inflation.bind(this); - this.annualProvisions = this.annualProvisions.bind(this); - } - /* Params returns the total set of minting parameters. */ - async params(_params: QueryParamsRequest = {}): Promise { - const endpoint = `cosmos/mint/v1beta1/params`; - return await this.req.get(endpoint); - } - /* Inflation returns the current minting inflation value. */ - async inflation(_params: QueryInflationRequest = {}): Promise { - const endpoint = `cosmos/mint/v1beta1/inflation`; - return await this.req.get(endpoint); - } - /* AnnualProvisions current minting annual provisions value. */ - async annualProvisions(_params: QueryAnnualProvisionsRequest = {}): Promise { - const endpoint = `cosmos/mint/v1beta1/annual_provisions`; - return await this.req.get(endpoint); - } -} \ No newline at end of file diff --git a/packages/proto/src/codegen/cosmos/mint/v1beta1/query.ts b/packages/proto/src/codegen/cosmos/mint/v1beta1/query.ts deleted file mode 100644 index 1d4d4538..00000000 --- a/packages/proto/src/codegen/cosmos/mint/v1beta1/query.ts +++ /dev/null @@ -1,243 +0,0 @@ -import { Params, ParamsSDKType } from "./mint"; -import * as _m0 from "protobufjs/minimal"; -import { DeepPartial } from "../../../helpers"; -/** QueryParamsRequest is the request type for the Query/Params RPC method. */ -export interface QueryParamsRequest {} -/** QueryParamsRequest is the request type for the Query/Params RPC method. */ -export interface QueryParamsRequestSDKType {} -/** QueryParamsResponse is the response type for the Query/Params RPC method. */ -export interface QueryParamsResponse { - /** params defines the parameters of the module. */ - params: Params; -} -/** QueryParamsResponse is the response type for the Query/Params RPC method. */ -export interface QueryParamsResponseSDKType { - params: ParamsSDKType; -} -/** QueryInflationRequest is the request type for the Query/Inflation RPC method. */ -export interface QueryInflationRequest {} -/** QueryInflationRequest is the request type for the Query/Inflation RPC method. */ -export interface QueryInflationRequestSDKType {} -/** - * QueryInflationResponse is the response type for the Query/Inflation RPC - * method. - */ -export interface QueryInflationResponse { - /** inflation is the current minting inflation value. */ - inflation: Uint8Array; -} -/** - * QueryInflationResponse is the response type for the Query/Inflation RPC - * method. - */ -export interface QueryInflationResponseSDKType { - inflation: Uint8Array; -} -/** - * QueryAnnualProvisionsRequest is the request type for the - * Query/AnnualProvisions RPC method. - */ -export interface QueryAnnualProvisionsRequest {} -/** - * QueryAnnualProvisionsRequest is the request type for the - * Query/AnnualProvisions RPC method. - */ -export interface QueryAnnualProvisionsRequestSDKType {} -/** - * QueryAnnualProvisionsResponse is the response type for the - * Query/AnnualProvisions RPC method. - */ -export interface QueryAnnualProvisionsResponse { - /** annual_provisions is the current minting annual provisions value. */ - annualProvisions: Uint8Array; -} -/** - * QueryAnnualProvisionsResponse is the response type for the - * Query/AnnualProvisions RPC method. - */ -export interface QueryAnnualProvisionsResponseSDKType { - annual_provisions: Uint8Array; -} -function createBaseQueryParamsRequest(): QueryParamsRequest { - return {}; -} -export const QueryParamsRequest = { - encode(_: QueryParamsRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): QueryParamsRequest { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryParamsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_: DeepPartial): QueryParamsRequest { - const message = createBaseQueryParamsRequest(); - return message; - } -}; -function createBaseQueryParamsResponse(): QueryParamsResponse { - return { - params: Params.fromPartial({}) - }; -} -export const QueryParamsResponse = { - encode(message: QueryParamsResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.params !== undefined) { - Params.encode(message.params, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): QueryParamsResponse { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryParamsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.params = Params.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): QueryParamsResponse { - const message = createBaseQueryParamsResponse(); - message.params = object.params !== undefined && object.params !== null ? Params.fromPartial(object.params) : undefined; - return message; - } -}; -function createBaseQueryInflationRequest(): QueryInflationRequest { - return {}; -} -export const QueryInflationRequest = { - encode(_: QueryInflationRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): QueryInflationRequest { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryInflationRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_: DeepPartial): QueryInflationRequest { - const message = createBaseQueryInflationRequest(); - return message; - } -}; -function createBaseQueryInflationResponse(): QueryInflationResponse { - return { - inflation: new Uint8Array() - }; -} -export const QueryInflationResponse = { - encode(message: QueryInflationResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.inflation.length !== 0) { - writer.uint32(10).bytes(message.inflation); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): QueryInflationResponse { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryInflationResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.inflation = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): QueryInflationResponse { - const message = createBaseQueryInflationResponse(); - message.inflation = object.inflation ?? new Uint8Array(); - return message; - } -}; -function createBaseQueryAnnualProvisionsRequest(): QueryAnnualProvisionsRequest { - return {}; -} -export const QueryAnnualProvisionsRequest = { - encode(_: QueryAnnualProvisionsRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): QueryAnnualProvisionsRequest { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryAnnualProvisionsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_: DeepPartial): QueryAnnualProvisionsRequest { - const message = createBaseQueryAnnualProvisionsRequest(); - return message; - } -}; -function createBaseQueryAnnualProvisionsResponse(): QueryAnnualProvisionsResponse { - return { - annualProvisions: new Uint8Array() - }; -} -export const QueryAnnualProvisionsResponse = { - encode(message: QueryAnnualProvisionsResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.annualProvisions.length !== 0) { - writer.uint32(10).bytes(message.annualProvisions); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): QueryAnnualProvisionsResponse { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryAnnualProvisionsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.annualProvisions = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): QueryAnnualProvisionsResponse { - const message = createBaseQueryAnnualProvisionsResponse(); - message.annualProvisions = object.annualProvisions ?? new Uint8Array(); - return message; - } -}; \ No newline at end of file diff --git a/packages/proto/src/codegen/cosmos/msg/v1/msg.ts b/packages/proto/src/codegen/cosmos/msg/v1/msg.ts deleted file mode 100644 index 693da49f..00000000 --- a/packages/proto/src/codegen/cosmos/msg/v1/msg.ts +++ /dev/null @@ -1 +0,0 @@ -export {} \ No newline at end of file diff --git a/packages/proto/src/codegen/cosmos/nft/v1beta1/event.ts b/packages/proto/src/codegen/cosmos/nft/v1beta1/event.ts deleted file mode 100644 index 9ac3df3e..00000000 --- a/packages/proto/src/codegen/cosmos/nft/v1beta1/event.ts +++ /dev/null @@ -1,201 +0,0 @@ -import * as _m0 from "protobufjs/minimal"; -import { DeepPartial } from "../../../helpers"; -/** EventSend is emitted on Msg/Send */ -export interface EventSend { - classId: string; - id: string; - sender: string; - receiver: string; -} -/** EventSend is emitted on Msg/Send */ -export interface EventSendSDKType { - class_id: string; - id: string; - sender: string; - receiver: string; -} -/** EventMint is emitted on Mint */ -export interface EventMint { - classId: string; - id: string; - owner: string; -} -/** EventMint is emitted on Mint */ -export interface EventMintSDKType { - class_id: string; - id: string; - owner: string; -} -/** EventBurn is emitted on Burn */ -export interface EventBurn { - classId: string; - id: string; - owner: string; -} -/** EventBurn is emitted on Burn */ -export interface EventBurnSDKType { - class_id: string; - id: string; - owner: string; -} -function createBaseEventSend(): EventSend { - return { - classId: "", - id: "", - sender: "", - receiver: "" - }; -} -export const EventSend = { - encode(message: EventSend, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.classId !== "") { - writer.uint32(10).string(message.classId); - } - if (message.id !== "") { - writer.uint32(18).string(message.id); - } - if (message.sender !== "") { - writer.uint32(26).string(message.sender); - } - if (message.receiver !== "") { - writer.uint32(34).string(message.receiver); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): EventSend { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventSend(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.classId = reader.string(); - break; - case 2: - message.id = reader.string(); - break; - case 3: - message.sender = reader.string(); - break; - case 4: - message.receiver = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): EventSend { - const message = createBaseEventSend(); - message.classId = object.classId ?? ""; - message.id = object.id ?? ""; - message.sender = object.sender ?? ""; - message.receiver = object.receiver ?? ""; - return message; - } -}; -function createBaseEventMint(): EventMint { - return { - classId: "", - id: "", - owner: "" - }; -} -export const EventMint = { - encode(message: EventMint, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.classId !== "") { - writer.uint32(10).string(message.classId); - } - if (message.id !== "") { - writer.uint32(18).string(message.id); - } - if (message.owner !== "") { - writer.uint32(26).string(message.owner); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): EventMint { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventMint(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.classId = reader.string(); - break; - case 2: - message.id = reader.string(); - break; - case 3: - message.owner = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): EventMint { - const message = createBaseEventMint(); - message.classId = object.classId ?? ""; - message.id = object.id ?? ""; - message.owner = object.owner ?? ""; - return message; - } -}; -function createBaseEventBurn(): EventBurn { - return { - classId: "", - id: "", - owner: "" - }; -} -export const EventBurn = { - encode(message: EventBurn, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.classId !== "") { - writer.uint32(10).string(message.classId); - } - if (message.id !== "") { - writer.uint32(18).string(message.id); - } - if (message.owner !== "") { - writer.uint32(26).string(message.owner); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): EventBurn { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEventBurn(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.classId = reader.string(); - break; - case 2: - message.id = reader.string(); - break; - case 3: - message.owner = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): EventBurn { - const message = createBaseEventBurn(); - message.classId = object.classId ?? ""; - message.id = object.id ?? ""; - message.owner = object.owner ?? ""; - return message; - } -}; \ No newline at end of file diff --git a/packages/proto/src/codegen/cosmos/nft/v1beta1/genesis.ts b/packages/proto/src/codegen/cosmos/nft/v1beta1/genesis.ts deleted file mode 100644 index f782f4be..00000000 --- a/packages/proto/src/codegen/cosmos/nft/v1beta1/genesis.ts +++ /dev/null @@ -1,112 +0,0 @@ -import { Class, ClassSDKType, NFT, NFTSDKType } from "./nft"; -import * as _m0 from "protobufjs/minimal"; -import { DeepPartial } from "../../../helpers"; -/** GenesisState defines the nft module's genesis state. */ -export interface GenesisState { - /** class defines the class of the nft type. */ - classes: Class[]; - entries: Entry[]; -} -/** GenesisState defines the nft module's genesis state. */ -export interface GenesisStateSDKType { - classes: ClassSDKType[]; - entries: EntrySDKType[]; -} -/** Entry Defines all nft owned by a person */ -export interface Entry { - /** owner is the owner address of the following nft */ - owner: string; - /** nfts is a group of nfts of the same owner */ - nfts: NFT[]; -} -/** Entry Defines all nft owned by a person */ -export interface EntrySDKType { - owner: string; - nfts: NFTSDKType[]; -} -function createBaseGenesisState(): GenesisState { - return { - classes: [], - entries: [] - }; -} -export const GenesisState = { - encode(message: GenesisState, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - for (const v of message.classes) { - Class.encode(v!, writer.uint32(10).fork()).ldelim(); - } - for (const v of message.entries) { - Entry.encode(v!, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): GenesisState { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGenesisState(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.classes.push(Class.decode(reader, reader.uint32())); - break; - case 2: - message.entries.push(Entry.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): GenesisState { - const message = createBaseGenesisState(); - message.classes = object.classes?.map(e => Class.fromPartial(e)) || []; - message.entries = object.entries?.map(e => Entry.fromPartial(e)) || []; - return message; - } -}; -function createBaseEntry(): Entry { - return { - owner: "", - nfts: [] - }; -} -export const Entry = { - encode(message: Entry, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.owner !== "") { - writer.uint32(10).string(message.owner); - } - for (const v of message.nfts) { - NFT.encode(v!, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): Entry { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEntry(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.owner = reader.string(); - break; - case 2: - message.nfts.push(NFT.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): Entry { - const message = createBaseEntry(); - message.owner = object.owner ?? ""; - message.nfts = object.nfts?.map(e => NFT.fromPartial(e)) || []; - return message; - } -}; \ No newline at end of file diff --git a/packages/proto/src/codegen/cosmos/nft/v1beta1/nft.ts b/packages/proto/src/codegen/cosmos/nft/v1beta1/nft.ts deleted file mode 100644 index d757470d..00000000 --- a/packages/proto/src/codegen/cosmos/nft/v1beta1/nft.ts +++ /dev/null @@ -1,201 +0,0 @@ -import { Any, AnySDKType } from "../../../google/protobuf/any"; -import * as _m0 from "protobufjs/minimal"; -import { DeepPartial } from "../../../helpers"; -/** Class defines the class of the nft type. */ -export interface Class { - /** id defines the unique identifier of the NFT classification, similar to the contract address of ERC721 */ - id: string; - /** name defines the human-readable name of the NFT classification. Optional */ - name: string; - /** symbol is an abbreviated name for nft classification. Optional */ - symbol: string; - /** description is a brief description of nft classification. Optional */ - description: string; - /** uri for the class metadata stored off chain. It can define schema for Class and NFT `Data` attributes. Optional */ - uri: string; - /** uri_hash is a hash of the document pointed by uri. Optional */ - uriHash: string; - /** data is the app specific metadata of the NFT class. Optional */ - data: Any; -} -/** Class defines the class of the nft type. */ -export interface ClassSDKType { - id: string; - name: string; - symbol: string; - description: string; - uri: string; - uri_hash: string; - data: AnySDKType; -} -/** NFT defines the NFT. */ -export interface NFT { - /** class_id associated with the NFT, similar to the contract address of ERC721 */ - classId: string; - /** id is a unique identifier of the NFT */ - id: string; - /** uri for the NFT metadata stored off chain */ - uri: string; - /** uri_hash is a hash of the document pointed by uri */ - uriHash: string; - /** data is an app specific data of the NFT. Optional */ - data: Any; -} -/** NFT defines the NFT. */ -export interface NFTSDKType { - class_id: string; - id: string; - uri: string; - uri_hash: string; - data: AnySDKType; -} -function createBaseClass(): Class { - return { - id: "", - name: "", - symbol: "", - description: "", - uri: "", - uriHash: "", - data: undefined - }; -} -export const Class = { - encode(message: Class, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.id !== "") { - writer.uint32(10).string(message.id); - } - if (message.name !== "") { - writer.uint32(18).string(message.name); - } - if (message.symbol !== "") { - writer.uint32(26).string(message.symbol); - } - if (message.description !== "") { - writer.uint32(34).string(message.description); - } - if (message.uri !== "") { - writer.uint32(42).string(message.uri); - } - if (message.uriHash !== "") { - writer.uint32(50).string(message.uriHash); - } - if (message.data !== undefined) { - Any.encode(message.data, writer.uint32(58).fork()).ldelim(); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): Class { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseClass(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = reader.string(); - break; - case 2: - message.name = reader.string(); - break; - case 3: - message.symbol = reader.string(); - break; - case 4: - message.description = reader.string(); - break; - case 5: - message.uri = reader.string(); - break; - case 6: - message.uriHash = reader.string(); - break; - case 7: - message.data = Any.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): Class { - const message = createBaseClass(); - message.id = object.id ?? ""; - message.name = object.name ?? ""; - message.symbol = object.symbol ?? ""; - message.description = object.description ?? ""; - message.uri = object.uri ?? ""; - message.uriHash = object.uriHash ?? ""; - message.data = object.data !== undefined && object.data !== null ? Any.fromPartial(object.data) : undefined; - return message; - } -}; -function createBaseNFT(): NFT { - return { - classId: "", - id: "", - uri: "", - uriHash: "", - data: undefined - }; -} -export const NFT = { - encode(message: NFT, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.classId !== "") { - writer.uint32(10).string(message.classId); - } - if (message.id !== "") { - writer.uint32(18).string(message.id); - } - if (message.uri !== "") { - writer.uint32(26).string(message.uri); - } - if (message.uriHash !== "") { - writer.uint32(34).string(message.uriHash); - } - if (message.data !== undefined) { - Any.encode(message.data, writer.uint32(82).fork()).ldelim(); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): NFT { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseNFT(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.classId = reader.string(); - break; - case 2: - message.id = reader.string(); - break; - case 3: - message.uri = reader.string(); - break; - case 4: - message.uriHash = reader.string(); - break; - case 10: - message.data = Any.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): NFT { - const message = createBaseNFT(); - message.classId = object.classId ?? ""; - message.id = object.id ?? ""; - message.uri = object.uri ?? ""; - message.uriHash = object.uriHash ?? ""; - message.data = object.data !== undefined && object.data !== null ? Any.fromPartial(object.data) : undefined; - return message; - } -}; \ No newline at end of file diff --git a/packages/proto/src/codegen/cosmos/nft/v1beta1/query.lcd.ts b/packages/proto/src/codegen/cosmos/nft/v1beta1/query.lcd.ts deleted file mode 100644 index c1042772..00000000 --- a/packages/proto/src/codegen/cosmos/nft/v1beta1/query.lcd.ts +++ /dev/null @@ -1,76 +0,0 @@ -import { setPaginationParams } from "../../../helpers"; -import { LCDClient } from "@osmonauts/lcd"; -import { QueryBalanceRequest, QueryBalanceResponseSDKType, QueryOwnerRequest, QueryOwnerResponseSDKType, QuerySupplyRequest, QuerySupplyResponseSDKType, QueryNFTsRequest, QueryNFTsResponseSDKType, QueryNFTRequest, QueryNFTResponseSDKType, QueryClassRequest, QueryClassResponseSDKType, QueryClassesRequest, QueryClassesResponseSDKType } from "./query"; -export class LCDQueryClient { - req: LCDClient; - constructor({ - requestClient - }: { - requestClient: LCDClient; - }) { - this.req = requestClient; - this.balance = this.balance.bind(this); - this.owner = this.owner.bind(this); - this.supply = this.supply.bind(this); - this.nFTs = this.nFTs.bind(this); - this.nFT = this.nFT.bind(this); - this.class = this.class.bind(this); - this.classes = this.classes.bind(this); - } - /* Balance queries the number of NFTs of a given class owned by the owner, same as balanceOf in ERC721 */ - async balance(params: QueryBalanceRequest): Promise { - const endpoint = `cosmos/nft/v1beta1/balance/${params.owner}/${params.classId}`; - return await this.req.get(endpoint); - } - /* Owner queries the owner of the NFT based on its class and id, same as ownerOf in ERC721 */ - async owner(params: QueryOwnerRequest): Promise { - const endpoint = `cosmos/nft/v1beta1/owner/${params.classId}/${params.id}`; - return await this.req.get(endpoint); - } - /* Supply queries the number of NFTs from the given class, same as totalSupply of ERC721. */ - async supply(params: QuerySupplyRequest): Promise { - const endpoint = `cosmos/nft/v1beta1/supply/${params.classId}`; - return await this.req.get(endpoint); - } - /* NFTs queries all NFTs of a given class or owner,choose at least one of the two, similar to tokenByIndex in - ERC721Enumerable */ - async nFTs(params: QueryNFTsRequest): Promise { - const options: any = { - params: {} - }; - if (typeof params?.classId !== "undefined") { - options.params.class_id = params.classId; - } - if (typeof params?.owner !== "undefined") { - options.params.owner = params.owner; - } - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `cosmos/nft/v1beta1/nfts`; - return await this.req.get(endpoint, options); - } - /* NFT queries an NFT based on its class and id. */ - async nFT(params: QueryNFTRequest): Promise { - const endpoint = `cosmos/nft/v1beta1/nfts/${params.classId}/${params.id}`; - return await this.req.get(endpoint); - } - /* Class queries an NFT class based on its id */ - async class(params: QueryClassRequest): Promise { - const endpoint = `cosmos/nft/v1beta1/classes/${params.classId}`; - return await this.req.get(endpoint); - } - /* Classes queries all NFT classes */ - async classes(params: QueryClassesRequest = { - pagination: undefined - }): Promise { - const options: any = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `cosmos/nft/v1beta1/classes`; - return await this.req.get(endpoint, options); - } -} \ No newline at end of file diff --git a/packages/proto/src/codegen/cosmos/nft/v1beta1/query.ts b/packages/proto/src/codegen/cosmos/nft/v1beta1/query.ts deleted file mode 100644 index 82a047dd..00000000 --- a/packages/proto/src/codegen/cosmos/nft/v1beta1/query.ts +++ /dev/null @@ -1,677 +0,0 @@ -import { PageRequest, PageRequestSDKType, PageResponse, PageResponseSDKType } from "../../base/query/v1beta1/pagination"; -import { NFT, NFTSDKType, Class, ClassSDKType } from "./nft"; -import { Long, DeepPartial } from "../../../helpers"; -import * as _m0 from "protobufjs/minimal"; -/** QueryBalanceRequest is the request type for the Query/Balance RPC method */ -export interface QueryBalanceRequest { - classId: string; - owner: string; -} -/** QueryBalanceRequest is the request type for the Query/Balance RPC method */ -export interface QueryBalanceRequestSDKType { - class_id: string; - owner: string; -} -/** QueryBalanceResponse is the response type for the Query/Balance RPC method */ -export interface QueryBalanceResponse { - amount: Long; -} -/** QueryBalanceResponse is the response type for the Query/Balance RPC method */ -export interface QueryBalanceResponseSDKType { - amount: Long; -} -/** QueryOwnerRequest is the request type for the Query/Owner RPC method */ -export interface QueryOwnerRequest { - classId: string; - id: string; -} -/** QueryOwnerRequest is the request type for the Query/Owner RPC method */ -export interface QueryOwnerRequestSDKType { - class_id: string; - id: string; -} -/** QueryOwnerResponse is the response type for the Query/Owner RPC method */ -export interface QueryOwnerResponse { - owner: string; -} -/** QueryOwnerResponse is the response type for the Query/Owner RPC method */ -export interface QueryOwnerResponseSDKType { - owner: string; -} -/** QuerySupplyRequest is the request type for the Query/Supply RPC method */ -export interface QuerySupplyRequest { - classId: string; -} -/** QuerySupplyRequest is the request type for the Query/Supply RPC method */ -export interface QuerySupplyRequestSDKType { - class_id: string; -} -/** QuerySupplyResponse is the response type for the Query/Supply RPC method */ -export interface QuerySupplyResponse { - amount: Long; -} -/** QuerySupplyResponse is the response type for the Query/Supply RPC method */ -export interface QuerySupplyResponseSDKType { - amount: Long; -} -/** QueryNFTstRequest is the request type for the Query/NFTs RPC method */ -export interface QueryNFTsRequest { - classId: string; - owner: string; - pagination: PageRequest; -} -/** QueryNFTstRequest is the request type for the Query/NFTs RPC method */ -export interface QueryNFTsRequestSDKType { - class_id: string; - owner: string; - pagination: PageRequestSDKType; -} -/** QueryNFTsResponse is the response type for the Query/NFTs RPC methods */ -export interface QueryNFTsResponse { - nfts: NFT[]; - pagination: PageResponse; -} -/** QueryNFTsResponse is the response type for the Query/NFTs RPC methods */ -export interface QueryNFTsResponseSDKType { - nfts: NFTSDKType[]; - pagination: PageResponseSDKType; -} -/** QueryNFTRequest is the request type for the Query/NFT RPC method */ -export interface QueryNFTRequest { - classId: string; - id: string; -} -/** QueryNFTRequest is the request type for the Query/NFT RPC method */ -export interface QueryNFTRequestSDKType { - class_id: string; - id: string; -} -/** QueryNFTResponse is the response type for the Query/NFT RPC method */ -export interface QueryNFTResponse { - nft: NFT; -} -/** QueryNFTResponse is the response type for the Query/NFT RPC method */ -export interface QueryNFTResponseSDKType { - nft: NFTSDKType; -} -/** QueryClassRequest is the request type for the Query/Class RPC method */ -export interface QueryClassRequest { - classId: string; -} -/** QueryClassRequest is the request type for the Query/Class RPC method */ -export interface QueryClassRequestSDKType { - class_id: string; -} -/** QueryClassResponse is the response type for the Query/Class RPC method */ -export interface QueryClassResponse { - class: Class; -} -/** QueryClassResponse is the response type for the Query/Class RPC method */ -export interface QueryClassResponseSDKType { - class: ClassSDKType; -} -/** QueryClassesRequest is the request type for the Query/Classes RPC method */ -export interface QueryClassesRequest { - /** pagination defines an optional pagination for the request. */ - pagination: PageRequest; -} -/** QueryClassesRequest is the request type for the Query/Classes RPC method */ -export interface QueryClassesRequestSDKType { - pagination: PageRequestSDKType; -} -/** QueryClassesResponse is the response type for the Query/Classes RPC method */ -export interface QueryClassesResponse { - classes: Class[]; - pagination: PageResponse; -} -/** QueryClassesResponse is the response type for the Query/Classes RPC method */ -export interface QueryClassesResponseSDKType { - classes: ClassSDKType[]; - pagination: PageResponseSDKType; -} -function createBaseQueryBalanceRequest(): QueryBalanceRequest { - return { - classId: "", - owner: "" - }; -} -export const QueryBalanceRequest = { - encode(message: QueryBalanceRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.classId !== "") { - writer.uint32(10).string(message.classId); - } - if (message.owner !== "") { - writer.uint32(18).string(message.owner); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): QueryBalanceRequest { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryBalanceRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.classId = reader.string(); - break; - case 2: - message.owner = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): QueryBalanceRequest { - const message = createBaseQueryBalanceRequest(); - message.classId = object.classId ?? ""; - message.owner = object.owner ?? ""; - return message; - } -}; -function createBaseQueryBalanceResponse(): QueryBalanceResponse { - return { - amount: Long.UZERO - }; -} -export const QueryBalanceResponse = { - encode(message: QueryBalanceResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (!message.amount.isZero()) { - writer.uint32(8).uint64(message.amount); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): QueryBalanceResponse { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryBalanceResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.amount = (reader.uint64() as Long); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): QueryBalanceResponse { - const message = createBaseQueryBalanceResponse(); - message.amount = object.amount !== undefined && object.amount !== null ? Long.fromValue(object.amount) : Long.UZERO; - return message; - } -}; -function createBaseQueryOwnerRequest(): QueryOwnerRequest { - return { - classId: "", - id: "" - }; -} -export const QueryOwnerRequest = { - encode(message: QueryOwnerRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.classId !== "") { - writer.uint32(10).string(message.classId); - } - if (message.id !== "") { - writer.uint32(18).string(message.id); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): QueryOwnerRequest { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryOwnerRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.classId = reader.string(); - break; - case 2: - message.id = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): QueryOwnerRequest { - const message = createBaseQueryOwnerRequest(); - message.classId = object.classId ?? ""; - message.id = object.id ?? ""; - return message; - } -}; -function createBaseQueryOwnerResponse(): QueryOwnerResponse { - return { - owner: "" - }; -} -export const QueryOwnerResponse = { - encode(message: QueryOwnerResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.owner !== "") { - writer.uint32(10).string(message.owner); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): QueryOwnerResponse { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryOwnerResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.owner = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): QueryOwnerResponse { - const message = createBaseQueryOwnerResponse(); - message.owner = object.owner ?? ""; - return message; - } -}; -function createBaseQuerySupplyRequest(): QuerySupplyRequest { - return { - classId: "" - }; -} -export const QuerySupplyRequest = { - encode(message: QuerySupplyRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.classId !== "") { - writer.uint32(10).string(message.classId); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): QuerySupplyRequest { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQuerySupplyRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.classId = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): QuerySupplyRequest { - const message = createBaseQuerySupplyRequest(); - message.classId = object.classId ?? ""; - return message; - } -}; -function createBaseQuerySupplyResponse(): QuerySupplyResponse { - return { - amount: Long.UZERO - }; -} -export const QuerySupplyResponse = { - encode(message: QuerySupplyResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (!message.amount.isZero()) { - writer.uint32(8).uint64(message.amount); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): QuerySupplyResponse { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQuerySupplyResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.amount = (reader.uint64() as Long); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): QuerySupplyResponse { - const message = createBaseQuerySupplyResponse(); - message.amount = object.amount !== undefined && object.amount !== null ? Long.fromValue(object.amount) : Long.UZERO; - return message; - } -}; -function createBaseQueryNFTsRequest(): QueryNFTsRequest { - return { - classId: "", - owner: "", - pagination: PageRequest.fromPartial({}) - }; -} -export const QueryNFTsRequest = { - encode(message: QueryNFTsRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.classId !== "") { - writer.uint32(10).string(message.classId); - } - if (message.owner !== "") { - writer.uint32(18).string(message.owner); - } - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): QueryNFTsRequest { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryNFTsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.classId = reader.string(); - break; - case 2: - message.owner = reader.string(); - break; - case 3: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): QueryNFTsRequest { - const message = createBaseQueryNFTsRequest(); - message.classId = object.classId ?? ""; - message.owner = object.owner ?? ""; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - } -}; -function createBaseQueryNFTsResponse(): QueryNFTsResponse { - return { - nfts: [], - pagination: PageResponse.fromPartial({}) - }; -} -export const QueryNFTsResponse = { - encode(message: QueryNFTsResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - for (const v of message.nfts) { - NFT.encode(v!, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): QueryNFTsResponse { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryNFTsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.nfts.push(NFT.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): QueryNFTsResponse { - const message = createBaseQueryNFTsResponse(); - message.nfts = object.nfts?.map(e => NFT.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - } -}; -function createBaseQueryNFTRequest(): QueryNFTRequest { - return { - classId: "", - id: "" - }; -} -export const QueryNFTRequest = { - encode(message: QueryNFTRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.classId !== "") { - writer.uint32(10).string(message.classId); - } - if (message.id !== "") { - writer.uint32(18).string(message.id); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): QueryNFTRequest { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryNFTRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.classId = reader.string(); - break; - case 2: - message.id = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): QueryNFTRequest { - const message = createBaseQueryNFTRequest(); - message.classId = object.classId ?? ""; - message.id = object.id ?? ""; - return message; - } -}; -function createBaseQueryNFTResponse(): QueryNFTResponse { - return { - nft: NFT.fromPartial({}) - }; -} -export const QueryNFTResponse = { - encode(message: QueryNFTResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.nft !== undefined) { - NFT.encode(message.nft, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): QueryNFTResponse { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryNFTResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.nft = NFT.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): QueryNFTResponse { - const message = createBaseQueryNFTResponse(); - message.nft = object.nft !== undefined && object.nft !== null ? NFT.fromPartial(object.nft) : undefined; - return message; - } -}; -function createBaseQueryClassRequest(): QueryClassRequest { - return { - classId: "" - }; -} -export const QueryClassRequest = { - encode(message: QueryClassRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.classId !== "") { - writer.uint32(10).string(message.classId); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): QueryClassRequest { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryClassRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.classId = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): QueryClassRequest { - const message = createBaseQueryClassRequest(); - message.classId = object.classId ?? ""; - return message; - } -}; -function createBaseQueryClassResponse(): QueryClassResponse { - return { - class: Class.fromPartial({}) - }; -} -export const QueryClassResponse = { - encode(message: QueryClassResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.class !== undefined) { - Class.encode(message.class, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): QueryClassResponse { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryClassResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.class = Class.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): QueryClassResponse { - const message = createBaseQueryClassResponse(); - message.class = object.class !== undefined && object.class !== null ? Class.fromPartial(object.class) : undefined; - return message; - } -}; -function createBaseQueryClassesRequest(): QueryClassesRequest { - return { - pagination: PageRequest.fromPartial({}) - }; -} -export const QueryClassesRequest = { - encode(message: QueryClassesRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): QueryClassesRequest { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryClassesRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): QueryClassesRequest { - const message = createBaseQueryClassesRequest(); - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - } -}; -function createBaseQueryClassesResponse(): QueryClassesResponse { - return { - classes: [], - pagination: PageResponse.fromPartial({}) - }; -} -export const QueryClassesResponse = { - encode(message: QueryClassesResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - for (const v of message.classes) { - Class.encode(v!, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): QueryClassesResponse { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryClassesResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.classes.push(Class.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): QueryClassesResponse { - const message = createBaseQueryClassesResponse(); - message.classes = object.classes?.map(e => Class.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - } -}; \ No newline at end of file diff --git a/packages/proto/src/codegen/cosmos/nft/v1beta1/tx.amino.ts b/packages/proto/src/codegen/cosmos/nft/v1beta1/tx.amino.ts deleted file mode 100644 index 365ef833..00000000 --- a/packages/proto/src/codegen/cosmos/nft/v1beta1/tx.amino.ts +++ /dev/null @@ -1,42 +0,0 @@ -import { AminoMsg } from "@cosmjs/amino"; -import { MsgSend } from "./tx"; -export interface MsgSendAminoType extends AminoMsg { - type: "cosmos-sdk/MsgNFTSend"; - value: { - class_id: string; - id: string; - sender: string; - receiver: string; - }; -} -export const AminoConverter = { - "/cosmos.nft.v1beta1.MsgSend": { - aminoType: "cosmos-sdk/MsgNFTSend", - toAmino: ({ - classId, - id, - sender, - receiver - }: MsgSend): MsgSendAminoType["value"] => { - return { - class_id: classId, - id, - sender, - receiver - }; - }, - fromAmino: ({ - class_id, - id, - sender, - receiver - }: MsgSendAminoType["value"]): MsgSend => { - return { - classId: class_id, - id, - sender, - receiver - }; - } - } -}; \ No newline at end of file diff --git a/packages/proto/src/codegen/cosmos/nft/v1beta1/tx.registry.ts b/packages/proto/src/codegen/cosmos/nft/v1beta1/tx.registry.ts deleted file mode 100644 index d8c40622..00000000 --- a/packages/proto/src/codegen/cosmos/nft/v1beta1/tx.registry.ts +++ /dev/null @@ -1,34 +0,0 @@ -import { GeneratedType, Registry } from "@cosmjs/proto-signing"; -import { MsgSend } from "./tx"; -export const registry: ReadonlyArray<[string, GeneratedType]> = [["/cosmos.nft.v1beta1.MsgSend", MsgSend]]; -export const load = (protoRegistry: Registry) => { - registry.forEach(([typeUrl, mod]) => { - protoRegistry.register(typeUrl, mod); - }); -}; -export const MessageComposer = { - encoded: { - send(value: MsgSend) { - return { - typeUrl: "/cosmos.nft.v1beta1.MsgSend", - value: MsgSend.encode(value).finish() - }; - } - }, - withTypeUrl: { - send(value: MsgSend) { - return { - typeUrl: "/cosmos.nft.v1beta1.MsgSend", - value - }; - } - }, - fromPartial: { - send(value: MsgSend) { - return { - typeUrl: "/cosmos.nft.v1beta1.MsgSend", - value: MsgSend.fromPartial(value) - }; - } - } -}; \ No newline at end of file diff --git a/packages/proto/src/codegen/cosmos/nft/v1beta1/tx.ts b/packages/proto/src/codegen/cosmos/nft/v1beta1/tx.ts deleted file mode 100644 index 538e967a..00000000 --- a/packages/proto/src/codegen/cosmos/nft/v1beta1/tx.ts +++ /dev/null @@ -1,109 +0,0 @@ -import * as _m0 from "protobufjs/minimal"; -import { DeepPartial } from "../../../helpers"; -/** MsgSend represents a message to send a nft from one account to another account. */ -export interface MsgSend { - /** class_id defines the unique identifier of the nft classification, similar to the contract address of ERC721 */ - classId: string; - /** id defines the unique identification of nft */ - id: string; - /** sender is the address of the owner of nft */ - sender: string; - /** receiver is the receiver address of nft */ - receiver: string; -} -/** MsgSend represents a message to send a nft from one account to another account. */ -export interface MsgSendSDKType { - class_id: string; - id: string; - sender: string; - receiver: string; -} -/** MsgSendResponse defines the Msg/Send response type. */ -export interface MsgSendResponse {} -/** MsgSendResponse defines the Msg/Send response type. */ -export interface MsgSendResponseSDKType {} -function createBaseMsgSend(): MsgSend { - return { - classId: "", - id: "", - sender: "", - receiver: "" - }; -} -export const MsgSend = { - encode(message: MsgSend, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.classId !== "") { - writer.uint32(10).string(message.classId); - } - if (message.id !== "") { - writer.uint32(18).string(message.id); - } - if (message.sender !== "") { - writer.uint32(26).string(message.sender); - } - if (message.receiver !== "") { - writer.uint32(34).string(message.receiver); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): MsgSend { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgSend(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.classId = reader.string(); - break; - case 2: - message.id = reader.string(); - break; - case 3: - message.sender = reader.string(); - break; - case 4: - message.receiver = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): MsgSend { - const message = createBaseMsgSend(); - message.classId = object.classId ?? ""; - message.id = object.id ?? ""; - message.sender = object.sender ?? ""; - message.receiver = object.receiver ?? ""; - return message; - } -}; -function createBaseMsgSendResponse(): MsgSendResponse { - return {}; -} -export const MsgSendResponse = { - encode(_: MsgSendResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): MsgSendResponse { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgSendResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_: DeepPartial): MsgSendResponse { - const message = createBaseMsgSendResponse(); - return message; - } -}; \ No newline at end of file diff --git a/packages/proto/src/codegen/cosmos/orm/v1/orm.ts b/packages/proto/src/codegen/cosmos/orm/v1/orm.ts deleted file mode 100644 index e131575b..00000000 --- a/packages/proto/src/codegen/cosmos/orm/v1/orm.ts +++ /dev/null @@ -1,290 +0,0 @@ -import * as _m0 from "protobufjs/minimal"; -import { DeepPartial } from "../../../helpers"; -/** TableDescriptor describes an ORM table. */ -export interface TableDescriptor { - /** primary_key defines the primary key for the table. */ - primaryKey: PrimaryKeyDescriptor; - /** index defines one or more secondary indexes. */ - index: SecondaryIndexDescriptor[]; - /** - * id is a non-zero integer ID that must be unique within the - * tables and singletons in this file. It may be deprecated in the future when this - * can be auto-generated. - */ - id: number; -} -/** TableDescriptor describes an ORM table. */ -export interface TableDescriptorSDKType { - primary_key: PrimaryKeyDescriptorSDKType; - index: SecondaryIndexDescriptorSDKType[]; - id: number; -} -/** PrimaryKeyDescriptor describes a table primary key. */ -export interface PrimaryKeyDescriptor { - /** - * fields is a comma-separated list of fields in the primary key. Spaces are - * not allowed. Supported field types, their encodings, and any applicable constraints - * are described below. - * - uint32 are encoded as 2,3,4 or 5 bytes using a compact encoding that - * is suitable for sorted iteration (not varint encoding). This type is - * well-suited for small integers. - * - uint64 are encoded as 2,4,6 or 9 bytes using a compact encoding that - * is suitable for sorted iteration (not varint encoding). This type is - * well-suited for small integers such as auto-incrementing sequences. - * - fixed32, fixed64 are encoded as big-endian fixed width bytes and support - * sorted iteration. These types are well-suited for encoding fixed with - * decimals as integers. - * - string's are encoded as raw bytes in terminal key segments and null-terminated - * in non-terminal segments. Null characters are thus forbidden in strings. - * string fields support sorted iteration. - * - bytes are encoded as raw bytes in terminal segments and length-prefixed - * with a 32-bit unsigned varint in non-terminal segments. - * - int32, sint32, int64, sint64, sfixed32, sfixed64 are encoded as fixed width bytes with - * an encoding that enables sorted iteration. - * - google.protobuf.Timestamp and google.protobuf.Duration are encoded - * as 12 bytes using an encoding that enables sorted iteration. - * - enum fields are encoded using varint encoding and do not support sorted - * iteration. - * - bool fields are encoded as a single byte 0 or 1. - * - * All other fields types are unsupported in keys including repeated and - * oneof fields. - * - * Primary keys are prefixed by the varint encoded table id and the byte 0x0 - * plus any additional prefix specified by the schema. - */ - fields: string; - /** - * auto_increment specifies that the primary key is generated by an - * auto-incrementing integer. If this is set to true fields must only - * contain one field of that is of type uint64. - */ - autoIncrement: boolean; -} -/** PrimaryKeyDescriptor describes a table primary key. */ -export interface PrimaryKeyDescriptorSDKType { - fields: string; - auto_increment: boolean; -} -/** PrimaryKeyDescriptor describes a table secondary index. */ -export interface SecondaryIndexDescriptor { - /** - * fields is a comma-separated list of fields in the index. The supported - * field types are the same as those for PrimaryKeyDescriptor.fields. - * Index keys are prefixed by the varint encoded table id and the varint - * encoded index id plus any additional prefix specified by the schema. - * - * In addition the the field segments, non-unique index keys are suffixed with - * any additional primary key fields not present in the index fields so that the - * primary key can be reconstructed. Unique indexes instead of being suffixed - * store the remaining primary key fields in the value.. - */ - fields: string; - /** - * id is a non-zero integer ID that must be unique within the indexes for this - * table and less than 32768. It may be deprecated in the future when this can - * be auto-generated. - */ - id: number; - /** unique specifies that this an unique index. */ - unique: boolean; -} -/** PrimaryKeyDescriptor describes a table secondary index. */ -export interface SecondaryIndexDescriptorSDKType { - fields: string; - id: number; - unique: boolean; -} -/** TableDescriptor describes an ORM singleton table which has at most one instance. */ -export interface SingletonDescriptor { - /** - * id is a non-zero integer ID that must be unique within the - * tables and singletons in this file. It may be deprecated in the future when this - * can be auto-generated. - */ - id: number; -} -/** TableDescriptor describes an ORM singleton table which has at most one instance. */ -export interface SingletonDescriptorSDKType { - id: number; -} -function createBaseTableDescriptor(): TableDescriptor { - return { - primaryKey: PrimaryKeyDescriptor.fromPartial({}), - index: [], - id: 0 - }; -} -export const TableDescriptor = { - encode(message: TableDescriptor, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.primaryKey !== undefined) { - PrimaryKeyDescriptor.encode(message.primaryKey, writer.uint32(10).fork()).ldelim(); - } - for (const v of message.index) { - SecondaryIndexDescriptor.encode(v!, writer.uint32(18).fork()).ldelim(); - } - if (message.id !== 0) { - writer.uint32(24).uint32(message.id); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): TableDescriptor { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseTableDescriptor(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.primaryKey = PrimaryKeyDescriptor.decode(reader, reader.uint32()); - break; - case 2: - message.index.push(SecondaryIndexDescriptor.decode(reader, reader.uint32())); - break; - case 3: - message.id = reader.uint32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): TableDescriptor { - const message = createBaseTableDescriptor(); - message.primaryKey = object.primaryKey !== undefined && object.primaryKey !== null ? PrimaryKeyDescriptor.fromPartial(object.primaryKey) : undefined; - message.index = object.index?.map(e => SecondaryIndexDescriptor.fromPartial(e)) || []; - message.id = object.id ?? 0; - return message; - } -}; -function createBasePrimaryKeyDescriptor(): PrimaryKeyDescriptor { - return { - fields: "", - autoIncrement: false - }; -} -export const PrimaryKeyDescriptor = { - encode(message: PrimaryKeyDescriptor, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.fields !== "") { - writer.uint32(10).string(message.fields); - } - if (message.autoIncrement === true) { - writer.uint32(16).bool(message.autoIncrement); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): PrimaryKeyDescriptor { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBasePrimaryKeyDescriptor(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.fields = reader.string(); - break; - case 2: - message.autoIncrement = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): PrimaryKeyDescriptor { - const message = createBasePrimaryKeyDescriptor(); - message.fields = object.fields ?? ""; - message.autoIncrement = object.autoIncrement ?? false; - return message; - } -}; -function createBaseSecondaryIndexDescriptor(): SecondaryIndexDescriptor { - return { - fields: "", - id: 0, - unique: false - }; -} -export const SecondaryIndexDescriptor = { - encode(message: SecondaryIndexDescriptor, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.fields !== "") { - writer.uint32(10).string(message.fields); - } - if (message.id !== 0) { - writer.uint32(16).uint32(message.id); - } - if (message.unique === true) { - writer.uint32(24).bool(message.unique); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): SecondaryIndexDescriptor { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseSecondaryIndexDescriptor(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.fields = reader.string(); - break; - case 2: - message.id = reader.uint32(); - break; - case 3: - message.unique = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): SecondaryIndexDescriptor { - const message = createBaseSecondaryIndexDescriptor(); - message.fields = object.fields ?? ""; - message.id = object.id ?? 0; - message.unique = object.unique ?? false; - return message; - } -}; -function createBaseSingletonDescriptor(): SingletonDescriptor { - return { - id: 0 - }; -} -export const SingletonDescriptor = { - encode(message: SingletonDescriptor, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.id !== 0) { - writer.uint32(8).uint32(message.id); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): SingletonDescriptor { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseSingletonDescriptor(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = reader.uint32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): SingletonDescriptor { - const message = createBaseSingletonDescriptor(); - message.id = object.id ?? 0; - return message; - } -}; \ No newline at end of file diff --git a/packages/proto/src/codegen/cosmos/orm/v1alpha1/schema.ts b/packages/proto/src/codegen/cosmos/orm/v1alpha1/schema.ts deleted file mode 100644 index 459baa95..00000000 --- a/packages/proto/src/codegen/cosmos/orm/v1alpha1/schema.ts +++ /dev/null @@ -1,220 +0,0 @@ -import * as _m0 from "protobufjs/minimal"; -import { DeepPartial } from "../../../helpers"; -/** StorageType */ -export enum StorageType { - /** - * STORAGE_TYPE_DEFAULT_UNSPECIFIED - STORAGE_TYPE_DEFAULT_UNSPECIFIED indicates the persistent - * KV-storage where primary key entries are stored in merkle-tree - * backed commitment storage and indexes and seqs are stored in - * fast index storage. Note that the Cosmos SDK before store/v2alpha1 - * does not support this. - */ - STORAGE_TYPE_DEFAULT_UNSPECIFIED = 0, - /** - * STORAGE_TYPE_MEMORY - STORAGE_TYPE_MEMORY indicates in-memory storage that will be - * reloaded every time an app restarts. Tables with this type of storage - * will by default be ignored when importing and exporting a module's - * state from JSON. - */ - STORAGE_TYPE_MEMORY = 1, - /** - * STORAGE_TYPE_TRANSIENT - STORAGE_TYPE_TRANSIENT indicates transient storage that is reset - * at the end of every block. Tables with this type of storage - * will by default be ignored when importing and exporting a module's - * state from JSON. - */ - STORAGE_TYPE_TRANSIENT = 2, - /** - * STORAGE_TYPE_INDEX - STORAGE_TYPE_INDEX indicates persistent storage which is not backed - * by a merkle-tree and won't affect the app hash. Note that the Cosmos SDK - * before store/v2alpha1 does not support this. - */ - STORAGE_TYPE_INDEX = 3, - /** - * STORAGE_TYPE_COMMITMENT - STORAGE_TYPE_INDEX indicates persistent storage which is backed by - * a merkle-tree. With this type of storage, both primary and index keys - * will affect the app hash and this is generally less efficient - * than using STORAGE_TYPE_DEFAULT_UNSPECIFIED which separates index - * keys into index storage. Note that modules built with the - * Cosmos SDK before store/v2alpha1 must specify STORAGE_TYPE_COMMITMENT - * instead of STORAGE_TYPE_DEFAULT_UNSPECIFIED or STORAGE_TYPE_INDEX - * because this is the only type of persistent storage available. - */ - STORAGE_TYPE_COMMITMENT = 4, - UNRECOGNIZED = -1, -} -export const StorageTypeSDKType = StorageType; -export function storageTypeFromJSON(object: any): StorageType { - switch (object) { - case 0: - case "STORAGE_TYPE_DEFAULT_UNSPECIFIED": - return StorageType.STORAGE_TYPE_DEFAULT_UNSPECIFIED; - case 1: - case "STORAGE_TYPE_MEMORY": - return StorageType.STORAGE_TYPE_MEMORY; - case 2: - case "STORAGE_TYPE_TRANSIENT": - return StorageType.STORAGE_TYPE_TRANSIENT; - case 3: - case "STORAGE_TYPE_INDEX": - return StorageType.STORAGE_TYPE_INDEX; - case 4: - case "STORAGE_TYPE_COMMITMENT": - return StorageType.STORAGE_TYPE_COMMITMENT; - case -1: - case "UNRECOGNIZED": - default: - return StorageType.UNRECOGNIZED; - } -} -export function storageTypeToJSON(object: StorageType): string { - switch (object) { - case StorageType.STORAGE_TYPE_DEFAULT_UNSPECIFIED: - return "STORAGE_TYPE_DEFAULT_UNSPECIFIED"; - case StorageType.STORAGE_TYPE_MEMORY: - return "STORAGE_TYPE_MEMORY"; - case StorageType.STORAGE_TYPE_TRANSIENT: - return "STORAGE_TYPE_TRANSIENT"; - case StorageType.STORAGE_TYPE_INDEX: - return "STORAGE_TYPE_INDEX"; - case StorageType.STORAGE_TYPE_COMMITMENT: - return "STORAGE_TYPE_COMMITMENT"; - case StorageType.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} -/** ModuleSchemaDescriptor describe's a module's ORM schema. */ -export interface ModuleSchemaDescriptor { - schemaFile: ModuleSchemaDescriptor_FileEntry[]; - /** - * prefix is an optional prefix that precedes all keys in this module's - * store. - */ - prefix: Uint8Array; -} -/** ModuleSchemaDescriptor describe's a module's ORM schema. */ -export interface ModuleSchemaDescriptorSDKType { - schema_file: ModuleSchemaDescriptor_FileEntrySDKType[]; - prefix: Uint8Array; -} -/** FileEntry describes an ORM file used in a module. */ -export interface ModuleSchemaDescriptor_FileEntry { - /** - * id is a prefix that will be varint encoded and prepended to all the - * table keys specified in the file's tables. - */ - id: number; - /** - * proto_file_name is the name of a file .proto in that contains - * table definitions. The .proto file must be in a package that the - * module has referenced using cosmos.app.v1.ModuleDescriptor.use_package. - */ - protoFileName: string; - /** - * storage_type optionally indicates the type of storage this file's - * tables should used. If it is left unspecified, the default KV-storage - * of the app will be used. - */ - storageType: StorageType; -} -/** FileEntry describes an ORM file used in a module. */ -export interface ModuleSchemaDescriptor_FileEntrySDKType { - id: number; - proto_file_name: string; - storage_type: StorageType; -} -function createBaseModuleSchemaDescriptor(): ModuleSchemaDescriptor { - return { - schemaFile: [], - prefix: new Uint8Array() - }; -} -export const ModuleSchemaDescriptor = { - encode(message: ModuleSchemaDescriptor, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - for (const v of message.schemaFile) { - ModuleSchemaDescriptor_FileEntry.encode(v!, writer.uint32(10).fork()).ldelim(); - } - if (message.prefix.length !== 0) { - writer.uint32(18).bytes(message.prefix); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): ModuleSchemaDescriptor { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseModuleSchemaDescriptor(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.schemaFile.push(ModuleSchemaDescriptor_FileEntry.decode(reader, reader.uint32())); - break; - case 2: - message.prefix = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): ModuleSchemaDescriptor { - const message = createBaseModuleSchemaDescriptor(); - message.schemaFile = object.schemaFile?.map(e => ModuleSchemaDescriptor_FileEntry.fromPartial(e)) || []; - message.prefix = object.prefix ?? new Uint8Array(); - return message; - } -}; -function createBaseModuleSchemaDescriptor_FileEntry(): ModuleSchemaDescriptor_FileEntry { - return { - id: 0, - protoFileName: "", - storageType: 0 - }; -} -export const ModuleSchemaDescriptor_FileEntry = { - encode(message: ModuleSchemaDescriptor_FileEntry, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.id !== 0) { - writer.uint32(8).uint32(message.id); - } - if (message.protoFileName !== "") { - writer.uint32(18).string(message.protoFileName); - } - if (message.storageType !== 0) { - writer.uint32(24).int32(message.storageType); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): ModuleSchemaDescriptor_FileEntry { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseModuleSchemaDescriptor_FileEntry(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = reader.uint32(); - break; - case 2: - message.protoFileName = reader.string(); - break; - case 3: - message.storageType = (reader.int32() as any); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): ModuleSchemaDescriptor_FileEntry { - const message = createBaseModuleSchemaDescriptor_FileEntry(); - message.id = object.id ?? 0; - message.protoFileName = object.protoFileName ?? ""; - message.storageType = object.storageType ?? 0; - return message; - } -}; \ No newline at end of file diff --git a/packages/proto/src/codegen/cosmos/params/v1beta1/params.ts b/packages/proto/src/codegen/cosmos/params/v1beta1/params.ts deleted file mode 100644 index ddc2bc32..00000000 --- a/packages/proto/src/codegen/cosmos/params/v1beta1/params.ts +++ /dev/null @@ -1,134 +0,0 @@ -import * as _m0 from "protobufjs/minimal"; -import { DeepPartial } from "../../../helpers"; -/** ParameterChangeProposal defines a proposal to change one or more parameters. */ -export interface ParameterChangeProposal { - title: string; - description: string; - changes: ParamChange[]; -} -/** ParameterChangeProposal defines a proposal to change one or more parameters. */ -export interface ParameterChangeProposalSDKType { - title: string; - description: string; - changes: ParamChangeSDKType[]; -} -/** - * ParamChange defines an individual parameter change, for use in - * ParameterChangeProposal. - */ -export interface ParamChange { - subspace: string; - key: string; - value: string; -} -/** - * ParamChange defines an individual parameter change, for use in - * ParameterChangeProposal. - */ -export interface ParamChangeSDKType { - subspace: string; - key: string; - value: string; -} -function createBaseParameterChangeProposal(): ParameterChangeProposal { - return { - title: "", - description: "", - changes: [] - }; -} -export const ParameterChangeProposal = { - encode(message: ParameterChangeProposal, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.title !== "") { - writer.uint32(10).string(message.title); - } - if (message.description !== "") { - writer.uint32(18).string(message.description); - } - for (const v of message.changes) { - ParamChange.encode(v!, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): ParameterChangeProposal { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseParameterChangeProposal(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.title = reader.string(); - break; - case 2: - message.description = reader.string(); - break; - case 3: - message.changes.push(ParamChange.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): ParameterChangeProposal { - const message = createBaseParameterChangeProposal(); - message.title = object.title ?? ""; - message.description = object.description ?? ""; - message.changes = object.changes?.map(e => ParamChange.fromPartial(e)) || []; - return message; - } -}; -function createBaseParamChange(): ParamChange { - return { - subspace: "", - key: "", - value: "" - }; -} -export const ParamChange = { - encode(message: ParamChange, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.subspace !== "") { - writer.uint32(10).string(message.subspace); - } - if (message.key !== "") { - writer.uint32(18).string(message.key); - } - if (message.value !== "") { - writer.uint32(26).string(message.value); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): ParamChange { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseParamChange(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.subspace = reader.string(); - break; - case 2: - message.key = reader.string(); - break; - case 3: - message.value = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): ParamChange { - const message = createBaseParamChange(); - message.subspace = object.subspace ?? ""; - message.key = object.key ?? ""; - message.value = object.value ?? ""; - return message; - } -}; \ No newline at end of file diff --git a/packages/proto/src/codegen/cosmos/params/v1beta1/query.lcd.ts b/packages/proto/src/codegen/cosmos/params/v1beta1/query.lcd.ts deleted file mode 100644 index d5df1269..00000000 --- a/packages/proto/src/codegen/cosmos/params/v1beta1/query.lcd.ts +++ /dev/null @@ -1,34 +0,0 @@ -import { LCDClient } from "@osmonauts/lcd"; -import { QueryParamsRequest, QueryParamsResponseSDKType, QuerySubspacesRequest, QuerySubspacesResponseSDKType } from "./query"; -export class LCDQueryClient { - req: LCDClient; - constructor({ - requestClient - }: { - requestClient: LCDClient; - }) { - this.req = requestClient; - this.params = this.params.bind(this); - this.subspaces = this.subspaces.bind(this); - } - /* Params queries a specific parameter of a module, given its subspace and - key. */ - async params(params: QueryParamsRequest): Promise { - const options: any = { - params: {} - }; - if (typeof params?.subspace !== "undefined") { - options.params.subspace = params.subspace; - } - if (typeof params?.key !== "undefined") { - options.params.key = params.key; - } - const endpoint = `cosmos/params/v1beta1/params`; - return await this.req.get(endpoint, options); - } - /* Subspaces queries for all registered subspaces and all keys for a subspace. */ - async subspaces(_params: QuerySubspacesRequest = {}): Promise { - const endpoint = `cosmos/params/v1beta1/subspaces`; - return await this.req.get(endpoint); - } -} \ No newline at end of file diff --git a/packages/proto/src/codegen/cosmos/params/v1beta1/query.ts b/packages/proto/src/codegen/cosmos/params/v1beta1/query.ts deleted file mode 100644 index bfc7cf50..00000000 --- a/packages/proto/src/codegen/cosmos/params/v1beta1/query.ts +++ /dev/null @@ -1,246 +0,0 @@ -import { ParamChange, ParamChangeSDKType } from "./params"; -import * as _m0 from "protobufjs/minimal"; -import { DeepPartial } from "../../../helpers"; -/** QueryParamsRequest is request type for the Query/Params RPC method. */ -export interface QueryParamsRequest { - /** subspace defines the module to query the parameter for. */ - subspace: string; - /** key defines the key of the parameter in the subspace. */ - key: string; -} -/** QueryParamsRequest is request type for the Query/Params RPC method. */ -export interface QueryParamsRequestSDKType { - subspace: string; - key: string; -} -/** QueryParamsResponse is response type for the Query/Params RPC method. */ -export interface QueryParamsResponse { - /** param defines the queried parameter. */ - param: ParamChange; -} -/** QueryParamsResponse is response type for the Query/Params RPC method. */ -export interface QueryParamsResponseSDKType { - param: ParamChangeSDKType; -} -/** - * QuerySubspacesRequest defines a request type for querying for all registered - * subspaces and all keys for a subspace. - */ -export interface QuerySubspacesRequest {} -/** - * QuerySubspacesRequest defines a request type for querying for all registered - * subspaces and all keys for a subspace. - */ -export interface QuerySubspacesRequestSDKType {} -/** - * QuerySubspacesResponse defines the response types for querying for all - * registered subspaces and all keys for a subspace. - */ -export interface QuerySubspacesResponse { - subspaces: Subspace[]; -} -/** - * QuerySubspacesResponse defines the response types for querying for all - * registered subspaces and all keys for a subspace. - */ -export interface QuerySubspacesResponseSDKType { - subspaces: SubspaceSDKType[]; -} -/** - * Subspace defines a parameter subspace name and all the keys that exist for - * the subspace. - */ -export interface Subspace { - subspace: string; - keys: string[]; -} -/** - * Subspace defines a parameter subspace name and all the keys that exist for - * the subspace. - */ -export interface SubspaceSDKType { - subspace: string; - keys: string[]; -} -function createBaseQueryParamsRequest(): QueryParamsRequest { - return { - subspace: "", - key: "" - }; -} -export const QueryParamsRequest = { - encode(message: QueryParamsRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.subspace !== "") { - writer.uint32(10).string(message.subspace); - } - if (message.key !== "") { - writer.uint32(18).string(message.key); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): QueryParamsRequest { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryParamsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.subspace = reader.string(); - break; - case 2: - message.key = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): QueryParamsRequest { - const message = createBaseQueryParamsRequest(); - message.subspace = object.subspace ?? ""; - message.key = object.key ?? ""; - return message; - } -}; -function createBaseQueryParamsResponse(): QueryParamsResponse { - return { - param: ParamChange.fromPartial({}) - }; -} -export const QueryParamsResponse = { - encode(message: QueryParamsResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.param !== undefined) { - ParamChange.encode(message.param, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): QueryParamsResponse { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryParamsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.param = ParamChange.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): QueryParamsResponse { - const message = createBaseQueryParamsResponse(); - message.param = object.param !== undefined && object.param !== null ? ParamChange.fromPartial(object.param) : undefined; - return message; - } -}; -function createBaseQuerySubspacesRequest(): QuerySubspacesRequest { - return {}; -} -export const QuerySubspacesRequest = { - encode(_: QuerySubspacesRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): QuerySubspacesRequest { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQuerySubspacesRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_: DeepPartial): QuerySubspacesRequest { - const message = createBaseQuerySubspacesRequest(); - return message; - } -}; -function createBaseQuerySubspacesResponse(): QuerySubspacesResponse { - return { - subspaces: [] - }; -} -export const QuerySubspacesResponse = { - encode(message: QuerySubspacesResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - for (const v of message.subspaces) { - Subspace.encode(v!, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): QuerySubspacesResponse { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQuerySubspacesResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.subspaces.push(Subspace.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): QuerySubspacesResponse { - const message = createBaseQuerySubspacesResponse(); - message.subspaces = object.subspaces?.map(e => Subspace.fromPartial(e)) || []; - return message; - } -}; -function createBaseSubspace(): Subspace { - return { - subspace: "", - keys: [] - }; -} -export const Subspace = { - encode(message: Subspace, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.subspace !== "") { - writer.uint32(10).string(message.subspace); - } - for (const v of message.keys) { - writer.uint32(18).string(v!); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): Subspace { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseSubspace(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.subspace = reader.string(); - break; - case 2: - message.keys.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): Subspace { - const message = createBaseSubspace(); - message.subspace = object.subspace ?? ""; - message.keys = object.keys?.map(e => e) || []; - return message; - } -}; \ No newline at end of file diff --git a/packages/proto/src/codegen/cosmos/rpc.query.ts b/packages/proto/src/codegen/cosmos/rpc.query.ts new file mode 100644 index 00000000..fa2c5026 --- /dev/null +++ b/packages/proto/src/codegen/cosmos/rpc.query.ts @@ -0,0 +1,38 @@ +import { Tendermint34Client, HttpEndpoint } from "@cosmjs/tendermint-rpc"; +import { QueryClient } from "@cosmjs/stargate"; +export const createRPCQueryClient = async ({ + rpcEndpoint +}: { + rpcEndpoint: string | HttpEndpoint; +}) => { + const tmClient = await Tendermint34Client.connect(rpcEndpoint); + const client = new QueryClient(tmClient); + return { + cosmos: { + auth: { + v1beta1: (await import("./auth/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) + }, + authz: { + v1beta1: (await import("./authz/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) + }, + bank: { + v1beta1: (await import("./bank/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) + }, + distribution: { + v1beta1: (await import("./distribution/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) + }, + gov: { + v1beta1: (await import("./gov/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) + }, + staking: { + v1beta1: (await import("./staking/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) + }, + tx: { + v1beta1: (await import("./tx/v1beta1/service.rpc.Service")).createRpcQueryExtension(client) + }, + upgrade: { + v1beta1: (await import("./upgrade/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) + } + } + }; +}; \ No newline at end of file diff --git a/packages/proto/src/codegen/cosmos/rpc.tx.ts b/packages/proto/src/codegen/cosmos/rpc.tx.ts new file mode 100644 index 00000000..50f35516 --- /dev/null +++ b/packages/proto/src/codegen/cosmos/rpc.tx.ts @@ -0,0 +1,27 @@ +import { Rpc } from "../helpers"; +export const createRPCMsgClient = async ({ + rpc +}: { + rpc: Rpc; +}) => ({ + cosmos: { + authz: { + v1beta1: new (await import("./authz/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) + }, + bank: { + v1beta1: new (await import("./bank/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) + }, + distribution: { + v1beta1: new (await import("./distribution/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) + }, + gov: { + v1beta1: new (await import("./gov/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) + }, + staking: { + v1beta1: new (await import("./staking/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) + }, + upgrade: { + v1beta1: new (await import("./upgrade/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) + } + } +}); \ No newline at end of file diff --git a/packages/proto/src/codegen/cosmos/slashing/v1beta1/genesis.ts b/packages/proto/src/codegen/cosmos/slashing/v1beta1/genesis.ts deleted file mode 100644 index 36aa0149..00000000 --- a/packages/proto/src/codegen/cosmos/slashing/v1beta1/genesis.ts +++ /dev/null @@ -1,246 +0,0 @@ -import { Params, ParamsSDKType, ValidatorSigningInfo, ValidatorSigningInfoSDKType } from "./slashing"; -import { Long, DeepPartial } from "../../../helpers"; -import * as _m0 from "protobufjs/minimal"; -/** GenesisState defines the slashing module's genesis state. */ -export interface GenesisState { - /** params defines all the paramaters of related to deposit. */ - params: Params; - /** - * signing_infos represents a map between validator addresses and their - * signing infos. - */ - signingInfos: SigningInfo[]; - /** - * missed_blocks represents a map between validator addresses and their - * missed blocks. - */ - missedBlocks: ValidatorMissedBlocks[]; -} -/** GenesisState defines the slashing module's genesis state. */ -export interface GenesisStateSDKType { - params: ParamsSDKType; - signing_infos: SigningInfoSDKType[]; - missed_blocks: ValidatorMissedBlocksSDKType[]; -} -/** SigningInfo stores validator signing info of corresponding address. */ -export interface SigningInfo { - /** address is the validator address. */ - address: string; - /** validator_signing_info represents the signing info of this validator. */ - validatorSigningInfo: ValidatorSigningInfo; -} -/** SigningInfo stores validator signing info of corresponding address. */ -export interface SigningInfoSDKType { - address: string; - validator_signing_info: ValidatorSigningInfoSDKType; -} -/** - * ValidatorMissedBlocks contains array of missed blocks of corresponding - * address. - */ -export interface ValidatorMissedBlocks { - /** address is the validator address. */ - address: string; - /** missed_blocks is an array of missed blocks by the validator. */ - missedBlocks: MissedBlock[]; -} -/** - * ValidatorMissedBlocks contains array of missed blocks of corresponding - * address. - */ -export interface ValidatorMissedBlocksSDKType { - address: string; - missed_blocks: MissedBlockSDKType[]; -} -/** MissedBlock contains height and missed status as boolean. */ -export interface MissedBlock { - /** index is the height at which the block was missed. */ - index: Long; - /** missed is the missed status. */ - missed: boolean; -} -/** MissedBlock contains height and missed status as boolean. */ -export interface MissedBlockSDKType { - index: Long; - missed: boolean; -} -function createBaseGenesisState(): GenesisState { - return { - params: Params.fromPartial({}), - signingInfos: [], - missedBlocks: [] - }; -} -export const GenesisState = { - encode(message: GenesisState, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.params !== undefined) { - Params.encode(message.params, writer.uint32(10).fork()).ldelim(); - } - for (const v of message.signingInfos) { - SigningInfo.encode(v!, writer.uint32(18).fork()).ldelim(); - } - for (const v of message.missedBlocks) { - ValidatorMissedBlocks.encode(v!, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): GenesisState { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGenesisState(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.params = Params.decode(reader, reader.uint32()); - break; - case 2: - message.signingInfos.push(SigningInfo.decode(reader, reader.uint32())); - break; - case 3: - message.missedBlocks.push(ValidatorMissedBlocks.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): GenesisState { - const message = createBaseGenesisState(); - message.params = object.params !== undefined && object.params !== null ? Params.fromPartial(object.params) : undefined; - message.signingInfos = object.signingInfos?.map(e => SigningInfo.fromPartial(e)) || []; - message.missedBlocks = object.missedBlocks?.map(e => ValidatorMissedBlocks.fromPartial(e)) || []; - return message; - } -}; -function createBaseSigningInfo(): SigningInfo { - return { - address: "", - validatorSigningInfo: ValidatorSigningInfo.fromPartial({}) - }; -} -export const SigningInfo = { - encode(message: SigningInfo, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.address !== "") { - writer.uint32(10).string(message.address); - } - if (message.validatorSigningInfo !== undefined) { - ValidatorSigningInfo.encode(message.validatorSigningInfo, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): SigningInfo { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseSigningInfo(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.address = reader.string(); - break; - case 2: - message.validatorSigningInfo = ValidatorSigningInfo.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): SigningInfo { - const message = createBaseSigningInfo(); - message.address = object.address ?? ""; - message.validatorSigningInfo = object.validatorSigningInfo !== undefined && object.validatorSigningInfo !== null ? ValidatorSigningInfo.fromPartial(object.validatorSigningInfo) : undefined; - return message; - } -}; -function createBaseValidatorMissedBlocks(): ValidatorMissedBlocks { - return { - address: "", - missedBlocks: [] - }; -} -export const ValidatorMissedBlocks = { - encode(message: ValidatorMissedBlocks, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.address !== "") { - writer.uint32(10).string(message.address); - } - for (const v of message.missedBlocks) { - MissedBlock.encode(v!, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): ValidatorMissedBlocks { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseValidatorMissedBlocks(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.address = reader.string(); - break; - case 2: - message.missedBlocks.push(MissedBlock.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): ValidatorMissedBlocks { - const message = createBaseValidatorMissedBlocks(); - message.address = object.address ?? ""; - message.missedBlocks = object.missedBlocks?.map(e => MissedBlock.fromPartial(e)) || []; - return message; - } -}; -function createBaseMissedBlock(): MissedBlock { - return { - index: Long.ZERO, - missed: false - }; -} -export const MissedBlock = { - encode(message: MissedBlock, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (!message.index.isZero()) { - writer.uint32(8).int64(message.index); - } - if (message.missed === true) { - writer.uint32(16).bool(message.missed); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): MissedBlock { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMissedBlock(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.index = (reader.int64() as Long); - break; - case 2: - message.missed = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): MissedBlock { - const message = createBaseMissedBlock(); - message.index = object.index !== undefined && object.index !== null ? Long.fromValue(object.index) : Long.ZERO; - message.missed = object.missed ?? false; - return message; - } -}; \ No newline at end of file diff --git a/packages/proto/src/codegen/cosmos/slashing/v1beta1/query.lcd.ts b/packages/proto/src/codegen/cosmos/slashing/v1beta1/query.lcd.ts deleted file mode 100644 index 644d8669..00000000 --- a/packages/proto/src/codegen/cosmos/slashing/v1beta1/query.lcd.ts +++ /dev/null @@ -1,39 +0,0 @@ -import { setPaginationParams } from "../../../helpers"; -import { LCDClient } from "@osmonauts/lcd"; -import { QueryParamsRequest, QueryParamsResponseSDKType, QuerySigningInfoRequest, QuerySigningInfoResponseSDKType, QuerySigningInfosRequest, QuerySigningInfosResponseSDKType } from "./query"; -export class LCDQueryClient { - req: LCDClient; - constructor({ - requestClient - }: { - requestClient: LCDClient; - }) { - this.req = requestClient; - this.params = this.params.bind(this); - this.signingInfo = this.signingInfo.bind(this); - this.signingInfos = this.signingInfos.bind(this); - } - /* Params queries the parameters of slashing module */ - async params(_params: QueryParamsRequest = {}): Promise { - const endpoint = `cosmos/slashing/v1beta1/params`; - return await this.req.get(endpoint); - } - /* SigningInfo queries the signing info of given cons address */ - async signingInfo(params: QuerySigningInfoRequest): Promise { - const endpoint = `cosmos/slashing/v1beta1/signing_infos/${params.consAddress}`; - return await this.req.get(endpoint); - } - /* SigningInfos queries signing info of all validators */ - async signingInfos(params: QuerySigningInfosRequest = { - pagination: undefined - }): Promise { - const options: any = { - params: {} - }; - if (typeof params?.pagination !== "undefined") { - setPaginationParams(options, params.pagination); - } - const endpoint = `cosmos/slashing/v1beta1/signing_infos`; - return await this.req.get(endpoint, options); - } -} \ No newline at end of file diff --git a/packages/proto/src/codegen/cosmos/slashing/v1beta1/query.ts b/packages/proto/src/codegen/cosmos/slashing/v1beta1/query.ts deleted file mode 100644 index 53c3f4da..00000000 --- a/packages/proto/src/codegen/cosmos/slashing/v1beta1/query.ts +++ /dev/null @@ -1,286 +0,0 @@ -import { PageRequest, PageRequestSDKType, PageResponse, PageResponseSDKType } from "../../base/query/v1beta1/pagination"; -import { Params, ParamsSDKType, ValidatorSigningInfo, ValidatorSigningInfoSDKType } from "./slashing"; -import * as _m0 from "protobufjs/minimal"; -import { DeepPartial } from "../../../helpers"; -/** QueryParamsRequest is the request type for the Query/Params RPC method */ -export interface QueryParamsRequest {} -/** QueryParamsRequest is the request type for the Query/Params RPC method */ -export interface QueryParamsRequestSDKType {} -/** QueryParamsResponse is the response type for the Query/Params RPC method */ -export interface QueryParamsResponse { - params: Params; -} -/** QueryParamsResponse is the response type for the Query/Params RPC method */ -export interface QueryParamsResponseSDKType { - params: ParamsSDKType; -} -/** - * QuerySigningInfoRequest is the request type for the Query/SigningInfo RPC - * method - */ -export interface QuerySigningInfoRequest { - /** cons_address is the address to query signing info of */ - consAddress: string; -} -/** - * QuerySigningInfoRequest is the request type for the Query/SigningInfo RPC - * method - */ -export interface QuerySigningInfoRequestSDKType { - cons_address: string; -} -/** - * QuerySigningInfoResponse is the response type for the Query/SigningInfo RPC - * method - */ -export interface QuerySigningInfoResponse { - /** val_signing_info is the signing info of requested val cons address */ - valSigningInfo: ValidatorSigningInfo; -} -/** - * QuerySigningInfoResponse is the response type for the Query/SigningInfo RPC - * method - */ -export interface QuerySigningInfoResponseSDKType { - val_signing_info: ValidatorSigningInfoSDKType; -} -/** - * QuerySigningInfosRequest is the request type for the Query/SigningInfos RPC - * method - */ -export interface QuerySigningInfosRequest { - pagination: PageRequest; -} -/** - * QuerySigningInfosRequest is the request type for the Query/SigningInfos RPC - * method - */ -export interface QuerySigningInfosRequestSDKType { - pagination: PageRequestSDKType; -} -/** - * QuerySigningInfosResponse is the response type for the Query/SigningInfos RPC - * method - */ -export interface QuerySigningInfosResponse { - /** info is the signing info of all validators */ - info: ValidatorSigningInfo[]; - pagination: PageResponse; -} -/** - * QuerySigningInfosResponse is the response type for the Query/SigningInfos RPC - * method - */ -export interface QuerySigningInfosResponseSDKType { - info: ValidatorSigningInfoSDKType[]; - pagination: PageResponseSDKType; -} -function createBaseQueryParamsRequest(): QueryParamsRequest { - return {}; -} -export const QueryParamsRequest = { - encode(_: QueryParamsRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): QueryParamsRequest { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryParamsRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_: DeepPartial): QueryParamsRequest { - const message = createBaseQueryParamsRequest(); - return message; - } -}; -function createBaseQueryParamsResponse(): QueryParamsResponse { - return { - params: Params.fromPartial({}) - }; -} -export const QueryParamsResponse = { - encode(message: QueryParamsResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.params !== undefined) { - Params.encode(message.params, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): QueryParamsResponse { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryParamsResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.params = Params.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): QueryParamsResponse { - const message = createBaseQueryParamsResponse(); - message.params = object.params !== undefined && object.params !== null ? Params.fromPartial(object.params) : undefined; - return message; - } -}; -function createBaseQuerySigningInfoRequest(): QuerySigningInfoRequest { - return { - consAddress: "" - }; -} -export const QuerySigningInfoRequest = { - encode(message: QuerySigningInfoRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.consAddress !== "") { - writer.uint32(10).string(message.consAddress); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): QuerySigningInfoRequest { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQuerySigningInfoRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.consAddress = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): QuerySigningInfoRequest { - const message = createBaseQuerySigningInfoRequest(); - message.consAddress = object.consAddress ?? ""; - return message; - } -}; -function createBaseQuerySigningInfoResponse(): QuerySigningInfoResponse { - return { - valSigningInfo: ValidatorSigningInfo.fromPartial({}) - }; -} -export const QuerySigningInfoResponse = { - encode(message: QuerySigningInfoResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.valSigningInfo !== undefined) { - ValidatorSigningInfo.encode(message.valSigningInfo, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): QuerySigningInfoResponse { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQuerySigningInfoResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.valSigningInfo = ValidatorSigningInfo.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): QuerySigningInfoResponse { - const message = createBaseQuerySigningInfoResponse(); - message.valSigningInfo = object.valSigningInfo !== undefined && object.valSigningInfo !== null ? ValidatorSigningInfo.fromPartial(object.valSigningInfo) : undefined; - return message; - } -}; -function createBaseQuerySigningInfosRequest(): QuerySigningInfosRequest { - return { - pagination: PageRequest.fromPartial({}) - }; -} -export const QuerySigningInfosRequest = { - encode(message: QuerySigningInfosRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.pagination !== undefined) { - PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): QuerySigningInfosRequest { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQuerySigningInfosRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.pagination = PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): QuerySigningInfosRequest { - const message = createBaseQuerySigningInfosRequest(); - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined; - return message; - } -}; -function createBaseQuerySigningInfosResponse(): QuerySigningInfosResponse { - return { - info: [], - pagination: PageResponse.fromPartial({}) - }; -} -export const QuerySigningInfosResponse = { - encode(message: QuerySigningInfosResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - for (const v of message.info) { - ValidatorSigningInfo.encode(v!, writer.uint32(10).fork()).ldelim(); - } - if (message.pagination !== undefined) { - PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): QuerySigningInfosResponse { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQuerySigningInfosResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.info.push(ValidatorSigningInfo.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): QuerySigningInfosResponse { - const message = createBaseQuerySigningInfosResponse(); - message.info = object.info?.map(e => ValidatorSigningInfo.fromPartial(e)) || []; - message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined; - return message; - } -}; \ No newline at end of file diff --git a/packages/proto/src/codegen/cosmos/slashing/v1beta1/slashing.ts b/packages/proto/src/codegen/cosmos/slashing/v1beta1/slashing.ts deleted file mode 100644 index 4477354f..00000000 --- a/packages/proto/src/codegen/cosmos/slashing/v1beta1/slashing.ts +++ /dev/null @@ -1,201 +0,0 @@ -import { Timestamp } from "../../../google/protobuf/timestamp"; -import { Duration, DurationSDKType } from "../../../google/protobuf/duration"; -import { Long, toTimestamp, fromTimestamp, DeepPartial } from "../../../helpers"; -import * as _m0 from "protobufjs/minimal"; -/** - * ValidatorSigningInfo defines a validator's signing info for monitoring their - * liveness activity. - */ -export interface ValidatorSigningInfo { - address: string; - /** Height at which validator was first a candidate OR was unjailed */ - startHeight: Long; - /** - * Index which is incremented each time the validator was a bonded - * in a block and may have signed a precommit or not. This in conjunction with the - * `SignedBlocksWindow` param determines the index in the `MissedBlocksBitArray`. - */ - indexOffset: Long; - /** Timestamp until which the validator is jailed due to liveness downtime. */ - jailedUntil: Date; - /** - * Whether or not a validator has been tombstoned (killed out of validator set). It is set - * once the validator commits an equivocation or for any other configured misbehiavor. - */ - tombstoned: boolean; - /** - * A counter kept to avoid unnecessary array reads. - * Note that `Sum(MissedBlocksBitArray)` always equals `MissedBlocksCounter`. - */ - missedBlocksCounter: Long; -} -/** - * ValidatorSigningInfo defines a validator's signing info for monitoring their - * liveness activity. - */ -export interface ValidatorSigningInfoSDKType { - address: string; - start_height: Long; - index_offset: Long; - jailed_until: Date; - tombstoned: boolean; - missed_blocks_counter: Long; -} -/** Params represents the parameters used for by the slashing module. */ -export interface Params { - signedBlocksWindow: Long; - minSignedPerWindow: Uint8Array; - downtimeJailDuration: Duration; - slashFractionDoubleSign: Uint8Array; - slashFractionDowntime: Uint8Array; -} -/** Params represents the parameters used for by the slashing module. */ -export interface ParamsSDKType { - signed_blocks_window: Long; - min_signed_per_window: Uint8Array; - downtime_jail_duration: DurationSDKType; - slash_fraction_double_sign: Uint8Array; - slash_fraction_downtime: Uint8Array; -} -function createBaseValidatorSigningInfo(): ValidatorSigningInfo { - return { - address: "", - startHeight: Long.ZERO, - indexOffset: Long.ZERO, - jailedUntil: undefined, - tombstoned: false, - missedBlocksCounter: Long.ZERO - }; -} -export const ValidatorSigningInfo = { - encode(message: ValidatorSigningInfo, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.address !== "") { - writer.uint32(10).string(message.address); - } - if (!message.startHeight.isZero()) { - writer.uint32(16).int64(message.startHeight); - } - if (!message.indexOffset.isZero()) { - writer.uint32(24).int64(message.indexOffset); - } - if (message.jailedUntil !== undefined) { - Timestamp.encode(toTimestamp(message.jailedUntil), writer.uint32(34).fork()).ldelim(); - } - if (message.tombstoned === true) { - writer.uint32(40).bool(message.tombstoned); - } - if (!message.missedBlocksCounter.isZero()) { - writer.uint32(48).int64(message.missedBlocksCounter); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): ValidatorSigningInfo { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseValidatorSigningInfo(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.address = reader.string(); - break; - case 2: - message.startHeight = (reader.int64() as Long); - break; - case 3: - message.indexOffset = (reader.int64() as Long); - break; - case 4: - message.jailedUntil = fromTimestamp(Timestamp.decode(reader, reader.uint32())); - break; - case 5: - message.tombstoned = reader.bool(); - break; - case 6: - message.missedBlocksCounter = (reader.int64() as Long); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): ValidatorSigningInfo { - const message = createBaseValidatorSigningInfo(); - message.address = object.address ?? ""; - message.startHeight = object.startHeight !== undefined && object.startHeight !== null ? Long.fromValue(object.startHeight) : Long.ZERO; - message.indexOffset = object.indexOffset !== undefined && object.indexOffset !== null ? Long.fromValue(object.indexOffset) : Long.ZERO; - message.jailedUntil = object.jailedUntil ?? undefined; - message.tombstoned = object.tombstoned ?? false; - message.missedBlocksCounter = object.missedBlocksCounter !== undefined && object.missedBlocksCounter !== null ? Long.fromValue(object.missedBlocksCounter) : Long.ZERO; - return message; - } -}; -function createBaseParams(): Params { - return { - signedBlocksWindow: Long.ZERO, - minSignedPerWindow: new Uint8Array(), - downtimeJailDuration: undefined, - slashFractionDoubleSign: new Uint8Array(), - slashFractionDowntime: new Uint8Array() - }; -} -export const Params = { - encode(message: Params, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (!message.signedBlocksWindow.isZero()) { - writer.uint32(8).int64(message.signedBlocksWindow); - } - if (message.minSignedPerWindow.length !== 0) { - writer.uint32(18).bytes(message.minSignedPerWindow); - } - if (message.downtimeJailDuration !== undefined) { - Duration.encode(message.downtimeJailDuration, writer.uint32(26).fork()).ldelim(); - } - if (message.slashFractionDoubleSign.length !== 0) { - writer.uint32(34).bytes(message.slashFractionDoubleSign); - } - if (message.slashFractionDowntime.length !== 0) { - writer.uint32(42).bytes(message.slashFractionDowntime); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): Params { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseParams(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.signedBlocksWindow = (reader.int64() as Long); - break; - case 2: - message.minSignedPerWindow = reader.bytes(); - break; - case 3: - message.downtimeJailDuration = Duration.decode(reader, reader.uint32()); - break; - case 4: - message.slashFractionDoubleSign = reader.bytes(); - break; - case 5: - message.slashFractionDowntime = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): Params { - const message = createBaseParams(); - message.signedBlocksWindow = object.signedBlocksWindow !== undefined && object.signedBlocksWindow !== null ? Long.fromValue(object.signedBlocksWindow) : Long.ZERO; - message.minSignedPerWindow = object.minSignedPerWindow ?? new Uint8Array(); - message.downtimeJailDuration = object.downtimeJailDuration !== undefined && object.downtimeJailDuration !== null ? Duration.fromPartial(object.downtimeJailDuration) : undefined; - message.slashFractionDoubleSign = object.slashFractionDoubleSign ?? new Uint8Array(); - message.slashFractionDowntime = object.slashFractionDowntime ?? new Uint8Array(); - return message; - } -}; \ No newline at end of file diff --git a/packages/proto/src/codegen/cosmos/slashing/v1beta1/tx.amino.ts b/packages/proto/src/codegen/cosmos/slashing/v1beta1/tx.amino.ts deleted file mode 100644 index b51284ba..00000000 --- a/packages/proto/src/codegen/cosmos/slashing/v1beta1/tx.amino.ts +++ /dev/null @@ -1,27 +0,0 @@ -import { AminoMsg } from "@cosmjs/amino"; -import { MsgUnjail } from "./tx"; -export interface MsgUnjailAminoType extends AminoMsg { - type: "cosmos-sdk/MsgUnjail"; - value: { - validator_addr: string; - }; -} -export const AminoConverter = { - "/cosmos.slashing.v1beta1.MsgUnjail": { - aminoType: "cosmos-sdk/MsgUnjail", - toAmino: ({ - validatorAddr - }: MsgUnjail): MsgUnjailAminoType["value"] => { - return { - validator_addr: validatorAddr - }; - }, - fromAmino: ({ - validator_addr - }: MsgUnjailAminoType["value"]): MsgUnjail => { - return { - validatorAddr: validator_addr - }; - } - } -}; \ No newline at end of file diff --git a/packages/proto/src/codegen/cosmos/slashing/v1beta1/tx.registry.ts b/packages/proto/src/codegen/cosmos/slashing/v1beta1/tx.registry.ts deleted file mode 100644 index 76feebd0..00000000 --- a/packages/proto/src/codegen/cosmos/slashing/v1beta1/tx.registry.ts +++ /dev/null @@ -1,34 +0,0 @@ -import { GeneratedType, Registry } from "@cosmjs/proto-signing"; -import { MsgUnjail } from "./tx"; -export const registry: ReadonlyArray<[string, GeneratedType]> = [["/cosmos.slashing.v1beta1.MsgUnjail", MsgUnjail]]; -export const load = (protoRegistry: Registry) => { - registry.forEach(([typeUrl, mod]) => { - protoRegistry.register(typeUrl, mod); - }); -}; -export const MessageComposer = { - encoded: { - unjail(value: MsgUnjail) { - return { - typeUrl: "/cosmos.slashing.v1beta1.MsgUnjail", - value: MsgUnjail.encode(value).finish() - }; - } - }, - withTypeUrl: { - unjail(value: MsgUnjail) { - return { - typeUrl: "/cosmos.slashing.v1beta1.MsgUnjail", - value - }; - } - }, - fromPartial: { - unjail(value: MsgUnjail) { - return { - typeUrl: "/cosmos.slashing.v1beta1.MsgUnjail", - value: MsgUnjail.fromPartial(value) - }; - } - } -}; \ No newline at end of file diff --git a/packages/proto/src/codegen/cosmos/slashing/v1beta1/tx.ts b/packages/proto/src/codegen/cosmos/slashing/v1beta1/tx.ts deleted file mode 100644 index a736acb7..00000000 --- a/packages/proto/src/codegen/cosmos/slashing/v1beta1/tx.ts +++ /dev/null @@ -1,75 +0,0 @@ -import * as _m0 from "protobufjs/minimal"; -import { DeepPartial } from "../../../helpers"; -/** MsgUnjail defines the Msg/Unjail request type */ -export interface MsgUnjail { - validatorAddr: string; -} -/** MsgUnjail defines the Msg/Unjail request type */ -export interface MsgUnjailSDKType { - validator_addr: string; -} -/** MsgUnjailResponse defines the Msg/Unjail response type */ -export interface MsgUnjailResponse {} -/** MsgUnjailResponse defines the Msg/Unjail response type */ -export interface MsgUnjailResponseSDKType {} -function createBaseMsgUnjail(): MsgUnjail { - return { - validatorAddr: "" - }; -} -export const MsgUnjail = { - encode(message: MsgUnjail, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.validatorAddr !== "") { - writer.uint32(10).string(message.validatorAddr); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): MsgUnjail { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUnjail(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.validatorAddr = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): MsgUnjail { - const message = createBaseMsgUnjail(); - message.validatorAddr = object.validatorAddr ?? ""; - return message; - } -}; -function createBaseMsgUnjailResponse(): MsgUnjailResponse { - return {}; -} -export const MsgUnjailResponse = { - encode(_: MsgUnjailResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): MsgUnjailResponse { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUnjailResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_: DeepPartial): MsgUnjailResponse { - const message = createBaseMsgUnjailResponse(); - return message; - } -}; \ No newline at end of file diff --git a/packages/proto/src/codegen/cosmos/staking/v1beta1/query.rpc.Query.ts b/packages/proto/src/codegen/cosmos/staking/v1beta1/query.rpc.Query.ts new file mode 100644 index 00000000..40cb0390 --- /dev/null +++ b/packages/proto/src/codegen/cosmos/staking/v1beta1/query.rpc.Query.ts @@ -0,0 +1,185 @@ +import { Rpc } from "../../../helpers"; +import * as _m0 from "protobufjs/minimal"; +import { QueryClient, createProtobufRpcClient } from "@cosmjs/stargate"; +import { QueryValidatorsRequest, QueryValidatorsResponse, QueryValidatorRequest, QueryValidatorResponse, QueryValidatorDelegationsRequest, QueryValidatorDelegationsResponse, QueryValidatorUnbondingDelegationsRequest, QueryValidatorUnbondingDelegationsResponse, QueryDelegationRequest, QueryDelegationResponse, QueryUnbondingDelegationRequest, QueryUnbondingDelegationResponse, QueryDelegatorDelegationsRequest, QueryDelegatorDelegationsResponse, QueryDelegatorUnbondingDelegationsRequest, QueryDelegatorUnbondingDelegationsResponse, QueryRedelegationsRequest, QueryRedelegationsResponse, QueryDelegatorValidatorsRequest, QueryDelegatorValidatorsResponse, QueryDelegatorValidatorRequest, QueryDelegatorValidatorResponse, QueryHistoricalInfoRequest, QueryHistoricalInfoResponse, QueryPoolRequest, QueryPoolResponse, QueryParamsRequest, QueryParamsResponse } from "./query"; +/** Query defines the gRPC querier service. */ +export interface Query { + /** Validators queries all validators that match the given status. */ + validators(request: QueryValidatorsRequest): Promise; + /** Validator queries validator info for given validator address. */ + validator(request: QueryValidatorRequest): Promise; + /** ValidatorDelegations queries delegate info for given validator. */ + validatorDelegations(request: QueryValidatorDelegationsRequest): Promise; + /** ValidatorUnbondingDelegations queries unbonding delegations of a validator. */ + validatorUnbondingDelegations(request: QueryValidatorUnbondingDelegationsRequest): Promise; + /** Delegation queries delegate info for given validator delegator pair. */ + delegation(request: QueryDelegationRequest): Promise; + /** + * UnbondingDelegation queries unbonding info for given validator delegator + * pair. + */ + unbondingDelegation(request: QueryUnbondingDelegationRequest): Promise; + /** DelegatorDelegations queries all delegations of a given delegator address. */ + delegatorDelegations(request: QueryDelegatorDelegationsRequest): Promise; + /** + * DelegatorUnbondingDelegations queries all unbonding delegations of a given + * delegator address. + */ + delegatorUnbondingDelegations(request: QueryDelegatorUnbondingDelegationsRequest): Promise; + /** Redelegations queries redelegations of given address. */ + redelegations(request: QueryRedelegationsRequest): Promise; + /** + * DelegatorValidators queries all validators info for given delegator + * address. + */ + delegatorValidators(request: QueryDelegatorValidatorsRequest): Promise; + /** + * DelegatorValidator queries validator info for given delegator validator + * pair. + */ + delegatorValidator(request: QueryDelegatorValidatorRequest): Promise; + /** HistoricalInfo queries the historical info for given height. */ + historicalInfo(request: QueryHistoricalInfoRequest): Promise; + /** Pool queries the pool info. */ + pool(request?: QueryPoolRequest): Promise; + /** Parameters queries the staking parameters. */ + params(request?: QueryParamsRequest): Promise; +} +export class QueryClientImpl implements Query { + private readonly rpc: Rpc; + constructor(rpc: Rpc) { + this.rpc = rpc; + this.validators = this.validators.bind(this); + this.validator = this.validator.bind(this); + this.validatorDelegations = this.validatorDelegations.bind(this); + this.validatorUnbondingDelegations = this.validatorUnbondingDelegations.bind(this); + this.delegation = this.delegation.bind(this); + this.unbondingDelegation = this.unbondingDelegation.bind(this); + this.delegatorDelegations = this.delegatorDelegations.bind(this); + this.delegatorUnbondingDelegations = this.delegatorUnbondingDelegations.bind(this); + this.redelegations = this.redelegations.bind(this); + this.delegatorValidators = this.delegatorValidators.bind(this); + this.delegatorValidator = this.delegatorValidator.bind(this); + this.historicalInfo = this.historicalInfo.bind(this); + this.pool = this.pool.bind(this); + this.params = this.params.bind(this); + } + validators(request: QueryValidatorsRequest): Promise { + const data = QueryValidatorsRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.staking.v1beta1.Query", "Validators", data); + return promise.then(data => QueryValidatorsResponse.decode(new _m0.Reader(data))); + } + validator(request: QueryValidatorRequest): Promise { + const data = QueryValidatorRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.staking.v1beta1.Query", "Validator", data); + return promise.then(data => QueryValidatorResponse.decode(new _m0.Reader(data))); + } + validatorDelegations(request: QueryValidatorDelegationsRequest): Promise { + const data = QueryValidatorDelegationsRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.staking.v1beta1.Query", "ValidatorDelegations", data); + return promise.then(data => QueryValidatorDelegationsResponse.decode(new _m0.Reader(data))); + } + validatorUnbondingDelegations(request: QueryValidatorUnbondingDelegationsRequest): Promise { + const data = QueryValidatorUnbondingDelegationsRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.staking.v1beta1.Query", "ValidatorUnbondingDelegations", data); + return promise.then(data => QueryValidatorUnbondingDelegationsResponse.decode(new _m0.Reader(data))); + } + delegation(request: QueryDelegationRequest): Promise { + const data = QueryDelegationRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.staking.v1beta1.Query", "Delegation", data); + return promise.then(data => QueryDelegationResponse.decode(new _m0.Reader(data))); + } + unbondingDelegation(request: QueryUnbondingDelegationRequest): Promise { + const data = QueryUnbondingDelegationRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.staking.v1beta1.Query", "UnbondingDelegation", data); + return promise.then(data => QueryUnbondingDelegationResponse.decode(new _m0.Reader(data))); + } + delegatorDelegations(request: QueryDelegatorDelegationsRequest): Promise { + const data = QueryDelegatorDelegationsRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.staking.v1beta1.Query", "DelegatorDelegations", data); + return promise.then(data => QueryDelegatorDelegationsResponse.decode(new _m0.Reader(data))); + } + delegatorUnbondingDelegations(request: QueryDelegatorUnbondingDelegationsRequest): Promise { + const data = QueryDelegatorUnbondingDelegationsRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.staking.v1beta1.Query", "DelegatorUnbondingDelegations", data); + return promise.then(data => QueryDelegatorUnbondingDelegationsResponse.decode(new _m0.Reader(data))); + } + redelegations(request: QueryRedelegationsRequest): Promise { + const data = QueryRedelegationsRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.staking.v1beta1.Query", "Redelegations", data); + return promise.then(data => QueryRedelegationsResponse.decode(new _m0.Reader(data))); + } + delegatorValidators(request: QueryDelegatorValidatorsRequest): Promise { + const data = QueryDelegatorValidatorsRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.staking.v1beta1.Query", "DelegatorValidators", data); + return promise.then(data => QueryDelegatorValidatorsResponse.decode(new _m0.Reader(data))); + } + delegatorValidator(request: QueryDelegatorValidatorRequest): Promise { + const data = QueryDelegatorValidatorRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.staking.v1beta1.Query", "DelegatorValidator", data); + return promise.then(data => QueryDelegatorValidatorResponse.decode(new _m0.Reader(data))); + } + historicalInfo(request: QueryHistoricalInfoRequest): Promise { + const data = QueryHistoricalInfoRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.staking.v1beta1.Query", "HistoricalInfo", data); + return promise.then(data => QueryHistoricalInfoResponse.decode(new _m0.Reader(data))); + } + pool(request: QueryPoolRequest = {}): Promise { + const data = QueryPoolRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.staking.v1beta1.Query", "Pool", data); + return promise.then(data => QueryPoolResponse.decode(new _m0.Reader(data))); + } + params(request: QueryParamsRequest = {}): Promise { + const data = QueryParamsRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.staking.v1beta1.Query", "Params", data); + return promise.then(data => QueryParamsResponse.decode(new _m0.Reader(data))); + } +} +export const createRpcQueryExtension = (base: QueryClient) => { + const rpc = createProtobufRpcClient(base); + const queryService = new QueryClientImpl(rpc); + return { + validators(request: QueryValidatorsRequest): Promise { + return queryService.validators(request); + }, + validator(request: QueryValidatorRequest): Promise { + return queryService.validator(request); + }, + validatorDelegations(request: QueryValidatorDelegationsRequest): Promise { + return queryService.validatorDelegations(request); + }, + validatorUnbondingDelegations(request: QueryValidatorUnbondingDelegationsRequest): Promise { + return queryService.validatorUnbondingDelegations(request); + }, + delegation(request: QueryDelegationRequest): Promise { + return queryService.delegation(request); + }, + unbondingDelegation(request: QueryUnbondingDelegationRequest): Promise { + return queryService.unbondingDelegation(request); + }, + delegatorDelegations(request: QueryDelegatorDelegationsRequest): Promise { + return queryService.delegatorDelegations(request); + }, + delegatorUnbondingDelegations(request: QueryDelegatorUnbondingDelegationsRequest): Promise { + return queryService.delegatorUnbondingDelegations(request); + }, + redelegations(request: QueryRedelegationsRequest): Promise { + return queryService.redelegations(request); + }, + delegatorValidators(request: QueryDelegatorValidatorsRequest): Promise { + return queryService.delegatorValidators(request); + }, + delegatorValidator(request: QueryDelegatorValidatorRequest): Promise { + return queryService.delegatorValidator(request); + }, + historicalInfo(request: QueryHistoricalInfoRequest): Promise { + return queryService.historicalInfo(request); + }, + pool(request?: QueryPoolRequest): Promise { + return queryService.pool(request); + }, + params(request?: QueryParamsRequest): Promise { + return queryService.params(request); + } + }; +}; \ No newline at end of file diff --git a/packages/proto/src/codegen/cosmos/staking/v1beta1/tx.amino.ts b/packages/proto/src/codegen/cosmos/staking/v1beta1/tx.amino.ts index 27d5a7c5..a0ef1695 100644 --- a/packages/proto/src/codegen/cosmos/staking/v1beta1/tx.amino.ts +++ b/packages/proto/src/codegen/cosmos/staking/v1beta1/tx.amino.ts @@ -1,3 +1,4 @@ +//@ts-nocheck import { AminoMsg, decodeBech32Pubkey, encodeBech32Pubkey } from "@cosmjs/amino"; import { fromBase64, toBase64 } from "@cosmjs/encoding"; import { Long } from "../../../helpers"; diff --git a/packages/proto/src/codegen/cosmos/staking/v1beta1/tx.registry.ts b/packages/proto/src/codegen/cosmos/staking/v1beta1/tx.registry.ts index ba139116..a8e1a9d0 100644 --- a/packages/proto/src/codegen/cosmos/staking/v1beta1/tx.registry.ts +++ b/packages/proto/src/codegen/cosmos/staking/v1beta1/tx.registry.ts @@ -1,3 +1,4 @@ +//@ts-nocheck import { GeneratedType, Registry } from "@cosmjs/proto-signing"; import { MsgCreateValidator, MsgEditValidator, MsgDelegate, MsgBeginRedelegate, MsgUndelegate } from "./tx"; export const registry: ReadonlyArray<[string, GeneratedType]> = [["/cosmos.staking.v1beta1.MsgCreateValidator", MsgCreateValidator], ["/cosmos.staking.v1beta1.MsgEditValidator", MsgEditValidator], ["/cosmos.staking.v1beta1.MsgDelegate", MsgDelegate], ["/cosmos.staking.v1beta1.MsgBeginRedelegate", MsgBeginRedelegate], ["/cosmos.staking.v1beta1.MsgUndelegate", MsgUndelegate]]; diff --git a/packages/proto/src/codegen/cosmos/staking/v1beta1/tx.rpc.msg.ts b/packages/proto/src/codegen/cosmos/staking/v1beta1/tx.rpc.msg.ts new file mode 100644 index 00000000..c1e80ca9 --- /dev/null +++ b/packages/proto/src/codegen/cosmos/staking/v1beta1/tx.rpc.msg.ts @@ -0,0 +1,61 @@ +import { Rpc } from "../../../helpers"; +import * as _m0 from "protobufjs/minimal"; +import { MsgCreateValidator, MsgCreateValidatorResponse, MsgEditValidator, MsgEditValidatorResponse, MsgDelegate, MsgDelegateResponse, MsgBeginRedelegate, MsgBeginRedelegateResponse, MsgUndelegate, MsgUndelegateResponse } from "./tx"; +/** Msg defines the staking Msg service. */ +export interface Msg { + /** CreateValidator defines a method for creating a new validator. */ + createValidator(request: MsgCreateValidator): Promise; + /** EditValidator defines a method for editing an existing validator. */ + editValidator(request: MsgEditValidator): Promise; + /** + * Delegate defines a method for performing a delegation of coins + * from a delegator to a validator. + */ + delegate(request: MsgDelegate): Promise; + /** + * BeginRedelegate defines a method for performing a redelegation + * of coins from a delegator and source validator to a destination validator. + */ + beginRedelegate(request: MsgBeginRedelegate): Promise; + /** + * Undelegate defines a method for performing an undelegation from a + * delegate and a validator. + */ + undelegate(request: MsgUndelegate): Promise; +} +export class MsgClientImpl implements Msg { + private readonly rpc: Rpc; + constructor(rpc: Rpc) { + this.rpc = rpc; + this.createValidator = this.createValidator.bind(this); + this.editValidator = this.editValidator.bind(this); + this.delegate = this.delegate.bind(this); + this.beginRedelegate = this.beginRedelegate.bind(this); + this.undelegate = this.undelegate.bind(this); + } + createValidator(request: MsgCreateValidator): Promise { + const data = MsgCreateValidator.encode(request).finish(); + const promise = this.rpc.request("cosmos.staking.v1beta1.Msg", "CreateValidator", data); + return promise.then(data => MsgCreateValidatorResponse.decode(new _m0.Reader(data))); + } + editValidator(request: MsgEditValidator): Promise { + const data = MsgEditValidator.encode(request).finish(); + const promise = this.rpc.request("cosmos.staking.v1beta1.Msg", "EditValidator", data); + return promise.then(data => MsgEditValidatorResponse.decode(new _m0.Reader(data))); + } + delegate(request: MsgDelegate): Promise { + const data = MsgDelegate.encode(request).finish(); + const promise = this.rpc.request("cosmos.staking.v1beta1.Msg", "Delegate", data); + return promise.then(data => MsgDelegateResponse.decode(new _m0.Reader(data))); + } + beginRedelegate(request: MsgBeginRedelegate): Promise { + const data = MsgBeginRedelegate.encode(request).finish(); + const promise = this.rpc.request("cosmos.staking.v1beta1.Msg", "BeginRedelegate", data); + return promise.then(data => MsgBeginRedelegateResponse.decode(new _m0.Reader(data))); + } + undelegate(request: MsgUndelegate): Promise { + const data = MsgUndelegate.encode(request).finish(); + const promise = this.rpc.request("cosmos.staking.v1beta1.Msg", "Undelegate", data); + return promise.then(data => MsgUndelegateResponse.decode(new _m0.Reader(data))); + } +} \ No newline at end of file diff --git a/packages/proto/src/codegen/cosmos/tx/v1beta1/service.rpc.Service.ts b/packages/proto/src/codegen/cosmos/tx/v1beta1/service.rpc.Service.ts new file mode 100644 index 00000000..215c9d4d --- /dev/null +++ b/packages/proto/src/codegen/cosmos/tx/v1beta1/service.rpc.Service.ts @@ -0,0 +1,78 @@ +import { Rpc } from "../../../helpers"; +import * as _m0 from "protobufjs/minimal"; +import { QueryClient, createProtobufRpcClient } from "@cosmjs/stargate"; +import { SimulateRequest, SimulateResponse, GetTxRequest, GetTxResponse, BroadcastTxRequest, BroadcastTxResponse, GetTxsEventRequest, GetTxsEventResponse, GetBlockWithTxsRequest, GetBlockWithTxsResponse } from "./service"; +/** Service defines a gRPC service for interacting with transactions. */ +export interface Service { + /** Simulate simulates executing a transaction for estimating gas usage. */ + simulate(request: SimulateRequest): Promise; + /** GetTx fetches a tx by hash. */ + getTx(request: GetTxRequest): Promise; + /** BroadcastTx broadcast transaction. */ + broadcastTx(request: BroadcastTxRequest): Promise; + /** GetTxsEvent fetches txs by event. */ + getTxsEvent(request: GetTxsEventRequest): Promise; + /** + * GetBlockWithTxs fetches a block with decoded txs. + * + * Since: cosmos-sdk 0.45.2 + */ + getBlockWithTxs(request: GetBlockWithTxsRequest): Promise; +} +export class ServiceClientImpl implements Service { + private readonly rpc: Rpc; + constructor(rpc: Rpc) { + this.rpc = rpc; + this.simulate = this.simulate.bind(this); + this.getTx = this.getTx.bind(this); + this.broadcastTx = this.broadcastTx.bind(this); + this.getTxsEvent = this.getTxsEvent.bind(this); + this.getBlockWithTxs = this.getBlockWithTxs.bind(this); + } + simulate(request: SimulateRequest): Promise { + const data = SimulateRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.tx.v1beta1.Service", "Simulate", data); + return promise.then(data => SimulateResponse.decode(new _m0.Reader(data))); + } + getTx(request: GetTxRequest): Promise { + const data = GetTxRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.tx.v1beta1.Service", "GetTx", data); + return promise.then(data => GetTxResponse.decode(new _m0.Reader(data))); + } + broadcastTx(request: BroadcastTxRequest): Promise { + const data = BroadcastTxRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.tx.v1beta1.Service", "BroadcastTx", data); + return promise.then(data => BroadcastTxResponse.decode(new _m0.Reader(data))); + } + getTxsEvent(request: GetTxsEventRequest): Promise { + const data = GetTxsEventRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.tx.v1beta1.Service", "GetTxsEvent", data); + return promise.then(data => GetTxsEventResponse.decode(new _m0.Reader(data))); + } + getBlockWithTxs(request: GetBlockWithTxsRequest): Promise { + const data = GetBlockWithTxsRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.tx.v1beta1.Service", "GetBlockWithTxs", data); + return promise.then(data => GetBlockWithTxsResponse.decode(new _m0.Reader(data))); + } +} +export const createRpcQueryExtension = (base: QueryClient) => { + const rpc = createProtobufRpcClient(base); + const queryService = new ServiceClientImpl(rpc); + return { + simulate(request: SimulateRequest): Promise { + return queryService.simulate(request); + }, + getTx(request: GetTxRequest): Promise { + return queryService.getTx(request); + }, + broadcastTx(request: BroadcastTxRequest): Promise { + return queryService.broadcastTx(request); + }, + getTxsEvent(request: GetTxsEventRequest): Promise { + return queryService.getTxsEvent(request); + }, + getBlockWithTxs(request: GetBlockWithTxsRequest): Promise { + return queryService.getBlockWithTxs(request); + } + }; +}; \ No newline at end of file diff --git a/packages/proto/src/codegen/cosmos/upgrade/v1beta1/query.rpc.Query.ts b/packages/proto/src/codegen/cosmos/upgrade/v1beta1/query.rpc.Query.ts new file mode 100644 index 00000000..4767885f --- /dev/null +++ b/packages/proto/src/codegen/cosmos/upgrade/v1beta1/query.rpc.Query.ts @@ -0,0 +1,85 @@ +import { Rpc } from "../../../helpers"; +import * as _m0 from "protobufjs/minimal"; +import { QueryClient, createProtobufRpcClient } from "@cosmjs/stargate"; +import { QueryCurrentPlanRequest, QueryCurrentPlanResponse, QueryAppliedPlanRequest, QueryAppliedPlanResponse, QueryUpgradedConsensusStateRequest, QueryUpgradedConsensusStateResponse, QueryModuleVersionsRequest, QueryModuleVersionsResponse, QueryAuthorityRequest, QueryAuthorityResponse } from "./query"; +/** Query defines the gRPC upgrade querier service. */ +export interface Query { + /** CurrentPlan queries the current upgrade plan. */ + currentPlan(request?: QueryCurrentPlanRequest): Promise; + /** AppliedPlan queries a previously applied upgrade plan by its name. */ + appliedPlan(request: QueryAppliedPlanRequest): Promise; + /** + * UpgradedConsensusState queries the consensus state that will serve + * as a trusted kernel for the next version of this chain. It will only be + * stored at the last height of this chain. + * UpgradedConsensusState RPC not supported with legacy querier + * This rpc is deprecated now that IBC has its own replacement + * (https://github.com/cosmos/ibc-go/blob/2c880a22e9f9cc75f62b527ca94aa75ce1106001/proto/ibc/core/client/v1/query.proto#L54) + */ + upgradedConsensusState(request: QueryUpgradedConsensusStateRequest): Promise; + /** + * ModuleVersions queries the list of module versions from state. + * + * Since: cosmos-sdk 0.43 + */ + moduleVersions(request: QueryModuleVersionsRequest): Promise; + /** Returns the account with authority to conduct upgrades */ + authority(request?: QueryAuthorityRequest): Promise; +} +export class QueryClientImpl implements Query { + private readonly rpc: Rpc; + constructor(rpc: Rpc) { + this.rpc = rpc; + this.currentPlan = this.currentPlan.bind(this); + this.appliedPlan = this.appliedPlan.bind(this); + this.upgradedConsensusState = this.upgradedConsensusState.bind(this); + this.moduleVersions = this.moduleVersions.bind(this); + this.authority = this.authority.bind(this); + } + currentPlan(request: QueryCurrentPlanRequest = {}): Promise { + const data = QueryCurrentPlanRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.upgrade.v1beta1.Query", "CurrentPlan", data); + return promise.then(data => QueryCurrentPlanResponse.decode(new _m0.Reader(data))); + } + appliedPlan(request: QueryAppliedPlanRequest): Promise { + const data = QueryAppliedPlanRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.upgrade.v1beta1.Query", "AppliedPlan", data); + return promise.then(data => QueryAppliedPlanResponse.decode(new _m0.Reader(data))); + } + upgradedConsensusState(request: QueryUpgradedConsensusStateRequest): Promise { + const data = QueryUpgradedConsensusStateRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.upgrade.v1beta1.Query", "UpgradedConsensusState", data); + return promise.then(data => QueryUpgradedConsensusStateResponse.decode(new _m0.Reader(data))); + } + moduleVersions(request: QueryModuleVersionsRequest): Promise { + const data = QueryModuleVersionsRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.upgrade.v1beta1.Query", "ModuleVersions", data); + return promise.then(data => QueryModuleVersionsResponse.decode(new _m0.Reader(data))); + } + authority(request: QueryAuthorityRequest = {}): Promise { + const data = QueryAuthorityRequest.encode(request).finish(); + const promise = this.rpc.request("cosmos.upgrade.v1beta1.Query", "Authority", data); + return promise.then(data => QueryAuthorityResponse.decode(new _m0.Reader(data))); + } +} +export const createRpcQueryExtension = (base: QueryClient) => { + const rpc = createProtobufRpcClient(base); + const queryService = new QueryClientImpl(rpc); + return { + currentPlan(request?: QueryCurrentPlanRequest): Promise { + return queryService.currentPlan(request); + }, + appliedPlan(request: QueryAppliedPlanRequest): Promise { + return queryService.appliedPlan(request); + }, + upgradedConsensusState(request: QueryUpgradedConsensusStateRequest): Promise { + return queryService.upgradedConsensusState(request); + }, + moduleVersions(request: QueryModuleVersionsRequest): Promise { + return queryService.moduleVersions(request); + }, + authority(request?: QueryAuthorityRequest): Promise { + return queryService.authority(request); + } + }; +}; \ No newline at end of file diff --git a/packages/proto/src/codegen/cosmos/upgrade/v1beta1/tx.amino.ts b/packages/proto/src/codegen/cosmos/upgrade/v1beta1/tx.amino.ts index 0ff78643..c7dcbb3d 100644 --- a/packages/proto/src/codegen/cosmos/upgrade/v1beta1/tx.amino.ts +++ b/packages/proto/src/codegen/cosmos/upgrade/v1beta1/tx.amino.ts @@ -1,3 +1,4 @@ +//@ts-nocheck import { AminoMsg } from "@cosmjs/amino"; import { Long } from "../../../helpers"; import { MsgSoftwareUpgrade, MsgCancelUpgrade } from "./tx"; diff --git a/packages/proto/src/codegen/cosmos/upgrade/v1beta1/tx.registry.ts b/packages/proto/src/codegen/cosmos/upgrade/v1beta1/tx.registry.ts index d7bcb325..019dde52 100644 --- a/packages/proto/src/codegen/cosmos/upgrade/v1beta1/tx.registry.ts +++ b/packages/proto/src/codegen/cosmos/upgrade/v1beta1/tx.registry.ts @@ -1,3 +1,4 @@ +//@ts-nocheck import { GeneratedType, Registry } from "@cosmjs/proto-signing"; import { MsgSoftwareUpgrade, MsgCancelUpgrade } from "./tx"; export const registry: ReadonlyArray<[string, GeneratedType]> = [["/cosmos.upgrade.v1beta1.MsgSoftwareUpgrade", MsgSoftwareUpgrade], ["/cosmos.upgrade.v1beta1.MsgCancelUpgrade", MsgCancelUpgrade]]; diff --git a/packages/proto/src/codegen/cosmos/upgrade/v1beta1/tx.rpc.msg.ts b/packages/proto/src/codegen/cosmos/upgrade/v1beta1/tx.rpc.msg.ts new file mode 100644 index 00000000..d55eb7c7 --- /dev/null +++ b/packages/proto/src/codegen/cosmos/upgrade/v1beta1/tx.rpc.msg.ts @@ -0,0 +1,37 @@ +import { Rpc } from "../../../helpers"; +import * as _m0 from "protobufjs/minimal"; +import { MsgSoftwareUpgrade, MsgSoftwareUpgradeResponse, MsgCancelUpgrade, MsgCancelUpgradeResponse } from "./tx"; +/** Msg defines the upgrade Msg service. */ +export interface Msg { + /** + * SoftwareUpgrade is a governance operation for initiating a software upgrade. + * + * Since: cosmos-sdk 0.46 + */ + softwareUpgrade(request: MsgSoftwareUpgrade): Promise; + /** + * CancelUpgrade is a governance operation for cancelling a previously + * approvid software upgrade. + * + * Since: cosmos-sdk 0.46 + */ + cancelUpgrade(request: MsgCancelUpgrade): Promise; +} +export class MsgClientImpl implements Msg { + private readonly rpc: Rpc; + constructor(rpc: Rpc) { + this.rpc = rpc; + this.softwareUpgrade = this.softwareUpgrade.bind(this); + this.cancelUpgrade = this.cancelUpgrade.bind(this); + } + softwareUpgrade(request: MsgSoftwareUpgrade): Promise { + const data = MsgSoftwareUpgrade.encode(request).finish(); + const promise = this.rpc.request("cosmos.upgrade.v1beta1.Msg", "SoftwareUpgrade", data); + return promise.then(data => MsgSoftwareUpgradeResponse.decode(new _m0.Reader(data))); + } + cancelUpgrade(request: MsgCancelUpgrade): Promise { + const data = MsgCancelUpgrade.encode(request).finish(); + const promise = this.rpc.request("cosmos.upgrade.v1beta1.Msg", "CancelUpgrade", data); + return promise.then(data => MsgCancelUpgradeResponse.decode(new _m0.Reader(data))); + } +} \ No newline at end of file diff --git a/packages/proto/src/codegen/cosmos/vesting/v1beta1/tx.amino.ts b/packages/proto/src/codegen/cosmos/vesting/v1beta1/tx.amino.ts deleted file mode 100644 index 4409c4cf..00000000 --- a/packages/proto/src/codegen/cosmos/vesting/v1beta1/tx.amino.ts +++ /dev/null @@ -1,155 +0,0 @@ -import { AminoMsg } from "@cosmjs/amino"; -import { Long } from "../../../helpers"; -import { MsgCreateVestingAccount, MsgCreatePermanentLockedAccount, MsgCreatePeriodicVestingAccount } from "./tx"; -export interface MsgCreateVestingAccountAminoType extends AminoMsg { - type: "cosmos-sdk/MsgCreateVestingAccount"; - value: { - from_address: string; - to_address: string; - amount: { - denom: string; - amount: string; - }[]; - end_time: string; - delayed: boolean; - }; -} -export interface MsgCreatePermanentLockedAccountAminoType extends AminoMsg { - type: "cosmos-sdk/MsgCreatePermanentLockedAccount"; - value: { - from_address: string; - to_address: string; - amount: { - denom: string; - amount: string; - }[]; - }; -} -export interface MsgCreatePeriodicVestingAccountAminoType extends AminoMsg { - type: "cosmos-sdk/MsgCreatePeriodicVestingAccount"; - value: { - from_address: string; - to_address: string; - start_time: string; - vesting_periods: { - length: string; - amount: { - denom: string; - amount: string; - }[]; - }[]; - }; -} -export const AminoConverter = { - "/cosmos.vesting.v1beta1.MsgCreateVestingAccount": { - aminoType: "cosmos-sdk/MsgCreateVestingAccount", - toAmino: ({ - fromAddress, - toAddress, - amount, - endTime, - delayed - }: MsgCreateVestingAccount): MsgCreateVestingAccountAminoType["value"] => { - return { - from_address: fromAddress, - to_address: toAddress, - amount: amount.map(el0 => ({ - denom: el0.denom, - amount: el0.amount - })), - end_time: endTime.toString(), - delayed - }; - }, - fromAmino: ({ - from_address, - to_address, - amount, - end_time, - delayed - }: MsgCreateVestingAccountAminoType["value"]): MsgCreateVestingAccount => { - return { - fromAddress: from_address, - toAddress: to_address, - amount: amount.map(el0 => ({ - denom: el0.denom, - amount: el0.amount - })), - endTime: Long.fromString(end_time), - delayed - }; - } - }, - "/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccount": { - aminoType: "cosmos-sdk/MsgCreatePermanentLockedAccount", - toAmino: ({ - fromAddress, - toAddress, - amount - }: MsgCreatePermanentLockedAccount): MsgCreatePermanentLockedAccountAminoType["value"] => { - return { - from_address: fromAddress, - to_address: toAddress, - amount: amount.map(el0 => ({ - denom: el0.denom, - amount: el0.amount - })) - }; - }, - fromAmino: ({ - from_address, - to_address, - amount - }: MsgCreatePermanentLockedAccountAminoType["value"]): MsgCreatePermanentLockedAccount => { - return { - fromAddress: from_address, - toAddress: to_address, - amount: amount.map(el0 => ({ - denom: el0.denom, - amount: el0.amount - })) - }; - } - }, - "/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount": { - aminoType: "cosmos-sdk/MsgCreatePeriodicVestingAccount", - toAmino: ({ - fromAddress, - toAddress, - startTime, - vestingPeriods - }: MsgCreatePeriodicVestingAccount): MsgCreatePeriodicVestingAccountAminoType["value"] => { - return { - from_address: fromAddress, - to_address: toAddress, - start_time: startTime.toString(), - vesting_periods: vestingPeriods.map(el0 => ({ - length: el0.length.toString(), - amount: el0.amount.map(el1 => ({ - denom: el1.denom, - amount: el1.amount - })) - })) - }; - }, - fromAmino: ({ - from_address, - to_address, - start_time, - vesting_periods - }: MsgCreatePeriodicVestingAccountAminoType["value"]): MsgCreatePeriodicVestingAccount => { - return { - fromAddress: from_address, - toAddress: to_address, - startTime: Long.fromString(start_time), - vestingPeriods: vesting_periods.map(el0 => ({ - length: Long.fromString(el0.length), - amount: el0.amount.map(el1 => ({ - denom: el1.denom, - amount: el1.amount - })) - })) - }; - } - } -}; \ No newline at end of file diff --git a/packages/proto/src/codegen/cosmos/vesting/v1beta1/tx.registry.ts b/packages/proto/src/codegen/cosmos/vesting/v1beta1/tx.registry.ts deleted file mode 100644 index 4084be18..00000000 --- a/packages/proto/src/codegen/cosmos/vesting/v1beta1/tx.registry.ts +++ /dev/null @@ -1,70 +0,0 @@ -import { GeneratedType, Registry } from "@cosmjs/proto-signing"; -import { MsgCreateVestingAccount, MsgCreatePermanentLockedAccount, MsgCreatePeriodicVestingAccount } from "./tx"; -export const registry: ReadonlyArray<[string, GeneratedType]> = [["/cosmos.vesting.v1beta1.MsgCreateVestingAccount", MsgCreateVestingAccount], ["/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccount", MsgCreatePermanentLockedAccount], ["/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount", MsgCreatePeriodicVestingAccount]]; -export const load = (protoRegistry: Registry) => { - registry.forEach(([typeUrl, mod]) => { - protoRegistry.register(typeUrl, mod); - }); -}; -export const MessageComposer = { - encoded: { - createVestingAccount(value: MsgCreateVestingAccount) { - return { - typeUrl: "/cosmos.vesting.v1beta1.MsgCreateVestingAccount", - value: MsgCreateVestingAccount.encode(value).finish() - }; - }, - createPermanentLockedAccount(value: MsgCreatePermanentLockedAccount) { - return { - typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccount", - value: MsgCreatePermanentLockedAccount.encode(value).finish() - }; - }, - createPeriodicVestingAccount(value: MsgCreatePeriodicVestingAccount) { - return { - typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount", - value: MsgCreatePeriodicVestingAccount.encode(value).finish() - }; - } - }, - withTypeUrl: { - createVestingAccount(value: MsgCreateVestingAccount) { - return { - typeUrl: "/cosmos.vesting.v1beta1.MsgCreateVestingAccount", - value - }; - }, - createPermanentLockedAccount(value: MsgCreatePermanentLockedAccount) { - return { - typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccount", - value - }; - }, - createPeriodicVestingAccount(value: MsgCreatePeriodicVestingAccount) { - return { - typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount", - value - }; - } - }, - fromPartial: { - createVestingAccount(value: MsgCreateVestingAccount) { - return { - typeUrl: "/cosmos.vesting.v1beta1.MsgCreateVestingAccount", - value: MsgCreateVestingAccount.fromPartial(value) - }; - }, - createPermanentLockedAccount(value: MsgCreatePermanentLockedAccount) { - return { - typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccount", - value: MsgCreatePermanentLockedAccount.fromPartial(value) - }; - }, - createPeriodicVestingAccount(value: MsgCreatePeriodicVestingAccount) { - return { - typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount", - value: MsgCreatePeriodicVestingAccount.fromPartial(value) - }; - } - } -}; \ No newline at end of file diff --git a/packages/proto/src/codegen/cosmos/vesting/v1beta1/tx.ts b/packages/proto/src/codegen/cosmos/vesting/v1beta1/tx.ts deleted file mode 100644 index fc1efe00..00000000 --- a/packages/proto/src/codegen/cosmos/vesting/v1beta1/tx.ts +++ /dev/null @@ -1,337 +0,0 @@ -import { Coin, CoinSDKType } from "../../base/v1beta1/coin"; -import { Period, PeriodSDKType } from "./vesting"; -import { Long, DeepPartial } from "../../../helpers"; -import * as _m0 from "protobufjs/minimal"; -/** - * MsgCreateVestingAccount defines a message that enables creating a vesting - * account. - */ -export interface MsgCreateVestingAccount { - fromAddress: string; - toAddress: string; - amount: Coin[]; - endTime: Long; - delayed: boolean; -} -/** - * MsgCreateVestingAccount defines a message that enables creating a vesting - * account. - */ -export interface MsgCreateVestingAccountSDKType { - from_address: string; - to_address: string; - amount: CoinSDKType[]; - end_time: Long; - delayed: boolean; -} -/** MsgCreateVestingAccountResponse defines the Msg/CreateVestingAccount response type. */ -export interface MsgCreateVestingAccountResponse {} -/** MsgCreateVestingAccountResponse defines the Msg/CreateVestingAccount response type. */ -export interface MsgCreateVestingAccountResponseSDKType {} -/** - * MsgCreatePermanentLockedAccount defines a message that enables creating a permanent - * locked account. - */ -export interface MsgCreatePermanentLockedAccount { - fromAddress: string; - toAddress: string; - amount: Coin[]; -} -/** - * MsgCreatePermanentLockedAccount defines a message that enables creating a permanent - * locked account. - */ -export interface MsgCreatePermanentLockedAccountSDKType { - from_address: string; - to_address: string; - amount: CoinSDKType[]; -} -/** MsgCreatePermanentLockedAccountResponse defines the Msg/CreatePermanentLockedAccount response type. */ -export interface MsgCreatePermanentLockedAccountResponse {} -/** MsgCreatePermanentLockedAccountResponse defines the Msg/CreatePermanentLockedAccount response type. */ -export interface MsgCreatePermanentLockedAccountResponseSDKType {} -/** - * MsgCreateVestingAccount defines a message that enables creating a vesting - * account. - */ -export interface MsgCreatePeriodicVestingAccount { - fromAddress: string; - toAddress: string; - startTime: Long; - vestingPeriods: Period[]; -} -/** - * MsgCreateVestingAccount defines a message that enables creating a vesting - * account. - */ -export interface MsgCreatePeriodicVestingAccountSDKType { - from_address: string; - to_address: string; - start_time: Long; - vesting_periods: PeriodSDKType[]; -} -/** - * MsgCreateVestingAccountResponse defines the Msg/CreatePeriodicVestingAccount - * response type. - */ -export interface MsgCreatePeriodicVestingAccountResponse {} -/** - * MsgCreateVestingAccountResponse defines the Msg/CreatePeriodicVestingAccount - * response type. - */ -export interface MsgCreatePeriodicVestingAccountResponseSDKType {} -function createBaseMsgCreateVestingAccount(): MsgCreateVestingAccount { - return { - fromAddress: "", - toAddress: "", - amount: [], - endTime: Long.ZERO, - delayed: false - }; -} -export const MsgCreateVestingAccount = { - encode(message: MsgCreateVestingAccount, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.fromAddress !== "") { - writer.uint32(10).string(message.fromAddress); - } - if (message.toAddress !== "") { - writer.uint32(18).string(message.toAddress); - } - for (const v of message.amount) { - Coin.encode(v!, writer.uint32(26).fork()).ldelim(); - } - if (!message.endTime.isZero()) { - writer.uint32(32).int64(message.endTime); - } - if (message.delayed === true) { - writer.uint32(40).bool(message.delayed); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): MsgCreateVestingAccount { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCreateVestingAccount(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.fromAddress = reader.string(); - break; - case 2: - message.toAddress = reader.string(); - break; - case 3: - message.amount.push(Coin.decode(reader, reader.uint32())); - break; - case 4: - message.endTime = (reader.int64() as Long); - break; - case 5: - message.delayed = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): MsgCreateVestingAccount { - const message = createBaseMsgCreateVestingAccount(); - message.fromAddress = object.fromAddress ?? ""; - message.toAddress = object.toAddress ?? ""; - message.amount = object.amount?.map(e => Coin.fromPartial(e)) || []; - message.endTime = object.endTime !== undefined && object.endTime !== null ? Long.fromValue(object.endTime) : Long.ZERO; - message.delayed = object.delayed ?? false; - return message; - } -}; -function createBaseMsgCreateVestingAccountResponse(): MsgCreateVestingAccountResponse { - return {}; -} -export const MsgCreateVestingAccountResponse = { - encode(_: MsgCreateVestingAccountResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): MsgCreateVestingAccountResponse { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCreateVestingAccountResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_: DeepPartial): MsgCreateVestingAccountResponse { - const message = createBaseMsgCreateVestingAccountResponse(); - return message; - } -}; -function createBaseMsgCreatePermanentLockedAccount(): MsgCreatePermanentLockedAccount { - return { - fromAddress: "", - toAddress: "", - amount: [] - }; -} -export const MsgCreatePermanentLockedAccount = { - encode(message: MsgCreatePermanentLockedAccount, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.fromAddress !== "") { - writer.uint32(10).string(message.fromAddress); - } - if (message.toAddress !== "") { - writer.uint32(18).string(message.toAddress); - } - for (const v of message.amount) { - Coin.encode(v!, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): MsgCreatePermanentLockedAccount { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCreatePermanentLockedAccount(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.fromAddress = reader.string(); - break; - case 2: - message.toAddress = reader.string(); - break; - case 3: - message.amount.push(Coin.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): MsgCreatePermanentLockedAccount { - const message = createBaseMsgCreatePermanentLockedAccount(); - message.fromAddress = object.fromAddress ?? ""; - message.toAddress = object.toAddress ?? ""; - message.amount = object.amount?.map(e => Coin.fromPartial(e)) || []; - return message; - } -}; -function createBaseMsgCreatePermanentLockedAccountResponse(): MsgCreatePermanentLockedAccountResponse { - return {}; -} -export const MsgCreatePermanentLockedAccountResponse = { - encode(_: MsgCreatePermanentLockedAccountResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): MsgCreatePermanentLockedAccountResponse { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCreatePermanentLockedAccountResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_: DeepPartial): MsgCreatePermanentLockedAccountResponse { - const message = createBaseMsgCreatePermanentLockedAccountResponse(); - return message; - } -}; -function createBaseMsgCreatePeriodicVestingAccount(): MsgCreatePeriodicVestingAccount { - return { - fromAddress: "", - toAddress: "", - startTime: Long.ZERO, - vestingPeriods: [] - }; -} -export const MsgCreatePeriodicVestingAccount = { - encode(message: MsgCreatePeriodicVestingAccount, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.fromAddress !== "") { - writer.uint32(10).string(message.fromAddress); - } - if (message.toAddress !== "") { - writer.uint32(18).string(message.toAddress); - } - if (!message.startTime.isZero()) { - writer.uint32(24).int64(message.startTime); - } - for (const v of message.vestingPeriods) { - Period.encode(v!, writer.uint32(34).fork()).ldelim(); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): MsgCreatePeriodicVestingAccount { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCreatePeriodicVestingAccount(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.fromAddress = reader.string(); - break; - case 2: - message.toAddress = reader.string(); - break; - case 3: - message.startTime = (reader.int64() as Long); - break; - case 4: - message.vestingPeriods.push(Period.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): MsgCreatePeriodicVestingAccount { - const message = createBaseMsgCreatePeriodicVestingAccount(); - message.fromAddress = object.fromAddress ?? ""; - message.toAddress = object.toAddress ?? ""; - message.startTime = object.startTime !== undefined && object.startTime !== null ? Long.fromValue(object.startTime) : Long.ZERO; - message.vestingPeriods = object.vestingPeriods?.map(e => Period.fromPartial(e)) || []; - return message; - } -}; -function createBaseMsgCreatePeriodicVestingAccountResponse(): MsgCreatePeriodicVestingAccountResponse { - return {}; -} -export const MsgCreatePeriodicVestingAccountResponse = { - encode(_: MsgCreatePeriodicVestingAccountResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): MsgCreatePeriodicVestingAccountResponse { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgCreatePeriodicVestingAccountResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(_: DeepPartial): MsgCreatePeriodicVestingAccountResponse { - const message = createBaseMsgCreatePeriodicVestingAccountResponse(); - return message; - } -}; \ No newline at end of file diff --git a/packages/proto/src/codegen/cosmos/vesting/v1beta1/vesting.ts b/packages/proto/src/codegen/cosmos/vesting/v1beta1/vesting.ts deleted file mode 100644 index 95671c48..00000000 --- a/packages/proto/src/codegen/cosmos/vesting/v1beta1/vesting.ts +++ /dev/null @@ -1,380 +0,0 @@ -import { BaseAccount, BaseAccountSDKType } from "../../auth/v1beta1/auth"; -import { Coin, CoinSDKType } from "../../base/v1beta1/coin"; -import { Long, DeepPartial } from "../../../helpers"; -import * as _m0 from "protobufjs/minimal"; -/** - * BaseVestingAccount implements the VestingAccount interface. It contains all - * the necessary fields needed for any vesting account implementation. - */ -export interface BaseVestingAccount { - baseAccount: BaseAccount; - originalVesting: Coin[]; - delegatedFree: Coin[]; - delegatedVesting: Coin[]; - endTime: Long; -} -/** - * BaseVestingAccount implements the VestingAccount interface. It contains all - * the necessary fields needed for any vesting account implementation. - */ -export interface BaseVestingAccountSDKType { - base_account: BaseAccountSDKType; - original_vesting: CoinSDKType[]; - delegated_free: CoinSDKType[]; - delegated_vesting: CoinSDKType[]; - end_time: Long; -} -/** - * ContinuousVestingAccount implements the VestingAccount interface. It - * continuously vests by unlocking coins linearly with respect to time. - */ -export interface ContinuousVestingAccount { - baseVestingAccount: BaseVestingAccount; - startTime: Long; -} -/** - * ContinuousVestingAccount implements the VestingAccount interface. It - * continuously vests by unlocking coins linearly with respect to time. - */ -export interface ContinuousVestingAccountSDKType { - base_vesting_account: BaseVestingAccountSDKType; - start_time: Long; -} -/** - * DelayedVestingAccount implements the VestingAccount interface. It vests all - * coins after a specific time, but non prior. In other words, it keeps them - * locked until a specified time. - */ -export interface DelayedVestingAccount { - baseVestingAccount: BaseVestingAccount; -} -/** - * DelayedVestingAccount implements the VestingAccount interface. It vests all - * coins after a specific time, but non prior. In other words, it keeps them - * locked until a specified time. - */ -export interface DelayedVestingAccountSDKType { - base_vesting_account: BaseVestingAccountSDKType; -} -/** Period defines a length of time and amount of coins that will vest. */ -export interface Period { - length: Long; - amount: Coin[]; -} -/** Period defines a length of time and amount of coins that will vest. */ -export interface PeriodSDKType { - length: Long; - amount: CoinSDKType[]; -} -/** - * PeriodicVestingAccount implements the VestingAccount interface. It - * periodically vests by unlocking coins during each specified period. - */ -export interface PeriodicVestingAccount { - baseVestingAccount: BaseVestingAccount; - startTime: Long; - vestingPeriods: Period[]; -} -/** - * PeriodicVestingAccount implements the VestingAccount interface. It - * periodically vests by unlocking coins during each specified period. - */ -export interface PeriodicVestingAccountSDKType { - base_vesting_account: BaseVestingAccountSDKType; - start_time: Long; - vesting_periods: PeriodSDKType[]; -} -/** - * PermanentLockedAccount implements the VestingAccount interface. It does - * not ever release coins, locking them indefinitely. Coins in this account can - * still be used for delegating and for governance votes even while locked. - * - * Since: cosmos-sdk 0.43 - */ -export interface PermanentLockedAccount { - baseVestingAccount: BaseVestingAccount; -} -/** - * PermanentLockedAccount implements the VestingAccount interface. It does - * not ever release coins, locking them indefinitely. Coins in this account can - * still be used for delegating and for governance votes even while locked. - * - * Since: cosmos-sdk 0.43 - */ -export interface PermanentLockedAccountSDKType { - base_vesting_account: BaseVestingAccountSDKType; -} -function createBaseBaseVestingAccount(): BaseVestingAccount { - return { - baseAccount: BaseAccount.fromPartial({}), - originalVesting: [], - delegatedFree: [], - delegatedVesting: [], - endTime: Long.ZERO - }; -} -export const BaseVestingAccount = { - encode(message: BaseVestingAccount, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.baseAccount !== undefined) { - BaseAccount.encode(message.baseAccount, writer.uint32(10).fork()).ldelim(); - } - for (const v of message.originalVesting) { - Coin.encode(v!, writer.uint32(18).fork()).ldelim(); - } - for (const v of message.delegatedFree) { - Coin.encode(v!, writer.uint32(26).fork()).ldelim(); - } - for (const v of message.delegatedVesting) { - Coin.encode(v!, writer.uint32(34).fork()).ldelim(); - } - if (!message.endTime.isZero()) { - writer.uint32(40).int64(message.endTime); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): BaseVestingAccount { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseBaseVestingAccount(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.baseAccount = BaseAccount.decode(reader, reader.uint32()); - break; - case 2: - message.originalVesting.push(Coin.decode(reader, reader.uint32())); - break; - case 3: - message.delegatedFree.push(Coin.decode(reader, reader.uint32())); - break; - case 4: - message.delegatedVesting.push(Coin.decode(reader, reader.uint32())); - break; - case 5: - message.endTime = (reader.int64() as Long); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): BaseVestingAccount { - const message = createBaseBaseVestingAccount(); - message.baseAccount = object.baseAccount !== undefined && object.baseAccount !== null ? BaseAccount.fromPartial(object.baseAccount) : undefined; - message.originalVesting = object.originalVesting?.map(e => Coin.fromPartial(e)) || []; - message.delegatedFree = object.delegatedFree?.map(e => Coin.fromPartial(e)) || []; - message.delegatedVesting = object.delegatedVesting?.map(e => Coin.fromPartial(e)) || []; - message.endTime = object.endTime !== undefined && object.endTime !== null ? Long.fromValue(object.endTime) : Long.ZERO; - return message; - } -}; -function createBaseContinuousVestingAccount(): ContinuousVestingAccount { - return { - baseVestingAccount: BaseVestingAccount.fromPartial({}), - startTime: Long.ZERO - }; -} -export const ContinuousVestingAccount = { - encode(message: ContinuousVestingAccount, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.baseVestingAccount !== undefined) { - BaseVestingAccount.encode(message.baseVestingAccount, writer.uint32(10).fork()).ldelim(); - } - if (!message.startTime.isZero()) { - writer.uint32(16).int64(message.startTime); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): ContinuousVestingAccount { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseContinuousVestingAccount(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.baseVestingAccount = BaseVestingAccount.decode(reader, reader.uint32()); - break; - case 2: - message.startTime = (reader.int64() as Long); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): ContinuousVestingAccount { - const message = createBaseContinuousVestingAccount(); - message.baseVestingAccount = object.baseVestingAccount !== undefined && object.baseVestingAccount !== null ? BaseVestingAccount.fromPartial(object.baseVestingAccount) : undefined; - message.startTime = object.startTime !== undefined && object.startTime !== null ? Long.fromValue(object.startTime) : Long.ZERO; - return message; - } -}; -function createBaseDelayedVestingAccount(): DelayedVestingAccount { - return { - baseVestingAccount: BaseVestingAccount.fromPartial({}) - }; -} -export const DelayedVestingAccount = { - encode(message: DelayedVestingAccount, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.baseVestingAccount !== undefined) { - BaseVestingAccount.encode(message.baseVestingAccount, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): DelayedVestingAccount { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseDelayedVestingAccount(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.baseVestingAccount = BaseVestingAccount.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): DelayedVestingAccount { - const message = createBaseDelayedVestingAccount(); - message.baseVestingAccount = object.baseVestingAccount !== undefined && object.baseVestingAccount !== null ? BaseVestingAccount.fromPartial(object.baseVestingAccount) : undefined; - return message; - } -}; -function createBasePeriod(): Period { - return { - length: Long.ZERO, - amount: [] - }; -} -export const Period = { - encode(message: Period, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (!message.length.isZero()) { - writer.uint32(8).int64(message.length); - } - for (const v of message.amount) { - Coin.encode(v!, writer.uint32(18).fork()).ldelim(); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): Period { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBasePeriod(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.length = (reader.int64() as Long); - break; - case 2: - message.amount.push(Coin.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): Period { - const message = createBasePeriod(); - message.length = object.length !== undefined && object.length !== null ? Long.fromValue(object.length) : Long.ZERO; - message.amount = object.amount?.map(e => Coin.fromPartial(e)) || []; - return message; - } -}; -function createBasePeriodicVestingAccount(): PeriodicVestingAccount { - return { - baseVestingAccount: BaseVestingAccount.fromPartial({}), - startTime: Long.ZERO, - vestingPeriods: [] - }; -} -export const PeriodicVestingAccount = { - encode(message: PeriodicVestingAccount, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.baseVestingAccount !== undefined) { - BaseVestingAccount.encode(message.baseVestingAccount, writer.uint32(10).fork()).ldelim(); - } - if (!message.startTime.isZero()) { - writer.uint32(16).int64(message.startTime); - } - for (const v of message.vestingPeriods) { - Period.encode(v!, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): PeriodicVestingAccount { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBasePeriodicVestingAccount(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.baseVestingAccount = BaseVestingAccount.decode(reader, reader.uint32()); - break; - case 2: - message.startTime = (reader.int64() as Long); - break; - case 3: - message.vestingPeriods.push(Period.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): PeriodicVestingAccount { - const message = createBasePeriodicVestingAccount(); - message.baseVestingAccount = object.baseVestingAccount !== undefined && object.baseVestingAccount !== null ? BaseVestingAccount.fromPartial(object.baseVestingAccount) : undefined; - message.startTime = object.startTime !== undefined && object.startTime !== null ? Long.fromValue(object.startTime) : Long.ZERO; - message.vestingPeriods = object.vestingPeriods?.map(e => Period.fromPartial(e)) || []; - return message; - } -}; -function createBasePermanentLockedAccount(): PermanentLockedAccount { - return { - baseVestingAccount: BaseVestingAccount.fromPartial({}) - }; -} -export const PermanentLockedAccount = { - encode(message: PermanentLockedAccount, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.baseVestingAccount !== undefined) { - BaseVestingAccount.encode(message.baseVestingAccount, writer.uint32(10).fork()).ldelim(); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): PermanentLockedAccount { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBasePermanentLockedAccount(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.baseVestingAccount = BaseVestingAccount.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): PermanentLockedAccount { - const message = createBasePermanentLockedAccount(); - message.baseVestingAccount = object.baseVestingAccount !== undefined && object.baseVestingAccount !== null ? BaseVestingAccount.fromPartial(object.baseVestingAccount) : undefined; - return message; - } -}; \ No newline at end of file diff --git a/packages/proto/src/codegen/cosmwasm/bundle.ts b/packages/proto/src/codegen/cosmwasm/bundle.ts index 1707cdd1..3dcffdcd 100644 --- a/packages/proto/src/codegen/cosmwasm/bundle.ts +++ b/packages/proto/src/codegen/cosmwasm/bundle.ts @@ -1,28 +1,36 @@ -import * as _94 from "./wasm/v1/genesis"; -import * as _95 from "./wasm/v1/ibc"; -import * as _96 from "./wasm/v1/proposal"; -import * as _97 from "./wasm/v1/query"; -import * as _98 from "./wasm/v1/tx"; -import * as _99 from "./wasm/v1/types"; -import * as _225 from "./wasm/v1/tx.amino"; -import * as _226 from "./wasm/v1/tx.registry"; -import * as _227 from "./wasm/v1/query.lcd"; -import * as _252 from "./lcd"; +import * as _44 from "./wasm/v1/genesis"; +import * as _45 from "./wasm/v1/ibc"; +import * as _46 from "./wasm/v1/proposal"; +import * as _47 from "./wasm/v1/query"; +import * as _48 from "./wasm/v1/tx"; +import * as _49 from "./wasm/v1/types"; +import * as _160 from "./wasm/v1/tx.amino"; +import * as _161 from "./wasm/v1/tx.registry"; +import * as _162 from "./wasm/v1/query.lcd"; +import * as _163 from "./wasm/v1/query.rpc.Query"; +import * as _164 from "./wasm/v1/tx.rpc.msg"; +import * as _207 from "./lcd"; +import * as _208 from "./rpc.query"; +import * as _209 from "./rpc.tx"; export namespace cosmwasm { export namespace wasm { export const v1 = { - ..._94, - ..._95, - ..._96, - ..._97, - ..._98, - ..._99, - ..._225, - ..._226, - ..._227 + ..._44, + ..._45, + ..._46, + ..._47, + ..._48, + ..._49, + ..._160, + ..._161, + ..._162, + ..._163, + ..._164 }; } export const ClientFactory = { - ..._252 + ..._207, + ..._208, + ..._209 }; } \ No newline at end of file diff --git a/packages/proto/src/codegen/cosmwasm/lcd.ts b/packages/proto/src/codegen/cosmwasm/lcd.ts index ce16f358..886fac37 100644 --- a/packages/proto/src/codegen/cosmwasm/lcd.ts +++ b/packages/proto/src/codegen/cosmwasm/lcd.ts @@ -24,61 +24,16 @@ export const createLCDClient = async ({ requestClient }) }, - base: { - tendermint: { - v1beta1: new (await import("../cosmos/base/tendermint/v1beta1/query.lcd")).LCDQueryClient({ - requestClient - }) - } - }, distribution: { v1beta1: new (await import("../cosmos/distribution/v1beta1/query.lcd")).LCDQueryClient({ requestClient }) }, - evidence: { - v1beta1: new (await import("../cosmos/evidence/v1beta1/query.lcd")).LCDQueryClient({ - requestClient - }) - }, - feegrant: { - v1beta1: new (await import("../cosmos/feegrant/v1beta1/query.lcd")).LCDQueryClient({ - requestClient - }) - }, gov: { - v1: new (await import("../cosmos/gov/v1/query.lcd")).LCDQueryClient({ - requestClient - }), v1beta1: new (await import("../cosmos/gov/v1beta1/query.lcd")).LCDQueryClient({ requestClient }) }, - group: { - v1: new (await import("../cosmos/group/v1/query.lcd")).LCDQueryClient({ - requestClient - }) - }, - mint: { - v1beta1: new (await import("../cosmos/mint/v1beta1/query.lcd")).LCDQueryClient({ - requestClient - }) - }, - nft: { - v1beta1: new (await import("../cosmos/nft/v1beta1/query.lcd")).LCDQueryClient({ - requestClient - }) - }, - params: { - v1beta1: new (await import("../cosmos/params/v1beta1/query.lcd")).LCDQueryClient({ - requestClient - }) - }, - slashing: { - v1beta1: new (await import("../cosmos/slashing/v1beta1/query.lcd")).LCDQueryClient({ - requestClient - }) - }, staking: { v1beta1: new (await import("../cosmos/staking/v1beta1/query.lcd")).LCDQueryClient({ requestClient diff --git a/packages/proto/src/codegen/cosmwasm/rpc.query.ts b/packages/proto/src/codegen/cosmwasm/rpc.query.ts new file mode 100644 index 00000000..99a83614 --- /dev/null +++ b/packages/proto/src/codegen/cosmwasm/rpc.query.ts @@ -0,0 +1,43 @@ +import { Tendermint34Client, HttpEndpoint } from "@cosmjs/tendermint-rpc"; +import { QueryClient } from "@cosmjs/stargate"; +export const createRPCQueryClient = async ({ + rpcEndpoint +}: { + rpcEndpoint: string | HttpEndpoint; +}) => { + const tmClient = await Tendermint34Client.connect(rpcEndpoint); + const client = new QueryClient(tmClient); + return { + cosmos: { + auth: { + v1beta1: (await import("../cosmos/auth/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) + }, + authz: { + v1beta1: (await import("../cosmos/authz/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) + }, + bank: { + v1beta1: (await import("../cosmos/bank/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) + }, + distribution: { + v1beta1: (await import("../cosmos/distribution/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) + }, + gov: { + v1beta1: (await import("../cosmos/gov/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) + }, + staking: { + v1beta1: (await import("../cosmos/staking/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) + }, + tx: { + v1beta1: (await import("../cosmos/tx/v1beta1/service.rpc.Service")).createRpcQueryExtension(client) + }, + upgrade: { + v1beta1: (await import("../cosmos/upgrade/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) + } + }, + cosmwasm: { + wasm: { + v1: (await import("./wasm/v1/query.rpc.Query")).createRpcQueryExtension(client) + } + } + }; +}; \ No newline at end of file diff --git a/packages/proto/src/codegen/cosmwasm/rpc.tx.ts b/packages/proto/src/codegen/cosmwasm/rpc.tx.ts new file mode 100644 index 00000000..a029dea8 --- /dev/null +++ b/packages/proto/src/codegen/cosmwasm/rpc.tx.ts @@ -0,0 +1,32 @@ +import { Rpc } from "../helpers"; +export const createRPCMsgClient = async ({ + rpc +}: { + rpc: Rpc; +}) => ({ + cosmos: { + authz: { + v1beta1: new (await import("../cosmos/authz/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) + }, + bank: { + v1beta1: new (await import("../cosmos/bank/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) + }, + distribution: { + v1beta1: new (await import("../cosmos/distribution/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) + }, + gov: { + v1beta1: new (await import("../cosmos/gov/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) + }, + staking: { + v1beta1: new (await import("../cosmos/staking/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) + }, + upgrade: { + v1beta1: new (await import("../cosmos/upgrade/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) + } + }, + cosmwasm: { + wasm: { + v1: new (await import("./wasm/v1/tx.rpc.msg")).MsgClientImpl(rpc) + } + } +}); \ No newline at end of file diff --git a/packages/proto/src/codegen/cosmwasm/wasm/v1/query.rpc.Query.ts b/packages/proto/src/codegen/cosmwasm/wasm/v1/query.rpc.Query.ts new file mode 100644 index 00000000..1b63fc62 --- /dev/null +++ b/packages/proto/src/codegen/cosmwasm/wasm/v1/query.rpc.Query.ts @@ -0,0 +1,122 @@ +import { Rpc } from "../../../helpers"; +import * as _m0 from "protobufjs/minimal"; +import { QueryClient, createProtobufRpcClient } from "@cosmjs/stargate"; +import { QueryContractInfoRequest, QueryContractInfoResponse, QueryContractHistoryRequest, QueryContractHistoryResponse, QueryContractsByCodeRequest, QueryContractsByCodeResponse, QueryAllContractStateRequest, QueryAllContractStateResponse, QueryRawContractStateRequest, QueryRawContractStateResponse, QuerySmartContractStateRequest, QuerySmartContractStateResponse, QueryCodeRequest, QueryCodeResponse, QueryCodesRequest, QueryCodesResponse, QueryPinnedCodesRequest, QueryPinnedCodesResponse } from "./query"; +/** Query provides defines the gRPC querier service */ +export interface Query { + /** ContractInfo gets the contract meta data */ + contractInfo(request: QueryContractInfoRequest): Promise; + /** ContractHistory gets the contract code history */ + contractHistory(request: QueryContractHistoryRequest): Promise; + /** ContractsByCode lists all smart contracts for a code id */ + contractsByCode(request: QueryContractsByCodeRequest): Promise; + /** AllContractState gets all raw store data for a single contract */ + allContractState(request: QueryAllContractStateRequest): Promise; + /** RawContractState gets single key from the raw store data of a contract */ + rawContractState(request: QueryRawContractStateRequest): Promise; + /** SmartContractState get smart query result from the contract */ + smartContractState(request: QuerySmartContractStateRequest): Promise; + /** Code gets the binary code and metadata for a singe wasm code */ + code(request: QueryCodeRequest): Promise; + /** Codes gets the metadata for all stored wasm codes */ + codes(request?: QueryCodesRequest): Promise; + /** PinnedCodes gets the pinned code ids */ + pinnedCodes(request?: QueryPinnedCodesRequest): Promise; +} +export class QueryClientImpl implements Query { + private readonly rpc: Rpc; + constructor(rpc: Rpc) { + this.rpc = rpc; + this.contractInfo = this.contractInfo.bind(this); + this.contractHistory = this.contractHistory.bind(this); + this.contractsByCode = this.contractsByCode.bind(this); + this.allContractState = this.allContractState.bind(this); + this.rawContractState = this.rawContractState.bind(this); + this.smartContractState = this.smartContractState.bind(this); + this.code = this.code.bind(this); + this.codes = this.codes.bind(this); + this.pinnedCodes = this.pinnedCodes.bind(this); + } + contractInfo(request: QueryContractInfoRequest): Promise { + const data = QueryContractInfoRequest.encode(request).finish(); + const promise = this.rpc.request("cosmwasm.wasm.v1.Query", "ContractInfo", data); + return promise.then(data => QueryContractInfoResponse.decode(new _m0.Reader(data))); + } + contractHistory(request: QueryContractHistoryRequest): Promise { + const data = QueryContractHistoryRequest.encode(request).finish(); + const promise = this.rpc.request("cosmwasm.wasm.v1.Query", "ContractHistory", data); + return promise.then(data => QueryContractHistoryResponse.decode(new _m0.Reader(data))); + } + contractsByCode(request: QueryContractsByCodeRequest): Promise { + const data = QueryContractsByCodeRequest.encode(request).finish(); + const promise = this.rpc.request("cosmwasm.wasm.v1.Query", "ContractsByCode", data); + return promise.then(data => QueryContractsByCodeResponse.decode(new _m0.Reader(data))); + } + allContractState(request: QueryAllContractStateRequest): Promise { + const data = QueryAllContractStateRequest.encode(request).finish(); + const promise = this.rpc.request("cosmwasm.wasm.v1.Query", "AllContractState", data); + return promise.then(data => QueryAllContractStateResponse.decode(new _m0.Reader(data))); + } + rawContractState(request: QueryRawContractStateRequest): Promise { + const data = QueryRawContractStateRequest.encode(request).finish(); + const promise = this.rpc.request("cosmwasm.wasm.v1.Query", "RawContractState", data); + return promise.then(data => QueryRawContractStateResponse.decode(new _m0.Reader(data))); + } + smartContractState(request: QuerySmartContractStateRequest): Promise { + const data = QuerySmartContractStateRequest.encode(request).finish(); + const promise = this.rpc.request("cosmwasm.wasm.v1.Query", "SmartContractState", data); + return promise.then(data => QuerySmartContractStateResponse.decode(new _m0.Reader(data))); + } + code(request: QueryCodeRequest): Promise { + const data = QueryCodeRequest.encode(request).finish(); + const promise = this.rpc.request("cosmwasm.wasm.v1.Query", "Code", data); + return promise.then(data => QueryCodeResponse.decode(new _m0.Reader(data))); + } + codes(request: QueryCodesRequest = { + pagination: undefined + }): Promise { + const data = QueryCodesRequest.encode(request).finish(); + const promise = this.rpc.request("cosmwasm.wasm.v1.Query", "Codes", data); + return promise.then(data => QueryCodesResponse.decode(new _m0.Reader(data))); + } + pinnedCodes(request: QueryPinnedCodesRequest = { + pagination: undefined + }): Promise { + const data = QueryPinnedCodesRequest.encode(request).finish(); + const promise = this.rpc.request("cosmwasm.wasm.v1.Query", "PinnedCodes", data); + return promise.then(data => QueryPinnedCodesResponse.decode(new _m0.Reader(data))); + } +} +export const createRpcQueryExtension = (base: QueryClient) => { + const rpc = createProtobufRpcClient(base); + const queryService = new QueryClientImpl(rpc); + return { + contractInfo(request: QueryContractInfoRequest): Promise { + return queryService.contractInfo(request); + }, + contractHistory(request: QueryContractHistoryRequest): Promise { + return queryService.contractHistory(request); + }, + contractsByCode(request: QueryContractsByCodeRequest): Promise { + return queryService.contractsByCode(request); + }, + allContractState(request: QueryAllContractStateRequest): Promise { + return queryService.allContractState(request); + }, + rawContractState(request: QueryRawContractStateRequest): Promise { + return queryService.rawContractState(request); + }, + smartContractState(request: QuerySmartContractStateRequest): Promise { + return queryService.smartContractState(request); + }, + code(request: QueryCodeRequest): Promise { + return queryService.code(request); + }, + codes(request?: QueryCodesRequest): Promise { + return queryService.codes(request); + }, + pinnedCodes(request?: QueryPinnedCodesRequest): Promise { + return queryService.pinnedCodes(request); + } + }; +}; \ No newline at end of file diff --git a/packages/proto/src/codegen/cosmwasm/wasm/v1/tx.amino.ts b/packages/proto/src/codegen/cosmwasm/wasm/v1/tx.amino.ts index 55ed7fb8..e273e14e 100644 --- a/packages/proto/src/codegen/cosmwasm/wasm/v1/tx.amino.ts +++ b/packages/proto/src/codegen/cosmwasm/wasm/v1/tx.amino.ts @@ -1,3 +1,4 @@ +//@ts-nocheck import { accessTypeFromJSON } from "./types"; import { AminoMsg } from "@cosmjs/amino"; import { toBase64, fromBase64, fromUtf8, toUtf8 } from "@cosmjs/encoding"; diff --git a/packages/proto/src/codegen/cosmwasm/wasm/v1/tx.registry.ts b/packages/proto/src/codegen/cosmwasm/wasm/v1/tx.registry.ts index b8f480f7..53fbcf63 100644 --- a/packages/proto/src/codegen/cosmwasm/wasm/v1/tx.registry.ts +++ b/packages/proto/src/codegen/cosmwasm/wasm/v1/tx.registry.ts @@ -1,3 +1,4 @@ +//@ts-nocheck import { GeneratedType, Registry } from "@cosmjs/proto-signing"; import { MsgStoreCode, MsgInstantiateContract, MsgExecuteContract, MsgMigrateContract, MsgUpdateAdmin, MsgClearAdmin } from "./tx"; export const registry: ReadonlyArray<[string, GeneratedType]> = [["/cosmwasm.wasm.v1.MsgStoreCode", MsgStoreCode], ["/cosmwasm.wasm.v1.MsgInstantiateContract", MsgInstantiateContract], ["/cosmwasm.wasm.v1.MsgExecuteContract", MsgExecuteContract], ["/cosmwasm.wasm.v1.MsgMigrateContract", MsgMigrateContract], ["/cosmwasm.wasm.v1.MsgUpdateAdmin", MsgUpdateAdmin], ["/cosmwasm.wasm.v1.MsgClearAdmin", MsgClearAdmin]]; diff --git a/packages/proto/src/codegen/cosmwasm/wasm/v1/tx.rpc.msg.ts b/packages/proto/src/codegen/cosmwasm/wasm/v1/tx.rpc.msg.ts new file mode 100644 index 00000000..4e0613d3 --- /dev/null +++ b/packages/proto/src/codegen/cosmwasm/wasm/v1/tx.rpc.msg.ts @@ -0,0 +1,60 @@ +import { Rpc } from "../../../helpers"; +import * as _m0 from "protobufjs/minimal"; +import { MsgStoreCode, MsgStoreCodeResponse, MsgInstantiateContract, MsgInstantiateContractResponse, MsgExecuteContract, MsgExecuteContractResponse, MsgMigrateContract, MsgMigrateContractResponse, MsgUpdateAdmin, MsgUpdateAdminResponse, MsgClearAdmin, MsgClearAdminResponse } from "./tx"; +/** Msg defines the wasm Msg service. */ +export interface Msg { + /** StoreCode to submit Wasm code to the system */ + storeCode(request: MsgStoreCode): Promise; + /** Instantiate creates a new smart contract instance for the given code id. */ + instantiateContract(request: MsgInstantiateContract): Promise; + /** Execute submits the given message data to a smart contract */ + executeContract(request: MsgExecuteContract): Promise; + /** Migrate runs a code upgrade/ downgrade for a smart contract */ + migrateContract(request: MsgMigrateContract): Promise; + /** UpdateAdmin sets a new admin for a smart contract */ + updateAdmin(request: MsgUpdateAdmin): Promise; + /** ClearAdmin removes any admin stored for a smart contract */ + clearAdmin(request: MsgClearAdmin): Promise; +} +export class MsgClientImpl implements Msg { + private readonly rpc: Rpc; + constructor(rpc: Rpc) { + this.rpc = rpc; + this.storeCode = this.storeCode.bind(this); + this.instantiateContract = this.instantiateContract.bind(this); + this.executeContract = this.executeContract.bind(this); + this.migrateContract = this.migrateContract.bind(this); + this.updateAdmin = this.updateAdmin.bind(this); + this.clearAdmin = this.clearAdmin.bind(this); + } + storeCode(request: MsgStoreCode): Promise { + const data = MsgStoreCode.encode(request).finish(); + const promise = this.rpc.request("cosmwasm.wasm.v1.Msg", "StoreCode", data); + return promise.then(data => MsgStoreCodeResponse.decode(new _m0.Reader(data))); + } + instantiateContract(request: MsgInstantiateContract): Promise { + const data = MsgInstantiateContract.encode(request).finish(); + const promise = this.rpc.request("cosmwasm.wasm.v1.Msg", "InstantiateContract", data); + return promise.then(data => MsgInstantiateContractResponse.decode(new _m0.Reader(data))); + } + executeContract(request: MsgExecuteContract): Promise { + const data = MsgExecuteContract.encode(request).finish(); + const promise = this.rpc.request("cosmwasm.wasm.v1.Msg", "ExecuteContract", data); + return promise.then(data => MsgExecuteContractResponse.decode(new _m0.Reader(data))); + } + migrateContract(request: MsgMigrateContract): Promise { + const data = MsgMigrateContract.encode(request).finish(); + const promise = this.rpc.request("cosmwasm.wasm.v1.Msg", "MigrateContract", data); + return promise.then(data => MsgMigrateContractResponse.decode(new _m0.Reader(data))); + } + updateAdmin(request: MsgUpdateAdmin): Promise { + const data = MsgUpdateAdmin.encode(request).finish(); + const promise = this.rpc.request("cosmwasm.wasm.v1.Msg", "UpdateAdmin", data); + return promise.then(data => MsgUpdateAdminResponse.decode(new _m0.Reader(data))); + } + clearAdmin(request: MsgClearAdmin): Promise { + const data = MsgClearAdmin.encode(request).finish(); + const promise = this.rpc.request("cosmwasm.wasm.v1.Msg", "ClearAdmin", data); + return promise.then(data => MsgClearAdminResponse.decode(new _m0.Reader(data))); + } +} \ No newline at end of file diff --git a/packages/proto/src/codegen/gogoproto/bundle.ts b/packages/proto/src/codegen/gogoproto/bundle.ts index 33a6fc1b..0444cee1 100644 --- a/packages/proto/src/codegen/gogoproto/bundle.ts +++ b/packages/proto/src/codegen/gogoproto/bundle.ts @@ -1,4 +1,4 @@ -import * as _100 from "./gogo"; +import * as _50 from "./gogo"; export const gogoproto = { - ..._100 + ..._50 }; \ No newline at end of file diff --git a/packages/proto/src/codegen/google/api/annotations.ts b/packages/proto/src/codegen/google/api/annotations.ts deleted file mode 100644 index 693da49f..00000000 --- a/packages/proto/src/codegen/google/api/annotations.ts +++ /dev/null @@ -1 +0,0 @@ -export {} \ No newline at end of file diff --git a/packages/proto/src/codegen/google/api/http.ts b/packages/proto/src/codegen/google/api/http.ts deleted file mode 100644 index 3f267af1..00000000 --- a/packages/proto/src/codegen/google/api/http.ts +++ /dev/null @@ -1,844 +0,0 @@ -import * as _m0 from "protobufjs/minimal"; -import { DeepPartial } from "../../helpers"; -/** - * Defines the HTTP configuration for an API service. It contains a list of - * [HttpRule][google.api.HttpRule], each specifying the mapping of an RPC method - * to one or more HTTP REST API methods. - */ -export interface Http { - /** - * A list of HTTP configuration rules that apply to individual API methods. - * - * **NOTE:** All service configuration rules follow "last one wins" order. - */ - rules: HttpRule[]; - /** - * When set to true, URL path parameters will be fully URI-decoded except in - * cases of single segment matches in reserved expansion, where "%2F" will be - * left encoded. - * - * The default behavior is to not decode RFC 6570 reserved characters in multi - * segment matches. - */ - fullyDecodeReservedExpansion: boolean; -} -/** - * Defines the HTTP configuration for an API service. It contains a list of - * [HttpRule][google.api.HttpRule], each specifying the mapping of an RPC method - * to one or more HTTP REST API methods. - */ -export interface HttpSDKType { - rules: HttpRuleSDKType[]; - fully_decode_reserved_expansion: boolean; -} -/** - * # gRPC Transcoding - * - * gRPC Transcoding is a feature for mapping between a gRPC method and one or - * more HTTP REST endpoints. It allows developers to build a single API service - * that supports both gRPC APIs and REST APIs. Many systems, including [Google - * APIs](https://github.com/googleapis/googleapis), - * [Cloud Endpoints](https://cloud.google.com/endpoints), [gRPC - * Gateway](https://github.com/grpc-ecosystem/grpc-gateway), - * and [Envoy](https://github.com/envoyproxy/envoy) proxy support this feature - * and use it for large scale production services. - * - * `HttpRule` defines the schema of the gRPC/REST mapping. The mapping specifies - * how different portions of the gRPC request message are mapped to the URL - * path, URL query parameters, and HTTP request body. It also controls how the - * gRPC response message is mapped to the HTTP response body. `HttpRule` is - * typically specified as an `google.api.http` annotation on the gRPC method. - * - * Each mapping specifies a URL path template and an HTTP method. The path - * template may refer to one or more fields in the gRPC request message, as long - * as each field is a non-repeated field with a primitive (non-message) type. - * The path template controls how fields of the request message are mapped to - * the URL path. - * - * Example: - * - * service Messaging { - * rpc GetMessage(GetMessageRequest) returns (Message) { - * option (google.api.http) = { - * get: "/v1/{name=messages/*}" - * }; - * } - * } - * message GetMessageRequest { - * string name = 1; // Mapped to URL path. - * } - * message Message { - * string text = 1; // The resource content. - * } - * - * This enables an HTTP REST to gRPC mapping as below: - * - * HTTP | gRPC - * -----|----- - * `GET /v1/messages/123456` | `GetMessage(name: "messages/123456")` - * - * Any fields in the request message which are not bound by the path template - * automatically become HTTP query parameters if there is no HTTP request body. - * For example: - * - * service Messaging { - * rpc GetMessage(GetMessageRequest) returns (Message) { - * option (google.api.http) = { - * get:"/v1/messages/{message_id}" - * }; - * } - * } - * message GetMessageRequest { - * message SubMessage { - * string subfield = 1; - * } - * string message_id = 1; // Mapped to URL path. - * int64 revision = 2; // Mapped to URL query parameter `revision`. - * SubMessage sub = 3; // Mapped to URL query parameter `sub.subfield`. - * } - * - * This enables a HTTP JSON to RPC mapping as below: - * - * HTTP | gRPC - * -----|----- - * `GET /v1/messages/123456?revision=2&sub.subfield=foo` | - * `GetMessage(message_id: "123456" revision: 2 sub: SubMessage(subfield: - * "foo"))` - * - * Note that fields which are mapped to URL query parameters must have a - * primitive type or a repeated primitive type or a non-repeated message type. - * In the case of a repeated type, the parameter can be repeated in the URL - * as `...?param=A¶m=B`. In the case of a message type, each field of the - * message is mapped to a separate parameter, such as - * `...?foo.a=A&foo.b=B&foo.c=C`. - * - * For HTTP methods that allow a request body, the `body` field - * specifies the mapping. Consider a REST update method on the - * message resource collection: - * - * service Messaging { - * rpc UpdateMessage(UpdateMessageRequest) returns (Message) { - * option (google.api.http) = { - * patch: "/v1/messages/{message_id}" - * body: "message" - * }; - * } - * } - * message UpdateMessageRequest { - * string message_id = 1; // mapped to the URL - * Message message = 2; // mapped to the body - * } - * - * The following HTTP JSON to RPC mapping is enabled, where the - * representation of the JSON in the request body is determined by - * protos JSON encoding: - * - * HTTP | gRPC - * -----|----- - * `PATCH /v1/messages/123456 { "text": "Hi!" }` | `UpdateMessage(message_id: - * "123456" message { text: "Hi!" })` - * - * The special name `*` can be used in the body mapping to define that - * every field not bound by the path template should be mapped to the - * request body. This enables the following alternative definition of - * the update method: - * - * service Messaging { - * rpc UpdateMessage(Message) returns (Message) { - * option (google.api.http) = { - * patch: "/v1/messages/{message_id}" - * body: "*" - * }; - * } - * } - * message Message { - * string message_id = 1; - * string text = 2; - * } - * - * - * The following HTTP JSON to RPC mapping is enabled: - * - * HTTP | gRPC - * -----|----- - * `PATCH /v1/messages/123456 { "text": "Hi!" }` | `UpdateMessage(message_id: - * "123456" text: "Hi!")` - * - * Note that when using `*` in the body mapping, it is not possible to - * have HTTP parameters, as all fields not bound by the path end in - * the body. This makes this option more rarely used in practice when - * defining REST APIs. The common usage of `*` is in custom methods - * which don't use the URL at all for transferring data. - * - * It is possible to define multiple HTTP methods for one RPC by using - * the `additional_bindings` option. Example: - * - * service Messaging { - * rpc GetMessage(GetMessageRequest) returns (Message) { - * option (google.api.http) = { - * get: "/v1/messages/{message_id}" - * additional_bindings { - * get: "/v1/users/{user_id}/messages/{message_id}" - * } - * }; - * } - * } - * message GetMessageRequest { - * string message_id = 1; - * string user_id = 2; - * } - * - * This enables the following two alternative HTTP JSON to RPC mappings: - * - * HTTP | gRPC - * -----|----- - * `GET /v1/messages/123456` | `GetMessage(message_id: "123456")` - * `GET /v1/users/me/messages/123456` | `GetMessage(user_id: "me" message_id: - * "123456")` - * - * ## Rules for HTTP mapping - * - * 1. Leaf request fields (recursive expansion nested messages in the request - * message) are classified into three categories: - * - Fields referred by the path template. They are passed via the URL path. - * - Fields referred by the [HttpRule.body][google.api.HttpRule.body]. They are passed via the HTTP - * request body. - * - All other fields are passed via the URL query parameters, and the - * parameter name is the field path in the request message. A repeated - * field can be represented as multiple query parameters under the same - * name. - * 2. If [HttpRule.body][google.api.HttpRule.body] is "*", there is no URL query parameter, all fields - * are passed via URL path and HTTP request body. - * 3. If [HttpRule.body][google.api.HttpRule.body] is omitted, there is no HTTP request body, all - * fields are passed via URL path and URL query parameters. - * - * ### Path template syntax - * - * Template = "/" Segments [ Verb ] ; - * Segments = Segment { "/" Segment } ; - * Segment = "*" | "**" | LITERAL | Variable ; - * Variable = "{" FieldPath [ "=" Segments ] "}" ; - * FieldPath = IDENT { "." IDENT } ; - * Verb = ":" LITERAL ; - * - * The syntax `*` matches a single URL path segment. The syntax `**` matches - * zero or more URL path segments, which must be the last part of the URL path - * except the `Verb`. - * - * The syntax `Variable` matches part of the URL path as specified by its - * template. A variable template must not contain other variables. If a variable - * matches a single path segment, its template may be omitted, e.g. `{var}` - * is equivalent to `{var=*}`. - * - * The syntax `LITERAL` matches literal text in the URL path. If the `LITERAL` - * contains any reserved character, such characters should be percent-encoded - * before the matching. - * - * If a variable contains exactly one path segment, such as `"{var}"` or - * `"{var=*}"`, when such a variable is expanded into a URL path on the client - * side, all characters except `[-_.~0-9a-zA-Z]` are percent-encoded. The - * server side does the reverse decoding. Such variables show up in the - * [Discovery - * Document](https://developers.google.com/discovery/v1/reference/apis) as - * `{var}`. - * - * If a variable contains multiple path segments, such as `"{var=foo/*}"` - * or `"{var=**}"`, when such a variable is expanded into a URL path on the - * client side, all characters except `[-_.~/0-9a-zA-Z]` are percent-encoded. - * The server side does the reverse decoding, except "%2F" and "%2f" are left - * unchanged. Such variables show up in the - * [Discovery - * Document](https://developers.google.com/discovery/v1/reference/apis) as - * `{+var}`. - * - * ## Using gRPC API Service Configuration - * - * gRPC API Service Configuration (service config) is a configuration language - * for configuring a gRPC service to become a user-facing product. The - * service config is simply the YAML representation of the `google.api.Service` - * proto message. - * - * As an alternative to annotating your proto file, you can configure gRPC - * transcoding in your service config YAML files. You do this by specifying a - * `HttpRule` that maps the gRPC method to a REST endpoint, achieving the same - * effect as the proto annotation. This can be particularly useful if you - * have a proto that is reused in multiple services. Note that any transcoding - * specified in the service config will override any matching transcoding - * configuration in the proto. - * - * Example: - * - * http: - * rules: - * # Selects a gRPC method and applies HttpRule to it. - * - selector: example.v1.Messaging.GetMessage - * get: /v1/messages/{message_id}/{sub.subfield} - * - * ## Special notes - * - * When gRPC Transcoding is used to map a gRPC to JSON REST endpoints, the - * proto to JSON conversion must follow the [proto3 - * specification](https://developers.google.com/protocol-buffers/docs/proto3#json). - * - * While the single segment variable follows the semantics of - * [RFC 6570](https://tools.ietf.org/html/rfc6570) Section 3.2.2 Simple String - * Expansion, the multi segment variable **does not** follow RFC 6570 Section - * 3.2.3 Reserved Expansion. The reason is that the Reserved Expansion - * does not expand special characters like `?` and `#`, which would lead - * to invalid URLs. As the result, gRPC Transcoding uses a custom encoding - * for multi segment variables. - * - * The path variables **must not** refer to any repeated or mapped field, - * because client libraries are not capable of handling such variable expansion. - * - * The path variables **must not** capture the leading "/" character. The reason - * is that the most common use case "{var}" does not capture the leading "/" - * character. For consistency, all path variables must share the same behavior. - * - * Repeated message fields must not be mapped to URL query parameters, because - * no client library can support such complicated mapping. - * - * If an API needs to use a JSON array for request or response body, it can map - * the request or response body to a repeated field. However, some gRPC - * Transcoding implementations may not support this feature. - */ -export interface HttpRule { - /** - * Selects a method to which this rule applies. - * - * Refer to [selector][google.api.DocumentationRule.selector] for syntax details. - */ - selector: string; - /** - * Maps to HTTP GET. Used for listing and getting information about - * resources. - */ - get?: string; - /** Maps to HTTP PUT. Used for replacing a resource. */ - put?: string; - /** Maps to HTTP POST. Used for creating a resource or performing an action. */ - post?: string; - /** Maps to HTTP DELETE. Used for deleting a resource. */ - delete?: string; - /** Maps to HTTP PATCH. Used for updating a resource. */ - patch?: string; - /** - * The custom pattern is used for specifying an HTTP method that is not - * included in the `pattern` field, such as HEAD, or "*" to leave the - * HTTP method unspecified for this rule. The wild-card rule is useful - * for services that provide content to Web (HTML) clients. - */ - custom?: CustomHttpPattern; - /** - * The name of the request field whose value is mapped to the HTTP request - * body, or `*` for mapping all request fields not captured by the path - * pattern to the HTTP body, or omitted for not having any HTTP request body. - * - * NOTE: the referred field must be present at the top-level of the request - * message type. - */ - body: string; - /** - * Optional. The name of the response field whose value is mapped to the HTTP - * response body. When omitted, the entire response message will be used - * as the HTTP response body. - * - * NOTE: The referred field must be present at the top-level of the response - * message type. - */ - responseBody: string; - /** - * Additional HTTP bindings for the selector. Nested bindings must - * not contain an `additional_bindings` field themselves (that is, - * the nesting may only be one level deep). - */ - additionalBindings: HttpRule[]; -} -/** - * # gRPC Transcoding - * - * gRPC Transcoding is a feature for mapping between a gRPC method and one or - * more HTTP REST endpoints. It allows developers to build a single API service - * that supports both gRPC APIs and REST APIs. Many systems, including [Google - * APIs](https://github.com/googleapis/googleapis), - * [Cloud Endpoints](https://cloud.google.com/endpoints), [gRPC - * Gateway](https://github.com/grpc-ecosystem/grpc-gateway), - * and [Envoy](https://github.com/envoyproxy/envoy) proxy support this feature - * and use it for large scale production services. - * - * `HttpRule` defines the schema of the gRPC/REST mapping. The mapping specifies - * how different portions of the gRPC request message are mapped to the URL - * path, URL query parameters, and HTTP request body. It also controls how the - * gRPC response message is mapped to the HTTP response body. `HttpRule` is - * typically specified as an `google.api.http` annotation on the gRPC method. - * - * Each mapping specifies a URL path template and an HTTP method. The path - * template may refer to one or more fields in the gRPC request message, as long - * as each field is a non-repeated field with a primitive (non-message) type. - * The path template controls how fields of the request message are mapped to - * the URL path. - * - * Example: - * - * service Messaging { - * rpc GetMessage(GetMessageRequest) returns (Message) { - * option (google.api.http) = { - * get: "/v1/{name=messages/*}" - * }; - * } - * } - * message GetMessageRequest { - * string name = 1; // Mapped to URL path. - * } - * message Message { - * string text = 1; // The resource content. - * } - * - * This enables an HTTP REST to gRPC mapping as below: - * - * HTTP | gRPC - * -----|----- - * `GET /v1/messages/123456` | `GetMessage(name: "messages/123456")` - * - * Any fields in the request message which are not bound by the path template - * automatically become HTTP query parameters if there is no HTTP request body. - * For example: - * - * service Messaging { - * rpc GetMessage(GetMessageRequest) returns (Message) { - * option (google.api.http) = { - * get:"/v1/messages/{message_id}" - * }; - * } - * } - * message GetMessageRequest { - * message SubMessage { - * string subfield = 1; - * } - * string message_id = 1; // Mapped to URL path. - * int64 revision = 2; // Mapped to URL query parameter `revision`. - * SubMessage sub = 3; // Mapped to URL query parameter `sub.subfield`. - * } - * - * This enables a HTTP JSON to RPC mapping as below: - * - * HTTP | gRPC - * -----|----- - * `GET /v1/messages/123456?revision=2&sub.subfield=foo` | - * `GetMessage(message_id: "123456" revision: 2 sub: SubMessage(subfield: - * "foo"))` - * - * Note that fields which are mapped to URL query parameters must have a - * primitive type or a repeated primitive type or a non-repeated message type. - * In the case of a repeated type, the parameter can be repeated in the URL - * as `...?param=A¶m=B`. In the case of a message type, each field of the - * message is mapped to a separate parameter, such as - * `...?foo.a=A&foo.b=B&foo.c=C`. - * - * For HTTP methods that allow a request body, the `body` field - * specifies the mapping. Consider a REST update method on the - * message resource collection: - * - * service Messaging { - * rpc UpdateMessage(UpdateMessageRequest) returns (Message) { - * option (google.api.http) = { - * patch: "/v1/messages/{message_id}" - * body: "message" - * }; - * } - * } - * message UpdateMessageRequest { - * string message_id = 1; // mapped to the URL - * Message message = 2; // mapped to the body - * } - * - * The following HTTP JSON to RPC mapping is enabled, where the - * representation of the JSON in the request body is determined by - * protos JSON encoding: - * - * HTTP | gRPC - * -----|----- - * `PATCH /v1/messages/123456 { "text": "Hi!" }` | `UpdateMessage(message_id: - * "123456" message { text: "Hi!" })` - * - * The special name `*` can be used in the body mapping to define that - * every field not bound by the path template should be mapped to the - * request body. This enables the following alternative definition of - * the update method: - * - * service Messaging { - * rpc UpdateMessage(Message) returns (Message) { - * option (google.api.http) = { - * patch: "/v1/messages/{message_id}" - * body: "*" - * }; - * } - * } - * message Message { - * string message_id = 1; - * string text = 2; - * } - * - * - * The following HTTP JSON to RPC mapping is enabled: - * - * HTTP | gRPC - * -----|----- - * `PATCH /v1/messages/123456 { "text": "Hi!" }` | `UpdateMessage(message_id: - * "123456" text: "Hi!")` - * - * Note that when using `*` in the body mapping, it is not possible to - * have HTTP parameters, as all fields not bound by the path end in - * the body. This makes this option more rarely used in practice when - * defining REST APIs. The common usage of `*` is in custom methods - * which don't use the URL at all for transferring data. - * - * It is possible to define multiple HTTP methods for one RPC by using - * the `additional_bindings` option. Example: - * - * service Messaging { - * rpc GetMessage(GetMessageRequest) returns (Message) { - * option (google.api.http) = { - * get: "/v1/messages/{message_id}" - * additional_bindings { - * get: "/v1/users/{user_id}/messages/{message_id}" - * } - * }; - * } - * } - * message GetMessageRequest { - * string message_id = 1; - * string user_id = 2; - * } - * - * This enables the following two alternative HTTP JSON to RPC mappings: - * - * HTTP | gRPC - * -----|----- - * `GET /v1/messages/123456` | `GetMessage(message_id: "123456")` - * `GET /v1/users/me/messages/123456` | `GetMessage(user_id: "me" message_id: - * "123456")` - * - * ## Rules for HTTP mapping - * - * 1. Leaf request fields (recursive expansion nested messages in the request - * message) are classified into three categories: - * - Fields referred by the path template. They are passed via the URL path. - * - Fields referred by the [HttpRule.body][google.api.HttpRule.body]. They are passed via the HTTP - * request body. - * - All other fields are passed via the URL query parameters, and the - * parameter name is the field path in the request message. A repeated - * field can be represented as multiple query parameters under the same - * name. - * 2. If [HttpRule.body][google.api.HttpRule.body] is "*", there is no URL query parameter, all fields - * are passed via URL path and HTTP request body. - * 3. If [HttpRule.body][google.api.HttpRule.body] is omitted, there is no HTTP request body, all - * fields are passed via URL path and URL query parameters. - * - * ### Path template syntax - * - * Template = "/" Segments [ Verb ] ; - * Segments = Segment { "/" Segment } ; - * Segment = "*" | "**" | LITERAL | Variable ; - * Variable = "{" FieldPath [ "=" Segments ] "}" ; - * FieldPath = IDENT { "." IDENT } ; - * Verb = ":" LITERAL ; - * - * The syntax `*` matches a single URL path segment. The syntax `**` matches - * zero or more URL path segments, which must be the last part of the URL path - * except the `Verb`. - * - * The syntax `Variable` matches part of the URL path as specified by its - * template. A variable template must not contain other variables. If a variable - * matches a single path segment, its template may be omitted, e.g. `{var}` - * is equivalent to `{var=*}`. - * - * The syntax `LITERAL` matches literal text in the URL path. If the `LITERAL` - * contains any reserved character, such characters should be percent-encoded - * before the matching. - * - * If a variable contains exactly one path segment, such as `"{var}"` or - * `"{var=*}"`, when such a variable is expanded into a URL path on the client - * side, all characters except `[-_.~0-9a-zA-Z]` are percent-encoded. The - * server side does the reverse decoding. Such variables show up in the - * [Discovery - * Document](https://developers.google.com/discovery/v1/reference/apis) as - * `{var}`. - * - * If a variable contains multiple path segments, such as `"{var=foo/*}"` - * or `"{var=**}"`, when such a variable is expanded into a URL path on the - * client side, all characters except `[-_.~/0-9a-zA-Z]` are percent-encoded. - * The server side does the reverse decoding, except "%2F" and "%2f" are left - * unchanged. Such variables show up in the - * [Discovery - * Document](https://developers.google.com/discovery/v1/reference/apis) as - * `{+var}`. - * - * ## Using gRPC API Service Configuration - * - * gRPC API Service Configuration (service config) is a configuration language - * for configuring a gRPC service to become a user-facing product. The - * service config is simply the YAML representation of the `google.api.Service` - * proto message. - * - * As an alternative to annotating your proto file, you can configure gRPC - * transcoding in your service config YAML files. You do this by specifying a - * `HttpRule` that maps the gRPC method to a REST endpoint, achieving the same - * effect as the proto annotation. This can be particularly useful if you - * have a proto that is reused in multiple services. Note that any transcoding - * specified in the service config will override any matching transcoding - * configuration in the proto. - * - * Example: - * - * http: - * rules: - * # Selects a gRPC method and applies HttpRule to it. - * - selector: example.v1.Messaging.GetMessage - * get: /v1/messages/{message_id}/{sub.subfield} - * - * ## Special notes - * - * When gRPC Transcoding is used to map a gRPC to JSON REST endpoints, the - * proto to JSON conversion must follow the [proto3 - * specification](https://developers.google.com/protocol-buffers/docs/proto3#json). - * - * While the single segment variable follows the semantics of - * [RFC 6570](https://tools.ietf.org/html/rfc6570) Section 3.2.2 Simple String - * Expansion, the multi segment variable **does not** follow RFC 6570 Section - * 3.2.3 Reserved Expansion. The reason is that the Reserved Expansion - * does not expand special characters like `?` and `#`, which would lead - * to invalid URLs. As the result, gRPC Transcoding uses a custom encoding - * for multi segment variables. - * - * The path variables **must not** refer to any repeated or mapped field, - * because client libraries are not capable of handling such variable expansion. - * - * The path variables **must not** capture the leading "/" character. The reason - * is that the most common use case "{var}" does not capture the leading "/" - * character. For consistency, all path variables must share the same behavior. - * - * Repeated message fields must not be mapped to URL query parameters, because - * no client library can support such complicated mapping. - * - * If an API needs to use a JSON array for request or response body, it can map - * the request or response body to a repeated field. However, some gRPC - * Transcoding implementations may not support this feature. - */ -export interface HttpRuleSDKType { - selector: string; - get?: string; - put?: string; - post?: string; - delete?: string; - patch?: string; - custom?: CustomHttpPatternSDKType; - body: string; - response_body: string; - additional_bindings: HttpRuleSDKType[]; -} -/** A custom pattern is used for defining custom HTTP verb. */ -export interface CustomHttpPattern { - /** The name of this custom HTTP verb. */ - kind: string; - /** The path matched by this custom verb. */ - path: string; -} -/** A custom pattern is used for defining custom HTTP verb. */ -export interface CustomHttpPatternSDKType { - kind: string; - path: string; -} -function createBaseHttp(): Http { - return { - rules: [], - fullyDecodeReservedExpansion: false - }; -} -export const Http = { - encode(message: Http, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - for (const v of message.rules) { - HttpRule.encode(v!, writer.uint32(10).fork()).ldelim(); - } - if (message.fullyDecodeReservedExpansion === true) { - writer.uint32(16).bool(message.fullyDecodeReservedExpansion); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): Http { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseHttp(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.rules.push(HttpRule.decode(reader, reader.uint32())); - break; - case 2: - message.fullyDecodeReservedExpansion = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): Http { - const message = createBaseHttp(); - message.rules = object.rules?.map(e => HttpRule.fromPartial(e)) || []; - message.fullyDecodeReservedExpansion = object.fullyDecodeReservedExpansion ?? false; - return message; - } -}; -function createBaseHttpRule(): HttpRule { - return { - selector: "", - get: undefined, - put: undefined, - post: undefined, - delete: undefined, - patch: undefined, - custom: undefined, - body: "", - responseBody: "", - additionalBindings: [] - }; -} -export const HttpRule = { - encode(message: HttpRule, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.selector !== "") { - writer.uint32(10).string(message.selector); - } - if (message.get !== undefined) { - writer.uint32(18).string(message.get); - } - if (message.put !== undefined) { - writer.uint32(26).string(message.put); - } - if (message.post !== undefined) { - writer.uint32(34).string(message.post); - } - if (message.delete !== undefined) { - writer.uint32(42).string(message.delete); - } - if (message.patch !== undefined) { - writer.uint32(50).string(message.patch); - } - if (message.custom !== undefined) { - CustomHttpPattern.encode(message.custom, writer.uint32(66).fork()).ldelim(); - } - if (message.body !== "") { - writer.uint32(58).string(message.body); - } - if (message.responseBody !== "") { - writer.uint32(98).string(message.responseBody); - } - for (const v of message.additionalBindings) { - HttpRule.encode(v!, writer.uint32(90).fork()).ldelim(); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): HttpRule { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseHttpRule(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.selector = reader.string(); - break; - case 2: - message.get = reader.string(); - break; - case 3: - message.put = reader.string(); - break; - case 4: - message.post = reader.string(); - break; - case 5: - message.delete = reader.string(); - break; - case 6: - message.patch = reader.string(); - break; - case 8: - message.custom = CustomHttpPattern.decode(reader, reader.uint32()); - break; - case 7: - message.body = reader.string(); - break; - case 12: - message.responseBody = reader.string(); - break; - case 11: - message.additionalBindings.push(HttpRule.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): HttpRule { - const message = createBaseHttpRule(); - message.selector = object.selector ?? ""; - message.get = object.get ?? undefined; - message.put = object.put ?? undefined; - message.post = object.post ?? undefined; - message.delete = object.delete ?? undefined; - message.patch = object.patch ?? undefined; - message.custom = object.custom !== undefined && object.custom !== null ? CustomHttpPattern.fromPartial(object.custom) : undefined; - message.body = object.body ?? ""; - message.responseBody = object.responseBody ?? ""; - message.additionalBindings = object.additionalBindings?.map(e => HttpRule.fromPartial(e)) || []; - return message; - } -}; -function createBaseCustomHttpPattern(): CustomHttpPattern { - return { - kind: "", - path: "" - }; -} -export const CustomHttpPattern = { - encode(message: CustomHttpPattern, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.kind !== "") { - writer.uint32(10).string(message.kind); - } - if (message.path !== "") { - writer.uint32(18).string(message.path); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): CustomHttpPattern { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseCustomHttpPattern(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.kind = reader.string(); - break; - case 2: - message.path = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): CustomHttpPattern { - const message = createBaseCustomHttpPattern(); - message.kind = object.kind ?? ""; - message.path = object.path ?? ""; - return message; - } -}; \ No newline at end of file diff --git a/packages/proto/src/codegen/google/bundle.ts b/packages/proto/src/codegen/google/bundle.ts index a1b510de..3cc3fde6 100644 --- a/packages/proto/src/codegen/google/bundle.ts +++ b/packages/proto/src/codegen/google/bundle.ts @@ -1,20 +1,14 @@ -import * as _101 from "./api/annotations"; -import * as _102 from "./api/http"; -import * as _103 from "./protobuf/any"; -import * as _104 from "./protobuf/descriptor"; -import * as _105 from "./protobuf/duration"; -import * as _106 from "./protobuf/empty"; -import * as _107 from "./protobuf/timestamp"; +import * as _51 from "./protobuf/any"; +import * as _52 from "./protobuf/descriptor"; +import * as _53 from "./protobuf/duration"; +import * as _54 from "./protobuf/empty"; +import * as _55 from "./protobuf/timestamp"; export namespace google { - export const api = { - ..._101, - ..._102 - }; export const protobuf = { - ..._103, - ..._104, - ..._105, - ..._106, - ..._107 + ..._51, + ..._52, + ..._53, + ..._54, + ..._55 }; } \ No newline at end of file diff --git a/packages/proto/src/codegen/ibc/applications/transfer/v1/query.rpc.Query.ts b/packages/proto/src/codegen/ibc/applications/transfer/v1/query.rpc.Query.ts new file mode 100644 index 00000000..87dd45ca --- /dev/null +++ b/packages/proto/src/codegen/ibc/applications/transfer/v1/query.rpc.Query.ts @@ -0,0 +1,54 @@ +import { Rpc } from "../../../../helpers"; +import * as _m0 from "protobufjs/minimal"; +import { QueryClient, createProtobufRpcClient } from "@cosmjs/stargate"; +import { QueryDenomTraceRequest, QueryDenomTraceResponse, QueryDenomTracesRequest, QueryDenomTracesResponse, QueryParamsRequest, QueryParamsResponse } from "./query"; +/** Query provides defines the gRPC querier service. */ +export interface Query { + /** DenomTrace queries a denomination trace information. */ + denomTrace(request: QueryDenomTraceRequest): Promise; + /** DenomTraces queries all denomination traces. */ + denomTraces(request?: QueryDenomTracesRequest): Promise; + /** Params queries all parameters of the ibc-transfer module. */ + params(request?: QueryParamsRequest): Promise; +} +export class QueryClientImpl implements Query { + private readonly rpc: Rpc; + constructor(rpc: Rpc) { + this.rpc = rpc; + this.denomTrace = this.denomTrace.bind(this); + this.denomTraces = this.denomTraces.bind(this); + this.params = this.params.bind(this); + } + denomTrace(request: QueryDenomTraceRequest): Promise { + const data = QueryDenomTraceRequest.encode(request).finish(); + const promise = this.rpc.request("ibc.applications.transfer.v1.Query", "DenomTrace", data); + return promise.then(data => QueryDenomTraceResponse.decode(new _m0.Reader(data))); + } + denomTraces(request: QueryDenomTracesRequest = { + pagination: undefined + }): Promise { + const data = QueryDenomTracesRequest.encode(request).finish(); + const promise = this.rpc.request("ibc.applications.transfer.v1.Query", "DenomTraces", data); + return promise.then(data => QueryDenomTracesResponse.decode(new _m0.Reader(data))); + } + params(request: QueryParamsRequest = {}): Promise { + const data = QueryParamsRequest.encode(request).finish(); + const promise = this.rpc.request("ibc.applications.transfer.v1.Query", "Params", data); + return promise.then(data => QueryParamsResponse.decode(new _m0.Reader(data))); + } +} +export const createRpcQueryExtension = (base: QueryClient) => { + const rpc = createProtobufRpcClient(base); + const queryService = new QueryClientImpl(rpc); + return { + denomTrace(request: QueryDenomTraceRequest): Promise { + return queryService.denomTrace(request); + }, + denomTraces(request?: QueryDenomTracesRequest): Promise { + return queryService.denomTraces(request); + }, + params(request?: QueryParamsRequest): Promise { + return queryService.params(request); + } + }; +}; \ No newline at end of file diff --git a/packages/proto/src/codegen/ibc/applications/transfer/v1/tx.amino.ts b/packages/proto/src/codegen/ibc/applications/transfer/v1/tx.amino.ts index 840f77e5..a29b5073 100644 --- a/packages/proto/src/codegen/ibc/applications/transfer/v1/tx.amino.ts +++ b/packages/proto/src/codegen/ibc/applications/transfer/v1/tx.amino.ts @@ -1,3 +1,4 @@ +//@ts-nocheck import { AminoMsg } from "@cosmjs/amino"; import { AminoHeight, Long, omitDefault } from "../../../../helpers"; import { MsgTransfer } from "./tx"; diff --git a/packages/proto/src/codegen/ibc/applications/transfer/v1/tx.registry.ts b/packages/proto/src/codegen/ibc/applications/transfer/v1/tx.registry.ts index 6726e57d..dae96a3a 100644 --- a/packages/proto/src/codegen/ibc/applications/transfer/v1/tx.registry.ts +++ b/packages/proto/src/codegen/ibc/applications/transfer/v1/tx.registry.ts @@ -1,3 +1,4 @@ +//@ts-nocheck import { GeneratedType, Registry } from "@cosmjs/proto-signing"; import { MsgTransfer } from "./tx"; export const registry: ReadonlyArray<[string, GeneratedType]> = [["/ibc.applications.transfer.v1.MsgTransfer", MsgTransfer]]; diff --git a/packages/proto/src/codegen/ibc/applications/transfer/v1/tx.rpc.msg.ts b/packages/proto/src/codegen/ibc/applications/transfer/v1/tx.rpc.msg.ts new file mode 100644 index 00000000..4a3f7c4c --- /dev/null +++ b/packages/proto/src/codegen/ibc/applications/transfer/v1/tx.rpc.msg.ts @@ -0,0 +1,20 @@ +import { Rpc } from "../../../../helpers"; +import * as _m0 from "protobufjs/minimal"; +import { MsgTransfer, MsgTransferResponse } from "./tx"; +/** Msg defines the ibc/transfer Msg service. */ +export interface Msg { + /** Transfer defines a rpc handler method for MsgTransfer. */ + transfer(request: MsgTransfer): Promise; +} +export class MsgClientImpl implements Msg { + private readonly rpc: Rpc; + constructor(rpc: Rpc) { + this.rpc = rpc; + this.transfer = this.transfer.bind(this); + } + transfer(request: MsgTransfer): Promise { + const data = MsgTransfer.encode(request).finish(); + const promise = this.rpc.request("ibc.applications.transfer.v1.Msg", "Transfer", data); + return promise.then(data => MsgTransferResponse.decode(new _m0.Reader(data))); + } +} \ No newline at end of file diff --git a/packages/proto/src/codegen/ibc/bundle.ts b/packages/proto/src/codegen/ibc/bundle.ts index 88548453..74c7e004 100644 --- a/packages/proto/src/codegen/ibc/bundle.ts +++ b/packages/proto/src/codegen/ibc/bundle.ts @@ -1,128 +1,136 @@ -import * as _108 from "./applications/transfer/v1/genesis"; -import * as _109 from "./applications/transfer/v1/query"; -import * as _110 from "./applications/transfer/v1/transfer"; -import * as _111 from "./applications/transfer/v1/tx"; -import * as _112 from "./applications/transfer/v2/packet"; -import * as _113 from "./core/channel/v1/channel"; -import * as _114 from "./core/channel/v1/genesis"; -import * as _115 from "./core/channel/v1/query"; -import * as _116 from "./core/channel/v1/tx"; -import * as _117 from "./core/client/v1/client"; -import * as _118 from "./core/client/v1/genesis"; -import * as _119 from "./core/client/v1/query"; -import * as _120 from "./core/client/v1/tx"; -import * as _121 from "./core/commitment/v1/commitment"; -import * as _122 from "./core/connection/v1/connection"; -import * as _123 from "./core/connection/v1/genesis"; -import * as _124 from "./core/connection/v1/query"; -import * as _125 from "./core/connection/v1/tx"; -import * as _126 from "./core/port/v1/query"; -import * as _127 from "./core/types/v1/genesis"; -import * as _128 from "./lightclients/localhost/v1/localhost"; -import * as _129 from "./lightclients/solomachine/v1/solomachine"; -import * as _130 from "./lightclients/solomachine/v2/solomachine"; -import * as _131 from "./lightclients/tendermint/v1/tendermint"; -import * as _228 from "./applications/transfer/v1/tx.amino"; -import * as _229 from "./core/channel/v1/tx.amino"; -import * as _230 from "./core/client/v1/tx.amino"; -import * as _231 from "./core/connection/v1/tx.amino"; -import * as _232 from "./applications/transfer/v1/tx.registry"; -import * as _233 from "./core/channel/v1/tx.registry"; -import * as _234 from "./core/client/v1/tx.registry"; -import * as _235 from "./core/connection/v1/tx.registry"; -import * as _236 from "./applications/transfer/v1/query.lcd"; -import * as _237 from "./core/channel/v1/query.lcd"; -import * as _238 from "./core/client/v1/query.lcd"; -import * as _239 from "./core/connection/v1/query.lcd"; -import * as _253 from "./lcd"; +import * as _56 from "./applications/transfer/v1/genesis"; +import * as _57 from "./applications/transfer/v1/query"; +import * as _58 from "./applications/transfer/v1/transfer"; +import * as _59 from "./applications/transfer/v1/tx"; +import * as _60 from "./applications/transfer/v2/packet"; +import * as _61 from "./core/channel/v1/channel"; +import * as _62 from "./core/channel/v1/genesis"; +import * as _63 from "./core/channel/v1/query"; +import * as _64 from "./core/channel/v1/tx"; +import * as _65 from "./core/client/v1/client"; +import * as _66 from "./core/client/v1/genesis"; +import * as _67 from "./core/client/v1/query"; +import * as _68 from "./core/client/v1/tx"; +import * as _69 from "./core/commitment/v1/commitment"; +import * as _70 from "./core/connection/v1/connection"; +import * as _71 from "./core/connection/v1/genesis"; +import * as _72 from "./core/connection/v1/query"; +import * as _73 from "./core/connection/v1/tx"; +import * as _74 from "./lightclients/localhost/v1/localhost"; +import * as _75 from "./lightclients/solomachine/v1/solomachine"; +import * as _76 from "./lightclients/solomachine/v2/solomachine"; +import * as _77 from "./lightclients/tendermint/v1/tendermint"; +import * as _165 from "./applications/transfer/v1/tx.amino"; +import * as _166 from "./core/channel/v1/tx.amino"; +import * as _167 from "./core/client/v1/tx.amino"; +import * as _168 from "./core/connection/v1/tx.amino"; +import * as _169 from "./applications/transfer/v1/tx.registry"; +import * as _170 from "./core/channel/v1/tx.registry"; +import * as _171 from "./core/client/v1/tx.registry"; +import * as _172 from "./core/connection/v1/tx.registry"; +import * as _173 from "./applications/transfer/v1/query.lcd"; +import * as _174 from "./core/channel/v1/query.lcd"; +import * as _175 from "./core/client/v1/query.lcd"; +import * as _176 from "./core/connection/v1/query.lcd"; +import * as _177 from "./applications/transfer/v1/query.rpc.Query"; +import * as _178 from "./core/channel/v1/query.rpc.Query"; +import * as _179 from "./core/client/v1/query.rpc.Query"; +import * as _180 from "./core/connection/v1/query.rpc.Query"; +import * as _181 from "./applications/transfer/v1/tx.rpc.msg"; +import * as _182 from "./core/channel/v1/tx.rpc.msg"; +import * as _183 from "./core/client/v1/tx.rpc.msg"; +import * as _184 from "./core/connection/v1/tx.rpc.msg"; +import * as _210 from "./lcd"; +import * as _211 from "./rpc.query"; +import * as _212 from "./rpc.tx"; export namespace ibc { export namespace applications { export namespace transfer { export const v1 = { - ..._108, - ..._109, - ..._110, - ..._111, - ..._228, - ..._232, - ..._236 + ..._56, + ..._57, + ..._58, + ..._59, + ..._165, + ..._169, + ..._173, + ..._177, + ..._181 }; export const v2 = { - ..._112 + ..._60 }; } } export namespace core { export namespace channel { export const v1 = { - ..._113, - ..._114, - ..._115, - ..._116, - ..._229, - ..._233, - ..._237 + ..._61, + ..._62, + ..._63, + ..._64, + ..._166, + ..._170, + ..._174, + ..._178, + ..._182 }; } export namespace client { export const v1 = { - ..._117, - ..._118, - ..._119, - ..._120, - ..._230, - ..._234, - ..._238 + ..._65, + ..._66, + ..._67, + ..._68, + ..._167, + ..._171, + ..._175, + ..._179, + ..._183 }; } export namespace commitment { export const v1 = { - ..._121 + ..._69 }; } export namespace connection { export const v1 = { - ..._122, - ..._123, - ..._124, - ..._125, - ..._231, - ..._235, - ..._239 - }; - } - export namespace port { - export const v1 = { - ..._126 - }; - } - export namespace types { - export const v1 = { - ..._127 + ..._70, + ..._71, + ..._72, + ..._73, + ..._168, + ..._172, + ..._176, + ..._180, + ..._184 }; } } export namespace lightclients { export namespace localhost { export const v1 = { - ..._128 + ..._74 }; } export namespace solomachine { export const v1 = { - ..._129 + ..._75 }; export const v2 = { - ..._130 + ..._76 }; } export namespace tendermint { export const v1 = { - ..._131 + ..._77 }; } } export const ClientFactory = { - ..._253 + ..._210, + ..._211, + ..._212 }; } \ No newline at end of file diff --git a/packages/proto/src/codegen/ibc/core/channel/v1/query.rpc.Query.ts b/packages/proto/src/codegen/ibc/core/channel/v1/query.rpc.Query.ts new file mode 100644 index 00000000..8373554b --- /dev/null +++ b/packages/proto/src/codegen/ibc/core/channel/v1/query.rpc.Query.ts @@ -0,0 +1,188 @@ +import { Rpc } from "../../../../helpers"; +import * as _m0 from "protobufjs/minimal"; +import { QueryClient, createProtobufRpcClient } from "@cosmjs/stargate"; +import { QueryChannelRequest, QueryChannelResponse, QueryChannelsRequest, QueryChannelsResponse, QueryConnectionChannelsRequest, QueryConnectionChannelsResponse, QueryChannelClientStateRequest, QueryChannelClientStateResponse, QueryChannelConsensusStateRequest, QueryChannelConsensusStateResponse, QueryPacketCommitmentRequest, QueryPacketCommitmentResponse, QueryPacketCommitmentsRequest, QueryPacketCommitmentsResponse, QueryPacketReceiptRequest, QueryPacketReceiptResponse, QueryPacketAcknowledgementRequest, QueryPacketAcknowledgementResponse, QueryPacketAcknowledgementsRequest, QueryPacketAcknowledgementsResponse, QueryUnreceivedPacketsRequest, QueryUnreceivedPacketsResponse, QueryUnreceivedAcksRequest, QueryUnreceivedAcksResponse, QueryNextSequenceReceiveRequest, QueryNextSequenceReceiveResponse } from "./query"; +/** Query provides defines the gRPC querier service */ +export interface Query { + /** Channel queries an IBC Channel. */ + channel(request: QueryChannelRequest): Promise; + /** Channels queries all the IBC channels of a chain. */ + channels(request?: QueryChannelsRequest): Promise; + /** + * ConnectionChannels queries all the channels associated with a connection + * end. + */ + connectionChannels(request: QueryConnectionChannelsRequest): Promise; + /** + * ChannelClientState queries for the client state for the channel associated + * with the provided channel identifiers. + */ + channelClientState(request: QueryChannelClientStateRequest): Promise; + /** + * ChannelConsensusState queries for the consensus state for the channel + * associated with the provided channel identifiers. + */ + channelConsensusState(request: QueryChannelConsensusStateRequest): Promise; + /** PacketCommitment queries a stored packet commitment hash. */ + packetCommitment(request: QueryPacketCommitmentRequest): Promise; + /** + * PacketCommitments returns all the packet commitments hashes associated + * with a channel. + */ + packetCommitments(request: QueryPacketCommitmentsRequest): Promise; + /** + * PacketReceipt queries if a given packet sequence has been received on the + * queried chain + */ + packetReceipt(request: QueryPacketReceiptRequest): Promise; + /** PacketAcknowledgement queries a stored packet acknowledgement hash. */ + packetAcknowledgement(request: QueryPacketAcknowledgementRequest): Promise; + /** + * PacketAcknowledgements returns all the packet acknowledgements associated + * with a channel. + */ + packetAcknowledgements(request: QueryPacketAcknowledgementsRequest): Promise; + /** + * UnreceivedPackets returns all the unreceived IBC packets associated with a + * channel and sequences. + */ + unreceivedPackets(request: QueryUnreceivedPacketsRequest): Promise; + /** + * UnreceivedAcks returns all the unreceived IBC acknowledgements associated + * with a channel and sequences. + */ + unreceivedAcks(request: QueryUnreceivedAcksRequest): Promise; + /** NextSequenceReceive returns the next receive sequence for a given channel. */ + nextSequenceReceive(request: QueryNextSequenceReceiveRequest): Promise; +} +export class QueryClientImpl implements Query { + private readonly rpc: Rpc; + constructor(rpc: Rpc) { + this.rpc = rpc; + this.channel = this.channel.bind(this); + this.channels = this.channels.bind(this); + this.connectionChannels = this.connectionChannels.bind(this); + this.channelClientState = this.channelClientState.bind(this); + this.channelConsensusState = this.channelConsensusState.bind(this); + this.packetCommitment = this.packetCommitment.bind(this); + this.packetCommitments = this.packetCommitments.bind(this); + this.packetReceipt = this.packetReceipt.bind(this); + this.packetAcknowledgement = this.packetAcknowledgement.bind(this); + this.packetAcknowledgements = this.packetAcknowledgements.bind(this); + this.unreceivedPackets = this.unreceivedPackets.bind(this); + this.unreceivedAcks = this.unreceivedAcks.bind(this); + this.nextSequenceReceive = this.nextSequenceReceive.bind(this); + } + channel(request: QueryChannelRequest): Promise { + const data = QueryChannelRequest.encode(request).finish(); + const promise = this.rpc.request("ibc.core.channel.v1.Query", "Channel", data); + return promise.then(data => QueryChannelResponse.decode(new _m0.Reader(data))); + } + channels(request: QueryChannelsRequest = { + pagination: undefined + }): Promise { + const data = QueryChannelsRequest.encode(request).finish(); + const promise = this.rpc.request("ibc.core.channel.v1.Query", "Channels", data); + return promise.then(data => QueryChannelsResponse.decode(new _m0.Reader(data))); + } + connectionChannels(request: QueryConnectionChannelsRequest): Promise { + const data = QueryConnectionChannelsRequest.encode(request).finish(); + const promise = this.rpc.request("ibc.core.channel.v1.Query", "ConnectionChannels", data); + return promise.then(data => QueryConnectionChannelsResponse.decode(new _m0.Reader(data))); + } + channelClientState(request: QueryChannelClientStateRequest): Promise { + const data = QueryChannelClientStateRequest.encode(request).finish(); + const promise = this.rpc.request("ibc.core.channel.v1.Query", "ChannelClientState", data); + return promise.then(data => QueryChannelClientStateResponse.decode(new _m0.Reader(data))); + } + channelConsensusState(request: QueryChannelConsensusStateRequest): Promise { + const data = QueryChannelConsensusStateRequest.encode(request).finish(); + const promise = this.rpc.request("ibc.core.channel.v1.Query", "ChannelConsensusState", data); + return promise.then(data => QueryChannelConsensusStateResponse.decode(new _m0.Reader(data))); + } + packetCommitment(request: QueryPacketCommitmentRequest): Promise { + const data = QueryPacketCommitmentRequest.encode(request).finish(); + const promise = this.rpc.request("ibc.core.channel.v1.Query", "PacketCommitment", data); + return promise.then(data => QueryPacketCommitmentResponse.decode(new _m0.Reader(data))); + } + packetCommitments(request: QueryPacketCommitmentsRequest): Promise { + const data = QueryPacketCommitmentsRequest.encode(request).finish(); + const promise = this.rpc.request("ibc.core.channel.v1.Query", "PacketCommitments", data); + return promise.then(data => QueryPacketCommitmentsResponse.decode(new _m0.Reader(data))); + } + packetReceipt(request: QueryPacketReceiptRequest): Promise { + const data = QueryPacketReceiptRequest.encode(request).finish(); + const promise = this.rpc.request("ibc.core.channel.v1.Query", "PacketReceipt", data); + return promise.then(data => QueryPacketReceiptResponse.decode(new _m0.Reader(data))); + } + packetAcknowledgement(request: QueryPacketAcknowledgementRequest): Promise { + const data = QueryPacketAcknowledgementRequest.encode(request).finish(); + const promise = this.rpc.request("ibc.core.channel.v1.Query", "PacketAcknowledgement", data); + return promise.then(data => QueryPacketAcknowledgementResponse.decode(new _m0.Reader(data))); + } + packetAcknowledgements(request: QueryPacketAcknowledgementsRequest): Promise { + const data = QueryPacketAcknowledgementsRequest.encode(request).finish(); + const promise = this.rpc.request("ibc.core.channel.v1.Query", "PacketAcknowledgements", data); + return promise.then(data => QueryPacketAcknowledgementsResponse.decode(new _m0.Reader(data))); + } + unreceivedPackets(request: QueryUnreceivedPacketsRequest): Promise { + const data = QueryUnreceivedPacketsRequest.encode(request).finish(); + const promise = this.rpc.request("ibc.core.channel.v1.Query", "UnreceivedPackets", data); + return promise.then(data => QueryUnreceivedPacketsResponse.decode(new _m0.Reader(data))); + } + unreceivedAcks(request: QueryUnreceivedAcksRequest): Promise { + const data = QueryUnreceivedAcksRequest.encode(request).finish(); + const promise = this.rpc.request("ibc.core.channel.v1.Query", "UnreceivedAcks", data); + return promise.then(data => QueryUnreceivedAcksResponse.decode(new _m0.Reader(data))); + } + nextSequenceReceive(request: QueryNextSequenceReceiveRequest): Promise { + const data = QueryNextSequenceReceiveRequest.encode(request).finish(); + const promise = this.rpc.request("ibc.core.channel.v1.Query", "NextSequenceReceive", data); + return promise.then(data => QueryNextSequenceReceiveResponse.decode(new _m0.Reader(data))); + } +} +export const createRpcQueryExtension = (base: QueryClient) => { + const rpc = createProtobufRpcClient(base); + const queryService = new QueryClientImpl(rpc); + return { + channel(request: QueryChannelRequest): Promise { + return queryService.channel(request); + }, + channels(request?: QueryChannelsRequest): Promise { + return queryService.channels(request); + }, + connectionChannels(request: QueryConnectionChannelsRequest): Promise { + return queryService.connectionChannels(request); + }, + channelClientState(request: QueryChannelClientStateRequest): Promise { + return queryService.channelClientState(request); + }, + channelConsensusState(request: QueryChannelConsensusStateRequest): Promise { + return queryService.channelConsensusState(request); + }, + packetCommitment(request: QueryPacketCommitmentRequest): Promise { + return queryService.packetCommitment(request); + }, + packetCommitments(request: QueryPacketCommitmentsRequest): Promise { + return queryService.packetCommitments(request); + }, + packetReceipt(request: QueryPacketReceiptRequest): Promise { + return queryService.packetReceipt(request); + }, + packetAcknowledgement(request: QueryPacketAcknowledgementRequest): Promise { + return queryService.packetAcknowledgement(request); + }, + packetAcknowledgements(request: QueryPacketAcknowledgementsRequest): Promise { + return queryService.packetAcknowledgements(request); + }, + unreceivedPackets(request: QueryUnreceivedPacketsRequest): Promise { + return queryService.unreceivedPackets(request); + }, + unreceivedAcks(request: QueryUnreceivedAcksRequest): Promise { + return queryService.unreceivedAcks(request); + }, + nextSequenceReceive(request: QueryNextSequenceReceiveRequest): Promise { + return queryService.nextSequenceReceive(request); + } + }; +}; \ No newline at end of file diff --git a/packages/proto/src/codegen/ibc/core/channel/v1/tx.amino.ts b/packages/proto/src/codegen/ibc/core/channel/v1/tx.amino.ts index b123294c..c7527d29 100644 --- a/packages/proto/src/codegen/ibc/core/channel/v1/tx.amino.ts +++ b/packages/proto/src/codegen/ibc/core/channel/v1/tx.amino.ts @@ -1,3 +1,4 @@ +//@ts-nocheck import { stateFromJSON, orderFromJSON } from "./channel"; import { AminoMsg } from "@cosmjs/amino"; import { AminoHeight, omitDefault, Long } from "../../../../helpers"; diff --git a/packages/proto/src/codegen/ibc/core/channel/v1/tx.registry.ts b/packages/proto/src/codegen/ibc/core/channel/v1/tx.registry.ts index a71445bc..dbcbbecd 100644 --- a/packages/proto/src/codegen/ibc/core/channel/v1/tx.registry.ts +++ b/packages/proto/src/codegen/ibc/core/channel/v1/tx.registry.ts @@ -1,3 +1,4 @@ +//@ts-nocheck import { GeneratedType, Registry } from "@cosmjs/proto-signing"; import { MsgChannelOpenInit, MsgChannelOpenTry, MsgChannelOpenAck, MsgChannelOpenConfirm, MsgChannelCloseInit, MsgChannelCloseConfirm, MsgRecvPacket, MsgTimeout, MsgTimeoutOnClose, MsgAcknowledgement } from "./tx"; export const registry: ReadonlyArray<[string, GeneratedType]> = [["/ibc.core.channel.v1.MsgChannelOpenInit", MsgChannelOpenInit], ["/ibc.core.channel.v1.MsgChannelOpenTry", MsgChannelOpenTry], ["/ibc.core.channel.v1.MsgChannelOpenAck", MsgChannelOpenAck], ["/ibc.core.channel.v1.MsgChannelOpenConfirm", MsgChannelOpenConfirm], ["/ibc.core.channel.v1.MsgChannelCloseInit", MsgChannelCloseInit], ["/ibc.core.channel.v1.MsgChannelCloseConfirm", MsgChannelCloseConfirm], ["/ibc.core.channel.v1.MsgRecvPacket", MsgRecvPacket], ["/ibc.core.channel.v1.MsgTimeout", MsgTimeout], ["/ibc.core.channel.v1.MsgTimeoutOnClose", MsgTimeoutOnClose], ["/ibc.core.channel.v1.MsgAcknowledgement", MsgAcknowledgement]]; diff --git a/packages/proto/src/codegen/ibc/core/channel/v1/tx.rpc.msg.ts b/packages/proto/src/codegen/ibc/core/channel/v1/tx.rpc.msg.ts new file mode 100644 index 00000000..e7054327 --- /dev/null +++ b/packages/proto/src/codegen/ibc/core/channel/v1/tx.rpc.msg.ts @@ -0,0 +1,95 @@ +import { Rpc } from "../../../../helpers"; +import * as _m0 from "protobufjs/minimal"; +import { MsgChannelOpenInit, MsgChannelOpenInitResponse, MsgChannelOpenTry, MsgChannelOpenTryResponse, MsgChannelOpenAck, MsgChannelOpenAckResponse, MsgChannelOpenConfirm, MsgChannelOpenConfirmResponse, MsgChannelCloseInit, MsgChannelCloseInitResponse, MsgChannelCloseConfirm, MsgChannelCloseConfirmResponse, MsgRecvPacket, MsgRecvPacketResponse, MsgTimeout, MsgTimeoutResponse, MsgTimeoutOnClose, MsgTimeoutOnCloseResponse, MsgAcknowledgement, MsgAcknowledgementResponse } from "./tx"; +/** Msg defines the ibc/channel Msg service. */ +export interface Msg { + /** ChannelOpenInit defines a rpc handler method for MsgChannelOpenInit. */ + channelOpenInit(request: MsgChannelOpenInit): Promise; + /** ChannelOpenTry defines a rpc handler method for MsgChannelOpenTry. */ + channelOpenTry(request: MsgChannelOpenTry): Promise; + /** ChannelOpenAck defines a rpc handler method for MsgChannelOpenAck. */ + channelOpenAck(request: MsgChannelOpenAck): Promise; + /** ChannelOpenConfirm defines a rpc handler method for MsgChannelOpenConfirm. */ + channelOpenConfirm(request: MsgChannelOpenConfirm): Promise; + /** ChannelCloseInit defines a rpc handler method for MsgChannelCloseInit. */ + channelCloseInit(request: MsgChannelCloseInit): Promise; + /** + * ChannelCloseConfirm defines a rpc handler method for + * MsgChannelCloseConfirm. + */ + channelCloseConfirm(request: MsgChannelCloseConfirm): Promise; + /** RecvPacket defines a rpc handler method for MsgRecvPacket. */ + recvPacket(request: MsgRecvPacket): Promise; + /** Timeout defines a rpc handler method for MsgTimeout. */ + timeout(request: MsgTimeout): Promise; + /** TimeoutOnClose defines a rpc handler method for MsgTimeoutOnClose. */ + timeoutOnClose(request: MsgTimeoutOnClose): Promise; + /** Acknowledgement defines a rpc handler method for MsgAcknowledgement. */ + acknowledgement(request: MsgAcknowledgement): Promise; +} +export class MsgClientImpl implements Msg { + private readonly rpc: Rpc; + constructor(rpc: Rpc) { + this.rpc = rpc; + this.channelOpenInit = this.channelOpenInit.bind(this); + this.channelOpenTry = this.channelOpenTry.bind(this); + this.channelOpenAck = this.channelOpenAck.bind(this); + this.channelOpenConfirm = this.channelOpenConfirm.bind(this); + this.channelCloseInit = this.channelCloseInit.bind(this); + this.channelCloseConfirm = this.channelCloseConfirm.bind(this); + this.recvPacket = this.recvPacket.bind(this); + this.timeout = this.timeout.bind(this); + this.timeoutOnClose = this.timeoutOnClose.bind(this); + this.acknowledgement = this.acknowledgement.bind(this); + } + channelOpenInit(request: MsgChannelOpenInit): Promise { + const data = MsgChannelOpenInit.encode(request).finish(); + const promise = this.rpc.request("ibc.core.channel.v1.Msg", "ChannelOpenInit", data); + return promise.then(data => MsgChannelOpenInitResponse.decode(new _m0.Reader(data))); + } + channelOpenTry(request: MsgChannelOpenTry): Promise { + const data = MsgChannelOpenTry.encode(request).finish(); + const promise = this.rpc.request("ibc.core.channel.v1.Msg", "ChannelOpenTry", data); + return promise.then(data => MsgChannelOpenTryResponse.decode(new _m0.Reader(data))); + } + channelOpenAck(request: MsgChannelOpenAck): Promise { + const data = MsgChannelOpenAck.encode(request).finish(); + const promise = this.rpc.request("ibc.core.channel.v1.Msg", "ChannelOpenAck", data); + return promise.then(data => MsgChannelOpenAckResponse.decode(new _m0.Reader(data))); + } + channelOpenConfirm(request: MsgChannelOpenConfirm): Promise { + const data = MsgChannelOpenConfirm.encode(request).finish(); + const promise = this.rpc.request("ibc.core.channel.v1.Msg", "ChannelOpenConfirm", data); + return promise.then(data => MsgChannelOpenConfirmResponse.decode(new _m0.Reader(data))); + } + channelCloseInit(request: MsgChannelCloseInit): Promise { + const data = MsgChannelCloseInit.encode(request).finish(); + const promise = this.rpc.request("ibc.core.channel.v1.Msg", "ChannelCloseInit", data); + return promise.then(data => MsgChannelCloseInitResponse.decode(new _m0.Reader(data))); + } + channelCloseConfirm(request: MsgChannelCloseConfirm): Promise { + const data = MsgChannelCloseConfirm.encode(request).finish(); + const promise = this.rpc.request("ibc.core.channel.v1.Msg", "ChannelCloseConfirm", data); + return promise.then(data => MsgChannelCloseConfirmResponse.decode(new _m0.Reader(data))); + } + recvPacket(request: MsgRecvPacket): Promise { + const data = MsgRecvPacket.encode(request).finish(); + const promise = this.rpc.request("ibc.core.channel.v1.Msg", "RecvPacket", data); + return promise.then(data => MsgRecvPacketResponse.decode(new _m0.Reader(data))); + } + timeout(request: MsgTimeout): Promise { + const data = MsgTimeout.encode(request).finish(); + const promise = this.rpc.request("ibc.core.channel.v1.Msg", "Timeout", data); + return promise.then(data => MsgTimeoutResponse.decode(new _m0.Reader(data))); + } + timeoutOnClose(request: MsgTimeoutOnClose): Promise { + const data = MsgTimeoutOnClose.encode(request).finish(); + const promise = this.rpc.request("ibc.core.channel.v1.Msg", "TimeoutOnClose", data); + return promise.then(data => MsgTimeoutOnCloseResponse.decode(new _m0.Reader(data))); + } + acknowledgement(request: MsgAcknowledgement): Promise { + const data = MsgAcknowledgement.encode(request).finish(); + const promise = this.rpc.request("ibc.core.channel.v1.Msg", "Acknowledgement", data); + return promise.then(data => MsgAcknowledgementResponse.decode(new _m0.Reader(data))); + } +} \ No newline at end of file diff --git a/packages/proto/src/codegen/ibc/core/client/v1/query.rpc.Query.ts b/packages/proto/src/codegen/ibc/core/client/v1/query.rpc.Query.ts new file mode 100644 index 00000000..fa01df7b --- /dev/null +++ b/packages/proto/src/codegen/ibc/core/client/v1/query.rpc.Query.ts @@ -0,0 +1,115 @@ +import { Rpc } from "../../../../helpers"; +import * as _m0 from "protobufjs/minimal"; +import { QueryClient, createProtobufRpcClient } from "@cosmjs/stargate"; +import { QueryClientStateRequest, QueryClientStateResponse, QueryClientStatesRequest, QueryClientStatesResponse, QueryConsensusStateRequest, QueryConsensusStateResponse, QueryConsensusStatesRequest, QueryConsensusStatesResponse, QueryClientStatusRequest, QueryClientStatusResponse, QueryClientParamsRequest, QueryClientParamsResponse, QueryUpgradedClientStateRequest, QueryUpgradedClientStateResponse, QueryUpgradedConsensusStateRequest, QueryUpgradedConsensusStateResponse } from "./query"; +/** Query provides defines the gRPC querier service */ +export interface Query { + /** ClientState queries an IBC light client. */ + clientState(request: QueryClientStateRequest): Promise; + /** ClientStates queries all the IBC light clients of a chain. */ + clientStates(request?: QueryClientStatesRequest): Promise; + /** + * ConsensusState queries a consensus state associated with a client state at + * a given height. + */ + consensusState(request: QueryConsensusStateRequest): Promise; + /** + * ConsensusStates queries all the consensus state associated with a given + * client. + */ + consensusStates(request: QueryConsensusStatesRequest): Promise; + /** Status queries the status of an IBC client. */ + clientStatus(request: QueryClientStatusRequest): Promise; + /** ClientParams queries all parameters of the ibc client. */ + clientParams(request?: QueryClientParamsRequest): Promise; + /** UpgradedClientState queries an Upgraded IBC light client. */ + upgradedClientState(request?: QueryUpgradedClientStateRequest): Promise; + /** UpgradedConsensusState queries an Upgraded IBC consensus state. */ + upgradedConsensusState(request?: QueryUpgradedConsensusStateRequest): Promise; +} +export class QueryClientImpl implements Query { + private readonly rpc: Rpc; + constructor(rpc: Rpc) { + this.rpc = rpc; + this.clientState = this.clientState.bind(this); + this.clientStates = this.clientStates.bind(this); + this.consensusState = this.consensusState.bind(this); + this.consensusStates = this.consensusStates.bind(this); + this.clientStatus = this.clientStatus.bind(this); + this.clientParams = this.clientParams.bind(this); + this.upgradedClientState = this.upgradedClientState.bind(this); + this.upgradedConsensusState = this.upgradedConsensusState.bind(this); + } + clientState(request: QueryClientStateRequest): Promise { + const data = QueryClientStateRequest.encode(request).finish(); + const promise = this.rpc.request("ibc.core.client.v1.Query", "ClientState", data); + return promise.then(data => QueryClientStateResponse.decode(new _m0.Reader(data))); + } + clientStates(request: QueryClientStatesRequest = { + pagination: undefined + }): Promise { + const data = QueryClientStatesRequest.encode(request).finish(); + const promise = this.rpc.request("ibc.core.client.v1.Query", "ClientStates", data); + return promise.then(data => QueryClientStatesResponse.decode(new _m0.Reader(data))); + } + consensusState(request: QueryConsensusStateRequest): Promise { + const data = QueryConsensusStateRequest.encode(request).finish(); + const promise = this.rpc.request("ibc.core.client.v1.Query", "ConsensusState", data); + return promise.then(data => QueryConsensusStateResponse.decode(new _m0.Reader(data))); + } + consensusStates(request: QueryConsensusStatesRequest): Promise { + const data = QueryConsensusStatesRequest.encode(request).finish(); + const promise = this.rpc.request("ibc.core.client.v1.Query", "ConsensusStates", data); + return promise.then(data => QueryConsensusStatesResponse.decode(new _m0.Reader(data))); + } + clientStatus(request: QueryClientStatusRequest): Promise { + const data = QueryClientStatusRequest.encode(request).finish(); + const promise = this.rpc.request("ibc.core.client.v1.Query", "ClientStatus", data); + return promise.then(data => QueryClientStatusResponse.decode(new _m0.Reader(data))); + } + clientParams(request: QueryClientParamsRequest = {}): Promise { + const data = QueryClientParamsRequest.encode(request).finish(); + const promise = this.rpc.request("ibc.core.client.v1.Query", "ClientParams", data); + return promise.then(data => QueryClientParamsResponse.decode(new _m0.Reader(data))); + } + upgradedClientState(request: QueryUpgradedClientStateRequest = {}): Promise { + const data = QueryUpgradedClientStateRequest.encode(request).finish(); + const promise = this.rpc.request("ibc.core.client.v1.Query", "UpgradedClientState", data); + return promise.then(data => QueryUpgradedClientStateResponse.decode(new _m0.Reader(data))); + } + upgradedConsensusState(request: QueryUpgradedConsensusStateRequest = {}): Promise { + const data = QueryUpgradedConsensusStateRequest.encode(request).finish(); + const promise = this.rpc.request("ibc.core.client.v1.Query", "UpgradedConsensusState", data); + return promise.then(data => QueryUpgradedConsensusStateResponse.decode(new _m0.Reader(data))); + } +} +export const createRpcQueryExtension = (base: QueryClient) => { + const rpc = createProtobufRpcClient(base); + const queryService = new QueryClientImpl(rpc); + return { + clientState(request: QueryClientStateRequest): Promise { + return queryService.clientState(request); + }, + clientStates(request?: QueryClientStatesRequest): Promise { + return queryService.clientStates(request); + }, + consensusState(request: QueryConsensusStateRequest): Promise { + return queryService.consensusState(request); + }, + consensusStates(request: QueryConsensusStatesRequest): Promise { + return queryService.consensusStates(request); + }, + clientStatus(request: QueryClientStatusRequest): Promise { + return queryService.clientStatus(request); + }, + clientParams(request?: QueryClientParamsRequest): Promise { + return queryService.clientParams(request); + }, + upgradedClientState(request?: QueryUpgradedClientStateRequest): Promise { + return queryService.upgradedClientState(request); + }, + upgradedConsensusState(request?: QueryUpgradedConsensusStateRequest): Promise { + return queryService.upgradedConsensusState(request); + } + }; +}; \ No newline at end of file diff --git a/packages/proto/src/codegen/ibc/core/client/v1/tx.amino.ts b/packages/proto/src/codegen/ibc/core/client/v1/tx.amino.ts index 453bf163..6fb7ab55 100644 --- a/packages/proto/src/codegen/ibc/core/client/v1/tx.amino.ts +++ b/packages/proto/src/codegen/ibc/core/client/v1/tx.amino.ts @@ -1,3 +1,4 @@ +//@ts-nocheck import { AminoMsg } from "@cosmjs/amino"; import { MsgCreateClient, MsgUpdateClient, MsgUpgradeClient, MsgSubmitMisbehaviour } from "./tx"; export interface MsgCreateClientAminoType extends AminoMsg { diff --git a/packages/proto/src/codegen/ibc/core/client/v1/tx.registry.ts b/packages/proto/src/codegen/ibc/core/client/v1/tx.registry.ts index a3582cd8..fe83153f 100644 --- a/packages/proto/src/codegen/ibc/core/client/v1/tx.registry.ts +++ b/packages/proto/src/codegen/ibc/core/client/v1/tx.registry.ts @@ -1,3 +1,4 @@ +//@ts-nocheck import { GeneratedType, Registry } from "@cosmjs/proto-signing"; import { MsgCreateClient, MsgUpdateClient, MsgUpgradeClient, MsgSubmitMisbehaviour } from "./tx"; export const registry: ReadonlyArray<[string, GeneratedType]> = [["/ibc.core.client.v1.MsgCreateClient", MsgCreateClient], ["/ibc.core.client.v1.MsgUpdateClient", MsgUpdateClient], ["/ibc.core.client.v1.MsgUpgradeClient", MsgUpgradeClient], ["/ibc.core.client.v1.MsgSubmitMisbehaviour", MsgSubmitMisbehaviour]]; diff --git a/packages/proto/src/codegen/ibc/core/client/v1/tx.rpc.msg.ts b/packages/proto/src/codegen/ibc/core/client/v1/tx.rpc.msg.ts new file mode 100644 index 00000000..26c3f912 --- /dev/null +++ b/packages/proto/src/codegen/ibc/core/client/v1/tx.rpc.msg.ts @@ -0,0 +1,44 @@ +import { Rpc } from "../../../../helpers"; +import * as _m0 from "protobufjs/minimal"; +import { MsgCreateClient, MsgCreateClientResponse, MsgUpdateClient, MsgUpdateClientResponse, MsgUpgradeClient, MsgUpgradeClientResponse, MsgSubmitMisbehaviour, MsgSubmitMisbehaviourResponse } from "./tx"; +/** Msg defines the ibc/client Msg service. */ +export interface Msg { + /** CreateClient defines a rpc handler method for MsgCreateClient. */ + createClient(request: MsgCreateClient): Promise; + /** UpdateClient defines a rpc handler method for MsgUpdateClient. */ + updateClient(request: MsgUpdateClient): Promise; + /** UpgradeClient defines a rpc handler method for MsgUpgradeClient. */ + upgradeClient(request: MsgUpgradeClient): Promise; + /** SubmitMisbehaviour defines a rpc handler method for MsgSubmitMisbehaviour. */ + submitMisbehaviour(request: MsgSubmitMisbehaviour): Promise; +} +export class MsgClientImpl implements Msg { + private readonly rpc: Rpc; + constructor(rpc: Rpc) { + this.rpc = rpc; + this.createClient = this.createClient.bind(this); + this.updateClient = this.updateClient.bind(this); + this.upgradeClient = this.upgradeClient.bind(this); + this.submitMisbehaviour = this.submitMisbehaviour.bind(this); + } + createClient(request: MsgCreateClient): Promise { + const data = MsgCreateClient.encode(request).finish(); + const promise = this.rpc.request("ibc.core.client.v1.Msg", "CreateClient", data); + return promise.then(data => MsgCreateClientResponse.decode(new _m0.Reader(data))); + } + updateClient(request: MsgUpdateClient): Promise { + const data = MsgUpdateClient.encode(request).finish(); + const promise = this.rpc.request("ibc.core.client.v1.Msg", "UpdateClient", data); + return promise.then(data => MsgUpdateClientResponse.decode(new _m0.Reader(data))); + } + upgradeClient(request: MsgUpgradeClient): Promise { + const data = MsgUpgradeClient.encode(request).finish(); + const promise = this.rpc.request("ibc.core.client.v1.Msg", "UpgradeClient", data); + return promise.then(data => MsgUpgradeClientResponse.decode(new _m0.Reader(data))); + } + submitMisbehaviour(request: MsgSubmitMisbehaviour): Promise { + const data = MsgSubmitMisbehaviour.encode(request).finish(); + const promise = this.rpc.request("ibc.core.client.v1.Msg", "SubmitMisbehaviour", data); + return promise.then(data => MsgSubmitMisbehaviourResponse.decode(new _m0.Reader(data))); + } +} \ No newline at end of file diff --git a/packages/proto/src/codegen/ibc/core/connection/v1/query.rpc.Query.ts b/packages/proto/src/codegen/ibc/core/connection/v1/query.rpc.Query.ts new file mode 100644 index 00000000..8036fd3e --- /dev/null +++ b/packages/proto/src/codegen/ibc/core/connection/v1/query.rpc.Query.ts @@ -0,0 +1,85 @@ +import { Rpc } from "../../../../helpers"; +import * as _m0 from "protobufjs/minimal"; +import { QueryClient, createProtobufRpcClient } from "@cosmjs/stargate"; +import { QueryConnectionRequest, QueryConnectionResponse, QueryConnectionsRequest, QueryConnectionsResponse, QueryClientConnectionsRequest, QueryClientConnectionsResponse, QueryConnectionClientStateRequest, QueryConnectionClientStateResponse, QueryConnectionConsensusStateRequest, QueryConnectionConsensusStateResponse } from "./query"; +/** Query provides defines the gRPC querier service */ +export interface Query { + /** Connection queries an IBC connection end. */ + connection(request: QueryConnectionRequest): Promise; + /** Connections queries all the IBC connections of a chain. */ + connections(request?: QueryConnectionsRequest): Promise; + /** + * ClientConnections queries the connection paths associated with a client + * state. + */ + clientConnections(request: QueryClientConnectionsRequest): Promise; + /** + * ConnectionClientState queries the client state associated with the + * connection. + */ + connectionClientState(request: QueryConnectionClientStateRequest): Promise; + /** + * ConnectionConsensusState queries the consensus state associated with the + * connection. + */ + connectionConsensusState(request: QueryConnectionConsensusStateRequest): Promise; +} +export class QueryClientImpl implements Query { + private readonly rpc: Rpc; + constructor(rpc: Rpc) { + this.rpc = rpc; + this.connection = this.connection.bind(this); + this.connections = this.connections.bind(this); + this.clientConnections = this.clientConnections.bind(this); + this.connectionClientState = this.connectionClientState.bind(this); + this.connectionConsensusState = this.connectionConsensusState.bind(this); + } + connection(request: QueryConnectionRequest): Promise { + const data = QueryConnectionRequest.encode(request).finish(); + const promise = this.rpc.request("ibc.core.connection.v1.Query", "Connection", data); + return promise.then(data => QueryConnectionResponse.decode(new _m0.Reader(data))); + } + connections(request: QueryConnectionsRequest = { + pagination: undefined + }): Promise { + const data = QueryConnectionsRequest.encode(request).finish(); + const promise = this.rpc.request("ibc.core.connection.v1.Query", "Connections", data); + return promise.then(data => QueryConnectionsResponse.decode(new _m0.Reader(data))); + } + clientConnections(request: QueryClientConnectionsRequest): Promise { + const data = QueryClientConnectionsRequest.encode(request).finish(); + const promise = this.rpc.request("ibc.core.connection.v1.Query", "ClientConnections", data); + return promise.then(data => QueryClientConnectionsResponse.decode(new _m0.Reader(data))); + } + connectionClientState(request: QueryConnectionClientStateRequest): Promise { + const data = QueryConnectionClientStateRequest.encode(request).finish(); + const promise = this.rpc.request("ibc.core.connection.v1.Query", "ConnectionClientState", data); + return promise.then(data => QueryConnectionClientStateResponse.decode(new _m0.Reader(data))); + } + connectionConsensusState(request: QueryConnectionConsensusStateRequest): Promise { + const data = QueryConnectionConsensusStateRequest.encode(request).finish(); + const promise = this.rpc.request("ibc.core.connection.v1.Query", "ConnectionConsensusState", data); + return promise.then(data => QueryConnectionConsensusStateResponse.decode(new _m0.Reader(data))); + } +} +export const createRpcQueryExtension = (base: QueryClient) => { + const rpc = createProtobufRpcClient(base); + const queryService = new QueryClientImpl(rpc); + return { + connection(request: QueryConnectionRequest): Promise { + return queryService.connection(request); + }, + connections(request?: QueryConnectionsRequest): Promise { + return queryService.connections(request); + }, + clientConnections(request: QueryClientConnectionsRequest): Promise { + return queryService.clientConnections(request); + }, + connectionClientState(request: QueryConnectionClientStateRequest): Promise { + return queryService.connectionClientState(request); + }, + connectionConsensusState(request: QueryConnectionConsensusStateRequest): Promise { + return queryService.connectionConsensusState(request); + } + }; +}; \ No newline at end of file diff --git a/packages/proto/src/codegen/ibc/core/connection/v1/tx.amino.ts b/packages/proto/src/codegen/ibc/core/connection/v1/tx.amino.ts index e375e249..9b0c07d7 100644 --- a/packages/proto/src/codegen/ibc/core/connection/v1/tx.amino.ts +++ b/packages/proto/src/codegen/ibc/core/connection/v1/tx.amino.ts @@ -1,3 +1,4 @@ +//@ts-nocheck import { AminoMsg } from "@cosmjs/amino"; import { AminoHeight, Long, omitDefault } from "../../../../helpers"; import { MsgConnectionOpenInit, MsgConnectionOpenTry, MsgConnectionOpenAck, MsgConnectionOpenConfirm } from "./tx"; diff --git a/packages/proto/src/codegen/ibc/core/connection/v1/tx.registry.ts b/packages/proto/src/codegen/ibc/core/connection/v1/tx.registry.ts index 2737361c..ea9df730 100644 --- a/packages/proto/src/codegen/ibc/core/connection/v1/tx.registry.ts +++ b/packages/proto/src/codegen/ibc/core/connection/v1/tx.registry.ts @@ -1,3 +1,4 @@ +//@ts-nocheck import { GeneratedType, Registry } from "@cosmjs/proto-signing"; import { MsgConnectionOpenInit, MsgConnectionOpenTry, MsgConnectionOpenAck, MsgConnectionOpenConfirm } from "./tx"; export const registry: ReadonlyArray<[string, GeneratedType]> = [["/ibc.core.connection.v1.MsgConnectionOpenInit", MsgConnectionOpenInit], ["/ibc.core.connection.v1.MsgConnectionOpenTry", MsgConnectionOpenTry], ["/ibc.core.connection.v1.MsgConnectionOpenAck", MsgConnectionOpenAck], ["/ibc.core.connection.v1.MsgConnectionOpenConfirm", MsgConnectionOpenConfirm]]; diff --git a/packages/proto/src/codegen/ibc/core/connection/v1/tx.rpc.msg.ts b/packages/proto/src/codegen/ibc/core/connection/v1/tx.rpc.msg.ts new file mode 100644 index 00000000..4ae74e66 --- /dev/null +++ b/packages/proto/src/codegen/ibc/core/connection/v1/tx.rpc.msg.ts @@ -0,0 +1,47 @@ +import { Rpc } from "../../../../helpers"; +import * as _m0 from "protobufjs/minimal"; +import { MsgConnectionOpenInit, MsgConnectionOpenInitResponse, MsgConnectionOpenTry, MsgConnectionOpenTryResponse, MsgConnectionOpenAck, MsgConnectionOpenAckResponse, MsgConnectionOpenConfirm, MsgConnectionOpenConfirmResponse } from "./tx"; +/** Msg defines the ibc/connection Msg service. */ +export interface Msg { + /** ConnectionOpenInit defines a rpc handler method for MsgConnectionOpenInit. */ + connectionOpenInit(request: MsgConnectionOpenInit): Promise; + /** ConnectionOpenTry defines a rpc handler method for MsgConnectionOpenTry. */ + connectionOpenTry(request: MsgConnectionOpenTry): Promise; + /** ConnectionOpenAck defines a rpc handler method for MsgConnectionOpenAck. */ + connectionOpenAck(request: MsgConnectionOpenAck): Promise; + /** + * ConnectionOpenConfirm defines a rpc handler method for + * MsgConnectionOpenConfirm. + */ + connectionOpenConfirm(request: MsgConnectionOpenConfirm): Promise; +} +export class MsgClientImpl implements Msg { + private readonly rpc: Rpc; + constructor(rpc: Rpc) { + this.rpc = rpc; + this.connectionOpenInit = this.connectionOpenInit.bind(this); + this.connectionOpenTry = this.connectionOpenTry.bind(this); + this.connectionOpenAck = this.connectionOpenAck.bind(this); + this.connectionOpenConfirm = this.connectionOpenConfirm.bind(this); + } + connectionOpenInit(request: MsgConnectionOpenInit): Promise { + const data = MsgConnectionOpenInit.encode(request).finish(); + const promise = this.rpc.request("ibc.core.connection.v1.Msg", "ConnectionOpenInit", data); + return promise.then(data => MsgConnectionOpenInitResponse.decode(new _m0.Reader(data))); + } + connectionOpenTry(request: MsgConnectionOpenTry): Promise { + const data = MsgConnectionOpenTry.encode(request).finish(); + const promise = this.rpc.request("ibc.core.connection.v1.Msg", "ConnectionOpenTry", data); + return promise.then(data => MsgConnectionOpenTryResponse.decode(new _m0.Reader(data))); + } + connectionOpenAck(request: MsgConnectionOpenAck): Promise { + const data = MsgConnectionOpenAck.encode(request).finish(); + const promise = this.rpc.request("ibc.core.connection.v1.Msg", "ConnectionOpenAck", data); + return promise.then(data => MsgConnectionOpenAckResponse.decode(new _m0.Reader(data))); + } + connectionOpenConfirm(request: MsgConnectionOpenConfirm): Promise { + const data = MsgConnectionOpenConfirm.encode(request).finish(); + const promise = this.rpc.request("ibc.core.connection.v1.Msg", "ConnectionOpenConfirm", data); + return promise.then(data => MsgConnectionOpenConfirmResponse.decode(new _m0.Reader(data))); + } +} \ No newline at end of file diff --git a/packages/proto/src/codegen/ibc/core/port/v1/query.ts b/packages/proto/src/codegen/ibc/core/port/v1/query.ts deleted file mode 100644 index e134362b..00000000 --- a/packages/proto/src/codegen/ibc/core/port/v1/query.ts +++ /dev/null @@ -1,146 +0,0 @@ -import { Order, Counterparty, CounterpartySDKType } from "../../channel/v1/channel"; -import * as _m0 from "protobufjs/minimal"; -import { DeepPartial } from "../../../../helpers"; -/** QueryAppVersionRequest is the request type for the Query/AppVersion RPC method */ -export interface QueryAppVersionRequest { - /** port unique identifier */ - portId: string; - /** connection unique identifier */ - connectionId: string; - /** whether the channel is ordered or unordered */ - ordering: Order; - /** counterparty channel end */ - counterparty: Counterparty; - /** proposed version */ - proposedVersion: string; -} -/** QueryAppVersionRequest is the request type for the Query/AppVersion RPC method */ -export interface QueryAppVersionRequestSDKType { - port_id: string; - connection_id: string; - ordering: Order; - counterparty: CounterpartySDKType; - proposed_version: string; -} -/** QueryAppVersionResponse is the response type for the Query/AppVersion RPC method. */ -export interface QueryAppVersionResponse { - /** port id associated with the request identifiers */ - portId: string; - /** supported app version */ - version: string; -} -/** QueryAppVersionResponse is the response type for the Query/AppVersion RPC method. */ -export interface QueryAppVersionResponseSDKType { - port_id: string; - version: string; -} -function createBaseQueryAppVersionRequest(): QueryAppVersionRequest { - return { - portId: "", - connectionId: "", - ordering: 0, - counterparty: Counterparty.fromPartial({}), - proposedVersion: "" - }; -} -export const QueryAppVersionRequest = { - encode(message: QueryAppVersionRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.portId !== "") { - writer.uint32(10).string(message.portId); - } - if (message.connectionId !== "") { - writer.uint32(18).string(message.connectionId); - } - if (message.ordering !== 0) { - writer.uint32(24).int32(message.ordering); - } - if (message.counterparty !== undefined) { - Counterparty.encode(message.counterparty, writer.uint32(34).fork()).ldelim(); - } - if (message.proposedVersion !== "") { - writer.uint32(42).string(message.proposedVersion); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): QueryAppVersionRequest { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryAppVersionRequest(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.portId = reader.string(); - break; - case 2: - message.connectionId = reader.string(); - break; - case 3: - message.ordering = (reader.int32() as any); - break; - case 4: - message.counterparty = Counterparty.decode(reader, reader.uint32()); - break; - case 5: - message.proposedVersion = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): QueryAppVersionRequest { - const message = createBaseQueryAppVersionRequest(); - message.portId = object.portId ?? ""; - message.connectionId = object.connectionId ?? ""; - message.ordering = object.ordering ?? 0; - message.counterparty = object.counterparty !== undefined && object.counterparty !== null ? Counterparty.fromPartial(object.counterparty) : undefined; - message.proposedVersion = object.proposedVersion ?? ""; - return message; - } -}; -function createBaseQueryAppVersionResponse(): QueryAppVersionResponse { - return { - portId: "", - version: "" - }; -} -export const QueryAppVersionResponse = { - encode(message: QueryAppVersionResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.portId !== "") { - writer.uint32(10).string(message.portId); - } - if (message.version !== "") { - writer.uint32(18).string(message.version); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): QueryAppVersionResponse { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryAppVersionResponse(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.portId = reader.string(); - break; - case 2: - message.version = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): QueryAppVersionResponse { - const message = createBaseQueryAppVersionResponse(); - message.portId = object.portId ?? ""; - message.version = object.version ?? ""; - return message; - } -}; \ No newline at end of file diff --git a/packages/proto/src/codegen/ibc/core/types/v1/genesis.ts b/packages/proto/src/codegen/ibc/core/types/v1/genesis.ts deleted file mode 100644 index 1234a23f..00000000 --- a/packages/proto/src/codegen/ibc/core/types/v1/genesis.ts +++ /dev/null @@ -1,74 +0,0 @@ -import { GenesisState as GenesisState1 } from "../../client/v1/genesis"; -import { GenesisStateSDKType as GenesisState1SDKType } from "../../client/v1/genesis"; -import { GenesisState as GenesisState2 } from "../../connection/v1/genesis"; -import { GenesisStateSDKType as GenesisState2SDKType } from "../../connection/v1/genesis"; -import { GenesisState as GenesisState3 } from "../../channel/v1/genesis"; -import { GenesisStateSDKType as GenesisState3SDKType } from "../../channel/v1/genesis"; -import * as _m0 from "protobufjs/minimal"; -import { DeepPartial } from "../../../../helpers"; -/** GenesisState defines the ibc module's genesis state. */ -export interface GenesisState { - /** ICS002 - Clients genesis state */ - clientGenesis: GenesisState1; - /** ICS003 - Connections genesis state */ - connectionGenesis: GenesisState2; - /** ICS004 - Channel genesis state */ - channelGenesis: GenesisState3; -} -/** GenesisState defines the ibc module's genesis state. */ -export interface GenesisStateSDKType { - client_genesis: GenesisState1SDKType; - connection_genesis: GenesisState2SDKType; - channel_genesis: GenesisState3SDKType; -} -function createBaseGenesisState(): GenesisState { - return { - clientGenesis: GenesisState.fromPartial({}), - connectionGenesis: GenesisState.fromPartial({}), - channelGenesis: GenesisState.fromPartial({}) - }; -} -export const GenesisState = { - encode(message: GenesisState, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.clientGenesis !== undefined) { - GenesisState1.encode(message.clientGenesis, writer.uint32(10).fork()).ldelim(); - } - if (message.connectionGenesis !== undefined) { - GenesisState2.encode(message.connectionGenesis, writer.uint32(18).fork()).ldelim(); - } - if (message.channelGenesis !== undefined) { - GenesisState3.encode(message.channelGenesis, writer.uint32(26).fork()).ldelim(); - } - return writer; - }, - decode(input: _m0.Reader | Uint8Array, length?: number): GenesisState { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGenesisState(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.clientGenesis = GenesisState1.decode(reader, reader.uint32()); - break; - case 2: - message.connectionGenesis = GenesisState2.decode(reader, reader.uint32()); - break; - case 3: - message.channelGenesis = GenesisState3.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }, - fromPartial(object: DeepPartial): GenesisState { - const message = createBaseGenesisState(); - message.clientGenesis = object.clientGenesis !== undefined && object.clientGenesis !== null ? GenesisState1.fromPartial(object.clientGenesis) : undefined; - message.connectionGenesis = object.connectionGenesis !== undefined && object.connectionGenesis !== null ? GenesisState2.fromPartial(object.connectionGenesis) : undefined; - message.channelGenesis = object.channelGenesis !== undefined && object.channelGenesis !== null ? GenesisState3.fromPartial(object.channelGenesis) : undefined; - return message; - } -}; \ No newline at end of file diff --git a/packages/proto/src/codegen/ibc/lcd.ts b/packages/proto/src/codegen/ibc/lcd.ts index 100c9f9c..58ae09b7 100644 --- a/packages/proto/src/codegen/ibc/lcd.ts +++ b/packages/proto/src/codegen/ibc/lcd.ts @@ -24,61 +24,16 @@ export const createLCDClient = async ({ requestClient }) }, - base: { - tendermint: { - v1beta1: new (await import("../cosmos/base/tendermint/v1beta1/query.lcd")).LCDQueryClient({ - requestClient - }) - } - }, distribution: { v1beta1: new (await import("../cosmos/distribution/v1beta1/query.lcd")).LCDQueryClient({ requestClient }) }, - evidence: { - v1beta1: new (await import("../cosmos/evidence/v1beta1/query.lcd")).LCDQueryClient({ - requestClient - }) - }, - feegrant: { - v1beta1: new (await import("../cosmos/feegrant/v1beta1/query.lcd")).LCDQueryClient({ - requestClient - }) - }, gov: { - v1: new (await import("../cosmos/gov/v1/query.lcd")).LCDQueryClient({ - requestClient - }), v1beta1: new (await import("../cosmos/gov/v1beta1/query.lcd")).LCDQueryClient({ requestClient }) }, - group: { - v1: new (await import("../cosmos/group/v1/query.lcd")).LCDQueryClient({ - requestClient - }) - }, - mint: { - v1beta1: new (await import("../cosmos/mint/v1beta1/query.lcd")).LCDQueryClient({ - requestClient - }) - }, - nft: { - v1beta1: new (await import("../cosmos/nft/v1beta1/query.lcd")).LCDQueryClient({ - requestClient - }) - }, - params: { - v1beta1: new (await import("../cosmos/params/v1beta1/query.lcd")).LCDQueryClient({ - requestClient - }) - }, - slashing: { - v1beta1: new (await import("../cosmos/slashing/v1beta1/query.lcd")).LCDQueryClient({ - requestClient - }) - }, staking: { v1beta1: new (await import("../cosmos/staking/v1beta1/query.lcd")).LCDQueryClient({ requestClient diff --git a/packages/proto/src/codegen/ibc/rpc.query.ts b/packages/proto/src/codegen/ibc/rpc.query.ts new file mode 100644 index 00000000..a88b46a2 --- /dev/null +++ b/packages/proto/src/codegen/ibc/rpc.query.ts @@ -0,0 +1,56 @@ +import { Tendermint34Client, HttpEndpoint } from "@cosmjs/tendermint-rpc"; +import { QueryClient } from "@cosmjs/stargate"; +export const createRPCQueryClient = async ({ + rpcEndpoint +}: { + rpcEndpoint: string | HttpEndpoint; +}) => { + const tmClient = await Tendermint34Client.connect(rpcEndpoint); + const client = new QueryClient(tmClient); + return { + cosmos: { + auth: { + v1beta1: (await import("../cosmos/auth/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) + }, + authz: { + v1beta1: (await import("../cosmos/authz/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) + }, + bank: { + v1beta1: (await import("../cosmos/bank/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) + }, + distribution: { + v1beta1: (await import("../cosmos/distribution/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) + }, + gov: { + v1beta1: (await import("../cosmos/gov/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) + }, + staking: { + v1beta1: (await import("../cosmos/staking/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) + }, + tx: { + v1beta1: (await import("../cosmos/tx/v1beta1/service.rpc.Service")).createRpcQueryExtension(client) + }, + upgrade: { + v1beta1: (await import("../cosmos/upgrade/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) + } + }, + ibc: { + applications: { + transfer: { + v1: (await import("./applications/transfer/v1/query.rpc.Query")).createRpcQueryExtension(client) + } + }, + core: { + channel: { + v1: (await import("./core/channel/v1/query.rpc.Query")).createRpcQueryExtension(client) + }, + client: { + v1: (await import("./core/client/v1/query.rpc.Query")).createRpcQueryExtension(client) + }, + connection: { + v1: (await import("./core/connection/v1/query.rpc.Query")).createRpcQueryExtension(client) + } + } + } + }; +}; \ No newline at end of file diff --git a/packages/proto/src/codegen/ibc/rpc.tx.ts b/packages/proto/src/codegen/ibc/rpc.tx.ts new file mode 100644 index 00000000..f71434f1 --- /dev/null +++ b/packages/proto/src/codegen/ibc/rpc.tx.ts @@ -0,0 +1,45 @@ +import { Rpc } from "../helpers"; +export const createRPCMsgClient = async ({ + rpc +}: { + rpc: Rpc; +}) => ({ + cosmos: { + authz: { + v1beta1: new (await import("../cosmos/authz/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) + }, + bank: { + v1beta1: new (await import("../cosmos/bank/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) + }, + distribution: { + v1beta1: new (await import("../cosmos/distribution/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) + }, + gov: { + v1beta1: new (await import("../cosmos/gov/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) + }, + staking: { + v1beta1: new (await import("../cosmos/staking/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) + }, + upgrade: { + v1beta1: new (await import("../cosmos/upgrade/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) + } + }, + ibc: { + applications: { + transfer: { + v1: new (await import("./applications/transfer/v1/tx.rpc.msg")).MsgClientImpl(rpc) + } + }, + core: { + channel: { + v1: new (await import("./core/channel/v1/tx.rpc.msg")).MsgClientImpl(rpc) + }, + client: { + v1: new (await import("./core/client/v1/tx.rpc.msg")).MsgClientImpl(rpc) + }, + connection: { + v1: new (await import("./core/connection/v1/tx.rpc.msg")).MsgClientImpl(rpc) + } + } + } +}); \ No newline at end of file diff --git a/packages/proto/src/codegen/seiprotocol/bundle.ts b/packages/proto/src/codegen/seiprotocol/bundle.ts index 348df885..0343af56 100644 --- a/packages/proto/src/codegen/seiprotocol/bundle.ts +++ b/packages/proto/src/codegen/seiprotocol/bundle.ts @@ -1,114 +1,134 @@ -import * as _132 from "./seichain/dex/asset_list"; -import * as _133 from "./seichain/dex/contract"; -import * as _134 from "./seichain/dex/deposit"; -import * as _135 from "./seichain/dex/enums"; -import * as _136 from "./seichain/dex/genesis"; -import * as _137 from "./seichain/dex/gov"; -import * as _138 from "./seichain/dex/long_book"; -import * as _139 from "./seichain/dex/match_result"; -import * as _140 from "./seichain/dex/order_entry"; -import * as _141 from "./seichain/dex/order"; -import * as _142 from "./seichain/dex/pair"; -import * as _143 from "./seichain/dex/params"; -import * as _144 from "./seichain/dex/price"; -import * as _145 from "./seichain/dex/query"; -import * as _146 from "./seichain/dex/settlement"; -import * as _147 from "./seichain/dex/short_book"; -import * as _148 from "./seichain/dex/tick_size"; -import * as _149 from "./seichain/dex/twap"; -import * as _150 from "./seichain/dex/tx"; -import * as _151 from "./seichain/epoch/epoch"; -import * as _152 from "./seichain/epoch/genesis"; -import * as _153 from "./seichain/epoch/params"; -import * as _154 from "./seichain/epoch/query"; -import * as _155 from "./seichain/epoch/tx"; -import * as _156 from "./seichain/mint/v1beta1/genesis"; -import * as _157 from "./seichain/mint/v1beta1/gov"; -import * as _158 from "./seichain/mint/v1beta1/mint"; -import * as _159 from "./seichain/mint/v1beta1/query"; -import * as _160 from "./seichain/oracle/genesis"; -import * as _161 from "./seichain/oracle/oracle"; -import * as _162 from "./seichain/oracle/query"; -import * as _163 from "./seichain/oracle/tx"; -import * as _164 from "./seichain/tokenfactory/authorityMetadata"; -import * as _165 from "./seichain/tokenfactory/genesis"; -import * as _166 from "./seichain/tokenfactory/params"; -import * as _167 from "./seichain/tokenfactory/query"; -import * as _168 from "./seichain/tokenfactory/tx"; -import * as _240 from "./seichain/dex/tx.amino"; -import * as _241 from "./seichain/oracle/tx.amino"; -import * as _242 from "./seichain/tokenfactory/tx.amino"; -import * as _243 from "./seichain/dex/tx.registry"; -import * as _244 from "./seichain/oracle/tx.registry"; -import * as _245 from "./seichain/tokenfactory/tx.registry"; -import * as _246 from "./seichain/dex/query.lcd"; -import * as _247 from "./seichain/epoch/query.lcd"; -import * as _248 from "./seichain/mint/v1beta1/query.lcd"; -import * as _249 from "./seichain/oracle/query.lcd"; -import * as _250 from "./seichain/tokenfactory/query.lcd"; -import * as _254 from "./lcd"; +import * as _78 from "./seichain/dex/asset_list"; +import * as _79 from "./seichain/dex/contract"; +import * as _80 from "./seichain/dex/deposit"; +import * as _81 from "./seichain/dex/enums"; +import * as _82 from "./seichain/dex/genesis"; +import * as _83 from "./seichain/dex/gov"; +import * as _84 from "./seichain/dex/long_book"; +import * as _85 from "./seichain/dex/match_result"; +import * as _86 from "./seichain/dex/order_entry"; +import * as _87 from "./seichain/dex/order"; +import * as _88 from "./seichain/dex/pair"; +import * as _89 from "./seichain/dex/params"; +import * as _90 from "./seichain/dex/price"; +import * as _91 from "./seichain/dex/query"; +import * as _92 from "./seichain/dex/settlement"; +import * as _93 from "./seichain/dex/short_book"; +import * as _94 from "./seichain/dex/tick_size"; +import * as _95 from "./seichain/dex/twap"; +import * as _96 from "./seichain/dex/tx"; +import * as _97 from "./seichain/epoch/epoch"; +import * as _98 from "./seichain/epoch/genesis"; +import * as _99 from "./seichain/epoch/params"; +import * as _100 from "./seichain/epoch/query"; +import * as _101 from "./seichain/epoch/tx"; +import * as _102 from "./seichain/mint/v1beta1/genesis"; +import * as _103 from "./seichain/mint/v1beta1/gov"; +import * as _104 from "./seichain/mint/v1beta1/mint"; +import * as _105 from "./seichain/mint/v1beta1/query"; +import * as _106 from "./seichain/oracle/genesis"; +import * as _107 from "./seichain/oracle/oracle"; +import * as _108 from "./seichain/oracle/query"; +import * as _109 from "./seichain/oracle/tx"; +import * as _110 from "./seichain/tokenfactory/authorityMetadata"; +import * as _111 from "./seichain/tokenfactory/genesis"; +import * as _112 from "./seichain/tokenfactory/params"; +import * as _113 from "./seichain/tokenfactory/query"; +import * as _114 from "./seichain/tokenfactory/tx"; +import * as _185 from "./seichain/dex/tx.amino"; +import * as _186 from "./seichain/oracle/tx.amino"; +import * as _187 from "./seichain/tokenfactory/tx.amino"; +import * as _188 from "./seichain/dex/tx.registry"; +import * as _189 from "./seichain/oracle/tx.registry"; +import * as _190 from "./seichain/tokenfactory/tx.registry"; +import * as _191 from "./seichain/dex/query.lcd"; +import * as _192 from "./seichain/epoch/query.lcd"; +import * as _193 from "./seichain/mint/v1beta1/query.lcd"; +import * as _194 from "./seichain/oracle/query.lcd"; +import * as _195 from "./seichain/tokenfactory/query.lcd"; +import * as _196 from "./seichain/dex/query.rpc.Query"; +import * as _197 from "./seichain/epoch/query.rpc.Query"; +import * as _198 from "./seichain/mint/v1beta1/query.rpc.Query"; +import * as _199 from "./seichain/oracle/query.rpc.Query"; +import * as _200 from "./seichain/tokenfactory/query.rpc.Query"; +import * as _201 from "./seichain/dex/tx.rpc.msg"; +import * as _202 from "./seichain/oracle/tx.rpc.msg"; +import * as _203 from "./seichain/tokenfactory/tx.rpc.msg"; +import * as _213 from "./lcd"; +import * as _214 from "./rpc.query"; +import * as _215 from "./rpc.tx"; export namespace seiprotocol { export namespace seichain { export const dex = { - ..._132, - ..._133, - ..._134, - ..._135, - ..._136, - ..._137, - ..._138, - ..._139, - ..._140, - ..._141, - ..._142, - ..._143, - ..._144, - ..._145, - ..._146, - ..._147, - ..._148, - ..._149, - ..._150, - ..._240, - ..._243, - ..._246 + ..._78, + ..._79, + ..._80, + ..._81, + ..._82, + ..._83, + ..._84, + ..._85, + ..._86, + ..._87, + ..._88, + ..._89, + ..._90, + ..._91, + ..._92, + ..._93, + ..._94, + ..._95, + ..._96, + ..._185, + ..._188, + ..._191, + ..._196, + ..._201 }; export const epoch = { - ..._151, - ..._152, - ..._153, - ..._154, - ..._155, - ..._247 + ..._97, + ..._98, + ..._99, + ..._100, + ..._101, + ..._192, + ..._197 }; export const mint = { - ..._156, - ..._157, - ..._158, - ..._159, - ..._248 + ..._102, + ..._103, + ..._104, + ..._105, + ..._193, + ..._198 }; export const oracle = { - ..._160, - ..._161, - ..._162, - ..._163, - ..._241, - ..._244, - ..._249 + ..._106, + ..._107, + ..._108, + ..._109, + ..._186, + ..._189, + ..._194, + ..._199, + ..._202 }; export const tokenfactory = { - ..._164, - ..._165, - ..._166, - ..._167, - ..._168, - ..._242, - ..._245, - ..._250 + ..._110, + ..._111, + ..._112, + ..._113, + ..._114, + ..._187, + ..._190, + ..._195, + ..._200, + ..._203 }; } export const ClientFactory = { - ..._254 + ..._213, + ..._214, + ..._215 }; } \ No newline at end of file diff --git a/packages/proto/src/codegen/seiprotocol/lcd.ts b/packages/proto/src/codegen/seiprotocol/lcd.ts index b09cb354..71551c0c 100644 --- a/packages/proto/src/codegen/seiprotocol/lcd.ts +++ b/packages/proto/src/codegen/seiprotocol/lcd.ts @@ -24,61 +24,16 @@ export const createLCDClient = async ({ requestClient }) }, - base: { - tendermint: { - v1beta1: new (await import("../cosmos/base/tendermint/v1beta1/query.lcd")).LCDQueryClient({ - requestClient - }) - } - }, distribution: { v1beta1: new (await import("../cosmos/distribution/v1beta1/query.lcd")).LCDQueryClient({ requestClient }) }, - evidence: { - v1beta1: new (await import("../cosmos/evidence/v1beta1/query.lcd")).LCDQueryClient({ - requestClient - }) - }, - feegrant: { - v1beta1: new (await import("../cosmos/feegrant/v1beta1/query.lcd")).LCDQueryClient({ - requestClient - }) - }, gov: { - v1: new (await import("../cosmos/gov/v1/query.lcd")).LCDQueryClient({ - requestClient - }), v1beta1: new (await import("../cosmos/gov/v1beta1/query.lcd")).LCDQueryClient({ requestClient }) }, - group: { - v1: new (await import("../cosmos/group/v1/query.lcd")).LCDQueryClient({ - requestClient - }) - }, - mint: { - v1beta1: new (await import("../cosmos/mint/v1beta1/query.lcd")).LCDQueryClient({ - requestClient - }) - }, - nft: { - v1beta1: new (await import("../cosmos/nft/v1beta1/query.lcd")).LCDQueryClient({ - requestClient - }) - }, - params: { - v1beta1: new (await import("../cosmos/params/v1beta1/query.lcd")).LCDQueryClient({ - requestClient - }) - }, - slashing: { - v1beta1: new (await import("../cosmos/slashing/v1beta1/query.lcd")).LCDQueryClient({ - requestClient - }) - }, staking: { v1beta1: new (await import("../cosmos/staking/v1beta1/query.lcd")).LCDQueryClient({ requestClient diff --git a/packages/proto/src/codegen/seiprotocol/rpc.query.ts b/packages/proto/src/codegen/seiprotocol/rpc.query.ts new file mode 100644 index 00000000..fea24996 --- /dev/null +++ b/packages/proto/src/codegen/seiprotocol/rpc.query.ts @@ -0,0 +1,47 @@ +import { Tendermint34Client, HttpEndpoint } from "@cosmjs/tendermint-rpc"; +import { QueryClient } from "@cosmjs/stargate"; +export const createRPCQueryClient = async ({ + rpcEndpoint +}: { + rpcEndpoint: string | HttpEndpoint; +}) => { + const tmClient = await Tendermint34Client.connect(rpcEndpoint); + const client = new QueryClient(tmClient); + return { + cosmos: { + auth: { + v1beta1: (await import("../cosmos/auth/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) + }, + authz: { + v1beta1: (await import("../cosmos/authz/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) + }, + bank: { + v1beta1: (await import("../cosmos/bank/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) + }, + distribution: { + v1beta1: (await import("../cosmos/distribution/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) + }, + gov: { + v1beta1: (await import("../cosmos/gov/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) + }, + staking: { + v1beta1: (await import("../cosmos/staking/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) + }, + tx: { + v1beta1: (await import("../cosmos/tx/v1beta1/service.rpc.Service")).createRpcQueryExtension(client) + }, + upgrade: { + v1beta1: (await import("../cosmos/upgrade/v1beta1/query.rpc.Query")).createRpcQueryExtension(client) + } + }, + seiprotocol: { + seichain: { + dex: (await import("./seichain/dex/query.rpc.Query")).createRpcQueryExtension(client), + epoch: (await import("./seichain/epoch/query.rpc.Query")).createRpcQueryExtension(client), + mint: (await import("./seichain/mint/v1beta1/query.rpc.Query")).createRpcQueryExtension(client), + oracle: (await import("./seichain/oracle/query.rpc.Query")).createRpcQueryExtension(client), + tokenfactory: (await import("./seichain/tokenfactory/query.rpc.Query")).createRpcQueryExtension(client) + } + } + }; +}; \ No newline at end of file diff --git a/packages/proto/src/codegen/seiprotocol/rpc.tx.ts b/packages/proto/src/codegen/seiprotocol/rpc.tx.ts new file mode 100644 index 00000000..1c0933d6 --- /dev/null +++ b/packages/proto/src/codegen/seiprotocol/rpc.tx.ts @@ -0,0 +1,34 @@ +import { Rpc } from "../helpers"; +export const createRPCMsgClient = async ({ + rpc +}: { + rpc: Rpc; +}) => ({ + cosmos: { + authz: { + v1beta1: new (await import("../cosmos/authz/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) + }, + bank: { + v1beta1: new (await import("../cosmos/bank/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) + }, + distribution: { + v1beta1: new (await import("../cosmos/distribution/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) + }, + gov: { + v1beta1: new (await import("../cosmos/gov/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) + }, + staking: { + v1beta1: new (await import("../cosmos/staking/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) + }, + upgrade: { + v1beta1: new (await import("../cosmos/upgrade/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc) + } + }, + seiprotocol: { + seichain: { + dex: new (await import("./seichain/dex/tx.rpc.msg")).MsgClientImpl(rpc), + oracle: new (await import("./seichain/oracle/tx.rpc.msg")).MsgClientImpl(rpc), + tokenfactory: new (await import("./seichain/tokenfactory/tx.rpc.msg")).MsgClientImpl(rpc) + } + } +}); \ No newline at end of file diff --git a/packages/proto/src/codegen/seiprotocol/seichain/dex/query.rpc.Query.ts b/packages/proto/src/codegen/seiprotocol/seichain/dex/query.rpc.Query.ts new file mode 100644 index 00000000..3b936e84 --- /dev/null +++ b/packages/proto/src/codegen/seiprotocol/seichain/dex/query.rpc.Query.ts @@ -0,0 +1,228 @@ +import { Rpc } from "../../../helpers"; +import * as _m0 from "protobufjs/minimal"; +import { QueryClient, createProtobufRpcClient } from "@cosmjs/stargate"; +import { QueryParamsRequest, QueryParamsResponse, QueryGetLongBookRequest, QueryGetLongBookResponse, QueryAllLongBookRequest, QueryAllLongBookResponse, QueryGetShortBookRequest, QueryGetShortBookResponse, QueryAllShortBookRequest, QueryAllShortBookResponse, QueryGetPriceRequest, QueryGetPriceResponse, QueryGetLatestPriceRequest, QueryGetLatestPriceResponse, QueryGetPricesRequest, QueryGetPricesResponse, QueryGetTwapsRequest, QueryGetTwapsResponse, QueryAssetMetadataRequest, QueryAssetMetadataResponse, QueryAssetListRequest, QueryAssetListResponse, QueryRegisteredPairsRequest, QueryRegisteredPairsResponse, QueryRegisteredContractRequest, QueryRegisteredContractResponse, QueryGetOrdersRequest, QueryGetOrdersResponse, QueryGetOrderByIDRequest, QueryGetOrderByIDResponse, QueryGetHistoricalPricesRequest, QueryGetHistoricalPricesResponse, QueryGetMarketSummaryRequest, QueryGetMarketSummaryResponse, QueryOrderSimulationRequest, QueryOrderSimulationResponse, QueryGetMatchResultRequest, QueryGetMatchResultResponse, QueryGetOrderCountRequest, QueryGetOrderCountResponse } from "./query"; +/** Query defines the gRPC querier service. */ +export interface Query { + /** Parameters queries the parameters of the module. */ + params(request?: QueryParamsRequest): Promise; + /** Queries a LongBook by id. */ + longBook(request: QueryGetLongBookRequest): Promise; + /** Queries a list of LongBook items. */ + longBookAll(request: QueryAllLongBookRequest): Promise; + /** Queries a ShortBook by id. */ + shortBook(request: QueryGetShortBookRequest): Promise; + /** Queries a list of ShortBook items. */ + shortBookAll(request: QueryAllShortBookRequest): Promise; + getPrice(request: QueryGetPriceRequest): Promise; + getLatestPrice(request: QueryGetLatestPriceRequest): Promise; + getPrices(request: QueryGetPricesRequest): Promise; + getTwaps(request: QueryGetTwapsRequest): Promise; + /** Returns the metadata for a specified denom / display type */ + assetMetadata(request: QueryAssetMetadataRequest): Promise; + /** Returns metadata for all the assets */ + assetList(request?: QueryAssetListRequest): Promise; + /** Returns all registered pairs for specified contract address */ + getRegisteredPairs(request: QueryRegisteredPairsRequest): Promise; + /** Returns registered contract information */ + getRegisteredContract(request: QueryRegisteredContractRequest): Promise; + getOrders(request: QueryGetOrdersRequest): Promise; + getOrder(request: QueryGetOrderByIDRequest): Promise; + getHistoricalPrices(request: QueryGetHistoricalPricesRequest): Promise; + getMarketSummary(request: QueryGetMarketSummaryRequest): Promise; + getOrderSimulation(request: QueryOrderSimulationRequest): Promise; + getMatchResult(request: QueryGetMatchResultRequest): Promise; + getOrderCount(request: QueryGetOrderCountRequest): Promise; +} +export class QueryClientImpl implements Query { + private readonly rpc: Rpc; + constructor(rpc: Rpc) { + this.rpc = rpc; + this.params = this.params.bind(this); + this.longBook = this.longBook.bind(this); + this.longBookAll = this.longBookAll.bind(this); + this.shortBook = this.shortBook.bind(this); + this.shortBookAll = this.shortBookAll.bind(this); + this.getPrice = this.getPrice.bind(this); + this.getLatestPrice = this.getLatestPrice.bind(this); + this.getPrices = this.getPrices.bind(this); + this.getTwaps = this.getTwaps.bind(this); + this.assetMetadata = this.assetMetadata.bind(this); + this.assetList = this.assetList.bind(this); + this.getRegisteredPairs = this.getRegisteredPairs.bind(this); + this.getRegisteredContract = this.getRegisteredContract.bind(this); + this.getOrders = this.getOrders.bind(this); + this.getOrder = this.getOrder.bind(this); + this.getHistoricalPrices = this.getHistoricalPrices.bind(this); + this.getMarketSummary = this.getMarketSummary.bind(this); + this.getOrderSimulation = this.getOrderSimulation.bind(this); + this.getMatchResult = this.getMatchResult.bind(this); + this.getOrderCount = this.getOrderCount.bind(this); + } + params(request: QueryParamsRequest = {}): Promise { + const data = QueryParamsRequest.encode(request).finish(); + const promise = this.rpc.request("seiprotocol.seichain.dex.Query", "Params", data); + return promise.then(data => QueryParamsResponse.decode(new _m0.Reader(data))); + } + longBook(request: QueryGetLongBookRequest): Promise { + const data = QueryGetLongBookRequest.encode(request).finish(); + const promise = this.rpc.request("seiprotocol.seichain.dex.Query", "LongBook", data); + return promise.then(data => QueryGetLongBookResponse.decode(new _m0.Reader(data))); + } + longBookAll(request: QueryAllLongBookRequest): Promise { + const data = QueryAllLongBookRequest.encode(request).finish(); + const promise = this.rpc.request("seiprotocol.seichain.dex.Query", "LongBookAll", data); + return promise.then(data => QueryAllLongBookResponse.decode(new _m0.Reader(data))); + } + shortBook(request: QueryGetShortBookRequest): Promise { + const data = QueryGetShortBookRequest.encode(request).finish(); + const promise = this.rpc.request("seiprotocol.seichain.dex.Query", "ShortBook", data); + return promise.then(data => QueryGetShortBookResponse.decode(new _m0.Reader(data))); + } + shortBookAll(request: QueryAllShortBookRequest): Promise { + const data = QueryAllShortBookRequest.encode(request).finish(); + const promise = this.rpc.request("seiprotocol.seichain.dex.Query", "ShortBookAll", data); + return promise.then(data => QueryAllShortBookResponse.decode(new _m0.Reader(data))); + } + getPrice(request: QueryGetPriceRequest): Promise { + const data = QueryGetPriceRequest.encode(request).finish(); + const promise = this.rpc.request("seiprotocol.seichain.dex.Query", "GetPrice", data); + return promise.then(data => QueryGetPriceResponse.decode(new _m0.Reader(data))); + } + getLatestPrice(request: QueryGetLatestPriceRequest): Promise { + const data = QueryGetLatestPriceRequest.encode(request).finish(); + const promise = this.rpc.request("seiprotocol.seichain.dex.Query", "GetLatestPrice", data); + return promise.then(data => QueryGetLatestPriceResponse.decode(new _m0.Reader(data))); + } + getPrices(request: QueryGetPricesRequest): Promise { + const data = QueryGetPricesRequest.encode(request).finish(); + const promise = this.rpc.request("seiprotocol.seichain.dex.Query", "GetPrices", data); + return promise.then(data => QueryGetPricesResponse.decode(new _m0.Reader(data))); + } + getTwaps(request: QueryGetTwapsRequest): Promise { + const data = QueryGetTwapsRequest.encode(request).finish(); + const promise = this.rpc.request("seiprotocol.seichain.dex.Query", "GetTwaps", data); + return promise.then(data => QueryGetTwapsResponse.decode(new _m0.Reader(data))); + } + assetMetadata(request: QueryAssetMetadataRequest): Promise { + const data = QueryAssetMetadataRequest.encode(request).finish(); + const promise = this.rpc.request("seiprotocol.seichain.dex.Query", "AssetMetadata", data); + return promise.then(data => QueryAssetMetadataResponse.decode(new _m0.Reader(data))); + } + assetList(request: QueryAssetListRequest = {}): Promise { + const data = QueryAssetListRequest.encode(request).finish(); + const promise = this.rpc.request("seiprotocol.seichain.dex.Query", "AssetList", data); + return promise.then(data => QueryAssetListResponse.decode(new _m0.Reader(data))); + } + getRegisteredPairs(request: QueryRegisteredPairsRequest): Promise { + const data = QueryRegisteredPairsRequest.encode(request).finish(); + const promise = this.rpc.request("seiprotocol.seichain.dex.Query", "GetRegisteredPairs", data); + return promise.then(data => QueryRegisteredPairsResponse.decode(new _m0.Reader(data))); + } + getRegisteredContract(request: QueryRegisteredContractRequest): Promise { + const data = QueryRegisteredContractRequest.encode(request).finish(); + const promise = this.rpc.request("seiprotocol.seichain.dex.Query", "GetRegisteredContract", data); + return promise.then(data => QueryRegisteredContractResponse.decode(new _m0.Reader(data))); + } + getOrders(request: QueryGetOrdersRequest): Promise { + const data = QueryGetOrdersRequest.encode(request).finish(); + const promise = this.rpc.request("seiprotocol.seichain.dex.Query", "GetOrders", data); + return promise.then(data => QueryGetOrdersResponse.decode(new _m0.Reader(data))); + } + getOrder(request: QueryGetOrderByIDRequest): Promise { + const data = QueryGetOrderByIDRequest.encode(request).finish(); + const promise = this.rpc.request("seiprotocol.seichain.dex.Query", "GetOrder", data); + return promise.then(data => QueryGetOrderByIDResponse.decode(new _m0.Reader(data))); + } + getHistoricalPrices(request: QueryGetHistoricalPricesRequest): Promise { + const data = QueryGetHistoricalPricesRequest.encode(request).finish(); + const promise = this.rpc.request("seiprotocol.seichain.dex.Query", "GetHistoricalPrices", data); + return promise.then(data => QueryGetHistoricalPricesResponse.decode(new _m0.Reader(data))); + } + getMarketSummary(request: QueryGetMarketSummaryRequest): Promise { + const data = QueryGetMarketSummaryRequest.encode(request).finish(); + const promise = this.rpc.request("seiprotocol.seichain.dex.Query", "GetMarketSummary", data); + return promise.then(data => QueryGetMarketSummaryResponse.decode(new _m0.Reader(data))); + } + getOrderSimulation(request: QueryOrderSimulationRequest): Promise { + const data = QueryOrderSimulationRequest.encode(request).finish(); + const promise = this.rpc.request("seiprotocol.seichain.dex.Query", "GetOrderSimulation", data); + return promise.then(data => QueryOrderSimulationResponse.decode(new _m0.Reader(data))); + } + getMatchResult(request: QueryGetMatchResultRequest): Promise { + const data = QueryGetMatchResultRequest.encode(request).finish(); + const promise = this.rpc.request("seiprotocol.seichain.dex.Query", "GetMatchResult", data); + return promise.then(data => QueryGetMatchResultResponse.decode(new _m0.Reader(data))); + } + getOrderCount(request: QueryGetOrderCountRequest): Promise { + const data = QueryGetOrderCountRequest.encode(request).finish(); + const promise = this.rpc.request("seiprotocol.seichain.dex.Query", "GetOrderCount", data); + return promise.then(data => QueryGetOrderCountResponse.decode(new _m0.Reader(data))); + } +} +export const createRpcQueryExtension = (base: QueryClient) => { + const rpc = createProtobufRpcClient(base); + const queryService = new QueryClientImpl(rpc); + return { + params(request?: QueryParamsRequest): Promise { + return queryService.params(request); + }, + longBook(request: QueryGetLongBookRequest): Promise { + return queryService.longBook(request); + }, + longBookAll(request: QueryAllLongBookRequest): Promise { + return queryService.longBookAll(request); + }, + shortBook(request: QueryGetShortBookRequest): Promise { + return queryService.shortBook(request); + }, + shortBookAll(request: QueryAllShortBookRequest): Promise { + return queryService.shortBookAll(request); + }, + getPrice(request: QueryGetPriceRequest): Promise { + return queryService.getPrice(request); + }, + getLatestPrice(request: QueryGetLatestPriceRequest): Promise { + return queryService.getLatestPrice(request); + }, + getPrices(request: QueryGetPricesRequest): Promise { + return queryService.getPrices(request); + }, + getTwaps(request: QueryGetTwapsRequest): Promise { + return queryService.getTwaps(request); + }, + assetMetadata(request: QueryAssetMetadataRequest): Promise { + return queryService.assetMetadata(request); + }, + assetList(request?: QueryAssetListRequest): Promise { + return queryService.assetList(request); + }, + getRegisteredPairs(request: QueryRegisteredPairsRequest): Promise { + return queryService.getRegisteredPairs(request); + }, + getRegisteredContract(request: QueryRegisteredContractRequest): Promise { + return queryService.getRegisteredContract(request); + }, + getOrders(request: QueryGetOrdersRequest): Promise { + return queryService.getOrders(request); + }, + getOrder(request: QueryGetOrderByIDRequest): Promise { + return queryService.getOrder(request); + }, + getHistoricalPrices(request: QueryGetHistoricalPricesRequest): Promise { + return queryService.getHistoricalPrices(request); + }, + getMarketSummary(request: QueryGetMarketSummaryRequest): Promise { + return queryService.getMarketSummary(request); + }, + getOrderSimulation(request: QueryOrderSimulationRequest): Promise { + return queryService.getOrderSimulation(request); + }, + getMatchResult(request: QueryGetMatchResultRequest): Promise { + return queryService.getMatchResult(request); + }, + getOrderCount(request: QueryGetOrderCountRequest): Promise { + return queryService.getOrderCount(request); + } + }; +}; \ No newline at end of file diff --git a/packages/proto/src/codegen/seiprotocol/seichain/dex/tx.amino.ts b/packages/proto/src/codegen/seiprotocol/seichain/dex/tx.amino.ts index 833ffdf0..7039c38f 100644 --- a/packages/proto/src/codegen/seiprotocol/seichain/dex/tx.amino.ts +++ b/packages/proto/src/codegen/seiprotocol/seichain/dex/tx.amino.ts @@ -1,3 +1,4 @@ +//@ts-nocheck import { AminoMsg } from "@cosmjs/amino"; import { Long } from "../../../helpers"; import { orderStatusFromJSON, orderTypeFromJSON, positionDirectionFromJSON, cancellationInitiatorFromJSON } from "./enums"; diff --git a/packages/proto/src/codegen/seiprotocol/seichain/dex/tx.registry.ts b/packages/proto/src/codegen/seiprotocol/seichain/dex/tx.registry.ts index 28cf4038..75047f81 100644 --- a/packages/proto/src/codegen/seiprotocol/seichain/dex/tx.registry.ts +++ b/packages/proto/src/codegen/seiprotocol/seichain/dex/tx.registry.ts @@ -1,3 +1,4 @@ +//@ts-nocheck import { GeneratedType, Registry } from "@cosmjs/proto-signing"; import { MsgPlaceOrders, MsgCancelOrders, MsgRegisterContract, MsgContractDepositRent, MsgUnregisterContract, MsgRegisterPairs, MsgUpdatePriceTickSize, MsgUpdateQuantityTickSize, MsgUnsuspendContract } from "./tx"; export const registry: ReadonlyArray<[string, GeneratedType]> = [["/seiprotocol.seichain.dex.MsgPlaceOrders", MsgPlaceOrders], ["/seiprotocol.seichain.dex.MsgCancelOrders", MsgCancelOrders], ["/seiprotocol.seichain.dex.MsgRegisterContract", MsgRegisterContract], ["/seiprotocol.seichain.dex.MsgContractDepositRent", MsgContractDepositRent], ["/seiprotocol.seichain.dex.MsgUnregisterContract", MsgUnregisterContract], ["/seiprotocol.seichain.dex.MsgRegisterPairs", MsgRegisterPairs], ["/seiprotocol.seichain.dex.MsgUpdatePriceTickSize", MsgUpdatePriceTickSize], ["/seiprotocol.seichain.dex.MsgUpdateQuantityTickSize", MsgUpdateQuantityTickSize], ["/seiprotocol.seichain.dex.MsgUnsuspendContract", MsgUnsuspendContract]]; diff --git a/packages/proto/src/codegen/seiprotocol/seichain/dex/tx.rpc.msg.ts b/packages/proto/src/codegen/seiprotocol/seichain/dex/tx.rpc.msg.ts new file mode 100644 index 00000000..b6cee97f --- /dev/null +++ b/packages/proto/src/codegen/seiprotocol/seichain/dex/tx.rpc.msg.ts @@ -0,0 +1,75 @@ +import { Rpc } from "../../../helpers"; +import * as _m0 from "protobufjs/minimal"; +import { MsgPlaceOrders, MsgPlaceOrdersResponse, MsgCancelOrders, MsgCancelOrdersResponse, MsgRegisterContract, MsgRegisterContractResponse, MsgContractDepositRent, MsgContractDepositRentResponse, MsgUnregisterContract, MsgUnregisterContractResponse, MsgRegisterPairs, MsgRegisterPairsResponse, MsgUpdatePriceTickSize, MsgUpdateTickSizeResponse, MsgUpdateQuantityTickSize, MsgUnsuspendContract, MsgUnsuspendContractResponse } from "./tx"; +/** Msg defines the Msg service. */ +export interface Msg { + placeOrders(request: MsgPlaceOrders): Promise; + cancelOrders(request: MsgCancelOrders): Promise; + registerContract(request: MsgRegisterContract): Promise; + contractDepositRent(request: MsgContractDepositRent): Promise; + unregisterContract(request: MsgUnregisterContract): Promise; + registerPairs(request: MsgRegisterPairs): Promise; + updatePriceTickSize(request: MsgUpdatePriceTickSize): Promise; + updateQuantityTickSize(request: MsgUpdateQuantityTickSize): Promise; + unsuspendContract(request: MsgUnsuspendContract): Promise; +} +export class MsgClientImpl implements Msg { + private readonly rpc: Rpc; + constructor(rpc: Rpc) { + this.rpc = rpc; + this.placeOrders = this.placeOrders.bind(this); + this.cancelOrders = this.cancelOrders.bind(this); + this.registerContract = this.registerContract.bind(this); + this.contractDepositRent = this.contractDepositRent.bind(this); + this.unregisterContract = this.unregisterContract.bind(this); + this.registerPairs = this.registerPairs.bind(this); + this.updatePriceTickSize = this.updatePriceTickSize.bind(this); + this.updateQuantityTickSize = this.updateQuantityTickSize.bind(this); + this.unsuspendContract = this.unsuspendContract.bind(this); + } + placeOrders(request: MsgPlaceOrders): Promise { + const data = MsgPlaceOrders.encode(request).finish(); + const promise = this.rpc.request("seiprotocol.seichain.dex.Msg", "PlaceOrders", data); + return promise.then(data => MsgPlaceOrdersResponse.decode(new _m0.Reader(data))); + } + cancelOrders(request: MsgCancelOrders): Promise { + const data = MsgCancelOrders.encode(request).finish(); + const promise = this.rpc.request("seiprotocol.seichain.dex.Msg", "CancelOrders", data); + return promise.then(data => MsgCancelOrdersResponse.decode(new _m0.Reader(data))); + } + registerContract(request: MsgRegisterContract): Promise { + const data = MsgRegisterContract.encode(request).finish(); + const promise = this.rpc.request("seiprotocol.seichain.dex.Msg", "RegisterContract", data); + return promise.then(data => MsgRegisterContractResponse.decode(new _m0.Reader(data))); + } + contractDepositRent(request: MsgContractDepositRent): Promise { + const data = MsgContractDepositRent.encode(request).finish(); + const promise = this.rpc.request("seiprotocol.seichain.dex.Msg", "ContractDepositRent", data); + return promise.then(data => MsgContractDepositRentResponse.decode(new _m0.Reader(data))); + } + unregisterContract(request: MsgUnregisterContract): Promise { + const data = MsgUnregisterContract.encode(request).finish(); + const promise = this.rpc.request("seiprotocol.seichain.dex.Msg", "UnregisterContract", data); + return promise.then(data => MsgUnregisterContractResponse.decode(new _m0.Reader(data))); + } + registerPairs(request: MsgRegisterPairs): Promise { + const data = MsgRegisterPairs.encode(request).finish(); + const promise = this.rpc.request("seiprotocol.seichain.dex.Msg", "RegisterPairs", data); + return promise.then(data => MsgRegisterPairsResponse.decode(new _m0.Reader(data))); + } + updatePriceTickSize(request: MsgUpdatePriceTickSize): Promise { + const data = MsgUpdatePriceTickSize.encode(request).finish(); + const promise = this.rpc.request("seiprotocol.seichain.dex.Msg", "UpdatePriceTickSize", data); + return promise.then(data => MsgUpdateTickSizeResponse.decode(new _m0.Reader(data))); + } + updateQuantityTickSize(request: MsgUpdateQuantityTickSize): Promise { + const data = MsgUpdateQuantityTickSize.encode(request).finish(); + const promise = this.rpc.request("seiprotocol.seichain.dex.Msg", "UpdateQuantityTickSize", data); + return promise.then(data => MsgUpdateTickSizeResponse.decode(new _m0.Reader(data))); + } + unsuspendContract(request: MsgUnsuspendContract): Promise { + const data = MsgUnsuspendContract.encode(request).finish(); + const promise = this.rpc.request("seiprotocol.seichain.dex.Msg", "UnsuspendContract", data); + return promise.then(data => MsgUnsuspendContractResponse.decode(new _m0.Reader(data))); + } +} \ No newline at end of file diff --git a/packages/proto/src/codegen/seiprotocol/seichain/epoch/query.rpc.Query.ts b/packages/proto/src/codegen/seiprotocol/seichain/epoch/query.rpc.Query.ts new file mode 100644 index 00000000..7867879a --- /dev/null +++ b/packages/proto/src/codegen/seiprotocol/seichain/epoch/query.rpc.Query.ts @@ -0,0 +1,41 @@ +import { Rpc } from "../../../helpers"; +import * as _m0 from "protobufjs/minimal"; +import { QueryClient, createProtobufRpcClient } from "@cosmjs/stargate"; +import { QueryEpochRequest, QueryEpochResponse, QueryParamsRequest, QueryParamsResponse } from "./query"; +/** Query defines the gRPC querier service. */ +export interface Query { + /** Query the epoch in the chain */ + epoch(request?: QueryEpochRequest): Promise; + /** Parameters queries the parameters of the module. */ + params(request?: QueryParamsRequest): Promise; +} +export class QueryClientImpl implements Query { + private readonly rpc: Rpc; + constructor(rpc: Rpc) { + this.rpc = rpc; + this.epoch = this.epoch.bind(this); + this.params = this.params.bind(this); + } + epoch(request: QueryEpochRequest = {}): Promise { + const data = QueryEpochRequest.encode(request).finish(); + const promise = this.rpc.request("seiprotocol.seichain.epoch.Query", "Epoch", data); + return promise.then(data => QueryEpochResponse.decode(new _m0.Reader(data))); + } + params(request: QueryParamsRequest = {}): Promise { + const data = QueryParamsRequest.encode(request).finish(); + const promise = this.rpc.request("seiprotocol.seichain.epoch.Query", "Params", data); + return promise.then(data => QueryParamsResponse.decode(new _m0.Reader(data))); + } +} +export const createRpcQueryExtension = (base: QueryClient) => { + const rpc = createProtobufRpcClient(base); + const queryService = new QueryClientImpl(rpc); + return { + epoch(request?: QueryEpochRequest): Promise { + return queryService.epoch(request); + }, + params(request?: QueryParamsRequest): Promise { + return queryService.params(request); + } + }; +}; \ No newline at end of file diff --git a/packages/proto/src/codegen/seiprotocol/seichain/mint/v1beta1/query.rpc.Query.ts b/packages/proto/src/codegen/seiprotocol/seichain/mint/v1beta1/query.rpc.Query.ts new file mode 100644 index 00000000..92fe57c5 --- /dev/null +++ b/packages/proto/src/codegen/seiprotocol/seichain/mint/v1beta1/query.rpc.Query.ts @@ -0,0 +1,41 @@ +import { Rpc } from "../../../../helpers"; +import * as _m0 from "protobufjs/minimal"; +import { QueryClient, createProtobufRpcClient } from "@cosmjs/stargate"; +import { QueryParamsRequest, QueryParamsResponse, QueryMinterRequest, QueryMinterResponse } from "./query"; +/** Query provides defines the gRPC querier service. */ +export interface Query { + /** Params returns the total set of minting parameters. */ + params(request?: QueryParamsRequest): Promise; + /** EpochProvisions current minting epoch provisions value. */ + minter(request?: QueryMinterRequest): Promise; +} +export class QueryClientImpl implements Query { + private readonly rpc: Rpc; + constructor(rpc: Rpc) { + this.rpc = rpc; + this.params = this.params.bind(this); + this.minter = this.minter.bind(this); + } + params(request: QueryParamsRequest = {}): Promise { + const data = QueryParamsRequest.encode(request).finish(); + const promise = this.rpc.request("seiprotocol.seichain.mint.Query", "Params", data); + return promise.then(data => QueryParamsResponse.decode(new _m0.Reader(data))); + } + minter(request: QueryMinterRequest = {}): Promise { + const data = QueryMinterRequest.encode(request).finish(); + const promise = this.rpc.request("seiprotocol.seichain.mint.Query", "Minter", data); + return promise.then(data => QueryMinterResponse.decode(new _m0.Reader(data))); + } +} +export const createRpcQueryExtension = (base: QueryClient) => { + const rpc = createProtobufRpcClient(base); + const queryService = new QueryClientImpl(rpc); + return { + params(request?: QueryParamsRequest): Promise { + return queryService.params(request); + }, + minter(request?: QueryMinterRequest): Promise { + return queryService.minter(request); + } + }; +}; \ No newline at end of file diff --git a/packages/proto/src/codegen/seiprotocol/seichain/oracle/query.rpc.Query.ts b/packages/proto/src/codegen/seiprotocol/seichain/oracle/query.rpc.Query.ts new file mode 100644 index 00000000..c5b87457 --- /dev/null +++ b/packages/proto/src/codegen/seiprotocol/seichain/oracle/query.rpc.Query.ts @@ -0,0 +1,128 @@ +import { Rpc } from "../../../helpers"; +import * as _m0 from "protobufjs/minimal"; +import { QueryClient, createProtobufRpcClient } from "@cosmjs/stargate"; +import { QueryExchangeRateRequest, QueryExchangeRateResponse, QueryExchangeRatesRequest, QueryExchangeRatesResponse, QueryActivesRequest, QueryActivesResponse, QueryVoteTargetsRequest, QueryVoteTargetsResponse, QueryPriceSnapshotHistoryRequest, QueryPriceSnapshotHistoryResponse, QueryTwapsRequest, QueryTwapsResponse, QueryFeederDelegationRequest, QueryFeederDelegationResponse, QueryVotePenaltyCounterRequest, QueryVotePenaltyCounterResponse, QuerySlashWindowRequest, QuerySlashWindowResponse, QueryParamsRequest, QueryParamsResponse } from "./query"; +/** Query defines the gRPC querier service. */ +export interface Query { + /** ExchangeRate returns exchange rate of a denom */ + exchangeRate(request: QueryExchangeRateRequest): Promise; + /** ExchangeRates returns exchange rates of all denoms */ + exchangeRates(request?: QueryExchangeRatesRequest): Promise; + /** Actives returns all active denoms */ + actives(request?: QueryActivesRequest): Promise; + /** VoteTargets returns all vote target denoms */ + voteTargets(request?: QueryVoteTargetsRequest): Promise; + /** PriceSnapshotHistory returns the history of price snapshots for all assets */ + priceSnapshotHistory(request?: QueryPriceSnapshotHistoryRequest): Promise; + twaps(request: QueryTwapsRequest): Promise; + /** FeederDelegation returns feeder delegation of a validator */ + feederDelegation(request: QueryFeederDelegationRequest): Promise; + /** MissCounter returns oracle miss counter of a validator */ + votePenaltyCounter(request: QueryVotePenaltyCounterRequest): Promise; + /** SlashWindow returns slash window information */ + slashWindow(request?: QuerySlashWindowRequest): Promise; + /** Params queries all parameters. */ + params(request?: QueryParamsRequest): Promise; +} +export class QueryClientImpl implements Query { + private readonly rpc: Rpc; + constructor(rpc: Rpc) { + this.rpc = rpc; + this.exchangeRate = this.exchangeRate.bind(this); + this.exchangeRates = this.exchangeRates.bind(this); + this.actives = this.actives.bind(this); + this.voteTargets = this.voteTargets.bind(this); + this.priceSnapshotHistory = this.priceSnapshotHistory.bind(this); + this.twaps = this.twaps.bind(this); + this.feederDelegation = this.feederDelegation.bind(this); + this.votePenaltyCounter = this.votePenaltyCounter.bind(this); + this.slashWindow = this.slashWindow.bind(this); + this.params = this.params.bind(this); + } + exchangeRate(request: QueryExchangeRateRequest): Promise { + const data = QueryExchangeRateRequest.encode(request).finish(); + const promise = this.rpc.request("seiprotocol.seichain.oracle.Query", "ExchangeRate", data); + return promise.then(data => QueryExchangeRateResponse.decode(new _m0.Reader(data))); + } + exchangeRates(request: QueryExchangeRatesRequest = {}): Promise { + const data = QueryExchangeRatesRequest.encode(request).finish(); + const promise = this.rpc.request("seiprotocol.seichain.oracle.Query", "ExchangeRates", data); + return promise.then(data => QueryExchangeRatesResponse.decode(new _m0.Reader(data))); + } + actives(request: QueryActivesRequest = {}): Promise { + const data = QueryActivesRequest.encode(request).finish(); + const promise = this.rpc.request("seiprotocol.seichain.oracle.Query", "Actives", data); + return promise.then(data => QueryActivesResponse.decode(new _m0.Reader(data))); + } + voteTargets(request: QueryVoteTargetsRequest = {}): Promise { + const data = QueryVoteTargetsRequest.encode(request).finish(); + const promise = this.rpc.request("seiprotocol.seichain.oracle.Query", "VoteTargets", data); + return promise.then(data => QueryVoteTargetsResponse.decode(new _m0.Reader(data))); + } + priceSnapshotHistory(request: QueryPriceSnapshotHistoryRequest = {}): Promise { + const data = QueryPriceSnapshotHistoryRequest.encode(request).finish(); + const promise = this.rpc.request("seiprotocol.seichain.oracle.Query", "PriceSnapshotHistory", data); + return promise.then(data => QueryPriceSnapshotHistoryResponse.decode(new _m0.Reader(data))); + } + twaps(request: QueryTwapsRequest): Promise { + const data = QueryTwapsRequest.encode(request).finish(); + const promise = this.rpc.request("seiprotocol.seichain.oracle.Query", "Twaps", data); + return promise.then(data => QueryTwapsResponse.decode(new _m0.Reader(data))); + } + feederDelegation(request: QueryFeederDelegationRequest): Promise { + const data = QueryFeederDelegationRequest.encode(request).finish(); + const promise = this.rpc.request("seiprotocol.seichain.oracle.Query", "FeederDelegation", data); + return promise.then(data => QueryFeederDelegationResponse.decode(new _m0.Reader(data))); + } + votePenaltyCounter(request: QueryVotePenaltyCounterRequest): Promise { + const data = QueryVotePenaltyCounterRequest.encode(request).finish(); + const promise = this.rpc.request("seiprotocol.seichain.oracle.Query", "VotePenaltyCounter", data); + return promise.then(data => QueryVotePenaltyCounterResponse.decode(new _m0.Reader(data))); + } + slashWindow(request: QuerySlashWindowRequest = {}): Promise { + const data = QuerySlashWindowRequest.encode(request).finish(); + const promise = this.rpc.request("seiprotocol.seichain.oracle.Query", "SlashWindow", data); + return promise.then(data => QuerySlashWindowResponse.decode(new _m0.Reader(data))); + } + params(request: QueryParamsRequest = {}): Promise { + const data = QueryParamsRequest.encode(request).finish(); + const promise = this.rpc.request("seiprotocol.seichain.oracle.Query", "Params", data); + return promise.then(data => QueryParamsResponse.decode(new _m0.Reader(data))); + } +} +export const createRpcQueryExtension = (base: QueryClient) => { + const rpc = createProtobufRpcClient(base); + const queryService = new QueryClientImpl(rpc); + return { + exchangeRate(request: QueryExchangeRateRequest): Promise { + return queryService.exchangeRate(request); + }, + exchangeRates(request?: QueryExchangeRatesRequest): Promise { + return queryService.exchangeRates(request); + }, + actives(request?: QueryActivesRequest): Promise { + return queryService.actives(request); + }, + voteTargets(request?: QueryVoteTargetsRequest): Promise { + return queryService.voteTargets(request); + }, + priceSnapshotHistory(request?: QueryPriceSnapshotHistoryRequest): Promise { + return queryService.priceSnapshotHistory(request); + }, + twaps(request: QueryTwapsRequest): Promise { + return queryService.twaps(request); + }, + feederDelegation(request: QueryFeederDelegationRequest): Promise { + return queryService.feederDelegation(request); + }, + votePenaltyCounter(request: QueryVotePenaltyCounterRequest): Promise { + return queryService.votePenaltyCounter(request); + }, + slashWindow(request?: QuerySlashWindowRequest): Promise { + return queryService.slashWindow(request); + }, + params(request?: QueryParamsRequest): Promise { + return queryService.params(request); + } + }; +}; \ No newline at end of file diff --git a/packages/proto/src/codegen/seiprotocol/seichain/oracle/tx.amino.ts b/packages/proto/src/codegen/seiprotocol/seichain/oracle/tx.amino.ts index 39c99a02..33e821d9 100644 --- a/packages/proto/src/codegen/seiprotocol/seichain/oracle/tx.amino.ts +++ b/packages/proto/src/codegen/seiprotocol/seichain/oracle/tx.amino.ts @@ -1,3 +1,4 @@ +//@ts-nocheck import { AminoMsg } from "@cosmjs/amino"; import { MsgAggregateExchangeRateVote, MsgDelegateFeedConsent } from "./tx"; export interface MsgAggregateExchangeRateVoteAminoType extends AminoMsg { diff --git a/packages/proto/src/codegen/seiprotocol/seichain/oracle/tx.registry.ts b/packages/proto/src/codegen/seiprotocol/seichain/oracle/tx.registry.ts index 69b1c5fd..bed106c3 100644 --- a/packages/proto/src/codegen/seiprotocol/seichain/oracle/tx.registry.ts +++ b/packages/proto/src/codegen/seiprotocol/seichain/oracle/tx.registry.ts @@ -1,3 +1,4 @@ +//@ts-nocheck import { GeneratedType, Registry } from "@cosmjs/proto-signing"; import { MsgAggregateExchangeRateVote, MsgDelegateFeedConsent } from "./tx"; export const registry: ReadonlyArray<[string, GeneratedType]> = [["/seiprotocol.seichain.oracle.MsgAggregateExchangeRateVote", MsgAggregateExchangeRateVote], ["/seiprotocol.seichain.oracle.MsgDelegateFeedConsent", MsgDelegateFeedConsent]]; diff --git a/packages/proto/src/codegen/seiprotocol/seichain/oracle/tx.rpc.msg.ts b/packages/proto/src/codegen/seiprotocol/seichain/oracle/tx.rpc.msg.ts new file mode 100644 index 00000000..893e92ac --- /dev/null +++ b/packages/proto/src/codegen/seiprotocol/seichain/oracle/tx.rpc.msg.ts @@ -0,0 +1,31 @@ +import { Rpc } from "../../../helpers"; +import * as _m0 from "protobufjs/minimal"; +import { MsgAggregateExchangeRateVote, MsgAggregateExchangeRateVoteResponse, MsgDelegateFeedConsent, MsgDelegateFeedConsentResponse } from "./tx"; +/** Msg defines the oracle Msg service. */ +export interface Msg { + /** + * AggregateExchangeRateVote defines a method for submitting + * aggregate exchange rate vote + */ + aggregateExchangeRateVote(request: MsgAggregateExchangeRateVote): Promise; + /** DelegateFeedConsent defines a method for setting the feeder delegation */ + delegateFeedConsent(request: MsgDelegateFeedConsent): Promise; +} +export class MsgClientImpl implements Msg { + private readonly rpc: Rpc; + constructor(rpc: Rpc) { + this.rpc = rpc; + this.aggregateExchangeRateVote = this.aggregateExchangeRateVote.bind(this); + this.delegateFeedConsent = this.delegateFeedConsent.bind(this); + } + aggregateExchangeRateVote(request: MsgAggregateExchangeRateVote): Promise { + const data = MsgAggregateExchangeRateVote.encode(request).finish(); + const promise = this.rpc.request("seiprotocol.seichain.oracle.Msg", "AggregateExchangeRateVote", data); + return promise.then(data => MsgAggregateExchangeRateVoteResponse.decode(new _m0.Reader(data))); + } + delegateFeedConsent(request: MsgDelegateFeedConsent): Promise { + const data = MsgDelegateFeedConsent.encode(request).finish(); + const promise = this.rpc.request("seiprotocol.seichain.oracle.Msg", "DelegateFeedConsent", data); + return promise.then(data => MsgDelegateFeedConsentResponse.decode(new _m0.Reader(data))); + } +} \ No newline at end of file diff --git a/packages/proto/src/codegen/seiprotocol/seichain/tokenfactory/query.rpc.Query.ts b/packages/proto/src/codegen/seiprotocol/seichain/tokenfactory/query.rpc.Query.ts new file mode 100644 index 00000000..8e995bfe --- /dev/null +++ b/packages/proto/src/codegen/seiprotocol/seichain/tokenfactory/query.rpc.Query.ts @@ -0,0 +1,61 @@ +import { Rpc } from "../../../helpers"; +import * as _m0 from "protobufjs/minimal"; +import { QueryClient, createProtobufRpcClient } from "@cosmjs/stargate"; +import { QueryParamsRequest, QueryParamsResponse, QueryDenomAuthorityMetadataRequest, QueryDenomAuthorityMetadataResponse, QueryDenomsFromCreatorRequest, QueryDenomsFromCreatorResponse } from "./query"; +/** Query defines the gRPC querier service. */ +export interface Query { + /** + * Params defines a gRPC query method that returns the tokenfactory module's + * parameters. + */ + params(request?: QueryParamsRequest): Promise; + /** + * DenomAuthorityMetadata defines a gRPC query method for fetching + * DenomAuthorityMetadata for a particular denom. + */ + denomAuthorityMetadata(request: QueryDenomAuthorityMetadataRequest): Promise; + /** + * DenomsFromCreator defines a gRPC query method for fetching all + * denominations created by a specific admin/creator. + */ + denomsFromCreator(request: QueryDenomsFromCreatorRequest): Promise; +} +export class QueryClientImpl implements Query { + private readonly rpc: Rpc; + constructor(rpc: Rpc) { + this.rpc = rpc; + this.params = this.params.bind(this); + this.denomAuthorityMetadata = this.denomAuthorityMetadata.bind(this); + this.denomsFromCreator = this.denomsFromCreator.bind(this); + } + params(request: QueryParamsRequest = {}): Promise { + const data = QueryParamsRequest.encode(request).finish(); + const promise = this.rpc.request("seiprotocol.seichain.tokenfactory.Query", "Params", data); + return promise.then(data => QueryParamsResponse.decode(new _m0.Reader(data))); + } + denomAuthorityMetadata(request: QueryDenomAuthorityMetadataRequest): Promise { + const data = QueryDenomAuthorityMetadataRequest.encode(request).finish(); + const promise = this.rpc.request("seiprotocol.seichain.tokenfactory.Query", "DenomAuthorityMetadata", data); + return promise.then(data => QueryDenomAuthorityMetadataResponse.decode(new _m0.Reader(data))); + } + denomsFromCreator(request: QueryDenomsFromCreatorRequest): Promise { + const data = QueryDenomsFromCreatorRequest.encode(request).finish(); + const promise = this.rpc.request("seiprotocol.seichain.tokenfactory.Query", "DenomsFromCreator", data); + return promise.then(data => QueryDenomsFromCreatorResponse.decode(new _m0.Reader(data))); + } +} +export const createRpcQueryExtension = (base: QueryClient) => { + const rpc = createProtobufRpcClient(base); + const queryService = new QueryClientImpl(rpc); + return { + params(request?: QueryParamsRequest): Promise { + return queryService.params(request); + }, + denomAuthorityMetadata(request: QueryDenomAuthorityMetadataRequest): Promise { + return queryService.denomAuthorityMetadata(request); + }, + denomsFromCreator(request: QueryDenomsFromCreatorRequest): Promise { + return queryService.denomsFromCreator(request); + } + }; +}; \ No newline at end of file diff --git a/packages/proto/src/codegen/seiprotocol/seichain/tokenfactory/tx.amino.ts b/packages/proto/src/codegen/seiprotocol/seichain/tokenfactory/tx.amino.ts index cf519ab3..b366d503 100644 --- a/packages/proto/src/codegen/seiprotocol/seichain/tokenfactory/tx.amino.ts +++ b/packages/proto/src/codegen/seiprotocol/seichain/tokenfactory/tx.amino.ts @@ -1,3 +1,4 @@ +//@ts-nocheck import { AminoMsg } from "@cosmjs/amino"; import { Long } from "../../../helpers"; import { MsgCreateDenom, MsgMint, MsgBurn, MsgChangeAdmin } from "./tx"; diff --git a/packages/proto/src/codegen/seiprotocol/seichain/tokenfactory/tx.registry.ts b/packages/proto/src/codegen/seiprotocol/seichain/tokenfactory/tx.registry.ts index e32fd18c..b0cfd23f 100644 --- a/packages/proto/src/codegen/seiprotocol/seichain/tokenfactory/tx.registry.ts +++ b/packages/proto/src/codegen/seiprotocol/seichain/tokenfactory/tx.registry.ts @@ -1,3 +1,4 @@ +//@ts-nocheck import { GeneratedType, Registry } from "@cosmjs/proto-signing"; import { MsgCreateDenom, MsgMint, MsgBurn, MsgChangeAdmin } from "./tx"; export const registry: ReadonlyArray<[string, GeneratedType]> = [["/seiprotocol.seichain.tokenfactory.MsgCreateDenom", MsgCreateDenom], ["/seiprotocol.seichain.tokenfactory.MsgMint", MsgMint], ["/seiprotocol.seichain.tokenfactory.MsgBurn", MsgBurn], ["/seiprotocol.seichain.tokenfactory.MsgChangeAdmin", MsgChangeAdmin]]; diff --git a/packages/proto/src/codegen/seiprotocol/seichain/tokenfactory/tx.rpc.msg.ts b/packages/proto/src/codegen/seiprotocol/seichain/tokenfactory/tx.rpc.msg.ts new file mode 100644 index 00000000..85b05e3d --- /dev/null +++ b/packages/proto/src/codegen/seiprotocol/seichain/tokenfactory/tx.rpc.msg.ts @@ -0,0 +1,40 @@ +import { Rpc } from "../../../helpers"; +import * as _m0 from "protobufjs/minimal"; +import { MsgCreateDenom, MsgCreateDenomResponse, MsgMint, MsgMintResponse, MsgBurn, MsgBurnResponse, MsgChangeAdmin, MsgChangeAdminResponse } from "./tx"; +/** Msg defines the tokefactory module's gRPC message service. */ +export interface Msg { + createDenom(request: MsgCreateDenom): Promise; + mint(request: MsgMint): Promise; + burn(request: MsgBurn): Promise; + changeAdmin(request: MsgChangeAdmin): Promise; +} +export class MsgClientImpl implements Msg { + private readonly rpc: Rpc; + constructor(rpc: Rpc) { + this.rpc = rpc; + this.createDenom = this.createDenom.bind(this); + this.mint = this.mint.bind(this); + this.burn = this.burn.bind(this); + this.changeAdmin = this.changeAdmin.bind(this); + } + createDenom(request: MsgCreateDenom): Promise { + const data = MsgCreateDenom.encode(request).finish(); + const promise = this.rpc.request("seiprotocol.seichain.tokenfactory.Msg", "CreateDenom", data); + return promise.then(data => MsgCreateDenomResponse.decode(new _m0.Reader(data))); + } + mint(request: MsgMint): Promise { + const data = MsgMint.encode(request).finish(); + const promise = this.rpc.request("seiprotocol.seichain.tokenfactory.Msg", "Mint", data); + return promise.then(data => MsgMintResponse.decode(new _m0.Reader(data))); + } + burn(request: MsgBurn): Promise { + const data = MsgBurn.encode(request).finish(); + const promise = this.rpc.request("seiprotocol.seichain.tokenfactory.Msg", "Burn", data); + return promise.then(data => MsgBurnResponse.decode(new _m0.Reader(data))); + } + changeAdmin(request: MsgChangeAdmin): Promise { + const data = MsgChangeAdmin.encode(request).finish(); + const promise = this.rpc.request("seiprotocol.seichain.tokenfactory.Msg", "ChangeAdmin", data); + return promise.then(data => MsgChangeAdminResponse.decode(new _m0.Reader(data))); + } +} \ No newline at end of file diff --git a/packages/proto/src/codegen/tendermint/bundle.ts b/packages/proto/src/codegen/tendermint/bundle.ts index 0a64e8eb..e1ec73a0 100644 --- a/packages/proto/src/codegen/tendermint/bundle.ts +++ b/packages/proto/src/codegen/tendermint/bundle.ts @@ -1,38 +1,38 @@ -import * as _169 from "./abci/types"; -import * as _170 from "./crypto/keys"; -import * as _171 from "./crypto/proof"; -import * as _172 from "./libs/bits/types"; -import * as _173 from "./p2p/types"; -import * as _174 from "./types/block"; -import * as _175 from "./types/evidence"; -import * as _176 from "./types/params"; -import * as _177 from "./types/types"; -import * as _178 from "./types/validator"; -import * as _179 from "./version/types"; +import * as _115 from "./abci/types"; +import * as _116 from "./crypto/keys"; +import * as _117 from "./crypto/proof"; +import * as _118 from "./libs/bits/types"; +import * as _119 from "./p2p/types"; +import * as _120 from "./types/block"; +import * as _121 from "./types/evidence"; +import * as _122 from "./types/params"; +import * as _123 from "./types/types"; +import * as _124 from "./types/validator"; +import * as _125 from "./version/types"; export namespace tendermint { export const abci = { - ..._169 + ..._115 }; export const crypto = { - ..._170, - ..._171 + ..._116, + ..._117 }; export namespace libs { export const bits = { - ..._172 + ..._118 }; } export const p2p = { - ..._173 + ..._119 }; export const types = { - ..._174, - ..._175, - ..._176, - ..._177, - ..._178 + ..._120, + ..._121, + ..._122, + ..._123, + ..._124 }; export const version = { - ..._179 + ..._125 }; } \ No newline at end of file diff --git a/packages/proto/types/codegen/cosmos/app/v1alpha1/config.d.ts b/packages/proto/types/codegen/cosmos/app/v1alpha1/config.d.ts deleted file mode 100644 index a982a159..00000000 --- a/packages/proto/types/codegen/cosmos/app/v1alpha1/config.d.ts +++ /dev/null @@ -1,64 +0,0 @@ -import { Any, AnySDKType } from "../../../google/protobuf/any"; -import * as _m0 from "protobufjs/minimal"; -import { DeepPartial } from "../../../helpers"; -/** - * Config represents the configuration for a Cosmos SDK ABCI app. - * It is intended that all state machine logic including the version of - * baseapp and tx handlers (and possibly even Tendermint) that an app needs - * can be described in a config object. For compatibility, the framework should - * allow a mixture of declarative and imperative app wiring, however, apps - * that strive for the maximum ease of maintainability should be able to describe - * their state machine with a config object alone. - */ -export interface Config { - /** modules are the module configurations for the app. */ - modules: ModuleConfig[]; -} -/** - * Config represents the configuration for a Cosmos SDK ABCI app. - * It is intended that all state machine logic including the version of - * baseapp and tx handlers (and possibly even Tendermint) that an app needs - * can be described in a config object. For compatibility, the framework should - * allow a mixture of declarative and imperative app wiring, however, apps - * that strive for the maximum ease of maintainability should be able to describe - * their state machine with a config object alone. - */ -export interface ConfigSDKType { - modules: ModuleConfigSDKType[]; -} -/** ModuleConfig is a module configuration for an app. */ -export interface ModuleConfig { - /** - * name is the unique name of the module within the app. It should be a name - * that persists between different versions of a module so that modules - * can be smoothly upgraded to new versions. - * - * For example, for the module cosmos.bank.module.v1.Module, we may chose - * to simply name the module "bank" in the app. When we upgrade to - * cosmos.bank.module.v2.Module, the app-specific name "bank" stays the same - * and the framework knows that the v2 module should receive all the same state - * that the v1 module had. Note: modules should provide info on which versions - * they can migrate from in the ModuleDescriptor.can_migration_from field. - */ - name: string; - /** - * config is the config object for the module. Module config messages should - * define a ModuleDescriptor using the cosmos.app.v1alpha1.is_module extension. - */ - config: Any; -} -/** ModuleConfig is a module configuration for an app. */ -export interface ModuleConfigSDKType { - name: string; - config: AnySDKType; -} -export declare const Config: { - encode(message: Config, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): Config; - fromPartial(object: DeepPartial): Config; -}; -export declare const ModuleConfig: { - encode(message: ModuleConfig, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): ModuleConfig; - fromPartial(object: DeepPartial): ModuleConfig; -}; diff --git a/packages/proto/types/codegen/cosmos/app/v1alpha1/module.d.ts b/packages/proto/types/codegen/cosmos/app/v1alpha1/module.d.ts deleted file mode 100644 index 0aea08c5..00000000 --- a/packages/proto/types/codegen/cosmos/app/v1alpha1/module.d.ts +++ /dev/null @@ -1,117 +0,0 @@ -import * as _m0 from "protobufjs/minimal"; -import { DeepPartial } from "../../../helpers"; -/** ModuleDescriptor describes an app module. */ -export interface ModuleDescriptor { - /** - * go_import names the package that should be imported by an app to load the - * module in the runtime module registry. Either go_import must be defined here - * or the go_package option must be defined at the file level to indicate - * to users where to location the module implementation. go_import takes - * precedence over go_package when both are defined. - */ - goImport: string; - /** - * use_package refers to a protobuf package that this module - * uses and exposes to the world. In an app, only one module should "use" - * or own a single protobuf package. It is assumed that the module uses - * all of the .proto files in a single package. - */ - usePackage: PackageReference[]; - /** - * can_migrate_from defines which module versions this module can migrate - * state from. The framework will check that one module version is able to - * migrate from a previous module version before attempting to update its - * config. It is assumed that modules can transitively migrate from earlier - * versions. For instance if v3 declares it can migrate from v2, and v2 - * declares it can migrate from v1, the framework knows how to migrate - * from v1 to v3, assuming all 3 module versions are registered at runtime. - */ - canMigrateFrom: MigrateFromInfo[]; -} -/** ModuleDescriptor describes an app module. */ -export interface ModuleDescriptorSDKType { - go_import: string; - use_package: PackageReferenceSDKType[]; - can_migrate_from: MigrateFromInfoSDKType[]; -} -/** PackageReference is a reference to a protobuf package used by a module. */ -export interface PackageReference { - /** name is the fully-qualified name of the package. */ - name: string; - /** - * revision is the optional revision of the package that is being used. - * Protobuf packages used in Cosmos should generally have a major version - * as the last part of the package name, ex. foo.bar.baz.v1. - * The revision of a package can be thought of as the minor version of a - * package which has additional backwards compatible definitions that weren't - * present in a previous version. - * - * A package should indicate its revision with a source code comment - * above the package declaration in one of its fields containing the - * test "Revision N" where N is an integer revision. All packages start - * at revision 0 the first time they are released in a module. - * - * When a new version of a module is released and items are added to existing - * .proto files, these definitions should contain comments of the form - * "Since Revision N" where N is an integer revision. - * - * When the module runtime starts up, it will check the pinned proto - * image and panic if there are runtime protobuf definitions that are not - * in the pinned descriptor which do not have - * a "Since Revision N" comment or have a "Since Revision N" comment where - * N is <= to the revision specified here. This indicates that the protobuf - * files have been updated, but the pinned file descriptor hasn't. - * - * If there are items in the pinned file descriptor with a revision - * greater than the value indicated here, this will also cause a panic - * as it may mean that the pinned descriptor for a legacy module has been - * improperly updated or that there is some other versioning discrepancy. - * Runtime protobuf definitions will also be checked for compatibility - * with pinned file descriptors to make sure there are no incompatible changes. - * - * This behavior ensures that: - * * pinned proto images are up-to-date - * * protobuf files are carefully annotated with revision comments which - * are important good client UX - * * protobuf files are changed in backwards and forwards compatible ways - */ - revision: number; -} -/** PackageReference is a reference to a protobuf package used by a module. */ -export interface PackageReferenceSDKType { - name: string; - revision: number; -} -/** - * MigrateFromInfo is information on a module version that a newer module - * can migrate from. - */ -export interface MigrateFromInfo { - /** - * module is the fully-qualified protobuf name of the module config object - * for the previous module version, ex: "cosmos.group.module.v1.Module". - */ - module: string; -} -/** - * MigrateFromInfo is information on a module version that a newer module - * can migrate from. - */ -export interface MigrateFromInfoSDKType { - module: string; -} -export declare const ModuleDescriptor: { - encode(message: ModuleDescriptor, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): ModuleDescriptor; - fromPartial(object: DeepPartial): ModuleDescriptor; -}; -export declare const PackageReference: { - encode(message: PackageReference, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): PackageReference; - fromPartial(object: DeepPartial): PackageReference; -}; -export declare const MigrateFromInfo: { - encode(message: MigrateFromInfo, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MigrateFromInfo; - fromPartial(object: DeepPartial): MigrateFromInfo; -}; diff --git a/packages/proto/types/codegen/cosmos/app/v1alpha1/query.d.ts b/packages/proto/types/codegen/cosmos/app/v1alpha1/query.d.ts deleted file mode 100644 index ee1c5504..00000000 --- a/packages/proto/types/codegen/cosmos/app/v1alpha1/query.d.ts +++ /dev/null @@ -1,28 +0,0 @@ -import { Config, ConfigSDKType } from "./config"; -import * as _m0 from "protobufjs/minimal"; -import { DeepPartial } from "../../../helpers"; -/** QueryConfigRequest is the Query/Config request type. */ -export interface QueryConfigRequest { -} -/** QueryConfigRequest is the Query/Config request type. */ -export interface QueryConfigRequestSDKType { -} -/** QueryConfigRequest is the Query/Config response type. */ -export interface QueryConfigResponse { - /** config is the current app config. */ - config: Config; -} -/** QueryConfigRequest is the Query/Config response type. */ -export interface QueryConfigResponseSDKType { - config: ConfigSDKType; -} -export declare const QueryConfigRequest: { - encode(_: QueryConfigRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryConfigRequest; - fromPartial(_: DeepPartial): QueryConfigRequest; -}; -export declare const QueryConfigResponse: { - encode(message: QueryConfigResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryConfigResponse; - fromPartial(object: DeepPartial): QueryConfigResponse; -}; diff --git a/packages/proto/types/codegen/cosmos/app/v1alpha1/query.rpc.query.d.ts b/packages/proto/types/codegen/cosmos/app/v1alpha1/query.rpc.query.d.ts deleted file mode 100644 index fba77406..00000000 --- a/packages/proto/types/codegen/cosmos/app/v1alpha1/query.rpc.query.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { Rpc } from "@osmonauts/helpers"; -import { QueryClient } from "@cosmjs/stargate"; -import { QueryConfigRequest, QueryConfigResponse } from "./query"; -/** Query defines the RPC service */ -export interface Query { - config(request?: QueryConfigRequest): Promise; -} -export declare class QueryClientImpl implements Query { - private readonly rpc; - constructor(rpc: Rpc); - config(request?: QueryConfigRequest): Promise; -} -export declare const createRpcQueryExtension: (base: QueryClient) => { - config(request?: QueryConfigRequest): Promise; -}; diff --git a/packages/proto/types/codegen/cosmos/auth/v1beta1/query.rpc.query.d.ts b/packages/proto/types/codegen/cosmos/auth/v1beta1/query.rpc.query.d.ts index 480fee62..6e3b8d77 100644 --- a/packages/proto/types/codegen/cosmos/auth/v1beta1/query.rpc.query.d.ts +++ b/packages/proto/types/codegen/cosmos/auth/v1beta1/query.rpc.query.d.ts @@ -1,14 +1,25 @@ -import { Rpc } from "@osmonauts/helpers"; +import { Rpc } from "../../../helpers"; import { QueryClient } from "@cosmjs/stargate"; import { QueryAccountsRequest, QueryAccountsResponse, QueryAccountRequest, QueryAccountResponse, QueryParamsRequest, QueryParamsResponse, QueryModuleAccountsRequest, QueryModuleAccountsResponse, Bech32PrefixRequest, Bech32PrefixResponse, AddressBytesToStringRequest, AddressBytesToStringResponse, AddressStringToBytesRequest, AddressStringToBytesResponse } from "./query"; -/** Query defines the RPC service */ +/** Query defines the gRPC querier service. */ export interface Query { + /** + * Accounts returns all the existing accounts + * + * Since: cosmos-sdk 0.43 + */ accounts(request?: QueryAccountsRequest): Promise; + /** Account returns account details based on address. */ account(request: QueryAccountRequest): Promise; + /** Params queries all parameters. */ params(request?: QueryParamsRequest): Promise; + /** ModuleAccounts returns all the existing module accounts. */ moduleAccounts(request?: QueryModuleAccountsRequest): Promise; + /** Bech32 queries bech32Prefix */ bech32Prefix(request?: Bech32PrefixRequest): Promise; + /** AddressBytesToString converts Account Address bytes to string */ addressBytesToString(request: AddressBytesToStringRequest): Promise; + /** AddressStringToBytes converts Address string to bytes */ addressStringToBytes(request: AddressStringToBytesRequest): Promise; } export declare class QueryClientImpl implements Query { diff --git a/packages/proto/types/codegen/cosmos/authz/v1beta1/query.rpc.query.d.ts b/packages/proto/types/codegen/cosmos/authz/v1beta1/query.rpc.query.d.ts index 17f639ad..d7f1381d 100644 --- a/packages/proto/types/codegen/cosmos/authz/v1beta1/query.rpc.query.d.ts +++ b/packages/proto/types/codegen/cosmos/authz/v1beta1/query.rpc.query.d.ts @@ -1,10 +1,21 @@ -import { Rpc } from "@osmonauts/helpers"; +import { Rpc } from "../../../helpers"; import { QueryClient } from "@cosmjs/stargate"; import { QueryGrantsRequest, QueryGrantsResponse, QueryGranterGrantsRequest, QueryGranterGrantsResponse, QueryGranteeGrantsRequest, QueryGranteeGrantsResponse } from "./query"; -/** Query defines the RPC service */ +/** Query defines the gRPC querier service. */ export interface Query { + /** Returns list of `Authorization`, granted to the grantee by the granter. */ grants(request: QueryGrantsRequest): Promise; + /** + * GranterGrants returns list of `GrantAuthorization`, granted by granter. + * + * Since: cosmos-sdk 0.46 + */ granterGrants(request: QueryGranterGrantsRequest): Promise; + /** + * GranteeGrants returns a list of `GrantAuthorization` by grantee. + * + * Since: cosmos-sdk 0.46 + */ granteeGrants(request: QueryGranteeGrantsRequest): Promise; } export declare class QueryClientImpl implements Query { diff --git a/packages/proto/types/codegen/cosmos/authz/v1beta1/tx.rpc.msg.d.ts b/packages/proto/types/codegen/cosmos/authz/v1beta1/tx.rpc.msg.d.ts index 58347155..3bcce35a 100644 --- a/packages/proto/types/codegen/cosmos/authz/v1beta1/tx.rpc.msg.d.ts +++ b/packages/proto/types/codegen/cosmos/authz/v1beta1/tx.rpc.msg.d.ts @@ -1,9 +1,24 @@ -import { Rpc } from "@osmonauts/helpers"; +import { Rpc } from "../../../helpers"; import { MsgGrant, MsgGrantResponse, MsgExec, MsgExecResponse, MsgRevoke, MsgRevokeResponse } from "./tx"; -/** Msg defines the RPC service */ +/** Msg defines the authz Msg service. */ export interface Msg { + /** + * Grant grants the provided authorization to the grantee on the granter's + * account with the provided expiration time. If there is already a grant + * for the given (granter, grantee, Authorization) triple, then the grant + * will be overwritten. + */ grant(request: MsgGrant): Promise; + /** + * Exec attempts to execute the provided messages using + * authorizations granted to the grantee. Each message should have only + * one signer corresponding to the granter of the authorization. + */ exec(request: MsgExec): Promise; + /** + * Revoke revokes any authorization corresponding to the provided method name on the + * granter's account that has been granted to the grantee. + */ revoke(request: MsgRevoke): Promise; } export declare class MsgClientImpl implements Msg { diff --git a/packages/proto/types/codegen/cosmos/bank/v1beta1/query.rpc.query.d.ts b/packages/proto/types/codegen/cosmos/bank/v1beta1/query.rpc.query.d.ts index 6d573b68..d746df09 100644 --- a/packages/proto/types/codegen/cosmos/bank/v1beta1/query.rpc.query.d.ts +++ b/packages/proto/types/codegen/cosmos/bank/v1beta1/query.rpc.query.d.ts @@ -1,16 +1,34 @@ -import { Rpc } from "@osmonauts/helpers"; +import { Rpc } from "../../../helpers"; import { QueryClient } from "@cosmjs/stargate"; import { QueryBalanceRequest, QueryBalanceResponse, QueryAllBalancesRequest, QueryAllBalancesResponse, QuerySpendableBalancesRequest, QuerySpendableBalancesResponse, QueryTotalSupplyRequest, QueryTotalSupplyResponse, QuerySupplyOfRequest, QuerySupplyOfResponse, QueryParamsRequest, QueryParamsResponse, QueryDenomMetadataRequest, QueryDenomMetadataResponse, QueryDenomsMetadataRequest, QueryDenomsMetadataResponse, QueryDenomOwnersRequest, QueryDenomOwnersResponse } from "./query"; -/** Query defines the RPC service */ +/** Query defines the gRPC querier service. */ export interface Query { + /** Balance queries the balance of a single coin for a single account. */ balance(request: QueryBalanceRequest): Promise; + /** AllBalances queries the balance of all coins for a single account. */ allBalances(request: QueryAllBalancesRequest): Promise; + /** + * SpendableBalances queries the spenable balance of all coins for a single + * account. + */ spendableBalances(request: QuerySpendableBalancesRequest): Promise; + /** TotalSupply queries the total supply of all coins. */ totalSupply(request?: QueryTotalSupplyRequest): Promise; + /** SupplyOf queries the supply of a single coin. */ supplyOf(request: QuerySupplyOfRequest): Promise; + /** Params queries the parameters of x/bank module. */ params(request?: QueryParamsRequest): Promise; + /** DenomsMetadata queries the client metadata of a given coin denomination. */ denomMetadata(request: QueryDenomMetadataRequest): Promise; + /** + * DenomsMetadata queries the client metadata for all registered coin + * denominations. + */ denomsMetadata(request?: QueryDenomsMetadataRequest): Promise; + /** + * DenomOwners queries for all account addresses that own a particular token + * denomination. + */ denomOwners(request: QueryDenomOwnersRequest): Promise; } export declare class QueryClientImpl implements Query { diff --git a/packages/proto/types/codegen/cosmos/bank/v1beta1/tx.rpc.msg.d.ts b/packages/proto/types/codegen/cosmos/bank/v1beta1/tx.rpc.msg.d.ts index e2b3c3e1..ac12e6ab 100644 --- a/packages/proto/types/codegen/cosmos/bank/v1beta1/tx.rpc.msg.d.ts +++ b/packages/proto/types/codegen/cosmos/bank/v1beta1/tx.rpc.msg.d.ts @@ -1,8 +1,10 @@ -import { Rpc } from "@osmonauts/helpers"; +import { Rpc } from "../../../helpers"; import { MsgSend, MsgSendResponse, MsgMultiSend, MsgMultiSendResponse } from "./tx"; -/** Msg defines the RPC service */ +/** Msg defines the bank Msg service. */ export interface Msg { + /** Send defines a method for sending coins from one account to another account. */ send(request: MsgSend): Promise; + /** MultiSend defines a method for sending coins from some accounts to other accounts. */ multiSend(request: MsgMultiSend): Promise; } export declare class MsgClientImpl implements Msg { diff --git a/packages/proto/types/codegen/cosmos/base/kv/v1beta1/kv.d.ts b/packages/proto/types/codegen/cosmos/base/kv/v1beta1/kv.d.ts deleted file mode 100644 index 9f6271ce..00000000 --- a/packages/proto/types/codegen/cosmos/base/kv/v1beta1/kv.d.ts +++ /dev/null @@ -1,30 +0,0 @@ -import * as _m0 from "protobufjs/minimal"; -import { DeepPartial } from "../../../../helpers"; -/** Pairs defines a repeated slice of Pair objects. */ -export interface Pairs { - pairs: Pair[]; -} -/** Pairs defines a repeated slice of Pair objects. */ -export interface PairsSDKType { - pairs: PairSDKType[]; -} -/** Pair defines a key/value bytes tuple. */ -export interface Pair { - key: Uint8Array; - value: Uint8Array; -} -/** Pair defines a key/value bytes tuple. */ -export interface PairSDKType { - key: Uint8Array; - value: Uint8Array; -} -export declare const Pairs: { - encode(message: Pairs, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): Pairs; - fromPartial(object: DeepPartial): Pairs; -}; -export declare const Pair: { - encode(message: Pair, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): Pair; - fromPartial(object: DeepPartial): Pair; -}; diff --git a/packages/proto/types/codegen/cosmos/base/reflection/v1beta1/reflection.d.ts b/packages/proto/types/codegen/cosmos/base/reflection/v1beta1/reflection.d.ts deleted file mode 100644 index afa8751c..00000000 --- a/packages/proto/types/codegen/cosmos/base/reflection/v1beta1/reflection.d.ts +++ /dev/null @@ -1,66 +0,0 @@ -import * as _m0 from "protobufjs/minimal"; -import { DeepPartial } from "../../../../helpers"; -/** ListAllInterfacesRequest is the request type of the ListAllInterfaces RPC. */ -export interface ListAllInterfacesRequest { -} -/** ListAllInterfacesRequest is the request type of the ListAllInterfaces RPC. */ -export interface ListAllInterfacesRequestSDKType { -} -/** ListAllInterfacesResponse is the response type of the ListAllInterfaces RPC. */ -export interface ListAllInterfacesResponse { - /** interface_names is an array of all the registered interfaces. */ - interfaceNames: string[]; -} -/** ListAllInterfacesResponse is the response type of the ListAllInterfaces RPC. */ -export interface ListAllInterfacesResponseSDKType { - interface_names: string[]; -} -/** - * ListImplementationsRequest is the request type of the ListImplementations - * RPC. - */ -export interface ListImplementationsRequest { - /** interface_name defines the interface to query the implementations for. */ - interfaceName: string; -} -/** - * ListImplementationsRequest is the request type of the ListImplementations - * RPC. - */ -export interface ListImplementationsRequestSDKType { - interface_name: string; -} -/** - * ListImplementationsResponse is the response type of the ListImplementations - * RPC. - */ -export interface ListImplementationsResponse { - implementationMessageNames: string[]; -} -/** - * ListImplementationsResponse is the response type of the ListImplementations - * RPC. - */ -export interface ListImplementationsResponseSDKType { - implementation_message_names: string[]; -} -export declare const ListAllInterfacesRequest: { - encode(_: ListAllInterfacesRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): ListAllInterfacesRequest; - fromPartial(_: DeepPartial): ListAllInterfacesRequest; -}; -export declare const ListAllInterfacesResponse: { - encode(message: ListAllInterfacesResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): ListAllInterfacesResponse; - fromPartial(object: DeepPartial): ListAllInterfacesResponse; -}; -export declare const ListImplementationsRequest: { - encode(message: ListImplementationsRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): ListImplementationsRequest; - fromPartial(object: DeepPartial): ListImplementationsRequest; -}; -export declare const ListImplementationsResponse: { - encode(message: ListImplementationsResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): ListImplementationsResponse; - fromPartial(object: DeepPartial): ListImplementationsResponse; -}; diff --git a/packages/proto/types/codegen/cosmos/base/snapshots/v1beta1/snapshot.d.ts b/packages/proto/types/codegen/cosmos/base/snapshots/v1beta1/snapshot.d.ts deleted file mode 100644 index f815469f..00000000 --- a/packages/proto/types/codegen/cosmos/base/snapshots/v1beta1/snapshot.d.ts +++ /dev/null @@ -1,150 +0,0 @@ -import { Long, DeepPartial } from "../../../../helpers"; -import * as _m0 from "protobufjs/minimal"; -/** Snapshot contains Tendermint state sync snapshot info. */ -export interface Snapshot { - height: Long; - format: number; - chunks: number; - hash: Uint8Array; - metadata: Metadata; -} -/** Snapshot contains Tendermint state sync snapshot info. */ -export interface SnapshotSDKType { - height: Long; - format: number; - chunks: number; - hash: Uint8Array; - metadata: MetadataSDKType; -} -/** Metadata contains SDK-specific snapshot metadata. */ -export interface Metadata { - /** SHA-256 chunk hashes */ - chunkHashes: Uint8Array[]; -} -/** Metadata contains SDK-specific snapshot metadata. */ -export interface MetadataSDKType { - chunk_hashes: Uint8Array[]; -} -/** SnapshotItem is an item contained in a rootmulti.Store snapshot. */ -export interface SnapshotItem { - store?: SnapshotStoreItem; - iavl?: SnapshotIAVLItem; - extension?: SnapshotExtensionMeta; - extensionPayload?: SnapshotExtensionPayload; - kv?: SnapshotKVItem; - schema?: SnapshotSchema; -} -/** SnapshotItem is an item contained in a rootmulti.Store snapshot. */ -export interface SnapshotItemSDKType { - store?: SnapshotStoreItemSDKType; - iavl?: SnapshotIAVLItemSDKType; - extension?: SnapshotExtensionMetaSDKType; - extension_payload?: SnapshotExtensionPayloadSDKType; - kv?: SnapshotKVItemSDKType; - schema?: SnapshotSchemaSDKType; -} -/** SnapshotStoreItem contains metadata about a snapshotted store. */ -export interface SnapshotStoreItem { - name: string; -} -/** SnapshotStoreItem contains metadata about a snapshotted store. */ -export interface SnapshotStoreItemSDKType { - name: string; -} -/** SnapshotIAVLItem is an exported IAVL node. */ -export interface SnapshotIAVLItem { - key: Uint8Array; - value: Uint8Array; - /** version is block height */ - version: Long; - /** height is depth of the tree. */ - height: number; -} -/** SnapshotIAVLItem is an exported IAVL node. */ -export interface SnapshotIAVLItemSDKType { - key: Uint8Array; - value: Uint8Array; - version: Long; - height: number; -} -/** SnapshotExtensionMeta contains metadata about an external snapshotter. */ -export interface SnapshotExtensionMeta { - name: string; - format: number; -} -/** SnapshotExtensionMeta contains metadata about an external snapshotter. */ -export interface SnapshotExtensionMetaSDKType { - name: string; - format: number; -} -/** SnapshotExtensionPayload contains payloads of an external snapshotter. */ -export interface SnapshotExtensionPayload { - payload: Uint8Array; -} -/** SnapshotExtensionPayload contains payloads of an external snapshotter. */ -export interface SnapshotExtensionPayloadSDKType { - payload: Uint8Array; -} -/** SnapshotKVItem is an exported Key/Value Pair */ -export interface SnapshotKVItem { - key: Uint8Array; - value: Uint8Array; -} -/** SnapshotKVItem is an exported Key/Value Pair */ -export interface SnapshotKVItemSDKType { - key: Uint8Array; - value: Uint8Array; -} -/** SnapshotSchema is an exported schema of smt store */ -export interface SnapshotSchema { - keys: Uint8Array[]; -} -/** SnapshotSchema is an exported schema of smt store */ -export interface SnapshotSchemaSDKType { - keys: Uint8Array[]; -} -export declare const Snapshot: { - encode(message: Snapshot, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): Snapshot; - fromPartial(object: DeepPartial): Snapshot; -}; -export declare const Metadata: { - encode(message: Metadata, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): Metadata; - fromPartial(object: DeepPartial): Metadata; -}; -export declare const SnapshotItem: { - encode(message: SnapshotItem, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): SnapshotItem; - fromPartial(object: DeepPartial): SnapshotItem; -}; -export declare const SnapshotStoreItem: { - encode(message: SnapshotStoreItem, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): SnapshotStoreItem; - fromPartial(object: DeepPartial): SnapshotStoreItem; -}; -export declare const SnapshotIAVLItem: { - encode(message: SnapshotIAVLItem, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): SnapshotIAVLItem; - fromPartial(object: DeepPartial): SnapshotIAVLItem; -}; -export declare const SnapshotExtensionMeta: { - encode(message: SnapshotExtensionMeta, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): SnapshotExtensionMeta; - fromPartial(object: DeepPartial): SnapshotExtensionMeta; -}; -export declare const SnapshotExtensionPayload: { - encode(message: SnapshotExtensionPayload, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): SnapshotExtensionPayload; - fromPartial(object: DeepPartial): SnapshotExtensionPayload; -}; -export declare const SnapshotKVItem: { - encode(message: SnapshotKVItem, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): SnapshotKVItem; - fromPartial(object: DeepPartial): SnapshotKVItem; -}; -export declare const SnapshotSchema: { - encode(message: SnapshotSchema, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): SnapshotSchema; - fromPartial(object: DeepPartial): SnapshotSchema; -}; diff --git a/packages/proto/types/codegen/cosmos/base/store/v1beta1/commit_info.d.ts b/packages/proto/types/codegen/cosmos/base/store/v1beta1/commit_info.d.ts deleted file mode 100644 index 2105d9c4..00000000 --- a/packages/proto/types/codegen/cosmos/base/store/v1beta1/commit_info.d.ts +++ /dev/null @@ -1,65 +0,0 @@ -import { Long, DeepPartial } from "../../../../helpers"; -import * as _m0 from "protobufjs/minimal"; -/** - * CommitInfo defines commit information used by the multi-store when committing - * a version/height. - */ -export interface CommitInfo { - version: Long; - storeInfos: StoreInfo[]; -} -/** - * CommitInfo defines commit information used by the multi-store when committing - * a version/height. - */ -export interface CommitInfoSDKType { - version: Long; - store_infos: StoreInfoSDKType[]; -} -/** - * StoreInfo defines store-specific commit information. It contains a reference - * between a store name and the commit ID. - */ -export interface StoreInfo { - name: string; - commitId: CommitID; -} -/** - * StoreInfo defines store-specific commit information. It contains a reference - * between a store name and the commit ID. - */ -export interface StoreInfoSDKType { - name: string; - commit_id: CommitIDSDKType; -} -/** - * CommitID defines the committment information when a specific store is - * committed. - */ -export interface CommitID { - version: Long; - hash: Uint8Array; -} -/** - * CommitID defines the committment information when a specific store is - * committed. - */ -export interface CommitIDSDKType { - version: Long; - hash: Uint8Array; -} -export declare const CommitInfo: { - encode(message: CommitInfo, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): CommitInfo; - fromPartial(object: DeepPartial): CommitInfo; -}; -export declare const StoreInfo: { - encode(message: StoreInfo, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): StoreInfo; - fromPartial(object: DeepPartial): StoreInfo; -}; -export declare const CommitID: { - encode(message: CommitID, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): CommitID; - fromPartial(object: DeepPartial): CommitID; -}; diff --git a/packages/proto/types/codegen/cosmos/base/store/v1beta1/listening.d.ts b/packages/proto/types/codegen/cosmos/base/store/v1beta1/listening.d.ts deleted file mode 100644 index 463f289b..00000000 --- a/packages/proto/types/codegen/cosmos/base/store/v1beta1/listening.d.ts +++ /dev/null @@ -1,35 +0,0 @@ -import * as _m0 from "protobufjs/minimal"; -import { DeepPartial } from "../../../../helpers"; -/** - * StoreKVPair is a KVStore KVPair used for listening to state changes (Sets and Deletes) - * It optionally includes the StoreKey for the originating KVStore and a Boolean flag to distinguish between Sets and - * Deletes - * - * Since: cosmos-sdk 0.43 - */ -export interface StoreKVPair { - /** the store key for the KVStore this pair originates from */ - storeKey: string; - /** true indicates a delete operation, false indicates a set operation */ - delete: boolean; - key: Uint8Array; - value: Uint8Array; -} -/** - * StoreKVPair is a KVStore KVPair used for listening to state changes (Sets and Deletes) - * It optionally includes the StoreKey for the originating KVStore and a Boolean flag to distinguish between Sets and - * Deletes - * - * Since: cosmos-sdk 0.43 - */ -export interface StoreKVPairSDKType { - store_key: string; - delete: boolean; - key: Uint8Array; - value: Uint8Array; -} -export declare const StoreKVPair: { - encode(message: StoreKVPair, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): StoreKVPair; - fromPartial(object: DeepPartial): StoreKVPair; -}; diff --git a/packages/proto/types/codegen/cosmos/base/tendermint/v1beta1/query.d.ts b/packages/proto/types/codegen/cosmos/base/tendermint/v1beta1/query.d.ts deleted file mode 100644 index 33a32fe2..00000000 --- a/packages/proto/types/codegen/cosmos/base/tendermint/v1beta1/query.d.ts +++ /dev/null @@ -1,244 +0,0 @@ -import { PageRequest, PageRequestSDKType, PageResponse, PageResponseSDKType } from "../../query/v1beta1/pagination"; -import { Any, AnySDKType } from "../../../../google/protobuf/any"; -import { BlockID, BlockIDSDKType } from "../../../../tendermint/types/types"; -import { Block, BlockSDKType } from "../../../../tendermint/types/block"; -import { NodeInfo, NodeInfoSDKType } from "../../../../tendermint/p2p/types"; -import { Long, DeepPartial } from "../../../../helpers"; -import * as _m0 from "protobufjs/minimal"; -/** GetValidatorSetByHeightRequest is the request type for the Query/GetValidatorSetByHeight RPC method. */ -export interface GetValidatorSetByHeightRequest { - height: Long; - /** pagination defines an pagination for the request. */ - pagination: PageRequest; -} -/** GetValidatorSetByHeightRequest is the request type for the Query/GetValidatorSetByHeight RPC method. */ -export interface GetValidatorSetByHeightRequestSDKType { - height: Long; - pagination: PageRequestSDKType; -} -/** GetValidatorSetByHeightResponse is the response type for the Query/GetValidatorSetByHeight RPC method. */ -export interface GetValidatorSetByHeightResponse { - blockHeight: Long; - validators: Validator[]; - /** pagination defines an pagination for the response. */ - pagination: PageResponse; -} -/** GetValidatorSetByHeightResponse is the response type for the Query/GetValidatorSetByHeight RPC method. */ -export interface GetValidatorSetByHeightResponseSDKType { - block_height: Long; - validators: ValidatorSDKType[]; - pagination: PageResponseSDKType; -} -/** GetLatestValidatorSetRequest is the request type for the Query/GetValidatorSetByHeight RPC method. */ -export interface GetLatestValidatorSetRequest { - /** pagination defines an pagination for the request. */ - pagination: PageRequest; -} -/** GetLatestValidatorSetRequest is the request type for the Query/GetValidatorSetByHeight RPC method. */ -export interface GetLatestValidatorSetRequestSDKType { - pagination: PageRequestSDKType; -} -/** GetLatestValidatorSetResponse is the response type for the Query/GetValidatorSetByHeight RPC method. */ -export interface GetLatestValidatorSetResponse { - blockHeight: Long; - validators: Validator[]; - /** pagination defines an pagination for the response. */ - pagination: PageResponse; -} -/** GetLatestValidatorSetResponse is the response type for the Query/GetValidatorSetByHeight RPC method. */ -export interface GetLatestValidatorSetResponseSDKType { - block_height: Long; - validators: ValidatorSDKType[]; - pagination: PageResponseSDKType; -} -/** Validator is the type for the validator-set. */ -export interface Validator { - address: string; - pubKey: Any; - votingPower: Long; - proposerPriority: Long; -} -/** Validator is the type for the validator-set. */ -export interface ValidatorSDKType { - address: string; - pub_key: AnySDKType; - voting_power: Long; - proposer_priority: Long; -} -/** GetBlockByHeightRequest is the request type for the Query/GetBlockByHeight RPC method. */ -export interface GetBlockByHeightRequest { - height: Long; -} -/** GetBlockByHeightRequest is the request type for the Query/GetBlockByHeight RPC method. */ -export interface GetBlockByHeightRequestSDKType { - height: Long; -} -/** GetBlockByHeightResponse is the response type for the Query/GetBlockByHeight RPC method. */ -export interface GetBlockByHeightResponse { - blockId: BlockID; - block: Block; -} -/** GetBlockByHeightResponse is the response type for the Query/GetBlockByHeight RPC method. */ -export interface GetBlockByHeightResponseSDKType { - block_id: BlockIDSDKType; - block: BlockSDKType; -} -/** GetLatestBlockRequest is the request type for the Query/GetLatestBlock RPC method. */ -export interface GetLatestBlockRequest { -} -/** GetLatestBlockRequest is the request type for the Query/GetLatestBlock RPC method. */ -export interface GetLatestBlockRequestSDKType { -} -/** GetLatestBlockResponse is the response type for the Query/GetLatestBlock RPC method. */ -export interface GetLatestBlockResponse { - blockId: BlockID; - block: Block; -} -/** GetLatestBlockResponse is the response type for the Query/GetLatestBlock RPC method. */ -export interface GetLatestBlockResponseSDKType { - block_id: BlockIDSDKType; - block: BlockSDKType; -} -/** GetSyncingRequest is the request type for the Query/GetSyncing RPC method. */ -export interface GetSyncingRequest { -} -/** GetSyncingRequest is the request type for the Query/GetSyncing RPC method. */ -export interface GetSyncingRequestSDKType { -} -/** GetSyncingResponse is the response type for the Query/GetSyncing RPC method. */ -export interface GetSyncingResponse { - syncing: boolean; -} -/** GetSyncingResponse is the response type for the Query/GetSyncing RPC method. */ -export interface GetSyncingResponseSDKType { - syncing: boolean; -} -/** GetNodeInfoRequest is the request type for the Query/GetNodeInfo RPC method. */ -export interface GetNodeInfoRequest { -} -/** GetNodeInfoRequest is the request type for the Query/GetNodeInfo RPC method. */ -export interface GetNodeInfoRequestSDKType { -} -/** GetNodeInfoResponse is the response type for the Query/GetNodeInfo RPC method. */ -export interface GetNodeInfoResponse { - nodeInfo: NodeInfo; - applicationVersion: VersionInfo; -} -/** GetNodeInfoResponse is the response type for the Query/GetNodeInfo RPC method. */ -export interface GetNodeInfoResponseSDKType { - node_info: NodeInfoSDKType; - application_version: VersionInfoSDKType; -} -/** VersionInfo is the type for the GetNodeInfoResponse message. */ -export interface VersionInfo { - name: string; - appName: string; - version: string; - gitCommit: string; - buildTags: string; - goVersion: string; - buildDeps: Module[]; - /** Since: cosmos-sdk 0.43 */ - cosmosSdkVersion: string; -} -/** VersionInfo is the type for the GetNodeInfoResponse message. */ -export interface VersionInfoSDKType { - name: string; - app_name: string; - version: string; - git_commit: string; - build_tags: string; - go_version: string; - build_deps: ModuleSDKType[]; - cosmos_sdk_version: string; -} -/** Module is the type for VersionInfo */ -export interface Module { - /** module path */ - path: string; - /** module version */ - version: string; - /** checksum */ - sum: string; -} -/** Module is the type for VersionInfo */ -export interface ModuleSDKType { - path: string; - version: string; - sum: string; -} -export declare const GetValidatorSetByHeightRequest: { - encode(message: GetValidatorSetByHeightRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): GetValidatorSetByHeightRequest; - fromPartial(object: DeepPartial): GetValidatorSetByHeightRequest; -}; -export declare const GetValidatorSetByHeightResponse: { - encode(message: GetValidatorSetByHeightResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): GetValidatorSetByHeightResponse; - fromPartial(object: DeepPartial): GetValidatorSetByHeightResponse; -}; -export declare const GetLatestValidatorSetRequest: { - encode(message: GetLatestValidatorSetRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): GetLatestValidatorSetRequest; - fromPartial(object: DeepPartial): GetLatestValidatorSetRequest; -}; -export declare const GetLatestValidatorSetResponse: { - encode(message: GetLatestValidatorSetResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): GetLatestValidatorSetResponse; - fromPartial(object: DeepPartial): GetLatestValidatorSetResponse; -}; -export declare const Validator: { - encode(message: Validator, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): Validator; - fromPartial(object: DeepPartial): Validator; -}; -export declare const GetBlockByHeightRequest: { - encode(message: GetBlockByHeightRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): GetBlockByHeightRequest; - fromPartial(object: DeepPartial): GetBlockByHeightRequest; -}; -export declare const GetBlockByHeightResponse: { - encode(message: GetBlockByHeightResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): GetBlockByHeightResponse; - fromPartial(object: DeepPartial): GetBlockByHeightResponse; -}; -export declare const GetLatestBlockRequest: { - encode(_: GetLatestBlockRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): GetLatestBlockRequest; - fromPartial(_: DeepPartial): GetLatestBlockRequest; -}; -export declare const GetLatestBlockResponse: { - encode(message: GetLatestBlockResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): GetLatestBlockResponse; - fromPartial(object: DeepPartial): GetLatestBlockResponse; -}; -export declare const GetSyncingRequest: { - encode(_: GetSyncingRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): GetSyncingRequest; - fromPartial(_: DeepPartial): GetSyncingRequest; -}; -export declare const GetSyncingResponse: { - encode(message: GetSyncingResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): GetSyncingResponse; - fromPartial(object: DeepPartial): GetSyncingResponse; -}; -export declare const GetNodeInfoRequest: { - encode(_: GetNodeInfoRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): GetNodeInfoRequest; - fromPartial(_: DeepPartial): GetNodeInfoRequest; -}; -export declare const GetNodeInfoResponse: { - encode(message: GetNodeInfoResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): GetNodeInfoResponse; - fromPartial(object: DeepPartial): GetNodeInfoResponse; -}; -export declare const VersionInfo: { - encode(message: VersionInfo, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): VersionInfo; - fromPartial(object: DeepPartial): VersionInfo; -}; -export declare const Module: { - encode(message: Module, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): Module; - fromPartial(object: DeepPartial): Module; -}; diff --git a/packages/proto/types/codegen/cosmos/base/tendermint/v1beta1/query.lcd.d.ts b/packages/proto/types/codegen/cosmos/base/tendermint/v1beta1/query.lcd.d.ts deleted file mode 100644 index 2baf7f20..00000000 --- a/packages/proto/types/codegen/cosmos/base/tendermint/v1beta1/query.lcd.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { LCDClient } from "@osmonauts/lcd"; -import { GetNodeInfoRequest, GetNodeInfoResponseSDKType, GetSyncingRequest, GetSyncingResponseSDKType, GetLatestBlockRequest, GetLatestBlockResponseSDKType, GetBlockByHeightRequest, GetBlockByHeightResponseSDKType, GetLatestValidatorSetRequest, GetLatestValidatorSetResponseSDKType, GetValidatorSetByHeightRequest, GetValidatorSetByHeightResponseSDKType } from "./query"; -export declare class LCDQueryClient { - req: LCDClient; - constructor({ requestClient }: { - requestClient: LCDClient; - }); - getNodeInfo(_params?: GetNodeInfoRequest): Promise; - getSyncing(_params?: GetSyncingRequest): Promise; - getLatestBlock(_params?: GetLatestBlockRequest): Promise; - getBlockByHeight(params: GetBlockByHeightRequest): Promise; - getLatestValidatorSet(params?: GetLatestValidatorSetRequest): Promise; - getValidatorSetByHeight(params: GetValidatorSetByHeightRequest): Promise; -} diff --git a/packages/proto/types/codegen/cosmos/base/tendermint/v1beta1/query.rpc.svc.d.ts b/packages/proto/types/codegen/cosmos/base/tendermint/v1beta1/query.rpc.svc.d.ts deleted file mode 100644 index 927a95b1..00000000 --- a/packages/proto/types/codegen/cosmos/base/tendermint/v1beta1/query.rpc.svc.d.ts +++ /dev/null @@ -1,30 +0,0 @@ -import { Rpc } from "@osmonauts/helpers"; -import { QueryClient } from "@cosmjs/stargate"; -import { GetNodeInfoRequest, GetNodeInfoResponse, GetSyncingRequest, GetSyncingResponse, GetLatestBlockRequest, GetLatestBlockResponse, GetBlockByHeightRequest, GetBlockByHeightResponse, GetLatestValidatorSetRequest, GetLatestValidatorSetResponse, GetValidatorSetByHeightRequest, GetValidatorSetByHeightResponse } from "./query"; -/** Service defines the RPC service */ -export interface Service { - getNodeInfo(request?: GetNodeInfoRequest): Promise; - getSyncing(request?: GetSyncingRequest): Promise; - getLatestBlock(request?: GetLatestBlockRequest): Promise; - getBlockByHeight(request: GetBlockByHeightRequest): Promise; - getLatestValidatorSet(request?: GetLatestValidatorSetRequest): Promise; - getValidatorSetByHeight(request: GetValidatorSetByHeightRequest): Promise; -} -export declare class QueryClientImpl implements Service { - private readonly rpc; - constructor(rpc: Rpc); - getNodeInfo(request?: GetNodeInfoRequest): Promise; - getSyncing(request?: GetSyncingRequest): Promise; - getLatestBlock(request?: GetLatestBlockRequest): Promise; - getBlockByHeight(request: GetBlockByHeightRequest): Promise; - getLatestValidatorSet(request?: GetLatestValidatorSetRequest): Promise; - getValidatorSetByHeight(request: GetValidatorSetByHeightRequest): Promise; -} -export declare const createRpcQueryExtension: (base: QueryClient) => { - getNodeInfo(request?: GetNodeInfoRequest): Promise; - getSyncing(request?: GetSyncingRequest): Promise; - getLatestBlock(request?: GetLatestBlockRequest): Promise; - getBlockByHeight(request: GetBlockByHeightRequest): Promise; - getLatestValidatorSet(request?: GetLatestValidatorSetRequest): Promise; - getValidatorSetByHeight(request: GetValidatorSetByHeightRequest): Promise; -}; diff --git a/packages/proto/types/codegen/cosmos/bundle.d.ts b/packages/proto/types/codegen/cosmos/bundle.d.ts index 27e22efa..0d8bd432 100644 --- a/packages/proto/types/codegen/cosmos/bundle.d.ts +++ b/packages/proto/types/codegen/cosmos/bundle.d.ts @@ -1,299 +1,233 @@ -import * as _2 from "./app/v1alpha1/config"; -import * as _3 from "./app/v1alpha1/module"; -import * as _4 from "./app/v1alpha1/query"; -import * as _5 from "./auth/v1beta1/auth"; -import * as _6 from "./auth/v1beta1/genesis"; -import * as _7 from "./auth/v1beta1/query"; -import * as _8 from "./authz/v1beta1/authz"; -import * as _9 from "./authz/v1beta1/event"; -import * as _10 from "./authz/v1beta1/genesis"; -import * as _11 from "./authz/v1beta1/query"; -import * as _12 from "./authz/v1beta1/tx"; -import * as _13 from "./bank/v1beta1/authz"; -import * as _14 from "./bank/v1beta1/bank"; -import * as _15 from "./bank/v1beta1/genesis"; -import * as _16 from "./bank/v1beta1/query"; -import * as _17 from "./bank/v1beta1/tx"; -import * as _18 from "./base/abci/v1beta1/abci"; -import * as _19 from "./base/kv/v1beta1/kv"; -import * as _20 from "./base/query/v1beta1/pagination"; -import * as _21 from "./base/reflection/v1beta1/reflection"; -import * as _22 from "./base/reflection/v2alpha1/reflection"; -import * as _23 from "./base/snapshots/v1beta1/snapshot"; -import * as _24 from "./base/store/v1beta1/commit_info"; -import * as _25 from "./base/store/v1beta1/listening"; -import * as _26 from "./base/tendermint/v1beta1/query"; -import * as _27 from "./base/v1beta1/coin"; -import * as _28 from "./capability/v1beta1/capability"; -import * as _29 from "./capability/v1beta1/genesis"; -import * as _30 from "./crisis/v1beta1/genesis"; -import * as _31 from "./crisis/v1beta1/tx"; -import * as _32 from "./crypto/ed25519/keys"; -import * as _33 from "./crypto/hd/v1/hd"; -import * as _34 from "./crypto/keyring/v1/record"; -import * as _35 from "./crypto/multisig/keys"; -import * as _36 from "./crypto/secp256k1/keys"; -import * as _37 from "./crypto/secp256r1/keys"; -import * as _38 from "./distribution/v1beta1/distribution"; -import * as _39 from "./distribution/v1beta1/genesis"; -import * as _40 from "./distribution/v1beta1/query"; -import * as _41 from "./distribution/v1beta1/tx"; -import * as _42 from "./evidence/v1beta1/evidence"; -import * as _43 from "./evidence/v1beta1/genesis"; -import * as _44 from "./evidence/v1beta1/query"; -import * as _45 from "./evidence/v1beta1/tx"; -import * as _46 from "./feegrant/v1beta1/feegrant"; -import * as _47 from "./feegrant/v1beta1/genesis"; -import * as _48 from "./feegrant/v1beta1/query"; -import * as _49 from "./feegrant/v1beta1/tx"; -import * as _50 from "./genutil/v1beta1/genesis"; -import * as _51 from "./gov/v1/genesis"; -import * as _52 from "./gov/v1/gov"; -import * as _53 from "./gov/v1/query"; -import * as _54 from "./gov/v1/tx"; -import * as _55 from "./gov/v1beta1/genesis"; -import * as _56 from "./gov/v1beta1/gov"; -import * as _57 from "./gov/v1beta1/query"; -import * as _58 from "./gov/v1beta1/tx"; -import * as _59 from "./group/v1/events"; -import * as _60 from "./group/v1/genesis"; -import * as _61 from "./group/v1/query"; -import * as _62 from "./group/v1/tx"; -import * as _63 from "./group/v1/types"; -import * as _64 from "./mint/v1beta1/genesis"; -import * as _65 from "./mint/v1beta1/mint"; -import * as _66 from "./mint/v1beta1/query"; -import * as _68 from "./nft/v1beta1/event"; -import * as _69 from "./nft/v1beta1/genesis"; -import * as _70 from "./nft/v1beta1/nft"; -import * as _71 from "./nft/v1beta1/query"; -import * as _72 from "./nft/v1beta1/tx"; -import * as _73 from "./orm/v1/orm"; -import * as _74 from "./orm/v1alpha1/schema"; -import * as _75 from "./params/v1beta1/params"; -import * as _76 from "./params/v1beta1/query"; -import * as _77 from "./slashing/v1beta1/genesis"; -import * as _78 from "./slashing/v1beta1/query"; -import * as _79 from "./slashing/v1beta1/slashing"; -import * as _80 from "./slashing/v1beta1/tx"; -import * as _81 from "./staking/v1beta1/authz"; -import * as _82 from "./staking/v1beta1/genesis"; -import * as _83 from "./staking/v1beta1/query"; -import * as _84 from "./staking/v1beta1/staking"; -import * as _85 from "./staking/v1beta1/tx"; -import * as _86 from "./tx/signing/v1beta1/signing"; -import * as _87 from "./tx/v1beta1/service"; -import * as _88 from "./tx/v1beta1/tx"; -import * as _89 from "./upgrade/v1beta1/query"; -import * as _90 from "./upgrade/v1beta1/tx"; -import * as _91 from "./upgrade/v1beta1/upgrade"; -import * as _92 from "./vesting/v1beta1/tx"; -import * as _93 from "./vesting/v1beta1/vesting"; -import * as _208 from "./auth/v1beta1/query.lcd"; -import * as _209 from "./authz/v1beta1/query.lcd"; -import * as _210 from "./bank/v1beta1/query.lcd"; -import * as _211 from "./base/tendermint/v1beta1/query.lcd"; -import * as _212 from "./distribution/v1beta1/query.lcd"; -import * as _213 from "./evidence/v1beta1/query.lcd"; -import * as _214 from "./feegrant/v1beta1/query.lcd"; -import * as _215 from "./gov/v1/query.lcd"; -import * as _216 from "./gov/v1beta1/query.lcd"; -import * as _217 from "./group/v1/query.lcd"; -import * as _218 from "./mint/v1beta1/query.lcd"; -import * as _219 from "./nft/v1beta1/query.lcd"; -import * as _220 from "./params/v1beta1/query.lcd"; -import * as _221 from "./slashing/v1beta1/query.lcd"; -import * as _222 from "./staking/v1beta1/query.lcd"; -import * as _223 from "./tx/v1beta1/service.lcd"; -import * as _224 from "./upgrade/v1beta1/query.lcd"; +import * as _2 from "./auth/v1beta1/auth"; +import * as _3 from "./auth/v1beta1/genesis"; +import * as _4 from "./auth/v1beta1/query"; +import * as _5 from "./authz/v1beta1/authz"; +import * as _6 from "./authz/v1beta1/event"; +import * as _7 from "./authz/v1beta1/genesis"; +import * as _8 from "./authz/v1beta1/query"; +import * as _9 from "./authz/v1beta1/tx"; +import * as _10 from "./bank/v1beta1/authz"; +import * as _11 from "./bank/v1beta1/bank"; +import * as _12 from "./bank/v1beta1/genesis"; +import * as _13 from "./bank/v1beta1/query"; +import * as _14 from "./bank/v1beta1/tx"; +import * as _15 from "./base/abci/v1beta1/abci"; +import * as _16 from "./base/query/v1beta1/pagination"; +import * as _17 from "./base/reflection/v2alpha1/reflection"; +import * as _18 from "./base/v1beta1/coin"; +import * as _19 from "./crypto/ed25519/keys"; +import * as _20 from "./crypto/hd/v1/hd"; +import * as _21 from "./crypto/keyring/v1/record"; +import * as _22 from "./crypto/multisig/keys"; +import * as _23 from "./crypto/secp256k1/keys"; +import * as _24 from "./crypto/secp256r1/keys"; +import * as _25 from "./distribution/v1beta1/distribution"; +import * as _26 from "./distribution/v1beta1/genesis"; +import * as _27 from "./distribution/v1beta1/query"; +import * as _28 from "./distribution/v1beta1/tx"; +import * as _29 from "./gov/v1beta1/genesis"; +import * as _30 from "./gov/v1beta1/gov"; +import * as _31 from "./gov/v1beta1/query"; +import * as _32 from "./gov/v1beta1/tx"; +import * as _33 from "./staking/v1beta1/authz"; +import * as _34 from "./staking/v1beta1/genesis"; +import * as _35 from "./staking/v1beta1/query"; +import * as _36 from "./staking/v1beta1/staking"; +import * as _37 from "./staking/v1beta1/tx"; +import * as _38 from "./tx/signing/v1beta1/signing"; +import * as _39 from "./tx/v1beta1/service"; +import * as _40 from "./tx/v1beta1/tx"; +import * as _41 from "./upgrade/v1beta1/query"; +import * as _42 from "./upgrade/v1beta1/tx"; +import * as _43 from "./upgrade/v1beta1/upgrade"; +import * as _138 from "./auth/v1beta1/query.lcd"; +import * as _139 from "./authz/v1beta1/query.lcd"; +import * as _140 from "./bank/v1beta1/query.lcd"; +import * as _141 from "./distribution/v1beta1/query.lcd"; +import * as _142 from "./gov/v1beta1/query.lcd"; +import * as _143 from "./staking/v1beta1/query.lcd"; +import * as _144 from "./tx/v1beta1/service.lcd"; +import * as _145 from "./upgrade/v1beta1/query.lcd"; +import * as _146 from "./auth/v1beta1/query.rpc.Query"; +import * as _147 from "./authz/v1beta1/query.rpc.Query"; +import * as _148 from "./bank/v1beta1/query.rpc.Query"; +import * as _149 from "./distribution/v1beta1/query.rpc.Query"; +import * as _150 from "./gov/v1beta1/query.rpc.Query"; +import * as _151 from "./staking/v1beta1/query.rpc.Query"; +import * as _152 from "./tx/v1beta1/service.rpc.Service"; +import * as _153 from "./upgrade/v1beta1/query.rpc.Query"; +import * as _154 from "./authz/v1beta1/tx.rpc.msg"; +import * as _155 from "./bank/v1beta1/tx.rpc.msg"; +import * as _156 from "./distribution/v1beta1/tx.rpc.msg"; +import * as _157 from "./gov/v1beta1/tx.rpc.msg"; +import * as _158 from "./staking/v1beta1/tx.rpc.msg"; +import * as _159 from "./upgrade/v1beta1/tx.rpc.msg"; export declare namespace cosmos { - namespace app { - const v1alpha1: { - QueryConfigRequest: { - encode(_: _4.QueryConfigRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _4.QueryConfigRequest; - fromPartial(_: any): _4.QueryConfigRequest; - }; - QueryConfigResponse: { - encode(message: _4.QueryConfigResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _4.QueryConfigResponse; - fromPartial(object: any): _4.QueryConfigResponse; - }; - ModuleDescriptor: { - encode(message: _3.ModuleDescriptor, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _3.ModuleDescriptor; - fromPartial(object: any): _3.ModuleDescriptor; - }; - PackageReference: { - encode(message: _3.PackageReference, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _3.PackageReference; - fromPartial(object: any): _3.PackageReference; - }; - MigrateFromInfo: { - encode(message: _3.MigrateFromInfo, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _3.MigrateFromInfo; - fromPartial(object: any): _3.MigrateFromInfo; - }; - Config: { - encode(message: _2.Config, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _2.Config; - fromPartial(object: any): _2.Config; - }; - ModuleConfig: { - encode(message: _2.ModuleConfig, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _2.ModuleConfig; - fromPartial(object: any): _2.ModuleConfig; - }; - }; - } namespace auth { const v1beta1: { - LCDQueryClient: typeof _208.LCDQueryClient; + QueryClientImpl: typeof _146.QueryClientImpl; + createRpcQueryExtension: (base: import("@cosmjs/stargate").QueryClient) => { + accounts(request?: _4.QueryAccountsRequest): Promise<_4.QueryAccountsResponse>; + account(request: _4.QueryAccountRequest): Promise<_4.QueryAccountResponse>; + params(request?: _4.QueryParamsRequest): Promise<_4.QueryParamsResponse>; + moduleAccounts(request?: _4.QueryModuleAccountsRequest): Promise<_4.QueryModuleAccountsResponse>; + bech32Prefix(request?: _4.Bech32PrefixRequest): Promise<_4.Bech32PrefixResponse>; + addressBytesToString(request: _4.AddressBytesToStringRequest): Promise<_4.AddressBytesToStringResponse>; + addressStringToBytes(request: _4.AddressStringToBytesRequest): Promise<_4.AddressStringToBytesResponse>; + }; + LCDQueryClient: typeof _138.LCDQueryClient; QueryAccountsRequest: { - encode(message: _7.QueryAccountsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _7.QueryAccountsRequest; - fromPartial(object: any): _7.QueryAccountsRequest; + encode(message: _4.QueryAccountsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _4.QueryAccountsRequest; + fromPartial(object: any): _4.QueryAccountsRequest; }; QueryAccountsResponse: { - encode(message: _7.QueryAccountsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _7.QueryAccountsResponse; - fromPartial(object: any): _7.QueryAccountsResponse; + encode(message: _4.QueryAccountsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _4.QueryAccountsResponse; + fromPartial(object: any): _4.QueryAccountsResponse; }; QueryAccountRequest: { - encode(message: _7.QueryAccountRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _7.QueryAccountRequest; - fromPartial(object: any): _7.QueryAccountRequest; + encode(message: _4.QueryAccountRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _4.QueryAccountRequest; + fromPartial(object: any): _4.QueryAccountRequest; }; QueryModuleAccountsRequest: { - encode(_: _7.QueryModuleAccountsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _7.QueryModuleAccountsRequest; - fromPartial(_: any): _7.QueryModuleAccountsRequest; + encode(_: _4.QueryModuleAccountsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _4.QueryModuleAccountsRequest; + fromPartial(_: any): _4.QueryModuleAccountsRequest; }; QueryParamsResponse: { - encode(message: _7.QueryParamsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _7.QueryParamsResponse; - fromPartial(object: any): _7.QueryParamsResponse; + encode(message: _4.QueryParamsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _4.QueryParamsResponse; + fromPartial(object: any): _4.QueryParamsResponse; }; QueryAccountResponse: { - encode(message: _7.QueryAccountResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _7.QueryAccountResponse; - fromPartial(object: any): _7.QueryAccountResponse; + encode(message: _4.QueryAccountResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _4.QueryAccountResponse; + fromPartial(object: any): _4.QueryAccountResponse; }; QueryParamsRequest: { - encode(_: _7.QueryParamsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _7.QueryParamsRequest; - fromPartial(_: any): _7.QueryParamsRequest; + encode(_: _4.QueryParamsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _4.QueryParamsRequest; + fromPartial(_: any): _4.QueryParamsRequest; }; QueryModuleAccountsResponse: { - encode(message: _7.QueryModuleAccountsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _7.QueryModuleAccountsResponse; - fromPartial(object: any): _7.QueryModuleAccountsResponse; + encode(message: _4.QueryModuleAccountsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _4.QueryModuleAccountsResponse; + fromPartial(object: any): _4.QueryModuleAccountsResponse; }; Bech32PrefixRequest: { - encode(_: _7.Bech32PrefixRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _7.Bech32PrefixRequest; - fromPartial(_: any): _7.Bech32PrefixRequest; + encode(_: _4.Bech32PrefixRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _4.Bech32PrefixRequest; + fromPartial(_: any): _4.Bech32PrefixRequest; }; Bech32PrefixResponse: { - encode(message: _7.Bech32PrefixResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _7.Bech32PrefixResponse; - fromPartial(object: any): _7.Bech32PrefixResponse; + encode(message: _4.Bech32PrefixResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _4.Bech32PrefixResponse; + fromPartial(object: any): _4.Bech32PrefixResponse; }; AddressBytesToStringRequest: { - encode(message: _7.AddressBytesToStringRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _7.AddressBytesToStringRequest; - fromPartial(object: any): _7.AddressBytesToStringRequest; + encode(message: _4.AddressBytesToStringRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _4.AddressBytesToStringRequest; + fromPartial(object: any): _4.AddressBytesToStringRequest; }; AddressBytesToStringResponse: { - encode(message: _7.AddressBytesToStringResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _7.AddressBytesToStringResponse; - fromPartial(object: any): _7.AddressBytesToStringResponse; + encode(message: _4.AddressBytesToStringResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _4.AddressBytesToStringResponse; + fromPartial(object: any): _4.AddressBytesToStringResponse; }; AddressStringToBytesRequest: { - encode(message: _7.AddressStringToBytesRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _7.AddressStringToBytesRequest; - fromPartial(object: any): _7.AddressStringToBytesRequest; + encode(message: _4.AddressStringToBytesRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _4.AddressStringToBytesRequest; + fromPartial(object: any): _4.AddressStringToBytesRequest; }; AddressStringToBytesResponse: { - encode(message: _7.AddressStringToBytesResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _7.AddressStringToBytesResponse; - fromPartial(object: any): _7.AddressStringToBytesResponse; + encode(message: _4.AddressStringToBytesResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _4.AddressStringToBytesResponse; + fromPartial(object: any): _4.AddressStringToBytesResponse; }; GenesisState: { - encode(message: _6.GenesisState, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _6.GenesisState; - fromPartial(object: any): _6.GenesisState; + encode(message: _3.GenesisState, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _3.GenesisState; + fromPartial(object: any): _3.GenesisState; }; BaseAccount: { - encode(message: _5.BaseAccount, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _5.BaseAccount; - fromPartial(object: any): _5.BaseAccount; + encode(message: _2.BaseAccount, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _2.BaseAccount; + fromPartial(object: any): _2.BaseAccount; }; ModuleAccount: { - encode(message: _5.ModuleAccount, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _5.ModuleAccount; - fromPartial(object: any): _5.ModuleAccount; + encode(message: _2.ModuleAccount, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _2.ModuleAccount; + fromPartial(object: any): _2.ModuleAccount; }; Params: { - encode(message: _5.Params, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _5.Params; - fromPartial(object: any): _5.Params; + encode(message: _2.Params, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _2.Params; + fromPartial(object: any): _2.Params; }; }; } namespace authz { const v1beta1: { - LCDQueryClient: typeof _209.LCDQueryClient; + MsgClientImpl: typeof _154.MsgClientImpl; + QueryClientImpl: typeof _147.QueryClientImpl; + createRpcQueryExtension: (base: import("@cosmjs/stargate").QueryClient) => { + grants(request: _8.QueryGrantsRequest): Promise<_8.QueryGrantsResponse>; + granterGrants(request: _8.QueryGranterGrantsRequest): Promise<_8.QueryGranterGrantsResponse>; + granteeGrants(request: _8.QueryGranteeGrantsRequest): Promise<_8.QueryGranteeGrantsResponse>; + }; + LCDQueryClient: typeof _139.LCDQueryClient; registry: readonly [string, import("@cosmjs/proto-signing").GeneratedType][]; load: (protoRegistry: import("@cosmjs/proto-signing").Registry) => void; MessageComposer: { encoded: { - grant(value: _12.MsgGrant): { + grant(value: _9.MsgGrant): { typeUrl: string; value: Uint8Array; }; - exec(value: _12.MsgExec): { + exec(value: _9.MsgExec): { typeUrl: string; value: Uint8Array; }; - revoke(value: _12.MsgRevoke): { + revoke(value: _9.MsgRevoke): { typeUrl: string; value: Uint8Array; }; }; withTypeUrl: { - grant(value: _12.MsgGrant): { + grant(value: _9.MsgGrant): { typeUrl: string; - value: _12.MsgGrant; + value: _9.MsgGrant; }; - exec(value: _12.MsgExec): { + exec(value: _9.MsgExec): { typeUrl: string; - value: _12.MsgExec; + value: _9.MsgExec; }; - revoke(value: _12.MsgRevoke): { + revoke(value: _9.MsgRevoke): { typeUrl: string; - value: _12.MsgRevoke; + value: _9.MsgRevoke; }; }; fromPartial: { - grant(value: _12.MsgGrant): { + grant(value: _9.MsgGrant): { typeUrl: string; - value: _12.MsgGrant; + value: _9.MsgGrant; }; - exec(value: _12.MsgExec): { + exec(value: _9.MsgExec): { typeUrl: string; - value: _12.MsgExec; + value: _9.MsgExec; }; - revoke(value: _12.MsgRevoke): { + revoke(value: _9.MsgRevoke): { typeUrl: string; - value: _12.MsgRevoke; + value: _9.MsgRevoke; }; }; }; AminoConverter: { "/cosmos.authz.v1beta1.MsgGrant": { aminoType: string; - toAmino: ({ granter, grantee, grant }: _12.MsgGrant) => { + toAmino: ({ granter, grantee, grant }: _9.MsgGrant) => { granter: string; grantee: string; grant: { @@ -320,11 +254,11 @@ export declare namespace cosmos { nanos: number; }; }; - }) => _12.MsgGrant; + }) => _9.MsgGrant; }; "/cosmos.authz.v1beta1.MsgExec": { aminoType: string; - toAmino: ({ grantee, msgs }: _12.MsgExec) => { + toAmino: ({ grantee, msgs }: _9.MsgExec) => { grantee: string; msgs: { type_url: string; @@ -337,11 +271,11 @@ export declare namespace cosmos { type_url: string; value: Uint8Array; }[]; - }) => _12.MsgExec; + }) => _9.MsgExec; }; "/cosmos.authz.v1beta1.MsgRevoke": { aminoType: string; - toAmino: ({ granter, grantee, msgTypeUrl }: _12.MsgRevoke) => { + toAmino: ({ granter, grantee, msgTypeUrl }: _9.MsgRevoke) => { granter: string; grantee: string; msg_type_url: string; @@ -350,147 +284,160 @@ export declare namespace cosmos { granter: string; grantee: string; msg_type_url: string; - }) => _12.MsgRevoke; + }) => _9.MsgRevoke; }; }; MsgGrant: { - encode(message: _12.MsgGrant, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _12.MsgGrant; - fromPartial(object: any): _12.MsgGrant; + encode(message: _9.MsgGrant, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _9.MsgGrant; + fromPartial(object: any): _9.MsgGrant; }; MsgExecResponse: { - encode(message: _12.MsgExecResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _12.MsgExecResponse; - fromPartial(object: any): _12.MsgExecResponse; + encode(message: _9.MsgExecResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _9.MsgExecResponse; + fromPartial(object: any): _9.MsgExecResponse; }; MsgExec: { - encode(message: _12.MsgExec, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _12.MsgExec; - fromPartial(object: any): _12.MsgExec; + encode(message: _9.MsgExec, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _9.MsgExec; + fromPartial(object: any): _9.MsgExec; }; MsgGrantResponse: { - encode(_: _12.MsgGrantResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _12.MsgGrantResponse; - fromPartial(_: any): _12.MsgGrantResponse; + encode(_: _9.MsgGrantResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _9.MsgGrantResponse; + fromPartial(_: any): _9.MsgGrantResponse; }; MsgRevoke: { - encode(message: _12.MsgRevoke, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _12.MsgRevoke; - fromPartial(object: any): _12.MsgRevoke; + encode(message: _9.MsgRevoke, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _9.MsgRevoke; + fromPartial(object: any): _9.MsgRevoke; }; MsgRevokeResponse: { - encode(_: _12.MsgRevokeResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _12.MsgRevokeResponse; - fromPartial(_: any): _12.MsgRevokeResponse; + encode(_: _9.MsgRevokeResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _9.MsgRevokeResponse; + fromPartial(_: any): _9.MsgRevokeResponse; }; QueryGrantsRequest: { - encode(message: _11.QueryGrantsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _11.QueryGrantsRequest; - fromPartial(object: any): _11.QueryGrantsRequest; + encode(message: _8.QueryGrantsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _8.QueryGrantsRequest; + fromPartial(object: any): _8.QueryGrantsRequest; }; QueryGrantsResponse: { - encode(message: _11.QueryGrantsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _11.QueryGrantsResponse; - fromPartial(object: any): _11.QueryGrantsResponse; + encode(message: _8.QueryGrantsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _8.QueryGrantsResponse; + fromPartial(object: any): _8.QueryGrantsResponse; }; QueryGranterGrantsRequest: { - encode(message: _11.QueryGranterGrantsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _11.QueryGranterGrantsRequest; - fromPartial(object: any): _11.QueryGranterGrantsRequest; + encode(message: _8.QueryGranterGrantsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _8.QueryGranterGrantsRequest; + fromPartial(object: any): _8.QueryGranterGrantsRequest; }; QueryGranterGrantsResponse: { - encode(message: _11.QueryGranterGrantsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _11.QueryGranterGrantsResponse; - fromPartial(object: any): _11.QueryGranterGrantsResponse; + encode(message: _8.QueryGranterGrantsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _8.QueryGranterGrantsResponse; + fromPartial(object: any): _8.QueryGranterGrantsResponse; }; QueryGranteeGrantsRequest: { - encode(message: _11.QueryGranteeGrantsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _11.QueryGranteeGrantsRequest; - fromPartial(object: any): _11.QueryGranteeGrantsRequest; + encode(message: _8.QueryGranteeGrantsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _8.QueryGranteeGrantsRequest; + fromPartial(object: any): _8.QueryGranteeGrantsRequest; }; QueryGranteeGrantsResponse: { - encode(message: _11.QueryGranteeGrantsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _11.QueryGranteeGrantsResponse; - fromPartial(object: any): _11.QueryGranteeGrantsResponse; + encode(message: _8.QueryGranteeGrantsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _8.QueryGranteeGrantsResponse; + fromPartial(object: any): _8.QueryGranteeGrantsResponse; }; GenesisState: { - encode(message: _10.GenesisState, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _10.GenesisState; - fromPartial(object: any): _10.GenesisState; + encode(message: _7.GenesisState, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _7.GenesisState; + fromPartial(object: any): _7.GenesisState; }; EventGrant: { - encode(message: _9.EventGrant, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _9.EventGrant; - fromPartial(object: any): _9.EventGrant; + encode(message: _6.EventGrant, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _6.EventGrant; + fromPartial(object: any): _6.EventGrant; }; EventRevoke: { - encode(message: _9.EventRevoke, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _9.EventRevoke; - fromPartial(object: any): _9.EventRevoke; + encode(message: _6.EventRevoke, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _6.EventRevoke; + fromPartial(object: any): _6.EventRevoke; }; GenericAuthorization: { - encode(message: _8.GenericAuthorization, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _8.GenericAuthorization; - fromPartial(object: any): _8.GenericAuthorization; + encode(message: _5.GenericAuthorization, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _5.GenericAuthorization; + fromPartial(object: any): _5.GenericAuthorization; }; Grant: { - encode(message: _8.Grant, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _8.Grant; - fromPartial(object: any): _8.Grant; + encode(message: _5.Grant, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _5.Grant; + fromPartial(object: any): _5.Grant; }; GrantAuthorization: { - encode(message: _8.GrantAuthorization, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _8.GrantAuthorization; - fromPartial(object: any): _8.GrantAuthorization; + encode(message: _5.GrantAuthorization, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _5.GrantAuthorization; + fromPartial(object: any): _5.GrantAuthorization; }; GrantQueueItem: { - encode(message: _8.GrantQueueItem, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _8.GrantQueueItem; - fromPartial(object: any): _8.GrantQueueItem; + encode(message: _5.GrantQueueItem, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _5.GrantQueueItem; + fromPartial(object: any): _5.GrantQueueItem; }; }; } namespace bank { const v1beta1: { - LCDQueryClient: typeof _210.LCDQueryClient; + MsgClientImpl: typeof _155.MsgClientImpl; + QueryClientImpl: typeof _148.QueryClientImpl; + createRpcQueryExtension: (base: import("@cosmjs/stargate").QueryClient) => { + balance(request: _13.QueryBalanceRequest): Promise<_13.QueryBalanceResponse>; + allBalances(request: _13.QueryAllBalancesRequest): Promise<_13.QueryAllBalancesResponse>; + spendableBalances(request: _13.QuerySpendableBalancesRequest): Promise<_13.QuerySpendableBalancesResponse>; + totalSupply(request?: _13.QueryTotalSupplyRequest): Promise<_13.QueryTotalSupplyResponse>; + supplyOf(request: _13.QuerySupplyOfRequest): Promise<_13.QuerySupplyOfResponse>; + params(request?: _13.QueryParamsRequest): Promise<_13.QueryParamsResponse>; + denomMetadata(request: _13.QueryDenomMetadataRequest): Promise<_13.QueryDenomMetadataResponse>; + denomsMetadata(request?: _13.QueryDenomsMetadataRequest): Promise<_13.QueryDenomsMetadataResponse>; + denomOwners(request: _13.QueryDenomOwnersRequest): Promise<_13.QueryDenomOwnersResponse>; + }; + LCDQueryClient: typeof _140.LCDQueryClient; registry: readonly [string, import("@cosmjs/proto-signing").GeneratedType][]; load: (protoRegistry: import("@cosmjs/proto-signing").Registry) => void; MessageComposer: { encoded: { - send(value: _17.MsgSend): { + send(value: _14.MsgSend): { typeUrl: string; value: Uint8Array; }; - multiSend(value: _17.MsgMultiSend): { + multiSend(value: _14.MsgMultiSend): { typeUrl: string; value: Uint8Array; }; }; withTypeUrl: { - send(value: _17.MsgSend): { + send(value: _14.MsgSend): { typeUrl: string; - value: _17.MsgSend; + value: _14.MsgSend; }; - multiSend(value: _17.MsgMultiSend): { + multiSend(value: _14.MsgMultiSend): { typeUrl: string; - value: _17.MsgMultiSend; + value: _14.MsgMultiSend; }; }; fromPartial: { - send(value: _17.MsgSend): { + send(value: _14.MsgSend): { typeUrl: string; - value: _17.MsgSend; + value: _14.MsgSend; }; - multiSend(value: _17.MsgMultiSend): { + multiSend(value: _14.MsgMultiSend): { typeUrl: string; - value: _17.MsgMultiSend; + value: _14.MsgMultiSend; }; }; }; AminoConverter: { "/cosmos.bank.v1beta1.MsgSend": { aminoType: string; - toAmino: ({ fromAddress, toAddress, amount }: _17.MsgSend) => { + toAmino: ({ fromAddress, toAddress, amount }: _14.MsgSend) => { from_address: string; to_address: string; amount: { @@ -505,11 +452,11 @@ export declare namespace cosmos { denom: string; amount: string; }[]; - }) => _17.MsgSend; + }) => _14.MsgSend; }; "/cosmos.bank.v1beta1.MsgMultiSend": { aminoType: string; - toAmino: ({ inputs, outputs }: _17.MsgMultiSend) => { + toAmino: ({ inputs, outputs }: _14.MsgMultiSend) => { inputs: { address: string; coins: { @@ -540,173 +487,173 @@ export declare namespace cosmos { amount: string; }[]; }[]; - }) => _17.MsgMultiSend; + }) => _14.MsgMultiSend; }; }; MsgSend: { - encode(message: _17.MsgSend, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _17.MsgSend; - fromPartial(object: any): _17.MsgSend; + encode(message: _14.MsgSend, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _14.MsgSend; + fromPartial(object: any): _14.MsgSend; }; MsgSendResponse: { - encode(_: _17.MsgSendResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _17.MsgSendResponse; - fromPartial(_: any): _17.MsgSendResponse; + encode(_: _14.MsgSendResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _14.MsgSendResponse; + fromPartial(_: any): _14.MsgSendResponse; }; MsgMultiSend: { - encode(message: _17.MsgMultiSend, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _17.MsgMultiSend; - fromPartial(object: any): _17.MsgMultiSend; + encode(message: _14.MsgMultiSend, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _14.MsgMultiSend; + fromPartial(object: any): _14.MsgMultiSend; }; MsgMultiSendResponse: { - encode(_: _17.MsgMultiSendResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _17.MsgMultiSendResponse; - fromPartial(_: any): _17.MsgMultiSendResponse; + encode(_: _14.MsgMultiSendResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _14.MsgMultiSendResponse; + fromPartial(_: any): _14.MsgMultiSendResponse; }; QueryBalanceRequest: { - encode(message: _16.QueryBalanceRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _16.QueryBalanceRequest; - fromPartial(object: any): _16.QueryBalanceRequest; + encode(message: _13.QueryBalanceRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _13.QueryBalanceRequest; + fromPartial(object: any): _13.QueryBalanceRequest; }; QueryBalanceResponse: { - encode(message: _16.QueryBalanceResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _16.QueryBalanceResponse; - fromPartial(object: any): _16.QueryBalanceResponse; + encode(message: _13.QueryBalanceResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _13.QueryBalanceResponse; + fromPartial(object: any): _13.QueryBalanceResponse; }; QueryAllBalancesRequest: { - encode(message: _16.QueryAllBalancesRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _16.QueryAllBalancesRequest; - fromPartial(object: any): _16.QueryAllBalancesRequest; + encode(message: _13.QueryAllBalancesRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _13.QueryAllBalancesRequest; + fromPartial(object: any): _13.QueryAllBalancesRequest; }; QueryAllBalancesResponse: { - encode(message: _16.QueryAllBalancesResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _16.QueryAllBalancesResponse; - fromPartial(object: any): _16.QueryAllBalancesResponse; + encode(message: _13.QueryAllBalancesResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _13.QueryAllBalancesResponse; + fromPartial(object: any): _13.QueryAllBalancesResponse; }; QuerySpendableBalancesRequest: { - encode(message: _16.QuerySpendableBalancesRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _16.QuerySpendableBalancesRequest; - fromPartial(object: any): _16.QuerySpendableBalancesRequest; + encode(message: _13.QuerySpendableBalancesRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _13.QuerySpendableBalancesRequest; + fromPartial(object: any): _13.QuerySpendableBalancesRequest; }; QuerySpendableBalancesResponse: { - encode(message: _16.QuerySpendableBalancesResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _16.QuerySpendableBalancesResponse; - fromPartial(object: any): _16.QuerySpendableBalancesResponse; + encode(message: _13.QuerySpendableBalancesResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _13.QuerySpendableBalancesResponse; + fromPartial(object: any): _13.QuerySpendableBalancesResponse; }; QueryTotalSupplyRequest: { - encode(message: _16.QueryTotalSupplyRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _16.QueryTotalSupplyRequest; - fromPartial(object: any): _16.QueryTotalSupplyRequest; + encode(message: _13.QueryTotalSupplyRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _13.QueryTotalSupplyRequest; + fromPartial(object: any): _13.QueryTotalSupplyRequest; }; QueryTotalSupplyResponse: { - encode(message: _16.QueryTotalSupplyResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _16.QueryTotalSupplyResponse; - fromPartial(object: any): _16.QueryTotalSupplyResponse; + encode(message: _13.QueryTotalSupplyResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _13.QueryTotalSupplyResponse; + fromPartial(object: any): _13.QueryTotalSupplyResponse; }; QuerySupplyOfRequest: { - encode(message: _16.QuerySupplyOfRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _16.QuerySupplyOfRequest; - fromPartial(object: any): _16.QuerySupplyOfRequest; + encode(message: _13.QuerySupplyOfRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _13.QuerySupplyOfRequest; + fromPartial(object: any): _13.QuerySupplyOfRequest; }; QuerySupplyOfResponse: { - encode(message: _16.QuerySupplyOfResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _16.QuerySupplyOfResponse; - fromPartial(object: any): _16.QuerySupplyOfResponse; + encode(message: _13.QuerySupplyOfResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _13.QuerySupplyOfResponse; + fromPartial(object: any): _13.QuerySupplyOfResponse; }; QueryParamsRequest: { - encode(_: _16.QueryParamsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _16.QueryParamsRequest; - fromPartial(_: any): _16.QueryParamsRequest; + encode(_: _13.QueryParamsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _13.QueryParamsRequest; + fromPartial(_: any): _13.QueryParamsRequest; }; QueryParamsResponse: { - encode(message: _16.QueryParamsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _16.QueryParamsResponse; - fromPartial(object: any): _16.QueryParamsResponse; + encode(message: _13.QueryParamsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _13.QueryParamsResponse; + fromPartial(object: any): _13.QueryParamsResponse; }; QueryDenomsMetadataRequest: { - encode(message: _16.QueryDenomsMetadataRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _16.QueryDenomsMetadataRequest; - fromPartial(object: any): _16.QueryDenomsMetadataRequest; + encode(message: _13.QueryDenomsMetadataRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _13.QueryDenomsMetadataRequest; + fromPartial(object: any): _13.QueryDenomsMetadataRequest; }; QueryDenomsMetadataResponse: { - encode(message: _16.QueryDenomsMetadataResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _16.QueryDenomsMetadataResponse; - fromPartial(object: any): _16.QueryDenomsMetadataResponse; + encode(message: _13.QueryDenomsMetadataResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _13.QueryDenomsMetadataResponse; + fromPartial(object: any): _13.QueryDenomsMetadataResponse; }; QueryDenomMetadataRequest: { - encode(message: _16.QueryDenomMetadataRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _16.QueryDenomMetadataRequest; - fromPartial(object: any): _16.QueryDenomMetadataRequest; + encode(message: _13.QueryDenomMetadataRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _13.QueryDenomMetadataRequest; + fromPartial(object: any): _13.QueryDenomMetadataRequest; }; QueryDenomMetadataResponse: { - encode(message: _16.QueryDenomMetadataResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _16.QueryDenomMetadataResponse; - fromPartial(object: any): _16.QueryDenomMetadataResponse; + encode(message: _13.QueryDenomMetadataResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _13.QueryDenomMetadataResponse; + fromPartial(object: any): _13.QueryDenomMetadataResponse; }; QueryDenomOwnersRequest: { - encode(message: _16.QueryDenomOwnersRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _16.QueryDenomOwnersRequest; - fromPartial(object: any): _16.QueryDenomOwnersRequest; + encode(message: _13.QueryDenomOwnersRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _13.QueryDenomOwnersRequest; + fromPartial(object: any): _13.QueryDenomOwnersRequest; }; DenomOwner: { - encode(message: _16.DenomOwner, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _16.DenomOwner; - fromPartial(object: any): _16.DenomOwner; + encode(message: _13.DenomOwner, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _13.DenomOwner; + fromPartial(object: any): _13.DenomOwner; }; QueryDenomOwnersResponse: { - encode(message: _16.QueryDenomOwnersResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _16.QueryDenomOwnersResponse; - fromPartial(object: any): _16.QueryDenomOwnersResponse; + encode(message: _13.QueryDenomOwnersResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _13.QueryDenomOwnersResponse; + fromPartial(object: any): _13.QueryDenomOwnersResponse; }; GenesisState: { - encode(message: _15.GenesisState, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _15.GenesisState; - fromPartial(object: any): _15.GenesisState; + encode(message: _12.GenesisState, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _12.GenesisState; + fromPartial(object: any): _12.GenesisState; }; Balance: { - encode(message: _15.Balance, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _15.Balance; - fromPartial(object: any): _15.Balance; + encode(message: _12.Balance, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _12.Balance; + fromPartial(object: any): _12.Balance; }; Params: { - encode(message: _14.Params, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _14.Params; - fromPartial(object: any): _14.Params; + encode(message: _11.Params, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _11.Params; + fromPartial(object: any): _11.Params; }; SendEnabled: { - encode(message: _14.SendEnabled, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _14.SendEnabled; - fromPartial(object: any): _14.SendEnabled; + encode(message: _11.SendEnabled, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _11.SendEnabled; + fromPartial(object: any): _11.SendEnabled; }; Input: { - encode(message: _14.Input, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _14.Input; - fromPartial(object: any): _14.Input; + encode(message: _11.Input, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _11.Input; + fromPartial(object: any): _11.Input; }; Output: { - encode(message: _14.Output, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _14.Output; - fromPartial(object: any): _14.Output; + encode(message: _11.Output, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _11.Output; + fromPartial(object: any): _11.Output; }; Supply: { - encode(message: _14.Supply, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _14.Supply; - fromPartial(object: any): _14.Supply; + encode(message: _11.Supply, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _11.Supply; + fromPartial(object: any): _11.Supply; }; DenomUnit: { - encode(message: _14.DenomUnit, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _14.DenomUnit; - fromPartial(object: any): _14.DenomUnit; + encode(message: _11.DenomUnit, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _11.DenomUnit; + fromPartial(object: any): _11.DenomUnit; }; Metadata: { - encode(message: _14.Metadata, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _14.Metadata; - fromPartial(object: any): _14.Metadata; + encode(message: _11.Metadata, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _11.Metadata; + fromPartial(object: any): _11.Metadata; }; SendAuthorization: { - encode(message: _13.SendAuthorization, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _13.SendAuthorization; - fromPartial(object: any): _13.SendAuthorization; + encode(message: _10.SendAuthorization, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _10.SendAuthorization; + fromPartial(object: any): _10.SendAuthorization; }; }; } @@ -714,681 +661,420 @@ export declare namespace cosmos { namespace abci { const v1beta1: { TxResponse: { - encode(message: _18.TxResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _18.TxResponse; - fromPartial(object: any): _18.TxResponse; + encode(message: _15.TxResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _15.TxResponse; + fromPartial(object: any): _15.TxResponse; }; ABCIMessageLog: { - encode(message: _18.ABCIMessageLog, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _18.ABCIMessageLog; - fromPartial(object: any): _18.ABCIMessageLog; + encode(message: _15.ABCIMessageLog, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _15.ABCIMessageLog; + fromPartial(object: any): _15.ABCIMessageLog; }; StringEvent: { - encode(message: _18.StringEvent, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _18.StringEvent; - fromPartial(object: any): _18.StringEvent; + encode(message: _15.StringEvent, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _15.StringEvent; + fromPartial(object: any): _15.StringEvent; }; Attribute: { - encode(message: _18.Attribute, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _18.Attribute; - fromPartial(object: any): _18.Attribute; + encode(message: _15.Attribute, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _15.Attribute; + fromPartial(object: any): _15.Attribute; }; GasInfo: { - encode(message: _18.GasInfo, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _18.GasInfo; - fromPartial(object: any): _18.GasInfo; + encode(message: _15.GasInfo, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _15.GasInfo; + fromPartial(object: any): _15.GasInfo; }; Result: { - encode(message: _18.Result, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _18.Result; - fromPartial(object: any): _18.Result; + encode(message: _15.Result, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _15.Result; + fromPartial(object: any): _15.Result; }; SimulationResponse: { - encode(message: _18.SimulationResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _18.SimulationResponse; - fromPartial(object: any): _18.SimulationResponse; + encode(message: _15.SimulationResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _15.SimulationResponse; + fromPartial(object: any): _15.SimulationResponse; }; MsgData: { - encode(message: _18.MsgData, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _18.MsgData; - fromPartial(object: any): _18.MsgData; + encode(message: _15.MsgData, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _15.MsgData; + fromPartial(object: any): _15.MsgData; }; TxMsgData: { - encode(message: _18.TxMsgData, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _18.TxMsgData; - fromPartial(object: any): _18.TxMsgData; + encode(message: _15.TxMsgData, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _15.TxMsgData; + fromPartial(object: any): _15.TxMsgData; }; SearchTxsResult: { - encode(message: _18.SearchTxsResult, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _18.SearchTxsResult; - fromPartial(object: any): _18.SearchTxsResult; - }; - }; - } - namespace kv { - const v1beta1: { - Pairs: { - encode(message: _19.Pairs, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _19.Pairs; - fromPartial(object: any): _19.Pairs; - }; - Pair: { - encode(message: _19.Pair, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _19.Pair; - fromPartial(object: any): _19.Pair; + encode(message: _15.SearchTxsResult, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _15.SearchTxsResult; + fromPartial(object: any): _15.SearchTxsResult; }; }; } namespace query { const v1beta1: { PageRequest: { - encode(message: _20.PageRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _20.PageRequest; - fromPartial(object: any): _20.PageRequest; + encode(message: _16.PageRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _16.PageRequest; + fromPartial(object: any): _16.PageRequest; }; PageResponse: { - encode(message: _20.PageResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _20.PageResponse; - fromPartial(object: any): _20.PageResponse; + encode(message: _16.PageResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _16.PageResponse; + fromPartial(object: any): _16.PageResponse; }; }; } namespace reflection { - const v1beta1: { - ListAllInterfacesRequest: { - encode(_: _21.ListAllInterfacesRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _21.ListAllInterfacesRequest; - fromPartial(_: any): _21.ListAllInterfacesRequest; - }; - ListAllInterfacesResponse: { - encode(message: _21.ListAllInterfacesResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _21.ListAllInterfacesResponse; - fromPartial(object: any): _21.ListAllInterfacesResponse; - }; - ListImplementationsRequest: { - encode(message: _21.ListImplementationsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _21.ListImplementationsRequest; - fromPartial(object: any): _21.ListImplementationsRequest; - }; - ListImplementationsResponse: { - encode(message: _21.ListImplementationsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _21.ListImplementationsResponse; - fromPartial(object: any): _21.ListImplementationsResponse; - }; - }; const v2alpha1: { AppDescriptor: { - encode(message: _22.AppDescriptor, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _22.AppDescriptor; - fromPartial(object: any): _22.AppDescriptor; + encode(message: _17.AppDescriptor, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _17.AppDescriptor; + fromPartial(object: any): _17.AppDescriptor; }; TxDescriptor: { - encode(message: _22.TxDescriptor, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _22.TxDescriptor; - fromPartial(object: any): _22.TxDescriptor; + encode(message: _17.TxDescriptor, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _17.TxDescriptor; + fromPartial(object: any): _17.TxDescriptor; }; AuthnDescriptor: { - encode(message: _22.AuthnDescriptor, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _22.AuthnDescriptor; - fromPartial(object: any): _22.AuthnDescriptor; + encode(message: _17.AuthnDescriptor, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _17.AuthnDescriptor; + fromPartial(object: any): _17.AuthnDescriptor; }; SigningModeDescriptor: { - encode(message: _22.SigningModeDescriptor, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _22.SigningModeDescriptor; - fromPartial(object: any): _22.SigningModeDescriptor; + encode(message: _17.SigningModeDescriptor, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _17.SigningModeDescriptor; + fromPartial(object: any): _17.SigningModeDescriptor; }; ChainDescriptor: { - encode(message: _22.ChainDescriptor, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _22.ChainDescriptor; - fromPartial(object: any): _22.ChainDescriptor; + encode(message: _17.ChainDescriptor, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _17.ChainDescriptor; + fromPartial(object: any): _17.ChainDescriptor; }; CodecDescriptor: { - encode(message: _22.CodecDescriptor, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _22.CodecDescriptor; - fromPartial(object: any): _22.CodecDescriptor; + encode(message: _17.CodecDescriptor, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _17.CodecDescriptor; + fromPartial(object: any): _17.CodecDescriptor; }; InterfaceDescriptor: { - encode(message: _22.InterfaceDescriptor, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _22.InterfaceDescriptor; - fromPartial(object: any): _22.InterfaceDescriptor; + encode(message: _17.InterfaceDescriptor, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _17.InterfaceDescriptor; + fromPartial(object: any): _17.InterfaceDescriptor; }; InterfaceImplementerDescriptor: { - encode(message: _22.InterfaceImplementerDescriptor, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _22.InterfaceImplementerDescriptor; - fromPartial(object: any): _22.InterfaceImplementerDescriptor; + encode(message: _17.InterfaceImplementerDescriptor, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _17.InterfaceImplementerDescriptor; + fromPartial(object: any): _17.InterfaceImplementerDescriptor; }; InterfaceAcceptingMessageDescriptor: { - encode(message: _22.InterfaceAcceptingMessageDescriptor, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _22.InterfaceAcceptingMessageDescriptor; - fromPartial(object: any): _22.InterfaceAcceptingMessageDescriptor; + encode(message: _17.InterfaceAcceptingMessageDescriptor, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _17.InterfaceAcceptingMessageDescriptor; + fromPartial(object: any): _17.InterfaceAcceptingMessageDescriptor; }; ConfigurationDescriptor: { - encode(message: _22.ConfigurationDescriptor, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _22.ConfigurationDescriptor; - fromPartial(object: any): _22.ConfigurationDescriptor; + encode(message: _17.ConfigurationDescriptor, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _17.ConfigurationDescriptor; + fromPartial(object: any): _17.ConfigurationDescriptor; }; MsgDescriptor: { - encode(message: _22.MsgDescriptor, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _22.MsgDescriptor; - fromPartial(object: any): _22.MsgDescriptor; + encode(message: _17.MsgDescriptor, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _17.MsgDescriptor; + fromPartial(object: any): _17.MsgDescriptor; }; GetAuthnDescriptorRequest: { - encode(_: _22.GetAuthnDescriptorRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _22.GetAuthnDescriptorRequest; - fromPartial(_: any): _22.GetAuthnDescriptorRequest; + encode(_: _17.GetAuthnDescriptorRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _17.GetAuthnDescriptorRequest; + fromPartial(_: any): _17.GetAuthnDescriptorRequest; }; GetAuthnDescriptorResponse: { - encode(message: _22.GetAuthnDescriptorResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _22.GetAuthnDescriptorResponse; - fromPartial(object: any): _22.GetAuthnDescriptorResponse; + encode(message: _17.GetAuthnDescriptorResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _17.GetAuthnDescriptorResponse; + fromPartial(object: any): _17.GetAuthnDescriptorResponse; }; GetChainDescriptorRequest: { - encode(_: _22.GetChainDescriptorRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _22.GetChainDescriptorRequest; - fromPartial(_: any): _22.GetChainDescriptorRequest; + encode(_: _17.GetChainDescriptorRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _17.GetChainDescriptorRequest; + fromPartial(_: any): _17.GetChainDescriptorRequest; }; GetChainDescriptorResponse: { - encode(message: _22.GetChainDescriptorResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _22.GetChainDescriptorResponse; - fromPartial(object: any): _22.GetChainDescriptorResponse; + encode(message: _17.GetChainDescriptorResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _17.GetChainDescriptorResponse; + fromPartial(object: any): _17.GetChainDescriptorResponse; }; GetCodecDescriptorRequest: { - encode(_: _22.GetCodecDescriptorRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _22.GetCodecDescriptorRequest; - fromPartial(_: any): _22.GetCodecDescriptorRequest; + encode(_: _17.GetCodecDescriptorRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _17.GetCodecDescriptorRequest; + fromPartial(_: any): _17.GetCodecDescriptorRequest; }; GetCodecDescriptorResponse: { - encode(message: _22.GetCodecDescriptorResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _22.GetCodecDescriptorResponse; - fromPartial(object: any): _22.GetCodecDescriptorResponse; + encode(message: _17.GetCodecDescriptorResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _17.GetCodecDescriptorResponse; + fromPartial(object: any): _17.GetCodecDescriptorResponse; }; GetConfigurationDescriptorRequest: { - encode(_: _22.GetConfigurationDescriptorRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _22.GetConfigurationDescriptorRequest; - fromPartial(_: any): _22.GetConfigurationDescriptorRequest; + encode(_: _17.GetConfigurationDescriptorRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _17.GetConfigurationDescriptorRequest; + fromPartial(_: any): _17.GetConfigurationDescriptorRequest; }; GetConfigurationDescriptorResponse: { - encode(message: _22.GetConfigurationDescriptorResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _22.GetConfigurationDescriptorResponse; - fromPartial(object: any): _22.GetConfigurationDescriptorResponse; + encode(message: _17.GetConfigurationDescriptorResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _17.GetConfigurationDescriptorResponse; + fromPartial(object: any): _17.GetConfigurationDescriptorResponse; }; GetQueryServicesDescriptorRequest: { - encode(_: _22.GetQueryServicesDescriptorRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _22.GetQueryServicesDescriptorRequest; - fromPartial(_: any): _22.GetQueryServicesDescriptorRequest; + encode(_: _17.GetQueryServicesDescriptorRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _17.GetQueryServicesDescriptorRequest; + fromPartial(_: any): _17.GetQueryServicesDescriptorRequest; }; GetQueryServicesDescriptorResponse: { - encode(message: _22.GetQueryServicesDescriptorResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _22.GetQueryServicesDescriptorResponse; - fromPartial(object: any): _22.GetQueryServicesDescriptorResponse; + encode(message: _17.GetQueryServicesDescriptorResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _17.GetQueryServicesDescriptorResponse; + fromPartial(object: any): _17.GetQueryServicesDescriptorResponse; }; GetTxDescriptorRequest: { - encode(_: _22.GetTxDescriptorRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _22.GetTxDescriptorRequest; - fromPartial(_: any): _22.GetTxDescriptorRequest; + encode(_: _17.GetTxDescriptorRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _17.GetTxDescriptorRequest; + fromPartial(_: any): _17.GetTxDescriptorRequest; }; GetTxDescriptorResponse: { - encode(message: _22.GetTxDescriptorResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _22.GetTxDescriptorResponse; - fromPartial(object: any): _22.GetTxDescriptorResponse; + encode(message: _17.GetTxDescriptorResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _17.GetTxDescriptorResponse; + fromPartial(object: any): _17.GetTxDescriptorResponse; }; QueryServicesDescriptor: { - encode(message: _22.QueryServicesDescriptor, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _22.QueryServicesDescriptor; - fromPartial(object: any): _22.QueryServicesDescriptor; + encode(message: _17.QueryServicesDescriptor, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _17.QueryServicesDescriptor; + fromPartial(object: any): _17.QueryServicesDescriptor; }; QueryServiceDescriptor: { - encode(message: _22.QueryServiceDescriptor, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _22.QueryServiceDescriptor; - fromPartial(object: any): _22.QueryServiceDescriptor; + encode(message: _17.QueryServiceDescriptor, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _17.QueryServiceDescriptor; + fromPartial(object: any): _17.QueryServiceDescriptor; }; QueryMethodDescriptor: { - encode(message: _22.QueryMethodDescriptor, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _22.QueryMethodDescriptor; - fromPartial(object: any): _22.QueryMethodDescriptor; - }; - }; - } - namespace snapshots { - const v1beta1: { - Snapshot: { - encode(message: _23.Snapshot, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _23.Snapshot; - fromPartial(object: any): _23.Snapshot; - }; - Metadata: { - encode(message: _23.Metadata, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _23.Metadata; - fromPartial(object: any): _23.Metadata; - }; - SnapshotItem: { - encode(message: _23.SnapshotItem, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _23.SnapshotItem; - fromPartial(object: any): _23.SnapshotItem; - }; - SnapshotStoreItem: { - encode(message: _23.SnapshotStoreItem, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _23.SnapshotStoreItem; - fromPartial(object: any): _23.SnapshotStoreItem; - }; - SnapshotIAVLItem: { - encode(message: _23.SnapshotIAVLItem, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _23.SnapshotIAVLItem; - fromPartial(object: any): _23.SnapshotIAVLItem; - }; - SnapshotExtensionMeta: { - encode(message: _23.SnapshotExtensionMeta, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _23.SnapshotExtensionMeta; - fromPartial(object: any): _23.SnapshotExtensionMeta; - }; - SnapshotExtensionPayload: { - encode(message: _23.SnapshotExtensionPayload, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _23.SnapshotExtensionPayload; - fromPartial(object: any): _23.SnapshotExtensionPayload; - }; - SnapshotKVItem: { - encode(message: _23.SnapshotKVItem, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _23.SnapshotKVItem; - fromPartial(object: any): _23.SnapshotKVItem; - }; - SnapshotSchema: { - encode(message: _23.SnapshotSchema, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _23.SnapshotSchema; - fromPartial(object: any): _23.SnapshotSchema; - }; - }; - } - namespace store { - const v1beta1: { - StoreKVPair: { - encode(message: _25.StoreKVPair, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _25.StoreKVPair; - fromPartial(object: any): _25.StoreKVPair; - }; - CommitInfo: { - encode(message: _24.CommitInfo, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _24.CommitInfo; - fromPartial(object: any): _24.CommitInfo; - }; - StoreInfo: { - encode(message: _24.StoreInfo, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _24.StoreInfo; - fromPartial(object: any): _24.StoreInfo; - }; - CommitID: { - encode(message: _24.CommitID, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _24.CommitID; - fromPartial(object: any): _24.CommitID; - }; - }; - } - namespace tendermint { - const v1beta1: { - LCDQueryClient: typeof _211.LCDQueryClient; - GetValidatorSetByHeightRequest: { - encode(message: _26.GetValidatorSetByHeightRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _26.GetValidatorSetByHeightRequest; - fromPartial(object: any): _26.GetValidatorSetByHeightRequest; - }; - GetValidatorSetByHeightResponse: { - encode(message: _26.GetValidatorSetByHeightResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _26.GetValidatorSetByHeightResponse; - fromPartial(object: any): _26.GetValidatorSetByHeightResponse; - }; - GetLatestValidatorSetRequest: { - encode(message: _26.GetLatestValidatorSetRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _26.GetLatestValidatorSetRequest; - fromPartial(object: any): _26.GetLatestValidatorSetRequest; - }; - GetLatestValidatorSetResponse: { - encode(message: _26.GetLatestValidatorSetResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _26.GetLatestValidatorSetResponse; - fromPartial(object: any): _26.GetLatestValidatorSetResponse; - }; - Validator: { - encode(message: _26.Validator, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _26.Validator; - fromPartial(object: any): _26.Validator; - }; - GetBlockByHeightRequest: { - encode(message: _26.GetBlockByHeightRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _26.GetBlockByHeightRequest; - fromPartial(object: any): _26.GetBlockByHeightRequest; - }; - GetBlockByHeightResponse: { - encode(message: _26.GetBlockByHeightResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _26.GetBlockByHeightResponse; - fromPartial(object: any): _26.GetBlockByHeightResponse; - }; - GetLatestBlockRequest: { - encode(_: _26.GetLatestBlockRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _26.GetLatestBlockRequest; - fromPartial(_: any): _26.GetLatestBlockRequest; - }; - GetLatestBlockResponse: { - encode(message: _26.GetLatestBlockResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _26.GetLatestBlockResponse; - fromPartial(object: any): _26.GetLatestBlockResponse; - }; - GetSyncingRequest: { - encode(_: _26.GetSyncingRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _26.GetSyncingRequest; - fromPartial(_: any): _26.GetSyncingRequest; - }; - GetSyncingResponse: { - encode(message: _26.GetSyncingResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _26.GetSyncingResponse; - fromPartial(object: any): _26.GetSyncingResponse; - }; - GetNodeInfoRequest: { - encode(_: _26.GetNodeInfoRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _26.GetNodeInfoRequest; - fromPartial(_: any): _26.GetNodeInfoRequest; - }; - GetNodeInfoResponse: { - encode(message: _26.GetNodeInfoResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _26.GetNodeInfoResponse; - fromPartial(object: any): _26.GetNodeInfoResponse; - }; - VersionInfo: { - encode(message: _26.VersionInfo, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _26.VersionInfo; - fromPartial(object: any): _26.VersionInfo; - }; - Module: { - encode(message: _26.Module, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _26.Module; - fromPartial(object: any): _26.Module; + encode(message: _17.QueryMethodDescriptor, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _17.QueryMethodDescriptor; + fromPartial(object: any): _17.QueryMethodDescriptor; }; }; } const v1beta1: { Coin: { - encode(message: _27.Coin, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _27.Coin; - fromPartial(object: any): _27.Coin; + encode(message: _18.Coin, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _18.Coin; + fromPartial(object: any): _18.Coin; }; DecCoin: { - encode(message: _27.DecCoin, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _27.DecCoin; - fromPartial(object: any): _27.DecCoin; + encode(message: _18.DecCoin, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _18.DecCoin; + fromPartial(object: any): _18.DecCoin; }; IntProto: { - encode(message: _27.IntProto, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _27.IntProto; - fromPartial(object: any): _27.IntProto; + encode(message: _18.IntProto, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _18.IntProto; + fromPartial(object: any): _18.IntProto; }; DecProto: { - encode(message: _27.DecProto, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _27.DecProto; - fromPartial(object: any): _27.DecProto; - }; - }; - } - namespace capability { - const v1beta1: { - GenesisOwners: { - encode(message: _29.GenesisOwners, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _29.GenesisOwners; - fromPartial(object: any): _29.GenesisOwners; - }; - GenesisState: { - encode(message: _29.GenesisState, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _29.GenesisState; - fromPartial(object: any): _29.GenesisState; - }; - Capability: { - encode(message: _28.Capability, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _28.Capability; - fromPartial(object: any): _28.Capability; - }; - Owner: { - encode(message: _28.Owner, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _28.Owner; - fromPartial(object: any): _28.Owner; - }; - CapabilityOwners: { - encode(message: _28.CapabilityOwners, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _28.CapabilityOwners; - fromPartial(object: any): _28.CapabilityOwners; - }; - }; - } - namespace crisis { - const v1beta1: { - registry: readonly [string, import("@cosmjs/proto-signing").GeneratedType][]; - load: (protoRegistry: import("@cosmjs/proto-signing").Registry) => void; - MessageComposer: { - encoded: { - verifyInvariant(value: _31.MsgVerifyInvariant): { - typeUrl: string; - value: Uint8Array; - }; - }; - withTypeUrl: { - verifyInvariant(value: _31.MsgVerifyInvariant): { - typeUrl: string; - value: _31.MsgVerifyInvariant; - }; - }; - fromPartial: { - verifyInvariant(value: _31.MsgVerifyInvariant): { - typeUrl: string; - value: _31.MsgVerifyInvariant; - }; - }; - }; - AminoConverter: { - "/cosmos.crisis.v1beta1.MsgVerifyInvariant": { - aminoType: string; - toAmino: ({ sender, invariantModuleName, invariantRoute }: _31.MsgVerifyInvariant) => { - sender: string; - invariant_module_name: string; - invariant_route: string; - }; - fromAmino: ({ sender, invariant_module_name, invariant_route }: { - sender: string; - invariant_module_name: string; - invariant_route: string; - }) => _31.MsgVerifyInvariant; - }; - }; - MsgVerifyInvariant: { - encode(message: _31.MsgVerifyInvariant, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _31.MsgVerifyInvariant; - fromPartial(object: any): _31.MsgVerifyInvariant; - }; - MsgVerifyInvariantResponse: { - encode(_: _31.MsgVerifyInvariantResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _31.MsgVerifyInvariantResponse; - fromPartial(_: any): _31.MsgVerifyInvariantResponse; - }; - GenesisState: { - encode(message: _30.GenesisState, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _30.GenesisState; - fromPartial(object: any): _30.GenesisState; + encode(message: _18.DecProto, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _18.DecProto; + fromPartial(object: any): _18.DecProto; }; }; } namespace crypto { const ed25519: { PubKey: { - encode(message: _32.PubKey, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _32.PubKey; - fromPartial(object: any): _32.PubKey; + encode(message: _19.PubKey, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _19.PubKey; + fromPartial(object: any): _19.PubKey; }; PrivKey: { - encode(message: _32.PrivKey, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _32.PrivKey; - fromPartial(object: any): _32.PrivKey; + encode(message: _19.PrivKey, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _19.PrivKey; + fromPartial(object: any): _19.PrivKey; }; }; namespace hd { const v1: { BIP44Params: { - encode(message: _33.BIP44Params, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _33.BIP44Params; - fromPartial(object: any): _33.BIP44Params; + encode(message: _20.BIP44Params, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _20.BIP44Params; + fromPartial(object: any): _20.BIP44Params; }; }; } namespace keyring { const v1: { Record: { - encode(message: _34.Record, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _34.Record; - fromPartial(object: any): _34.Record; + encode(message: _21.Record, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _21.Record; + fromPartial(object: any): _21.Record; }; Record_Local: { - encode(message: _34.Record_Local, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _34.Record_Local; - fromPartial(object: any): _34.Record_Local; + encode(message: _21.Record_Local, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _21.Record_Local; + fromPartial(object: any): _21.Record_Local; }; Record_Ledger: { - encode(message: _34.Record_Ledger, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _34.Record_Ledger; - fromPartial(object: any): _34.Record_Ledger; + encode(message: _21.Record_Ledger, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _21.Record_Ledger; + fromPartial(object: any): _21.Record_Ledger; }; Record_Multi: { - encode(_: _34.Record_Multi, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _34.Record_Multi; - fromPartial(_: any): _34.Record_Multi; + encode(_: _21.Record_Multi, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _21.Record_Multi; + fromPartial(_: any): _21.Record_Multi; }; Record_Offline: { - encode(_: _34.Record_Offline, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _34.Record_Offline; - fromPartial(_: any): _34.Record_Offline; + encode(_: _21.Record_Offline, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _21.Record_Offline; + fromPartial(_: any): _21.Record_Offline; }; }; } const multisig: { LegacyAminoPubKey: { - encode(message: _35.LegacyAminoPubKey, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _35.LegacyAminoPubKey; - fromPartial(object: any): _35.LegacyAminoPubKey; + encode(message: _22.LegacyAminoPubKey, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _22.LegacyAminoPubKey; + fromPartial(object: any): _22.LegacyAminoPubKey; }; }; const secp256k1: { PubKey: { - encode(message: _36.PubKey, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _36.PubKey; - fromPartial(object: any): _36.PubKey; + encode(message: _23.PubKey, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _23.PubKey; + fromPartial(object: any): _23.PubKey; }; PrivKey: { - encode(message: _36.PrivKey, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _36.PrivKey; - fromPartial(object: any): _36.PrivKey; + encode(message: _23.PrivKey, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _23.PrivKey; + fromPartial(object: any): _23.PrivKey; }; }; const secp256r1: { PubKey: { - encode(message: _37.PubKey, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _37.PubKey; - fromPartial(object: any): _37.PubKey; + encode(message: _24.PubKey, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _24.PubKey; + fromPartial(object: any): _24.PubKey; }; PrivKey: { - encode(message: _37.PrivKey, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _37.PrivKey; - fromPartial(object: any): _37.PrivKey; + encode(message: _24.PrivKey, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _24.PrivKey; + fromPartial(object: any): _24.PrivKey; }; }; } namespace distribution { const v1beta1: { - LCDQueryClient: typeof _212.LCDQueryClient; + MsgClientImpl: typeof _156.MsgClientImpl; + QueryClientImpl: typeof _149.QueryClientImpl; + createRpcQueryExtension: (base: import("@cosmjs/stargate").QueryClient) => { + params(request?: _27.QueryParamsRequest): Promise<_27.QueryParamsResponse>; + validatorOutstandingRewards(request: _27.QueryValidatorOutstandingRewardsRequest): Promise<_27.QueryValidatorOutstandingRewardsResponse>; + validatorCommission(request: _27.QueryValidatorCommissionRequest): Promise<_27.QueryValidatorCommissionResponse>; + validatorSlashes(request: _27.QueryValidatorSlashesRequest): Promise<_27.QueryValidatorSlashesResponse>; + delegationRewards(request: _27.QueryDelegationRewardsRequest): Promise<_27.QueryDelegationRewardsResponse>; + delegationTotalRewards(request: _27.QueryDelegationTotalRewardsRequest): Promise<_27.QueryDelegationTotalRewardsResponse>; + delegatorValidators(request: _27.QueryDelegatorValidatorsRequest): Promise<_27.QueryDelegatorValidatorsResponse>; + delegatorWithdrawAddress(request: _27.QueryDelegatorWithdrawAddressRequest): Promise<_27.QueryDelegatorWithdrawAddressResponse>; + communityPool(request?: _27.QueryCommunityPoolRequest): Promise<_27.QueryCommunityPoolResponse>; + }; + LCDQueryClient: typeof _141.LCDQueryClient; registry: readonly [string, import("@cosmjs/proto-signing").GeneratedType][]; load: (protoRegistry: import("@cosmjs/proto-signing").Registry) => void; MessageComposer: { encoded: { - setWithdrawAddress(value: _41.MsgSetWithdrawAddress): { + setWithdrawAddress(value: _28.MsgSetWithdrawAddress): { typeUrl: string; value: Uint8Array; }; - withdrawDelegatorReward(value: _41.MsgWithdrawDelegatorReward): { + withdrawDelegatorReward(value: _28.MsgWithdrawDelegatorReward): { typeUrl: string; value: Uint8Array; }; - withdrawValidatorCommission(value: _41.MsgWithdrawValidatorCommission): { + withdrawValidatorCommission(value: _28.MsgWithdrawValidatorCommission): { typeUrl: string; value: Uint8Array; }; - fundCommunityPool(value: _41.MsgFundCommunityPool): { + fundCommunityPool(value: _28.MsgFundCommunityPool): { typeUrl: string; value: Uint8Array; }; }; withTypeUrl: { - setWithdrawAddress(value: _41.MsgSetWithdrawAddress): { + setWithdrawAddress(value: _28.MsgSetWithdrawAddress): { typeUrl: string; - value: _41.MsgSetWithdrawAddress; + value: _28.MsgSetWithdrawAddress; }; - withdrawDelegatorReward(value: _41.MsgWithdrawDelegatorReward): { + withdrawDelegatorReward(value: _28.MsgWithdrawDelegatorReward): { typeUrl: string; - value: _41.MsgWithdrawDelegatorReward; + value: _28.MsgWithdrawDelegatorReward; }; - withdrawValidatorCommission(value: _41.MsgWithdrawValidatorCommission): { + withdrawValidatorCommission(value: _28.MsgWithdrawValidatorCommission): { typeUrl: string; - value: _41.MsgWithdrawValidatorCommission; + value: _28.MsgWithdrawValidatorCommission; }; - fundCommunityPool(value: _41.MsgFundCommunityPool): { + fundCommunityPool(value: _28.MsgFundCommunityPool): { typeUrl: string; - value: _41.MsgFundCommunityPool; + value: _28.MsgFundCommunityPool; }; }; fromPartial: { - setWithdrawAddress(value: _41.MsgSetWithdrawAddress): { + setWithdrawAddress(value: _28.MsgSetWithdrawAddress): { typeUrl: string; - value: _41.MsgSetWithdrawAddress; + value: _28.MsgSetWithdrawAddress; }; - withdrawDelegatorReward(value: _41.MsgWithdrawDelegatorReward): { + withdrawDelegatorReward(value: _28.MsgWithdrawDelegatorReward): { typeUrl: string; - value: _41.MsgWithdrawDelegatorReward; + value: _28.MsgWithdrawDelegatorReward; }; - withdrawValidatorCommission(value: _41.MsgWithdrawValidatorCommission): { + withdrawValidatorCommission(value: _28.MsgWithdrawValidatorCommission): { typeUrl: string; - value: _41.MsgWithdrawValidatorCommission; + value: _28.MsgWithdrawValidatorCommission; }; - fundCommunityPool(value: _41.MsgFundCommunityPool): { + fundCommunityPool(value: _28.MsgFundCommunityPool): { typeUrl: string; - value: _41.MsgFundCommunityPool; + value: _28.MsgFundCommunityPool; }; }; }; AminoConverter: { "/cosmos.distribution.v1beta1.MsgSetWithdrawAddress": { aminoType: string; - toAmino: ({ delegatorAddress, withdrawAddress }: _41.MsgSetWithdrawAddress) => { + toAmino: ({ delegatorAddress, withdrawAddress }: _28.MsgSetWithdrawAddress) => { delegator_address: string; withdraw_address: string; }; fromAmino: ({ delegator_address, withdraw_address }: { delegator_address: string; withdraw_address: string; - }) => _41.MsgSetWithdrawAddress; + }) => _28.MsgSetWithdrawAddress; }; "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward": { aminoType: string; - toAmino: ({ delegatorAddress, validatorAddress }: _41.MsgWithdrawDelegatorReward) => { + toAmino: ({ delegatorAddress, validatorAddress }: _28.MsgWithdrawDelegatorReward) => { delegator_address: string; validator_address: string; }; fromAmino: ({ delegator_address, validator_address }: { delegator_address: string; validator_address: string; - }) => _41.MsgWithdrawDelegatorReward; + }) => _28.MsgWithdrawDelegatorReward; }; "/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission": { aminoType: string; - toAmino: ({ validatorAddress }: _41.MsgWithdrawValidatorCommission) => { + toAmino: ({ validatorAddress }: _28.MsgWithdrawValidatorCommission) => { validator_address: string; }; fromAmino: ({ validator_address }: { validator_address: string; - }) => _41.MsgWithdrawValidatorCommission; + }) => _28.MsgWithdrawValidatorCommission; }; "/cosmos.distribution.v1beta1.MsgFundCommunityPool": { aminoType: string; - toAmino: ({ amount, depositor }: _41.MsgFundCommunityPool) => { + toAmino: ({ amount, depositor }: _28.MsgFundCommunityPool) => { amount: { denom: string; amount: string; @@ -1401,639 +1087,375 @@ export declare namespace cosmos { amount: string; }[]; depositor: string; - }) => _41.MsgFundCommunityPool; + }) => _28.MsgFundCommunityPool; }; }; MsgSetWithdrawAddress: { - encode(message: _41.MsgSetWithdrawAddress, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _41.MsgSetWithdrawAddress; - fromPartial(object: any): _41.MsgSetWithdrawAddress; + encode(message: _28.MsgSetWithdrawAddress, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _28.MsgSetWithdrawAddress; + fromPartial(object: any): _28.MsgSetWithdrawAddress; }; MsgSetWithdrawAddressResponse: { - encode(_: _41.MsgSetWithdrawAddressResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _41.MsgSetWithdrawAddressResponse; - fromPartial(_: any): _41.MsgSetWithdrawAddressResponse; + encode(_: _28.MsgSetWithdrawAddressResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _28.MsgSetWithdrawAddressResponse; + fromPartial(_: any): _28.MsgSetWithdrawAddressResponse; }; MsgWithdrawDelegatorReward: { - encode(message: _41.MsgWithdrawDelegatorReward, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _41.MsgWithdrawDelegatorReward; - fromPartial(object: any): _41.MsgWithdrawDelegatorReward; + encode(message: _28.MsgWithdrawDelegatorReward, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _28.MsgWithdrawDelegatorReward; + fromPartial(object: any): _28.MsgWithdrawDelegatorReward; }; MsgWithdrawDelegatorRewardResponse: { - encode(message: _41.MsgWithdrawDelegatorRewardResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _41.MsgWithdrawDelegatorRewardResponse; - fromPartial(object: any): _41.MsgWithdrawDelegatorRewardResponse; + encode(message: _28.MsgWithdrawDelegatorRewardResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _28.MsgWithdrawDelegatorRewardResponse; + fromPartial(object: any): _28.MsgWithdrawDelegatorRewardResponse; }; MsgWithdrawValidatorCommission: { - encode(message: _41.MsgWithdrawValidatorCommission, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _41.MsgWithdrawValidatorCommission; - fromPartial(object: any): _41.MsgWithdrawValidatorCommission; + encode(message: _28.MsgWithdrawValidatorCommission, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _28.MsgWithdrawValidatorCommission; + fromPartial(object: any): _28.MsgWithdrawValidatorCommission; }; MsgWithdrawValidatorCommissionResponse: { - encode(message: _41.MsgWithdrawValidatorCommissionResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _41.MsgWithdrawValidatorCommissionResponse; - fromPartial(object: any): _41.MsgWithdrawValidatorCommissionResponse; + encode(message: _28.MsgWithdrawValidatorCommissionResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _28.MsgWithdrawValidatorCommissionResponse; + fromPartial(object: any): _28.MsgWithdrawValidatorCommissionResponse; }; MsgFundCommunityPool: { - encode(message: _41.MsgFundCommunityPool, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _41.MsgFundCommunityPool; - fromPartial(object: any): _41.MsgFundCommunityPool; + encode(message: _28.MsgFundCommunityPool, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _28.MsgFundCommunityPool; + fromPartial(object: any): _28.MsgFundCommunityPool; }; MsgFundCommunityPoolResponse: { - encode(_: _41.MsgFundCommunityPoolResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _41.MsgFundCommunityPoolResponse; - fromPartial(_: any): _41.MsgFundCommunityPoolResponse; + encode(_: _28.MsgFundCommunityPoolResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _28.MsgFundCommunityPoolResponse; + fromPartial(_: any): _28.MsgFundCommunityPoolResponse; }; QueryParamsRequest: { - encode(_: _40.QueryParamsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _40.QueryParamsRequest; - fromPartial(_: any): _40.QueryParamsRequest; + encode(_: _27.QueryParamsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _27.QueryParamsRequest; + fromPartial(_: any): _27.QueryParamsRequest; }; QueryParamsResponse: { - encode(message: _40.QueryParamsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _40.QueryParamsResponse; - fromPartial(object: any): _40.QueryParamsResponse; + encode(message: _27.QueryParamsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _27.QueryParamsResponse; + fromPartial(object: any): _27.QueryParamsResponse; }; QueryValidatorOutstandingRewardsRequest: { - encode(message: _40.QueryValidatorOutstandingRewardsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _40.QueryValidatorOutstandingRewardsRequest; - fromPartial(object: any): _40.QueryValidatorOutstandingRewardsRequest; + encode(message: _27.QueryValidatorOutstandingRewardsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _27.QueryValidatorOutstandingRewardsRequest; + fromPartial(object: any): _27.QueryValidatorOutstandingRewardsRequest; }; QueryValidatorOutstandingRewardsResponse: { - encode(message: _40.QueryValidatorOutstandingRewardsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _40.QueryValidatorOutstandingRewardsResponse; - fromPartial(object: any): _40.QueryValidatorOutstandingRewardsResponse; + encode(message: _27.QueryValidatorOutstandingRewardsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _27.QueryValidatorOutstandingRewardsResponse; + fromPartial(object: any): _27.QueryValidatorOutstandingRewardsResponse; }; QueryValidatorCommissionRequest: { - encode(message: _40.QueryValidatorCommissionRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _40.QueryValidatorCommissionRequest; - fromPartial(object: any): _40.QueryValidatorCommissionRequest; + encode(message: _27.QueryValidatorCommissionRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _27.QueryValidatorCommissionRequest; + fromPartial(object: any): _27.QueryValidatorCommissionRequest; }; QueryValidatorCommissionResponse: { - encode(message: _40.QueryValidatorCommissionResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _40.QueryValidatorCommissionResponse; - fromPartial(object: any): _40.QueryValidatorCommissionResponse; + encode(message: _27.QueryValidatorCommissionResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _27.QueryValidatorCommissionResponse; + fromPartial(object: any): _27.QueryValidatorCommissionResponse; }; QueryValidatorSlashesRequest: { - encode(message: _40.QueryValidatorSlashesRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _40.QueryValidatorSlashesRequest; - fromPartial(object: any): _40.QueryValidatorSlashesRequest; + encode(message: _27.QueryValidatorSlashesRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _27.QueryValidatorSlashesRequest; + fromPartial(object: any): _27.QueryValidatorSlashesRequest; }; QueryValidatorSlashesResponse: { - encode(message: _40.QueryValidatorSlashesResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _40.QueryValidatorSlashesResponse; - fromPartial(object: any): _40.QueryValidatorSlashesResponse; + encode(message: _27.QueryValidatorSlashesResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _27.QueryValidatorSlashesResponse; + fromPartial(object: any): _27.QueryValidatorSlashesResponse; }; QueryDelegationRewardsRequest: { - encode(message: _40.QueryDelegationRewardsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _40.QueryDelegationRewardsRequest; - fromPartial(object: any): _40.QueryDelegationRewardsRequest; + encode(message: _27.QueryDelegationRewardsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _27.QueryDelegationRewardsRequest; + fromPartial(object: any): _27.QueryDelegationRewardsRequest; }; QueryDelegationRewardsResponse: { - encode(message: _40.QueryDelegationRewardsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _40.QueryDelegationRewardsResponse; - fromPartial(object: any): _40.QueryDelegationRewardsResponse; + encode(message: _27.QueryDelegationRewardsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _27.QueryDelegationRewardsResponse; + fromPartial(object: any): _27.QueryDelegationRewardsResponse; }; QueryDelegationTotalRewardsRequest: { - encode(message: _40.QueryDelegationTotalRewardsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _40.QueryDelegationTotalRewardsRequest; - fromPartial(object: any): _40.QueryDelegationTotalRewardsRequest; + encode(message: _27.QueryDelegationTotalRewardsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _27.QueryDelegationTotalRewardsRequest; + fromPartial(object: any): _27.QueryDelegationTotalRewardsRequest; }; QueryDelegationTotalRewardsResponse: { - encode(message: _40.QueryDelegationTotalRewardsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _40.QueryDelegationTotalRewardsResponse; - fromPartial(object: any): _40.QueryDelegationTotalRewardsResponse; + encode(message: _27.QueryDelegationTotalRewardsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _27.QueryDelegationTotalRewardsResponse; + fromPartial(object: any): _27.QueryDelegationTotalRewardsResponse; }; QueryDelegatorValidatorsRequest: { - encode(message: _40.QueryDelegatorValidatorsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _40.QueryDelegatorValidatorsRequest; - fromPartial(object: any): _40.QueryDelegatorValidatorsRequest; + encode(message: _27.QueryDelegatorValidatorsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _27.QueryDelegatorValidatorsRequest; + fromPartial(object: any): _27.QueryDelegatorValidatorsRequest; }; QueryDelegatorValidatorsResponse: { - encode(message: _40.QueryDelegatorValidatorsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _40.QueryDelegatorValidatorsResponse; - fromPartial(object: any): _40.QueryDelegatorValidatorsResponse; + encode(message: _27.QueryDelegatorValidatorsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _27.QueryDelegatorValidatorsResponse; + fromPartial(object: any): _27.QueryDelegatorValidatorsResponse; }; QueryDelegatorWithdrawAddressRequest: { - encode(message: _40.QueryDelegatorWithdrawAddressRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _40.QueryDelegatorWithdrawAddressRequest; - fromPartial(object: any): _40.QueryDelegatorWithdrawAddressRequest; + encode(message: _27.QueryDelegatorWithdrawAddressRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _27.QueryDelegatorWithdrawAddressRequest; + fromPartial(object: any): _27.QueryDelegatorWithdrawAddressRequest; }; QueryDelegatorWithdrawAddressResponse: { - encode(message: _40.QueryDelegatorWithdrawAddressResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _40.QueryDelegatorWithdrawAddressResponse; - fromPartial(object: any): _40.QueryDelegatorWithdrawAddressResponse; + encode(message: _27.QueryDelegatorWithdrawAddressResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _27.QueryDelegatorWithdrawAddressResponse; + fromPartial(object: any): _27.QueryDelegatorWithdrawAddressResponse; }; QueryCommunityPoolRequest: { - encode(_: _40.QueryCommunityPoolRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _40.QueryCommunityPoolRequest; - fromPartial(_: any): _40.QueryCommunityPoolRequest; + encode(_: _27.QueryCommunityPoolRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _27.QueryCommunityPoolRequest; + fromPartial(_: any): _27.QueryCommunityPoolRequest; }; QueryCommunityPoolResponse: { - encode(message: _40.QueryCommunityPoolResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _40.QueryCommunityPoolResponse; - fromPartial(object: any): _40.QueryCommunityPoolResponse; + encode(message: _27.QueryCommunityPoolResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _27.QueryCommunityPoolResponse; + fromPartial(object: any): _27.QueryCommunityPoolResponse; }; DelegatorWithdrawInfo: { - encode(message: _39.DelegatorWithdrawInfo, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _39.DelegatorWithdrawInfo; - fromPartial(object: any): _39.DelegatorWithdrawInfo; + encode(message: _26.DelegatorWithdrawInfo, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _26.DelegatorWithdrawInfo; + fromPartial(object: any): _26.DelegatorWithdrawInfo; }; ValidatorOutstandingRewardsRecord: { - encode(message: _39.ValidatorOutstandingRewardsRecord, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _39.ValidatorOutstandingRewardsRecord; - fromPartial(object: any): _39.ValidatorOutstandingRewardsRecord; + encode(message: _26.ValidatorOutstandingRewardsRecord, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _26.ValidatorOutstandingRewardsRecord; + fromPartial(object: any): _26.ValidatorOutstandingRewardsRecord; }; ValidatorAccumulatedCommissionRecord: { - encode(message: _39.ValidatorAccumulatedCommissionRecord, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _39.ValidatorAccumulatedCommissionRecord; - fromPartial(object: any): _39.ValidatorAccumulatedCommissionRecord; + encode(message: _26.ValidatorAccumulatedCommissionRecord, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _26.ValidatorAccumulatedCommissionRecord; + fromPartial(object: any): _26.ValidatorAccumulatedCommissionRecord; }; ValidatorHistoricalRewardsRecord: { - encode(message: _39.ValidatorHistoricalRewardsRecord, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _39.ValidatorHistoricalRewardsRecord; - fromPartial(object: any): _39.ValidatorHistoricalRewardsRecord; + encode(message: _26.ValidatorHistoricalRewardsRecord, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _26.ValidatorHistoricalRewardsRecord; + fromPartial(object: any): _26.ValidatorHistoricalRewardsRecord; }; ValidatorCurrentRewardsRecord: { - encode(message: _39.ValidatorCurrentRewardsRecord, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _39.ValidatorCurrentRewardsRecord; - fromPartial(object: any): _39.ValidatorCurrentRewardsRecord; + encode(message: _26.ValidatorCurrentRewardsRecord, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _26.ValidatorCurrentRewardsRecord; + fromPartial(object: any): _26.ValidatorCurrentRewardsRecord; }; DelegatorStartingInfoRecord: { - encode(message: _39.DelegatorStartingInfoRecord, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _39.DelegatorStartingInfoRecord; - fromPartial(object: any): _39.DelegatorStartingInfoRecord; + encode(message: _26.DelegatorStartingInfoRecord, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _26.DelegatorStartingInfoRecord; + fromPartial(object: any): _26.DelegatorStartingInfoRecord; }; ValidatorSlashEventRecord: { - encode(message: _39.ValidatorSlashEventRecord, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _39.ValidatorSlashEventRecord; - fromPartial(object: any): _39.ValidatorSlashEventRecord; + encode(message: _26.ValidatorSlashEventRecord, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _26.ValidatorSlashEventRecord; + fromPartial(object: any): _26.ValidatorSlashEventRecord; }; GenesisState: { - encode(message: _39.GenesisState, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _39.GenesisState; - fromPartial(object: any): _39.GenesisState; + encode(message: _26.GenesisState, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _26.GenesisState; + fromPartial(object: any): _26.GenesisState; }; Params: { - encode(message: _38.Params, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _38.Params; - fromPartial(object: any): _38.Params; + encode(message: _25.Params, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _25.Params; + fromPartial(object: any): _25.Params; }; ValidatorHistoricalRewards: { - encode(message: _38.ValidatorHistoricalRewards, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _38.ValidatorHistoricalRewards; - fromPartial(object: any): _38.ValidatorHistoricalRewards; + encode(message: _25.ValidatorHistoricalRewards, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _25.ValidatorHistoricalRewards; + fromPartial(object: any): _25.ValidatorHistoricalRewards; }; ValidatorCurrentRewards: { - encode(message: _38.ValidatorCurrentRewards, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _38.ValidatorCurrentRewards; - fromPartial(object: any): _38.ValidatorCurrentRewards; + encode(message: _25.ValidatorCurrentRewards, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _25.ValidatorCurrentRewards; + fromPartial(object: any): _25.ValidatorCurrentRewards; }; ValidatorAccumulatedCommission: { - encode(message: _38.ValidatorAccumulatedCommission, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _38.ValidatorAccumulatedCommission; - fromPartial(object: any): _38.ValidatorAccumulatedCommission; + encode(message: _25.ValidatorAccumulatedCommission, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _25.ValidatorAccumulatedCommission; + fromPartial(object: any): _25.ValidatorAccumulatedCommission; }; ValidatorOutstandingRewards: { - encode(message: _38.ValidatorOutstandingRewards, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _38.ValidatorOutstandingRewards; - fromPartial(object: any): _38.ValidatorOutstandingRewards; + encode(message: _25.ValidatorOutstandingRewards, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _25.ValidatorOutstandingRewards; + fromPartial(object: any): _25.ValidatorOutstandingRewards; }; ValidatorSlashEvent: { - encode(message: _38.ValidatorSlashEvent, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _38.ValidatorSlashEvent; - fromPartial(object: any): _38.ValidatorSlashEvent; + encode(message: _25.ValidatorSlashEvent, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _25.ValidatorSlashEvent; + fromPartial(object: any): _25.ValidatorSlashEvent; }; ValidatorSlashEvents: { - encode(message: _38.ValidatorSlashEvents, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _38.ValidatorSlashEvents; - fromPartial(object: any): _38.ValidatorSlashEvents; + encode(message: _25.ValidatorSlashEvents, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _25.ValidatorSlashEvents; + fromPartial(object: any): _25.ValidatorSlashEvents; }; FeePool: { - encode(message: _38.FeePool, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _38.FeePool; - fromPartial(object: any): _38.FeePool; + encode(message: _25.FeePool, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _25.FeePool; + fromPartial(object: any): _25.FeePool; }; CommunityPoolSpendProposal: { - encode(message: _38.CommunityPoolSpendProposal, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _38.CommunityPoolSpendProposal; - fromPartial(object: any): _38.CommunityPoolSpendProposal; + encode(message: _25.CommunityPoolSpendProposal, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _25.CommunityPoolSpendProposal; + fromPartial(object: any): _25.CommunityPoolSpendProposal; }; DelegatorStartingInfo: { - encode(message: _38.DelegatorStartingInfo, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _38.DelegatorStartingInfo; - fromPartial(object: any): _38.DelegatorStartingInfo; + encode(message: _25.DelegatorStartingInfo, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _25.DelegatorStartingInfo; + fromPartial(object: any): _25.DelegatorStartingInfo; }; DelegationDelegatorReward: { - encode(message: _38.DelegationDelegatorReward, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _38.DelegationDelegatorReward; - fromPartial(object: any): _38.DelegationDelegatorReward; + encode(message: _25.DelegationDelegatorReward, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _25.DelegationDelegatorReward; + fromPartial(object: any): _25.DelegationDelegatorReward; }; CommunityPoolSpendProposalWithDeposit: { - encode(message: _38.CommunityPoolSpendProposalWithDeposit, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _38.CommunityPoolSpendProposalWithDeposit; - fromPartial(object: any): _38.CommunityPoolSpendProposalWithDeposit; - }; - }; - } - namespace evidence { - const v1beta1: { - LCDQueryClient: typeof _213.LCDQueryClient; - registry: readonly [string, import("@cosmjs/proto-signing").GeneratedType][]; - load: (protoRegistry: import("@cosmjs/proto-signing").Registry) => void; - MessageComposer: { - encoded: { - submitEvidence(value: _45.MsgSubmitEvidence): { - typeUrl: string; - value: Uint8Array; - }; - }; - withTypeUrl: { - submitEvidence(value: _45.MsgSubmitEvidence): { - typeUrl: string; - value: _45.MsgSubmitEvidence; - }; - }; - fromPartial: { - submitEvidence(value: _45.MsgSubmitEvidence): { - typeUrl: string; - value: _45.MsgSubmitEvidence; - }; - }; - }; - AminoConverter: { - "/cosmos.evidence.v1beta1.MsgSubmitEvidence": { - aminoType: string; - toAmino: ({ submitter, evidence }: _45.MsgSubmitEvidence) => { - submitter: string; - evidence: { - type_url: string; - value: Uint8Array; - }; - }; - fromAmino: ({ submitter, evidence }: { - submitter: string; - evidence: { - type_url: string; - value: Uint8Array; - }; - }) => _45.MsgSubmitEvidence; - }; - }; - MsgSubmitEvidence: { - encode(message: _45.MsgSubmitEvidence, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _45.MsgSubmitEvidence; - fromPartial(object: any): _45.MsgSubmitEvidence; - }; - MsgSubmitEvidenceResponse: { - encode(message: _45.MsgSubmitEvidenceResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _45.MsgSubmitEvidenceResponse; - fromPartial(object: any): _45.MsgSubmitEvidenceResponse; - }; - QueryEvidenceRequest: { - encode(message: _44.QueryEvidenceRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _44.QueryEvidenceRequest; - fromPartial(object: any): _44.QueryEvidenceRequest; - }; - QueryEvidenceResponse: { - encode(message: _44.QueryEvidenceResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _44.QueryEvidenceResponse; - fromPartial(object: any): _44.QueryEvidenceResponse; - }; - QueryAllEvidenceRequest: { - encode(message: _44.QueryAllEvidenceRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _44.QueryAllEvidenceRequest; - fromPartial(object: any): _44.QueryAllEvidenceRequest; - }; - QueryAllEvidenceResponse: { - encode(message: _44.QueryAllEvidenceResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _44.QueryAllEvidenceResponse; - fromPartial(object: any): _44.QueryAllEvidenceResponse; - }; - GenesisState: { - encode(message: _43.GenesisState, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _43.GenesisState; - fromPartial(object: any): _43.GenesisState; - }; - Equivocation: { - encode(message: _42.Equivocation, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _42.Equivocation; - fromPartial(object: any): _42.Equivocation; - }; - }; - } - namespace feegrant { - const v1beta1: { - LCDQueryClient: typeof _214.LCDQueryClient; - registry: readonly [string, import("@cosmjs/proto-signing").GeneratedType][]; - load: (protoRegistry: import("@cosmjs/proto-signing").Registry) => void; - MessageComposer: { - encoded: { - grantAllowance(value: _49.MsgGrantAllowance): { - typeUrl: string; - value: Uint8Array; - }; - revokeAllowance(value: _49.MsgRevokeAllowance): { - typeUrl: string; - value: Uint8Array; - }; - }; - withTypeUrl: { - grantAllowance(value: _49.MsgGrantAllowance): { - typeUrl: string; - value: _49.MsgGrantAllowance; - }; - revokeAllowance(value: _49.MsgRevokeAllowance): { - typeUrl: string; - value: _49.MsgRevokeAllowance; - }; - }; - fromPartial: { - grantAllowance(value: _49.MsgGrantAllowance): { - typeUrl: string; - value: _49.MsgGrantAllowance; - }; - revokeAllowance(value: _49.MsgRevokeAllowance): { - typeUrl: string; - value: _49.MsgRevokeAllowance; - }; - }; - }; - AminoConverter: { - "/cosmos.feegrant.v1beta1.MsgGrantAllowance": { - aminoType: string; - toAmino: ({ granter, grantee, allowance }: _49.MsgGrantAllowance) => { - granter: string; - grantee: string; - allowance: { - type_url: string; - value: Uint8Array; - }; - }; - fromAmino: ({ granter, grantee, allowance }: { - granter: string; - grantee: string; - allowance: { - type_url: string; - value: Uint8Array; - }; - }) => _49.MsgGrantAllowance; - }; - "/cosmos.feegrant.v1beta1.MsgRevokeAllowance": { - aminoType: string; - toAmino: ({ granter, grantee }: _49.MsgRevokeAllowance) => { - granter: string; - grantee: string; - }; - fromAmino: ({ granter, grantee }: { - granter: string; - grantee: string; - }) => _49.MsgRevokeAllowance; - }; - }; - MsgGrantAllowance: { - encode(message: _49.MsgGrantAllowance, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _49.MsgGrantAllowance; - fromPartial(object: any): _49.MsgGrantAllowance; - }; - MsgGrantAllowanceResponse: { - encode(_: _49.MsgGrantAllowanceResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _49.MsgGrantAllowanceResponse; - fromPartial(_: any): _49.MsgGrantAllowanceResponse; - }; - MsgRevokeAllowance: { - encode(message: _49.MsgRevokeAllowance, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _49.MsgRevokeAllowance; - fromPartial(object: any): _49.MsgRevokeAllowance; - }; - MsgRevokeAllowanceResponse: { - encode(_: _49.MsgRevokeAllowanceResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _49.MsgRevokeAllowanceResponse; - fromPartial(_: any): _49.MsgRevokeAllowanceResponse; - }; - QueryAllowanceRequest: { - encode(message: _48.QueryAllowanceRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _48.QueryAllowanceRequest; - fromPartial(object: any): _48.QueryAllowanceRequest; - }; - QueryAllowanceResponse: { - encode(message: _48.QueryAllowanceResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _48.QueryAllowanceResponse; - fromPartial(object: any): _48.QueryAllowanceResponse; - }; - QueryAllowancesRequest: { - encode(message: _48.QueryAllowancesRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _48.QueryAllowancesRequest; - fromPartial(object: any): _48.QueryAllowancesRequest; - }; - QueryAllowancesResponse: { - encode(message: _48.QueryAllowancesResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _48.QueryAllowancesResponse; - fromPartial(object: any): _48.QueryAllowancesResponse; - }; - QueryAllowancesByGranterRequest: { - encode(message: _48.QueryAllowancesByGranterRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _48.QueryAllowancesByGranterRequest; - fromPartial(object: any): _48.QueryAllowancesByGranterRequest; - }; - QueryAllowancesByGranterResponse: { - encode(message: _48.QueryAllowancesByGranterResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _48.QueryAllowancesByGranterResponse; - fromPartial(object: any): _48.QueryAllowancesByGranterResponse; - }; - GenesisState: { - encode(message: _47.GenesisState, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _47.GenesisState; - fromPartial(object: any): _47.GenesisState; - }; - BasicAllowance: { - encode(message: _46.BasicAllowance, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _46.BasicAllowance; - fromPartial(object: any): _46.BasicAllowance; - }; - PeriodicAllowance: { - encode(message: _46.PeriodicAllowance, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _46.PeriodicAllowance; - fromPartial(object: any): _46.PeriodicAllowance; - }; - AllowedMsgAllowance: { - encode(message: _46.AllowedMsgAllowance, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _46.AllowedMsgAllowance; - fromPartial(object: any): _46.AllowedMsgAllowance; - }; - Grant: { - encode(message: _46.Grant, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _46.Grant; - fromPartial(object: any): _46.Grant; - }; - }; - } - namespace genutil { - const v1beta1: { - GenesisState: { - encode(message: _50.GenesisState, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _50.GenesisState; - fromPartial(object: any): _50.GenesisState; + encode(message: _25.CommunityPoolSpendProposalWithDeposit, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _25.CommunityPoolSpendProposalWithDeposit; + fromPartial(object: any): _25.CommunityPoolSpendProposalWithDeposit; }; }; } namespace gov { - const v1: { - LCDQueryClient: typeof _215.LCDQueryClient; + const v1beta1: { + MsgClientImpl: typeof _157.MsgClientImpl; + QueryClientImpl: typeof _150.QueryClientImpl; + createRpcQueryExtension: (base: import("@cosmjs/stargate").QueryClient) => { + proposal(request: _31.QueryProposalRequest): Promise<_31.QueryProposalResponse>; + proposals(request: _31.QueryProposalsRequest): Promise<_31.QueryProposalsResponse>; + vote(request: _31.QueryVoteRequest): Promise<_31.QueryVoteResponse>; + votes(request: _31.QueryVotesRequest): Promise<_31.QueryVotesResponse>; + params(request: _31.QueryParamsRequest): Promise<_31.QueryParamsResponse>; + deposit(request: _31.QueryDepositRequest): Promise<_31.QueryDepositResponse>; + deposits(request: _31.QueryDepositsRequest): Promise<_31.QueryDepositsResponse>; + tallyResult(request: _31.QueryTallyResultRequest): Promise<_31.QueryTallyResultResponse>; + }; + LCDQueryClient: typeof _142.LCDQueryClient; registry: readonly [string, import("@cosmjs/proto-signing").GeneratedType][]; load: (protoRegistry: import("@cosmjs/proto-signing").Registry) => void; MessageComposer: { encoded: { - submitProposal(value: _54.MsgSubmitProposal): { - typeUrl: string; - value: Uint8Array; - }; - execLegacyContent(value: _54.MsgExecLegacyContent): { + submitProposal(value: _32.MsgSubmitProposal): { typeUrl: string; value: Uint8Array; }; - vote(value: _54.MsgVote): { + vote(value: _32.MsgVote): { typeUrl: string; value: Uint8Array; }; - voteWeighted(value: _54.MsgVoteWeighted): { + voteWeighted(value: _32.MsgVoteWeighted): { typeUrl: string; value: Uint8Array; }; - deposit(value: _54.MsgDeposit): { + deposit(value: _32.MsgDeposit): { typeUrl: string; value: Uint8Array; }; }; withTypeUrl: { - submitProposal(value: _54.MsgSubmitProposal): { - typeUrl: string; - value: _54.MsgSubmitProposal; - }; - execLegacyContent(value: _54.MsgExecLegacyContent): { + submitProposal(value: _32.MsgSubmitProposal): { typeUrl: string; - value: _54.MsgExecLegacyContent; + value: _32.MsgSubmitProposal; }; - vote(value: _54.MsgVote): { + vote(value: _32.MsgVote): { typeUrl: string; - value: _54.MsgVote; + value: _32.MsgVote; }; - voteWeighted(value: _54.MsgVoteWeighted): { + voteWeighted(value: _32.MsgVoteWeighted): { typeUrl: string; - value: _54.MsgVoteWeighted; + value: _32.MsgVoteWeighted; }; - deposit(value: _54.MsgDeposit): { + deposit(value: _32.MsgDeposit): { typeUrl: string; - value: _54.MsgDeposit; + value: _32.MsgDeposit; }; }; fromPartial: { - submitProposal(value: _54.MsgSubmitProposal): { + submitProposal(value: _32.MsgSubmitProposal): { typeUrl: string; - value: _54.MsgSubmitProposal; + value: _32.MsgSubmitProposal; }; - execLegacyContent(value: _54.MsgExecLegacyContent): { + vote(value: _32.MsgVote): { typeUrl: string; - value: _54.MsgExecLegacyContent; + value: _32.MsgVote; }; - vote(value: _54.MsgVote): { + voteWeighted(value: _32.MsgVoteWeighted): { typeUrl: string; - value: _54.MsgVote; + value: _32.MsgVoteWeighted; }; - voteWeighted(value: _54.MsgVoteWeighted): { + deposit(value: _32.MsgDeposit): { typeUrl: string; - value: _54.MsgVoteWeighted; - }; - deposit(value: _54.MsgDeposit): { - typeUrl: string; - value: _54.MsgDeposit; + value: _32.MsgDeposit; }; }; }; AminoConverter: { - "/cosmos.gov.v1.MsgSubmitProposal": { + "/cosmos.gov.v1beta1.MsgSubmitProposal": { aminoType: string; - toAmino: ({ messages, initialDeposit, proposer, metadata }: _54.MsgSubmitProposal) => { - messages: { + toAmino: ({ content, initialDeposit, proposer }: _32.MsgSubmitProposal) => { + content: { type_url: string; value: Uint8Array; - }[]; + }; initial_deposit: { denom: string; amount: string; }[]; proposer: string; - metadata: string; }; - fromAmino: ({ messages, initial_deposit, proposer, metadata }: { - messages: { + fromAmino: ({ content, initial_deposit, proposer }: { + content: { type_url: string; value: Uint8Array; - }[]; + }; initial_deposit: { denom: string; amount: string; }[]; proposer: string; - metadata: string; - }) => _54.MsgSubmitProposal; - }; - "/cosmos.gov.v1.MsgExecLegacyContent": { - aminoType: string; - toAmino: ({ content, authority }: _54.MsgExecLegacyContent) => { - content: { - type_url: string; - value: Uint8Array; - }; - authority: string; - }; - fromAmino: ({ content, authority }: { - content: { - type_url: string; - value: Uint8Array; - }; - authority: string; - }) => _54.MsgExecLegacyContent; + }) => _32.MsgSubmitProposal; }; - "/cosmos.gov.v1.MsgVote": { + "/cosmos.gov.v1beta1.MsgVote": { aminoType: string; - toAmino: ({ proposalId, voter, option, metadata }: _54.MsgVote) => { + toAmino: ({ proposalId, voter, option }: _32.MsgVote) => { proposal_id: string; voter: string; option: number; - metadata: string; }; - fromAmino: ({ proposal_id, voter, option, metadata }: { + fromAmino: ({ proposal_id, voter, option }: { proposal_id: string; voter: string; option: number; - metadata: string; - }) => _54.MsgVote; + }) => _32.MsgVote; }; - "/cosmos.gov.v1.MsgVoteWeighted": { + "/cosmos.gov.v1beta1.MsgVoteWeighted": { aminoType: string; - toAmino: ({ proposalId, voter, options, metadata }: _54.MsgVoteWeighted) => { + toAmino: ({ proposalId, voter, options }: _32.MsgVoteWeighted) => { proposal_id: string; voter: string; options: { option: number; weight: string; }[]; - metadata: string; }; - fromAmino: ({ proposal_id, voter, options, metadata }: { + fromAmino: ({ proposal_id, voter, options }: { proposal_id: string; voter: string; options: { option: number; weight: string; }[]; - metadata: string; - }) => _54.MsgVoteWeighted; + }) => _32.MsgVoteWeighted; }; - "/cosmos.gov.v1.MsgDeposit": { + "/cosmos.gov.v1beta1.MsgDeposit": { aminoType: string; - toAmino: ({ proposalId, depositor, amount }: _54.MsgDeposit) => { + toAmino: ({ proposalId, depositor, amount }: _32.MsgDeposit) => { proposal_id: string; depositor: string; amount: { @@ -2048,1838 +1470,290 @@ export declare namespace cosmos { denom: string; amount: string; }[]; - }) => _54.MsgDeposit; + }) => _32.MsgDeposit; }; }; MsgSubmitProposal: { - encode(message: _54.MsgSubmitProposal, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _54.MsgSubmitProposal; - fromPartial(object: any): _54.MsgSubmitProposal; + encode(message: _32.MsgSubmitProposal, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _32.MsgSubmitProposal; + fromPartial(object: any): _32.MsgSubmitProposal; }; MsgSubmitProposalResponse: { - encode(message: _54.MsgSubmitProposalResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _54.MsgSubmitProposalResponse; - fromPartial(object: any): _54.MsgSubmitProposalResponse; - }; - MsgExecLegacyContent: { - encode(message: _54.MsgExecLegacyContent, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _54.MsgExecLegacyContent; - fromPartial(object: any): _54.MsgExecLegacyContent; - }; - MsgExecLegacyContentResponse: { - encode(_: _54.MsgExecLegacyContentResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _54.MsgExecLegacyContentResponse; - fromPartial(_: any): _54.MsgExecLegacyContentResponse; + encode(message: _32.MsgSubmitProposalResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _32.MsgSubmitProposalResponse; + fromPartial(object: any): _32.MsgSubmitProposalResponse; }; MsgVote: { - encode(message: _54.MsgVote, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _54.MsgVote; - fromPartial(object: any): _54.MsgVote; + encode(message: _32.MsgVote, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _32.MsgVote; + fromPartial(object: any): _32.MsgVote; }; MsgVoteResponse: { - encode(_: _54.MsgVoteResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _54.MsgVoteResponse; - fromPartial(_: any): _54.MsgVoteResponse; + encode(_: _32.MsgVoteResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _32.MsgVoteResponse; + fromPartial(_: any): _32.MsgVoteResponse; }; MsgVoteWeighted: { - encode(message: _54.MsgVoteWeighted, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _54.MsgVoteWeighted; - fromPartial(object: any): _54.MsgVoteWeighted; + encode(message: _32.MsgVoteWeighted, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _32.MsgVoteWeighted; + fromPartial(object: any): _32.MsgVoteWeighted; }; MsgVoteWeightedResponse: { - encode(_: _54.MsgVoteWeightedResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _54.MsgVoteWeightedResponse; - fromPartial(_: any): _54.MsgVoteWeightedResponse; + encode(_: _32.MsgVoteWeightedResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _32.MsgVoteWeightedResponse; + fromPartial(_: any): _32.MsgVoteWeightedResponse; }; MsgDeposit: { - encode(message: _54.MsgDeposit, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _54.MsgDeposit; - fromPartial(object: any): _54.MsgDeposit; + encode(message: _32.MsgDeposit, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _32.MsgDeposit; + fromPartial(object: any): _32.MsgDeposit; }; MsgDepositResponse: { - encode(_: _54.MsgDepositResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _54.MsgDepositResponse; - fromPartial(_: any): _54.MsgDepositResponse; + encode(_: _32.MsgDepositResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _32.MsgDepositResponse; + fromPartial(_: any): _32.MsgDepositResponse; }; QueryProposalRequest: { - encode(message: _53.QueryProposalRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _53.QueryProposalRequest; - fromPartial(object: any): _53.QueryProposalRequest; + encode(message: _31.QueryProposalRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _31.QueryProposalRequest; + fromPartial(object: any): _31.QueryProposalRequest; }; QueryProposalResponse: { - encode(message: _53.QueryProposalResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _53.QueryProposalResponse; - fromPartial(object: any): _53.QueryProposalResponse; + encode(message: _31.QueryProposalResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _31.QueryProposalResponse; + fromPartial(object: any): _31.QueryProposalResponse; }; QueryProposalsRequest: { - encode(message: _53.QueryProposalsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _53.QueryProposalsRequest; - fromPartial(object: any): _53.QueryProposalsRequest; + encode(message: _31.QueryProposalsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _31.QueryProposalsRequest; + fromPartial(object: any): _31.QueryProposalsRequest; }; QueryProposalsResponse: { - encode(message: _53.QueryProposalsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _53.QueryProposalsResponse; - fromPartial(object: any): _53.QueryProposalsResponse; + encode(message: _31.QueryProposalsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _31.QueryProposalsResponse; + fromPartial(object: any): _31.QueryProposalsResponse; }; QueryVoteRequest: { - encode(message: _53.QueryVoteRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _53.QueryVoteRequest; - fromPartial(object: any): _53.QueryVoteRequest; + encode(message: _31.QueryVoteRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _31.QueryVoteRequest; + fromPartial(object: any): _31.QueryVoteRequest; }; QueryVoteResponse: { - encode(message: _53.QueryVoteResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _53.QueryVoteResponse; - fromPartial(object: any): _53.QueryVoteResponse; + encode(message: _31.QueryVoteResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _31.QueryVoteResponse; + fromPartial(object: any): _31.QueryVoteResponse; }; QueryVotesRequest: { - encode(message: _53.QueryVotesRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _53.QueryVotesRequest; - fromPartial(object: any): _53.QueryVotesRequest; + encode(message: _31.QueryVotesRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _31.QueryVotesRequest; + fromPartial(object: any): _31.QueryVotesRequest; }; QueryVotesResponse: { - encode(message: _53.QueryVotesResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _53.QueryVotesResponse; - fromPartial(object: any): _53.QueryVotesResponse; + encode(message: _31.QueryVotesResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _31.QueryVotesResponse; + fromPartial(object: any): _31.QueryVotesResponse; }; QueryParamsRequest: { - encode(message: _53.QueryParamsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _53.QueryParamsRequest; - fromPartial(object: any): _53.QueryParamsRequest; + encode(message: _31.QueryParamsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _31.QueryParamsRequest; + fromPartial(object: any): _31.QueryParamsRequest; }; QueryParamsResponse: { - encode(message: _53.QueryParamsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _53.QueryParamsResponse; - fromPartial(object: any): _53.QueryParamsResponse; + encode(message: _31.QueryParamsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _31.QueryParamsResponse; + fromPartial(object: any): _31.QueryParamsResponse; }; QueryDepositRequest: { - encode(message: _53.QueryDepositRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _53.QueryDepositRequest; - fromPartial(object: any): _53.QueryDepositRequest; + encode(message: _31.QueryDepositRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _31.QueryDepositRequest; + fromPartial(object: any): _31.QueryDepositRequest; }; QueryDepositResponse: { - encode(message: _53.QueryDepositResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _53.QueryDepositResponse; - fromPartial(object: any): _53.QueryDepositResponse; + encode(message: _31.QueryDepositResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _31.QueryDepositResponse; + fromPartial(object: any): _31.QueryDepositResponse; }; QueryDepositsRequest: { - encode(message: _53.QueryDepositsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _53.QueryDepositsRequest; - fromPartial(object: any): _53.QueryDepositsRequest; + encode(message: _31.QueryDepositsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _31.QueryDepositsRequest; + fromPartial(object: any): _31.QueryDepositsRequest; }; QueryDepositsResponse: { - encode(message: _53.QueryDepositsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _53.QueryDepositsResponse; - fromPartial(object: any): _53.QueryDepositsResponse; + encode(message: _31.QueryDepositsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _31.QueryDepositsResponse; + fromPartial(object: any): _31.QueryDepositsResponse; }; QueryTallyResultRequest: { - encode(message: _53.QueryTallyResultRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _53.QueryTallyResultRequest; - fromPartial(object: any): _53.QueryTallyResultRequest; + encode(message: _31.QueryTallyResultRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _31.QueryTallyResultRequest; + fromPartial(object: any): _31.QueryTallyResultRequest; }; QueryTallyResultResponse: { - encode(message: _53.QueryTallyResultResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _53.QueryTallyResultResponse; - fromPartial(object: any): _53.QueryTallyResultResponse; - }; - voteOptionFromJSON(object: any): _52.VoteOption; - voteOptionToJSON(object: _52.VoteOption): string; - proposalStatusFromJSON(object: any): _52.ProposalStatus; - proposalStatusToJSON(object: _52.ProposalStatus): string; - VoteOption: typeof _52.VoteOption; - VoteOptionSDKType: typeof _52.VoteOption; - ProposalStatus: typeof _52.ProposalStatus; - ProposalStatusSDKType: typeof _52.ProposalStatus; + encode(message: _31.QueryTallyResultResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _31.QueryTallyResultResponse; + fromPartial(object: any): _31.QueryTallyResultResponse; + }; + voteOptionFromJSON(object: any): _30.VoteOption; + voteOptionToJSON(object: _30.VoteOption): string; + proposalStatusFromJSON(object: any): _30.ProposalStatus; + proposalStatusToJSON(object: _30.ProposalStatus): string; + VoteOption: typeof _30.VoteOption; + VoteOptionSDKType: typeof _30.VoteOption; + ProposalStatus: typeof _30.ProposalStatus; + ProposalStatusSDKType: typeof _30.ProposalStatus; WeightedVoteOption: { - encode(message: _52.WeightedVoteOption, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _52.WeightedVoteOption; - fromPartial(object: any): _52.WeightedVoteOption; + encode(message: _30.WeightedVoteOption, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _30.WeightedVoteOption; + fromPartial(object: any): _30.WeightedVoteOption; + }; + TextProposal: { + encode(message: _30.TextProposal, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _30.TextProposal; + fromPartial(object: any): _30.TextProposal; }; Deposit: { - encode(message: _52.Deposit, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _52.Deposit; - fromPartial(object: any): _52.Deposit; + encode(message: _30.Deposit, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _30.Deposit; + fromPartial(object: any): _30.Deposit; }; Proposal: { - encode(message: _52.Proposal, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _52.Proposal; - fromPartial(object: any): _52.Proposal; + encode(message: _30.Proposal, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _30.Proposal; + fromPartial(object: any): _30.Proposal; }; TallyResult: { - encode(message: _52.TallyResult, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _52.TallyResult; - fromPartial(object: any): _52.TallyResult; + encode(message: _30.TallyResult, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _30.TallyResult; + fromPartial(object: any): _30.TallyResult; }; Vote: { - encode(message: _52.Vote, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _52.Vote; - fromPartial(object: any): _52.Vote; + encode(message: _30.Vote, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _30.Vote; + fromPartial(object: any): _30.Vote; }; DepositParams: { - encode(message: _52.DepositParams, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _52.DepositParams; - fromPartial(object: any): _52.DepositParams; + encode(message: _30.DepositParams, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _30.DepositParams; + fromPartial(object: any): _30.DepositParams; }; VotingParams: { - encode(message: _52.VotingParams, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _52.VotingParams; - fromPartial(object: any): _52.VotingParams; + encode(message: _30.VotingParams, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _30.VotingParams; + fromPartial(object: any): _30.VotingParams; }; TallyParams: { - encode(message: _52.TallyParams, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _52.TallyParams; - fromPartial(object: any): _52.TallyParams; + encode(message: _30.TallyParams, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _30.TallyParams; + fromPartial(object: any): _30.TallyParams; }; GenesisState: { - encode(message: _51.GenesisState, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _51.GenesisState; - fromPartial(object: any): _51.GenesisState; + encode(message: _29.GenesisState, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _29.GenesisState; + fromPartial(object: any): _29.GenesisState; }; }; + } + namespace staking { const v1beta1: { - LCDQueryClient: typeof _216.LCDQueryClient; + MsgClientImpl: typeof _158.MsgClientImpl; + QueryClientImpl: typeof _151.QueryClientImpl; + createRpcQueryExtension: (base: import("@cosmjs/stargate").QueryClient) => { + validators(request: _35.QueryValidatorsRequest): Promise<_35.QueryValidatorsResponse>; + validator(request: _35.QueryValidatorRequest): Promise<_35.QueryValidatorResponse>; + validatorDelegations(request: _35.QueryValidatorDelegationsRequest): Promise<_35.QueryValidatorDelegationsResponse>; + validatorUnbondingDelegations(request: _35.QueryValidatorUnbondingDelegationsRequest): Promise<_35.QueryValidatorUnbondingDelegationsResponse>; + delegation(request: _35.QueryDelegationRequest): Promise<_35.QueryDelegationResponse>; + unbondingDelegation(request: _35.QueryUnbondingDelegationRequest): Promise<_35.QueryUnbondingDelegationResponse>; + delegatorDelegations(request: _35.QueryDelegatorDelegationsRequest): Promise<_35.QueryDelegatorDelegationsResponse>; + delegatorUnbondingDelegations(request: _35.QueryDelegatorUnbondingDelegationsRequest): Promise<_35.QueryDelegatorUnbondingDelegationsResponse>; + redelegations(request: _35.QueryRedelegationsRequest): Promise<_35.QueryRedelegationsResponse>; + delegatorValidators(request: _35.QueryDelegatorValidatorsRequest): Promise<_35.QueryDelegatorValidatorsResponse>; + delegatorValidator(request: _35.QueryDelegatorValidatorRequest): Promise<_35.QueryDelegatorValidatorResponse>; + historicalInfo(request: _35.QueryHistoricalInfoRequest): Promise<_35.QueryHistoricalInfoResponse>; + pool(request?: _35.QueryPoolRequest): Promise<_35.QueryPoolResponse>; + params(request?: _35.QueryParamsRequest): Promise<_35.QueryParamsResponse>; + }; + LCDQueryClient: typeof _143.LCDQueryClient; registry: readonly [string, import("@cosmjs/proto-signing").GeneratedType][]; load: (protoRegistry: import("@cosmjs/proto-signing").Registry) => void; MessageComposer: { encoded: { - submitProposal(value: _58.MsgSubmitProposal): { + createValidator(value: _37.MsgCreateValidator): { + typeUrl: string; + value: Uint8Array; + }; + editValidator(value: _37.MsgEditValidator): { typeUrl: string; value: Uint8Array; }; - vote(value: _58.MsgVote): { + delegate(value: _37.MsgDelegate): { typeUrl: string; value: Uint8Array; }; - voteWeighted(value: _58.MsgVoteWeighted): { + beginRedelegate(value: _37.MsgBeginRedelegate): { typeUrl: string; value: Uint8Array; }; - deposit(value: _58.MsgDeposit): { + undelegate(value: _37.MsgUndelegate): { typeUrl: string; value: Uint8Array; }; }; withTypeUrl: { - submitProposal(value: _58.MsgSubmitProposal): { + createValidator(value: _37.MsgCreateValidator): { typeUrl: string; - value: _58.MsgSubmitProposal; + value: _37.MsgCreateValidator; }; - vote(value: _58.MsgVote): { + editValidator(value: _37.MsgEditValidator): { typeUrl: string; - value: _58.MsgVote; + value: _37.MsgEditValidator; }; - voteWeighted(value: _58.MsgVoteWeighted): { + delegate(value: _37.MsgDelegate): { typeUrl: string; - value: _58.MsgVoteWeighted; + value: _37.MsgDelegate; }; - deposit(value: _58.MsgDeposit): { + beginRedelegate(value: _37.MsgBeginRedelegate): { typeUrl: string; - value: _58.MsgDeposit; + value: _37.MsgBeginRedelegate; + }; + undelegate(value: _37.MsgUndelegate): { + typeUrl: string; + value: _37.MsgUndelegate; }; }; fromPartial: { - submitProposal(value: _58.MsgSubmitProposal): { + createValidator(value: _37.MsgCreateValidator): { + typeUrl: string; + value: _37.MsgCreateValidator; + }; + editValidator(value: _37.MsgEditValidator): { typeUrl: string; - value: _58.MsgSubmitProposal; + value: _37.MsgEditValidator; }; - vote(value: _58.MsgVote): { + delegate(value: _37.MsgDelegate): { typeUrl: string; - value: _58.MsgVote; + value: _37.MsgDelegate; }; - voteWeighted(value: _58.MsgVoteWeighted): { + beginRedelegate(value: _37.MsgBeginRedelegate): { typeUrl: string; - value: _58.MsgVoteWeighted; + value: _37.MsgBeginRedelegate; }; - deposit(value: _58.MsgDeposit): { + undelegate(value: _37.MsgUndelegate): { typeUrl: string; - value: _58.MsgDeposit; + value: _37.MsgUndelegate; }; }; }; AminoConverter: { - "/cosmos.gov.v1beta1.MsgSubmitProposal": { + "/cosmos.staking.v1beta1.MsgCreateValidator": { aminoType: string; - toAmino: ({ content, initialDeposit, proposer }: _58.MsgSubmitProposal) => { - content: { - type_url: string; - value: Uint8Array; - }; - initial_deposit: { - denom: string; - amount: string; - }[]; - proposer: string; - }; - fromAmino: ({ content, initial_deposit, proposer }: { - content: { - type_url: string; - value: Uint8Array; - }; - initial_deposit: { - denom: string; - amount: string; - }[]; - proposer: string; - }) => _58.MsgSubmitProposal; - }; - "/cosmos.gov.v1beta1.MsgVote": { - aminoType: string; - toAmino: ({ proposalId, voter, option }: _58.MsgVote) => { - proposal_id: string; - voter: string; - option: number; - }; - fromAmino: ({ proposal_id, voter, option }: { - proposal_id: string; - voter: string; - option: number; - }) => _58.MsgVote; - }; - "/cosmos.gov.v1beta1.MsgVoteWeighted": { - aminoType: string; - toAmino: ({ proposalId, voter, options }: _58.MsgVoteWeighted) => { - proposal_id: string; - voter: string; - options: { - option: number; - weight: string; - }[]; - }; - fromAmino: ({ proposal_id, voter, options }: { - proposal_id: string; - voter: string; - options: { - option: number; - weight: string; - }[]; - }) => _58.MsgVoteWeighted; - }; - "/cosmos.gov.v1beta1.MsgDeposit": { - aminoType: string; - toAmino: ({ proposalId, depositor, amount }: _58.MsgDeposit) => { - proposal_id: string; - depositor: string; - amount: { - denom: string; - amount: string; - }[]; - }; - fromAmino: ({ proposal_id, depositor, amount }: { - proposal_id: string; - depositor: string; - amount: { - denom: string; - amount: string; - }[]; - }) => _58.MsgDeposit; - }; - }; - MsgSubmitProposal: { - encode(message: _58.MsgSubmitProposal, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _58.MsgSubmitProposal; - fromPartial(object: any): _58.MsgSubmitProposal; - }; - MsgSubmitProposalResponse: { - encode(message: _58.MsgSubmitProposalResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _58.MsgSubmitProposalResponse; - fromPartial(object: any): _58.MsgSubmitProposalResponse; - }; - MsgVote: { - encode(message: _58.MsgVote, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _58.MsgVote; - fromPartial(object: any): _58.MsgVote; - }; - MsgVoteResponse: { - encode(_: _58.MsgVoteResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _58.MsgVoteResponse; - fromPartial(_: any): _58.MsgVoteResponse; - }; - MsgVoteWeighted: { - encode(message: _58.MsgVoteWeighted, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _58.MsgVoteWeighted; - fromPartial(object: any): _58.MsgVoteWeighted; - }; - MsgVoteWeightedResponse: { - encode(_: _58.MsgVoteWeightedResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _58.MsgVoteWeightedResponse; - fromPartial(_: any): _58.MsgVoteWeightedResponse; - }; - MsgDeposit: { - encode(message: _58.MsgDeposit, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _58.MsgDeposit; - fromPartial(object: any): _58.MsgDeposit; - }; - MsgDepositResponse: { - encode(_: _58.MsgDepositResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _58.MsgDepositResponse; - fromPartial(_: any): _58.MsgDepositResponse; - }; - QueryProposalRequest: { - encode(message: _57.QueryProposalRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _57.QueryProposalRequest; - fromPartial(object: any): _57.QueryProposalRequest; - }; - QueryProposalResponse: { - encode(message: _57.QueryProposalResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _57.QueryProposalResponse; - fromPartial(object: any): _57.QueryProposalResponse; - }; - QueryProposalsRequest: { - encode(message: _57.QueryProposalsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _57.QueryProposalsRequest; - fromPartial(object: any): _57.QueryProposalsRequest; - }; - QueryProposalsResponse: { - encode(message: _57.QueryProposalsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _57.QueryProposalsResponse; - fromPartial(object: any): _57.QueryProposalsResponse; - }; - QueryVoteRequest: { - encode(message: _57.QueryVoteRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _57.QueryVoteRequest; - fromPartial(object: any): _57.QueryVoteRequest; - }; - QueryVoteResponse: { - encode(message: _57.QueryVoteResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _57.QueryVoteResponse; - fromPartial(object: any): _57.QueryVoteResponse; - }; - QueryVotesRequest: { - encode(message: _57.QueryVotesRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _57.QueryVotesRequest; - fromPartial(object: any): _57.QueryVotesRequest; - }; - QueryVotesResponse: { - encode(message: _57.QueryVotesResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _57.QueryVotesResponse; - fromPartial(object: any): _57.QueryVotesResponse; - }; - QueryParamsRequest: { - encode(message: _57.QueryParamsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _57.QueryParamsRequest; - fromPartial(object: any): _57.QueryParamsRequest; - }; - QueryParamsResponse: { - encode(message: _57.QueryParamsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _57.QueryParamsResponse; - fromPartial(object: any): _57.QueryParamsResponse; - }; - QueryDepositRequest: { - encode(message: _57.QueryDepositRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _57.QueryDepositRequest; - fromPartial(object: any): _57.QueryDepositRequest; - }; - QueryDepositResponse: { - encode(message: _57.QueryDepositResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _57.QueryDepositResponse; - fromPartial(object: any): _57.QueryDepositResponse; - }; - QueryDepositsRequest: { - encode(message: _57.QueryDepositsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _57.QueryDepositsRequest; - fromPartial(object: any): _57.QueryDepositsRequest; - }; - QueryDepositsResponse: { - encode(message: _57.QueryDepositsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _57.QueryDepositsResponse; - fromPartial(object: any): _57.QueryDepositsResponse; - }; - QueryTallyResultRequest: { - encode(message: _57.QueryTallyResultRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _57.QueryTallyResultRequest; - fromPartial(object: any): _57.QueryTallyResultRequest; - }; - QueryTallyResultResponse: { - encode(message: _57.QueryTallyResultResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _57.QueryTallyResultResponse; - fromPartial(object: any): _57.QueryTallyResultResponse; - }; - voteOptionFromJSON(object: any): _56.VoteOption; - voteOptionToJSON(object: _56.VoteOption): string; - proposalStatusFromJSON(object: any): _56.ProposalStatus; - proposalStatusToJSON(object: _56.ProposalStatus): string; - VoteOption: typeof _56.VoteOption; - VoteOptionSDKType: typeof _56.VoteOption; - ProposalStatus: typeof _56.ProposalStatus; - ProposalStatusSDKType: typeof _56.ProposalStatus; - WeightedVoteOption: { - encode(message: _56.WeightedVoteOption, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _56.WeightedVoteOption; - fromPartial(object: any): _56.WeightedVoteOption; - }; - TextProposal: { - encode(message: _56.TextProposal, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _56.TextProposal; - fromPartial(object: any): _56.TextProposal; - }; - Deposit: { - encode(message: _56.Deposit, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _56.Deposit; - fromPartial(object: any): _56.Deposit; - }; - Proposal: { - encode(message: _56.Proposal, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _56.Proposal; - fromPartial(object: any): _56.Proposal; - }; - TallyResult: { - encode(message: _56.TallyResult, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _56.TallyResult; - fromPartial(object: any): _56.TallyResult; - }; - Vote: { - encode(message: _56.Vote, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _56.Vote; - fromPartial(object: any): _56.Vote; - }; - DepositParams: { - encode(message: _56.DepositParams, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _56.DepositParams; - fromPartial(object: any): _56.DepositParams; - }; - VotingParams: { - encode(message: _56.VotingParams, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _56.VotingParams; - fromPartial(object: any): _56.VotingParams; - }; - TallyParams: { - encode(message: _56.TallyParams, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _56.TallyParams; - fromPartial(object: any): _56.TallyParams; - }; - GenesisState: { - encode(message: _55.GenesisState, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _55.GenesisState; - fromPartial(object: any): _55.GenesisState; - }; - }; - } - namespace group { - const v1: { - LCDQueryClient: typeof _217.LCDQueryClient; - registry: readonly [string, import("@cosmjs/proto-signing").GeneratedType][]; - load: (protoRegistry: import("@cosmjs/proto-signing").Registry) => void; - MessageComposer: { - encoded: { - createGroup(value: _62.MsgCreateGroup): { - typeUrl: string; - value: Uint8Array; - }; - updateGroupMembers(value: _62.MsgUpdateGroupMembers): { - typeUrl: string; - value: Uint8Array; - }; - updateGroupAdmin(value: _62.MsgUpdateGroupAdmin): { - typeUrl: string; - value: Uint8Array; - }; - updateGroupMetadata(value: _62.MsgUpdateGroupMetadata): { - typeUrl: string; - value: Uint8Array; - }; - createGroupPolicy(value: _62.MsgCreateGroupPolicy): { - typeUrl: string; - value: Uint8Array; - }; - createGroupWithPolicy(value: _62.MsgCreateGroupWithPolicy): { - typeUrl: string; - value: Uint8Array; - }; - updateGroupPolicyAdmin(value: _62.MsgUpdateGroupPolicyAdmin): { - typeUrl: string; - value: Uint8Array; - }; - updateGroupPolicyDecisionPolicy(value: _62.MsgUpdateGroupPolicyDecisionPolicy): { - typeUrl: string; - value: Uint8Array; - }; - updateGroupPolicyMetadata(value: _62.MsgUpdateGroupPolicyMetadata): { - typeUrl: string; - value: Uint8Array; - }; - submitProposal(value: _62.MsgSubmitProposal): { - typeUrl: string; - value: Uint8Array; - }; - withdrawProposal(value: _62.MsgWithdrawProposal): { - typeUrl: string; - value: Uint8Array; - }; - vote(value: _62.MsgVote): { - typeUrl: string; - value: Uint8Array; - }; - exec(value: _62.MsgExec): { - typeUrl: string; - value: Uint8Array; - }; - leaveGroup(value: _62.MsgLeaveGroup): { - typeUrl: string; - value: Uint8Array; - }; - }; - withTypeUrl: { - createGroup(value: _62.MsgCreateGroup): { - typeUrl: string; - value: _62.MsgCreateGroup; - }; - updateGroupMembers(value: _62.MsgUpdateGroupMembers): { - typeUrl: string; - value: _62.MsgUpdateGroupMembers; - }; - updateGroupAdmin(value: _62.MsgUpdateGroupAdmin): { - typeUrl: string; - value: _62.MsgUpdateGroupAdmin; - }; - updateGroupMetadata(value: _62.MsgUpdateGroupMetadata): { - typeUrl: string; - value: _62.MsgUpdateGroupMetadata; - }; - createGroupPolicy(value: _62.MsgCreateGroupPolicy): { - typeUrl: string; - value: _62.MsgCreateGroupPolicy; - }; - createGroupWithPolicy(value: _62.MsgCreateGroupWithPolicy): { - typeUrl: string; - value: _62.MsgCreateGroupWithPolicy; - }; - updateGroupPolicyAdmin(value: _62.MsgUpdateGroupPolicyAdmin): { - typeUrl: string; - value: _62.MsgUpdateGroupPolicyAdmin; - }; - updateGroupPolicyDecisionPolicy(value: _62.MsgUpdateGroupPolicyDecisionPolicy): { - typeUrl: string; - value: _62.MsgUpdateGroupPolicyDecisionPolicy; - }; - updateGroupPolicyMetadata(value: _62.MsgUpdateGroupPolicyMetadata): { - typeUrl: string; - value: _62.MsgUpdateGroupPolicyMetadata; - }; - submitProposal(value: _62.MsgSubmitProposal): { - typeUrl: string; - value: _62.MsgSubmitProposal; - }; - withdrawProposal(value: _62.MsgWithdrawProposal): { - typeUrl: string; - value: _62.MsgWithdrawProposal; - }; - vote(value: _62.MsgVote): { - typeUrl: string; - value: _62.MsgVote; - }; - exec(value: _62.MsgExec): { - typeUrl: string; - value: _62.MsgExec; - }; - leaveGroup(value: _62.MsgLeaveGroup): { - typeUrl: string; - value: _62.MsgLeaveGroup; - }; - }; - fromPartial: { - createGroup(value: _62.MsgCreateGroup): { - typeUrl: string; - value: _62.MsgCreateGroup; - }; - updateGroupMembers(value: _62.MsgUpdateGroupMembers): { - typeUrl: string; - value: _62.MsgUpdateGroupMembers; - }; - updateGroupAdmin(value: _62.MsgUpdateGroupAdmin): { - typeUrl: string; - value: _62.MsgUpdateGroupAdmin; - }; - updateGroupMetadata(value: _62.MsgUpdateGroupMetadata): { - typeUrl: string; - value: _62.MsgUpdateGroupMetadata; - }; - createGroupPolicy(value: _62.MsgCreateGroupPolicy): { - typeUrl: string; - value: _62.MsgCreateGroupPolicy; - }; - createGroupWithPolicy(value: _62.MsgCreateGroupWithPolicy): { - typeUrl: string; - value: _62.MsgCreateGroupWithPolicy; - }; - updateGroupPolicyAdmin(value: _62.MsgUpdateGroupPolicyAdmin): { - typeUrl: string; - value: _62.MsgUpdateGroupPolicyAdmin; - }; - updateGroupPolicyDecisionPolicy(value: _62.MsgUpdateGroupPolicyDecisionPolicy): { - typeUrl: string; - value: _62.MsgUpdateGroupPolicyDecisionPolicy; - }; - updateGroupPolicyMetadata(value: _62.MsgUpdateGroupPolicyMetadata): { - typeUrl: string; - value: _62.MsgUpdateGroupPolicyMetadata; - }; - submitProposal(value: _62.MsgSubmitProposal): { - typeUrl: string; - value: _62.MsgSubmitProposal; - }; - withdrawProposal(value: _62.MsgWithdrawProposal): { - typeUrl: string; - value: _62.MsgWithdrawProposal; - }; - vote(value: _62.MsgVote): { - typeUrl: string; - value: _62.MsgVote; - }; - exec(value: _62.MsgExec): { - typeUrl: string; - value: _62.MsgExec; - }; - leaveGroup(value: _62.MsgLeaveGroup): { - typeUrl: string; - value: _62.MsgLeaveGroup; - }; - }; - }; - AminoConverter: { - "/cosmos.group.v1.MsgCreateGroup": { - aminoType: string; - toAmino: ({ admin, members, metadata }: _62.MsgCreateGroup) => { - admin: string; - members: { - address: string; - weight: string; - metadata: string; - added_at: { - seconds: string; - nanos: number; - }; - }[]; - metadata: string; - }; - fromAmino: ({ admin, members, metadata }: { - admin: string; - members: { - address: string; - weight: string; - metadata: string; - added_at: { - seconds: string; - nanos: number; - }; - }[]; - metadata: string; - }) => _62.MsgCreateGroup; - }; - "/cosmos.group.v1.MsgUpdateGroupMembers": { - aminoType: string; - toAmino: ({ admin, groupId, memberUpdates }: _62.MsgUpdateGroupMembers) => { - admin: string; - group_id: string; - member_updates: { - address: string; - weight: string; - metadata: string; - added_at: { - seconds: string; - nanos: number; - }; - }[]; - }; - fromAmino: ({ admin, group_id, member_updates }: { - admin: string; - group_id: string; - member_updates: { - address: string; - weight: string; - metadata: string; - added_at: { - seconds: string; - nanos: number; - }; - }[]; - }) => _62.MsgUpdateGroupMembers; - }; - "/cosmos.group.v1.MsgUpdateGroupAdmin": { - aminoType: string; - toAmino: ({ admin, groupId, newAdmin }: _62.MsgUpdateGroupAdmin) => { - admin: string; - group_id: string; - new_admin: string; - }; - fromAmino: ({ admin, group_id, new_admin }: { - admin: string; - group_id: string; - new_admin: string; - }) => _62.MsgUpdateGroupAdmin; - }; - "/cosmos.group.v1.MsgUpdateGroupMetadata": { - aminoType: string; - toAmino: ({ admin, groupId, metadata }: _62.MsgUpdateGroupMetadata) => { - admin: string; - group_id: string; - metadata: string; - }; - fromAmino: ({ admin, group_id, metadata }: { - admin: string; - group_id: string; - metadata: string; - }) => _62.MsgUpdateGroupMetadata; - }; - "/cosmos.group.v1.MsgCreateGroupPolicy": { - aminoType: string; - toAmino: ({ admin, groupId, metadata, decisionPolicy }: _62.MsgCreateGroupPolicy) => { - admin: string; - group_id: string; - metadata: string; - decision_policy: { - type_url: string; - value: Uint8Array; - }; - }; - fromAmino: ({ admin, group_id, metadata, decision_policy }: { - admin: string; - group_id: string; - metadata: string; - decision_policy: { - type_url: string; - value: Uint8Array; - }; - }) => _62.MsgCreateGroupPolicy; - }; - "/cosmos.group.v1.MsgCreateGroupWithPolicy": { - aminoType: string; - toAmino: ({ admin, members, groupMetadata, groupPolicyMetadata, groupPolicyAsAdmin, decisionPolicy }: _62.MsgCreateGroupWithPolicy) => { - admin: string; - members: { - address: string; - weight: string; - metadata: string; - added_at: { - seconds: string; - nanos: number; - }; - }[]; - group_metadata: string; - group_policy_metadata: string; - group_policy_as_admin: boolean; - decision_policy: { - type_url: string; - value: Uint8Array; - }; - }; - fromAmino: ({ admin, members, group_metadata, group_policy_metadata, group_policy_as_admin, decision_policy }: { - admin: string; - members: { - address: string; - weight: string; - metadata: string; - added_at: { - seconds: string; - nanos: number; - }; - }[]; - group_metadata: string; - group_policy_metadata: string; - group_policy_as_admin: boolean; - decision_policy: { - type_url: string; - value: Uint8Array; - }; - }) => _62.MsgCreateGroupWithPolicy; - }; - "/cosmos.group.v1.MsgUpdateGroupPolicyAdmin": { - aminoType: string; - toAmino: ({ admin, address, newAdmin }: _62.MsgUpdateGroupPolicyAdmin) => { - admin: string; - address: string; - new_admin: string; - }; - fromAmino: ({ admin, address, new_admin }: { - admin: string; - address: string; - new_admin: string; - }) => _62.MsgUpdateGroupPolicyAdmin; - }; - "/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy": { - aminoType: string; - toAmino: ({ admin, address, decisionPolicy }: _62.MsgUpdateGroupPolicyDecisionPolicy) => { - admin: string; - address: string; - decision_policy: { - type_url: string; - value: Uint8Array; - }; - }; - fromAmino: ({ admin, address, decision_policy }: { - admin: string; - address: string; - decision_policy: { - type_url: string; - value: Uint8Array; - }; - }) => _62.MsgUpdateGroupPolicyDecisionPolicy; - }; - "/cosmos.group.v1.MsgUpdateGroupPolicyMetadata": { - aminoType: string; - toAmino: ({ admin, address, metadata }: _62.MsgUpdateGroupPolicyMetadata) => { - admin: string; - address: string; - metadata: string; - }; - fromAmino: ({ admin, address, metadata }: { - admin: string; - address: string; - metadata: string; - }) => _62.MsgUpdateGroupPolicyMetadata; - }; - "/cosmos.group.v1.MsgSubmitProposal": { - aminoType: string; - toAmino: ({ address, proposers, metadata, messages, exec }: _62.MsgSubmitProposal) => { - address: string; - proposers: string[]; - metadata: string; - messages: { - type_url: string; - value: Uint8Array; - }[]; - exec: number; - }; - fromAmino: ({ address, proposers, metadata, messages, exec }: { - address: string; - proposers: string[]; - metadata: string; - messages: { - type_url: string; - value: Uint8Array; - }[]; - exec: number; - }) => _62.MsgSubmitProposal; - }; - "/cosmos.group.v1.MsgWithdrawProposal": { - aminoType: string; - toAmino: ({ proposalId, address }: _62.MsgWithdrawProposal) => { - proposal_id: string; - address: string; - }; - fromAmino: ({ proposal_id, address }: { - proposal_id: string; - address: string; - }) => _62.MsgWithdrawProposal; - }; - "/cosmos.group.v1.MsgVote": { - aminoType: string; - toAmino: ({ proposalId, voter, option, metadata, exec }: _62.MsgVote) => { - proposal_id: string; - voter: string; - option: number; - metadata: string; - exec: number; - }; - fromAmino: ({ proposal_id, voter, option, metadata, exec }: { - proposal_id: string; - voter: string; - option: number; - metadata: string; - exec: number; - }) => _62.MsgVote; - }; - "/cosmos.group.v1.MsgExec": { - aminoType: string; - toAmino: ({ proposalId, signer }: _62.MsgExec) => { - proposal_id: string; - signer: string; - }; - fromAmino: ({ proposal_id, signer }: { - proposal_id: string; - signer: string; - }) => _62.MsgExec; - }; - "/cosmos.group.v1.MsgLeaveGroup": { - aminoType: string; - toAmino: ({ address, groupId }: _62.MsgLeaveGroup) => { - address: string; - group_id: string; - }; - fromAmino: ({ address, group_id }: { - address: string; - group_id: string; - }) => _62.MsgLeaveGroup; - }; - }; - voteOptionFromJSON(object: any): _63.VoteOption; - voteOptionToJSON(object: _63.VoteOption): string; - proposalStatusFromJSON(object: any): _63.ProposalStatus; - proposalStatusToJSON(object: _63.ProposalStatus): string; - proposalResultFromJSON(object: any): _63.ProposalResult; - proposalResultToJSON(object: _63.ProposalResult): string; - proposalExecutorResultFromJSON(object: any): _63.ProposalExecutorResult; - proposalExecutorResultToJSON(object: _63.ProposalExecutorResult): string; - VoteOption: typeof _63.VoteOption; - VoteOptionSDKType: typeof _63.VoteOption; - ProposalStatus: typeof _63.ProposalStatus; - ProposalStatusSDKType: typeof _63.ProposalStatus; - ProposalResult: typeof _63.ProposalResult; - ProposalResultSDKType: typeof _63.ProposalResult; - ProposalExecutorResult: typeof _63.ProposalExecutorResult; - ProposalExecutorResultSDKType: typeof _63.ProposalExecutorResult; - Member: { - encode(message: _63.Member, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _63.Member; - fromPartial(object: any): _63.Member; - }; - Members: { - encode(message: _63.Members, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _63.Members; - fromPartial(object: any): _63.Members; - }; - ThresholdDecisionPolicy: { - encode(message: _63.ThresholdDecisionPolicy, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _63.ThresholdDecisionPolicy; - fromPartial(object: any): _63.ThresholdDecisionPolicy; - }; - PercentageDecisionPolicy: { - encode(message: _63.PercentageDecisionPolicy, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _63.PercentageDecisionPolicy; - fromPartial(object: any): _63.PercentageDecisionPolicy; - }; - DecisionPolicyWindows: { - encode(message: _63.DecisionPolicyWindows, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _63.DecisionPolicyWindows; - fromPartial(object: any): _63.DecisionPolicyWindows; - }; - GroupInfo: { - encode(message: _63.GroupInfo, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _63.GroupInfo; - fromPartial(object: any): _63.GroupInfo; - }; - GroupMember: { - encode(message: _63.GroupMember, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _63.GroupMember; - fromPartial(object: any): _63.GroupMember; - }; - GroupPolicyInfo: { - encode(message: _63.GroupPolicyInfo, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _63.GroupPolicyInfo; - fromPartial(object: any): _63.GroupPolicyInfo; - }; - Proposal: { - encode(message: _63.Proposal, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _63.Proposal; - fromPartial(object: any): _63.Proposal; - }; - TallyResult: { - encode(message: _63.TallyResult, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _63.TallyResult; - fromPartial(object: any): _63.TallyResult; - }; - Vote: { - encode(message: _63.Vote, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _63.Vote; - fromPartial(object: any): _63.Vote; - }; - execFromJSON(object: any): _62.Exec; - execToJSON(object: _62.Exec): string; - Exec: typeof _62.Exec; - ExecSDKType: typeof _62.Exec; - MsgCreateGroup: { - encode(message: _62.MsgCreateGroup, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _62.MsgCreateGroup; - fromPartial(object: any): _62.MsgCreateGroup; - }; - MsgCreateGroupResponse: { - encode(message: _62.MsgCreateGroupResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _62.MsgCreateGroupResponse; - fromPartial(object: any): _62.MsgCreateGroupResponse; - }; - MsgUpdateGroupMembers: { - encode(message: _62.MsgUpdateGroupMembers, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _62.MsgUpdateGroupMembers; - fromPartial(object: any): _62.MsgUpdateGroupMembers; - }; - MsgUpdateGroupMembersResponse: { - encode(_: _62.MsgUpdateGroupMembersResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _62.MsgUpdateGroupMembersResponse; - fromPartial(_: any): _62.MsgUpdateGroupMembersResponse; - }; - MsgUpdateGroupAdmin: { - encode(message: _62.MsgUpdateGroupAdmin, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _62.MsgUpdateGroupAdmin; - fromPartial(object: any): _62.MsgUpdateGroupAdmin; - }; - MsgUpdateGroupAdminResponse: { - encode(_: _62.MsgUpdateGroupAdminResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _62.MsgUpdateGroupAdminResponse; - fromPartial(_: any): _62.MsgUpdateGroupAdminResponse; - }; - MsgUpdateGroupMetadata: { - encode(message: _62.MsgUpdateGroupMetadata, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _62.MsgUpdateGroupMetadata; - fromPartial(object: any): _62.MsgUpdateGroupMetadata; - }; - MsgUpdateGroupMetadataResponse: { - encode(_: _62.MsgUpdateGroupMetadataResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _62.MsgUpdateGroupMetadataResponse; - fromPartial(_: any): _62.MsgUpdateGroupMetadataResponse; - }; - MsgCreateGroupPolicy: { - encode(message: _62.MsgCreateGroupPolicy, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _62.MsgCreateGroupPolicy; - fromPartial(object: any): _62.MsgCreateGroupPolicy; - }; - MsgCreateGroupPolicyResponse: { - encode(message: _62.MsgCreateGroupPolicyResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _62.MsgCreateGroupPolicyResponse; - fromPartial(object: any): _62.MsgCreateGroupPolicyResponse; - }; - MsgUpdateGroupPolicyAdmin: { - encode(message: _62.MsgUpdateGroupPolicyAdmin, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _62.MsgUpdateGroupPolicyAdmin; - fromPartial(object: any): _62.MsgUpdateGroupPolicyAdmin; - }; - MsgCreateGroupWithPolicy: { - encode(message: _62.MsgCreateGroupWithPolicy, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _62.MsgCreateGroupWithPolicy; - fromPartial(object: any): _62.MsgCreateGroupWithPolicy; - }; - MsgCreateGroupWithPolicyResponse: { - encode(message: _62.MsgCreateGroupWithPolicyResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _62.MsgCreateGroupWithPolicyResponse; - fromPartial(object: any): _62.MsgCreateGroupWithPolicyResponse; - }; - MsgUpdateGroupPolicyAdminResponse: { - encode(_: _62.MsgUpdateGroupPolicyAdminResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _62.MsgUpdateGroupPolicyAdminResponse; - fromPartial(_: any): _62.MsgUpdateGroupPolicyAdminResponse; - }; - MsgUpdateGroupPolicyDecisionPolicy: { - encode(message: _62.MsgUpdateGroupPolicyDecisionPolicy, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _62.MsgUpdateGroupPolicyDecisionPolicy; - fromPartial(object: any): _62.MsgUpdateGroupPolicyDecisionPolicy; - }; - MsgUpdateGroupPolicyDecisionPolicyResponse: { - encode(_: _62.MsgUpdateGroupPolicyDecisionPolicyResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _62.MsgUpdateGroupPolicyDecisionPolicyResponse; - fromPartial(_: any): _62.MsgUpdateGroupPolicyDecisionPolicyResponse; - }; - MsgUpdateGroupPolicyMetadata: { - encode(message: _62.MsgUpdateGroupPolicyMetadata, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _62.MsgUpdateGroupPolicyMetadata; - fromPartial(object: any): _62.MsgUpdateGroupPolicyMetadata; - }; - MsgUpdateGroupPolicyMetadataResponse: { - encode(_: _62.MsgUpdateGroupPolicyMetadataResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _62.MsgUpdateGroupPolicyMetadataResponse; - fromPartial(_: any): _62.MsgUpdateGroupPolicyMetadataResponse; - }; - MsgSubmitProposal: { - encode(message: _62.MsgSubmitProposal, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _62.MsgSubmitProposal; - fromPartial(object: any): _62.MsgSubmitProposal; - }; - MsgSubmitProposalResponse: { - encode(message: _62.MsgSubmitProposalResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _62.MsgSubmitProposalResponse; - fromPartial(object: any): _62.MsgSubmitProposalResponse; - }; - MsgWithdrawProposal: { - encode(message: _62.MsgWithdrawProposal, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _62.MsgWithdrawProposal; - fromPartial(object: any): _62.MsgWithdrawProposal; - }; - MsgWithdrawProposalResponse: { - encode(_: _62.MsgWithdrawProposalResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _62.MsgWithdrawProposalResponse; - fromPartial(_: any): _62.MsgWithdrawProposalResponse; - }; - MsgVote: { - encode(message: _62.MsgVote, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _62.MsgVote; - fromPartial(object: any): _62.MsgVote; - }; - MsgVoteResponse: { - encode(_: _62.MsgVoteResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _62.MsgVoteResponse; - fromPartial(_: any): _62.MsgVoteResponse; - }; - MsgExec: { - encode(message: _62.MsgExec, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _62.MsgExec; - fromPartial(object: any): _62.MsgExec; - }; - MsgExecResponse: { - encode(_: _62.MsgExecResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _62.MsgExecResponse; - fromPartial(_: any): _62.MsgExecResponse; - }; - MsgLeaveGroup: { - encode(message: _62.MsgLeaveGroup, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _62.MsgLeaveGroup; - fromPartial(object: any): _62.MsgLeaveGroup; - }; - MsgLeaveGroupResponse: { - encode(_: _62.MsgLeaveGroupResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _62.MsgLeaveGroupResponse; - fromPartial(_: any): _62.MsgLeaveGroupResponse; - }; - QueryGroupInfoRequest: { - encode(message: _61.QueryGroupInfoRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _61.QueryGroupInfoRequest; - fromPartial(object: any): _61.QueryGroupInfoRequest; - }; - QueryGroupInfoResponse: { - encode(message: _61.QueryGroupInfoResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _61.QueryGroupInfoResponse; - fromPartial(object: any): _61.QueryGroupInfoResponse; - }; - QueryGroupPolicyInfoRequest: { - encode(message: _61.QueryGroupPolicyInfoRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _61.QueryGroupPolicyInfoRequest; - fromPartial(object: any): _61.QueryGroupPolicyInfoRequest; - }; - QueryGroupPolicyInfoResponse: { - encode(message: _61.QueryGroupPolicyInfoResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _61.QueryGroupPolicyInfoResponse; - fromPartial(object: any): _61.QueryGroupPolicyInfoResponse; - }; - QueryGroupMembersRequest: { - encode(message: _61.QueryGroupMembersRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _61.QueryGroupMembersRequest; - fromPartial(object: any): _61.QueryGroupMembersRequest; - }; - QueryGroupMembersResponse: { - encode(message: _61.QueryGroupMembersResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _61.QueryGroupMembersResponse; - fromPartial(object: any): _61.QueryGroupMembersResponse; - }; - QueryGroupsByAdminRequest: { - encode(message: _61.QueryGroupsByAdminRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _61.QueryGroupsByAdminRequest; - fromPartial(object: any): _61.QueryGroupsByAdminRequest; - }; - QueryGroupsByAdminResponse: { - encode(message: _61.QueryGroupsByAdminResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _61.QueryGroupsByAdminResponse; - fromPartial(object: any): _61.QueryGroupsByAdminResponse; - }; - QueryGroupPoliciesByGroupRequest: { - encode(message: _61.QueryGroupPoliciesByGroupRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _61.QueryGroupPoliciesByGroupRequest; - fromPartial(object: any): _61.QueryGroupPoliciesByGroupRequest; - }; - QueryGroupPoliciesByGroupResponse: { - encode(message: _61.QueryGroupPoliciesByGroupResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _61.QueryGroupPoliciesByGroupResponse; - fromPartial(object: any): _61.QueryGroupPoliciesByGroupResponse; - }; - QueryGroupPoliciesByAdminRequest: { - encode(message: _61.QueryGroupPoliciesByAdminRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _61.QueryGroupPoliciesByAdminRequest; - fromPartial(object: any): _61.QueryGroupPoliciesByAdminRequest; - }; - QueryGroupPoliciesByAdminResponse: { - encode(message: _61.QueryGroupPoliciesByAdminResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _61.QueryGroupPoliciesByAdminResponse; - fromPartial(object: any): _61.QueryGroupPoliciesByAdminResponse; - }; - QueryProposalRequest: { - encode(message: _61.QueryProposalRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _61.QueryProposalRequest; - fromPartial(object: any): _61.QueryProposalRequest; - }; - QueryProposalResponse: { - encode(message: _61.QueryProposalResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _61.QueryProposalResponse; - fromPartial(object: any): _61.QueryProposalResponse; - }; - QueryProposalsByGroupPolicyRequest: { - encode(message: _61.QueryProposalsByGroupPolicyRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _61.QueryProposalsByGroupPolicyRequest; - fromPartial(object: any): _61.QueryProposalsByGroupPolicyRequest; - }; - QueryProposalsByGroupPolicyResponse: { - encode(message: _61.QueryProposalsByGroupPolicyResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _61.QueryProposalsByGroupPolicyResponse; - fromPartial(object: any): _61.QueryProposalsByGroupPolicyResponse; - }; - QueryVoteByProposalVoterRequest: { - encode(message: _61.QueryVoteByProposalVoterRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _61.QueryVoteByProposalVoterRequest; - fromPartial(object: any): _61.QueryVoteByProposalVoterRequest; - }; - QueryVoteByProposalVoterResponse: { - encode(message: _61.QueryVoteByProposalVoterResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _61.QueryVoteByProposalVoterResponse; - fromPartial(object: any): _61.QueryVoteByProposalVoterResponse; - }; - QueryVotesByProposalRequest: { - encode(message: _61.QueryVotesByProposalRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _61.QueryVotesByProposalRequest; - fromPartial(object: any): _61.QueryVotesByProposalRequest; - }; - QueryVotesByProposalResponse: { - encode(message: _61.QueryVotesByProposalResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _61.QueryVotesByProposalResponse; - fromPartial(object: any): _61.QueryVotesByProposalResponse; - }; - QueryVotesByVoterRequest: { - encode(message: _61.QueryVotesByVoterRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _61.QueryVotesByVoterRequest; - fromPartial(object: any): _61.QueryVotesByVoterRequest; - }; - QueryVotesByVoterResponse: { - encode(message: _61.QueryVotesByVoterResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _61.QueryVotesByVoterResponse; - fromPartial(object: any): _61.QueryVotesByVoterResponse; - }; - QueryGroupsByMemberRequest: { - encode(message: _61.QueryGroupsByMemberRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _61.QueryGroupsByMemberRequest; - fromPartial(object: any): _61.QueryGroupsByMemberRequest; - }; - QueryGroupsByMemberResponse: { - encode(message: _61.QueryGroupsByMemberResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _61.QueryGroupsByMemberResponse; - fromPartial(object: any): _61.QueryGroupsByMemberResponse; - }; - QueryTallyResultRequest: { - encode(message: _61.QueryTallyResultRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _61.QueryTallyResultRequest; - fromPartial(object: any): _61.QueryTallyResultRequest; - }; - QueryTallyResultResponse: { - encode(message: _61.QueryTallyResultResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _61.QueryTallyResultResponse; - fromPartial(object: any): _61.QueryTallyResultResponse; - }; - GenesisState: { - encode(message: _60.GenesisState, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _60.GenesisState; - fromPartial(object: any): _60.GenesisState; - }; - EventCreateGroup: { - encode(message: _59.EventCreateGroup, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _59.EventCreateGroup; - fromPartial(object: any): _59.EventCreateGroup; - }; - EventUpdateGroup: { - encode(message: _59.EventUpdateGroup, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _59.EventUpdateGroup; - fromPartial(object: any): _59.EventUpdateGroup; - }; - EventCreateGroupPolicy: { - encode(message: _59.EventCreateGroupPolicy, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _59.EventCreateGroupPolicy; - fromPartial(object: any): _59.EventCreateGroupPolicy; - }; - EventUpdateGroupPolicy: { - encode(message: _59.EventUpdateGroupPolicy, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _59.EventUpdateGroupPolicy; - fromPartial(object: any): _59.EventUpdateGroupPolicy; - }; - EventSubmitProposal: { - encode(message: _59.EventSubmitProposal, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _59.EventSubmitProposal; - fromPartial(object: any): _59.EventSubmitProposal; - }; - EventWithdrawProposal: { - encode(message: _59.EventWithdrawProposal, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _59.EventWithdrawProposal; - fromPartial(object: any): _59.EventWithdrawProposal; - }; - EventVote: { - encode(message: _59.EventVote, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _59.EventVote; - fromPartial(object: any): _59.EventVote; - }; - EventExec: { - encode(message: _59.EventExec, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _59.EventExec; - fromPartial(object: any): _59.EventExec; - }; - EventLeaveGroup: { - encode(message: _59.EventLeaveGroup, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _59.EventLeaveGroup; - fromPartial(object: any): _59.EventLeaveGroup; - }; - }; - } - namespace mint { - const v1beta1: { - LCDQueryClient: typeof _218.LCDQueryClient; - QueryParamsRequest: { - encode(_: _66.QueryParamsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _66.QueryParamsRequest; - fromPartial(_: any): _66.QueryParamsRequest; - }; - QueryParamsResponse: { - encode(message: _66.QueryParamsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _66.QueryParamsResponse; - fromPartial(object: any): _66.QueryParamsResponse; - }; - QueryInflationRequest: { - encode(_: _66.QueryInflationRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _66.QueryInflationRequest; - fromPartial(_: any): _66.QueryInflationRequest; - }; - QueryInflationResponse: { - encode(message: _66.QueryInflationResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _66.QueryInflationResponse; - fromPartial(object: any): _66.QueryInflationResponse; - }; - QueryAnnualProvisionsRequest: { - encode(_: _66.QueryAnnualProvisionsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _66.QueryAnnualProvisionsRequest; - fromPartial(_: any): _66.QueryAnnualProvisionsRequest; - }; - QueryAnnualProvisionsResponse: { - encode(message: _66.QueryAnnualProvisionsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _66.QueryAnnualProvisionsResponse; - fromPartial(object: any): _66.QueryAnnualProvisionsResponse; - }; - Minter: { - encode(message: _65.Minter, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _65.Minter; - fromPartial(object: any): _65.Minter; - }; - Params: { - encode(message: _65.Params, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _65.Params; - fromPartial(object: any): _65.Params; - }; - GenesisState: { - encode(message: _64.GenesisState, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _64.GenesisState; - fromPartial(object: any): _64.GenesisState; - }; - }; - } - namespace msg { - const v1: {}; - } - namespace nft { - const v1beta1: { - LCDQueryClient: typeof _219.LCDQueryClient; - registry: readonly [string, import("@cosmjs/proto-signing").GeneratedType][]; - load: (protoRegistry: import("@cosmjs/proto-signing").Registry) => void; - MessageComposer: { - encoded: { - send(value: _72.MsgSend): { - typeUrl: string; - value: Uint8Array; - }; - }; - withTypeUrl: { - send(value: _72.MsgSend): { - typeUrl: string; - value: _72.MsgSend; - }; - }; - fromPartial: { - send(value: _72.MsgSend): { - typeUrl: string; - value: _72.MsgSend; - }; - }; - }; - AminoConverter: { - "/cosmos.nft.v1beta1.MsgSend": { - aminoType: string; - toAmino: ({ classId, id, sender, receiver }: _72.MsgSend) => { - class_id: string; - id: string; - sender: string; - receiver: string; - }; - fromAmino: ({ class_id, id, sender, receiver }: { - class_id: string; - id: string; - sender: string; - receiver: string; - }) => _72.MsgSend; - }; - }; - MsgSend: { - encode(message: _72.MsgSend, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _72.MsgSend; - fromPartial(object: any): _72.MsgSend; - }; - MsgSendResponse: { - encode(_: _72.MsgSendResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _72.MsgSendResponse; - fromPartial(_: any): _72.MsgSendResponse; - }; - QueryBalanceRequest: { - encode(message: _71.QueryBalanceRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _71.QueryBalanceRequest; - fromPartial(object: any): _71.QueryBalanceRequest; - }; - QueryBalanceResponse: { - encode(message: _71.QueryBalanceResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _71.QueryBalanceResponse; - fromPartial(object: any): _71.QueryBalanceResponse; - }; - QueryOwnerRequest: { - encode(message: _71.QueryOwnerRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _71.QueryOwnerRequest; - fromPartial(object: any): _71.QueryOwnerRequest; - }; - QueryOwnerResponse: { - encode(message: _71.QueryOwnerResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _71.QueryOwnerResponse; - fromPartial(object: any): _71.QueryOwnerResponse; - }; - QuerySupplyRequest: { - encode(message: _71.QuerySupplyRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _71.QuerySupplyRequest; - fromPartial(object: any): _71.QuerySupplyRequest; - }; - QuerySupplyResponse: { - encode(message: _71.QuerySupplyResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _71.QuerySupplyResponse; - fromPartial(object: any): _71.QuerySupplyResponse; - }; - QueryNFTsRequest: { - encode(message: _71.QueryNFTsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _71.QueryNFTsRequest; - fromPartial(object: any): _71.QueryNFTsRequest; - }; - QueryNFTsResponse: { - encode(message: _71.QueryNFTsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _71.QueryNFTsResponse; - fromPartial(object: any): _71.QueryNFTsResponse; - }; - QueryNFTRequest: { - encode(message: _71.QueryNFTRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _71.QueryNFTRequest; - fromPartial(object: any): _71.QueryNFTRequest; - }; - QueryNFTResponse: { - encode(message: _71.QueryNFTResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _71.QueryNFTResponse; - fromPartial(object: any): _71.QueryNFTResponse; - }; - QueryClassRequest: { - encode(message: _71.QueryClassRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _71.QueryClassRequest; - fromPartial(object: any): _71.QueryClassRequest; - }; - QueryClassResponse: { - encode(message: _71.QueryClassResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _71.QueryClassResponse; - fromPartial(object: any): _71.QueryClassResponse; - }; - QueryClassesRequest: { - encode(message: _71.QueryClassesRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _71.QueryClassesRequest; - fromPartial(object: any): _71.QueryClassesRequest; - }; - QueryClassesResponse: { - encode(message: _71.QueryClassesResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _71.QueryClassesResponse; - fromPartial(object: any): _71.QueryClassesResponse; - }; - Class: { - encode(message: _70.Class, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _70.Class; - fromPartial(object: any): _70.Class; - }; - NFT: { - encode(message: _70.NFT, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _70.NFT; - fromPartial(object: any): _70.NFT; - }; - GenesisState: { - encode(message: _69.GenesisState, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _69.GenesisState; - fromPartial(object: any): _69.GenesisState; - }; - Entry: { - encode(message: _69.Entry, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _69.Entry; - fromPartial(object: any): _69.Entry; - }; - EventSend: { - encode(message: _68.EventSend, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _68.EventSend; - fromPartial(object: any): _68.EventSend; - }; - EventMint: { - encode(message: _68.EventMint, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _68.EventMint; - fromPartial(object: any): _68.EventMint; - }; - EventBurn: { - encode(message: _68.EventBurn, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _68.EventBurn; - fromPartial(object: any): _68.EventBurn; - }; - }; - } - namespace orm { - const v1: { - TableDescriptor: { - encode(message: _73.TableDescriptor, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _73.TableDescriptor; - fromPartial(object: any): _73.TableDescriptor; - }; - PrimaryKeyDescriptor: { - encode(message: _73.PrimaryKeyDescriptor, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _73.PrimaryKeyDescriptor; - fromPartial(object: any): _73.PrimaryKeyDescriptor; - }; - SecondaryIndexDescriptor: { - encode(message: _73.SecondaryIndexDescriptor, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _73.SecondaryIndexDescriptor; - fromPartial(object: any): _73.SecondaryIndexDescriptor; - }; - SingletonDescriptor: { - encode(message: _73.SingletonDescriptor, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _73.SingletonDescriptor; - fromPartial(object: any): _73.SingletonDescriptor; - }; - }; - const v1alpha1: { - storageTypeFromJSON(object: any): _74.StorageType; - storageTypeToJSON(object: _74.StorageType): string; - StorageType: typeof _74.StorageType; - StorageTypeSDKType: typeof _74.StorageType; - ModuleSchemaDescriptor: { - encode(message: _74.ModuleSchemaDescriptor, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _74.ModuleSchemaDescriptor; - fromPartial(object: any): _74.ModuleSchemaDescriptor; - }; - ModuleSchemaDescriptor_FileEntry: { - encode(message: _74.ModuleSchemaDescriptor_FileEntry, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _74.ModuleSchemaDescriptor_FileEntry; - fromPartial(object: any): _74.ModuleSchemaDescriptor_FileEntry; - }; - }; - } - namespace params { - const v1beta1: { - LCDQueryClient: typeof _220.LCDQueryClient; - QueryParamsRequest: { - encode(message: _76.QueryParamsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _76.QueryParamsRequest; - fromPartial(object: any): _76.QueryParamsRequest; - }; - QueryParamsResponse: { - encode(message: _76.QueryParamsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _76.QueryParamsResponse; - fromPartial(object: any): _76.QueryParamsResponse; - }; - QuerySubspacesRequest: { - encode(_: _76.QuerySubspacesRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _76.QuerySubspacesRequest; - fromPartial(_: any): _76.QuerySubspacesRequest; - }; - QuerySubspacesResponse: { - encode(message: _76.QuerySubspacesResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _76.QuerySubspacesResponse; - fromPartial(object: any): _76.QuerySubspacesResponse; - }; - Subspace: { - encode(message: _76.Subspace, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _76.Subspace; - fromPartial(object: any): _76.Subspace; - }; - ParameterChangeProposal: { - encode(message: _75.ParameterChangeProposal, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _75.ParameterChangeProposal; - fromPartial(object: any): _75.ParameterChangeProposal; - }; - ParamChange: { - encode(message: _75.ParamChange, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _75.ParamChange; - fromPartial(object: any): _75.ParamChange; - }; - }; - } - namespace slashing { - const v1beta1: { - LCDQueryClient: typeof _221.LCDQueryClient; - registry: readonly [string, import("@cosmjs/proto-signing").GeneratedType][]; - load: (protoRegistry: import("@cosmjs/proto-signing").Registry) => void; - MessageComposer: { - encoded: { - unjail(value: _80.MsgUnjail): { - typeUrl: string; - value: Uint8Array; - }; - }; - withTypeUrl: { - unjail(value: _80.MsgUnjail): { - typeUrl: string; - value: _80.MsgUnjail; - }; - }; - fromPartial: { - unjail(value: _80.MsgUnjail): { - typeUrl: string; - value: _80.MsgUnjail; - }; - }; - }; - AminoConverter: { - "/cosmos.slashing.v1beta1.MsgUnjail": { - aminoType: string; - toAmino: ({ validatorAddr }: _80.MsgUnjail) => { - validator_addr: string; - }; - fromAmino: ({ validator_addr }: { - validator_addr: string; - }) => _80.MsgUnjail; - }; - }; - MsgUnjail: { - encode(message: _80.MsgUnjail, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _80.MsgUnjail; - fromPartial(object: any): _80.MsgUnjail; - }; - MsgUnjailResponse: { - encode(_: _80.MsgUnjailResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _80.MsgUnjailResponse; - fromPartial(_: any): _80.MsgUnjailResponse; - }; - ValidatorSigningInfo: { - encode(message: _79.ValidatorSigningInfo, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _79.ValidatorSigningInfo; - fromPartial(object: any): _79.ValidatorSigningInfo; - }; - Params: { - encode(message: _79.Params, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _79.Params; - fromPartial(object: any): _79.Params; - }; - QueryParamsRequest: { - encode(_: _78.QueryParamsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _78.QueryParamsRequest; - fromPartial(_: any): _78.QueryParamsRequest; - }; - QueryParamsResponse: { - encode(message: _78.QueryParamsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _78.QueryParamsResponse; - fromPartial(object: any): _78.QueryParamsResponse; - }; - QuerySigningInfoRequest: { - encode(message: _78.QuerySigningInfoRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _78.QuerySigningInfoRequest; - fromPartial(object: any): _78.QuerySigningInfoRequest; - }; - QuerySigningInfoResponse: { - encode(message: _78.QuerySigningInfoResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _78.QuerySigningInfoResponse; - fromPartial(object: any): _78.QuerySigningInfoResponse; - }; - QuerySigningInfosRequest: { - encode(message: _78.QuerySigningInfosRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _78.QuerySigningInfosRequest; - fromPartial(object: any): _78.QuerySigningInfosRequest; - }; - QuerySigningInfosResponse: { - encode(message: _78.QuerySigningInfosResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _78.QuerySigningInfosResponse; - fromPartial(object: any): _78.QuerySigningInfosResponse; - }; - GenesisState: { - encode(message: _77.GenesisState, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _77.GenesisState; - fromPartial(object: any): _77.GenesisState; - }; - SigningInfo: { - encode(message: _77.SigningInfo, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _77.SigningInfo; - fromPartial(object: any): _77.SigningInfo; - }; - ValidatorMissedBlocks: { - encode(message: _77.ValidatorMissedBlocks, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _77.ValidatorMissedBlocks; - fromPartial(object: any): _77.ValidatorMissedBlocks; - }; - MissedBlock: { - encode(message: _77.MissedBlock, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _77.MissedBlock; - fromPartial(object: any): _77.MissedBlock; - }; - }; - } - namespace staking { - const v1beta1: { - LCDQueryClient: typeof _222.LCDQueryClient; - registry: readonly [string, import("@cosmjs/proto-signing").GeneratedType][]; - load: (protoRegistry: import("@cosmjs/proto-signing").Registry) => void; - MessageComposer: { - encoded: { - createValidator(value: _85.MsgCreateValidator): { - typeUrl: string; - value: Uint8Array; - }; - editValidator(value: _85.MsgEditValidator): { - typeUrl: string; - value: Uint8Array; - }; - delegate(value: _85.MsgDelegate): { - typeUrl: string; - value: Uint8Array; - }; - beginRedelegate(value: _85.MsgBeginRedelegate): { - typeUrl: string; - value: Uint8Array; - }; - undelegate(value: _85.MsgUndelegate): { - typeUrl: string; - value: Uint8Array; - }; - }; - withTypeUrl: { - createValidator(value: _85.MsgCreateValidator): { - typeUrl: string; - value: _85.MsgCreateValidator; - }; - editValidator(value: _85.MsgEditValidator): { - typeUrl: string; - value: _85.MsgEditValidator; - }; - delegate(value: _85.MsgDelegate): { - typeUrl: string; - value: _85.MsgDelegate; - }; - beginRedelegate(value: _85.MsgBeginRedelegate): { - typeUrl: string; - value: _85.MsgBeginRedelegate; - }; - undelegate(value: _85.MsgUndelegate): { - typeUrl: string; - value: _85.MsgUndelegate; - }; - }; - fromPartial: { - createValidator(value: _85.MsgCreateValidator): { - typeUrl: string; - value: _85.MsgCreateValidator; - }; - editValidator(value: _85.MsgEditValidator): { - typeUrl: string; - value: _85.MsgEditValidator; - }; - delegate(value: _85.MsgDelegate): { - typeUrl: string; - value: _85.MsgDelegate; - }; - beginRedelegate(value: _85.MsgBeginRedelegate): { - typeUrl: string; - value: _85.MsgBeginRedelegate; - }; - undelegate(value: _85.MsgUndelegate): { - typeUrl: string; - value: _85.MsgUndelegate; - }; - }; - }; - AminoConverter: { - "/cosmos.staking.v1beta1.MsgCreateValidator": { - aminoType: string; - toAmino: ({ description, commission, minSelfDelegation, delegatorAddress, validatorAddress, pubkey, value }: _85.MsgCreateValidator) => { - description: { - moniker: string; - identity: string; - website: string; - security_contact: string; - details: string; + toAmino: ({ description, commission, minSelfDelegation, delegatorAddress, validatorAddress, pubkey, value }: _37.MsgCreateValidator) => { + description: { + moniker: string; + identity: string; + website: string; + security_contact: string; + details: string; }; commission: { rate: string; @@ -3922,11 +1796,11 @@ export declare namespace cosmos { denom: string; amount: string; }; - }) => _85.MsgCreateValidator; + }) => _37.MsgCreateValidator; }; "/cosmos.staking.v1beta1.MsgEditValidator": { aminoType: string; - toAmino: ({ description, validatorAddress, commissionRate, minSelfDelegation }: _85.MsgEditValidator) => { + toAmino: ({ description, validatorAddress, commissionRate, minSelfDelegation }: _37.MsgEditValidator) => { description: { moniker: string; identity: string; @@ -3949,11 +1823,11 @@ export declare namespace cosmos { validator_address: string; commission_rate: string; min_self_delegation: string; - }) => _85.MsgEditValidator; + }) => _37.MsgEditValidator; }; "/cosmos.staking.v1beta1.MsgDelegate": { aminoType: string; - toAmino: ({ delegatorAddress, validatorAddress, amount }: _85.MsgDelegate) => { + toAmino: ({ delegatorAddress, validatorAddress, amount }: _37.MsgDelegate) => { delegator_address: string; validator_address: string; amount: { @@ -3968,11 +1842,11 @@ export declare namespace cosmos { denom: string; amount: string; }; - }) => _85.MsgDelegate; + }) => _37.MsgDelegate; }; "/cosmos.staking.v1beta1.MsgBeginRedelegate": { aminoType: string; - toAmino: ({ delegatorAddress, validatorSrcAddress, validatorDstAddress, amount }: _85.MsgBeginRedelegate) => { + toAmino: ({ delegatorAddress, validatorSrcAddress, validatorDstAddress, amount }: _37.MsgBeginRedelegate) => { delegator_address: string; validator_src_address: string; validator_dst_address: string; @@ -3989,11 +1863,11 @@ export declare namespace cosmos { denom: string; amount: string; }; - }) => _85.MsgBeginRedelegate; + }) => _37.MsgBeginRedelegate; }; "/cosmos.staking.v1beta1.MsgUndelegate": { aminoType: string; - toAmino: ({ delegatorAddress, validatorAddress, amount }: _85.MsgUndelegate) => { + toAmino: ({ delegatorAddress, validatorAddress, amount }: _37.MsgUndelegate) => { delegator_address: string; validator_address: string; amount: { @@ -4008,531 +1882,548 @@ export declare namespace cosmos { denom: string; amount: string; }; - }) => _85.MsgUndelegate; + }) => _37.MsgUndelegate; }; }; MsgCreateValidator: { - encode(message: _85.MsgCreateValidator, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _85.MsgCreateValidator; - fromPartial(object: any): _85.MsgCreateValidator; + encode(message: _37.MsgCreateValidator, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _37.MsgCreateValidator; + fromPartial(object: any): _37.MsgCreateValidator; }; MsgCreateValidatorResponse: { - encode(_: _85.MsgCreateValidatorResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _85.MsgCreateValidatorResponse; - fromPartial(_: any): _85.MsgCreateValidatorResponse; + encode(_: _37.MsgCreateValidatorResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _37.MsgCreateValidatorResponse; + fromPartial(_: any): _37.MsgCreateValidatorResponse; }; MsgEditValidator: { - encode(message: _85.MsgEditValidator, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _85.MsgEditValidator; - fromPartial(object: any): _85.MsgEditValidator; + encode(message: _37.MsgEditValidator, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _37.MsgEditValidator; + fromPartial(object: any): _37.MsgEditValidator; }; MsgEditValidatorResponse: { - encode(_: _85.MsgEditValidatorResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _85.MsgEditValidatorResponse; - fromPartial(_: any): _85.MsgEditValidatorResponse; + encode(_: _37.MsgEditValidatorResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _37.MsgEditValidatorResponse; + fromPartial(_: any): _37.MsgEditValidatorResponse; }; MsgDelegate: { - encode(message: _85.MsgDelegate, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _85.MsgDelegate; - fromPartial(object: any): _85.MsgDelegate; + encode(message: _37.MsgDelegate, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _37.MsgDelegate; + fromPartial(object: any): _37.MsgDelegate; }; MsgDelegateResponse: { - encode(_: _85.MsgDelegateResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _85.MsgDelegateResponse; - fromPartial(_: any): _85.MsgDelegateResponse; + encode(_: _37.MsgDelegateResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _37.MsgDelegateResponse; + fromPartial(_: any): _37.MsgDelegateResponse; }; MsgBeginRedelegate: { - encode(message: _85.MsgBeginRedelegate, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _85.MsgBeginRedelegate; - fromPartial(object: any): _85.MsgBeginRedelegate; + encode(message: _37.MsgBeginRedelegate, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _37.MsgBeginRedelegate; + fromPartial(object: any): _37.MsgBeginRedelegate; }; MsgBeginRedelegateResponse: { - encode(message: _85.MsgBeginRedelegateResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _85.MsgBeginRedelegateResponse; - fromPartial(object: any): _85.MsgBeginRedelegateResponse; + encode(message: _37.MsgBeginRedelegateResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _37.MsgBeginRedelegateResponse; + fromPartial(object: any): _37.MsgBeginRedelegateResponse; }; MsgUndelegate: { - encode(message: _85.MsgUndelegate, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _85.MsgUndelegate; - fromPartial(object: any): _85.MsgUndelegate; + encode(message: _37.MsgUndelegate, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _37.MsgUndelegate; + fromPartial(object: any): _37.MsgUndelegate; }; MsgUndelegateResponse: { - encode(message: _85.MsgUndelegateResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _85.MsgUndelegateResponse; - fromPartial(object: any): _85.MsgUndelegateResponse; - }; - bondStatusFromJSON(object: any): _84.BondStatus; - bondStatusToJSON(object: _84.BondStatus): string; - BondStatus: typeof _84.BondStatus; - BondStatusSDKType: typeof _84.BondStatus; + encode(message: _37.MsgUndelegateResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _37.MsgUndelegateResponse; + fromPartial(object: any): _37.MsgUndelegateResponse; + }; + bondStatusFromJSON(object: any): _36.BondStatus; + bondStatusToJSON(object: _36.BondStatus): string; + BondStatus: typeof _36.BondStatus; + BondStatusSDKType: typeof _36.BondStatus; HistoricalInfo: { - encode(message: _84.HistoricalInfo, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _84.HistoricalInfo; - fromPartial(object: any): _84.HistoricalInfo; + encode(message: _36.HistoricalInfo, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _36.HistoricalInfo; + fromPartial(object: any): _36.HistoricalInfo; }; CommissionRates: { - encode(message: _84.CommissionRates, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _84.CommissionRates; - fromPartial(object: any): _84.CommissionRates; + encode(message: _36.CommissionRates, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _36.CommissionRates; + fromPartial(object: any): _36.CommissionRates; }; Commission: { - encode(message: _84.Commission, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _84.Commission; - fromPartial(object: any): _84.Commission; + encode(message: _36.Commission, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _36.Commission; + fromPartial(object: any): _36.Commission; }; Description: { - encode(message: _84.Description, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _84.Description; - fromPartial(object: any): _84.Description; + encode(message: _36.Description, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _36.Description; + fromPartial(object: any): _36.Description; }; Validator: { - encode(message: _84.Validator, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _84.Validator; - fromPartial(object: any): _84.Validator; + encode(message: _36.Validator, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _36.Validator; + fromPartial(object: any): _36.Validator; }; ValAddresses: { - encode(message: _84.ValAddresses, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _84.ValAddresses; - fromPartial(object: any): _84.ValAddresses; + encode(message: _36.ValAddresses, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _36.ValAddresses; + fromPartial(object: any): _36.ValAddresses; }; DVPair: { - encode(message: _84.DVPair, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _84.DVPair; - fromPartial(object: any): _84.DVPair; + encode(message: _36.DVPair, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _36.DVPair; + fromPartial(object: any): _36.DVPair; }; DVPairs: { - encode(message: _84.DVPairs, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _84.DVPairs; - fromPartial(object: any): _84.DVPairs; + encode(message: _36.DVPairs, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _36.DVPairs; + fromPartial(object: any): _36.DVPairs; }; DVVTriplet: { - encode(message: _84.DVVTriplet, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _84.DVVTriplet; - fromPartial(object: any): _84.DVVTriplet; + encode(message: _36.DVVTriplet, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _36.DVVTriplet; + fromPartial(object: any): _36.DVVTriplet; }; DVVTriplets: { - encode(message: _84.DVVTriplets, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _84.DVVTriplets; - fromPartial(object: any): _84.DVVTriplets; + encode(message: _36.DVVTriplets, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _36.DVVTriplets; + fromPartial(object: any): _36.DVVTriplets; }; Delegation: { - encode(message: _84.Delegation, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _84.Delegation; - fromPartial(object: any): _84.Delegation; + encode(message: _36.Delegation, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _36.Delegation; + fromPartial(object: any): _36.Delegation; }; UnbondingDelegation: { - encode(message: _84.UnbondingDelegation, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _84.UnbondingDelegation; - fromPartial(object: any): _84.UnbondingDelegation; + encode(message: _36.UnbondingDelegation, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _36.UnbondingDelegation; + fromPartial(object: any): _36.UnbondingDelegation; }; UnbondingDelegationEntry: { - encode(message: _84.UnbondingDelegationEntry, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _84.UnbondingDelegationEntry; - fromPartial(object: any): _84.UnbondingDelegationEntry; + encode(message: _36.UnbondingDelegationEntry, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _36.UnbondingDelegationEntry; + fromPartial(object: any): _36.UnbondingDelegationEntry; }; RedelegationEntry: { - encode(message: _84.RedelegationEntry, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _84.RedelegationEntry; - fromPartial(object: any): _84.RedelegationEntry; + encode(message: _36.RedelegationEntry, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _36.RedelegationEntry; + fromPartial(object: any): _36.RedelegationEntry; }; Redelegation: { - encode(message: _84.Redelegation, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _84.Redelegation; - fromPartial(object: any): _84.Redelegation; + encode(message: _36.Redelegation, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _36.Redelegation; + fromPartial(object: any): _36.Redelegation; }; Params: { - encode(message: _84.Params, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _84.Params; - fromPartial(object: any): _84.Params; + encode(message: _36.Params, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _36.Params; + fromPartial(object: any): _36.Params; }; DelegationResponse: { - encode(message: _84.DelegationResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _84.DelegationResponse; - fromPartial(object: any): _84.DelegationResponse; + encode(message: _36.DelegationResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _36.DelegationResponse; + fromPartial(object: any): _36.DelegationResponse; }; RedelegationEntryResponse: { - encode(message: _84.RedelegationEntryResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _84.RedelegationEntryResponse; - fromPartial(object: any): _84.RedelegationEntryResponse; + encode(message: _36.RedelegationEntryResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _36.RedelegationEntryResponse; + fromPartial(object: any): _36.RedelegationEntryResponse; }; RedelegationResponse: { - encode(message: _84.RedelegationResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _84.RedelegationResponse; - fromPartial(object: any): _84.RedelegationResponse; + encode(message: _36.RedelegationResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _36.RedelegationResponse; + fromPartial(object: any): _36.RedelegationResponse; }; Pool: { - encode(message: _84.Pool, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _84.Pool; - fromPartial(object: any): _84.Pool; + encode(message: _36.Pool, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _36.Pool; + fromPartial(object: any): _36.Pool; }; QueryValidatorsRequest: { - encode(message: _83.QueryValidatorsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _83.QueryValidatorsRequest; - fromPartial(object: any): _83.QueryValidatorsRequest; + encode(message: _35.QueryValidatorsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _35.QueryValidatorsRequest; + fromPartial(object: any): _35.QueryValidatorsRequest; }; QueryValidatorsResponse: { - encode(message: _83.QueryValidatorsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _83.QueryValidatorsResponse; - fromPartial(object: any): _83.QueryValidatorsResponse; + encode(message: _35.QueryValidatorsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _35.QueryValidatorsResponse; + fromPartial(object: any): _35.QueryValidatorsResponse; }; QueryValidatorRequest: { - encode(message: _83.QueryValidatorRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _83.QueryValidatorRequest; - fromPartial(object: any): _83.QueryValidatorRequest; + encode(message: _35.QueryValidatorRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _35.QueryValidatorRequest; + fromPartial(object: any): _35.QueryValidatorRequest; }; QueryValidatorResponse: { - encode(message: _83.QueryValidatorResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _83.QueryValidatorResponse; - fromPartial(object: any): _83.QueryValidatorResponse; + encode(message: _35.QueryValidatorResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _35.QueryValidatorResponse; + fromPartial(object: any): _35.QueryValidatorResponse; }; QueryValidatorDelegationsRequest: { - encode(message: _83.QueryValidatorDelegationsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _83.QueryValidatorDelegationsRequest; - fromPartial(object: any): _83.QueryValidatorDelegationsRequest; + encode(message: _35.QueryValidatorDelegationsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _35.QueryValidatorDelegationsRequest; + fromPartial(object: any): _35.QueryValidatorDelegationsRequest; }; QueryValidatorDelegationsResponse: { - encode(message: _83.QueryValidatorDelegationsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _83.QueryValidatorDelegationsResponse; - fromPartial(object: any): _83.QueryValidatorDelegationsResponse; + encode(message: _35.QueryValidatorDelegationsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _35.QueryValidatorDelegationsResponse; + fromPartial(object: any): _35.QueryValidatorDelegationsResponse; }; QueryValidatorUnbondingDelegationsRequest: { - encode(message: _83.QueryValidatorUnbondingDelegationsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _83.QueryValidatorUnbondingDelegationsRequest; - fromPartial(object: any): _83.QueryValidatorUnbondingDelegationsRequest; + encode(message: _35.QueryValidatorUnbondingDelegationsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _35.QueryValidatorUnbondingDelegationsRequest; + fromPartial(object: any): _35.QueryValidatorUnbondingDelegationsRequest; }; QueryValidatorUnbondingDelegationsResponse: { - encode(message: _83.QueryValidatorUnbondingDelegationsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _83.QueryValidatorUnbondingDelegationsResponse; - fromPartial(object: any): _83.QueryValidatorUnbondingDelegationsResponse; + encode(message: _35.QueryValidatorUnbondingDelegationsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _35.QueryValidatorUnbondingDelegationsResponse; + fromPartial(object: any): _35.QueryValidatorUnbondingDelegationsResponse; }; QueryDelegationRequest: { - encode(message: _83.QueryDelegationRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _83.QueryDelegationRequest; - fromPartial(object: any): _83.QueryDelegationRequest; + encode(message: _35.QueryDelegationRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _35.QueryDelegationRequest; + fromPartial(object: any): _35.QueryDelegationRequest; }; QueryDelegationResponse: { - encode(message: _83.QueryDelegationResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _83.QueryDelegationResponse; - fromPartial(object: any): _83.QueryDelegationResponse; + encode(message: _35.QueryDelegationResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _35.QueryDelegationResponse; + fromPartial(object: any): _35.QueryDelegationResponse; }; QueryUnbondingDelegationRequest: { - encode(message: _83.QueryUnbondingDelegationRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _83.QueryUnbondingDelegationRequest; - fromPartial(object: any): _83.QueryUnbondingDelegationRequest; + encode(message: _35.QueryUnbondingDelegationRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _35.QueryUnbondingDelegationRequest; + fromPartial(object: any): _35.QueryUnbondingDelegationRequest; }; QueryUnbondingDelegationResponse: { - encode(message: _83.QueryUnbondingDelegationResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _83.QueryUnbondingDelegationResponse; - fromPartial(object: any): _83.QueryUnbondingDelegationResponse; + encode(message: _35.QueryUnbondingDelegationResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _35.QueryUnbondingDelegationResponse; + fromPartial(object: any): _35.QueryUnbondingDelegationResponse; }; QueryDelegatorDelegationsRequest: { - encode(message: _83.QueryDelegatorDelegationsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _83.QueryDelegatorDelegationsRequest; - fromPartial(object: any): _83.QueryDelegatorDelegationsRequest; + encode(message: _35.QueryDelegatorDelegationsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _35.QueryDelegatorDelegationsRequest; + fromPartial(object: any): _35.QueryDelegatorDelegationsRequest; }; QueryDelegatorDelegationsResponse: { - encode(message: _83.QueryDelegatorDelegationsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _83.QueryDelegatorDelegationsResponse; - fromPartial(object: any): _83.QueryDelegatorDelegationsResponse; + encode(message: _35.QueryDelegatorDelegationsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _35.QueryDelegatorDelegationsResponse; + fromPartial(object: any): _35.QueryDelegatorDelegationsResponse; }; QueryDelegatorUnbondingDelegationsRequest: { - encode(message: _83.QueryDelegatorUnbondingDelegationsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _83.QueryDelegatorUnbondingDelegationsRequest; - fromPartial(object: any): _83.QueryDelegatorUnbondingDelegationsRequest; + encode(message: _35.QueryDelegatorUnbondingDelegationsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _35.QueryDelegatorUnbondingDelegationsRequest; + fromPartial(object: any): _35.QueryDelegatorUnbondingDelegationsRequest; }; QueryDelegatorUnbondingDelegationsResponse: { - encode(message: _83.QueryDelegatorUnbondingDelegationsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _83.QueryDelegatorUnbondingDelegationsResponse; - fromPartial(object: any): _83.QueryDelegatorUnbondingDelegationsResponse; + encode(message: _35.QueryDelegatorUnbondingDelegationsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _35.QueryDelegatorUnbondingDelegationsResponse; + fromPartial(object: any): _35.QueryDelegatorUnbondingDelegationsResponse; }; QueryRedelegationsRequest: { - encode(message: _83.QueryRedelegationsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _83.QueryRedelegationsRequest; - fromPartial(object: any): _83.QueryRedelegationsRequest; + encode(message: _35.QueryRedelegationsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _35.QueryRedelegationsRequest; + fromPartial(object: any): _35.QueryRedelegationsRequest; }; QueryRedelegationsResponse: { - encode(message: _83.QueryRedelegationsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _83.QueryRedelegationsResponse; - fromPartial(object: any): _83.QueryRedelegationsResponse; + encode(message: _35.QueryRedelegationsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _35.QueryRedelegationsResponse; + fromPartial(object: any): _35.QueryRedelegationsResponse; }; QueryDelegatorValidatorsRequest: { - encode(message: _83.QueryDelegatorValidatorsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _83.QueryDelegatorValidatorsRequest; - fromPartial(object: any): _83.QueryDelegatorValidatorsRequest; + encode(message: _35.QueryDelegatorValidatorsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _35.QueryDelegatorValidatorsRequest; + fromPartial(object: any): _35.QueryDelegatorValidatorsRequest; }; QueryDelegatorValidatorsResponse: { - encode(message: _83.QueryDelegatorValidatorsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _83.QueryDelegatorValidatorsResponse; - fromPartial(object: any): _83.QueryDelegatorValidatorsResponse; + encode(message: _35.QueryDelegatorValidatorsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _35.QueryDelegatorValidatorsResponse; + fromPartial(object: any): _35.QueryDelegatorValidatorsResponse; }; QueryDelegatorValidatorRequest: { - encode(message: _83.QueryDelegatorValidatorRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _83.QueryDelegatorValidatorRequest; - fromPartial(object: any): _83.QueryDelegatorValidatorRequest; + encode(message: _35.QueryDelegatorValidatorRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _35.QueryDelegatorValidatorRequest; + fromPartial(object: any): _35.QueryDelegatorValidatorRequest; }; QueryDelegatorValidatorResponse: { - encode(message: _83.QueryDelegatorValidatorResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _83.QueryDelegatorValidatorResponse; - fromPartial(object: any): _83.QueryDelegatorValidatorResponse; + encode(message: _35.QueryDelegatorValidatorResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _35.QueryDelegatorValidatorResponse; + fromPartial(object: any): _35.QueryDelegatorValidatorResponse; }; QueryHistoricalInfoRequest: { - encode(message: _83.QueryHistoricalInfoRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _83.QueryHistoricalInfoRequest; - fromPartial(object: any): _83.QueryHistoricalInfoRequest; + encode(message: _35.QueryHistoricalInfoRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _35.QueryHistoricalInfoRequest; + fromPartial(object: any): _35.QueryHistoricalInfoRequest; }; QueryHistoricalInfoResponse: { - encode(message: _83.QueryHistoricalInfoResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _83.QueryHistoricalInfoResponse; - fromPartial(object: any): _83.QueryHistoricalInfoResponse; + encode(message: _35.QueryHistoricalInfoResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _35.QueryHistoricalInfoResponse; + fromPartial(object: any): _35.QueryHistoricalInfoResponse; }; QueryPoolRequest: { - encode(_: _83.QueryPoolRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _83.QueryPoolRequest; - fromPartial(_: any): _83.QueryPoolRequest; + encode(_: _35.QueryPoolRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _35.QueryPoolRequest; + fromPartial(_: any): _35.QueryPoolRequest; }; QueryPoolResponse: { - encode(message: _83.QueryPoolResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _83.QueryPoolResponse; - fromPartial(object: any): _83.QueryPoolResponse; + encode(message: _35.QueryPoolResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _35.QueryPoolResponse; + fromPartial(object: any): _35.QueryPoolResponse; }; QueryParamsRequest: { - encode(_: _83.QueryParamsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _83.QueryParamsRequest; - fromPartial(_: any): _83.QueryParamsRequest; + encode(_: _35.QueryParamsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _35.QueryParamsRequest; + fromPartial(_: any): _35.QueryParamsRequest; }; QueryParamsResponse: { - encode(message: _83.QueryParamsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _83.QueryParamsResponse; - fromPartial(object: any): _83.QueryParamsResponse; + encode(message: _35.QueryParamsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _35.QueryParamsResponse; + fromPartial(object: any): _35.QueryParamsResponse; }; GenesisState: { - encode(message: _82.GenesisState, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _82.GenesisState; - fromPartial(object: any): _82.GenesisState; + encode(message: _34.GenesisState, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _34.GenesisState; + fromPartial(object: any): _34.GenesisState; }; LastValidatorPower: { - encode(message: _82.LastValidatorPower, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _82.LastValidatorPower; - fromPartial(object: any): _82.LastValidatorPower; - }; - authorizationTypeFromJSON(object: any): _81.AuthorizationType; - authorizationTypeToJSON(object: _81.AuthorizationType): string; - AuthorizationType: typeof _81.AuthorizationType; - AuthorizationTypeSDKType: typeof _81.AuthorizationType; + encode(message: _34.LastValidatorPower, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _34.LastValidatorPower; + fromPartial(object: any): _34.LastValidatorPower; + }; + authorizationTypeFromJSON(object: any): _33.AuthorizationType; + authorizationTypeToJSON(object: _33.AuthorizationType): string; + AuthorizationType: typeof _33.AuthorizationType; + AuthorizationTypeSDKType: typeof _33.AuthorizationType; StakeAuthorization: { - encode(message: _81.StakeAuthorization, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _81.StakeAuthorization; - fromPartial(object: any): _81.StakeAuthorization; + encode(message: _33.StakeAuthorization, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _33.StakeAuthorization; + fromPartial(object: any): _33.StakeAuthorization; }; StakeAuthorization_Validators: { - encode(message: _81.StakeAuthorization_Validators, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _81.StakeAuthorization_Validators; - fromPartial(object: any): _81.StakeAuthorization_Validators; + encode(message: _33.StakeAuthorization_Validators, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _33.StakeAuthorization_Validators; + fromPartial(object: any): _33.StakeAuthorization_Validators; }; }; } namespace tx { namespace signing { const v1beta1: { - signModeFromJSON(object: any): _86.SignMode; - signModeToJSON(object: _86.SignMode): string; - SignMode: typeof _86.SignMode; - SignModeSDKType: typeof _86.SignMode; + signModeFromJSON(object: any): _38.SignMode; + signModeToJSON(object: _38.SignMode): string; + SignMode: typeof _38.SignMode; + SignModeSDKType: typeof _38.SignMode; SignatureDescriptors: { - encode(message: _86.SignatureDescriptors, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _86.SignatureDescriptors; - fromPartial(object: any): _86.SignatureDescriptors; + encode(message: _38.SignatureDescriptors, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _38.SignatureDescriptors; + fromPartial(object: any): _38.SignatureDescriptors; }; SignatureDescriptor: { - encode(message: _86.SignatureDescriptor, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _86.SignatureDescriptor; - fromPartial(object: any): _86.SignatureDescriptor; + encode(message: _38.SignatureDescriptor, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _38.SignatureDescriptor; + fromPartial(object: any): _38.SignatureDescriptor; }; SignatureDescriptor_Data: { - encode(message: _86.SignatureDescriptor_Data, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _86.SignatureDescriptor_Data; - fromPartial(object: any): _86.SignatureDescriptor_Data; + encode(message: _38.SignatureDescriptor_Data, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _38.SignatureDescriptor_Data; + fromPartial(object: any): _38.SignatureDescriptor_Data; }; SignatureDescriptor_Data_Single: { - encode(message: _86.SignatureDescriptor_Data_Single, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _86.SignatureDescriptor_Data_Single; - fromPartial(object: any): _86.SignatureDescriptor_Data_Single; + encode(message: _38.SignatureDescriptor_Data_Single, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _38.SignatureDescriptor_Data_Single; + fromPartial(object: any): _38.SignatureDescriptor_Data_Single; }; SignatureDescriptor_Data_Multi: { - encode(message: _86.SignatureDescriptor_Data_Multi, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _86.SignatureDescriptor_Data_Multi; - fromPartial(object: any): _86.SignatureDescriptor_Data_Multi; + encode(message: _38.SignatureDescriptor_Data_Multi, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _38.SignatureDescriptor_Data_Multi; + fromPartial(object: any): _38.SignatureDescriptor_Data_Multi; }; }; } const v1beta1: { - LCDQueryClient: typeof _223.LCDQueryClient; + ServiceClientImpl: typeof _152.ServiceClientImpl; + createRpcQueryExtension: (base: import("@cosmjs/stargate").QueryClient) => { + simulate(request: _39.SimulateRequest): Promise<_39.SimulateResponse>; + getTx(request: _39.GetTxRequest): Promise<_39.GetTxResponse>; + broadcastTx(request: _39.BroadcastTxRequest): Promise<_39.BroadcastTxResponse>; + getTxsEvent(request: _39.GetTxsEventRequest): Promise<_39.GetTxsEventResponse>; + getBlockWithTxs(request: _39.GetBlockWithTxsRequest): Promise<_39.GetBlockWithTxsResponse>; + }; + LCDQueryClient: typeof _144.LCDQueryClient; Tx: { - encode(message: _88.Tx, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _88.Tx; - fromPartial(object: any): _88.Tx; + encode(message: _40.Tx, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _40.Tx; + fromPartial(object: any): _40.Tx; }; TxRaw: { - encode(message: _88.TxRaw, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _88.TxRaw; - fromPartial(object: any): _88.TxRaw; + encode(message: _40.TxRaw, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _40.TxRaw; + fromPartial(object: any): _40.TxRaw; }; SignDoc: { - encode(message: _88.SignDoc, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _88.SignDoc; - fromPartial(object: any): _88.SignDoc; + encode(message: _40.SignDoc, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _40.SignDoc; + fromPartial(object: any): _40.SignDoc; }; SignDocDirectAux: { - encode(message: _88.SignDocDirectAux, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _88.SignDocDirectAux; - fromPartial(object: any): _88.SignDocDirectAux; + encode(message: _40.SignDocDirectAux, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _40.SignDocDirectAux; + fromPartial(object: any): _40.SignDocDirectAux; }; TxBody: { - encode(message: _88.TxBody, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _88.TxBody; - fromPartial(object: any): _88.TxBody; + encode(message: _40.TxBody, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _40.TxBody; + fromPartial(object: any): _40.TxBody; }; AuthInfo: { - encode(message: _88.AuthInfo, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _88.AuthInfo; - fromPartial(object: any): _88.AuthInfo; + encode(message: _40.AuthInfo, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _40.AuthInfo; + fromPartial(object: any): _40.AuthInfo; }; SignerInfo: { - encode(message: _88.SignerInfo, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _88.SignerInfo; - fromPartial(object: any): _88.SignerInfo; + encode(message: _40.SignerInfo, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _40.SignerInfo; + fromPartial(object: any): _40.SignerInfo; }; ModeInfo: { - encode(message: _88.ModeInfo, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _88.ModeInfo; - fromPartial(object: any): _88.ModeInfo; + encode(message: _40.ModeInfo, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _40.ModeInfo; + fromPartial(object: any): _40.ModeInfo; }; ModeInfo_Single: { - encode(message: _88.ModeInfo_Single, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _88.ModeInfo_Single; - fromPartial(object: any): _88.ModeInfo_Single; + encode(message: _40.ModeInfo_Single, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _40.ModeInfo_Single; + fromPartial(object: any): _40.ModeInfo_Single; }; ModeInfo_Multi: { - encode(message: _88.ModeInfo_Multi, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _88.ModeInfo_Multi; - fromPartial(object: any): _88.ModeInfo_Multi; + encode(message: _40.ModeInfo_Multi, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _40.ModeInfo_Multi; + fromPartial(object: any): _40.ModeInfo_Multi; }; Fee: { - encode(message: _88.Fee, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _88.Fee; - fromPartial(object: any): _88.Fee; + encode(message: _40.Fee, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _40.Fee; + fromPartial(object: any): _40.Fee; }; Tip: { - encode(message: _88.Tip, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _88.Tip; - fromPartial(object: any): _88.Tip; + encode(message: _40.Tip, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _40.Tip; + fromPartial(object: any): _40.Tip; }; AuxSignerData: { - encode(message: _88.AuxSignerData, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _88.AuxSignerData; - fromPartial(object: any): _88.AuxSignerData; - }; - orderByFromJSON(object: any): _87.OrderBy; - orderByToJSON(object: _87.OrderBy): string; - broadcastModeFromJSON(object: any): _87.BroadcastMode; - broadcastModeToJSON(object: _87.BroadcastMode): string; - OrderBy: typeof _87.OrderBy; - OrderBySDKType: typeof _87.OrderBy; - BroadcastMode: typeof _87.BroadcastMode; - BroadcastModeSDKType: typeof _87.BroadcastMode; + encode(message: _40.AuxSignerData, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _40.AuxSignerData; + fromPartial(object: any): _40.AuxSignerData; + }; + orderByFromJSON(object: any): _39.OrderBy; + orderByToJSON(object: _39.OrderBy): string; + broadcastModeFromJSON(object: any): _39.BroadcastMode; + broadcastModeToJSON(object: _39.BroadcastMode): string; + OrderBy: typeof _39.OrderBy; + OrderBySDKType: typeof _39.OrderBy; + BroadcastMode: typeof _39.BroadcastMode; + BroadcastModeSDKType: typeof _39.BroadcastMode; GetTxsEventRequest: { - encode(message: _87.GetTxsEventRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _87.GetTxsEventRequest; - fromPartial(object: any): _87.GetTxsEventRequest; + encode(message: _39.GetTxsEventRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _39.GetTxsEventRequest; + fromPartial(object: any): _39.GetTxsEventRequest; }; GetTxsEventResponse: { - encode(message: _87.GetTxsEventResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _87.GetTxsEventResponse; - fromPartial(object: any): _87.GetTxsEventResponse; + encode(message: _39.GetTxsEventResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _39.GetTxsEventResponse; + fromPartial(object: any): _39.GetTxsEventResponse; }; BroadcastTxRequest: { - encode(message: _87.BroadcastTxRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _87.BroadcastTxRequest; - fromPartial(object: any): _87.BroadcastTxRequest; + encode(message: _39.BroadcastTxRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _39.BroadcastTxRequest; + fromPartial(object: any): _39.BroadcastTxRequest; }; BroadcastTxResponse: { - encode(message: _87.BroadcastTxResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _87.BroadcastTxResponse; - fromPartial(object: any): _87.BroadcastTxResponse; + encode(message: _39.BroadcastTxResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _39.BroadcastTxResponse; + fromPartial(object: any): _39.BroadcastTxResponse; }; SimulateRequest: { - encode(message: _87.SimulateRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _87.SimulateRequest; - fromPartial(object: any): _87.SimulateRequest; + encode(message: _39.SimulateRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _39.SimulateRequest; + fromPartial(object: any): _39.SimulateRequest; }; SimulateResponse: { - encode(message: _87.SimulateResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _87.SimulateResponse; - fromPartial(object: any): _87.SimulateResponse; + encode(message: _39.SimulateResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _39.SimulateResponse; + fromPartial(object: any): _39.SimulateResponse; }; GetTxRequest: { - encode(message: _87.GetTxRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _87.GetTxRequest; - fromPartial(object: any): _87.GetTxRequest; + encode(message: _39.GetTxRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _39.GetTxRequest; + fromPartial(object: any): _39.GetTxRequest; }; GetTxResponse: { - encode(message: _87.GetTxResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _87.GetTxResponse; - fromPartial(object: any): _87.GetTxResponse; + encode(message: _39.GetTxResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _39.GetTxResponse; + fromPartial(object: any): _39.GetTxResponse; }; GetBlockWithTxsRequest: { - encode(message: _87.GetBlockWithTxsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _87.GetBlockWithTxsRequest; - fromPartial(object: any): _87.GetBlockWithTxsRequest; + encode(message: _39.GetBlockWithTxsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _39.GetBlockWithTxsRequest; + fromPartial(object: any): _39.GetBlockWithTxsRequest; }; GetBlockWithTxsResponse: { - encode(message: _87.GetBlockWithTxsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _87.GetBlockWithTxsResponse; - fromPartial(object: any): _87.GetBlockWithTxsResponse; + encode(message: _39.GetBlockWithTxsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _39.GetBlockWithTxsResponse; + fromPartial(object: any): _39.GetBlockWithTxsResponse; }; }; } namespace upgrade { const v1beta1: { - LCDQueryClient: typeof _224.LCDQueryClient; + MsgClientImpl: typeof _159.MsgClientImpl; + QueryClientImpl: typeof _153.QueryClientImpl; + createRpcQueryExtension: (base: import("@cosmjs/stargate").QueryClient) => { + currentPlan(request?: _41.QueryCurrentPlanRequest): Promise<_41.QueryCurrentPlanResponse>; + appliedPlan(request: _41.QueryAppliedPlanRequest): Promise<_41.QueryAppliedPlanResponse>; + upgradedConsensusState(request: _41.QueryUpgradedConsensusStateRequest): Promise<_41.QueryUpgradedConsensusStateResponse>; + moduleVersions(request: _41.QueryModuleVersionsRequest): Promise<_41.QueryModuleVersionsResponse>; + authority(request?: _41.QueryAuthorityRequest): Promise<_41.QueryAuthorityResponse>; + }; + LCDQueryClient: typeof _145.LCDQueryClient; registry: readonly [string, import("@cosmjs/proto-signing").GeneratedType][]; load: (protoRegistry: import("@cosmjs/proto-signing").Registry) => void; MessageComposer: { encoded: { - softwareUpgrade(value: _90.MsgSoftwareUpgrade): { + softwareUpgrade(value: _42.MsgSoftwareUpgrade): { typeUrl: string; value: Uint8Array; }; - cancelUpgrade(value: _90.MsgCancelUpgrade): { + cancelUpgrade(value: _42.MsgCancelUpgrade): { typeUrl: string; value: Uint8Array; }; }; withTypeUrl: { - softwareUpgrade(value: _90.MsgSoftwareUpgrade): { + softwareUpgrade(value: _42.MsgSoftwareUpgrade): { typeUrl: string; - value: _90.MsgSoftwareUpgrade; + value: _42.MsgSoftwareUpgrade; }; - cancelUpgrade(value: _90.MsgCancelUpgrade): { + cancelUpgrade(value: _42.MsgCancelUpgrade): { typeUrl: string; - value: _90.MsgCancelUpgrade; + value: _42.MsgCancelUpgrade; }; }; fromPartial: { - softwareUpgrade(value: _90.MsgSoftwareUpgrade): { + softwareUpgrade(value: _42.MsgSoftwareUpgrade): { typeUrl: string; - value: _90.MsgSoftwareUpgrade; + value: _42.MsgSoftwareUpgrade; }; - cancelUpgrade(value: _90.MsgCancelUpgrade): { + cancelUpgrade(value: _42.MsgCancelUpgrade): { typeUrl: string; - value: _90.MsgCancelUpgrade; + value: _42.MsgCancelUpgrade; }; }; }; AminoConverter: { "/cosmos.upgrade.v1beta1.MsgSoftwareUpgrade": { aminoType: string; - toAmino: ({ authority, plan }: _90.MsgSoftwareUpgrade) => { + toAmino: ({ authority, plan }: _42.MsgSoftwareUpgrade) => { authority: string; plan: { name: string; @@ -4563,346 +2454,260 @@ export declare namespace cosmos { value: Uint8Array; }; }; - }) => _90.MsgSoftwareUpgrade; + }) => _42.MsgSoftwareUpgrade; }; "/cosmos.upgrade.v1beta1.MsgCancelUpgrade": { aminoType: string; - toAmino: ({ authority }: _90.MsgCancelUpgrade) => { + toAmino: ({ authority }: _42.MsgCancelUpgrade) => { authority: string; }; fromAmino: ({ authority }: { authority: string; - }) => _90.MsgCancelUpgrade; + }) => _42.MsgCancelUpgrade; }; }; Plan: { - encode(message: _91.Plan, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _91.Plan; - fromPartial(object: any): _91.Plan; + encode(message: _43.Plan, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _43.Plan; + fromPartial(object: any): _43.Plan; }; SoftwareUpgradeProposal: { - encode(message: _91.SoftwareUpgradeProposal, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _91.SoftwareUpgradeProposal; - fromPartial(object: any): _91.SoftwareUpgradeProposal; + encode(message: _43.SoftwareUpgradeProposal, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _43.SoftwareUpgradeProposal; + fromPartial(object: any): _43.SoftwareUpgradeProposal; }; CancelSoftwareUpgradeProposal: { - encode(message: _91.CancelSoftwareUpgradeProposal, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _91.CancelSoftwareUpgradeProposal; - fromPartial(object: any): _91.CancelSoftwareUpgradeProposal; + encode(message: _43.CancelSoftwareUpgradeProposal, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _43.CancelSoftwareUpgradeProposal; + fromPartial(object: any): _43.CancelSoftwareUpgradeProposal; }; ModuleVersion: { - encode(message: _91.ModuleVersion, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _91.ModuleVersion; - fromPartial(object: any): _91.ModuleVersion; + encode(message: _43.ModuleVersion, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _43.ModuleVersion; + fromPartial(object: any): _43.ModuleVersion; }; MsgSoftwareUpgrade: { - encode(message: _90.MsgSoftwareUpgrade, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _90.MsgSoftwareUpgrade; - fromPartial(object: any): _90.MsgSoftwareUpgrade; + encode(message: _42.MsgSoftwareUpgrade, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _42.MsgSoftwareUpgrade; + fromPartial(object: any): _42.MsgSoftwareUpgrade; }; MsgSoftwareUpgradeResponse: { - encode(_: _90.MsgSoftwareUpgradeResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _90.MsgSoftwareUpgradeResponse; - fromPartial(_: any): _90.MsgSoftwareUpgradeResponse; + encode(_: _42.MsgSoftwareUpgradeResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _42.MsgSoftwareUpgradeResponse; + fromPartial(_: any): _42.MsgSoftwareUpgradeResponse; }; MsgCancelUpgrade: { - encode(message: _90.MsgCancelUpgrade, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _90.MsgCancelUpgrade; - fromPartial(object: any): _90.MsgCancelUpgrade; + encode(message: _42.MsgCancelUpgrade, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _42.MsgCancelUpgrade; + fromPartial(object: any): _42.MsgCancelUpgrade; }; MsgCancelUpgradeResponse: { - encode(_: _90.MsgCancelUpgradeResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _90.MsgCancelUpgradeResponse; - fromPartial(_: any): _90.MsgCancelUpgradeResponse; + encode(_: _42.MsgCancelUpgradeResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _42.MsgCancelUpgradeResponse; + fromPartial(_: any): _42.MsgCancelUpgradeResponse; }; QueryCurrentPlanRequest: { - encode(_: _89.QueryCurrentPlanRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _89.QueryCurrentPlanRequest; - fromPartial(_: any): _89.QueryCurrentPlanRequest; + encode(_: _41.QueryCurrentPlanRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _41.QueryCurrentPlanRequest; + fromPartial(_: any): _41.QueryCurrentPlanRequest; }; QueryCurrentPlanResponse: { - encode(message: _89.QueryCurrentPlanResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _89.QueryCurrentPlanResponse; - fromPartial(object: any): _89.QueryCurrentPlanResponse; + encode(message: _41.QueryCurrentPlanResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _41.QueryCurrentPlanResponse; + fromPartial(object: any): _41.QueryCurrentPlanResponse; }; QueryAppliedPlanRequest: { - encode(message: _89.QueryAppliedPlanRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _89.QueryAppliedPlanRequest; - fromPartial(object: any): _89.QueryAppliedPlanRequest; + encode(message: _41.QueryAppliedPlanRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _41.QueryAppliedPlanRequest; + fromPartial(object: any): _41.QueryAppliedPlanRequest; }; QueryAppliedPlanResponse: { - encode(message: _89.QueryAppliedPlanResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _89.QueryAppliedPlanResponse; - fromPartial(object: any): _89.QueryAppliedPlanResponse; + encode(message: _41.QueryAppliedPlanResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _41.QueryAppliedPlanResponse; + fromPartial(object: any): _41.QueryAppliedPlanResponse; }; QueryUpgradedConsensusStateRequest: { - encode(message: _89.QueryUpgradedConsensusStateRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _89.QueryUpgradedConsensusStateRequest; - fromPartial(object: any): _89.QueryUpgradedConsensusStateRequest; + encode(message: _41.QueryUpgradedConsensusStateRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _41.QueryUpgradedConsensusStateRequest; + fromPartial(object: any): _41.QueryUpgradedConsensusStateRequest; }; QueryUpgradedConsensusStateResponse: { - encode(message: _89.QueryUpgradedConsensusStateResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _89.QueryUpgradedConsensusStateResponse; - fromPartial(object: any): _89.QueryUpgradedConsensusStateResponse; + encode(message: _41.QueryUpgradedConsensusStateResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _41.QueryUpgradedConsensusStateResponse; + fromPartial(object: any): _41.QueryUpgradedConsensusStateResponse; }; QueryModuleVersionsRequest: { - encode(message: _89.QueryModuleVersionsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _89.QueryModuleVersionsRequest; - fromPartial(object: any): _89.QueryModuleVersionsRequest; + encode(message: _41.QueryModuleVersionsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _41.QueryModuleVersionsRequest; + fromPartial(object: any): _41.QueryModuleVersionsRequest; }; QueryModuleVersionsResponse: { - encode(message: _89.QueryModuleVersionsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _89.QueryModuleVersionsResponse; - fromPartial(object: any): _89.QueryModuleVersionsResponse; + encode(message: _41.QueryModuleVersionsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _41.QueryModuleVersionsResponse; + fromPartial(object: any): _41.QueryModuleVersionsResponse; }; QueryAuthorityRequest: { - encode(_: _89.QueryAuthorityRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _89.QueryAuthorityRequest; - fromPartial(_: any): _89.QueryAuthorityRequest; + encode(_: _41.QueryAuthorityRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _41.QueryAuthorityRequest; + fromPartial(_: any): _41.QueryAuthorityRequest; }; QueryAuthorityResponse: { - encode(message: _89.QueryAuthorityResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _89.QueryAuthorityResponse; - fromPartial(object: any): _89.QueryAuthorityResponse; + encode(message: _41.QueryAuthorityResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _41.QueryAuthorityResponse; + fromPartial(object: any): _41.QueryAuthorityResponse; }; }; } - namespace vesting { - const v1beta1: { - registry: readonly [string, import("@cosmjs/proto-signing").GeneratedType][]; - load: (protoRegistry: import("@cosmjs/proto-signing").Registry) => void; - MessageComposer: { - encoded: { - createVestingAccount(value: _92.MsgCreateVestingAccount): { - typeUrl: string; - value: Uint8Array; - }; - createPermanentLockedAccount(value: _92.MsgCreatePermanentLockedAccount): { - typeUrl: string; - value: Uint8Array; - }; - createPeriodicVestingAccount(value: _92.MsgCreatePeriodicVestingAccount): { - typeUrl: string; - value: Uint8Array; - }; + const ClientFactory: { + createRPCMsgClient: ({ rpc }: { + rpc: import("../helpers").Rpc; + }) => Promise<{ + cosmos: { + authz: { + v1beta1: _154.MsgClientImpl; }; - withTypeUrl: { - createVestingAccount(value: _92.MsgCreateVestingAccount): { - typeUrl: string; - value: _92.MsgCreateVestingAccount; - }; - createPermanentLockedAccount(value: _92.MsgCreatePermanentLockedAccount): { - typeUrl: string; - value: _92.MsgCreatePermanentLockedAccount; + bank: { + v1beta1: _155.MsgClientImpl; + }; + distribution: { + v1beta1: _156.MsgClientImpl; + }; + gov: { + v1beta1: _157.MsgClientImpl; + }; + staking: { + v1beta1: _158.MsgClientImpl; + }; + upgrade: { + v1beta1: _159.MsgClientImpl; + }; + }; + }>; + createRPCQueryClient: ({ rpcEndpoint }: { + rpcEndpoint: string | import("@cosmjs/tendermint-rpc").HttpEndpoint; + }) => Promise<{ + cosmos: { + auth: { + v1beta1: { + accounts(request?: _4.QueryAccountsRequest): Promise<_4.QueryAccountsResponse>; + account(request: _4.QueryAccountRequest): Promise<_4.QueryAccountResponse>; + params(request?: _4.QueryParamsRequest): Promise<_4.QueryParamsResponse>; + moduleAccounts(request?: _4.QueryModuleAccountsRequest): Promise<_4.QueryModuleAccountsResponse>; + bech32Prefix(request?: _4.Bech32PrefixRequest): Promise<_4.Bech32PrefixResponse>; + addressBytesToString(request: _4.AddressBytesToStringRequest): Promise<_4.AddressBytesToStringResponse>; + addressStringToBytes(request: _4.AddressStringToBytesRequest): Promise<_4.AddressStringToBytesResponse>; }; - createPeriodicVestingAccount(value: _92.MsgCreatePeriodicVestingAccount): { - typeUrl: string; - value: _92.MsgCreatePeriodicVestingAccount; + }; + authz: { + v1beta1: { + grants(request: _8.QueryGrantsRequest): Promise<_8.QueryGrantsResponse>; + granterGrants(request: _8.QueryGranterGrantsRequest): Promise<_8.QueryGranterGrantsResponse>; + granteeGrants(request: _8.QueryGranteeGrantsRequest): Promise<_8.QueryGranteeGrantsResponse>; }; }; - fromPartial: { - createVestingAccount(value: _92.MsgCreateVestingAccount): { - typeUrl: string; - value: _92.MsgCreateVestingAccount; + bank: { + v1beta1: { + balance(request: _13.QueryBalanceRequest): Promise<_13.QueryBalanceResponse>; + allBalances(request: _13.QueryAllBalancesRequest): Promise<_13.QueryAllBalancesResponse>; + spendableBalances(request: _13.QuerySpendableBalancesRequest): Promise<_13.QuerySpendableBalancesResponse>; + totalSupply(request?: _13.QueryTotalSupplyRequest): Promise<_13.QueryTotalSupplyResponse>; + supplyOf(request: _13.QuerySupplyOfRequest): Promise<_13.QuerySupplyOfResponse>; + params(request?: _13.QueryParamsRequest): Promise<_13.QueryParamsResponse>; + denomMetadata(request: _13.QueryDenomMetadataRequest): Promise<_13.QueryDenomMetadataResponse>; + denomsMetadata(request?: _13.QueryDenomsMetadataRequest): Promise<_13.QueryDenomsMetadataResponse>; + denomOwners(request: _13.QueryDenomOwnersRequest): Promise<_13.QueryDenomOwnersResponse>; }; - createPermanentLockedAccount(value: _92.MsgCreatePermanentLockedAccount): { - typeUrl: string; - value: _92.MsgCreatePermanentLockedAccount; + }; + distribution: { + v1beta1: { + params(request?: _27.QueryParamsRequest): Promise<_27.QueryParamsResponse>; + validatorOutstandingRewards(request: _27.QueryValidatorOutstandingRewardsRequest): Promise<_27.QueryValidatorOutstandingRewardsResponse>; + validatorCommission(request: _27.QueryValidatorCommissionRequest): Promise<_27.QueryValidatorCommissionResponse>; + validatorSlashes(request: _27.QueryValidatorSlashesRequest): Promise<_27.QueryValidatorSlashesResponse>; + delegationRewards(request: _27.QueryDelegationRewardsRequest): Promise<_27.QueryDelegationRewardsResponse>; + delegationTotalRewards(request: _27.QueryDelegationTotalRewardsRequest): Promise<_27.QueryDelegationTotalRewardsResponse>; + delegatorValidators(request: _27.QueryDelegatorValidatorsRequest): Promise<_27.QueryDelegatorValidatorsResponse>; + delegatorWithdrawAddress(request: _27.QueryDelegatorWithdrawAddressRequest): Promise<_27.QueryDelegatorWithdrawAddressResponse>; + communityPool(request?: _27.QueryCommunityPoolRequest): Promise<_27.QueryCommunityPoolResponse>; }; - createPeriodicVestingAccount(value: _92.MsgCreatePeriodicVestingAccount): { - typeUrl: string; - value: _92.MsgCreatePeriodicVestingAccount; + }; + gov: { + v1beta1: { + proposal(request: _31.QueryProposalRequest): Promise<_31.QueryProposalResponse>; + proposals(request: _31.QueryProposalsRequest): Promise<_31.QueryProposalsResponse>; + vote(request: _31.QueryVoteRequest): Promise<_31.QueryVoteResponse>; + votes(request: _31.QueryVotesRequest): Promise<_31.QueryVotesResponse>; + params(request: _31.QueryParamsRequest): Promise<_31.QueryParamsResponse>; + deposit(request: _31.QueryDepositRequest): Promise<_31.QueryDepositResponse>; + deposits(request: _31.QueryDepositsRequest): Promise<_31.QueryDepositsResponse>; + tallyResult(request: _31.QueryTallyResultRequest): Promise<_31.QueryTallyResultResponse>; }; }; - }; - AminoConverter: { - "/cosmos.vesting.v1beta1.MsgCreateVestingAccount": { - aminoType: string; - toAmino: ({ fromAddress, toAddress, amount, endTime, delayed }: _92.MsgCreateVestingAccount) => { - from_address: string; - to_address: string; - amount: { - denom: string; - amount: string; - }[]; - end_time: string; - delayed: boolean; + staking: { + v1beta1: { + validators(request: _35.QueryValidatorsRequest): Promise<_35.QueryValidatorsResponse>; + validator(request: _35.QueryValidatorRequest): Promise<_35.QueryValidatorResponse>; + validatorDelegations(request: _35.QueryValidatorDelegationsRequest): Promise<_35.QueryValidatorDelegationsResponse>; + validatorUnbondingDelegations(request: _35.QueryValidatorUnbondingDelegationsRequest): Promise<_35.QueryValidatorUnbondingDelegationsResponse>; + delegation(request: _35.QueryDelegationRequest): Promise<_35.QueryDelegationResponse>; + unbondingDelegation(request: _35.QueryUnbondingDelegationRequest): Promise<_35.QueryUnbondingDelegationResponse>; + delegatorDelegations(request: _35.QueryDelegatorDelegationsRequest): Promise<_35.QueryDelegatorDelegationsResponse>; + delegatorUnbondingDelegations(request: _35.QueryDelegatorUnbondingDelegationsRequest): Promise<_35.QueryDelegatorUnbondingDelegationsResponse>; + redelegations(request: _35.QueryRedelegationsRequest): Promise<_35.QueryRedelegationsResponse>; + delegatorValidators(request: _35.QueryDelegatorValidatorsRequest): Promise<_35.QueryDelegatorValidatorsResponse>; + delegatorValidator(request: _35.QueryDelegatorValidatorRequest): Promise<_35.QueryDelegatorValidatorResponse>; + historicalInfo(request: _35.QueryHistoricalInfoRequest): Promise<_35.QueryHistoricalInfoResponse>; + pool(request?: _35.QueryPoolRequest): Promise<_35.QueryPoolResponse>; + params(request?: _35.QueryParamsRequest): Promise<_35.QueryParamsResponse>; }; - fromAmino: ({ from_address, to_address, amount, end_time, delayed }: { - from_address: string; - to_address: string; - amount: { - denom: string; - amount: string; - }[]; - end_time: string; - delayed: boolean; - }) => _92.MsgCreateVestingAccount; }; - "/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccount": { - aminoType: string; - toAmino: ({ fromAddress, toAddress, amount }: _92.MsgCreatePermanentLockedAccount) => { - from_address: string; - to_address: string; - amount: { - denom: string; - amount: string; - }[]; + tx: { + v1beta1: { + simulate(request: _39.SimulateRequest): Promise<_39.SimulateResponse>; + getTx(request: _39.GetTxRequest): Promise<_39.GetTxResponse>; + broadcastTx(request: _39.BroadcastTxRequest): Promise<_39.BroadcastTxResponse>; + getTxsEvent(request: _39.GetTxsEventRequest): Promise<_39.GetTxsEventResponse>; + getBlockWithTxs(request: _39.GetBlockWithTxsRequest): Promise<_39.GetBlockWithTxsResponse>; }; - fromAmino: ({ from_address, to_address, amount }: { - from_address: string; - to_address: string; - amount: { - denom: string; - amount: string; - }[]; - }) => _92.MsgCreatePermanentLockedAccount; }; - "/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount": { - aminoType: string; - toAmino: ({ fromAddress, toAddress, startTime, vestingPeriods }: _92.MsgCreatePeriodicVestingAccount) => { - from_address: string; - to_address: string; - start_time: string; - vesting_periods: { - length: string; - amount: { - denom: string; - amount: string; - }[]; - }[]; + upgrade: { + v1beta1: { + currentPlan(request?: _41.QueryCurrentPlanRequest): Promise<_41.QueryCurrentPlanResponse>; + appliedPlan(request: _41.QueryAppliedPlanRequest): Promise<_41.QueryAppliedPlanResponse>; + upgradedConsensusState(request: _41.QueryUpgradedConsensusStateRequest): Promise<_41.QueryUpgradedConsensusStateResponse>; + moduleVersions(request: _41.QueryModuleVersionsRequest): Promise<_41.QueryModuleVersionsResponse>; + authority(request?: _41.QueryAuthorityRequest): Promise<_41.QueryAuthorityResponse>; }; - fromAmino: ({ from_address, to_address, start_time, vesting_periods }: { - from_address: string; - to_address: string; - start_time: string; - vesting_periods: { - length: string; - amount: { - denom: string; - amount: string; - }[]; - }[]; - }) => _92.MsgCreatePeriodicVestingAccount; }; }; - BaseVestingAccount: { - encode(message: _93.BaseVestingAccount, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _93.BaseVestingAccount; - fromPartial(object: any): _93.BaseVestingAccount; - }; - ContinuousVestingAccount: { - encode(message: _93.ContinuousVestingAccount, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _93.ContinuousVestingAccount; - fromPartial(object: any): _93.ContinuousVestingAccount; - }; - DelayedVestingAccount: { - encode(message: _93.DelayedVestingAccount, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _93.DelayedVestingAccount; - fromPartial(object: any): _93.DelayedVestingAccount; - }; - Period: { - encode(message: _93.Period, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _93.Period; - fromPartial(object: any): _93.Period; - }; - PeriodicVestingAccount: { - encode(message: _93.PeriodicVestingAccount, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _93.PeriodicVestingAccount; - fromPartial(object: any): _93.PeriodicVestingAccount; - }; - PermanentLockedAccount: { - encode(message: _93.PermanentLockedAccount, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _93.PermanentLockedAccount; - fromPartial(object: any): _93.PermanentLockedAccount; - }; - MsgCreateVestingAccount: { - encode(message: _92.MsgCreateVestingAccount, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _92.MsgCreateVestingAccount; - fromPartial(object: any): _92.MsgCreateVestingAccount; - }; - MsgCreateVestingAccountResponse: { - encode(_: _92.MsgCreateVestingAccountResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _92.MsgCreateVestingAccountResponse; - fromPartial(_: any): _92.MsgCreateVestingAccountResponse; - }; - MsgCreatePermanentLockedAccount: { - encode(message: _92.MsgCreatePermanentLockedAccount, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _92.MsgCreatePermanentLockedAccount; - fromPartial(object: any): _92.MsgCreatePermanentLockedAccount; - }; - MsgCreatePermanentLockedAccountResponse: { - encode(_: _92.MsgCreatePermanentLockedAccountResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _92.MsgCreatePermanentLockedAccountResponse; - fromPartial(_: any): _92.MsgCreatePermanentLockedAccountResponse; - }; - MsgCreatePeriodicVestingAccount: { - encode(message: _92.MsgCreatePeriodicVestingAccount, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _92.MsgCreatePeriodicVestingAccount; - fromPartial(object: any): _92.MsgCreatePeriodicVestingAccount; - }; - MsgCreatePeriodicVestingAccountResponse: { - encode(_: _92.MsgCreatePeriodicVestingAccountResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _92.MsgCreatePeriodicVestingAccountResponse; - fromPartial(_: any): _92.MsgCreatePeriodicVestingAccountResponse; - }; - }; - } - const ClientFactory: { + }>; createLCDClient: ({ restEndpoint }: { restEndpoint: string; }) => Promise<{ cosmos: { auth: { - v1beta1: _208.LCDQueryClient; + v1beta1: _138.LCDQueryClient; }; authz: { - v1beta1: _209.LCDQueryClient; + v1beta1: _139.LCDQueryClient; }; bank: { - v1beta1: _210.LCDQueryClient; - }; - base: { - tendermint: { - v1beta1: _211.LCDQueryClient; - }; + v1beta1: _140.LCDQueryClient; }; distribution: { - v1beta1: _212.LCDQueryClient; - }; - evidence: { - v1beta1: _213.LCDQueryClient; - }; - feegrant: { - v1beta1: _214.LCDQueryClient; + v1beta1: _141.LCDQueryClient; }; gov: { - v1: _215.LCDQueryClient; - v1beta1: _216.LCDQueryClient; - }; - group: { - v1: _217.LCDQueryClient; - }; - mint: { - v1beta1: _218.LCDQueryClient; - }; - nft: { - v1beta1: _219.LCDQueryClient; - }; - params: { - v1beta1: _220.LCDQueryClient; - }; - slashing: { - v1beta1: _221.LCDQueryClient; + v1beta1: _142.LCDQueryClient; }; staking: { - v1beta1: _222.LCDQueryClient; + v1beta1: _143.LCDQueryClient; }; tx: { - v1beta1: _223.LCDQueryClient; + v1beta1: _144.LCDQueryClient; }; upgrade: { - v1beta1: _224.LCDQueryClient; + v1beta1: _145.LCDQueryClient; }; }; }>; diff --git a/packages/proto/types/codegen/cosmos/capability/v1beta1/capability.d.ts b/packages/proto/types/codegen/cosmos/capability/v1beta1/capability.d.ts deleted file mode 100644 index 70671dea..00000000 --- a/packages/proto/types/codegen/cosmos/capability/v1beta1/capability.d.ts +++ /dev/null @@ -1,61 +0,0 @@ -import { Long, DeepPartial } from "../../../helpers"; -import * as _m0 from "protobufjs/minimal"; -/** - * Capability defines an implementation of an object capability. The index - * provided to a Capability must be globally unique. - */ -export interface Capability { - index: Long; -} -/** - * Capability defines an implementation of an object capability. The index - * provided to a Capability must be globally unique. - */ -export interface CapabilitySDKType { - index: Long; -} -/** - * Owner defines a single capability owner. An owner is defined by the name of - * capability and the module name. - */ -export interface Owner { - module: string; - name: string; -} -/** - * Owner defines a single capability owner. An owner is defined by the name of - * capability and the module name. - */ -export interface OwnerSDKType { - module: string; - name: string; -} -/** - * CapabilityOwners defines a set of owners of a single Capability. The set of - * owners must be unique. - */ -export interface CapabilityOwners { - owners: Owner[]; -} -/** - * CapabilityOwners defines a set of owners of a single Capability. The set of - * owners must be unique. - */ -export interface CapabilityOwnersSDKType { - owners: OwnerSDKType[]; -} -export declare const Capability: { - encode(message: Capability, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): Capability; - fromPartial(object: DeepPartial): Capability; -}; -export declare const Owner: { - encode(message: Owner, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): Owner; - fromPartial(object: DeepPartial): Owner; -}; -export declare const CapabilityOwners: { - encode(message: CapabilityOwners, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): CapabilityOwners; - fromPartial(object: DeepPartial): CapabilityOwners; -}; diff --git a/packages/proto/types/codegen/cosmos/capability/v1beta1/genesis.d.ts b/packages/proto/types/codegen/cosmos/capability/v1beta1/genesis.d.ts deleted file mode 100644 index dba90ca2..00000000 --- a/packages/proto/types/codegen/cosmos/capability/v1beta1/genesis.d.ts +++ /dev/null @@ -1,40 +0,0 @@ -import { CapabilityOwners, CapabilityOwnersSDKType } from "./capability"; -import { Long, DeepPartial } from "../../../helpers"; -import * as _m0 from "protobufjs/minimal"; -/** GenesisOwners defines the capability owners with their corresponding index. */ -export interface GenesisOwners { - /** index is the index of the capability owner. */ - index: Long; - /** index_owners are the owners at the given index. */ - indexOwners: CapabilityOwners; -} -/** GenesisOwners defines the capability owners with their corresponding index. */ -export interface GenesisOwnersSDKType { - index: Long; - index_owners: CapabilityOwnersSDKType; -} -/** GenesisState defines the capability module's genesis state. */ -export interface GenesisState { - /** index is the capability global index. */ - index: Long; - /** - * owners represents a map from index to owners of the capability index - * index key is string to allow amino marshalling. - */ - owners: GenesisOwners[]; -} -/** GenesisState defines the capability module's genesis state. */ -export interface GenesisStateSDKType { - index: Long; - owners: GenesisOwnersSDKType[]; -} -export declare const GenesisOwners: { - encode(message: GenesisOwners, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): GenesisOwners; - fromPartial(object: DeepPartial): GenesisOwners; -}; -export declare const GenesisState: { - encode(message: GenesisState, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): GenesisState; - fromPartial(object: DeepPartial): GenesisState; -}; diff --git a/packages/proto/types/codegen/cosmos/client.d.ts b/packages/proto/types/codegen/cosmos/client.d.ts index bec998ff..f5621238 100644 --- a/packages/proto/types/codegen/cosmos/client.d.ts +++ b/packages/proto/types/codegen/cosmos/client.d.ts @@ -2,75 +2,6 @@ import { GeneratedType, Registry, OfflineSigner } from "@cosmjs/proto-signing"; import { AminoTypes, SigningStargateClient } from "@cosmjs/stargate"; import { HttpEndpoint } from "@cosmjs/tendermint-rpc"; export declare const cosmosAminoConverters: { - "/cosmos.vesting.v1beta1.MsgCreateVestingAccount": { - aminoType: string; - toAmino: ({ fromAddress, toAddress, amount, endTime, delayed }: import("./vesting/v1beta1/tx").MsgCreateVestingAccount) => { - from_address: string; - to_address: string; - amount: { - denom: string; - amount: string; - }[]; - end_time: string; - delayed: boolean; - }; - fromAmino: ({ from_address, to_address, amount, end_time, delayed }: { - from_address: string; - to_address: string; - amount: { - denom: string; - amount: string; - }[]; - end_time: string; - delayed: boolean; - }) => import("./vesting/v1beta1/tx").MsgCreateVestingAccount; - }; - "/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccount": { - aminoType: string; - toAmino: ({ fromAddress, toAddress, amount }: import("./vesting/v1beta1/tx").MsgCreatePermanentLockedAccount) => { - from_address: string; - to_address: string; - amount: { - denom: string; - amount: string; - }[]; - }; - fromAmino: ({ from_address, to_address, amount }: { - from_address: string; - to_address: string; - amount: { - denom: string; - amount: string; - }[]; - }) => import("./vesting/v1beta1/tx").MsgCreatePermanentLockedAccount; - }; - "/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount": { - aminoType: string; - toAmino: ({ fromAddress, toAddress, startTime, vestingPeriods }: import("./vesting/v1beta1/tx").MsgCreatePeriodicVestingAccount) => { - from_address: string; - to_address: string; - start_time: string; - vesting_periods: { - length: string; - amount: { - denom: string; - amount: string; - }[]; - }[]; - }; - fromAmino: ({ from_address, to_address, start_time, vesting_periods }: { - from_address: string; - to_address: string; - start_time: string; - vesting_periods: { - length: string; - amount: { - denom: string; - amount: string; - }[]; - }[]; - }) => import("./vesting/v1beta1/tx").MsgCreatePeriodicVestingAccount; - }; "/cosmos.upgrade.v1beta1.MsgSoftwareUpgrade": { aminoType: string; toAmino: ({ authority, plan }: import("./upgrade/v1beta1/tx").MsgSoftwareUpgrade) => { @@ -254,294 +185,6 @@ export declare const cosmosAminoConverters: { }; }) => import("./staking/v1beta1/tx").MsgUndelegate; }; - "/cosmos.slashing.v1beta1.MsgUnjail": { - aminoType: string; - toAmino: ({ validatorAddr }: import("./slashing/v1beta1/tx").MsgUnjail) => { - validator_addr: string; - }; - fromAmino: ({ validator_addr }: { - validator_addr: string; - }) => import("./slashing/v1beta1/tx").MsgUnjail; - }; - "/cosmos.nft.v1beta1.MsgSend": { - aminoType: string; - toAmino: ({ classId, id, sender, receiver }: import("./nft/v1beta1/tx").MsgSend) => { - class_id: string; - id: string; - sender: string; - receiver: string; - }; - fromAmino: ({ class_id, id, sender, receiver }: { - class_id: string; - id: string; - sender: string; - receiver: string; - }) => import("./nft/v1beta1/tx").MsgSend; - }; - "/cosmos.group.v1.MsgCreateGroup": { - aminoType: string; - toAmino: ({ admin, members, metadata }: import("./group/v1/tx").MsgCreateGroup) => { - admin: string; - members: { - address: string; - weight: string; - metadata: string; - added_at: { - seconds: string; - nanos: number; - }; - }[]; - metadata: string; - }; - fromAmino: ({ admin, members, metadata }: { - admin: string; - members: { - address: string; - weight: string; - metadata: string; - added_at: { - seconds: string; - nanos: number; - }; - }[]; - metadata: string; - }) => import("./group/v1/tx").MsgCreateGroup; - }; - "/cosmos.group.v1.MsgUpdateGroupMembers": { - aminoType: string; - toAmino: ({ admin, groupId, memberUpdates }: import("./group/v1/tx").MsgUpdateGroupMembers) => { - admin: string; - group_id: string; - member_updates: { - address: string; - weight: string; - metadata: string; - added_at: { - seconds: string; - nanos: number; - }; - }[]; - }; - fromAmino: ({ admin, group_id, member_updates }: { - admin: string; - group_id: string; - member_updates: { - address: string; - weight: string; - metadata: string; - added_at: { - seconds: string; - nanos: number; - }; - }[]; - }) => import("./group/v1/tx").MsgUpdateGroupMembers; - }; - "/cosmos.group.v1.MsgUpdateGroupAdmin": { - aminoType: string; - toAmino: ({ admin, groupId, newAdmin }: import("./group/v1/tx").MsgUpdateGroupAdmin) => { - admin: string; - group_id: string; - new_admin: string; - }; - fromAmino: ({ admin, group_id, new_admin }: { - admin: string; - group_id: string; - new_admin: string; - }) => import("./group/v1/tx").MsgUpdateGroupAdmin; - }; - "/cosmos.group.v1.MsgUpdateGroupMetadata": { - aminoType: string; - toAmino: ({ admin, groupId, metadata }: import("./group/v1/tx").MsgUpdateGroupMetadata) => { - admin: string; - group_id: string; - metadata: string; - }; - fromAmino: ({ admin, group_id, metadata }: { - admin: string; - group_id: string; - metadata: string; - }) => import("./group/v1/tx").MsgUpdateGroupMetadata; - }; - "/cosmos.group.v1.MsgCreateGroupPolicy": { - aminoType: string; - toAmino: ({ admin, groupId, metadata, decisionPolicy }: import("./group/v1/tx").MsgCreateGroupPolicy) => { - admin: string; - group_id: string; - metadata: string; - decision_policy: { - type_url: string; - value: Uint8Array; - }; - }; - fromAmino: ({ admin, group_id, metadata, decision_policy }: { - admin: string; - group_id: string; - metadata: string; - decision_policy: { - type_url: string; - value: Uint8Array; - }; - }) => import("./group/v1/tx").MsgCreateGroupPolicy; - }; - "/cosmos.group.v1.MsgCreateGroupWithPolicy": { - aminoType: string; - toAmino: ({ admin, members, groupMetadata, groupPolicyMetadata, groupPolicyAsAdmin, decisionPolicy }: import("./group/v1/tx").MsgCreateGroupWithPolicy) => { - admin: string; - members: { - address: string; - weight: string; - metadata: string; - added_at: { - seconds: string; - nanos: number; - }; - }[]; - group_metadata: string; - group_policy_metadata: string; - group_policy_as_admin: boolean; - decision_policy: { - type_url: string; - value: Uint8Array; - }; - }; - fromAmino: ({ admin, members, group_metadata, group_policy_metadata, group_policy_as_admin, decision_policy }: { - admin: string; - members: { - address: string; - weight: string; - metadata: string; - added_at: { - seconds: string; - nanos: number; - }; - }[]; - group_metadata: string; - group_policy_metadata: string; - group_policy_as_admin: boolean; - decision_policy: { - type_url: string; - value: Uint8Array; - }; - }) => import("./group/v1/tx").MsgCreateGroupWithPolicy; - }; - "/cosmos.group.v1.MsgUpdateGroupPolicyAdmin": { - aminoType: string; - toAmino: ({ admin, address, newAdmin }: import("./group/v1/tx").MsgUpdateGroupPolicyAdmin) => { - admin: string; - address: string; - new_admin: string; - }; - fromAmino: ({ admin, address, new_admin }: { - admin: string; - address: string; - new_admin: string; - }) => import("./group/v1/tx").MsgUpdateGroupPolicyAdmin; - }; - "/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy": { - aminoType: string; - toAmino: ({ admin, address, decisionPolicy }: import("./group/v1/tx").MsgUpdateGroupPolicyDecisionPolicy) => { - admin: string; - address: string; - decision_policy: { - type_url: string; - value: Uint8Array; - }; - }; - fromAmino: ({ admin, address, decision_policy }: { - admin: string; - address: string; - decision_policy: { - type_url: string; - value: Uint8Array; - }; - }) => import("./group/v1/tx").MsgUpdateGroupPolicyDecisionPolicy; - }; - "/cosmos.group.v1.MsgUpdateGroupPolicyMetadata": { - aminoType: string; - toAmino: ({ admin, address, metadata }: import("./group/v1/tx").MsgUpdateGroupPolicyMetadata) => { - admin: string; - address: string; - metadata: string; - }; - fromAmino: ({ admin, address, metadata }: { - admin: string; - address: string; - metadata: string; - }) => import("./group/v1/tx").MsgUpdateGroupPolicyMetadata; - }; - "/cosmos.group.v1.MsgSubmitProposal": { - aminoType: string; - toAmino: ({ address, proposers, metadata, messages, exec }: import("./group/v1/tx").MsgSubmitProposal) => { - address: string; - proposers: string[]; - metadata: string; - messages: { - type_url: string; - value: Uint8Array; - }[]; - exec: number; - }; - fromAmino: ({ address, proposers, metadata, messages, exec }: { - address: string; - proposers: string[]; - metadata: string; - messages: { - type_url: string; - value: Uint8Array; - }[]; - exec: number; - }) => import("./group/v1/tx").MsgSubmitProposal; - }; - "/cosmos.group.v1.MsgWithdrawProposal": { - aminoType: string; - toAmino: ({ proposalId, address }: import("./group/v1/tx").MsgWithdrawProposal) => { - proposal_id: string; - address: string; - }; - fromAmino: ({ proposal_id, address }: { - proposal_id: string; - address: string; - }) => import("./group/v1/tx").MsgWithdrawProposal; - }; - "/cosmos.group.v1.MsgVote": { - aminoType: string; - toAmino: ({ proposalId, voter, option, metadata, exec }: import("./group/v1/tx").MsgVote) => { - proposal_id: string; - voter: string; - option: number; - metadata: string; - exec: number; - }; - fromAmino: ({ proposal_id, voter, option, metadata, exec }: { - proposal_id: string; - voter: string; - option: number; - metadata: string; - exec: number; - }) => import("./group/v1/tx").MsgVote; - }; - "/cosmos.group.v1.MsgExec": { - aminoType: string; - toAmino: ({ proposalId, signer }: import("./group/v1/tx").MsgExec) => { - proposal_id: string; - signer: string; - }; - fromAmino: ({ proposal_id, signer }: { - proposal_id: string; - signer: string; - }) => import("./group/v1/tx").MsgExec; - }; - "/cosmos.group.v1.MsgLeaveGroup": { - aminoType: string; - toAmino: ({ address, groupId }: import("./group/v1/tx").MsgLeaveGroup) => { - address: string; - group_id: string; - }; - fromAmino: ({ address, group_id }: { - address: string; - group_id: string; - }) => import("./group/v1/tx").MsgLeaveGroup; - }; "/cosmos.gov.v1beta1.MsgSubmitProposal": { aminoType: string; toAmino: ({ content, initialDeposit, proposer }: import("./gov/v1beta1/tx").MsgSubmitProposal) => { @@ -618,152 +261,6 @@ export declare const cosmosAminoConverters: { }[]; }) => import("./gov/v1beta1/tx").MsgDeposit; }; - "/cosmos.gov.v1.MsgSubmitProposal": { - aminoType: string; - toAmino: ({ messages, initialDeposit, proposer, metadata }: import("./gov/v1/tx").MsgSubmitProposal) => { - messages: { - type_url: string; - value: Uint8Array; - }[]; - initial_deposit: { - denom: string; - amount: string; - }[]; - proposer: string; - metadata: string; - }; - fromAmino: ({ messages, initial_deposit, proposer, metadata }: { - messages: { - type_url: string; - value: Uint8Array; - }[]; - initial_deposit: { - denom: string; - amount: string; - }[]; - proposer: string; - metadata: string; - }) => import("./gov/v1/tx").MsgSubmitProposal; - }; - "/cosmos.gov.v1.MsgExecLegacyContent": { - aminoType: string; - toAmino: ({ content, authority }: import("./gov/v1/tx").MsgExecLegacyContent) => { - content: { - type_url: string; - value: Uint8Array; - }; - authority: string; - }; - fromAmino: ({ content, authority }: { - content: { - type_url: string; - value: Uint8Array; - }; - authority: string; - }) => import("./gov/v1/tx").MsgExecLegacyContent; - }; - "/cosmos.gov.v1.MsgVote": { - aminoType: string; - toAmino: ({ proposalId, voter, option, metadata }: import("./gov/v1/tx").MsgVote) => { - proposal_id: string; - voter: string; - option: number; - metadata: string; - }; - fromAmino: ({ proposal_id, voter, option, metadata }: { - proposal_id: string; - voter: string; - option: number; - metadata: string; - }) => import("./gov/v1/tx").MsgVote; - }; - "/cosmos.gov.v1.MsgVoteWeighted": { - aminoType: string; - toAmino: ({ proposalId, voter, options, metadata }: import("./gov/v1/tx").MsgVoteWeighted) => { - proposal_id: string; - voter: string; - options: { - option: number; - weight: string; - }[]; - metadata: string; - }; - fromAmino: ({ proposal_id, voter, options, metadata }: { - proposal_id: string; - voter: string; - options: { - option: number; - weight: string; - }[]; - metadata: string; - }) => import("./gov/v1/tx").MsgVoteWeighted; - }; - "/cosmos.gov.v1.MsgDeposit": { - aminoType: string; - toAmino: ({ proposalId, depositor, amount }: import("./gov/v1/tx").MsgDeposit) => { - proposal_id: string; - depositor: string; - amount: { - denom: string; - amount: string; - }[]; - }; - fromAmino: ({ proposal_id, depositor, amount }: { - proposal_id: string; - depositor: string; - amount: { - denom: string; - amount: string; - }[]; - }) => import("./gov/v1/tx").MsgDeposit; - }; - "/cosmos.feegrant.v1beta1.MsgGrantAllowance": { - aminoType: string; - toAmino: ({ granter, grantee, allowance }: import("./feegrant/v1beta1/tx").MsgGrantAllowance) => { - granter: string; - grantee: string; - allowance: { - type_url: string; - value: Uint8Array; - }; - }; - fromAmino: ({ granter, grantee, allowance }: { - granter: string; - grantee: string; - allowance: { - type_url: string; - value: Uint8Array; - }; - }) => import("./feegrant/v1beta1/tx").MsgGrantAllowance; - }; - "/cosmos.feegrant.v1beta1.MsgRevokeAllowance": { - aminoType: string; - toAmino: ({ granter, grantee }: import("./feegrant/v1beta1/tx").MsgRevokeAllowance) => { - granter: string; - grantee: string; - }; - fromAmino: ({ granter, grantee }: { - granter: string; - grantee: string; - }) => import("./feegrant/v1beta1/tx").MsgRevokeAllowance; - }; - "/cosmos.evidence.v1beta1.MsgSubmitEvidence": { - aminoType: string; - toAmino: ({ submitter, evidence }: import("./evidence/v1beta1/tx").MsgSubmitEvidence) => { - submitter: string; - evidence: { - type_url: string; - value: Uint8Array; - }; - }; - fromAmino: ({ submitter, evidence }: { - submitter: string; - evidence: { - type_url: string; - value: Uint8Array; - }; - }) => import("./evidence/v1beta1/tx").MsgSubmitEvidence; - }; "/cosmos.distribution.v1beta1.MsgSetWithdrawAddress": { aminoType: string; toAmino: ({ delegatorAddress, withdrawAddress }: import("./distribution/v1beta1/tx").MsgSetWithdrawAddress) => { @@ -812,19 +309,6 @@ export declare const cosmosAminoConverters: { depositor: string; }) => import("./distribution/v1beta1/tx").MsgFundCommunityPool; }; - "/cosmos.crisis.v1beta1.MsgVerifyInvariant": { - aminoType: string; - toAmino: ({ sender, invariantModuleName, invariantRoute }: import("./crisis/v1beta1/tx").MsgVerifyInvariant) => { - sender: string; - invariant_module_name: string; - invariant_route: string; - }; - fromAmino: ({ sender, invariant_module_name, invariant_route }: { - sender: string; - invariant_module_name: string; - invariant_route: string; - }) => import("./crisis/v1beta1/tx").MsgVerifyInvariant; - }; "/cosmos.bank.v1beta1.MsgSend": { aminoType: string; toAmino: ({ fromAddress, toAddress, amount }: import("./bank/v1beta1/tx").MsgSend) => { diff --git a/packages/proto/types/codegen/cosmos/crisis/v1beta1/genesis.d.ts b/packages/proto/types/codegen/cosmos/crisis/v1beta1/genesis.d.ts deleted file mode 100644 index b71cecb7..00000000 --- a/packages/proto/types/codegen/cosmos/crisis/v1beta1/genesis.d.ts +++ /dev/null @@ -1,20 +0,0 @@ -import { Coin, CoinSDKType } from "../../base/v1beta1/coin"; -import * as _m0 from "protobufjs/minimal"; -import { DeepPartial } from "../../../helpers"; -/** GenesisState defines the crisis module's genesis state. */ -export interface GenesisState { - /** - * constant_fee is the fee used to verify the invariant in the crisis - * module. - */ - constantFee: Coin; -} -/** GenesisState defines the crisis module's genesis state. */ -export interface GenesisStateSDKType { - constant_fee: CoinSDKType; -} -export declare const GenesisState: { - encode(message: GenesisState, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): GenesisState; - fromPartial(object: DeepPartial): GenesisState; -}; diff --git a/packages/proto/types/codegen/cosmos/crisis/v1beta1/tx.amino.d.ts b/packages/proto/types/codegen/cosmos/crisis/v1beta1/tx.amino.d.ts deleted file mode 100644 index 9021c8b9..00000000 --- a/packages/proto/types/codegen/cosmos/crisis/v1beta1/tx.amino.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { AminoMsg } from "@cosmjs/amino"; -import { MsgVerifyInvariant } from "./tx"; -export interface MsgVerifyInvariantAminoType extends AminoMsg { - type: "cosmos-sdk/MsgVerifyInvariant"; - value: { - sender: string; - invariant_module_name: string; - invariant_route: string; - }; -} -export declare const AminoConverter: { - "/cosmos.crisis.v1beta1.MsgVerifyInvariant": { - aminoType: string; - toAmino: ({ sender, invariantModuleName, invariantRoute }: MsgVerifyInvariant) => MsgVerifyInvariantAminoType["value"]; - fromAmino: ({ sender, invariant_module_name, invariant_route }: MsgVerifyInvariantAminoType["value"]) => MsgVerifyInvariant; - }; -}; diff --git a/packages/proto/types/codegen/cosmos/crisis/v1beta1/tx.d.ts b/packages/proto/types/codegen/cosmos/crisis/v1beta1/tx.d.ts deleted file mode 100644 index 5da6e1f5..00000000 --- a/packages/proto/types/codegen/cosmos/crisis/v1beta1/tx.d.ts +++ /dev/null @@ -1,30 +0,0 @@ -import * as _m0 from "protobufjs/minimal"; -import { DeepPartial } from "../../../helpers"; -/** MsgVerifyInvariant represents a message to verify a particular invariance. */ -export interface MsgVerifyInvariant { - sender: string; - invariantModuleName: string; - invariantRoute: string; -} -/** MsgVerifyInvariant represents a message to verify a particular invariance. */ -export interface MsgVerifyInvariantSDKType { - sender: string; - invariant_module_name: string; - invariant_route: string; -} -/** MsgVerifyInvariantResponse defines the Msg/VerifyInvariant response type. */ -export interface MsgVerifyInvariantResponse { -} -/** MsgVerifyInvariantResponse defines the Msg/VerifyInvariant response type. */ -export interface MsgVerifyInvariantResponseSDKType { -} -export declare const MsgVerifyInvariant: { - encode(message: MsgVerifyInvariant, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgVerifyInvariant; - fromPartial(object: DeepPartial): MsgVerifyInvariant; -}; -export declare const MsgVerifyInvariantResponse: { - encode(_: MsgVerifyInvariantResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgVerifyInvariantResponse; - fromPartial(_: DeepPartial): MsgVerifyInvariantResponse; -}; diff --git a/packages/proto/types/codegen/cosmos/crisis/v1beta1/tx.registry.d.ts b/packages/proto/types/codegen/cosmos/crisis/v1beta1/tx.registry.d.ts deleted file mode 100644 index f2ec6418..00000000 --- a/packages/proto/types/codegen/cosmos/crisis/v1beta1/tx.registry.d.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { GeneratedType, Registry } from "@cosmjs/proto-signing"; -import { MsgVerifyInvariant } from "./tx"; -export declare const registry: ReadonlyArray<[string, GeneratedType]>; -export declare const load: (protoRegistry: Registry) => void; -export declare const MessageComposer: { - encoded: { - verifyInvariant(value: MsgVerifyInvariant): { - typeUrl: string; - value: Uint8Array; - }; - }; - withTypeUrl: { - verifyInvariant(value: MsgVerifyInvariant): { - typeUrl: string; - value: MsgVerifyInvariant; - }; - }; - fromPartial: { - verifyInvariant(value: MsgVerifyInvariant): { - typeUrl: string; - value: MsgVerifyInvariant; - }; - }; -}; diff --git a/packages/proto/types/codegen/cosmos/crisis/v1beta1/tx.rpc.msg.d.ts b/packages/proto/types/codegen/cosmos/crisis/v1beta1/tx.rpc.msg.d.ts deleted file mode 100644 index 901ca9f8..00000000 --- a/packages/proto/types/codegen/cosmos/crisis/v1beta1/tx.rpc.msg.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { Rpc } from "@osmonauts/helpers"; -import { MsgVerifyInvariant, MsgVerifyInvariantResponse } from "./tx"; -/** Msg defines the RPC service */ -export interface Msg { - verifyInvariant(request: MsgVerifyInvariant): Promise; -} -export declare class MsgClientImpl implements Msg { - private readonly rpc; - constructor(rpc: Rpc); - verifyInvariant(request: MsgVerifyInvariant): Promise; -} diff --git a/packages/proto/types/codegen/cosmos/distribution/v1beta1/query.rpc.query.d.ts b/packages/proto/types/codegen/cosmos/distribution/v1beta1/query.rpc.query.d.ts index 7684b931..be0d7a15 100644 --- a/packages/proto/types/codegen/cosmos/distribution/v1beta1/query.rpc.query.d.ts +++ b/packages/proto/types/codegen/cosmos/distribution/v1beta1/query.rpc.query.d.ts @@ -1,16 +1,28 @@ -import { Rpc } from "@osmonauts/helpers"; +import { Rpc } from "../../../helpers"; import { QueryClient } from "@cosmjs/stargate"; import { QueryParamsRequest, QueryParamsResponse, QueryValidatorOutstandingRewardsRequest, QueryValidatorOutstandingRewardsResponse, QueryValidatorCommissionRequest, QueryValidatorCommissionResponse, QueryValidatorSlashesRequest, QueryValidatorSlashesResponse, QueryDelegationRewardsRequest, QueryDelegationRewardsResponse, QueryDelegationTotalRewardsRequest, QueryDelegationTotalRewardsResponse, QueryDelegatorValidatorsRequest, QueryDelegatorValidatorsResponse, QueryDelegatorWithdrawAddressRequest, QueryDelegatorWithdrawAddressResponse, QueryCommunityPoolRequest, QueryCommunityPoolResponse } from "./query"; -/** Query defines the RPC service */ +/** Query defines the gRPC querier service for distribution module. */ export interface Query { + /** Params queries params of the distribution module. */ params(request?: QueryParamsRequest): Promise; + /** ValidatorOutstandingRewards queries rewards of a validator address. */ validatorOutstandingRewards(request: QueryValidatorOutstandingRewardsRequest): Promise; + /** ValidatorCommission queries accumulated commission for a validator. */ validatorCommission(request: QueryValidatorCommissionRequest): Promise; + /** ValidatorSlashes queries slash events of a validator. */ validatorSlashes(request: QueryValidatorSlashesRequest): Promise; + /** DelegationRewards queries the total rewards accrued by a delegation. */ delegationRewards(request: QueryDelegationRewardsRequest): Promise; + /** + * DelegationTotalRewards queries the total rewards accrued by a each + * validator. + */ delegationTotalRewards(request: QueryDelegationTotalRewardsRequest): Promise; + /** DelegatorValidators queries the validators of a delegator. */ delegatorValidators(request: QueryDelegatorValidatorsRequest): Promise; + /** DelegatorWithdrawAddress queries withdraw address of a delegator. */ delegatorWithdrawAddress(request: QueryDelegatorWithdrawAddressRequest): Promise; + /** CommunityPool queries the community pool coins. */ communityPool(request?: QueryCommunityPoolRequest): Promise; } export declare class QueryClientImpl implements Query { diff --git a/packages/proto/types/codegen/cosmos/distribution/v1beta1/tx.rpc.msg.d.ts b/packages/proto/types/codegen/cosmos/distribution/v1beta1/tx.rpc.msg.d.ts index 130ed660..38723e88 100644 --- a/packages/proto/types/codegen/cosmos/distribution/v1beta1/tx.rpc.msg.d.ts +++ b/packages/proto/types/codegen/cosmos/distribution/v1beta1/tx.rpc.msg.d.ts @@ -1,10 +1,26 @@ -import { Rpc } from "@osmonauts/helpers"; +import { Rpc } from "../../../helpers"; import { MsgSetWithdrawAddress, MsgSetWithdrawAddressResponse, MsgWithdrawDelegatorReward, MsgWithdrawDelegatorRewardResponse, MsgWithdrawValidatorCommission, MsgWithdrawValidatorCommissionResponse, MsgFundCommunityPool, MsgFundCommunityPoolResponse } from "./tx"; -/** Msg defines the RPC service */ +/** Msg defines the distribution Msg service. */ export interface Msg { + /** + * SetWithdrawAddress defines a method to change the withdraw address + * for a delegator (or validator self-delegation). + */ setWithdrawAddress(request: MsgSetWithdrawAddress): Promise; + /** + * WithdrawDelegatorReward defines a method to withdraw rewards of delegator + * from a single validator. + */ withdrawDelegatorReward(request: MsgWithdrawDelegatorReward): Promise; + /** + * WithdrawValidatorCommission defines a method to withdraw the + * full commission to the validator address. + */ withdrawValidatorCommission(request: MsgWithdrawValidatorCommission): Promise; + /** + * FundCommunityPool defines a method to allow an account to directly + * fund the community pool. + */ fundCommunityPool(request: MsgFundCommunityPool): Promise; } export declare class MsgClientImpl implements Msg { diff --git a/packages/proto/types/codegen/cosmos/evidence/v1beta1/evidence.d.ts b/packages/proto/types/codegen/cosmos/evidence/v1beta1/evidence.d.ts deleted file mode 100644 index 4385fba2..00000000 --- a/packages/proto/types/codegen/cosmos/evidence/v1beta1/evidence.d.ts +++ /dev/null @@ -1,27 +0,0 @@ -import { Long, DeepPartial } from "../../../helpers"; -import * as _m0 from "protobufjs/minimal"; -/** - * Equivocation implements the Evidence interface and defines evidence of double - * signing misbehavior. - */ -export interface Equivocation { - height: Long; - time: Date; - power: Long; - consensusAddress: string; -} -/** - * Equivocation implements the Evidence interface and defines evidence of double - * signing misbehavior. - */ -export interface EquivocationSDKType { - height: Long; - time: Date; - power: Long; - consensus_address: string; -} -export declare const Equivocation: { - encode(message: Equivocation, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): Equivocation; - fromPartial(object: DeepPartial): Equivocation; -}; diff --git a/packages/proto/types/codegen/cosmos/evidence/v1beta1/genesis.d.ts b/packages/proto/types/codegen/cosmos/evidence/v1beta1/genesis.d.ts deleted file mode 100644 index 13c22c80..00000000 --- a/packages/proto/types/codegen/cosmos/evidence/v1beta1/genesis.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { Any, AnySDKType } from "../../../google/protobuf/any"; -import * as _m0 from "protobufjs/minimal"; -import { DeepPartial } from "../../../helpers"; -/** GenesisState defines the evidence module's genesis state. */ -export interface GenesisState { - /** evidence defines all the evidence at genesis. */ - evidence: Any[]; -} -/** GenesisState defines the evidence module's genesis state. */ -export interface GenesisStateSDKType { - evidence: AnySDKType[]; -} -export declare const GenesisState: { - encode(message: GenesisState, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): GenesisState; - fromPartial(object: DeepPartial): GenesisState; -}; diff --git a/packages/proto/types/codegen/cosmos/evidence/v1beta1/query.d.ts b/packages/proto/types/codegen/cosmos/evidence/v1beta1/query.d.ts deleted file mode 100644 index 0bd434fd..00000000 --- a/packages/proto/types/codegen/cosmos/evidence/v1beta1/query.d.ts +++ /dev/null @@ -1,75 +0,0 @@ -import { PageRequest, PageRequestSDKType, PageResponse, PageResponseSDKType } from "../../base/query/v1beta1/pagination"; -import { Any, AnySDKType } from "../../../google/protobuf/any"; -import * as _m0 from "protobufjs/minimal"; -import { DeepPartial } from "../../../helpers"; -/** QueryEvidenceRequest is the request type for the Query/Evidence RPC method. */ -export interface QueryEvidenceRequest { - /** evidence_hash defines the hash of the requested evidence. */ - evidenceHash: Uint8Array; -} -/** QueryEvidenceRequest is the request type for the Query/Evidence RPC method. */ -export interface QueryEvidenceRequestSDKType { - evidence_hash: Uint8Array; -} -/** QueryEvidenceResponse is the response type for the Query/Evidence RPC method. */ -export interface QueryEvidenceResponse { - /** evidence returns the requested evidence. */ - evidence: Any; -} -/** QueryEvidenceResponse is the response type for the Query/Evidence RPC method. */ -export interface QueryEvidenceResponseSDKType { - evidence: AnySDKType; -} -/** - * QueryEvidenceRequest is the request type for the Query/AllEvidence RPC - * method. - */ -export interface QueryAllEvidenceRequest { - /** pagination defines an optional pagination for the request. */ - pagination: PageRequest; -} -/** - * QueryEvidenceRequest is the request type for the Query/AllEvidence RPC - * method. - */ -export interface QueryAllEvidenceRequestSDKType { - pagination: PageRequestSDKType; -} -/** - * QueryAllEvidenceResponse is the response type for the Query/AllEvidence RPC - * method. - */ -export interface QueryAllEvidenceResponse { - /** evidence returns all evidences. */ - evidence: Any[]; - /** pagination defines the pagination in the response. */ - pagination: PageResponse; -} -/** - * QueryAllEvidenceResponse is the response type for the Query/AllEvidence RPC - * method. - */ -export interface QueryAllEvidenceResponseSDKType { - evidence: AnySDKType[]; - pagination: PageResponseSDKType; -} -export declare const QueryEvidenceRequest: { - encode(message: QueryEvidenceRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryEvidenceRequest; - fromPartial(object: DeepPartial): QueryEvidenceRequest; -}; -export declare const QueryEvidenceResponse: { - encode(message: QueryEvidenceResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryEvidenceResponse; - fromPartial(object: DeepPartial): QueryEvidenceResponse; -}; -export declare const QueryAllEvidenceRequest: { - encode(message: QueryAllEvidenceRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryAllEvidenceRequest; - fromPartial(object: DeepPartial): QueryAllEvidenceRequest; -}; -export declare const QueryAllEvidenceResponse: { - encode(message: QueryAllEvidenceResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryAllEvidenceResponse; - fromPartial(object: DeepPartial): QueryAllEvidenceResponse; -}; diff --git a/packages/proto/types/codegen/cosmos/evidence/v1beta1/query.lcd.d.ts b/packages/proto/types/codegen/cosmos/evidence/v1beta1/query.lcd.d.ts deleted file mode 100644 index 7bca5ded..00000000 --- a/packages/proto/types/codegen/cosmos/evidence/v1beta1/query.lcd.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { LCDClient } from "@osmonauts/lcd"; -import { QueryEvidenceRequest, QueryEvidenceResponseSDKType, QueryAllEvidenceRequest, QueryAllEvidenceResponseSDKType } from "./query"; -export declare class LCDQueryClient { - req: LCDClient; - constructor({ requestClient }: { - requestClient: LCDClient; - }); - evidence(params: QueryEvidenceRequest): Promise; - allEvidence(params?: QueryAllEvidenceRequest): Promise; -} diff --git a/packages/proto/types/codegen/cosmos/evidence/v1beta1/query.rpc.query.d.ts b/packages/proto/types/codegen/cosmos/evidence/v1beta1/query.rpc.query.d.ts deleted file mode 100644 index b12c0818..00000000 --- a/packages/proto/types/codegen/cosmos/evidence/v1beta1/query.rpc.query.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { Rpc } from "@osmonauts/helpers"; -import { QueryClient } from "@cosmjs/stargate"; -import { QueryEvidenceRequest, QueryEvidenceResponse, QueryAllEvidenceRequest, QueryAllEvidenceResponse } from "./query"; -/** Query defines the RPC service */ -export interface Query { - evidence(request: QueryEvidenceRequest): Promise; - allEvidence(request?: QueryAllEvidenceRequest): Promise; -} -export declare class QueryClientImpl implements Query { - private readonly rpc; - constructor(rpc: Rpc); - evidence(request: QueryEvidenceRequest): Promise; - allEvidence(request?: QueryAllEvidenceRequest): Promise; -} -export declare const createRpcQueryExtension: (base: QueryClient) => { - evidence(request: QueryEvidenceRequest): Promise; - allEvidence(request?: QueryAllEvidenceRequest): Promise; -}; diff --git a/packages/proto/types/codegen/cosmos/evidence/v1beta1/tx.amino.d.ts b/packages/proto/types/codegen/cosmos/evidence/v1beta1/tx.amino.d.ts deleted file mode 100644 index 3d178c56..00000000 --- a/packages/proto/types/codegen/cosmos/evidence/v1beta1/tx.amino.d.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { AminoMsg } from "@cosmjs/amino"; -import { MsgSubmitEvidence } from "./tx"; -export interface MsgSubmitEvidenceAminoType extends AminoMsg { - type: "cosmos-sdk/MsgSubmitEvidence"; - value: { - submitter: string; - evidence: { - type_url: string; - value: Uint8Array; - }; - }; -} -export declare const AminoConverter: { - "/cosmos.evidence.v1beta1.MsgSubmitEvidence": { - aminoType: string; - toAmino: ({ submitter, evidence }: MsgSubmitEvidence) => MsgSubmitEvidenceAminoType["value"]; - fromAmino: ({ submitter, evidence }: MsgSubmitEvidenceAminoType["value"]) => MsgSubmitEvidence; - }; -}; diff --git a/packages/proto/types/codegen/cosmos/evidence/v1beta1/tx.d.ts b/packages/proto/types/codegen/cosmos/evidence/v1beta1/tx.d.ts deleted file mode 100644 index 8de0b8b0..00000000 --- a/packages/proto/types/codegen/cosmos/evidence/v1beta1/tx.d.ts +++ /dev/null @@ -1,38 +0,0 @@ -import { Any, AnySDKType } from "../../../google/protobuf/any"; -import * as _m0 from "protobufjs/minimal"; -import { DeepPartial } from "../../../helpers"; -/** - * MsgSubmitEvidence represents a message that supports submitting arbitrary - * Evidence of misbehavior such as equivocation or counterfactual signing. - */ -export interface MsgSubmitEvidence { - submitter: string; - evidence: Any; -} -/** - * MsgSubmitEvidence represents a message that supports submitting arbitrary - * Evidence of misbehavior such as equivocation or counterfactual signing. - */ -export interface MsgSubmitEvidenceSDKType { - submitter: string; - evidence: AnySDKType; -} -/** MsgSubmitEvidenceResponse defines the Msg/SubmitEvidence response type. */ -export interface MsgSubmitEvidenceResponse { - /** hash defines the hash of the evidence. */ - hash: Uint8Array; -} -/** MsgSubmitEvidenceResponse defines the Msg/SubmitEvidence response type. */ -export interface MsgSubmitEvidenceResponseSDKType { - hash: Uint8Array; -} -export declare const MsgSubmitEvidence: { - encode(message: MsgSubmitEvidence, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgSubmitEvidence; - fromPartial(object: DeepPartial): MsgSubmitEvidence; -}; -export declare const MsgSubmitEvidenceResponse: { - encode(message: MsgSubmitEvidenceResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgSubmitEvidenceResponse; - fromPartial(object: DeepPartial): MsgSubmitEvidenceResponse; -}; diff --git a/packages/proto/types/codegen/cosmos/evidence/v1beta1/tx.registry.d.ts b/packages/proto/types/codegen/cosmos/evidence/v1beta1/tx.registry.d.ts deleted file mode 100644 index 6711ffec..00000000 --- a/packages/proto/types/codegen/cosmos/evidence/v1beta1/tx.registry.d.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { GeneratedType, Registry } from "@cosmjs/proto-signing"; -import { MsgSubmitEvidence } from "./tx"; -export declare const registry: ReadonlyArray<[string, GeneratedType]>; -export declare const load: (protoRegistry: Registry) => void; -export declare const MessageComposer: { - encoded: { - submitEvidence(value: MsgSubmitEvidence): { - typeUrl: string; - value: Uint8Array; - }; - }; - withTypeUrl: { - submitEvidence(value: MsgSubmitEvidence): { - typeUrl: string; - value: MsgSubmitEvidence; - }; - }; - fromPartial: { - submitEvidence(value: MsgSubmitEvidence): { - typeUrl: string; - value: MsgSubmitEvidence; - }; - }; -}; diff --git a/packages/proto/types/codegen/cosmos/evidence/v1beta1/tx.rpc.msg.d.ts b/packages/proto/types/codegen/cosmos/evidence/v1beta1/tx.rpc.msg.d.ts deleted file mode 100644 index d615f2cd..00000000 --- a/packages/proto/types/codegen/cosmos/evidence/v1beta1/tx.rpc.msg.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { Rpc } from "@osmonauts/helpers"; -import { MsgSubmitEvidence, MsgSubmitEvidenceResponse } from "./tx"; -/** Msg defines the RPC service */ -export interface Msg { - submitEvidence(request: MsgSubmitEvidence): Promise; -} -export declare class MsgClientImpl implements Msg { - private readonly rpc; - constructor(rpc: Rpc); - submitEvidence(request: MsgSubmitEvidence): Promise; -} diff --git a/packages/proto/types/codegen/cosmos/feegrant/v1beta1/feegrant.d.ts b/packages/proto/types/codegen/cosmos/feegrant/v1beta1/feegrant.d.ts deleted file mode 100644 index e9c1a1c5..00000000 --- a/packages/proto/types/codegen/cosmos/feegrant/v1beta1/feegrant.d.ts +++ /dev/null @@ -1,111 +0,0 @@ -import { Coin, CoinSDKType } from "../../base/v1beta1/coin"; -import { Duration, DurationSDKType } from "../../../google/protobuf/duration"; -import { Any, AnySDKType } from "../../../google/protobuf/any"; -import * as _m0 from "protobufjs/minimal"; -import { DeepPartial } from "../../../helpers"; -/** - * BasicAllowance implements Allowance with a one-time grant of tokens - * that optionally expires. The grantee can use up to SpendLimit to cover fees. - */ -export interface BasicAllowance { - /** - * spend_limit specifies the maximum amount of tokens that can be spent - * by this allowance and will be updated as tokens are spent. If it is - * empty, there is no spend limit and any amount of coins can be spent. - */ - spendLimit: Coin[]; - /** expiration specifies an optional time when this allowance expires */ - expiration: Date; -} -/** - * BasicAllowance implements Allowance with a one-time grant of tokens - * that optionally expires. The grantee can use up to SpendLimit to cover fees. - */ -export interface BasicAllowanceSDKType { - spend_limit: CoinSDKType[]; - expiration: Date; -} -/** - * PeriodicAllowance extends Allowance to allow for both a maximum cap, - * as well as a limit per time period. - */ -export interface PeriodicAllowance { - /** basic specifies a struct of `BasicAllowance` */ - basic: BasicAllowance; - /** - * period specifies the time duration in which period_spend_limit coins can - * be spent before that allowance is reset - */ - period: Duration; - /** - * period_spend_limit specifies the maximum number of coins that can be spent - * in the period - */ - periodSpendLimit: Coin[]; - /** period_can_spend is the number of coins left to be spent before the period_reset time */ - periodCanSpend: Coin[]; - /** - * period_reset is the time at which this period resets and a new one begins, - * it is calculated from the start time of the first transaction after the - * last period ended - */ - periodReset: Date; -} -/** - * PeriodicAllowance extends Allowance to allow for both a maximum cap, - * as well as a limit per time period. - */ -export interface PeriodicAllowanceSDKType { - basic: BasicAllowanceSDKType; - period: DurationSDKType; - period_spend_limit: CoinSDKType[]; - period_can_spend: CoinSDKType[]; - period_reset: Date; -} -/** AllowedMsgAllowance creates allowance only for specified message types. */ -export interface AllowedMsgAllowance { - /** allowance can be any of basic and periodic fee allowance. */ - allowance: Any; - /** allowed_messages are the messages for which the grantee has the access. */ - allowedMessages: string[]; -} -/** AllowedMsgAllowance creates allowance only for specified message types. */ -export interface AllowedMsgAllowanceSDKType { - allowance: AnySDKType; - allowed_messages: string[]; -} -/** Grant is stored in the KVStore to record a grant with full context */ -export interface Grant { - /** granter is the address of the user granting an allowance of their funds. */ - granter: string; - /** grantee is the address of the user being granted an allowance of another user's funds. */ - grantee: string; - /** allowance can be any of basic, periodic, allowed fee allowance. */ - allowance: Any; -} -/** Grant is stored in the KVStore to record a grant with full context */ -export interface GrantSDKType { - granter: string; - grantee: string; - allowance: AnySDKType; -} -export declare const BasicAllowance: { - encode(message: BasicAllowance, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): BasicAllowance; - fromPartial(object: DeepPartial): BasicAllowance; -}; -export declare const PeriodicAllowance: { - encode(message: PeriodicAllowance, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): PeriodicAllowance; - fromPartial(object: DeepPartial): PeriodicAllowance; -}; -export declare const AllowedMsgAllowance: { - encode(message: AllowedMsgAllowance, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): AllowedMsgAllowance; - fromPartial(object: DeepPartial): AllowedMsgAllowance; -}; -export declare const Grant: { - encode(message: Grant, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): Grant; - fromPartial(object: DeepPartial): Grant; -}; diff --git a/packages/proto/types/codegen/cosmos/feegrant/v1beta1/genesis.d.ts b/packages/proto/types/codegen/cosmos/feegrant/v1beta1/genesis.d.ts deleted file mode 100644 index 44faac46..00000000 --- a/packages/proto/types/codegen/cosmos/feegrant/v1beta1/genesis.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { Grant, GrantSDKType } from "./feegrant"; -import * as _m0 from "protobufjs/minimal"; -import { DeepPartial } from "../../../helpers"; -/** GenesisState contains a set of fee allowances, persisted from the store */ -export interface GenesisState { - allowances: Grant[]; -} -/** GenesisState contains a set of fee allowances, persisted from the store */ -export interface GenesisStateSDKType { - allowances: GrantSDKType[]; -} -export declare const GenesisState: { - encode(message: GenesisState, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): GenesisState; - fromPartial(object: DeepPartial): GenesisState; -}; diff --git a/packages/proto/types/codegen/cosmos/feegrant/v1beta1/query.d.ts b/packages/proto/types/codegen/cosmos/feegrant/v1beta1/query.d.ts deleted file mode 100644 index b1be0243..00000000 --- a/packages/proto/types/codegen/cosmos/feegrant/v1beta1/query.d.ts +++ /dev/null @@ -1,101 +0,0 @@ -import { PageRequest, PageRequestSDKType, PageResponse, PageResponseSDKType } from "../../base/query/v1beta1/pagination"; -import { Grant, GrantSDKType } from "./feegrant"; -import * as _m0 from "protobufjs/minimal"; -import { DeepPartial } from "../../../helpers"; -/** QueryAllowanceRequest is the request type for the Query/Allowance RPC method. */ -export interface QueryAllowanceRequest { - /** granter is the address of the user granting an allowance of their funds. */ - granter: string; - /** grantee is the address of the user being granted an allowance of another user's funds. */ - grantee: string; -} -/** QueryAllowanceRequest is the request type for the Query/Allowance RPC method. */ -export interface QueryAllowanceRequestSDKType { - granter: string; - grantee: string; -} -/** QueryAllowanceResponse is the response type for the Query/Allowance RPC method. */ -export interface QueryAllowanceResponse { - /** allowance is a allowance granted for grantee by granter. */ - allowance: Grant; -} -/** QueryAllowanceResponse is the response type for the Query/Allowance RPC method. */ -export interface QueryAllowanceResponseSDKType { - allowance: GrantSDKType; -} -/** QueryAllowancesRequest is the request type for the Query/Allowances RPC method. */ -export interface QueryAllowancesRequest { - grantee: string; - /** pagination defines an pagination for the request. */ - pagination: PageRequest; -} -/** QueryAllowancesRequest is the request type for the Query/Allowances RPC method. */ -export interface QueryAllowancesRequestSDKType { - grantee: string; - pagination: PageRequestSDKType; -} -/** QueryAllowancesResponse is the response type for the Query/Allowances RPC method. */ -export interface QueryAllowancesResponse { - /** allowances are allowance's granted for grantee by granter. */ - allowances: Grant[]; - /** pagination defines an pagination for the response. */ - pagination: PageResponse; -} -/** QueryAllowancesResponse is the response type for the Query/Allowances RPC method. */ -export interface QueryAllowancesResponseSDKType { - allowances: GrantSDKType[]; - pagination: PageResponseSDKType; -} -/** QueryAllowancesByGranterRequest is the request type for the Query/AllowancesByGranter RPC method. */ -export interface QueryAllowancesByGranterRequest { - granter: string; - /** pagination defines an pagination for the request. */ - pagination: PageRequest; -} -/** QueryAllowancesByGranterRequest is the request type for the Query/AllowancesByGranter RPC method. */ -export interface QueryAllowancesByGranterRequestSDKType { - granter: string; - pagination: PageRequestSDKType; -} -/** QueryAllowancesByGranterResponse is the response type for the Query/AllowancesByGranter RPC method. */ -export interface QueryAllowancesByGranterResponse { - /** allowances that have been issued by the granter. */ - allowances: Grant[]; - /** pagination defines an pagination for the response. */ - pagination: PageResponse; -} -/** QueryAllowancesByGranterResponse is the response type for the Query/AllowancesByGranter RPC method. */ -export interface QueryAllowancesByGranterResponseSDKType { - allowances: GrantSDKType[]; - pagination: PageResponseSDKType; -} -export declare const QueryAllowanceRequest: { - encode(message: QueryAllowanceRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryAllowanceRequest; - fromPartial(object: DeepPartial): QueryAllowanceRequest; -}; -export declare const QueryAllowanceResponse: { - encode(message: QueryAllowanceResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryAllowanceResponse; - fromPartial(object: DeepPartial): QueryAllowanceResponse; -}; -export declare const QueryAllowancesRequest: { - encode(message: QueryAllowancesRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryAllowancesRequest; - fromPartial(object: DeepPartial): QueryAllowancesRequest; -}; -export declare const QueryAllowancesResponse: { - encode(message: QueryAllowancesResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryAllowancesResponse; - fromPartial(object: DeepPartial): QueryAllowancesResponse; -}; -export declare const QueryAllowancesByGranterRequest: { - encode(message: QueryAllowancesByGranterRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryAllowancesByGranterRequest; - fromPartial(object: DeepPartial): QueryAllowancesByGranterRequest; -}; -export declare const QueryAllowancesByGranterResponse: { - encode(message: QueryAllowancesByGranterResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryAllowancesByGranterResponse; - fromPartial(object: DeepPartial): QueryAllowancesByGranterResponse; -}; diff --git a/packages/proto/types/codegen/cosmos/feegrant/v1beta1/query.lcd.d.ts b/packages/proto/types/codegen/cosmos/feegrant/v1beta1/query.lcd.d.ts deleted file mode 100644 index 7669c054..00000000 --- a/packages/proto/types/codegen/cosmos/feegrant/v1beta1/query.lcd.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { LCDClient } from "@osmonauts/lcd"; -import { QueryAllowanceRequest, QueryAllowanceResponseSDKType, QueryAllowancesRequest, QueryAllowancesResponseSDKType, QueryAllowancesByGranterRequest, QueryAllowancesByGranterResponseSDKType } from "./query"; -export declare class LCDQueryClient { - req: LCDClient; - constructor({ requestClient }: { - requestClient: LCDClient; - }); - allowance(params: QueryAllowanceRequest): Promise; - allowances(params: QueryAllowancesRequest): Promise; - allowancesByGranter(params: QueryAllowancesByGranterRequest): Promise; -} diff --git a/packages/proto/types/codegen/cosmos/feegrant/v1beta1/query.rpc.query.d.ts b/packages/proto/types/codegen/cosmos/feegrant/v1beta1/query.rpc.query.d.ts deleted file mode 100644 index 48bad679..00000000 --- a/packages/proto/types/codegen/cosmos/feegrant/v1beta1/query.rpc.query.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -import { Rpc } from "@osmonauts/helpers"; -import { QueryClient } from "@cosmjs/stargate"; -import { QueryAllowanceRequest, QueryAllowanceResponse, QueryAllowancesRequest, QueryAllowancesResponse, QueryAllowancesByGranterRequest, QueryAllowancesByGranterResponse } from "./query"; -/** Query defines the RPC service */ -export interface Query { - allowance(request: QueryAllowanceRequest): Promise; - allowances(request: QueryAllowancesRequest): Promise; - allowancesByGranter(request: QueryAllowancesByGranterRequest): Promise; -} -export declare class QueryClientImpl implements Query { - private readonly rpc; - constructor(rpc: Rpc); - allowance(request: QueryAllowanceRequest): Promise; - allowances(request: QueryAllowancesRequest): Promise; - allowancesByGranter(request: QueryAllowancesByGranterRequest): Promise; -} -export declare const createRpcQueryExtension: (base: QueryClient) => { - allowance(request: QueryAllowanceRequest): Promise; - allowances(request: QueryAllowancesRequest): Promise; - allowancesByGranter(request: QueryAllowancesByGranterRequest): Promise; -}; diff --git a/packages/proto/types/codegen/cosmos/feegrant/v1beta1/tx.amino.d.ts b/packages/proto/types/codegen/cosmos/feegrant/v1beta1/tx.amino.d.ts deleted file mode 100644 index cf693427..00000000 --- a/packages/proto/types/codegen/cosmos/feegrant/v1beta1/tx.amino.d.ts +++ /dev/null @@ -1,32 +0,0 @@ -import { AminoMsg } from "@cosmjs/amino"; -import { MsgGrantAllowance, MsgRevokeAllowance } from "./tx"; -export interface MsgGrantAllowanceAminoType extends AminoMsg { - type: "cosmos-sdk/MsgGrantAllowance"; - value: { - granter: string; - grantee: string; - allowance: { - type_url: string; - value: Uint8Array; - }; - }; -} -export interface MsgRevokeAllowanceAminoType extends AminoMsg { - type: "cosmos-sdk/MsgRevokeAllowance"; - value: { - granter: string; - grantee: string; - }; -} -export declare const AminoConverter: { - "/cosmos.feegrant.v1beta1.MsgGrantAllowance": { - aminoType: string; - toAmino: ({ granter, grantee, allowance }: MsgGrantAllowance) => MsgGrantAllowanceAminoType["value"]; - fromAmino: ({ granter, grantee, allowance }: MsgGrantAllowanceAminoType["value"]) => MsgGrantAllowance; - }; - "/cosmos.feegrant.v1beta1.MsgRevokeAllowance": { - aminoType: string; - toAmino: ({ granter, grantee }: MsgRevokeAllowance) => MsgRevokeAllowanceAminoType["value"]; - fromAmino: ({ granter, grantee }: MsgRevokeAllowanceAminoType["value"]) => MsgRevokeAllowance; - }; -}; diff --git a/packages/proto/types/codegen/cosmos/feegrant/v1beta1/tx.d.ts b/packages/proto/types/codegen/cosmos/feegrant/v1beta1/tx.d.ts deleted file mode 100644 index 0bb6a6e6..00000000 --- a/packages/proto/types/codegen/cosmos/feegrant/v1beta1/tx.d.ts +++ /dev/null @@ -1,68 +0,0 @@ -import { Any, AnySDKType } from "../../../google/protobuf/any"; -import * as _m0 from "protobufjs/minimal"; -import { DeepPartial } from "../../../helpers"; -/** - * MsgGrantAllowance adds permission for Grantee to spend up to Allowance - * of fees from the account of Granter. - */ -export interface MsgGrantAllowance { - /** granter is the address of the user granting an allowance of their funds. */ - granter: string; - /** grantee is the address of the user being granted an allowance of another user's funds. */ - grantee: string; - /** allowance can be any of basic, periodic, allowed fee allowance. */ - allowance: Any; -} -/** - * MsgGrantAllowance adds permission for Grantee to spend up to Allowance - * of fees from the account of Granter. - */ -export interface MsgGrantAllowanceSDKType { - granter: string; - grantee: string; - allowance: AnySDKType; -} -/** MsgGrantAllowanceResponse defines the Msg/GrantAllowanceResponse response type. */ -export interface MsgGrantAllowanceResponse { -} -/** MsgGrantAllowanceResponse defines the Msg/GrantAllowanceResponse response type. */ -export interface MsgGrantAllowanceResponseSDKType { -} -/** MsgRevokeAllowance removes any existing Allowance from Granter to Grantee. */ -export interface MsgRevokeAllowance { - /** granter is the address of the user granting an allowance of their funds. */ - granter: string; - /** grantee is the address of the user being granted an allowance of another user's funds. */ - grantee: string; -} -/** MsgRevokeAllowance removes any existing Allowance from Granter to Grantee. */ -export interface MsgRevokeAllowanceSDKType { - granter: string; - grantee: string; -} -/** MsgRevokeAllowanceResponse defines the Msg/RevokeAllowanceResponse response type. */ -export interface MsgRevokeAllowanceResponse { -} -/** MsgRevokeAllowanceResponse defines the Msg/RevokeAllowanceResponse response type. */ -export interface MsgRevokeAllowanceResponseSDKType { -} -export declare const MsgGrantAllowance: { - encode(message: MsgGrantAllowance, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgGrantAllowance; - fromPartial(object: DeepPartial): MsgGrantAllowance; -}; -export declare const MsgGrantAllowanceResponse: { - encode(_: MsgGrantAllowanceResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgGrantAllowanceResponse; - fromPartial(_: DeepPartial): MsgGrantAllowanceResponse; -}; -export declare const MsgRevokeAllowance: { - encode(message: MsgRevokeAllowance, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgRevokeAllowance; - fromPartial(object: DeepPartial): MsgRevokeAllowance; -}; -export declare const MsgRevokeAllowanceResponse: { - encode(_: MsgRevokeAllowanceResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgRevokeAllowanceResponse; - fromPartial(_: DeepPartial): MsgRevokeAllowanceResponse; -}; diff --git a/packages/proto/types/codegen/cosmos/feegrant/v1beta1/tx.registry.d.ts b/packages/proto/types/codegen/cosmos/feegrant/v1beta1/tx.registry.d.ts deleted file mode 100644 index 9e55d38d..00000000 --- a/packages/proto/types/codegen/cosmos/feegrant/v1beta1/tx.registry.d.ts +++ /dev/null @@ -1,36 +0,0 @@ -import { GeneratedType, Registry } from "@cosmjs/proto-signing"; -import { MsgGrantAllowance, MsgRevokeAllowance } from "./tx"; -export declare const registry: ReadonlyArray<[string, GeneratedType]>; -export declare const load: (protoRegistry: Registry) => void; -export declare const MessageComposer: { - encoded: { - grantAllowance(value: MsgGrantAllowance): { - typeUrl: string; - value: Uint8Array; - }; - revokeAllowance(value: MsgRevokeAllowance): { - typeUrl: string; - value: Uint8Array; - }; - }; - withTypeUrl: { - grantAllowance(value: MsgGrantAllowance): { - typeUrl: string; - value: MsgGrantAllowance; - }; - revokeAllowance(value: MsgRevokeAllowance): { - typeUrl: string; - value: MsgRevokeAllowance; - }; - }; - fromPartial: { - grantAllowance(value: MsgGrantAllowance): { - typeUrl: string; - value: MsgGrantAllowance; - }; - revokeAllowance(value: MsgRevokeAllowance): { - typeUrl: string; - value: MsgRevokeAllowance; - }; - }; -}; diff --git a/packages/proto/types/codegen/cosmos/feegrant/v1beta1/tx.rpc.msg.d.ts b/packages/proto/types/codegen/cosmos/feegrant/v1beta1/tx.rpc.msg.d.ts deleted file mode 100644 index 7f0b1f21..00000000 --- a/packages/proto/types/codegen/cosmos/feegrant/v1beta1/tx.rpc.msg.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { Rpc } from "@osmonauts/helpers"; -import { MsgGrantAllowance, MsgGrantAllowanceResponse, MsgRevokeAllowance, MsgRevokeAllowanceResponse } from "./tx"; -/** Msg defines the RPC service */ -export interface Msg { - grantAllowance(request: MsgGrantAllowance): Promise; - revokeAllowance(request: MsgRevokeAllowance): Promise; -} -export declare class MsgClientImpl implements Msg { - private readonly rpc; - constructor(rpc: Rpc); - grantAllowance(request: MsgGrantAllowance): Promise; - revokeAllowance(request: MsgRevokeAllowance): Promise; -} diff --git a/packages/proto/types/codegen/cosmos/genutil/v1beta1/genesis.d.ts b/packages/proto/types/codegen/cosmos/genutil/v1beta1/genesis.d.ts deleted file mode 100644 index a501140a..00000000 --- a/packages/proto/types/codegen/cosmos/genutil/v1beta1/genesis.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -import * as _m0 from "protobufjs/minimal"; -import { DeepPartial } from "../../../helpers"; -/** GenesisState defines the raw genesis transaction in JSON. */ -export interface GenesisState { - /** gen_txs defines the genesis transactions. */ - genTxs: Uint8Array[]; -} -/** GenesisState defines the raw genesis transaction in JSON. */ -export interface GenesisStateSDKType { - gen_txs: Uint8Array[]; -} -export declare const GenesisState: { - encode(message: GenesisState, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): GenesisState; - fromPartial(object: DeepPartial): GenesisState; -}; diff --git a/packages/proto/types/codegen/cosmos/gov/v1/genesis.d.ts b/packages/proto/types/codegen/cosmos/gov/v1/genesis.d.ts deleted file mode 100644 index 863de3d1..00000000 --- a/packages/proto/types/codegen/cosmos/gov/v1/genesis.d.ts +++ /dev/null @@ -1,35 +0,0 @@ -import { Deposit, DepositSDKType, Vote, VoteSDKType, Proposal, ProposalSDKType, DepositParams, DepositParamsSDKType, VotingParams, VotingParamsSDKType, TallyParams, TallyParamsSDKType } from "./gov"; -import { Long, DeepPartial } from "../../../helpers"; -import * as _m0 from "protobufjs/minimal"; -/** GenesisState defines the gov module's genesis state. */ -export interface GenesisState { - /** starting_proposal_id is the ID of the starting proposal. */ - startingProposalId: Long; - /** deposits defines all the deposits present at genesis. */ - deposits: Deposit[]; - /** votes defines all the votes present at genesis. */ - votes: Vote[]; - /** proposals defines all the proposals present at genesis. */ - proposals: Proposal[]; - /** params defines all the paramaters of related to deposit. */ - depositParams: DepositParams; - /** params defines all the paramaters of related to voting. */ - votingParams: VotingParams; - /** params defines all the paramaters of related to tally. */ - tallyParams: TallyParams; -} -/** GenesisState defines the gov module's genesis state. */ -export interface GenesisStateSDKType { - starting_proposal_id: Long; - deposits: DepositSDKType[]; - votes: VoteSDKType[]; - proposals: ProposalSDKType[]; - deposit_params: DepositParamsSDKType; - voting_params: VotingParamsSDKType; - tally_params: TallyParamsSDKType; -} -export declare const GenesisState: { - encode(message: GenesisState, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): GenesisState; - fromPartial(object: DeepPartial): GenesisState; -}; diff --git a/packages/proto/types/codegen/cosmos/gov/v1/gov.d.ts b/packages/proto/types/codegen/cosmos/gov/v1/gov.d.ts deleted file mode 100644 index a72efbf6..00000000 --- a/packages/proto/types/codegen/cosmos/gov/v1/gov.d.ts +++ /dev/null @@ -1,236 +0,0 @@ -import { Coin, CoinSDKType } from "../../base/v1beta1/coin"; -import { Any, AnySDKType } from "../../../google/protobuf/any"; -import { Duration, DurationSDKType } from "../../../google/protobuf/duration"; -import { Long, DeepPartial } from "../../../helpers"; -import * as _m0 from "protobufjs/minimal"; -/** VoteOption enumerates the valid vote options for a given governance proposal. */ -export declare enum VoteOption { - /** VOTE_OPTION_UNSPECIFIED - VOTE_OPTION_UNSPECIFIED defines a no-op vote option. */ - VOTE_OPTION_UNSPECIFIED = 0, - /** VOTE_OPTION_YES - VOTE_OPTION_YES defines a yes vote option. */ - VOTE_OPTION_YES = 1, - /** VOTE_OPTION_ABSTAIN - VOTE_OPTION_ABSTAIN defines an abstain vote option. */ - VOTE_OPTION_ABSTAIN = 2, - /** VOTE_OPTION_NO - VOTE_OPTION_NO defines a no vote option. */ - VOTE_OPTION_NO = 3, - /** VOTE_OPTION_NO_WITH_VETO - VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option. */ - VOTE_OPTION_NO_WITH_VETO = 4, - UNRECOGNIZED = -1 -} -export declare const VoteOptionSDKType: typeof VoteOption; -export declare function voteOptionFromJSON(object: any): VoteOption; -export declare function voteOptionToJSON(object: VoteOption): string; -/** ProposalStatus enumerates the valid statuses of a proposal. */ -export declare enum ProposalStatus { - /** PROPOSAL_STATUS_UNSPECIFIED - PROPOSAL_STATUS_UNSPECIFIED defines the default propopsal status. */ - PROPOSAL_STATUS_UNSPECIFIED = 0, - /** - * PROPOSAL_STATUS_DEPOSIT_PERIOD - PROPOSAL_STATUS_DEPOSIT_PERIOD defines a proposal status during the deposit - * period. - */ - PROPOSAL_STATUS_DEPOSIT_PERIOD = 1, - /** - * PROPOSAL_STATUS_VOTING_PERIOD - PROPOSAL_STATUS_VOTING_PERIOD defines a proposal status during the voting - * period. - */ - PROPOSAL_STATUS_VOTING_PERIOD = 2, - /** - * PROPOSAL_STATUS_PASSED - PROPOSAL_STATUS_PASSED defines a proposal status of a proposal that has - * passed. - */ - PROPOSAL_STATUS_PASSED = 3, - /** - * PROPOSAL_STATUS_REJECTED - PROPOSAL_STATUS_REJECTED defines a proposal status of a proposal that has - * been rejected. - */ - PROPOSAL_STATUS_REJECTED = 4, - /** - * PROPOSAL_STATUS_FAILED - PROPOSAL_STATUS_FAILED defines a proposal status of a proposal that has - * failed. - */ - PROPOSAL_STATUS_FAILED = 5, - UNRECOGNIZED = -1 -} -export declare const ProposalStatusSDKType: typeof ProposalStatus; -export declare function proposalStatusFromJSON(object: any): ProposalStatus; -export declare function proposalStatusToJSON(object: ProposalStatus): string; -/** WeightedVoteOption defines a unit of vote for vote split. */ -export interface WeightedVoteOption { - option: VoteOption; - weight: string; -} -/** WeightedVoteOption defines a unit of vote for vote split. */ -export interface WeightedVoteOptionSDKType { - option: VoteOption; - weight: string; -} -/** - * Deposit defines an amount deposited by an account address to an active - * proposal. - */ -export interface Deposit { - proposalId: Long; - depositor: string; - amount: Coin[]; -} -/** - * Deposit defines an amount deposited by an account address to an active - * proposal. - */ -export interface DepositSDKType { - proposal_id: Long; - depositor: string; - amount: CoinSDKType[]; -} -/** Proposal defines the core field members of a governance proposal. */ -export interface Proposal { - id: Long; - messages: Any[]; - status: ProposalStatus; - /** - * final_tally_result is the final tally result of the proposal. When - * querying a proposal via gRPC, this field is not populated until the - * proposal's voting period has ended. - */ - finalTallyResult: TallyResult; - submitTime: Date; - depositEndTime: Date; - totalDeposit: Coin[]; - votingStartTime: Date; - votingEndTime: Date; - /** metadata is any arbitrary metadata attached to the proposal. */ - metadata: string; -} -/** Proposal defines the core field members of a governance proposal. */ -export interface ProposalSDKType { - id: Long; - messages: AnySDKType[]; - status: ProposalStatus; - final_tally_result: TallyResultSDKType; - submit_time: Date; - deposit_end_time: Date; - total_deposit: CoinSDKType[]; - voting_start_time: Date; - voting_end_time: Date; - metadata: string; -} -/** TallyResult defines a standard tally for a governance proposal. */ -export interface TallyResult { - yesCount: string; - abstainCount: string; - noCount: string; - noWithVetoCount: string; -} -/** TallyResult defines a standard tally for a governance proposal. */ -export interface TallyResultSDKType { - yes_count: string; - abstain_count: string; - no_count: string; - no_with_veto_count: string; -} -/** - * Vote defines a vote on a governance proposal. - * A Vote consists of a proposal ID, the voter, and the vote option. - */ -export interface Vote { - proposalId: Long; - voter: string; - options: WeightedVoteOption[]; - /** metadata is any arbitrary metadata to attached to the vote. */ - metadata: string; -} -/** - * Vote defines a vote on a governance proposal. - * A Vote consists of a proposal ID, the voter, and the vote option. - */ -export interface VoteSDKType { - proposal_id: Long; - voter: string; - options: WeightedVoteOptionSDKType[]; - metadata: string; -} -/** DepositParams defines the params for deposits on governance proposals. */ -export interface DepositParams { - /** Minimum deposit for a proposal to enter voting period. */ - minDeposit: Coin[]; - /** - * Maximum period for Atom holders to deposit on a proposal. Initial value: 2 - * months. - */ - maxDepositPeriod: Duration; -} -/** DepositParams defines the params for deposits on governance proposals. */ -export interface DepositParamsSDKType { - min_deposit: CoinSDKType[]; - max_deposit_period: DurationSDKType; -} -/** VotingParams defines the params for voting on governance proposals. */ -export interface VotingParams { - /** Length of the voting period. */ - votingPeriod: Duration; -} -/** VotingParams defines the params for voting on governance proposals. */ -export interface VotingParamsSDKType { - voting_period: DurationSDKType; -} -/** TallyParams defines the params for tallying votes on governance proposals. */ -export interface TallyParams { - /** - * Minimum percentage of total stake needed to vote for a result to be - * considered valid. - */ - quorum: string; - /** Minimum proportion of Yes votes for proposal to pass. Default value: 0.5. */ - threshold: string; - /** - * Minimum value of Veto votes to Total votes ratio for proposal to be - * vetoed. Default value: 1/3. - */ - vetoThreshold: string; -} -/** TallyParams defines the params for tallying votes on governance proposals. */ -export interface TallyParamsSDKType { - quorum: string; - threshold: string; - veto_threshold: string; -} -export declare const WeightedVoteOption: { - encode(message: WeightedVoteOption, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): WeightedVoteOption; - fromPartial(object: DeepPartial): WeightedVoteOption; -}; -export declare const Deposit: { - encode(message: Deposit, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): Deposit; - fromPartial(object: DeepPartial): Deposit; -}; -export declare const Proposal: { - encode(message: Proposal, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): Proposal; - fromPartial(object: DeepPartial): Proposal; -}; -export declare const TallyResult: { - encode(message: TallyResult, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): TallyResult; - fromPartial(object: DeepPartial): TallyResult; -}; -export declare const Vote: { - encode(message: Vote, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): Vote; - fromPartial(object: DeepPartial): Vote; -}; -export declare const DepositParams: { - encode(message: DepositParams, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): DepositParams; - fromPartial(object: DeepPartial): DepositParams; -}; -export declare const VotingParams: { - encode(message: VotingParams, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): VotingParams; - fromPartial(object: DeepPartial): VotingParams; -}; -export declare const TallyParams: { - encode(message: TallyParams, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): TallyParams; - fromPartial(object: DeepPartial): TallyParams; -}; diff --git a/packages/proto/types/codegen/cosmos/gov/v1/query.d.ts b/packages/proto/types/codegen/cosmos/gov/v1/query.d.ts deleted file mode 100644 index 33d89636..00000000 --- a/packages/proto/types/codegen/cosmos/gov/v1/query.d.ts +++ /dev/null @@ -1,270 +0,0 @@ -import { ProposalStatus, Proposal, ProposalSDKType, Vote, VoteSDKType, VotingParams, VotingParamsSDKType, DepositParams, DepositParamsSDKType, TallyParams, TallyParamsSDKType, Deposit, DepositSDKType, TallyResult, TallyResultSDKType } from "./gov"; -import { PageRequest, PageRequestSDKType, PageResponse, PageResponseSDKType } from "../../base/query/v1beta1/pagination"; -import { Long, DeepPartial } from "../../../helpers"; -import * as _m0 from "protobufjs/minimal"; -/** QueryProposalRequest is the request type for the Query/Proposal RPC method. */ -export interface QueryProposalRequest { - /** proposal_id defines the unique id of the proposal. */ - proposalId: Long; -} -/** QueryProposalRequest is the request type for the Query/Proposal RPC method. */ -export interface QueryProposalRequestSDKType { - proposal_id: Long; -} -/** QueryProposalResponse is the response type for the Query/Proposal RPC method. */ -export interface QueryProposalResponse { - proposal: Proposal; -} -/** QueryProposalResponse is the response type for the Query/Proposal RPC method. */ -export interface QueryProposalResponseSDKType { - proposal: ProposalSDKType; -} -/** QueryProposalsRequest is the request type for the Query/Proposals RPC method. */ -export interface QueryProposalsRequest { - /** proposal_status defines the status of the proposals. */ - proposalStatus: ProposalStatus; - /** voter defines the voter address for the proposals. */ - voter: string; - /** depositor defines the deposit addresses from the proposals. */ - depositor: string; - /** pagination defines an optional pagination for the request. */ - pagination: PageRequest; -} -/** QueryProposalsRequest is the request type for the Query/Proposals RPC method. */ -export interface QueryProposalsRequestSDKType { - proposal_status: ProposalStatus; - voter: string; - depositor: string; - pagination: PageRequestSDKType; -} -/** - * QueryProposalsResponse is the response type for the Query/Proposals RPC - * method. - */ -export interface QueryProposalsResponse { - proposals: Proposal[]; - /** pagination defines the pagination in the response. */ - pagination: PageResponse; -} -/** - * QueryProposalsResponse is the response type for the Query/Proposals RPC - * method. - */ -export interface QueryProposalsResponseSDKType { - proposals: ProposalSDKType[]; - pagination: PageResponseSDKType; -} -/** QueryVoteRequest is the request type for the Query/Vote RPC method. */ -export interface QueryVoteRequest { - /** proposal_id defines the unique id of the proposal. */ - proposalId: Long; - /** voter defines the oter address for the proposals. */ - voter: string; -} -/** QueryVoteRequest is the request type for the Query/Vote RPC method. */ -export interface QueryVoteRequestSDKType { - proposal_id: Long; - voter: string; -} -/** QueryVoteResponse is the response type for the Query/Vote RPC method. */ -export interface QueryVoteResponse { - /** vote defined the queried vote. */ - vote: Vote; -} -/** QueryVoteResponse is the response type for the Query/Vote RPC method. */ -export interface QueryVoteResponseSDKType { - vote: VoteSDKType; -} -/** QueryVotesRequest is the request type for the Query/Votes RPC method. */ -export interface QueryVotesRequest { - /** proposal_id defines the unique id of the proposal. */ - proposalId: Long; - /** pagination defines an optional pagination for the request. */ - pagination: PageRequest; -} -/** QueryVotesRequest is the request type for the Query/Votes RPC method. */ -export interface QueryVotesRequestSDKType { - proposal_id: Long; - pagination: PageRequestSDKType; -} -/** QueryVotesResponse is the response type for the Query/Votes RPC method. */ -export interface QueryVotesResponse { - /** votes defined the queried votes. */ - votes: Vote[]; - /** pagination defines the pagination in the response. */ - pagination: PageResponse; -} -/** QueryVotesResponse is the response type for the Query/Votes RPC method. */ -export interface QueryVotesResponseSDKType { - votes: VoteSDKType[]; - pagination: PageResponseSDKType; -} -/** QueryParamsRequest is the request type for the Query/Params RPC method. */ -export interface QueryParamsRequest { - /** - * params_type defines which parameters to query for, can be one of "voting", - * "tallying" or "deposit". - */ - paramsType: string; -} -/** QueryParamsRequest is the request type for the Query/Params RPC method. */ -export interface QueryParamsRequestSDKType { - params_type: string; -} -/** QueryParamsResponse is the response type for the Query/Params RPC method. */ -export interface QueryParamsResponse { - /** voting_params defines the parameters related to voting. */ - votingParams: VotingParams; - /** deposit_params defines the parameters related to deposit. */ - depositParams: DepositParams; - /** tally_params defines the parameters related to tally. */ - tallyParams: TallyParams; -} -/** QueryParamsResponse is the response type for the Query/Params RPC method. */ -export interface QueryParamsResponseSDKType { - voting_params: VotingParamsSDKType; - deposit_params: DepositParamsSDKType; - tally_params: TallyParamsSDKType; -} -/** QueryDepositRequest is the request type for the Query/Deposit RPC method. */ -export interface QueryDepositRequest { - /** proposal_id defines the unique id of the proposal. */ - proposalId: Long; - /** depositor defines the deposit addresses from the proposals. */ - depositor: string; -} -/** QueryDepositRequest is the request type for the Query/Deposit RPC method. */ -export interface QueryDepositRequestSDKType { - proposal_id: Long; - depositor: string; -} -/** QueryDepositResponse is the response type for the Query/Deposit RPC method. */ -export interface QueryDepositResponse { - /** deposit defines the requested deposit. */ - deposit: Deposit; -} -/** QueryDepositResponse is the response type for the Query/Deposit RPC method. */ -export interface QueryDepositResponseSDKType { - deposit: DepositSDKType; -} -/** QueryDepositsRequest is the request type for the Query/Deposits RPC method. */ -export interface QueryDepositsRequest { - /** proposal_id defines the unique id of the proposal. */ - proposalId: Long; - /** pagination defines an optional pagination for the request. */ - pagination: PageRequest; -} -/** QueryDepositsRequest is the request type for the Query/Deposits RPC method. */ -export interface QueryDepositsRequestSDKType { - proposal_id: Long; - pagination: PageRequestSDKType; -} -/** QueryDepositsResponse is the response type for the Query/Deposits RPC method. */ -export interface QueryDepositsResponse { - deposits: Deposit[]; - /** pagination defines the pagination in the response. */ - pagination: PageResponse; -} -/** QueryDepositsResponse is the response type for the Query/Deposits RPC method. */ -export interface QueryDepositsResponseSDKType { - deposits: DepositSDKType[]; - pagination: PageResponseSDKType; -} -/** QueryTallyResultRequest is the request type for the Query/Tally RPC method. */ -export interface QueryTallyResultRequest { - /** proposal_id defines the unique id of the proposal. */ - proposalId: Long; -} -/** QueryTallyResultRequest is the request type for the Query/Tally RPC method. */ -export interface QueryTallyResultRequestSDKType { - proposal_id: Long; -} -/** QueryTallyResultResponse is the response type for the Query/Tally RPC method. */ -export interface QueryTallyResultResponse { - /** tally defines the requested tally. */ - tally: TallyResult; -} -/** QueryTallyResultResponse is the response type for the Query/Tally RPC method. */ -export interface QueryTallyResultResponseSDKType { - tally: TallyResultSDKType; -} -export declare const QueryProposalRequest: { - encode(message: QueryProposalRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryProposalRequest; - fromPartial(object: DeepPartial): QueryProposalRequest; -}; -export declare const QueryProposalResponse: { - encode(message: QueryProposalResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryProposalResponse; - fromPartial(object: DeepPartial): QueryProposalResponse; -}; -export declare const QueryProposalsRequest: { - encode(message: QueryProposalsRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryProposalsRequest; - fromPartial(object: DeepPartial): QueryProposalsRequest; -}; -export declare const QueryProposalsResponse: { - encode(message: QueryProposalsResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryProposalsResponse; - fromPartial(object: DeepPartial): QueryProposalsResponse; -}; -export declare const QueryVoteRequest: { - encode(message: QueryVoteRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryVoteRequest; - fromPartial(object: DeepPartial): QueryVoteRequest; -}; -export declare const QueryVoteResponse: { - encode(message: QueryVoteResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryVoteResponse; - fromPartial(object: DeepPartial): QueryVoteResponse; -}; -export declare const QueryVotesRequest: { - encode(message: QueryVotesRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryVotesRequest; - fromPartial(object: DeepPartial): QueryVotesRequest; -}; -export declare const QueryVotesResponse: { - encode(message: QueryVotesResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryVotesResponse; - fromPartial(object: DeepPartial): QueryVotesResponse; -}; -export declare const QueryParamsRequest: { - encode(message: QueryParamsRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryParamsRequest; - fromPartial(object: DeepPartial): QueryParamsRequest; -}; -export declare const QueryParamsResponse: { - encode(message: QueryParamsResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryParamsResponse; - fromPartial(object: DeepPartial): QueryParamsResponse; -}; -export declare const QueryDepositRequest: { - encode(message: QueryDepositRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryDepositRequest; - fromPartial(object: DeepPartial): QueryDepositRequest; -}; -export declare const QueryDepositResponse: { - encode(message: QueryDepositResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryDepositResponse; - fromPartial(object: DeepPartial): QueryDepositResponse; -}; -export declare const QueryDepositsRequest: { - encode(message: QueryDepositsRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryDepositsRequest; - fromPartial(object: DeepPartial): QueryDepositsRequest; -}; -export declare const QueryDepositsResponse: { - encode(message: QueryDepositsResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryDepositsResponse; - fromPartial(object: DeepPartial): QueryDepositsResponse; -}; -export declare const QueryTallyResultRequest: { - encode(message: QueryTallyResultRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryTallyResultRequest; - fromPartial(object: DeepPartial): QueryTallyResultRequest; -}; -export declare const QueryTallyResultResponse: { - encode(message: QueryTallyResultResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryTallyResultResponse; - fromPartial(object: DeepPartial): QueryTallyResultResponse; -}; diff --git a/packages/proto/types/codegen/cosmos/gov/v1/query.lcd.d.ts b/packages/proto/types/codegen/cosmos/gov/v1/query.lcd.d.ts deleted file mode 100644 index 9ce44b6a..00000000 --- a/packages/proto/types/codegen/cosmos/gov/v1/query.lcd.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { LCDClient } from "@osmonauts/lcd"; -import { QueryProposalRequest, QueryProposalResponseSDKType, QueryProposalsRequest, QueryProposalsResponseSDKType, QueryVoteRequest, QueryVoteResponseSDKType, QueryVotesRequest, QueryVotesResponseSDKType, QueryParamsRequest, QueryParamsResponseSDKType, QueryDepositRequest, QueryDepositResponseSDKType, QueryDepositsRequest, QueryDepositsResponseSDKType, QueryTallyResultRequest, QueryTallyResultResponseSDKType } from "./query"; -export declare class LCDQueryClient { - req: LCDClient; - constructor({ requestClient }: { - requestClient: LCDClient; - }); - proposal(params: QueryProposalRequest): Promise; - proposals(params: QueryProposalsRequest): Promise; - vote(params: QueryVoteRequest): Promise; - votes(params: QueryVotesRequest): Promise; - params(params: QueryParamsRequest): Promise; - deposit(params: QueryDepositRequest): Promise; - deposits(params: QueryDepositsRequest): Promise; - tallyResult(params: QueryTallyResultRequest): Promise; -} diff --git a/packages/proto/types/codegen/cosmos/gov/v1/query.rpc.query.d.ts b/packages/proto/types/codegen/cosmos/gov/v1/query.rpc.query.d.ts deleted file mode 100644 index 0950d889..00000000 --- a/packages/proto/types/codegen/cosmos/gov/v1/query.rpc.query.d.ts +++ /dev/null @@ -1,36 +0,0 @@ -import { Rpc } from "@osmonauts/helpers"; -import { QueryClient } from "@cosmjs/stargate"; -import { QueryProposalRequest, QueryProposalResponse, QueryProposalsRequest, QueryProposalsResponse, QueryVoteRequest, QueryVoteResponse, QueryVotesRequest, QueryVotesResponse, QueryParamsRequest, QueryParamsResponse, QueryDepositRequest, QueryDepositResponse, QueryDepositsRequest, QueryDepositsResponse, QueryTallyResultRequest, QueryTallyResultResponse } from "./query"; -/** Query defines the RPC service */ -export interface Query { - proposal(request: QueryProposalRequest): Promise; - proposals(request: QueryProposalsRequest): Promise; - vote(request: QueryVoteRequest): Promise; - votes(request: QueryVotesRequest): Promise; - params(request: QueryParamsRequest): Promise; - deposit(request: QueryDepositRequest): Promise; - deposits(request: QueryDepositsRequest): Promise; - tallyResult(request: QueryTallyResultRequest): Promise; -} -export declare class QueryClientImpl implements Query { - private readonly rpc; - constructor(rpc: Rpc); - proposal(request: QueryProposalRequest): Promise; - proposals(request: QueryProposalsRequest): Promise; - vote(request: QueryVoteRequest): Promise; - votes(request: QueryVotesRequest): Promise; - params(request: QueryParamsRequest): Promise; - deposit(request: QueryDepositRequest): Promise; - deposits(request: QueryDepositsRequest): Promise; - tallyResult(request: QueryTallyResultRequest): Promise; -} -export declare const createRpcQueryExtension: (base: QueryClient) => { - proposal(request: QueryProposalRequest): Promise; - proposals(request: QueryProposalsRequest): Promise; - vote(request: QueryVoteRequest): Promise; - votes(request: QueryVotesRequest): Promise; - params(request: QueryParamsRequest): Promise; - deposit(request: QueryDepositRequest): Promise; - deposits(request: QueryDepositsRequest): Promise; - tallyResult(request: QueryTallyResultRequest): Promise; -}; diff --git a/packages/proto/types/codegen/cosmos/gov/v1/tx.amino.d.ts b/packages/proto/types/codegen/cosmos/gov/v1/tx.amino.d.ts deleted file mode 100644 index f49ccc77..00000000 --- a/packages/proto/types/codegen/cosmos/gov/v1/tx.amino.d.ts +++ /dev/null @@ -1,86 +0,0 @@ -import { AminoMsg } from "@cosmjs/amino"; -import { MsgSubmitProposal, MsgExecLegacyContent, MsgVote, MsgVoteWeighted, MsgDeposit } from "./tx"; -export interface MsgSubmitProposalAminoType extends AminoMsg { - type: "cosmos-sdk/v1/MsgSubmitProposal"; - value: { - messages: { - type_url: string; - value: Uint8Array; - }[]; - initial_deposit: { - denom: string; - amount: string; - }[]; - proposer: string; - metadata: string; - }; -} -export interface MsgExecLegacyContentAminoType extends AminoMsg { - type: "cosmos-sdk/v1/MsgExecLegacyContent"; - value: { - content: { - type_url: string; - value: Uint8Array; - }; - authority: string; - }; -} -export interface MsgVoteAminoType extends AminoMsg { - type: "cosmos-sdk/v1/MsgVote"; - value: { - proposal_id: string; - voter: string; - option: number; - metadata: string; - }; -} -export interface MsgVoteWeightedAminoType extends AminoMsg { - type: "cosmos-sdk/v1/MsgVoteWeighted"; - value: { - proposal_id: string; - voter: string; - options: { - option: number; - weight: string; - }[]; - metadata: string; - }; -} -export interface MsgDepositAminoType extends AminoMsg { - type: "cosmos-sdk/v1/MsgDeposit"; - value: { - proposal_id: string; - depositor: string; - amount: { - denom: string; - amount: string; - }[]; - }; -} -export declare const AminoConverter: { - "/cosmos.gov.v1.MsgSubmitProposal": { - aminoType: string; - toAmino: ({ messages, initialDeposit, proposer, metadata }: MsgSubmitProposal) => MsgSubmitProposalAminoType["value"]; - fromAmino: ({ messages, initial_deposit, proposer, metadata }: MsgSubmitProposalAminoType["value"]) => MsgSubmitProposal; - }; - "/cosmos.gov.v1.MsgExecLegacyContent": { - aminoType: string; - toAmino: ({ content, authority }: MsgExecLegacyContent) => MsgExecLegacyContentAminoType["value"]; - fromAmino: ({ content, authority }: MsgExecLegacyContentAminoType["value"]) => MsgExecLegacyContent; - }; - "/cosmos.gov.v1.MsgVote": { - aminoType: string; - toAmino: ({ proposalId, voter, option, metadata }: MsgVote) => MsgVoteAminoType["value"]; - fromAmino: ({ proposal_id, voter, option, metadata }: MsgVoteAminoType["value"]) => MsgVote; - }; - "/cosmos.gov.v1.MsgVoteWeighted": { - aminoType: string; - toAmino: ({ proposalId, voter, options, metadata }: MsgVoteWeighted) => MsgVoteWeightedAminoType["value"]; - fromAmino: ({ proposal_id, voter, options, metadata }: MsgVoteWeightedAminoType["value"]) => MsgVoteWeighted; - }; - "/cosmos.gov.v1.MsgDeposit": { - aminoType: string; - toAmino: ({ proposalId, depositor, amount }: MsgDeposit) => MsgDepositAminoType["value"]; - fromAmino: ({ proposal_id, depositor, amount }: MsgDepositAminoType["value"]) => MsgDeposit; - }; -}; diff --git a/packages/proto/types/codegen/cosmos/gov/v1/tx.d.ts b/packages/proto/types/codegen/cosmos/gov/v1/tx.d.ts deleted file mode 100644 index d5b6d87a..00000000 --- a/packages/proto/types/codegen/cosmos/gov/v1/tx.d.ts +++ /dev/null @@ -1,166 +0,0 @@ -import { Any, AnySDKType } from "../../../google/protobuf/any"; -import { Coin, CoinSDKType } from "../../base/v1beta1/coin"; -import { VoteOption, WeightedVoteOption, WeightedVoteOptionSDKType } from "./gov"; -import { Long, DeepPartial } from "../../../helpers"; -import * as _m0 from "protobufjs/minimal"; -/** - * MsgSubmitProposal defines an sdk.Msg type that supports submitting arbitrary - * proposal Content. - */ -export interface MsgSubmitProposal { - messages: Any[]; - initialDeposit: Coin[]; - proposer: string; - /** metadata is any arbitrary metadata attached to the proposal. */ - metadata: string; -} -/** - * MsgSubmitProposal defines an sdk.Msg type that supports submitting arbitrary - * proposal Content. - */ -export interface MsgSubmitProposalSDKType { - messages: AnySDKType[]; - initial_deposit: CoinSDKType[]; - proposer: string; - metadata: string; -} -/** MsgSubmitProposalResponse defines the Msg/SubmitProposal response type. */ -export interface MsgSubmitProposalResponse { - proposalId: Long; -} -/** MsgSubmitProposalResponse defines the Msg/SubmitProposal response type. */ -export interface MsgSubmitProposalResponseSDKType { - proposal_id: Long; -} -/** - * MsgExecLegacyContent is used to wrap the legacy content field into a message. - * This ensures backwards compatibility with v1beta1.MsgSubmitProposal. - */ -export interface MsgExecLegacyContent { - /** content is the proposal's content. */ - content: Any; - /** authority must be the gov module address. */ - authority: string; -} -/** - * MsgExecLegacyContent is used to wrap the legacy content field into a message. - * This ensures backwards compatibility with v1beta1.MsgSubmitProposal. - */ -export interface MsgExecLegacyContentSDKType { - content: AnySDKType; - authority: string; -} -/** MsgExecLegacyContentResponse defines the Msg/ExecLegacyContent response type. */ -export interface MsgExecLegacyContentResponse { -} -/** MsgExecLegacyContentResponse defines the Msg/ExecLegacyContent response type. */ -export interface MsgExecLegacyContentResponseSDKType { -} -/** MsgVote defines a message to cast a vote. */ -export interface MsgVote { - proposalId: Long; - voter: string; - option: VoteOption; - metadata: string; -} -/** MsgVote defines a message to cast a vote. */ -export interface MsgVoteSDKType { - proposal_id: Long; - voter: string; - option: VoteOption; - metadata: string; -} -/** MsgVoteResponse defines the Msg/Vote response type. */ -export interface MsgVoteResponse { -} -/** MsgVoteResponse defines the Msg/Vote response type. */ -export interface MsgVoteResponseSDKType { -} -/** MsgVoteWeighted defines a message to cast a vote. */ -export interface MsgVoteWeighted { - proposalId: Long; - voter: string; - options: WeightedVoteOption[]; - metadata: string; -} -/** MsgVoteWeighted defines a message to cast a vote. */ -export interface MsgVoteWeightedSDKType { - proposal_id: Long; - voter: string; - options: WeightedVoteOptionSDKType[]; - metadata: string; -} -/** MsgVoteWeightedResponse defines the Msg/VoteWeighted response type. */ -export interface MsgVoteWeightedResponse { -} -/** MsgVoteWeightedResponse defines the Msg/VoteWeighted response type. */ -export interface MsgVoteWeightedResponseSDKType { -} -/** MsgDeposit defines a message to submit a deposit to an existing proposal. */ -export interface MsgDeposit { - proposalId: Long; - depositor: string; - amount: Coin[]; -} -/** MsgDeposit defines a message to submit a deposit to an existing proposal. */ -export interface MsgDepositSDKType { - proposal_id: Long; - depositor: string; - amount: CoinSDKType[]; -} -/** MsgDepositResponse defines the Msg/Deposit response type. */ -export interface MsgDepositResponse { -} -/** MsgDepositResponse defines the Msg/Deposit response type. */ -export interface MsgDepositResponseSDKType { -} -export declare const MsgSubmitProposal: { - encode(message: MsgSubmitProposal, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgSubmitProposal; - fromPartial(object: DeepPartial): MsgSubmitProposal; -}; -export declare const MsgSubmitProposalResponse: { - encode(message: MsgSubmitProposalResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgSubmitProposalResponse; - fromPartial(object: DeepPartial): MsgSubmitProposalResponse; -}; -export declare const MsgExecLegacyContent: { - encode(message: MsgExecLegacyContent, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgExecLegacyContent; - fromPartial(object: DeepPartial): MsgExecLegacyContent; -}; -export declare const MsgExecLegacyContentResponse: { - encode(_: MsgExecLegacyContentResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgExecLegacyContentResponse; - fromPartial(_: DeepPartial): MsgExecLegacyContentResponse; -}; -export declare const MsgVote: { - encode(message: MsgVote, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgVote; - fromPartial(object: DeepPartial): MsgVote; -}; -export declare const MsgVoteResponse: { - encode(_: MsgVoteResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgVoteResponse; - fromPartial(_: DeepPartial): MsgVoteResponse; -}; -export declare const MsgVoteWeighted: { - encode(message: MsgVoteWeighted, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgVoteWeighted; - fromPartial(object: DeepPartial): MsgVoteWeighted; -}; -export declare const MsgVoteWeightedResponse: { - encode(_: MsgVoteWeightedResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgVoteWeightedResponse; - fromPartial(_: DeepPartial): MsgVoteWeightedResponse; -}; -export declare const MsgDeposit: { - encode(message: MsgDeposit, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgDeposit; - fromPartial(object: DeepPartial): MsgDeposit; -}; -export declare const MsgDepositResponse: { - encode(_: MsgDepositResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgDepositResponse; - fromPartial(_: DeepPartial): MsgDepositResponse; -}; diff --git a/packages/proto/types/codegen/cosmos/gov/v1/tx.registry.d.ts b/packages/proto/types/codegen/cosmos/gov/v1/tx.registry.d.ts deleted file mode 100644 index 2dd13cbd..00000000 --- a/packages/proto/types/codegen/cosmos/gov/v1/tx.registry.d.ts +++ /dev/null @@ -1,72 +0,0 @@ -import { GeneratedType, Registry } from "@cosmjs/proto-signing"; -import { MsgSubmitProposal, MsgExecLegacyContent, MsgVote, MsgVoteWeighted, MsgDeposit } from "./tx"; -export declare const registry: ReadonlyArray<[string, GeneratedType]>; -export declare const load: (protoRegistry: Registry) => void; -export declare const MessageComposer: { - encoded: { - submitProposal(value: MsgSubmitProposal): { - typeUrl: string; - value: Uint8Array; - }; - execLegacyContent(value: MsgExecLegacyContent): { - typeUrl: string; - value: Uint8Array; - }; - vote(value: MsgVote): { - typeUrl: string; - value: Uint8Array; - }; - voteWeighted(value: MsgVoteWeighted): { - typeUrl: string; - value: Uint8Array; - }; - deposit(value: MsgDeposit): { - typeUrl: string; - value: Uint8Array; - }; - }; - withTypeUrl: { - submitProposal(value: MsgSubmitProposal): { - typeUrl: string; - value: MsgSubmitProposal; - }; - execLegacyContent(value: MsgExecLegacyContent): { - typeUrl: string; - value: MsgExecLegacyContent; - }; - vote(value: MsgVote): { - typeUrl: string; - value: MsgVote; - }; - voteWeighted(value: MsgVoteWeighted): { - typeUrl: string; - value: MsgVoteWeighted; - }; - deposit(value: MsgDeposit): { - typeUrl: string; - value: MsgDeposit; - }; - }; - fromPartial: { - submitProposal(value: MsgSubmitProposal): { - typeUrl: string; - value: MsgSubmitProposal; - }; - execLegacyContent(value: MsgExecLegacyContent): { - typeUrl: string; - value: MsgExecLegacyContent; - }; - vote(value: MsgVote): { - typeUrl: string; - value: MsgVote; - }; - voteWeighted(value: MsgVoteWeighted): { - typeUrl: string; - value: MsgVoteWeighted; - }; - deposit(value: MsgDeposit): { - typeUrl: string; - value: MsgDeposit; - }; - }; -}; diff --git a/packages/proto/types/codegen/cosmos/gov/v1/tx.rpc.msg.d.ts b/packages/proto/types/codegen/cosmos/gov/v1/tx.rpc.msg.d.ts deleted file mode 100644 index b55a2de0..00000000 --- a/packages/proto/types/codegen/cosmos/gov/v1/tx.rpc.msg.d.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { Rpc } from "@osmonauts/helpers"; -import { MsgSubmitProposal, MsgSubmitProposalResponse, MsgExecLegacyContent, MsgExecLegacyContentResponse, MsgVote, MsgVoteResponse, MsgVoteWeighted, MsgVoteWeightedResponse, MsgDeposit, MsgDepositResponse } from "./tx"; -/** Msg defines the RPC service */ -export interface Msg { - submitProposal(request: MsgSubmitProposal): Promise; - execLegacyContent(request: MsgExecLegacyContent): Promise; - vote(request: MsgVote): Promise; - voteWeighted(request: MsgVoteWeighted): Promise; - deposit(request: MsgDeposit): Promise; -} -export declare class MsgClientImpl implements Msg { - private readonly rpc; - constructor(rpc: Rpc); - submitProposal(request: MsgSubmitProposal): Promise; - execLegacyContent(request: MsgExecLegacyContent): Promise; - vote(request: MsgVote): Promise; - voteWeighted(request: MsgVoteWeighted): Promise; - deposit(request: MsgDeposit): Promise; -} diff --git a/packages/proto/types/codegen/cosmos/gov/v1beta1/query.rpc.query.d.ts b/packages/proto/types/codegen/cosmos/gov/v1beta1/query.rpc.query.d.ts index 0950d889..8152da58 100644 --- a/packages/proto/types/codegen/cosmos/gov/v1beta1/query.rpc.query.d.ts +++ b/packages/proto/types/codegen/cosmos/gov/v1beta1/query.rpc.query.d.ts @@ -1,15 +1,23 @@ -import { Rpc } from "@osmonauts/helpers"; +import { Rpc } from "../../../helpers"; import { QueryClient } from "@cosmjs/stargate"; import { QueryProposalRequest, QueryProposalResponse, QueryProposalsRequest, QueryProposalsResponse, QueryVoteRequest, QueryVoteResponse, QueryVotesRequest, QueryVotesResponse, QueryParamsRequest, QueryParamsResponse, QueryDepositRequest, QueryDepositResponse, QueryDepositsRequest, QueryDepositsResponse, QueryTallyResultRequest, QueryTallyResultResponse } from "./query"; -/** Query defines the RPC service */ +/** Query defines the gRPC querier service for gov module */ export interface Query { + /** Proposal queries proposal details based on ProposalID. */ proposal(request: QueryProposalRequest): Promise; + /** Proposals queries all proposals based on given status. */ proposals(request: QueryProposalsRequest): Promise; + /** Vote queries voted information based on proposalID, voterAddr. */ vote(request: QueryVoteRequest): Promise; + /** Votes queries votes of a given proposal. */ votes(request: QueryVotesRequest): Promise; + /** Params queries all parameters of the gov module. */ params(request: QueryParamsRequest): Promise; + /** Deposit queries single deposit information based proposalID, depositAddr. */ deposit(request: QueryDepositRequest): Promise; + /** Deposits queries all deposits of a single proposal. */ deposits(request: QueryDepositsRequest): Promise; + /** TallyResult queries the tally of a proposal vote. */ tallyResult(request: QueryTallyResultRequest): Promise; } export declare class QueryClientImpl implements Query { diff --git a/packages/proto/types/codegen/cosmos/gov/v1beta1/tx.rpc.msg.d.ts b/packages/proto/types/codegen/cosmos/gov/v1beta1/tx.rpc.msg.d.ts index 2c94b3d9..0fc403bc 100644 --- a/packages/proto/types/codegen/cosmos/gov/v1beta1/tx.rpc.msg.d.ts +++ b/packages/proto/types/codegen/cosmos/gov/v1beta1/tx.rpc.msg.d.ts @@ -1,10 +1,18 @@ -import { Rpc } from "@osmonauts/helpers"; +import { Rpc } from "../../../helpers"; import { MsgSubmitProposal, MsgSubmitProposalResponse, MsgVote, MsgVoteResponse, MsgVoteWeighted, MsgVoteWeightedResponse, MsgDeposit, MsgDepositResponse } from "./tx"; -/** Msg defines the RPC service */ +/** Msg defines the bank Msg service. */ export interface Msg { + /** SubmitProposal defines a method to create new proposal given a content. */ submitProposal(request: MsgSubmitProposal): Promise; + /** Vote defines a method to add a vote on a specific proposal. */ vote(request: MsgVote): Promise; + /** + * VoteWeighted defines a method to add a weighted vote on a specific proposal. + * + * Since: cosmos-sdk 0.43 + */ voteWeighted(request: MsgVoteWeighted): Promise; + /** Deposit defines a method to add deposit on a specific proposal. */ deposit(request: MsgDeposit): Promise; } export declare class MsgClientImpl implements Msg { diff --git a/packages/proto/types/codegen/cosmos/group/v1/events.d.ts b/packages/proto/types/codegen/cosmos/group/v1/events.d.ts deleted file mode 100644 index 8075616a..00000000 --- a/packages/proto/types/codegen/cosmos/group/v1/events.d.ts +++ /dev/null @@ -1,135 +0,0 @@ -import { ProposalExecutorResult } from "./types"; -import { Long, DeepPartial } from "../../../helpers"; -import * as _m0 from "protobufjs/minimal"; -/** EventCreateGroup is an event emitted when a group is created. */ -export interface EventCreateGroup { - /** group_id is the unique ID of the group. */ - groupId: Long; -} -/** EventCreateGroup is an event emitted when a group is created. */ -export interface EventCreateGroupSDKType { - group_id: Long; -} -/** EventUpdateGroup is an event emitted when a group is updated. */ -export interface EventUpdateGroup { - /** group_id is the unique ID of the group. */ - groupId: Long; -} -/** EventUpdateGroup is an event emitted when a group is updated. */ -export interface EventUpdateGroupSDKType { - group_id: Long; -} -/** EventCreateGroupPolicy is an event emitted when a group policy is created. */ -export interface EventCreateGroupPolicy { - /** address is the account address of the group policy. */ - address: string; -} -/** EventCreateGroupPolicy is an event emitted when a group policy is created. */ -export interface EventCreateGroupPolicySDKType { - address: string; -} -/** EventUpdateGroupPolicy is an event emitted when a group policy is updated. */ -export interface EventUpdateGroupPolicy { - /** address is the account address of the group policy. */ - address: string; -} -/** EventUpdateGroupPolicy is an event emitted when a group policy is updated. */ -export interface EventUpdateGroupPolicySDKType { - address: string; -} -/** EventSubmitProposal is an event emitted when a proposal is created. */ -export interface EventSubmitProposal { - /** proposal_id is the unique ID of the proposal. */ - proposalId: Long; -} -/** EventSubmitProposal is an event emitted when a proposal is created. */ -export interface EventSubmitProposalSDKType { - proposal_id: Long; -} -/** EventWithdrawProposal is an event emitted when a proposal is withdrawn. */ -export interface EventWithdrawProposal { - /** proposal_id is the unique ID of the proposal. */ - proposalId: Long; -} -/** EventWithdrawProposal is an event emitted when a proposal is withdrawn. */ -export interface EventWithdrawProposalSDKType { - proposal_id: Long; -} -/** EventVote is an event emitted when a voter votes on a proposal. */ -export interface EventVote { - /** proposal_id is the unique ID of the proposal. */ - proposalId: Long; -} -/** EventVote is an event emitted when a voter votes on a proposal. */ -export interface EventVoteSDKType { - proposal_id: Long; -} -/** EventExec is an event emitted when a proposal is executed. */ -export interface EventExec { - /** proposal_id is the unique ID of the proposal. */ - proposalId: Long; - /** result is the proposal execution result. */ - result: ProposalExecutorResult; -} -/** EventExec is an event emitted when a proposal is executed. */ -export interface EventExecSDKType { - proposal_id: Long; - result: ProposalExecutorResult; -} -/** EventLeaveGroup is an event emitted when group member leaves the group. */ -export interface EventLeaveGroup { - /** group_id is the unique ID of the group. */ - groupId: Long; - /** address is the account address of the group member. */ - address: string; -} -/** EventLeaveGroup is an event emitted when group member leaves the group. */ -export interface EventLeaveGroupSDKType { - group_id: Long; - address: string; -} -export declare const EventCreateGroup: { - encode(message: EventCreateGroup, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): EventCreateGroup; - fromPartial(object: DeepPartial): EventCreateGroup; -}; -export declare const EventUpdateGroup: { - encode(message: EventUpdateGroup, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): EventUpdateGroup; - fromPartial(object: DeepPartial): EventUpdateGroup; -}; -export declare const EventCreateGroupPolicy: { - encode(message: EventCreateGroupPolicy, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): EventCreateGroupPolicy; - fromPartial(object: DeepPartial): EventCreateGroupPolicy; -}; -export declare const EventUpdateGroupPolicy: { - encode(message: EventUpdateGroupPolicy, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): EventUpdateGroupPolicy; - fromPartial(object: DeepPartial): EventUpdateGroupPolicy; -}; -export declare const EventSubmitProposal: { - encode(message: EventSubmitProposal, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): EventSubmitProposal; - fromPartial(object: DeepPartial): EventSubmitProposal; -}; -export declare const EventWithdrawProposal: { - encode(message: EventWithdrawProposal, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): EventWithdrawProposal; - fromPartial(object: DeepPartial): EventWithdrawProposal; -}; -export declare const EventVote: { - encode(message: EventVote, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): EventVote; - fromPartial(object: DeepPartial): EventVote; -}; -export declare const EventExec: { - encode(message: EventExec, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): EventExec; - fromPartial(object: DeepPartial): EventExec; -}; -export declare const EventLeaveGroup: { - encode(message: EventLeaveGroup, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): EventLeaveGroup; - fromPartial(object: DeepPartial): EventLeaveGroup; -}; diff --git a/packages/proto/types/codegen/cosmos/group/v1/genesis.d.ts b/packages/proto/types/codegen/cosmos/group/v1/genesis.d.ts deleted file mode 100644 index 46116023..00000000 --- a/packages/proto/types/codegen/cosmos/group/v1/genesis.d.ts +++ /dev/null @@ -1,47 +0,0 @@ -import { GroupInfo, GroupInfoSDKType, GroupMember, GroupMemberSDKType, GroupPolicyInfo, GroupPolicyInfoSDKType, Proposal, ProposalSDKType, Vote, VoteSDKType } from "./types"; -import { Long, DeepPartial } from "../../../helpers"; -import * as _m0 from "protobufjs/minimal"; -/** GenesisState defines the group module's genesis state. */ -export interface GenesisState { - /** - * group_seq is the group table orm.Sequence, - * it is used to get the next group ID. - */ - groupSeq: Long; - /** groups is the list of groups info. */ - groups: GroupInfo[]; - /** group_members is the list of groups members. */ - groupMembers: GroupMember[]; - /** - * group_policy_seq is the group policy table orm.Sequence, - * it is used to generate the next group policy account address. - */ - groupPolicySeq: Long; - /** group_policies is the list of group policies info. */ - groupPolicies: GroupPolicyInfo[]; - /** - * proposal_seq is the proposal table orm.Sequence, - * it is used to get the next proposal ID. - */ - proposalSeq: Long; - /** proposals is the list of proposals. */ - proposals: Proposal[]; - /** votes is the list of votes. */ - votes: Vote[]; -} -/** GenesisState defines the group module's genesis state. */ -export interface GenesisStateSDKType { - group_seq: Long; - groups: GroupInfoSDKType[]; - group_members: GroupMemberSDKType[]; - group_policy_seq: Long; - group_policies: GroupPolicyInfoSDKType[]; - proposal_seq: Long; - proposals: ProposalSDKType[]; - votes: VoteSDKType[]; -} -export declare const GenesisState: { - encode(message: GenesisState, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): GenesisState; - fromPartial(object: DeepPartial): GenesisState; -}; diff --git a/packages/proto/types/codegen/cosmos/group/v1/query.d.ts b/packages/proto/types/codegen/cosmos/group/v1/query.d.ts deleted file mode 100644 index b89c604a..00000000 --- a/packages/proto/types/codegen/cosmos/group/v1/query.d.ts +++ /dev/null @@ -1,419 +0,0 @@ -import { PageRequest, PageRequestSDKType, PageResponse, PageResponseSDKType } from "../../base/query/v1beta1/pagination"; -import { GroupInfo, GroupInfoSDKType, GroupPolicyInfo, GroupPolicyInfoSDKType, GroupMember, GroupMemberSDKType, Proposal, ProposalSDKType, Vote, VoteSDKType, TallyResult, TallyResultSDKType } from "./types"; -import { Long, DeepPartial } from "../../../helpers"; -import * as _m0 from "protobufjs/minimal"; -/** QueryGroupInfoRequest is the Query/GroupInfo request type. */ -export interface QueryGroupInfoRequest { - /** group_id is the unique ID of the group. */ - groupId: Long; -} -/** QueryGroupInfoRequest is the Query/GroupInfo request type. */ -export interface QueryGroupInfoRequestSDKType { - group_id: Long; -} -/** QueryGroupInfoResponse is the Query/GroupInfo response type. */ -export interface QueryGroupInfoResponse { - /** info is the GroupInfo for the group. */ - info: GroupInfo; -} -/** QueryGroupInfoResponse is the Query/GroupInfo response type. */ -export interface QueryGroupInfoResponseSDKType { - info: GroupInfoSDKType; -} -/** QueryGroupPolicyInfoRequest is the Query/GroupPolicyInfo request type. */ -export interface QueryGroupPolicyInfoRequest { - /** address is the account address of the group policy. */ - address: string; -} -/** QueryGroupPolicyInfoRequest is the Query/GroupPolicyInfo request type. */ -export interface QueryGroupPolicyInfoRequestSDKType { - address: string; -} -/** QueryGroupPolicyInfoResponse is the Query/GroupPolicyInfo response type. */ -export interface QueryGroupPolicyInfoResponse { - /** info is the GroupPolicyInfo for the group policy. */ - info: GroupPolicyInfo; -} -/** QueryGroupPolicyInfoResponse is the Query/GroupPolicyInfo response type. */ -export interface QueryGroupPolicyInfoResponseSDKType { - info: GroupPolicyInfoSDKType; -} -/** QueryGroupMembersRequest is the Query/GroupMembers request type. */ -export interface QueryGroupMembersRequest { - /** group_id is the unique ID of the group. */ - groupId: Long; - /** pagination defines an optional pagination for the request. */ - pagination: PageRequest; -} -/** QueryGroupMembersRequest is the Query/GroupMembers request type. */ -export interface QueryGroupMembersRequestSDKType { - group_id: Long; - pagination: PageRequestSDKType; -} -/** QueryGroupMembersResponse is the Query/GroupMembersResponse response type. */ -export interface QueryGroupMembersResponse { - /** members are the members of the group with given group_id. */ - members: GroupMember[]; - /** pagination defines the pagination in the response. */ - pagination: PageResponse; -} -/** QueryGroupMembersResponse is the Query/GroupMembersResponse response type. */ -export interface QueryGroupMembersResponseSDKType { - members: GroupMemberSDKType[]; - pagination: PageResponseSDKType; -} -/** QueryGroupsByAdminRequest is the Query/GroupsByAdmin request type. */ -export interface QueryGroupsByAdminRequest { - /** admin is the account address of a group's admin. */ - admin: string; - /** pagination defines an optional pagination for the request. */ - pagination: PageRequest; -} -/** QueryGroupsByAdminRequest is the Query/GroupsByAdmin request type. */ -export interface QueryGroupsByAdminRequestSDKType { - admin: string; - pagination: PageRequestSDKType; -} -/** QueryGroupsByAdminResponse is the Query/GroupsByAdminResponse response type. */ -export interface QueryGroupsByAdminResponse { - /** groups are the groups info with the provided admin. */ - groups: GroupInfo[]; - /** pagination defines the pagination in the response. */ - pagination: PageResponse; -} -/** QueryGroupsByAdminResponse is the Query/GroupsByAdminResponse response type. */ -export interface QueryGroupsByAdminResponseSDKType { - groups: GroupInfoSDKType[]; - pagination: PageResponseSDKType; -} -/** QueryGroupPoliciesByGroupRequest is the Query/GroupPoliciesByGroup request type. */ -export interface QueryGroupPoliciesByGroupRequest { - /** group_id is the unique ID of the group policy's group. */ - groupId: Long; - /** pagination defines an optional pagination for the request. */ - pagination: PageRequest; -} -/** QueryGroupPoliciesByGroupRequest is the Query/GroupPoliciesByGroup request type. */ -export interface QueryGroupPoliciesByGroupRequestSDKType { - group_id: Long; - pagination: PageRequestSDKType; -} -/** QueryGroupPoliciesByGroupResponse is the Query/GroupPoliciesByGroup response type. */ -export interface QueryGroupPoliciesByGroupResponse { - /** group_policies are the group policies info associated with the provided group. */ - groupPolicies: GroupPolicyInfo[]; - /** pagination defines the pagination in the response. */ - pagination: PageResponse; -} -/** QueryGroupPoliciesByGroupResponse is the Query/GroupPoliciesByGroup response type. */ -export interface QueryGroupPoliciesByGroupResponseSDKType { - group_policies: GroupPolicyInfoSDKType[]; - pagination: PageResponseSDKType; -} -/** QueryGroupPoliciesByAdminRequest is the Query/GroupPoliciesByAdmin request type. */ -export interface QueryGroupPoliciesByAdminRequest { - /** admin is the admin address of the group policy. */ - admin: string; - /** pagination defines an optional pagination for the request. */ - pagination: PageRequest; -} -/** QueryGroupPoliciesByAdminRequest is the Query/GroupPoliciesByAdmin request type. */ -export interface QueryGroupPoliciesByAdminRequestSDKType { - admin: string; - pagination: PageRequestSDKType; -} -/** QueryGroupPoliciesByAdminResponse is the Query/GroupPoliciesByAdmin response type. */ -export interface QueryGroupPoliciesByAdminResponse { - /** group_policies are the group policies info with provided admin. */ - groupPolicies: GroupPolicyInfo[]; - /** pagination defines the pagination in the response. */ - pagination: PageResponse; -} -/** QueryGroupPoliciesByAdminResponse is the Query/GroupPoliciesByAdmin response type. */ -export interface QueryGroupPoliciesByAdminResponseSDKType { - group_policies: GroupPolicyInfoSDKType[]; - pagination: PageResponseSDKType; -} -/** QueryProposalRequest is the Query/Proposal request type. */ -export interface QueryProposalRequest { - /** proposal_id is the unique ID of a proposal. */ - proposalId: Long; -} -/** QueryProposalRequest is the Query/Proposal request type. */ -export interface QueryProposalRequestSDKType { - proposal_id: Long; -} -/** QueryProposalResponse is the Query/Proposal response type. */ -export interface QueryProposalResponse { - /** proposal is the proposal info. */ - proposal: Proposal; -} -/** QueryProposalResponse is the Query/Proposal response type. */ -export interface QueryProposalResponseSDKType { - proposal: ProposalSDKType; -} -/** QueryProposalsByGroupPolicyRequest is the Query/ProposalByGroupPolicy request type. */ -export interface QueryProposalsByGroupPolicyRequest { - /** address is the account address of the group policy related to proposals. */ - address: string; - /** pagination defines an optional pagination for the request. */ - pagination: PageRequest; -} -/** QueryProposalsByGroupPolicyRequest is the Query/ProposalByGroupPolicy request type. */ -export interface QueryProposalsByGroupPolicyRequestSDKType { - address: string; - pagination: PageRequestSDKType; -} -/** QueryProposalsByGroupPolicyResponse is the Query/ProposalByGroupPolicy response type. */ -export interface QueryProposalsByGroupPolicyResponse { - /** proposals are the proposals with given group policy. */ - proposals: Proposal[]; - /** pagination defines the pagination in the response. */ - pagination: PageResponse; -} -/** QueryProposalsByGroupPolicyResponse is the Query/ProposalByGroupPolicy response type. */ -export interface QueryProposalsByGroupPolicyResponseSDKType { - proposals: ProposalSDKType[]; - pagination: PageResponseSDKType; -} -/** QueryVoteByProposalVoterRequest is the Query/VoteByProposalVoter request type. */ -export interface QueryVoteByProposalVoterRequest { - /** proposal_id is the unique ID of a proposal. */ - proposalId: Long; - /** voter is a proposal voter account address. */ - voter: string; -} -/** QueryVoteByProposalVoterRequest is the Query/VoteByProposalVoter request type. */ -export interface QueryVoteByProposalVoterRequestSDKType { - proposal_id: Long; - voter: string; -} -/** QueryVoteByProposalVoterResponse is the Query/VoteByProposalVoter response type. */ -export interface QueryVoteByProposalVoterResponse { - /** vote is the vote with given proposal_id and voter. */ - vote: Vote; -} -/** QueryVoteByProposalVoterResponse is the Query/VoteByProposalVoter response type. */ -export interface QueryVoteByProposalVoterResponseSDKType { - vote: VoteSDKType; -} -/** QueryVotesByProposalRequest is the Query/VotesByProposal request type. */ -export interface QueryVotesByProposalRequest { - /** proposal_id is the unique ID of a proposal. */ - proposalId: Long; - /** pagination defines an optional pagination for the request. */ - pagination: PageRequest; -} -/** QueryVotesByProposalRequest is the Query/VotesByProposal request type. */ -export interface QueryVotesByProposalRequestSDKType { - proposal_id: Long; - pagination: PageRequestSDKType; -} -/** QueryVotesByProposalResponse is the Query/VotesByProposal response type. */ -export interface QueryVotesByProposalResponse { - /** votes are the list of votes for given proposal_id. */ - votes: Vote[]; - /** pagination defines the pagination in the response. */ - pagination: PageResponse; -} -/** QueryVotesByProposalResponse is the Query/VotesByProposal response type. */ -export interface QueryVotesByProposalResponseSDKType { - votes: VoteSDKType[]; - pagination: PageResponseSDKType; -} -/** QueryVotesByVoterRequest is the Query/VotesByVoter request type. */ -export interface QueryVotesByVoterRequest { - /** voter is a proposal voter account address. */ - voter: string; - /** pagination defines an optional pagination for the request. */ - pagination: PageRequest; -} -/** QueryVotesByVoterRequest is the Query/VotesByVoter request type. */ -export interface QueryVotesByVoterRequestSDKType { - voter: string; - pagination: PageRequestSDKType; -} -/** QueryVotesByVoterResponse is the Query/VotesByVoter response type. */ -export interface QueryVotesByVoterResponse { - /** votes are the list of votes by given voter. */ - votes: Vote[]; - /** pagination defines the pagination in the response. */ - pagination: PageResponse; -} -/** QueryVotesByVoterResponse is the Query/VotesByVoter response type. */ -export interface QueryVotesByVoterResponseSDKType { - votes: VoteSDKType[]; - pagination: PageResponseSDKType; -} -/** QueryGroupsByMemberRequest is the Query/GroupsByMember request type. */ -export interface QueryGroupsByMemberRequest { - /** address is the group member address. */ - address: string; - /** pagination defines an optional pagination for the request. */ - pagination: PageRequest; -} -/** QueryGroupsByMemberRequest is the Query/GroupsByMember request type. */ -export interface QueryGroupsByMemberRequestSDKType { - address: string; - pagination: PageRequestSDKType; -} -/** QueryGroupsByMemberResponse is the Query/GroupsByMember response type. */ -export interface QueryGroupsByMemberResponse { - /** groups are the groups info with the provided group member. */ - groups: GroupInfo[]; - /** pagination defines the pagination in the response. */ - pagination: PageResponse; -} -/** QueryGroupsByMemberResponse is the Query/GroupsByMember response type. */ -export interface QueryGroupsByMemberResponseSDKType { - groups: GroupInfoSDKType[]; - pagination: PageResponseSDKType; -} -/** QueryTallyResultRequest is the Query/TallyResult request type. */ -export interface QueryTallyResultRequest { - /** proposal_id is the unique id of a proposal. */ - proposalId: Long; -} -/** QueryTallyResultRequest is the Query/TallyResult request type. */ -export interface QueryTallyResultRequestSDKType { - proposal_id: Long; -} -/** QueryTallyResultResponse is the Query/TallyResult response type. */ -export interface QueryTallyResultResponse { - /** tally defines the requested tally. */ - tally: TallyResult; -} -/** QueryTallyResultResponse is the Query/TallyResult response type. */ -export interface QueryTallyResultResponseSDKType { - tally: TallyResultSDKType; -} -export declare const QueryGroupInfoRequest: { - encode(message: QueryGroupInfoRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryGroupInfoRequest; - fromPartial(object: DeepPartial): QueryGroupInfoRequest; -}; -export declare const QueryGroupInfoResponse: { - encode(message: QueryGroupInfoResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryGroupInfoResponse; - fromPartial(object: DeepPartial): QueryGroupInfoResponse; -}; -export declare const QueryGroupPolicyInfoRequest: { - encode(message: QueryGroupPolicyInfoRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryGroupPolicyInfoRequest; - fromPartial(object: DeepPartial): QueryGroupPolicyInfoRequest; -}; -export declare const QueryGroupPolicyInfoResponse: { - encode(message: QueryGroupPolicyInfoResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryGroupPolicyInfoResponse; - fromPartial(object: DeepPartial): QueryGroupPolicyInfoResponse; -}; -export declare const QueryGroupMembersRequest: { - encode(message: QueryGroupMembersRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryGroupMembersRequest; - fromPartial(object: DeepPartial): QueryGroupMembersRequest; -}; -export declare const QueryGroupMembersResponse: { - encode(message: QueryGroupMembersResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryGroupMembersResponse; - fromPartial(object: DeepPartial): QueryGroupMembersResponse; -}; -export declare const QueryGroupsByAdminRequest: { - encode(message: QueryGroupsByAdminRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryGroupsByAdminRequest; - fromPartial(object: DeepPartial): QueryGroupsByAdminRequest; -}; -export declare const QueryGroupsByAdminResponse: { - encode(message: QueryGroupsByAdminResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryGroupsByAdminResponse; - fromPartial(object: DeepPartial): QueryGroupsByAdminResponse; -}; -export declare const QueryGroupPoliciesByGroupRequest: { - encode(message: QueryGroupPoliciesByGroupRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryGroupPoliciesByGroupRequest; - fromPartial(object: DeepPartial): QueryGroupPoliciesByGroupRequest; -}; -export declare const QueryGroupPoliciesByGroupResponse: { - encode(message: QueryGroupPoliciesByGroupResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryGroupPoliciesByGroupResponse; - fromPartial(object: DeepPartial): QueryGroupPoliciesByGroupResponse; -}; -export declare const QueryGroupPoliciesByAdminRequest: { - encode(message: QueryGroupPoliciesByAdminRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryGroupPoliciesByAdminRequest; - fromPartial(object: DeepPartial): QueryGroupPoliciesByAdminRequest; -}; -export declare const QueryGroupPoliciesByAdminResponse: { - encode(message: QueryGroupPoliciesByAdminResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryGroupPoliciesByAdminResponse; - fromPartial(object: DeepPartial): QueryGroupPoliciesByAdminResponse; -}; -export declare const QueryProposalRequest: { - encode(message: QueryProposalRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryProposalRequest; - fromPartial(object: DeepPartial): QueryProposalRequest; -}; -export declare const QueryProposalResponse: { - encode(message: QueryProposalResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryProposalResponse; - fromPartial(object: DeepPartial): QueryProposalResponse; -}; -export declare const QueryProposalsByGroupPolicyRequest: { - encode(message: QueryProposalsByGroupPolicyRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryProposalsByGroupPolicyRequest; - fromPartial(object: DeepPartial): QueryProposalsByGroupPolicyRequest; -}; -export declare const QueryProposalsByGroupPolicyResponse: { - encode(message: QueryProposalsByGroupPolicyResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryProposalsByGroupPolicyResponse; - fromPartial(object: DeepPartial): QueryProposalsByGroupPolicyResponse; -}; -export declare const QueryVoteByProposalVoterRequest: { - encode(message: QueryVoteByProposalVoterRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryVoteByProposalVoterRequest; - fromPartial(object: DeepPartial): QueryVoteByProposalVoterRequest; -}; -export declare const QueryVoteByProposalVoterResponse: { - encode(message: QueryVoteByProposalVoterResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryVoteByProposalVoterResponse; - fromPartial(object: DeepPartial): QueryVoteByProposalVoterResponse; -}; -export declare const QueryVotesByProposalRequest: { - encode(message: QueryVotesByProposalRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryVotesByProposalRequest; - fromPartial(object: DeepPartial): QueryVotesByProposalRequest; -}; -export declare const QueryVotesByProposalResponse: { - encode(message: QueryVotesByProposalResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryVotesByProposalResponse; - fromPartial(object: DeepPartial): QueryVotesByProposalResponse; -}; -export declare const QueryVotesByVoterRequest: { - encode(message: QueryVotesByVoterRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryVotesByVoterRequest; - fromPartial(object: DeepPartial): QueryVotesByVoterRequest; -}; -export declare const QueryVotesByVoterResponse: { - encode(message: QueryVotesByVoterResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryVotesByVoterResponse; - fromPartial(object: DeepPartial): QueryVotesByVoterResponse; -}; -export declare const QueryGroupsByMemberRequest: { - encode(message: QueryGroupsByMemberRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryGroupsByMemberRequest; - fromPartial(object: DeepPartial): QueryGroupsByMemberRequest; -}; -export declare const QueryGroupsByMemberResponse: { - encode(message: QueryGroupsByMemberResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryGroupsByMemberResponse; - fromPartial(object: DeepPartial): QueryGroupsByMemberResponse; -}; -export declare const QueryTallyResultRequest: { - encode(message: QueryTallyResultRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryTallyResultRequest; - fromPartial(object: DeepPartial): QueryTallyResultRequest; -}; -export declare const QueryTallyResultResponse: { - encode(message: QueryTallyResultResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryTallyResultResponse; - fromPartial(object: DeepPartial): QueryTallyResultResponse; -}; diff --git a/packages/proto/types/codegen/cosmos/group/v1/query.lcd.d.ts b/packages/proto/types/codegen/cosmos/group/v1/query.lcd.d.ts deleted file mode 100644 index eb9b1ffe..00000000 --- a/packages/proto/types/codegen/cosmos/group/v1/query.lcd.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -import { LCDClient } from "@osmonauts/lcd"; -import { QueryGroupInfoRequest, QueryGroupInfoResponseSDKType, QueryGroupPolicyInfoRequest, QueryGroupPolicyInfoResponseSDKType, QueryGroupMembersRequest, QueryGroupMembersResponseSDKType, QueryGroupsByAdminRequest, QueryGroupsByAdminResponseSDKType, QueryGroupPoliciesByGroupRequest, QueryGroupPoliciesByGroupResponseSDKType, QueryGroupPoliciesByAdminRequest, QueryGroupPoliciesByAdminResponseSDKType, QueryProposalRequest, QueryProposalResponseSDKType, QueryProposalsByGroupPolicyRequest, QueryProposalsByGroupPolicyResponseSDKType, QueryVoteByProposalVoterRequest, QueryVoteByProposalVoterResponseSDKType, QueryVotesByProposalRequest, QueryVotesByProposalResponseSDKType, QueryVotesByVoterRequest, QueryVotesByVoterResponseSDKType, QueryGroupsByMemberRequest, QueryGroupsByMemberResponseSDKType, QueryTallyResultRequest, QueryTallyResultResponseSDKType } from "./query"; -export declare class LCDQueryClient { - req: LCDClient; - constructor({ requestClient }: { - requestClient: LCDClient; - }); - groupInfo(params: QueryGroupInfoRequest): Promise; - groupPolicyInfo(params: QueryGroupPolicyInfoRequest): Promise; - groupMembers(params: QueryGroupMembersRequest): Promise; - groupsByAdmin(params: QueryGroupsByAdminRequest): Promise; - groupPoliciesByGroup(params: QueryGroupPoliciesByGroupRequest): Promise; - groupPoliciesByAdmin(params: QueryGroupPoliciesByAdminRequest): Promise; - proposal(params: QueryProposalRequest): Promise; - proposalsByGroupPolicy(params: QueryProposalsByGroupPolicyRequest): Promise; - voteByProposalVoter(params: QueryVoteByProposalVoterRequest): Promise; - votesByProposal(params: QueryVotesByProposalRequest): Promise; - votesByVoter(params: QueryVotesByVoterRequest): Promise; - groupsByMember(params: QueryGroupsByMemberRequest): Promise; - tallyResult(params: QueryTallyResultRequest): Promise; -} diff --git a/packages/proto/types/codegen/cosmos/group/v1/query.rpc.query.d.ts b/packages/proto/types/codegen/cosmos/group/v1/query.rpc.query.d.ts deleted file mode 100644 index dce15122..00000000 --- a/packages/proto/types/codegen/cosmos/group/v1/query.rpc.query.d.ts +++ /dev/null @@ -1,51 +0,0 @@ -import { Rpc } from "@osmonauts/helpers"; -import { QueryClient } from "@cosmjs/stargate"; -import { QueryGroupInfoRequest, QueryGroupInfoResponse, QueryGroupPolicyInfoRequest, QueryGroupPolicyInfoResponse, QueryGroupMembersRequest, QueryGroupMembersResponse, QueryGroupsByAdminRequest, QueryGroupsByAdminResponse, QueryGroupPoliciesByGroupRequest, QueryGroupPoliciesByGroupResponse, QueryGroupPoliciesByAdminRequest, QueryGroupPoliciesByAdminResponse, QueryProposalRequest, QueryProposalResponse, QueryProposalsByGroupPolicyRequest, QueryProposalsByGroupPolicyResponse, QueryVoteByProposalVoterRequest, QueryVoteByProposalVoterResponse, QueryVotesByProposalRequest, QueryVotesByProposalResponse, QueryVotesByVoterRequest, QueryVotesByVoterResponse, QueryGroupsByMemberRequest, QueryGroupsByMemberResponse, QueryTallyResultRequest, QueryTallyResultResponse } from "./query"; -/** Query defines the RPC service */ -export interface Query { - groupInfo(request: QueryGroupInfoRequest): Promise; - groupPolicyInfo(request: QueryGroupPolicyInfoRequest): Promise; - groupMembers(request: QueryGroupMembersRequest): Promise; - groupsByAdmin(request: QueryGroupsByAdminRequest): Promise; - groupPoliciesByGroup(request: QueryGroupPoliciesByGroupRequest): Promise; - groupPoliciesByAdmin(request: QueryGroupPoliciesByAdminRequest): Promise; - proposal(request: QueryProposalRequest): Promise; - proposalsByGroupPolicy(request: QueryProposalsByGroupPolicyRequest): Promise; - voteByProposalVoter(request: QueryVoteByProposalVoterRequest): Promise; - votesByProposal(request: QueryVotesByProposalRequest): Promise; - votesByVoter(request: QueryVotesByVoterRequest): Promise; - groupsByMember(request: QueryGroupsByMemberRequest): Promise; - tallyResult(request: QueryTallyResultRequest): Promise; -} -export declare class QueryClientImpl implements Query { - private readonly rpc; - constructor(rpc: Rpc); - groupInfo(request: QueryGroupInfoRequest): Promise; - groupPolicyInfo(request: QueryGroupPolicyInfoRequest): Promise; - groupMembers(request: QueryGroupMembersRequest): Promise; - groupsByAdmin(request: QueryGroupsByAdminRequest): Promise; - groupPoliciesByGroup(request: QueryGroupPoliciesByGroupRequest): Promise; - groupPoliciesByAdmin(request: QueryGroupPoliciesByAdminRequest): Promise; - proposal(request: QueryProposalRequest): Promise; - proposalsByGroupPolicy(request: QueryProposalsByGroupPolicyRequest): Promise; - voteByProposalVoter(request: QueryVoteByProposalVoterRequest): Promise; - votesByProposal(request: QueryVotesByProposalRequest): Promise; - votesByVoter(request: QueryVotesByVoterRequest): Promise; - groupsByMember(request: QueryGroupsByMemberRequest): Promise; - tallyResult(request: QueryTallyResultRequest): Promise; -} -export declare const createRpcQueryExtension: (base: QueryClient) => { - groupInfo(request: QueryGroupInfoRequest): Promise; - groupPolicyInfo(request: QueryGroupPolicyInfoRequest): Promise; - groupMembers(request: QueryGroupMembersRequest): Promise; - groupsByAdmin(request: QueryGroupsByAdminRequest): Promise; - groupPoliciesByGroup(request: QueryGroupPoliciesByGroupRequest): Promise; - groupPoliciesByAdmin(request: QueryGroupPoliciesByAdminRequest): Promise; - proposal(request: QueryProposalRequest): Promise; - proposalsByGroupPolicy(request: QueryProposalsByGroupPolicyRequest): Promise; - voteByProposalVoter(request: QueryVoteByProposalVoterRequest): Promise; - votesByProposal(request: QueryVotesByProposalRequest): Promise; - votesByVoter(request: QueryVotesByVoterRequest): Promise; - groupsByMember(request: QueryGroupsByMemberRequest): Promise; - tallyResult(request: QueryTallyResultRequest): Promise; -}; diff --git a/packages/proto/types/codegen/cosmos/group/v1/tx.amino.d.ts b/packages/proto/types/codegen/cosmos/group/v1/tx.amino.d.ts deleted file mode 100644 index fe19b48e..00000000 --- a/packages/proto/types/codegen/cosmos/group/v1/tx.amino.d.ts +++ /dev/null @@ -1,227 +0,0 @@ -import { AminoMsg } from "@cosmjs/amino"; -import { MsgCreateGroup, MsgUpdateGroupMembers, MsgUpdateGroupAdmin, MsgUpdateGroupMetadata, MsgCreateGroupPolicy, MsgCreateGroupWithPolicy, MsgUpdateGroupPolicyAdmin, MsgUpdateGroupPolicyDecisionPolicy, MsgUpdateGroupPolicyMetadata, MsgSubmitProposal, MsgWithdrawProposal, MsgVote, MsgExec, MsgLeaveGroup } from "./tx"; -export interface MsgCreateGroupAminoType extends AminoMsg { - type: "cosmos-sdk/MsgCreateGroup"; - value: { - admin: string; - members: { - address: string; - weight: string; - metadata: string; - added_at: { - seconds: string; - nanos: number; - }; - }[]; - metadata: string; - }; -} -export interface MsgUpdateGroupMembersAminoType extends AminoMsg { - type: "cosmos-sdk/MsgUpdateGroupMembers"; - value: { - admin: string; - group_id: string; - member_updates: { - address: string; - weight: string; - metadata: string; - added_at: { - seconds: string; - nanos: number; - }; - }[]; - }; -} -export interface MsgUpdateGroupAdminAminoType extends AminoMsg { - type: "cosmos-sdk/MsgUpdateGroupAdmin"; - value: { - admin: string; - group_id: string; - new_admin: string; - }; -} -export interface MsgUpdateGroupMetadataAminoType extends AminoMsg { - type: "cosmos-sdk/MsgUpdateGroupMetadata"; - value: { - admin: string; - group_id: string; - metadata: string; - }; -} -export interface MsgCreateGroupPolicyAminoType extends AminoMsg { - type: "cosmos-sdk/MsgCreateGroupPolicy"; - value: { - admin: string; - group_id: string; - metadata: string; - decision_policy: { - type_url: string; - value: Uint8Array; - }; - }; -} -export interface MsgCreateGroupWithPolicyAminoType extends AminoMsg { - type: "cosmos-sdk/MsgCreateGroupWithPolicy"; - value: { - admin: string; - members: { - address: string; - weight: string; - metadata: string; - added_at: { - seconds: string; - nanos: number; - }; - }[]; - group_metadata: string; - group_policy_metadata: string; - group_policy_as_admin: boolean; - decision_policy: { - type_url: string; - value: Uint8Array; - }; - }; -} -export interface MsgUpdateGroupPolicyAdminAminoType extends AminoMsg { - type: "cosmos-sdk/MsgUpdateGroupPolicyAdmin"; - value: { - admin: string; - address: string; - new_admin: string; - }; -} -export interface MsgUpdateGroupPolicyDecisionPolicyAminoType extends AminoMsg { - type: "cosmos-sdk/MsgUpdateGroupPolicyDecisionPolicy"; - value: { - admin: string; - address: string; - decision_policy: { - type_url: string; - value: Uint8Array; - }; - }; -} -export interface MsgUpdateGroupPolicyMetadataAminoType extends AminoMsg { - type: "cosmos-sdk/MsgUpdateGroupPolicyMetadata"; - value: { - admin: string; - address: string; - metadata: string; - }; -} -export interface MsgSubmitProposalAminoType extends AminoMsg { - type: "cosmos-sdk/group/MsgSubmitProposal"; - value: { - address: string; - proposers: string[]; - metadata: string; - messages: { - type_url: string; - value: Uint8Array; - }[]; - exec: number; - }; -} -export interface MsgWithdrawProposalAminoType extends AminoMsg { - type: "cosmos-sdk/group/MsgWithdrawProposal"; - value: { - proposal_id: string; - address: string; - }; -} -export interface MsgVoteAminoType extends AminoMsg { - type: "cosmos-sdk/group/MsgVote"; - value: { - proposal_id: string; - voter: string; - option: number; - metadata: string; - exec: number; - }; -} -export interface MsgExecAminoType extends AminoMsg { - type: "cosmos-sdk/group/MsgExec"; - value: { - proposal_id: string; - signer: string; - }; -} -export interface MsgLeaveGroupAminoType extends AminoMsg { - type: "cosmos-sdk/group/MsgLeaveGroup"; - value: { - address: string; - group_id: string; - }; -} -export declare const AminoConverter: { - "/cosmos.group.v1.MsgCreateGroup": { - aminoType: string; - toAmino: ({ admin, members, metadata }: MsgCreateGroup) => MsgCreateGroupAminoType["value"]; - fromAmino: ({ admin, members, metadata }: MsgCreateGroupAminoType["value"]) => MsgCreateGroup; - }; - "/cosmos.group.v1.MsgUpdateGroupMembers": { - aminoType: string; - toAmino: ({ admin, groupId, memberUpdates }: MsgUpdateGroupMembers) => MsgUpdateGroupMembersAminoType["value"]; - fromAmino: ({ admin, group_id, member_updates }: MsgUpdateGroupMembersAminoType["value"]) => MsgUpdateGroupMembers; - }; - "/cosmos.group.v1.MsgUpdateGroupAdmin": { - aminoType: string; - toAmino: ({ admin, groupId, newAdmin }: MsgUpdateGroupAdmin) => MsgUpdateGroupAdminAminoType["value"]; - fromAmino: ({ admin, group_id, new_admin }: MsgUpdateGroupAdminAminoType["value"]) => MsgUpdateGroupAdmin; - }; - "/cosmos.group.v1.MsgUpdateGroupMetadata": { - aminoType: string; - toAmino: ({ admin, groupId, metadata }: MsgUpdateGroupMetadata) => MsgUpdateGroupMetadataAminoType["value"]; - fromAmino: ({ admin, group_id, metadata }: MsgUpdateGroupMetadataAminoType["value"]) => MsgUpdateGroupMetadata; - }; - "/cosmos.group.v1.MsgCreateGroupPolicy": { - aminoType: string; - toAmino: ({ admin, groupId, metadata, decisionPolicy }: MsgCreateGroupPolicy) => MsgCreateGroupPolicyAminoType["value"]; - fromAmino: ({ admin, group_id, metadata, decision_policy }: MsgCreateGroupPolicyAminoType["value"]) => MsgCreateGroupPolicy; - }; - "/cosmos.group.v1.MsgCreateGroupWithPolicy": { - aminoType: string; - toAmino: ({ admin, members, groupMetadata, groupPolicyMetadata, groupPolicyAsAdmin, decisionPolicy }: MsgCreateGroupWithPolicy) => MsgCreateGroupWithPolicyAminoType["value"]; - fromAmino: ({ admin, members, group_metadata, group_policy_metadata, group_policy_as_admin, decision_policy }: MsgCreateGroupWithPolicyAminoType["value"]) => MsgCreateGroupWithPolicy; - }; - "/cosmos.group.v1.MsgUpdateGroupPolicyAdmin": { - aminoType: string; - toAmino: ({ admin, address, newAdmin }: MsgUpdateGroupPolicyAdmin) => MsgUpdateGroupPolicyAdminAminoType["value"]; - fromAmino: ({ admin, address, new_admin }: MsgUpdateGroupPolicyAdminAminoType["value"]) => MsgUpdateGroupPolicyAdmin; - }; - "/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy": { - aminoType: string; - toAmino: ({ admin, address, decisionPolicy }: MsgUpdateGroupPolicyDecisionPolicy) => MsgUpdateGroupPolicyDecisionPolicyAminoType["value"]; - fromAmino: ({ admin, address, decision_policy }: MsgUpdateGroupPolicyDecisionPolicyAminoType["value"]) => MsgUpdateGroupPolicyDecisionPolicy; - }; - "/cosmos.group.v1.MsgUpdateGroupPolicyMetadata": { - aminoType: string; - toAmino: ({ admin, address, metadata }: MsgUpdateGroupPolicyMetadata) => MsgUpdateGroupPolicyMetadataAminoType["value"]; - fromAmino: ({ admin, address, metadata }: MsgUpdateGroupPolicyMetadataAminoType["value"]) => MsgUpdateGroupPolicyMetadata; - }; - "/cosmos.group.v1.MsgSubmitProposal": { - aminoType: string; - toAmino: ({ address, proposers, metadata, messages, exec }: MsgSubmitProposal) => MsgSubmitProposalAminoType["value"]; - fromAmino: ({ address, proposers, metadata, messages, exec }: MsgSubmitProposalAminoType["value"]) => MsgSubmitProposal; - }; - "/cosmos.group.v1.MsgWithdrawProposal": { - aminoType: string; - toAmino: ({ proposalId, address }: MsgWithdrawProposal) => MsgWithdrawProposalAminoType["value"]; - fromAmino: ({ proposal_id, address }: MsgWithdrawProposalAminoType["value"]) => MsgWithdrawProposal; - }; - "/cosmos.group.v1.MsgVote": { - aminoType: string; - toAmino: ({ proposalId, voter, option, metadata, exec }: MsgVote) => MsgVoteAminoType["value"]; - fromAmino: ({ proposal_id, voter, option, metadata, exec }: MsgVoteAminoType["value"]) => MsgVote; - }; - "/cosmos.group.v1.MsgExec": { - aminoType: string; - toAmino: ({ proposalId, signer }: MsgExec) => MsgExecAminoType["value"]; - fromAmino: ({ proposal_id, signer }: MsgExecAminoType["value"]) => MsgExec; - }; - "/cosmos.group.v1.MsgLeaveGroup": { - aminoType: string; - toAmino: ({ address, groupId }: MsgLeaveGroup) => MsgLeaveGroupAminoType["value"]; - fromAmino: ({ address, group_id }: MsgLeaveGroupAminoType["value"]) => MsgLeaveGroup; - }; -}; diff --git a/packages/proto/types/codegen/cosmos/group/v1/tx.d.ts b/packages/proto/types/codegen/cosmos/group/v1/tx.d.ts deleted file mode 100644 index 8beb8160..00000000 --- a/packages/proto/types/codegen/cosmos/group/v1/tx.d.ts +++ /dev/null @@ -1,500 +0,0 @@ -import { Member, MemberSDKType, VoteOption } from "./types"; -import { Any, AnySDKType } from "../../../google/protobuf/any"; -import { Long, DeepPartial } from "../../../helpers"; -import * as _m0 from "protobufjs/minimal"; -/** Exec defines modes of execution of a proposal on creation or on new vote. */ -export declare enum Exec { - /** - * EXEC_UNSPECIFIED - An empty value means that there should be a separate - * MsgExec request for the proposal to execute. - */ - EXEC_UNSPECIFIED = 0, - /** - * EXEC_TRY - Try to execute the proposal immediately. - * If the proposal is not allowed per the DecisionPolicy, - * the proposal will still be open and could - * be executed at a later point. - */ - EXEC_TRY = 1, - UNRECOGNIZED = -1 -} -export declare const ExecSDKType: typeof Exec; -export declare function execFromJSON(object: any): Exec; -export declare function execToJSON(object: Exec): string; -/** MsgCreateGroup is the Msg/CreateGroup request type. */ -export interface MsgCreateGroup { - /** admin is the account address of the group admin. */ - admin: string; - /** members defines the group members. */ - members: Member[]; - /** metadata is any arbitrary metadata to attached to the group. */ - metadata: string; -} -/** MsgCreateGroup is the Msg/CreateGroup request type. */ -export interface MsgCreateGroupSDKType { - admin: string; - members: MemberSDKType[]; - metadata: string; -} -/** MsgCreateGroupResponse is the Msg/CreateGroup response type. */ -export interface MsgCreateGroupResponse { - /** group_id is the unique ID of the newly created group. */ - groupId: Long; -} -/** MsgCreateGroupResponse is the Msg/CreateGroup response type. */ -export interface MsgCreateGroupResponseSDKType { - group_id: Long; -} -/** MsgUpdateGroupMembers is the Msg/UpdateGroupMembers request type. */ -export interface MsgUpdateGroupMembers { - /** admin is the account address of the group admin. */ - admin: string; - /** group_id is the unique ID of the group. */ - groupId: Long; - /** - * member_updates is the list of members to update, - * set weight to 0 to remove a member. - */ - memberUpdates: Member[]; -} -/** MsgUpdateGroupMembers is the Msg/UpdateGroupMembers request type. */ -export interface MsgUpdateGroupMembersSDKType { - admin: string; - group_id: Long; - member_updates: MemberSDKType[]; -} -/** MsgUpdateGroupMembersResponse is the Msg/UpdateGroupMembers response type. */ -export interface MsgUpdateGroupMembersResponse { -} -/** MsgUpdateGroupMembersResponse is the Msg/UpdateGroupMembers response type. */ -export interface MsgUpdateGroupMembersResponseSDKType { -} -/** MsgUpdateGroupAdmin is the Msg/UpdateGroupAdmin request type. */ -export interface MsgUpdateGroupAdmin { - /** admin is the current account address of the group admin. */ - admin: string; - /** group_id is the unique ID of the group. */ - groupId: Long; - /** new_admin is the group new admin account address. */ - newAdmin: string; -} -/** MsgUpdateGroupAdmin is the Msg/UpdateGroupAdmin request type. */ -export interface MsgUpdateGroupAdminSDKType { - admin: string; - group_id: Long; - new_admin: string; -} -/** MsgUpdateGroupAdminResponse is the Msg/UpdateGroupAdmin response type. */ -export interface MsgUpdateGroupAdminResponse { -} -/** MsgUpdateGroupAdminResponse is the Msg/UpdateGroupAdmin response type. */ -export interface MsgUpdateGroupAdminResponseSDKType { -} -/** MsgUpdateGroupMetadata is the Msg/UpdateGroupMetadata request type. */ -export interface MsgUpdateGroupMetadata { - /** admin is the account address of the group admin. */ - admin: string; - /** group_id is the unique ID of the group. */ - groupId: Long; - /** metadata is the updated group's metadata. */ - metadata: string; -} -/** MsgUpdateGroupMetadata is the Msg/UpdateGroupMetadata request type. */ -export interface MsgUpdateGroupMetadataSDKType { - admin: string; - group_id: Long; - metadata: string; -} -/** MsgUpdateGroupMetadataResponse is the Msg/UpdateGroupMetadata response type. */ -export interface MsgUpdateGroupMetadataResponse { -} -/** MsgUpdateGroupMetadataResponse is the Msg/UpdateGroupMetadata response type. */ -export interface MsgUpdateGroupMetadataResponseSDKType { -} -/** MsgCreateGroupPolicy is the Msg/CreateGroupPolicy request type. */ -export interface MsgCreateGroupPolicy { - /** admin is the account address of the group admin. */ - admin: string; - /** group_id is the unique ID of the group. */ - groupId: Long; - /** metadata is any arbitrary metadata attached to the group policy. */ - metadata: string; - /** decision_policy specifies the group policy's decision policy. */ - decisionPolicy: Any; -} -/** MsgCreateGroupPolicy is the Msg/CreateGroupPolicy request type. */ -export interface MsgCreateGroupPolicySDKType { - admin: string; - group_id: Long; - metadata: string; - decision_policy: AnySDKType; -} -/** MsgCreateGroupPolicyResponse is the Msg/CreateGroupPolicy response type. */ -export interface MsgCreateGroupPolicyResponse { - /** address is the account address of the newly created group policy. */ - address: string; -} -/** MsgCreateGroupPolicyResponse is the Msg/CreateGroupPolicy response type. */ -export interface MsgCreateGroupPolicyResponseSDKType { - address: string; -} -/** MsgUpdateGroupPolicyAdmin is the Msg/UpdateGroupPolicyAdmin request type. */ -export interface MsgUpdateGroupPolicyAdmin { - /** admin is the account address of the group admin. */ - admin: string; - /** address is the account address of the group policy. */ - address: string; - /** new_admin is the new group policy admin. */ - newAdmin: string; -} -/** MsgUpdateGroupPolicyAdmin is the Msg/UpdateGroupPolicyAdmin request type. */ -export interface MsgUpdateGroupPolicyAdminSDKType { - admin: string; - address: string; - new_admin: string; -} -/** MsgCreateGroupWithPolicy is the Msg/CreateGroupWithPolicy request type. */ -export interface MsgCreateGroupWithPolicy { - /** admin is the account address of the group and group policy admin. */ - admin: string; - /** members defines the group members. */ - members: Member[]; - /** group_metadata is any arbitrary metadata attached to the group. */ - groupMetadata: string; - /** group_policy_metadata is any arbitrary metadata attached to the group policy. */ - groupPolicyMetadata: string; - /** group_policy_as_admin is a boolean field, if set to true, the group policy account address will be used as group and group policy admin. */ - groupPolicyAsAdmin: boolean; - /** decision_policy specifies the group policy's decision policy. */ - decisionPolicy: Any; -} -/** MsgCreateGroupWithPolicy is the Msg/CreateGroupWithPolicy request type. */ -export interface MsgCreateGroupWithPolicySDKType { - admin: string; - members: MemberSDKType[]; - group_metadata: string; - group_policy_metadata: string; - group_policy_as_admin: boolean; - decision_policy: AnySDKType; -} -/** MsgCreateGroupWithPolicyResponse is the Msg/CreateGroupWithPolicy response type. */ -export interface MsgCreateGroupWithPolicyResponse { - /** group_id is the unique ID of the newly created group with policy. */ - groupId: Long; - /** group_policy_address is the account address of the newly created group policy. */ - groupPolicyAddress: string; -} -/** MsgCreateGroupWithPolicyResponse is the Msg/CreateGroupWithPolicy response type. */ -export interface MsgCreateGroupWithPolicyResponseSDKType { - group_id: Long; - group_policy_address: string; -} -/** MsgUpdateGroupPolicyAdminResponse is the Msg/UpdateGroupPolicyAdmin response type. */ -export interface MsgUpdateGroupPolicyAdminResponse { -} -/** MsgUpdateGroupPolicyAdminResponse is the Msg/UpdateGroupPolicyAdmin response type. */ -export interface MsgUpdateGroupPolicyAdminResponseSDKType { -} -/** MsgUpdateGroupPolicyDecisionPolicy is the Msg/UpdateGroupPolicyDecisionPolicy request type. */ -export interface MsgUpdateGroupPolicyDecisionPolicy { - /** admin is the account address of the group admin. */ - admin: string; - /** address is the account address of group policy. */ - address: string; - /** decision_policy is the updated group policy's decision policy. */ - decisionPolicy: Any; -} -/** MsgUpdateGroupPolicyDecisionPolicy is the Msg/UpdateGroupPolicyDecisionPolicy request type. */ -export interface MsgUpdateGroupPolicyDecisionPolicySDKType { - admin: string; - address: string; - decision_policy: AnySDKType; -} -/** MsgUpdateGroupPolicyDecisionPolicyResponse is the Msg/UpdateGroupPolicyDecisionPolicy response type. */ -export interface MsgUpdateGroupPolicyDecisionPolicyResponse { -} -/** MsgUpdateGroupPolicyDecisionPolicyResponse is the Msg/UpdateGroupPolicyDecisionPolicy response type. */ -export interface MsgUpdateGroupPolicyDecisionPolicyResponseSDKType { -} -/** MsgUpdateGroupPolicyMetadata is the Msg/UpdateGroupPolicyMetadata request type. */ -export interface MsgUpdateGroupPolicyMetadata { - /** admin is the account address of the group admin. */ - admin: string; - /** address is the account address of group policy. */ - address: string; - /** metadata is the updated group policy metadata. */ - metadata: string; -} -/** MsgUpdateGroupPolicyMetadata is the Msg/UpdateGroupPolicyMetadata request type. */ -export interface MsgUpdateGroupPolicyMetadataSDKType { - admin: string; - address: string; - metadata: string; -} -/** MsgUpdateGroupPolicyMetadataResponse is the Msg/UpdateGroupPolicyMetadata response type. */ -export interface MsgUpdateGroupPolicyMetadataResponse { -} -/** MsgUpdateGroupPolicyMetadataResponse is the Msg/UpdateGroupPolicyMetadata response type. */ -export interface MsgUpdateGroupPolicyMetadataResponseSDKType { -} -/** MsgSubmitProposal is the Msg/SubmitProposal request type. */ -export interface MsgSubmitProposal { - /** address is the account address of group policy. */ - address: string; - /** - * proposers are the account addresses of the proposers. - * Proposers signatures will be counted as yes votes. - */ - proposers: string[]; - /** metadata is any arbitrary metadata to attached to the proposal. */ - metadata: string; - /** messages is a list of `sdk.Msg`s that will be executed if the proposal passes. */ - messages: Any[]; - /** - * exec defines the mode of execution of the proposal, - * whether it should be executed immediately on creation or not. - * If so, proposers signatures are considered as Yes votes. - */ - exec: Exec; -} -/** MsgSubmitProposal is the Msg/SubmitProposal request type. */ -export interface MsgSubmitProposalSDKType { - address: string; - proposers: string[]; - metadata: string; - messages: AnySDKType[]; - exec: Exec; -} -/** MsgSubmitProposalResponse is the Msg/SubmitProposal response type. */ -export interface MsgSubmitProposalResponse { - /** proposal is the unique ID of the proposal. */ - proposalId: Long; -} -/** MsgSubmitProposalResponse is the Msg/SubmitProposal response type. */ -export interface MsgSubmitProposalResponseSDKType { - proposal_id: Long; -} -/** MsgWithdrawProposal is the Msg/WithdrawProposal request type. */ -export interface MsgWithdrawProposal { - /** proposal is the unique ID of the proposal. */ - proposalId: Long; - /** address is the admin of the group policy or one of the proposer of the proposal. */ - address: string; -} -/** MsgWithdrawProposal is the Msg/WithdrawProposal request type. */ -export interface MsgWithdrawProposalSDKType { - proposal_id: Long; - address: string; -} -/** MsgWithdrawProposalResponse is the Msg/WithdrawProposal response type. */ -export interface MsgWithdrawProposalResponse { -} -/** MsgWithdrawProposalResponse is the Msg/WithdrawProposal response type. */ -export interface MsgWithdrawProposalResponseSDKType { -} -/** MsgVote is the Msg/Vote request type. */ -export interface MsgVote { - /** proposal is the unique ID of the proposal. */ - proposalId: Long; - /** voter is the voter account address. */ - voter: string; - /** option is the voter's choice on the proposal. */ - option: VoteOption; - /** metadata is any arbitrary metadata to attached to the vote. */ - metadata: string; - /** - * exec defines whether the proposal should be executed - * immediately after voting or not. - */ - exec: Exec; -} -/** MsgVote is the Msg/Vote request type. */ -export interface MsgVoteSDKType { - proposal_id: Long; - voter: string; - option: VoteOption; - metadata: string; - exec: Exec; -} -/** MsgVoteResponse is the Msg/Vote response type. */ -export interface MsgVoteResponse { -} -/** MsgVoteResponse is the Msg/Vote response type. */ -export interface MsgVoteResponseSDKType { -} -/** MsgExec is the Msg/Exec request type. */ -export interface MsgExec { - /** proposal is the unique ID of the proposal. */ - proposalId: Long; - /** signer is the account address used to execute the proposal. */ - signer: string; -} -/** MsgExec is the Msg/Exec request type. */ -export interface MsgExecSDKType { - proposal_id: Long; - signer: string; -} -/** MsgExecResponse is the Msg/Exec request type. */ -export interface MsgExecResponse { -} -/** MsgExecResponse is the Msg/Exec request type. */ -export interface MsgExecResponseSDKType { -} -/** MsgLeaveGroup is the Msg/LeaveGroup request type. */ -export interface MsgLeaveGroup { - /** address is the account address of the group member. */ - address: string; - /** group_id is the unique ID of the group. */ - groupId: Long; -} -/** MsgLeaveGroup is the Msg/LeaveGroup request type. */ -export interface MsgLeaveGroupSDKType { - address: string; - group_id: Long; -} -/** MsgLeaveGroupResponse is the Msg/LeaveGroup response type. */ -export interface MsgLeaveGroupResponse { -} -/** MsgLeaveGroupResponse is the Msg/LeaveGroup response type. */ -export interface MsgLeaveGroupResponseSDKType { -} -export declare const MsgCreateGroup: { - encode(message: MsgCreateGroup, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgCreateGroup; - fromPartial(object: DeepPartial): MsgCreateGroup; -}; -export declare const MsgCreateGroupResponse: { - encode(message: MsgCreateGroupResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgCreateGroupResponse; - fromPartial(object: DeepPartial): MsgCreateGroupResponse; -}; -export declare const MsgUpdateGroupMembers: { - encode(message: MsgUpdateGroupMembers, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateGroupMembers; - fromPartial(object: DeepPartial): MsgUpdateGroupMembers; -}; -export declare const MsgUpdateGroupMembersResponse: { - encode(_: MsgUpdateGroupMembersResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateGroupMembersResponse; - fromPartial(_: DeepPartial): MsgUpdateGroupMembersResponse; -}; -export declare const MsgUpdateGroupAdmin: { - encode(message: MsgUpdateGroupAdmin, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateGroupAdmin; - fromPartial(object: DeepPartial): MsgUpdateGroupAdmin; -}; -export declare const MsgUpdateGroupAdminResponse: { - encode(_: MsgUpdateGroupAdminResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateGroupAdminResponse; - fromPartial(_: DeepPartial): MsgUpdateGroupAdminResponse; -}; -export declare const MsgUpdateGroupMetadata: { - encode(message: MsgUpdateGroupMetadata, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateGroupMetadata; - fromPartial(object: DeepPartial): MsgUpdateGroupMetadata; -}; -export declare const MsgUpdateGroupMetadataResponse: { - encode(_: MsgUpdateGroupMetadataResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateGroupMetadataResponse; - fromPartial(_: DeepPartial): MsgUpdateGroupMetadataResponse; -}; -export declare const MsgCreateGroupPolicy: { - encode(message: MsgCreateGroupPolicy, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgCreateGroupPolicy; - fromPartial(object: DeepPartial): MsgCreateGroupPolicy; -}; -export declare const MsgCreateGroupPolicyResponse: { - encode(message: MsgCreateGroupPolicyResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgCreateGroupPolicyResponse; - fromPartial(object: DeepPartial): MsgCreateGroupPolicyResponse; -}; -export declare const MsgUpdateGroupPolicyAdmin: { - encode(message: MsgUpdateGroupPolicyAdmin, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateGroupPolicyAdmin; - fromPartial(object: DeepPartial): MsgUpdateGroupPolicyAdmin; -}; -export declare const MsgCreateGroupWithPolicy: { - encode(message: MsgCreateGroupWithPolicy, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgCreateGroupWithPolicy; - fromPartial(object: DeepPartial): MsgCreateGroupWithPolicy; -}; -export declare const MsgCreateGroupWithPolicyResponse: { - encode(message: MsgCreateGroupWithPolicyResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgCreateGroupWithPolicyResponse; - fromPartial(object: DeepPartial): MsgCreateGroupWithPolicyResponse; -}; -export declare const MsgUpdateGroupPolicyAdminResponse: { - encode(_: MsgUpdateGroupPolicyAdminResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateGroupPolicyAdminResponse; - fromPartial(_: DeepPartial): MsgUpdateGroupPolicyAdminResponse; -}; -export declare const MsgUpdateGroupPolicyDecisionPolicy: { - encode(message: MsgUpdateGroupPolicyDecisionPolicy, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateGroupPolicyDecisionPolicy; - fromPartial(object: DeepPartial): MsgUpdateGroupPolicyDecisionPolicy; -}; -export declare const MsgUpdateGroupPolicyDecisionPolicyResponse: { - encode(_: MsgUpdateGroupPolicyDecisionPolicyResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateGroupPolicyDecisionPolicyResponse; - fromPartial(_: DeepPartial): MsgUpdateGroupPolicyDecisionPolicyResponse; -}; -export declare const MsgUpdateGroupPolicyMetadata: { - encode(message: MsgUpdateGroupPolicyMetadata, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateGroupPolicyMetadata; - fromPartial(object: DeepPartial): MsgUpdateGroupPolicyMetadata; -}; -export declare const MsgUpdateGroupPolicyMetadataResponse: { - encode(_: MsgUpdateGroupPolicyMetadataResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateGroupPolicyMetadataResponse; - fromPartial(_: DeepPartial): MsgUpdateGroupPolicyMetadataResponse; -}; -export declare const MsgSubmitProposal: { - encode(message: MsgSubmitProposal, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgSubmitProposal; - fromPartial(object: DeepPartial): MsgSubmitProposal; -}; -export declare const MsgSubmitProposalResponse: { - encode(message: MsgSubmitProposalResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgSubmitProposalResponse; - fromPartial(object: DeepPartial): MsgSubmitProposalResponse; -}; -export declare const MsgWithdrawProposal: { - encode(message: MsgWithdrawProposal, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgWithdrawProposal; - fromPartial(object: DeepPartial): MsgWithdrawProposal; -}; -export declare const MsgWithdrawProposalResponse: { - encode(_: MsgWithdrawProposalResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgWithdrawProposalResponse; - fromPartial(_: DeepPartial): MsgWithdrawProposalResponse; -}; -export declare const MsgVote: { - encode(message: MsgVote, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgVote; - fromPartial(object: DeepPartial): MsgVote; -}; -export declare const MsgVoteResponse: { - encode(_: MsgVoteResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgVoteResponse; - fromPartial(_: DeepPartial): MsgVoteResponse; -}; -export declare const MsgExec: { - encode(message: MsgExec, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgExec; - fromPartial(object: DeepPartial): MsgExec; -}; -export declare const MsgExecResponse: { - encode(_: MsgExecResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgExecResponse; - fromPartial(_: DeepPartial): MsgExecResponse; -}; -export declare const MsgLeaveGroup: { - encode(message: MsgLeaveGroup, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgLeaveGroup; - fromPartial(object: DeepPartial): MsgLeaveGroup; -}; -export declare const MsgLeaveGroupResponse: { - encode(_: MsgLeaveGroupResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgLeaveGroupResponse; - fromPartial(_: DeepPartial): MsgLeaveGroupResponse; -}; diff --git a/packages/proto/types/codegen/cosmos/group/v1/tx.registry.d.ts b/packages/proto/types/codegen/cosmos/group/v1/tx.registry.d.ts deleted file mode 100644 index bf76cec6..00000000 --- a/packages/proto/types/codegen/cosmos/group/v1/tx.registry.d.ts +++ /dev/null @@ -1,180 +0,0 @@ -import { GeneratedType, Registry } from "@cosmjs/proto-signing"; -import { MsgCreateGroup, MsgUpdateGroupMembers, MsgUpdateGroupAdmin, MsgUpdateGroupMetadata, MsgCreateGroupPolicy, MsgCreateGroupWithPolicy, MsgUpdateGroupPolicyAdmin, MsgUpdateGroupPolicyDecisionPolicy, MsgUpdateGroupPolicyMetadata, MsgSubmitProposal, MsgWithdrawProposal, MsgVote, MsgExec, MsgLeaveGroup } from "./tx"; -export declare const registry: ReadonlyArray<[string, GeneratedType]>; -export declare const load: (protoRegistry: Registry) => void; -export declare const MessageComposer: { - encoded: { - createGroup(value: MsgCreateGroup): { - typeUrl: string; - value: Uint8Array; - }; - updateGroupMembers(value: MsgUpdateGroupMembers): { - typeUrl: string; - value: Uint8Array; - }; - updateGroupAdmin(value: MsgUpdateGroupAdmin): { - typeUrl: string; - value: Uint8Array; - }; - updateGroupMetadata(value: MsgUpdateGroupMetadata): { - typeUrl: string; - value: Uint8Array; - }; - createGroupPolicy(value: MsgCreateGroupPolicy): { - typeUrl: string; - value: Uint8Array; - }; - createGroupWithPolicy(value: MsgCreateGroupWithPolicy): { - typeUrl: string; - value: Uint8Array; - }; - updateGroupPolicyAdmin(value: MsgUpdateGroupPolicyAdmin): { - typeUrl: string; - value: Uint8Array; - }; - updateGroupPolicyDecisionPolicy(value: MsgUpdateGroupPolicyDecisionPolicy): { - typeUrl: string; - value: Uint8Array; - }; - updateGroupPolicyMetadata(value: MsgUpdateGroupPolicyMetadata): { - typeUrl: string; - value: Uint8Array; - }; - submitProposal(value: MsgSubmitProposal): { - typeUrl: string; - value: Uint8Array; - }; - withdrawProposal(value: MsgWithdrawProposal): { - typeUrl: string; - value: Uint8Array; - }; - vote(value: MsgVote): { - typeUrl: string; - value: Uint8Array; - }; - exec(value: MsgExec): { - typeUrl: string; - value: Uint8Array; - }; - leaveGroup(value: MsgLeaveGroup): { - typeUrl: string; - value: Uint8Array; - }; - }; - withTypeUrl: { - createGroup(value: MsgCreateGroup): { - typeUrl: string; - value: MsgCreateGroup; - }; - updateGroupMembers(value: MsgUpdateGroupMembers): { - typeUrl: string; - value: MsgUpdateGroupMembers; - }; - updateGroupAdmin(value: MsgUpdateGroupAdmin): { - typeUrl: string; - value: MsgUpdateGroupAdmin; - }; - updateGroupMetadata(value: MsgUpdateGroupMetadata): { - typeUrl: string; - value: MsgUpdateGroupMetadata; - }; - createGroupPolicy(value: MsgCreateGroupPolicy): { - typeUrl: string; - value: MsgCreateGroupPolicy; - }; - createGroupWithPolicy(value: MsgCreateGroupWithPolicy): { - typeUrl: string; - value: MsgCreateGroupWithPolicy; - }; - updateGroupPolicyAdmin(value: MsgUpdateGroupPolicyAdmin): { - typeUrl: string; - value: MsgUpdateGroupPolicyAdmin; - }; - updateGroupPolicyDecisionPolicy(value: MsgUpdateGroupPolicyDecisionPolicy): { - typeUrl: string; - value: MsgUpdateGroupPolicyDecisionPolicy; - }; - updateGroupPolicyMetadata(value: MsgUpdateGroupPolicyMetadata): { - typeUrl: string; - value: MsgUpdateGroupPolicyMetadata; - }; - submitProposal(value: MsgSubmitProposal): { - typeUrl: string; - value: MsgSubmitProposal; - }; - withdrawProposal(value: MsgWithdrawProposal): { - typeUrl: string; - value: MsgWithdrawProposal; - }; - vote(value: MsgVote): { - typeUrl: string; - value: MsgVote; - }; - exec(value: MsgExec): { - typeUrl: string; - value: MsgExec; - }; - leaveGroup(value: MsgLeaveGroup): { - typeUrl: string; - value: MsgLeaveGroup; - }; - }; - fromPartial: { - createGroup(value: MsgCreateGroup): { - typeUrl: string; - value: MsgCreateGroup; - }; - updateGroupMembers(value: MsgUpdateGroupMembers): { - typeUrl: string; - value: MsgUpdateGroupMembers; - }; - updateGroupAdmin(value: MsgUpdateGroupAdmin): { - typeUrl: string; - value: MsgUpdateGroupAdmin; - }; - updateGroupMetadata(value: MsgUpdateGroupMetadata): { - typeUrl: string; - value: MsgUpdateGroupMetadata; - }; - createGroupPolicy(value: MsgCreateGroupPolicy): { - typeUrl: string; - value: MsgCreateGroupPolicy; - }; - createGroupWithPolicy(value: MsgCreateGroupWithPolicy): { - typeUrl: string; - value: MsgCreateGroupWithPolicy; - }; - updateGroupPolicyAdmin(value: MsgUpdateGroupPolicyAdmin): { - typeUrl: string; - value: MsgUpdateGroupPolicyAdmin; - }; - updateGroupPolicyDecisionPolicy(value: MsgUpdateGroupPolicyDecisionPolicy): { - typeUrl: string; - value: MsgUpdateGroupPolicyDecisionPolicy; - }; - updateGroupPolicyMetadata(value: MsgUpdateGroupPolicyMetadata): { - typeUrl: string; - value: MsgUpdateGroupPolicyMetadata; - }; - submitProposal(value: MsgSubmitProposal): { - typeUrl: string; - value: MsgSubmitProposal; - }; - withdrawProposal(value: MsgWithdrawProposal): { - typeUrl: string; - value: MsgWithdrawProposal; - }; - vote(value: MsgVote): { - typeUrl: string; - value: MsgVote; - }; - exec(value: MsgExec): { - typeUrl: string; - value: MsgExec; - }; - leaveGroup(value: MsgLeaveGroup): { - typeUrl: string; - value: MsgLeaveGroup; - }; - }; -}; diff --git a/packages/proto/types/codegen/cosmos/group/v1/tx.rpc.msg.d.ts b/packages/proto/types/codegen/cosmos/group/v1/tx.rpc.msg.d.ts deleted file mode 100644 index fb49a330..00000000 --- a/packages/proto/types/codegen/cosmos/group/v1/tx.rpc.msg.d.ts +++ /dev/null @@ -1,37 +0,0 @@ -import { Rpc } from "@osmonauts/helpers"; -import { MsgCreateGroup, MsgCreateGroupResponse, MsgUpdateGroupMembers, MsgUpdateGroupMembersResponse, MsgUpdateGroupAdmin, MsgUpdateGroupAdminResponse, MsgUpdateGroupMetadata, MsgUpdateGroupMetadataResponse, MsgCreateGroupPolicy, MsgCreateGroupPolicyResponse, MsgCreateGroupWithPolicy, MsgCreateGroupWithPolicyResponse, MsgUpdateGroupPolicyAdmin, MsgUpdateGroupPolicyAdminResponse, MsgUpdateGroupPolicyDecisionPolicy, MsgUpdateGroupPolicyDecisionPolicyResponse, MsgUpdateGroupPolicyMetadata, MsgUpdateGroupPolicyMetadataResponse, MsgSubmitProposal, MsgSubmitProposalResponse, MsgWithdrawProposal, MsgWithdrawProposalResponse, MsgVote, MsgVoteResponse, MsgExec, MsgExecResponse, MsgLeaveGroup, MsgLeaveGroupResponse } from "./tx"; -/** Msg defines the RPC service */ -export interface Msg { - createGroup(request: MsgCreateGroup): Promise; - updateGroupMembers(request: MsgUpdateGroupMembers): Promise; - updateGroupAdmin(request: MsgUpdateGroupAdmin): Promise; - updateGroupMetadata(request: MsgUpdateGroupMetadata): Promise; - createGroupPolicy(request: MsgCreateGroupPolicy): Promise; - createGroupWithPolicy(request: MsgCreateGroupWithPolicy): Promise; - updateGroupPolicyAdmin(request: MsgUpdateGroupPolicyAdmin): Promise; - updateGroupPolicyDecisionPolicy(request: MsgUpdateGroupPolicyDecisionPolicy): Promise; - updateGroupPolicyMetadata(request: MsgUpdateGroupPolicyMetadata): Promise; - submitProposal(request: MsgSubmitProposal): Promise; - withdrawProposal(request: MsgWithdrawProposal): Promise; - vote(request: MsgVote): Promise; - exec(request: MsgExec): Promise; - leaveGroup(request: MsgLeaveGroup): Promise; -} -export declare class MsgClientImpl implements Msg { - private readonly rpc; - constructor(rpc: Rpc); - createGroup(request: MsgCreateGroup): Promise; - updateGroupMembers(request: MsgUpdateGroupMembers): Promise; - updateGroupAdmin(request: MsgUpdateGroupAdmin): Promise; - updateGroupMetadata(request: MsgUpdateGroupMetadata): Promise; - createGroupPolicy(request: MsgCreateGroupPolicy): Promise; - createGroupWithPolicy(request: MsgCreateGroupWithPolicy): Promise; - updateGroupPolicyAdmin(request: MsgUpdateGroupPolicyAdmin): Promise; - updateGroupPolicyDecisionPolicy(request: MsgUpdateGroupPolicyDecisionPolicy): Promise; - updateGroupPolicyMetadata(request: MsgUpdateGroupPolicyMetadata): Promise; - submitProposal(request: MsgSubmitProposal): Promise; - withdrawProposal(request: MsgWithdrawProposal): Promise; - vote(request: MsgVote): Promise; - exec(request: MsgExec): Promise; - leaveGroup(request: MsgLeaveGroup): Promise; -} diff --git a/packages/proto/types/codegen/cosmos/group/v1/types.d.ts b/packages/proto/types/codegen/cosmos/group/v1/types.d.ts deleted file mode 100644 index 42f6163f..00000000 --- a/packages/proto/types/codegen/cosmos/group/v1/types.d.ts +++ /dev/null @@ -1,395 +0,0 @@ -import { Duration, DurationSDKType } from "../../../google/protobuf/duration"; -import { Any, AnySDKType } from "../../../google/protobuf/any"; -import { Long, DeepPartial } from "../../../helpers"; -import * as _m0 from "protobufjs/minimal"; -/** VoteOption enumerates the valid vote options for a given proposal. */ -export declare enum VoteOption { - /** VOTE_OPTION_UNSPECIFIED - VOTE_OPTION_UNSPECIFIED defines a no-op vote option. */ - VOTE_OPTION_UNSPECIFIED = 0, - /** VOTE_OPTION_YES - VOTE_OPTION_YES defines a yes vote option. */ - VOTE_OPTION_YES = 1, - /** VOTE_OPTION_ABSTAIN - VOTE_OPTION_ABSTAIN defines an abstain vote option. */ - VOTE_OPTION_ABSTAIN = 2, - /** VOTE_OPTION_NO - VOTE_OPTION_NO defines a no vote option. */ - VOTE_OPTION_NO = 3, - /** VOTE_OPTION_NO_WITH_VETO - VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option. */ - VOTE_OPTION_NO_WITH_VETO = 4, - UNRECOGNIZED = -1 -} -export declare const VoteOptionSDKType: typeof VoteOption; -export declare function voteOptionFromJSON(object: any): VoteOption; -export declare function voteOptionToJSON(object: VoteOption): string; -/** ProposalStatus defines proposal statuses. */ -export declare enum ProposalStatus { - /** PROPOSAL_STATUS_UNSPECIFIED - An empty value is invalid and not allowed. */ - PROPOSAL_STATUS_UNSPECIFIED = 0, - /** PROPOSAL_STATUS_SUBMITTED - Initial status of a proposal when persisted. */ - PROPOSAL_STATUS_SUBMITTED = 1, - /** PROPOSAL_STATUS_CLOSED - Final status of a proposal when the final tally was executed. */ - PROPOSAL_STATUS_CLOSED = 2, - /** PROPOSAL_STATUS_ABORTED - Final status of a proposal when the group was modified before the final tally. */ - PROPOSAL_STATUS_ABORTED = 3, - /** - * PROPOSAL_STATUS_WITHDRAWN - A proposal can be deleted before the voting start time by the owner. When this happens the final status - * is Withdrawn. - */ - PROPOSAL_STATUS_WITHDRAWN = 4, - UNRECOGNIZED = -1 -} -export declare const ProposalStatusSDKType: typeof ProposalStatus; -export declare function proposalStatusFromJSON(object: any): ProposalStatus; -export declare function proposalStatusToJSON(object: ProposalStatus): string; -/** ProposalResult defines types of proposal results. */ -export declare enum ProposalResult { - /** PROPOSAL_RESULT_UNSPECIFIED - An empty value is invalid and not allowed */ - PROPOSAL_RESULT_UNSPECIFIED = 0, - /** PROPOSAL_RESULT_UNFINALIZED - Until a final tally has happened the status is unfinalized */ - PROPOSAL_RESULT_UNFINALIZED = 1, - /** PROPOSAL_RESULT_ACCEPTED - Final result of the tally */ - PROPOSAL_RESULT_ACCEPTED = 2, - /** PROPOSAL_RESULT_REJECTED - Final result of the tally */ - PROPOSAL_RESULT_REJECTED = 3, - UNRECOGNIZED = -1 -} -export declare const ProposalResultSDKType: typeof ProposalResult; -export declare function proposalResultFromJSON(object: any): ProposalResult; -export declare function proposalResultToJSON(object: ProposalResult): string; -/** ProposalExecutorResult defines types of proposal executor results. */ -export declare enum ProposalExecutorResult { - /** PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED - An empty value is not allowed. */ - PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED = 0, - /** PROPOSAL_EXECUTOR_RESULT_NOT_RUN - We have not yet run the executor. */ - PROPOSAL_EXECUTOR_RESULT_NOT_RUN = 1, - /** PROPOSAL_EXECUTOR_RESULT_SUCCESS - The executor was successful and proposed action updated state. */ - PROPOSAL_EXECUTOR_RESULT_SUCCESS = 2, - /** PROPOSAL_EXECUTOR_RESULT_FAILURE - The executor returned an error and proposed action didn't update state. */ - PROPOSAL_EXECUTOR_RESULT_FAILURE = 3, - UNRECOGNIZED = -1 -} -export declare const ProposalExecutorResultSDKType: typeof ProposalExecutorResult; -export declare function proposalExecutorResultFromJSON(object: any): ProposalExecutorResult; -export declare function proposalExecutorResultToJSON(object: ProposalExecutorResult): string; -/** - * Member represents a group member with an account address, - * non-zero weight and metadata. - */ -export interface Member { - /** address is the member's account address. */ - address: string; - /** weight is the member's voting weight that should be greater than 0. */ - weight: string; - /** metadata is any arbitrary metadata to attached to the member. */ - metadata: string; - /** added_at is a timestamp specifying when a member was added. */ - addedAt: Date; -} -/** - * Member represents a group member with an account address, - * non-zero weight and metadata. - */ -export interface MemberSDKType { - address: string; - weight: string; - metadata: string; - added_at: Date; -} -/** Members defines a repeated slice of Member objects. */ -export interface Members { - /** members is the list of members. */ - members: Member[]; -} -/** Members defines a repeated slice of Member objects. */ -export interface MembersSDKType { - members: MemberSDKType[]; -} -/** ThresholdDecisionPolicy implements the DecisionPolicy interface */ -export interface ThresholdDecisionPolicy { - /** threshold is the minimum weighted sum of yes votes that must be met or exceeded for a proposal to succeed. */ - threshold: string; - /** windows defines the different windows for voting and execution. */ - windows: DecisionPolicyWindows; -} -/** ThresholdDecisionPolicy implements the DecisionPolicy interface */ -export interface ThresholdDecisionPolicySDKType { - threshold: string; - windows: DecisionPolicyWindowsSDKType; -} -/** PercentageDecisionPolicy implements the DecisionPolicy interface */ -export interface PercentageDecisionPolicy { - /** percentage is the minimum percentage the weighted sum of yes votes must meet for a proposal to succeed. */ - percentage: string; - /** windows defines the different windows for voting and execution. */ - windows: DecisionPolicyWindows; -} -/** PercentageDecisionPolicy implements the DecisionPolicy interface */ -export interface PercentageDecisionPolicySDKType { - percentage: string; - windows: DecisionPolicyWindowsSDKType; -} -/** DecisionPolicyWindows defines the different windows for voting and execution. */ -export interface DecisionPolicyWindows { - /** - * voting_period is the duration from submission of a proposal to the end of voting period - * Within this times votes can be submitted with MsgVote. - */ - votingPeriod: Duration; - /** - * min_execution_period is the minimum duration after the proposal submission - * where members can start sending MsgExec. This means that the window for - * sending a MsgExec transaction is: - * `[ submission + min_execution_period ; submission + voting_period + max_execution_period]` - * where max_execution_period is a app-specific config, defined in the keeper. - * If not set, min_execution_period will default to 0. - * - * Please make sure to set a `min_execution_period` that is smaller than - * `voting_period + max_execution_period`, or else the above execution window - * is empty, meaning that all proposals created with this decision policy - * won't be able to be executed. - */ - minExecutionPeriod: Duration; -} -/** DecisionPolicyWindows defines the different windows for voting and execution. */ -export interface DecisionPolicyWindowsSDKType { - voting_period: DurationSDKType; - min_execution_period: DurationSDKType; -} -/** GroupInfo represents the high-level on-chain information for a group. */ -export interface GroupInfo { - /** id is the unique ID of the group. */ - id: Long; - /** admin is the account address of the group's admin. */ - admin: string; - /** metadata is any arbitrary metadata to attached to the group. */ - metadata: string; - /** - * version is used to track changes to a group's membership structure that - * would break existing proposals. Whenever any members weight is changed, - * or any member is added or removed this version is incremented and will - * cause proposals based on older versions of this group to fail - */ - version: Long; - /** total_weight is the sum of the group members' weights. */ - totalWeight: string; - /** created_at is a timestamp specifying when a group was created. */ - createdAt: Date; -} -/** GroupInfo represents the high-level on-chain information for a group. */ -export interface GroupInfoSDKType { - id: Long; - admin: string; - metadata: string; - version: Long; - total_weight: string; - created_at: Date; -} -/** GroupMember represents the relationship between a group and a member. */ -export interface GroupMember { - /** group_id is the unique ID of the group. */ - groupId: Long; - /** member is the member data. */ - member: Member; -} -/** GroupMember represents the relationship between a group and a member. */ -export interface GroupMemberSDKType { - group_id: Long; - member: MemberSDKType; -} -/** GroupPolicyInfo represents the high-level on-chain information for a group policy. */ -export interface GroupPolicyInfo { - /** address is the account address of group policy. */ - address: string; - /** group_id is the unique ID of the group. */ - groupId: Long; - /** admin is the account address of the group admin. */ - admin: string; - /** metadata is any arbitrary metadata to attached to the group policy. */ - metadata: string; - /** - * version is used to track changes to a group's GroupPolicyInfo structure that - * would create a different result on a running proposal. - */ - version: Long; - /** decision_policy specifies the group policy's decision policy. */ - decisionPolicy: Any; - /** created_at is a timestamp specifying when a group policy was created. */ - createdAt: Date; -} -/** GroupPolicyInfo represents the high-level on-chain information for a group policy. */ -export interface GroupPolicyInfoSDKType { - address: string; - group_id: Long; - admin: string; - metadata: string; - version: Long; - decision_policy: AnySDKType; - created_at: Date; -} -/** - * Proposal defines a group proposal. Any member of a group can submit a proposal - * for a group policy to decide upon. - * A proposal consists of a set of `sdk.Msg`s that will be executed if the proposal - * passes as well as some optional metadata associated with the proposal. - */ -export interface Proposal { - /** id is the unique id of the proposal. */ - id: Long; - /** address is the account address of group policy. */ - address: string; - /** metadata is any arbitrary metadata to attached to the proposal. */ - metadata: string; - /** proposers are the account addresses of the proposers. */ - proposers: string[]; - /** submit_time is a timestamp specifying when a proposal was submitted. */ - submitTime: Date; - /** - * group_version tracks the version of the group that this proposal corresponds to. - * When group membership is changed, existing proposals from previous group versions will become invalid. - */ - groupVersion: Long; - /** - * group_policy_version tracks the version of the group policy that this proposal corresponds to. - * When a decision policy is changed, existing proposals from previous policy versions will become invalid. - */ - groupPolicyVersion: Long; - /** status represents the high level position in the life cycle of the proposal. Initial value is Submitted. */ - status: ProposalStatus; - /** - * result is the final result based on the votes and election rule. Initial value is unfinalized. - * The result is persisted so that clients can always rely on this state and not have to replicate the logic. - */ - result: ProposalResult; - /** - * final_tally_result contains the sums of all weighted votes for this - * proposal for each vote option, after tallying. When querying a proposal - * via gRPC, this field is not populated until the proposal's voting period - * has ended. - */ - finalTallyResult: TallyResult; - /** - * voting_period_end is the timestamp before which voting must be done. - * Unless a successfull MsgExec is called before (to execute a proposal whose - * tally is successful before the voting period ends), tallying will be done - * at this point, and the `final_tally_result`, as well - * as `status` and `result` fields will be accordingly updated. - */ - votingPeriodEnd: Date; - /** executor_result is the final result based on the votes and election rule. Initial value is NotRun. */ - executorResult: ProposalExecutorResult; - /** messages is a list of Msgs that will be executed if the proposal passes. */ - messages: Any[]; -} -/** - * Proposal defines a group proposal. Any member of a group can submit a proposal - * for a group policy to decide upon. - * A proposal consists of a set of `sdk.Msg`s that will be executed if the proposal - * passes as well as some optional metadata associated with the proposal. - */ -export interface ProposalSDKType { - id: Long; - address: string; - metadata: string; - proposers: string[]; - submit_time: Date; - group_version: Long; - group_policy_version: Long; - status: ProposalStatus; - result: ProposalResult; - final_tally_result: TallyResultSDKType; - voting_period_end: Date; - executor_result: ProposalExecutorResult; - messages: AnySDKType[]; -} -/** TallyResult represents the sum of weighted votes for each vote option. */ -export interface TallyResult { - /** yes_count is the weighted sum of yes votes. */ - yesCount: string; - /** abstain_count is the weighted sum of abstainers. */ - abstainCount: string; - /** no is the weighted sum of no votes. */ - noCount: string; - /** no_with_veto_count is the weighted sum of veto. */ - noWithVetoCount: string; -} -/** TallyResult represents the sum of weighted votes for each vote option. */ -export interface TallyResultSDKType { - yes_count: string; - abstain_count: string; - no_count: string; - no_with_veto_count: string; -} -/** Vote represents a vote for a proposal. */ -export interface Vote { - /** proposal is the unique ID of the proposal. */ - proposalId: Long; - /** voter is the account address of the voter. */ - voter: string; - /** option is the voter's choice on the proposal. */ - option: VoteOption; - /** metadata is any arbitrary metadata to attached to the vote. */ - metadata: string; - /** submit_time is the timestamp when the vote was submitted. */ - submitTime: Date; -} -/** Vote represents a vote for a proposal. */ -export interface VoteSDKType { - proposal_id: Long; - voter: string; - option: VoteOption; - metadata: string; - submit_time: Date; -} -export declare const Member: { - encode(message: Member, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): Member; - fromPartial(object: DeepPartial): Member; -}; -export declare const Members: { - encode(message: Members, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): Members; - fromPartial(object: DeepPartial): Members; -}; -export declare const ThresholdDecisionPolicy: { - encode(message: ThresholdDecisionPolicy, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): ThresholdDecisionPolicy; - fromPartial(object: DeepPartial): ThresholdDecisionPolicy; -}; -export declare const PercentageDecisionPolicy: { - encode(message: PercentageDecisionPolicy, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): PercentageDecisionPolicy; - fromPartial(object: DeepPartial): PercentageDecisionPolicy; -}; -export declare const DecisionPolicyWindows: { - encode(message: DecisionPolicyWindows, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): DecisionPolicyWindows; - fromPartial(object: DeepPartial): DecisionPolicyWindows; -}; -export declare const GroupInfo: { - encode(message: GroupInfo, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): GroupInfo; - fromPartial(object: DeepPartial): GroupInfo; -}; -export declare const GroupMember: { - encode(message: GroupMember, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): GroupMember; - fromPartial(object: DeepPartial): GroupMember; -}; -export declare const GroupPolicyInfo: { - encode(message: GroupPolicyInfo, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): GroupPolicyInfo; - fromPartial(object: DeepPartial): GroupPolicyInfo; -}; -export declare const Proposal: { - encode(message: Proposal, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): Proposal; - fromPartial(object: DeepPartial): Proposal; -}; -export declare const TallyResult: { - encode(message: TallyResult, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): TallyResult; - fromPartial(object: DeepPartial): TallyResult; -}; -export declare const Vote: { - encode(message: Vote, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): Vote; - fromPartial(object: DeepPartial): Vote; -}; diff --git a/packages/proto/types/codegen/cosmos/lcd.d.ts b/packages/proto/types/codegen/cosmos/lcd.d.ts index 9be4d8ca..e585d7f5 100644 --- a/packages/proto/types/codegen/cosmos/lcd.d.ts +++ b/packages/proto/types/codegen/cosmos/lcd.d.ts @@ -11,39 +11,12 @@ export declare const createLCDClient: ({ restEndpoint }: { bank: { v1beta1: import("./bank/v1beta1/query.lcd").LCDQueryClient; }; - base: { - tendermint: { - v1beta1: import("./base/tendermint/v1beta1/query.lcd").LCDQueryClient; - }; - }; distribution: { v1beta1: import("./distribution/v1beta1/query.lcd").LCDQueryClient; }; - evidence: { - v1beta1: import("./evidence/v1beta1/query.lcd").LCDQueryClient; - }; - feegrant: { - v1beta1: import("./feegrant/v1beta1/query.lcd").LCDQueryClient; - }; gov: { - v1: import("./gov/v1/query.lcd").LCDQueryClient; v1beta1: import("./gov/v1beta1/query.lcd").LCDQueryClient; }; - group: { - v1: import("./group/v1/query.lcd").LCDQueryClient; - }; - mint: { - v1beta1: import("./mint/v1beta1/query.lcd").LCDQueryClient; - }; - nft: { - v1beta1: import("./nft/v1beta1/query.lcd").LCDQueryClient; - }; - params: { - v1beta1: import("./params/v1beta1/query.lcd").LCDQueryClient; - }; - slashing: { - v1beta1: import("./slashing/v1beta1/query.lcd").LCDQueryClient; - }; staking: { v1beta1: import("./staking/v1beta1/query.lcd").LCDQueryClient; }; diff --git a/packages/proto/types/codegen/cosmos/mint/v1beta1/genesis.d.ts b/packages/proto/types/codegen/cosmos/mint/v1beta1/genesis.d.ts deleted file mode 100644 index fe4f9f79..00000000 --- a/packages/proto/types/codegen/cosmos/mint/v1beta1/genesis.d.ts +++ /dev/null @@ -1,20 +0,0 @@ -import { Minter, MinterSDKType, Params, ParamsSDKType } from "./mint"; -import * as _m0 from "protobufjs/minimal"; -import { DeepPartial } from "../../../helpers"; -/** GenesisState defines the mint module's genesis state. */ -export interface GenesisState { - /** minter is a space for holding current inflation information. */ - minter: Minter; - /** params defines all the paramaters of the module. */ - params: Params; -} -/** GenesisState defines the mint module's genesis state. */ -export interface GenesisStateSDKType { - minter: MinterSDKType; - params: ParamsSDKType; -} -export declare const GenesisState: { - encode(message: GenesisState, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): GenesisState; - fromPartial(object: DeepPartial): GenesisState; -}; diff --git a/packages/proto/types/codegen/cosmos/mint/v1beta1/mint.d.ts b/packages/proto/types/codegen/cosmos/mint/v1beta1/mint.d.ts deleted file mode 100644 index e111a0f7..00000000 --- a/packages/proto/types/codegen/cosmos/mint/v1beta1/mint.d.ts +++ /dev/null @@ -1,48 +0,0 @@ -import { Long, DeepPartial } from "../../../helpers"; -import * as _m0 from "protobufjs/minimal"; -/** Minter represents the minting state. */ -export interface Minter { - /** current annual inflation rate */ - inflation: string; - /** current annual expected provisions */ - annualProvisions: string; -} -/** Minter represents the minting state. */ -export interface MinterSDKType { - inflation: string; - annual_provisions: string; -} -/** Params holds parameters for the mint module. */ -export interface Params { - /** type of coin to mint */ - mintDenom: string; - /** maximum annual change in inflation rate */ - inflationRateChange: string; - /** maximum inflation rate */ - inflationMax: string; - /** minimum inflation rate */ - inflationMin: string; - /** goal of percent bonded atoms */ - goalBonded: string; - /** expected blocks per year */ - blocksPerYear: Long; -} -/** Params holds parameters for the mint module. */ -export interface ParamsSDKType { - mint_denom: string; - inflation_rate_change: string; - inflation_max: string; - inflation_min: string; - goal_bonded: string; - blocks_per_year: Long; -} -export declare const Minter: { - encode(message: Minter, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): Minter; - fromPartial(object: DeepPartial): Minter; -}; -export declare const Params: { - encode(message: Params, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): Params; - fromPartial(object: DeepPartial): Params; -}; diff --git a/packages/proto/types/codegen/cosmos/mint/v1beta1/query.d.ts b/packages/proto/types/codegen/cosmos/mint/v1beta1/query.d.ts deleted file mode 100644 index dfbc2647..00000000 --- a/packages/proto/types/codegen/cosmos/mint/v1beta1/query.d.ts +++ /dev/null @@ -1,96 +0,0 @@ -import { Params, ParamsSDKType } from "./mint"; -import * as _m0 from "protobufjs/minimal"; -import { DeepPartial } from "../../../helpers"; -/** QueryParamsRequest is the request type for the Query/Params RPC method. */ -export interface QueryParamsRequest { -} -/** QueryParamsRequest is the request type for the Query/Params RPC method. */ -export interface QueryParamsRequestSDKType { -} -/** QueryParamsResponse is the response type for the Query/Params RPC method. */ -export interface QueryParamsResponse { - /** params defines the parameters of the module. */ - params: Params; -} -/** QueryParamsResponse is the response type for the Query/Params RPC method. */ -export interface QueryParamsResponseSDKType { - params: ParamsSDKType; -} -/** QueryInflationRequest is the request type for the Query/Inflation RPC method. */ -export interface QueryInflationRequest { -} -/** QueryInflationRequest is the request type for the Query/Inflation RPC method. */ -export interface QueryInflationRequestSDKType { -} -/** - * QueryInflationResponse is the response type for the Query/Inflation RPC - * method. - */ -export interface QueryInflationResponse { - /** inflation is the current minting inflation value. */ - inflation: Uint8Array; -} -/** - * QueryInflationResponse is the response type for the Query/Inflation RPC - * method. - */ -export interface QueryInflationResponseSDKType { - inflation: Uint8Array; -} -/** - * QueryAnnualProvisionsRequest is the request type for the - * Query/AnnualProvisions RPC method. - */ -export interface QueryAnnualProvisionsRequest { -} -/** - * QueryAnnualProvisionsRequest is the request type for the - * Query/AnnualProvisions RPC method. - */ -export interface QueryAnnualProvisionsRequestSDKType { -} -/** - * QueryAnnualProvisionsResponse is the response type for the - * Query/AnnualProvisions RPC method. - */ -export interface QueryAnnualProvisionsResponse { - /** annual_provisions is the current minting annual provisions value. */ - annualProvisions: Uint8Array; -} -/** - * QueryAnnualProvisionsResponse is the response type for the - * Query/AnnualProvisions RPC method. - */ -export interface QueryAnnualProvisionsResponseSDKType { - annual_provisions: Uint8Array; -} -export declare const QueryParamsRequest: { - encode(_: QueryParamsRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryParamsRequest; - fromPartial(_: DeepPartial): QueryParamsRequest; -}; -export declare const QueryParamsResponse: { - encode(message: QueryParamsResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryParamsResponse; - fromPartial(object: DeepPartial): QueryParamsResponse; -}; -export declare const QueryInflationRequest: { - encode(_: QueryInflationRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryInflationRequest; - fromPartial(_: DeepPartial): QueryInflationRequest; -}; -export declare const QueryInflationResponse: { - encode(message: QueryInflationResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryInflationResponse; - fromPartial(object: DeepPartial): QueryInflationResponse; -}; -export declare const QueryAnnualProvisionsRequest: { - encode(_: QueryAnnualProvisionsRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryAnnualProvisionsRequest; - fromPartial(_: DeepPartial): QueryAnnualProvisionsRequest; -}; -export declare const QueryAnnualProvisionsResponse: { - encode(message: QueryAnnualProvisionsResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryAnnualProvisionsResponse; - fromPartial(object: DeepPartial): QueryAnnualProvisionsResponse; -}; diff --git a/packages/proto/types/codegen/cosmos/mint/v1beta1/query.lcd.d.ts b/packages/proto/types/codegen/cosmos/mint/v1beta1/query.lcd.d.ts deleted file mode 100644 index bab04928..00000000 --- a/packages/proto/types/codegen/cosmos/mint/v1beta1/query.lcd.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { LCDClient } from "@osmonauts/lcd"; -import { QueryParamsRequest, QueryParamsResponseSDKType, QueryInflationRequest, QueryInflationResponseSDKType, QueryAnnualProvisionsRequest, QueryAnnualProvisionsResponseSDKType } from "./query"; -export declare class LCDQueryClient { - req: LCDClient; - constructor({ requestClient }: { - requestClient: LCDClient; - }); - params(_params?: QueryParamsRequest): Promise; - inflation(_params?: QueryInflationRequest): Promise; - annualProvisions(_params?: QueryAnnualProvisionsRequest): Promise; -} diff --git a/packages/proto/types/codegen/cosmos/mint/v1beta1/query.rpc.query.d.ts b/packages/proto/types/codegen/cosmos/mint/v1beta1/query.rpc.query.d.ts deleted file mode 100644 index a7ece24c..00000000 --- a/packages/proto/types/codegen/cosmos/mint/v1beta1/query.rpc.query.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -import { Rpc } from "@osmonauts/helpers"; -import { QueryClient } from "@cosmjs/stargate"; -import { QueryParamsRequest, QueryParamsResponse, QueryInflationRequest, QueryInflationResponse, QueryAnnualProvisionsRequest, QueryAnnualProvisionsResponse } from "./query"; -/** Query defines the RPC service */ -export interface Query { - params(request?: QueryParamsRequest): Promise; - inflation(request?: QueryInflationRequest): Promise; - annualProvisions(request?: QueryAnnualProvisionsRequest): Promise; -} -export declare class QueryClientImpl implements Query { - private readonly rpc; - constructor(rpc: Rpc); - params(request?: QueryParamsRequest): Promise; - inflation(request?: QueryInflationRequest): Promise; - annualProvisions(request?: QueryAnnualProvisionsRequest): Promise; -} -export declare const createRpcQueryExtension: (base: QueryClient) => { - params(request?: QueryParamsRequest): Promise; - inflation(request?: QueryInflationRequest): Promise; - annualProvisions(request?: QueryAnnualProvisionsRequest): Promise; -}; diff --git a/packages/proto/types/codegen/cosmos/msg/v1/msg.d.ts b/packages/proto/types/codegen/cosmos/msg/v1/msg.d.ts deleted file mode 100644 index cb0ff5c3..00000000 --- a/packages/proto/types/codegen/cosmos/msg/v1/msg.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/proto/types/codegen/cosmos/nft/v1beta1/event.d.ts b/packages/proto/types/codegen/cosmos/nft/v1beta1/event.d.ts deleted file mode 100644 index 311a6b0b..00000000 --- a/packages/proto/types/codegen/cosmos/nft/v1beta1/event.d.ts +++ /dev/null @@ -1,55 +0,0 @@ -import * as _m0 from "protobufjs/minimal"; -import { DeepPartial } from "../../../helpers"; -/** EventSend is emitted on Msg/Send */ -export interface EventSend { - classId: string; - id: string; - sender: string; - receiver: string; -} -/** EventSend is emitted on Msg/Send */ -export interface EventSendSDKType { - class_id: string; - id: string; - sender: string; - receiver: string; -} -/** EventMint is emitted on Mint */ -export interface EventMint { - classId: string; - id: string; - owner: string; -} -/** EventMint is emitted on Mint */ -export interface EventMintSDKType { - class_id: string; - id: string; - owner: string; -} -/** EventBurn is emitted on Burn */ -export interface EventBurn { - classId: string; - id: string; - owner: string; -} -/** EventBurn is emitted on Burn */ -export interface EventBurnSDKType { - class_id: string; - id: string; - owner: string; -} -export declare const EventSend: { - encode(message: EventSend, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): EventSend; - fromPartial(object: DeepPartial): EventSend; -}; -export declare const EventMint: { - encode(message: EventMint, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): EventMint; - fromPartial(object: DeepPartial): EventMint; -}; -export declare const EventBurn: { - encode(message: EventBurn, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): EventBurn; - fromPartial(object: DeepPartial): EventBurn; -}; diff --git a/packages/proto/types/codegen/cosmos/nft/v1beta1/genesis.d.ts b/packages/proto/types/codegen/cosmos/nft/v1beta1/genesis.d.ts deleted file mode 100644 index cf650ded..00000000 --- a/packages/proto/types/codegen/cosmos/nft/v1beta1/genesis.d.ts +++ /dev/null @@ -1,36 +0,0 @@ -import { Class, ClassSDKType, NFT, NFTSDKType } from "./nft"; -import * as _m0 from "protobufjs/minimal"; -import { DeepPartial } from "../../../helpers"; -/** GenesisState defines the nft module's genesis state. */ -export interface GenesisState { - /** class defines the class of the nft type. */ - classes: Class[]; - entries: Entry[]; -} -/** GenesisState defines the nft module's genesis state. */ -export interface GenesisStateSDKType { - classes: ClassSDKType[]; - entries: EntrySDKType[]; -} -/** Entry Defines all nft owned by a person */ -export interface Entry { - /** owner is the owner address of the following nft */ - owner: string; - /** nfts is a group of nfts of the same owner */ - nfts: NFT[]; -} -/** Entry Defines all nft owned by a person */ -export interface EntrySDKType { - owner: string; - nfts: NFTSDKType[]; -} -export declare const GenesisState: { - encode(message: GenesisState, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): GenesisState; - fromPartial(object: DeepPartial): GenesisState; -}; -export declare const Entry: { - encode(message: Entry, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): Entry; - fromPartial(object: DeepPartial): Entry; -}; diff --git a/packages/proto/types/codegen/cosmos/nft/v1beta1/nft.d.ts b/packages/proto/types/codegen/cosmos/nft/v1beta1/nft.d.ts deleted file mode 100644 index 534f0cab..00000000 --- a/packages/proto/types/codegen/cosmos/nft/v1beta1/nft.d.ts +++ /dev/null @@ -1,61 +0,0 @@ -import { Any, AnySDKType } from "../../../google/protobuf/any"; -import * as _m0 from "protobufjs/minimal"; -import { DeepPartial } from "../../../helpers"; -/** Class defines the class of the nft type. */ -export interface Class { - /** id defines the unique identifier of the NFT classification, similar to the contract address of ERC721 */ - id: string; - /** name defines the human-readable name of the NFT classification. Optional */ - name: string; - /** symbol is an abbreviated name for nft classification. Optional */ - symbol: string; - /** description is a brief description of nft classification. Optional */ - description: string; - /** uri for the class metadata stored off chain. It can define schema for Class and NFT `Data` attributes. Optional */ - uri: string; - /** uri_hash is a hash of the document pointed by uri. Optional */ - uriHash: string; - /** data is the app specific metadata of the NFT class. Optional */ - data: Any; -} -/** Class defines the class of the nft type. */ -export interface ClassSDKType { - id: string; - name: string; - symbol: string; - description: string; - uri: string; - uri_hash: string; - data: AnySDKType; -} -/** NFT defines the NFT. */ -export interface NFT { - /** class_id associated with the NFT, similar to the contract address of ERC721 */ - classId: string; - /** id is a unique identifier of the NFT */ - id: string; - /** uri for the NFT metadata stored off chain */ - uri: string; - /** uri_hash is a hash of the document pointed by uri */ - uriHash: string; - /** data is an app specific data of the NFT. Optional */ - data: Any; -} -/** NFT defines the NFT. */ -export interface NFTSDKType { - class_id: string; - id: string; - uri: string; - uri_hash: string; - data: AnySDKType; -} -export declare const Class: { - encode(message: Class, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): Class; - fromPartial(object: DeepPartial): Class; -}; -export declare const NFT: { - encode(message: NFT, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): NFT; - fromPartial(object: DeepPartial): NFT; -}; diff --git a/packages/proto/types/codegen/cosmos/nft/v1beta1/query.d.ts b/packages/proto/types/codegen/cosmos/nft/v1beta1/query.d.ts deleted file mode 100644 index 1ad263a6..00000000 --- a/packages/proto/types/codegen/cosmos/nft/v1beta1/query.d.ts +++ /dev/null @@ -1,201 +0,0 @@ -import { PageRequest, PageRequestSDKType, PageResponse, PageResponseSDKType } from "../../base/query/v1beta1/pagination"; -import { NFT, NFTSDKType, Class, ClassSDKType } from "./nft"; -import { Long, DeepPartial } from "../../../helpers"; -import * as _m0 from "protobufjs/minimal"; -/** QueryBalanceRequest is the request type for the Query/Balance RPC method */ -export interface QueryBalanceRequest { - classId: string; - owner: string; -} -/** QueryBalanceRequest is the request type for the Query/Balance RPC method */ -export interface QueryBalanceRequestSDKType { - class_id: string; - owner: string; -} -/** QueryBalanceResponse is the response type for the Query/Balance RPC method */ -export interface QueryBalanceResponse { - amount: Long; -} -/** QueryBalanceResponse is the response type for the Query/Balance RPC method */ -export interface QueryBalanceResponseSDKType { - amount: Long; -} -/** QueryOwnerRequest is the request type for the Query/Owner RPC method */ -export interface QueryOwnerRequest { - classId: string; - id: string; -} -/** QueryOwnerRequest is the request type for the Query/Owner RPC method */ -export interface QueryOwnerRequestSDKType { - class_id: string; - id: string; -} -/** QueryOwnerResponse is the response type for the Query/Owner RPC method */ -export interface QueryOwnerResponse { - owner: string; -} -/** QueryOwnerResponse is the response type for the Query/Owner RPC method */ -export interface QueryOwnerResponseSDKType { - owner: string; -} -/** QuerySupplyRequest is the request type for the Query/Supply RPC method */ -export interface QuerySupplyRequest { - classId: string; -} -/** QuerySupplyRequest is the request type for the Query/Supply RPC method */ -export interface QuerySupplyRequestSDKType { - class_id: string; -} -/** QuerySupplyResponse is the response type for the Query/Supply RPC method */ -export interface QuerySupplyResponse { - amount: Long; -} -/** QuerySupplyResponse is the response type for the Query/Supply RPC method */ -export interface QuerySupplyResponseSDKType { - amount: Long; -} -/** QueryNFTstRequest is the request type for the Query/NFTs RPC method */ -export interface QueryNFTsRequest { - classId: string; - owner: string; - pagination: PageRequest; -} -/** QueryNFTstRequest is the request type for the Query/NFTs RPC method */ -export interface QueryNFTsRequestSDKType { - class_id: string; - owner: string; - pagination: PageRequestSDKType; -} -/** QueryNFTsResponse is the response type for the Query/NFTs RPC methods */ -export interface QueryNFTsResponse { - nfts: NFT[]; - pagination: PageResponse; -} -/** QueryNFTsResponse is the response type for the Query/NFTs RPC methods */ -export interface QueryNFTsResponseSDKType { - nfts: NFTSDKType[]; - pagination: PageResponseSDKType; -} -/** QueryNFTRequest is the request type for the Query/NFT RPC method */ -export interface QueryNFTRequest { - classId: string; - id: string; -} -/** QueryNFTRequest is the request type for the Query/NFT RPC method */ -export interface QueryNFTRequestSDKType { - class_id: string; - id: string; -} -/** QueryNFTResponse is the response type for the Query/NFT RPC method */ -export interface QueryNFTResponse { - nft: NFT; -} -/** QueryNFTResponse is the response type for the Query/NFT RPC method */ -export interface QueryNFTResponseSDKType { - nft: NFTSDKType; -} -/** QueryClassRequest is the request type for the Query/Class RPC method */ -export interface QueryClassRequest { - classId: string; -} -/** QueryClassRequest is the request type for the Query/Class RPC method */ -export interface QueryClassRequestSDKType { - class_id: string; -} -/** QueryClassResponse is the response type for the Query/Class RPC method */ -export interface QueryClassResponse { - class: Class; -} -/** QueryClassResponse is the response type for the Query/Class RPC method */ -export interface QueryClassResponseSDKType { - class: ClassSDKType; -} -/** QueryClassesRequest is the request type for the Query/Classes RPC method */ -export interface QueryClassesRequest { - /** pagination defines an optional pagination for the request. */ - pagination: PageRequest; -} -/** QueryClassesRequest is the request type for the Query/Classes RPC method */ -export interface QueryClassesRequestSDKType { - pagination: PageRequestSDKType; -} -/** QueryClassesResponse is the response type for the Query/Classes RPC method */ -export interface QueryClassesResponse { - classes: Class[]; - pagination: PageResponse; -} -/** QueryClassesResponse is the response type for the Query/Classes RPC method */ -export interface QueryClassesResponseSDKType { - classes: ClassSDKType[]; - pagination: PageResponseSDKType; -} -export declare const QueryBalanceRequest: { - encode(message: QueryBalanceRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryBalanceRequest; - fromPartial(object: DeepPartial): QueryBalanceRequest; -}; -export declare const QueryBalanceResponse: { - encode(message: QueryBalanceResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryBalanceResponse; - fromPartial(object: DeepPartial): QueryBalanceResponse; -}; -export declare const QueryOwnerRequest: { - encode(message: QueryOwnerRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryOwnerRequest; - fromPartial(object: DeepPartial): QueryOwnerRequest; -}; -export declare const QueryOwnerResponse: { - encode(message: QueryOwnerResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryOwnerResponse; - fromPartial(object: DeepPartial): QueryOwnerResponse; -}; -export declare const QuerySupplyRequest: { - encode(message: QuerySupplyRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QuerySupplyRequest; - fromPartial(object: DeepPartial): QuerySupplyRequest; -}; -export declare const QuerySupplyResponse: { - encode(message: QuerySupplyResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QuerySupplyResponse; - fromPartial(object: DeepPartial): QuerySupplyResponse; -}; -export declare const QueryNFTsRequest: { - encode(message: QueryNFTsRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryNFTsRequest; - fromPartial(object: DeepPartial): QueryNFTsRequest; -}; -export declare const QueryNFTsResponse: { - encode(message: QueryNFTsResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryNFTsResponse; - fromPartial(object: DeepPartial): QueryNFTsResponse; -}; -export declare const QueryNFTRequest: { - encode(message: QueryNFTRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryNFTRequest; - fromPartial(object: DeepPartial): QueryNFTRequest; -}; -export declare const QueryNFTResponse: { - encode(message: QueryNFTResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryNFTResponse; - fromPartial(object: DeepPartial): QueryNFTResponse; -}; -export declare const QueryClassRequest: { - encode(message: QueryClassRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryClassRequest; - fromPartial(object: DeepPartial): QueryClassRequest; -}; -export declare const QueryClassResponse: { - encode(message: QueryClassResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryClassResponse; - fromPartial(object: DeepPartial): QueryClassResponse; -}; -export declare const QueryClassesRequest: { - encode(message: QueryClassesRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryClassesRequest; - fromPartial(object: DeepPartial): QueryClassesRequest; -}; -export declare const QueryClassesResponse: { - encode(message: QueryClassesResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryClassesResponse; - fromPartial(object: DeepPartial): QueryClassesResponse; -}; diff --git a/packages/proto/types/codegen/cosmos/nft/v1beta1/query.lcd.d.ts b/packages/proto/types/codegen/cosmos/nft/v1beta1/query.lcd.d.ts deleted file mode 100644 index d5be0983..00000000 --- a/packages/proto/types/codegen/cosmos/nft/v1beta1/query.lcd.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { LCDClient } from "@osmonauts/lcd"; -import { QueryBalanceRequest, QueryBalanceResponseSDKType, QueryOwnerRequest, QueryOwnerResponseSDKType, QuerySupplyRequest, QuerySupplyResponseSDKType, QueryNFTsRequest, QueryNFTsResponseSDKType, QueryNFTRequest, QueryNFTResponseSDKType, QueryClassRequest, QueryClassResponseSDKType, QueryClassesRequest, QueryClassesResponseSDKType } from "./query"; -export declare class LCDQueryClient { - req: LCDClient; - constructor({ requestClient }: { - requestClient: LCDClient; - }); - balance(params: QueryBalanceRequest): Promise; - owner(params: QueryOwnerRequest): Promise; - supply(params: QuerySupplyRequest): Promise; - nFTs(params: QueryNFTsRequest): Promise; - nFT(params: QueryNFTRequest): Promise; - class(params: QueryClassRequest): Promise; - classes(params?: QueryClassesRequest): Promise; -} diff --git a/packages/proto/types/codegen/cosmos/nft/v1beta1/query.rpc.query.d.ts b/packages/proto/types/codegen/cosmos/nft/v1beta1/query.rpc.query.d.ts deleted file mode 100644 index 6d19d738..00000000 --- a/packages/proto/types/codegen/cosmos/nft/v1beta1/query.rpc.query.d.ts +++ /dev/null @@ -1,33 +0,0 @@ -import { Rpc } from "@osmonauts/helpers"; -import { QueryClient } from "@cosmjs/stargate"; -import { QueryBalanceRequest, QueryBalanceResponse, QueryOwnerRequest, QueryOwnerResponse, QuerySupplyRequest, QuerySupplyResponse, QueryNFTsRequest, QueryNFTsResponse, QueryNFTRequest, QueryNFTResponse, QueryClassRequest, QueryClassResponse, QueryClassesRequest, QueryClassesResponse } from "./query"; -/** Query defines the RPC service */ -export interface Query { - balance(request: QueryBalanceRequest): Promise; - owner(request: QueryOwnerRequest): Promise; - supply(request: QuerySupplyRequest): Promise; - nFTs(request: QueryNFTsRequest): Promise; - nFT(request: QueryNFTRequest): Promise; - class(request: QueryClassRequest): Promise; - classes(request?: QueryClassesRequest): Promise; -} -export declare class QueryClientImpl implements Query { - private readonly rpc; - constructor(rpc: Rpc); - balance(request: QueryBalanceRequest): Promise; - owner(request: QueryOwnerRequest): Promise; - supply(request: QuerySupplyRequest): Promise; - nFTs(request: QueryNFTsRequest): Promise; - nFT(request: QueryNFTRequest): Promise; - class(request: QueryClassRequest): Promise; - classes(request?: QueryClassesRequest): Promise; -} -export declare const createRpcQueryExtension: (base: QueryClient) => { - balance(request: QueryBalanceRequest): Promise; - owner(request: QueryOwnerRequest): Promise; - supply(request: QuerySupplyRequest): Promise; - nFTs(request: QueryNFTsRequest): Promise; - nFT(request: QueryNFTRequest): Promise; - class(request: QueryClassRequest): Promise; - classes(request?: QueryClassesRequest): Promise; -}; diff --git a/packages/proto/types/codegen/cosmos/nft/v1beta1/tx.amino.d.ts b/packages/proto/types/codegen/cosmos/nft/v1beta1/tx.amino.d.ts deleted file mode 100644 index c5b3ccea..00000000 --- a/packages/proto/types/codegen/cosmos/nft/v1beta1/tx.amino.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { AminoMsg } from "@cosmjs/amino"; -import { MsgSend } from "./tx"; -export interface MsgSendAminoType extends AminoMsg { - type: "cosmos-sdk/MsgNFTSend"; - value: { - class_id: string; - id: string; - sender: string; - receiver: string; - }; -} -export declare const AminoConverter: { - "/cosmos.nft.v1beta1.MsgSend": { - aminoType: string; - toAmino: ({ classId, id, sender, receiver }: MsgSend) => MsgSendAminoType["value"]; - fromAmino: ({ class_id, id, sender, receiver }: MsgSendAminoType["value"]) => MsgSend; - }; -}; diff --git a/packages/proto/types/codegen/cosmos/nft/v1beta1/tx.d.ts b/packages/proto/types/codegen/cosmos/nft/v1beta1/tx.d.ts deleted file mode 100644 index ee238b75..00000000 --- a/packages/proto/types/codegen/cosmos/nft/v1beta1/tx.d.ts +++ /dev/null @@ -1,36 +0,0 @@ -import * as _m0 from "protobufjs/minimal"; -import { DeepPartial } from "../../../helpers"; -/** MsgSend represents a message to send a nft from one account to another account. */ -export interface MsgSend { - /** class_id defines the unique identifier of the nft classification, similar to the contract address of ERC721 */ - classId: string; - /** id defines the unique identification of nft */ - id: string; - /** sender is the address of the owner of nft */ - sender: string; - /** receiver is the receiver address of nft */ - receiver: string; -} -/** MsgSend represents a message to send a nft from one account to another account. */ -export interface MsgSendSDKType { - class_id: string; - id: string; - sender: string; - receiver: string; -} -/** MsgSendResponse defines the Msg/Send response type. */ -export interface MsgSendResponse { -} -/** MsgSendResponse defines the Msg/Send response type. */ -export interface MsgSendResponseSDKType { -} -export declare const MsgSend: { - encode(message: MsgSend, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgSend; - fromPartial(object: DeepPartial): MsgSend; -}; -export declare const MsgSendResponse: { - encode(_: MsgSendResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgSendResponse; - fromPartial(_: DeepPartial): MsgSendResponse; -}; diff --git a/packages/proto/types/codegen/cosmos/nft/v1beta1/tx.registry.d.ts b/packages/proto/types/codegen/cosmos/nft/v1beta1/tx.registry.d.ts deleted file mode 100644 index 50e9475f..00000000 --- a/packages/proto/types/codegen/cosmos/nft/v1beta1/tx.registry.d.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { GeneratedType, Registry } from "@cosmjs/proto-signing"; -import { MsgSend } from "./tx"; -export declare const registry: ReadonlyArray<[string, GeneratedType]>; -export declare const load: (protoRegistry: Registry) => void; -export declare const MessageComposer: { - encoded: { - send(value: MsgSend): { - typeUrl: string; - value: Uint8Array; - }; - }; - withTypeUrl: { - send(value: MsgSend): { - typeUrl: string; - value: MsgSend; - }; - }; - fromPartial: { - send(value: MsgSend): { - typeUrl: string; - value: MsgSend; - }; - }; -}; diff --git a/packages/proto/types/codegen/cosmos/nft/v1beta1/tx.rpc.msg.d.ts b/packages/proto/types/codegen/cosmos/nft/v1beta1/tx.rpc.msg.d.ts deleted file mode 100644 index c151bfc5..00000000 --- a/packages/proto/types/codegen/cosmos/nft/v1beta1/tx.rpc.msg.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { Rpc } from "@osmonauts/helpers"; -import { MsgSend, MsgSendResponse } from "./tx"; -/** Msg defines the RPC service */ -export interface Msg { - send(request: MsgSend): Promise; -} -export declare class MsgClientImpl implements Msg { - private readonly rpc; - constructor(rpc: Rpc); - send(request: MsgSend): Promise; -} diff --git a/packages/proto/types/codegen/cosmos/orm/v1/orm.d.ts b/packages/proto/types/codegen/cosmos/orm/v1/orm.d.ts deleted file mode 100644 index c29c9c7a..00000000 --- a/packages/proto/types/codegen/cosmos/orm/v1/orm.d.ts +++ /dev/null @@ -1,130 +0,0 @@ -import * as _m0 from "protobufjs/minimal"; -import { DeepPartial } from "../../../helpers"; -/** TableDescriptor describes an ORM table. */ -export interface TableDescriptor { - /** primary_key defines the primary key for the table. */ - primaryKey: PrimaryKeyDescriptor; - /** index defines one or more secondary indexes. */ - index: SecondaryIndexDescriptor[]; - /** - * id is a non-zero integer ID that must be unique within the - * tables and singletons in this file. It may be deprecated in the future when this - * can be auto-generated. - */ - id: number; -} -/** TableDescriptor describes an ORM table. */ -export interface TableDescriptorSDKType { - primary_key: PrimaryKeyDescriptorSDKType; - index: SecondaryIndexDescriptorSDKType[]; - id: number; -} -/** PrimaryKeyDescriptor describes a table primary key. */ -export interface PrimaryKeyDescriptor { - /** - * fields is a comma-separated list of fields in the primary key. Spaces are - * not allowed. Supported field types, their encodings, and any applicable constraints - * are described below. - * - uint32 are encoded as 2,3,4 or 5 bytes using a compact encoding that - * is suitable for sorted iteration (not varint encoding). This type is - * well-suited for small integers. - * - uint64 are encoded as 2,4,6 or 9 bytes using a compact encoding that - * is suitable for sorted iteration (not varint encoding). This type is - * well-suited for small integers such as auto-incrementing sequences. - * - fixed32, fixed64 are encoded as big-endian fixed width bytes and support - * sorted iteration. These types are well-suited for encoding fixed with - * decimals as integers. - * - string's are encoded as raw bytes in terminal key segments and null-terminated - * in non-terminal segments. Null characters are thus forbidden in strings. - * string fields support sorted iteration. - * - bytes are encoded as raw bytes in terminal segments and length-prefixed - * with a 32-bit unsigned varint in non-terminal segments. - * - int32, sint32, int64, sint64, sfixed32, sfixed64 are encoded as fixed width bytes with - * an encoding that enables sorted iteration. - * - google.protobuf.Timestamp and google.protobuf.Duration are encoded - * as 12 bytes using an encoding that enables sorted iteration. - * - enum fields are encoded using varint encoding and do not support sorted - * iteration. - * - bool fields are encoded as a single byte 0 or 1. - * - * All other fields types are unsupported in keys including repeated and - * oneof fields. - * - * Primary keys are prefixed by the varint encoded table id and the byte 0x0 - * plus any additional prefix specified by the schema. - */ - fields: string; - /** - * auto_increment specifies that the primary key is generated by an - * auto-incrementing integer. If this is set to true fields must only - * contain one field of that is of type uint64. - */ - autoIncrement: boolean; -} -/** PrimaryKeyDescriptor describes a table primary key. */ -export interface PrimaryKeyDescriptorSDKType { - fields: string; - auto_increment: boolean; -} -/** PrimaryKeyDescriptor describes a table secondary index. */ -export interface SecondaryIndexDescriptor { - /** - * fields is a comma-separated list of fields in the index. The supported - * field types are the same as those for PrimaryKeyDescriptor.fields. - * Index keys are prefixed by the varint encoded table id and the varint - * encoded index id plus any additional prefix specified by the schema. - * - * In addition the the field segments, non-unique index keys are suffixed with - * any additional primary key fields not present in the index fields so that the - * primary key can be reconstructed. Unique indexes instead of being suffixed - * store the remaining primary key fields in the value.. - */ - fields: string; - /** - * id is a non-zero integer ID that must be unique within the indexes for this - * table and less than 32768. It may be deprecated in the future when this can - * be auto-generated. - */ - id: number; - /** unique specifies that this an unique index. */ - unique: boolean; -} -/** PrimaryKeyDescriptor describes a table secondary index. */ -export interface SecondaryIndexDescriptorSDKType { - fields: string; - id: number; - unique: boolean; -} -/** TableDescriptor describes an ORM singleton table which has at most one instance. */ -export interface SingletonDescriptor { - /** - * id is a non-zero integer ID that must be unique within the - * tables and singletons in this file. It may be deprecated in the future when this - * can be auto-generated. - */ - id: number; -} -/** TableDescriptor describes an ORM singleton table which has at most one instance. */ -export interface SingletonDescriptorSDKType { - id: number; -} -export declare const TableDescriptor: { - encode(message: TableDescriptor, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): TableDescriptor; - fromPartial(object: DeepPartial): TableDescriptor; -}; -export declare const PrimaryKeyDescriptor: { - encode(message: PrimaryKeyDescriptor, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): PrimaryKeyDescriptor; - fromPartial(object: DeepPartial): PrimaryKeyDescriptor; -}; -export declare const SecondaryIndexDescriptor: { - encode(message: SecondaryIndexDescriptor, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): SecondaryIndexDescriptor; - fromPartial(object: DeepPartial): SecondaryIndexDescriptor; -}; -export declare const SingletonDescriptor: { - encode(message: SingletonDescriptor, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): SingletonDescriptor; - fromPartial(object: DeepPartial): SingletonDescriptor; -}; diff --git a/packages/proto/types/codegen/cosmos/orm/v1alpha1/schema.d.ts b/packages/proto/types/codegen/cosmos/orm/v1alpha1/schema.d.ts deleted file mode 100644 index 66027fa8..00000000 --- a/packages/proto/types/codegen/cosmos/orm/v1alpha1/schema.d.ts +++ /dev/null @@ -1,98 +0,0 @@ -import * as _m0 from "protobufjs/minimal"; -import { DeepPartial } from "../../../helpers"; -/** StorageType */ -export declare enum StorageType { - /** - * STORAGE_TYPE_DEFAULT_UNSPECIFIED - STORAGE_TYPE_DEFAULT_UNSPECIFIED indicates the persistent - * KV-storage where primary key entries are stored in merkle-tree - * backed commitment storage and indexes and seqs are stored in - * fast index storage. Note that the Cosmos SDK before store/v2alpha1 - * does not support this. - */ - STORAGE_TYPE_DEFAULT_UNSPECIFIED = 0, - /** - * STORAGE_TYPE_MEMORY - STORAGE_TYPE_MEMORY indicates in-memory storage that will be - * reloaded every time an app restarts. Tables with this type of storage - * will by default be ignored when importing and exporting a module's - * state from JSON. - */ - STORAGE_TYPE_MEMORY = 1, - /** - * STORAGE_TYPE_TRANSIENT - STORAGE_TYPE_TRANSIENT indicates transient storage that is reset - * at the end of every block. Tables with this type of storage - * will by default be ignored when importing and exporting a module's - * state from JSON. - */ - STORAGE_TYPE_TRANSIENT = 2, - /** - * STORAGE_TYPE_INDEX - STORAGE_TYPE_INDEX indicates persistent storage which is not backed - * by a merkle-tree and won't affect the app hash. Note that the Cosmos SDK - * before store/v2alpha1 does not support this. - */ - STORAGE_TYPE_INDEX = 3, - /** - * STORAGE_TYPE_COMMITMENT - STORAGE_TYPE_INDEX indicates persistent storage which is backed by - * a merkle-tree. With this type of storage, both primary and index keys - * will affect the app hash and this is generally less efficient - * than using STORAGE_TYPE_DEFAULT_UNSPECIFIED which separates index - * keys into index storage. Note that modules built with the - * Cosmos SDK before store/v2alpha1 must specify STORAGE_TYPE_COMMITMENT - * instead of STORAGE_TYPE_DEFAULT_UNSPECIFIED or STORAGE_TYPE_INDEX - * because this is the only type of persistent storage available. - */ - STORAGE_TYPE_COMMITMENT = 4, - UNRECOGNIZED = -1 -} -export declare const StorageTypeSDKType: typeof StorageType; -export declare function storageTypeFromJSON(object: any): StorageType; -export declare function storageTypeToJSON(object: StorageType): string; -/** ModuleSchemaDescriptor describe's a module's ORM schema. */ -export interface ModuleSchemaDescriptor { - schemaFile: ModuleSchemaDescriptor_FileEntry[]; - /** - * prefix is an optional prefix that precedes all keys in this module's - * store. - */ - prefix: Uint8Array; -} -/** ModuleSchemaDescriptor describe's a module's ORM schema. */ -export interface ModuleSchemaDescriptorSDKType { - schema_file: ModuleSchemaDescriptor_FileEntrySDKType[]; - prefix: Uint8Array; -} -/** FileEntry describes an ORM file used in a module. */ -export interface ModuleSchemaDescriptor_FileEntry { - /** - * id is a prefix that will be varint encoded and prepended to all the - * table keys specified in the file's tables. - */ - id: number; - /** - * proto_file_name is the name of a file .proto in that contains - * table definitions. The .proto file must be in a package that the - * module has referenced using cosmos.app.v1.ModuleDescriptor.use_package. - */ - protoFileName: string; - /** - * storage_type optionally indicates the type of storage this file's - * tables should used. If it is left unspecified, the default KV-storage - * of the app will be used. - */ - storageType: StorageType; -} -/** FileEntry describes an ORM file used in a module. */ -export interface ModuleSchemaDescriptor_FileEntrySDKType { - id: number; - proto_file_name: string; - storage_type: StorageType; -} -export declare const ModuleSchemaDescriptor: { - encode(message: ModuleSchemaDescriptor, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): ModuleSchemaDescriptor; - fromPartial(object: DeepPartial): ModuleSchemaDescriptor; -}; -export declare const ModuleSchemaDescriptor_FileEntry: { - encode(message: ModuleSchemaDescriptor_FileEntry, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): ModuleSchemaDescriptor_FileEntry; - fromPartial(object: DeepPartial): ModuleSchemaDescriptor_FileEntry; -}; diff --git a/packages/proto/types/codegen/cosmos/params/v1beta1/params.d.ts b/packages/proto/types/codegen/cosmos/params/v1beta1/params.d.ts deleted file mode 100644 index 44a12b09..00000000 --- a/packages/proto/types/codegen/cosmos/params/v1beta1/params.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -import * as _m0 from "protobufjs/minimal"; -import { DeepPartial } from "../../../helpers"; -/** ParameterChangeProposal defines a proposal to change one or more parameters. */ -export interface ParameterChangeProposal { - title: string; - description: string; - changes: ParamChange[]; -} -/** ParameterChangeProposal defines a proposal to change one or more parameters. */ -export interface ParameterChangeProposalSDKType { - title: string; - description: string; - changes: ParamChangeSDKType[]; -} -/** - * ParamChange defines an individual parameter change, for use in - * ParameterChangeProposal. - */ -export interface ParamChange { - subspace: string; - key: string; - value: string; -} -/** - * ParamChange defines an individual parameter change, for use in - * ParameterChangeProposal. - */ -export interface ParamChangeSDKType { - subspace: string; - key: string; - value: string; -} -export declare const ParameterChangeProposal: { - encode(message: ParameterChangeProposal, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): ParameterChangeProposal; - fromPartial(object: DeepPartial): ParameterChangeProposal; -}; -export declare const ParamChange: { - encode(message: ParamChange, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): ParamChange; - fromPartial(object: DeepPartial): ParamChange; -}; diff --git a/packages/proto/types/codegen/cosmos/params/v1beta1/query.d.ts b/packages/proto/types/codegen/cosmos/params/v1beta1/query.d.ts deleted file mode 100644 index 261d5478..00000000 --- a/packages/proto/types/codegen/cosmos/params/v1beta1/query.d.ts +++ /dev/null @@ -1,91 +0,0 @@ -import { ParamChange, ParamChangeSDKType } from "./params"; -import * as _m0 from "protobufjs/minimal"; -import { DeepPartial } from "../../../helpers"; -/** QueryParamsRequest is request type for the Query/Params RPC method. */ -export interface QueryParamsRequest { - /** subspace defines the module to query the parameter for. */ - subspace: string; - /** key defines the key of the parameter in the subspace. */ - key: string; -} -/** QueryParamsRequest is request type for the Query/Params RPC method. */ -export interface QueryParamsRequestSDKType { - subspace: string; - key: string; -} -/** QueryParamsResponse is response type for the Query/Params RPC method. */ -export interface QueryParamsResponse { - /** param defines the queried parameter. */ - param: ParamChange; -} -/** QueryParamsResponse is response type for the Query/Params RPC method. */ -export interface QueryParamsResponseSDKType { - param: ParamChangeSDKType; -} -/** - * QuerySubspacesRequest defines a request type for querying for all registered - * subspaces and all keys for a subspace. - */ -export interface QuerySubspacesRequest { -} -/** - * QuerySubspacesRequest defines a request type for querying for all registered - * subspaces and all keys for a subspace. - */ -export interface QuerySubspacesRequestSDKType { -} -/** - * QuerySubspacesResponse defines the response types for querying for all - * registered subspaces and all keys for a subspace. - */ -export interface QuerySubspacesResponse { - subspaces: Subspace[]; -} -/** - * QuerySubspacesResponse defines the response types for querying for all - * registered subspaces and all keys for a subspace. - */ -export interface QuerySubspacesResponseSDKType { - subspaces: SubspaceSDKType[]; -} -/** - * Subspace defines a parameter subspace name and all the keys that exist for - * the subspace. - */ -export interface Subspace { - subspace: string; - keys: string[]; -} -/** - * Subspace defines a parameter subspace name and all the keys that exist for - * the subspace. - */ -export interface SubspaceSDKType { - subspace: string; - keys: string[]; -} -export declare const QueryParamsRequest: { - encode(message: QueryParamsRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryParamsRequest; - fromPartial(object: DeepPartial): QueryParamsRequest; -}; -export declare const QueryParamsResponse: { - encode(message: QueryParamsResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryParamsResponse; - fromPartial(object: DeepPartial): QueryParamsResponse; -}; -export declare const QuerySubspacesRequest: { - encode(_: QuerySubspacesRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QuerySubspacesRequest; - fromPartial(_: DeepPartial): QuerySubspacesRequest; -}; -export declare const QuerySubspacesResponse: { - encode(message: QuerySubspacesResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QuerySubspacesResponse; - fromPartial(object: DeepPartial): QuerySubspacesResponse; -}; -export declare const Subspace: { - encode(message: Subspace, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): Subspace; - fromPartial(object: DeepPartial): Subspace; -}; diff --git a/packages/proto/types/codegen/cosmos/params/v1beta1/query.lcd.d.ts b/packages/proto/types/codegen/cosmos/params/v1beta1/query.lcd.d.ts deleted file mode 100644 index 4d76132d..00000000 --- a/packages/proto/types/codegen/cosmos/params/v1beta1/query.lcd.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { LCDClient } from "@osmonauts/lcd"; -import { QueryParamsRequest, QueryParamsResponseSDKType, QuerySubspacesRequest, QuerySubspacesResponseSDKType } from "./query"; -export declare class LCDQueryClient { - req: LCDClient; - constructor({ requestClient }: { - requestClient: LCDClient; - }); - params(params: QueryParamsRequest): Promise; - subspaces(_params?: QuerySubspacesRequest): Promise; -} diff --git a/packages/proto/types/codegen/cosmos/params/v1beta1/query.rpc.query.d.ts b/packages/proto/types/codegen/cosmos/params/v1beta1/query.rpc.query.d.ts deleted file mode 100644 index 64c42805..00000000 --- a/packages/proto/types/codegen/cosmos/params/v1beta1/query.rpc.query.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { Rpc } from "@osmonauts/helpers"; -import { QueryClient } from "@cosmjs/stargate"; -import { QueryParamsRequest, QueryParamsResponse, QuerySubspacesRequest, QuerySubspacesResponse } from "./query"; -/** Query defines the RPC service */ -export interface Query { - params(request: QueryParamsRequest): Promise; - subspaces(request?: QuerySubspacesRequest): Promise; -} -export declare class QueryClientImpl implements Query { - private readonly rpc; - constructor(rpc: Rpc); - params(request: QueryParamsRequest): Promise; - subspaces(request?: QuerySubspacesRequest): Promise; -} -export declare const createRpcQueryExtension: (base: QueryClient) => { - params(request: QueryParamsRequest): Promise; - subspaces(request?: QuerySubspacesRequest): Promise; -}; diff --git a/packages/proto/types/codegen/cosmos/rpc.query.d.ts b/packages/proto/types/codegen/cosmos/rpc.query.d.ts index af4db87a..b9585e47 100644 --- a/packages/proto/types/codegen/cosmos/rpc.query.d.ts +++ b/packages/proto/types/codegen/cosmos/rpc.query.d.ts @@ -1,12 +1,8 @@ +import { HttpEndpoint } from "@cosmjs/tendermint-rpc"; export declare const createRPCQueryClient: ({ rpcEndpoint }: { - rpcEndpoint: string; + rpcEndpoint: string | HttpEndpoint; }) => Promise<{ cosmos: { - app: { - v1alpha1: { - config(request?: import("./app/v1alpha1/query").QueryConfigRequest): Promise; - }; - }; auth: { v1beta1: { accounts(request?: import("./auth/v1beta1/query").QueryAccountsRequest): Promise; @@ -38,18 +34,6 @@ export declare const createRPCQueryClient: ({ rpcEndpoint }: { denomOwners(request: import("./bank/v1beta1/query").QueryDenomOwnersRequest): Promise; }; }; - base: { - tendermint: { - v1beta1: { - getNodeInfo(request?: import("./base/tendermint/v1beta1/query").GetNodeInfoRequest): Promise; - getSyncing(request?: import("./base/tendermint/v1beta1/query").GetSyncingRequest): Promise; - getLatestBlock(request?: import("./base/tendermint/v1beta1/query").GetLatestBlockRequest): Promise; - getBlockByHeight(request: import("./base/tendermint/v1beta1/query").GetBlockByHeightRequest): Promise; - getLatestValidatorSet(request?: import("./base/tendermint/v1beta1/query").GetLatestValidatorSetRequest): Promise; - getValidatorSetByHeight(request: import("./base/tendermint/v1beta1/query").GetValidatorSetByHeightRequest): Promise; - }; - }; - }; distribution: { v1beta1: { params(request?: import("./distribution/v1beta1/query").QueryParamsRequest): Promise; @@ -63,30 +47,7 @@ export declare const createRPCQueryClient: ({ rpcEndpoint }: { communityPool(request?: import("./distribution/v1beta1/query").QueryCommunityPoolRequest): Promise; }; }; - evidence: { - v1beta1: { - evidence(request: import("./evidence/v1beta1/query").QueryEvidenceRequest): Promise; - allEvidence(request?: import("./evidence/v1beta1/query").QueryAllEvidenceRequest): Promise; - }; - }; - feegrant: { - v1beta1: { - allowance(request: import("./feegrant/v1beta1/query").QueryAllowanceRequest): Promise; - allowances(request: import("./feegrant/v1beta1/query").QueryAllowancesRequest): Promise; - allowancesByGranter(request: import("./feegrant/v1beta1/query").QueryAllowancesByGranterRequest): Promise; - }; - }; gov: { - v1: { - proposal(request: import("./gov/v1/query").QueryProposalRequest): Promise; - proposals(request: import("./gov/v1/query").QueryProposalsRequest): Promise; - vote(request: import("./gov/v1/query").QueryVoteRequest): Promise; - votes(request: import("./gov/v1/query").QueryVotesRequest): Promise; - params(request: import("./gov/v1/query").QueryParamsRequest): Promise; - deposit(request: import("./gov/v1/query").QueryDepositRequest): Promise; - deposits(request: import("./gov/v1/query").QueryDepositsRequest): Promise; - tallyResult(request: import("./gov/v1/query").QueryTallyResultRequest): Promise; - }; v1beta1: { proposal(request: import("./gov/v1beta1/query").QueryProposalRequest): Promise; proposals(request: import("./gov/v1beta1/query").QueryProposalsRequest): Promise; @@ -98,54 +59,6 @@ export declare const createRPCQueryClient: ({ rpcEndpoint }: { tallyResult(request: import("./gov/v1beta1/query").QueryTallyResultRequest): Promise; }; }; - group: { - v1: { - groupInfo(request: import("./group/v1/query").QueryGroupInfoRequest): Promise; - groupPolicyInfo(request: import("./group/v1/query").QueryGroupPolicyInfoRequest): Promise; - groupMembers(request: import("./group/v1/query").QueryGroupMembersRequest): Promise; - groupsByAdmin(request: import("./group/v1/query").QueryGroupsByAdminRequest): Promise; - groupPoliciesByGroup(request: import("./group/v1/query").QueryGroupPoliciesByGroupRequest): Promise; - groupPoliciesByAdmin(request: import("./group/v1/query").QueryGroupPoliciesByAdminRequest): Promise; - proposal(request: import("./group/v1/query").QueryProposalRequest): Promise; - proposalsByGroupPolicy(request: import("./group/v1/query").QueryProposalsByGroupPolicyRequest): Promise; - voteByProposalVoter(request: import("./group/v1/query").QueryVoteByProposalVoterRequest): Promise; - votesByProposal(request: import("./group/v1/query").QueryVotesByProposalRequest): Promise; - votesByVoter(request: import("./group/v1/query").QueryVotesByVoterRequest): Promise; - groupsByMember(request: import("./group/v1/query").QueryGroupsByMemberRequest): Promise; - tallyResult(request: import("./group/v1/query").QueryTallyResultRequest): Promise; - }; - }; - mint: { - v1beta1: { - params(request?: import("./mint/v1beta1/query").QueryParamsRequest): Promise; - inflation(request?: import("./mint/v1beta1/query").QueryInflationRequest): Promise; - annualProvisions(request?: import("./mint/v1beta1/query").QueryAnnualProvisionsRequest): Promise; - }; - }; - nft: { - v1beta1: { - balance(request: import("./nft/v1beta1/query").QueryBalanceRequest): Promise; - owner(request: import("./nft/v1beta1/query").QueryOwnerRequest): Promise; - supply(request: import("./nft/v1beta1/query").QuerySupplyRequest): Promise; - nFTs(request: import("./nft/v1beta1/query").QueryNFTsRequest): Promise; - nFT(request: import("./nft/v1beta1/query").QueryNFTRequest): Promise; - class(request: import("./nft/v1beta1/query").QueryClassRequest): Promise; - classes(request?: import("./nft/v1beta1/query").QueryClassesRequest): Promise; - }; - }; - params: { - v1beta1: { - params(request: import("./params/v1beta1/query").QueryParamsRequest): Promise; - subspaces(request?: import("./params/v1beta1/query").QuerySubspacesRequest): Promise; - }; - }; - slashing: { - v1beta1: { - params(request?: import("./slashing/v1beta1/query").QueryParamsRequest): Promise; - signingInfo(request: import("./slashing/v1beta1/query").QuerySigningInfoRequest): Promise; - signingInfos(request?: import("./slashing/v1beta1/query").QuerySigningInfosRequest): Promise; - }; - }; staking: { v1beta1: { validators(request: import("./staking/v1beta1/query").QueryValidatorsRequest): Promise; diff --git a/packages/proto/types/codegen/cosmos/rpc.tx.d.ts b/packages/proto/types/codegen/cosmos/rpc.tx.d.ts index c2fac110..a64c738d 100644 --- a/packages/proto/types/codegen/cosmos/rpc.tx.d.ts +++ b/packages/proto/types/codegen/cosmos/rpc.tx.d.ts @@ -1,4 +1,4 @@ -import { Rpc } from "@osmonauts/helpers"; +import { Rpc } from "../helpers"; export declare const createRPCMsgClient: ({ rpc }: { rpc: Rpc; }) => Promise<{ @@ -9,39 +9,17 @@ export declare const createRPCMsgClient: ({ rpc }: { bank: { v1beta1: import("./bank/v1beta1/tx.rpc.msg").MsgClientImpl; }; - crisis: { - v1beta1: import("./crisis/v1beta1/tx.rpc.msg").MsgClientImpl; - }; distribution: { v1beta1: import("./distribution/v1beta1/tx.rpc.msg").MsgClientImpl; }; - evidence: { - v1beta1: import("./evidence/v1beta1/tx.rpc.msg").MsgClientImpl; - }; - feegrant: { - v1beta1: import("./feegrant/v1beta1/tx.rpc.msg").MsgClientImpl; - }; gov: { - v1: import("./gov/v1/tx.rpc.msg").MsgClientImpl; v1beta1: import("./gov/v1beta1/tx.rpc.msg").MsgClientImpl; }; - group: { - v1: import("./group/v1/tx.rpc.msg").MsgClientImpl; - }; - nft: { - v1beta1: import("./nft/v1beta1/tx.rpc.msg").MsgClientImpl; - }; - slashing: { - v1beta1: import("./slashing/v1beta1/tx.rpc.msg").MsgClientImpl; - }; staking: { v1beta1: import("./staking/v1beta1/tx.rpc.msg").MsgClientImpl; }; upgrade: { v1beta1: import("./upgrade/v1beta1/tx.rpc.msg").MsgClientImpl; }; - vesting: { - v1beta1: import("./vesting/v1beta1/tx.rpc.msg").MsgClientImpl; - }; }; }>; diff --git a/packages/proto/types/codegen/cosmos/slashing/v1beta1/genesis.d.ts b/packages/proto/types/codegen/cosmos/slashing/v1beta1/genesis.d.ts deleted file mode 100644 index f0578275..00000000 --- a/packages/proto/types/codegen/cosmos/slashing/v1beta1/genesis.d.ts +++ /dev/null @@ -1,86 +0,0 @@ -import { Params, ParamsSDKType, ValidatorSigningInfo, ValidatorSigningInfoSDKType } from "./slashing"; -import { Long, DeepPartial } from "../../../helpers"; -import * as _m0 from "protobufjs/minimal"; -/** GenesisState defines the slashing module's genesis state. */ -export interface GenesisState { - /** params defines all the paramaters of related to deposit. */ - params: Params; - /** - * signing_infos represents a map between validator addresses and their - * signing infos. - */ - signingInfos: SigningInfo[]; - /** - * missed_blocks represents a map between validator addresses and their - * missed blocks. - */ - missedBlocks: ValidatorMissedBlocks[]; -} -/** GenesisState defines the slashing module's genesis state. */ -export interface GenesisStateSDKType { - params: ParamsSDKType; - signing_infos: SigningInfoSDKType[]; - missed_blocks: ValidatorMissedBlocksSDKType[]; -} -/** SigningInfo stores validator signing info of corresponding address. */ -export interface SigningInfo { - /** address is the validator address. */ - address: string; - /** validator_signing_info represents the signing info of this validator. */ - validatorSigningInfo: ValidatorSigningInfo; -} -/** SigningInfo stores validator signing info of corresponding address. */ -export interface SigningInfoSDKType { - address: string; - validator_signing_info: ValidatorSigningInfoSDKType; -} -/** - * ValidatorMissedBlocks contains array of missed blocks of corresponding - * address. - */ -export interface ValidatorMissedBlocks { - /** address is the validator address. */ - address: string; - /** missed_blocks is an array of missed blocks by the validator. */ - missedBlocks: MissedBlock[]; -} -/** - * ValidatorMissedBlocks contains array of missed blocks of corresponding - * address. - */ -export interface ValidatorMissedBlocksSDKType { - address: string; - missed_blocks: MissedBlockSDKType[]; -} -/** MissedBlock contains height and missed status as boolean. */ -export interface MissedBlock { - /** index is the height at which the block was missed. */ - index: Long; - /** missed is the missed status. */ - missed: boolean; -} -/** MissedBlock contains height and missed status as boolean. */ -export interface MissedBlockSDKType { - index: Long; - missed: boolean; -} -export declare const GenesisState: { - encode(message: GenesisState, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): GenesisState; - fromPartial(object: DeepPartial): GenesisState; -}; -export declare const SigningInfo: { - encode(message: SigningInfo, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): SigningInfo; - fromPartial(object: DeepPartial): SigningInfo; -}; -export declare const ValidatorMissedBlocks: { - encode(message: ValidatorMissedBlocks, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): ValidatorMissedBlocks; - fromPartial(object: DeepPartial): ValidatorMissedBlocks; -}; -export declare const MissedBlock: { - encode(message: MissedBlock, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MissedBlock; - fromPartial(object: DeepPartial): MissedBlock; -}; diff --git a/packages/proto/types/codegen/cosmos/slashing/v1beta1/query.d.ts b/packages/proto/types/codegen/cosmos/slashing/v1beta1/query.d.ts deleted file mode 100644 index b071fca7..00000000 --- a/packages/proto/types/codegen/cosmos/slashing/v1beta1/query.d.ts +++ /dev/null @@ -1,109 +0,0 @@ -import { PageRequest, PageRequestSDKType, PageResponse, PageResponseSDKType } from "../../base/query/v1beta1/pagination"; -import { Params, ParamsSDKType, ValidatorSigningInfo, ValidatorSigningInfoSDKType } from "./slashing"; -import * as _m0 from "protobufjs/minimal"; -import { DeepPartial } from "../../../helpers"; -/** QueryParamsRequest is the request type for the Query/Params RPC method */ -export interface QueryParamsRequest { -} -/** QueryParamsRequest is the request type for the Query/Params RPC method */ -export interface QueryParamsRequestSDKType { -} -/** QueryParamsResponse is the response type for the Query/Params RPC method */ -export interface QueryParamsResponse { - params: Params; -} -/** QueryParamsResponse is the response type for the Query/Params RPC method */ -export interface QueryParamsResponseSDKType { - params: ParamsSDKType; -} -/** - * QuerySigningInfoRequest is the request type for the Query/SigningInfo RPC - * method - */ -export interface QuerySigningInfoRequest { - /** cons_address is the address to query signing info of */ - consAddress: string; -} -/** - * QuerySigningInfoRequest is the request type for the Query/SigningInfo RPC - * method - */ -export interface QuerySigningInfoRequestSDKType { - cons_address: string; -} -/** - * QuerySigningInfoResponse is the response type for the Query/SigningInfo RPC - * method - */ -export interface QuerySigningInfoResponse { - /** val_signing_info is the signing info of requested val cons address */ - valSigningInfo: ValidatorSigningInfo; -} -/** - * QuerySigningInfoResponse is the response type for the Query/SigningInfo RPC - * method - */ -export interface QuerySigningInfoResponseSDKType { - val_signing_info: ValidatorSigningInfoSDKType; -} -/** - * QuerySigningInfosRequest is the request type for the Query/SigningInfos RPC - * method - */ -export interface QuerySigningInfosRequest { - pagination: PageRequest; -} -/** - * QuerySigningInfosRequest is the request type for the Query/SigningInfos RPC - * method - */ -export interface QuerySigningInfosRequestSDKType { - pagination: PageRequestSDKType; -} -/** - * QuerySigningInfosResponse is the response type for the Query/SigningInfos RPC - * method - */ -export interface QuerySigningInfosResponse { - /** info is the signing info of all validators */ - info: ValidatorSigningInfo[]; - pagination: PageResponse; -} -/** - * QuerySigningInfosResponse is the response type for the Query/SigningInfos RPC - * method - */ -export interface QuerySigningInfosResponseSDKType { - info: ValidatorSigningInfoSDKType[]; - pagination: PageResponseSDKType; -} -export declare const QueryParamsRequest: { - encode(_: QueryParamsRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryParamsRequest; - fromPartial(_: DeepPartial): QueryParamsRequest; -}; -export declare const QueryParamsResponse: { - encode(message: QueryParamsResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryParamsResponse; - fromPartial(object: DeepPartial): QueryParamsResponse; -}; -export declare const QuerySigningInfoRequest: { - encode(message: QuerySigningInfoRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QuerySigningInfoRequest; - fromPartial(object: DeepPartial): QuerySigningInfoRequest; -}; -export declare const QuerySigningInfoResponse: { - encode(message: QuerySigningInfoResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QuerySigningInfoResponse; - fromPartial(object: DeepPartial): QuerySigningInfoResponse; -}; -export declare const QuerySigningInfosRequest: { - encode(message: QuerySigningInfosRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QuerySigningInfosRequest; - fromPartial(object: DeepPartial): QuerySigningInfosRequest; -}; -export declare const QuerySigningInfosResponse: { - encode(message: QuerySigningInfosResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QuerySigningInfosResponse; - fromPartial(object: DeepPartial): QuerySigningInfosResponse; -}; diff --git a/packages/proto/types/codegen/cosmos/slashing/v1beta1/query.lcd.d.ts b/packages/proto/types/codegen/cosmos/slashing/v1beta1/query.lcd.d.ts deleted file mode 100644 index 68fa91bb..00000000 --- a/packages/proto/types/codegen/cosmos/slashing/v1beta1/query.lcd.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { LCDClient } from "@osmonauts/lcd"; -import { QueryParamsRequest, QueryParamsResponseSDKType, QuerySigningInfoRequest, QuerySigningInfoResponseSDKType, QuerySigningInfosRequest, QuerySigningInfosResponseSDKType } from "./query"; -export declare class LCDQueryClient { - req: LCDClient; - constructor({ requestClient }: { - requestClient: LCDClient; - }); - params(_params?: QueryParamsRequest): Promise; - signingInfo(params: QuerySigningInfoRequest): Promise; - signingInfos(params?: QuerySigningInfosRequest): Promise; -} diff --git a/packages/proto/types/codegen/cosmos/slashing/v1beta1/query.rpc.query.d.ts b/packages/proto/types/codegen/cosmos/slashing/v1beta1/query.rpc.query.d.ts deleted file mode 100644 index 7df8f588..00000000 --- a/packages/proto/types/codegen/cosmos/slashing/v1beta1/query.rpc.query.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -import { Rpc } from "@osmonauts/helpers"; -import { QueryClient } from "@cosmjs/stargate"; -import { QueryParamsRequest, QueryParamsResponse, QuerySigningInfoRequest, QuerySigningInfoResponse, QuerySigningInfosRequest, QuerySigningInfosResponse } from "./query"; -/** Query defines the RPC service */ -export interface Query { - params(request?: QueryParamsRequest): Promise; - signingInfo(request: QuerySigningInfoRequest): Promise; - signingInfos(request?: QuerySigningInfosRequest): Promise; -} -export declare class QueryClientImpl implements Query { - private readonly rpc; - constructor(rpc: Rpc); - params(request?: QueryParamsRequest): Promise; - signingInfo(request: QuerySigningInfoRequest): Promise; - signingInfos(request?: QuerySigningInfosRequest): Promise; -} -export declare const createRpcQueryExtension: (base: QueryClient) => { - params(request?: QueryParamsRequest): Promise; - signingInfo(request: QuerySigningInfoRequest): Promise; - signingInfos(request?: QuerySigningInfosRequest): Promise; -}; diff --git a/packages/proto/types/codegen/cosmos/slashing/v1beta1/slashing.d.ts b/packages/proto/types/codegen/cosmos/slashing/v1beta1/slashing.d.ts deleted file mode 100644 index 51fe3230..00000000 --- a/packages/proto/types/codegen/cosmos/slashing/v1beta1/slashing.d.ts +++ /dev/null @@ -1,68 +0,0 @@ -import { Duration, DurationSDKType } from "../../../google/protobuf/duration"; -import { Long, DeepPartial } from "../../../helpers"; -import * as _m0 from "protobufjs/minimal"; -/** - * ValidatorSigningInfo defines a validator's signing info for monitoring their - * liveness activity. - */ -export interface ValidatorSigningInfo { - address: string; - /** Height at which validator was first a candidate OR was unjailed */ - startHeight: Long; - /** - * Index which is incremented each time the validator was a bonded - * in a block and may have signed a precommit or not. This in conjunction with the - * `SignedBlocksWindow` param determines the index in the `MissedBlocksBitArray`. - */ - indexOffset: Long; - /** Timestamp until which the validator is jailed due to liveness downtime. */ - jailedUntil: Date; - /** - * Whether or not a validator has been tombstoned (killed out of validator set). It is set - * once the validator commits an equivocation or for any other configured misbehiavor. - */ - tombstoned: boolean; - /** - * A counter kept to avoid unnecessary array reads. - * Note that `Sum(MissedBlocksBitArray)` always equals `MissedBlocksCounter`. - */ - missedBlocksCounter: Long; -} -/** - * ValidatorSigningInfo defines a validator's signing info for monitoring their - * liveness activity. - */ -export interface ValidatorSigningInfoSDKType { - address: string; - start_height: Long; - index_offset: Long; - jailed_until: Date; - tombstoned: boolean; - missed_blocks_counter: Long; -} -/** Params represents the parameters used for by the slashing module. */ -export interface Params { - signedBlocksWindow: Long; - minSignedPerWindow: Uint8Array; - downtimeJailDuration: Duration; - slashFractionDoubleSign: Uint8Array; - slashFractionDowntime: Uint8Array; -} -/** Params represents the parameters used for by the slashing module. */ -export interface ParamsSDKType { - signed_blocks_window: Long; - min_signed_per_window: Uint8Array; - downtime_jail_duration: DurationSDKType; - slash_fraction_double_sign: Uint8Array; - slash_fraction_downtime: Uint8Array; -} -export declare const ValidatorSigningInfo: { - encode(message: ValidatorSigningInfo, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): ValidatorSigningInfo; - fromPartial(object: DeepPartial): ValidatorSigningInfo; -}; -export declare const Params: { - encode(message: Params, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): Params; - fromPartial(object: DeepPartial): Params; -}; diff --git a/packages/proto/types/codegen/cosmos/slashing/v1beta1/tx.amino.d.ts b/packages/proto/types/codegen/cosmos/slashing/v1beta1/tx.amino.d.ts deleted file mode 100644 index df0f671d..00000000 --- a/packages/proto/types/codegen/cosmos/slashing/v1beta1/tx.amino.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { AminoMsg } from "@cosmjs/amino"; -import { MsgUnjail } from "./tx"; -export interface MsgUnjailAminoType extends AminoMsg { - type: "cosmos-sdk/MsgUnjail"; - value: { - validator_addr: string; - }; -} -export declare const AminoConverter: { - "/cosmos.slashing.v1beta1.MsgUnjail": { - aminoType: string; - toAmino: ({ validatorAddr }: MsgUnjail) => MsgUnjailAminoType["value"]; - fromAmino: ({ validator_addr }: MsgUnjailAminoType["value"]) => MsgUnjail; - }; -}; diff --git a/packages/proto/types/codegen/cosmos/slashing/v1beta1/tx.d.ts b/packages/proto/types/codegen/cosmos/slashing/v1beta1/tx.d.ts deleted file mode 100644 index fe6632c6..00000000 --- a/packages/proto/types/codegen/cosmos/slashing/v1beta1/tx.d.ts +++ /dev/null @@ -1,26 +0,0 @@ -import * as _m0 from "protobufjs/minimal"; -import { DeepPartial } from "../../../helpers"; -/** MsgUnjail defines the Msg/Unjail request type */ -export interface MsgUnjail { - validatorAddr: string; -} -/** MsgUnjail defines the Msg/Unjail request type */ -export interface MsgUnjailSDKType { - validator_addr: string; -} -/** MsgUnjailResponse defines the Msg/Unjail response type */ -export interface MsgUnjailResponse { -} -/** MsgUnjailResponse defines the Msg/Unjail response type */ -export interface MsgUnjailResponseSDKType { -} -export declare const MsgUnjail: { - encode(message: MsgUnjail, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgUnjail; - fromPartial(object: DeepPartial): MsgUnjail; -}; -export declare const MsgUnjailResponse: { - encode(_: MsgUnjailResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgUnjailResponse; - fromPartial(_: DeepPartial): MsgUnjailResponse; -}; diff --git a/packages/proto/types/codegen/cosmos/slashing/v1beta1/tx.registry.d.ts b/packages/proto/types/codegen/cosmos/slashing/v1beta1/tx.registry.d.ts deleted file mode 100644 index 88e244bf..00000000 --- a/packages/proto/types/codegen/cosmos/slashing/v1beta1/tx.registry.d.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { GeneratedType, Registry } from "@cosmjs/proto-signing"; -import { MsgUnjail } from "./tx"; -export declare const registry: ReadonlyArray<[string, GeneratedType]>; -export declare const load: (protoRegistry: Registry) => void; -export declare const MessageComposer: { - encoded: { - unjail(value: MsgUnjail): { - typeUrl: string; - value: Uint8Array; - }; - }; - withTypeUrl: { - unjail(value: MsgUnjail): { - typeUrl: string; - value: MsgUnjail; - }; - }; - fromPartial: { - unjail(value: MsgUnjail): { - typeUrl: string; - value: MsgUnjail; - }; - }; -}; diff --git a/packages/proto/types/codegen/cosmos/slashing/v1beta1/tx.rpc.msg.d.ts b/packages/proto/types/codegen/cosmos/slashing/v1beta1/tx.rpc.msg.d.ts deleted file mode 100644 index bd0b9ffa..00000000 --- a/packages/proto/types/codegen/cosmos/slashing/v1beta1/tx.rpc.msg.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { Rpc } from "@osmonauts/helpers"; -import { MsgUnjail, MsgUnjailResponse } from "./tx"; -/** Msg defines the RPC service */ -export interface Msg { - unjail(request: MsgUnjail): Promise; -} -export declare class MsgClientImpl implements Msg { - private readonly rpc; - constructor(rpc: Rpc); - unjail(request: MsgUnjail): Promise; -} diff --git a/packages/proto/types/codegen/cosmos/staking/v1beta1/query.rpc.query.d.ts b/packages/proto/types/codegen/cosmos/staking/v1beta1/query.rpc.query.d.ts index 7c559ca5..6f710e5d 100644 --- a/packages/proto/types/codegen/cosmos/staking/v1beta1/query.rpc.query.d.ts +++ b/packages/proto/types/codegen/cosmos/staking/v1beta1/query.rpc.query.d.ts @@ -1,21 +1,47 @@ -import { Rpc } from "@osmonauts/helpers"; +import { Rpc } from "../../../helpers"; import { QueryClient } from "@cosmjs/stargate"; import { QueryValidatorsRequest, QueryValidatorsResponse, QueryValidatorRequest, QueryValidatorResponse, QueryValidatorDelegationsRequest, QueryValidatorDelegationsResponse, QueryValidatorUnbondingDelegationsRequest, QueryValidatorUnbondingDelegationsResponse, QueryDelegationRequest, QueryDelegationResponse, QueryUnbondingDelegationRequest, QueryUnbondingDelegationResponse, QueryDelegatorDelegationsRequest, QueryDelegatorDelegationsResponse, QueryDelegatorUnbondingDelegationsRequest, QueryDelegatorUnbondingDelegationsResponse, QueryRedelegationsRequest, QueryRedelegationsResponse, QueryDelegatorValidatorsRequest, QueryDelegatorValidatorsResponse, QueryDelegatorValidatorRequest, QueryDelegatorValidatorResponse, QueryHistoricalInfoRequest, QueryHistoricalInfoResponse, QueryPoolRequest, QueryPoolResponse, QueryParamsRequest, QueryParamsResponse } from "./query"; -/** Query defines the RPC service */ +/** Query defines the gRPC querier service. */ export interface Query { + /** Validators queries all validators that match the given status. */ validators(request: QueryValidatorsRequest): Promise; + /** Validator queries validator info for given validator address. */ validator(request: QueryValidatorRequest): Promise; + /** ValidatorDelegations queries delegate info for given validator. */ validatorDelegations(request: QueryValidatorDelegationsRequest): Promise; + /** ValidatorUnbondingDelegations queries unbonding delegations of a validator. */ validatorUnbondingDelegations(request: QueryValidatorUnbondingDelegationsRequest): Promise; + /** Delegation queries delegate info for given validator delegator pair. */ delegation(request: QueryDelegationRequest): Promise; + /** + * UnbondingDelegation queries unbonding info for given validator delegator + * pair. + */ unbondingDelegation(request: QueryUnbondingDelegationRequest): Promise; + /** DelegatorDelegations queries all delegations of a given delegator address. */ delegatorDelegations(request: QueryDelegatorDelegationsRequest): Promise; + /** + * DelegatorUnbondingDelegations queries all unbonding delegations of a given + * delegator address. + */ delegatorUnbondingDelegations(request: QueryDelegatorUnbondingDelegationsRequest): Promise; + /** Redelegations queries redelegations of given address. */ redelegations(request: QueryRedelegationsRequest): Promise; + /** + * DelegatorValidators queries all validators info for given delegator + * address. + */ delegatorValidators(request: QueryDelegatorValidatorsRequest): Promise; + /** + * DelegatorValidator queries validator info for given delegator validator + * pair. + */ delegatorValidator(request: QueryDelegatorValidatorRequest): Promise; + /** HistoricalInfo queries the historical info for given height. */ historicalInfo(request: QueryHistoricalInfoRequest): Promise; + /** Pool queries the pool info. */ pool(request?: QueryPoolRequest): Promise; + /** Parameters queries the staking parameters. */ params(request?: QueryParamsRequest): Promise; } export declare class QueryClientImpl implements Query { diff --git a/packages/proto/types/codegen/cosmos/staking/v1beta1/tx.rpc.msg.d.ts b/packages/proto/types/codegen/cosmos/staking/v1beta1/tx.rpc.msg.d.ts index 298ee921..6de176bb 100644 --- a/packages/proto/types/codegen/cosmos/staking/v1beta1/tx.rpc.msg.d.ts +++ b/packages/proto/types/codegen/cosmos/staking/v1beta1/tx.rpc.msg.d.ts @@ -1,11 +1,25 @@ -import { Rpc } from "@osmonauts/helpers"; +import { Rpc } from "../../../helpers"; import { MsgCreateValidator, MsgCreateValidatorResponse, MsgEditValidator, MsgEditValidatorResponse, MsgDelegate, MsgDelegateResponse, MsgBeginRedelegate, MsgBeginRedelegateResponse, MsgUndelegate, MsgUndelegateResponse } from "./tx"; -/** Msg defines the RPC service */ +/** Msg defines the staking Msg service. */ export interface Msg { + /** CreateValidator defines a method for creating a new validator. */ createValidator(request: MsgCreateValidator): Promise; + /** EditValidator defines a method for editing an existing validator. */ editValidator(request: MsgEditValidator): Promise; + /** + * Delegate defines a method for performing a delegation of coins + * from a delegator to a validator. + */ delegate(request: MsgDelegate): Promise; + /** + * BeginRedelegate defines a method for performing a redelegation + * of coins from a delegator and source validator to a destination validator. + */ beginRedelegate(request: MsgBeginRedelegate): Promise; + /** + * Undelegate defines a method for performing an undelegation from a + * delegate and a validator. + */ undelegate(request: MsgUndelegate): Promise; } export declare class MsgClientImpl implements Msg { diff --git a/packages/proto/types/codegen/cosmos/tx/v1beta1/service.rpc.svc.d.ts b/packages/proto/types/codegen/cosmos/tx/v1beta1/service.rpc.Service.d.ts similarity index 75% rename from packages/proto/types/codegen/cosmos/tx/v1beta1/service.rpc.svc.d.ts rename to packages/proto/types/codegen/cosmos/tx/v1beta1/service.rpc.Service.d.ts index b44fdfbe..8ce5bc4f 100644 --- a/packages/proto/types/codegen/cosmos/tx/v1beta1/service.rpc.svc.d.ts +++ b/packages/proto/types/codegen/cosmos/tx/v1beta1/service.rpc.Service.d.ts @@ -1,15 +1,24 @@ -import { Rpc } from "@osmonauts/helpers"; +import { Rpc } from "../../../helpers"; import { QueryClient } from "@cosmjs/stargate"; import { SimulateRequest, SimulateResponse, GetTxRequest, GetTxResponse, BroadcastTxRequest, BroadcastTxResponse, GetTxsEventRequest, GetTxsEventResponse, GetBlockWithTxsRequest, GetBlockWithTxsResponse } from "./service"; -/** Service defines the RPC service */ +/** Service defines a gRPC service for interacting with transactions. */ export interface Service { + /** Simulate simulates executing a transaction for estimating gas usage. */ simulate(request: SimulateRequest): Promise; + /** GetTx fetches a tx by hash. */ getTx(request: GetTxRequest): Promise; + /** BroadcastTx broadcast transaction. */ broadcastTx(request: BroadcastTxRequest): Promise; + /** GetTxsEvent fetches txs by event. */ getTxsEvent(request: GetTxsEventRequest): Promise; + /** + * GetBlockWithTxs fetches a block with decoded txs. + * + * Since: cosmos-sdk 0.45.2 + */ getBlockWithTxs(request: GetBlockWithTxsRequest): Promise; } -export declare class QueryClientImpl implements Service { +export declare class ServiceClientImpl implements Service { private readonly rpc; constructor(rpc: Rpc); simulate(request: SimulateRequest): Promise; diff --git a/packages/proto/types/codegen/cosmos/upgrade/v1beta1/query.rpc.query.d.ts b/packages/proto/types/codegen/cosmos/upgrade/v1beta1/query.rpc.query.d.ts index 99172735..f12df5a9 100644 --- a/packages/proto/types/codegen/cosmos/upgrade/v1beta1/query.rpc.query.d.ts +++ b/packages/proto/types/codegen/cosmos/upgrade/v1beta1/query.rpc.query.d.ts @@ -1,12 +1,28 @@ -import { Rpc } from "@osmonauts/helpers"; +import { Rpc } from "../../../helpers"; import { QueryClient } from "@cosmjs/stargate"; import { QueryCurrentPlanRequest, QueryCurrentPlanResponse, QueryAppliedPlanRequest, QueryAppliedPlanResponse, QueryUpgradedConsensusStateRequest, QueryUpgradedConsensusStateResponse, QueryModuleVersionsRequest, QueryModuleVersionsResponse, QueryAuthorityRequest, QueryAuthorityResponse } from "./query"; -/** Query defines the RPC service */ +/** Query defines the gRPC upgrade querier service. */ export interface Query { + /** CurrentPlan queries the current upgrade plan. */ currentPlan(request?: QueryCurrentPlanRequest): Promise; + /** AppliedPlan queries a previously applied upgrade plan by its name. */ appliedPlan(request: QueryAppliedPlanRequest): Promise; + /** + * UpgradedConsensusState queries the consensus state that will serve + * as a trusted kernel for the next version of this chain. It will only be + * stored at the last height of this chain. + * UpgradedConsensusState RPC not supported with legacy querier + * This rpc is deprecated now that IBC has its own replacement + * (https://github.com/cosmos/ibc-go/blob/2c880a22e9f9cc75f62b527ca94aa75ce1106001/proto/ibc/core/client/v1/query.proto#L54) + */ upgradedConsensusState(request: QueryUpgradedConsensusStateRequest): Promise; + /** + * ModuleVersions queries the list of module versions from state. + * + * Since: cosmos-sdk 0.43 + */ moduleVersions(request: QueryModuleVersionsRequest): Promise; + /** Returns the account with authority to conduct upgrades */ authority(request?: QueryAuthorityRequest): Promise; } export declare class QueryClientImpl implements Query { diff --git a/packages/proto/types/codegen/cosmos/upgrade/v1beta1/tx.rpc.msg.d.ts b/packages/proto/types/codegen/cosmos/upgrade/v1beta1/tx.rpc.msg.d.ts index c6c7eca1..66d0b9a7 100644 --- a/packages/proto/types/codegen/cosmos/upgrade/v1beta1/tx.rpc.msg.d.ts +++ b/packages/proto/types/codegen/cosmos/upgrade/v1beta1/tx.rpc.msg.d.ts @@ -1,8 +1,19 @@ -import { Rpc } from "@osmonauts/helpers"; +import { Rpc } from "../../../helpers"; import { MsgSoftwareUpgrade, MsgSoftwareUpgradeResponse, MsgCancelUpgrade, MsgCancelUpgradeResponse } from "./tx"; -/** Msg defines the RPC service */ +/** Msg defines the upgrade Msg service. */ export interface Msg { + /** + * SoftwareUpgrade is a governance operation for initiating a software upgrade. + * + * Since: cosmos-sdk 0.46 + */ softwareUpgrade(request: MsgSoftwareUpgrade): Promise; + /** + * CancelUpgrade is a governance operation for cancelling a previously + * approvid software upgrade. + * + * Since: cosmos-sdk 0.46 + */ cancelUpgrade(request: MsgCancelUpgrade): Promise; } export declare class MsgClientImpl implements Msg { diff --git a/packages/proto/types/codegen/cosmos/vesting/v1beta1/tx.amino.d.ts b/packages/proto/types/codegen/cosmos/vesting/v1beta1/tx.amino.d.ts deleted file mode 100644 index db9556fa..00000000 --- a/packages/proto/types/codegen/cosmos/vesting/v1beta1/tx.amino.d.ts +++ /dev/null @@ -1,58 +0,0 @@ -import { AminoMsg } from "@cosmjs/amino"; -import { MsgCreateVestingAccount, MsgCreatePermanentLockedAccount, MsgCreatePeriodicVestingAccount } from "./tx"; -export interface MsgCreateVestingAccountAminoType extends AminoMsg { - type: "cosmos-sdk/MsgCreateVestingAccount"; - value: { - from_address: string; - to_address: string; - amount: { - denom: string; - amount: string; - }[]; - end_time: string; - delayed: boolean; - }; -} -export interface MsgCreatePermanentLockedAccountAminoType extends AminoMsg { - type: "cosmos-sdk/MsgCreatePermanentLockedAccount"; - value: { - from_address: string; - to_address: string; - amount: { - denom: string; - amount: string; - }[]; - }; -} -export interface MsgCreatePeriodicVestingAccountAminoType extends AminoMsg { - type: "cosmos-sdk/MsgCreatePeriodicVestingAccount"; - value: { - from_address: string; - to_address: string; - start_time: string; - vesting_periods: { - length: string; - amount: { - denom: string; - amount: string; - }[]; - }[]; - }; -} -export declare const AminoConverter: { - "/cosmos.vesting.v1beta1.MsgCreateVestingAccount": { - aminoType: string; - toAmino: ({ fromAddress, toAddress, amount, endTime, delayed }: MsgCreateVestingAccount) => MsgCreateVestingAccountAminoType["value"]; - fromAmino: ({ from_address, to_address, amount, end_time, delayed }: MsgCreateVestingAccountAminoType["value"]) => MsgCreateVestingAccount; - }; - "/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccount": { - aminoType: string; - toAmino: ({ fromAddress, toAddress, amount }: MsgCreatePermanentLockedAccount) => MsgCreatePermanentLockedAccountAminoType["value"]; - fromAmino: ({ from_address, to_address, amount }: MsgCreatePermanentLockedAccountAminoType["value"]) => MsgCreatePermanentLockedAccount; - }; - "/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount": { - aminoType: string; - toAmino: ({ fromAddress, toAddress, startTime, vestingPeriods }: MsgCreatePeriodicVestingAccount) => MsgCreatePeriodicVestingAccountAminoType["value"]; - fromAmino: ({ from_address, to_address, start_time, vesting_periods }: MsgCreatePeriodicVestingAccountAminoType["value"]) => MsgCreatePeriodicVestingAccount; - }; -}; diff --git a/packages/proto/types/codegen/cosmos/vesting/v1beta1/tx.d.ts b/packages/proto/types/codegen/cosmos/vesting/v1beta1/tx.d.ts deleted file mode 100644 index 41366d12..00000000 --- a/packages/proto/types/codegen/cosmos/vesting/v1beta1/tx.d.ts +++ /dev/null @@ -1,118 +0,0 @@ -import { Coin, CoinSDKType } from "../../base/v1beta1/coin"; -import { Period, PeriodSDKType } from "./vesting"; -import { Long, DeepPartial } from "../../../helpers"; -import * as _m0 from "protobufjs/minimal"; -/** - * MsgCreateVestingAccount defines a message that enables creating a vesting - * account. - */ -export interface MsgCreateVestingAccount { - fromAddress: string; - toAddress: string; - amount: Coin[]; - endTime: Long; - delayed: boolean; -} -/** - * MsgCreateVestingAccount defines a message that enables creating a vesting - * account. - */ -export interface MsgCreateVestingAccountSDKType { - from_address: string; - to_address: string; - amount: CoinSDKType[]; - end_time: Long; - delayed: boolean; -} -/** MsgCreateVestingAccountResponse defines the Msg/CreateVestingAccount response type. */ -export interface MsgCreateVestingAccountResponse { -} -/** MsgCreateVestingAccountResponse defines the Msg/CreateVestingAccount response type. */ -export interface MsgCreateVestingAccountResponseSDKType { -} -/** - * MsgCreatePermanentLockedAccount defines a message that enables creating a permanent - * locked account. - */ -export interface MsgCreatePermanentLockedAccount { - fromAddress: string; - toAddress: string; - amount: Coin[]; -} -/** - * MsgCreatePermanentLockedAccount defines a message that enables creating a permanent - * locked account. - */ -export interface MsgCreatePermanentLockedAccountSDKType { - from_address: string; - to_address: string; - amount: CoinSDKType[]; -} -/** MsgCreatePermanentLockedAccountResponse defines the Msg/CreatePermanentLockedAccount response type. */ -export interface MsgCreatePermanentLockedAccountResponse { -} -/** MsgCreatePermanentLockedAccountResponse defines the Msg/CreatePermanentLockedAccount response type. */ -export interface MsgCreatePermanentLockedAccountResponseSDKType { -} -/** - * MsgCreateVestingAccount defines a message that enables creating a vesting - * account. - */ -export interface MsgCreatePeriodicVestingAccount { - fromAddress: string; - toAddress: string; - startTime: Long; - vestingPeriods: Period[]; -} -/** - * MsgCreateVestingAccount defines a message that enables creating a vesting - * account. - */ -export interface MsgCreatePeriodicVestingAccountSDKType { - from_address: string; - to_address: string; - start_time: Long; - vesting_periods: PeriodSDKType[]; -} -/** - * MsgCreateVestingAccountResponse defines the Msg/CreatePeriodicVestingAccount - * response type. - */ -export interface MsgCreatePeriodicVestingAccountResponse { -} -/** - * MsgCreateVestingAccountResponse defines the Msg/CreatePeriodicVestingAccount - * response type. - */ -export interface MsgCreatePeriodicVestingAccountResponseSDKType { -} -export declare const MsgCreateVestingAccount: { - encode(message: MsgCreateVestingAccount, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgCreateVestingAccount; - fromPartial(object: DeepPartial): MsgCreateVestingAccount; -}; -export declare const MsgCreateVestingAccountResponse: { - encode(_: MsgCreateVestingAccountResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgCreateVestingAccountResponse; - fromPartial(_: DeepPartial): MsgCreateVestingAccountResponse; -}; -export declare const MsgCreatePermanentLockedAccount: { - encode(message: MsgCreatePermanentLockedAccount, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgCreatePermanentLockedAccount; - fromPartial(object: DeepPartial): MsgCreatePermanentLockedAccount; -}; -export declare const MsgCreatePermanentLockedAccountResponse: { - encode(_: MsgCreatePermanentLockedAccountResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgCreatePermanentLockedAccountResponse; - fromPartial(_: DeepPartial): MsgCreatePermanentLockedAccountResponse; -}; -export declare const MsgCreatePeriodicVestingAccount: { - encode(message: MsgCreatePeriodicVestingAccount, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgCreatePeriodicVestingAccount; - fromPartial(object: DeepPartial): MsgCreatePeriodicVestingAccount; -}; -export declare const MsgCreatePeriodicVestingAccountResponse: { - encode(_: MsgCreatePeriodicVestingAccountResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgCreatePeriodicVestingAccountResponse; - fromPartial(_: DeepPartial): MsgCreatePeriodicVestingAccountResponse; -}; diff --git a/packages/proto/types/codegen/cosmos/vesting/v1beta1/tx.registry.d.ts b/packages/proto/types/codegen/cosmos/vesting/v1beta1/tx.registry.d.ts deleted file mode 100644 index 982a5c6a..00000000 --- a/packages/proto/types/codegen/cosmos/vesting/v1beta1/tx.registry.d.ts +++ /dev/null @@ -1,48 +0,0 @@ -import { GeneratedType, Registry } from "@cosmjs/proto-signing"; -import { MsgCreateVestingAccount, MsgCreatePermanentLockedAccount, MsgCreatePeriodicVestingAccount } from "./tx"; -export declare const registry: ReadonlyArray<[string, GeneratedType]>; -export declare const load: (protoRegistry: Registry) => void; -export declare const MessageComposer: { - encoded: { - createVestingAccount(value: MsgCreateVestingAccount): { - typeUrl: string; - value: Uint8Array; - }; - createPermanentLockedAccount(value: MsgCreatePermanentLockedAccount): { - typeUrl: string; - value: Uint8Array; - }; - createPeriodicVestingAccount(value: MsgCreatePeriodicVestingAccount): { - typeUrl: string; - value: Uint8Array; - }; - }; - withTypeUrl: { - createVestingAccount(value: MsgCreateVestingAccount): { - typeUrl: string; - value: MsgCreateVestingAccount; - }; - createPermanentLockedAccount(value: MsgCreatePermanentLockedAccount): { - typeUrl: string; - value: MsgCreatePermanentLockedAccount; - }; - createPeriodicVestingAccount(value: MsgCreatePeriodicVestingAccount): { - typeUrl: string; - value: MsgCreatePeriodicVestingAccount; - }; - }; - fromPartial: { - createVestingAccount(value: MsgCreateVestingAccount): { - typeUrl: string; - value: MsgCreateVestingAccount; - }; - createPermanentLockedAccount(value: MsgCreatePermanentLockedAccount): { - typeUrl: string; - value: MsgCreatePermanentLockedAccount; - }; - createPeriodicVestingAccount(value: MsgCreatePeriodicVestingAccount): { - typeUrl: string; - value: MsgCreatePeriodicVestingAccount; - }; - }; -}; diff --git a/packages/proto/types/codegen/cosmos/vesting/v1beta1/tx.rpc.msg.d.ts b/packages/proto/types/codegen/cosmos/vesting/v1beta1/tx.rpc.msg.d.ts deleted file mode 100644 index 948eb17e..00000000 --- a/packages/proto/types/codegen/cosmos/vesting/v1beta1/tx.rpc.msg.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { Rpc } from "@osmonauts/helpers"; -import { MsgCreateVestingAccount, MsgCreateVestingAccountResponse, MsgCreatePermanentLockedAccount, MsgCreatePermanentLockedAccountResponse, MsgCreatePeriodicVestingAccount, MsgCreatePeriodicVestingAccountResponse } from "./tx"; -/** Msg defines the RPC service */ -export interface Msg { - createVestingAccount(request: MsgCreateVestingAccount): Promise; - createPermanentLockedAccount(request: MsgCreatePermanentLockedAccount): Promise; - createPeriodicVestingAccount(request: MsgCreatePeriodicVestingAccount): Promise; -} -export declare class MsgClientImpl implements Msg { - private readonly rpc; - constructor(rpc: Rpc); - createVestingAccount(request: MsgCreateVestingAccount): Promise; - createPermanentLockedAccount(request: MsgCreatePermanentLockedAccount): Promise; - createPeriodicVestingAccount(request: MsgCreatePeriodicVestingAccount): Promise; -} diff --git a/packages/proto/types/codegen/cosmos/vesting/v1beta1/vesting.d.ts b/packages/proto/types/codegen/cosmos/vesting/v1beta1/vesting.d.ts deleted file mode 100644 index bf81d4b6..00000000 --- a/packages/proto/types/codegen/cosmos/vesting/v1beta1/vesting.d.ts +++ /dev/null @@ -1,136 +0,0 @@ -import { BaseAccount, BaseAccountSDKType } from "../../auth/v1beta1/auth"; -import { Coin, CoinSDKType } from "../../base/v1beta1/coin"; -import { Long, DeepPartial } from "../../../helpers"; -import * as _m0 from "protobufjs/minimal"; -/** - * BaseVestingAccount implements the VestingAccount interface. It contains all - * the necessary fields needed for any vesting account implementation. - */ -export interface BaseVestingAccount { - baseAccount: BaseAccount; - originalVesting: Coin[]; - delegatedFree: Coin[]; - delegatedVesting: Coin[]; - endTime: Long; -} -/** - * BaseVestingAccount implements the VestingAccount interface. It contains all - * the necessary fields needed for any vesting account implementation. - */ -export interface BaseVestingAccountSDKType { - base_account: BaseAccountSDKType; - original_vesting: CoinSDKType[]; - delegated_free: CoinSDKType[]; - delegated_vesting: CoinSDKType[]; - end_time: Long; -} -/** - * ContinuousVestingAccount implements the VestingAccount interface. It - * continuously vests by unlocking coins linearly with respect to time. - */ -export interface ContinuousVestingAccount { - baseVestingAccount: BaseVestingAccount; - startTime: Long; -} -/** - * ContinuousVestingAccount implements the VestingAccount interface. It - * continuously vests by unlocking coins linearly with respect to time. - */ -export interface ContinuousVestingAccountSDKType { - base_vesting_account: BaseVestingAccountSDKType; - start_time: Long; -} -/** - * DelayedVestingAccount implements the VestingAccount interface. It vests all - * coins after a specific time, but non prior. In other words, it keeps them - * locked until a specified time. - */ -export interface DelayedVestingAccount { - baseVestingAccount: BaseVestingAccount; -} -/** - * DelayedVestingAccount implements the VestingAccount interface. It vests all - * coins after a specific time, but non prior. In other words, it keeps them - * locked until a specified time. - */ -export interface DelayedVestingAccountSDKType { - base_vesting_account: BaseVestingAccountSDKType; -} -/** Period defines a length of time and amount of coins that will vest. */ -export interface Period { - length: Long; - amount: Coin[]; -} -/** Period defines a length of time and amount of coins that will vest. */ -export interface PeriodSDKType { - length: Long; - amount: CoinSDKType[]; -} -/** - * PeriodicVestingAccount implements the VestingAccount interface. It - * periodically vests by unlocking coins during each specified period. - */ -export interface PeriodicVestingAccount { - baseVestingAccount: BaseVestingAccount; - startTime: Long; - vestingPeriods: Period[]; -} -/** - * PeriodicVestingAccount implements the VestingAccount interface. It - * periodically vests by unlocking coins during each specified period. - */ -export interface PeriodicVestingAccountSDKType { - base_vesting_account: BaseVestingAccountSDKType; - start_time: Long; - vesting_periods: PeriodSDKType[]; -} -/** - * PermanentLockedAccount implements the VestingAccount interface. It does - * not ever release coins, locking them indefinitely. Coins in this account can - * still be used for delegating and for governance votes even while locked. - * - * Since: cosmos-sdk 0.43 - */ -export interface PermanentLockedAccount { - baseVestingAccount: BaseVestingAccount; -} -/** - * PermanentLockedAccount implements the VestingAccount interface. It does - * not ever release coins, locking them indefinitely. Coins in this account can - * still be used for delegating and for governance votes even while locked. - * - * Since: cosmos-sdk 0.43 - */ -export interface PermanentLockedAccountSDKType { - base_vesting_account: BaseVestingAccountSDKType; -} -export declare const BaseVestingAccount: { - encode(message: BaseVestingAccount, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): BaseVestingAccount; - fromPartial(object: DeepPartial): BaseVestingAccount; -}; -export declare const ContinuousVestingAccount: { - encode(message: ContinuousVestingAccount, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): ContinuousVestingAccount; - fromPartial(object: DeepPartial): ContinuousVestingAccount; -}; -export declare const DelayedVestingAccount: { - encode(message: DelayedVestingAccount, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): DelayedVestingAccount; - fromPartial(object: DeepPartial): DelayedVestingAccount; -}; -export declare const Period: { - encode(message: Period, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): Period; - fromPartial(object: DeepPartial): Period; -}; -export declare const PeriodicVestingAccount: { - encode(message: PeriodicVestingAccount, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): PeriodicVestingAccount; - fromPartial(object: DeepPartial): PeriodicVestingAccount; -}; -export declare const PermanentLockedAccount: { - encode(message: PermanentLockedAccount, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): PermanentLockedAccount; - fromPartial(object: DeepPartial): PermanentLockedAccount; -}; diff --git a/packages/proto/types/codegen/cosmwasm/bundle.d.ts b/packages/proto/types/codegen/cosmwasm/bundle.d.ts index ee958efd..ef4bbc7e 100644 --- a/packages/proto/types/codegen/cosmwasm/bundle.d.ts +++ b/packages/proto/types/codegen/cosmwasm/bundle.d.ts @@ -1,100 +1,115 @@ -import * as _94 from "./wasm/v1/genesis"; -import * as _95 from "./wasm/v1/ibc"; -import * as _96 from "./wasm/v1/proposal"; -import * as _97 from "./wasm/v1/query"; -import * as _98 from "./wasm/v1/tx"; -import * as _99 from "./wasm/v1/types"; -import * as _227 from "./wasm/v1/query.lcd"; +import * as _44 from "./wasm/v1/genesis"; +import * as _45 from "./wasm/v1/ibc"; +import * as _46 from "./wasm/v1/proposal"; +import * as _47 from "./wasm/v1/query"; +import * as _48 from "./wasm/v1/tx"; +import * as _49 from "./wasm/v1/types"; +import * as _162 from "./wasm/v1/query.lcd"; +import * as _163 from "./wasm/v1/query.rpc.Query"; +import * as _164 from "./wasm/v1/tx.rpc.msg"; export declare namespace cosmwasm { namespace wasm { const v1: { - LCDQueryClient: typeof _227.LCDQueryClient; + MsgClientImpl: typeof _164.MsgClientImpl; + QueryClientImpl: typeof _163.QueryClientImpl; + createRpcQueryExtension: (base: import("@cosmjs/stargate").QueryClient) => { + contractInfo(request: _47.QueryContractInfoRequest): Promise<_47.QueryContractInfoResponse>; + contractHistory(request: _47.QueryContractHistoryRequest): Promise<_47.QueryContractHistoryResponse>; + contractsByCode(request: _47.QueryContractsByCodeRequest): Promise<_47.QueryContractsByCodeResponse>; + allContractState(request: _47.QueryAllContractStateRequest): Promise<_47.QueryAllContractStateResponse>; + rawContractState(request: _47.QueryRawContractStateRequest): Promise<_47.QueryRawContractStateResponse>; + smartContractState(request: _47.QuerySmartContractStateRequest): Promise<_47.QuerySmartContractStateResponse>; + code(request: _47.QueryCodeRequest): Promise<_47.QueryCodeResponse>; + codes(request?: _47.QueryCodesRequest): Promise<_47.QueryCodesResponse>; + pinnedCodes(request?: _47.QueryPinnedCodesRequest): Promise<_47.QueryPinnedCodesResponse>; + }; + LCDQueryClient: typeof _162.LCDQueryClient; registry: readonly [string, import("@cosmjs/proto-signing").GeneratedType][]; load: (protoRegistry: import("@cosmjs/proto-signing").Registry) => void; MessageComposer: { encoded: { - storeCode(value: _98.MsgStoreCode): { + storeCode(value: _48.MsgStoreCode): { typeUrl: string; value: Uint8Array; }; - instantiateContract(value: _98.MsgInstantiateContract): { + instantiateContract(value: _48.MsgInstantiateContract): { typeUrl: string; value: Uint8Array; }; - executeContract(value: _98.MsgExecuteContract): { + executeContract(value: _48.MsgExecuteContract): { typeUrl: string; value: Uint8Array; }; - migrateContract(value: _98.MsgMigrateContract): { + migrateContract(value: _48.MsgMigrateContract): { typeUrl: string; value: Uint8Array; }; - updateAdmin(value: _98.MsgUpdateAdmin): { + updateAdmin(value: _48.MsgUpdateAdmin): { typeUrl: string; value: Uint8Array; }; - clearAdmin(value: _98.MsgClearAdmin): { + clearAdmin(value: _48.MsgClearAdmin): { typeUrl: string; value: Uint8Array; }; }; withTypeUrl: { - storeCode(value: _98.MsgStoreCode): { + storeCode(value: _48.MsgStoreCode): { typeUrl: string; - value: _98.MsgStoreCode; + value: _48.MsgStoreCode; }; - instantiateContract(value: _98.MsgInstantiateContract): { + instantiateContract(value: _48.MsgInstantiateContract): { typeUrl: string; - value: _98.MsgInstantiateContract; + value: _48.MsgInstantiateContract; }; - executeContract(value: _98.MsgExecuteContract): { + executeContract(value: _48.MsgExecuteContract): { typeUrl: string; - value: _98.MsgExecuteContract; + value: _48.MsgExecuteContract; }; - migrateContract(value: _98.MsgMigrateContract): { + migrateContract(value: _48.MsgMigrateContract): { typeUrl: string; - value: _98.MsgMigrateContract; + value: _48.MsgMigrateContract; }; - updateAdmin(value: _98.MsgUpdateAdmin): { + updateAdmin(value: _48.MsgUpdateAdmin): { typeUrl: string; - value: _98.MsgUpdateAdmin; + value: _48.MsgUpdateAdmin; }; - clearAdmin(value: _98.MsgClearAdmin): { + clearAdmin(value: _48.MsgClearAdmin): { typeUrl: string; - value: _98.MsgClearAdmin; + value: _48.MsgClearAdmin; }; }; fromPartial: { - storeCode(value: _98.MsgStoreCode): { + storeCode(value: _48.MsgStoreCode): { typeUrl: string; - value: _98.MsgStoreCode; + value: _48.MsgStoreCode; }; - instantiateContract(value: _98.MsgInstantiateContract): { + instantiateContract(value: _48.MsgInstantiateContract): { typeUrl: string; - value: _98.MsgInstantiateContract; + value: _48.MsgInstantiateContract; }; - executeContract(value: _98.MsgExecuteContract): { + executeContract(value: _48.MsgExecuteContract): { typeUrl: string; - value: _98.MsgExecuteContract; + value: _48.MsgExecuteContract; }; - migrateContract(value: _98.MsgMigrateContract): { + migrateContract(value: _48.MsgMigrateContract): { typeUrl: string; - value: _98.MsgMigrateContract; + value: _48.MsgMigrateContract; }; - updateAdmin(value: _98.MsgUpdateAdmin): { + updateAdmin(value: _48.MsgUpdateAdmin): { typeUrl: string; - value: _98.MsgUpdateAdmin; + value: _48.MsgUpdateAdmin; }; - clearAdmin(value: _98.MsgClearAdmin): { + clearAdmin(value: _48.MsgClearAdmin): { typeUrl: string; - value: _98.MsgClearAdmin; + value: _48.MsgClearAdmin; }; }; }; AminoConverter: { "/cosmwasm.wasm.v1.MsgStoreCode": { aminoType: string; - toAmino: ({ sender, wasmByteCode, instantiatePermission }: _98.MsgStoreCode) => { + toAmino: ({ sender, wasmByteCode, instantiatePermission }: _48.MsgStoreCode) => { sender: string; wasm_byte_code: string; instantiate_permission: { @@ -109,11 +124,11 @@ export declare namespace cosmwasm { permission: number; address: string; }; - }) => _98.MsgStoreCode; + }) => _48.MsgStoreCode; }; "/cosmwasm.wasm.v1.MsgInstantiateContract": { aminoType: string; - toAmino: ({ sender, admin, codeId, label, msg, funds }: _98.MsgInstantiateContract) => { + toAmino: ({ sender, admin, codeId, label, msg, funds }: _48.MsgInstantiateContract) => { sender: string; admin: string; code_id: string; @@ -134,11 +149,11 @@ export declare namespace cosmwasm { denom: string; amount: string; }[]; - }) => _98.MsgInstantiateContract; + }) => _48.MsgInstantiateContract; }; "/cosmwasm.wasm.v1.MsgExecuteContract": { aminoType: string; - toAmino: ({ sender, contract, msg, funds }: _98.MsgExecuteContract) => { + toAmino: ({ sender, contract, msg, funds }: _48.MsgExecuteContract) => { sender: string; contract: string; msg: Uint8Array; @@ -155,11 +170,11 @@ export declare namespace cosmwasm { denom: string; amount: string; }[]; - }) => _98.MsgExecuteContract; + }) => _48.MsgExecuteContract; }; "/cosmwasm.wasm.v1.MsgMigrateContract": { aminoType: string; - toAmino: ({ sender, contract, codeId, msg }: _98.MsgMigrateContract) => { + toAmino: ({ sender, contract, codeId, msg }: _48.MsgMigrateContract) => { sender: string; contract: string; code_id: string; @@ -170,11 +185,11 @@ export declare namespace cosmwasm { contract: string; code_id: string; msg: Uint8Array; - }) => _98.MsgMigrateContract; + }) => _48.MsgMigrateContract; }; "/cosmwasm.wasm.v1.MsgUpdateAdmin": { aminoType: string; - toAmino: ({ sender, newAdmin, contract }: _98.MsgUpdateAdmin) => { + toAmino: ({ sender, newAdmin, contract }: _48.MsgUpdateAdmin) => { sender: string; new_admin: string; contract: string; @@ -183,351 +198,466 @@ export declare namespace cosmwasm { sender: string; new_admin: string; contract: string; - }) => _98.MsgUpdateAdmin; + }) => _48.MsgUpdateAdmin; }; "/cosmwasm.wasm.v1.MsgClearAdmin": { aminoType: string; - toAmino: ({ sender, contract }: _98.MsgClearAdmin) => { + toAmino: ({ sender, contract }: _48.MsgClearAdmin) => { sender: string; contract: string; }; fromAmino: ({ sender, contract }: { sender: string; contract: string; - }) => _98.MsgClearAdmin; + }) => _48.MsgClearAdmin; }; }; - accessTypeFromJSON(object: any): _99.AccessType; - accessTypeToJSON(object: _99.AccessType): string; - contractCodeHistoryOperationTypeFromJSON(object: any): _99.ContractCodeHistoryOperationType; - contractCodeHistoryOperationTypeToJSON(object: _99.ContractCodeHistoryOperationType): string; - AccessType: typeof _99.AccessType; - AccessTypeSDKType: typeof _99.AccessType; - ContractCodeHistoryOperationType: typeof _99.ContractCodeHistoryOperationType; - ContractCodeHistoryOperationTypeSDKType: typeof _99.ContractCodeHistoryOperationType; + accessTypeFromJSON(object: any): _49.AccessType; + accessTypeToJSON(object: _49.AccessType): string; + contractCodeHistoryOperationTypeFromJSON(object: any): _49.ContractCodeHistoryOperationType; + contractCodeHistoryOperationTypeToJSON(object: _49.ContractCodeHistoryOperationType): string; + AccessType: typeof _49.AccessType; + AccessTypeSDKType: typeof _49.AccessType; + ContractCodeHistoryOperationType: typeof _49.ContractCodeHistoryOperationType; + ContractCodeHistoryOperationTypeSDKType: typeof _49.ContractCodeHistoryOperationType; AccessTypeParam: { - encode(message: _99.AccessTypeParam, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _99.AccessTypeParam; - fromPartial(object: any): _99.AccessTypeParam; + encode(message: _49.AccessTypeParam, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _49.AccessTypeParam; + fromPartial(object: any): _49.AccessTypeParam; }; AccessConfig: { - encode(message: _99.AccessConfig, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _99.AccessConfig; - fromPartial(object: any): _99.AccessConfig; + encode(message: _49.AccessConfig, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _49.AccessConfig; + fromPartial(object: any): _49.AccessConfig; }; Params: { - encode(message: _99.Params, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _99.Params; - fromPartial(object: any): _99.Params; + encode(message: _49.Params, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _49.Params; + fromPartial(object: any): _49.Params; }; CodeInfo: { - encode(message: _99.CodeInfo, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _99.CodeInfo; - fromPartial(object: any): _99.CodeInfo; + encode(message: _49.CodeInfo, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _49.CodeInfo; + fromPartial(object: any): _49.CodeInfo; }; ContractInfo: { - encode(message: _99.ContractInfo, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _99.ContractInfo; - fromPartial(object: any): _99.ContractInfo; + encode(message: _49.ContractInfo, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _49.ContractInfo; + fromPartial(object: any): _49.ContractInfo; }; ContractCodeHistoryEntry: { - encode(message: _99.ContractCodeHistoryEntry, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _99.ContractCodeHistoryEntry; - fromPartial(object: any): _99.ContractCodeHistoryEntry; + encode(message: _49.ContractCodeHistoryEntry, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _49.ContractCodeHistoryEntry; + fromPartial(object: any): _49.ContractCodeHistoryEntry; }; AbsoluteTxPosition: { - encode(message: _99.AbsoluteTxPosition, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _99.AbsoluteTxPosition; - fromPartial(object: any): _99.AbsoluteTxPosition; + encode(message: _49.AbsoluteTxPosition, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _49.AbsoluteTxPosition; + fromPartial(object: any): _49.AbsoluteTxPosition; }; Model: { - encode(message: _99.Model, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _99.Model; - fromPartial(object: any): _99.Model; + encode(message: _49.Model, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _49.Model; + fromPartial(object: any): _49.Model; }; MsgStoreCode: { - encode(message: _98.MsgStoreCode, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _98.MsgStoreCode; - fromPartial(object: any): _98.MsgStoreCode; + encode(message: _48.MsgStoreCode, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _48.MsgStoreCode; + fromPartial(object: any): _48.MsgStoreCode; }; MsgStoreCodeResponse: { - encode(message: _98.MsgStoreCodeResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _98.MsgStoreCodeResponse; - fromPartial(object: any): _98.MsgStoreCodeResponse; + encode(message: _48.MsgStoreCodeResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _48.MsgStoreCodeResponse; + fromPartial(object: any): _48.MsgStoreCodeResponse; }; MsgInstantiateContract: { - encode(message: _98.MsgInstantiateContract, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _98.MsgInstantiateContract; - fromPartial(object: any): _98.MsgInstantiateContract; + encode(message: _48.MsgInstantiateContract, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _48.MsgInstantiateContract; + fromPartial(object: any): _48.MsgInstantiateContract; }; MsgInstantiateContractResponse: { - encode(message: _98.MsgInstantiateContractResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _98.MsgInstantiateContractResponse; - fromPartial(object: any): _98.MsgInstantiateContractResponse; + encode(message: _48.MsgInstantiateContractResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _48.MsgInstantiateContractResponse; + fromPartial(object: any): _48.MsgInstantiateContractResponse; }; MsgExecuteContract: { - encode(message: _98.MsgExecuteContract, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _98.MsgExecuteContract; - fromPartial(object: any): _98.MsgExecuteContract; + encode(message: _48.MsgExecuteContract, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _48.MsgExecuteContract; + fromPartial(object: any): _48.MsgExecuteContract; }; MsgExecuteContractResponse: { - encode(message: _98.MsgExecuteContractResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _98.MsgExecuteContractResponse; - fromPartial(object: any): _98.MsgExecuteContractResponse; + encode(message: _48.MsgExecuteContractResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _48.MsgExecuteContractResponse; + fromPartial(object: any): _48.MsgExecuteContractResponse; }; MsgMigrateContract: { - encode(message: _98.MsgMigrateContract, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _98.MsgMigrateContract; - fromPartial(object: any): _98.MsgMigrateContract; + encode(message: _48.MsgMigrateContract, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _48.MsgMigrateContract; + fromPartial(object: any): _48.MsgMigrateContract; }; MsgMigrateContractResponse: { - encode(message: _98.MsgMigrateContractResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _98.MsgMigrateContractResponse; - fromPartial(object: any): _98.MsgMigrateContractResponse; + encode(message: _48.MsgMigrateContractResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _48.MsgMigrateContractResponse; + fromPartial(object: any): _48.MsgMigrateContractResponse; }; MsgUpdateAdmin: { - encode(message: _98.MsgUpdateAdmin, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _98.MsgUpdateAdmin; - fromPartial(object: any): _98.MsgUpdateAdmin; + encode(message: _48.MsgUpdateAdmin, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _48.MsgUpdateAdmin; + fromPartial(object: any): _48.MsgUpdateAdmin; }; MsgUpdateAdminResponse: { - encode(_: _98.MsgUpdateAdminResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _98.MsgUpdateAdminResponse; - fromPartial(_: any): _98.MsgUpdateAdminResponse; + encode(_: _48.MsgUpdateAdminResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _48.MsgUpdateAdminResponse; + fromPartial(_: any): _48.MsgUpdateAdminResponse; }; MsgClearAdmin: { - encode(message: _98.MsgClearAdmin, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _98.MsgClearAdmin; - fromPartial(object: any): _98.MsgClearAdmin; + encode(message: _48.MsgClearAdmin, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _48.MsgClearAdmin; + fromPartial(object: any): _48.MsgClearAdmin; }; MsgClearAdminResponse: { - encode(_: _98.MsgClearAdminResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _98.MsgClearAdminResponse; - fromPartial(_: any): _98.MsgClearAdminResponse; + encode(_: _48.MsgClearAdminResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _48.MsgClearAdminResponse; + fromPartial(_: any): _48.MsgClearAdminResponse; }; QueryContractInfoRequest: { - encode(message: _97.QueryContractInfoRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _97.QueryContractInfoRequest; - fromPartial(object: any): _97.QueryContractInfoRequest; + encode(message: _47.QueryContractInfoRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _47.QueryContractInfoRequest; + fromPartial(object: any): _47.QueryContractInfoRequest; }; QueryContractInfoResponse: { - encode(message: _97.QueryContractInfoResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _97.QueryContractInfoResponse; - fromPartial(object: any): _97.QueryContractInfoResponse; + encode(message: _47.QueryContractInfoResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _47.QueryContractInfoResponse; + fromPartial(object: any): _47.QueryContractInfoResponse; }; QueryContractHistoryRequest: { - encode(message: _97.QueryContractHistoryRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _97.QueryContractHistoryRequest; - fromPartial(object: any): _97.QueryContractHistoryRequest; + encode(message: _47.QueryContractHistoryRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _47.QueryContractHistoryRequest; + fromPartial(object: any): _47.QueryContractHistoryRequest; }; QueryContractHistoryResponse: { - encode(message: _97.QueryContractHistoryResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _97.QueryContractHistoryResponse; - fromPartial(object: any): _97.QueryContractHistoryResponse; + encode(message: _47.QueryContractHistoryResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _47.QueryContractHistoryResponse; + fromPartial(object: any): _47.QueryContractHistoryResponse; }; QueryContractsByCodeRequest: { - encode(message: _97.QueryContractsByCodeRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _97.QueryContractsByCodeRequest; - fromPartial(object: any): _97.QueryContractsByCodeRequest; + encode(message: _47.QueryContractsByCodeRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _47.QueryContractsByCodeRequest; + fromPartial(object: any): _47.QueryContractsByCodeRequest; }; QueryContractsByCodeResponse: { - encode(message: _97.QueryContractsByCodeResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _97.QueryContractsByCodeResponse; - fromPartial(object: any): _97.QueryContractsByCodeResponse; + encode(message: _47.QueryContractsByCodeResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _47.QueryContractsByCodeResponse; + fromPartial(object: any): _47.QueryContractsByCodeResponse; }; QueryAllContractStateRequest: { - encode(message: _97.QueryAllContractStateRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _97.QueryAllContractStateRequest; - fromPartial(object: any): _97.QueryAllContractStateRequest; + encode(message: _47.QueryAllContractStateRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _47.QueryAllContractStateRequest; + fromPartial(object: any): _47.QueryAllContractStateRequest; }; QueryAllContractStateResponse: { - encode(message: _97.QueryAllContractStateResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _97.QueryAllContractStateResponse; - fromPartial(object: any): _97.QueryAllContractStateResponse; + encode(message: _47.QueryAllContractStateResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _47.QueryAllContractStateResponse; + fromPartial(object: any): _47.QueryAllContractStateResponse; }; QueryRawContractStateRequest: { - encode(message: _97.QueryRawContractStateRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _97.QueryRawContractStateRequest; - fromPartial(object: any): _97.QueryRawContractStateRequest; + encode(message: _47.QueryRawContractStateRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _47.QueryRawContractStateRequest; + fromPartial(object: any): _47.QueryRawContractStateRequest; }; QueryRawContractStateResponse: { - encode(message: _97.QueryRawContractStateResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _97.QueryRawContractStateResponse; - fromPartial(object: any): _97.QueryRawContractStateResponse; + encode(message: _47.QueryRawContractStateResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _47.QueryRawContractStateResponse; + fromPartial(object: any): _47.QueryRawContractStateResponse; }; QuerySmartContractStateRequest: { - encode(message: _97.QuerySmartContractStateRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _97.QuerySmartContractStateRequest; - fromPartial(object: any): _97.QuerySmartContractStateRequest; + encode(message: _47.QuerySmartContractStateRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _47.QuerySmartContractStateRequest; + fromPartial(object: any): _47.QuerySmartContractStateRequest; }; QuerySmartContractStateResponse: { - encode(message: _97.QuerySmartContractStateResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _97.QuerySmartContractStateResponse; - fromPartial(object: any): _97.QuerySmartContractStateResponse; + encode(message: _47.QuerySmartContractStateResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _47.QuerySmartContractStateResponse; + fromPartial(object: any): _47.QuerySmartContractStateResponse; }; QueryCodeRequest: { - encode(message: _97.QueryCodeRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _97.QueryCodeRequest; - fromPartial(object: any): _97.QueryCodeRequest; + encode(message: _47.QueryCodeRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _47.QueryCodeRequest; + fromPartial(object: any): _47.QueryCodeRequest; }; CodeInfoResponse: { - encode(message: _97.CodeInfoResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _97.CodeInfoResponse; - fromPartial(object: any): _97.CodeInfoResponse; + encode(message: _47.CodeInfoResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _47.CodeInfoResponse; + fromPartial(object: any): _47.CodeInfoResponse; }; QueryCodeResponse: { - encode(message: _97.QueryCodeResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _97.QueryCodeResponse; - fromPartial(object: any): _97.QueryCodeResponse; + encode(message: _47.QueryCodeResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _47.QueryCodeResponse; + fromPartial(object: any): _47.QueryCodeResponse; }; QueryCodesRequest: { - encode(message: _97.QueryCodesRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _97.QueryCodesRequest; - fromPartial(object: any): _97.QueryCodesRequest; + encode(message: _47.QueryCodesRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _47.QueryCodesRequest; + fromPartial(object: any): _47.QueryCodesRequest; }; QueryCodesResponse: { - encode(message: _97.QueryCodesResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _97.QueryCodesResponse; - fromPartial(object: any): _97.QueryCodesResponse; + encode(message: _47.QueryCodesResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _47.QueryCodesResponse; + fromPartial(object: any): _47.QueryCodesResponse; }; QueryPinnedCodesRequest: { - encode(message: _97.QueryPinnedCodesRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _97.QueryPinnedCodesRequest; - fromPartial(object: any): _97.QueryPinnedCodesRequest; + encode(message: _47.QueryPinnedCodesRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _47.QueryPinnedCodesRequest; + fromPartial(object: any): _47.QueryPinnedCodesRequest; }; QueryPinnedCodesResponse: { - encode(message: _97.QueryPinnedCodesResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _97.QueryPinnedCodesResponse; - fromPartial(object: any): _97.QueryPinnedCodesResponse; + encode(message: _47.QueryPinnedCodesResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _47.QueryPinnedCodesResponse; + fromPartial(object: any): _47.QueryPinnedCodesResponse; }; StoreCodeProposal: { - encode(message: _96.StoreCodeProposal, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _96.StoreCodeProposal; - fromPartial(object: any): _96.StoreCodeProposal; + encode(message: _46.StoreCodeProposal, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _46.StoreCodeProposal; + fromPartial(object: any): _46.StoreCodeProposal; }; InstantiateContractProposal: { - encode(message: _96.InstantiateContractProposal, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _96.InstantiateContractProposal; - fromPartial(object: any): _96.InstantiateContractProposal; + encode(message: _46.InstantiateContractProposal, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _46.InstantiateContractProposal; + fromPartial(object: any): _46.InstantiateContractProposal; }; MigrateContractProposal: { - encode(message: _96.MigrateContractProposal, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _96.MigrateContractProposal; - fromPartial(object: any): _96.MigrateContractProposal; + encode(message: _46.MigrateContractProposal, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _46.MigrateContractProposal; + fromPartial(object: any): _46.MigrateContractProposal; }; SudoContractProposal: { - encode(message: _96.SudoContractProposal, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _96.SudoContractProposal; - fromPartial(object: any): _96.SudoContractProposal; + encode(message: _46.SudoContractProposal, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _46.SudoContractProposal; + fromPartial(object: any): _46.SudoContractProposal; }; ExecuteContractProposal: { - encode(message: _96.ExecuteContractProposal, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _96.ExecuteContractProposal; - fromPartial(object: any): _96.ExecuteContractProposal; + encode(message: _46.ExecuteContractProposal, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _46.ExecuteContractProposal; + fromPartial(object: any): _46.ExecuteContractProposal; }; UpdateAdminProposal: { - encode(message: _96.UpdateAdminProposal, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _96.UpdateAdminProposal; - fromPartial(object: any): _96.UpdateAdminProposal; + encode(message: _46.UpdateAdminProposal, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _46.UpdateAdminProposal; + fromPartial(object: any): _46.UpdateAdminProposal; }; ClearAdminProposal: { - encode(message: _96.ClearAdminProposal, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _96.ClearAdminProposal; - fromPartial(object: any): _96.ClearAdminProposal; + encode(message: _46.ClearAdminProposal, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _46.ClearAdminProposal; + fromPartial(object: any): _46.ClearAdminProposal; }; PinCodesProposal: { - encode(message: _96.PinCodesProposal, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _96.PinCodesProposal; - fromPartial(object: any): _96.PinCodesProposal; + encode(message: _46.PinCodesProposal, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _46.PinCodesProposal; + fromPartial(object: any): _46.PinCodesProposal; }; UnpinCodesProposal: { - encode(message: _96.UnpinCodesProposal, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _96.UnpinCodesProposal; - fromPartial(object: any): _96.UnpinCodesProposal; + encode(message: _46.UnpinCodesProposal, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _46.UnpinCodesProposal; + fromPartial(object: any): _46.UnpinCodesProposal; }; MsgIBCSend: { - encode(message: _95.MsgIBCSend, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _95.MsgIBCSend; - fromPartial(object: any): _95.MsgIBCSend; + encode(message: _45.MsgIBCSend, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _45.MsgIBCSend; + fromPartial(object: any): _45.MsgIBCSend; }; MsgIBCCloseChannel: { - encode(message: _95.MsgIBCCloseChannel, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _95.MsgIBCCloseChannel; - fromPartial(object: any): _95.MsgIBCCloseChannel; + encode(message: _45.MsgIBCCloseChannel, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _45.MsgIBCCloseChannel; + fromPartial(object: any): _45.MsgIBCCloseChannel; }; GenesisState: { - encode(message: _94.GenesisState, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _94.GenesisState; - fromPartial(object: any): _94.GenesisState; + encode(message: _44.GenesisState, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _44.GenesisState; + fromPartial(object: any): _44.GenesisState; }; GenesisState_GenMsgs: { - encode(message: _94.GenesisState_GenMsgs, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _94.GenesisState_GenMsgs; - fromPartial(object: any): _94.GenesisState_GenMsgs; + encode(message: _44.GenesisState_GenMsgs, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _44.GenesisState_GenMsgs; + fromPartial(object: any): _44.GenesisState_GenMsgs; }; Code: { - encode(message: _94.Code, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _94.Code; - fromPartial(object: any): _94.Code; + encode(message: _44.Code, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _44.Code; + fromPartial(object: any): _44.Code; }; Contract: { - encode(message: _94.Contract, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _94.Contract; - fromPartial(object: any): _94.Contract; + encode(message: _44.Contract, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _44.Contract; + fromPartial(object: any): _44.Contract; }; Sequence: { - encode(message: _94.Sequence, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _94.Sequence; - fromPartial(object: any): _94.Sequence; + encode(message: _44.Sequence, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _44.Sequence; + fromPartial(object: any): _44.Sequence; }; }; } const ClientFactory: { - createLCDClient: ({ restEndpoint }: { - restEndpoint: string; + createRPCMsgClient: ({ rpc }: { + rpc: import("../helpers").Rpc; + }) => Promise<{ + cosmos: { + authz: { + v1beta1: import("../cosmos/authz/v1beta1/tx.rpc.msg").MsgClientImpl; + }; + bank: { + v1beta1: import("../cosmos/bank/v1beta1/tx.rpc.msg").MsgClientImpl; + }; + distribution: { + v1beta1: import("../cosmos/distribution/v1beta1/tx.rpc.msg").MsgClientImpl; + }; + gov: { + v1beta1: import("../cosmos/gov/v1beta1/tx.rpc.msg").MsgClientImpl; + }; + staking: { + v1beta1: import("../cosmos/staking/v1beta1/tx.rpc.msg").MsgClientImpl; + }; + upgrade: { + v1beta1: import("../cosmos/upgrade/v1beta1/tx.rpc.msg").MsgClientImpl; + }; + }; + cosmwasm: { + wasm: { + v1: _164.MsgClientImpl; + }; + }; + }>; + createRPCQueryClient: ({ rpcEndpoint }: { + rpcEndpoint: string | import("@cosmjs/tendermint-rpc").HttpEndpoint; }) => Promise<{ cosmos: { auth: { - v1beta1: import("../cosmos/auth/v1beta1/query.lcd").LCDQueryClient; + v1beta1: { + accounts(request?: import("../cosmos/auth/v1beta1/query").QueryAccountsRequest): Promise; + account(request: import("../cosmos/auth/v1beta1/query").QueryAccountRequest): Promise; + params(request?: import("../cosmos/auth/v1beta1/query").QueryParamsRequest): Promise; + moduleAccounts(request?: import("../cosmos/auth/v1beta1/query").QueryModuleAccountsRequest): Promise; + bech32Prefix(request?: import("../cosmos/auth/v1beta1/query").Bech32PrefixRequest): Promise; + addressBytesToString(request: import("../cosmos/auth/v1beta1/query").AddressBytesToStringRequest): Promise; + addressStringToBytes(request: import("../cosmos/auth/v1beta1/query").AddressStringToBytesRequest): Promise; + }; }; authz: { - v1beta1: import("../cosmos/authz/v1beta1/query.lcd").LCDQueryClient; + v1beta1: { + grants(request: import("../cosmos/authz/v1beta1/query").QueryGrantsRequest): Promise; + granterGrants(request: import("../cosmos/authz/v1beta1/query").QueryGranterGrantsRequest): Promise; + granteeGrants(request: import("../cosmos/authz/v1beta1/query").QueryGranteeGrantsRequest): Promise; + }; }; bank: { - v1beta1: import("../cosmos/bank/v1beta1/query.lcd").LCDQueryClient; - }; - base: { - tendermint: { - v1beta1: import("../cosmos/base/tendermint/v1beta1/query.lcd").LCDQueryClient; + v1beta1: { + balance(request: import("../cosmos/bank/v1beta1/query").QueryBalanceRequest): Promise; + allBalances(request: import("../cosmos/bank/v1beta1/query").QueryAllBalancesRequest): Promise; + spendableBalances(request: import("../cosmos/bank/v1beta1/query").QuerySpendableBalancesRequest): Promise; + totalSupply(request?: import("../cosmos/bank/v1beta1/query").QueryTotalSupplyRequest): Promise; + supplyOf(request: import("../cosmos/bank/v1beta1/query").QuerySupplyOfRequest): Promise; + params(request?: import("../cosmos/bank/v1beta1/query").QueryParamsRequest): Promise; + denomMetadata(request: import("../cosmos/bank/v1beta1/query").QueryDenomMetadataRequest): Promise; + denomsMetadata(request?: import("../cosmos/bank/v1beta1/query").QueryDenomsMetadataRequest): Promise; + denomOwners(request: import("../cosmos/bank/v1beta1/query").QueryDenomOwnersRequest): Promise; }; }; distribution: { - v1beta1: import("../cosmos/distribution/v1beta1/query.lcd").LCDQueryClient; + v1beta1: { + params(request?: import("../cosmos/distribution/v1beta1/query").QueryParamsRequest): Promise; + validatorOutstandingRewards(request: import("../cosmos/distribution/v1beta1/query").QueryValidatorOutstandingRewardsRequest): Promise; + validatorCommission(request: import("../cosmos/distribution/v1beta1/query").QueryValidatorCommissionRequest): Promise; + validatorSlashes(request: import("../cosmos/distribution/v1beta1/query").QueryValidatorSlashesRequest): Promise; + delegationRewards(request: import("../cosmos/distribution/v1beta1/query").QueryDelegationRewardsRequest): Promise; + delegationTotalRewards(request: import("../cosmos/distribution/v1beta1/query").QueryDelegationTotalRewardsRequest): Promise; + delegatorValidators(request: import("../cosmos/distribution/v1beta1/query").QueryDelegatorValidatorsRequest): Promise; + delegatorWithdrawAddress(request: import("../cosmos/distribution/v1beta1/query").QueryDelegatorWithdrawAddressRequest): Promise; + communityPool(request?: import("../cosmos/distribution/v1beta1/query").QueryCommunityPoolRequest): Promise; + }; + }; + gov: { + v1beta1: { + proposal(request: import("../cosmos/gov/v1beta1/query").QueryProposalRequest): Promise; + proposals(request: import("../cosmos/gov/v1beta1/query").QueryProposalsRequest): Promise; + vote(request: import("../cosmos/gov/v1beta1/query").QueryVoteRequest): Promise; + votes(request: import("../cosmos/gov/v1beta1/query").QueryVotesRequest): Promise; + params(request: import("../cosmos/gov/v1beta1/query").QueryParamsRequest): Promise; + deposit(request: import("../cosmos/gov/v1beta1/query").QueryDepositRequest): Promise; + deposits(request: import("../cosmos/gov/v1beta1/query").QueryDepositsRequest): Promise; + tallyResult(request: import("../cosmos/gov/v1beta1/query").QueryTallyResultRequest): Promise; + }; }; - evidence: { - v1beta1: import("../cosmos/evidence/v1beta1/query.lcd").LCDQueryClient; + staking: { + v1beta1: { + validators(request: import("../cosmos/staking/v1beta1/query").QueryValidatorsRequest): Promise; + validator(request: import("../cosmos/staking/v1beta1/query").QueryValidatorRequest): Promise; + validatorDelegations(request: import("../cosmos/staking/v1beta1/query").QueryValidatorDelegationsRequest): Promise; + validatorUnbondingDelegations(request: import("../cosmos/staking/v1beta1/query").QueryValidatorUnbondingDelegationsRequest): Promise; + delegation(request: import("../cosmos/staking/v1beta1/query").QueryDelegationRequest): Promise; + unbondingDelegation(request: import("../cosmos/staking/v1beta1/query").QueryUnbondingDelegationRequest): Promise; + delegatorDelegations(request: import("../cosmos/staking/v1beta1/query").QueryDelegatorDelegationsRequest): Promise; + delegatorUnbondingDelegations(request: import("../cosmos/staking/v1beta1/query").QueryDelegatorUnbondingDelegationsRequest): Promise; + redelegations(request: import("../cosmos/staking/v1beta1/query").QueryRedelegationsRequest): Promise; + delegatorValidators(request: import("../cosmos/staking/v1beta1/query").QueryDelegatorValidatorsRequest): Promise; + delegatorValidator(request: import("../cosmos/staking/v1beta1/query").QueryDelegatorValidatorRequest): Promise; + historicalInfo(request: import("../cosmos/staking/v1beta1/query").QueryHistoricalInfoRequest): Promise; + pool(request?: import("../cosmos/staking/v1beta1/query").QueryPoolRequest): Promise; + params(request?: import("../cosmos/staking/v1beta1/query").QueryParamsRequest): Promise; + }; }; - feegrant: { - v1beta1: import("../cosmos/feegrant/v1beta1/query.lcd").LCDQueryClient; + tx: { + v1beta1: { + simulate(request: import("../cosmos/tx/v1beta1/service").SimulateRequest): Promise; + getTx(request: import("../cosmos/tx/v1beta1/service").GetTxRequest): Promise; + broadcastTx(request: import("../cosmos/tx/v1beta1/service").BroadcastTxRequest): Promise; + getTxsEvent(request: import("../cosmos/tx/v1beta1/service").GetTxsEventRequest): Promise; + getBlockWithTxs(request: import("../cosmos/tx/v1beta1/service").GetBlockWithTxsRequest): Promise; + }; }; - gov: { - v1: import("../cosmos/gov/v1/query.lcd").LCDQueryClient; - v1beta1: import("../cosmos/gov/v1beta1/query.lcd").LCDQueryClient; + upgrade: { + v1beta1: { + currentPlan(request?: import("../cosmos/upgrade/v1beta1/query").QueryCurrentPlanRequest): Promise; + appliedPlan(request: import("../cosmos/upgrade/v1beta1/query").QueryAppliedPlanRequest): Promise; + upgradedConsensusState(request: import("../cosmos/upgrade/v1beta1/query").QueryUpgradedConsensusStateRequest): Promise; + moduleVersions(request: import("../cosmos/upgrade/v1beta1/query").QueryModuleVersionsRequest): Promise; + authority(request?: import("../cosmos/upgrade/v1beta1/query").QueryAuthorityRequest): Promise; + }; }; - group: { - v1: import("../cosmos/group/v1/query.lcd").LCDQueryClient; + }; + cosmwasm: { + wasm: { + v1: { + contractInfo(request: _47.QueryContractInfoRequest): Promise<_47.QueryContractInfoResponse>; + contractHistory(request: _47.QueryContractHistoryRequest): Promise<_47.QueryContractHistoryResponse>; + contractsByCode(request: _47.QueryContractsByCodeRequest): Promise<_47.QueryContractsByCodeResponse>; + allContractState(request: _47.QueryAllContractStateRequest): Promise<_47.QueryAllContractStateResponse>; + rawContractState(request: _47.QueryRawContractStateRequest): Promise<_47.QueryRawContractStateResponse>; + smartContractState(request: _47.QuerySmartContractStateRequest): Promise<_47.QuerySmartContractStateResponse>; + code(request: _47.QueryCodeRequest): Promise<_47.QueryCodeResponse>; + codes(request?: _47.QueryCodesRequest): Promise<_47.QueryCodesResponse>; + pinnedCodes(request?: _47.QueryPinnedCodesRequest): Promise<_47.QueryPinnedCodesResponse>; + }; }; - mint: { - v1beta1: import("../cosmos/mint/v1beta1/query.lcd").LCDQueryClient; + }; + }>; + createLCDClient: ({ restEndpoint }: { + restEndpoint: string; + }) => Promise<{ + cosmos: { + auth: { + v1beta1: import("../cosmos/auth/v1beta1/query.lcd").LCDQueryClient; }; - nft: { - v1beta1: import("../cosmos/nft/v1beta1/query.lcd").LCDQueryClient; + authz: { + v1beta1: import("../cosmos/authz/v1beta1/query.lcd").LCDQueryClient; }; - params: { - v1beta1: import("../cosmos/params/v1beta1/query.lcd").LCDQueryClient; + bank: { + v1beta1: import("../cosmos/bank/v1beta1/query.lcd").LCDQueryClient; }; - slashing: { - v1beta1: import("../cosmos/slashing/v1beta1/query.lcd").LCDQueryClient; + distribution: { + v1beta1: import("../cosmos/distribution/v1beta1/query.lcd").LCDQueryClient; + }; + gov: { + v1beta1: import("../cosmos/gov/v1beta1/query.lcd").LCDQueryClient; }; staking: { v1beta1: import("../cosmos/staking/v1beta1/query.lcd").LCDQueryClient; @@ -541,7 +671,7 @@ export declare namespace cosmwasm { }; cosmwasm: { wasm: { - v1: _227.LCDQueryClient; + v1: _162.LCDQueryClient; }; }; }>; diff --git a/packages/proto/types/codegen/cosmwasm/lcd.d.ts b/packages/proto/types/codegen/cosmwasm/lcd.d.ts index be718295..db725eb2 100644 --- a/packages/proto/types/codegen/cosmwasm/lcd.d.ts +++ b/packages/proto/types/codegen/cosmwasm/lcd.d.ts @@ -11,39 +11,12 @@ export declare const createLCDClient: ({ restEndpoint }: { bank: { v1beta1: import("../cosmos/bank/v1beta1/query.lcd").LCDQueryClient; }; - base: { - tendermint: { - v1beta1: import("../cosmos/base/tendermint/v1beta1/query.lcd").LCDQueryClient; - }; - }; distribution: { v1beta1: import("../cosmos/distribution/v1beta1/query.lcd").LCDQueryClient; }; - evidence: { - v1beta1: import("../cosmos/evidence/v1beta1/query.lcd").LCDQueryClient; - }; - feegrant: { - v1beta1: import("../cosmos/feegrant/v1beta1/query.lcd").LCDQueryClient; - }; gov: { - v1: import("../cosmos/gov/v1/query.lcd").LCDQueryClient; v1beta1: import("../cosmos/gov/v1beta1/query.lcd").LCDQueryClient; }; - group: { - v1: import("../cosmos/group/v1/query.lcd").LCDQueryClient; - }; - mint: { - v1beta1: import("../cosmos/mint/v1beta1/query.lcd").LCDQueryClient; - }; - nft: { - v1beta1: import("../cosmos/nft/v1beta1/query.lcd").LCDQueryClient; - }; - params: { - v1beta1: import("../cosmos/params/v1beta1/query.lcd").LCDQueryClient; - }; - slashing: { - v1beta1: import("../cosmos/slashing/v1beta1/query.lcd").LCDQueryClient; - }; staking: { v1beta1: import("../cosmos/staking/v1beta1/query.lcd").LCDQueryClient; }; diff --git a/packages/proto/types/codegen/cosmwasm/rpc.query.d.ts b/packages/proto/types/codegen/cosmwasm/rpc.query.d.ts index 93d1c70e..5a757f96 100644 --- a/packages/proto/types/codegen/cosmwasm/rpc.query.d.ts +++ b/packages/proto/types/codegen/cosmwasm/rpc.query.d.ts @@ -1,12 +1,8 @@ +import { HttpEndpoint } from "@cosmjs/tendermint-rpc"; export declare const createRPCQueryClient: ({ rpcEndpoint }: { - rpcEndpoint: string; + rpcEndpoint: string | HttpEndpoint; }) => Promise<{ cosmos: { - app: { - v1alpha1: { - config(request?: import("../cosmos/app/v1alpha1/query").QueryConfigRequest): Promise; - }; - }; auth: { v1beta1: { accounts(request?: import("../cosmos/auth/v1beta1/query").QueryAccountsRequest): Promise; @@ -38,18 +34,6 @@ export declare const createRPCQueryClient: ({ rpcEndpoint }: { denomOwners(request: import("../cosmos/bank/v1beta1/query").QueryDenomOwnersRequest): Promise; }; }; - base: { - tendermint: { - v1beta1: { - getNodeInfo(request?: import("../cosmos/base/tendermint/v1beta1/query").GetNodeInfoRequest): Promise; - getSyncing(request?: import("../cosmos/base/tendermint/v1beta1/query").GetSyncingRequest): Promise; - getLatestBlock(request?: import("../cosmos/base/tendermint/v1beta1/query").GetLatestBlockRequest): Promise; - getBlockByHeight(request: import("../cosmos/base/tendermint/v1beta1/query").GetBlockByHeightRequest): Promise; - getLatestValidatorSet(request?: import("../cosmos/base/tendermint/v1beta1/query").GetLatestValidatorSetRequest): Promise; - getValidatorSetByHeight(request: import("../cosmos/base/tendermint/v1beta1/query").GetValidatorSetByHeightRequest): Promise; - }; - }; - }; distribution: { v1beta1: { params(request?: import("../cosmos/distribution/v1beta1/query").QueryParamsRequest): Promise; @@ -63,30 +47,7 @@ export declare const createRPCQueryClient: ({ rpcEndpoint }: { communityPool(request?: import("../cosmos/distribution/v1beta1/query").QueryCommunityPoolRequest): Promise; }; }; - evidence: { - v1beta1: { - evidence(request: import("../cosmos/evidence/v1beta1/query").QueryEvidenceRequest): Promise; - allEvidence(request?: import("../cosmos/evidence/v1beta1/query").QueryAllEvidenceRequest): Promise; - }; - }; - feegrant: { - v1beta1: { - allowance(request: import("../cosmos/feegrant/v1beta1/query").QueryAllowanceRequest): Promise; - allowances(request: import("../cosmos/feegrant/v1beta1/query").QueryAllowancesRequest): Promise; - allowancesByGranter(request: import("../cosmos/feegrant/v1beta1/query").QueryAllowancesByGranterRequest): Promise; - }; - }; gov: { - v1: { - proposal(request: import("../cosmos/gov/v1/query").QueryProposalRequest): Promise; - proposals(request: import("../cosmos/gov/v1/query").QueryProposalsRequest): Promise; - vote(request: import("../cosmos/gov/v1/query").QueryVoteRequest): Promise; - votes(request: import("../cosmos/gov/v1/query").QueryVotesRequest): Promise; - params(request: import("../cosmos/gov/v1/query").QueryParamsRequest): Promise; - deposit(request: import("../cosmos/gov/v1/query").QueryDepositRequest): Promise; - deposits(request: import("../cosmos/gov/v1/query").QueryDepositsRequest): Promise; - tallyResult(request: import("../cosmos/gov/v1/query").QueryTallyResultRequest): Promise; - }; v1beta1: { proposal(request: import("../cosmos/gov/v1beta1/query").QueryProposalRequest): Promise; proposals(request: import("../cosmos/gov/v1beta1/query").QueryProposalsRequest): Promise; @@ -98,54 +59,6 @@ export declare const createRPCQueryClient: ({ rpcEndpoint }: { tallyResult(request: import("../cosmos/gov/v1beta1/query").QueryTallyResultRequest): Promise; }; }; - group: { - v1: { - groupInfo(request: import("../cosmos/group/v1/query").QueryGroupInfoRequest): Promise; - groupPolicyInfo(request: import("../cosmos/group/v1/query").QueryGroupPolicyInfoRequest): Promise; - groupMembers(request: import("../cosmos/group/v1/query").QueryGroupMembersRequest): Promise; - groupsByAdmin(request: import("../cosmos/group/v1/query").QueryGroupsByAdminRequest): Promise; - groupPoliciesByGroup(request: import("../cosmos/group/v1/query").QueryGroupPoliciesByGroupRequest): Promise; - groupPoliciesByAdmin(request: import("../cosmos/group/v1/query").QueryGroupPoliciesByAdminRequest): Promise; - proposal(request: import("../cosmos/group/v1/query").QueryProposalRequest): Promise; - proposalsByGroupPolicy(request: import("../cosmos/group/v1/query").QueryProposalsByGroupPolicyRequest): Promise; - voteByProposalVoter(request: import("../cosmos/group/v1/query").QueryVoteByProposalVoterRequest): Promise; - votesByProposal(request: import("../cosmos/group/v1/query").QueryVotesByProposalRequest): Promise; - votesByVoter(request: import("../cosmos/group/v1/query").QueryVotesByVoterRequest): Promise; - groupsByMember(request: import("../cosmos/group/v1/query").QueryGroupsByMemberRequest): Promise; - tallyResult(request: import("../cosmos/group/v1/query").QueryTallyResultRequest): Promise; - }; - }; - mint: { - v1beta1: { - params(request?: import("../cosmos/mint/v1beta1/query").QueryParamsRequest): Promise; - inflation(request?: import("../cosmos/mint/v1beta1/query").QueryInflationRequest): Promise; - annualProvisions(request?: import("../cosmos/mint/v1beta1/query").QueryAnnualProvisionsRequest): Promise; - }; - }; - nft: { - v1beta1: { - balance(request: import("../cosmos/nft/v1beta1/query").QueryBalanceRequest): Promise; - owner(request: import("../cosmos/nft/v1beta1/query").QueryOwnerRequest): Promise; - supply(request: import("../cosmos/nft/v1beta1/query").QuerySupplyRequest): Promise; - nFTs(request: import("../cosmos/nft/v1beta1/query").QueryNFTsRequest): Promise; - nFT(request: import("../cosmos/nft/v1beta1/query").QueryNFTRequest): Promise; - class(request: import("../cosmos/nft/v1beta1/query").QueryClassRequest): Promise; - classes(request?: import("../cosmos/nft/v1beta1/query").QueryClassesRequest): Promise; - }; - }; - params: { - v1beta1: { - params(request: import("../cosmos/params/v1beta1/query").QueryParamsRequest): Promise; - subspaces(request?: import("../cosmos/params/v1beta1/query").QuerySubspacesRequest): Promise; - }; - }; - slashing: { - v1beta1: { - params(request?: import("../cosmos/slashing/v1beta1/query").QueryParamsRequest): Promise; - signingInfo(request: import("../cosmos/slashing/v1beta1/query").QuerySigningInfoRequest): Promise; - signingInfos(request?: import("../cosmos/slashing/v1beta1/query").QuerySigningInfosRequest): Promise; - }; - }; staking: { v1beta1: { validators(request: import("../cosmos/staking/v1beta1/query").QueryValidatorsRequest): Promise; diff --git a/packages/proto/types/codegen/cosmwasm/rpc.tx.d.ts b/packages/proto/types/codegen/cosmwasm/rpc.tx.d.ts index 4b6793e1..8c56d69a 100644 --- a/packages/proto/types/codegen/cosmwasm/rpc.tx.d.ts +++ b/packages/proto/types/codegen/cosmwasm/rpc.tx.d.ts @@ -1,4 +1,4 @@ -import { Rpc } from "@osmonauts/helpers"; +import { Rpc } from "../helpers"; export declare const createRPCMsgClient: ({ rpc }: { rpc: Rpc; }) => Promise<{ @@ -9,40 +9,18 @@ export declare const createRPCMsgClient: ({ rpc }: { bank: { v1beta1: import("../cosmos/bank/v1beta1/tx.rpc.msg").MsgClientImpl; }; - crisis: { - v1beta1: import("../cosmos/crisis/v1beta1/tx.rpc.msg").MsgClientImpl; - }; distribution: { v1beta1: import("../cosmos/distribution/v1beta1/tx.rpc.msg").MsgClientImpl; }; - evidence: { - v1beta1: import("../cosmos/evidence/v1beta1/tx.rpc.msg").MsgClientImpl; - }; - feegrant: { - v1beta1: import("../cosmos/feegrant/v1beta1/tx.rpc.msg").MsgClientImpl; - }; gov: { - v1: import("../cosmos/gov/v1/tx.rpc.msg").MsgClientImpl; v1beta1: import("../cosmos/gov/v1beta1/tx.rpc.msg").MsgClientImpl; }; - group: { - v1: import("../cosmos/group/v1/tx.rpc.msg").MsgClientImpl; - }; - nft: { - v1beta1: import("../cosmos/nft/v1beta1/tx.rpc.msg").MsgClientImpl; - }; - slashing: { - v1beta1: import("../cosmos/slashing/v1beta1/tx.rpc.msg").MsgClientImpl; - }; staking: { v1beta1: import("../cosmos/staking/v1beta1/tx.rpc.msg").MsgClientImpl; }; upgrade: { v1beta1: import("../cosmos/upgrade/v1beta1/tx.rpc.msg").MsgClientImpl; }; - vesting: { - v1beta1: import("../cosmos/vesting/v1beta1/tx.rpc.msg").MsgClientImpl; - }; }; cosmwasm: { wasm: { diff --git a/packages/proto/types/codegen/cosmwasm/wasm/v1/query.rpc.query.d.ts b/packages/proto/types/codegen/cosmwasm/wasm/v1/query.rpc.query.d.ts index e5da176e..06a1499b 100644 --- a/packages/proto/types/codegen/cosmwasm/wasm/v1/query.rpc.query.d.ts +++ b/packages/proto/types/codegen/cosmwasm/wasm/v1/query.rpc.query.d.ts @@ -1,16 +1,25 @@ -import { Rpc } from "@osmonauts/helpers"; +import { Rpc } from "../../../helpers"; import { QueryClient } from "@cosmjs/stargate"; import { QueryContractInfoRequest, QueryContractInfoResponse, QueryContractHistoryRequest, QueryContractHistoryResponse, QueryContractsByCodeRequest, QueryContractsByCodeResponse, QueryAllContractStateRequest, QueryAllContractStateResponse, QueryRawContractStateRequest, QueryRawContractStateResponse, QuerySmartContractStateRequest, QuerySmartContractStateResponse, QueryCodeRequest, QueryCodeResponse, QueryCodesRequest, QueryCodesResponse, QueryPinnedCodesRequest, QueryPinnedCodesResponse } from "./query"; -/** Query defines the RPC service */ +/** Query provides defines the gRPC querier service */ export interface Query { + /** ContractInfo gets the contract meta data */ contractInfo(request: QueryContractInfoRequest): Promise; + /** ContractHistory gets the contract code history */ contractHistory(request: QueryContractHistoryRequest): Promise; + /** ContractsByCode lists all smart contracts for a code id */ contractsByCode(request: QueryContractsByCodeRequest): Promise; + /** AllContractState gets all raw store data for a single contract */ allContractState(request: QueryAllContractStateRequest): Promise; + /** RawContractState gets single key from the raw store data of a contract */ rawContractState(request: QueryRawContractStateRequest): Promise; + /** SmartContractState get smart query result from the contract */ smartContractState(request: QuerySmartContractStateRequest): Promise; + /** Code gets the binary code and metadata for a singe wasm code */ code(request: QueryCodeRequest): Promise; + /** Codes gets the metadata for all stored wasm codes */ codes(request?: QueryCodesRequest): Promise; + /** PinnedCodes gets the pinned code ids */ pinnedCodes(request?: QueryPinnedCodesRequest): Promise; } export declare class QueryClientImpl implements Query { diff --git a/packages/proto/types/codegen/cosmwasm/wasm/v1/tx.rpc.msg.d.ts b/packages/proto/types/codegen/cosmwasm/wasm/v1/tx.rpc.msg.d.ts index 5d6e40d8..1adf97b0 100644 --- a/packages/proto/types/codegen/cosmwasm/wasm/v1/tx.rpc.msg.d.ts +++ b/packages/proto/types/codegen/cosmwasm/wasm/v1/tx.rpc.msg.d.ts @@ -1,12 +1,18 @@ -import { Rpc } from "@osmonauts/helpers"; +import { Rpc } from "../../../helpers"; import { MsgStoreCode, MsgStoreCodeResponse, MsgInstantiateContract, MsgInstantiateContractResponse, MsgExecuteContract, MsgExecuteContractResponse, MsgMigrateContract, MsgMigrateContractResponse, MsgUpdateAdmin, MsgUpdateAdminResponse, MsgClearAdmin, MsgClearAdminResponse } from "./tx"; -/** Msg defines the RPC service */ +/** Msg defines the wasm Msg service. */ export interface Msg { + /** StoreCode to submit Wasm code to the system */ storeCode(request: MsgStoreCode): Promise; + /** Instantiate creates a new smart contract instance for the given code id. */ instantiateContract(request: MsgInstantiateContract): Promise; + /** Execute submits the given message data to a smart contract */ executeContract(request: MsgExecuteContract): Promise; + /** Migrate runs a code upgrade/ downgrade for a smart contract */ migrateContract(request: MsgMigrateContract): Promise; + /** UpdateAdmin sets a new admin for a smart contract */ updateAdmin(request: MsgUpdateAdmin): Promise; + /** ClearAdmin removes any admin stored for a smart contract */ clearAdmin(request: MsgClearAdmin): Promise; } export declare class MsgClientImpl implements Msg { diff --git a/packages/proto/types/codegen/google/api/annotations.d.ts b/packages/proto/types/codegen/google/api/annotations.d.ts deleted file mode 100644 index cb0ff5c3..00000000 --- a/packages/proto/types/codegen/google/api/annotations.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/proto/types/codegen/google/api/http.d.ts b/packages/proto/types/codegen/google/api/http.d.ts deleted file mode 100644 index 7c8bfc6c..00000000 --- a/packages/proto/types/codegen/google/api/http.d.ts +++ /dev/null @@ -1,666 +0,0 @@ -import * as _m0 from "protobufjs/minimal"; -import { DeepPartial } from "../../helpers"; -/** - * Defines the HTTP configuration for an API service. It contains a list of - * [HttpRule][google.api.HttpRule], each specifying the mapping of an RPC method - * to one or more HTTP REST API methods. - */ -export interface Http { - /** - * A list of HTTP configuration rules that apply to individual API methods. - * - * **NOTE:** All service configuration rules follow "last one wins" order. - */ - rules: HttpRule[]; - /** - * When set to true, URL path parameters will be fully URI-decoded except in - * cases of single segment matches in reserved expansion, where "%2F" will be - * left encoded. - * - * The default behavior is to not decode RFC 6570 reserved characters in multi - * segment matches. - */ - fullyDecodeReservedExpansion: boolean; -} -/** - * Defines the HTTP configuration for an API service. It contains a list of - * [HttpRule][google.api.HttpRule], each specifying the mapping of an RPC method - * to one or more HTTP REST API methods. - */ -export interface HttpSDKType { - rules: HttpRuleSDKType[]; - fully_decode_reserved_expansion: boolean; -} -/** - * # gRPC Transcoding - * - * gRPC Transcoding is a feature for mapping between a gRPC method and one or - * more HTTP REST endpoints. It allows developers to build a single API service - * that supports both gRPC APIs and REST APIs. Many systems, including [Google - * APIs](https://github.com/googleapis/googleapis), - * [Cloud Endpoints](https://cloud.google.com/endpoints), [gRPC - * Gateway](https://github.com/grpc-ecosystem/grpc-gateway), - * and [Envoy](https://github.com/envoyproxy/envoy) proxy support this feature - * and use it for large scale production services. - * - * `HttpRule` defines the schema of the gRPC/REST mapping. The mapping specifies - * how different portions of the gRPC request message are mapped to the URL - * path, URL query parameters, and HTTP request body. It also controls how the - * gRPC response message is mapped to the HTTP response body. `HttpRule` is - * typically specified as an `google.api.http` annotation on the gRPC method. - * - * Each mapping specifies a URL path template and an HTTP method. The path - * template may refer to one or more fields in the gRPC request message, as long - * as each field is a non-repeated field with a primitive (non-message) type. - * The path template controls how fields of the request message are mapped to - * the URL path. - * - * Example: - * - * service Messaging { - * rpc GetMessage(GetMessageRequest) returns (Message) { - * option (google.api.http) = { - * get: "/v1/{name=messages/*}" - * }; - * } - * } - * message GetMessageRequest { - * string name = 1; // Mapped to URL path. - * } - * message Message { - * string text = 1; // The resource content. - * } - * - * This enables an HTTP REST to gRPC mapping as below: - * - * HTTP | gRPC - * -----|----- - * `GET /v1/messages/123456` | `GetMessage(name: "messages/123456")` - * - * Any fields in the request message which are not bound by the path template - * automatically become HTTP query parameters if there is no HTTP request body. - * For example: - * - * service Messaging { - * rpc GetMessage(GetMessageRequest) returns (Message) { - * option (google.api.http) = { - * get:"/v1/messages/{message_id}" - * }; - * } - * } - * message GetMessageRequest { - * message SubMessage { - * string subfield = 1; - * } - * string message_id = 1; // Mapped to URL path. - * int64 revision = 2; // Mapped to URL query parameter `revision`. - * SubMessage sub = 3; // Mapped to URL query parameter `sub.subfield`. - * } - * - * This enables a HTTP JSON to RPC mapping as below: - * - * HTTP | gRPC - * -----|----- - * `GET /v1/messages/123456?revision=2&sub.subfield=foo` | - * `GetMessage(message_id: "123456" revision: 2 sub: SubMessage(subfield: - * "foo"))` - * - * Note that fields which are mapped to URL query parameters must have a - * primitive type or a repeated primitive type or a non-repeated message type. - * In the case of a repeated type, the parameter can be repeated in the URL - * as `...?param=A¶m=B`. In the case of a message type, each field of the - * message is mapped to a separate parameter, such as - * `...?foo.a=A&foo.b=B&foo.c=C`. - * - * For HTTP methods that allow a request body, the `body` field - * specifies the mapping. Consider a REST update method on the - * message resource collection: - * - * service Messaging { - * rpc UpdateMessage(UpdateMessageRequest) returns (Message) { - * option (google.api.http) = { - * patch: "/v1/messages/{message_id}" - * body: "message" - * }; - * } - * } - * message UpdateMessageRequest { - * string message_id = 1; // mapped to the URL - * Message message = 2; // mapped to the body - * } - * - * The following HTTP JSON to RPC mapping is enabled, where the - * representation of the JSON in the request body is determined by - * protos JSON encoding: - * - * HTTP | gRPC - * -----|----- - * `PATCH /v1/messages/123456 { "text": "Hi!" }` | `UpdateMessage(message_id: - * "123456" message { text: "Hi!" })` - * - * The special name `*` can be used in the body mapping to define that - * every field not bound by the path template should be mapped to the - * request body. This enables the following alternative definition of - * the update method: - * - * service Messaging { - * rpc UpdateMessage(Message) returns (Message) { - * option (google.api.http) = { - * patch: "/v1/messages/{message_id}" - * body: "*" - * }; - * } - * } - * message Message { - * string message_id = 1; - * string text = 2; - * } - * - * - * The following HTTP JSON to RPC mapping is enabled: - * - * HTTP | gRPC - * -----|----- - * `PATCH /v1/messages/123456 { "text": "Hi!" }` | `UpdateMessage(message_id: - * "123456" text: "Hi!")` - * - * Note that when using `*` in the body mapping, it is not possible to - * have HTTP parameters, as all fields not bound by the path end in - * the body. This makes this option more rarely used in practice when - * defining REST APIs. The common usage of `*` is in custom methods - * which don't use the URL at all for transferring data. - * - * It is possible to define multiple HTTP methods for one RPC by using - * the `additional_bindings` option. Example: - * - * service Messaging { - * rpc GetMessage(GetMessageRequest) returns (Message) { - * option (google.api.http) = { - * get: "/v1/messages/{message_id}" - * additional_bindings { - * get: "/v1/users/{user_id}/messages/{message_id}" - * } - * }; - * } - * } - * message GetMessageRequest { - * string message_id = 1; - * string user_id = 2; - * } - * - * This enables the following two alternative HTTP JSON to RPC mappings: - * - * HTTP | gRPC - * -----|----- - * `GET /v1/messages/123456` | `GetMessage(message_id: "123456")` - * `GET /v1/users/me/messages/123456` | `GetMessage(user_id: "me" message_id: - * "123456")` - * - * ## Rules for HTTP mapping - * - * 1. Leaf request fields (recursive expansion nested messages in the request - * message) are classified into three categories: - * - Fields referred by the path template. They are passed via the URL path. - * - Fields referred by the [HttpRule.body][google.api.HttpRule.body]. They are passed via the HTTP - * request body. - * - All other fields are passed via the URL query parameters, and the - * parameter name is the field path in the request message. A repeated - * field can be represented as multiple query parameters under the same - * name. - * 2. If [HttpRule.body][google.api.HttpRule.body] is "*", there is no URL query parameter, all fields - * are passed via URL path and HTTP request body. - * 3. If [HttpRule.body][google.api.HttpRule.body] is omitted, there is no HTTP request body, all - * fields are passed via URL path and URL query parameters. - * - * ### Path template syntax - * - * Template = "/" Segments [ Verb ] ; - * Segments = Segment { "/" Segment } ; - * Segment = "*" | "**" | LITERAL | Variable ; - * Variable = "{" FieldPath [ "=" Segments ] "}" ; - * FieldPath = IDENT { "." IDENT } ; - * Verb = ":" LITERAL ; - * - * The syntax `*` matches a single URL path segment. The syntax `**` matches - * zero or more URL path segments, which must be the last part of the URL path - * except the `Verb`. - * - * The syntax `Variable` matches part of the URL path as specified by its - * template. A variable template must not contain other variables. If a variable - * matches a single path segment, its template may be omitted, e.g. `{var}` - * is equivalent to `{var=*}`. - * - * The syntax `LITERAL` matches literal text in the URL path. If the `LITERAL` - * contains any reserved character, such characters should be percent-encoded - * before the matching. - * - * If a variable contains exactly one path segment, such as `"{var}"` or - * `"{var=*}"`, when such a variable is expanded into a URL path on the client - * side, all characters except `[-_.~0-9a-zA-Z]` are percent-encoded. The - * server side does the reverse decoding. Such variables show up in the - * [Discovery - * Document](https://developers.google.com/discovery/v1/reference/apis) as - * `{var}`. - * - * If a variable contains multiple path segments, such as `"{var=foo/*}"` - * or `"{var=**}"`, when such a variable is expanded into a URL path on the - * client side, all characters except `[-_.~/0-9a-zA-Z]` are percent-encoded. - * The server side does the reverse decoding, except "%2F" and "%2f" are left - * unchanged. Such variables show up in the - * [Discovery - * Document](https://developers.google.com/discovery/v1/reference/apis) as - * `{+var}`. - * - * ## Using gRPC API Service Configuration - * - * gRPC API Service Configuration (service config) is a configuration language - * for configuring a gRPC service to become a user-facing product. The - * service config is simply the YAML representation of the `google.api.Service` - * proto message. - * - * As an alternative to annotating your proto file, you can configure gRPC - * transcoding in your service config YAML files. You do this by specifying a - * `HttpRule` that maps the gRPC method to a REST endpoint, achieving the same - * effect as the proto annotation. This can be particularly useful if you - * have a proto that is reused in multiple services. Note that any transcoding - * specified in the service config will override any matching transcoding - * configuration in the proto. - * - * Example: - * - * http: - * rules: - * # Selects a gRPC method and applies HttpRule to it. - * - selector: example.v1.Messaging.GetMessage - * get: /v1/messages/{message_id}/{sub.subfield} - * - * ## Special notes - * - * When gRPC Transcoding is used to map a gRPC to JSON REST endpoints, the - * proto to JSON conversion must follow the [proto3 - * specification](https://developers.google.com/protocol-buffers/docs/proto3#json). - * - * While the single segment variable follows the semantics of - * [RFC 6570](https://tools.ietf.org/html/rfc6570) Section 3.2.2 Simple String - * Expansion, the multi segment variable **does not** follow RFC 6570 Section - * 3.2.3 Reserved Expansion. The reason is that the Reserved Expansion - * does not expand special characters like `?` and `#`, which would lead - * to invalid URLs. As the result, gRPC Transcoding uses a custom encoding - * for multi segment variables. - * - * The path variables **must not** refer to any repeated or mapped field, - * because client libraries are not capable of handling such variable expansion. - * - * The path variables **must not** capture the leading "/" character. The reason - * is that the most common use case "{var}" does not capture the leading "/" - * character. For consistency, all path variables must share the same behavior. - * - * Repeated message fields must not be mapped to URL query parameters, because - * no client library can support such complicated mapping. - * - * If an API needs to use a JSON array for request or response body, it can map - * the request or response body to a repeated field. However, some gRPC - * Transcoding implementations may not support this feature. - */ -export interface HttpRule { - /** - * Selects a method to which this rule applies. - * - * Refer to [selector][google.api.DocumentationRule.selector] for syntax details. - */ - selector: string; - /** - * Maps to HTTP GET. Used for listing and getting information about - * resources. - */ - get?: string; - /** Maps to HTTP PUT. Used for replacing a resource. */ - put?: string; - /** Maps to HTTP POST. Used for creating a resource or performing an action. */ - post?: string; - /** Maps to HTTP DELETE. Used for deleting a resource. */ - delete?: string; - /** Maps to HTTP PATCH. Used for updating a resource. */ - patch?: string; - /** - * The custom pattern is used for specifying an HTTP method that is not - * included in the `pattern` field, such as HEAD, or "*" to leave the - * HTTP method unspecified for this rule. The wild-card rule is useful - * for services that provide content to Web (HTML) clients. - */ - custom?: CustomHttpPattern; - /** - * The name of the request field whose value is mapped to the HTTP request - * body, or `*` for mapping all request fields not captured by the path - * pattern to the HTTP body, or omitted for not having any HTTP request body. - * - * NOTE: the referred field must be present at the top-level of the request - * message type. - */ - body: string; - /** - * Optional. The name of the response field whose value is mapped to the HTTP - * response body. When omitted, the entire response message will be used - * as the HTTP response body. - * - * NOTE: The referred field must be present at the top-level of the response - * message type. - */ - responseBody: string; - /** - * Additional HTTP bindings for the selector. Nested bindings must - * not contain an `additional_bindings` field themselves (that is, - * the nesting may only be one level deep). - */ - additionalBindings: HttpRule[]; -} -/** - * # gRPC Transcoding - * - * gRPC Transcoding is a feature for mapping between a gRPC method and one or - * more HTTP REST endpoints. It allows developers to build a single API service - * that supports both gRPC APIs and REST APIs. Many systems, including [Google - * APIs](https://github.com/googleapis/googleapis), - * [Cloud Endpoints](https://cloud.google.com/endpoints), [gRPC - * Gateway](https://github.com/grpc-ecosystem/grpc-gateway), - * and [Envoy](https://github.com/envoyproxy/envoy) proxy support this feature - * and use it for large scale production services. - * - * `HttpRule` defines the schema of the gRPC/REST mapping. The mapping specifies - * how different portions of the gRPC request message are mapped to the URL - * path, URL query parameters, and HTTP request body. It also controls how the - * gRPC response message is mapped to the HTTP response body. `HttpRule` is - * typically specified as an `google.api.http` annotation on the gRPC method. - * - * Each mapping specifies a URL path template and an HTTP method. The path - * template may refer to one or more fields in the gRPC request message, as long - * as each field is a non-repeated field with a primitive (non-message) type. - * The path template controls how fields of the request message are mapped to - * the URL path. - * - * Example: - * - * service Messaging { - * rpc GetMessage(GetMessageRequest) returns (Message) { - * option (google.api.http) = { - * get: "/v1/{name=messages/*}" - * }; - * } - * } - * message GetMessageRequest { - * string name = 1; // Mapped to URL path. - * } - * message Message { - * string text = 1; // The resource content. - * } - * - * This enables an HTTP REST to gRPC mapping as below: - * - * HTTP | gRPC - * -----|----- - * `GET /v1/messages/123456` | `GetMessage(name: "messages/123456")` - * - * Any fields in the request message which are not bound by the path template - * automatically become HTTP query parameters if there is no HTTP request body. - * For example: - * - * service Messaging { - * rpc GetMessage(GetMessageRequest) returns (Message) { - * option (google.api.http) = { - * get:"/v1/messages/{message_id}" - * }; - * } - * } - * message GetMessageRequest { - * message SubMessage { - * string subfield = 1; - * } - * string message_id = 1; // Mapped to URL path. - * int64 revision = 2; // Mapped to URL query parameter `revision`. - * SubMessage sub = 3; // Mapped to URL query parameter `sub.subfield`. - * } - * - * This enables a HTTP JSON to RPC mapping as below: - * - * HTTP | gRPC - * -----|----- - * `GET /v1/messages/123456?revision=2&sub.subfield=foo` | - * `GetMessage(message_id: "123456" revision: 2 sub: SubMessage(subfield: - * "foo"))` - * - * Note that fields which are mapped to URL query parameters must have a - * primitive type or a repeated primitive type or a non-repeated message type. - * In the case of a repeated type, the parameter can be repeated in the URL - * as `...?param=A¶m=B`. In the case of a message type, each field of the - * message is mapped to a separate parameter, such as - * `...?foo.a=A&foo.b=B&foo.c=C`. - * - * For HTTP methods that allow a request body, the `body` field - * specifies the mapping. Consider a REST update method on the - * message resource collection: - * - * service Messaging { - * rpc UpdateMessage(UpdateMessageRequest) returns (Message) { - * option (google.api.http) = { - * patch: "/v1/messages/{message_id}" - * body: "message" - * }; - * } - * } - * message UpdateMessageRequest { - * string message_id = 1; // mapped to the URL - * Message message = 2; // mapped to the body - * } - * - * The following HTTP JSON to RPC mapping is enabled, where the - * representation of the JSON in the request body is determined by - * protos JSON encoding: - * - * HTTP | gRPC - * -----|----- - * `PATCH /v1/messages/123456 { "text": "Hi!" }` | `UpdateMessage(message_id: - * "123456" message { text: "Hi!" })` - * - * The special name `*` can be used in the body mapping to define that - * every field not bound by the path template should be mapped to the - * request body. This enables the following alternative definition of - * the update method: - * - * service Messaging { - * rpc UpdateMessage(Message) returns (Message) { - * option (google.api.http) = { - * patch: "/v1/messages/{message_id}" - * body: "*" - * }; - * } - * } - * message Message { - * string message_id = 1; - * string text = 2; - * } - * - * - * The following HTTP JSON to RPC mapping is enabled: - * - * HTTP | gRPC - * -----|----- - * `PATCH /v1/messages/123456 { "text": "Hi!" }` | `UpdateMessage(message_id: - * "123456" text: "Hi!")` - * - * Note that when using `*` in the body mapping, it is not possible to - * have HTTP parameters, as all fields not bound by the path end in - * the body. This makes this option more rarely used in practice when - * defining REST APIs. The common usage of `*` is in custom methods - * which don't use the URL at all for transferring data. - * - * It is possible to define multiple HTTP methods for one RPC by using - * the `additional_bindings` option. Example: - * - * service Messaging { - * rpc GetMessage(GetMessageRequest) returns (Message) { - * option (google.api.http) = { - * get: "/v1/messages/{message_id}" - * additional_bindings { - * get: "/v1/users/{user_id}/messages/{message_id}" - * } - * }; - * } - * } - * message GetMessageRequest { - * string message_id = 1; - * string user_id = 2; - * } - * - * This enables the following two alternative HTTP JSON to RPC mappings: - * - * HTTP | gRPC - * -----|----- - * `GET /v1/messages/123456` | `GetMessage(message_id: "123456")` - * `GET /v1/users/me/messages/123456` | `GetMessage(user_id: "me" message_id: - * "123456")` - * - * ## Rules for HTTP mapping - * - * 1. Leaf request fields (recursive expansion nested messages in the request - * message) are classified into three categories: - * - Fields referred by the path template. They are passed via the URL path. - * - Fields referred by the [HttpRule.body][google.api.HttpRule.body]. They are passed via the HTTP - * request body. - * - All other fields are passed via the URL query parameters, and the - * parameter name is the field path in the request message. A repeated - * field can be represented as multiple query parameters under the same - * name. - * 2. If [HttpRule.body][google.api.HttpRule.body] is "*", there is no URL query parameter, all fields - * are passed via URL path and HTTP request body. - * 3. If [HttpRule.body][google.api.HttpRule.body] is omitted, there is no HTTP request body, all - * fields are passed via URL path and URL query parameters. - * - * ### Path template syntax - * - * Template = "/" Segments [ Verb ] ; - * Segments = Segment { "/" Segment } ; - * Segment = "*" | "**" | LITERAL | Variable ; - * Variable = "{" FieldPath [ "=" Segments ] "}" ; - * FieldPath = IDENT { "." IDENT } ; - * Verb = ":" LITERAL ; - * - * The syntax `*` matches a single URL path segment. The syntax `**` matches - * zero or more URL path segments, which must be the last part of the URL path - * except the `Verb`. - * - * The syntax `Variable` matches part of the URL path as specified by its - * template. A variable template must not contain other variables. If a variable - * matches a single path segment, its template may be omitted, e.g. `{var}` - * is equivalent to `{var=*}`. - * - * The syntax `LITERAL` matches literal text in the URL path. If the `LITERAL` - * contains any reserved character, such characters should be percent-encoded - * before the matching. - * - * If a variable contains exactly one path segment, such as `"{var}"` or - * `"{var=*}"`, when such a variable is expanded into a URL path on the client - * side, all characters except `[-_.~0-9a-zA-Z]` are percent-encoded. The - * server side does the reverse decoding. Such variables show up in the - * [Discovery - * Document](https://developers.google.com/discovery/v1/reference/apis) as - * `{var}`. - * - * If a variable contains multiple path segments, such as `"{var=foo/*}"` - * or `"{var=**}"`, when such a variable is expanded into a URL path on the - * client side, all characters except `[-_.~/0-9a-zA-Z]` are percent-encoded. - * The server side does the reverse decoding, except "%2F" and "%2f" are left - * unchanged. Such variables show up in the - * [Discovery - * Document](https://developers.google.com/discovery/v1/reference/apis) as - * `{+var}`. - * - * ## Using gRPC API Service Configuration - * - * gRPC API Service Configuration (service config) is a configuration language - * for configuring a gRPC service to become a user-facing product. The - * service config is simply the YAML representation of the `google.api.Service` - * proto message. - * - * As an alternative to annotating your proto file, you can configure gRPC - * transcoding in your service config YAML files. You do this by specifying a - * `HttpRule` that maps the gRPC method to a REST endpoint, achieving the same - * effect as the proto annotation. This can be particularly useful if you - * have a proto that is reused in multiple services. Note that any transcoding - * specified in the service config will override any matching transcoding - * configuration in the proto. - * - * Example: - * - * http: - * rules: - * # Selects a gRPC method and applies HttpRule to it. - * - selector: example.v1.Messaging.GetMessage - * get: /v1/messages/{message_id}/{sub.subfield} - * - * ## Special notes - * - * When gRPC Transcoding is used to map a gRPC to JSON REST endpoints, the - * proto to JSON conversion must follow the [proto3 - * specification](https://developers.google.com/protocol-buffers/docs/proto3#json). - * - * While the single segment variable follows the semantics of - * [RFC 6570](https://tools.ietf.org/html/rfc6570) Section 3.2.2 Simple String - * Expansion, the multi segment variable **does not** follow RFC 6570 Section - * 3.2.3 Reserved Expansion. The reason is that the Reserved Expansion - * does not expand special characters like `?` and `#`, which would lead - * to invalid URLs. As the result, gRPC Transcoding uses a custom encoding - * for multi segment variables. - * - * The path variables **must not** refer to any repeated or mapped field, - * because client libraries are not capable of handling such variable expansion. - * - * The path variables **must not** capture the leading "/" character. The reason - * is that the most common use case "{var}" does not capture the leading "/" - * character. For consistency, all path variables must share the same behavior. - * - * Repeated message fields must not be mapped to URL query parameters, because - * no client library can support such complicated mapping. - * - * If an API needs to use a JSON array for request or response body, it can map - * the request or response body to a repeated field. However, some gRPC - * Transcoding implementations may not support this feature. - */ -export interface HttpRuleSDKType { - selector: string; - get?: string; - put?: string; - post?: string; - delete?: string; - patch?: string; - custom?: CustomHttpPatternSDKType; - body: string; - response_body: string; - additional_bindings: HttpRuleSDKType[]; -} -/** A custom pattern is used for defining custom HTTP verb. */ -export interface CustomHttpPattern { - /** The name of this custom HTTP verb. */ - kind: string; - /** The path matched by this custom verb. */ - path: string; -} -/** A custom pattern is used for defining custom HTTP verb. */ -export interface CustomHttpPatternSDKType { - kind: string; - path: string; -} -export declare const Http: { - encode(message: Http, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): Http; - fromPartial(object: DeepPartial): Http; -}; -export declare const HttpRule: { - encode(message: HttpRule, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): HttpRule; - fromPartial(object: DeepPartial): HttpRule; -}; -export declare const CustomHttpPattern: { - encode(message: CustomHttpPattern, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): CustomHttpPattern; - fromPartial(object: DeepPartial): CustomHttpPattern; -}; diff --git a/packages/proto/types/codegen/google/bundle.d.ts b/packages/proto/types/codegen/google/bundle.d.ts index 0ef45ffc..aa15b112 100644 --- a/packages/proto/types/codegen/google/bundle.d.ts +++ b/packages/proto/types/codegen/google/bundle.d.ts @@ -1,206 +1,188 @@ -import * as _102 from "./api/http"; -import * as _103 from "./protobuf/any"; -import * as _104 from "./protobuf/descriptor"; -import * as _105 from "./protobuf/duration"; -import * as _106 from "./protobuf/empty"; -import * as _107 from "./protobuf/timestamp"; +import * as _51 from "./protobuf/any"; +import * as _52 from "./protobuf/descriptor"; +import * as _53 from "./protobuf/duration"; +import * as _54 from "./protobuf/empty"; +import * as _55 from "./protobuf/timestamp"; export declare namespace google { - const api: { - Http: { - encode(message: _102.Http, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _102.Http; - fromPartial(object: any): _102.Http; - }; - HttpRule: { - encode(message: _102.HttpRule, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _102.HttpRule; - fromPartial(object: any): _102.HttpRule; - }; - CustomHttpPattern: { - encode(message: _102.CustomHttpPattern, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _102.CustomHttpPattern; - fromPartial(object: any): _102.CustomHttpPattern; - }; - }; const protobuf: { Timestamp: { - encode(message: _107.Timestamp, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _107.Timestamp; - fromPartial(object: any): _107.Timestamp; + encode(message: _55.Timestamp, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _55.Timestamp; + fromPartial(object: any): _55.Timestamp; }; Empty: { - encode(_: _106.Empty, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _106.Empty; - fromPartial(_: any): _106.Empty; + encode(_: _54.Empty, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _54.Empty; + fromPartial(_: any): _54.Empty; }; Duration: { - encode(message: _105.Duration, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _105.Duration; - fromPartial(object: any): _105.Duration; - }; - fieldDescriptorProto_TypeFromJSON(object: any): _104.FieldDescriptorProto_Type; - fieldDescriptorProto_TypeToJSON(object: _104.FieldDescriptorProto_Type): string; - fieldDescriptorProto_LabelFromJSON(object: any): _104.FieldDescriptorProto_Label; - fieldDescriptorProto_LabelToJSON(object: _104.FieldDescriptorProto_Label): string; - fileOptions_OptimizeModeFromJSON(object: any): _104.FileOptions_OptimizeMode; - fileOptions_OptimizeModeToJSON(object: _104.FileOptions_OptimizeMode): string; - fieldOptions_CTypeFromJSON(object: any): _104.FieldOptions_CType; - fieldOptions_CTypeToJSON(object: _104.FieldOptions_CType): string; - fieldOptions_JSTypeFromJSON(object: any): _104.FieldOptions_JSType; - fieldOptions_JSTypeToJSON(object: _104.FieldOptions_JSType): string; - methodOptions_IdempotencyLevelFromJSON(object: any): _104.MethodOptions_IdempotencyLevel; - methodOptions_IdempotencyLevelToJSON(object: _104.MethodOptions_IdempotencyLevel): string; - FieldDescriptorProto_Type: typeof _104.FieldDescriptorProto_Type; - FieldDescriptorProto_TypeSDKType: typeof _104.FieldDescriptorProto_Type; - FieldDescriptorProto_Label: typeof _104.FieldDescriptorProto_Label; - FieldDescriptorProto_LabelSDKType: typeof _104.FieldDescriptorProto_Label; - FileOptions_OptimizeMode: typeof _104.FileOptions_OptimizeMode; - FileOptions_OptimizeModeSDKType: typeof _104.FileOptions_OptimizeMode; - FieldOptions_CType: typeof _104.FieldOptions_CType; - FieldOptions_CTypeSDKType: typeof _104.FieldOptions_CType; - FieldOptions_JSType: typeof _104.FieldOptions_JSType; - FieldOptions_JSTypeSDKType: typeof _104.FieldOptions_JSType; - MethodOptions_IdempotencyLevel: typeof _104.MethodOptions_IdempotencyLevel; - MethodOptions_IdempotencyLevelSDKType: typeof _104.MethodOptions_IdempotencyLevel; + encode(message: _53.Duration, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _53.Duration; + fromPartial(object: any): _53.Duration; + }; + fieldDescriptorProto_TypeFromJSON(object: any): _52.FieldDescriptorProto_Type; + fieldDescriptorProto_TypeToJSON(object: _52.FieldDescriptorProto_Type): string; + fieldDescriptorProto_LabelFromJSON(object: any): _52.FieldDescriptorProto_Label; + fieldDescriptorProto_LabelToJSON(object: _52.FieldDescriptorProto_Label): string; + fileOptions_OptimizeModeFromJSON(object: any): _52.FileOptions_OptimizeMode; + fileOptions_OptimizeModeToJSON(object: _52.FileOptions_OptimizeMode): string; + fieldOptions_CTypeFromJSON(object: any): _52.FieldOptions_CType; + fieldOptions_CTypeToJSON(object: _52.FieldOptions_CType): string; + fieldOptions_JSTypeFromJSON(object: any): _52.FieldOptions_JSType; + fieldOptions_JSTypeToJSON(object: _52.FieldOptions_JSType): string; + methodOptions_IdempotencyLevelFromJSON(object: any): _52.MethodOptions_IdempotencyLevel; + methodOptions_IdempotencyLevelToJSON(object: _52.MethodOptions_IdempotencyLevel): string; + FieldDescriptorProto_Type: typeof _52.FieldDescriptorProto_Type; + FieldDescriptorProto_TypeSDKType: typeof _52.FieldDescriptorProto_Type; + FieldDescriptorProto_Label: typeof _52.FieldDescriptorProto_Label; + FieldDescriptorProto_LabelSDKType: typeof _52.FieldDescriptorProto_Label; + FileOptions_OptimizeMode: typeof _52.FileOptions_OptimizeMode; + FileOptions_OptimizeModeSDKType: typeof _52.FileOptions_OptimizeMode; + FieldOptions_CType: typeof _52.FieldOptions_CType; + FieldOptions_CTypeSDKType: typeof _52.FieldOptions_CType; + FieldOptions_JSType: typeof _52.FieldOptions_JSType; + FieldOptions_JSTypeSDKType: typeof _52.FieldOptions_JSType; + MethodOptions_IdempotencyLevel: typeof _52.MethodOptions_IdempotencyLevel; + MethodOptions_IdempotencyLevelSDKType: typeof _52.MethodOptions_IdempotencyLevel; FileDescriptorSet: { - encode(message: _104.FileDescriptorSet, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _104.FileDescriptorSet; - fromPartial(object: any): _104.FileDescriptorSet; + encode(message: _52.FileDescriptorSet, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _52.FileDescriptorSet; + fromPartial(object: any): _52.FileDescriptorSet; }; FileDescriptorProto: { - encode(message: _104.FileDescriptorProto, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _104.FileDescriptorProto; - fromPartial(object: any): _104.FileDescriptorProto; + encode(message: _52.FileDescriptorProto, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _52.FileDescriptorProto; + fromPartial(object: any): _52.FileDescriptorProto; }; DescriptorProto: { - encode(message: _104.DescriptorProto, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _104.DescriptorProto; - fromPartial(object: any): _104.DescriptorProto; + encode(message: _52.DescriptorProto, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _52.DescriptorProto; + fromPartial(object: any): _52.DescriptorProto; }; DescriptorProto_ExtensionRange: { - encode(message: _104.DescriptorProto_ExtensionRange, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _104.DescriptorProto_ExtensionRange; - fromPartial(object: any): _104.DescriptorProto_ExtensionRange; + encode(message: _52.DescriptorProto_ExtensionRange, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _52.DescriptorProto_ExtensionRange; + fromPartial(object: any): _52.DescriptorProto_ExtensionRange; }; DescriptorProto_ReservedRange: { - encode(message: _104.DescriptorProto_ReservedRange, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _104.DescriptorProto_ReservedRange; - fromPartial(object: any): _104.DescriptorProto_ReservedRange; + encode(message: _52.DescriptorProto_ReservedRange, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _52.DescriptorProto_ReservedRange; + fromPartial(object: any): _52.DescriptorProto_ReservedRange; }; ExtensionRangeOptions: { - encode(message: _104.ExtensionRangeOptions, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _104.ExtensionRangeOptions; - fromPartial(object: any): _104.ExtensionRangeOptions; + encode(message: _52.ExtensionRangeOptions, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _52.ExtensionRangeOptions; + fromPartial(object: any): _52.ExtensionRangeOptions; }; FieldDescriptorProto: { - encode(message: _104.FieldDescriptorProto, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _104.FieldDescriptorProto; - fromPartial(object: any): _104.FieldDescriptorProto; + encode(message: _52.FieldDescriptorProto, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _52.FieldDescriptorProto; + fromPartial(object: any): _52.FieldDescriptorProto; }; OneofDescriptorProto: { - encode(message: _104.OneofDescriptorProto, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _104.OneofDescriptorProto; - fromPartial(object: any): _104.OneofDescriptorProto; + encode(message: _52.OneofDescriptorProto, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _52.OneofDescriptorProto; + fromPartial(object: any): _52.OneofDescriptorProto; }; EnumDescriptorProto: { - encode(message: _104.EnumDescriptorProto, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _104.EnumDescriptorProto; - fromPartial(object: any): _104.EnumDescriptorProto; + encode(message: _52.EnumDescriptorProto, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _52.EnumDescriptorProto; + fromPartial(object: any): _52.EnumDescriptorProto; }; EnumDescriptorProto_EnumReservedRange: { - encode(message: _104.EnumDescriptorProto_EnumReservedRange, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _104.EnumDescriptorProto_EnumReservedRange; - fromPartial(object: any): _104.EnumDescriptorProto_EnumReservedRange; + encode(message: _52.EnumDescriptorProto_EnumReservedRange, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _52.EnumDescriptorProto_EnumReservedRange; + fromPartial(object: any): _52.EnumDescriptorProto_EnumReservedRange; }; EnumValueDescriptorProto: { - encode(message: _104.EnumValueDescriptorProto, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _104.EnumValueDescriptorProto; - fromPartial(object: any): _104.EnumValueDescriptorProto; + encode(message: _52.EnumValueDescriptorProto, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _52.EnumValueDescriptorProto; + fromPartial(object: any): _52.EnumValueDescriptorProto; }; ServiceDescriptorProto: { - encode(message: _104.ServiceDescriptorProto, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _104.ServiceDescriptorProto; - fromPartial(object: any): _104.ServiceDescriptorProto; + encode(message: _52.ServiceDescriptorProto, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _52.ServiceDescriptorProto; + fromPartial(object: any): _52.ServiceDescriptorProto; }; MethodDescriptorProto: { - encode(message: _104.MethodDescriptorProto, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _104.MethodDescriptorProto; - fromPartial(object: any): _104.MethodDescriptorProto; + encode(message: _52.MethodDescriptorProto, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _52.MethodDescriptorProto; + fromPartial(object: any): _52.MethodDescriptorProto; }; FileOptions: { - encode(message: _104.FileOptions, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _104.FileOptions; - fromPartial(object: any): _104.FileOptions; + encode(message: _52.FileOptions, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _52.FileOptions; + fromPartial(object: any): _52.FileOptions; }; MessageOptions: { - encode(message: _104.MessageOptions, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _104.MessageOptions; - fromPartial(object: any): _104.MessageOptions; + encode(message: _52.MessageOptions, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _52.MessageOptions; + fromPartial(object: any): _52.MessageOptions; }; FieldOptions: { - encode(message: _104.FieldOptions, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _104.FieldOptions; - fromPartial(object: any): _104.FieldOptions; + encode(message: _52.FieldOptions, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _52.FieldOptions; + fromPartial(object: any): _52.FieldOptions; }; OneofOptions: { - encode(message: _104.OneofOptions, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _104.OneofOptions; - fromPartial(object: any): _104.OneofOptions; + encode(message: _52.OneofOptions, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _52.OneofOptions; + fromPartial(object: any): _52.OneofOptions; }; EnumOptions: { - encode(message: _104.EnumOptions, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _104.EnumOptions; - fromPartial(object: any): _104.EnumOptions; + encode(message: _52.EnumOptions, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _52.EnumOptions; + fromPartial(object: any): _52.EnumOptions; }; EnumValueOptions: { - encode(message: _104.EnumValueOptions, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _104.EnumValueOptions; - fromPartial(object: any): _104.EnumValueOptions; + encode(message: _52.EnumValueOptions, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _52.EnumValueOptions; + fromPartial(object: any): _52.EnumValueOptions; }; ServiceOptions: { - encode(message: _104.ServiceOptions, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _104.ServiceOptions; - fromPartial(object: any): _104.ServiceOptions; + encode(message: _52.ServiceOptions, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _52.ServiceOptions; + fromPartial(object: any): _52.ServiceOptions; }; MethodOptions: { - encode(message: _104.MethodOptions, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _104.MethodOptions; - fromPartial(object: any): _104.MethodOptions; + encode(message: _52.MethodOptions, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _52.MethodOptions; + fromPartial(object: any): _52.MethodOptions; }; UninterpretedOption: { - encode(message: _104.UninterpretedOption, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _104.UninterpretedOption; - fromPartial(object: any): _104.UninterpretedOption; + encode(message: _52.UninterpretedOption, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _52.UninterpretedOption; + fromPartial(object: any): _52.UninterpretedOption; }; UninterpretedOption_NamePart: { - encode(message: _104.UninterpretedOption_NamePart, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _104.UninterpretedOption_NamePart; - fromPartial(object: any): _104.UninterpretedOption_NamePart; + encode(message: _52.UninterpretedOption_NamePart, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _52.UninterpretedOption_NamePart; + fromPartial(object: any): _52.UninterpretedOption_NamePart; }; SourceCodeInfo: { - encode(message: _104.SourceCodeInfo, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _104.SourceCodeInfo; - fromPartial(object: any): _104.SourceCodeInfo; + encode(message: _52.SourceCodeInfo, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _52.SourceCodeInfo; + fromPartial(object: any): _52.SourceCodeInfo; }; SourceCodeInfo_Location: { - encode(message: _104.SourceCodeInfo_Location, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _104.SourceCodeInfo_Location; - fromPartial(object: any): _104.SourceCodeInfo_Location; + encode(message: _52.SourceCodeInfo_Location, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _52.SourceCodeInfo_Location; + fromPartial(object: any): _52.SourceCodeInfo_Location; }; GeneratedCodeInfo: { - encode(message: _104.GeneratedCodeInfo, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _104.GeneratedCodeInfo; - fromPartial(object: any): _104.GeneratedCodeInfo; + encode(message: _52.GeneratedCodeInfo, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _52.GeneratedCodeInfo; + fromPartial(object: any): _52.GeneratedCodeInfo; }; GeneratedCodeInfo_Annotation: { - encode(message: _104.GeneratedCodeInfo_Annotation, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _104.GeneratedCodeInfo_Annotation; - fromPartial(object: any): _104.GeneratedCodeInfo_Annotation; + encode(message: _52.GeneratedCodeInfo_Annotation, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _52.GeneratedCodeInfo_Annotation; + fromPartial(object: any): _52.GeneratedCodeInfo_Annotation; }; Any: { - encode(message: _103.Any, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _103.Any; - fromPartial(object: any): _103.Any; + encode(message: _51.Any, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _51.Any; + fromPartial(object: any): _51.Any; }; }; } diff --git a/packages/proto/types/codegen/google/protobuf/field_mask.d.ts b/packages/proto/types/codegen/google/protobuf/field_mask.d.ts deleted file mode 100644 index 01ca60a0..00000000 --- a/packages/proto/types/codegen/google/protobuf/field_mask.d.ts +++ /dev/null @@ -1,417 +0,0 @@ -import * as _m0 from "protobufjs/minimal"; -import { DeepPartial } from "@osmonauts/helpers"; -/** - * `FieldMask` represents a set of symbolic field paths, for example: - * - * paths: "f.a" - * paths: "f.b.d" - * - * Here `f` represents a field in some root message, `a` and `b` - * fields in the message found in `f`, and `d` a field found in the - * message in `f.b`. - * - * Field masks are used to specify a subset of fields that should be - * returned by a get operation or modified by an update operation. - * Field masks also have a custom JSON encoding (see below). - * - * # Field Masks in Projections - * - * When used in the context of a projection, a response message or - * sub-message is filtered by the API to only contain those fields as - * specified in the mask. For example, if the mask in the previous - * example is applied to a response message as follows: - * - * f { - * a : 22 - * b { - * d : 1 - * x : 2 - * } - * y : 13 - * } - * z: 8 - * - * The result will not contain specific values for fields x,y and z - * (their value will be set to the default, and omitted in proto text - * output): - * - * - * f { - * a : 22 - * b { - * d : 1 - * } - * } - * - * A repeated field is not allowed except at the last position of a - * paths string. - * - * If a FieldMask object is not present in a get operation, the - * operation applies to all fields (as if a FieldMask of all fields - * had been specified). - * - * Note that a field mask does not necessarily apply to the - * top-level response message. In case of a REST get operation, the - * field mask applies directly to the response, but in case of a REST - * list operation, the mask instead applies to each individual message - * in the returned resource list. In case of a REST custom method, - * other definitions may be used. Where the mask applies will be - * clearly documented together with its declaration in the API. In - * any case, the effect on the returned resource/resources is required - * behavior for APIs. - * - * # Field Masks in Update Operations - * - * A field mask in update operations specifies which fields of the - * targeted resource are going to be updated. The API is required - * to only change the values of the fields as specified in the mask - * and leave the others untouched. If a resource is passed in to - * describe the updated values, the API ignores the values of all - * fields not covered by the mask. - * - * If a repeated field is specified for an update operation, new values will - * be appended to the existing repeated field in the target resource. Note that - * a repeated field is only allowed in the last position of a `paths` string. - * - * If a sub-message is specified in the last position of the field mask for an - * update operation, then new value will be merged into the existing sub-message - * in the target resource. - * - * For example, given the target message: - * - * f { - * b { - * d: 1 - * x: 2 - * } - * c: [1] - * } - * - * And an update message: - * - * f { - * b { - * d: 10 - * } - * c: [2] - * } - * - * then if the field mask is: - * - * paths: ["f.b", "f.c"] - * - * then the result will be: - * - * f { - * b { - * d: 10 - * x: 2 - * } - * c: [1, 2] - * } - * - * An implementation may provide options to override this default behavior for - * repeated and message fields. - * - * In order to reset a field's value to the default, the field must - * be in the mask and set to the default value in the provided resource. - * Hence, in order to reset all fields of a resource, provide a default - * instance of the resource and set all fields in the mask, or do - * not provide a mask as described below. - * - * If a field mask is not present on update, the operation applies to - * all fields (as if a field mask of all fields has been specified). - * Note that in the presence of schema evolution, this may mean that - * fields the client does not know and has therefore not filled into - * the request will be reset to their default. If this is unwanted - * behavior, a specific service may require a client to always specify - * a field mask, producing an error if not. - * - * As with get operations, the location of the resource which - * describes the updated values in the request message depends on the - * operation kind. In any case, the effect of the field mask is - * required to be honored by the API. - * - * ## Considerations for HTTP REST - * - * The HTTP kind of an update operation which uses a field mask must - * be set to PATCH instead of PUT in order to satisfy HTTP semantics - * (PUT must only be used for full updates). - * - * # JSON Encoding of Field Masks - * - * In JSON, a field mask is encoded as a single string where paths are - * separated by a comma. Fields name in each path are converted - * to/from lower-camel naming conventions. - * - * As an example, consider the following message declarations: - * - * message Profile { - * User user = 1; - * Photo photo = 2; - * } - * message User { - * string display_name = 1; - * string address = 2; - * } - * - * In proto a field mask for `Profile` may look as such: - * - * mask { - * paths: "user.display_name" - * paths: "photo" - * } - * - * In JSON, the same mask is represented as below: - * - * { - * mask: "user.displayName,photo" - * } - * - * # Field Masks and Oneof Fields - * - * Field masks treat fields in oneofs just as regular fields. Consider the - * following message: - * - * message SampleMessage { - * oneof test_oneof { - * string name = 4; - * SubMessage sub_message = 9; - * } - * } - * - * The field mask can be: - * - * mask { - * paths: "name" - * } - * - * Or: - * - * mask { - * paths: "sub_message" - * } - * - * Note that oneof type names ("test_oneof" in this case) cannot be used in - * paths. - * - * ## Field Mask Verification - * - * The implementation of any API method which has a FieldMask type field in the - * request should verify the included field paths, and return an - * `INVALID_ARGUMENT` error if any path is duplicated or unmappable. - */ -export interface FieldMask { - /** The set of field mask paths. */ - paths: string[]; -} -/** - * `FieldMask` represents a set of symbolic field paths, for example: - * - * paths: "f.a" - * paths: "f.b.d" - * - * Here `f` represents a field in some root message, `a` and `b` - * fields in the message found in `f`, and `d` a field found in the - * message in `f.b`. - * - * Field masks are used to specify a subset of fields that should be - * returned by a get operation or modified by an update operation. - * Field masks also have a custom JSON encoding (see below). - * - * # Field Masks in Projections - * - * When used in the context of a projection, a response message or - * sub-message is filtered by the API to only contain those fields as - * specified in the mask. For example, if the mask in the previous - * example is applied to a response message as follows: - * - * f { - * a : 22 - * b { - * d : 1 - * x : 2 - * } - * y : 13 - * } - * z: 8 - * - * The result will not contain specific values for fields x,y and z - * (their value will be set to the default, and omitted in proto text - * output): - * - * - * f { - * a : 22 - * b { - * d : 1 - * } - * } - * - * A repeated field is not allowed except at the last position of a - * paths string. - * - * If a FieldMask object is not present in a get operation, the - * operation applies to all fields (as if a FieldMask of all fields - * had been specified). - * - * Note that a field mask does not necessarily apply to the - * top-level response message. In case of a REST get operation, the - * field mask applies directly to the response, but in case of a REST - * list operation, the mask instead applies to each individual message - * in the returned resource list. In case of a REST custom method, - * other definitions may be used. Where the mask applies will be - * clearly documented together with its declaration in the API. In - * any case, the effect on the returned resource/resources is required - * behavior for APIs. - * - * # Field Masks in Update Operations - * - * A field mask in update operations specifies which fields of the - * targeted resource are going to be updated. The API is required - * to only change the values of the fields as specified in the mask - * and leave the others untouched. If a resource is passed in to - * describe the updated values, the API ignores the values of all - * fields not covered by the mask. - * - * If a repeated field is specified for an update operation, new values will - * be appended to the existing repeated field in the target resource. Note that - * a repeated field is only allowed in the last position of a `paths` string. - * - * If a sub-message is specified in the last position of the field mask for an - * update operation, then new value will be merged into the existing sub-message - * in the target resource. - * - * For example, given the target message: - * - * f { - * b { - * d: 1 - * x: 2 - * } - * c: [1] - * } - * - * And an update message: - * - * f { - * b { - * d: 10 - * } - * c: [2] - * } - * - * then if the field mask is: - * - * paths: ["f.b", "f.c"] - * - * then the result will be: - * - * f { - * b { - * d: 10 - * x: 2 - * } - * c: [1, 2] - * } - * - * An implementation may provide options to override this default behavior for - * repeated and message fields. - * - * In order to reset a field's value to the default, the field must - * be in the mask and set to the default value in the provided resource. - * Hence, in order to reset all fields of a resource, provide a default - * instance of the resource and set all fields in the mask, or do - * not provide a mask as described below. - * - * If a field mask is not present on update, the operation applies to - * all fields (as if a field mask of all fields has been specified). - * Note that in the presence of schema evolution, this may mean that - * fields the client does not know and has therefore not filled into - * the request will be reset to their default. If this is unwanted - * behavior, a specific service may require a client to always specify - * a field mask, producing an error if not. - * - * As with get operations, the location of the resource which - * describes the updated values in the request message depends on the - * operation kind. In any case, the effect of the field mask is - * required to be honored by the API. - * - * ## Considerations for HTTP REST - * - * The HTTP kind of an update operation which uses a field mask must - * be set to PATCH instead of PUT in order to satisfy HTTP semantics - * (PUT must only be used for full updates). - * - * # JSON Encoding of Field Masks - * - * In JSON, a field mask is encoded as a single string where paths are - * separated by a comma. Fields name in each path are converted - * to/from lower-camel naming conventions. - * - * As an example, consider the following message declarations: - * - * message Profile { - * User user = 1; - * Photo photo = 2; - * } - * message User { - * string display_name = 1; - * string address = 2; - * } - * - * In proto a field mask for `Profile` may look as such: - * - * mask { - * paths: "user.display_name" - * paths: "photo" - * } - * - * In JSON, the same mask is represented as below: - * - * { - * mask: "user.displayName,photo" - * } - * - * # Field Masks and Oneof Fields - * - * Field masks treat fields in oneofs just as regular fields. Consider the - * following message: - * - * message SampleMessage { - * oneof test_oneof { - * string name = 4; - * SubMessage sub_message = 9; - * } - * } - * - * The field mask can be: - * - * mask { - * paths: "name" - * } - * - * Or: - * - * mask { - * paths: "sub_message" - * } - * - * Note that oneof type names ("test_oneof" in this case) cannot be used in - * paths. - * - * ## Field Mask Verification - * - * The implementation of any API method which has a FieldMask type field in the - * request should verify the included field paths, and return an - * `INVALID_ARGUMENT` error if any path is duplicated or unmappable. - */ -export interface FieldMaskSDKType { - /** The set of field mask paths. */ - paths: string[]; -} -export declare const FieldMask: { - encode(message: FieldMask, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): FieldMask; - fromPartial(object: DeepPartial): FieldMask; -}; diff --git a/packages/proto/types/codegen/google/protobuf/struct.d.ts b/packages/proto/types/codegen/google/protobuf/struct.d.ts deleted file mode 100644 index 6a20cf53..00000000 --- a/packages/proto/types/codegen/google/protobuf/struct.d.ts +++ /dev/null @@ -1,148 +0,0 @@ -import * as _m0 from "protobufjs/minimal"; -import { DeepPartial } from "@osmonauts/helpers"; -/** - * `NullValue` is a singleton enumeration to represent the null value for the - * `Value` type union. - * - * The JSON representation for `NullValue` is JSON `null`. - */ -export declare enum NullValue { - /** NULL_VALUE - Null value. */ - NULL_VALUE = 0, - UNRECOGNIZED = -1 -} -/** - * `NullValue` is a singleton enumeration to represent the null value for the - * `Value` type union. - * - * The JSON representation for `NullValue` is JSON `null`. - */ -export declare enum NullValueSDKType { - /** NULL_VALUE - Null value. */ - NULL_VALUE = 0, - UNRECOGNIZED = -1 -} -export declare function nullValueFromJSON(object: any): NullValue; -export declare function nullValueToJSON(object: NullValue): string; -export interface Struct_FieldsEntry { - key: string; - value: Value; -} -export interface Struct_FieldsEntrySDKType { - key: string; - value: ValueSDKType; -} -/** - * `Struct` represents a structured data value, consisting of fields - * which map to dynamically typed values. In some languages, `Struct` - * might be supported by a native representation. For example, in - * scripting languages like JS a struct is represented as an - * object. The details of that representation are described together - * with the proto support for the language. - * - * The JSON representation for `Struct` is JSON object. - */ -export interface Struct { - /** Unordered map of dynamically typed values. */ - fields: { - [key: string]: Value; - }; -} -/** - * `Struct` represents a structured data value, consisting of fields - * which map to dynamically typed values. In some languages, `Struct` - * might be supported by a native representation. For example, in - * scripting languages like JS a struct is represented as an - * object. The details of that representation are described together - * with the proto support for the language. - * - * The JSON representation for `Struct` is JSON object. - */ -export interface StructSDKType { - /** Unordered map of dynamically typed values. */ - fields: { - [key: string]: ValueSDKType; - }; -} -/** - * `Value` represents a dynamically typed value which can be either - * null, a number, a string, a boolean, a recursive struct value, or a - * list of values. A producer of value is expected to set one of that - * variants, absence of any variant indicates an error. - * - * The JSON representation for `Value` is JSON value. - */ -export interface Value { - /** Represents a null value. */ - nullValue?: NullValue; - /** Represents a double value. */ - numberValue?: number; - /** Represents a string value. */ - stringValue?: string; - /** Represents a boolean value. */ - boolValue?: boolean; - /** Represents a structured value. */ - structValue?: Struct; - /** Represents a repeated `Value`. */ - listValue?: ListValue; -} -/** - * `Value` represents a dynamically typed value which can be either - * null, a number, a string, a boolean, a recursive struct value, or a - * list of values. A producer of value is expected to set one of that - * variants, absence of any variant indicates an error. - * - * The JSON representation for `Value` is JSON value. - */ -export interface ValueSDKType { - /** Represents a null value. */ - null_value?: NullValueSDKType; - /** Represents a double value. */ - number_value?: number; - /** Represents a string value. */ - string_value?: string; - /** Represents a boolean value. */ - bool_value?: boolean; - /** Represents a structured value. */ - struct_value?: StructSDKType; - /** Represents a repeated `Value`. */ - list_value?: ListValueSDKType; -} -/** - * `ListValue` is a wrapper around a repeated field of values. - * - * The JSON representation for `ListValue` is JSON array. - */ -export interface ListValue { - /** Repeated field of dynamically typed values. */ - values: Value[]; -} -/** - * `ListValue` is a wrapper around a repeated field of values. - * - * The JSON representation for `ListValue` is JSON array. - */ -export interface ListValueSDKType { - /** Repeated field of dynamically typed values. */ - values: ValueSDKType[]; -} -export declare const Struct_FieldsEntry: { - encode(message: Struct_FieldsEntry, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): Struct_FieldsEntry; - fromPartial(object: DeepPartial): Struct_FieldsEntry; -}; -export declare const Struct: { - encode(message: Struct, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): Struct; - fromPartial(object: DeepPartial): Struct; -}; -export declare const Value: { - encode(message: Value, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): Value; - fromPartial(object: DeepPartial): Value; -}; -export declare const ListValue: { - encode(message: ListValue, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): ListValue; - fromPartial(object: DeepPartial): ListValue; -}; diff --git a/packages/proto/types/codegen/google/protobuf/wrappers.d.ts b/packages/proto/types/codegen/google/protobuf/wrappers.d.ts deleted file mode 100644 index bd21be68..00000000 --- a/packages/proto/types/codegen/google/protobuf/wrappers.d.ts +++ /dev/null @@ -1,209 +0,0 @@ -import * as _m0 from "protobufjs/minimal"; -import { DeepPartial, Long } from "@osmonauts/helpers"; -/** - * Wrapper message for `double`. - * - * The JSON representation for `DoubleValue` is JSON number. - */ -export interface DoubleValue { - /** The double value. */ - value: number; -} -/** - * Wrapper message for `double`. - * - * The JSON representation for `DoubleValue` is JSON number. - */ -export interface DoubleValueSDKType { - /** The double value. */ - value: number; -} -/** - * Wrapper message for `float`. - * - * The JSON representation for `FloatValue` is JSON number. - */ -export interface FloatValue { - /** The float value. */ - value: number; -} -/** - * Wrapper message for `float`. - * - * The JSON representation for `FloatValue` is JSON number. - */ -export interface FloatValueSDKType { - /** The float value. */ - value: number; -} -/** - * Wrapper message for `int64`. - * - * The JSON representation for `Int64Value` is JSON string. - */ -export interface Int64Value { - /** The int64 value. */ - value: Long; -} -/** - * Wrapper message for `int64`. - * - * The JSON representation for `Int64Value` is JSON string. - */ -export interface Int64ValueSDKType { - /** The int64 value. */ - value: Long; -} -/** - * Wrapper message for `uint64`. - * - * The JSON representation for `UInt64Value` is JSON string. - */ -export interface UInt64Value { - /** The uint64 value. */ - value: Long; -} -/** - * Wrapper message for `uint64`. - * - * The JSON representation for `UInt64Value` is JSON string. - */ -export interface UInt64ValueSDKType { - /** The uint64 value. */ - value: Long; -} -/** - * Wrapper message for `int32`. - * - * The JSON representation for `Int32Value` is JSON number. - */ -export interface Int32Value { - /** The int32 value. */ - value: number; -} -/** - * Wrapper message for `int32`. - * - * The JSON representation for `Int32Value` is JSON number. - */ -export interface Int32ValueSDKType { - /** The int32 value. */ - value: number; -} -/** - * Wrapper message for `uint32`. - * - * The JSON representation for `UInt32Value` is JSON number. - */ -export interface UInt32Value { - /** The uint32 value. */ - value: number; -} -/** - * Wrapper message for `uint32`. - * - * The JSON representation for `UInt32Value` is JSON number. - */ -export interface UInt32ValueSDKType { - /** The uint32 value. */ - value: number; -} -/** - * Wrapper message for `bool`. - * - * The JSON representation for `BoolValue` is JSON `true` and `false`. - */ -export interface BoolValue { - /** The bool value. */ - value: boolean; -} -/** - * Wrapper message for `bool`. - * - * The JSON representation for `BoolValue` is JSON `true` and `false`. - */ -export interface BoolValueSDKType { - /** The bool value. */ - value: boolean; -} -/** - * Wrapper message for `string`. - * - * The JSON representation for `StringValue` is JSON string. - */ -export interface StringValue { - /** The string value. */ - value: string; -} -/** - * Wrapper message for `string`. - * - * The JSON representation for `StringValue` is JSON string. - */ -export interface StringValueSDKType { - /** The string value. */ - value: string; -} -/** - * Wrapper message for `bytes`. - * - * The JSON representation for `BytesValue` is JSON string. - */ -export interface BytesValue { - /** The bytes value. */ - value: Uint8Array; -} -/** - * Wrapper message for `bytes`. - * - * The JSON representation for `BytesValue` is JSON string. - */ -export interface BytesValueSDKType { - /** The bytes value. */ - value: Uint8Array; -} -export declare const DoubleValue: { - encode(message: DoubleValue, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): DoubleValue; - fromPartial(object: DeepPartial): DoubleValue; -}; -export declare const FloatValue: { - encode(message: FloatValue, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): FloatValue; - fromPartial(object: DeepPartial): FloatValue; -}; -export declare const Int64Value: { - encode(message: Int64Value, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): Int64Value; - fromPartial(object: DeepPartial): Int64Value; -}; -export declare const UInt64Value: { - encode(message: UInt64Value, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): UInt64Value; - fromPartial(object: DeepPartial): UInt64Value; -}; -export declare const Int32Value: { - encode(message: Int32Value, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): Int32Value; - fromPartial(object: DeepPartial): Int32Value; -}; -export declare const UInt32Value: { - encode(message: UInt32Value, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): UInt32Value; - fromPartial(object: DeepPartial): UInt32Value; -}; -export declare const BoolValue: { - encode(message: BoolValue, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): BoolValue; - fromPartial(object: DeepPartial): BoolValue; -}; -export declare const StringValue: { - encode(message: StringValue, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): StringValue; - fromPartial(object: DeepPartial): StringValue; -}; -export declare const BytesValue: { - encode(message: BytesValue, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): BytesValue; - fromPartial(object: DeepPartial): BytesValue; -}; diff --git a/packages/proto/types/codegen/ibc/applications/transfer/v1/query.rpc.query.d.ts b/packages/proto/types/codegen/ibc/applications/transfer/v1/query.rpc.query.d.ts index 270c09d1..d86b260e 100644 --- a/packages/proto/types/codegen/ibc/applications/transfer/v1/query.rpc.query.d.ts +++ b/packages/proto/types/codegen/ibc/applications/transfer/v1/query.rpc.query.d.ts @@ -1,10 +1,13 @@ -import { Rpc } from "@osmonauts/helpers"; +import { Rpc } from "../../../../helpers"; import { QueryClient } from "@cosmjs/stargate"; import { QueryDenomTraceRequest, QueryDenomTraceResponse, QueryDenomTracesRequest, QueryDenomTracesResponse, QueryParamsRequest, QueryParamsResponse } from "./query"; -/** Query defines the RPC service */ +/** Query provides defines the gRPC querier service. */ export interface Query { + /** DenomTrace queries a denomination trace information. */ denomTrace(request: QueryDenomTraceRequest): Promise; + /** DenomTraces queries all denomination traces. */ denomTraces(request?: QueryDenomTracesRequest): Promise; + /** Params queries all parameters of the ibc-transfer module. */ params(request?: QueryParamsRequest): Promise; } export declare class QueryClientImpl implements Query { diff --git a/packages/proto/types/codegen/ibc/applications/transfer/v1/tx.rpc.msg.d.ts b/packages/proto/types/codegen/ibc/applications/transfer/v1/tx.rpc.msg.d.ts index ccec55e1..d000d7b5 100644 --- a/packages/proto/types/codegen/ibc/applications/transfer/v1/tx.rpc.msg.d.ts +++ b/packages/proto/types/codegen/ibc/applications/transfer/v1/tx.rpc.msg.d.ts @@ -1,7 +1,8 @@ -import { Rpc } from "@osmonauts/helpers"; +import { Rpc } from "../../../../helpers"; import { MsgTransfer, MsgTransferResponse } from "./tx"; -/** Msg defines the RPC service */ +/** Msg defines the ibc/transfer Msg service. */ export interface Msg { + /** Transfer defines a rpc handler method for MsgTransfer. */ transfer(request: MsgTransfer): Promise; } export declare class MsgClientImpl implements Msg { diff --git a/packages/proto/types/codegen/ibc/bundle.d.ts b/packages/proto/types/codegen/ibc/bundle.d.ts index 0677d950..3b719a87 100644 --- a/packages/proto/types/codegen/ibc/bundle.d.ts +++ b/packages/proto/types/codegen/ibc/bundle.d.ts @@ -1,62 +1,75 @@ -import * as _108 from "./applications/transfer/v1/genesis"; -import * as _109 from "./applications/transfer/v1/query"; -import * as _110 from "./applications/transfer/v1/transfer"; -import * as _111 from "./applications/transfer/v1/tx"; -import * as _112 from "./applications/transfer/v2/packet"; -import * as _113 from "./core/channel/v1/channel"; -import * as _114 from "./core/channel/v1/genesis"; -import * as _115 from "./core/channel/v1/query"; -import * as _116 from "./core/channel/v1/tx"; -import * as _117 from "./core/client/v1/client"; -import * as _118 from "./core/client/v1/genesis"; -import * as _119 from "./core/client/v1/query"; -import * as _120 from "./core/client/v1/tx"; -import * as _121 from "./core/commitment/v1/commitment"; -import * as _122 from "./core/connection/v1/connection"; -import * as _123 from "./core/connection/v1/genesis"; -import * as _124 from "./core/connection/v1/query"; -import * as _125 from "./core/connection/v1/tx"; -import * as _126 from "./core/port/v1/query"; -import * as _127 from "./core/types/v1/genesis"; -import * as _128 from "./lightclients/localhost/v1/localhost"; -import * as _129 from "./lightclients/solomachine/v1/solomachine"; -import * as _130 from "./lightclients/solomachine/v2/solomachine"; -import * as _131 from "./lightclients/tendermint/v1/tendermint"; -import * as _236 from "./applications/transfer/v1/query.lcd"; -import * as _237 from "./core/channel/v1/query.lcd"; -import * as _238 from "./core/client/v1/query.lcd"; -import * as _239 from "./core/connection/v1/query.lcd"; +import * as _56 from "./applications/transfer/v1/genesis"; +import * as _57 from "./applications/transfer/v1/query"; +import * as _58 from "./applications/transfer/v1/transfer"; +import * as _59 from "./applications/transfer/v1/tx"; +import * as _60 from "./applications/transfer/v2/packet"; +import * as _61 from "./core/channel/v1/channel"; +import * as _62 from "./core/channel/v1/genesis"; +import * as _63 from "./core/channel/v1/query"; +import * as _64 from "./core/channel/v1/tx"; +import * as _65 from "./core/client/v1/client"; +import * as _66 from "./core/client/v1/genesis"; +import * as _67 from "./core/client/v1/query"; +import * as _68 from "./core/client/v1/tx"; +import * as _69 from "./core/commitment/v1/commitment"; +import * as _70 from "./core/connection/v1/connection"; +import * as _71 from "./core/connection/v1/genesis"; +import * as _72 from "./core/connection/v1/query"; +import * as _73 from "./core/connection/v1/tx"; +import * as _74 from "./lightclients/localhost/v1/localhost"; +import * as _75 from "./lightclients/solomachine/v1/solomachine"; +import * as _76 from "./lightclients/solomachine/v2/solomachine"; +import * as _77 from "./lightclients/tendermint/v1/tendermint"; +import * as _173 from "./applications/transfer/v1/query.lcd"; +import * as _174 from "./core/channel/v1/query.lcd"; +import * as _175 from "./core/client/v1/query.lcd"; +import * as _176 from "./core/connection/v1/query.lcd"; +import * as _177 from "./applications/transfer/v1/query.rpc.Query"; +import * as _178 from "./core/channel/v1/query.rpc.Query"; +import * as _179 from "./core/client/v1/query.rpc.Query"; +import * as _180 from "./core/connection/v1/query.rpc.Query"; +import * as _181 from "./applications/transfer/v1/tx.rpc.msg"; +import * as _182 from "./core/channel/v1/tx.rpc.msg"; +import * as _183 from "./core/client/v1/tx.rpc.msg"; +import * as _184 from "./core/connection/v1/tx.rpc.msg"; export declare namespace ibc { namespace applications { namespace transfer { const v1: { - LCDQueryClient: typeof _236.LCDQueryClient; + MsgClientImpl: typeof _181.MsgClientImpl; + QueryClientImpl: typeof _177.QueryClientImpl; + createRpcQueryExtension: (base: import("@cosmjs/stargate").QueryClient) => { + denomTrace(request: _57.QueryDenomTraceRequest): Promise<_57.QueryDenomTraceResponse>; + denomTraces(request?: _57.QueryDenomTracesRequest): Promise<_57.QueryDenomTracesResponse>; + params(request?: _57.QueryParamsRequest): Promise<_57.QueryParamsResponse>; + }; + LCDQueryClient: typeof _173.LCDQueryClient; registry: readonly [string, import("@cosmjs/proto-signing").GeneratedType][]; load: (protoRegistry: import("@cosmjs/proto-signing").Registry) => void; MessageComposer: { encoded: { - transfer(value: _111.MsgTransfer): { + transfer(value: _59.MsgTransfer): { typeUrl: string; value: Uint8Array; }; }; withTypeUrl: { - transfer(value: _111.MsgTransfer): { + transfer(value: _59.MsgTransfer): { typeUrl: string; - value: _111.MsgTransfer; + value: _59.MsgTransfer; }; }; fromPartial: { - transfer(value: _111.MsgTransfer): { + transfer(value: _59.MsgTransfer): { typeUrl: string; - value: _111.MsgTransfer; + value: _59.MsgTransfer; }; }; }; AminoConverter: { "/ibc.applications.transfer.v1.MsgTransfer": { aminoType: string; - toAmino: ({ sourcePort, sourceChannel, token, sender, receiver, timeoutHeight, timeoutTimestamp }: _111.MsgTransfer) => { + toAmino: ({ sourcePort, sourceChannel, token, sender, receiver, timeoutHeight, timeoutTimestamp }: _59.MsgTransfer) => { source_port: string; source_channel: string; token: { @@ -79,70 +92,70 @@ export declare namespace ibc { receiver: string; timeout_height: import("../helpers").AminoHeight; timeout_timestamp: string; - }) => _111.MsgTransfer; + }) => _59.MsgTransfer; }; }; MsgTransfer: { - encode(message: _111.MsgTransfer, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _111.MsgTransfer; - fromPartial(object: any): _111.MsgTransfer; + encode(message: _59.MsgTransfer, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _59.MsgTransfer; + fromPartial(object: any): _59.MsgTransfer; }; MsgTransferResponse: { - encode(_: _111.MsgTransferResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _111.MsgTransferResponse; - fromPartial(_: any): _111.MsgTransferResponse; + encode(_: _59.MsgTransferResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _59.MsgTransferResponse; + fromPartial(_: any): _59.MsgTransferResponse; }; DenomTrace: { - encode(message: _110.DenomTrace, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _110.DenomTrace; - fromPartial(object: any): _110.DenomTrace; + encode(message: _58.DenomTrace, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _58.DenomTrace; + fromPartial(object: any): _58.DenomTrace; }; Params: { - encode(message: _110.Params, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _110.Params; - fromPartial(object: any): _110.Params; + encode(message: _58.Params, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _58.Params; + fromPartial(object: any): _58.Params; }; QueryDenomTraceRequest: { - encode(message: _109.QueryDenomTraceRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _109.QueryDenomTraceRequest; - fromPartial(object: any): _109.QueryDenomTraceRequest; + encode(message: _57.QueryDenomTraceRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _57.QueryDenomTraceRequest; + fromPartial(object: any): _57.QueryDenomTraceRequest; }; QueryDenomTraceResponse: { - encode(message: _109.QueryDenomTraceResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _109.QueryDenomTraceResponse; - fromPartial(object: any): _109.QueryDenomTraceResponse; + encode(message: _57.QueryDenomTraceResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _57.QueryDenomTraceResponse; + fromPartial(object: any): _57.QueryDenomTraceResponse; }; QueryDenomTracesRequest: { - encode(message: _109.QueryDenomTracesRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _109.QueryDenomTracesRequest; - fromPartial(object: any): _109.QueryDenomTracesRequest; + encode(message: _57.QueryDenomTracesRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _57.QueryDenomTracesRequest; + fromPartial(object: any): _57.QueryDenomTracesRequest; }; QueryDenomTracesResponse: { - encode(message: _109.QueryDenomTracesResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _109.QueryDenomTracesResponse; - fromPartial(object: any): _109.QueryDenomTracesResponse; + encode(message: _57.QueryDenomTracesResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _57.QueryDenomTracesResponse; + fromPartial(object: any): _57.QueryDenomTracesResponse; }; QueryParamsRequest: { - encode(_: _109.QueryParamsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _109.QueryParamsRequest; - fromPartial(_: any): _109.QueryParamsRequest; + encode(_: _57.QueryParamsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _57.QueryParamsRequest; + fromPartial(_: any): _57.QueryParamsRequest; }; QueryParamsResponse: { - encode(message: _109.QueryParamsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _109.QueryParamsResponse; - fromPartial(object: any): _109.QueryParamsResponse; + encode(message: _57.QueryParamsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _57.QueryParamsResponse; + fromPartial(object: any): _57.QueryParamsResponse; }; GenesisState: { - encode(message: _108.GenesisState, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _108.GenesisState; - fromPartial(object: any): _108.GenesisState; + encode(message: _56.GenesisState, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _56.GenesisState; + fromPartial(object: any): _56.GenesisState; }; }; const v2: { FungibleTokenPacketData: { - encode(message: _112.FungibleTokenPacketData, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _112.FungibleTokenPacketData; - fromPartial(object: any): _112.FungibleTokenPacketData; + encode(message: _60.FungibleTokenPacketData, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _60.FungibleTokenPacketData; + fromPartial(object: any): _60.FungibleTokenPacketData; }; }; } @@ -150,141 +163,158 @@ export declare namespace ibc { namespace core { namespace channel { const v1: { - LCDQueryClient: typeof _237.LCDQueryClient; + MsgClientImpl: typeof _182.MsgClientImpl; + QueryClientImpl: typeof _178.QueryClientImpl; + createRpcQueryExtension: (base: import("@cosmjs/stargate").QueryClient) => { + channel(request: _63.QueryChannelRequest): Promise<_63.QueryChannelResponse>; + channels(request?: _63.QueryChannelsRequest): Promise<_63.QueryChannelsResponse>; + connectionChannels(request: _63.QueryConnectionChannelsRequest): Promise<_63.QueryConnectionChannelsResponse>; + channelClientState(request: _63.QueryChannelClientStateRequest): Promise<_63.QueryChannelClientStateResponse>; + channelConsensusState(request: _63.QueryChannelConsensusStateRequest): Promise<_63.QueryChannelConsensusStateResponse>; + packetCommitment(request: _63.QueryPacketCommitmentRequest): Promise<_63.QueryPacketCommitmentResponse>; + packetCommitments(request: _63.QueryPacketCommitmentsRequest): Promise<_63.QueryPacketCommitmentsResponse>; + packetReceipt(request: _63.QueryPacketReceiptRequest): Promise<_63.QueryPacketReceiptResponse>; + packetAcknowledgement(request: _63.QueryPacketAcknowledgementRequest): Promise<_63.QueryPacketAcknowledgementResponse>; + packetAcknowledgements(request: _63.QueryPacketAcknowledgementsRequest): Promise<_63.QueryPacketAcknowledgementsResponse>; + unreceivedPackets(request: _63.QueryUnreceivedPacketsRequest): Promise<_63.QueryUnreceivedPacketsResponse>; + unreceivedAcks(request: _63.QueryUnreceivedAcksRequest): Promise<_63.QueryUnreceivedAcksResponse>; + nextSequenceReceive(request: _63.QueryNextSequenceReceiveRequest): Promise<_63.QueryNextSequenceReceiveResponse>; + }; + LCDQueryClient: typeof _174.LCDQueryClient; registry: readonly [string, import("@cosmjs/proto-signing").GeneratedType][]; load: (protoRegistry: import("@cosmjs/proto-signing").Registry) => void; MessageComposer: { encoded: { - channelOpenInit(value: _116.MsgChannelOpenInit): { + channelOpenInit(value: _64.MsgChannelOpenInit): { typeUrl: string; value: Uint8Array; }; - channelOpenTry(value: _116.MsgChannelOpenTry): { + channelOpenTry(value: _64.MsgChannelOpenTry): { typeUrl: string; value: Uint8Array; }; - channelOpenAck(value: _116.MsgChannelOpenAck): { + channelOpenAck(value: _64.MsgChannelOpenAck): { typeUrl: string; value: Uint8Array; }; - channelOpenConfirm(value: _116.MsgChannelOpenConfirm): { + channelOpenConfirm(value: _64.MsgChannelOpenConfirm): { typeUrl: string; value: Uint8Array; }; - channelCloseInit(value: _116.MsgChannelCloseInit): { + channelCloseInit(value: _64.MsgChannelCloseInit): { typeUrl: string; value: Uint8Array; }; - channelCloseConfirm(value: _116.MsgChannelCloseConfirm): { + channelCloseConfirm(value: _64.MsgChannelCloseConfirm): { typeUrl: string; value: Uint8Array; }; - recvPacket(value: _116.MsgRecvPacket): { + recvPacket(value: _64.MsgRecvPacket): { typeUrl: string; value: Uint8Array; }; - timeout(value: _116.MsgTimeout): { + timeout(value: _64.MsgTimeout): { typeUrl: string; value: Uint8Array; }; - timeoutOnClose(value: _116.MsgTimeoutOnClose): { + timeoutOnClose(value: _64.MsgTimeoutOnClose): { typeUrl: string; value: Uint8Array; }; - acknowledgement(value: _116.MsgAcknowledgement): { + acknowledgement(value: _64.MsgAcknowledgement): { typeUrl: string; value: Uint8Array; }; }; withTypeUrl: { - channelOpenInit(value: _116.MsgChannelOpenInit): { + channelOpenInit(value: _64.MsgChannelOpenInit): { typeUrl: string; - value: _116.MsgChannelOpenInit; + value: _64.MsgChannelOpenInit; }; - channelOpenTry(value: _116.MsgChannelOpenTry): { + channelOpenTry(value: _64.MsgChannelOpenTry): { typeUrl: string; - value: _116.MsgChannelOpenTry; + value: _64.MsgChannelOpenTry; }; - channelOpenAck(value: _116.MsgChannelOpenAck): { + channelOpenAck(value: _64.MsgChannelOpenAck): { typeUrl: string; - value: _116.MsgChannelOpenAck; + value: _64.MsgChannelOpenAck; }; - channelOpenConfirm(value: _116.MsgChannelOpenConfirm): { + channelOpenConfirm(value: _64.MsgChannelOpenConfirm): { typeUrl: string; - value: _116.MsgChannelOpenConfirm; + value: _64.MsgChannelOpenConfirm; }; - channelCloseInit(value: _116.MsgChannelCloseInit): { + channelCloseInit(value: _64.MsgChannelCloseInit): { typeUrl: string; - value: _116.MsgChannelCloseInit; + value: _64.MsgChannelCloseInit; }; - channelCloseConfirm(value: _116.MsgChannelCloseConfirm): { + channelCloseConfirm(value: _64.MsgChannelCloseConfirm): { typeUrl: string; - value: _116.MsgChannelCloseConfirm; + value: _64.MsgChannelCloseConfirm; }; - recvPacket(value: _116.MsgRecvPacket): { + recvPacket(value: _64.MsgRecvPacket): { typeUrl: string; - value: _116.MsgRecvPacket; + value: _64.MsgRecvPacket; }; - timeout(value: _116.MsgTimeout): { + timeout(value: _64.MsgTimeout): { typeUrl: string; - value: _116.MsgTimeout; + value: _64.MsgTimeout; }; - timeoutOnClose(value: _116.MsgTimeoutOnClose): { + timeoutOnClose(value: _64.MsgTimeoutOnClose): { typeUrl: string; - value: _116.MsgTimeoutOnClose; + value: _64.MsgTimeoutOnClose; }; - acknowledgement(value: _116.MsgAcknowledgement): { + acknowledgement(value: _64.MsgAcknowledgement): { typeUrl: string; - value: _116.MsgAcknowledgement; + value: _64.MsgAcknowledgement; }; }; fromPartial: { - channelOpenInit(value: _116.MsgChannelOpenInit): { + channelOpenInit(value: _64.MsgChannelOpenInit): { typeUrl: string; - value: _116.MsgChannelOpenInit; + value: _64.MsgChannelOpenInit; }; - channelOpenTry(value: _116.MsgChannelOpenTry): { + channelOpenTry(value: _64.MsgChannelOpenTry): { typeUrl: string; - value: _116.MsgChannelOpenTry; + value: _64.MsgChannelOpenTry; }; - channelOpenAck(value: _116.MsgChannelOpenAck): { + channelOpenAck(value: _64.MsgChannelOpenAck): { typeUrl: string; - value: _116.MsgChannelOpenAck; + value: _64.MsgChannelOpenAck; }; - channelOpenConfirm(value: _116.MsgChannelOpenConfirm): { + channelOpenConfirm(value: _64.MsgChannelOpenConfirm): { typeUrl: string; - value: _116.MsgChannelOpenConfirm; + value: _64.MsgChannelOpenConfirm; }; - channelCloseInit(value: _116.MsgChannelCloseInit): { + channelCloseInit(value: _64.MsgChannelCloseInit): { typeUrl: string; - value: _116.MsgChannelCloseInit; + value: _64.MsgChannelCloseInit; }; - channelCloseConfirm(value: _116.MsgChannelCloseConfirm): { + channelCloseConfirm(value: _64.MsgChannelCloseConfirm): { typeUrl: string; - value: _116.MsgChannelCloseConfirm; + value: _64.MsgChannelCloseConfirm; }; - recvPacket(value: _116.MsgRecvPacket): { + recvPacket(value: _64.MsgRecvPacket): { typeUrl: string; - value: _116.MsgRecvPacket; + value: _64.MsgRecvPacket; }; - timeout(value: _116.MsgTimeout): { + timeout(value: _64.MsgTimeout): { typeUrl: string; - value: _116.MsgTimeout; + value: _64.MsgTimeout; }; - timeoutOnClose(value: _116.MsgTimeoutOnClose): { + timeoutOnClose(value: _64.MsgTimeoutOnClose): { typeUrl: string; - value: _116.MsgTimeoutOnClose; + value: _64.MsgTimeoutOnClose; }; - acknowledgement(value: _116.MsgAcknowledgement): { + acknowledgement(value: _64.MsgAcknowledgement): { typeUrl: string; - value: _116.MsgAcknowledgement; + value: _64.MsgAcknowledgement; }; }; }; AminoConverter: { "/ibc.core.channel.v1.MsgChannelOpenInit": { aminoType: string; - toAmino: ({ portId, channel, signer }: _116.MsgChannelOpenInit) => { + toAmino: ({ portId, channel, signer }: _64.MsgChannelOpenInit) => { port_id: string; channel: { state: number; @@ -311,11 +341,11 @@ export declare namespace ibc { version: string; }; signer: string; - }) => _116.MsgChannelOpenInit; + }) => _64.MsgChannelOpenInit; }; "/ibc.core.channel.v1.MsgChannelOpenTry": { aminoType: string; - toAmino: ({ portId, previousChannelId, channel, counterpartyVersion, proofInit, proofHeight, signer }: _116.MsgChannelOpenTry) => { + toAmino: ({ portId, previousChannelId, channel, counterpartyVersion, proofInit, proofHeight, signer }: _64.MsgChannelOpenTry) => { port_id: string; previous_channel_id: string; channel: { @@ -350,11 +380,11 @@ export declare namespace ibc { proof_init: Uint8Array; proof_height: import("../helpers").AminoHeight; signer: string; - }) => _116.MsgChannelOpenTry; + }) => _64.MsgChannelOpenTry; }; "/ibc.core.channel.v1.MsgChannelOpenAck": { aminoType: string; - toAmino: ({ portId, channelId, counterpartyChannelId, counterpartyVersion, proofTry, proofHeight, signer }: _116.MsgChannelOpenAck) => { + toAmino: ({ portId, channelId, counterpartyChannelId, counterpartyVersion, proofTry, proofHeight, signer }: _64.MsgChannelOpenAck) => { port_id: string; channel_id: string; counterparty_channel_id: string; @@ -371,11 +401,11 @@ export declare namespace ibc { proof_try: Uint8Array; proof_height: import("../helpers").AminoHeight; signer: string; - }) => _116.MsgChannelOpenAck; + }) => _64.MsgChannelOpenAck; }; "/ibc.core.channel.v1.MsgChannelOpenConfirm": { aminoType: string; - toAmino: ({ portId, channelId, proofAck, proofHeight, signer }: _116.MsgChannelOpenConfirm) => { + toAmino: ({ portId, channelId, proofAck, proofHeight, signer }: _64.MsgChannelOpenConfirm) => { port_id: string; channel_id: string; proof_ack: Uint8Array; @@ -388,11 +418,11 @@ export declare namespace ibc { proof_ack: Uint8Array; proof_height: import("../helpers").AminoHeight; signer: string; - }) => _116.MsgChannelOpenConfirm; + }) => _64.MsgChannelOpenConfirm; }; "/ibc.core.channel.v1.MsgChannelCloseInit": { aminoType: string; - toAmino: ({ portId, channelId, signer }: _116.MsgChannelCloseInit) => { + toAmino: ({ portId, channelId, signer }: _64.MsgChannelCloseInit) => { port_id: string; channel_id: string; signer: string; @@ -401,11 +431,11 @@ export declare namespace ibc { port_id: string; channel_id: string; signer: string; - }) => _116.MsgChannelCloseInit; + }) => _64.MsgChannelCloseInit; }; "/ibc.core.channel.v1.MsgChannelCloseConfirm": { aminoType: string; - toAmino: ({ portId, channelId, proofInit, proofHeight, signer }: _116.MsgChannelCloseConfirm) => { + toAmino: ({ portId, channelId, proofInit, proofHeight, signer }: _64.MsgChannelCloseConfirm) => { port_id: string; channel_id: string; proof_init: Uint8Array; @@ -418,11 +448,11 @@ export declare namespace ibc { proof_init: Uint8Array; proof_height: import("../helpers").AminoHeight; signer: string; - }) => _116.MsgChannelCloseConfirm; + }) => _64.MsgChannelCloseConfirm; }; "/ibc.core.channel.v1.MsgRecvPacket": { aminoType: string; - toAmino: ({ packet, proofCommitment, proofHeight, signer }: _116.MsgRecvPacket) => { + toAmino: ({ packet, proofCommitment, proofHeight, signer }: _64.MsgRecvPacket) => { packet: { sequence: string; source_port: string; @@ -451,11 +481,11 @@ export declare namespace ibc { proof_commitment: Uint8Array; proof_height: import("../helpers").AminoHeight; signer: string; - }) => _116.MsgRecvPacket; + }) => _64.MsgRecvPacket; }; "/ibc.core.channel.v1.MsgTimeout": { aminoType: string; - toAmino: ({ packet, proofUnreceived, proofHeight, nextSequenceRecv, signer }: _116.MsgTimeout) => { + toAmino: ({ packet, proofUnreceived, proofHeight, nextSequenceRecv, signer }: _64.MsgTimeout) => { packet: { sequence: string; source_port: string; @@ -486,11 +516,11 @@ export declare namespace ibc { proof_height: import("../helpers").AminoHeight; next_sequence_recv: string; signer: string; - }) => _116.MsgTimeout; + }) => _64.MsgTimeout; }; "/ibc.core.channel.v1.MsgTimeoutOnClose": { aminoType: string; - toAmino: ({ packet, proofUnreceived, proofClose, proofHeight, nextSequenceRecv, signer }: _116.MsgTimeoutOnClose) => { + toAmino: ({ packet, proofUnreceived, proofClose, proofHeight, nextSequenceRecv, signer }: _64.MsgTimeoutOnClose) => { packet: { sequence: string; source_port: string; @@ -523,11 +553,11 @@ export declare namespace ibc { proof_height: import("../helpers").AminoHeight; next_sequence_recv: string; signer: string; - }) => _116.MsgTimeoutOnClose; + }) => _64.MsgTimeoutOnClose; }; "/ibc.core.channel.v1.MsgAcknowledgement": { aminoType: string; - toAmino: ({ packet, acknowledgement, proofAcked, proofHeight, signer }: _116.MsgAcknowledgement) => { + toAmino: ({ packet, acknowledgement, proofAcked, proofHeight, signer }: _64.MsgAcknowledgement) => { packet: { sequence: string; source_port: string; @@ -558,354 +588,366 @@ export declare namespace ibc { proof_acked: Uint8Array; proof_height: import("../helpers").AminoHeight; signer: string; - }) => _116.MsgAcknowledgement; + }) => _64.MsgAcknowledgement; }; }; MsgChannelOpenInit: { - encode(message: _116.MsgChannelOpenInit, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _116.MsgChannelOpenInit; - fromPartial(object: any): _116.MsgChannelOpenInit; + encode(message: _64.MsgChannelOpenInit, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _64.MsgChannelOpenInit; + fromPartial(object: any): _64.MsgChannelOpenInit; }; MsgChannelOpenInitResponse: { - encode(_: _116.MsgChannelOpenInitResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _116.MsgChannelOpenInitResponse; - fromPartial(_: any): _116.MsgChannelOpenInitResponse; + encode(_: _64.MsgChannelOpenInitResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _64.MsgChannelOpenInitResponse; + fromPartial(_: any): _64.MsgChannelOpenInitResponse; }; MsgChannelOpenTry: { - encode(message: _116.MsgChannelOpenTry, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _116.MsgChannelOpenTry; - fromPartial(object: any): _116.MsgChannelOpenTry; + encode(message: _64.MsgChannelOpenTry, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _64.MsgChannelOpenTry; + fromPartial(object: any): _64.MsgChannelOpenTry; }; MsgChannelOpenTryResponse: { - encode(_: _116.MsgChannelOpenTryResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _116.MsgChannelOpenTryResponse; - fromPartial(_: any): _116.MsgChannelOpenTryResponse; + encode(_: _64.MsgChannelOpenTryResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _64.MsgChannelOpenTryResponse; + fromPartial(_: any): _64.MsgChannelOpenTryResponse; }; MsgChannelOpenAck: { - encode(message: _116.MsgChannelOpenAck, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _116.MsgChannelOpenAck; - fromPartial(object: any): _116.MsgChannelOpenAck; + encode(message: _64.MsgChannelOpenAck, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _64.MsgChannelOpenAck; + fromPartial(object: any): _64.MsgChannelOpenAck; }; MsgChannelOpenAckResponse: { - encode(_: _116.MsgChannelOpenAckResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _116.MsgChannelOpenAckResponse; - fromPartial(_: any): _116.MsgChannelOpenAckResponse; + encode(_: _64.MsgChannelOpenAckResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _64.MsgChannelOpenAckResponse; + fromPartial(_: any): _64.MsgChannelOpenAckResponse; }; MsgChannelOpenConfirm: { - encode(message: _116.MsgChannelOpenConfirm, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _116.MsgChannelOpenConfirm; - fromPartial(object: any): _116.MsgChannelOpenConfirm; + encode(message: _64.MsgChannelOpenConfirm, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _64.MsgChannelOpenConfirm; + fromPartial(object: any): _64.MsgChannelOpenConfirm; }; MsgChannelOpenConfirmResponse: { - encode(_: _116.MsgChannelOpenConfirmResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _116.MsgChannelOpenConfirmResponse; - fromPartial(_: any): _116.MsgChannelOpenConfirmResponse; + encode(_: _64.MsgChannelOpenConfirmResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _64.MsgChannelOpenConfirmResponse; + fromPartial(_: any): _64.MsgChannelOpenConfirmResponse; }; MsgChannelCloseInit: { - encode(message: _116.MsgChannelCloseInit, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _116.MsgChannelCloseInit; - fromPartial(object: any): _116.MsgChannelCloseInit; + encode(message: _64.MsgChannelCloseInit, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _64.MsgChannelCloseInit; + fromPartial(object: any): _64.MsgChannelCloseInit; }; MsgChannelCloseInitResponse: { - encode(_: _116.MsgChannelCloseInitResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _116.MsgChannelCloseInitResponse; - fromPartial(_: any): _116.MsgChannelCloseInitResponse; + encode(_: _64.MsgChannelCloseInitResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _64.MsgChannelCloseInitResponse; + fromPartial(_: any): _64.MsgChannelCloseInitResponse; }; MsgChannelCloseConfirm: { - encode(message: _116.MsgChannelCloseConfirm, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _116.MsgChannelCloseConfirm; - fromPartial(object: any): _116.MsgChannelCloseConfirm; + encode(message: _64.MsgChannelCloseConfirm, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _64.MsgChannelCloseConfirm; + fromPartial(object: any): _64.MsgChannelCloseConfirm; }; MsgChannelCloseConfirmResponse: { - encode(_: _116.MsgChannelCloseConfirmResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _116.MsgChannelCloseConfirmResponse; - fromPartial(_: any): _116.MsgChannelCloseConfirmResponse; + encode(_: _64.MsgChannelCloseConfirmResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _64.MsgChannelCloseConfirmResponse; + fromPartial(_: any): _64.MsgChannelCloseConfirmResponse; }; MsgRecvPacket: { - encode(message: _116.MsgRecvPacket, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _116.MsgRecvPacket; - fromPartial(object: any): _116.MsgRecvPacket; + encode(message: _64.MsgRecvPacket, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _64.MsgRecvPacket; + fromPartial(object: any): _64.MsgRecvPacket; }; MsgRecvPacketResponse: { - encode(_: _116.MsgRecvPacketResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _116.MsgRecvPacketResponse; - fromPartial(_: any): _116.MsgRecvPacketResponse; + encode(_: _64.MsgRecvPacketResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _64.MsgRecvPacketResponse; + fromPartial(_: any): _64.MsgRecvPacketResponse; }; MsgTimeout: { - encode(message: _116.MsgTimeout, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _116.MsgTimeout; - fromPartial(object: any): _116.MsgTimeout; + encode(message: _64.MsgTimeout, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _64.MsgTimeout; + fromPartial(object: any): _64.MsgTimeout; }; MsgTimeoutResponse: { - encode(_: _116.MsgTimeoutResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _116.MsgTimeoutResponse; - fromPartial(_: any): _116.MsgTimeoutResponse; + encode(_: _64.MsgTimeoutResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _64.MsgTimeoutResponse; + fromPartial(_: any): _64.MsgTimeoutResponse; }; MsgTimeoutOnClose: { - encode(message: _116.MsgTimeoutOnClose, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _116.MsgTimeoutOnClose; - fromPartial(object: any): _116.MsgTimeoutOnClose; + encode(message: _64.MsgTimeoutOnClose, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _64.MsgTimeoutOnClose; + fromPartial(object: any): _64.MsgTimeoutOnClose; }; MsgTimeoutOnCloseResponse: { - encode(_: _116.MsgTimeoutOnCloseResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _116.MsgTimeoutOnCloseResponse; - fromPartial(_: any): _116.MsgTimeoutOnCloseResponse; + encode(_: _64.MsgTimeoutOnCloseResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _64.MsgTimeoutOnCloseResponse; + fromPartial(_: any): _64.MsgTimeoutOnCloseResponse; }; MsgAcknowledgement: { - encode(message: _116.MsgAcknowledgement, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _116.MsgAcknowledgement; - fromPartial(object: any): _116.MsgAcknowledgement; + encode(message: _64.MsgAcknowledgement, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _64.MsgAcknowledgement; + fromPartial(object: any): _64.MsgAcknowledgement; }; MsgAcknowledgementResponse: { - encode(_: _116.MsgAcknowledgementResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _116.MsgAcknowledgementResponse; - fromPartial(_: any): _116.MsgAcknowledgementResponse; + encode(_: _64.MsgAcknowledgementResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _64.MsgAcknowledgementResponse; + fromPartial(_: any): _64.MsgAcknowledgementResponse; }; QueryChannelRequest: { - encode(message: _115.QueryChannelRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _115.QueryChannelRequest; - fromPartial(object: any): _115.QueryChannelRequest; + encode(message: _63.QueryChannelRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _63.QueryChannelRequest; + fromPartial(object: any): _63.QueryChannelRequest; }; QueryChannelResponse: { - encode(message: _115.QueryChannelResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _115.QueryChannelResponse; - fromPartial(object: any): _115.QueryChannelResponse; + encode(message: _63.QueryChannelResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _63.QueryChannelResponse; + fromPartial(object: any): _63.QueryChannelResponse; }; QueryChannelsRequest: { - encode(message: _115.QueryChannelsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _115.QueryChannelsRequest; - fromPartial(object: any): _115.QueryChannelsRequest; + encode(message: _63.QueryChannelsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _63.QueryChannelsRequest; + fromPartial(object: any): _63.QueryChannelsRequest; }; QueryChannelsResponse: { - encode(message: _115.QueryChannelsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _115.QueryChannelsResponse; - fromPartial(object: any): _115.QueryChannelsResponse; + encode(message: _63.QueryChannelsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _63.QueryChannelsResponse; + fromPartial(object: any): _63.QueryChannelsResponse; }; QueryConnectionChannelsRequest: { - encode(message: _115.QueryConnectionChannelsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _115.QueryConnectionChannelsRequest; - fromPartial(object: any): _115.QueryConnectionChannelsRequest; + encode(message: _63.QueryConnectionChannelsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _63.QueryConnectionChannelsRequest; + fromPartial(object: any): _63.QueryConnectionChannelsRequest; }; QueryConnectionChannelsResponse: { - encode(message: _115.QueryConnectionChannelsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _115.QueryConnectionChannelsResponse; - fromPartial(object: any): _115.QueryConnectionChannelsResponse; + encode(message: _63.QueryConnectionChannelsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _63.QueryConnectionChannelsResponse; + fromPartial(object: any): _63.QueryConnectionChannelsResponse; }; QueryChannelClientStateRequest: { - encode(message: _115.QueryChannelClientStateRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _115.QueryChannelClientStateRequest; - fromPartial(object: any): _115.QueryChannelClientStateRequest; + encode(message: _63.QueryChannelClientStateRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _63.QueryChannelClientStateRequest; + fromPartial(object: any): _63.QueryChannelClientStateRequest; }; QueryChannelClientStateResponse: { - encode(message: _115.QueryChannelClientStateResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _115.QueryChannelClientStateResponse; - fromPartial(object: any): _115.QueryChannelClientStateResponse; + encode(message: _63.QueryChannelClientStateResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _63.QueryChannelClientStateResponse; + fromPartial(object: any): _63.QueryChannelClientStateResponse; }; QueryChannelConsensusStateRequest: { - encode(message: _115.QueryChannelConsensusStateRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _115.QueryChannelConsensusStateRequest; - fromPartial(object: any): _115.QueryChannelConsensusStateRequest; + encode(message: _63.QueryChannelConsensusStateRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _63.QueryChannelConsensusStateRequest; + fromPartial(object: any): _63.QueryChannelConsensusStateRequest; }; QueryChannelConsensusStateResponse: { - encode(message: _115.QueryChannelConsensusStateResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _115.QueryChannelConsensusStateResponse; - fromPartial(object: any): _115.QueryChannelConsensusStateResponse; + encode(message: _63.QueryChannelConsensusStateResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _63.QueryChannelConsensusStateResponse; + fromPartial(object: any): _63.QueryChannelConsensusStateResponse; }; QueryPacketCommitmentRequest: { - encode(message: _115.QueryPacketCommitmentRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _115.QueryPacketCommitmentRequest; - fromPartial(object: any): _115.QueryPacketCommitmentRequest; + encode(message: _63.QueryPacketCommitmentRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _63.QueryPacketCommitmentRequest; + fromPartial(object: any): _63.QueryPacketCommitmentRequest; }; QueryPacketCommitmentResponse: { - encode(message: _115.QueryPacketCommitmentResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _115.QueryPacketCommitmentResponse; - fromPartial(object: any): _115.QueryPacketCommitmentResponse; + encode(message: _63.QueryPacketCommitmentResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _63.QueryPacketCommitmentResponse; + fromPartial(object: any): _63.QueryPacketCommitmentResponse; }; QueryPacketCommitmentsRequest: { - encode(message: _115.QueryPacketCommitmentsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _115.QueryPacketCommitmentsRequest; - fromPartial(object: any): _115.QueryPacketCommitmentsRequest; + encode(message: _63.QueryPacketCommitmentsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _63.QueryPacketCommitmentsRequest; + fromPartial(object: any): _63.QueryPacketCommitmentsRequest; }; QueryPacketCommitmentsResponse: { - encode(message: _115.QueryPacketCommitmentsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _115.QueryPacketCommitmentsResponse; - fromPartial(object: any): _115.QueryPacketCommitmentsResponse; + encode(message: _63.QueryPacketCommitmentsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _63.QueryPacketCommitmentsResponse; + fromPartial(object: any): _63.QueryPacketCommitmentsResponse; }; QueryPacketReceiptRequest: { - encode(message: _115.QueryPacketReceiptRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _115.QueryPacketReceiptRequest; - fromPartial(object: any): _115.QueryPacketReceiptRequest; + encode(message: _63.QueryPacketReceiptRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _63.QueryPacketReceiptRequest; + fromPartial(object: any): _63.QueryPacketReceiptRequest; }; QueryPacketReceiptResponse: { - encode(message: _115.QueryPacketReceiptResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _115.QueryPacketReceiptResponse; - fromPartial(object: any): _115.QueryPacketReceiptResponse; + encode(message: _63.QueryPacketReceiptResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _63.QueryPacketReceiptResponse; + fromPartial(object: any): _63.QueryPacketReceiptResponse; }; QueryPacketAcknowledgementRequest: { - encode(message: _115.QueryPacketAcknowledgementRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _115.QueryPacketAcknowledgementRequest; - fromPartial(object: any): _115.QueryPacketAcknowledgementRequest; + encode(message: _63.QueryPacketAcknowledgementRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _63.QueryPacketAcknowledgementRequest; + fromPartial(object: any): _63.QueryPacketAcknowledgementRequest; }; QueryPacketAcknowledgementResponse: { - encode(message: _115.QueryPacketAcknowledgementResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _115.QueryPacketAcknowledgementResponse; - fromPartial(object: any): _115.QueryPacketAcknowledgementResponse; + encode(message: _63.QueryPacketAcknowledgementResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _63.QueryPacketAcknowledgementResponse; + fromPartial(object: any): _63.QueryPacketAcknowledgementResponse; }; QueryPacketAcknowledgementsRequest: { - encode(message: _115.QueryPacketAcknowledgementsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _115.QueryPacketAcknowledgementsRequest; - fromPartial(object: any): _115.QueryPacketAcknowledgementsRequest; + encode(message: _63.QueryPacketAcknowledgementsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _63.QueryPacketAcknowledgementsRequest; + fromPartial(object: any): _63.QueryPacketAcknowledgementsRequest; }; QueryPacketAcknowledgementsResponse: { - encode(message: _115.QueryPacketAcknowledgementsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _115.QueryPacketAcknowledgementsResponse; - fromPartial(object: any): _115.QueryPacketAcknowledgementsResponse; + encode(message: _63.QueryPacketAcknowledgementsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _63.QueryPacketAcknowledgementsResponse; + fromPartial(object: any): _63.QueryPacketAcknowledgementsResponse; }; QueryUnreceivedPacketsRequest: { - encode(message: _115.QueryUnreceivedPacketsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _115.QueryUnreceivedPacketsRequest; - fromPartial(object: any): _115.QueryUnreceivedPacketsRequest; + encode(message: _63.QueryUnreceivedPacketsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _63.QueryUnreceivedPacketsRequest; + fromPartial(object: any): _63.QueryUnreceivedPacketsRequest; }; QueryUnreceivedPacketsResponse: { - encode(message: _115.QueryUnreceivedPacketsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _115.QueryUnreceivedPacketsResponse; - fromPartial(object: any): _115.QueryUnreceivedPacketsResponse; + encode(message: _63.QueryUnreceivedPacketsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _63.QueryUnreceivedPacketsResponse; + fromPartial(object: any): _63.QueryUnreceivedPacketsResponse; }; QueryUnreceivedAcksRequest: { - encode(message: _115.QueryUnreceivedAcksRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _115.QueryUnreceivedAcksRequest; - fromPartial(object: any): _115.QueryUnreceivedAcksRequest; + encode(message: _63.QueryUnreceivedAcksRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _63.QueryUnreceivedAcksRequest; + fromPartial(object: any): _63.QueryUnreceivedAcksRequest; }; QueryUnreceivedAcksResponse: { - encode(message: _115.QueryUnreceivedAcksResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _115.QueryUnreceivedAcksResponse; - fromPartial(object: any): _115.QueryUnreceivedAcksResponse; + encode(message: _63.QueryUnreceivedAcksResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _63.QueryUnreceivedAcksResponse; + fromPartial(object: any): _63.QueryUnreceivedAcksResponse; }; QueryNextSequenceReceiveRequest: { - encode(message: _115.QueryNextSequenceReceiveRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _115.QueryNextSequenceReceiveRequest; - fromPartial(object: any): _115.QueryNextSequenceReceiveRequest; + encode(message: _63.QueryNextSequenceReceiveRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _63.QueryNextSequenceReceiveRequest; + fromPartial(object: any): _63.QueryNextSequenceReceiveRequest; }; QueryNextSequenceReceiveResponse: { - encode(message: _115.QueryNextSequenceReceiveResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _115.QueryNextSequenceReceiveResponse; - fromPartial(object: any): _115.QueryNextSequenceReceiveResponse; + encode(message: _63.QueryNextSequenceReceiveResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _63.QueryNextSequenceReceiveResponse; + fromPartial(object: any): _63.QueryNextSequenceReceiveResponse; }; GenesisState: { - encode(message: _114.GenesisState, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _114.GenesisState; - fromPartial(object: any): _114.GenesisState; + encode(message: _62.GenesisState, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _62.GenesisState; + fromPartial(object: any): _62.GenesisState; }; PacketSequence: { - encode(message: _114.PacketSequence, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _114.PacketSequence; - fromPartial(object: any): _114.PacketSequence; - }; - stateFromJSON(object: any): _113.State; - stateToJSON(object: _113.State): string; - orderFromJSON(object: any): _113.Order; - orderToJSON(object: _113.Order): string; - State: typeof _113.State; - StateSDKType: typeof _113.State; - Order: typeof _113.Order; - OrderSDKType: typeof _113.Order; + encode(message: _62.PacketSequence, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _62.PacketSequence; + fromPartial(object: any): _62.PacketSequence; + }; + stateFromJSON(object: any): _61.State; + stateToJSON(object: _61.State): string; + orderFromJSON(object: any): _61.Order; + orderToJSON(object: _61.Order): string; + State: typeof _61.State; + StateSDKType: typeof _61.State; + Order: typeof _61.Order; + OrderSDKType: typeof _61.Order; Channel: { - encode(message: _113.Channel, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _113.Channel; - fromPartial(object: any): _113.Channel; + encode(message: _61.Channel, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _61.Channel; + fromPartial(object: any): _61.Channel; }; IdentifiedChannel: { - encode(message: _113.IdentifiedChannel, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _113.IdentifiedChannel; - fromPartial(object: any): _113.IdentifiedChannel; + encode(message: _61.IdentifiedChannel, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _61.IdentifiedChannel; + fromPartial(object: any): _61.IdentifiedChannel; }; Counterparty: { - encode(message: _113.Counterparty, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _113.Counterparty; - fromPartial(object: any): _113.Counterparty; + encode(message: _61.Counterparty, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _61.Counterparty; + fromPartial(object: any): _61.Counterparty; }; Packet: { - encode(message: _113.Packet, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _113.Packet; - fromPartial(object: any): _113.Packet; + encode(message: _61.Packet, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _61.Packet; + fromPartial(object: any): _61.Packet; }; PacketState: { - encode(message: _113.PacketState, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _113.PacketState; - fromPartial(object: any): _113.PacketState; + encode(message: _61.PacketState, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _61.PacketState; + fromPartial(object: any): _61.PacketState; }; Acknowledgement: { - encode(message: _113.Acknowledgement, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _113.Acknowledgement; - fromPartial(object: any): _113.Acknowledgement; + encode(message: _61.Acknowledgement, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _61.Acknowledgement; + fromPartial(object: any): _61.Acknowledgement; }; }; } namespace client { const v1: { - LCDQueryClient: typeof _238.LCDQueryClient; + MsgClientImpl: typeof _183.MsgClientImpl; + QueryClientImpl: typeof _179.QueryClientImpl; + createRpcQueryExtension: (base: import("@cosmjs/stargate").QueryClient) => { + clientState(request: _67.QueryClientStateRequest): Promise<_67.QueryClientStateResponse>; + clientStates(request?: _67.QueryClientStatesRequest): Promise<_67.QueryClientStatesResponse>; + consensusState(request: _67.QueryConsensusStateRequest): Promise<_67.QueryConsensusStateResponse>; + consensusStates(request: _67.QueryConsensusStatesRequest): Promise<_67.QueryConsensusStatesResponse>; + clientStatus(request: _67.QueryClientStatusRequest): Promise<_67.QueryClientStatusResponse>; + clientParams(request?: _67.QueryClientParamsRequest): Promise<_67.QueryClientParamsResponse>; + upgradedClientState(request?: _67.QueryUpgradedClientStateRequest): Promise<_67.QueryUpgradedClientStateResponse>; + upgradedConsensusState(request?: _67.QueryUpgradedConsensusStateRequest): Promise<_67.QueryUpgradedConsensusStateResponse>; + }; + LCDQueryClient: typeof _175.LCDQueryClient; registry: readonly [string, import("@cosmjs/proto-signing").GeneratedType][]; load: (protoRegistry: import("@cosmjs/proto-signing").Registry) => void; MessageComposer: { encoded: { - createClient(value: _120.MsgCreateClient): { + createClient(value: _68.MsgCreateClient): { typeUrl: string; value: Uint8Array; }; - updateClient(value: _120.MsgUpdateClient): { + updateClient(value: _68.MsgUpdateClient): { typeUrl: string; value: Uint8Array; }; - upgradeClient(value: _120.MsgUpgradeClient): { + upgradeClient(value: _68.MsgUpgradeClient): { typeUrl: string; value: Uint8Array; }; - submitMisbehaviour(value: _120.MsgSubmitMisbehaviour): { + submitMisbehaviour(value: _68.MsgSubmitMisbehaviour): { typeUrl: string; value: Uint8Array; }; }; withTypeUrl: { - createClient(value: _120.MsgCreateClient): { + createClient(value: _68.MsgCreateClient): { typeUrl: string; - value: _120.MsgCreateClient; + value: _68.MsgCreateClient; }; - updateClient(value: _120.MsgUpdateClient): { + updateClient(value: _68.MsgUpdateClient): { typeUrl: string; - value: _120.MsgUpdateClient; + value: _68.MsgUpdateClient; }; - upgradeClient(value: _120.MsgUpgradeClient): { + upgradeClient(value: _68.MsgUpgradeClient): { typeUrl: string; - value: _120.MsgUpgradeClient; + value: _68.MsgUpgradeClient; }; - submitMisbehaviour(value: _120.MsgSubmitMisbehaviour): { + submitMisbehaviour(value: _68.MsgSubmitMisbehaviour): { typeUrl: string; - value: _120.MsgSubmitMisbehaviour; + value: _68.MsgSubmitMisbehaviour; }; }; fromPartial: { - createClient(value: _120.MsgCreateClient): { + createClient(value: _68.MsgCreateClient): { typeUrl: string; - value: _120.MsgCreateClient; + value: _68.MsgCreateClient; }; - updateClient(value: _120.MsgUpdateClient): { + updateClient(value: _68.MsgUpdateClient): { typeUrl: string; - value: _120.MsgUpdateClient; + value: _68.MsgUpdateClient; }; - upgradeClient(value: _120.MsgUpgradeClient): { + upgradeClient(value: _68.MsgUpgradeClient): { typeUrl: string; - value: _120.MsgUpgradeClient; + value: _68.MsgUpgradeClient; }; - submitMisbehaviour(value: _120.MsgSubmitMisbehaviour): { + submitMisbehaviour(value: _68.MsgSubmitMisbehaviour): { typeUrl: string; - value: _120.MsgSubmitMisbehaviour; + value: _68.MsgSubmitMisbehaviour; }; }; }; AminoConverter: { "/ibc.core.client.v1.MsgCreateClient": { aminoType: string; - toAmino: ({ clientState, consensusState, signer }: _120.MsgCreateClient) => { + toAmino: ({ clientState, consensusState, signer }: _68.MsgCreateClient) => { client_state: { type_url: string; value: Uint8Array; @@ -926,11 +968,11 @@ export declare namespace ibc { value: Uint8Array; }; signer: string; - }) => _120.MsgCreateClient; + }) => _68.MsgCreateClient; }; "/ibc.core.client.v1.MsgUpdateClient": { aminoType: string; - toAmino: ({ clientId, header, signer }: _120.MsgUpdateClient) => { + toAmino: ({ clientId, header, signer }: _68.MsgUpdateClient) => { client_id: string; header: { type_url: string; @@ -945,11 +987,11 @@ export declare namespace ibc { value: Uint8Array; }; signer: string; - }) => _120.MsgUpdateClient; + }) => _68.MsgUpdateClient; }; "/ibc.core.client.v1.MsgUpgradeClient": { aminoType: string; - toAmino: ({ clientId, clientState, consensusState, proofUpgradeClient, proofUpgradeConsensusState, signer }: _120.MsgUpgradeClient) => { + toAmino: ({ clientId, clientState, consensusState, proofUpgradeClient, proofUpgradeConsensusState, signer }: _68.MsgUpgradeClient) => { client_id: string; client_state: { type_url: string; @@ -976,11 +1018,11 @@ export declare namespace ibc { proof_upgrade_client: Uint8Array; proof_upgrade_consensus_state: Uint8Array; signer: string; - }) => _120.MsgUpgradeClient; + }) => _68.MsgUpgradeClient; }; "/ibc.core.client.v1.MsgSubmitMisbehaviour": { aminoType: string; - toAmino: ({ clientId, misbehaviour, signer }: _120.MsgSubmitMisbehaviour) => { + toAmino: ({ clientId, misbehaviour, signer }: _68.MsgSubmitMisbehaviour) => { client_id: string; misbehaviour: { type_url: string; @@ -995,270 +1037,279 @@ export declare namespace ibc { value: Uint8Array; }; signer: string; - }) => _120.MsgSubmitMisbehaviour; + }) => _68.MsgSubmitMisbehaviour; }; }; MsgCreateClient: { - encode(message: _120.MsgCreateClient, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _120.MsgCreateClient; - fromPartial(object: any): _120.MsgCreateClient; + encode(message: _68.MsgCreateClient, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _68.MsgCreateClient; + fromPartial(object: any): _68.MsgCreateClient; }; MsgCreateClientResponse: { - encode(_: _120.MsgCreateClientResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _120.MsgCreateClientResponse; - fromPartial(_: any): _120.MsgCreateClientResponse; + encode(_: _68.MsgCreateClientResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _68.MsgCreateClientResponse; + fromPartial(_: any): _68.MsgCreateClientResponse; }; MsgUpdateClient: { - encode(message: _120.MsgUpdateClient, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _120.MsgUpdateClient; - fromPartial(object: any): _120.MsgUpdateClient; + encode(message: _68.MsgUpdateClient, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _68.MsgUpdateClient; + fromPartial(object: any): _68.MsgUpdateClient; }; MsgUpdateClientResponse: { - encode(_: _120.MsgUpdateClientResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _120.MsgUpdateClientResponse; - fromPartial(_: any): _120.MsgUpdateClientResponse; + encode(_: _68.MsgUpdateClientResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _68.MsgUpdateClientResponse; + fromPartial(_: any): _68.MsgUpdateClientResponse; }; MsgUpgradeClient: { - encode(message: _120.MsgUpgradeClient, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _120.MsgUpgradeClient; - fromPartial(object: any): _120.MsgUpgradeClient; + encode(message: _68.MsgUpgradeClient, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _68.MsgUpgradeClient; + fromPartial(object: any): _68.MsgUpgradeClient; }; MsgUpgradeClientResponse: { - encode(_: _120.MsgUpgradeClientResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _120.MsgUpgradeClientResponse; - fromPartial(_: any): _120.MsgUpgradeClientResponse; + encode(_: _68.MsgUpgradeClientResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _68.MsgUpgradeClientResponse; + fromPartial(_: any): _68.MsgUpgradeClientResponse; }; MsgSubmitMisbehaviour: { - encode(message: _120.MsgSubmitMisbehaviour, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _120.MsgSubmitMisbehaviour; - fromPartial(object: any): _120.MsgSubmitMisbehaviour; + encode(message: _68.MsgSubmitMisbehaviour, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _68.MsgSubmitMisbehaviour; + fromPartial(object: any): _68.MsgSubmitMisbehaviour; }; MsgSubmitMisbehaviourResponse: { - encode(_: _120.MsgSubmitMisbehaviourResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _120.MsgSubmitMisbehaviourResponse; - fromPartial(_: any): _120.MsgSubmitMisbehaviourResponse; + encode(_: _68.MsgSubmitMisbehaviourResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _68.MsgSubmitMisbehaviourResponse; + fromPartial(_: any): _68.MsgSubmitMisbehaviourResponse; }; QueryClientStateRequest: { - encode(message: _119.QueryClientStateRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _119.QueryClientStateRequest; - fromPartial(object: any): _119.QueryClientStateRequest; + encode(message: _67.QueryClientStateRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _67.QueryClientStateRequest; + fromPartial(object: any): _67.QueryClientStateRequest; }; QueryClientStateResponse: { - encode(message: _119.QueryClientStateResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _119.QueryClientStateResponse; - fromPartial(object: any): _119.QueryClientStateResponse; + encode(message: _67.QueryClientStateResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _67.QueryClientStateResponse; + fromPartial(object: any): _67.QueryClientStateResponse; }; QueryClientStatesRequest: { - encode(message: _119.QueryClientStatesRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _119.QueryClientStatesRequest; - fromPartial(object: any): _119.QueryClientStatesRequest; + encode(message: _67.QueryClientStatesRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _67.QueryClientStatesRequest; + fromPartial(object: any): _67.QueryClientStatesRequest; }; QueryClientStatesResponse: { - encode(message: _119.QueryClientStatesResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _119.QueryClientStatesResponse; - fromPartial(object: any): _119.QueryClientStatesResponse; + encode(message: _67.QueryClientStatesResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _67.QueryClientStatesResponse; + fromPartial(object: any): _67.QueryClientStatesResponse; }; QueryConsensusStateRequest: { - encode(message: _119.QueryConsensusStateRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _119.QueryConsensusStateRequest; - fromPartial(object: any): _119.QueryConsensusStateRequest; + encode(message: _67.QueryConsensusStateRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _67.QueryConsensusStateRequest; + fromPartial(object: any): _67.QueryConsensusStateRequest; }; QueryConsensusStateResponse: { - encode(message: _119.QueryConsensusStateResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _119.QueryConsensusStateResponse; - fromPartial(object: any): _119.QueryConsensusStateResponse; + encode(message: _67.QueryConsensusStateResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _67.QueryConsensusStateResponse; + fromPartial(object: any): _67.QueryConsensusStateResponse; }; QueryConsensusStatesRequest: { - encode(message: _119.QueryConsensusStatesRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _119.QueryConsensusStatesRequest; - fromPartial(object: any): _119.QueryConsensusStatesRequest; + encode(message: _67.QueryConsensusStatesRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _67.QueryConsensusStatesRequest; + fromPartial(object: any): _67.QueryConsensusStatesRequest; }; QueryConsensusStatesResponse: { - encode(message: _119.QueryConsensusStatesResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _119.QueryConsensusStatesResponse; - fromPartial(object: any): _119.QueryConsensusStatesResponse; + encode(message: _67.QueryConsensusStatesResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _67.QueryConsensusStatesResponse; + fromPartial(object: any): _67.QueryConsensusStatesResponse; }; QueryClientStatusRequest: { - encode(message: _119.QueryClientStatusRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _119.QueryClientStatusRequest; - fromPartial(object: any): _119.QueryClientStatusRequest; + encode(message: _67.QueryClientStatusRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _67.QueryClientStatusRequest; + fromPartial(object: any): _67.QueryClientStatusRequest; }; QueryClientStatusResponse: { - encode(message: _119.QueryClientStatusResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _119.QueryClientStatusResponse; - fromPartial(object: any): _119.QueryClientStatusResponse; + encode(message: _67.QueryClientStatusResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _67.QueryClientStatusResponse; + fromPartial(object: any): _67.QueryClientStatusResponse; }; QueryClientParamsRequest: { - encode(_: _119.QueryClientParamsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _119.QueryClientParamsRequest; - fromPartial(_: any): _119.QueryClientParamsRequest; + encode(_: _67.QueryClientParamsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _67.QueryClientParamsRequest; + fromPartial(_: any): _67.QueryClientParamsRequest; }; QueryClientParamsResponse: { - encode(message: _119.QueryClientParamsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _119.QueryClientParamsResponse; - fromPartial(object: any): _119.QueryClientParamsResponse; + encode(message: _67.QueryClientParamsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _67.QueryClientParamsResponse; + fromPartial(object: any): _67.QueryClientParamsResponse; }; QueryUpgradedClientStateRequest: { - encode(_: _119.QueryUpgradedClientStateRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _119.QueryUpgradedClientStateRequest; - fromPartial(_: any): _119.QueryUpgradedClientStateRequest; + encode(_: _67.QueryUpgradedClientStateRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _67.QueryUpgradedClientStateRequest; + fromPartial(_: any): _67.QueryUpgradedClientStateRequest; }; QueryUpgradedClientStateResponse: { - encode(message: _119.QueryUpgradedClientStateResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _119.QueryUpgradedClientStateResponse; - fromPartial(object: any): _119.QueryUpgradedClientStateResponse; + encode(message: _67.QueryUpgradedClientStateResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _67.QueryUpgradedClientStateResponse; + fromPartial(object: any): _67.QueryUpgradedClientStateResponse; }; QueryUpgradedConsensusStateRequest: { - encode(_: _119.QueryUpgradedConsensusStateRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _119.QueryUpgradedConsensusStateRequest; - fromPartial(_: any): _119.QueryUpgradedConsensusStateRequest; + encode(_: _67.QueryUpgradedConsensusStateRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _67.QueryUpgradedConsensusStateRequest; + fromPartial(_: any): _67.QueryUpgradedConsensusStateRequest; }; QueryUpgradedConsensusStateResponse: { - encode(message: _119.QueryUpgradedConsensusStateResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _119.QueryUpgradedConsensusStateResponse; - fromPartial(object: any): _119.QueryUpgradedConsensusStateResponse; + encode(message: _67.QueryUpgradedConsensusStateResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _67.QueryUpgradedConsensusStateResponse; + fromPartial(object: any): _67.QueryUpgradedConsensusStateResponse; }; GenesisState: { - encode(message: _118.GenesisState, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _118.GenesisState; - fromPartial(object: any): _118.GenesisState; + encode(message: _66.GenesisState, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _66.GenesisState; + fromPartial(object: any): _66.GenesisState; }; GenesisMetadata: { - encode(message: _118.GenesisMetadata, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _118.GenesisMetadata; - fromPartial(object: any): _118.GenesisMetadata; + encode(message: _66.GenesisMetadata, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _66.GenesisMetadata; + fromPartial(object: any): _66.GenesisMetadata; }; IdentifiedGenesisMetadata: { - encode(message: _118.IdentifiedGenesisMetadata, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _118.IdentifiedGenesisMetadata; - fromPartial(object: any): _118.IdentifiedGenesisMetadata; + encode(message: _66.IdentifiedGenesisMetadata, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _66.IdentifiedGenesisMetadata; + fromPartial(object: any): _66.IdentifiedGenesisMetadata; }; IdentifiedClientState: { - encode(message: _117.IdentifiedClientState, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _117.IdentifiedClientState; - fromPartial(object: any): _117.IdentifiedClientState; + encode(message: _65.IdentifiedClientState, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _65.IdentifiedClientState; + fromPartial(object: any): _65.IdentifiedClientState; }; ConsensusStateWithHeight: { - encode(message: _117.ConsensusStateWithHeight, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _117.ConsensusStateWithHeight; - fromPartial(object: any): _117.ConsensusStateWithHeight; + encode(message: _65.ConsensusStateWithHeight, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _65.ConsensusStateWithHeight; + fromPartial(object: any): _65.ConsensusStateWithHeight; }; ClientConsensusStates: { - encode(message: _117.ClientConsensusStates, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _117.ClientConsensusStates; - fromPartial(object: any): _117.ClientConsensusStates; + encode(message: _65.ClientConsensusStates, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _65.ClientConsensusStates; + fromPartial(object: any): _65.ClientConsensusStates; }; ClientUpdateProposal: { - encode(message: _117.ClientUpdateProposal, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _117.ClientUpdateProposal; - fromPartial(object: any): _117.ClientUpdateProposal; + encode(message: _65.ClientUpdateProposal, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _65.ClientUpdateProposal; + fromPartial(object: any): _65.ClientUpdateProposal; }; UpgradeProposal: { - encode(message: _117.UpgradeProposal, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _117.UpgradeProposal; - fromPartial(object: any): _117.UpgradeProposal; + encode(message: _65.UpgradeProposal, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _65.UpgradeProposal; + fromPartial(object: any): _65.UpgradeProposal; }; Height: { - encode(message: _117.Height, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _117.Height; - fromPartial(object: any): _117.Height; + encode(message: _65.Height, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _65.Height; + fromPartial(object: any): _65.Height; }; Params: { - encode(message: _117.Params, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _117.Params; - fromPartial(object: any): _117.Params; + encode(message: _65.Params, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _65.Params; + fromPartial(object: any): _65.Params; }; }; } namespace commitment { const v1: { MerkleRoot: { - encode(message: _121.MerkleRoot, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _121.MerkleRoot; - fromPartial(object: any): _121.MerkleRoot; + encode(message: _69.MerkleRoot, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _69.MerkleRoot; + fromPartial(object: any): _69.MerkleRoot; }; MerklePrefix: { - encode(message: _121.MerklePrefix, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _121.MerklePrefix; - fromPartial(object: any): _121.MerklePrefix; + encode(message: _69.MerklePrefix, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _69.MerklePrefix; + fromPartial(object: any): _69.MerklePrefix; }; MerklePath: { - encode(message: _121.MerklePath, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _121.MerklePath; - fromPartial(object: any): _121.MerklePath; + encode(message: _69.MerklePath, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _69.MerklePath; + fromPartial(object: any): _69.MerklePath; }; MerkleProof: { - encode(message: _121.MerkleProof, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _121.MerkleProof; - fromPartial(object: any): _121.MerkleProof; + encode(message: _69.MerkleProof, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _69.MerkleProof; + fromPartial(object: any): _69.MerkleProof; }; }; } namespace connection { const v1: { - LCDQueryClient: typeof _239.LCDQueryClient; + MsgClientImpl: typeof _184.MsgClientImpl; + QueryClientImpl: typeof _180.QueryClientImpl; + createRpcQueryExtension: (base: import("@cosmjs/stargate").QueryClient) => { + connection(request: _72.QueryConnectionRequest): Promise<_72.QueryConnectionResponse>; + connections(request?: _72.QueryConnectionsRequest): Promise<_72.QueryConnectionsResponse>; + clientConnections(request: _72.QueryClientConnectionsRequest): Promise<_72.QueryClientConnectionsResponse>; + connectionClientState(request: _72.QueryConnectionClientStateRequest): Promise<_72.QueryConnectionClientStateResponse>; + connectionConsensusState(request: _72.QueryConnectionConsensusStateRequest): Promise<_72.QueryConnectionConsensusStateResponse>; + }; + LCDQueryClient: typeof _176.LCDQueryClient; registry: readonly [string, import("@cosmjs/proto-signing").GeneratedType][]; load: (protoRegistry: import("@cosmjs/proto-signing").Registry) => void; MessageComposer: { encoded: { - connectionOpenInit(value: _125.MsgConnectionOpenInit): { + connectionOpenInit(value: _73.MsgConnectionOpenInit): { typeUrl: string; value: Uint8Array; }; - connectionOpenTry(value: _125.MsgConnectionOpenTry): { + connectionOpenTry(value: _73.MsgConnectionOpenTry): { typeUrl: string; value: Uint8Array; }; - connectionOpenAck(value: _125.MsgConnectionOpenAck): { + connectionOpenAck(value: _73.MsgConnectionOpenAck): { typeUrl: string; value: Uint8Array; }; - connectionOpenConfirm(value: _125.MsgConnectionOpenConfirm): { + connectionOpenConfirm(value: _73.MsgConnectionOpenConfirm): { typeUrl: string; value: Uint8Array; }; }; withTypeUrl: { - connectionOpenInit(value: _125.MsgConnectionOpenInit): { + connectionOpenInit(value: _73.MsgConnectionOpenInit): { typeUrl: string; - value: _125.MsgConnectionOpenInit; + value: _73.MsgConnectionOpenInit; }; - connectionOpenTry(value: _125.MsgConnectionOpenTry): { + connectionOpenTry(value: _73.MsgConnectionOpenTry): { typeUrl: string; - value: _125.MsgConnectionOpenTry; + value: _73.MsgConnectionOpenTry; }; - connectionOpenAck(value: _125.MsgConnectionOpenAck): { + connectionOpenAck(value: _73.MsgConnectionOpenAck): { typeUrl: string; - value: _125.MsgConnectionOpenAck; + value: _73.MsgConnectionOpenAck; }; - connectionOpenConfirm(value: _125.MsgConnectionOpenConfirm): { + connectionOpenConfirm(value: _73.MsgConnectionOpenConfirm): { typeUrl: string; - value: _125.MsgConnectionOpenConfirm; + value: _73.MsgConnectionOpenConfirm; }; }; fromPartial: { - connectionOpenInit(value: _125.MsgConnectionOpenInit): { + connectionOpenInit(value: _73.MsgConnectionOpenInit): { typeUrl: string; - value: _125.MsgConnectionOpenInit; + value: _73.MsgConnectionOpenInit; }; - connectionOpenTry(value: _125.MsgConnectionOpenTry): { + connectionOpenTry(value: _73.MsgConnectionOpenTry): { typeUrl: string; - value: _125.MsgConnectionOpenTry; + value: _73.MsgConnectionOpenTry; }; - connectionOpenAck(value: _125.MsgConnectionOpenAck): { + connectionOpenAck(value: _73.MsgConnectionOpenAck): { typeUrl: string; - value: _125.MsgConnectionOpenAck; + value: _73.MsgConnectionOpenAck; }; - connectionOpenConfirm(value: _125.MsgConnectionOpenConfirm): { + connectionOpenConfirm(value: _73.MsgConnectionOpenConfirm): { typeUrl: string; - value: _125.MsgConnectionOpenConfirm; + value: _73.MsgConnectionOpenConfirm; }; }; }; AminoConverter: { "/ibc.core.connection.v1.MsgConnectionOpenInit": { aminoType: string; - toAmino: ({ clientId, counterparty, version, delayPeriod, signer }: _125.MsgConnectionOpenInit) => { + toAmino: ({ clientId, counterparty, version, delayPeriod, signer }: _73.MsgConnectionOpenInit) => { client_id: string; counterparty: { client_id: string; @@ -1289,11 +1340,11 @@ export declare namespace ibc { }; delay_period: string; signer: string; - }) => _125.MsgConnectionOpenInit; + }) => _73.MsgConnectionOpenInit; }; "/ibc.core.connection.v1.MsgConnectionOpenTry": { aminoType: string; - toAmino: ({ clientId, previousConnectionId, clientState, counterparty, delayPeriod, counterpartyVersions, proofHeight, proofInit, proofClient, proofConsensus, consensusHeight, signer }: _125.MsgConnectionOpenTry) => { + toAmino: ({ clientId, previousConnectionId, clientState, counterparty, delayPeriod, counterpartyVersions, proofHeight, proofInit, proofClient, proofConsensus, consensusHeight, signer }: _73.MsgConnectionOpenTry) => { client_id: string; previous_connection_id: string; client_state: { @@ -1344,11 +1395,11 @@ export declare namespace ibc { proof_consensus: Uint8Array; consensus_height: import("../helpers").AminoHeight; signer: string; - }) => _125.MsgConnectionOpenTry; + }) => _73.MsgConnectionOpenTry; }; "/ibc.core.connection.v1.MsgConnectionOpenAck": { aminoType: string; - toAmino: ({ connectionId, counterpartyConnectionId, version, clientState, proofHeight, proofTry, proofClient, proofConsensus, consensusHeight, signer }: _125.MsgConnectionOpenAck) => { + toAmino: ({ connectionId, counterpartyConnectionId, version, clientState, proofHeight, proofTry, proofClient, proofConsensus, consensusHeight, signer }: _73.MsgConnectionOpenAck) => { connection_id: string; counterparty_connection_id: string; version: { @@ -1383,11 +1434,11 @@ export declare namespace ibc { proof_consensus: Uint8Array; consensus_height: import("../helpers").AminoHeight; signer: string; - }) => _125.MsgConnectionOpenAck; + }) => _73.MsgConnectionOpenAck; }; "/ibc.core.connection.v1.MsgConnectionOpenConfirm": { aminoType: string; - toAmino: ({ connectionId, proofAck, proofHeight, signer }: _125.MsgConnectionOpenConfirm) => { + toAmino: ({ connectionId, proofAck, proofHeight, signer }: _73.MsgConnectionOpenConfirm) => { connection_id: string; proof_ack: Uint8Array; proof_height: import("../helpers").AminoHeight; @@ -1398,165 +1449,142 @@ export declare namespace ibc { proof_ack: Uint8Array; proof_height: import("../helpers").AminoHeight; signer: string; - }) => _125.MsgConnectionOpenConfirm; + }) => _73.MsgConnectionOpenConfirm; }; }; MsgConnectionOpenInit: { - encode(message: _125.MsgConnectionOpenInit, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _125.MsgConnectionOpenInit; - fromPartial(object: any): _125.MsgConnectionOpenInit; + encode(message: _73.MsgConnectionOpenInit, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _73.MsgConnectionOpenInit; + fromPartial(object: any): _73.MsgConnectionOpenInit; }; MsgConnectionOpenInitResponse: { - encode(_: _125.MsgConnectionOpenInitResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _125.MsgConnectionOpenInitResponse; - fromPartial(_: any): _125.MsgConnectionOpenInitResponse; + encode(_: _73.MsgConnectionOpenInitResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _73.MsgConnectionOpenInitResponse; + fromPartial(_: any): _73.MsgConnectionOpenInitResponse; }; MsgConnectionOpenTry: { - encode(message: _125.MsgConnectionOpenTry, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _125.MsgConnectionOpenTry; - fromPartial(object: any): _125.MsgConnectionOpenTry; + encode(message: _73.MsgConnectionOpenTry, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _73.MsgConnectionOpenTry; + fromPartial(object: any): _73.MsgConnectionOpenTry; }; MsgConnectionOpenTryResponse: { - encode(_: _125.MsgConnectionOpenTryResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _125.MsgConnectionOpenTryResponse; - fromPartial(_: any): _125.MsgConnectionOpenTryResponse; + encode(_: _73.MsgConnectionOpenTryResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _73.MsgConnectionOpenTryResponse; + fromPartial(_: any): _73.MsgConnectionOpenTryResponse; }; MsgConnectionOpenAck: { - encode(message: _125.MsgConnectionOpenAck, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _125.MsgConnectionOpenAck; - fromPartial(object: any): _125.MsgConnectionOpenAck; + encode(message: _73.MsgConnectionOpenAck, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _73.MsgConnectionOpenAck; + fromPartial(object: any): _73.MsgConnectionOpenAck; }; MsgConnectionOpenAckResponse: { - encode(_: _125.MsgConnectionOpenAckResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _125.MsgConnectionOpenAckResponse; - fromPartial(_: any): _125.MsgConnectionOpenAckResponse; + encode(_: _73.MsgConnectionOpenAckResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _73.MsgConnectionOpenAckResponse; + fromPartial(_: any): _73.MsgConnectionOpenAckResponse; }; MsgConnectionOpenConfirm: { - encode(message: _125.MsgConnectionOpenConfirm, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _125.MsgConnectionOpenConfirm; - fromPartial(object: any): _125.MsgConnectionOpenConfirm; + encode(message: _73.MsgConnectionOpenConfirm, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _73.MsgConnectionOpenConfirm; + fromPartial(object: any): _73.MsgConnectionOpenConfirm; }; MsgConnectionOpenConfirmResponse: { - encode(_: _125.MsgConnectionOpenConfirmResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _125.MsgConnectionOpenConfirmResponse; - fromPartial(_: any): _125.MsgConnectionOpenConfirmResponse; + encode(_: _73.MsgConnectionOpenConfirmResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _73.MsgConnectionOpenConfirmResponse; + fromPartial(_: any): _73.MsgConnectionOpenConfirmResponse; }; QueryConnectionRequest: { - encode(message: _124.QueryConnectionRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _124.QueryConnectionRequest; - fromPartial(object: any): _124.QueryConnectionRequest; + encode(message: _72.QueryConnectionRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _72.QueryConnectionRequest; + fromPartial(object: any): _72.QueryConnectionRequest; }; QueryConnectionResponse: { - encode(message: _124.QueryConnectionResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _124.QueryConnectionResponse; - fromPartial(object: any): _124.QueryConnectionResponse; + encode(message: _72.QueryConnectionResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _72.QueryConnectionResponse; + fromPartial(object: any): _72.QueryConnectionResponse; }; QueryConnectionsRequest: { - encode(message: _124.QueryConnectionsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _124.QueryConnectionsRequest; - fromPartial(object: any): _124.QueryConnectionsRequest; + encode(message: _72.QueryConnectionsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _72.QueryConnectionsRequest; + fromPartial(object: any): _72.QueryConnectionsRequest; }; QueryConnectionsResponse: { - encode(message: _124.QueryConnectionsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _124.QueryConnectionsResponse; - fromPartial(object: any): _124.QueryConnectionsResponse; + encode(message: _72.QueryConnectionsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _72.QueryConnectionsResponse; + fromPartial(object: any): _72.QueryConnectionsResponse; }; QueryClientConnectionsRequest: { - encode(message: _124.QueryClientConnectionsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _124.QueryClientConnectionsRequest; - fromPartial(object: any): _124.QueryClientConnectionsRequest; + encode(message: _72.QueryClientConnectionsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _72.QueryClientConnectionsRequest; + fromPartial(object: any): _72.QueryClientConnectionsRequest; }; QueryClientConnectionsResponse: { - encode(message: _124.QueryClientConnectionsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _124.QueryClientConnectionsResponse; - fromPartial(object: any): _124.QueryClientConnectionsResponse; + encode(message: _72.QueryClientConnectionsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _72.QueryClientConnectionsResponse; + fromPartial(object: any): _72.QueryClientConnectionsResponse; }; QueryConnectionClientStateRequest: { - encode(message: _124.QueryConnectionClientStateRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _124.QueryConnectionClientStateRequest; - fromPartial(object: any): _124.QueryConnectionClientStateRequest; + encode(message: _72.QueryConnectionClientStateRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _72.QueryConnectionClientStateRequest; + fromPartial(object: any): _72.QueryConnectionClientStateRequest; }; QueryConnectionClientStateResponse: { - encode(message: _124.QueryConnectionClientStateResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _124.QueryConnectionClientStateResponse; - fromPartial(object: any): _124.QueryConnectionClientStateResponse; + encode(message: _72.QueryConnectionClientStateResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _72.QueryConnectionClientStateResponse; + fromPartial(object: any): _72.QueryConnectionClientStateResponse; }; QueryConnectionConsensusStateRequest: { - encode(message: _124.QueryConnectionConsensusStateRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _124.QueryConnectionConsensusStateRequest; - fromPartial(object: any): _124.QueryConnectionConsensusStateRequest; + encode(message: _72.QueryConnectionConsensusStateRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _72.QueryConnectionConsensusStateRequest; + fromPartial(object: any): _72.QueryConnectionConsensusStateRequest; }; QueryConnectionConsensusStateResponse: { - encode(message: _124.QueryConnectionConsensusStateResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _124.QueryConnectionConsensusStateResponse; - fromPartial(object: any): _124.QueryConnectionConsensusStateResponse; + encode(message: _72.QueryConnectionConsensusStateResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _72.QueryConnectionConsensusStateResponse; + fromPartial(object: any): _72.QueryConnectionConsensusStateResponse; }; GenesisState: { - encode(message: _123.GenesisState, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _123.GenesisState; - fromPartial(object: any): _123.GenesisState; - }; - stateFromJSON(object: any): _122.State; - stateToJSON(object: _122.State): string; - State: typeof _122.State; - StateSDKType: typeof _122.State; + encode(message: _71.GenesisState, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _71.GenesisState; + fromPartial(object: any): _71.GenesisState; + }; + stateFromJSON(object: any): _70.State; + stateToJSON(object: _70.State): string; + State: typeof _70.State; + StateSDKType: typeof _70.State; ConnectionEnd: { - encode(message: _122.ConnectionEnd, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _122.ConnectionEnd; - fromPartial(object: any): _122.ConnectionEnd; + encode(message: _70.ConnectionEnd, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _70.ConnectionEnd; + fromPartial(object: any): _70.ConnectionEnd; }; IdentifiedConnection: { - encode(message: _122.IdentifiedConnection, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _122.IdentifiedConnection; - fromPartial(object: any): _122.IdentifiedConnection; + encode(message: _70.IdentifiedConnection, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _70.IdentifiedConnection; + fromPartial(object: any): _70.IdentifiedConnection; }; Counterparty: { - encode(message: _122.Counterparty, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _122.Counterparty; - fromPartial(object: any): _122.Counterparty; + encode(message: _70.Counterparty, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _70.Counterparty; + fromPartial(object: any): _70.Counterparty; }; ClientPaths: { - encode(message: _122.ClientPaths, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _122.ClientPaths; - fromPartial(object: any): _122.ClientPaths; + encode(message: _70.ClientPaths, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _70.ClientPaths; + fromPartial(object: any): _70.ClientPaths; }; ConnectionPaths: { - encode(message: _122.ConnectionPaths, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _122.ConnectionPaths; - fromPartial(object: any): _122.ConnectionPaths; + encode(message: _70.ConnectionPaths, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _70.ConnectionPaths; + fromPartial(object: any): _70.ConnectionPaths; }; Version: { - encode(message: _122.Version, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _122.Version; - fromPartial(object: any): _122.Version; + encode(message: _70.Version, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _70.Version; + fromPartial(object: any): _70.Version; }; Params: { - encode(message: _122.Params, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _122.Params; - fromPartial(object: any): _122.Params; - }; - }; - } - namespace port { - const v1: { - QueryAppVersionRequest: { - encode(message: _126.QueryAppVersionRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _126.QueryAppVersionRequest; - fromPartial(object: any): _126.QueryAppVersionRequest; - }; - QueryAppVersionResponse: { - encode(message: _126.QueryAppVersionResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _126.QueryAppVersionResponse; - fromPartial(object: any): _126.QueryAppVersionResponse; - }; - }; - } - namespace types { - const v1: { - GenesisState: { - encode(message: _127.GenesisState, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _127.GenesisState; - fromPartial(object: any): _127.GenesisState; + encode(message: _70.Params, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _70.Params; + fromPartial(object: any): _70.Params; }; }; } @@ -1565,262 +1593,426 @@ export declare namespace ibc { namespace localhost { const v1: { ClientState: { - encode(message: _128.ClientState, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _128.ClientState; - fromPartial(object: any): _128.ClientState; + encode(message: _74.ClientState, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _74.ClientState; + fromPartial(object: any): _74.ClientState; }; }; } namespace solomachine { const v1: { - dataTypeFromJSON(object: any): _129.DataType; - dataTypeToJSON(object: _129.DataType): string; - DataType: typeof _129.DataType; - DataTypeSDKType: typeof _129.DataType; + dataTypeFromJSON(object: any): _75.DataType; + dataTypeToJSON(object: _75.DataType): string; + DataType: typeof _75.DataType; + DataTypeSDKType: typeof _75.DataType; ClientState: { - encode(message: _129.ClientState, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _129.ClientState; - fromPartial(object: any): _129.ClientState; + encode(message: _75.ClientState, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _75.ClientState; + fromPartial(object: any): _75.ClientState; }; ConsensusState: { - encode(message: _129.ConsensusState, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _129.ConsensusState; - fromPartial(object: any): _129.ConsensusState; + encode(message: _75.ConsensusState, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _75.ConsensusState; + fromPartial(object: any): _75.ConsensusState; }; Header: { - encode(message: _129.Header, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _129.Header; - fromPartial(object: any): _129.Header; + encode(message: _75.Header, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _75.Header; + fromPartial(object: any): _75.Header; }; Misbehaviour: { - encode(message: _129.Misbehaviour, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _129.Misbehaviour; - fromPartial(object: any): _129.Misbehaviour; + encode(message: _75.Misbehaviour, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _75.Misbehaviour; + fromPartial(object: any): _75.Misbehaviour; }; SignatureAndData: { - encode(message: _129.SignatureAndData, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _129.SignatureAndData; - fromPartial(object: any): _129.SignatureAndData; + encode(message: _75.SignatureAndData, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _75.SignatureAndData; + fromPartial(object: any): _75.SignatureAndData; }; TimestampedSignatureData: { - encode(message: _129.TimestampedSignatureData, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _129.TimestampedSignatureData; - fromPartial(object: any): _129.TimestampedSignatureData; + encode(message: _75.TimestampedSignatureData, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _75.TimestampedSignatureData; + fromPartial(object: any): _75.TimestampedSignatureData; }; SignBytes: { - encode(message: _129.SignBytes, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _129.SignBytes; - fromPartial(object: any): _129.SignBytes; + encode(message: _75.SignBytes, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _75.SignBytes; + fromPartial(object: any): _75.SignBytes; }; HeaderData: { - encode(message: _129.HeaderData, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _129.HeaderData; - fromPartial(object: any): _129.HeaderData; + encode(message: _75.HeaderData, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _75.HeaderData; + fromPartial(object: any): _75.HeaderData; }; ClientStateData: { - encode(message: _129.ClientStateData, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _129.ClientStateData; - fromPartial(object: any): _129.ClientStateData; + encode(message: _75.ClientStateData, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _75.ClientStateData; + fromPartial(object: any): _75.ClientStateData; }; ConsensusStateData: { - encode(message: _129.ConsensusStateData, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _129.ConsensusStateData; - fromPartial(object: any): _129.ConsensusStateData; + encode(message: _75.ConsensusStateData, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _75.ConsensusStateData; + fromPartial(object: any): _75.ConsensusStateData; }; ConnectionStateData: { - encode(message: _129.ConnectionStateData, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _129.ConnectionStateData; - fromPartial(object: any): _129.ConnectionStateData; + encode(message: _75.ConnectionStateData, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _75.ConnectionStateData; + fromPartial(object: any): _75.ConnectionStateData; }; ChannelStateData: { - encode(message: _129.ChannelStateData, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _129.ChannelStateData; - fromPartial(object: any): _129.ChannelStateData; + encode(message: _75.ChannelStateData, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _75.ChannelStateData; + fromPartial(object: any): _75.ChannelStateData; }; PacketCommitmentData: { - encode(message: _129.PacketCommitmentData, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _129.PacketCommitmentData; - fromPartial(object: any): _129.PacketCommitmentData; + encode(message: _75.PacketCommitmentData, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _75.PacketCommitmentData; + fromPartial(object: any): _75.PacketCommitmentData; }; PacketAcknowledgementData: { - encode(message: _129.PacketAcknowledgementData, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _129.PacketAcknowledgementData; - fromPartial(object: any): _129.PacketAcknowledgementData; + encode(message: _75.PacketAcknowledgementData, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _75.PacketAcknowledgementData; + fromPartial(object: any): _75.PacketAcknowledgementData; }; PacketReceiptAbsenceData: { - encode(message: _129.PacketReceiptAbsenceData, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _129.PacketReceiptAbsenceData; - fromPartial(object: any): _129.PacketReceiptAbsenceData; + encode(message: _75.PacketReceiptAbsenceData, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _75.PacketReceiptAbsenceData; + fromPartial(object: any): _75.PacketReceiptAbsenceData; }; NextSequenceRecvData: { - encode(message: _129.NextSequenceRecvData, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _129.NextSequenceRecvData; - fromPartial(object: any): _129.NextSequenceRecvData; + encode(message: _75.NextSequenceRecvData, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _75.NextSequenceRecvData; + fromPartial(object: any): _75.NextSequenceRecvData; }; }; const v2: { - dataTypeFromJSON(object: any): _130.DataType; - dataTypeToJSON(object: _130.DataType): string; - DataType: typeof _130.DataType; - DataTypeSDKType: typeof _130.DataType; + dataTypeFromJSON(object: any): _76.DataType; + dataTypeToJSON(object: _76.DataType): string; + DataType: typeof _76.DataType; + DataTypeSDKType: typeof _76.DataType; ClientState: { - encode(message: _130.ClientState, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _130.ClientState; - fromPartial(object: any): _130.ClientState; + encode(message: _76.ClientState, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _76.ClientState; + fromPartial(object: any): _76.ClientState; }; ConsensusState: { - encode(message: _130.ConsensusState, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _130.ConsensusState; - fromPartial(object: any): _130.ConsensusState; + encode(message: _76.ConsensusState, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _76.ConsensusState; + fromPartial(object: any): _76.ConsensusState; }; Header: { - encode(message: _130.Header, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _130.Header; - fromPartial(object: any): _130.Header; + encode(message: _76.Header, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _76.Header; + fromPartial(object: any): _76.Header; }; Misbehaviour: { - encode(message: _130.Misbehaviour, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _130.Misbehaviour; - fromPartial(object: any): _130.Misbehaviour; + encode(message: _76.Misbehaviour, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _76.Misbehaviour; + fromPartial(object: any): _76.Misbehaviour; }; SignatureAndData: { - encode(message: _130.SignatureAndData, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _130.SignatureAndData; - fromPartial(object: any): _130.SignatureAndData; + encode(message: _76.SignatureAndData, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _76.SignatureAndData; + fromPartial(object: any): _76.SignatureAndData; }; TimestampedSignatureData: { - encode(message: _130.TimestampedSignatureData, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _130.TimestampedSignatureData; - fromPartial(object: any): _130.TimestampedSignatureData; + encode(message: _76.TimestampedSignatureData, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _76.TimestampedSignatureData; + fromPartial(object: any): _76.TimestampedSignatureData; }; SignBytes: { - encode(message: _130.SignBytes, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _130.SignBytes; - fromPartial(object: any): _130.SignBytes; + encode(message: _76.SignBytes, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _76.SignBytes; + fromPartial(object: any): _76.SignBytes; }; HeaderData: { - encode(message: _130.HeaderData, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _130.HeaderData; - fromPartial(object: any): _130.HeaderData; + encode(message: _76.HeaderData, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _76.HeaderData; + fromPartial(object: any): _76.HeaderData; }; ClientStateData: { - encode(message: _130.ClientStateData, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _130.ClientStateData; - fromPartial(object: any): _130.ClientStateData; + encode(message: _76.ClientStateData, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _76.ClientStateData; + fromPartial(object: any): _76.ClientStateData; }; ConsensusStateData: { - encode(message: _130.ConsensusStateData, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _130.ConsensusStateData; - fromPartial(object: any): _130.ConsensusStateData; + encode(message: _76.ConsensusStateData, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _76.ConsensusStateData; + fromPartial(object: any): _76.ConsensusStateData; }; ConnectionStateData: { - encode(message: _130.ConnectionStateData, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _130.ConnectionStateData; - fromPartial(object: any): _130.ConnectionStateData; + encode(message: _76.ConnectionStateData, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _76.ConnectionStateData; + fromPartial(object: any): _76.ConnectionStateData; }; ChannelStateData: { - encode(message: _130.ChannelStateData, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _130.ChannelStateData; - fromPartial(object: any): _130.ChannelStateData; + encode(message: _76.ChannelStateData, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _76.ChannelStateData; + fromPartial(object: any): _76.ChannelStateData; }; PacketCommitmentData: { - encode(message: _130.PacketCommitmentData, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _130.PacketCommitmentData; - fromPartial(object: any): _130.PacketCommitmentData; + encode(message: _76.PacketCommitmentData, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _76.PacketCommitmentData; + fromPartial(object: any): _76.PacketCommitmentData; }; PacketAcknowledgementData: { - encode(message: _130.PacketAcknowledgementData, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _130.PacketAcknowledgementData; - fromPartial(object: any): _130.PacketAcknowledgementData; + encode(message: _76.PacketAcknowledgementData, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _76.PacketAcknowledgementData; + fromPartial(object: any): _76.PacketAcknowledgementData; }; PacketReceiptAbsenceData: { - encode(message: _130.PacketReceiptAbsenceData, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _130.PacketReceiptAbsenceData; - fromPartial(object: any): _130.PacketReceiptAbsenceData; + encode(message: _76.PacketReceiptAbsenceData, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _76.PacketReceiptAbsenceData; + fromPartial(object: any): _76.PacketReceiptAbsenceData; }; NextSequenceRecvData: { - encode(message: _130.NextSequenceRecvData, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _130.NextSequenceRecvData; - fromPartial(object: any): _130.NextSequenceRecvData; + encode(message: _76.NextSequenceRecvData, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _76.NextSequenceRecvData; + fromPartial(object: any): _76.NextSequenceRecvData; }; }; } namespace tendermint { const v1: { ClientState: { - encode(message: _131.ClientState, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _131.ClientState; - fromPartial(object: any): _131.ClientState; + encode(message: _77.ClientState, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _77.ClientState; + fromPartial(object: any): _77.ClientState; }; ConsensusState: { - encode(message: _131.ConsensusState, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _131.ConsensusState; - fromPartial(object: any): _131.ConsensusState; + encode(message: _77.ConsensusState, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _77.ConsensusState; + fromPartial(object: any): _77.ConsensusState; }; Misbehaviour: { - encode(message: _131.Misbehaviour, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _131.Misbehaviour; - fromPartial(object: any): _131.Misbehaviour; + encode(message: _77.Misbehaviour, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _77.Misbehaviour; + fromPartial(object: any): _77.Misbehaviour; }; Header: { - encode(message: _131.Header, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _131.Header; - fromPartial(object: any): _131.Header; + encode(message: _77.Header, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _77.Header; + fromPartial(object: any): _77.Header; }; Fraction: { - encode(message: _131.Fraction, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _131.Fraction; - fromPartial(object: any): _131.Fraction; + encode(message: _77.Fraction, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _77.Fraction; + fromPartial(object: any): _77.Fraction; }; }; } } const ClientFactory: { - createLCDClient: ({ restEndpoint }: { - restEndpoint: string; + createRPCMsgClient: ({ rpc }: { + rpc: import("../helpers").Rpc; + }) => Promise<{ + cosmos: { + authz: { + v1beta1: import("../cosmos/authz/v1beta1/tx.rpc.msg").MsgClientImpl; + }; + bank: { + v1beta1: import("../cosmos/bank/v1beta1/tx.rpc.msg").MsgClientImpl; + }; + distribution: { + v1beta1: import("../cosmos/distribution/v1beta1/tx.rpc.msg").MsgClientImpl; + }; + gov: { + v1beta1: import("../cosmos/gov/v1beta1/tx.rpc.msg").MsgClientImpl; + }; + staking: { + v1beta1: import("../cosmos/staking/v1beta1/tx.rpc.msg").MsgClientImpl; + }; + upgrade: { + v1beta1: import("../cosmos/upgrade/v1beta1/tx.rpc.msg").MsgClientImpl; + }; + }; + ibc: { + applications: { + transfer: { + v1: _181.MsgClientImpl; + }; + }; + core: { + channel: { + v1: _182.MsgClientImpl; + }; + client: { + v1: _183.MsgClientImpl; + }; + connection: { + v1: _184.MsgClientImpl; + }; + }; + }; + }>; + createRPCQueryClient: ({ rpcEndpoint }: { + rpcEndpoint: string | import("@cosmjs/tendermint-rpc").HttpEndpoint; }) => Promise<{ cosmos: { auth: { - v1beta1: import("../cosmos/auth/v1beta1/query.lcd").LCDQueryClient; + v1beta1: { + accounts(request?: import("../cosmos/auth/v1beta1/query").QueryAccountsRequest): Promise; + account(request: import("../cosmos/auth/v1beta1/query").QueryAccountRequest): Promise; + params(request?: import("../cosmos/auth/v1beta1/query").QueryParamsRequest): Promise; + moduleAccounts(request?: import("../cosmos/auth/v1beta1/query").QueryModuleAccountsRequest): Promise; + bech32Prefix(request?: import("../cosmos/auth/v1beta1/query").Bech32PrefixRequest): Promise; + addressBytesToString(request: import("../cosmos/auth/v1beta1/query").AddressBytesToStringRequest): Promise; + addressStringToBytes(request: import("../cosmos/auth/v1beta1/query").AddressStringToBytesRequest): Promise; + }; }; authz: { - v1beta1: import("../cosmos/authz/v1beta1/query.lcd").LCDQueryClient; + v1beta1: { + grants(request: import("../cosmos/authz/v1beta1/query").QueryGrantsRequest): Promise; + granterGrants(request: import("../cosmos/authz/v1beta1/query").QueryGranterGrantsRequest): Promise; + granteeGrants(request: import("../cosmos/authz/v1beta1/query").QueryGranteeGrantsRequest): Promise; + }; }; bank: { - v1beta1: import("../cosmos/bank/v1beta1/query.lcd").LCDQueryClient; - }; - base: { - tendermint: { - v1beta1: import("../cosmos/base/tendermint/v1beta1/query.lcd").LCDQueryClient; + v1beta1: { + balance(request: import("../cosmos/bank/v1beta1/query").QueryBalanceRequest): Promise; + allBalances(request: import("../cosmos/bank/v1beta1/query").QueryAllBalancesRequest): Promise; + spendableBalances(request: import("../cosmos/bank/v1beta1/query").QuerySpendableBalancesRequest): Promise; + totalSupply(request?: import("../cosmos/bank/v1beta1/query").QueryTotalSupplyRequest): Promise; + supplyOf(request: import("../cosmos/bank/v1beta1/query").QuerySupplyOfRequest): Promise; + params(request?: import("../cosmos/bank/v1beta1/query").QueryParamsRequest): Promise; + denomMetadata(request: import("../cosmos/bank/v1beta1/query").QueryDenomMetadataRequest): Promise; + denomsMetadata(request?: import("../cosmos/bank/v1beta1/query").QueryDenomsMetadataRequest): Promise; + denomOwners(request: import("../cosmos/bank/v1beta1/query").QueryDenomOwnersRequest): Promise; }; }; distribution: { - v1beta1: import("../cosmos/distribution/v1beta1/query.lcd").LCDQueryClient; + v1beta1: { + params(request?: import("../cosmos/distribution/v1beta1/query").QueryParamsRequest): Promise; + validatorOutstandingRewards(request: import("../cosmos/distribution/v1beta1/query").QueryValidatorOutstandingRewardsRequest): Promise; + validatorCommission(request: import("../cosmos/distribution/v1beta1/query").QueryValidatorCommissionRequest): Promise; + validatorSlashes(request: import("../cosmos/distribution/v1beta1/query").QueryValidatorSlashesRequest): Promise; + delegationRewards(request: import("../cosmos/distribution/v1beta1/query").QueryDelegationRewardsRequest): Promise; + delegationTotalRewards(request: import("../cosmos/distribution/v1beta1/query").QueryDelegationTotalRewardsRequest): Promise; + delegatorValidators(request: import("../cosmos/distribution/v1beta1/query").QueryDelegatorValidatorsRequest): Promise; + delegatorWithdrawAddress(request: import("../cosmos/distribution/v1beta1/query").QueryDelegatorWithdrawAddressRequest): Promise; + communityPool(request?: import("../cosmos/distribution/v1beta1/query").QueryCommunityPoolRequest): Promise; + }; }; - evidence: { - v1beta1: import("../cosmos/evidence/v1beta1/query.lcd").LCDQueryClient; + gov: { + v1beta1: { + proposal(request: import("../cosmos/gov/v1beta1/query").QueryProposalRequest): Promise; + proposals(request: import("../cosmos/gov/v1beta1/query").QueryProposalsRequest): Promise; + vote(request: import("../cosmos/gov/v1beta1/query").QueryVoteRequest): Promise; + votes(request: import("../cosmos/gov/v1beta1/query").QueryVotesRequest): Promise; + params(request: import("../cosmos/gov/v1beta1/query").QueryParamsRequest): Promise; + deposit(request: import("../cosmos/gov/v1beta1/query").QueryDepositRequest): Promise; + deposits(request: import("../cosmos/gov/v1beta1/query").QueryDepositsRequest): Promise; + tallyResult(request: import("../cosmos/gov/v1beta1/query").QueryTallyResultRequest): Promise; + }; }; - feegrant: { - v1beta1: import("../cosmos/feegrant/v1beta1/query.lcd").LCDQueryClient; + staking: { + v1beta1: { + validators(request: import("../cosmos/staking/v1beta1/query").QueryValidatorsRequest): Promise; + validator(request: import("../cosmos/staking/v1beta1/query").QueryValidatorRequest): Promise; + validatorDelegations(request: import("../cosmos/staking/v1beta1/query").QueryValidatorDelegationsRequest): Promise; + validatorUnbondingDelegations(request: import("../cosmos/staking/v1beta1/query").QueryValidatorUnbondingDelegationsRequest): Promise; + delegation(request: import("../cosmos/staking/v1beta1/query").QueryDelegationRequest): Promise; + unbondingDelegation(request: import("../cosmos/staking/v1beta1/query").QueryUnbondingDelegationRequest): Promise; + delegatorDelegations(request: import("../cosmos/staking/v1beta1/query").QueryDelegatorDelegationsRequest): Promise; + delegatorUnbondingDelegations(request: import("../cosmos/staking/v1beta1/query").QueryDelegatorUnbondingDelegationsRequest): Promise; + redelegations(request: import("../cosmos/staking/v1beta1/query").QueryRedelegationsRequest): Promise; + delegatorValidators(request: import("../cosmos/staking/v1beta1/query").QueryDelegatorValidatorsRequest): Promise; + delegatorValidator(request: import("../cosmos/staking/v1beta1/query").QueryDelegatorValidatorRequest): Promise; + historicalInfo(request: import("../cosmos/staking/v1beta1/query").QueryHistoricalInfoRequest): Promise; + pool(request?: import("../cosmos/staking/v1beta1/query").QueryPoolRequest): Promise; + params(request?: import("../cosmos/staking/v1beta1/query").QueryParamsRequest): Promise; + }; }; - gov: { - v1: import("../cosmos/gov/v1/query.lcd").LCDQueryClient; - v1beta1: import("../cosmos/gov/v1beta1/query.lcd").LCDQueryClient; + tx: { + v1beta1: { + simulate(request: import("../cosmos/tx/v1beta1/service").SimulateRequest): Promise; + getTx(request: import("../cosmos/tx/v1beta1/service").GetTxRequest): Promise; + broadcastTx(request: import("../cosmos/tx/v1beta1/service").BroadcastTxRequest): Promise; + getTxsEvent(request: import("../cosmos/tx/v1beta1/service").GetTxsEventRequest): Promise; + getBlockWithTxs(request: import("../cosmos/tx/v1beta1/service").GetBlockWithTxsRequest): Promise; + }; }; - group: { - v1: import("../cosmos/group/v1/query.lcd").LCDQueryClient; + upgrade: { + v1beta1: { + currentPlan(request?: import("../cosmos/upgrade/v1beta1/query").QueryCurrentPlanRequest): Promise; + appliedPlan(request: import("../cosmos/upgrade/v1beta1/query").QueryAppliedPlanRequest): Promise; + upgradedConsensusState(request: import("../cosmos/upgrade/v1beta1/query").QueryUpgradedConsensusStateRequest): Promise; + moduleVersions(request: import("../cosmos/upgrade/v1beta1/query").QueryModuleVersionsRequest): Promise; + authority(request?: import("../cosmos/upgrade/v1beta1/query").QueryAuthorityRequest): Promise; + }; }; - mint: { - v1beta1: import("../cosmos/mint/v1beta1/query.lcd").LCDQueryClient; + }; + ibc: { + applications: { + transfer: { + v1: { + denomTrace(request: _57.QueryDenomTraceRequest): Promise<_57.QueryDenomTraceResponse>; + denomTraces(request?: _57.QueryDenomTracesRequest): Promise<_57.QueryDenomTracesResponse>; + params(request?: _57.QueryParamsRequest): Promise<_57.QueryParamsResponse>; + }; + }; }; - nft: { - v1beta1: import("../cosmos/nft/v1beta1/query.lcd").LCDQueryClient; + core: { + channel: { + v1: { + channel(request: _63.QueryChannelRequest): Promise<_63.QueryChannelResponse>; + channels(request?: _63.QueryChannelsRequest): Promise<_63.QueryChannelsResponse>; + connectionChannels(request: _63.QueryConnectionChannelsRequest): Promise<_63.QueryConnectionChannelsResponse>; + channelClientState(request: _63.QueryChannelClientStateRequest): Promise<_63.QueryChannelClientStateResponse>; + channelConsensusState(request: _63.QueryChannelConsensusStateRequest): Promise<_63.QueryChannelConsensusStateResponse>; + packetCommitment(request: _63.QueryPacketCommitmentRequest): Promise<_63.QueryPacketCommitmentResponse>; + packetCommitments(request: _63.QueryPacketCommitmentsRequest): Promise<_63.QueryPacketCommitmentsResponse>; + packetReceipt(request: _63.QueryPacketReceiptRequest): Promise<_63.QueryPacketReceiptResponse>; + packetAcknowledgement(request: _63.QueryPacketAcknowledgementRequest): Promise<_63.QueryPacketAcknowledgementResponse>; + packetAcknowledgements(request: _63.QueryPacketAcknowledgementsRequest): Promise<_63.QueryPacketAcknowledgementsResponse>; + unreceivedPackets(request: _63.QueryUnreceivedPacketsRequest): Promise<_63.QueryUnreceivedPacketsResponse>; + unreceivedAcks(request: _63.QueryUnreceivedAcksRequest): Promise<_63.QueryUnreceivedAcksResponse>; + nextSequenceReceive(request: _63.QueryNextSequenceReceiveRequest): Promise<_63.QueryNextSequenceReceiveResponse>; + }; + }; + client: { + v1: { + clientState(request: _67.QueryClientStateRequest): Promise<_67.QueryClientStateResponse>; + clientStates(request?: _67.QueryClientStatesRequest): Promise<_67.QueryClientStatesResponse>; + consensusState(request: _67.QueryConsensusStateRequest): Promise<_67.QueryConsensusStateResponse>; + consensusStates(request: _67.QueryConsensusStatesRequest): Promise<_67.QueryConsensusStatesResponse>; + clientStatus(request: _67.QueryClientStatusRequest): Promise<_67.QueryClientStatusResponse>; + clientParams(request?: _67.QueryClientParamsRequest): Promise<_67.QueryClientParamsResponse>; + upgradedClientState(request?: _67.QueryUpgradedClientStateRequest): Promise<_67.QueryUpgradedClientStateResponse>; + upgradedConsensusState(request?: _67.QueryUpgradedConsensusStateRequest): Promise<_67.QueryUpgradedConsensusStateResponse>; + }; + }; + connection: { + v1: { + connection(request: _72.QueryConnectionRequest): Promise<_72.QueryConnectionResponse>; + connections(request?: _72.QueryConnectionsRequest): Promise<_72.QueryConnectionsResponse>; + clientConnections(request: _72.QueryClientConnectionsRequest): Promise<_72.QueryClientConnectionsResponse>; + connectionClientState(request: _72.QueryConnectionClientStateRequest): Promise<_72.QueryConnectionClientStateResponse>; + connectionConsensusState(request: _72.QueryConnectionConsensusStateRequest): Promise<_72.QueryConnectionConsensusStateResponse>; + }; + }; }; - params: { - v1beta1: import("../cosmos/params/v1beta1/query.lcd").LCDQueryClient; + }; + }>; + createLCDClient: ({ restEndpoint }: { + restEndpoint: string; + }) => Promise<{ + cosmos: { + auth: { + v1beta1: import("../cosmos/auth/v1beta1/query.lcd").LCDQueryClient; }; - slashing: { - v1beta1: import("../cosmos/slashing/v1beta1/query.lcd").LCDQueryClient; + authz: { + v1beta1: import("../cosmos/authz/v1beta1/query.lcd").LCDQueryClient; + }; + bank: { + v1beta1: import("../cosmos/bank/v1beta1/query.lcd").LCDQueryClient; + }; + distribution: { + v1beta1: import("../cosmos/distribution/v1beta1/query.lcd").LCDQueryClient; + }; + gov: { + v1beta1: import("../cosmos/gov/v1beta1/query.lcd").LCDQueryClient; }; staking: { v1beta1: import("../cosmos/staking/v1beta1/query.lcd").LCDQueryClient; @@ -1835,18 +2027,18 @@ export declare namespace ibc { ibc: { applications: { transfer: { - v1: _236.LCDQueryClient; + v1: _173.LCDQueryClient; }; }; core: { channel: { - v1: _237.LCDQueryClient; + v1: _174.LCDQueryClient; }; client: { - v1: _238.LCDQueryClient; + v1: _175.LCDQueryClient; }; connection: { - v1: _239.LCDQueryClient; + v1: _176.LCDQueryClient; }; }; }; diff --git a/packages/proto/types/codegen/ibc/core/channel/v1/query.rpc.query.d.ts b/packages/proto/types/codegen/ibc/core/channel/v1/query.rpc.query.d.ts index 049eda41..69c372d5 100644 --- a/packages/proto/types/codegen/ibc/core/channel/v1/query.rpc.query.d.ts +++ b/packages/proto/types/codegen/ibc/core/channel/v1/query.rpc.query.d.ts @@ -1,20 +1,57 @@ -import { Rpc } from "@osmonauts/helpers"; +import { Rpc } from "../../../../helpers"; import { QueryClient } from "@cosmjs/stargate"; import { QueryChannelRequest, QueryChannelResponse, QueryChannelsRequest, QueryChannelsResponse, QueryConnectionChannelsRequest, QueryConnectionChannelsResponse, QueryChannelClientStateRequest, QueryChannelClientStateResponse, QueryChannelConsensusStateRequest, QueryChannelConsensusStateResponse, QueryPacketCommitmentRequest, QueryPacketCommitmentResponse, QueryPacketCommitmentsRequest, QueryPacketCommitmentsResponse, QueryPacketReceiptRequest, QueryPacketReceiptResponse, QueryPacketAcknowledgementRequest, QueryPacketAcknowledgementResponse, QueryPacketAcknowledgementsRequest, QueryPacketAcknowledgementsResponse, QueryUnreceivedPacketsRequest, QueryUnreceivedPacketsResponse, QueryUnreceivedAcksRequest, QueryUnreceivedAcksResponse, QueryNextSequenceReceiveRequest, QueryNextSequenceReceiveResponse } from "./query"; -/** Query defines the RPC service */ +/** Query provides defines the gRPC querier service */ export interface Query { + /** Channel queries an IBC Channel. */ channel(request: QueryChannelRequest): Promise; + /** Channels queries all the IBC channels of a chain. */ channels(request?: QueryChannelsRequest): Promise; + /** + * ConnectionChannels queries all the channels associated with a connection + * end. + */ connectionChannels(request: QueryConnectionChannelsRequest): Promise; + /** + * ChannelClientState queries for the client state for the channel associated + * with the provided channel identifiers. + */ channelClientState(request: QueryChannelClientStateRequest): Promise; + /** + * ChannelConsensusState queries for the consensus state for the channel + * associated with the provided channel identifiers. + */ channelConsensusState(request: QueryChannelConsensusStateRequest): Promise; + /** PacketCommitment queries a stored packet commitment hash. */ packetCommitment(request: QueryPacketCommitmentRequest): Promise; + /** + * PacketCommitments returns all the packet commitments hashes associated + * with a channel. + */ packetCommitments(request: QueryPacketCommitmentsRequest): Promise; + /** + * PacketReceipt queries if a given packet sequence has been received on the + * queried chain + */ packetReceipt(request: QueryPacketReceiptRequest): Promise; + /** PacketAcknowledgement queries a stored packet acknowledgement hash. */ packetAcknowledgement(request: QueryPacketAcknowledgementRequest): Promise; + /** + * PacketAcknowledgements returns all the packet acknowledgements associated + * with a channel. + */ packetAcknowledgements(request: QueryPacketAcknowledgementsRequest): Promise; + /** + * UnreceivedPackets returns all the unreceived IBC packets associated with a + * channel and sequences. + */ unreceivedPackets(request: QueryUnreceivedPacketsRequest): Promise; + /** + * UnreceivedAcks returns all the unreceived IBC acknowledgements associated + * with a channel and sequences. + */ unreceivedAcks(request: QueryUnreceivedAcksRequest): Promise; + /** NextSequenceReceive returns the next receive sequence for a given channel. */ nextSequenceReceive(request: QueryNextSequenceReceiveRequest): Promise; } export declare class QueryClientImpl implements Query { diff --git a/packages/proto/types/codegen/ibc/core/channel/v1/tx.rpc.msg.d.ts b/packages/proto/types/codegen/ibc/core/channel/v1/tx.rpc.msg.d.ts index 4fd74788..2125f0e9 100644 --- a/packages/proto/types/codegen/ibc/core/channel/v1/tx.rpc.msg.d.ts +++ b/packages/proto/types/codegen/ibc/core/channel/v1/tx.rpc.msg.d.ts @@ -1,16 +1,29 @@ -import { Rpc } from "@osmonauts/helpers"; +import { Rpc } from "../../../../helpers"; import { MsgChannelOpenInit, MsgChannelOpenInitResponse, MsgChannelOpenTry, MsgChannelOpenTryResponse, MsgChannelOpenAck, MsgChannelOpenAckResponse, MsgChannelOpenConfirm, MsgChannelOpenConfirmResponse, MsgChannelCloseInit, MsgChannelCloseInitResponse, MsgChannelCloseConfirm, MsgChannelCloseConfirmResponse, MsgRecvPacket, MsgRecvPacketResponse, MsgTimeout, MsgTimeoutResponse, MsgTimeoutOnClose, MsgTimeoutOnCloseResponse, MsgAcknowledgement, MsgAcknowledgementResponse } from "./tx"; -/** Msg defines the RPC service */ +/** Msg defines the ibc/channel Msg service. */ export interface Msg { + /** ChannelOpenInit defines a rpc handler method for MsgChannelOpenInit. */ channelOpenInit(request: MsgChannelOpenInit): Promise; + /** ChannelOpenTry defines a rpc handler method for MsgChannelOpenTry. */ channelOpenTry(request: MsgChannelOpenTry): Promise; + /** ChannelOpenAck defines a rpc handler method for MsgChannelOpenAck. */ channelOpenAck(request: MsgChannelOpenAck): Promise; + /** ChannelOpenConfirm defines a rpc handler method for MsgChannelOpenConfirm. */ channelOpenConfirm(request: MsgChannelOpenConfirm): Promise; + /** ChannelCloseInit defines a rpc handler method for MsgChannelCloseInit. */ channelCloseInit(request: MsgChannelCloseInit): Promise; + /** + * ChannelCloseConfirm defines a rpc handler method for + * MsgChannelCloseConfirm. + */ channelCloseConfirm(request: MsgChannelCloseConfirm): Promise; + /** RecvPacket defines a rpc handler method for MsgRecvPacket. */ recvPacket(request: MsgRecvPacket): Promise; + /** Timeout defines a rpc handler method for MsgTimeout. */ timeout(request: MsgTimeout): Promise; + /** TimeoutOnClose defines a rpc handler method for MsgTimeoutOnClose. */ timeoutOnClose(request: MsgTimeoutOnClose): Promise; + /** Acknowledgement defines a rpc handler method for MsgAcknowledgement. */ acknowledgement(request: MsgAcknowledgement): Promise; } export declare class MsgClientImpl implements Msg { diff --git a/packages/proto/types/codegen/ibc/core/client/v1/query.rpc.query.d.ts b/packages/proto/types/codegen/ibc/core/client/v1/query.rpc.query.d.ts index 0ba5b5af..ae264ca1 100644 --- a/packages/proto/types/codegen/ibc/core/client/v1/query.rpc.query.d.ts +++ b/packages/proto/types/codegen/ibc/core/client/v1/query.rpc.query.d.ts @@ -1,15 +1,29 @@ -import { Rpc } from "@osmonauts/helpers"; +import { Rpc } from "../../../../helpers"; import { QueryClient } from "@cosmjs/stargate"; import { QueryClientStateRequest, QueryClientStateResponse, QueryClientStatesRequest, QueryClientStatesResponse, QueryConsensusStateRequest, QueryConsensusStateResponse, QueryConsensusStatesRequest, QueryConsensusStatesResponse, QueryClientStatusRequest, QueryClientStatusResponse, QueryClientParamsRequest, QueryClientParamsResponse, QueryUpgradedClientStateRequest, QueryUpgradedClientStateResponse, QueryUpgradedConsensusStateRequest, QueryUpgradedConsensusStateResponse } from "./query"; -/** Query defines the RPC service */ +/** Query provides defines the gRPC querier service */ export interface Query { + /** ClientState queries an IBC light client. */ clientState(request: QueryClientStateRequest): Promise; + /** ClientStates queries all the IBC light clients of a chain. */ clientStates(request?: QueryClientStatesRequest): Promise; + /** + * ConsensusState queries a consensus state associated with a client state at + * a given height. + */ consensusState(request: QueryConsensusStateRequest): Promise; + /** + * ConsensusStates queries all the consensus state associated with a given + * client. + */ consensusStates(request: QueryConsensusStatesRequest): Promise; + /** Status queries the status of an IBC client. */ clientStatus(request: QueryClientStatusRequest): Promise; + /** ClientParams queries all parameters of the ibc client. */ clientParams(request?: QueryClientParamsRequest): Promise; + /** UpgradedClientState queries an Upgraded IBC light client. */ upgradedClientState(request?: QueryUpgradedClientStateRequest): Promise; + /** UpgradedConsensusState queries an Upgraded IBC consensus state. */ upgradedConsensusState(request?: QueryUpgradedConsensusStateRequest): Promise; } export declare class QueryClientImpl implements Query { diff --git a/packages/proto/types/codegen/ibc/core/client/v1/tx.rpc.msg.d.ts b/packages/proto/types/codegen/ibc/core/client/v1/tx.rpc.msg.d.ts index 0ce5a865..d49d180d 100644 --- a/packages/proto/types/codegen/ibc/core/client/v1/tx.rpc.msg.d.ts +++ b/packages/proto/types/codegen/ibc/core/client/v1/tx.rpc.msg.d.ts @@ -1,10 +1,14 @@ -import { Rpc } from "@osmonauts/helpers"; +import { Rpc } from "../../../../helpers"; import { MsgCreateClient, MsgCreateClientResponse, MsgUpdateClient, MsgUpdateClientResponse, MsgUpgradeClient, MsgUpgradeClientResponse, MsgSubmitMisbehaviour, MsgSubmitMisbehaviourResponse } from "./tx"; -/** Msg defines the RPC service */ +/** Msg defines the ibc/client Msg service. */ export interface Msg { + /** CreateClient defines a rpc handler method for MsgCreateClient. */ createClient(request: MsgCreateClient): Promise; + /** UpdateClient defines a rpc handler method for MsgUpdateClient. */ updateClient(request: MsgUpdateClient): Promise; + /** UpgradeClient defines a rpc handler method for MsgUpgradeClient. */ upgradeClient(request: MsgUpgradeClient): Promise; + /** SubmitMisbehaviour defines a rpc handler method for MsgSubmitMisbehaviour. */ submitMisbehaviour(request: MsgSubmitMisbehaviour): Promise; } export declare class MsgClientImpl implements Msg { diff --git a/packages/proto/types/codegen/ibc/core/connection/v1/query.rpc.query.d.ts b/packages/proto/types/codegen/ibc/core/connection/v1/query.rpc.query.d.ts index 391262e3..7eb562b1 100644 --- a/packages/proto/types/codegen/ibc/core/connection/v1/query.rpc.query.d.ts +++ b/packages/proto/types/codegen/ibc/core/connection/v1/query.rpc.query.d.ts @@ -1,12 +1,26 @@ -import { Rpc } from "@osmonauts/helpers"; +import { Rpc } from "../../../../helpers"; import { QueryClient } from "@cosmjs/stargate"; import { QueryConnectionRequest, QueryConnectionResponse, QueryConnectionsRequest, QueryConnectionsResponse, QueryClientConnectionsRequest, QueryClientConnectionsResponse, QueryConnectionClientStateRequest, QueryConnectionClientStateResponse, QueryConnectionConsensusStateRequest, QueryConnectionConsensusStateResponse } from "./query"; -/** Query defines the RPC service */ +/** Query provides defines the gRPC querier service */ export interface Query { + /** Connection queries an IBC connection end. */ connection(request: QueryConnectionRequest): Promise; + /** Connections queries all the IBC connections of a chain. */ connections(request?: QueryConnectionsRequest): Promise; + /** + * ClientConnections queries the connection paths associated with a client + * state. + */ clientConnections(request: QueryClientConnectionsRequest): Promise; + /** + * ConnectionClientState queries the client state associated with the + * connection. + */ connectionClientState(request: QueryConnectionClientStateRequest): Promise; + /** + * ConnectionConsensusState queries the consensus state associated with the + * connection. + */ connectionConsensusState(request: QueryConnectionConsensusStateRequest): Promise; } export declare class QueryClientImpl implements Query { diff --git a/packages/proto/types/codegen/ibc/core/connection/v1/tx.rpc.msg.d.ts b/packages/proto/types/codegen/ibc/core/connection/v1/tx.rpc.msg.d.ts index c2850b2c..06fc8d7d 100644 --- a/packages/proto/types/codegen/ibc/core/connection/v1/tx.rpc.msg.d.ts +++ b/packages/proto/types/codegen/ibc/core/connection/v1/tx.rpc.msg.d.ts @@ -1,10 +1,17 @@ -import { Rpc } from "@osmonauts/helpers"; +import { Rpc } from "../../../../helpers"; import { MsgConnectionOpenInit, MsgConnectionOpenInitResponse, MsgConnectionOpenTry, MsgConnectionOpenTryResponse, MsgConnectionOpenAck, MsgConnectionOpenAckResponse, MsgConnectionOpenConfirm, MsgConnectionOpenConfirmResponse } from "./tx"; -/** Msg defines the RPC service */ +/** Msg defines the ibc/connection Msg service. */ export interface Msg { + /** ConnectionOpenInit defines a rpc handler method for MsgConnectionOpenInit. */ connectionOpenInit(request: MsgConnectionOpenInit): Promise; + /** ConnectionOpenTry defines a rpc handler method for MsgConnectionOpenTry. */ connectionOpenTry(request: MsgConnectionOpenTry): Promise; + /** ConnectionOpenAck defines a rpc handler method for MsgConnectionOpenAck. */ connectionOpenAck(request: MsgConnectionOpenAck): Promise; + /** + * ConnectionOpenConfirm defines a rpc handler method for + * MsgConnectionOpenConfirm. + */ connectionOpenConfirm(request: MsgConnectionOpenConfirm): Promise; } export declare class MsgClientImpl implements Msg { diff --git a/packages/proto/types/codegen/ibc/core/port/v1/query.d.ts b/packages/proto/types/codegen/ibc/core/port/v1/query.d.ts deleted file mode 100644 index b79110c9..00000000 --- a/packages/proto/types/codegen/ibc/core/port/v1/query.d.ts +++ /dev/null @@ -1,46 +0,0 @@ -import { Order, Counterparty, CounterpartySDKType } from "../../channel/v1/channel"; -import * as _m0 from "protobufjs/minimal"; -import { DeepPartial } from "../../../../helpers"; -/** QueryAppVersionRequest is the request type for the Query/AppVersion RPC method */ -export interface QueryAppVersionRequest { - /** port unique identifier */ - portId: string; - /** connection unique identifier */ - connectionId: string; - /** whether the channel is ordered or unordered */ - ordering: Order; - /** counterparty channel end */ - counterparty: Counterparty; - /** proposed version */ - proposedVersion: string; -} -/** QueryAppVersionRequest is the request type for the Query/AppVersion RPC method */ -export interface QueryAppVersionRequestSDKType { - port_id: string; - connection_id: string; - ordering: Order; - counterparty: CounterpartySDKType; - proposed_version: string; -} -/** QueryAppVersionResponse is the response type for the Query/AppVersion RPC method. */ -export interface QueryAppVersionResponse { - /** port id associated with the request identifiers */ - portId: string; - /** supported app version */ - version: string; -} -/** QueryAppVersionResponse is the response type for the Query/AppVersion RPC method. */ -export interface QueryAppVersionResponseSDKType { - port_id: string; - version: string; -} -export declare const QueryAppVersionRequest: { - encode(message: QueryAppVersionRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryAppVersionRequest; - fromPartial(object: DeepPartial): QueryAppVersionRequest; -}; -export declare const QueryAppVersionResponse: { - encode(message: QueryAppVersionResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryAppVersionResponse; - fromPartial(object: DeepPartial): QueryAppVersionResponse; -}; diff --git a/packages/proto/types/codegen/ibc/core/port/v1/query.rpc.query.d.ts b/packages/proto/types/codegen/ibc/core/port/v1/query.rpc.query.d.ts deleted file mode 100644 index ca6d53f3..00000000 --- a/packages/proto/types/codegen/ibc/core/port/v1/query.rpc.query.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { Rpc } from "@osmonauts/helpers"; -import { QueryClient } from "@cosmjs/stargate"; -import { QueryAppVersionRequest, QueryAppVersionResponse } from "./query"; -/** Query defines the RPC service */ -export interface Query { - appVersion(request: QueryAppVersionRequest): Promise; -} -export declare class QueryClientImpl implements Query { - private readonly rpc; - constructor(rpc: Rpc); - appVersion(request: QueryAppVersionRequest): Promise; -} -export declare const createRpcQueryExtension: (base: QueryClient) => { - appVersion(request: QueryAppVersionRequest): Promise; -}; diff --git a/packages/proto/types/codegen/ibc/core/types/v1/genesis.d.ts b/packages/proto/types/codegen/ibc/core/types/v1/genesis.d.ts deleted file mode 100644 index 596c7aea..00000000 --- a/packages/proto/types/codegen/ibc/core/types/v1/genesis.d.ts +++ /dev/null @@ -1,28 +0,0 @@ -import { GenesisState as GenesisState1 } from "../../client/v1/genesis"; -import { GenesisStateSDKType as GenesisState1SDKType } from "../../client/v1/genesis"; -import { GenesisState as GenesisState2 } from "../../connection/v1/genesis"; -import { GenesisStateSDKType as GenesisState2SDKType } from "../../connection/v1/genesis"; -import { GenesisState as GenesisState3 } from "../../channel/v1/genesis"; -import { GenesisStateSDKType as GenesisState3SDKType } from "../../channel/v1/genesis"; -import * as _m0 from "protobufjs/minimal"; -import { DeepPartial } from "../../../../helpers"; -/** GenesisState defines the ibc module's genesis state. */ -export interface GenesisState { - /** ICS002 - Clients genesis state */ - clientGenesis: GenesisState1; - /** ICS003 - Connections genesis state */ - connectionGenesis: GenesisState2; - /** ICS004 - Channel genesis state */ - channelGenesis: GenesisState3; -} -/** GenesisState defines the ibc module's genesis state. */ -export interface GenesisStateSDKType { - client_genesis: GenesisState1SDKType; - connection_genesis: GenesisState2SDKType; - channel_genesis: GenesisState3SDKType; -} -export declare const GenesisState: { - encode(message: GenesisState, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): GenesisState; - fromPartial(object: DeepPartial): GenesisState; -}; diff --git a/packages/proto/types/codegen/ibc/lcd.d.ts b/packages/proto/types/codegen/ibc/lcd.d.ts index 77c522d8..8bda0037 100644 --- a/packages/proto/types/codegen/ibc/lcd.d.ts +++ b/packages/proto/types/codegen/ibc/lcd.d.ts @@ -11,39 +11,12 @@ export declare const createLCDClient: ({ restEndpoint }: { bank: { v1beta1: import("../cosmos/bank/v1beta1/query.lcd").LCDQueryClient; }; - base: { - tendermint: { - v1beta1: import("../cosmos/base/tendermint/v1beta1/query.lcd").LCDQueryClient; - }; - }; distribution: { v1beta1: import("../cosmos/distribution/v1beta1/query.lcd").LCDQueryClient; }; - evidence: { - v1beta1: import("../cosmos/evidence/v1beta1/query.lcd").LCDQueryClient; - }; - feegrant: { - v1beta1: import("../cosmos/feegrant/v1beta1/query.lcd").LCDQueryClient; - }; gov: { - v1: import("../cosmos/gov/v1/query.lcd").LCDQueryClient; v1beta1: import("../cosmos/gov/v1beta1/query.lcd").LCDQueryClient; }; - group: { - v1: import("../cosmos/group/v1/query.lcd").LCDQueryClient; - }; - mint: { - v1beta1: import("../cosmos/mint/v1beta1/query.lcd").LCDQueryClient; - }; - nft: { - v1beta1: import("../cosmos/nft/v1beta1/query.lcd").LCDQueryClient; - }; - params: { - v1beta1: import("../cosmos/params/v1beta1/query.lcd").LCDQueryClient; - }; - slashing: { - v1beta1: import("../cosmos/slashing/v1beta1/query.lcd").LCDQueryClient; - }; staking: { v1beta1: import("../cosmos/staking/v1beta1/query.lcd").LCDQueryClient; }; diff --git a/packages/proto/types/codegen/ibc/rpc.query.d.ts b/packages/proto/types/codegen/ibc/rpc.query.d.ts index 562763bd..167cbe61 100644 --- a/packages/proto/types/codegen/ibc/rpc.query.d.ts +++ b/packages/proto/types/codegen/ibc/rpc.query.d.ts @@ -1,12 +1,8 @@ +import { HttpEndpoint } from "@cosmjs/tendermint-rpc"; export declare const createRPCQueryClient: ({ rpcEndpoint }: { - rpcEndpoint: string; + rpcEndpoint: string | HttpEndpoint; }) => Promise<{ cosmos: { - app: { - v1alpha1: { - config(request?: import("../cosmos/app/v1alpha1/query").QueryConfigRequest): Promise; - }; - }; auth: { v1beta1: { accounts(request?: import("../cosmos/auth/v1beta1/query").QueryAccountsRequest): Promise; @@ -38,18 +34,6 @@ export declare const createRPCQueryClient: ({ rpcEndpoint }: { denomOwners(request: import("../cosmos/bank/v1beta1/query").QueryDenomOwnersRequest): Promise; }; }; - base: { - tendermint: { - v1beta1: { - getNodeInfo(request?: import("../cosmos/base/tendermint/v1beta1/query").GetNodeInfoRequest): Promise; - getSyncing(request?: import("../cosmos/base/tendermint/v1beta1/query").GetSyncingRequest): Promise; - getLatestBlock(request?: import("../cosmos/base/tendermint/v1beta1/query").GetLatestBlockRequest): Promise; - getBlockByHeight(request: import("../cosmos/base/tendermint/v1beta1/query").GetBlockByHeightRequest): Promise; - getLatestValidatorSet(request?: import("../cosmos/base/tendermint/v1beta1/query").GetLatestValidatorSetRequest): Promise; - getValidatorSetByHeight(request: import("../cosmos/base/tendermint/v1beta1/query").GetValidatorSetByHeightRequest): Promise; - }; - }; - }; distribution: { v1beta1: { params(request?: import("../cosmos/distribution/v1beta1/query").QueryParamsRequest): Promise; @@ -63,30 +47,7 @@ export declare const createRPCQueryClient: ({ rpcEndpoint }: { communityPool(request?: import("../cosmos/distribution/v1beta1/query").QueryCommunityPoolRequest): Promise; }; }; - evidence: { - v1beta1: { - evidence(request: import("../cosmos/evidence/v1beta1/query").QueryEvidenceRequest): Promise; - allEvidence(request?: import("../cosmos/evidence/v1beta1/query").QueryAllEvidenceRequest): Promise; - }; - }; - feegrant: { - v1beta1: { - allowance(request: import("../cosmos/feegrant/v1beta1/query").QueryAllowanceRequest): Promise; - allowances(request: import("../cosmos/feegrant/v1beta1/query").QueryAllowancesRequest): Promise; - allowancesByGranter(request: import("../cosmos/feegrant/v1beta1/query").QueryAllowancesByGranterRequest): Promise; - }; - }; gov: { - v1: { - proposal(request: import("../cosmos/gov/v1/query").QueryProposalRequest): Promise; - proposals(request: import("../cosmos/gov/v1/query").QueryProposalsRequest): Promise; - vote(request: import("../cosmos/gov/v1/query").QueryVoteRequest): Promise; - votes(request: import("../cosmos/gov/v1/query").QueryVotesRequest): Promise; - params(request: import("../cosmos/gov/v1/query").QueryParamsRequest): Promise; - deposit(request: import("../cosmos/gov/v1/query").QueryDepositRequest): Promise; - deposits(request: import("../cosmos/gov/v1/query").QueryDepositsRequest): Promise; - tallyResult(request: import("../cosmos/gov/v1/query").QueryTallyResultRequest): Promise; - }; v1beta1: { proposal(request: import("../cosmos/gov/v1beta1/query").QueryProposalRequest): Promise; proposals(request: import("../cosmos/gov/v1beta1/query").QueryProposalsRequest): Promise; @@ -98,54 +59,6 @@ export declare const createRPCQueryClient: ({ rpcEndpoint }: { tallyResult(request: import("../cosmos/gov/v1beta1/query").QueryTallyResultRequest): Promise; }; }; - group: { - v1: { - groupInfo(request: import("../cosmos/group/v1/query").QueryGroupInfoRequest): Promise; - groupPolicyInfo(request: import("../cosmos/group/v1/query").QueryGroupPolicyInfoRequest): Promise; - groupMembers(request: import("../cosmos/group/v1/query").QueryGroupMembersRequest): Promise; - groupsByAdmin(request: import("../cosmos/group/v1/query").QueryGroupsByAdminRequest): Promise; - groupPoliciesByGroup(request: import("../cosmos/group/v1/query").QueryGroupPoliciesByGroupRequest): Promise; - groupPoliciesByAdmin(request: import("../cosmos/group/v1/query").QueryGroupPoliciesByAdminRequest): Promise; - proposal(request: import("../cosmos/group/v1/query").QueryProposalRequest): Promise; - proposalsByGroupPolicy(request: import("../cosmos/group/v1/query").QueryProposalsByGroupPolicyRequest): Promise; - voteByProposalVoter(request: import("../cosmos/group/v1/query").QueryVoteByProposalVoterRequest): Promise; - votesByProposal(request: import("../cosmos/group/v1/query").QueryVotesByProposalRequest): Promise; - votesByVoter(request: import("../cosmos/group/v1/query").QueryVotesByVoterRequest): Promise; - groupsByMember(request: import("../cosmos/group/v1/query").QueryGroupsByMemberRequest): Promise; - tallyResult(request: import("../cosmos/group/v1/query").QueryTallyResultRequest): Promise; - }; - }; - mint: { - v1beta1: { - params(request?: import("../cosmos/mint/v1beta1/query").QueryParamsRequest): Promise; - inflation(request?: import("../cosmos/mint/v1beta1/query").QueryInflationRequest): Promise; - annualProvisions(request?: import("../cosmos/mint/v1beta1/query").QueryAnnualProvisionsRequest): Promise; - }; - }; - nft: { - v1beta1: { - balance(request: import("../cosmos/nft/v1beta1/query").QueryBalanceRequest): Promise; - owner(request: import("../cosmos/nft/v1beta1/query").QueryOwnerRequest): Promise; - supply(request: import("../cosmos/nft/v1beta1/query").QuerySupplyRequest): Promise; - nFTs(request: import("../cosmos/nft/v1beta1/query").QueryNFTsRequest): Promise; - nFT(request: import("../cosmos/nft/v1beta1/query").QueryNFTRequest): Promise; - class(request: import("../cosmos/nft/v1beta1/query").QueryClassRequest): Promise; - classes(request?: import("../cosmos/nft/v1beta1/query").QueryClassesRequest): Promise; - }; - }; - params: { - v1beta1: { - params(request: import("../cosmos/params/v1beta1/query").QueryParamsRequest): Promise; - subspaces(request?: import("../cosmos/params/v1beta1/query").QuerySubspacesRequest): Promise; - }; - }; - slashing: { - v1beta1: { - params(request?: import("../cosmos/slashing/v1beta1/query").QueryParamsRequest): Promise; - signingInfo(request: import("../cosmos/slashing/v1beta1/query").QuerySigningInfoRequest): Promise; - signingInfos(request?: import("../cosmos/slashing/v1beta1/query").QuerySigningInfosRequest): Promise; - }; - }; staking: { v1beta1: { validators(request: import("../cosmos/staking/v1beta1/query").QueryValidatorsRequest): Promise; @@ -232,11 +145,6 @@ export declare const createRPCQueryClient: ({ rpcEndpoint }: { connectionConsensusState(request: import("./core/connection/v1/query").QueryConnectionConsensusStateRequest): Promise; }; }; - port: { - v1: { - appVersion(request: import("./core/port/v1/query").QueryAppVersionRequest): Promise; - }; - }; }; }; }>; diff --git a/packages/proto/types/codegen/ibc/rpc.tx.d.ts b/packages/proto/types/codegen/ibc/rpc.tx.d.ts index 7b553b91..57681286 100644 --- a/packages/proto/types/codegen/ibc/rpc.tx.d.ts +++ b/packages/proto/types/codegen/ibc/rpc.tx.d.ts @@ -1,4 +1,4 @@ -import { Rpc } from "@osmonauts/helpers"; +import { Rpc } from "../helpers"; export declare const createRPCMsgClient: ({ rpc }: { rpc: Rpc; }) => Promise<{ @@ -9,40 +9,18 @@ export declare const createRPCMsgClient: ({ rpc }: { bank: { v1beta1: import("../cosmos/bank/v1beta1/tx.rpc.msg").MsgClientImpl; }; - crisis: { - v1beta1: import("../cosmos/crisis/v1beta1/tx.rpc.msg").MsgClientImpl; - }; distribution: { v1beta1: import("../cosmos/distribution/v1beta1/tx.rpc.msg").MsgClientImpl; }; - evidence: { - v1beta1: import("../cosmos/evidence/v1beta1/tx.rpc.msg").MsgClientImpl; - }; - feegrant: { - v1beta1: import("../cosmos/feegrant/v1beta1/tx.rpc.msg").MsgClientImpl; - }; gov: { - v1: import("../cosmos/gov/v1/tx.rpc.msg").MsgClientImpl; v1beta1: import("../cosmos/gov/v1beta1/tx.rpc.msg").MsgClientImpl; }; - group: { - v1: import("../cosmos/group/v1/tx.rpc.msg").MsgClientImpl; - }; - nft: { - v1beta1: import("../cosmos/nft/v1beta1/tx.rpc.msg").MsgClientImpl; - }; - slashing: { - v1beta1: import("../cosmos/slashing/v1beta1/tx.rpc.msg").MsgClientImpl; - }; staking: { v1beta1: import("../cosmos/staking/v1beta1/tx.rpc.msg").MsgClientImpl; }; upgrade: { v1beta1: import("../cosmos/upgrade/v1beta1/tx.rpc.msg").MsgClientImpl; }; - vesting: { - v1beta1: import("../cosmos/vesting/v1beta1/tx.rpc.msg").MsgClientImpl; - }; }; ibc: { applications: { diff --git a/packages/proto/types/codegen/seiprotocol/bundle.d.ts b/packages/proto/types/codegen/seiprotocol/bundle.d.ts index 385e2e92..50d2b890 100644 --- a/packages/proto/types/codegen/seiprotocol/bundle.d.ts +++ b/packages/proto/types/codegen/seiprotocol/bundle.d.ts @@ -1,170 +1,202 @@ -import * as _132 from "./seichain/dex/asset_list"; -import * as _133 from "./seichain/dex/contract"; -import * as _134 from "./seichain/dex/deposit"; -import * as _135 from "./seichain/dex/enums"; -import * as _136 from "./seichain/dex/genesis"; -import * as _137 from "./seichain/dex/gov"; -import * as _138 from "./seichain/dex/long_book"; -import * as _139 from "./seichain/dex/match_result"; -import * as _140 from "./seichain/dex/order_entry"; -import * as _141 from "./seichain/dex/order"; -import * as _142 from "./seichain/dex/pair"; -import * as _143 from "./seichain/dex/params"; -import * as _144 from "./seichain/dex/price"; -import * as _145 from "./seichain/dex/query"; -import * as _146 from "./seichain/dex/settlement"; -import * as _147 from "./seichain/dex/short_book"; -import * as _148 from "./seichain/dex/tick_size"; -import * as _149 from "./seichain/dex/twap"; -import * as _150 from "./seichain/dex/tx"; -import * as _151 from "./seichain/epoch/epoch"; -import * as _152 from "./seichain/epoch/genesis"; -import * as _153 from "./seichain/epoch/params"; -import * as _154 from "./seichain/epoch/query"; -import * as _156 from "./seichain/mint/v1beta1/genesis"; -import * as _157 from "./seichain/mint/v1beta1/gov"; -import * as _158 from "./seichain/mint/v1beta1/mint"; -import * as _159 from "./seichain/mint/v1beta1/query"; -import * as _160 from "./seichain/oracle/genesis"; -import * as _161 from "./seichain/oracle/oracle"; -import * as _162 from "./seichain/oracle/query"; -import * as _163 from "./seichain/oracle/tx"; -import * as _164 from "./seichain/tokenfactory/authorityMetadata"; -import * as _165 from "./seichain/tokenfactory/genesis"; -import * as _166 from "./seichain/tokenfactory/params"; -import * as _167 from "./seichain/tokenfactory/query"; -import * as _168 from "./seichain/tokenfactory/tx"; -import * as _246 from "./seichain/dex/query.lcd"; -import * as _247 from "./seichain/epoch/query.lcd"; -import * as _248 from "./seichain/mint/v1beta1/query.lcd"; -import * as _249 from "./seichain/oracle/query.lcd"; -import * as _250 from "./seichain/tokenfactory/query.lcd"; +import * as _78 from "./seichain/dex/asset_list"; +import * as _79 from "./seichain/dex/contract"; +import * as _80 from "./seichain/dex/deposit"; +import * as _81 from "./seichain/dex/enums"; +import * as _82 from "./seichain/dex/genesis"; +import * as _83 from "./seichain/dex/gov"; +import * as _84 from "./seichain/dex/long_book"; +import * as _85 from "./seichain/dex/match_result"; +import * as _86 from "./seichain/dex/order_entry"; +import * as _87 from "./seichain/dex/order"; +import * as _88 from "./seichain/dex/pair"; +import * as _89 from "./seichain/dex/params"; +import * as _90 from "./seichain/dex/price"; +import * as _91 from "./seichain/dex/query"; +import * as _92 from "./seichain/dex/settlement"; +import * as _93 from "./seichain/dex/short_book"; +import * as _94 from "./seichain/dex/tick_size"; +import * as _95 from "./seichain/dex/twap"; +import * as _96 from "./seichain/dex/tx"; +import * as _97 from "./seichain/epoch/epoch"; +import * as _98 from "./seichain/epoch/genesis"; +import * as _99 from "./seichain/epoch/params"; +import * as _100 from "./seichain/epoch/query"; +import * as _102 from "./seichain/mint/v1beta1/genesis"; +import * as _103 from "./seichain/mint/v1beta1/gov"; +import * as _104 from "./seichain/mint/v1beta1/mint"; +import * as _105 from "./seichain/mint/v1beta1/query"; +import * as _106 from "./seichain/oracle/genesis"; +import * as _107 from "./seichain/oracle/oracle"; +import * as _108 from "./seichain/oracle/query"; +import * as _109 from "./seichain/oracle/tx"; +import * as _110 from "./seichain/tokenfactory/authorityMetadata"; +import * as _111 from "./seichain/tokenfactory/genesis"; +import * as _112 from "./seichain/tokenfactory/params"; +import * as _113 from "./seichain/tokenfactory/query"; +import * as _114 from "./seichain/tokenfactory/tx"; +import * as _191 from "./seichain/dex/query.lcd"; +import * as _192 from "./seichain/epoch/query.lcd"; +import * as _193 from "./seichain/mint/v1beta1/query.lcd"; +import * as _194 from "./seichain/oracle/query.lcd"; +import * as _195 from "./seichain/tokenfactory/query.lcd"; +import * as _196 from "./seichain/dex/query.rpc.Query"; +import * as _197 from "./seichain/epoch/query.rpc.Query"; +import * as _198 from "./seichain/mint/v1beta1/query.rpc.Query"; +import * as _199 from "./seichain/oracle/query.rpc.Query"; +import * as _200 from "./seichain/tokenfactory/query.rpc.Query"; +import * as _201 from "./seichain/dex/tx.rpc.msg"; +import * as _202 from "./seichain/oracle/tx.rpc.msg"; +import * as _203 from "./seichain/tokenfactory/tx.rpc.msg"; export declare namespace seiprotocol { namespace seichain { const dex: { - LCDQueryClient: typeof _246.LCDQueryClient; + MsgClientImpl: typeof _201.MsgClientImpl; + QueryClientImpl: typeof _196.QueryClientImpl; + createRpcQueryExtension: (base: import("@cosmjs/stargate").QueryClient) => { + params(request?: _91.QueryParamsRequest): Promise<_91.QueryParamsResponse>; + longBook(request: _91.QueryGetLongBookRequest): Promise<_91.QueryGetLongBookResponse>; + longBookAll(request: _91.QueryAllLongBookRequest): Promise<_91.QueryAllLongBookResponse>; + shortBook(request: _91.QueryGetShortBookRequest): Promise<_91.QueryGetShortBookResponse>; + shortBookAll(request: _91.QueryAllShortBookRequest): Promise<_91.QueryAllShortBookResponse>; + getPrice(request: _91.QueryGetPriceRequest): Promise<_91.QueryGetPriceResponse>; + getLatestPrice(request: _91.QueryGetLatestPriceRequest): Promise<_91.QueryGetLatestPriceResponse>; + getPrices(request: _91.QueryGetPricesRequest): Promise<_91.QueryGetPricesResponse>; + getTwaps(request: _91.QueryGetTwapsRequest): Promise<_91.QueryGetTwapsResponse>; + assetMetadata(request: _91.QueryAssetMetadataRequest): Promise<_91.QueryAssetMetadataResponse>; + assetList(request?: _91.QueryAssetListRequest): Promise<_91.QueryAssetListResponse>; + getRegisteredPairs(request: _91.QueryRegisteredPairsRequest): Promise<_91.QueryRegisteredPairsResponse>; + getRegisteredContract(request: _91.QueryRegisteredContractRequest): Promise<_91.QueryRegisteredContractResponse>; + getOrders(request: _91.QueryGetOrdersRequest): Promise<_91.QueryGetOrdersResponse>; + getOrder(request: _91.QueryGetOrderByIDRequest): Promise<_91.QueryGetOrderByIDResponse>; + getHistoricalPrices(request: _91.QueryGetHistoricalPricesRequest): Promise<_91.QueryGetHistoricalPricesResponse>; + getMarketSummary(request: _91.QueryGetMarketSummaryRequest): Promise<_91.QueryGetMarketSummaryResponse>; + getOrderSimulation(request: _91.QueryOrderSimulationRequest): Promise<_91.QueryOrderSimulationResponse>; + getMatchResult(request: _91.QueryGetMatchResultRequest): Promise<_91.QueryGetMatchResultResponse>; + getOrderCount(request: _91.QueryGetOrderCountRequest): Promise<_91.QueryGetOrderCountResponse>; + }; + LCDQueryClient: typeof _191.LCDQueryClient; registry: readonly [string, import("@cosmjs/proto-signing").GeneratedType][]; load: (protoRegistry: import("@cosmjs/proto-signing").Registry) => void; MessageComposer: { encoded: { - placeOrders(value: _150.MsgPlaceOrders): { + placeOrders(value: _96.MsgPlaceOrders): { typeUrl: string; value: Uint8Array; }; - cancelOrders(value: _150.MsgCancelOrders): { + cancelOrders(value: _96.MsgCancelOrders): { typeUrl: string; value: Uint8Array; }; - registerContract(value: _150.MsgRegisterContract): { + registerContract(value: _96.MsgRegisterContract): { typeUrl: string; value: Uint8Array; }; - contractDepositRent(value: _150.MsgContractDepositRent): { + contractDepositRent(value: _96.MsgContractDepositRent): { typeUrl: string; value: Uint8Array; }; - unregisterContract(value: _150.MsgUnregisterContract): { + unregisterContract(value: _96.MsgUnregisterContract): { typeUrl: string; value: Uint8Array; }; - registerPairs(value: _150.MsgRegisterPairs): { + registerPairs(value: _96.MsgRegisterPairs): { typeUrl: string; value: Uint8Array; }; - updatePriceTickSize(value: _150.MsgUpdatePriceTickSize): { + updatePriceTickSize(value: _96.MsgUpdatePriceTickSize): { typeUrl: string; value: Uint8Array; }; - updateQuantityTickSize(value: _150.MsgUpdateQuantityTickSize): { + updateQuantityTickSize(value: _96.MsgUpdateQuantityTickSize): { typeUrl: string; value: Uint8Array; }; - unsuspendContract(value: _150.MsgUnsuspendContract): { + unsuspendContract(value: _96.MsgUnsuspendContract): { typeUrl: string; value: Uint8Array; }; }; withTypeUrl: { - placeOrders(value: _150.MsgPlaceOrders): { + placeOrders(value: _96.MsgPlaceOrders): { typeUrl: string; - value: _150.MsgPlaceOrders; + value: _96.MsgPlaceOrders; }; - cancelOrders(value: _150.MsgCancelOrders): { + cancelOrders(value: _96.MsgCancelOrders): { typeUrl: string; - value: _150.MsgCancelOrders; + value: _96.MsgCancelOrders; }; - registerContract(value: _150.MsgRegisterContract): { + registerContract(value: _96.MsgRegisterContract): { typeUrl: string; - value: _150.MsgRegisterContract; + value: _96.MsgRegisterContract; }; - contractDepositRent(value: _150.MsgContractDepositRent): { + contractDepositRent(value: _96.MsgContractDepositRent): { typeUrl: string; - value: _150.MsgContractDepositRent; + value: _96.MsgContractDepositRent; }; - unregisterContract(value: _150.MsgUnregisterContract): { + unregisterContract(value: _96.MsgUnregisterContract): { typeUrl: string; - value: _150.MsgUnregisterContract; + value: _96.MsgUnregisterContract; }; - registerPairs(value: _150.MsgRegisterPairs): { + registerPairs(value: _96.MsgRegisterPairs): { typeUrl: string; - value: _150.MsgRegisterPairs; + value: _96.MsgRegisterPairs; }; - updatePriceTickSize(value: _150.MsgUpdatePriceTickSize): { + updatePriceTickSize(value: _96.MsgUpdatePriceTickSize): { typeUrl: string; - value: _150.MsgUpdatePriceTickSize; + value: _96.MsgUpdatePriceTickSize; }; - updateQuantityTickSize(value: _150.MsgUpdateQuantityTickSize): { + updateQuantityTickSize(value: _96.MsgUpdateQuantityTickSize): { typeUrl: string; - value: _150.MsgUpdateQuantityTickSize; + value: _96.MsgUpdateQuantityTickSize; }; - unsuspendContract(value: _150.MsgUnsuspendContract): { + unsuspendContract(value: _96.MsgUnsuspendContract): { typeUrl: string; - value: _150.MsgUnsuspendContract; + value: _96.MsgUnsuspendContract; }; }; fromPartial: { - placeOrders(value: _150.MsgPlaceOrders): { + placeOrders(value: _96.MsgPlaceOrders): { typeUrl: string; - value: _150.MsgPlaceOrders; + value: _96.MsgPlaceOrders; }; - cancelOrders(value: _150.MsgCancelOrders): { + cancelOrders(value: _96.MsgCancelOrders): { typeUrl: string; - value: _150.MsgCancelOrders; + value: _96.MsgCancelOrders; }; - registerContract(value: _150.MsgRegisterContract): { + registerContract(value: _96.MsgRegisterContract): { typeUrl: string; - value: _150.MsgRegisterContract; + value: _96.MsgRegisterContract; }; - contractDepositRent(value: _150.MsgContractDepositRent): { + contractDepositRent(value: _96.MsgContractDepositRent): { typeUrl: string; - value: _150.MsgContractDepositRent; + value: _96.MsgContractDepositRent; }; - unregisterContract(value: _150.MsgUnregisterContract): { + unregisterContract(value: _96.MsgUnregisterContract): { typeUrl: string; - value: _150.MsgUnregisterContract; + value: _96.MsgUnregisterContract; }; - registerPairs(value: _150.MsgRegisterPairs): { + registerPairs(value: _96.MsgRegisterPairs): { typeUrl: string; - value: _150.MsgRegisterPairs; + value: _96.MsgRegisterPairs; }; - updatePriceTickSize(value: _150.MsgUpdatePriceTickSize): { + updatePriceTickSize(value: _96.MsgUpdatePriceTickSize): { typeUrl: string; - value: _150.MsgUpdatePriceTickSize; + value: _96.MsgUpdatePriceTickSize; }; - updateQuantityTickSize(value: _150.MsgUpdateQuantityTickSize): { + updateQuantityTickSize(value: _96.MsgUpdateQuantityTickSize): { typeUrl: string; - value: _150.MsgUpdateQuantityTickSize; + value: _96.MsgUpdateQuantityTickSize; }; - unsuspendContract(value: _150.MsgUnsuspendContract): { + unsuspendContract(value: _96.MsgUnsuspendContract): { typeUrl: string; - value: _150.MsgUnsuspendContract; + value: _96.MsgUnsuspendContract; }; }; }; AminoConverter: { "/seiprotocol.seichain.dex.MsgPlaceOrders": { aminoType: string; - toAmino: ({ creator, orders, contractAddr, funds }: _150.MsgPlaceOrders) => { + toAmino: ({ creator, orders, contractAddr, funds }: _96.MsgPlaceOrders) => { creator: string; orders: { id: string; @@ -213,11 +245,11 @@ export declare namespace seiprotocol { denom: string; amount: string; }[]; - }) => _150.MsgPlaceOrders; + }) => _96.MsgPlaceOrders; }; "/seiprotocol.seichain.dex.MsgCancelOrders": { aminoType: string; - toAmino: ({ creator, cancellations, contractAddr }: _150.MsgCancelOrders) => { + toAmino: ({ creator, cancellations, contractAddr }: _96.MsgCancelOrders) => { creator: string; cancellations: { id: string; @@ -244,11 +276,11 @@ export declare namespace seiprotocol { price: string; }[]; contractAddr: string; - }) => _150.MsgCancelOrders; + }) => _96.MsgCancelOrders; }; "/seiprotocol.seichain.dex.MsgRegisterContract": { aminoType: string; - toAmino: ({ creator, contract }: _150.MsgRegisterContract) => { + toAmino: ({ creator, contract }: _96.MsgRegisterContract) => { creator: string; contract: { codeId: string; @@ -285,11 +317,11 @@ export declare namespace seiprotocol { suspended: boolean; suspensionReason: string; }; - }) => _150.MsgRegisterContract; + }) => _96.MsgRegisterContract; }; "/seiprotocol.seichain.dex.MsgContractDepositRent": { aminoType: string; - toAmino: ({ contractAddr, amount, sender }: _150.MsgContractDepositRent) => { + toAmino: ({ contractAddr, amount, sender }: _96.MsgContractDepositRent) => { contractAddr: string; amount: string; sender: string; @@ -298,22 +330,22 @@ export declare namespace seiprotocol { contractAddr: string; amount: string; sender: string; - }) => _150.MsgContractDepositRent; + }) => _96.MsgContractDepositRent; }; "/seiprotocol.seichain.dex.MsgUnregisterContract": { aminoType: string; - toAmino: ({ creator, contractAddr }: _150.MsgUnregisterContract) => { + toAmino: ({ creator, contractAddr }: _96.MsgUnregisterContract) => { creator: string; contractAddr: string; }; fromAmino: ({ creator, contractAddr }: { creator: string; contractAddr: string; - }) => _150.MsgUnregisterContract; + }) => _96.MsgUnregisterContract; }; "/seiprotocol.seichain.dex.MsgRegisterPairs": { aminoType: string; - toAmino: ({ creator, batchcontractpair }: _150.MsgRegisterPairs) => { + toAmino: ({ creator, batchcontractpair }: _96.MsgRegisterPairs) => { creator: string; batchcontractpair: { contractAddr: string; @@ -336,11 +368,11 @@ export declare namespace seiprotocol { quantityTicksize: string; }[]; }[]; - }) => _150.MsgRegisterPairs; + }) => _96.MsgRegisterPairs; }; "/seiprotocol.seichain.dex.MsgUpdatePriceTickSize": { aminoType: string; - toAmino: ({ creator, tickSizeList }: _150.MsgUpdatePriceTickSize) => { + toAmino: ({ creator, tickSizeList }: _96.MsgUpdatePriceTickSize) => { creator: string; tickSizeList: { pair: { @@ -365,11 +397,11 @@ export declare namespace seiprotocol { ticksize: string; contractAddr: string; }[]; - }) => _150.MsgUpdatePriceTickSize; + }) => _96.MsgUpdatePriceTickSize; }; "/seiprotocol.seichain.dex.MsgUpdateQuantityTickSize": { aminoType: string; - toAmino: ({ creator, tickSizeList }: _150.MsgUpdateQuantityTickSize) => { + toAmino: ({ creator, tickSizeList }: _96.MsgUpdateQuantityTickSize) => { creator: string; tickSizeList: { pair: { @@ -394,611 +426,635 @@ export declare namespace seiprotocol { ticksize: string; contractAddr: string; }[]; - }) => _150.MsgUpdateQuantityTickSize; + }) => _96.MsgUpdateQuantityTickSize; }; "/seiprotocol.seichain.dex.MsgUnsuspendContract": { aminoType: string; - toAmino: ({ creator, contractAddr }: _150.MsgUnsuspendContract) => { + toAmino: ({ creator, contractAddr }: _96.MsgUnsuspendContract) => { creator: string; contractAddr: string; }; fromAmino: ({ creator, contractAddr }: { creator: string; contractAddr: string; - }) => _150.MsgUnsuspendContract; + }) => _96.MsgUnsuspendContract; }; }; MsgPlaceOrders: { - encode(message: _150.MsgPlaceOrders, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _150.MsgPlaceOrders; - fromPartial(object: any): _150.MsgPlaceOrders; + encode(message: _96.MsgPlaceOrders, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _96.MsgPlaceOrders; + fromPartial(object: any): _96.MsgPlaceOrders; }; MsgPlaceOrdersResponse: { - encode(message: _150.MsgPlaceOrdersResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _150.MsgPlaceOrdersResponse; - fromPartial(object: any): _150.MsgPlaceOrdersResponse; + encode(message: _96.MsgPlaceOrdersResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _96.MsgPlaceOrdersResponse; + fromPartial(object: any): _96.MsgPlaceOrdersResponse; }; MsgCancelOrders: { - encode(message: _150.MsgCancelOrders, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _150.MsgCancelOrders; - fromPartial(object: any): _150.MsgCancelOrders; + encode(message: _96.MsgCancelOrders, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _96.MsgCancelOrders; + fromPartial(object: any): _96.MsgCancelOrders; }; MsgCancelOrdersResponse: { - encode(_: _150.MsgCancelOrdersResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _150.MsgCancelOrdersResponse; - fromPartial(_: any): _150.MsgCancelOrdersResponse; + encode(_: _96.MsgCancelOrdersResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _96.MsgCancelOrdersResponse; + fromPartial(_: any): _96.MsgCancelOrdersResponse; }; MsgRegisterContract: { - encode(message: _150.MsgRegisterContract, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _150.MsgRegisterContract; - fromPartial(object: any): _150.MsgRegisterContract; + encode(message: _96.MsgRegisterContract, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _96.MsgRegisterContract; + fromPartial(object: any): _96.MsgRegisterContract; }; MsgRegisterContractResponse: { - encode(_: _150.MsgRegisterContractResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _150.MsgRegisterContractResponse; - fromPartial(_: any): _150.MsgRegisterContractResponse; + encode(_: _96.MsgRegisterContractResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _96.MsgRegisterContractResponse; + fromPartial(_: any): _96.MsgRegisterContractResponse; }; MsgContractDepositRent: { - encode(message: _150.MsgContractDepositRent, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _150.MsgContractDepositRent; - fromPartial(object: any): _150.MsgContractDepositRent; + encode(message: _96.MsgContractDepositRent, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _96.MsgContractDepositRent; + fromPartial(object: any): _96.MsgContractDepositRent; }; MsgContractDepositRentResponse: { - encode(_: _150.MsgContractDepositRentResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _150.MsgContractDepositRentResponse; - fromPartial(_: any): _150.MsgContractDepositRentResponse; + encode(_: _96.MsgContractDepositRentResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _96.MsgContractDepositRentResponse; + fromPartial(_: any): _96.MsgContractDepositRentResponse; }; MsgUnregisterContract: { - encode(message: _150.MsgUnregisterContract, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _150.MsgUnregisterContract; - fromPartial(object: any): _150.MsgUnregisterContract; + encode(message: _96.MsgUnregisterContract, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _96.MsgUnregisterContract; + fromPartial(object: any): _96.MsgUnregisterContract; }; MsgUnregisterContractResponse: { - encode(_: _150.MsgUnregisterContractResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _150.MsgUnregisterContractResponse; - fromPartial(_: any): _150.MsgUnregisterContractResponse; + encode(_: _96.MsgUnregisterContractResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _96.MsgUnregisterContractResponse; + fromPartial(_: any): _96.MsgUnregisterContractResponse; }; MsgRegisterPairs: { - encode(message: _150.MsgRegisterPairs, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _150.MsgRegisterPairs; - fromPartial(object: any): _150.MsgRegisterPairs; + encode(message: _96.MsgRegisterPairs, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _96.MsgRegisterPairs; + fromPartial(object: any): _96.MsgRegisterPairs; }; MsgRegisterPairsResponse: { - encode(_: _150.MsgRegisterPairsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _150.MsgRegisterPairsResponse; - fromPartial(_: any): _150.MsgRegisterPairsResponse; + encode(_: _96.MsgRegisterPairsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _96.MsgRegisterPairsResponse; + fromPartial(_: any): _96.MsgRegisterPairsResponse; }; MsgUpdatePriceTickSize: { - encode(message: _150.MsgUpdatePriceTickSize, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _150.MsgUpdatePriceTickSize; - fromPartial(object: any): _150.MsgUpdatePriceTickSize; + encode(message: _96.MsgUpdatePriceTickSize, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _96.MsgUpdatePriceTickSize; + fromPartial(object: any): _96.MsgUpdatePriceTickSize; }; MsgUpdateQuantityTickSize: { - encode(message: _150.MsgUpdateQuantityTickSize, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _150.MsgUpdateQuantityTickSize; - fromPartial(object: any): _150.MsgUpdateQuantityTickSize; + encode(message: _96.MsgUpdateQuantityTickSize, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _96.MsgUpdateQuantityTickSize; + fromPartial(object: any): _96.MsgUpdateQuantityTickSize; }; MsgUpdateTickSizeResponse: { - encode(_: _150.MsgUpdateTickSizeResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _150.MsgUpdateTickSizeResponse; - fromPartial(_: any): _150.MsgUpdateTickSizeResponse; + encode(_: _96.MsgUpdateTickSizeResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _96.MsgUpdateTickSizeResponse; + fromPartial(_: any): _96.MsgUpdateTickSizeResponse; }; MsgUnsuspendContract: { - encode(message: _150.MsgUnsuspendContract, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _150.MsgUnsuspendContract; - fromPartial(object: any): _150.MsgUnsuspendContract; + encode(message: _96.MsgUnsuspendContract, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _96.MsgUnsuspendContract; + fromPartial(object: any): _96.MsgUnsuspendContract; }; MsgUnsuspendContractResponse: { - encode(_: _150.MsgUnsuspendContractResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _150.MsgUnsuspendContractResponse; - fromPartial(_: any): _150.MsgUnsuspendContractResponse; + encode(_: _96.MsgUnsuspendContractResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _96.MsgUnsuspendContractResponse; + fromPartial(_: any): _96.MsgUnsuspendContractResponse; }; Twap: { - encode(message: _149.Twap, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _149.Twap; - fromPartial(object: any): _149.Twap; + encode(message: _95.Twap, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _95.Twap; + fromPartial(object: any): _95.Twap; }; TickSize: { - encode(message: _148.TickSize, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _148.TickSize; - fromPartial(object: any): _148.TickSize; + encode(message: _94.TickSize, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _94.TickSize; + fromPartial(object: any): _94.TickSize; }; ShortBook: { - encode(message: _147.ShortBook, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _147.ShortBook; - fromPartial(object: any): _147.ShortBook; + encode(message: _93.ShortBook, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _93.ShortBook; + fromPartial(object: any): _93.ShortBook; }; SettlementEntry: { - encode(message: _146.SettlementEntry, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _146.SettlementEntry; - fromPartial(object: any): _146.SettlementEntry; + encode(message: _92.SettlementEntry, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _92.SettlementEntry; + fromPartial(object: any): _92.SettlementEntry; }; Settlements: { - encode(message: _146.Settlements, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _146.Settlements; - fromPartial(object: any): _146.Settlements; + encode(message: _92.Settlements, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _92.Settlements; + fromPartial(object: any): _92.Settlements; }; QueryParamsRequest: { - encode(_: _145.QueryParamsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _145.QueryParamsRequest; - fromPartial(_: any): _145.QueryParamsRequest; + encode(_: _91.QueryParamsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _91.QueryParamsRequest; + fromPartial(_: any): _91.QueryParamsRequest; }; QueryParamsResponse: { - encode(message: _145.QueryParamsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _145.QueryParamsResponse; - fromPartial(object: any): _145.QueryParamsResponse; + encode(message: _91.QueryParamsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _91.QueryParamsResponse; + fromPartial(object: any): _91.QueryParamsResponse; }; QueryGetLongBookRequest: { - encode(message: _145.QueryGetLongBookRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _145.QueryGetLongBookRequest; - fromPartial(object: any): _145.QueryGetLongBookRequest; + encode(message: _91.QueryGetLongBookRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _91.QueryGetLongBookRequest; + fromPartial(object: any): _91.QueryGetLongBookRequest; }; QueryGetLongBookResponse: { - encode(message: _145.QueryGetLongBookResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _145.QueryGetLongBookResponse; - fromPartial(object: any): _145.QueryGetLongBookResponse; + encode(message: _91.QueryGetLongBookResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _91.QueryGetLongBookResponse; + fromPartial(object: any): _91.QueryGetLongBookResponse; }; QueryAllLongBookRequest: { - encode(message: _145.QueryAllLongBookRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _145.QueryAllLongBookRequest; - fromPartial(object: any): _145.QueryAllLongBookRequest; + encode(message: _91.QueryAllLongBookRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _91.QueryAllLongBookRequest; + fromPartial(object: any): _91.QueryAllLongBookRequest; }; QueryAllLongBookResponse: { - encode(message: _145.QueryAllLongBookResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _145.QueryAllLongBookResponse; - fromPartial(object: any): _145.QueryAllLongBookResponse; + encode(message: _91.QueryAllLongBookResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _91.QueryAllLongBookResponse; + fromPartial(object: any): _91.QueryAllLongBookResponse; }; QueryGetShortBookRequest: { - encode(message: _145.QueryGetShortBookRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _145.QueryGetShortBookRequest; - fromPartial(object: any): _145.QueryGetShortBookRequest; + encode(message: _91.QueryGetShortBookRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _91.QueryGetShortBookRequest; + fromPartial(object: any): _91.QueryGetShortBookRequest; }; QueryGetShortBookResponse: { - encode(message: _145.QueryGetShortBookResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _145.QueryGetShortBookResponse; - fromPartial(object: any): _145.QueryGetShortBookResponse; + encode(message: _91.QueryGetShortBookResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _91.QueryGetShortBookResponse; + fromPartial(object: any): _91.QueryGetShortBookResponse; }; QueryAllShortBookRequest: { - encode(message: _145.QueryAllShortBookRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _145.QueryAllShortBookRequest; - fromPartial(object: any): _145.QueryAllShortBookRequest; + encode(message: _91.QueryAllShortBookRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _91.QueryAllShortBookRequest; + fromPartial(object: any): _91.QueryAllShortBookRequest; }; QueryAllShortBookResponse: { - encode(message: _145.QueryAllShortBookResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _145.QueryAllShortBookResponse; - fromPartial(object: any): _145.QueryAllShortBookResponse; + encode(message: _91.QueryAllShortBookResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _91.QueryAllShortBookResponse; + fromPartial(object: any): _91.QueryAllShortBookResponse; }; QueryGetPricesRequest: { - encode(message: _145.QueryGetPricesRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _145.QueryGetPricesRequest; - fromPartial(object: any): _145.QueryGetPricesRequest; + encode(message: _91.QueryGetPricesRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _91.QueryGetPricesRequest; + fromPartial(object: any): _91.QueryGetPricesRequest; }; QueryGetPricesResponse: { - encode(message: _145.QueryGetPricesResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _145.QueryGetPricesResponse; - fromPartial(object: any): _145.QueryGetPricesResponse; + encode(message: _91.QueryGetPricesResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _91.QueryGetPricesResponse; + fromPartial(object: any): _91.QueryGetPricesResponse; }; QueryGetPriceRequest: { - encode(message: _145.QueryGetPriceRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _145.QueryGetPriceRequest; - fromPartial(object: any): _145.QueryGetPriceRequest; + encode(message: _91.QueryGetPriceRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _91.QueryGetPriceRequest; + fromPartial(object: any): _91.QueryGetPriceRequest; }; QueryGetPriceResponse: { - encode(message: _145.QueryGetPriceResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _145.QueryGetPriceResponse; - fromPartial(object: any): _145.QueryGetPriceResponse; + encode(message: _91.QueryGetPriceResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _91.QueryGetPriceResponse; + fromPartial(object: any): _91.QueryGetPriceResponse; }; QueryGetLatestPriceRequest: { - encode(message: _145.QueryGetLatestPriceRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _145.QueryGetLatestPriceRequest; - fromPartial(object: any): _145.QueryGetLatestPriceRequest; + encode(message: _91.QueryGetLatestPriceRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _91.QueryGetLatestPriceRequest; + fromPartial(object: any): _91.QueryGetLatestPriceRequest; }; QueryGetLatestPriceResponse: { - encode(message: _145.QueryGetLatestPriceResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _145.QueryGetLatestPriceResponse; - fromPartial(object: any): _145.QueryGetLatestPriceResponse; + encode(message: _91.QueryGetLatestPriceResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _91.QueryGetLatestPriceResponse; + fromPartial(object: any): _91.QueryGetLatestPriceResponse; }; QueryGetTwapsRequest: { - encode(message: _145.QueryGetTwapsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _145.QueryGetTwapsRequest; - fromPartial(object: any): _145.QueryGetTwapsRequest; + encode(message: _91.QueryGetTwapsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _91.QueryGetTwapsRequest; + fromPartial(object: any): _91.QueryGetTwapsRequest; }; QueryGetTwapsResponse: { - encode(message: _145.QueryGetTwapsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _145.QueryGetTwapsResponse; - fromPartial(object: any): _145.QueryGetTwapsResponse; + encode(message: _91.QueryGetTwapsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _91.QueryGetTwapsResponse; + fromPartial(object: any): _91.QueryGetTwapsResponse; }; QueryAssetListRequest: { - encode(_: _145.QueryAssetListRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _145.QueryAssetListRequest; - fromPartial(_: any): _145.QueryAssetListRequest; + encode(_: _91.QueryAssetListRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _91.QueryAssetListRequest; + fromPartial(_: any): _91.QueryAssetListRequest; }; QueryAssetListResponse: { - encode(message: _145.QueryAssetListResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _145.QueryAssetListResponse; - fromPartial(object: any): _145.QueryAssetListResponse; + encode(message: _91.QueryAssetListResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _91.QueryAssetListResponse; + fromPartial(object: any): _91.QueryAssetListResponse; }; QueryAssetMetadataRequest: { - encode(message: _145.QueryAssetMetadataRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _145.QueryAssetMetadataRequest; - fromPartial(object: any): _145.QueryAssetMetadataRequest; + encode(message: _91.QueryAssetMetadataRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _91.QueryAssetMetadataRequest; + fromPartial(object: any): _91.QueryAssetMetadataRequest; }; QueryAssetMetadataResponse: { - encode(message: _145.QueryAssetMetadataResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _145.QueryAssetMetadataResponse; - fromPartial(object: any): _145.QueryAssetMetadataResponse; + encode(message: _91.QueryAssetMetadataResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _91.QueryAssetMetadataResponse; + fromPartial(object: any): _91.QueryAssetMetadataResponse; }; QueryRegisteredPairsRequest: { - encode(message: _145.QueryRegisteredPairsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _145.QueryRegisteredPairsRequest; - fromPartial(object: any): _145.QueryRegisteredPairsRequest; + encode(message: _91.QueryRegisteredPairsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _91.QueryRegisteredPairsRequest; + fromPartial(object: any): _91.QueryRegisteredPairsRequest; }; QueryRegisteredPairsResponse: { - encode(message: _145.QueryRegisteredPairsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _145.QueryRegisteredPairsResponse; - fromPartial(object: any): _145.QueryRegisteredPairsResponse; + encode(message: _91.QueryRegisteredPairsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _91.QueryRegisteredPairsResponse; + fromPartial(object: any): _91.QueryRegisteredPairsResponse; }; QueryRegisteredContractRequest: { - encode(message: _145.QueryRegisteredContractRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _145.QueryRegisteredContractRequest; - fromPartial(object: any): _145.QueryRegisteredContractRequest; + encode(message: _91.QueryRegisteredContractRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _91.QueryRegisteredContractRequest; + fromPartial(object: any): _91.QueryRegisteredContractRequest; }; QueryRegisteredContractResponse: { - encode(message: _145.QueryRegisteredContractResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _145.QueryRegisteredContractResponse; - fromPartial(object: any): _145.QueryRegisteredContractResponse; + encode(message: _91.QueryRegisteredContractResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _91.QueryRegisteredContractResponse; + fromPartial(object: any): _91.QueryRegisteredContractResponse; }; QueryGetOrdersRequest: { - encode(message: _145.QueryGetOrdersRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _145.QueryGetOrdersRequest; - fromPartial(object: any): _145.QueryGetOrdersRequest; + encode(message: _91.QueryGetOrdersRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _91.QueryGetOrdersRequest; + fromPartial(object: any): _91.QueryGetOrdersRequest; }; QueryGetOrdersResponse: { - encode(message: _145.QueryGetOrdersResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _145.QueryGetOrdersResponse; - fromPartial(object: any): _145.QueryGetOrdersResponse; + encode(message: _91.QueryGetOrdersResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _91.QueryGetOrdersResponse; + fromPartial(object: any): _91.QueryGetOrdersResponse; }; QueryGetOrderByIDRequest: { - encode(message: _145.QueryGetOrderByIDRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _145.QueryGetOrderByIDRequest; - fromPartial(object: any): _145.QueryGetOrderByIDRequest; + encode(message: _91.QueryGetOrderByIDRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _91.QueryGetOrderByIDRequest; + fromPartial(object: any): _91.QueryGetOrderByIDRequest; }; QueryGetOrderByIDResponse: { - encode(message: _145.QueryGetOrderByIDResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _145.QueryGetOrderByIDResponse; - fromPartial(object: any): _145.QueryGetOrderByIDResponse; + encode(message: _91.QueryGetOrderByIDResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _91.QueryGetOrderByIDResponse; + fromPartial(object: any): _91.QueryGetOrderByIDResponse; }; QueryGetHistoricalPricesRequest: { - encode(message: _145.QueryGetHistoricalPricesRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _145.QueryGetHistoricalPricesRequest; - fromPartial(object: any): _145.QueryGetHistoricalPricesRequest; + encode(message: _91.QueryGetHistoricalPricesRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _91.QueryGetHistoricalPricesRequest; + fromPartial(object: any): _91.QueryGetHistoricalPricesRequest; }; QueryGetHistoricalPricesResponse: { - encode(message: _145.QueryGetHistoricalPricesResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _145.QueryGetHistoricalPricesResponse; - fromPartial(object: any): _145.QueryGetHistoricalPricesResponse; + encode(message: _91.QueryGetHistoricalPricesResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _91.QueryGetHistoricalPricesResponse; + fromPartial(object: any): _91.QueryGetHistoricalPricesResponse; }; QueryGetMarketSummaryRequest: { - encode(message: _145.QueryGetMarketSummaryRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _145.QueryGetMarketSummaryRequest; - fromPartial(object: any): _145.QueryGetMarketSummaryRequest; + encode(message: _91.QueryGetMarketSummaryRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _91.QueryGetMarketSummaryRequest; + fromPartial(object: any): _91.QueryGetMarketSummaryRequest; }; QueryGetMarketSummaryResponse: { - encode(message: _145.QueryGetMarketSummaryResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _145.QueryGetMarketSummaryResponse; - fromPartial(object: any): _145.QueryGetMarketSummaryResponse; + encode(message: _91.QueryGetMarketSummaryResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _91.QueryGetMarketSummaryResponse; + fromPartial(object: any): _91.QueryGetMarketSummaryResponse; }; QueryOrderSimulationRequest: { - encode(message: _145.QueryOrderSimulationRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _145.QueryOrderSimulationRequest; - fromPartial(object: any): _145.QueryOrderSimulationRequest; + encode(message: _91.QueryOrderSimulationRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _91.QueryOrderSimulationRequest; + fromPartial(object: any): _91.QueryOrderSimulationRequest; }; QueryOrderSimulationResponse: { - encode(message: _145.QueryOrderSimulationResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _145.QueryOrderSimulationResponse; - fromPartial(object: any): _145.QueryOrderSimulationResponse; + encode(message: _91.QueryOrderSimulationResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _91.QueryOrderSimulationResponse; + fromPartial(object: any): _91.QueryOrderSimulationResponse; }; QueryGetMatchResultRequest: { - encode(message: _145.QueryGetMatchResultRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _145.QueryGetMatchResultRequest; - fromPartial(object: any): _145.QueryGetMatchResultRequest; + encode(message: _91.QueryGetMatchResultRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _91.QueryGetMatchResultRequest; + fromPartial(object: any): _91.QueryGetMatchResultRequest; }; QueryGetMatchResultResponse: { - encode(message: _145.QueryGetMatchResultResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _145.QueryGetMatchResultResponse; - fromPartial(object: any): _145.QueryGetMatchResultResponse; + encode(message: _91.QueryGetMatchResultResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _91.QueryGetMatchResultResponse; + fromPartial(object: any): _91.QueryGetMatchResultResponse; }; QueryGetOrderCountRequest: { - encode(message: _145.QueryGetOrderCountRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _145.QueryGetOrderCountRequest; - fromPartial(object: any): _145.QueryGetOrderCountRequest; + encode(message: _91.QueryGetOrderCountRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _91.QueryGetOrderCountRequest; + fromPartial(object: any): _91.QueryGetOrderCountRequest; }; QueryGetOrderCountResponse: { - encode(message: _145.QueryGetOrderCountResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _145.QueryGetOrderCountResponse; - fromPartial(object: any): _145.QueryGetOrderCountResponse; + encode(message: _91.QueryGetOrderCountResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _91.QueryGetOrderCountResponse; + fromPartial(object: any): _91.QueryGetOrderCountResponse; }; Price: { - encode(message: _144.Price, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _144.Price; - fromPartial(object: any): _144.Price; + encode(message: _90.Price, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _90.Price; + fromPartial(object: any): _90.Price; }; PriceCandlestick: { - encode(message: _144.PriceCandlestick, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _144.PriceCandlestick; - fromPartial(object: any): _144.PriceCandlestick; + encode(message: _90.PriceCandlestick, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _90.PriceCandlestick; + fromPartial(object: any): _90.PriceCandlestick; }; Params: { - encode(message: _143.Params, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _143.Params; - fromPartial(object: any): _143.Params; + encode(message: _89.Params, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _89.Params; + fromPartial(object: any): _89.Params; }; Pair: { - encode(message: _142.Pair, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _142.Pair; - fromPartial(object: any): _142.Pair; + encode(message: _88.Pair, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _88.Pair; + fromPartial(object: any): _88.Pair; }; BatchContractPair: { - encode(message: _142.BatchContractPair, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _142.BatchContractPair; - fromPartial(object: any): _142.BatchContractPair; + encode(message: _88.BatchContractPair, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _88.BatchContractPair; + fromPartial(object: any): _88.BatchContractPair; }; Order: { - encode(message: _141.Order, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _141.Order; - fromPartial(object: any): _141.Order; + encode(message: _87.Order, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _87.Order; + fromPartial(object: any): _87.Order; }; Cancellation: { - encode(message: _141.Cancellation, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _141.Cancellation; - fromPartial(object: any): _141.Cancellation; + encode(message: _87.Cancellation, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _87.Cancellation; + fromPartial(object: any): _87.Cancellation; }; ActiveOrders: { - encode(message: _141.ActiveOrders, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _141.ActiveOrders; - fromPartial(object: any): _141.ActiveOrders; + encode(message: _87.ActiveOrders, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _87.ActiveOrders; + fromPartial(object: any): _87.ActiveOrders; }; OrderEntry: { - encode(message: _140.OrderEntry, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _140.OrderEntry; - fromPartial(object: any): _140.OrderEntry; + encode(message: _86.OrderEntry, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _86.OrderEntry; + fromPartial(object: any): _86.OrderEntry; }; Allocation: { - encode(message: _140.Allocation, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _140.Allocation; - fromPartial(object: any): _140.Allocation; + encode(message: _86.Allocation, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _86.Allocation; + fromPartial(object: any): _86.Allocation; }; MatchResult: { - encode(message: _139.MatchResult, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _139.MatchResult; - fromPartial(object: any): _139.MatchResult; + encode(message: _85.MatchResult, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _85.MatchResult; + fromPartial(object: any): _85.MatchResult; }; LongBook: { - encode(message: _138.LongBook, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _138.LongBook; - fromPartial(object: any): _138.LongBook; + encode(message: _84.LongBook, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _84.LongBook; + fromPartial(object: any): _84.LongBook; }; AddAssetMetadataProposal: { - encode(message: _137.AddAssetMetadataProposal, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _137.AddAssetMetadataProposal; - fromPartial(object: any): _137.AddAssetMetadataProposal; + encode(message: _83.AddAssetMetadataProposal, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _83.AddAssetMetadataProposal; + fromPartial(object: any): _83.AddAssetMetadataProposal; }; GenesisState: { - encode(message: _136.GenesisState, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _136.GenesisState; - fromPartial(object: any): _136.GenesisState; + encode(message: _82.GenesisState, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _82.GenesisState; + fromPartial(object: any): _82.GenesisState; }; ContractState: { - encode(message: _136.ContractState, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _136.ContractState; - fromPartial(object: any): _136.ContractState; + encode(message: _82.ContractState, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _82.ContractState; + fromPartial(object: any): _82.ContractState; }; ContractPairPrices: { - encode(message: _136.ContractPairPrices, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _136.ContractPairPrices; - fromPartial(object: any): _136.ContractPairPrices; - }; - positionDirectionFromJSON(object: any): _135.PositionDirection; - positionDirectionToJSON(object: _135.PositionDirection): string; - positionEffectFromJSON(object: any): _135.PositionEffect; - positionEffectToJSON(object: _135.PositionEffect): string; - orderTypeFromJSON(object: any): _135.OrderType; - orderTypeToJSON(object: _135.OrderType): string; - unitFromJSON(object: any): _135.Unit; - unitToJSON(object: _135.Unit): string; - orderStatusFromJSON(object: any): _135.OrderStatus; - orderStatusToJSON(object: _135.OrderStatus): string; - cancellationInitiatorFromJSON(object: any): _135.CancellationInitiator; - cancellationInitiatorToJSON(object: _135.CancellationInitiator): string; - PositionDirection: typeof _135.PositionDirection; - PositionDirectionSDKType: typeof _135.PositionDirection; - PositionEffect: typeof _135.PositionEffect; - PositionEffectSDKType: typeof _135.PositionEffect; - OrderType: typeof _135.OrderType; - OrderTypeSDKType: typeof _135.OrderType; - Unit: typeof _135.Unit; - UnitSDKType: typeof _135.Unit; - OrderStatus: typeof _135.OrderStatus; - OrderStatusSDKType: typeof _135.OrderStatus; - CancellationInitiator: typeof _135.CancellationInitiator; - CancellationInitiatorSDKType: typeof _135.CancellationInitiator; + encode(message: _82.ContractPairPrices, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _82.ContractPairPrices; + fromPartial(object: any): _82.ContractPairPrices; + }; + positionDirectionFromJSON(object: any): _81.PositionDirection; + positionDirectionToJSON(object: _81.PositionDirection): string; + positionEffectFromJSON(object: any): _81.PositionEffect; + positionEffectToJSON(object: _81.PositionEffect): string; + orderTypeFromJSON(object: any): _81.OrderType; + orderTypeToJSON(object: _81.OrderType): string; + unitFromJSON(object: any): _81.Unit; + unitToJSON(object: _81.Unit): string; + orderStatusFromJSON(object: any): _81.OrderStatus; + orderStatusToJSON(object: _81.OrderStatus): string; + cancellationInitiatorFromJSON(object: any): _81.CancellationInitiator; + cancellationInitiatorToJSON(object: _81.CancellationInitiator): string; + PositionDirection: typeof _81.PositionDirection; + PositionDirectionSDKType: typeof _81.PositionDirection; + PositionEffect: typeof _81.PositionEffect; + PositionEffectSDKType: typeof _81.PositionEffect; + OrderType: typeof _81.OrderType; + OrderTypeSDKType: typeof _81.OrderType; + Unit: typeof _81.Unit; + UnitSDKType: typeof _81.Unit; + OrderStatus: typeof _81.OrderStatus; + OrderStatusSDKType: typeof _81.OrderStatus; + CancellationInitiator: typeof _81.CancellationInitiator; + CancellationInitiatorSDKType: typeof _81.CancellationInitiator; DepositInfoEntry: { - encode(message: _134.DepositInfoEntry, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _134.DepositInfoEntry; - fromPartial(object: any): _134.DepositInfoEntry; + encode(message: _80.DepositInfoEntry, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _80.DepositInfoEntry; + fromPartial(object: any): _80.DepositInfoEntry; }; ContractInfo: { - encode(message: _133.ContractInfo, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _133.ContractInfo; - fromPartial(object: any): _133.ContractInfo; + encode(message: _79.ContractInfo, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _79.ContractInfo; + fromPartial(object: any): _79.ContractInfo; }; ContractInfoV2: { - encode(message: _133.ContractInfoV2, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _133.ContractInfoV2; - fromPartial(object: any): _133.ContractInfoV2; + encode(message: _79.ContractInfoV2, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _79.ContractInfoV2; + fromPartial(object: any): _79.ContractInfoV2; }; ContractDependencyInfo: { - encode(message: _133.ContractDependencyInfo, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _133.ContractDependencyInfo; - fromPartial(object: any): _133.ContractDependencyInfo; + encode(message: _79.ContractDependencyInfo, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _79.ContractDependencyInfo; + fromPartial(object: any): _79.ContractDependencyInfo; }; LegacyContractInfo: { - encode(message: _133.LegacyContractInfo, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _133.LegacyContractInfo; - fromPartial(object: any): _133.LegacyContractInfo; + encode(message: _79.LegacyContractInfo, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _79.LegacyContractInfo; + fromPartial(object: any): _79.LegacyContractInfo; }; AssetIBCInfo: { - encode(message: _132.AssetIBCInfo, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _132.AssetIBCInfo; - fromPartial(object: any): _132.AssetIBCInfo; + encode(message: _78.AssetIBCInfo, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _78.AssetIBCInfo; + fromPartial(object: any): _78.AssetIBCInfo; }; AssetMetadata: { - encode(message: _132.AssetMetadata, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _132.AssetMetadata; - fromPartial(object: any): _132.AssetMetadata; + encode(message: _78.AssetMetadata, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _78.AssetMetadata; + fromPartial(object: any): _78.AssetMetadata; }; }; const epoch: { - LCDQueryClient: typeof _247.LCDQueryClient; + QueryClientImpl: typeof _197.QueryClientImpl; + createRpcQueryExtension: (base: import("@cosmjs/stargate").QueryClient) => { + epoch(request?: _100.QueryEpochRequest): Promise<_100.QueryEpochResponse>; + params(request?: _100.QueryParamsRequest): Promise<_100.QueryParamsResponse>; + }; + LCDQueryClient: typeof _192.LCDQueryClient; QueryParamsRequest: { - encode(_: _154.QueryParamsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _154.QueryParamsRequest; - fromPartial(_: any): _154.QueryParamsRequest; + encode(_: _100.QueryParamsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _100.QueryParamsRequest; + fromPartial(_: any): _100.QueryParamsRequest; }; QueryParamsResponse: { - encode(message: _154.QueryParamsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _154.QueryParamsResponse; - fromPartial(object: any): _154.QueryParamsResponse; + encode(message: _100.QueryParamsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _100.QueryParamsResponse; + fromPartial(object: any): _100.QueryParamsResponse; }; QueryEpochRequest: { - encode(_: _154.QueryEpochRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _154.QueryEpochRequest; - fromPartial(_: any): _154.QueryEpochRequest; + encode(_: _100.QueryEpochRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _100.QueryEpochRequest; + fromPartial(_: any): _100.QueryEpochRequest; }; QueryEpochResponse: { - encode(message: _154.QueryEpochResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _154.QueryEpochResponse; - fromPartial(object: any): _154.QueryEpochResponse; + encode(message: _100.QueryEpochResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _100.QueryEpochResponse; + fromPartial(object: any): _100.QueryEpochResponse; }; Params: { - encode(_: _153.Params, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _153.Params; - fromPartial(_: any): _153.Params; + encode(_: _99.Params, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _99.Params; + fromPartial(_: any): _99.Params; }; GenesisState: { - encode(message: _152.GenesisState, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _152.GenesisState; - fromPartial(object: any): _152.GenesisState; + encode(message: _98.GenesisState, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _98.GenesisState; + fromPartial(object: any): _98.GenesisState; }; Epoch: { - encode(message: _151.Epoch, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _151.Epoch; - fromPartial(object: any): _151.Epoch; + encode(message: _97.Epoch, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _97.Epoch; + fromPartial(object: any): _97.Epoch; }; }; const mint: { - LCDQueryClient: typeof _248.LCDQueryClient; + QueryClientImpl: typeof _198.QueryClientImpl; + createRpcQueryExtension: (base: import("@cosmjs/stargate").QueryClient) => { + params(request?: _105.QueryParamsRequest): Promise<_105.QueryParamsResponse>; + minter(request?: _105.QueryMinterRequest): Promise<_105.QueryMinterResponse>; + }; + LCDQueryClient: typeof _193.LCDQueryClient; QueryParamsRequest: { - encode(_: _159.QueryParamsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _159.QueryParamsRequest; - fromPartial(_: any): _159.QueryParamsRequest; + encode(_: _105.QueryParamsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _105.QueryParamsRequest; + fromPartial(_: any): _105.QueryParamsRequest; }; QueryParamsResponse: { - encode(message: _159.QueryParamsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _159.QueryParamsResponse; - fromPartial(object: any): _159.QueryParamsResponse; + encode(message: _105.QueryParamsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _105.QueryParamsResponse; + fromPartial(object: any): _105.QueryParamsResponse; }; QueryMinterRequest: { - encode(_: _159.QueryMinterRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _159.QueryMinterRequest; - fromPartial(_: any): _159.QueryMinterRequest; + encode(_: _105.QueryMinterRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _105.QueryMinterRequest; + fromPartial(_: any): _105.QueryMinterRequest; }; QueryMinterResponse: { - encode(message: _159.QueryMinterResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _159.QueryMinterResponse; - fromPartial(object: any): _159.QueryMinterResponse; + encode(message: _105.QueryMinterResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _105.QueryMinterResponse; + fromPartial(object: any): _105.QueryMinterResponse; }; Minter: { - encode(message: _158.Minter, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _158.Minter; - fromPartial(object: any): _158.Minter; + encode(message: _104.Minter, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _104.Minter; + fromPartial(object: any): _104.Minter; }; ScheduledTokenRelease: { - encode(message: _158.ScheduledTokenRelease, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _158.ScheduledTokenRelease; - fromPartial(object: any): _158.ScheduledTokenRelease; + encode(message: _104.ScheduledTokenRelease, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _104.ScheduledTokenRelease; + fromPartial(object: any): _104.ScheduledTokenRelease; }; Params: { - encode(message: _158.Params, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _158.Params; - fromPartial(object: any): _158.Params; + encode(message: _104.Params, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _104.Params; + fromPartial(object: any): _104.Params; }; Version2Minter: { - encode(message: _158.Version2Minter, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _158.Version2Minter; - fromPartial(object: any): _158.Version2Minter; + encode(message: _104.Version2Minter, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _104.Version2Minter; + fromPartial(object: any): _104.Version2Minter; }; Version2ScheduledTokenRelease: { - encode(message: _158.Version2ScheduledTokenRelease, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _158.Version2ScheduledTokenRelease; - fromPartial(object: any): _158.Version2ScheduledTokenRelease; + encode(message: _104.Version2ScheduledTokenRelease, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _104.Version2ScheduledTokenRelease; + fromPartial(object: any): _104.Version2ScheduledTokenRelease; }; Version2Params: { - encode(message: _158.Version2Params, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _158.Version2Params; - fromPartial(object: any): _158.Version2Params; + encode(message: _104.Version2Params, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _104.Version2Params; + fromPartial(object: any): _104.Version2Params; }; UpdateMinterProposal: { - encode(message: _157.UpdateMinterProposal, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _157.UpdateMinterProposal; - fromPartial(object: any): _157.UpdateMinterProposal; + encode(message: _103.UpdateMinterProposal, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _103.UpdateMinterProposal; + fromPartial(object: any): _103.UpdateMinterProposal; }; GenesisState: { - encode(message: _156.GenesisState, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _156.GenesisState; - fromPartial(object: any): _156.GenesisState; + encode(message: _102.GenesisState, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _102.GenesisState; + fromPartial(object: any): _102.GenesisState; }; }; const oracle: { - LCDQueryClient: typeof _249.LCDQueryClient; + MsgClientImpl: typeof _202.MsgClientImpl; + QueryClientImpl: typeof _199.QueryClientImpl; + createRpcQueryExtension: (base: import("@cosmjs/stargate").QueryClient) => { + exchangeRate(request: _108.QueryExchangeRateRequest): Promise<_108.QueryExchangeRateResponse>; + exchangeRates(request?: _108.QueryExchangeRatesRequest): Promise<_108.QueryExchangeRatesResponse>; + actives(request?: _108.QueryActivesRequest): Promise<_108.QueryActivesResponse>; + voteTargets(request?: _108.QueryVoteTargetsRequest): Promise<_108.QueryVoteTargetsResponse>; + priceSnapshotHistory(request?: _108.QueryPriceSnapshotHistoryRequest): Promise<_108.QueryPriceSnapshotHistoryResponse>; + twaps(request: _108.QueryTwapsRequest): Promise<_108.QueryTwapsResponse>; + feederDelegation(request: _108.QueryFeederDelegationRequest): Promise<_108.QueryFeederDelegationResponse>; + votePenaltyCounter(request: _108.QueryVotePenaltyCounterRequest): Promise<_108.QueryVotePenaltyCounterResponse>; + slashWindow(request?: _108.QuerySlashWindowRequest): Promise<_108.QuerySlashWindowResponse>; + params(request?: _108.QueryParamsRequest): Promise<_108.QueryParamsResponse>; + }; + LCDQueryClient: typeof _194.LCDQueryClient; registry: readonly [string, import("@cosmjs/proto-signing").GeneratedType][]; load: (protoRegistry: import("@cosmjs/proto-signing").Registry) => void; MessageComposer: { encoded: { - aggregateExchangeRateVote(value: _163.MsgAggregateExchangeRateVote): { + aggregateExchangeRateVote(value: _109.MsgAggregateExchangeRateVote): { typeUrl: string; value: Uint8Array; }; - delegateFeedConsent(value: _163.MsgDelegateFeedConsent): { + delegateFeedConsent(value: _109.MsgDelegateFeedConsent): { typeUrl: string; value: Uint8Array; }; }; withTypeUrl: { - aggregateExchangeRateVote(value: _163.MsgAggregateExchangeRateVote): { + aggregateExchangeRateVote(value: _109.MsgAggregateExchangeRateVote): { typeUrl: string; - value: _163.MsgAggregateExchangeRateVote; + value: _109.MsgAggregateExchangeRateVote; }; - delegateFeedConsent(value: _163.MsgDelegateFeedConsent): { + delegateFeedConsent(value: _109.MsgDelegateFeedConsent): { typeUrl: string; - value: _163.MsgDelegateFeedConsent; + value: _109.MsgDelegateFeedConsent; }; }; fromPartial: { - aggregateExchangeRateVote(value: _163.MsgAggregateExchangeRateVote): { + aggregateExchangeRateVote(value: _109.MsgAggregateExchangeRateVote): { typeUrl: string; - value: _163.MsgAggregateExchangeRateVote; + value: _109.MsgAggregateExchangeRateVote; }; - delegateFeedConsent(value: _163.MsgDelegateFeedConsent): { + delegateFeedConsent(value: _109.MsgDelegateFeedConsent): { typeUrl: string; - value: _163.MsgDelegateFeedConsent; + value: _109.MsgDelegateFeedConsent; }; }; }; AminoConverter: { "/seiprotocol.seichain.oracle.MsgAggregateExchangeRateVote": { aminoType: string; - toAmino: ({ exchangeRates, feeder, validator }: _163.MsgAggregateExchangeRateVote) => { + toAmino: ({ exchangeRates, feeder, validator }: _109.MsgAggregateExchangeRateVote) => { exchange_rates: string; feeder: string; validator: string; @@ -1007,281 +1063,288 @@ export declare namespace seiprotocol { exchange_rates: string; feeder: string; validator: string; - }) => _163.MsgAggregateExchangeRateVote; + }) => _109.MsgAggregateExchangeRateVote; }; "/seiprotocol.seichain.oracle.MsgDelegateFeedConsent": { aminoType: string; - toAmino: ({ operator, delegate }: _163.MsgDelegateFeedConsent) => { + toAmino: ({ operator, delegate }: _109.MsgDelegateFeedConsent) => { operator: string; delegate: string; }; fromAmino: ({ operator, delegate }: { operator: string; delegate: string; - }) => _163.MsgDelegateFeedConsent; + }) => _109.MsgDelegateFeedConsent; }; }; MsgAggregateExchangeRateVote: { - encode(message: _163.MsgAggregateExchangeRateVote, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _163.MsgAggregateExchangeRateVote; - fromPartial(object: any): _163.MsgAggregateExchangeRateVote; + encode(message: _109.MsgAggregateExchangeRateVote, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _109.MsgAggregateExchangeRateVote; + fromPartial(object: any): _109.MsgAggregateExchangeRateVote; }; MsgAggregateExchangeRateVoteResponse: { - encode(_: _163.MsgAggregateExchangeRateVoteResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _163.MsgAggregateExchangeRateVoteResponse; - fromPartial(_: any): _163.MsgAggregateExchangeRateVoteResponse; + encode(_: _109.MsgAggregateExchangeRateVoteResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _109.MsgAggregateExchangeRateVoteResponse; + fromPartial(_: any): _109.MsgAggregateExchangeRateVoteResponse; }; MsgDelegateFeedConsent: { - encode(message: _163.MsgDelegateFeedConsent, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _163.MsgDelegateFeedConsent; - fromPartial(object: any): _163.MsgDelegateFeedConsent; + encode(message: _109.MsgDelegateFeedConsent, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _109.MsgDelegateFeedConsent; + fromPartial(object: any): _109.MsgDelegateFeedConsent; }; MsgDelegateFeedConsentResponse: { - encode(_: _163.MsgDelegateFeedConsentResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _163.MsgDelegateFeedConsentResponse; - fromPartial(_: any): _163.MsgDelegateFeedConsentResponse; + encode(_: _109.MsgDelegateFeedConsentResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _109.MsgDelegateFeedConsentResponse; + fromPartial(_: any): _109.MsgDelegateFeedConsentResponse; }; QueryExchangeRateRequest: { - encode(message: _162.QueryExchangeRateRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _162.QueryExchangeRateRequest; - fromPartial(object: any): _162.QueryExchangeRateRequest; + encode(message: _108.QueryExchangeRateRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _108.QueryExchangeRateRequest; + fromPartial(object: any): _108.QueryExchangeRateRequest; }; QueryExchangeRateResponse: { - encode(message: _162.QueryExchangeRateResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _162.QueryExchangeRateResponse; - fromPartial(object: any): _162.QueryExchangeRateResponse; + encode(message: _108.QueryExchangeRateResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _108.QueryExchangeRateResponse; + fromPartial(object: any): _108.QueryExchangeRateResponse; }; QueryExchangeRatesRequest: { - encode(_: _162.QueryExchangeRatesRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _162.QueryExchangeRatesRequest; - fromPartial(_: any): _162.QueryExchangeRatesRequest; + encode(_: _108.QueryExchangeRatesRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _108.QueryExchangeRatesRequest; + fromPartial(_: any): _108.QueryExchangeRatesRequest; }; DenomOracleExchangeRatePair: { - encode(message: _162.DenomOracleExchangeRatePair, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _162.DenomOracleExchangeRatePair; - fromPartial(object: any): _162.DenomOracleExchangeRatePair; + encode(message: _108.DenomOracleExchangeRatePair, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _108.DenomOracleExchangeRatePair; + fromPartial(object: any): _108.DenomOracleExchangeRatePair; }; QueryExchangeRatesResponse: { - encode(message: _162.QueryExchangeRatesResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _162.QueryExchangeRatesResponse; - fromPartial(object: any): _162.QueryExchangeRatesResponse; + encode(message: _108.QueryExchangeRatesResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _108.QueryExchangeRatesResponse; + fromPartial(object: any): _108.QueryExchangeRatesResponse; }; QueryActivesRequest: { - encode(_: _162.QueryActivesRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _162.QueryActivesRequest; - fromPartial(_: any): _162.QueryActivesRequest; + encode(_: _108.QueryActivesRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _108.QueryActivesRequest; + fromPartial(_: any): _108.QueryActivesRequest; }; QueryActivesResponse: { - encode(message: _162.QueryActivesResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _162.QueryActivesResponse; - fromPartial(object: any): _162.QueryActivesResponse; + encode(message: _108.QueryActivesResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _108.QueryActivesResponse; + fromPartial(object: any): _108.QueryActivesResponse; }; QueryVoteTargetsRequest: { - encode(_: _162.QueryVoteTargetsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _162.QueryVoteTargetsRequest; - fromPartial(_: any): _162.QueryVoteTargetsRequest; + encode(_: _108.QueryVoteTargetsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _108.QueryVoteTargetsRequest; + fromPartial(_: any): _108.QueryVoteTargetsRequest; }; QueryVoteTargetsResponse: { - encode(message: _162.QueryVoteTargetsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _162.QueryVoteTargetsResponse; - fromPartial(object: any): _162.QueryVoteTargetsResponse; + encode(message: _108.QueryVoteTargetsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _108.QueryVoteTargetsResponse; + fromPartial(object: any): _108.QueryVoteTargetsResponse; }; QueryPriceSnapshotHistoryRequest: { - encode(_: _162.QueryPriceSnapshotHistoryRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _162.QueryPriceSnapshotHistoryRequest; - fromPartial(_: any): _162.QueryPriceSnapshotHistoryRequest; + encode(_: _108.QueryPriceSnapshotHistoryRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _108.QueryPriceSnapshotHistoryRequest; + fromPartial(_: any): _108.QueryPriceSnapshotHistoryRequest; }; QueryPriceSnapshotHistoryResponse: { - encode(message: _162.QueryPriceSnapshotHistoryResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _162.QueryPriceSnapshotHistoryResponse; - fromPartial(object: any): _162.QueryPriceSnapshotHistoryResponse; + encode(message: _108.QueryPriceSnapshotHistoryResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _108.QueryPriceSnapshotHistoryResponse; + fromPartial(object: any): _108.QueryPriceSnapshotHistoryResponse; }; QueryTwapsRequest: { - encode(message: _162.QueryTwapsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _162.QueryTwapsRequest; - fromPartial(object: any): _162.QueryTwapsRequest; + encode(message: _108.QueryTwapsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _108.QueryTwapsRequest; + fromPartial(object: any): _108.QueryTwapsRequest; }; QueryTwapsResponse: { - encode(message: _162.QueryTwapsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _162.QueryTwapsResponse; - fromPartial(object: any): _162.QueryTwapsResponse; + encode(message: _108.QueryTwapsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _108.QueryTwapsResponse; + fromPartial(object: any): _108.QueryTwapsResponse; }; QueryFeederDelegationRequest: { - encode(message: _162.QueryFeederDelegationRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _162.QueryFeederDelegationRequest; - fromPartial(object: any): _162.QueryFeederDelegationRequest; + encode(message: _108.QueryFeederDelegationRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _108.QueryFeederDelegationRequest; + fromPartial(object: any): _108.QueryFeederDelegationRequest; }; QueryFeederDelegationResponse: { - encode(message: _162.QueryFeederDelegationResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _162.QueryFeederDelegationResponse; - fromPartial(object: any): _162.QueryFeederDelegationResponse; + encode(message: _108.QueryFeederDelegationResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _108.QueryFeederDelegationResponse; + fromPartial(object: any): _108.QueryFeederDelegationResponse; }; QueryVotePenaltyCounterRequest: { - encode(message: _162.QueryVotePenaltyCounterRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _162.QueryVotePenaltyCounterRequest; - fromPartial(object: any): _162.QueryVotePenaltyCounterRequest; + encode(message: _108.QueryVotePenaltyCounterRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _108.QueryVotePenaltyCounterRequest; + fromPartial(object: any): _108.QueryVotePenaltyCounterRequest; }; QueryVotePenaltyCounterResponse: { - encode(message: _162.QueryVotePenaltyCounterResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _162.QueryVotePenaltyCounterResponse; - fromPartial(object: any): _162.QueryVotePenaltyCounterResponse; + encode(message: _108.QueryVotePenaltyCounterResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _108.QueryVotePenaltyCounterResponse; + fromPartial(object: any): _108.QueryVotePenaltyCounterResponse; }; QuerySlashWindowRequest: { - encode(_: _162.QuerySlashWindowRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _162.QuerySlashWindowRequest; - fromPartial(_: any): _162.QuerySlashWindowRequest; + encode(_: _108.QuerySlashWindowRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _108.QuerySlashWindowRequest; + fromPartial(_: any): _108.QuerySlashWindowRequest; }; QuerySlashWindowResponse: { - encode(message: _162.QuerySlashWindowResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _162.QuerySlashWindowResponse; - fromPartial(object: any): _162.QuerySlashWindowResponse; + encode(message: _108.QuerySlashWindowResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _108.QuerySlashWindowResponse; + fromPartial(object: any): _108.QuerySlashWindowResponse; }; QueryParamsRequest: { - encode(_: _162.QueryParamsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _162.QueryParamsRequest; - fromPartial(_: any): _162.QueryParamsRequest; + encode(_: _108.QueryParamsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _108.QueryParamsRequest; + fromPartial(_: any): _108.QueryParamsRequest; }; QueryParamsResponse: { - encode(message: _162.QueryParamsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _162.QueryParamsResponse; - fromPartial(object: any): _162.QueryParamsResponse; + encode(message: _108.QueryParamsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _108.QueryParamsResponse; + fromPartial(object: any): _108.QueryParamsResponse; }; Params: { - encode(message: _161.Params, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _161.Params; - fromPartial(object: any): _161.Params; + encode(message: _107.Params, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _107.Params; + fromPartial(object: any): _107.Params; }; Denom: { - encode(message: _161.Denom, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _161.Denom; - fromPartial(object: any): _161.Denom; + encode(message: _107.Denom, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _107.Denom; + fromPartial(object: any): _107.Denom; }; AggregateExchangeRateVote: { - encode(message: _161.AggregateExchangeRateVote, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _161.AggregateExchangeRateVote; - fromPartial(object: any): _161.AggregateExchangeRateVote; + encode(message: _107.AggregateExchangeRateVote, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _107.AggregateExchangeRateVote; + fromPartial(object: any): _107.AggregateExchangeRateVote; }; ExchangeRateTuple: { - encode(message: _161.ExchangeRateTuple, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _161.ExchangeRateTuple; - fromPartial(object: any): _161.ExchangeRateTuple; + encode(message: _107.ExchangeRateTuple, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _107.ExchangeRateTuple; + fromPartial(object: any): _107.ExchangeRateTuple; }; OracleExchangeRate: { - encode(message: _161.OracleExchangeRate, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _161.OracleExchangeRate; - fromPartial(object: any): _161.OracleExchangeRate; + encode(message: _107.OracleExchangeRate, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _107.OracleExchangeRate; + fromPartial(object: any): _107.OracleExchangeRate; }; PriceSnapshotItem: { - encode(message: _161.PriceSnapshotItem, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _161.PriceSnapshotItem; - fromPartial(object: any): _161.PriceSnapshotItem; + encode(message: _107.PriceSnapshotItem, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _107.PriceSnapshotItem; + fromPartial(object: any): _107.PriceSnapshotItem; }; PriceSnapshot: { - encode(message: _161.PriceSnapshot, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _161.PriceSnapshot; - fromPartial(object: any): _161.PriceSnapshot; + encode(message: _107.PriceSnapshot, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _107.PriceSnapshot; + fromPartial(object: any): _107.PriceSnapshot; }; OracleTwap: { - encode(message: _161.OracleTwap, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _161.OracleTwap; - fromPartial(object: any): _161.OracleTwap; + encode(message: _107.OracleTwap, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _107.OracleTwap; + fromPartial(object: any): _107.OracleTwap; }; VotePenaltyCounter: { - encode(message: _161.VotePenaltyCounter, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _161.VotePenaltyCounter; - fromPartial(object: any): _161.VotePenaltyCounter; + encode(message: _107.VotePenaltyCounter, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _107.VotePenaltyCounter; + fromPartial(object: any): _107.VotePenaltyCounter; }; GenesisState: { - encode(message: _160.GenesisState, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _160.GenesisState; - fromPartial(object: any): _160.GenesisState; + encode(message: _106.GenesisState, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _106.GenesisState; + fromPartial(object: any): _106.GenesisState; }; FeederDelegation: { - encode(message: _160.FeederDelegation, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _160.FeederDelegation; - fromPartial(object: any): _160.FeederDelegation; + encode(message: _106.FeederDelegation, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _106.FeederDelegation; + fromPartial(object: any): _106.FeederDelegation; }; PenaltyCounter: { - encode(message: _160.PenaltyCounter, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _160.PenaltyCounter; - fromPartial(object: any): _160.PenaltyCounter; + encode(message: _106.PenaltyCounter, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _106.PenaltyCounter; + fromPartial(object: any): _106.PenaltyCounter; }; }; const tokenfactory: { - LCDQueryClient: typeof _250.LCDQueryClient; + MsgClientImpl: typeof _203.MsgClientImpl; + QueryClientImpl: typeof _200.QueryClientImpl; + createRpcQueryExtension: (base: import("@cosmjs/stargate").QueryClient) => { + params(request?: _113.QueryParamsRequest): Promise<_113.QueryParamsResponse>; + denomAuthorityMetadata(request: _113.QueryDenomAuthorityMetadataRequest): Promise<_113.QueryDenomAuthorityMetadataResponse>; + denomsFromCreator(request: _113.QueryDenomsFromCreatorRequest): Promise<_113.QueryDenomsFromCreatorResponse>; + }; + LCDQueryClient: typeof _195.LCDQueryClient; registry: readonly [string, import("@cosmjs/proto-signing").GeneratedType][]; load: (protoRegistry: import("@cosmjs/proto-signing").Registry) => void; MessageComposer: { encoded: { - createDenom(value: _168.MsgCreateDenom): { + createDenom(value: _114.MsgCreateDenom): { typeUrl: string; value: Uint8Array; }; - mint(value: _168.MsgMint): { + mint(value: _114.MsgMint): { typeUrl: string; value: Uint8Array; }; - burn(value: _168.MsgBurn): { + burn(value: _114.MsgBurn): { typeUrl: string; value: Uint8Array; }; - changeAdmin(value: _168.MsgChangeAdmin): { + changeAdmin(value: _114.MsgChangeAdmin): { typeUrl: string; value: Uint8Array; }; }; withTypeUrl: { - createDenom(value: _168.MsgCreateDenom): { + createDenom(value: _114.MsgCreateDenom): { typeUrl: string; - value: _168.MsgCreateDenom; + value: _114.MsgCreateDenom; }; - mint(value: _168.MsgMint): { + mint(value: _114.MsgMint): { typeUrl: string; - value: _168.MsgMint; + value: _114.MsgMint; }; - burn(value: _168.MsgBurn): { + burn(value: _114.MsgBurn): { typeUrl: string; - value: _168.MsgBurn; + value: _114.MsgBurn; }; - changeAdmin(value: _168.MsgChangeAdmin): { + changeAdmin(value: _114.MsgChangeAdmin): { typeUrl: string; - value: _168.MsgChangeAdmin; + value: _114.MsgChangeAdmin; }; }; fromPartial: { - createDenom(value: _168.MsgCreateDenom): { + createDenom(value: _114.MsgCreateDenom): { typeUrl: string; - value: _168.MsgCreateDenom; + value: _114.MsgCreateDenom; }; - mint(value: _168.MsgMint): { + mint(value: _114.MsgMint): { typeUrl: string; - value: _168.MsgMint; + value: _114.MsgMint; }; - burn(value: _168.MsgBurn): { + burn(value: _114.MsgBurn): { typeUrl: string; - value: _168.MsgBurn; + value: _114.MsgBurn; }; - changeAdmin(value: _168.MsgChangeAdmin): { + changeAdmin(value: _114.MsgChangeAdmin): { typeUrl: string; - value: _168.MsgChangeAdmin; + value: _114.MsgChangeAdmin; }; }; }; AminoConverter: { "/seiprotocol.seichain.tokenfactory.MsgCreateDenom": { aminoType: string; - toAmino: ({ sender, subdenom }: _168.MsgCreateDenom) => { + toAmino: ({ sender, subdenom }: _114.MsgCreateDenom) => { sender: string; subdenom: string; }; fromAmino: ({ sender, subdenom }: { sender: string; subdenom: string; - }) => _168.MsgCreateDenom; + }) => _114.MsgCreateDenom; }; "/seiprotocol.seichain.tokenfactory.MsgMint": { aminoType: string; - toAmino: ({ sender, amount }: _168.MsgMint) => { + toAmino: ({ sender, amount }: _114.MsgMint) => { sender: string; amount: { denom: string; @@ -1294,11 +1357,11 @@ export declare namespace seiprotocol { denom: string; amount: string; }; - }) => _168.MsgMint; + }) => _114.MsgMint; }; "/seiprotocol.seichain.tokenfactory.MsgBurn": { aminoType: string; - toAmino: ({ sender, amount }: _168.MsgBurn) => { + toAmino: ({ sender, amount }: _114.MsgBurn) => { sender: string; amount: { denom: string; @@ -1311,11 +1374,11 @@ export declare namespace seiprotocol { denom: string; amount: string; }; - }) => _168.MsgBurn; + }) => _114.MsgBurn; }; "/seiprotocol.seichain.tokenfactory.MsgChangeAdmin": { aminoType: string; - toAmino: ({ sender, denom, newAdmin }: _168.MsgChangeAdmin) => { + toAmino: ({ sender, denom, newAdmin }: _114.MsgChangeAdmin) => { sender: string; denom: string; new_admin: string; @@ -1324,147 +1387,300 @@ export declare namespace seiprotocol { sender: string; denom: string; new_admin: string; - }) => _168.MsgChangeAdmin; + }) => _114.MsgChangeAdmin; }; }; MsgCreateDenom: { - encode(message: _168.MsgCreateDenom, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _168.MsgCreateDenom; - fromPartial(object: any): _168.MsgCreateDenom; + encode(message: _114.MsgCreateDenom, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _114.MsgCreateDenom; + fromPartial(object: any): _114.MsgCreateDenom; }; MsgCreateDenomResponse: { - encode(message: _168.MsgCreateDenomResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _168.MsgCreateDenomResponse; - fromPartial(object: any): _168.MsgCreateDenomResponse; + encode(message: _114.MsgCreateDenomResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _114.MsgCreateDenomResponse; + fromPartial(object: any): _114.MsgCreateDenomResponse; }; MsgMint: { - encode(message: _168.MsgMint, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _168.MsgMint; - fromPartial(object: any): _168.MsgMint; + encode(message: _114.MsgMint, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _114.MsgMint; + fromPartial(object: any): _114.MsgMint; }; MsgMintResponse: { - encode(_: _168.MsgMintResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _168.MsgMintResponse; - fromPartial(_: any): _168.MsgMintResponse; + encode(_: _114.MsgMintResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _114.MsgMintResponse; + fromPartial(_: any): _114.MsgMintResponse; }; MsgBurn: { - encode(message: _168.MsgBurn, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _168.MsgBurn; - fromPartial(object: any): _168.MsgBurn; + encode(message: _114.MsgBurn, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _114.MsgBurn; + fromPartial(object: any): _114.MsgBurn; }; MsgBurnResponse: { - encode(_: _168.MsgBurnResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _168.MsgBurnResponse; - fromPartial(_: any): _168.MsgBurnResponse; + encode(_: _114.MsgBurnResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _114.MsgBurnResponse; + fromPartial(_: any): _114.MsgBurnResponse; }; MsgChangeAdmin: { - encode(message: _168.MsgChangeAdmin, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _168.MsgChangeAdmin; - fromPartial(object: any): _168.MsgChangeAdmin; + encode(message: _114.MsgChangeAdmin, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _114.MsgChangeAdmin; + fromPartial(object: any): _114.MsgChangeAdmin; }; MsgChangeAdminResponse: { - encode(_: _168.MsgChangeAdminResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _168.MsgChangeAdminResponse; - fromPartial(_: any): _168.MsgChangeAdminResponse; + encode(_: _114.MsgChangeAdminResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _114.MsgChangeAdminResponse; + fromPartial(_: any): _114.MsgChangeAdminResponse; }; QueryParamsRequest: { - encode(_: _167.QueryParamsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _167.QueryParamsRequest; - fromPartial(_: any): _167.QueryParamsRequest; + encode(_: _113.QueryParamsRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _113.QueryParamsRequest; + fromPartial(_: any): _113.QueryParamsRequest; }; QueryParamsResponse: { - encode(message: _167.QueryParamsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _167.QueryParamsResponse; - fromPartial(object: any): _167.QueryParamsResponse; + encode(message: _113.QueryParamsResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _113.QueryParamsResponse; + fromPartial(object: any): _113.QueryParamsResponse; }; QueryDenomAuthorityMetadataRequest: { - encode(message: _167.QueryDenomAuthorityMetadataRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _167.QueryDenomAuthorityMetadataRequest; - fromPartial(object: any): _167.QueryDenomAuthorityMetadataRequest; + encode(message: _113.QueryDenomAuthorityMetadataRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _113.QueryDenomAuthorityMetadataRequest; + fromPartial(object: any): _113.QueryDenomAuthorityMetadataRequest; }; QueryDenomAuthorityMetadataResponse: { - encode(message: _167.QueryDenomAuthorityMetadataResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _167.QueryDenomAuthorityMetadataResponse; - fromPartial(object: any): _167.QueryDenomAuthorityMetadataResponse; + encode(message: _113.QueryDenomAuthorityMetadataResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _113.QueryDenomAuthorityMetadataResponse; + fromPartial(object: any): _113.QueryDenomAuthorityMetadataResponse; }; QueryDenomsFromCreatorRequest: { - encode(message: _167.QueryDenomsFromCreatorRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _167.QueryDenomsFromCreatorRequest; - fromPartial(object: any): _167.QueryDenomsFromCreatorRequest; + encode(message: _113.QueryDenomsFromCreatorRequest, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _113.QueryDenomsFromCreatorRequest; + fromPartial(object: any): _113.QueryDenomsFromCreatorRequest; }; QueryDenomsFromCreatorResponse: { - encode(message: _167.QueryDenomsFromCreatorResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _167.QueryDenomsFromCreatorResponse; - fromPartial(object: any): _167.QueryDenomsFromCreatorResponse; + encode(message: _113.QueryDenomsFromCreatorResponse, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _113.QueryDenomsFromCreatorResponse; + fromPartial(object: any): _113.QueryDenomsFromCreatorResponse; }; Params: { - encode(_: _166.Params, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _166.Params; - fromPartial(_: any): _166.Params; + encode(_: _112.Params, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _112.Params; + fromPartial(_: any): _112.Params; }; GenesisState: { - encode(message: _165.GenesisState, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _165.GenesisState; - fromPartial(object: any): _165.GenesisState; + encode(message: _111.GenesisState, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _111.GenesisState; + fromPartial(object: any): _111.GenesisState; }; GenesisDenom: { - encode(message: _165.GenesisDenom, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _165.GenesisDenom; - fromPartial(object: any): _165.GenesisDenom; + encode(message: _111.GenesisDenom, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _111.GenesisDenom; + fromPartial(object: any): _111.GenesisDenom; }; DenomAuthorityMetadata: { - encode(message: _164.DenomAuthorityMetadata, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _164.DenomAuthorityMetadata; - fromPartial(object: any): _164.DenomAuthorityMetadata; + encode(message: _110.DenomAuthorityMetadata, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _110.DenomAuthorityMetadata; + fromPartial(object: any): _110.DenomAuthorityMetadata; }; }; } const ClientFactory: { - createLCDClient: ({ restEndpoint }: { - restEndpoint: string; + createRPCMsgClient: ({ rpc }: { + rpc: import("../helpers").Rpc; + }) => Promise<{ + cosmos: { + authz: { + v1beta1: import("../cosmos/authz/v1beta1/tx.rpc.msg").MsgClientImpl; + }; + bank: { + v1beta1: import("../cosmos/bank/v1beta1/tx.rpc.msg").MsgClientImpl; + }; + distribution: { + v1beta1: import("../cosmos/distribution/v1beta1/tx.rpc.msg").MsgClientImpl; + }; + gov: { + v1beta1: import("../cosmos/gov/v1beta1/tx.rpc.msg").MsgClientImpl; + }; + staking: { + v1beta1: import("../cosmos/staking/v1beta1/tx.rpc.msg").MsgClientImpl; + }; + upgrade: { + v1beta1: import("../cosmos/upgrade/v1beta1/tx.rpc.msg").MsgClientImpl; + }; + }; + seiprotocol: { + seichain: { + dex: _201.MsgClientImpl; + oracle: _202.MsgClientImpl; + tokenfactory: _203.MsgClientImpl; + }; + }; + }>; + createRPCQueryClient: ({ rpcEndpoint }: { + rpcEndpoint: string | import("@cosmjs/tendermint-rpc").HttpEndpoint; }) => Promise<{ cosmos: { auth: { - v1beta1: import("../cosmos/auth/v1beta1/query.lcd").LCDQueryClient; + v1beta1: { + accounts(request?: import("../cosmos/auth/v1beta1/query").QueryAccountsRequest): Promise; + account(request: import("../cosmos/auth/v1beta1/query").QueryAccountRequest): Promise; + params(request?: import("../cosmos/auth/v1beta1/query").QueryParamsRequest): Promise; + moduleAccounts(request?: import("../cosmos/auth/v1beta1/query").QueryModuleAccountsRequest): Promise; + bech32Prefix(request?: import("../cosmos/auth/v1beta1/query").Bech32PrefixRequest): Promise; + addressBytesToString(request: import("../cosmos/auth/v1beta1/query").AddressBytesToStringRequest): Promise; + addressStringToBytes(request: import("../cosmos/auth/v1beta1/query").AddressStringToBytesRequest): Promise; + }; }; authz: { - v1beta1: import("../cosmos/authz/v1beta1/query.lcd").LCDQueryClient; + v1beta1: { + grants(request: import("../cosmos/authz/v1beta1/query").QueryGrantsRequest): Promise; + granterGrants(request: import("../cosmos/authz/v1beta1/query").QueryGranterGrantsRequest): Promise; + granteeGrants(request: import("../cosmos/authz/v1beta1/query").QueryGranteeGrantsRequest): Promise; + }; }; bank: { - v1beta1: import("../cosmos/bank/v1beta1/query.lcd").LCDQueryClient; - }; - base: { - tendermint: { - v1beta1: import("../cosmos/base/tendermint/v1beta1/query.lcd").LCDQueryClient; + v1beta1: { + balance(request: import("../cosmos/bank/v1beta1/query").QueryBalanceRequest): Promise; + allBalances(request: import("../cosmos/bank/v1beta1/query").QueryAllBalancesRequest): Promise; + spendableBalances(request: import("../cosmos/bank/v1beta1/query").QuerySpendableBalancesRequest): Promise; + totalSupply(request?: import("../cosmos/bank/v1beta1/query").QueryTotalSupplyRequest): Promise; + supplyOf(request: import("../cosmos/bank/v1beta1/query").QuerySupplyOfRequest): Promise; + params(request?: import("../cosmos/bank/v1beta1/query").QueryParamsRequest): Promise; + denomMetadata(request: import("../cosmos/bank/v1beta1/query").QueryDenomMetadataRequest): Promise; + denomsMetadata(request?: import("../cosmos/bank/v1beta1/query").QueryDenomsMetadataRequest): Promise; + denomOwners(request: import("../cosmos/bank/v1beta1/query").QueryDenomOwnersRequest): Promise; }; }; distribution: { - v1beta1: import("../cosmos/distribution/v1beta1/query.lcd").LCDQueryClient; + v1beta1: { + params(request?: import("../cosmos/distribution/v1beta1/query").QueryParamsRequest): Promise; + validatorOutstandingRewards(request: import("../cosmos/distribution/v1beta1/query").QueryValidatorOutstandingRewardsRequest): Promise; + validatorCommission(request: import("../cosmos/distribution/v1beta1/query").QueryValidatorCommissionRequest): Promise; + validatorSlashes(request: import("../cosmos/distribution/v1beta1/query").QueryValidatorSlashesRequest): Promise; + delegationRewards(request: import("../cosmos/distribution/v1beta1/query").QueryDelegationRewardsRequest): Promise; + delegationTotalRewards(request: import("../cosmos/distribution/v1beta1/query").QueryDelegationTotalRewardsRequest): Promise; + delegatorValidators(request: import("../cosmos/distribution/v1beta1/query").QueryDelegatorValidatorsRequest): Promise; + delegatorWithdrawAddress(request: import("../cosmos/distribution/v1beta1/query").QueryDelegatorWithdrawAddressRequest): Promise; + communityPool(request?: import("../cosmos/distribution/v1beta1/query").QueryCommunityPoolRequest): Promise; + }; + }; + gov: { + v1beta1: { + proposal(request: import("../cosmos/gov/v1beta1/query").QueryProposalRequest): Promise; + proposals(request: import("../cosmos/gov/v1beta1/query").QueryProposalsRequest): Promise; + vote(request: import("../cosmos/gov/v1beta1/query").QueryVoteRequest): Promise; + votes(request: import("../cosmos/gov/v1beta1/query").QueryVotesRequest): Promise; + params(request: import("../cosmos/gov/v1beta1/query").QueryParamsRequest): Promise; + deposit(request: import("../cosmos/gov/v1beta1/query").QueryDepositRequest): Promise; + deposits(request: import("../cosmos/gov/v1beta1/query").QueryDepositsRequest): Promise; + tallyResult(request: import("../cosmos/gov/v1beta1/query").QueryTallyResultRequest): Promise; + }; }; - evidence: { - v1beta1: import("../cosmos/evidence/v1beta1/query.lcd").LCDQueryClient; + staking: { + v1beta1: { + validators(request: import("../cosmos/staking/v1beta1/query").QueryValidatorsRequest): Promise; + validator(request: import("../cosmos/staking/v1beta1/query").QueryValidatorRequest): Promise; + validatorDelegations(request: import("../cosmos/staking/v1beta1/query").QueryValidatorDelegationsRequest): Promise; + validatorUnbondingDelegations(request: import("../cosmos/staking/v1beta1/query").QueryValidatorUnbondingDelegationsRequest): Promise; + delegation(request: import("../cosmos/staking/v1beta1/query").QueryDelegationRequest): Promise; + unbondingDelegation(request: import("../cosmos/staking/v1beta1/query").QueryUnbondingDelegationRequest): Promise; + delegatorDelegations(request: import("../cosmos/staking/v1beta1/query").QueryDelegatorDelegationsRequest): Promise; + delegatorUnbondingDelegations(request: import("../cosmos/staking/v1beta1/query").QueryDelegatorUnbondingDelegationsRequest): Promise; + redelegations(request: import("../cosmos/staking/v1beta1/query").QueryRedelegationsRequest): Promise; + delegatorValidators(request: import("../cosmos/staking/v1beta1/query").QueryDelegatorValidatorsRequest): Promise; + delegatorValidator(request: import("../cosmos/staking/v1beta1/query").QueryDelegatorValidatorRequest): Promise; + historicalInfo(request: import("../cosmos/staking/v1beta1/query").QueryHistoricalInfoRequest): Promise; + pool(request?: import("../cosmos/staking/v1beta1/query").QueryPoolRequest): Promise; + params(request?: import("../cosmos/staking/v1beta1/query").QueryParamsRequest): Promise; + }; }; - feegrant: { - v1beta1: import("../cosmos/feegrant/v1beta1/query.lcd").LCDQueryClient; + tx: { + v1beta1: { + simulate(request: import("../cosmos/tx/v1beta1/service").SimulateRequest): Promise; + getTx(request: import("../cosmos/tx/v1beta1/service").GetTxRequest): Promise; + broadcastTx(request: import("../cosmos/tx/v1beta1/service").BroadcastTxRequest): Promise; + getTxsEvent(request: import("../cosmos/tx/v1beta1/service").GetTxsEventRequest): Promise; + getBlockWithTxs(request: import("../cosmos/tx/v1beta1/service").GetBlockWithTxsRequest): Promise; + }; }; - gov: { - v1: import("../cosmos/gov/v1/query.lcd").LCDQueryClient; - v1beta1: import("../cosmos/gov/v1beta1/query.lcd").LCDQueryClient; + upgrade: { + v1beta1: { + currentPlan(request?: import("../cosmos/upgrade/v1beta1/query").QueryCurrentPlanRequest): Promise; + appliedPlan(request: import("../cosmos/upgrade/v1beta1/query").QueryAppliedPlanRequest): Promise; + upgradedConsensusState(request: import("../cosmos/upgrade/v1beta1/query").QueryUpgradedConsensusStateRequest): Promise; + moduleVersions(request: import("../cosmos/upgrade/v1beta1/query").QueryModuleVersionsRequest): Promise; + authority(request?: import("../cosmos/upgrade/v1beta1/query").QueryAuthorityRequest): Promise; + }; + }; + }; + seiprotocol: { + seichain: { + dex: { + params(request?: _91.QueryParamsRequest): Promise<_91.QueryParamsResponse>; + longBook(request: _91.QueryGetLongBookRequest): Promise<_91.QueryGetLongBookResponse>; + longBookAll(request: _91.QueryAllLongBookRequest): Promise<_91.QueryAllLongBookResponse>; + shortBook(request: _91.QueryGetShortBookRequest): Promise<_91.QueryGetShortBookResponse>; + shortBookAll(request: _91.QueryAllShortBookRequest): Promise<_91.QueryAllShortBookResponse>; + getPrice(request: _91.QueryGetPriceRequest): Promise<_91.QueryGetPriceResponse>; + getLatestPrice(request: _91.QueryGetLatestPriceRequest): Promise<_91.QueryGetLatestPriceResponse>; + getPrices(request: _91.QueryGetPricesRequest): Promise<_91.QueryGetPricesResponse>; + getTwaps(request: _91.QueryGetTwapsRequest): Promise<_91.QueryGetTwapsResponse>; + assetMetadata(request: _91.QueryAssetMetadataRequest): Promise<_91.QueryAssetMetadataResponse>; + assetList(request?: _91.QueryAssetListRequest): Promise<_91.QueryAssetListResponse>; + getRegisteredPairs(request: _91.QueryRegisteredPairsRequest): Promise<_91.QueryRegisteredPairsResponse>; + getRegisteredContract(request: _91.QueryRegisteredContractRequest): Promise<_91.QueryRegisteredContractResponse>; + getOrders(request: _91.QueryGetOrdersRequest): Promise<_91.QueryGetOrdersResponse>; + getOrder(request: _91.QueryGetOrderByIDRequest): Promise<_91.QueryGetOrderByIDResponse>; + getHistoricalPrices(request: _91.QueryGetHistoricalPricesRequest): Promise<_91.QueryGetHistoricalPricesResponse>; + getMarketSummary(request: _91.QueryGetMarketSummaryRequest): Promise<_91.QueryGetMarketSummaryResponse>; + getOrderSimulation(request: _91.QueryOrderSimulationRequest): Promise<_91.QueryOrderSimulationResponse>; + getMatchResult(request: _91.QueryGetMatchResultRequest): Promise<_91.QueryGetMatchResultResponse>; + getOrderCount(request: _91.QueryGetOrderCountRequest): Promise<_91.QueryGetOrderCountResponse>; + }; + epoch: { + epoch(request?: _100.QueryEpochRequest): Promise<_100.QueryEpochResponse>; + params(request?: _100.QueryParamsRequest): Promise<_100.QueryParamsResponse>; + }; + mint: { + params(request?: _105.QueryParamsRequest): Promise<_105.QueryParamsResponse>; + minter(request?: _105.QueryMinterRequest): Promise<_105.QueryMinterResponse>; + }; + oracle: { + exchangeRate(request: _108.QueryExchangeRateRequest): Promise<_108.QueryExchangeRateResponse>; + exchangeRates(request?: _108.QueryExchangeRatesRequest): Promise<_108.QueryExchangeRatesResponse>; + actives(request?: _108.QueryActivesRequest): Promise<_108.QueryActivesResponse>; + voteTargets(request?: _108.QueryVoteTargetsRequest): Promise<_108.QueryVoteTargetsResponse>; + priceSnapshotHistory(request?: _108.QueryPriceSnapshotHistoryRequest): Promise<_108.QueryPriceSnapshotHistoryResponse>; + twaps(request: _108.QueryTwapsRequest): Promise<_108.QueryTwapsResponse>; + feederDelegation(request: _108.QueryFeederDelegationRequest): Promise<_108.QueryFeederDelegationResponse>; + votePenaltyCounter(request: _108.QueryVotePenaltyCounterRequest): Promise<_108.QueryVotePenaltyCounterResponse>; + slashWindow(request?: _108.QuerySlashWindowRequest): Promise<_108.QuerySlashWindowResponse>; + params(request?: _108.QueryParamsRequest): Promise<_108.QueryParamsResponse>; + }; + tokenfactory: { + params(request?: _113.QueryParamsRequest): Promise<_113.QueryParamsResponse>; + denomAuthorityMetadata(request: _113.QueryDenomAuthorityMetadataRequest): Promise<_113.QueryDenomAuthorityMetadataResponse>; + denomsFromCreator(request: _113.QueryDenomsFromCreatorRequest): Promise<_113.QueryDenomsFromCreatorResponse>; + }; }; - group: { - v1: import("../cosmos/group/v1/query.lcd").LCDQueryClient; + }; + }>; + createLCDClient: ({ restEndpoint }: { + restEndpoint: string; + }) => Promise<{ + cosmos: { + auth: { + v1beta1: import("../cosmos/auth/v1beta1/query.lcd").LCDQueryClient; }; - mint: { - v1beta1: import("../cosmos/mint/v1beta1/query.lcd").LCDQueryClient; + authz: { + v1beta1: import("../cosmos/authz/v1beta1/query.lcd").LCDQueryClient; }; - nft: { - v1beta1: import("../cosmos/nft/v1beta1/query.lcd").LCDQueryClient; + bank: { + v1beta1: import("../cosmos/bank/v1beta1/query.lcd").LCDQueryClient; }; - params: { - v1beta1: import("../cosmos/params/v1beta1/query.lcd").LCDQueryClient; + distribution: { + v1beta1: import("../cosmos/distribution/v1beta1/query.lcd").LCDQueryClient; }; - slashing: { - v1beta1: import("../cosmos/slashing/v1beta1/query.lcd").LCDQueryClient; + gov: { + v1beta1: import("../cosmos/gov/v1beta1/query.lcd").LCDQueryClient; }; staking: { v1beta1: import("../cosmos/staking/v1beta1/query.lcd").LCDQueryClient; @@ -1478,11 +1694,11 @@ export declare namespace seiprotocol { }; seiprotocol: { seichain: { - dex: _246.LCDQueryClient; - epoch: _247.LCDQueryClient; - mint: _248.LCDQueryClient; - oracle: _249.LCDQueryClient; - tokenfactory: _250.LCDQueryClient; + dex: _191.LCDQueryClient; + epoch: _192.LCDQueryClient; + mint: _193.LCDQueryClient; + oracle: _194.LCDQueryClient; + tokenfactory: _195.LCDQueryClient; }; }; }>; diff --git a/packages/proto/types/codegen/seiprotocol/lcd.d.ts b/packages/proto/types/codegen/seiprotocol/lcd.d.ts index fbf23b8e..df9770a6 100644 --- a/packages/proto/types/codegen/seiprotocol/lcd.d.ts +++ b/packages/proto/types/codegen/seiprotocol/lcd.d.ts @@ -11,39 +11,12 @@ export declare const createLCDClient: ({ restEndpoint }: { bank: { v1beta1: import("../cosmos/bank/v1beta1/query.lcd").LCDQueryClient; }; - base: { - tendermint: { - v1beta1: import("../cosmos/base/tendermint/v1beta1/query.lcd").LCDQueryClient; - }; - }; distribution: { v1beta1: import("../cosmos/distribution/v1beta1/query.lcd").LCDQueryClient; }; - evidence: { - v1beta1: import("../cosmos/evidence/v1beta1/query.lcd").LCDQueryClient; - }; - feegrant: { - v1beta1: import("../cosmos/feegrant/v1beta1/query.lcd").LCDQueryClient; - }; gov: { - v1: import("../cosmos/gov/v1/query.lcd").LCDQueryClient; v1beta1: import("../cosmos/gov/v1beta1/query.lcd").LCDQueryClient; }; - group: { - v1: import("../cosmos/group/v1/query.lcd").LCDQueryClient; - }; - mint: { - v1beta1: import("../cosmos/mint/v1beta1/query.lcd").LCDQueryClient; - }; - nft: { - v1beta1: import("../cosmos/nft/v1beta1/query.lcd").LCDQueryClient; - }; - params: { - v1beta1: import("../cosmos/params/v1beta1/query.lcd").LCDQueryClient; - }; - slashing: { - v1beta1: import("../cosmos/slashing/v1beta1/query.lcd").LCDQueryClient; - }; staking: { v1beta1: import("../cosmos/staking/v1beta1/query.lcd").LCDQueryClient; }; diff --git a/packages/proto/types/codegen/seiprotocol/rpc.query.d.ts b/packages/proto/types/codegen/seiprotocol/rpc.query.d.ts index 49b48cb4..040784e7 100644 --- a/packages/proto/types/codegen/seiprotocol/rpc.query.d.ts +++ b/packages/proto/types/codegen/seiprotocol/rpc.query.d.ts @@ -1,12 +1,8 @@ +import { HttpEndpoint } from "@cosmjs/tendermint-rpc"; export declare const createRPCQueryClient: ({ rpcEndpoint }: { - rpcEndpoint: string; + rpcEndpoint: string | HttpEndpoint; }) => Promise<{ cosmos: { - app: { - v1alpha1: { - config(request?: import("../cosmos/app/v1alpha1/query").QueryConfigRequest): Promise; - }; - }; auth: { v1beta1: { accounts(request?: import("../cosmos/auth/v1beta1/query").QueryAccountsRequest): Promise; @@ -38,18 +34,6 @@ export declare const createRPCQueryClient: ({ rpcEndpoint }: { denomOwners(request: import("../cosmos/bank/v1beta1/query").QueryDenomOwnersRequest): Promise; }; }; - base: { - tendermint: { - v1beta1: { - getNodeInfo(request?: import("../cosmos/base/tendermint/v1beta1/query").GetNodeInfoRequest): Promise; - getSyncing(request?: import("../cosmos/base/tendermint/v1beta1/query").GetSyncingRequest): Promise; - getLatestBlock(request?: import("../cosmos/base/tendermint/v1beta1/query").GetLatestBlockRequest): Promise; - getBlockByHeight(request: import("../cosmos/base/tendermint/v1beta1/query").GetBlockByHeightRequest): Promise; - getLatestValidatorSet(request?: import("../cosmos/base/tendermint/v1beta1/query").GetLatestValidatorSetRequest): Promise; - getValidatorSetByHeight(request: import("../cosmos/base/tendermint/v1beta1/query").GetValidatorSetByHeightRequest): Promise; - }; - }; - }; distribution: { v1beta1: { params(request?: import("../cosmos/distribution/v1beta1/query").QueryParamsRequest): Promise; @@ -63,30 +47,7 @@ export declare const createRPCQueryClient: ({ rpcEndpoint }: { communityPool(request?: import("../cosmos/distribution/v1beta1/query").QueryCommunityPoolRequest): Promise; }; }; - evidence: { - v1beta1: { - evidence(request: import("../cosmos/evidence/v1beta1/query").QueryEvidenceRequest): Promise; - allEvidence(request?: import("../cosmos/evidence/v1beta1/query").QueryAllEvidenceRequest): Promise; - }; - }; - feegrant: { - v1beta1: { - allowance(request: import("../cosmos/feegrant/v1beta1/query").QueryAllowanceRequest): Promise; - allowances(request: import("../cosmos/feegrant/v1beta1/query").QueryAllowancesRequest): Promise; - allowancesByGranter(request: import("../cosmos/feegrant/v1beta1/query").QueryAllowancesByGranterRequest): Promise; - }; - }; gov: { - v1: { - proposal(request: import("../cosmos/gov/v1/query").QueryProposalRequest): Promise; - proposals(request: import("../cosmos/gov/v1/query").QueryProposalsRequest): Promise; - vote(request: import("../cosmos/gov/v1/query").QueryVoteRequest): Promise; - votes(request: import("../cosmos/gov/v1/query").QueryVotesRequest): Promise; - params(request: import("../cosmos/gov/v1/query").QueryParamsRequest): Promise; - deposit(request: import("../cosmos/gov/v1/query").QueryDepositRequest): Promise; - deposits(request: import("../cosmos/gov/v1/query").QueryDepositsRequest): Promise; - tallyResult(request: import("../cosmos/gov/v1/query").QueryTallyResultRequest): Promise; - }; v1beta1: { proposal(request: import("../cosmos/gov/v1beta1/query").QueryProposalRequest): Promise; proposals(request: import("../cosmos/gov/v1beta1/query").QueryProposalsRequest): Promise; @@ -98,54 +59,6 @@ export declare const createRPCQueryClient: ({ rpcEndpoint }: { tallyResult(request: import("../cosmos/gov/v1beta1/query").QueryTallyResultRequest): Promise; }; }; - group: { - v1: { - groupInfo(request: import("../cosmos/group/v1/query").QueryGroupInfoRequest): Promise; - groupPolicyInfo(request: import("../cosmos/group/v1/query").QueryGroupPolicyInfoRequest): Promise; - groupMembers(request: import("../cosmos/group/v1/query").QueryGroupMembersRequest): Promise; - groupsByAdmin(request: import("../cosmos/group/v1/query").QueryGroupsByAdminRequest): Promise; - groupPoliciesByGroup(request: import("../cosmos/group/v1/query").QueryGroupPoliciesByGroupRequest): Promise; - groupPoliciesByAdmin(request: import("../cosmos/group/v1/query").QueryGroupPoliciesByAdminRequest): Promise; - proposal(request: import("../cosmos/group/v1/query").QueryProposalRequest): Promise; - proposalsByGroupPolicy(request: import("../cosmos/group/v1/query").QueryProposalsByGroupPolicyRequest): Promise; - voteByProposalVoter(request: import("../cosmos/group/v1/query").QueryVoteByProposalVoterRequest): Promise; - votesByProposal(request: import("../cosmos/group/v1/query").QueryVotesByProposalRequest): Promise; - votesByVoter(request: import("../cosmos/group/v1/query").QueryVotesByVoterRequest): Promise; - groupsByMember(request: import("../cosmos/group/v1/query").QueryGroupsByMemberRequest): Promise; - tallyResult(request: import("../cosmos/group/v1/query").QueryTallyResultRequest): Promise; - }; - }; - mint: { - v1beta1: { - params(request?: import("../cosmos/mint/v1beta1/query").QueryParamsRequest): Promise; - inflation(request?: import("../cosmos/mint/v1beta1/query").QueryInflationRequest): Promise; - annualProvisions(request?: import("../cosmos/mint/v1beta1/query").QueryAnnualProvisionsRequest): Promise; - }; - }; - nft: { - v1beta1: { - balance(request: import("../cosmos/nft/v1beta1/query").QueryBalanceRequest): Promise; - owner(request: import("../cosmos/nft/v1beta1/query").QueryOwnerRequest): Promise; - supply(request: import("../cosmos/nft/v1beta1/query").QuerySupplyRequest): Promise; - nFTs(request: import("../cosmos/nft/v1beta1/query").QueryNFTsRequest): Promise; - nFT(request: import("../cosmos/nft/v1beta1/query").QueryNFTRequest): Promise; - class(request: import("../cosmos/nft/v1beta1/query").QueryClassRequest): Promise; - classes(request?: import("../cosmos/nft/v1beta1/query").QueryClassesRequest): Promise; - }; - }; - params: { - v1beta1: { - params(request: import("../cosmos/params/v1beta1/query").QueryParamsRequest): Promise; - subspaces(request?: import("../cosmos/params/v1beta1/query").QuerySubspacesRequest): Promise; - }; - }; - slashing: { - v1beta1: { - params(request?: import("../cosmos/slashing/v1beta1/query").QueryParamsRequest): Promise; - signingInfo(request: import("../cosmos/slashing/v1beta1/query").QuerySigningInfoRequest): Promise; - signingInfos(request?: import("../cosmos/slashing/v1beta1/query").QuerySigningInfosRequest): Promise; - }; - }; staking: { v1beta1: { validators(request: import("../cosmos/staking/v1beta1/query").QueryValidatorsRequest): Promise; @@ -192,17 +105,20 @@ export declare const createRPCQueryClient: ({ rpcEndpoint }: { shortBook(request: import("./seichain/dex/query").QueryGetShortBookRequest): Promise; shortBookAll(request: import("./seichain/dex/query").QueryAllShortBookRequest): Promise; getPrice(request: import("./seichain/dex/query").QueryGetPriceRequest): Promise; + getLatestPrice(request: import("./seichain/dex/query").QueryGetLatestPriceRequest): Promise; getPrices(request: import("./seichain/dex/query").QueryGetPricesRequest): Promise; getTwaps(request: import("./seichain/dex/query").QueryGetTwapsRequest): Promise; assetMetadata(request: import("./seichain/dex/query").QueryAssetMetadataRequest): Promise; assetList(request?: import("./seichain/dex/query").QueryAssetListRequest): Promise; getRegisteredPairs(request: import("./seichain/dex/query").QueryRegisteredPairsRequest): Promise; + getRegisteredContract(request: import("./seichain/dex/query").QueryRegisteredContractRequest): Promise; getOrders(request: import("./seichain/dex/query").QueryGetOrdersRequest): Promise; getOrder(request: import("./seichain/dex/query").QueryGetOrderByIDRequest): Promise; getHistoricalPrices(request: import("./seichain/dex/query").QueryGetHistoricalPricesRequest): Promise; getMarketSummary(request: import("./seichain/dex/query").QueryGetMarketSummaryRequest): Promise; getOrderSimulation(request: import("./seichain/dex/query").QueryOrderSimulationRequest): Promise; getMatchResult(request: import("./seichain/dex/query").QueryGetMatchResultRequest): Promise; + getOrderCount(request: import("./seichain/dex/query").QueryGetOrderCountRequest): Promise; }; epoch: { epoch(request?: import("./seichain/epoch/query").QueryEpochRequest): Promise; @@ -210,13 +126,7 @@ export declare const createRPCQueryClient: ({ rpcEndpoint }: { }; mint: { params(request?: import("./seichain/mint/v1beta1/query").QueryParamsRequest): Promise; - epochProvisions(request?: import("./seichain/mint/v1beta1/query").QueryEpochProvisionsRequest): Promise; - }; - nitro: { - params(request?: import("./seichain/nitro/query").QueryParamsRequest): Promise; - recordedTransactionData(request: import("./seichain/nitro/query").QueryRecordedTransactionDataRequest): Promise; - stateRoot(request: import("./seichain/nitro/query").QueryStateRootRequest): Promise; - sender(request: import("./seichain/nitro/query").QuerySenderRequest): Promise; + minter(request?: import("./seichain/mint/v1beta1/query").QueryMinterRequest): Promise; }; oracle: { exchangeRate(request: import("./seichain/oracle/query").QueryExchangeRateRequest): Promise; @@ -227,16 +137,13 @@ export declare const createRPCQueryClient: ({ rpcEndpoint }: { twaps(request: import("./seichain/oracle/query").QueryTwapsRequest): Promise; feederDelegation(request: import("./seichain/oracle/query").QueryFeederDelegationRequest): Promise; votePenaltyCounter(request: import("./seichain/oracle/query").QueryVotePenaltyCounterRequest): Promise; - aggregateVote(request: import("./seichain/oracle/query").QueryAggregateVoteRequest): Promise; - aggregateVotes(request?: import("./seichain/oracle/query").QueryAggregateVotesRequest): Promise; + slashWindow(request?: import("./seichain/oracle/query").QuerySlashWindowRequest): Promise; params(request?: import("./seichain/oracle/query").QueryParamsRequest): Promise; }; tokenfactory: { params(request?: import("./seichain/tokenfactory/query").QueryParamsRequest): Promise; denomAuthorityMetadata(request: import("./seichain/tokenfactory/query").QueryDenomAuthorityMetadataRequest): Promise; denomsFromCreator(request: import("./seichain/tokenfactory/query").QueryDenomsFromCreatorRequest): Promise; - denomCreationFeeWhitelist(request?: import("./seichain/tokenfactory/query").QueryDenomCreationFeeWhitelistRequest): Promise; - creatorInDenomFeeWhitelist(request: import("./seichain/tokenfactory/query").QueryCreatorInDenomFeeWhitelistRequest): Promise; }; }; }; diff --git a/packages/proto/types/codegen/seiprotocol/rpc.tx.d.ts b/packages/proto/types/codegen/seiprotocol/rpc.tx.d.ts index 23c9659a..0f976afd 100644 --- a/packages/proto/types/codegen/seiprotocol/rpc.tx.d.ts +++ b/packages/proto/types/codegen/seiprotocol/rpc.tx.d.ts @@ -1,4 +1,4 @@ -import { Rpc } from "@osmonauts/helpers"; +import { Rpc } from "../helpers"; export declare const createRPCMsgClient: ({ rpc }: { rpc: Rpc; }) => Promise<{ @@ -9,45 +9,22 @@ export declare const createRPCMsgClient: ({ rpc }: { bank: { v1beta1: import("../cosmos/bank/v1beta1/tx.rpc.msg").MsgClientImpl; }; - crisis: { - v1beta1: import("../cosmos/crisis/v1beta1/tx.rpc.msg").MsgClientImpl; - }; distribution: { v1beta1: import("../cosmos/distribution/v1beta1/tx.rpc.msg").MsgClientImpl; }; - evidence: { - v1beta1: import("../cosmos/evidence/v1beta1/tx.rpc.msg").MsgClientImpl; - }; - feegrant: { - v1beta1: import("../cosmos/feegrant/v1beta1/tx.rpc.msg").MsgClientImpl; - }; gov: { - v1: import("../cosmos/gov/v1/tx.rpc.msg").MsgClientImpl; v1beta1: import("../cosmos/gov/v1beta1/tx.rpc.msg").MsgClientImpl; }; - group: { - v1: import("../cosmos/group/v1/tx.rpc.msg").MsgClientImpl; - }; - nft: { - v1beta1: import("../cosmos/nft/v1beta1/tx.rpc.msg").MsgClientImpl; - }; - slashing: { - v1beta1: import("../cosmos/slashing/v1beta1/tx.rpc.msg").MsgClientImpl; - }; staking: { v1beta1: import("../cosmos/staking/v1beta1/tx.rpc.msg").MsgClientImpl; }; upgrade: { v1beta1: import("../cosmos/upgrade/v1beta1/tx.rpc.msg").MsgClientImpl; }; - vesting: { - v1beta1: import("../cosmos/vesting/v1beta1/tx.rpc.msg").MsgClientImpl; - }; }; seiprotocol: { seichain: { dex: import("./seichain/dex/tx.rpc.msg").MsgClientImpl; - nitro: import("./seichain/nitro/tx.rpc.msg").MsgClientImpl; oracle: import("./seichain/oracle/tx.rpc.msg").MsgClientImpl; tokenfactory: import("./seichain/tokenfactory/tx.rpc.msg").MsgClientImpl; }; diff --git a/packages/proto/types/codegen/seiprotocol/seichain/dex/query.rpc.query.d.ts b/packages/proto/types/codegen/seiprotocol/seichain/dex/query.rpc.query.d.ts index 2817c195..b6bc0bbb 100644 --- a/packages/proto/types/codegen/seiprotocol/seichain/dex/query.rpc.query.d.ts +++ b/packages/proto/types/codegen/seiprotocol/seichain/dex/query.rpc.query.d.ts @@ -1,25 +1,37 @@ -import { Rpc } from "@osmonauts/helpers"; +import { Rpc } from "../../../helpers"; import { QueryClient } from "@cosmjs/stargate"; -import { QueryParamsRequest, QueryParamsResponse, QueryGetLongBookRequest, QueryGetLongBookResponse, QueryAllLongBookRequest, QueryAllLongBookResponse, QueryGetShortBookRequest, QueryGetShortBookResponse, QueryAllShortBookRequest, QueryAllShortBookResponse, QueryGetPriceRequest, QueryGetPriceResponse, QueryGetPricesRequest, QueryGetPricesResponse, QueryGetTwapsRequest, QueryGetTwapsResponse, QueryAssetMetadataRequest, QueryAssetMetadataResponse, QueryAssetListRequest, QueryAssetListResponse, QueryRegisteredPairsRequest, QueryRegisteredPairsResponse, QueryGetOrdersRequest, QueryGetOrdersResponse, QueryGetOrderByIDRequest, QueryGetOrderByIDResponse, QueryGetHistoricalPricesRequest, QueryGetHistoricalPricesResponse, QueryGetMarketSummaryRequest, QueryGetMarketSummaryResponse, QueryOrderSimulationRequest, QueryOrderSimulationResponse, QueryGetMatchResultRequest, QueryGetMatchResultResponse } from "./query"; -/** Query defines the RPC service */ +import { QueryParamsRequest, QueryParamsResponse, QueryGetLongBookRequest, QueryGetLongBookResponse, QueryAllLongBookRequest, QueryAllLongBookResponse, QueryGetShortBookRequest, QueryGetShortBookResponse, QueryAllShortBookRequest, QueryAllShortBookResponse, QueryGetPriceRequest, QueryGetPriceResponse, QueryGetLatestPriceRequest, QueryGetLatestPriceResponse, QueryGetPricesRequest, QueryGetPricesResponse, QueryGetTwapsRequest, QueryGetTwapsResponse, QueryAssetMetadataRequest, QueryAssetMetadataResponse, QueryAssetListRequest, QueryAssetListResponse, QueryRegisteredPairsRequest, QueryRegisteredPairsResponse, QueryRegisteredContractRequest, QueryRegisteredContractResponse, QueryGetOrdersRequest, QueryGetOrdersResponse, QueryGetOrderByIDRequest, QueryGetOrderByIDResponse, QueryGetHistoricalPricesRequest, QueryGetHistoricalPricesResponse, QueryGetMarketSummaryRequest, QueryGetMarketSummaryResponse, QueryOrderSimulationRequest, QueryOrderSimulationResponse, QueryGetMatchResultRequest, QueryGetMatchResultResponse, QueryGetOrderCountRequest, QueryGetOrderCountResponse } from "./query"; +/** Query defines the gRPC querier service. */ export interface Query { + /** Parameters queries the parameters of the module. */ params(request?: QueryParamsRequest): Promise; + /** Queries a LongBook by id. */ longBook(request: QueryGetLongBookRequest): Promise; + /** Queries a list of LongBook items. */ longBookAll(request: QueryAllLongBookRequest): Promise; + /** Queries a ShortBook by id. */ shortBook(request: QueryGetShortBookRequest): Promise; + /** Queries a list of ShortBook items. */ shortBookAll(request: QueryAllShortBookRequest): Promise; getPrice(request: QueryGetPriceRequest): Promise; + getLatestPrice(request: QueryGetLatestPriceRequest): Promise; getPrices(request: QueryGetPricesRequest): Promise; getTwaps(request: QueryGetTwapsRequest): Promise; + /** Returns the metadata for a specified denom / display type */ assetMetadata(request: QueryAssetMetadataRequest): Promise; + /** Returns metadata for all the assets */ assetList(request?: QueryAssetListRequest): Promise; + /** Returns all registered pairs for specified contract address */ getRegisteredPairs(request: QueryRegisteredPairsRequest): Promise; + /** Returns registered contract information */ + getRegisteredContract(request: QueryRegisteredContractRequest): Promise; getOrders(request: QueryGetOrdersRequest): Promise; getOrder(request: QueryGetOrderByIDRequest): Promise; getHistoricalPrices(request: QueryGetHistoricalPricesRequest): Promise; getMarketSummary(request: QueryGetMarketSummaryRequest): Promise; getOrderSimulation(request: QueryOrderSimulationRequest): Promise; getMatchResult(request: QueryGetMatchResultRequest): Promise; + getOrderCount(request: QueryGetOrderCountRequest): Promise; } export declare class QueryClientImpl implements Query { private readonly rpc; @@ -30,17 +42,20 @@ export declare class QueryClientImpl implements Query { shortBook(request: QueryGetShortBookRequest): Promise; shortBookAll(request: QueryAllShortBookRequest): Promise; getPrice(request: QueryGetPriceRequest): Promise; + getLatestPrice(request: QueryGetLatestPriceRequest): Promise; getPrices(request: QueryGetPricesRequest): Promise; getTwaps(request: QueryGetTwapsRequest): Promise; assetMetadata(request: QueryAssetMetadataRequest): Promise; assetList(request?: QueryAssetListRequest): Promise; getRegisteredPairs(request: QueryRegisteredPairsRequest): Promise; + getRegisteredContract(request: QueryRegisteredContractRequest): Promise; getOrders(request: QueryGetOrdersRequest): Promise; getOrder(request: QueryGetOrderByIDRequest): Promise; getHistoricalPrices(request: QueryGetHistoricalPricesRequest): Promise; getMarketSummary(request: QueryGetMarketSummaryRequest): Promise; getOrderSimulation(request: QueryOrderSimulationRequest): Promise; getMatchResult(request: QueryGetMatchResultRequest): Promise; + getOrderCount(request: QueryGetOrderCountRequest): Promise; } export declare const createRpcQueryExtension: (base: QueryClient) => { params(request?: QueryParamsRequest): Promise; @@ -49,15 +64,18 @@ export declare const createRpcQueryExtension: (base: QueryClient) => { shortBook(request: QueryGetShortBookRequest): Promise; shortBookAll(request: QueryAllShortBookRequest): Promise; getPrice(request: QueryGetPriceRequest): Promise; + getLatestPrice(request: QueryGetLatestPriceRequest): Promise; getPrices(request: QueryGetPricesRequest): Promise; getTwaps(request: QueryGetTwapsRequest): Promise; assetMetadata(request: QueryAssetMetadataRequest): Promise; assetList(request?: QueryAssetListRequest): Promise; getRegisteredPairs(request: QueryRegisteredPairsRequest): Promise; + getRegisteredContract(request: QueryRegisteredContractRequest): Promise; getOrders(request: QueryGetOrdersRequest): Promise; getOrder(request: QueryGetOrderByIDRequest): Promise; getHistoricalPrices(request: QueryGetHistoricalPricesRequest): Promise; getMarketSummary(request: QueryGetMarketSummaryRequest): Promise; getOrderSimulation(request: QueryOrderSimulationRequest): Promise; getMatchResult(request: QueryGetMatchResultRequest): Promise; + getOrderCount(request: QueryGetOrderCountRequest): Promise; }; diff --git a/packages/proto/types/codegen/seiprotocol/seichain/dex/tx.rpc.msg.d.ts b/packages/proto/types/codegen/seiprotocol/seichain/dex/tx.rpc.msg.d.ts index 4c6190c6..43ea187e 100644 --- a/packages/proto/types/codegen/seiprotocol/seichain/dex/tx.rpc.msg.d.ts +++ b/packages/proto/types/codegen/seiprotocol/seichain/dex/tx.rpc.msg.d.ts @@ -1,10 +1,16 @@ -import { Rpc } from "@osmonauts/helpers"; -import { MsgPlaceOrders, MsgPlaceOrdersResponse, MsgCancelOrders, MsgCancelOrdersResponse, MsgRegisterContract, MsgRegisterContractResponse } from "./tx"; -/** Msg defines the RPC service */ +import { Rpc } from "../../../helpers"; +import { MsgPlaceOrders, MsgPlaceOrdersResponse, MsgCancelOrders, MsgCancelOrdersResponse, MsgRegisterContract, MsgRegisterContractResponse, MsgContractDepositRent, MsgContractDepositRentResponse, MsgUnregisterContract, MsgUnregisterContractResponse, MsgRegisterPairs, MsgRegisterPairsResponse, MsgUpdatePriceTickSize, MsgUpdateTickSizeResponse, MsgUpdateQuantityTickSize, MsgUnsuspendContract, MsgUnsuspendContractResponse } from "./tx"; +/** Msg defines the Msg service. */ export interface Msg { placeOrders(request: MsgPlaceOrders): Promise; cancelOrders(request: MsgCancelOrders): Promise; registerContract(request: MsgRegisterContract): Promise; + contractDepositRent(request: MsgContractDepositRent): Promise; + unregisterContract(request: MsgUnregisterContract): Promise; + registerPairs(request: MsgRegisterPairs): Promise; + updatePriceTickSize(request: MsgUpdatePriceTickSize): Promise; + updateQuantityTickSize(request: MsgUpdateQuantityTickSize): Promise; + unsuspendContract(request: MsgUnsuspendContract): Promise; } export declare class MsgClientImpl implements Msg { private readonly rpc; @@ -12,4 +18,10 @@ export declare class MsgClientImpl implements Msg { placeOrders(request: MsgPlaceOrders): Promise; cancelOrders(request: MsgCancelOrders): Promise; registerContract(request: MsgRegisterContract): Promise; + contractDepositRent(request: MsgContractDepositRent): Promise; + unregisterContract(request: MsgUnregisterContract): Promise; + registerPairs(request: MsgRegisterPairs): Promise; + updatePriceTickSize(request: MsgUpdatePriceTickSize): Promise; + updateQuantityTickSize(request: MsgUpdateQuantityTickSize): Promise; + unsuspendContract(request: MsgUnsuspendContract): Promise; } diff --git a/packages/proto/types/codegen/seiprotocol/seichain/epoch/query.rpc.query.d.ts b/packages/proto/types/codegen/seiprotocol/seichain/epoch/query.rpc.query.d.ts index 4229e847..b34cac8f 100644 --- a/packages/proto/types/codegen/seiprotocol/seichain/epoch/query.rpc.query.d.ts +++ b/packages/proto/types/codegen/seiprotocol/seichain/epoch/query.rpc.query.d.ts @@ -1,9 +1,11 @@ -import { Rpc } from "@osmonauts/helpers"; +import { Rpc } from "../../../helpers"; import { QueryClient } from "@cosmjs/stargate"; import { QueryEpochRequest, QueryEpochResponse, QueryParamsRequest, QueryParamsResponse } from "./query"; -/** Query defines the RPC service */ +/** Query defines the gRPC querier service. */ export interface Query { + /** Query the epoch in the chain */ epoch(request?: QueryEpochRequest): Promise; + /** Parameters queries the parameters of the module. */ params(request?: QueryParamsRequest): Promise; } export declare class QueryClientImpl implements Query { diff --git a/packages/proto/types/codegen/seiprotocol/seichain/mint/v1beta1/query.rpc.query.d.ts b/packages/proto/types/codegen/seiprotocol/seichain/mint/v1beta1/query.rpc.query.d.ts index f3660aca..0c766909 100644 --- a/packages/proto/types/codegen/seiprotocol/seichain/mint/v1beta1/query.rpc.query.d.ts +++ b/packages/proto/types/codegen/seiprotocol/seichain/mint/v1beta1/query.rpc.query.d.ts @@ -1,18 +1,20 @@ -import { Rpc } from "@osmonauts/helpers"; +import { Rpc } from "../../../../helpers"; import { QueryClient } from "@cosmjs/stargate"; -import { QueryParamsRequest, QueryParamsResponse, QueryEpochProvisionsRequest, QueryEpochProvisionsResponse } from "./query"; -/** Query defines the RPC service */ +import { QueryParamsRequest, QueryParamsResponse, QueryMinterRequest, QueryMinterResponse } from "./query"; +/** Query provides defines the gRPC querier service. */ export interface Query { + /** Params returns the total set of minting parameters. */ params(request?: QueryParamsRequest): Promise; - epochProvisions(request?: QueryEpochProvisionsRequest): Promise; + /** EpochProvisions current minting epoch provisions value. */ + minter(request?: QueryMinterRequest): Promise; } export declare class QueryClientImpl implements Query { private readonly rpc; constructor(rpc: Rpc); params(request?: QueryParamsRequest): Promise; - epochProvisions(request?: QueryEpochProvisionsRequest): Promise; + minter(request?: QueryMinterRequest): Promise; } export declare const createRpcQueryExtension: (base: QueryClient) => { params(request?: QueryParamsRequest): Promise; - epochProvisions(request?: QueryEpochProvisionsRequest): Promise; + minter(request?: QueryMinterRequest): Promise; }; diff --git a/packages/proto/types/codegen/seiprotocol/seichain/nitro/account.d.ts b/packages/proto/types/codegen/seiprotocol/seichain/nitro/account.d.ts deleted file mode 100644 index e8cd63de..00000000 --- a/packages/proto/types/codegen/seiprotocol/seichain/nitro/account.d.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { Long, DeepPartial } from "../../../helpers"; -import * as _m0 from "protobufjs/minimal"; -export interface Account { - pubkey: string; - owner: string; - lamports: Long; - slot: Long; - executable: boolean; - rentEpoch: Long; - data: string; -} -export interface AccountSDKType { - pubkey: string; - owner: string; - lamports: Long; - slot: Long; - executable: boolean; - rent_epoch: Long; - data: string; -} -export declare const Account: { - encode(message: Account, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): Account; - fromPartial(object: DeepPartial): Account; -}; diff --git a/packages/proto/types/codegen/seiprotocol/seichain/nitro/data.d.ts b/packages/proto/types/codegen/seiprotocol/seichain/nitro/data.d.ts deleted file mode 100644 index 4a91a159..00000000 --- a/packages/proto/types/codegen/seiprotocol/seichain/nitro/data.d.ts +++ /dev/null @@ -1,151 +0,0 @@ -import { Long, DeepPartial } from "../../../helpers"; -import * as _m0 from "protobufjs/minimal"; -export interface TransactionData { - slot: Long; - signature: string; - isVote: boolean; - messageType: Long; - legacyMessage: LegacyMessage; - v0LoadedMessage: LoadedMessage; - signatures: string[]; - messageHash: string; - writeVersion: Long; -} -export interface TransactionDataSDKType { - slot: Long; - signature: string; - is_vote: boolean; - message_type: Long; - legacy_message: LegacyMessageSDKType; - v0_loaded_message: LoadedMessageSDKType; - signatures: string[]; - message_hash: string; - write_version: Long; -} -export interface LegacyMessage { - header: MessageHeader; - accountKeys: string[]; - recentBlockhash: string; - instructions: CompiledInstruction[]; -} -export interface LegacyMessageSDKType { - header: MessageHeaderSDKType; - account_keys: string[]; - recent_blockhash: string; - instructions: CompiledInstructionSDKType[]; -} -export interface LoadedMessage { - message: Message; - loadedAddresses: LoadedAddresses; -} -export interface LoadedMessageSDKType { - message: MessageSDKType; - loaded_addresses: LoadedAddressesSDKType; -} -export interface Message { - header: MessageHeader; - accountKeys: string[]; - recentBlockhash: string; - instructions: CompiledInstruction[]; - addressTableLookups: MessageAddressTableLookup[]; -} -export interface MessageSDKType { - header: MessageHeaderSDKType; - account_keys: string[]; - recent_blockhash: string; - instructions: CompiledInstructionSDKType[]; - address_table_lookups: MessageAddressTableLookupSDKType[]; -} -export interface MessageHeader { - numRequiredSignatures: number; - numReadonlySignedAccounts: number; - numReadonlyUnsignedAccounts: number; -} -export interface MessageHeaderSDKType { - num_required_signatures: number; - num_readonly_signed_accounts: number; - num_readonly_unsigned_accounts: number; -} -export interface CompiledInstruction { - programIdIndex: number; - accounts: number[]; - data: string; -} -export interface CompiledInstructionSDKType { - program_id_index: number; - accounts: number[]; - data: string; -} -export interface MessageAddressTableLookup { - accountKey: string; - writableIndexes: number[]; - readonlyIndexes: number[]; -} -export interface MessageAddressTableLookupSDKType { - account_key: string; - writable_indexes: number[]; - readonly_indexes: number[]; -} -export interface LoadedAddresses { - writable: string[]; - readonly: string[]; -} -export interface LoadedAddressesSDKType { - writable: string[]; - readonly: string[]; -} -export interface MerkleProof { - commitment: string; - hash: string[]; - direction: Long[]; -} -export interface MerkleProofSDKType { - commitment: string; - hash: string[]; - direction: Long[]; -} -export declare const TransactionData: { - encode(message: TransactionData, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): TransactionData; - fromPartial(object: DeepPartial): TransactionData; -}; -export declare const LegacyMessage: { - encode(message: LegacyMessage, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): LegacyMessage; - fromPartial(object: DeepPartial): LegacyMessage; -}; -export declare const LoadedMessage: { - encode(message: LoadedMessage, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): LoadedMessage; - fromPartial(object: DeepPartial): LoadedMessage; -}; -export declare const Message: { - encode(message: Message, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): Message; - fromPartial(object: DeepPartial): Message; -}; -export declare const MessageHeader: { - encode(message: MessageHeader, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MessageHeader; - fromPartial(object: DeepPartial): MessageHeader; -}; -export declare const CompiledInstruction: { - encode(message: CompiledInstruction, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): CompiledInstruction; - fromPartial(object: DeepPartial): CompiledInstruction; -}; -export declare const MessageAddressTableLookup: { - encode(message: MessageAddressTableLookup, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MessageAddressTableLookup; - fromPartial(object: DeepPartial): MessageAddressTableLookup; -}; -export declare const LoadedAddresses: { - encode(message: LoadedAddresses, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): LoadedAddresses; - fromPartial(object: DeepPartial): LoadedAddresses; -}; -export declare const MerkleProof: { - encode(message: MerkleProof, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MerkleProof; - fromPartial(object: DeepPartial): MerkleProof; -}; diff --git a/packages/proto/types/codegen/seiprotocol/seichain/nitro/genesis.d.ts b/packages/proto/types/codegen/seiprotocol/seichain/nitro/genesis.d.ts deleted file mode 100644 index ec04206b..00000000 --- a/packages/proto/types/codegen/seiprotocol/seichain/nitro/genesis.d.ts +++ /dev/null @@ -1,22 +0,0 @@ -import { Params, ParamsSDKType } from "./params"; -import { Long, DeepPartial } from "../../../helpers"; -import * as _m0 from "protobufjs/minimal"; -export interface GenesisState { - params: Params; - slot: Long; - sender: string; - stateRoot: string; - txs: string[]; -} -export interface GenesisStateSDKType { - params: ParamsSDKType; - slot: Long; - sender: string; - stateRoot: string; - txs: string[]; -} -export declare const GenesisState: { - encode(message: GenesisState, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): GenesisState; - fromPartial(object: DeepPartial): GenesisState; -}; diff --git a/packages/proto/types/codegen/seiprotocol/seichain/nitro/params.d.ts b/packages/proto/types/codegen/seiprotocol/seichain/nitro/params.d.ts deleted file mode 100644 index cc3cdae4..00000000 --- a/packages/proto/types/codegen/seiprotocol/seichain/nitro/params.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import * as _m0 from "protobufjs/minimal"; -import { DeepPartial } from "../../../helpers"; -export interface Params { - whitelistedTxSenders: string[]; -} -export interface ParamsSDKType { - whitelisted_tx_senders: string[]; -} -export declare const Params: { - encode(message: Params, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): Params; - fromPartial(object: DeepPartial): Params; -}; diff --git a/packages/proto/types/codegen/seiprotocol/seichain/nitro/query.d.ts b/packages/proto/types/codegen/seiprotocol/seichain/nitro/query.d.ts deleted file mode 100644 index fc31a047..00000000 --- a/packages/proto/types/codegen/seiprotocol/seichain/nitro/query.d.ts +++ /dev/null @@ -1,89 +0,0 @@ -import { Params, ParamsSDKType } from "./params"; -import { Long, DeepPartial } from "../../../helpers"; -import * as _m0 from "protobufjs/minimal"; -export interface QueryParamsRequest { -} -export interface QueryParamsRequestSDKType { -} -export interface QueryParamsResponse { - params: Params; -} -export interface QueryParamsResponseSDKType { - params: ParamsSDKType; -} -export interface QueryRecordedTransactionDataRequest { - slot: Long; -} -export interface QueryRecordedTransactionDataRequestSDKType { - slot: Long; -} -export interface QueryRecordedTransactionDataResponse { - txs: string[]; -} -export interface QueryRecordedTransactionDataResponseSDKType { - txs: string[]; -} -export interface QueryStateRootRequest { - slot: Long; -} -export interface QueryStateRootRequestSDKType { - slot: Long; -} -export interface QueryStateRootResponse { - root: string; -} -export interface QueryStateRootResponseSDKType { - root: string; -} -export interface QuerySenderRequest { - slot: Long; -} -export interface QuerySenderRequestSDKType { - slot: Long; -} -export interface QuerySenderResponse { - sender: string; -} -export interface QuerySenderResponseSDKType { - sender: string; -} -export declare const QueryParamsRequest: { - encode(_: QueryParamsRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryParamsRequest; - fromPartial(_: DeepPartial): QueryParamsRequest; -}; -export declare const QueryParamsResponse: { - encode(message: QueryParamsResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryParamsResponse; - fromPartial(object: DeepPartial): QueryParamsResponse; -}; -export declare const QueryRecordedTransactionDataRequest: { - encode(message: QueryRecordedTransactionDataRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryRecordedTransactionDataRequest; - fromPartial(object: DeepPartial): QueryRecordedTransactionDataRequest; -}; -export declare const QueryRecordedTransactionDataResponse: { - encode(message: QueryRecordedTransactionDataResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryRecordedTransactionDataResponse; - fromPartial(object: DeepPartial): QueryRecordedTransactionDataResponse; -}; -export declare const QueryStateRootRequest: { - encode(message: QueryStateRootRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryStateRootRequest; - fromPartial(object: DeepPartial): QueryStateRootRequest; -}; -export declare const QueryStateRootResponse: { - encode(message: QueryStateRootResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryStateRootResponse; - fromPartial(object: DeepPartial): QueryStateRootResponse; -}; -export declare const QuerySenderRequest: { - encode(message: QuerySenderRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QuerySenderRequest; - fromPartial(object: DeepPartial): QuerySenderRequest; -}; -export declare const QuerySenderResponse: { - encode(message: QuerySenderResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QuerySenderResponse; - fromPartial(object: DeepPartial): QuerySenderResponse; -}; diff --git a/packages/proto/types/codegen/seiprotocol/seichain/nitro/query.lcd.d.ts b/packages/proto/types/codegen/seiprotocol/seichain/nitro/query.lcd.d.ts deleted file mode 100644 index 8c2a62e7..00000000 --- a/packages/proto/types/codegen/seiprotocol/seichain/nitro/query.lcd.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { LCDClient } from "@osmonauts/lcd"; -import { QueryParamsRequest, QueryParamsResponseSDKType, QueryRecordedTransactionDataRequest, QueryRecordedTransactionDataResponseSDKType, QueryStateRootRequest, QueryStateRootResponseSDKType, QuerySenderRequest, QuerySenderResponseSDKType } from "./query"; -export declare class LCDQueryClient { - req: LCDClient; - constructor({ requestClient }: { - requestClient: LCDClient; - }); - params(_params?: QueryParamsRequest): Promise; - recordedTransactionData(params: QueryRecordedTransactionDataRequest): Promise; - stateRoot(params: QueryStateRootRequest): Promise; - sender(params: QuerySenderRequest): Promise; -} diff --git a/packages/proto/types/codegen/seiprotocol/seichain/nitro/query.rpc.query.d.ts b/packages/proto/types/codegen/seiprotocol/seichain/nitro/query.rpc.query.d.ts deleted file mode 100644 index 4a1ea1af..00000000 --- a/packages/proto/types/codegen/seiprotocol/seichain/nitro/query.rpc.query.d.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { Rpc } from "@osmonauts/helpers"; -import { QueryClient } from "@cosmjs/stargate"; -import { QueryParamsRequest, QueryParamsResponse, QueryRecordedTransactionDataRequest, QueryRecordedTransactionDataResponse, QueryStateRootRequest, QueryStateRootResponse, QuerySenderRequest, QuerySenderResponse } from "./query"; -/** Query defines the RPC service */ -export interface Query { - params(request?: QueryParamsRequest): Promise; - recordedTransactionData(request: QueryRecordedTransactionDataRequest): Promise; - stateRoot(request: QueryStateRootRequest): Promise; - sender(request: QuerySenderRequest): Promise; -} -export declare class QueryClientImpl implements Query { - private readonly rpc; - constructor(rpc: Rpc); - params(request?: QueryParamsRequest): Promise; - recordedTransactionData(request: QueryRecordedTransactionDataRequest): Promise; - stateRoot(request: QueryStateRootRequest): Promise; - sender(request: QuerySenderRequest): Promise; -} -export declare const createRpcQueryExtension: (base: QueryClient) => { - params(request?: QueryParamsRequest): Promise; - recordedTransactionData(request: QueryRecordedTransactionDataRequest): Promise; - stateRoot(request: QueryStateRootRequest): Promise; - sender(request: QuerySenderRequest): Promise; -}; diff --git a/packages/proto/types/codegen/seiprotocol/seichain/nitro/tx.amino.d.ts b/packages/proto/types/codegen/seiprotocol/seichain/nitro/tx.amino.d.ts deleted file mode 100644 index f4a7a2c3..00000000 --- a/packages/proto/types/codegen/seiprotocol/seichain/nitro/tx.amino.d.ts +++ /dev/null @@ -1,64 +0,0 @@ -import { AminoMsg } from "@cosmjs/amino"; -import { MsgRecordTransactionData, MsgSubmitFraudChallenge } from "./tx"; -export interface MsgRecordTransactionDataAminoType extends AminoMsg { - type: "/seiprotocol.seichain.nitro.MsgRecordTransactionData"; - value: { - sender: string; - slot: string; - stateRoot: string; - txs: string[]; - }; -} -export interface MsgSubmitFraudChallengeAminoType extends AminoMsg { - type: "/seiprotocol.seichain.nitro.MsgSubmitFraudChallenge"; - value: { - sender: string; - startSlot: string; - endSlot: string; - fraudStatePubKey: string; - merkleProof: { - commitment: string; - hash: string[]; - direction: string[]; - }; - accountStates: { - pubkey: string; - owner: string; - lamports: string; - slot: string; - executable: boolean; - rent_epoch: string; - data: string; - }[]; - programs: { - pubkey: string; - owner: string; - lamports: string; - slot: string; - executable: boolean; - rent_epoch: string; - data: string; - }[]; - sysvarAccounts: { - pubkey: string; - owner: string; - lamports: string; - slot: string; - executable: boolean; - rent_epoch: string; - data: string; - }[]; - }; -} -export declare const AminoConverter: { - "/seiprotocol.seichain.nitro.MsgRecordTransactionData": { - aminoType: string; - toAmino: ({ sender, slot, stateRoot, txs }: MsgRecordTransactionData) => MsgRecordTransactionDataAminoType["value"]; - fromAmino: ({ sender, slot, stateRoot, txs }: MsgRecordTransactionDataAminoType["value"]) => MsgRecordTransactionData; - }; - "/seiprotocol.seichain.nitro.MsgSubmitFraudChallenge": { - aminoType: string; - toAmino: ({ sender, startSlot, endSlot, fraudStatePubKey, merkleProof, accountStates, programs, sysvarAccounts }: MsgSubmitFraudChallenge) => MsgSubmitFraudChallengeAminoType["value"]; - fromAmino: ({ sender, startSlot, endSlot, fraudStatePubKey, merkleProof, accountStates, programs, sysvarAccounts }: MsgSubmitFraudChallengeAminoType["value"]) => MsgSubmitFraudChallenge; - }; -}; diff --git a/packages/proto/types/codegen/seiprotocol/seichain/nitro/tx.d.ts b/packages/proto/types/codegen/seiprotocol/seichain/nitro/tx.d.ts deleted file mode 100644 index 28b5cd56..00000000 --- a/packages/proto/types/codegen/seiprotocol/seichain/nitro/tx.d.ts +++ /dev/null @@ -1,64 +0,0 @@ -import { MerkleProof, MerkleProofSDKType } from "./data"; -import { Account, AccountSDKType } from "./account"; -import { Long, DeepPartial } from "../../../helpers"; -import * as _m0 from "protobufjs/minimal"; -export interface MsgRecordTransactionData { - sender: string; - slot: Long; - stateRoot: string; - txs: string[]; -} -export interface MsgRecordTransactionDataSDKType { - sender: string; - slot: Long; - stateRoot: string; - txs: string[]; -} -export interface MsgSubmitFraudChallenge { - sender: string; - startSlot: Long; - endSlot: Long; - fraudStatePubKey: string; - merkleProof: MerkleProof; - accountStates: Account[]; - programs: Account[]; - sysvarAccounts: Account[]; -} -export interface MsgSubmitFraudChallengeSDKType { - sender: string; - startSlot: Long; - endSlot: Long; - fraudStatePubKey: string; - merkleProof: MerkleProofSDKType; - accountStates: AccountSDKType[]; - programs: AccountSDKType[]; - sysvarAccounts: AccountSDKType[]; -} -export interface MsgRecordTransactionDataResponse { -} -export interface MsgRecordTransactionDataResponseSDKType { -} -export interface MsgSubmitFraudChallengeResponse { -} -export interface MsgSubmitFraudChallengeResponseSDKType { -} -export declare const MsgRecordTransactionData: { - encode(message: MsgRecordTransactionData, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgRecordTransactionData; - fromPartial(object: DeepPartial): MsgRecordTransactionData; -}; -export declare const MsgSubmitFraudChallenge: { - encode(message: MsgSubmitFraudChallenge, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgSubmitFraudChallenge; - fromPartial(object: DeepPartial): MsgSubmitFraudChallenge; -}; -export declare const MsgRecordTransactionDataResponse: { - encode(_: MsgRecordTransactionDataResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgRecordTransactionDataResponse; - fromPartial(_: DeepPartial): MsgRecordTransactionDataResponse; -}; -export declare const MsgSubmitFraudChallengeResponse: { - encode(_: MsgSubmitFraudChallengeResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): MsgSubmitFraudChallengeResponse; - fromPartial(_: DeepPartial): MsgSubmitFraudChallengeResponse; -}; diff --git a/packages/proto/types/codegen/seiprotocol/seichain/nitro/tx.registry.d.ts b/packages/proto/types/codegen/seiprotocol/seichain/nitro/tx.registry.d.ts deleted file mode 100644 index 212fa1f8..00000000 --- a/packages/proto/types/codegen/seiprotocol/seichain/nitro/tx.registry.d.ts +++ /dev/null @@ -1,36 +0,0 @@ -import { GeneratedType, Registry } from "@cosmjs/proto-signing"; -import { MsgRecordTransactionData, MsgSubmitFraudChallenge } from "./tx"; -export declare const registry: ReadonlyArray<[string, GeneratedType]>; -export declare const load: (protoRegistry: Registry) => void; -export declare const MessageComposer: { - encoded: { - recordTransactionData(value: MsgRecordTransactionData): { - typeUrl: string; - value: Uint8Array; - }; - submitFraudChallenge(value: MsgSubmitFraudChallenge): { - typeUrl: string; - value: Uint8Array; - }; - }; - withTypeUrl: { - recordTransactionData(value: MsgRecordTransactionData): { - typeUrl: string; - value: MsgRecordTransactionData; - }; - submitFraudChallenge(value: MsgSubmitFraudChallenge): { - typeUrl: string; - value: MsgSubmitFraudChallenge; - }; - }; - fromPartial: { - recordTransactionData(value: MsgRecordTransactionData): { - typeUrl: string; - value: MsgRecordTransactionData; - }; - submitFraudChallenge(value: MsgSubmitFraudChallenge): { - typeUrl: string; - value: MsgSubmitFraudChallenge; - }; - }; -}; diff --git a/packages/proto/types/codegen/seiprotocol/seichain/nitro/tx.rpc.msg.d.ts b/packages/proto/types/codegen/seiprotocol/seichain/nitro/tx.rpc.msg.d.ts deleted file mode 100644 index 68878d89..00000000 --- a/packages/proto/types/codegen/seiprotocol/seichain/nitro/tx.rpc.msg.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { Rpc } from "@osmonauts/helpers"; -import { MsgRecordTransactionData, MsgRecordTransactionDataResponse } from "./tx"; -/** Msg defines the RPC service */ -export interface Msg { - recordTransactionData(request: MsgRecordTransactionData): Promise; -} -export declare class MsgClientImpl implements Msg { - private readonly rpc; - constructor(rpc: Rpc); - recordTransactionData(request: MsgRecordTransactionData): Promise; -} diff --git a/packages/proto/types/codegen/seiprotocol/seichain/oracle/query.rpc.query.d.ts b/packages/proto/types/codegen/seiprotocol/seichain/oracle/query.rpc.query.d.ts index e0f6e3f3..d27cf4c4 100644 --- a/packages/proto/types/codegen/seiprotocol/seichain/oracle/query.rpc.query.d.ts +++ b/packages/proto/types/codegen/seiprotocol/seichain/oracle/query.rpc.query.d.ts @@ -1,18 +1,26 @@ -import { Rpc } from "@osmonauts/helpers"; +import { Rpc } from "../../../helpers"; import { QueryClient } from "@cosmjs/stargate"; -import { QueryExchangeRateRequest, QueryExchangeRateResponse, QueryExchangeRatesRequest, QueryExchangeRatesResponse, QueryActivesRequest, QueryActivesResponse, QueryVoteTargetsRequest, QueryVoteTargetsResponse, QueryPriceSnapshotHistoryRequest, QueryPriceSnapshotHistoryResponse, QueryTwapsRequest, QueryTwapsResponse, QueryFeederDelegationRequest, QueryFeederDelegationResponse, QueryVotePenaltyCounterRequest, QueryVotePenaltyCounterResponse, QueryAggregateVoteRequest, QueryAggregateVoteResponse, QueryAggregateVotesRequest, QueryAggregateVotesResponse, QueryParamsRequest, QueryParamsResponse } from "./query"; -/** Query defines the RPC service */ +import { QueryExchangeRateRequest, QueryExchangeRateResponse, QueryExchangeRatesRequest, QueryExchangeRatesResponse, QueryActivesRequest, QueryActivesResponse, QueryVoteTargetsRequest, QueryVoteTargetsResponse, QueryPriceSnapshotHistoryRequest, QueryPriceSnapshotHistoryResponse, QueryTwapsRequest, QueryTwapsResponse, QueryFeederDelegationRequest, QueryFeederDelegationResponse, QueryVotePenaltyCounterRequest, QueryVotePenaltyCounterResponse, QuerySlashWindowRequest, QuerySlashWindowResponse, QueryParamsRequest, QueryParamsResponse } from "./query"; +/** Query defines the gRPC querier service. */ export interface Query { + /** ExchangeRate returns exchange rate of a denom */ exchangeRate(request: QueryExchangeRateRequest): Promise; + /** ExchangeRates returns exchange rates of all denoms */ exchangeRates(request?: QueryExchangeRatesRequest): Promise; + /** Actives returns all active denoms */ actives(request?: QueryActivesRequest): Promise; + /** VoteTargets returns all vote target denoms */ voteTargets(request?: QueryVoteTargetsRequest): Promise; + /** PriceSnapshotHistory returns the history of price snapshots for all assets */ priceSnapshotHistory(request?: QueryPriceSnapshotHistoryRequest): Promise; twaps(request: QueryTwapsRequest): Promise; + /** FeederDelegation returns feeder delegation of a validator */ feederDelegation(request: QueryFeederDelegationRequest): Promise; + /** MissCounter returns oracle miss counter of a validator */ votePenaltyCounter(request: QueryVotePenaltyCounterRequest): Promise; - aggregateVote(request: QueryAggregateVoteRequest): Promise; - aggregateVotes(request?: QueryAggregateVotesRequest): Promise; + /** SlashWindow returns slash window information */ + slashWindow(request?: QuerySlashWindowRequest): Promise; + /** Params queries all parameters. */ params(request?: QueryParamsRequest): Promise; } export declare class QueryClientImpl implements Query { @@ -26,8 +34,7 @@ export declare class QueryClientImpl implements Query { twaps(request: QueryTwapsRequest): Promise; feederDelegation(request: QueryFeederDelegationRequest): Promise; votePenaltyCounter(request: QueryVotePenaltyCounterRequest): Promise; - aggregateVote(request: QueryAggregateVoteRequest): Promise; - aggregateVotes(request?: QueryAggregateVotesRequest): Promise; + slashWindow(request?: QuerySlashWindowRequest): Promise; params(request?: QueryParamsRequest): Promise; } export declare const createRpcQueryExtension: (base: QueryClient) => { @@ -39,7 +46,6 @@ export declare const createRpcQueryExtension: (base: QueryClient) => { twaps(request: QueryTwapsRequest): Promise; feederDelegation(request: QueryFeederDelegationRequest): Promise; votePenaltyCounter(request: QueryVotePenaltyCounterRequest): Promise; - aggregateVote(request: QueryAggregateVoteRequest): Promise; - aggregateVotes(request?: QueryAggregateVotesRequest): Promise; + slashWindow(request?: QuerySlashWindowRequest): Promise; params(request?: QueryParamsRequest): Promise; }; diff --git a/packages/proto/types/codegen/seiprotocol/seichain/oracle/tx.rpc.msg.d.ts b/packages/proto/types/codegen/seiprotocol/seichain/oracle/tx.rpc.msg.d.ts index b820af65..901a09bd 100644 --- a/packages/proto/types/codegen/seiprotocol/seichain/oracle/tx.rpc.msg.d.ts +++ b/packages/proto/types/codegen/seiprotocol/seichain/oracle/tx.rpc.msg.d.ts @@ -1,8 +1,13 @@ -import { Rpc } from "@osmonauts/helpers"; +import { Rpc } from "../../../helpers"; import { MsgAggregateExchangeRateVote, MsgAggregateExchangeRateVoteResponse, MsgDelegateFeedConsent, MsgDelegateFeedConsentResponse } from "./tx"; -/** Msg defines the RPC service */ +/** Msg defines the oracle Msg service. */ export interface Msg { + /** + * AggregateExchangeRateVote defines a method for submitting + * aggregate exchange rate vote + */ aggregateExchangeRateVote(request: MsgAggregateExchangeRateVote): Promise; + /** DelegateFeedConsent defines a method for setting the feeder delegation */ delegateFeedConsent(request: MsgDelegateFeedConsent): Promise; } export declare class MsgClientImpl implements Msg { diff --git a/packages/proto/types/codegen/seiprotocol/seichain/tokenfactory/gov.d.ts b/packages/proto/types/codegen/seiprotocol/seichain/tokenfactory/gov.d.ts deleted file mode 100644 index 1577321f..00000000 --- a/packages/proto/types/codegen/seiprotocol/seichain/tokenfactory/gov.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -import * as _m0 from "protobufjs/minimal"; -import { DeepPartial } from "@osmonauts/helpers"; -export interface AddCreatorsToDenomFeeWhitelistProposal { - title: string; - description: string; - creatorList: string[]; -} -export interface AddCreatorsToDenomFeeWhitelistProposalSDKType { - title: string; - description: string; - creatorList: string[]; -} -export declare const AddCreatorsToDenomFeeWhitelistProposal: { - encode(message: AddCreatorsToDenomFeeWhitelistProposal, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): AddCreatorsToDenomFeeWhitelistProposal; - fromPartial(object: DeepPartial): AddCreatorsToDenomFeeWhitelistProposal; -}; diff --git a/packages/proto/types/codegen/seiprotocol/seichain/tokenfactory/query.rpc.query.d.ts b/packages/proto/types/codegen/seiprotocol/seichain/tokenfactory/query.rpc.query.d.ts index 675ac6d8..0a01cc6c 100644 --- a/packages/proto/types/codegen/seiprotocol/seichain/tokenfactory/query.rpc.query.d.ts +++ b/packages/proto/types/codegen/seiprotocol/seichain/tokenfactory/query.rpc.query.d.ts @@ -1,13 +1,23 @@ -import { Rpc } from "@osmonauts/helpers"; +import { Rpc } from "../../../helpers"; import { QueryClient } from "@cosmjs/stargate"; -import { QueryParamsRequest, QueryParamsResponse, QueryDenomAuthorityMetadataRequest, QueryDenomAuthorityMetadataResponse, QueryDenomsFromCreatorRequest, QueryDenomsFromCreatorResponse, QueryDenomCreationFeeWhitelistRequest, QueryDenomCreationFeeWhitelistResponse, QueryCreatorInDenomFeeWhitelistRequest, QueryCreatorInDenomFeeWhitelistResponse } from "./query"; -/** Query defines the RPC service */ +import { QueryParamsRequest, QueryParamsResponse, QueryDenomAuthorityMetadataRequest, QueryDenomAuthorityMetadataResponse, QueryDenomsFromCreatorRequest, QueryDenomsFromCreatorResponse } from "./query"; +/** Query defines the gRPC querier service. */ export interface Query { + /** + * Params defines a gRPC query method that returns the tokenfactory module's + * parameters. + */ params(request?: QueryParamsRequest): Promise; + /** + * DenomAuthorityMetadata defines a gRPC query method for fetching + * DenomAuthorityMetadata for a particular denom. + */ denomAuthorityMetadata(request: QueryDenomAuthorityMetadataRequest): Promise; + /** + * DenomsFromCreator defines a gRPC query method for fetching all + * denominations created by a specific admin/creator. + */ denomsFromCreator(request: QueryDenomsFromCreatorRequest): Promise; - denomCreationFeeWhitelist(request?: QueryDenomCreationFeeWhitelistRequest): Promise; - creatorInDenomFeeWhitelist(request: QueryCreatorInDenomFeeWhitelistRequest): Promise; } export declare class QueryClientImpl implements Query { private readonly rpc; @@ -15,13 +25,9 @@ export declare class QueryClientImpl implements Query { params(request?: QueryParamsRequest): Promise; denomAuthorityMetadata(request: QueryDenomAuthorityMetadataRequest): Promise; denomsFromCreator(request: QueryDenomsFromCreatorRequest): Promise; - denomCreationFeeWhitelist(request?: QueryDenomCreationFeeWhitelistRequest): Promise; - creatorInDenomFeeWhitelist(request: QueryCreatorInDenomFeeWhitelistRequest): Promise; } export declare const createRpcQueryExtension: (base: QueryClient) => { params(request?: QueryParamsRequest): Promise; denomAuthorityMetadata(request: QueryDenomAuthorityMetadataRequest): Promise; denomsFromCreator(request: QueryDenomsFromCreatorRequest): Promise; - denomCreationFeeWhitelist(request?: QueryDenomCreationFeeWhitelistRequest): Promise; - creatorInDenomFeeWhitelist(request: QueryCreatorInDenomFeeWhitelistRequest): Promise; }; diff --git a/packages/proto/types/codegen/seiprotocol/seichain/tokenfactory/tx.rpc.msg.d.ts b/packages/proto/types/codegen/seiprotocol/seichain/tokenfactory/tx.rpc.msg.d.ts index f3ec2b65..707da9b4 100644 --- a/packages/proto/types/codegen/seiprotocol/seichain/tokenfactory/tx.rpc.msg.d.ts +++ b/packages/proto/types/codegen/seiprotocol/seichain/tokenfactory/tx.rpc.msg.d.ts @@ -1,6 +1,6 @@ -import { Rpc } from "@osmonauts/helpers"; +import { Rpc } from "../../../helpers"; import { MsgCreateDenom, MsgCreateDenomResponse, MsgMint, MsgMintResponse, MsgBurn, MsgBurnResponse, MsgChangeAdmin, MsgChangeAdminResponse } from "./tx"; -/** Msg defines the RPC service */ +/** Msg defines the tokefactory module's gRPC message service. */ export interface Msg { createDenom(request: MsgCreateDenom): Promise; mint(request: MsgMint): Promise; diff --git a/packages/proto/types/codegen/tendermint/bundle.d.ts b/packages/proto/types/codegen/tendermint/bundle.d.ts index 72091bfd..b2cb472a 100644 --- a/packages/proto/types/codegen/tendermint/bundle.d.ts +++ b/packages/proto/types/codegen/tendermint/bundle.d.ts @@ -1,476 +1,476 @@ -import * as _169 from "./abci/types"; -import * as _170 from "./crypto/keys"; -import * as _171 from "./crypto/proof"; -import * as _172 from "./libs/bits/types"; -import * as _173 from "./p2p/types"; -import * as _174 from "./types/block"; -import * as _175 from "./types/evidence"; -import * as _176 from "./types/params"; -import * as _177 from "./types/types"; -import * as _178 from "./types/validator"; -import * as _179 from "./version/types"; +import * as _115 from "./abci/types"; +import * as _116 from "./crypto/keys"; +import * as _117 from "./crypto/proof"; +import * as _118 from "./libs/bits/types"; +import * as _119 from "./p2p/types"; +import * as _120 from "./types/block"; +import * as _121 from "./types/evidence"; +import * as _122 from "./types/params"; +import * as _123 from "./types/types"; +import * as _124 from "./types/validator"; +import * as _125 from "./version/types"; export declare namespace tendermint { const abci: { - checkTxTypeFromJSON(object: any): _169.CheckTxType; - checkTxTypeToJSON(object: _169.CheckTxType): string; - responseOfferSnapshot_ResultFromJSON(object: any): _169.ResponseOfferSnapshot_Result; - responseOfferSnapshot_ResultToJSON(object: _169.ResponseOfferSnapshot_Result): string; - responseApplySnapshotChunk_ResultFromJSON(object: any): _169.ResponseApplySnapshotChunk_Result; - responseApplySnapshotChunk_ResultToJSON(object: _169.ResponseApplySnapshotChunk_Result): string; - evidenceTypeFromJSON(object: any): _169.EvidenceType; - evidenceTypeToJSON(object: _169.EvidenceType): string; - CheckTxType: typeof _169.CheckTxType; - CheckTxTypeSDKType: typeof _169.CheckTxType; - ResponseOfferSnapshot_Result: typeof _169.ResponseOfferSnapshot_Result; - ResponseOfferSnapshot_ResultSDKType: typeof _169.ResponseOfferSnapshot_Result; - ResponseApplySnapshotChunk_Result: typeof _169.ResponseApplySnapshotChunk_Result; - ResponseApplySnapshotChunk_ResultSDKType: typeof _169.ResponseApplySnapshotChunk_Result; - EvidenceType: typeof _169.EvidenceType; - EvidenceTypeSDKType: typeof _169.EvidenceType; + checkTxTypeFromJSON(object: any): _115.CheckTxType; + checkTxTypeToJSON(object: _115.CheckTxType): string; + responseOfferSnapshot_ResultFromJSON(object: any): _115.ResponseOfferSnapshot_Result; + responseOfferSnapshot_ResultToJSON(object: _115.ResponseOfferSnapshot_Result): string; + responseApplySnapshotChunk_ResultFromJSON(object: any): _115.ResponseApplySnapshotChunk_Result; + responseApplySnapshotChunk_ResultToJSON(object: _115.ResponseApplySnapshotChunk_Result): string; + evidenceTypeFromJSON(object: any): _115.EvidenceType; + evidenceTypeToJSON(object: _115.EvidenceType): string; + CheckTxType: typeof _115.CheckTxType; + CheckTxTypeSDKType: typeof _115.CheckTxType; + ResponseOfferSnapshot_Result: typeof _115.ResponseOfferSnapshot_Result; + ResponseOfferSnapshot_ResultSDKType: typeof _115.ResponseOfferSnapshot_Result; + ResponseApplySnapshotChunk_Result: typeof _115.ResponseApplySnapshotChunk_Result; + ResponseApplySnapshotChunk_ResultSDKType: typeof _115.ResponseApplySnapshotChunk_Result; + EvidenceType: typeof _115.EvidenceType; + EvidenceTypeSDKType: typeof _115.EvidenceType; Request: { - encode(message: _169.Request, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _169.Request; - fromPartial(object: any): _169.Request; + encode(message: _115.Request, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _115.Request; + fromPartial(object: any): _115.Request; }; RequestEcho: { - encode(message: _169.RequestEcho, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _169.RequestEcho; - fromPartial(object: any): _169.RequestEcho; + encode(message: _115.RequestEcho, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _115.RequestEcho; + fromPartial(object: any): _115.RequestEcho; }; RequestFlush: { - encode(_: _169.RequestFlush, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _169.RequestFlush; - fromPartial(_: any): _169.RequestFlush; + encode(_: _115.RequestFlush, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _115.RequestFlush; + fromPartial(_: any): _115.RequestFlush; }; RequestInfo: { - encode(message: _169.RequestInfo, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _169.RequestInfo; - fromPartial(object: any): _169.RequestInfo; + encode(message: _115.RequestInfo, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _115.RequestInfo; + fromPartial(object: any): _115.RequestInfo; }; RequestSetOption: { - encode(message: _169.RequestSetOption, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _169.RequestSetOption; - fromPartial(object: any): _169.RequestSetOption; + encode(message: _115.RequestSetOption, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _115.RequestSetOption; + fromPartial(object: any): _115.RequestSetOption; }; RequestInitChain: { - encode(message: _169.RequestInitChain, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _169.RequestInitChain; - fromPartial(object: any): _169.RequestInitChain; + encode(message: _115.RequestInitChain, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _115.RequestInitChain; + fromPartial(object: any): _115.RequestInitChain; }; RequestQuery: { - encode(message: _169.RequestQuery, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _169.RequestQuery; - fromPartial(object: any): _169.RequestQuery; + encode(message: _115.RequestQuery, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _115.RequestQuery; + fromPartial(object: any): _115.RequestQuery; }; RequestBeginBlock: { - encode(message: _169.RequestBeginBlock, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _169.RequestBeginBlock; - fromPartial(object: any): _169.RequestBeginBlock; + encode(message: _115.RequestBeginBlock, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _115.RequestBeginBlock; + fromPartial(object: any): _115.RequestBeginBlock; }; RequestCheckTx: { - encode(message: _169.RequestCheckTx, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _169.RequestCheckTx; - fromPartial(object: any): _169.RequestCheckTx; + encode(message: _115.RequestCheckTx, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _115.RequestCheckTx; + fromPartial(object: any): _115.RequestCheckTx; }; RequestDeliverTx: { - encode(message: _169.RequestDeliverTx, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _169.RequestDeliverTx; - fromPartial(object: any): _169.RequestDeliverTx; + encode(message: _115.RequestDeliverTx, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _115.RequestDeliverTx; + fromPartial(object: any): _115.RequestDeliverTx; }; RequestEndBlock: { - encode(message: _169.RequestEndBlock, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _169.RequestEndBlock; - fromPartial(object: any): _169.RequestEndBlock; + encode(message: _115.RequestEndBlock, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _115.RequestEndBlock; + fromPartial(object: any): _115.RequestEndBlock; }; RequestCommit: { - encode(_: _169.RequestCommit, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _169.RequestCommit; - fromPartial(_: any): _169.RequestCommit; + encode(_: _115.RequestCommit, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _115.RequestCommit; + fromPartial(_: any): _115.RequestCommit; }; RequestListSnapshots: { - encode(_: _169.RequestListSnapshots, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _169.RequestListSnapshots; - fromPartial(_: any): _169.RequestListSnapshots; + encode(_: _115.RequestListSnapshots, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _115.RequestListSnapshots; + fromPartial(_: any): _115.RequestListSnapshots; }; RequestOfferSnapshot: { - encode(message: _169.RequestOfferSnapshot, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _169.RequestOfferSnapshot; - fromPartial(object: any): _169.RequestOfferSnapshot; + encode(message: _115.RequestOfferSnapshot, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _115.RequestOfferSnapshot; + fromPartial(object: any): _115.RequestOfferSnapshot; }; RequestLoadSnapshotChunk: { - encode(message: _169.RequestLoadSnapshotChunk, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _169.RequestLoadSnapshotChunk; - fromPartial(object: any): _169.RequestLoadSnapshotChunk; + encode(message: _115.RequestLoadSnapshotChunk, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _115.RequestLoadSnapshotChunk; + fromPartial(object: any): _115.RequestLoadSnapshotChunk; }; RequestApplySnapshotChunk: { - encode(message: _169.RequestApplySnapshotChunk, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _169.RequestApplySnapshotChunk; - fromPartial(object: any): _169.RequestApplySnapshotChunk; + encode(message: _115.RequestApplySnapshotChunk, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _115.RequestApplySnapshotChunk; + fromPartial(object: any): _115.RequestApplySnapshotChunk; }; Response: { - encode(message: _169.Response, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _169.Response; - fromPartial(object: any): _169.Response; + encode(message: _115.Response, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _115.Response; + fromPartial(object: any): _115.Response; }; ResponseException: { - encode(message: _169.ResponseException, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _169.ResponseException; - fromPartial(object: any): _169.ResponseException; + encode(message: _115.ResponseException, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _115.ResponseException; + fromPartial(object: any): _115.ResponseException; }; ResponseEcho: { - encode(message: _169.ResponseEcho, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _169.ResponseEcho; - fromPartial(object: any): _169.ResponseEcho; + encode(message: _115.ResponseEcho, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _115.ResponseEcho; + fromPartial(object: any): _115.ResponseEcho; }; ResponseFlush: { - encode(_: _169.ResponseFlush, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _169.ResponseFlush; - fromPartial(_: any): _169.ResponseFlush; + encode(_: _115.ResponseFlush, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _115.ResponseFlush; + fromPartial(_: any): _115.ResponseFlush; }; ResponseInfo: { - encode(message: _169.ResponseInfo, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _169.ResponseInfo; - fromPartial(object: any): _169.ResponseInfo; + encode(message: _115.ResponseInfo, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _115.ResponseInfo; + fromPartial(object: any): _115.ResponseInfo; }; ResponseSetOption: { - encode(message: _169.ResponseSetOption, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _169.ResponseSetOption; - fromPartial(object: any): _169.ResponseSetOption; + encode(message: _115.ResponseSetOption, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _115.ResponseSetOption; + fromPartial(object: any): _115.ResponseSetOption; }; ResponseInitChain: { - encode(message: _169.ResponseInitChain, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _169.ResponseInitChain; - fromPartial(object: any): _169.ResponseInitChain; + encode(message: _115.ResponseInitChain, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _115.ResponseInitChain; + fromPartial(object: any): _115.ResponseInitChain; }; ResponseQuery: { - encode(message: _169.ResponseQuery, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _169.ResponseQuery; - fromPartial(object: any): _169.ResponseQuery; + encode(message: _115.ResponseQuery, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _115.ResponseQuery; + fromPartial(object: any): _115.ResponseQuery; }; ResponseBeginBlock: { - encode(message: _169.ResponseBeginBlock, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _169.ResponseBeginBlock; - fromPartial(object: any): _169.ResponseBeginBlock; + encode(message: _115.ResponseBeginBlock, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _115.ResponseBeginBlock; + fromPartial(object: any): _115.ResponseBeginBlock; }; ResponseCheckTx: { - encode(message: _169.ResponseCheckTx, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _169.ResponseCheckTx; - fromPartial(object: any): _169.ResponseCheckTx; + encode(message: _115.ResponseCheckTx, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _115.ResponseCheckTx; + fromPartial(object: any): _115.ResponseCheckTx; }; ResponseDeliverTx: { - encode(message: _169.ResponseDeliverTx, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _169.ResponseDeliverTx; - fromPartial(object: any): _169.ResponseDeliverTx; + encode(message: _115.ResponseDeliverTx, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _115.ResponseDeliverTx; + fromPartial(object: any): _115.ResponseDeliverTx; }; ResponseEndBlock: { - encode(message: _169.ResponseEndBlock, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _169.ResponseEndBlock; - fromPartial(object: any): _169.ResponseEndBlock; + encode(message: _115.ResponseEndBlock, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _115.ResponseEndBlock; + fromPartial(object: any): _115.ResponseEndBlock; }; ResponseCommit: { - encode(message: _169.ResponseCommit, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _169.ResponseCommit; - fromPartial(object: any): _169.ResponseCommit; + encode(message: _115.ResponseCommit, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _115.ResponseCommit; + fromPartial(object: any): _115.ResponseCommit; }; ResponseListSnapshots: { - encode(message: _169.ResponseListSnapshots, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _169.ResponseListSnapshots; - fromPartial(object: any): _169.ResponseListSnapshots; + encode(message: _115.ResponseListSnapshots, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _115.ResponseListSnapshots; + fromPartial(object: any): _115.ResponseListSnapshots; }; ResponseOfferSnapshot: { - encode(message: _169.ResponseOfferSnapshot, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _169.ResponseOfferSnapshot; - fromPartial(object: any): _169.ResponseOfferSnapshot; + encode(message: _115.ResponseOfferSnapshot, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _115.ResponseOfferSnapshot; + fromPartial(object: any): _115.ResponseOfferSnapshot; }; ResponseLoadSnapshotChunk: { - encode(message: _169.ResponseLoadSnapshotChunk, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _169.ResponseLoadSnapshotChunk; - fromPartial(object: any): _169.ResponseLoadSnapshotChunk; + encode(message: _115.ResponseLoadSnapshotChunk, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _115.ResponseLoadSnapshotChunk; + fromPartial(object: any): _115.ResponseLoadSnapshotChunk; }; ResponseApplySnapshotChunk: { - encode(message: _169.ResponseApplySnapshotChunk, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _169.ResponseApplySnapshotChunk; - fromPartial(object: any): _169.ResponseApplySnapshotChunk; + encode(message: _115.ResponseApplySnapshotChunk, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _115.ResponseApplySnapshotChunk; + fromPartial(object: any): _115.ResponseApplySnapshotChunk; }; ConsensusParams: { - encode(message: _169.ConsensusParams, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _169.ConsensusParams; - fromPartial(object: any): _169.ConsensusParams; + encode(message: _115.ConsensusParams, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _115.ConsensusParams; + fromPartial(object: any): _115.ConsensusParams; }; BlockParams: { - encode(message: _169.BlockParams, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _169.BlockParams; - fromPartial(object: any): _169.BlockParams; + encode(message: _115.BlockParams, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _115.BlockParams; + fromPartial(object: any): _115.BlockParams; }; LastCommitInfo: { - encode(message: _169.LastCommitInfo, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _169.LastCommitInfo; - fromPartial(object: any): _169.LastCommitInfo; + encode(message: _115.LastCommitInfo, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _115.LastCommitInfo; + fromPartial(object: any): _115.LastCommitInfo; }; Event: { - encode(message: _169.Event, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _169.Event; - fromPartial(object: any): _169.Event; + encode(message: _115.Event, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _115.Event; + fromPartial(object: any): _115.Event; }; EventAttribute: { - encode(message: _169.EventAttribute, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _169.EventAttribute; - fromPartial(object: any): _169.EventAttribute; + encode(message: _115.EventAttribute, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _115.EventAttribute; + fromPartial(object: any): _115.EventAttribute; }; TxResult: { - encode(message: _169.TxResult, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _169.TxResult; - fromPartial(object: any): _169.TxResult; + encode(message: _115.TxResult, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _115.TxResult; + fromPartial(object: any): _115.TxResult; }; Validator: { - encode(message: _169.Validator, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _169.Validator; - fromPartial(object: any): _169.Validator; + encode(message: _115.Validator, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _115.Validator; + fromPartial(object: any): _115.Validator; }; ValidatorUpdate: { - encode(message: _169.ValidatorUpdate, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _169.ValidatorUpdate; - fromPartial(object: any): _169.ValidatorUpdate; + encode(message: _115.ValidatorUpdate, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _115.ValidatorUpdate; + fromPartial(object: any): _115.ValidatorUpdate; }; VoteInfo: { - encode(message: _169.VoteInfo, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _169.VoteInfo; - fromPartial(object: any): _169.VoteInfo; + encode(message: _115.VoteInfo, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _115.VoteInfo; + fromPartial(object: any): _115.VoteInfo; }; Evidence: { - encode(message: _169.Evidence, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _169.Evidence; - fromPartial(object: any): _169.Evidence; + encode(message: _115.Evidence, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _115.Evidence; + fromPartial(object: any): _115.Evidence; }; Snapshot: { - encode(message: _169.Snapshot, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _169.Snapshot; - fromPartial(object: any): _169.Snapshot; + encode(message: _115.Snapshot, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _115.Snapshot; + fromPartial(object: any): _115.Snapshot; }; }; const crypto: { Proof: { - encode(message: _171.Proof, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _171.Proof; - fromPartial(object: any): _171.Proof; + encode(message: _117.Proof, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _117.Proof; + fromPartial(object: any): _117.Proof; }; ValueOp: { - encode(message: _171.ValueOp, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _171.ValueOp; - fromPartial(object: any): _171.ValueOp; + encode(message: _117.ValueOp, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _117.ValueOp; + fromPartial(object: any): _117.ValueOp; }; DominoOp: { - encode(message: _171.DominoOp, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _171.DominoOp; - fromPartial(object: any): _171.DominoOp; + encode(message: _117.DominoOp, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _117.DominoOp; + fromPartial(object: any): _117.DominoOp; }; ProofOp: { - encode(message: _171.ProofOp, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _171.ProofOp; - fromPartial(object: any): _171.ProofOp; + encode(message: _117.ProofOp, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _117.ProofOp; + fromPartial(object: any): _117.ProofOp; }; ProofOps: { - encode(message: _171.ProofOps, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _171.ProofOps; - fromPartial(object: any): _171.ProofOps; + encode(message: _117.ProofOps, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _117.ProofOps; + fromPartial(object: any): _117.ProofOps; }; PublicKey: { - encode(message: _170.PublicKey, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _170.PublicKey; - fromPartial(object: any): _170.PublicKey; + encode(message: _116.PublicKey, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _116.PublicKey; + fromPartial(object: any): _116.PublicKey; }; }; namespace libs { const bits: { BitArray: { - encode(message: _172.BitArray, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _172.BitArray; - fromPartial(object: any): _172.BitArray; + encode(message: _118.BitArray, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _118.BitArray; + fromPartial(object: any): _118.BitArray; }; }; } const p2p: { ProtocolVersion: { - encode(message: _173.ProtocolVersion, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _173.ProtocolVersion; - fromPartial(object: any): _173.ProtocolVersion; + encode(message: _119.ProtocolVersion, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _119.ProtocolVersion; + fromPartial(object: any): _119.ProtocolVersion; }; NodeInfo: { - encode(message: _173.NodeInfo, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _173.NodeInfo; - fromPartial(object: any): _173.NodeInfo; + encode(message: _119.NodeInfo, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _119.NodeInfo; + fromPartial(object: any): _119.NodeInfo; }; NodeInfoOther: { - encode(message: _173.NodeInfoOther, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _173.NodeInfoOther; - fromPartial(object: any): _173.NodeInfoOther; + encode(message: _119.NodeInfoOther, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _119.NodeInfoOther; + fromPartial(object: any): _119.NodeInfoOther; }; PeerInfo: { - encode(message: _173.PeerInfo, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _173.PeerInfo; - fromPartial(object: any): _173.PeerInfo; + encode(message: _119.PeerInfo, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _119.PeerInfo; + fromPartial(object: any): _119.PeerInfo; }; PeerAddressInfo: { - encode(message: _173.PeerAddressInfo, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _173.PeerAddressInfo; - fromPartial(object: any): _173.PeerAddressInfo; + encode(message: _119.PeerAddressInfo, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _119.PeerAddressInfo; + fromPartial(object: any): _119.PeerAddressInfo; }; }; const types: { ValidatorSet: { - encode(message: _178.ValidatorSet, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _178.ValidatorSet; - fromPartial(object: any): _178.ValidatorSet; + encode(message: _124.ValidatorSet, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _124.ValidatorSet; + fromPartial(object: any): _124.ValidatorSet; }; Validator: { - encode(message: _178.Validator, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _178.Validator; - fromPartial(object: any): _178.Validator; + encode(message: _124.Validator, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _124.Validator; + fromPartial(object: any): _124.Validator; }; SimpleValidator: { - encode(message: _178.SimpleValidator, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _178.SimpleValidator; - fromPartial(object: any): _178.SimpleValidator; - }; - blockIDFlagFromJSON(object: any): _177.BlockIDFlag; - blockIDFlagToJSON(object: _177.BlockIDFlag): string; - signedMsgTypeFromJSON(object: any): _177.SignedMsgType; - signedMsgTypeToJSON(object: _177.SignedMsgType): string; - BlockIDFlag: typeof _177.BlockIDFlag; - BlockIDFlagSDKType: typeof _177.BlockIDFlag; - SignedMsgType: typeof _177.SignedMsgType; - SignedMsgTypeSDKType: typeof _177.SignedMsgType; + encode(message: _124.SimpleValidator, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _124.SimpleValidator; + fromPartial(object: any): _124.SimpleValidator; + }; + blockIDFlagFromJSON(object: any): _123.BlockIDFlag; + blockIDFlagToJSON(object: _123.BlockIDFlag): string; + signedMsgTypeFromJSON(object: any): _123.SignedMsgType; + signedMsgTypeToJSON(object: _123.SignedMsgType): string; + BlockIDFlag: typeof _123.BlockIDFlag; + BlockIDFlagSDKType: typeof _123.BlockIDFlag; + SignedMsgType: typeof _123.SignedMsgType; + SignedMsgTypeSDKType: typeof _123.SignedMsgType; PartSetHeader: { - encode(message: _177.PartSetHeader, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _177.PartSetHeader; - fromPartial(object: any): _177.PartSetHeader; + encode(message: _123.PartSetHeader, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _123.PartSetHeader; + fromPartial(object: any): _123.PartSetHeader; }; Part: { - encode(message: _177.Part, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _177.Part; - fromPartial(object: any): _177.Part; + encode(message: _123.Part, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _123.Part; + fromPartial(object: any): _123.Part; }; BlockID: { - encode(message: _177.BlockID, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _177.BlockID; - fromPartial(object: any): _177.BlockID; + encode(message: _123.BlockID, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _123.BlockID; + fromPartial(object: any): _123.BlockID; }; Header: { - encode(message: _177.Header, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _177.Header; - fromPartial(object: any): _177.Header; + encode(message: _123.Header, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _123.Header; + fromPartial(object: any): _123.Header; }; Data: { - encode(message: _177.Data, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _177.Data; - fromPartial(object: any): _177.Data; + encode(message: _123.Data, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _123.Data; + fromPartial(object: any): _123.Data; }; Vote: { - encode(message: _177.Vote, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _177.Vote; - fromPartial(object: any): _177.Vote; + encode(message: _123.Vote, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _123.Vote; + fromPartial(object: any): _123.Vote; }; Commit: { - encode(message: _177.Commit, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _177.Commit; - fromPartial(object: any): _177.Commit; + encode(message: _123.Commit, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _123.Commit; + fromPartial(object: any): _123.Commit; }; CommitSig: { - encode(message: _177.CommitSig, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _177.CommitSig; - fromPartial(object: any): _177.CommitSig; + encode(message: _123.CommitSig, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _123.CommitSig; + fromPartial(object: any): _123.CommitSig; }; Proposal: { - encode(message: _177.Proposal, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _177.Proposal; - fromPartial(object: any): _177.Proposal; + encode(message: _123.Proposal, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _123.Proposal; + fromPartial(object: any): _123.Proposal; }; SignedHeader: { - encode(message: _177.SignedHeader, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _177.SignedHeader; - fromPartial(object: any): _177.SignedHeader; + encode(message: _123.SignedHeader, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _123.SignedHeader; + fromPartial(object: any): _123.SignedHeader; }; LightBlock: { - encode(message: _177.LightBlock, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _177.LightBlock; - fromPartial(object: any): _177.LightBlock; + encode(message: _123.LightBlock, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _123.LightBlock; + fromPartial(object: any): _123.LightBlock; }; BlockMeta: { - encode(message: _177.BlockMeta, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _177.BlockMeta; - fromPartial(object: any): _177.BlockMeta; + encode(message: _123.BlockMeta, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _123.BlockMeta; + fromPartial(object: any): _123.BlockMeta; }; TxProof: { - encode(message: _177.TxProof, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _177.TxProof; - fromPartial(object: any): _177.TxProof; + encode(message: _123.TxProof, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _123.TxProof; + fromPartial(object: any): _123.TxProof; }; ConsensusParams: { - encode(message: _176.ConsensusParams, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _176.ConsensusParams; - fromPartial(object: any): _176.ConsensusParams; + encode(message: _122.ConsensusParams, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _122.ConsensusParams; + fromPartial(object: any): _122.ConsensusParams; }; BlockParams: { - encode(message: _176.BlockParams, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _176.BlockParams; - fromPartial(object: any): _176.BlockParams; + encode(message: _122.BlockParams, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _122.BlockParams; + fromPartial(object: any): _122.BlockParams; }; EvidenceParams: { - encode(message: _176.EvidenceParams, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _176.EvidenceParams; - fromPartial(object: any): _176.EvidenceParams; + encode(message: _122.EvidenceParams, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _122.EvidenceParams; + fromPartial(object: any): _122.EvidenceParams; }; ValidatorParams: { - encode(message: _176.ValidatorParams, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _176.ValidatorParams; - fromPartial(object: any): _176.ValidatorParams; + encode(message: _122.ValidatorParams, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _122.ValidatorParams; + fromPartial(object: any): _122.ValidatorParams; }; VersionParams: { - encode(message: _176.VersionParams, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _176.VersionParams; - fromPartial(object: any): _176.VersionParams; + encode(message: _122.VersionParams, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _122.VersionParams; + fromPartial(object: any): _122.VersionParams; }; HashedParams: { - encode(message: _176.HashedParams, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _176.HashedParams; - fromPartial(object: any): _176.HashedParams; + encode(message: _122.HashedParams, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _122.HashedParams; + fromPartial(object: any): _122.HashedParams; }; Evidence: { - encode(message: _175.Evidence, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _175.Evidence; - fromPartial(object: any): _175.Evidence; + encode(message: _121.Evidence, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _121.Evidence; + fromPartial(object: any): _121.Evidence; }; DuplicateVoteEvidence: { - encode(message: _175.DuplicateVoteEvidence, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _175.DuplicateVoteEvidence; - fromPartial(object: any): _175.DuplicateVoteEvidence; + encode(message: _121.DuplicateVoteEvidence, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _121.DuplicateVoteEvidence; + fromPartial(object: any): _121.DuplicateVoteEvidence; }; LightClientAttackEvidence: { - encode(message: _175.LightClientAttackEvidence, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _175.LightClientAttackEvidence; - fromPartial(object: any): _175.LightClientAttackEvidence; + encode(message: _121.LightClientAttackEvidence, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _121.LightClientAttackEvidence; + fromPartial(object: any): _121.LightClientAttackEvidence; }; EvidenceList: { - encode(message: _175.EvidenceList, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _175.EvidenceList; - fromPartial(object: any): _175.EvidenceList; + encode(message: _121.EvidenceList, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _121.EvidenceList; + fromPartial(object: any): _121.EvidenceList; }; Block: { - encode(message: _174.Block, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _174.Block; - fromPartial(object: any): _174.Block; + encode(message: _120.Block, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _120.Block; + fromPartial(object: any): _120.Block; }; }; const version: { App: { - encode(message: _179.App, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _179.App; - fromPartial(object: any): _179.App; + encode(message: _125.App, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _125.App; + fromPartial(object: any): _125.App; }; Consensus: { - encode(message: _179.Consensus, writer?: import("protobufjs").Writer): import("protobufjs").Writer; - decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _179.Consensus; - fromPartial(object: any): _179.Consensus; + encode(message: _125.Consensus, writer?: import("protobufjs").Writer): import("protobufjs").Writer; + decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _125.Consensus; + fromPartial(object: any): _125.Consensus; }; }; } diff --git a/packages/react/package.json b/packages/react/package.json index b1ef4054..ecdf32a3 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -1,6 +1,6 @@ { "name": "@sei-js/react", - "version": "2.1.0", + "version": "0.0.0-internal-20230811175927", "description": "React library for front end integrations with Sei", "main": "./dist/index.js", "types": "./dist/index.d.ts", @@ -23,7 +23,7 @@ "private": false, "dependencies": { "@react-icons/all-files": "^4.1.0", - "@sei-js/core": "^1.5.0", + "@sei-js/core": "0.0.0-internal-20230811175927", "react-outside-click-handler": "^1.3.0" }, "peerDependencies": { diff --git a/packages/react/src/lib/components/WalletConnectButton/styles.css b/packages/react/src/lib/components/WalletConnectButton/styles.css index 77ce4a1c..00d29f9b 100644 --- a/packages/react/src/lib/components/WalletConnectButton/styles.css +++ b/packages/react/src/lib/components/WalletConnectButton/styles.css @@ -12,6 +12,7 @@ gap: 12px; background-color: var(--wallet-background-color); border-radius: 4px; + border: #2c2c2c22 solid 1px; } .wallet__menu--item { diff --git a/packages/react/src/lib/components/WalletSelectModal/WalletSelectModal.tsx b/packages/react/src/lib/components/WalletSelectModal/WalletSelectModal.tsx index de85b4cc..8bbecb9e 100644 --- a/packages/react/src/lib/components/WalletSelectModal/WalletSelectModal.tsx +++ b/packages/react/src/lib/components/WalletSelectModal/WalletSelectModal.tsx @@ -7,6 +7,7 @@ import { BiErrorAlt } from '@react-icons/all-files/bi/BiErrorAlt'; import { BiError } from '@react-icons/all-files/bi/BiError'; import { FaCheckCircle } from '@react-icons/all-files/fa/FaCheckCircle'; import { SeiWallet } from '@sei-js/core'; +import { AiFillLeftCircle } from '@react-icons/all-files/ai/AiFillLeftCircle'; const WalletSelectModal = ({ wallets: inputWallets }: WalletSelectModalProps) => { const { connectedWallet, setTargetWallet, wallets, connectionError, targetWallet, setConnectionError, showConnectModal, setShowConnectModal } = @@ -15,6 +16,8 @@ const WalletSelectModal = ({ wallets: inputWallets }: WalletSelectModalProps) => const visibleWallets = inputWallets || wallets || []; const [isConnecting, setIsConnecting] = useState(false); + const [infoTitle, setInfoTitle] = useState(); + const [isMobile, setIsMobile] = useState(false); useEffect(() => { if (connectedWallet || connectionError) { @@ -22,8 +25,27 @@ const WalletSelectModal = ({ wallets: inputWallets }: WalletSelectModalProps) => } }, [connectedWallet, connectionError]); + useEffect(() => { + const handleResize = () => { + setIsMobile(window.innerWidth < 480); + }; + setIsMobile(window.innerWidth < 480); + window.addEventListener('resize', handleResize); + return () => window.removeEventListener('resize', handleResize); + }, []); + + const isWalletInstalled: boolean = targetWallet !== undefined && window[targetWallet.walletInfo.windowKey as never] !== undefined; + + const hasImportantInfo = connectionError || infoTitle; + const closeModal = (e) => { e.stopPropagation(); + + if (infoTitle) { + setInfoTitle(undefined); + return; + } + setConnectionError(undefined); setShowConnectModal(false); }; @@ -37,7 +59,7 @@ const WalletSelectModal = ({ wallets: inputWallets }: WalletSelectModalProps) => }; const selectWallet = async () => { - if (setTargetWallet) setTargetWallet(wallet); + setTargetWallet(wallet); setIsConnecting(true); setConnectionError(undefined); }; @@ -58,7 +80,7 @@ const WalletSelectModal = ({ wallets: inputWallets }: WalletSelectModalProps) => ); }; - const renderRightSide = () => { + const renderAdditionalInfo = () => { if (isConnecting) { return (
@@ -68,13 +90,24 @@ const WalletSelectModal = ({ wallets: inputWallets }: WalletSelectModalProps) => ); } - const isWalletNotInstalled = targetWallet && !window[targetWallet.walletInfo.windowKey as never]; - - if (isWalletNotInstalled) { + if (!isWalletInstalled && targetWallet) { return ( -
- -

{targetWallet?.walletInfo?.name || 'Wallet'} not installed

+
+
{ + setConnectionError(undefined); + setTargetWallet(undefined); + }}> + +

{targetWallet?.walletInfo?.name || 'Wallet'} not installed

+
+
+ +

+ Please ensure you open this webpage from within the {targetWallet?.walletInfo?.name || 'Wallet'} mobile app. +

+
{targetWallet?.walletInfo.website && ( Download {targetWallet?.walletInfo.name} @@ -87,8 +120,19 @@ const WalletSelectModal = ({ wallets: inputWallets }: WalletSelectModalProps) => if (connectionError) { return (
- -

We couldn't connect to {targetWallet?.walletInfo?.name || 'your wallet'}

+
{ + setConnectionError(undefined); + setTargetWallet(undefined); + }}> + +

Connection error

+
+
+ +

We couldn't connect to {targetWallet?.walletInfo?.name || 'your wallet'}

+

How to resolve this issue?

A pending action or a locked wallet can cause issues. Please open the extension manually and try again.

@@ -97,7 +141,7 @@ const WalletSelectModal = ({ wallets: inputWallets }: WalletSelectModalProps) => ); } - if (connectedWallet) { + if (connectedWallet && !hasImportantInfo) { return (
{targetWallet?.walletInfo.icon} @@ -106,9 +150,14 @@ const WalletSelectModal = ({ wallets: inputWallets }: WalletSelectModalProps) => ); } + if (!hasImportantInfo && isMobile) return null; + return (
-

New to using a wallet?

+
setInfoTitle(undefined)}> + setInfoTitle(undefined)} /> +

New to using a wallet?

+

A Secure Hub for Digital Transactions

Wallets provide a secure environment for signing and sending transactions involving your tokens and NFTs.

@@ -123,18 +172,50 @@ const WalletSelectModal = ({ wallets: inputWallets }: WalletSelectModalProps) => if (!showConnectModal) return null; + const renderContent = () => { + const shouldShowHomeInfo = !hasImportantInfo || !isMobile; + + return ( + <> + {shouldShowHomeInfo && ( +
+

Connect a wallet

+ +
+ )} + +
+ {shouldShowHomeInfo && ( + <> +
{visibleWallets.map(renderWallet)}
+
+ + )} + {renderAdditionalInfo()} +
+ + ); + }; + + const renderMobileHelper = () => { + if (hasImportantInfo) return null; + + const title = 'New to using a wallet?'; + + return ( +
+

setInfoTitle(title)}> + {title} +

+
+ ); + }; + return (
e.stopPropagation()} className='modal__card'> -
-

Connect a wallet

- -
-
-
{visibleWallets.map(renderWallet)}
-
- {renderRightSide()} -
+ {renderContent()} + {renderMobileHelper()}
); diff --git a/packages/react/src/lib/components/WalletSelectModal/styles.css b/packages/react/src/lib/components/WalletSelectModal/styles.css index 80c9b295..b7f241b0 100644 --- a/packages/react/src/lib/components/WalletSelectModal/styles.css +++ b/packages/react/src/lib/components/WalletSelectModal/styles.css @@ -30,43 +30,38 @@ backdrop-filter: blur(3px); background-color: #f1f1f133; z-index: 2; - padding: 24px; + padding: 2rem; } .modal__background * { display: flex; flex-direction: row; margin: 0; - font-family: Roboto, Helvetica, sans-serif; box-sizing: border-box; - line-height: 1.5; - font-synthesis: none; - text-rendering: optimizeLegibility; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; - -webkit-text-size-adjust: 100%; } .modal__card { display: flex; flex-direction: column; + justify-content: center; + align-items: center; background-color: var(--wallet-background-color); - border-radius: 12px; + border-radius: 1rem; z-index: 10; - padding: 24px; + padding: 2rem; max-height: 100%; width: 100%; max-width: 720px; min-height: 440px; box-shadow: rgba(14, 15, 16, 0.1) 3px 9px 24px; overflow-x: hidden; - gap: 48px; + gap: 2rem; + } .card__header { display: flex; - min-height: 26px; - height: 26px; + min-height: 2rem; width: 100%; justify-content: space-between; } @@ -78,8 +73,8 @@ .card__header--close { transition: 70ms all ease-out; color: var(--wallet-primary-color); - width: 26px; - height: 26px; + width: 2rem; + height: 2rem; cursor: pointer; } @@ -95,17 +90,18 @@ display: flex; flex-direction: row; flex: 1; - gap: 24px; - margin-bottom: 26px; + gap: 2rem; + width: 100%; } .card__content--wallets { display: flex; flex-direction: column; - gap: 12px; + gap: 1rem; width: 280px; max-width: 280px; min-width: 280px; + height: fit-content; } .card__content--separator { @@ -118,21 +114,20 @@ .card__right { display: flex; flex-direction: column; - gap: 24px; + gap: 2rem; align-items: center; - margin-bottom: 48px; width: 100%; - padding: 0 36px 0 24px; + padding: 0; } .card__right-centered { display: flex; flex-direction: column; justify-content: center; - gap: 24px; + gap: 2rem; align-items: center; width: 100%; - padding: 0 36px 0 24px; + padding: 0 3rem 0 2rem; opacity: 0; animation: walletFadeIn 0.15s 0.3s forwards; } @@ -144,6 +139,10 @@ max-width: 300px; } +.card__content--mobile-helper { + display: none; +} + .card__right--item-title { color: var(--wallet-primary-color); font-weight: 600; @@ -153,18 +152,50 @@ color: var(--wallet-secondary-color); } -.card__right--icon{ +.card__right--icon { + display: none; +} + +.mobile-only { + display: none; +} + +.desktop-only { + display: unset; +} + +.card__right--error{ + flex-direction: column; + align-items: center; + gap: 2rem; +} + +.card__right--error-icon{ + align-items: center; + justify-content: center; color: var(--wallet-primary-color); width: 72px; height: 72px; } +.card__right--error-description{ + color: var(--wallet-secondary-color); + text-align: center; +} + .card__right--title { color: var(--wallet-primary-color); text-align: center; font-weight: 600; font-size: 1.25rem; - margin-bottom: 24px; + width: 100%; + gap: 1rem; +} + +.card__right--title-mobile { + color: #8c8c8c; + text-align: center; + width: 100%; } .card__right--download { @@ -191,14 +222,14 @@ max-height: 48px; min-width: 48px; min-height: 48px; - border-radius: 12px; + border-radius: 1rem; } .wallet__item { - padding: 0 12px; + padding: 0 1rem; justify-content: space-between; align-items: center; - border-radius: 6px; + border-radius: 0.5rem; border: transparent solid 2px; transition: 50ms all ease-out; user-select: none; @@ -225,14 +256,14 @@ display: flex; flex-direction: row; align-items: center; - gap: 12px; + gap: 1rem; padding: 0.5rem; } .wallet__item--info-icon { border-radius: 50%; - width: 24px; - height: 24px; + width: 2rem; + height: 2rem; } .wallet__item--info-name { @@ -246,3 +277,87 @@ height: 18px; width: 18px; } + +.card__right-desktop { + width: 100%; +} + +.card__right--header { + flex-direction: column; + align-items: center; + gap: 2rem; +} + +@media (max-width: 480px) { + .card__right { + justify-content: flex-start; + gap: 0; + flex: 1; + height: fit-content; + } + + .card__right--error { + margin-bottom: 1rem; + } + + .card__content--separator { + display: none; + } + + .card__right-centered { + margin: 2rem 0; + display: none; + } + + .modal__card { + flex-direction: column; + gap: 2rem; + min-height: 224px; + } + + .card__content { + margin: 0; + } + + .card__content--mobile-helper { + display: flex; + } + + .card__right { + padding: 0; + justify-content: flex-start; + margin: 0; + gap: 1rem; + } + + .card__right-desktop { + display: none; + } + + .card__right--header { + flex-direction: row; + align-items: center; + width: 100%; + gap: 1rem; + margin-bottom: 1rem; + } + + .card__right--icon { + display: unset; + width: 2rem; + height: 2rem; + } + + .card__right--title { + font-size: 1.15rem; + width: 100%; + } + + .mobile-only { + display: flex; + } + + .desktop-only { + display: none; + } +} diff --git a/packages/react/src/lib/hooks/useCosmWasmClient/useCosmWasmClient.ts b/packages/react/src/lib/hooks/useCosmWasmClient/useCosmWasmClient.ts index c9c3b59c..b8274dcc 100644 --- a/packages/react/src/lib/hooks/useCosmWasmClient/useCosmWasmClient.ts +++ b/packages/react/src/lib/hooks/useCosmWasmClient/useCosmWasmClient.ts @@ -3,38 +3,35 @@ import { getCosmWasmClient } from '@sei-js/core'; import { CosmWasmClient } from '@cosmjs/cosmwasm-stargate'; import { SeiWalletContext } from '../../provider'; -import { shouldUseTm34Client } from '../../utils'; export type UseCosmWasmClient = { - isLoading: boolean; - cosmWasmClient?: CosmWasmClient; + isLoading: boolean; + cosmWasmClient?: CosmWasmClient; }; const useCosmWasmClient = (customRpcUrl?: string): UseCosmWasmClient => { - const { rpcUrl, chainId } = useContext(SeiWalletContext); - - const [isLoading, setIsLoading] = useState(true); - const [cosmWasmClient, setCosmWasmClient] = useState(); - - useEffect(() => { - const getClient = async () => { - try { - if (!rpcUrl || !chainId) return; - setIsLoading(true); - const client = await getCosmWasmClient(customRpcUrl || rpcUrl, { - useTM34: shouldUseTm34Client(chainId), - }); - setCosmWasmClient(client); - setIsLoading(false); - } catch { - console.error('Error creating cosmwasm client'); - } - }; - - getClient(); - }, [customRpcUrl, rpcUrl, chainId]); - - return { isLoading, cosmWasmClient }; + const { rpcUrl, chainId } = useContext(SeiWalletContext); + + const [isLoading, setIsLoading] = useState(true); + const [cosmWasmClient, setCosmWasmClient] = useState(); + + useEffect(() => { + const getClient = async () => { + try { + if (!rpcUrl || !chainId) return; + setIsLoading(true); + const client = await getCosmWasmClient(customRpcUrl || rpcUrl); + setCosmWasmClient(client); + setIsLoading(false); + } catch { + console.error('Error creating cosmwasm client'); + } + }; + + getClient(); + }, [customRpcUrl, rpcUrl, chainId]); + + return { isLoading, cosmWasmClient }; }; export default useCosmWasmClient; diff --git a/packages/react/src/lib/hooks/useSigningClient/useSigningClient.ts b/packages/react/src/lib/hooks/useSigningClient/useSigningClient.ts index ef26995d..4044efb5 100644 --- a/packages/react/src/lib/hooks/useSigningClient/useSigningClient.ts +++ b/packages/react/src/lib/hooks/useSigningClient/useSigningClient.ts @@ -3,42 +3,35 @@ import { getSigningClient } from '@sei-js/core'; import { SigningStargateClient } from '@cosmjs/stargate'; import { SeiWalletContext } from '../../provider'; -import { shouldUseTm34Client } from '../../utils'; export type UseSigningClient = { - isLoading: boolean; - signingClient?: SigningStargateClient; + isLoading: boolean; + signingClient?: SigningStargateClient; }; const useSigningClient = (customRpcUrl?: string): UseSigningClient => { - const { offlineSigner, rpcUrl, chainId } = useContext(SeiWalletContext); - - const [isLoading, setIsLoading] = useState(true); - const [signingClient, setSigningClient] = useState(); - - useEffect(() => { - const getClient = async () => { - try { - if (!rpcUrl || !offlineSigner || !chainId) return; - setIsLoading(true); - const client = await getSigningClient( - customRpcUrl || rpcUrl, - offlineSigner, - { - useTM34: shouldUseTm34Client(chainId), - } - ); - setSigningClient(client); - setIsLoading(false); - } catch { - console.error('Error creating signing client'); - } - }; - - getClient(); - }, [customRpcUrl, rpcUrl, chainId, offlineSigner]); - - return { signingClient, isLoading }; + const { offlineSigner, rpcUrl, chainId } = useContext(SeiWalletContext); + + const [isLoading, setIsLoading] = useState(true); + const [signingClient, setSigningClient] = useState(); + + useEffect(() => { + const getClient = async () => { + try { + if (!rpcUrl || !offlineSigner || !chainId) return; + setIsLoading(true); + const client = await getSigningClient(customRpcUrl || rpcUrl, offlineSigner); + setSigningClient(client); + setIsLoading(false); + } catch { + console.error('Error creating signing client'); + } + }; + + getClient(); + }, [customRpcUrl, rpcUrl, chainId, offlineSigner]); + + return { signingClient, isLoading }; }; export default useSigningClient; diff --git a/packages/react/src/lib/hooks/useSigningCosmWasmClient/useSigningCosmWasmClient.ts b/packages/react/src/lib/hooks/useSigningCosmWasmClient/useSigningCosmWasmClient.ts index 0d381d3c..c581097d 100644 --- a/packages/react/src/lib/hooks/useSigningCosmWasmClient/useSigningCosmWasmClient.ts +++ b/packages/react/src/lib/hooks/useSigningCosmWasmClient/useSigningCosmWasmClient.ts @@ -3,45 +3,35 @@ import { getSigningCosmWasmClient } from '@sei-js/core'; import { SigningCosmWasmClient } from '@cosmjs/cosmwasm-stargate'; import { SeiWalletContext } from '../../provider'; -import { shouldUseTm34Client } from '../../utils'; export type UseSigningCosmWasmClient = { - isLoading: boolean; - signingCosmWasmClient?: SigningCosmWasmClient; + isLoading: boolean; + signingCosmWasmClient?: SigningCosmWasmClient; }; -const useSigningCosmWasmClient = ( - customRpcUrl?: string -): UseSigningCosmWasmClient => { - const { offlineSigner, rpcUrl, chainId } = useContext(SeiWalletContext); - - const [isLoading, setIsLoading] = useState(true); - const [signingCosmWasmClient, setSigningCosmWasmClient] = - useState(); - - useEffect(() => { - const getClient = async () => { - try { - if (!rpcUrl || !offlineSigner || !chainId) return; - setIsLoading(true); - const client = await getSigningCosmWasmClient( - customRpcUrl || rpcUrl, - offlineSigner, - { - useTM34: shouldUseTm34Client(chainId), - } - ); - setSigningCosmWasmClient(client); - setIsLoading(false); - } catch { - console.error('Error creating signing cosmwasm client'); - } - }; - - getClient(); - }, [customRpcUrl, rpcUrl, chainId, offlineSigner]); - - return { signingCosmWasmClient, isLoading }; +const useSigningCosmWasmClient = (customRpcUrl?: string): UseSigningCosmWasmClient => { + const { offlineSigner, rpcUrl, chainId } = useContext(SeiWalletContext); + + const [isLoading, setIsLoading] = useState(true); + const [signingCosmWasmClient, setSigningCosmWasmClient] = useState(); + + useEffect(() => { + const getClient = async () => { + try { + if (!rpcUrl || !offlineSigner || !chainId) return; + setIsLoading(true); + const client = await getSigningCosmWasmClient(customRpcUrl || rpcUrl, offlineSigner); + setSigningCosmWasmClient(client); + setIsLoading(false); + } catch { + console.error('Error creating signing cosmwasm client'); + } + }; + + getClient(); + }, [customRpcUrl, rpcUrl, chainId, offlineSigner]); + + return { signingCosmWasmClient, isLoading }; }; export default useSigningCosmWasmClient; diff --git a/packages/react/src/lib/hooks/useStargateClient/useStargateClient.ts b/packages/react/src/lib/hooks/useStargateClient/useStargateClient.ts index f0b25cb7..584ec207 100644 --- a/packages/react/src/lib/hooks/useStargateClient/useStargateClient.ts +++ b/packages/react/src/lib/hooks/useStargateClient/useStargateClient.ts @@ -3,38 +3,35 @@ import { getStargateClient } from '@sei-js/core'; import { StargateClient } from '@cosmjs/stargate'; import { SeiWalletContext } from '../../provider'; -import { shouldUseTm34Client } from '../../utils'; export type UseStargateClient = { - isLoading: boolean; - stargateClient?: StargateClient; + isLoading: boolean; + stargateClient?: StargateClient; }; const useStargateClient = (customRpcUrl?: string): UseStargateClient => { - const { rpcUrl, chainId } = useContext(SeiWalletContext); - - const [isLoading, setIsLoading] = useState(true); - const [stargateClient, setStargateClient] = useState(); - - useEffect(() => { - const getClient = async () => { - try { - if (!rpcUrl || !chainId) return; - setIsLoading(true); - const client = await getStargateClient(customRpcUrl || rpcUrl, { - useTM34: shouldUseTm34Client(chainId), - }); - setStargateClient(client); - setIsLoading(false); - } catch { - console.error('Error creating signing client'); - } - }; - - getClient(); - }, [customRpcUrl, rpcUrl, chainId]); - - return { stargateClient, isLoading }; + const { rpcUrl, chainId } = useContext(SeiWalletContext); + + const [isLoading, setIsLoading] = useState(true); + const [stargateClient, setStargateClient] = useState(); + + useEffect(() => { + const getClient = async () => { + try { + if (!rpcUrl || !chainId) return; + setIsLoading(true); + const client = await getStargateClient(customRpcUrl || rpcUrl); + setStargateClient(client); + setIsLoading(false); + } catch { + console.error('Error creating signing client'); + } + }; + + getClient(); + }, [customRpcUrl, rpcUrl, chainId]); + + return { stargateClient, isLoading }; }; export default useStargateClient; diff --git a/packages/react/src/lib/provider/SeiWalletProvider.tsx b/packages/react/src/lib/provider/SeiWalletProvider.tsx index be474737..02973d70 100644 --- a/packages/react/src/lib/provider/SeiWalletProvider.tsx +++ b/packages/react/src/lib/provider/SeiWalletProvider.tsx @@ -34,6 +34,13 @@ const SeiWalletProvider = ({ children, chainConfiguration, wallets, autoConnect return acc; }, []); + const disconnect = () => { + setTargetWallet(undefined); + setOfflineSigner(undefined); + setAccounts([]); + setConnectedWallet(undefined); + }; + const connectToChain = async () => { if (!targetWallet) return; @@ -43,17 +50,19 @@ const SeiWalletProvider = ({ children, chainConfiguration, wallets, autoConnect return; } - // const enableResponse = await targetWallet.connect(chainConfiguration.chainId); + const enableResponse = await targetWallet.connect(chainConfiguration.chainId); const fetchedOfflineSigner = await targetWallet.getOfflineSigner(chainConfiguration.chainId); if (!fetchedOfflineSigner) { setConnectionError(targetWallet.walletInfo.windowKey); + disconnect(); return; } const fetchedAccounts = await targetWallet.getAccounts(chainConfiguration.chainId); if (fetchedAccounts.length === 0) { setConnectionError(targetWallet.walletInfo.windowKey); + disconnect(); return; } else { setShowConnectModal(false); @@ -78,13 +87,6 @@ const SeiWalletProvider = ({ children, chainConfiguration, wallets, autoConnect } }, [targetWallet, chainConfiguration.chainId]); - const disconnect = () => { - setTargetWallet(undefined); - setOfflineSigner(undefined); - setAccounts([]); - setConnectedWallet(undefined); - }; - const contextValue: WalletProvider = { chainId: chainConfiguration.chainId, restUrl: chainConfiguration.restUrl,