@hyperlane-xyz/cosmos-types 11.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +37 -0
- package/dist/index.d.ts +22 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +22 -0
- package/dist/index.js.map +1 -0
- package/dist/types/cosmos/app/v1alpha1/module.d.ts +204 -0
- package/dist/types/cosmos/app/v1alpha1/module.d.ts.map +1 -0
- package/dist/types/cosmos/app/v1alpha1/module.js +218 -0
- package/dist/types/cosmos/app/v1alpha1/module.js.map +1 -0
- package/dist/types/cosmos/base/query/v1beta1/pagination.d.ts +129 -0
- package/dist/types/cosmos/base/query/v1beta1/pagination.d.ts.map +1 -0
- package/dist/types/cosmos/base/query/v1beta1/pagination.js +231 -0
- package/dist/types/cosmos/base/query/v1beta1/pagination.js.map +1 -0
- package/dist/types/cosmos/base/v1beta1/coin.d.ts +74 -0
- package/dist/types/cosmos/base/v1beta1/coin.d.ts.map +1 -0
- package/dist/types/cosmos/base/v1beta1/coin.js +144 -0
- package/dist/types/cosmos/base/v1beta1/coin.js.map +1 -0
- package/dist/types/cosmos/msg/v1/msg.d.ts +2 -0
- package/dist/types/cosmos/msg/v1/msg.d.ts.map +1 -0
- package/dist/types/cosmos/msg/v1/msg.js +8 -0
- package/dist/types/cosmos/msg/v1/msg.js.map +1 -0
- package/dist/types/cosmos_proto/cosmos.d.ts +116 -0
- package/dist/types/cosmos_proto/cosmos.d.ts.map +1 -0
- package/dist/types/cosmos_proto/cosmos.js +223 -0
- package/dist/types/cosmos_proto/cosmos.js.map +1 -0
- package/dist/types/gogoproto/gogo.d.ts +2 -0
- package/dist/types/gogoproto/gogo.d.ts.map +1 -0
- package/dist/types/gogoproto/gogo.js +8 -0
- package/dist/types/gogoproto/gogo.js.map +1 -0
- package/dist/types/google/api/annotations.d.ts +2 -0
- package/dist/types/google/api/annotations.d.ts.map +1 -0
- package/dist/types/google/api/annotations.js +8 -0
- package/dist/types/google/api/annotations.js.map +1 -0
- package/dist/types/google/api/http.d.ts +3023 -0
- package/dist/types/google/api/http.d.ts.map +1 -0
- package/dist/types/google/api/http.js +353 -0
- package/dist/types/google/api/http.js.map +1 -0
- package/dist/types/google/protobuf/any.d.ts +155 -0
- package/dist/types/google/protobuf/any.d.ts.map +1 -0
- package/dist/types/google/protobuf/any.js +107 -0
- package/dist/types/google/protobuf/any.js.map +1 -0
- package/dist/types/google/protobuf/descriptor.d.ts +112572 -0
- package/dist/types/google/protobuf/descriptor.d.ts.map +1 -0
- package/dist/types/google/protobuf/descriptor.js +4418 -0
- package/dist/types/google/protobuf/descriptor.js.map +1 -0
- package/dist/types/hyperlane/core/interchain_security/v1/genesis.d.ts +159 -0
- package/dist/types/hyperlane/core/interchain_security/v1/genesis.d.ts.map +1 -0
- package/dist/types/hyperlane/core/interchain_security/v1/genesis.js +197 -0
- package/dist/types/hyperlane/core/interchain_security/v1/genesis.js.map +1 -0
- package/dist/types/hyperlane/core/interchain_security/v1/query.d.ts +321 -0
- package/dist/types/hyperlane/core/interchain_security/v1/query.d.ts.map +1 -0
- package/dist/types/hyperlane/core/interchain_security/v1/query.js +529 -0
- package/dist/types/hyperlane/core/interchain_security/v1/query.js.map +1 -0
- package/dist/types/hyperlane/core/interchain_security/v1/tx.d.ts +249 -0
- package/dist/types/hyperlane/core/interchain_security/v1/tx.d.ts.map +1 -0
- package/dist/types/hyperlane/core/interchain_security/v1/tx.js +576 -0
- package/dist/types/hyperlane/core/interchain_security/v1/tx.js.map +1 -0
- package/dist/types/hyperlane/core/interchain_security/v1/types.d.ts +125 -0
- package/dist/types/hyperlane/core/interchain_security/v1/types.d.ts.map +1 -0
- package/dist/types/hyperlane/core/interchain_security/v1/types.js +274 -0
- package/dist/types/hyperlane/core/interchain_security/v1/types.js.map +1 -0
- package/dist/types/hyperlane/core/module/v1/module.d.ts +41 -0
- package/dist/types/hyperlane/core/module/v1/module.d.ts.map +1 -0
- package/dist/types/hyperlane/core/module/v1/module.js +66 -0
- package/dist/types/hyperlane/core/module/v1/module.js.map +1 -0
- package/dist/types/hyperlane/core/post_dispatch/v1/events.d.ts +151 -0
- package/dist/types/hyperlane/core/post_dispatch/v1/events.d.ts.map +1 -0
- package/dist/types/hyperlane/core/post_dispatch/v1/events.js +364 -0
- package/dist/types/hyperlane/core/post_dispatch/v1/events.js.map +1 -0
- package/dist/types/hyperlane/core/post_dispatch/v1/genesis.d.ts +407 -0
- package/dist/types/hyperlane/core/post_dispatch/v1/genesis.d.ts.map +1 -0
- package/dist/types/hyperlane/core/post_dispatch/v1/genesis.js +240 -0
- package/dist/types/hyperlane/core/post_dispatch/v1/genesis.js.map +1 -0
- package/dist/types/hyperlane/core/post_dispatch/v1/query.d.ts +1200 -0
- package/dist/types/hyperlane/core/post_dispatch/v1/query.d.ts.map +1 -0
- package/dist/types/hyperlane/core/post_dispatch/v1/query.js +1280 -0
- package/dist/types/hyperlane/core/post_dispatch/v1/query.js.map +1 -0
- package/dist/types/hyperlane/core/post_dispatch/v1/tx.d.ts +439 -0
- package/dist/types/hyperlane/core/post_dispatch/v1/tx.d.ts.map +1 -0
- package/dist/types/hyperlane/core/post_dispatch/v1/tx.js +921 -0
- package/dist/types/hyperlane/core/post_dispatch/v1/tx.js.map +1 -0
- package/dist/types/hyperlane/core/post_dispatch/v1/types.d.ts +274 -0
- package/dist/types/hyperlane/core/post_dispatch/v1/types.d.ts.map +1 -0
- package/dist/types/hyperlane/core/post_dispatch/v1/types.js +527 -0
- package/dist/types/hyperlane/core/post_dispatch/v1/types.js.map +1 -0
- package/dist/types/hyperlane/core/v1/events.d.ts +110 -0
- package/dist/types/hyperlane/core/v1/events.d.ts.map +1 -0
- package/dist/types/hyperlane/core/v1/events.js +267 -0
- package/dist/types/hyperlane/core/v1/events.js.map +1 -0
- package/dist/types/hyperlane/core/v1/genesis.d.ts +712 -0
- package/dist/types/hyperlane/core/v1/genesis.d.ts.map +1 -0
- package/dist/types/hyperlane/core/v1/genesis.js +260 -0
- package/dist/types/hyperlane/core/v1/genesis.js.map +1 -0
- package/dist/types/hyperlane/core/v1/query.d.ts +471 -0
- package/dist/types/hyperlane/core/v1/query.d.ts.map +1 -0
- package/dist/types/hyperlane/core/v1/query.js +655 -0
- package/dist/types/hyperlane/core/v1/query.js.map +1 -0
- package/dist/types/hyperlane/core/v1/tx.d.ts +213 -0
- package/dist/types/hyperlane/core/v1/tx.d.ts.map +1 -0
- package/dist/types/hyperlane/core/v1/tx.js +522 -0
- package/dist/types/hyperlane/core/v1/tx.js.map +1 -0
- package/dist/types/hyperlane/core/v1/types.d.ts +76 -0
- package/dist/types/hyperlane/core/v1/types.d.ts.map +1 -0
- package/dist/types/hyperlane/core/v1/types.js +183 -0
- package/dist/types/hyperlane/core/v1/types.js.map +1 -0
- package/dist/types/hyperlane/warp/module/v1/module.d.ts +46 -0
- package/dist/types/hyperlane/warp/module/v1/module.d.ts.map +1 -0
- package/dist/types/hyperlane/warp/module/v1/module.js +91 -0
- package/dist/types/hyperlane/warp/module/v1/module.js.map +1 -0
- package/dist/types/hyperlane/warp/v1/events.d.ts +39 -0
- package/dist/types/hyperlane/warp/v1/events.d.ts.map +1 -0
- package/dist/types/hyperlane/warp/v1/events.js +82 -0
- package/dist/types/hyperlane/warp/v1/events.js.map +1 -0
- package/dist/types/hyperlane/warp/v1/genesis.d.ts +252 -0
- package/dist/types/hyperlane/warp/v1/genesis.d.ts.map +1 -0
- package/dist/types/hyperlane/warp/v1/genesis.js +182 -0
- package/dist/types/hyperlane/warp/v1/genesis.js.map +1 -0
- package/dist/types/hyperlane/warp/v1/query.d.ts +623 -0
- package/dist/types/hyperlane/warp/v1/query.d.ts.map +1 -0
- package/dist/types/hyperlane/warp/v1/query.js +803 -0
- package/dist/types/hyperlane/warp/v1/query.js.map +1 -0
- package/dist/types/hyperlane/warp/v1/tx.d.ts +399 -0
- package/dist/types/hyperlane/warp/v1/tx.d.ts.map +1 -0
- package/dist/types/hyperlane/warp/v1/tx.js +936 -0
- package/dist/types/hyperlane/warp/v1/tx.js.map +1 -0
- package/dist/types/hyperlane/warp/v1/types.d.ts +118 -0
- package/dist/types/hyperlane/warp/v1/types.d.ts.map +1 -0
- package/dist/types/hyperlane/warp/v1/types.js +340 -0
- package/dist/types/hyperlane/warp/v1/types.js.map +1 -0
- package/package.json +48 -0
package/README.md
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# Hyperlane Cosmos Module SDK Types
|
|
2
|
+
|
|
3
|
+
The Hyperlane Cosmos SDK Types contains autogenerated TypeScript types and proto encoders/decoders for the [Cosmos Hyperlane Module Implementation](https://github.com/bcp-innovations/hyperlane-cosmos).
|
|
4
|
+
It can be used inside an SDK for type support and for encoding and decoding the Hyperlane specific Cosmos transactions as well as other projects which might benefit from the Hyperlane Cosmos types.
|
|
5
|
+
|
|
6
|
+
## Install
|
|
7
|
+
|
|
8
|
+
```bash
|
|
9
|
+
# Install with NPM
|
|
10
|
+
npm install @hyperlane-xyz/cosmos-types
|
|
11
|
+
|
|
12
|
+
# Or with Yarn
|
|
13
|
+
yarn add @hyperlane-xyz/cosmos-types
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
## Setup
|
|
17
|
+
|
|
18
|
+
Before contributing make sure docker is installed and running which is needed for the type generation. Furthermore Node 18 or newer is required.
|
|
19
|
+
|
|
20
|
+
## Contribute
|
|
21
|
+
|
|
22
|
+
First you need to install the dependencies by running `yarn install`.
|
|
23
|
+
|
|
24
|
+
### Generating TS Types
|
|
25
|
+
|
|
26
|
+
You can automatically generate the TypeScript types from the proto files of the Cosmos Hyperlane Module by executing the following commands. Note that this only needs to be done if the proto files change in the Cosmos Hyperlane Module project.
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
cd typescript/cosmos-types
|
|
30
|
+
docker compose up
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
After this command has finished the newly generated types can be found under `src/types`.
|
|
34
|
+
|
|
35
|
+
### Building the project
|
|
36
|
+
|
|
37
|
+
You can build the project with `yarn build`, the build output can be found under `dist`.
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export * as coreEvents from './types/hyperlane/core/v1/events.js';
|
|
2
|
+
export * as coreGenesis from './types/hyperlane/core/v1/genesis.js';
|
|
3
|
+
export * as coreQuery from './types/hyperlane/core/v1/query.js';
|
|
4
|
+
export * as coreTx from './types/hyperlane/core/v1/tx.js';
|
|
5
|
+
export * as coreTypes from './types/hyperlane/core/v1/types.js';
|
|
6
|
+
export * as isGenesis from './types/hyperlane/core/interchain_security/v1/genesis.js';
|
|
7
|
+
export * as isQuery from './types/hyperlane/core/interchain_security/v1/query.js';
|
|
8
|
+
export * as isTx from './types/hyperlane/core/interchain_security/v1/tx.js';
|
|
9
|
+
export * as isTypes from './types/hyperlane/core/interchain_security/v1/types.js';
|
|
10
|
+
export * as pdEvents from './types/hyperlane/core/post_dispatch/v1/events.js';
|
|
11
|
+
export * as pdGenesis from './types/hyperlane/core/post_dispatch/v1/genesis.js';
|
|
12
|
+
export * as pdQuery from './types/hyperlane/core/post_dispatch/v1/query.js';
|
|
13
|
+
export * as pdTx from './types/hyperlane/core/post_dispatch/v1/tx.js';
|
|
14
|
+
export * as pdTypes from './types/hyperlane/core/post_dispatch/v1/types.js';
|
|
15
|
+
export * as warpEvents from './types/hyperlane/warp/v1/events.js';
|
|
16
|
+
export * as warpQuery from './types/hyperlane/warp/v1/query.js';
|
|
17
|
+
export * as warpTx from './types/hyperlane/warp/v1/tx.js';
|
|
18
|
+
export * as warpTypes from './types/hyperlane/warp/v1/types.js';
|
|
19
|
+
export * as pagination from './types/cosmos/base/query/v1beta1/pagination.js';
|
|
20
|
+
export * as coin from './types/cosmos/base/v1beta1/coin.js';
|
|
21
|
+
export * as any from './types/google/protobuf/any.js';
|
|
22
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,UAAU,MAAM,qCAAqC,CAAC;AAClE,OAAO,KAAK,WAAW,MAAM,sCAAsC,CAAC;AACpE,OAAO,KAAK,SAAS,MAAM,oCAAoC,CAAC;AAChE,OAAO,KAAK,MAAM,MAAM,iCAAiC,CAAC;AAC1D,OAAO,KAAK,SAAS,MAAM,oCAAoC,CAAC;AAEhE,OAAO,KAAK,SAAS,MAAM,0DAA0D,CAAC;AACtF,OAAO,KAAK,OAAO,MAAM,wDAAwD,CAAC;AAClF,OAAO,KAAK,IAAI,MAAM,qDAAqD,CAAC;AAC5E,OAAO,KAAK,OAAO,MAAM,wDAAwD,CAAC;AAElF,OAAO,KAAK,QAAQ,MAAM,mDAAmD,CAAC;AAC9E,OAAO,KAAK,SAAS,MAAM,oDAAoD,CAAC;AAChF,OAAO,KAAK,OAAO,MAAM,kDAAkD,CAAC;AAC5E,OAAO,KAAK,IAAI,MAAM,+CAA+C,CAAC;AACtE,OAAO,KAAK,OAAO,MAAM,kDAAkD,CAAC;AAE5E,OAAO,KAAK,UAAU,MAAM,qCAAqC,CAAC;AAClE,OAAO,KAAK,SAAS,MAAM,oCAAoC,CAAC;AAChE,OAAO,KAAK,MAAM,MAAM,iCAAiC,CAAC;AAC1D,OAAO,KAAK,SAAS,MAAM,oCAAoC,CAAC;AAEhE,OAAO,KAAK,UAAU,MAAM,iDAAiD,CAAC;AAC9E,OAAO,KAAK,IAAI,MAAM,qCAAqC,CAAC;AAC5D,OAAO,KAAK,GAAG,MAAM,gCAAgC,CAAC"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export * as coreEvents from './types/hyperlane/core/v1/events.js';
|
|
2
|
+
export * as coreGenesis from './types/hyperlane/core/v1/genesis.js';
|
|
3
|
+
export * as coreQuery from './types/hyperlane/core/v1/query.js';
|
|
4
|
+
export * as coreTx from './types/hyperlane/core/v1/tx.js';
|
|
5
|
+
export * as coreTypes from './types/hyperlane/core/v1/types.js';
|
|
6
|
+
export * as isGenesis from './types/hyperlane/core/interchain_security/v1/genesis.js';
|
|
7
|
+
export * as isQuery from './types/hyperlane/core/interchain_security/v1/query.js';
|
|
8
|
+
export * as isTx from './types/hyperlane/core/interchain_security/v1/tx.js';
|
|
9
|
+
export * as isTypes from './types/hyperlane/core/interchain_security/v1/types.js';
|
|
10
|
+
export * as pdEvents from './types/hyperlane/core/post_dispatch/v1/events.js';
|
|
11
|
+
export * as pdGenesis from './types/hyperlane/core/post_dispatch/v1/genesis.js';
|
|
12
|
+
export * as pdQuery from './types/hyperlane/core/post_dispatch/v1/query.js';
|
|
13
|
+
export * as pdTx from './types/hyperlane/core/post_dispatch/v1/tx.js';
|
|
14
|
+
export * as pdTypes from './types/hyperlane/core/post_dispatch/v1/types.js';
|
|
15
|
+
export * as warpEvents from './types/hyperlane/warp/v1/events.js';
|
|
16
|
+
export * as warpQuery from './types/hyperlane/warp/v1/query.js';
|
|
17
|
+
export * as warpTx from './types/hyperlane/warp/v1/tx.js';
|
|
18
|
+
export * as warpTypes from './types/hyperlane/warp/v1/types.js';
|
|
19
|
+
export * as pagination from './types/cosmos/base/query/v1beta1/pagination.js';
|
|
20
|
+
export * as coin from './types/cosmos/base/v1beta1/coin.js';
|
|
21
|
+
export * as any from './types/google/protobuf/any.js';
|
|
22
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,UAAU,MAAM,qCAAqC,CAAC;AAClE,OAAO,KAAK,WAAW,MAAM,sCAAsC,CAAC;AACpE,OAAO,KAAK,SAAS,MAAM,oCAAoC,CAAC;AAChE,OAAO,KAAK,MAAM,MAAM,iCAAiC,CAAC;AAC1D,OAAO,KAAK,SAAS,MAAM,oCAAoC,CAAC;AAEhE,OAAO,KAAK,SAAS,MAAM,0DAA0D,CAAC;AACtF,OAAO,KAAK,OAAO,MAAM,wDAAwD,CAAC;AAClF,OAAO,KAAK,IAAI,MAAM,qDAAqD,CAAC;AAC5E,OAAO,KAAK,OAAO,MAAM,wDAAwD,CAAC;AAElF,OAAO,KAAK,QAAQ,MAAM,mDAAmD,CAAC;AAC9E,OAAO,KAAK,SAAS,MAAM,oDAAoD,CAAC;AAChF,OAAO,KAAK,OAAO,MAAM,kDAAkD,CAAC;AAC5E,OAAO,KAAK,IAAI,MAAM,+CAA+C,CAAC;AACtE,OAAO,KAAK,OAAO,MAAM,kDAAkD,CAAC;AAE5E,OAAO,KAAK,UAAU,MAAM,qCAAqC,CAAC;AAClE,OAAO,KAAK,SAAS,MAAM,oCAAoC,CAAC;AAChE,OAAO,KAAK,MAAM,MAAM,iCAAiC,CAAC;AAC1D,OAAO,KAAK,SAAS,MAAM,oCAAoC,CAAC;AAEhE,OAAO,KAAK,UAAU,MAAM,iDAAiD,CAAC;AAC9E,OAAO,KAAK,IAAI,MAAM,qCAAqC,CAAC;AAC5D,OAAO,KAAK,GAAG,MAAM,gCAAgC,CAAC"}
|
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
import _m0 from 'protobufjs/minimal.js';
|
|
2
|
+
export declare const protobufPackage = "cosmos.app.v1alpha1";
|
|
3
|
+
/** ModuleDescriptor describes an app module. */
|
|
4
|
+
export interface ModuleDescriptor {
|
|
5
|
+
/**
|
|
6
|
+
* go_import names the package that should be imported by an app to load the
|
|
7
|
+
* module in the runtime module registry. It is required to make debugging
|
|
8
|
+
* of configuration errors easier for users.
|
|
9
|
+
*/
|
|
10
|
+
go_import: string;
|
|
11
|
+
/**
|
|
12
|
+
* use_package refers to a protobuf package that this module
|
|
13
|
+
* uses and exposes to the world. In an app, only one module should "use"
|
|
14
|
+
* or own a single protobuf package. It is assumed that the module uses
|
|
15
|
+
* all of the .proto files in a single package.
|
|
16
|
+
*/
|
|
17
|
+
use_package: PackageReference[];
|
|
18
|
+
/**
|
|
19
|
+
* can_migrate_from defines which module versions this module can migrate
|
|
20
|
+
* state from. The framework will check that one module version is able to
|
|
21
|
+
* migrate from a previous module version before attempting to update its
|
|
22
|
+
* config. It is assumed that modules can transitively migrate from earlier
|
|
23
|
+
* versions. For instance if v3 declares it can migrate from v2, and v2
|
|
24
|
+
* declares it can migrate from v1, the framework knows how to migrate
|
|
25
|
+
* from v1 to v3, assuming all 3 module versions are registered at runtime.
|
|
26
|
+
*/
|
|
27
|
+
can_migrate_from: MigrateFromInfo[];
|
|
28
|
+
}
|
|
29
|
+
/** PackageReference is a reference to a protobuf package used by a module. */
|
|
30
|
+
export interface PackageReference {
|
|
31
|
+
/** name is the fully-qualified name of the package. */
|
|
32
|
+
name: string;
|
|
33
|
+
/**
|
|
34
|
+
* revision is the optional revision of the package that is being used.
|
|
35
|
+
* Protobuf packages used in Cosmos should generally have a major version
|
|
36
|
+
* as the last part of the package name, ex. foo.bar.baz.v1.
|
|
37
|
+
* The revision of a package can be thought of as the minor version of a
|
|
38
|
+
* package which has additional backwards compatible definitions that weren't
|
|
39
|
+
* present in a previous version.
|
|
40
|
+
*
|
|
41
|
+
* A package should indicate its revision with a source code comment
|
|
42
|
+
* above the package declaration in one of its files containing the
|
|
43
|
+
* text "Revision N" where N is an integer revision. All packages start
|
|
44
|
+
* at revision 0 the first time they are released in a module.
|
|
45
|
+
*
|
|
46
|
+
* When a new version of a module is released and items are added to existing
|
|
47
|
+
* .proto files, these definitions should contain comments of the form
|
|
48
|
+
* "Since: Revision N" where N is an integer revision.
|
|
49
|
+
*
|
|
50
|
+
* When the module runtime starts up, it will check the pinned proto
|
|
51
|
+
* image and panic if there are runtime protobuf definitions that are not
|
|
52
|
+
* in the pinned descriptor which do not have
|
|
53
|
+
* a "Since Revision N" comment or have a "Since Revision N" comment where
|
|
54
|
+
* N is <= to the revision specified here. This indicates that the protobuf
|
|
55
|
+
* files have been updated, but the pinned file descriptor hasn't.
|
|
56
|
+
*
|
|
57
|
+
* If there are items in the pinned file descriptor with a revision
|
|
58
|
+
* greater than the value indicated here, this will also cause a panic
|
|
59
|
+
* as it may mean that the pinned descriptor for a legacy module has been
|
|
60
|
+
* improperly updated or that there is some other versioning discrepancy.
|
|
61
|
+
* Runtime protobuf definitions will also be checked for compatibility
|
|
62
|
+
* with pinned file descriptors to make sure there are no incompatible changes.
|
|
63
|
+
*
|
|
64
|
+
* This behavior ensures that:
|
|
65
|
+
* * pinned proto images are up-to-date
|
|
66
|
+
* * protobuf files are carefully annotated with revision comments which
|
|
67
|
+
* are important good client UX
|
|
68
|
+
* * protobuf files are changed in backwards and forwards compatible ways
|
|
69
|
+
*/
|
|
70
|
+
revision: number;
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* MigrateFromInfo is information on a module version that a newer module
|
|
74
|
+
* can migrate from.
|
|
75
|
+
*/
|
|
76
|
+
export interface MigrateFromInfo {
|
|
77
|
+
/**
|
|
78
|
+
* module is the fully-qualified protobuf name of the module config object
|
|
79
|
+
* for the previous module version, ex: "cosmos.group.module.v1.Module".
|
|
80
|
+
*/
|
|
81
|
+
module: string;
|
|
82
|
+
}
|
|
83
|
+
export declare const ModuleDescriptor: {
|
|
84
|
+
encode(message: ModuleDescriptor, writer?: _m0.Writer): _m0.Writer;
|
|
85
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ModuleDescriptor;
|
|
86
|
+
fromJSON(object: any): ModuleDescriptor;
|
|
87
|
+
toJSON(message: ModuleDescriptor): unknown;
|
|
88
|
+
create<I extends {
|
|
89
|
+
go_import?: string | undefined;
|
|
90
|
+
use_package?: {
|
|
91
|
+
name?: string | undefined;
|
|
92
|
+
revision?: number | undefined;
|
|
93
|
+
}[] | undefined;
|
|
94
|
+
can_migrate_from?: {
|
|
95
|
+
module?: string | undefined;
|
|
96
|
+
}[] | undefined;
|
|
97
|
+
} & {
|
|
98
|
+
go_import?: string | undefined;
|
|
99
|
+
use_package?: ({
|
|
100
|
+
name?: string | undefined;
|
|
101
|
+
revision?: number | undefined;
|
|
102
|
+
}[] & ({
|
|
103
|
+
name?: string | undefined;
|
|
104
|
+
revision?: number | undefined;
|
|
105
|
+
} & {
|
|
106
|
+
name?: string | undefined;
|
|
107
|
+
revision?: number | undefined;
|
|
108
|
+
} & { [K in Exclude<keyof I["use_package"][number], keyof PackageReference>]: never; })[] & { [K_1 in Exclude<keyof I["use_package"], keyof {
|
|
109
|
+
name?: string | undefined;
|
|
110
|
+
revision?: number | undefined;
|
|
111
|
+
}[]>]: never; }) | undefined;
|
|
112
|
+
can_migrate_from?: ({
|
|
113
|
+
module?: string | undefined;
|
|
114
|
+
}[] & ({
|
|
115
|
+
module?: string | undefined;
|
|
116
|
+
} & {
|
|
117
|
+
module?: string | undefined;
|
|
118
|
+
} & { [K_2 in Exclude<keyof I["can_migrate_from"][number], "module">]: never; })[] & { [K_3 in Exclude<keyof I["can_migrate_from"], keyof {
|
|
119
|
+
module?: string | undefined;
|
|
120
|
+
}[]>]: never; }) | undefined;
|
|
121
|
+
} & { [K_4 in Exclude<keyof I, keyof ModuleDescriptor>]: never; }>(base?: I | undefined): ModuleDescriptor;
|
|
122
|
+
fromPartial<I_1 extends {
|
|
123
|
+
go_import?: string | undefined;
|
|
124
|
+
use_package?: {
|
|
125
|
+
name?: string | undefined;
|
|
126
|
+
revision?: number | undefined;
|
|
127
|
+
}[] | undefined;
|
|
128
|
+
can_migrate_from?: {
|
|
129
|
+
module?: string | undefined;
|
|
130
|
+
}[] | undefined;
|
|
131
|
+
} & {
|
|
132
|
+
go_import?: string | undefined;
|
|
133
|
+
use_package?: ({
|
|
134
|
+
name?: string | undefined;
|
|
135
|
+
revision?: number | undefined;
|
|
136
|
+
}[] & ({
|
|
137
|
+
name?: string | undefined;
|
|
138
|
+
revision?: number | undefined;
|
|
139
|
+
} & {
|
|
140
|
+
name?: string | undefined;
|
|
141
|
+
revision?: number | undefined;
|
|
142
|
+
} & { [K_5 in Exclude<keyof I_1["use_package"][number], keyof PackageReference>]: never; })[] & { [K_6 in Exclude<keyof I_1["use_package"], keyof {
|
|
143
|
+
name?: string | undefined;
|
|
144
|
+
revision?: number | undefined;
|
|
145
|
+
}[]>]: never; }) | undefined;
|
|
146
|
+
can_migrate_from?: ({
|
|
147
|
+
module?: string | undefined;
|
|
148
|
+
}[] & ({
|
|
149
|
+
module?: string | undefined;
|
|
150
|
+
} & {
|
|
151
|
+
module?: string | undefined;
|
|
152
|
+
} & { [K_7 in Exclude<keyof I_1["can_migrate_from"][number], "module">]: never; })[] & { [K_8 in Exclude<keyof I_1["can_migrate_from"], keyof {
|
|
153
|
+
module?: string | undefined;
|
|
154
|
+
}[]>]: never; }) | undefined;
|
|
155
|
+
} & { [K_9 in Exclude<keyof I_1, keyof ModuleDescriptor>]: never; }>(object: I_1): ModuleDescriptor;
|
|
156
|
+
};
|
|
157
|
+
export declare const PackageReference: {
|
|
158
|
+
encode(message: PackageReference, writer?: _m0.Writer): _m0.Writer;
|
|
159
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): PackageReference;
|
|
160
|
+
fromJSON(object: any): PackageReference;
|
|
161
|
+
toJSON(message: PackageReference): unknown;
|
|
162
|
+
create<I extends {
|
|
163
|
+
name?: string | undefined;
|
|
164
|
+
revision?: number | undefined;
|
|
165
|
+
} & {
|
|
166
|
+
name?: string | undefined;
|
|
167
|
+
revision?: number | undefined;
|
|
168
|
+
} & { [K in Exclude<keyof I, keyof PackageReference>]: never; }>(base?: I | undefined): PackageReference;
|
|
169
|
+
fromPartial<I_1 extends {
|
|
170
|
+
name?: string | undefined;
|
|
171
|
+
revision?: number | undefined;
|
|
172
|
+
} & {
|
|
173
|
+
name?: string | undefined;
|
|
174
|
+
revision?: number | undefined;
|
|
175
|
+
} & { [K_1 in Exclude<keyof I_1, keyof PackageReference>]: never; }>(object: I_1): PackageReference;
|
|
176
|
+
};
|
|
177
|
+
export declare const MigrateFromInfo: {
|
|
178
|
+
encode(message: MigrateFromInfo, writer?: _m0.Writer): _m0.Writer;
|
|
179
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MigrateFromInfo;
|
|
180
|
+
fromJSON(object: any): MigrateFromInfo;
|
|
181
|
+
toJSON(message: MigrateFromInfo): unknown;
|
|
182
|
+
create<I extends {
|
|
183
|
+
module?: string | undefined;
|
|
184
|
+
} & {
|
|
185
|
+
module?: string | undefined;
|
|
186
|
+
} & { [K in Exclude<keyof I, "module">]: never; }>(base?: I | undefined): MigrateFromInfo;
|
|
187
|
+
fromPartial<I_1 extends {
|
|
188
|
+
module?: string | undefined;
|
|
189
|
+
} & {
|
|
190
|
+
module?: string | undefined;
|
|
191
|
+
} & { [K_1 in Exclude<keyof I_1, "module">]: never; }>(object: I_1): MigrateFromInfo;
|
|
192
|
+
};
|
|
193
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
194
|
+
export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
195
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
196
|
+
} : Partial<T>;
|
|
197
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
198
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
199
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
200
|
+
} & {
|
|
201
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
202
|
+
};
|
|
203
|
+
export {};
|
|
204
|
+
//# sourceMappingURL=module.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../../../../../src/types/cosmos/app/v1alpha1/module.ts"],"names":[],"mappings":"AAOA,OAAO,GAAG,MAAM,uBAAuB,CAAC;AAExC,eAAO,MAAM,eAAe,wBAAwB,CAAC;AAErD,gDAAgD;AAChD,MAAM,WAAW,gBAAgB;IAC/B;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;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,UAAU,GACV,MAAM,GACN,MAAM,GACN,OAAO,GACP,SAAS,CAAC;AAEd,MAAM,MAAM,WAAW,CAAC,CAAC,IAAI,CAAC,SAAS,OAAO,GAC1C,CAAC,GACD,CAAC,SAAS,UAAU,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,GACnC,UAAU,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,GAChC,CAAC,SAAS,aAAa,CAAC,MAAM,CAAC,CAAC,GAChC,aAAa,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,GAC7B,CAAC,SAAS,EAAE,GACZ;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CAAE,GACtC,OAAO,CAAC,CAAC,CAAC,CAAC;AAEf,KAAK,WAAW,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,MAAM,CAAC,GAAG,KAAK,CAAC;AACpD,MAAM,MAAM,KAAK,CAAC,CAAC,EAAE,CAAC,SAAS,CAAC,IAAI,CAAC,SAAS,OAAO,GACjD,CAAC,GACD,CAAC,GAAG;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;CAAE,GAAG;KACzC,CAAC,IAAI,OAAO,CAAC,MAAM,CAAC,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,GAAG,KAAK;CAC/C,CAAC"}
|
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
|
+
// versions:
|
|
3
|
+
// protoc-gen-ts_proto v1.181.2
|
|
4
|
+
// protoc unknown
|
|
5
|
+
// source: cosmos/app/v1alpha1/module.proto
|
|
6
|
+
/* eslint-disable */
|
|
7
|
+
import _m0 from 'protobufjs/minimal.js';
|
|
8
|
+
export const protobufPackage = 'cosmos.app.v1alpha1';
|
|
9
|
+
function createBaseModuleDescriptor() {
|
|
10
|
+
return { go_import: '', use_package: [], can_migrate_from: [] };
|
|
11
|
+
}
|
|
12
|
+
export const ModuleDescriptor = {
|
|
13
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
14
|
+
if (message.go_import !== '') {
|
|
15
|
+
writer.uint32(10).string(message.go_import);
|
|
16
|
+
}
|
|
17
|
+
for (const v of message.use_package) {
|
|
18
|
+
PackageReference.encode(v, writer.uint32(18).fork()).ldelim();
|
|
19
|
+
}
|
|
20
|
+
for (const v of message.can_migrate_from) {
|
|
21
|
+
MigrateFromInfo.encode(v, writer.uint32(26).fork()).ldelim();
|
|
22
|
+
}
|
|
23
|
+
return writer;
|
|
24
|
+
},
|
|
25
|
+
decode(input, length) {
|
|
26
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
27
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
28
|
+
const message = createBaseModuleDescriptor();
|
|
29
|
+
while (reader.pos < end) {
|
|
30
|
+
const tag = reader.uint32();
|
|
31
|
+
switch (tag >>> 3) {
|
|
32
|
+
case 1:
|
|
33
|
+
if (tag !== 10) {
|
|
34
|
+
break;
|
|
35
|
+
}
|
|
36
|
+
message.go_import = reader.string();
|
|
37
|
+
continue;
|
|
38
|
+
case 2:
|
|
39
|
+
if (tag !== 18) {
|
|
40
|
+
break;
|
|
41
|
+
}
|
|
42
|
+
message.use_package.push(PackageReference.decode(reader, reader.uint32()));
|
|
43
|
+
continue;
|
|
44
|
+
case 3:
|
|
45
|
+
if (tag !== 26) {
|
|
46
|
+
break;
|
|
47
|
+
}
|
|
48
|
+
message.can_migrate_from.push(MigrateFromInfo.decode(reader, reader.uint32()));
|
|
49
|
+
continue;
|
|
50
|
+
}
|
|
51
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
52
|
+
break;
|
|
53
|
+
}
|
|
54
|
+
reader.skipType(tag & 7);
|
|
55
|
+
}
|
|
56
|
+
return message;
|
|
57
|
+
},
|
|
58
|
+
fromJSON(object) {
|
|
59
|
+
return {
|
|
60
|
+
go_import: isSet(object.go_import)
|
|
61
|
+
? globalThis.String(object.go_import)
|
|
62
|
+
: '',
|
|
63
|
+
use_package: globalThis.Array.isArray(object?.use_package)
|
|
64
|
+
? object.use_package.map((e) => PackageReference.fromJSON(e))
|
|
65
|
+
: [],
|
|
66
|
+
can_migrate_from: globalThis.Array.isArray(object?.can_migrate_from)
|
|
67
|
+
? object.can_migrate_from.map((e) => MigrateFromInfo.fromJSON(e))
|
|
68
|
+
: [],
|
|
69
|
+
};
|
|
70
|
+
},
|
|
71
|
+
toJSON(message) {
|
|
72
|
+
const obj = {};
|
|
73
|
+
if (message.go_import !== '') {
|
|
74
|
+
obj.go_import = message.go_import;
|
|
75
|
+
}
|
|
76
|
+
if (message.use_package?.length) {
|
|
77
|
+
obj.use_package = message.use_package.map((e) => PackageReference.toJSON(e));
|
|
78
|
+
}
|
|
79
|
+
if (message.can_migrate_from?.length) {
|
|
80
|
+
obj.can_migrate_from = message.can_migrate_from.map((e) => MigrateFromInfo.toJSON(e));
|
|
81
|
+
}
|
|
82
|
+
return obj;
|
|
83
|
+
},
|
|
84
|
+
create(base) {
|
|
85
|
+
return ModuleDescriptor.fromPartial(base ?? {});
|
|
86
|
+
},
|
|
87
|
+
fromPartial(object) {
|
|
88
|
+
const message = createBaseModuleDescriptor();
|
|
89
|
+
message.go_import = object.go_import ?? '';
|
|
90
|
+
message.use_package =
|
|
91
|
+
object.use_package?.map((e) => PackageReference.fromPartial(e)) || [];
|
|
92
|
+
message.can_migrate_from =
|
|
93
|
+
object.can_migrate_from?.map((e) => MigrateFromInfo.fromPartial(e)) || [];
|
|
94
|
+
return message;
|
|
95
|
+
},
|
|
96
|
+
};
|
|
97
|
+
function createBasePackageReference() {
|
|
98
|
+
return { name: '', revision: 0 };
|
|
99
|
+
}
|
|
100
|
+
export const PackageReference = {
|
|
101
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
102
|
+
if (message.name !== '') {
|
|
103
|
+
writer.uint32(10).string(message.name);
|
|
104
|
+
}
|
|
105
|
+
if (message.revision !== 0) {
|
|
106
|
+
writer.uint32(16).uint32(message.revision);
|
|
107
|
+
}
|
|
108
|
+
return writer;
|
|
109
|
+
},
|
|
110
|
+
decode(input, length) {
|
|
111
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
112
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
113
|
+
const message = createBasePackageReference();
|
|
114
|
+
while (reader.pos < end) {
|
|
115
|
+
const tag = reader.uint32();
|
|
116
|
+
switch (tag >>> 3) {
|
|
117
|
+
case 1:
|
|
118
|
+
if (tag !== 10) {
|
|
119
|
+
break;
|
|
120
|
+
}
|
|
121
|
+
message.name = reader.string();
|
|
122
|
+
continue;
|
|
123
|
+
case 2:
|
|
124
|
+
if (tag !== 16) {
|
|
125
|
+
break;
|
|
126
|
+
}
|
|
127
|
+
message.revision = reader.uint32();
|
|
128
|
+
continue;
|
|
129
|
+
}
|
|
130
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
131
|
+
break;
|
|
132
|
+
}
|
|
133
|
+
reader.skipType(tag & 7);
|
|
134
|
+
}
|
|
135
|
+
return message;
|
|
136
|
+
},
|
|
137
|
+
fromJSON(object) {
|
|
138
|
+
return {
|
|
139
|
+
name: isSet(object.name) ? globalThis.String(object.name) : '',
|
|
140
|
+
revision: isSet(object.revision) ? globalThis.Number(object.revision) : 0,
|
|
141
|
+
};
|
|
142
|
+
},
|
|
143
|
+
toJSON(message) {
|
|
144
|
+
const obj = {};
|
|
145
|
+
if (message.name !== '') {
|
|
146
|
+
obj.name = message.name;
|
|
147
|
+
}
|
|
148
|
+
if (message.revision !== 0) {
|
|
149
|
+
obj.revision = Math.round(message.revision);
|
|
150
|
+
}
|
|
151
|
+
return obj;
|
|
152
|
+
},
|
|
153
|
+
create(base) {
|
|
154
|
+
return PackageReference.fromPartial(base ?? {});
|
|
155
|
+
},
|
|
156
|
+
fromPartial(object) {
|
|
157
|
+
const message = createBasePackageReference();
|
|
158
|
+
message.name = object.name ?? '';
|
|
159
|
+
message.revision = object.revision ?? 0;
|
|
160
|
+
return message;
|
|
161
|
+
},
|
|
162
|
+
};
|
|
163
|
+
function createBaseMigrateFromInfo() {
|
|
164
|
+
return { module: '' };
|
|
165
|
+
}
|
|
166
|
+
export const MigrateFromInfo = {
|
|
167
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
168
|
+
if (message.module !== '') {
|
|
169
|
+
writer.uint32(10).string(message.module);
|
|
170
|
+
}
|
|
171
|
+
return writer;
|
|
172
|
+
},
|
|
173
|
+
decode(input, length) {
|
|
174
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
175
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
176
|
+
const message = createBaseMigrateFromInfo();
|
|
177
|
+
while (reader.pos < end) {
|
|
178
|
+
const tag = reader.uint32();
|
|
179
|
+
switch (tag >>> 3) {
|
|
180
|
+
case 1:
|
|
181
|
+
if (tag !== 10) {
|
|
182
|
+
break;
|
|
183
|
+
}
|
|
184
|
+
message.module = reader.string();
|
|
185
|
+
continue;
|
|
186
|
+
}
|
|
187
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
188
|
+
break;
|
|
189
|
+
}
|
|
190
|
+
reader.skipType(tag & 7);
|
|
191
|
+
}
|
|
192
|
+
return message;
|
|
193
|
+
},
|
|
194
|
+
fromJSON(object) {
|
|
195
|
+
return {
|
|
196
|
+
module: isSet(object.module) ? globalThis.String(object.module) : '',
|
|
197
|
+
};
|
|
198
|
+
},
|
|
199
|
+
toJSON(message) {
|
|
200
|
+
const obj = {};
|
|
201
|
+
if (message.module !== '') {
|
|
202
|
+
obj.module = message.module;
|
|
203
|
+
}
|
|
204
|
+
return obj;
|
|
205
|
+
},
|
|
206
|
+
create(base) {
|
|
207
|
+
return MigrateFromInfo.fromPartial(base ?? {});
|
|
208
|
+
},
|
|
209
|
+
fromPartial(object) {
|
|
210
|
+
const message = createBaseMigrateFromInfo();
|
|
211
|
+
message.module = object.module ?? '';
|
|
212
|
+
return message;
|
|
213
|
+
},
|
|
214
|
+
};
|
|
215
|
+
function isSet(value) {
|
|
216
|
+
return value !== null && value !== undefined;
|
|
217
|
+
}
|
|
218
|
+
//# sourceMappingURL=module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"module.js","sourceRoot":"","sources":["../../../../../src/types/cosmos/app/v1alpha1/module.ts"],"names":[],"mappings":"AAAA,sDAAsD;AACtD,YAAY;AACZ,kCAAkC;AAClC,iCAAiC;AACjC,2CAA2C;AAE3C,oBAAoB;AACpB,OAAO,GAAG,MAAM,uBAAuB,CAAC;AAExC,MAAM,CAAC,MAAM,eAAe,GAAG,qBAAqB,CAAC;AAqFrD,SAAS,0BAA0B;IACjC,OAAO,EAAE,SAAS,EAAE,EAAE,EAAE,WAAW,EAAE,EAAE,EAAE,gBAAgB,EAAE,EAAE,EAAE,CAAC;AAClE,CAAC;AAED,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,MAAM,CACJ,OAAyB,EACzB,SAAqB,GAAG,CAAC,MAAM,CAAC,MAAM,EAAE;QAExC,IAAI,OAAO,CAAC,SAAS,KAAK,EAAE,EAAE,CAAC;YAC7B,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;QAC9C,CAAC;QACD,KAAK,MAAM,CAAC,IAAI,OAAO,CAAC,WAAW,EAAE,CAAC;YACpC,gBAAgB,CAAC,MAAM,CAAC,CAAE,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC;QACjE,CAAC;QACD,KAAK,MAAM,CAAC,IAAI,OAAO,CAAC,gBAAgB,EAAE,CAAC;YACzC,eAAe,CAAC,MAAM,CAAC,CAAE,EAAE,MAAM,CAA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OAAO,CAAC;IACjB,CAAC;IAED,QAAQ,CAAC,MAAW;QAClB,OAAO;YACL,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE;SACrE,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,OAAwB;QAC7B,MAAM,GAAG,GAAQ,EAAE,CAAC;QACpB,IAAI,OAAO,CAAC,MAAM,KAAK,EAAE,EAAE,CAAC;YAC1B,GAAG,CAAC,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;QAC9B,CAAC;QACD,OAAO,GAAG,CAAC;IACb,CAAC;IAED,MAAM,CACJ,IAAQ;QAER,OAAO,eAAe,CAAC,WAAW,CAAC,IAAI,IAAK,EAAU,CAAC,CAAC;IAC1D,CAAC;IACD,WAAW,CACT,MAAS;QAET,MAAM,OAAO,GAAG,yBAAyB,EAAE,CAAC;QAC5C,OAAO,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,IAAI,EAAE,CAAC;QACrC,OAAO,OAAO,CAAC;IACjB,CAAC;CACF,CAAC;AA4BF,SAAS,KAAK,CAAC,KAAU;IACvB,OAAO,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS,CAAC;AAC/C,CAAC"}
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import _m0 from 'protobufjs/minimal.js';
|
|
2
|
+
export declare const protobufPackage = "cosmos.base.query.v1beta1";
|
|
3
|
+
/**
|
|
4
|
+
* PageRequest is to be embedded in gRPC request messages for efficient
|
|
5
|
+
* pagination. Ex:
|
|
6
|
+
*
|
|
7
|
+
* message SomeRequest {
|
|
8
|
+
* Foo some_parameter = 1;
|
|
9
|
+
* PageRequest pagination = 2;
|
|
10
|
+
* }
|
|
11
|
+
*/
|
|
12
|
+
export interface PageRequest {
|
|
13
|
+
/**
|
|
14
|
+
* key is a value returned in PageResponse.next_key to begin
|
|
15
|
+
* querying the next page most efficiently. Only one of offset or key
|
|
16
|
+
* should be set.
|
|
17
|
+
*/
|
|
18
|
+
key: Uint8Array;
|
|
19
|
+
/**
|
|
20
|
+
* offset is a numeric offset that can be used when key is unavailable.
|
|
21
|
+
* It is less efficient than using key. Only one of offset or key should
|
|
22
|
+
* be set.
|
|
23
|
+
*/
|
|
24
|
+
offset: string;
|
|
25
|
+
/**
|
|
26
|
+
* limit is the total number of results to be returned in the result page.
|
|
27
|
+
* If left empty it will default to a value to be set by each app.
|
|
28
|
+
*/
|
|
29
|
+
limit: string;
|
|
30
|
+
/**
|
|
31
|
+
* count_total is set to true to indicate that the result set should include
|
|
32
|
+
* a count of the total number of items available for pagination in UIs.
|
|
33
|
+
* count_total is only respected when offset is used. It is ignored when key
|
|
34
|
+
* is set.
|
|
35
|
+
*/
|
|
36
|
+
count_total: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* reverse is set to true if results are to be returned in the descending order.
|
|
39
|
+
*
|
|
40
|
+
* Since: cosmos-sdk 0.43
|
|
41
|
+
*/
|
|
42
|
+
reverse: boolean;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* PageResponse is to be embedded in gRPC response messages where the
|
|
46
|
+
* corresponding request message has used PageRequest.
|
|
47
|
+
*
|
|
48
|
+
* message SomeResponse {
|
|
49
|
+
* repeated Bar results = 1;
|
|
50
|
+
* PageResponse page = 2;
|
|
51
|
+
* }
|
|
52
|
+
*/
|
|
53
|
+
export interface PageResponse {
|
|
54
|
+
/**
|
|
55
|
+
* next_key is the key to be passed to PageRequest.key to
|
|
56
|
+
* query the next page most efficiently. It will be empty if
|
|
57
|
+
* there are no more results.
|
|
58
|
+
*/
|
|
59
|
+
next_key: Uint8Array;
|
|
60
|
+
/**
|
|
61
|
+
* total is total number of results available if PageRequest.count_total
|
|
62
|
+
* was set, its value is undefined otherwise
|
|
63
|
+
*/
|
|
64
|
+
total: string;
|
|
65
|
+
}
|
|
66
|
+
export declare const PageRequest: {
|
|
67
|
+
encode(message: PageRequest, writer?: _m0.Writer): _m0.Writer;
|
|
68
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): PageRequest;
|
|
69
|
+
fromJSON(object: any): PageRequest;
|
|
70
|
+
toJSON(message: PageRequest): unknown;
|
|
71
|
+
create<I extends {
|
|
72
|
+
key?: Uint8Array | undefined;
|
|
73
|
+
offset?: string | undefined;
|
|
74
|
+
limit?: string | undefined;
|
|
75
|
+
count_total?: boolean | undefined;
|
|
76
|
+
reverse?: boolean | undefined;
|
|
77
|
+
} & {
|
|
78
|
+
key?: Uint8Array | undefined;
|
|
79
|
+
offset?: string | undefined;
|
|
80
|
+
limit?: string | undefined;
|
|
81
|
+
count_total?: boolean | undefined;
|
|
82
|
+
reverse?: boolean | undefined;
|
|
83
|
+
} & { [K in Exclude<keyof I, keyof PageRequest>]: never; }>(base?: I | undefined): PageRequest;
|
|
84
|
+
fromPartial<I_1 extends {
|
|
85
|
+
key?: Uint8Array | undefined;
|
|
86
|
+
offset?: string | undefined;
|
|
87
|
+
limit?: string | undefined;
|
|
88
|
+
count_total?: boolean | undefined;
|
|
89
|
+
reverse?: boolean | undefined;
|
|
90
|
+
} & {
|
|
91
|
+
key?: Uint8Array | undefined;
|
|
92
|
+
offset?: string | undefined;
|
|
93
|
+
limit?: string | undefined;
|
|
94
|
+
count_total?: boolean | undefined;
|
|
95
|
+
reverse?: boolean | undefined;
|
|
96
|
+
} & { [K_1 in Exclude<keyof I_1, keyof PageRequest>]: never; }>(object: I_1): PageRequest;
|
|
97
|
+
};
|
|
98
|
+
export declare const PageResponse: {
|
|
99
|
+
encode(message: PageResponse, writer?: _m0.Writer): _m0.Writer;
|
|
100
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): PageResponse;
|
|
101
|
+
fromJSON(object: any): PageResponse;
|
|
102
|
+
toJSON(message: PageResponse): unknown;
|
|
103
|
+
create<I extends {
|
|
104
|
+
next_key?: Uint8Array | undefined;
|
|
105
|
+
total?: string | undefined;
|
|
106
|
+
} & {
|
|
107
|
+
next_key?: Uint8Array | undefined;
|
|
108
|
+
total?: string | undefined;
|
|
109
|
+
} & { [K in Exclude<keyof I, keyof PageResponse>]: never; }>(base?: I | undefined): PageResponse;
|
|
110
|
+
fromPartial<I_1 extends {
|
|
111
|
+
next_key?: Uint8Array | undefined;
|
|
112
|
+
total?: string | undefined;
|
|
113
|
+
} & {
|
|
114
|
+
next_key?: Uint8Array | undefined;
|
|
115
|
+
total?: string | undefined;
|
|
116
|
+
} & { [K_1 in Exclude<keyof I_1, keyof PageResponse>]: never; }>(object: I_1): PageResponse;
|
|
117
|
+
};
|
|
118
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
119
|
+
export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
120
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
121
|
+
} : Partial<T>;
|
|
122
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
123
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
124
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
125
|
+
} & {
|
|
126
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
127
|
+
};
|
|
128
|
+
export {};
|
|
129
|
+
//# sourceMappingURL=pagination.d.ts.map
|