mirror of
https://github.com/sonr-io/sonr.git
synced 2026-08-06 19:31:39 +00:00
@@ -0,0 +1,248 @@
|
||||
// @generated by protoc-gen-es v1.2.0 with parameter "target=ts"
|
||||
// @generated from file cosmos/app/runtime/v1alpha1/module.proto (package cosmos.app.runtime.v1alpha1, syntax proto3)
|
||||
/* eslint-disable */
|
||||
// @ts-nocheck
|
||||
|
||||
import type {
|
||||
BinaryReadOptions,
|
||||
FieldList,
|
||||
JsonReadOptions,
|
||||
JsonValue,
|
||||
PartialMessage,
|
||||
PlainMessage,
|
||||
} from '@bufbuild/protobuf';
|
||||
import { Message, proto3 } from '@bufbuild/protobuf';
|
||||
|
||||
/**
|
||||
* Module is the config object for the runtime module.
|
||||
*
|
||||
* @generated from message cosmos.app.runtime.v1alpha1.Module
|
||||
*/
|
||||
export class Module extends Message<Module> {
|
||||
/**
|
||||
* app_name is the name of the app.
|
||||
*
|
||||
* @generated from field: string app_name = 1;
|
||||
*/
|
||||
appName = '';
|
||||
|
||||
/**
|
||||
* begin_blockers specifies the module names of begin blockers
|
||||
* to call in the order in which they should be called. If this is left empty
|
||||
* no begin blocker will be registered.
|
||||
*
|
||||
* @generated from field: repeated string begin_blockers = 2;
|
||||
*/
|
||||
beginBlockers: string[] = [];
|
||||
|
||||
/**
|
||||
* end_blockers specifies the module names of the end blockers
|
||||
* to call in the order in which they should be called. If this is left empty
|
||||
* no end blocker will be registered.
|
||||
*
|
||||
* @generated from field: repeated string end_blockers = 3;
|
||||
*/
|
||||
endBlockers: string[] = [];
|
||||
|
||||
/**
|
||||
* init_genesis specifies the module names of init genesis functions
|
||||
* to call in the order in which they should be called. If this is left empty
|
||||
* no init genesis function will be registered.
|
||||
*
|
||||
* @generated from field: repeated string init_genesis = 4;
|
||||
*/
|
||||
initGenesis: string[] = [];
|
||||
|
||||
/**
|
||||
* export_genesis specifies the order in which to export module genesis data.
|
||||
* If this is left empty, the init_genesis order will be used for export genesis
|
||||
* if it is specified.
|
||||
*
|
||||
* @generated from field: repeated string export_genesis = 5;
|
||||
*/
|
||||
exportGenesis: string[] = [];
|
||||
|
||||
/**
|
||||
* override_store_keys is an optional list of overrides for the module store keys
|
||||
* to be used in keeper construction.
|
||||
*
|
||||
* @generated from field: repeated cosmos.app.runtime.v1alpha1.StoreKeyConfig override_store_keys = 6;
|
||||
*/
|
||||
overrideStoreKeys: StoreKeyConfig[] = [];
|
||||
|
||||
/**
|
||||
* order_migrations defines the order in which module migrations are performed.
|
||||
* If this is left empty, it uses the default migration order.
|
||||
* https://pkg.go.dev/github.com/cosmos/cosmos-sdk@v0.47.0-alpha2/types/module#DefaultMigrationsOrder
|
||||
*
|
||||
* @generated from field: repeated string order_migrations = 7;
|
||||
*/
|
||||
orderMigrations: string[] = [];
|
||||
|
||||
/**
|
||||
* precommiters specifies the module names of the precommiters
|
||||
* to call in the order in which they should be called. If this is left empty
|
||||
* no precommit function will be registered.
|
||||
*
|
||||
* @generated from field: repeated string precommiters = 8;
|
||||
*/
|
||||
precommiters: string[] = [];
|
||||
|
||||
/**
|
||||
* prepare_check_staters specifies the module names of the prepare_check_staters
|
||||
* to call in the order in which they should be called. If this is left empty
|
||||
* no preparecheckstate function will be registered.
|
||||
*
|
||||
* @generated from field: repeated string prepare_check_staters = 9;
|
||||
*/
|
||||
prepareCheckStaters: string[] = [];
|
||||
|
||||
constructor(data?: PartialMessage<Module>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = 'cosmos.app.runtime.v1alpha1.Module';
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: 'app_name', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
|
||||
{
|
||||
no: 2,
|
||||
name: 'begin_blockers',
|
||||
kind: 'scalar',
|
||||
T: 9 /* ScalarType.STRING */,
|
||||
repeated: true,
|
||||
},
|
||||
{
|
||||
no: 3,
|
||||
name: 'end_blockers',
|
||||
kind: 'scalar',
|
||||
T: 9 /* ScalarType.STRING */,
|
||||
repeated: true,
|
||||
},
|
||||
{
|
||||
no: 4,
|
||||
name: 'init_genesis',
|
||||
kind: 'scalar',
|
||||
T: 9 /* ScalarType.STRING */,
|
||||
repeated: true,
|
||||
},
|
||||
{
|
||||
no: 5,
|
||||
name: 'export_genesis',
|
||||
kind: 'scalar',
|
||||
T: 9 /* ScalarType.STRING */,
|
||||
repeated: true,
|
||||
},
|
||||
{
|
||||
no: 6,
|
||||
name: 'override_store_keys',
|
||||
kind: 'message',
|
||||
T: StoreKeyConfig,
|
||||
repeated: true,
|
||||
},
|
||||
{
|
||||
no: 7,
|
||||
name: 'order_migrations',
|
||||
kind: 'scalar',
|
||||
T: 9 /* ScalarType.STRING */,
|
||||
repeated: true,
|
||||
},
|
||||
{
|
||||
no: 8,
|
||||
name: 'precommiters',
|
||||
kind: 'scalar',
|
||||
T: 9 /* ScalarType.STRING */,
|
||||
repeated: true,
|
||||
},
|
||||
{
|
||||
no: 9,
|
||||
name: 'prepare_check_staters',
|
||||
kind: 'scalar',
|
||||
T: 9 /* ScalarType.STRING */,
|
||||
repeated: true,
|
||||
},
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Module {
|
||||
return new Module().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Module {
|
||||
return new Module().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Module {
|
||||
return new Module().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(
|
||||
a: Module | PlainMessage<Module> | undefined,
|
||||
b: Module | PlainMessage<Module> | undefined
|
||||
): boolean {
|
||||
return proto3.util.equals(Module, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* StoreKeyConfig may be supplied to override the default module store key, which
|
||||
* is the module name.
|
||||
*
|
||||
* @generated from message cosmos.app.runtime.v1alpha1.StoreKeyConfig
|
||||
*/
|
||||
export class StoreKeyConfig extends Message<StoreKeyConfig> {
|
||||
/**
|
||||
* name of the module to override the store key of
|
||||
*
|
||||
* @generated from field: string module_name = 1;
|
||||
*/
|
||||
moduleName = '';
|
||||
|
||||
/**
|
||||
* the kv store key to use instead of the module name.
|
||||
*
|
||||
* @generated from field: string kv_store_key = 2;
|
||||
*/
|
||||
kvStoreKey = '';
|
||||
|
||||
constructor(data?: PartialMessage<StoreKeyConfig>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = 'cosmos.app.runtime.v1alpha1.StoreKeyConfig';
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{
|
||||
no: 1,
|
||||
name: 'module_name',
|
||||
kind: 'scalar',
|
||||
T: 9 /* ScalarType.STRING */,
|
||||
},
|
||||
{
|
||||
no: 2,
|
||||
name: 'kv_store_key',
|
||||
kind: 'scalar',
|
||||
T: 9 /* ScalarType.STRING */,
|
||||
},
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): StoreKeyConfig {
|
||||
return new StoreKeyConfig().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): StoreKeyConfig {
|
||||
return new StoreKeyConfig().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): StoreKeyConfig {
|
||||
return new StoreKeyConfig().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(
|
||||
a: StoreKeyConfig | PlainMessage<StoreKeyConfig> | undefined,
|
||||
b: StoreKeyConfig | PlainMessage<StoreKeyConfig> | undefined
|
||||
): boolean {
|
||||
return proto3.util.equals(StoreKeyConfig, a, b);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,226 @@
|
||||
// @generated by protoc-gen-es v1.2.0 with parameter "target=ts"
|
||||
// @generated from file cosmos/app/v1alpha1/config.proto (package cosmos.app.v1alpha1, syntax proto3)
|
||||
/* eslint-disable */
|
||||
// @ts-nocheck
|
||||
|
||||
import type {
|
||||
BinaryReadOptions,
|
||||
FieldList,
|
||||
JsonReadOptions,
|
||||
JsonValue,
|
||||
PartialMessage,
|
||||
PlainMessage,
|
||||
} from '@bufbuild/protobuf';
|
||||
import { Any, Message, proto3 } from '@bufbuild/protobuf';
|
||||
|
||||
/**
|
||||
* 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.
|
||||
*
|
||||
* @generated from message cosmos.app.v1alpha1.Config
|
||||
*/
|
||||
export class Config extends Message<Config> {
|
||||
/**
|
||||
* modules are the module configurations for the app.
|
||||
*
|
||||
* @generated from field: repeated cosmos.app.v1alpha1.ModuleConfig modules = 1;
|
||||
*/
|
||||
modules: ModuleConfig[] = [];
|
||||
|
||||
/**
|
||||
* golang_bindings specifies explicit interface to implementation type bindings which
|
||||
* depinject uses to resolve interface inputs to provider functions. The scope of this
|
||||
* field's configuration is global (not module specific).
|
||||
*
|
||||
* @generated from field: repeated cosmos.app.v1alpha1.GolangBinding golang_bindings = 2;
|
||||
*/
|
||||
golangBindings: GolangBinding[] = [];
|
||||
|
||||
constructor(data?: PartialMessage<Config>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = 'cosmos.app.v1alpha1.Config';
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{
|
||||
no: 1,
|
||||
name: 'modules',
|
||||
kind: 'message',
|
||||
T: ModuleConfig,
|
||||
repeated: true,
|
||||
},
|
||||
{
|
||||
no: 2,
|
||||
name: 'golang_bindings',
|
||||
kind: 'message',
|
||||
T: GolangBinding,
|
||||
repeated: true,
|
||||
},
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Config {
|
||||
return new Config().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Config {
|
||||
return new Config().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Config {
|
||||
return new Config().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(
|
||||
a: Config | PlainMessage<Config> | undefined,
|
||||
b: Config | PlainMessage<Config> | undefined
|
||||
): boolean {
|
||||
return proto3.util.equals(Config, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* ModuleConfig is a module configuration for an app.
|
||||
*
|
||||
* @generated from message cosmos.app.v1alpha1.ModuleConfig
|
||||
*/
|
||||
export class ModuleConfig extends Message<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.
|
||||
*
|
||||
* @generated from field: string name = 1;
|
||||
*/
|
||||
name = '';
|
||||
|
||||
/**
|
||||
* config is the config object for the module. Module config messages should
|
||||
* define a ModuleDescriptor using the cosmos.app.v1alpha1.is_module extension.
|
||||
*
|
||||
* @generated from field: google.protobuf.Any config = 2;
|
||||
*/
|
||||
config?: Any;
|
||||
|
||||
/**
|
||||
* golang_bindings specifies explicit interface to implementation type bindings which
|
||||
* depinject uses to resolve interface inputs to provider functions. The scope of this
|
||||
* field's configuration is module specific.
|
||||
*
|
||||
* @generated from field: repeated cosmos.app.v1alpha1.GolangBinding golang_bindings = 3;
|
||||
*/
|
||||
golangBindings: GolangBinding[] = [];
|
||||
|
||||
constructor(data?: PartialMessage<ModuleConfig>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = 'cosmos.app.v1alpha1.ModuleConfig';
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: 'name', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 2, name: 'config', kind: 'message', T: Any },
|
||||
{
|
||||
no: 3,
|
||||
name: 'golang_bindings',
|
||||
kind: 'message',
|
||||
T: GolangBinding,
|
||||
repeated: true,
|
||||
},
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ModuleConfig {
|
||||
return new ModuleConfig().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ModuleConfig {
|
||||
return new ModuleConfig().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ModuleConfig {
|
||||
return new ModuleConfig().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(
|
||||
a: ModuleConfig | PlainMessage<ModuleConfig> | undefined,
|
||||
b: ModuleConfig | PlainMessage<ModuleConfig> | undefined
|
||||
): boolean {
|
||||
return proto3.util.equals(ModuleConfig, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* GolangBinding is an explicit interface type to implementing type binding for dependency injection.
|
||||
*
|
||||
* @generated from message cosmos.app.v1alpha1.GolangBinding
|
||||
*/
|
||||
export class GolangBinding extends Message<GolangBinding> {
|
||||
/**
|
||||
* interface_type is the interface type which will be bound to a specific implementation type
|
||||
*
|
||||
* @generated from field: string interface_type = 1;
|
||||
*/
|
||||
interfaceType = '';
|
||||
|
||||
/**
|
||||
* implementation is the implementing type which will be supplied when an input of type interface is requested
|
||||
*
|
||||
* @generated from field: string implementation = 2;
|
||||
*/
|
||||
implementation = '';
|
||||
|
||||
constructor(data?: PartialMessage<GolangBinding>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = 'cosmos.app.v1alpha1.GolangBinding';
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{
|
||||
no: 1,
|
||||
name: 'interface_type',
|
||||
kind: 'scalar',
|
||||
T: 9 /* ScalarType.STRING */,
|
||||
},
|
||||
{
|
||||
no: 2,
|
||||
name: 'implementation',
|
||||
kind: 'scalar',
|
||||
T: 9 /* ScalarType.STRING */,
|
||||
},
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GolangBinding {
|
||||
return new GolangBinding().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GolangBinding {
|
||||
return new GolangBinding().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GolangBinding {
|
||||
return new GolangBinding().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(
|
||||
a: GolangBinding | PlainMessage<GolangBinding> | undefined,
|
||||
b: GolangBinding | PlainMessage<GolangBinding> | undefined
|
||||
): boolean {
|
||||
return proto3.util.equals(GolangBinding, a, b);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,229 @@
|
||||
// @generated by protoc-gen-es v1.2.0 with parameter "target=ts"
|
||||
// @generated from file cosmos/app/v1alpha1/module.proto (package cosmos.app.v1alpha1, syntax proto3)
|
||||
/* eslint-disable */
|
||||
// @ts-nocheck
|
||||
|
||||
import type {
|
||||
BinaryReadOptions,
|
||||
FieldList,
|
||||
JsonReadOptions,
|
||||
JsonValue,
|
||||
PartialMessage,
|
||||
PlainMessage,
|
||||
} from '@bufbuild/protobuf';
|
||||
import { Message, proto3 } from '@bufbuild/protobuf';
|
||||
|
||||
/**
|
||||
* ModuleDescriptor describes an app module.
|
||||
*
|
||||
* @generated from message cosmos.app.v1alpha1.ModuleDescriptor
|
||||
*/
|
||||
export class ModuleDescriptor extends Message<ModuleDescriptor> {
|
||||
/**
|
||||
* go_import names the package that should be imported by an app to load the
|
||||
* module in the runtime module registry. It is required to make debugging
|
||||
* of configuration errors easier for users.
|
||||
*
|
||||
* @generated from field: string go_import = 1;
|
||||
*/
|
||||
goImport = '';
|
||||
|
||||
/**
|
||||
* 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.
|
||||
*
|
||||
* @generated from field: repeated cosmos.app.v1alpha1.PackageReference use_package = 2;
|
||||
*/
|
||||
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.
|
||||
*
|
||||
* @generated from field: repeated cosmos.app.v1alpha1.MigrateFromInfo can_migrate_from = 3;
|
||||
*/
|
||||
canMigrateFrom: MigrateFromInfo[] = [];
|
||||
|
||||
constructor(data?: PartialMessage<ModuleDescriptor>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = 'cosmos.app.v1alpha1.ModuleDescriptor';
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: 'go_import', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
|
||||
{
|
||||
no: 2,
|
||||
name: 'use_package',
|
||||
kind: 'message',
|
||||
T: PackageReference,
|
||||
repeated: true,
|
||||
},
|
||||
{
|
||||
no: 3,
|
||||
name: 'can_migrate_from',
|
||||
kind: 'message',
|
||||
T: MigrateFromInfo,
|
||||
repeated: true,
|
||||
},
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ModuleDescriptor {
|
||||
return new ModuleDescriptor().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ModuleDescriptor {
|
||||
return new ModuleDescriptor().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ModuleDescriptor {
|
||||
return new ModuleDescriptor().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(
|
||||
a: ModuleDescriptor | PlainMessage<ModuleDescriptor> | undefined,
|
||||
b: ModuleDescriptor | PlainMessage<ModuleDescriptor> | undefined
|
||||
): boolean {
|
||||
return proto3.util.equals(ModuleDescriptor, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* PackageReference is a reference to a protobuf package used by a module.
|
||||
*
|
||||
* @generated from message cosmos.app.v1alpha1.PackageReference
|
||||
*/
|
||||
export class PackageReference extends Message<PackageReference> {
|
||||
/**
|
||||
* name is the fully-qualified name of the package.
|
||||
*
|
||||
* @generated from field: string name = 1;
|
||||
*/
|
||||
name = '';
|
||||
|
||||
/**
|
||||
* 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 files containing the
|
||||
* text "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
|
||||
*
|
||||
* @generated from field: uint32 revision = 2;
|
||||
*/
|
||||
revision = 0;
|
||||
|
||||
constructor(data?: PartialMessage<PackageReference>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = 'cosmos.app.v1alpha1.PackageReference';
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: 'name', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 2, name: 'revision', kind: 'scalar', T: 13 /* ScalarType.UINT32 */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PackageReference {
|
||||
return new PackageReference().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PackageReference {
|
||||
return new PackageReference().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PackageReference {
|
||||
return new PackageReference().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(
|
||||
a: PackageReference | PlainMessage<PackageReference> | undefined,
|
||||
b: PackageReference | PlainMessage<PackageReference> | undefined
|
||||
): boolean {
|
||||
return proto3.util.equals(PackageReference, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* MigrateFromInfo is information on a module version that a newer module
|
||||
* can migrate from.
|
||||
*
|
||||
* @generated from message cosmos.app.v1alpha1.MigrateFromInfo
|
||||
*/
|
||||
export class MigrateFromInfo extends Message<MigrateFromInfo> {
|
||||
/**
|
||||
* module is the fully-qualified protobuf name of the module config object
|
||||
* for the previous module version, ex: "cosmos.group.module.v1.Module".
|
||||
*
|
||||
* @generated from field: string module = 1;
|
||||
*/
|
||||
module = '';
|
||||
|
||||
constructor(data?: PartialMessage<MigrateFromInfo>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = 'cosmos.app.v1alpha1.MigrateFromInfo';
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: 'module', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MigrateFromInfo {
|
||||
return new MigrateFromInfo().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MigrateFromInfo {
|
||||
return new MigrateFromInfo().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MigrateFromInfo {
|
||||
return new MigrateFromInfo().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(
|
||||
a: MigrateFromInfo | PlainMessage<MigrateFromInfo> | undefined,
|
||||
b: MigrateFromInfo | PlainMessage<MigrateFromInfo> | undefined
|
||||
): boolean {
|
||||
return proto3.util.equals(MigrateFromInfo, a, b);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts"
|
||||
// @generated from file cosmos/app/v1alpha1/query.proto (package cosmos.app.v1alpha1, syntax proto3)
|
||||
/* eslint-disable */
|
||||
// @ts-nocheck
|
||||
|
||||
import { QueryConfigRequest, QueryConfigResponse } from './query_pb.js';
|
||||
|
||||
const TYPE_NAME = 'cosmos.app.v1alpha1.Query';
|
||||
|
||||
/**
|
||||
* Config returns the current app config.
|
||||
*
|
||||
* @generated from rpc cosmos.app.v1alpha1.Query.Config
|
||||
*/
|
||||
export const QueryConfigService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: 'Config',
|
||||
Request: QueryConfigRequest,
|
||||
Response: QueryConfigResponse,
|
||||
} as const;
|
||||
@@ -0,0 +1,100 @@
|
||||
// @generated by protoc-gen-es v1.2.0 with parameter "target=ts"
|
||||
// @generated from file cosmos/app/v1alpha1/query.proto (package cosmos.app.v1alpha1, syntax proto3)
|
||||
/* eslint-disable */
|
||||
// @ts-nocheck
|
||||
|
||||
import type {
|
||||
BinaryReadOptions,
|
||||
FieldList,
|
||||
JsonReadOptions,
|
||||
JsonValue,
|
||||
PartialMessage,
|
||||
PlainMessage,
|
||||
} from '@bufbuild/protobuf';
|
||||
import { Message, proto3 } from '@bufbuild/protobuf';
|
||||
import { Config } from './config_pb.js';
|
||||
|
||||
/**
|
||||
* QueryConfigRequest is the Query/Config request type.
|
||||
*
|
||||
* @generated from message cosmos.app.v1alpha1.QueryConfigRequest
|
||||
*/
|
||||
export class QueryConfigRequest extends Message<QueryConfigRequest> {
|
||||
constructor(data?: PartialMessage<QueryConfigRequest>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = 'cosmos.app.v1alpha1.QueryConfigRequest';
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => []);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): QueryConfigRequest {
|
||||
return new QueryConfigRequest().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): QueryConfigRequest {
|
||||
return new QueryConfigRequest().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(
|
||||
jsonString: string,
|
||||
options?: Partial<JsonReadOptions>
|
||||
): QueryConfigRequest {
|
||||
return new QueryConfigRequest().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(
|
||||
a: QueryConfigRequest | PlainMessage<QueryConfigRequest> | undefined,
|
||||
b: QueryConfigRequest | PlainMessage<QueryConfigRequest> | undefined
|
||||
): boolean {
|
||||
return proto3.util.equals(QueryConfigRequest, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* QueryConfigRequest is the Query/Config response type.
|
||||
*
|
||||
* @generated from message cosmos.app.v1alpha1.QueryConfigResponse
|
||||
*/
|
||||
export class QueryConfigResponse extends Message<QueryConfigResponse> {
|
||||
/**
|
||||
* config is the current app config.
|
||||
*
|
||||
* @generated from field: cosmos.app.v1alpha1.Config config = 1;
|
||||
*/
|
||||
config?: Config;
|
||||
|
||||
constructor(data?: PartialMessage<QueryConfigResponse>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = 'cosmos.app.v1alpha1.QueryConfigResponse';
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: 'config', kind: 'message', T: Config },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): QueryConfigResponse {
|
||||
return new QueryConfigResponse().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): QueryConfigResponse {
|
||||
return new QueryConfigResponse().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(
|
||||
jsonString: string,
|
||||
options?: Partial<JsonReadOptions>
|
||||
): QueryConfigResponse {
|
||||
return new QueryConfigResponse().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(
|
||||
a: QueryConfigResponse | PlainMessage<QueryConfigResponse> | undefined,
|
||||
b: QueryConfigResponse | PlainMessage<QueryConfigResponse> | undefined
|
||||
): boolean {
|
||||
return proto3.util.equals(QueryConfigResponse, a, b);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,495 @@
|
||||
// @generated by protoc-gen-es v1.2.0 with parameter "target=ts"
|
||||
// @generated from file cosmos/autocli/v1/options.proto (package cosmos.autocli.v1, syntax proto3)
|
||||
/* eslint-disable */
|
||||
// @ts-nocheck
|
||||
|
||||
import type {
|
||||
BinaryReadOptions,
|
||||
FieldList,
|
||||
JsonReadOptions,
|
||||
JsonValue,
|
||||
PartialMessage,
|
||||
PlainMessage,
|
||||
} from '@bufbuild/protobuf';
|
||||
import { Message, proto3 } from '@bufbuild/protobuf';
|
||||
|
||||
/**
|
||||
* ModuleOptions describes the CLI options for a Cosmos SDK module.
|
||||
*
|
||||
* @generated from message cosmos.autocli.v1.ModuleOptions
|
||||
*/
|
||||
export class ModuleOptions extends Message<ModuleOptions> {
|
||||
/**
|
||||
* tx describes the tx commands for the module.
|
||||
*
|
||||
* @generated from field: cosmos.autocli.v1.ServiceCommandDescriptor tx = 1;
|
||||
*/
|
||||
tx?: ServiceCommandDescriptor;
|
||||
|
||||
/**
|
||||
* query describes the queries commands for the module.
|
||||
*
|
||||
* @generated from field: cosmos.autocli.v1.ServiceCommandDescriptor query = 2;
|
||||
*/
|
||||
query?: ServiceCommandDescriptor;
|
||||
|
||||
constructor(data?: PartialMessage<ModuleOptions>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = 'cosmos.autocli.v1.ModuleOptions';
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: 'tx', kind: 'message', T: ServiceCommandDescriptor },
|
||||
{ no: 2, name: 'query', kind: 'message', T: ServiceCommandDescriptor },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ModuleOptions {
|
||||
return new ModuleOptions().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ModuleOptions {
|
||||
return new ModuleOptions().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ModuleOptions {
|
||||
return new ModuleOptions().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(
|
||||
a: ModuleOptions | PlainMessage<ModuleOptions> | undefined,
|
||||
b: ModuleOptions | PlainMessage<ModuleOptions> | undefined
|
||||
): boolean {
|
||||
return proto3.util.equals(ModuleOptions, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* ServiceCommandDescriptor describes a CLI command based on a protobuf service.
|
||||
*
|
||||
* @generated from message cosmos.autocli.v1.ServiceCommandDescriptor
|
||||
*/
|
||||
export class ServiceCommandDescriptor extends Message<ServiceCommandDescriptor> {
|
||||
/**
|
||||
* service is the fully qualified name of the protobuf service to build
|
||||
* the command from. It can be left empty if sub_commands are used instead
|
||||
* which may be the case if a module provides multiple tx and/or query services.
|
||||
*
|
||||
* @generated from field: string service = 1;
|
||||
*/
|
||||
service = '';
|
||||
|
||||
/**
|
||||
* rpc_command_options are options for commands generated from rpc methods.
|
||||
* If no options are specified for a given rpc method on the service, a
|
||||
* command will be generated for that method with the default options.
|
||||
*
|
||||
* @generated from field: repeated cosmos.autocli.v1.RpcCommandOptions rpc_command_options = 2;
|
||||
*/
|
||||
rpcCommandOptions: RpcCommandOptions[] = [];
|
||||
|
||||
/**
|
||||
* sub_commands is a map of optional sub-commands for this command based on
|
||||
* different protobuf services. The map key is used as the name of the
|
||||
* sub-command.
|
||||
*
|
||||
* @generated from field: map<string, cosmos.autocli.v1.ServiceCommandDescriptor> sub_commands = 3;
|
||||
*/
|
||||
subCommands: { [key: string]: ServiceCommandDescriptor } = {};
|
||||
|
||||
constructor(data?: PartialMessage<ServiceCommandDescriptor>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = 'cosmos.autocli.v1.ServiceCommandDescriptor';
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: 'service', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
|
||||
{
|
||||
no: 2,
|
||||
name: 'rpc_command_options',
|
||||
kind: 'message',
|
||||
T: RpcCommandOptions,
|
||||
repeated: true,
|
||||
},
|
||||
{
|
||||
no: 3,
|
||||
name: 'sub_commands',
|
||||
kind: 'map',
|
||||
K: 9 /* ScalarType.STRING */,
|
||||
V: { kind: 'message', T: ServiceCommandDescriptor },
|
||||
},
|
||||
]);
|
||||
|
||||
static fromBinary(
|
||||
bytes: Uint8Array,
|
||||
options?: Partial<BinaryReadOptions>
|
||||
): ServiceCommandDescriptor {
|
||||
return new ServiceCommandDescriptor().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(
|
||||
jsonValue: JsonValue,
|
||||
options?: Partial<JsonReadOptions>
|
||||
): ServiceCommandDescriptor {
|
||||
return new ServiceCommandDescriptor().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(
|
||||
jsonString: string,
|
||||
options?: Partial<JsonReadOptions>
|
||||
): ServiceCommandDescriptor {
|
||||
return new ServiceCommandDescriptor().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(
|
||||
a: ServiceCommandDescriptor | PlainMessage<ServiceCommandDescriptor> | undefined,
|
||||
b: ServiceCommandDescriptor | PlainMessage<ServiceCommandDescriptor> | undefined
|
||||
): boolean {
|
||||
return proto3.util.equals(ServiceCommandDescriptor, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* RpcCommandOptions specifies options for commands generated from protobuf
|
||||
* rpc methods.
|
||||
*
|
||||
* @generated from message cosmos.autocli.v1.RpcCommandOptions
|
||||
*/
|
||||
export class RpcCommandOptions extends Message<RpcCommandOptions> {
|
||||
/**
|
||||
* rpc_method is short name of the protobuf rpc method that this command is
|
||||
* generated from.
|
||||
*
|
||||
* @generated from field: string rpc_method = 1;
|
||||
*/
|
||||
rpcMethod = '';
|
||||
|
||||
/**
|
||||
* use is the one-line usage method. It also allows specifying an alternate
|
||||
* name for the command as the first word of the usage text.
|
||||
*
|
||||
* By default the name of an rpc command is the kebab-case short name of the
|
||||
* rpc method.
|
||||
*
|
||||
* @generated from field: string use = 2;
|
||||
*/
|
||||
use = '';
|
||||
|
||||
/**
|
||||
* long is the long message shown in the 'help <this-command>' output.
|
||||
*
|
||||
* @generated from field: string long = 3;
|
||||
*/
|
||||
long = '';
|
||||
|
||||
/**
|
||||
* short is the short description shown in the 'help' output.
|
||||
*
|
||||
* @generated from field: string short = 4;
|
||||
*/
|
||||
short = '';
|
||||
|
||||
/**
|
||||
* example is examples of how to use the command.
|
||||
*
|
||||
* @generated from field: string example = 5;
|
||||
*/
|
||||
example = '';
|
||||
|
||||
/**
|
||||
* alias is an array of aliases that can be used instead of the first word in Use.
|
||||
*
|
||||
* @generated from field: repeated string alias = 6;
|
||||
*/
|
||||
alias: string[] = [];
|
||||
|
||||
/**
|
||||
* suggest_for is an array of command names for which this command will be suggested -
|
||||
* similar to aliases but only suggests.
|
||||
*
|
||||
* @generated from field: repeated string suggest_for = 7;
|
||||
*/
|
||||
suggestFor: string[] = [];
|
||||
|
||||
/**
|
||||
* deprecated defines, if this command is deprecated and should print this string when used.
|
||||
*
|
||||
* @generated from field: string deprecated = 8;
|
||||
*/
|
||||
deprecated = '';
|
||||
|
||||
/**
|
||||
* version defines the version for this command. If this value is non-empty and the command does not
|
||||
* define a "version" flag, a "version" boolean flag will be added to the command and, if specified,
|
||||
* will print content of the "Version" variable. A shorthand "v" flag will also be added if the
|
||||
* command does not define one.
|
||||
*
|
||||
* @generated from field: string version = 9;
|
||||
*/
|
||||
version = '';
|
||||
|
||||
/**
|
||||
* flag_options are options for flags generated from rpc request fields.
|
||||
* By default all request fields are configured as flags. They can
|
||||
* also be configured as positional args instead using positional_args.
|
||||
*
|
||||
* @generated from field: map<string, cosmos.autocli.v1.FlagOptions> flag_options = 10;
|
||||
*/
|
||||
flagOptions: { [key: string]: FlagOptions } = {};
|
||||
|
||||
/**
|
||||
* positional_args specifies positional arguments for the command.
|
||||
*
|
||||
* @generated from field: repeated cosmos.autocli.v1.PositionalArgDescriptor positional_args = 11;
|
||||
*/
|
||||
positionalArgs: PositionalArgDescriptor[] = [];
|
||||
|
||||
/**
|
||||
* skip specifies whether to skip this rpc method when generating commands.
|
||||
*
|
||||
* @generated from field: bool skip = 12;
|
||||
*/
|
||||
skip = false;
|
||||
|
||||
constructor(data?: PartialMessage<RpcCommandOptions>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = 'cosmos.autocli.v1.RpcCommandOptions';
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: 'rpc_method', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 2, name: 'use', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 3, name: 'long', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 4, name: 'short', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 5, name: 'example', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
|
||||
{
|
||||
no: 6,
|
||||
name: 'alias',
|
||||
kind: 'scalar',
|
||||
T: 9 /* ScalarType.STRING */,
|
||||
repeated: true,
|
||||
},
|
||||
{
|
||||
no: 7,
|
||||
name: 'suggest_for',
|
||||
kind: 'scalar',
|
||||
T: 9 /* ScalarType.STRING */,
|
||||
repeated: true,
|
||||
},
|
||||
{ no: 8, name: 'deprecated', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 9, name: 'version', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
|
||||
{
|
||||
no: 10,
|
||||
name: 'flag_options',
|
||||
kind: 'map',
|
||||
K: 9 /* ScalarType.STRING */,
|
||||
V: { kind: 'message', T: FlagOptions },
|
||||
},
|
||||
{
|
||||
no: 11,
|
||||
name: 'positional_args',
|
||||
kind: 'message',
|
||||
T: PositionalArgDescriptor,
|
||||
repeated: true,
|
||||
},
|
||||
{ no: 12, name: 'skip', kind: 'scalar', T: 8 /* ScalarType.BOOL */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RpcCommandOptions {
|
||||
return new RpcCommandOptions().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RpcCommandOptions {
|
||||
return new RpcCommandOptions().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RpcCommandOptions {
|
||||
return new RpcCommandOptions().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(
|
||||
a: RpcCommandOptions | PlainMessage<RpcCommandOptions> | undefined,
|
||||
b: RpcCommandOptions | PlainMessage<RpcCommandOptions> | undefined
|
||||
): boolean {
|
||||
return proto3.util.equals(RpcCommandOptions, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* FlagOptions are options for flags generated from rpc request fields.
|
||||
* By default, all request fields are configured as flags based on the
|
||||
* kebab-case name of the field. Fields can be turned into positional arguments
|
||||
* instead by using RpcCommandOptions.positional_args.
|
||||
*
|
||||
* @generated from message cosmos.autocli.v1.FlagOptions
|
||||
*/
|
||||
export class FlagOptions extends Message<FlagOptions> {
|
||||
/**
|
||||
* name is an alternate name to use for the field flag.
|
||||
*
|
||||
* @generated from field: string name = 1;
|
||||
*/
|
||||
name = '';
|
||||
|
||||
/**
|
||||
* shorthand is a one-letter abbreviated flag.
|
||||
*
|
||||
* @generated from field: string shorthand = 2;
|
||||
*/
|
||||
shorthand = '';
|
||||
|
||||
/**
|
||||
* usage is the help message.
|
||||
*
|
||||
* @generated from field: string usage = 3;
|
||||
*/
|
||||
usage = '';
|
||||
|
||||
/**
|
||||
* default_value is the default value as text.
|
||||
*
|
||||
* @generated from field: string default_value = 4;
|
||||
*/
|
||||
defaultValue = '';
|
||||
|
||||
/**
|
||||
* deprecated is the usage text to show if this flag is deprecated.
|
||||
*
|
||||
* @generated from field: string deprecated = 6;
|
||||
*/
|
||||
deprecated = '';
|
||||
|
||||
/**
|
||||
* shorthand_deprecated is the usage text to show if the shorthand of this flag is deprecated.
|
||||
*
|
||||
* @generated from field: string shorthand_deprecated = 7;
|
||||
*/
|
||||
shorthandDeprecated = '';
|
||||
|
||||
/**
|
||||
* hidden hides the flag from help/usage text
|
||||
*
|
||||
* @generated from field: bool hidden = 8;
|
||||
*/
|
||||
hidden = false;
|
||||
|
||||
constructor(data?: PartialMessage<FlagOptions>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = 'cosmos.autocli.v1.FlagOptions';
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: 'name', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 2, name: 'shorthand', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 3, name: 'usage', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
|
||||
{
|
||||
no: 4,
|
||||
name: 'default_value',
|
||||
kind: 'scalar',
|
||||
T: 9 /* ScalarType.STRING */,
|
||||
},
|
||||
{ no: 6, name: 'deprecated', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
|
||||
{
|
||||
no: 7,
|
||||
name: 'shorthand_deprecated',
|
||||
kind: 'scalar',
|
||||
T: 9 /* ScalarType.STRING */,
|
||||
},
|
||||
{ no: 8, name: 'hidden', kind: 'scalar', T: 8 /* ScalarType.BOOL */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): FlagOptions {
|
||||
return new FlagOptions().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): FlagOptions {
|
||||
return new FlagOptions().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): FlagOptions {
|
||||
return new FlagOptions().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(
|
||||
a: FlagOptions | PlainMessage<FlagOptions> | undefined,
|
||||
b: FlagOptions | PlainMessage<FlagOptions> | undefined
|
||||
): boolean {
|
||||
return proto3.util.equals(FlagOptions, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* PositionalArgDescriptor describes a positional argument.
|
||||
*
|
||||
* @generated from message cosmos.autocli.v1.PositionalArgDescriptor
|
||||
*/
|
||||
export class PositionalArgDescriptor extends Message<PositionalArgDescriptor> {
|
||||
/**
|
||||
* proto_field specifies the proto field to use as the positional arg. Any
|
||||
* fields used as positional args will not have a flag generated.
|
||||
*
|
||||
* @generated from field: string proto_field = 1;
|
||||
*/
|
||||
protoField = '';
|
||||
|
||||
/**
|
||||
* varargs makes a positional parameter a varargs parameter. This can only be
|
||||
* applied to last positional parameter and the proto_field must a repeated
|
||||
* field.
|
||||
*
|
||||
* @generated from field: bool varargs = 2;
|
||||
*/
|
||||
varargs = false;
|
||||
|
||||
constructor(data?: PartialMessage<PositionalArgDescriptor>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = 'cosmos.autocli.v1.PositionalArgDescriptor';
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{
|
||||
no: 1,
|
||||
name: 'proto_field',
|
||||
kind: 'scalar',
|
||||
T: 9 /* ScalarType.STRING */,
|
||||
},
|
||||
{ no: 2, name: 'varargs', kind: 'scalar', T: 8 /* ScalarType.BOOL */ },
|
||||
]);
|
||||
|
||||
static fromBinary(
|
||||
bytes: Uint8Array,
|
||||
options?: Partial<BinaryReadOptions>
|
||||
): PositionalArgDescriptor {
|
||||
return new PositionalArgDescriptor().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(
|
||||
jsonValue: JsonValue,
|
||||
options?: Partial<JsonReadOptions>
|
||||
): PositionalArgDescriptor {
|
||||
return new PositionalArgDescriptor().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(
|
||||
jsonString: string,
|
||||
options?: Partial<JsonReadOptions>
|
||||
): PositionalArgDescriptor {
|
||||
return new PositionalArgDescriptor().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(
|
||||
a: PositionalArgDescriptor | PlainMessage<PositionalArgDescriptor> | undefined,
|
||||
b: PositionalArgDescriptor | PlainMessage<PositionalArgDescriptor> | undefined
|
||||
): boolean {
|
||||
return proto3.util.equals(PositionalArgDescriptor, a, b);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts"
|
||||
// @generated from file cosmos/autocli/v1/query.proto (package cosmos.autocli.v1, syntax proto3)
|
||||
/* eslint-disable */
|
||||
// @ts-nocheck
|
||||
|
||||
import { AppOptionsRequest, AppOptionsResponse } from './query_pb.js';
|
||||
|
||||
const TYPE_NAME = 'cosmos.autocli.v1.Query';
|
||||
|
||||
/**
|
||||
* AppOptions returns the autocli options for all of the modules in an app.
|
||||
*
|
||||
* @generated from rpc cosmos.autocli.v1.Query.AppOptions
|
||||
*/
|
||||
export const QueryAppOptionsService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: 'AppOptions',
|
||||
Request: AppOptionsRequest,
|
||||
Response: AppOptionsResponse,
|
||||
} as const;
|
||||
@@ -0,0 +1,103 @@
|
||||
// @generated by protoc-gen-es v1.2.0 with parameter "target=ts"
|
||||
// @generated from file cosmos/autocli/v1/query.proto (package cosmos.autocli.v1, syntax proto3)
|
||||
/* eslint-disable */
|
||||
// @ts-nocheck
|
||||
|
||||
import type {
|
||||
BinaryReadOptions,
|
||||
FieldList,
|
||||
JsonReadOptions,
|
||||
JsonValue,
|
||||
PartialMessage,
|
||||
PlainMessage,
|
||||
} from '@bufbuild/protobuf';
|
||||
import { Message, proto3 } from '@bufbuild/protobuf';
|
||||
import { ModuleOptions } from './options_pb.js';
|
||||
|
||||
/**
|
||||
* AppOptionsRequest is the RemoteInfoService/AppOptions request type.
|
||||
*
|
||||
* @generated from message cosmos.autocli.v1.AppOptionsRequest
|
||||
*/
|
||||
export class AppOptionsRequest extends Message<AppOptionsRequest> {
|
||||
constructor(data?: PartialMessage<AppOptionsRequest>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = 'cosmos.autocli.v1.AppOptionsRequest';
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => []);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AppOptionsRequest {
|
||||
return new AppOptionsRequest().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AppOptionsRequest {
|
||||
return new AppOptionsRequest().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AppOptionsRequest {
|
||||
return new AppOptionsRequest().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(
|
||||
a: AppOptionsRequest | PlainMessage<AppOptionsRequest> | undefined,
|
||||
b: AppOptionsRequest | PlainMessage<AppOptionsRequest> | undefined
|
||||
): boolean {
|
||||
return proto3.util.equals(AppOptionsRequest, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* AppOptionsResponse is the RemoteInfoService/AppOptions response type.
|
||||
*
|
||||
* @generated from message cosmos.autocli.v1.AppOptionsResponse
|
||||
*/
|
||||
export class AppOptionsResponse extends Message<AppOptionsResponse> {
|
||||
/**
|
||||
* module_options is a map of module name to autocli module options.
|
||||
*
|
||||
* @generated from field: map<string, cosmos.autocli.v1.ModuleOptions> module_options = 1;
|
||||
*/
|
||||
moduleOptions: { [key: string]: ModuleOptions } = {};
|
||||
|
||||
constructor(data?: PartialMessage<AppOptionsResponse>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = 'cosmos.autocli.v1.AppOptionsResponse';
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{
|
||||
no: 1,
|
||||
name: 'module_options',
|
||||
kind: 'map',
|
||||
K: 9 /* ScalarType.STRING */,
|
||||
V: { kind: 'message', T: ModuleOptions },
|
||||
},
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AppOptionsResponse {
|
||||
return new AppOptionsResponse().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AppOptionsResponse {
|
||||
return new AppOptionsResponse().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(
|
||||
jsonString: string,
|
||||
options?: Partial<JsonReadOptions>
|
||||
): AppOptionsResponse {
|
||||
return new AppOptionsResponse().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(
|
||||
a: AppOptionsResponse | PlainMessage<AppOptionsResponse> | undefined,
|
||||
b: AppOptionsResponse | PlainMessage<AppOptionsResponse> | undefined
|
||||
): boolean {
|
||||
return proto3.util.equals(AppOptionsResponse, a, b);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,792 @@
|
||||
// @generated by protoc-gen-es v1.2.0 with parameter "target=ts"
|
||||
// @generated from file cosmos/base/abci/v1beta1/abci.proto (package cosmos.base.abci.v1beta1, syntax proto3)
|
||||
/* eslint-disable */
|
||||
// @ts-nocheck
|
||||
|
||||
import type {
|
||||
BinaryReadOptions,
|
||||
FieldList,
|
||||
JsonReadOptions,
|
||||
JsonValue,
|
||||
PartialMessage,
|
||||
PlainMessage,
|
||||
} from '@bufbuild/protobuf';
|
||||
import { Any, Message, proto3, protoInt64 } from '@bufbuild/protobuf';
|
||||
import { Event } from '../../../../tendermint/abci/types_pb.js';
|
||||
import { Block } from '../../../../tendermint/types/block_pb.js';
|
||||
|
||||
/**
|
||||
* TxResponse defines a structure containing relevant tx data and metadata. The
|
||||
* tags are stringified and the log is JSON decoded.
|
||||
*
|
||||
* @generated from message cosmos.base.abci.v1beta1.TxResponse
|
||||
*/
|
||||
export class TxResponse extends Message<TxResponse> {
|
||||
/**
|
||||
* The block height
|
||||
*
|
||||
* @generated from field: int64 height = 1;
|
||||
*/
|
||||
height = protoInt64.zero;
|
||||
|
||||
/**
|
||||
* The transaction hash.
|
||||
*
|
||||
* @generated from field: string txhash = 2;
|
||||
*/
|
||||
txhash = '';
|
||||
|
||||
/**
|
||||
* Namespace for the Code
|
||||
*
|
||||
* @generated from field: string codespace = 3;
|
||||
*/
|
||||
codespace = '';
|
||||
|
||||
/**
|
||||
* Response code.
|
||||
*
|
||||
* @generated from field: uint32 code = 4;
|
||||
*/
|
||||
code = 0;
|
||||
|
||||
/**
|
||||
* Result bytes, if any.
|
||||
*
|
||||
* @generated from field: string data = 5;
|
||||
*/
|
||||
data = '';
|
||||
|
||||
/**
|
||||
* The output of the application's logger (raw string). May be
|
||||
* non-deterministic.
|
||||
*
|
||||
* @generated from field: string raw_log = 6;
|
||||
*/
|
||||
rawLog = '';
|
||||
|
||||
/**
|
||||
* The output of the application's logger (typed). May be non-deterministic.
|
||||
*
|
||||
* @generated from field: repeated cosmos.base.abci.v1beta1.ABCIMessageLog logs = 7;
|
||||
*/
|
||||
logs: ABCIMessageLog[] = [];
|
||||
|
||||
/**
|
||||
* Additional information. May be non-deterministic.
|
||||
*
|
||||
* @generated from field: string info = 8;
|
||||
*/
|
||||
info = '';
|
||||
|
||||
/**
|
||||
* Amount of gas requested for transaction.
|
||||
*
|
||||
* @generated from field: int64 gas_wanted = 9;
|
||||
*/
|
||||
gasWanted = protoInt64.zero;
|
||||
|
||||
/**
|
||||
* Amount of gas consumed by transaction.
|
||||
*
|
||||
* @generated from field: int64 gas_used = 10;
|
||||
*/
|
||||
gasUsed = protoInt64.zero;
|
||||
|
||||
/**
|
||||
* The request transaction bytes.
|
||||
*
|
||||
* @generated from field: google.protobuf.Any tx = 11;
|
||||
*/
|
||||
tx?: Any;
|
||||
|
||||
/**
|
||||
* Time of the previous block. For heights > 1, it's the weighted median of
|
||||
* the timestamps of the valid votes in the block.LastCommit. For height == 1,
|
||||
* it's genesis time.
|
||||
*
|
||||
* @generated from field: string timestamp = 12;
|
||||
*/
|
||||
timestamp = '';
|
||||
|
||||
/**
|
||||
* Events defines all the events emitted by processing a transaction. Note,
|
||||
* these events include those emitted by processing all the messages and those
|
||||
* emitted from the ante. Whereas Logs contains the events, with
|
||||
* additional metadata, emitted only by processing the messages.
|
||||
*
|
||||
* Since: cosmos-sdk 0.42.11, 0.44.5, 0.45
|
||||
*
|
||||
* @generated from field: repeated tendermint.abci.Event events = 13;
|
||||
*/
|
||||
events: Event[] = [];
|
||||
|
||||
constructor(data?: PartialMessage<TxResponse>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = 'cosmos.base.abci.v1beta1.TxResponse';
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: 'height', kind: 'scalar', T: 3 /* ScalarType.INT64 */ },
|
||||
{ no: 2, name: 'txhash', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 3, name: 'codespace', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 4, name: 'code', kind: 'scalar', T: 13 /* ScalarType.UINT32 */ },
|
||||
{ no: 5, name: 'data', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 6, name: 'raw_log', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 7, name: 'logs', kind: 'message', T: ABCIMessageLog, repeated: true },
|
||||
{ no: 8, name: 'info', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 9, name: 'gas_wanted', kind: 'scalar', T: 3 /* ScalarType.INT64 */ },
|
||||
{ no: 10, name: 'gas_used', kind: 'scalar', T: 3 /* ScalarType.INT64 */ },
|
||||
{ no: 11, name: 'tx', kind: 'message', T: Any },
|
||||
{ no: 12, name: 'timestamp', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 13, name: 'events', kind: 'message', T: Event, repeated: true },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TxResponse {
|
||||
return new TxResponse().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TxResponse {
|
||||
return new TxResponse().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TxResponse {
|
||||
return new TxResponse().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(
|
||||
a: TxResponse | PlainMessage<TxResponse> | undefined,
|
||||
b: TxResponse | PlainMessage<TxResponse> | undefined
|
||||
): boolean {
|
||||
return proto3.util.equals(TxResponse, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* ABCIMessageLog defines a structure containing an indexed tx ABCI message log.
|
||||
*
|
||||
* @generated from message cosmos.base.abci.v1beta1.ABCIMessageLog
|
||||
*/
|
||||
export class ABCIMessageLog extends Message<ABCIMessageLog> {
|
||||
/**
|
||||
* @generated from field: uint32 msg_index = 1;
|
||||
*/
|
||||
msgIndex = 0;
|
||||
|
||||
/**
|
||||
* @generated from field: string log = 2;
|
||||
*/
|
||||
log = '';
|
||||
|
||||
/**
|
||||
* Events contains a slice of Event objects that were emitted during some
|
||||
* execution.
|
||||
*
|
||||
* @generated from field: repeated cosmos.base.abci.v1beta1.StringEvent events = 3;
|
||||
*/
|
||||
events: StringEvent[] = [];
|
||||
|
||||
constructor(data?: PartialMessage<ABCIMessageLog>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = 'cosmos.base.abci.v1beta1.ABCIMessageLog';
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: 'msg_index', kind: 'scalar', T: 13 /* ScalarType.UINT32 */ },
|
||||
{ no: 2, name: 'log', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 3, name: 'events', kind: 'message', T: StringEvent, repeated: true },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ABCIMessageLog {
|
||||
return new ABCIMessageLog().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ABCIMessageLog {
|
||||
return new ABCIMessageLog().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ABCIMessageLog {
|
||||
return new ABCIMessageLog().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(
|
||||
a: ABCIMessageLog | PlainMessage<ABCIMessageLog> | undefined,
|
||||
b: ABCIMessageLog | PlainMessage<ABCIMessageLog> | undefined
|
||||
): boolean {
|
||||
return proto3.util.equals(ABCIMessageLog, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* StringEvent defines en Event object wrapper where all the attributes
|
||||
* contain key/value pairs that are strings instead of raw bytes.
|
||||
*
|
||||
* @generated from message cosmos.base.abci.v1beta1.StringEvent
|
||||
*/
|
||||
export class StringEvent extends Message<StringEvent> {
|
||||
/**
|
||||
* @generated from field: string type = 1;
|
||||
*/
|
||||
type = '';
|
||||
|
||||
/**
|
||||
* @generated from field: repeated cosmos.base.abci.v1beta1.Attribute attributes = 2;
|
||||
*/
|
||||
attributes: Attribute[] = [];
|
||||
|
||||
constructor(data?: PartialMessage<StringEvent>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = 'cosmos.base.abci.v1beta1.StringEvent';
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: 'type', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
|
||||
{
|
||||
no: 2,
|
||||
name: 'attributes',
|
||||
kind: 'message',
|
||||
T: Attribute,
|
||||
repeated: true,
|
||||
},
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): StringEvent {
|
||||
return new StringEvent().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): StringEvent {
|
||||
return new StringEvent().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): StringEvent {
|
||||
return new StringEvent().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(
|
||||
a: StringEvent | PlainMessage<StringEvent> | undefined,
|
||||
b: StringEvent | PlainMessage<StringEvent> | undefined
|
||||
): boolean {
|
||||
return proto3.util.equals(StringEvent, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Attribute defines an attribute wrapper where the key and value are
|
||||
* strings instead of raw bytes.
|
||||
*
|
||||
* @generated from message cosmos.base.abci.v1beta1.Attribute
|
||||
*/
|
||||
export class Attribute extends Message<Attribute> {
|
||||
/**
|
||||
* @generated from field: string key = 1;
|
||||
*/
|
||||
key = '';
|
||||
|
||||
/**
|
||||
* @generated from field: string value = 2;
|
||||
*/
|
||||
value = '';
|
||||
|
||||
constructor(data?: PartialMessage<Attribute>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = 'cosmos.base.abci.v1beta1.Attribute';
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: 'key', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 2, name: 'value', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Attribute {
|
||||
return new Attribute().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Attribute {
|
||||
return new Attribute().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Attribute {
|
||||
return new Attribute().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(
|
||||
a: Attribute | PlainMessage<Attribute> | undefined,
|
||||
b: Attribute | PlainMessage<Attribute> | undefined
|
||||
): boolean {
|
||||
return proto3.util.equals(Attribute, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* GasInfo defines tx execution gas context.
|
||||
*
|
||||
* @generated from message cosmos.base.abci.v1beta1.GasInfo
|
||||
*/
|
||||
export class GasInfo extends Message<GasInfo> {
|
||||
/**
|
||||
* GasWanted is the maximum units of work we allow this tx to perform.
|
||||
*
|
||||
* @generated from field: uint64 gas_wanted = 1;
|
||||
*/
|
||||
gasWanted = protoInt64.zero;
|
||||
|
||||
/**
|
||||
* GasUsed is the amount of gas actually consumed.
|
||||
*
|
||||
* @generated from field: uint64 gas_used = 2;
|
||||
*/
|
||||
gasUsed = protoInt64.zero;
|
||||
|
||||
constructor(data?: PartialMessage<GasInfo>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = 'cosmos.base.abci.v1beta1.GasInfo';
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: 'gas_wanted', kind: 'scalar', T: 4 /* ScalarType.UINT64 */ },
|
||||
{ no: 2, name: 'gas_used', kind: 'scalar', T: 4 /* ScalarType.UINT64 */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GasInfo {
|
||||
return new GasInfo().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GasInfo {
|
||||
return new GasInfo().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GasInfo {
|
||||
return new GasInfo().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(
|
||||
a: GasInfo | PlainMessage<GasInfo> | undefined,
|
||||
b: GasInfo | PlainMessage<GasInfo> | undefined
|
||||
): boolean {
|
||||
return proto3.util.equals(GasInfo, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Result is the union of ResponseFormat and ResponseCheckTx.
|
||||
*
|
||||
* @generated from message cosmos.base.abci.v1beta1.Result
|
||||
*/
|
||||
export class Result extends Message<Result> {
|
||||
/**
|
||||
* Data is any data returned from message or handler execution. It MUST be
|
||||
* length prefixed in order to separate data from multiple message executions.
|
||||
* Deprecated. This field is still populated, but prefer msg_response instead
|
||||
* because it also contains the Msg response typeURL.
|
||||
*
|
||||
* @generated from field: bytes data = 1 [deprecated = true];
|
||||
* @deprecated
|
||||
*/
|
||||
data = new Uint8Array(0);
|
||||
|
||||
/**
|
||||
* Log contains the log information from message or handler execution.
|
||||
*
|
||||
* @generated from field: string log = 2;
|
||||
*/
|
||||
log = '';
|
||||
|
||||
/**
|
||||
* Events contains a slice of Event objects that were emitted during message
|
||||
* or handler execution.
|
||||
*
|
||||
* @generated from field: repeated tendermint.abci.Event events = 3;
|
||||
*/
|
||||
events: Event[] = [];
|
||||
|
||||
/**
|
||||
* msg_responses contains the Msg handler responses type packed in Anys.
|
||||
*
|
||||
* Since: cosmos-sdk 0.46
|
||||
*
|
||||
* @generated from field: repeated google.protobuf.Any msg_responses = 4;
|
||||
*/
|
||||
msgResponses: Any[] = [];
|
||||
|
||||
constructor(data?: PartialMessage<Result>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = 'cosmos.base.abci.v1beta1.Result';
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: 'data', kind: 'scalar', T: 12 /* ScalarType.BYTES */ },
|
||||
{ no: 2, name: 'log', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 3, name: 'events', kind: 'message', T: Event, repeated: true },
|
||||
{ no: 4, name: 'msg_responses', kind: 'message', T: Any, repeated: true },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Result {
|
||||
return new Result().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Result {
|
||||
return new Result().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Result {
|
||||
return new Result().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(
|
||||
a: Result | PlainMessage<Result> | undefined,
|
||||
b: Result | PlainMessage<Result> | undefined
|
||||
): boolean {
|
||||
return proto3.util.equals(Result, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* SimulationResponse defines the response generated when a transaction is
|
||||
* successfully simulated.
|
||||
*
|
||||
* @generated from message cosmos.base.abci.v1beta1.SimulationResponse
|
||||
*/
|
||||
export class SimulationResponse extends Message<SimulationResponse> {
|
||||
/**
|
||||
* @generated from field: cosmos.base.abci.v1beta1.GasInfo gas_info = 1;
|
||||
*/
|
||||
gasInfo?: GasInfo;
|
||||
|
||||
/**
|
||||
* @generated from field: cosmos.base.abci.v1beta1.Result result = 2;
|
||||
*/
|
||||
result?: Result;
|
||||
|
||||
constructor(data?: PartialMessage<SimulationResponse>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = 'cosmos.base.abci.v1beta1.SimulationResponse';
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: 'gas_info', kind: 'message', T: GasInfo },
|
||||
{ no: 2, name: 'result', kind: 'message', T: Result },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SimulationResponse {
|
||||
return new SimulationResponse().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SimulationResponse {
|
||||
return new SimulationResponse().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(
|
||||
jsonString: string,
|
||||
options?: Partial<JsonReadOptions>
|
||||
): SimulationResponse {
|
||||
return new SimulationResponse().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(
|
||||
a: SimulationResponse | PlainMessage<SimulationResponse> | undefined,
|
||||
b: SimulationResponse | PlainMessage<SimulationResponse> | undefined
|
||||
): boolean {
|
||||
return proto3.util.equals(SimulationResponse, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* MsgData defines the data returned in a Result object during message
|
||||
* execution.
|
||||
*
|
||||
* @generated from message cosmos.base.abci.v1beta1.MsgData
|
||||
* @deprecated
|
||||
*/
|
||||
export class MsgData extends Message<MsgData> {
|
||||
/**
|
||||
* @generated from field: string msg_type = 1;
|
||||
*/
|
||||
msgType = '';
|
||||
|
||||
/**
|
||||
* @generated from field: bytes data = 2;
|
||||
*/
|
||||
data = new Uint8Array(0);
|
||||
|
||||
constructor(data?: PartialMessage<MsgData>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = 'cosmos.base.abci.v1beta1.MsgData';
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: 'msg_type', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 2, name: 'data', kind: 'scalar', T: 12 /* ScalarType.BYTES */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MsgData {
|
||||
return new MsgData().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MsgData {
|
||||
return new MsgData().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MsgData {
|
||||
return new MsgData().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(
|
||||
a: MsgData | PlainMessage<MsgData> | undefined,
|
||||
b: MsgData | PlainMessage<MsgData> | undefined
|
||||
): boolean {
|
||||
return proto3.util.equals(MsgData, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* TxMsgData defines a list of MsgData. A transaction will have a MsgData object
|
||||
* for each message.
|
||||
*
|
||||
* @generated from message cosmos.base.abci.v1beta1.TxMsgData
|
||||
*/
|
||||
export class TxMsgData extends Message<TxMsgData> {
|
||||
/**
|
||||
* data field is deprecated and not populated.
|
||||
*
|
||||
* @generated from field: repeated cosmos.base.abci.v1beta1.MsgData data = 1 [deprecated = true];
|
||||
* @deprecated
|
||||
*/
|
||||
data: MsgData[] = [];
|
||||
|
||||
/**
|
||||
* msg_responses contains the Msg handler responses packed into Anys.
|
||||
*
|
||||
* Since: cosmos-sdk 0.46
|
||||
*
|
||||
* @generated from field: repeated google.protobuf.Any msg_responses = 2;
|
||||
*/
|
||||
msgResponses: Any[] = [];
|
||||
|
||||
constructor(data?: PartialMessage<TxMsgData>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = 'cosmos.base.abci.v1beta1.TxMsgData';
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: 'data', kind: 'message', T: MsgData, repeated: true },
|
||||
{ no: 2, name: 'msg_responses', kind: 'message', T: Any, repeated: true },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TxMsgData {
|
||||
return new TxMsgData().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TxMsgData {
|
||||
return new TxMsgData().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TxMsgData {
|
||||
return new TxMsgData().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(
|
||||
a: TxMsgData | PlainMessage<TxMsgData> | undefined,
|
||||
b: TxMsgData | PlainMessage<TxMsgData> | undefined
|
||||
): boolean {
|
||||
return proto3.util.equals(TxMsgData, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* SearchTxsResult defines a structure for querying txs pageable
|
||||
*
|
||||
* @generated from message cosmos.base.abci.v1beta1.SearchTxsResult
|
||||
*/
|
||||
export class SearchTxsResult extends Message<SearchTxsResult> {
|
||||
/**
|
||||
* Count of all txs
|
||||
*
|
||||
* @generated from field: uint64 total_count = 1;
|
||||
*/
|
||||
totalCount = protoInt64.zero;
|
||||
|
||||
/**
|
||||
* Count of txs in current page
|
||||
*
|
||||
* @generated from field: uint64 count = 2;
|
||||
*/
|
||||
count = protoInt64.zero;
|
||||
|
||||
/**
|
||||
* Index of current page, start from 1
|
||||
*
|
||||
* @generated from field: uint64 page_number = 3;
|
||||
*/
|
||||
pageNumber = protoInt64.zero;
|
||||
|
||||
/**
|
||||
* Count of total pages
|
||||
*
|
||||
* @generated from field: uint64 page_total = 4;
|
||||
*/
|
||||
pageTotal = protoInt64.zero;
|
||||
|
||||
/**
|
||||
* Max count txs per page
|
||||
*
|
||||
* @generated from field: uint64 limit = 5;
|
||||
*/
|
||||
limit = protoInt64.zero;
|
||||
|
||||
/**
|
||||
* List of txs in current page
|
||||
*
|
||||
* @generated from field: repeated cosmos.base.abci.v1beta1.TxResponse txs = 6;
|
||||
*/
|
||||
txs: TxResponse[] = [];
|
||||
|
||||
constructor(data?: PartialMessage<SearchTxsResult>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = 'cosmos.base.abci.v1beta1.SearchTxsResult';
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{
|
||||
no: 1,
|
||||
name: 'total_count',
|
||||
kind: 'scalar',
|
||||
T: 4 /* ScalarType.UINT64 */,
|
||||
},
|
||||
{ no: 2, name: 'count', kind: 'scalar', T: 4 /* ScalarType.UINT64 */ },
|
||||
{
|
||||
no: 3,
|
||||
name: 'page_number',
|
||||
kind: 'scalar',
|
||||
T: 4 /* ScalarType.UINT64 */,
|
||||
},
|
||||
{ no: 4, name: 'page_total', kind: 'scalar', T: 4 /* ScalarType.UINT64 */ },
|
||||
{ no: 5, name: 'limit', kind: 'scalar', T: 4 /* ScalarType.UINT64 */ },
|
||||
{ no: 6, name: 'txs', kind: 'message', T: TxResponse, repeated: true },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SearchTxsResult {
|
||||
return new SearchTxsResult().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SearchTxsResult {
|
||||
return new SearchTxsResult().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SearchTxsResult {
|
||||
return new SearchTxsResult().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(
|
||||
a: SearchTxsResult | PlainMessage<SearchTxsResult> | undefined,
|
||||
b: SearchTxsResult | PlainMessage<SearchTxsResult> | undefined
|
||||
): boolean {
|
||||
return proto3.util.equals(SearchTxsResult, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* SearchBlocksResult defines a structure for querying blocks pageable
|
||||
*
|
||||
* @generated from message cosmos.base.abci.v1beta1.SearchBlocksResult
|
||||
*/
|
||||
export class SearchBlocksResult extends Message<SearchBlocksResult> {
|
||||
/**
|
||||
* Count of all blocks
|
||||
*
|
||||
* @generated from field: int64 total_count = 1;
|
||||
*/
|
||||
totalCount = protoInt64.zero;
|
||||
|
||||
/**
|
||||
* Count of blocks in current page
|
||||
*
|
||||
* @generated from field: int64 count = 2;
|
||||
*/
|
||||
count = protoInt64.zero;
|
||||
|
||||
/**
|
||||
* Index of current page, start from 1
|
||||
*
|
||||
* @generated from field: int64 page_number = 3;
|
||||
*/
|
||||
pageNumber = protoInt64.zero;
|
||||
|
||||
/**
|
||||
* Count of total pages
|
||||
*
|
||||
* @generated from field: int64 page_total = 4;
|
||||
*/
|
||||
pageTotal = protoInt64.zero;
|
||||
|
||||
/**
|
||||
* Max count blocks per page
|
||||
*
|
||||
* @generated from field: int64 limit = 5;
|
||||
*/
|
||||
limit = protoInt64.zero;
|
||||
|
||||
/**
|
||||
* List of blocks in current page
|
||||
*
|
||||
* @generated from field: repeated tendermint.types.Block blocks = 6;
|
||||
*/
|
||||
blocks: Block[] = [];
|
||||
|
||||
constructor(data?: PartialMessage<SearchBlocksResult>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = 'cosmos.base.abci.v1beta1.SearchBlocksResult';
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: 'total_count', kind: 'scalar', T: 3 /* ScalarType.INT64 */ },
|
||||
{ no: 2, name: 'count', kind: 'scalar', T: 3 /* ScalarType.INT64 */ },
|
||||
{ no: 3, name: 'page_number', kind: 'scalar', T: 3 /* ScalarType.INT64 */ },
|
||||
{ no: 4, name: 'page_total', kind: 'scalar', T: 3 /* ScalarType.INT64 */ },
|
||||
{ no: 5, name: 'limit', kind: 'scalar', T: 3 /* ScalarType.INT64 */ },
|
||||
{ no: 6, name: 'blocks', kind: 'message', T: Block, repeated: true },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SearchBlocksResult {
|
||||
return new SearchBlocksResult().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SearchBlocksResult {
|
||||
return new SearchBlocksResult().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(
|
||||
jsonString: string,
|
||||
options?: Partial<JsonReadOptions>
|
||||
): SearchBlocksResult {
|
||||
return new SearchBlocksResult().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(
|
||||
a: SearchBlocksResult | PlainMessage<SearchBlocksResult> | undefined,
|
||||
b: SearchBlocksResult | PlainMessage<SearchBlocksResult> | undefined
|
||||
): boolean {
|
||||
return proto3.util.equals(SearchBlocksResult, a, b);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts"
|
||||
// @generated from file cosmos/base/node/v1beta1/query.proto (package cosmos.base.node.v1beta1, syntax proto3)
|
||||
/* eslint-disable */
|
||||
// @ts-nocheck
|
||||
|
||||
import { ConfigRequest, ConfigResponse, StatusRequest, StatusResponse } from './query_pb.js';
|
||||
|
||||
const TYPE_NAME = 'cosmos.base.node.v1beta1.Service';
|
||||
|
||||
/**
|
||||
* Config queries for the operator configuration.
|
||||
*
|
||||
* @generated from rpc cosmos.base.node.v1beta1.Service.Config
|
||||
*/
|
||||
export const ServiceConfigService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: 'Config',
|
||||
Request: ConfigRequest,
|
||||
Response: ConfigResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* Status queries for the node status.
|
||||
*
|
||||
* @generated from rpc cosmos.base.node.v1beta1.Service.Status
|
||||
*/
|
||||
export const ServiceStatusService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: 'Status',
|
||||
Request: StatusRequest,
|
||||
Response: StatusResponse,
|
||||
} as const;
|
||||
@@ -0,0 +1,250 @@
|
||||
// @generated by protoc-gen-es v1.2.0 with parameter "target=ts"
|
||||
// @generated from file cosmos/base/node/v1beta1/query.proto (package cosmos.base.node.v1beta1, syntax proto3)
|
||||
/* eslint-disable */
|
||||
// @ts-nocheck
|
||||
|
||||
import type {
|
||||
BinaryReadOptions,
|
||||
FieldList,
|
||||
JsonReadOptions,
|
||||
JsonValue,
|
||||
PartialMessage,
|
||||
PlainMessage,
|
||||
} from '@bufbuild/protobuf';
|
||||
import { Message, Timestamp, proto3, protoInt64 } from '@bufbuild/protobuf';
|
||||
|
||||
/**
|
||||
* ConfigRequest defines the request structure for the Config gRPC query.
|
||||
*
|
||||
* @generated from message cosmos.base.node.v1beta1.ConfigRequest
|
||||
*/
|
||||
export class ConfigRequest extends Message<ConfigRequest> {
|
||||
constructor(data?: PartialMessage<ConfigRequest>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = 'cosmos.base.node.v1beta1.ConfigRequest';
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => []);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ConfigRequest {
|
||||
return new ConfigRequest().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ConfigRequest {
|
||||
return new ConfigRequest().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ConfigRequest {
|
||||
return new ConfigRequest().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(
|
||||
a: ConfigRequest | PlainMessage<ConfigRequest> | undefined,
|
||||
b: ConfigRequest | PlainMessage<ConfigRequest> | undefined
|
||||
): boolean {
|
||||
return proto3.util.equals(ConfigRequest, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* ConfigResponse defines the response structure for the Config gRPC query.
|
||||
*
|
||||
* @generated from message cosmos.base.node.v1beta1.ConfigResponse
|
||||
*/
|
||||
export class ConfigResponse extends Message<ConfigResponse> {
|
||||
/**
|
||||
* @generated from field: string minimum_gas_price = 1;
|
||||
*/
|
||||
minimumGasPrice = '';
|
||||
|
||||
/**
|
||||
* @generated from field: string pruning_keep_recent = 2;
|
||||
*/
|
||||
pruningKeepRecent = '';
|
||||
|
||||
/**
|
||||
* @generated from field: string pruning_interval = 3;
|
||||
*/
|
||||
pruningInterval = '';
|
||||
|
||||
/**
|
||||
* @generated from field: uint64 halt_height = 4;
|
||||
*/
|
||||
haltHeight = protoInt64.zero;
|
||||
|
||||
constructor(data?: PartialMessage<ConfigResponse>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = 'cosmos.base.node.v1beta1.ConfigResponse';
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{
|
||||
no: 1,
|
||||
name: 'minimum_gas_price',
|
||||
kind: 'scalar',
|
||||
T: 9 /* ScalarType.STRING */,
|
||||
},
|
||||
{
|
||||
no: 2,
|
||||
name: 'pruning_keep_recent',
|
||||
kind: 'scalar',
|
||||
T: 9 /* ScalarType.STRING */,
|
||||
},
|
||||
{
|
||||
no: 3,
|
||||
name: 'pruning_interval',
|
||||
kind: 'scalar',
|
||||
T: 9 /* ScalarType.STRING */,
|
||||
},
|
||||
{
|
||||
no: 4,
|
||||
name: 'halt_height',
|
||||
kind: 'scalar',
|
||||
T: 4 /* ScalarType.UINT64 */,
|
||||
},
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ConfigResponse {
|
||||
return new ConfigResponse().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ConfigResponse {
|
||||
return new ConfigResponse().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ConfigResponse {
|
||||
return new ConfigResponse().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(
|
||||
a: ConfigResponse | PlainMessage<ConfigResponse> | undefined,
|
||||
b: ConfigResponse | PlainMessage<ConfigResponse> | undefined
|
||||
): boolean {
|
||||
return proto3.util.equals(ConfigResponse, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* StateRequest defines the request structure for the status of a node.
|
||||
*
|
||||
* @generated from message cosmos.base.node.v1beta1.StatusRequest
|
||||
*/
|
||||
export class StatusRequest extends Message<StatusRequest> {
|
||||
constructor(data?: PartialMessage<StatusRequest>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = 'cosmos.base.node.v1beta1.StatusRequest';
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => []);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): StatusRequest {
|
||||
return new StatusRequest().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): StatusRequest {
|
||||
return new StatusRequest().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): StatusRequest {
|
||||
return new StatusRequest().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(
|
||||
a: StatusRequest | PlainMessage<StatusRequest> | undefined,
|
||||
b: StatusRequest | PlainMessage<StatusRequest> | undefined
|
||||
): boolean {
|
||||
return proto3.util.equals(StatusRequest, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* StateResponse defines the response structure for the status of a node.
|
||||
*
|
||||
* @generated from message cosmos.base.node.v1beta1.StatusResponse
|
||||
*/
|
||||
export class StatusResponse extends Message<StatusResponse> {
|
||||
/**
|
||||
* earliest block height available in the store
|
||||
*
|
||||
* @generated from field: uint64 earliest_store_height = 1;
|
||||
*/
|
||||
earliestStoreHeight = protoInt64.zero;
|
||||
|
||||
/**
|
||||
* current block height
|
||||
*
|
||||
* @generated from field: uint64 height = 2;
|
||||
*/
|
||||
height = protoInt64.zero;
|
||||
|
||||
/**
|
||||
* block height timestamp
|
||||
*
|
||||
* @generated from field: google.protobuf.Timestamp timestamp = 3;
|
||||
*/
|
||||
timestamp?: Timestamp;
|
||||
|
||||
/**
|
||||
* app hash of the current block
|
||||
*
|
||||
* @generated from field: bytes app_hash = 4;
|
||||
*/
|
||||
appHash = new Uint8Array(0);
|
||||
|
||||
/**
|
||||
* validator hash provided by the consensus header
|
||||
*
|
||||
* @generated from field: bytes validator_hash = 5;
|
||||
*/
|
||||
validatorHash = new Uint8Array(0);
|
||||
|
||||
constructor(data?: PartialMessage<StatusResponse>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = 'cosmos.base.node.v1beta1.StatusResponse';
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{
|
||||
no: 1,
|
||||
name: 'earliest_store_height',
|
||||
kind: 'scalar',
|
||||
T: 4 /* ScalarType.UINT64 */,
|
||||
},
|
||||
{ no: 2, name: 'height', kind: 'scalar', T: 4 /* ScalarType.UINT64 */ },
|
||||
{ no: 3, name: 'timestamp', kind: 'message', T: Timestamp },
|
||||
{ no: 4, name: 'app_hash', kind: 'scalar', T: 12 /* ScalarType.BYTES */ },
|
||||
{
|
||||
no: 5,
|
||||
name: 'validator_hash',
|
||||
kind: 'scalar',
|
||||
T: 12 /* ScalarType.BYTES */,
|
||||
},
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): StatusResponse {
|
||||
return new StatusResponse().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): StatusResponse {
|
||||
return new StatusResponse().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): StatusResponse {
|
||||
return new StatusResponse().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(
|
||||
a: StatusResponse | PlainMessage<StatusResponse> | undefined,
|
||||
b: StatusResponse | PlainMessage<StatusResponse> | undefined
|
||||
): boolean {
|
||||
return proto3.util.equals(StatusResponse, a, b);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,167 @@
|
||||
// @generated by protoc-gen-es v1.2.0 with parameter "target=ts"
|
||||
// @generated from file cosmos/base/query/v1beta1/pagination.proto (package cosmos.base.query.v1beta1, syntax proto3)
|
||||
/* eslint-disable */
|
||||
// @ts-nocheck
|
||||
|
||||
import type {
|
||||
BinaryReadOptions,
|
||||
FieldList,
|
||||
JsonReadOptions,
|
||||
JsonValue,
|
||||
PartialMessage,
|
||||
PlainMessage,
|
||||
} from '@bufbuild/protobuf';
|
||||
import { Message, proto3, protoInt64 } from '@bufbuild/protobuf';
|
||||
|
||||
/**
|
||||
* PageRequest is to be embedded in gRPC request messages for efficient
|
||||
* pagination. Ex:
|
||||
*
|
||||
* message SomeRequest {
|
||||
* Foo some_parameter = 1;
|
||||
* PageRequest pagination = 2;
|
||||
* }
|
||||
*
|
||||
* @generated from message cosmos.base.query.v1beta1.PageRequest
|
||||
*/
|
||||
export class PageRequest extends Message<PageRequest> {
|
||||
/**
|
||||
* key is a value returned in PageResponse.next_key to begin
|
||||
* querying the next page most efficiently. Only one of offset or key
|
||||
* should be set.
|
||||
*
|
||||
* @generated from field: bytes key = 1;
|
||||
*/
|
||||
key = new Uint8Array(0);
|
||||
|
||||
/**
|
||||
* offset is a numeric offset that can be used when key is unavailable.
|
||||
* It is less efficient than using key. Only one of offset or key should
|
||||
* be set.
|
||||
*
|
||||
* @generated from field: uint64 offset = 2;
|
||||
*/
|
||||
offset = protoInt64.zero;
|
||||
|
||||
/**
|
||||
* limit is the total number of results to be returned in the result page.
|
||||
* If left empty it will default to a value to be set by each app.
|
||||
*
|
||||
* @generated from field: uint64 limit = 3;
|
||||
*/
|
||||
limit = protoInt64.zero;
|
||||
|
||||
/**
|
||||
* count_total is set to true to indicate that the result set should include
|
||||
* a count of the total number of items available for pagination in UIs.
|
||||
* count_total is only respected when offset is used. It is ignored when key
|
||||
* is set.
|
||||
*
|
||||
* @generated from field: bool count_total = 4;
|
||||
*/
|
||||
countTotal = false;
|
||||
|
||||
/**
|
||||
* reverse is set to true if results are to be returned in the descending order.
|
||||
*
|
||||
* Since: cosmos-sdk 0.43
|
||||
*
|
||||
* @generated from field: bool reverse = 5;
|
||||
*/
|
||||
reverse = false;
|
||||
|
||||
constructor(data?: PartialMessage<PageRequest>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = 'cosmos.base.query.v1beta1.PageRequest';
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: 'key', kind: 'scalar', T: 12 /* ScalarType.BYTES */ },
|
||||
{ no: 2, name: 'offset', kind: 'scalar', T: 4 /* ScalarType.UINT64 */ },
|
||||
{ no: 3, name: 'limit', kind: 'scalar', T: 4 /* ScalarType.UINT64 */ },
|
||||
{ no: 4, name: 'count_total', kind: 'scalar', T: 8 /* ScalarType.BOOL */ },
|
||||
{ no: 5, name: 'reverse', kind: 'scalar', T: 8 /* ScalarType.BOOL */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PageRequest {
|
||||
return new PageRequest().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PageRequest {
|
||||
return new PageRequest().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PageRequest {
|
||||
return new PageRequest().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(
|
||||
a: PageRequest | PlainMessage<PageRequest> | undefined,
|
||||
b: PageRequest | PlainMessage<PageRequest> | undefined
|
||||
): boolean {
|
||||
return proto3.util.equals(PageRequest, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* PageResponse is to be embedded in gRPC response messages where the
|
||||
* corresponding request message has used PageRequest.
|
||||
*
|
||||
* message SomeResponse {
|
||||
* repeated Bar results = 1;
|
||||
* PageResponse page = 2;
|
||||
* }
|
||||
*
|
||||
* @generated from message cosmos.base.query.v1beta1.PageResponse
|
||||
*/
|
||||
export class PageResponse extends Message<PageResponse> {
|
||||
/**
|
||||
* next_key is the key to be passed to PageRequest.key to
|
||||
* query the next page most efficiently. It will be empty if
|
||||
* there are no more results.
|
||||
*
|
||||
* @generated from field: bytes next_key = 1;
|
||||
*/
|
||||
nextKey = new Uint8Array(0);
|
||||
|
||||
/**
|
||||
* total is total number of results available if PageRequest.count_total
|
||||
* was set, its value is undefined otherwise
|
||||
*
|
||||
* @generated from field: uint64 total = 2;
|
||||
*/
|
||||
total = protoInt64.zero;
|
||||
|
||||
constructor(data?: PartialMessage<PageResponse>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = 'cosmos.base.query.v1beta1.PageResponse';
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: 'next_key', kind: 'scalar', T: 12 /* ScalarType.BYTES */ },
|
||||
{ no: 2, name: 'total', kind: 'scalar', T: 4 /* ScalarType.UINT64 */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PageResponse {
|
||||
return new PageResponse().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PageResponse {
|
||||
return new PageResponse().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PageResponse {
|
||||
return new PageResponse().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(
|
||||
a: PageResponse | PlainMessage<PageResponse> | undefined,
|
||||
b: PageResponse | PlainMessage<PageResponse> | undefined
|
||||
): boolean {
|
||||
return proto3.util.equals(PageResponse, a, b);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts"
|
||||
// @generated from file cosmos/base/reflection/v1beta1/reflection.proto (package cosmos.base.reflection.v1beta1, syntax proto3)
|
||||
/* eslint-disable */
|
||||
// @ts-nocheck
|
||||
|
||||
import {
|
||||
ListAllInterfacesRequest,
|
||||
ListAllInterfacesResponse,
|
||||
ListImplementationsRequest,
|
||||
ListImplementationsResponse,
|
||||
} from './reflection_pb.js';
|
||||
|
||||
const TYPE_NAME = 'cosmos.base.reflection.v1beta1.ReflectionService';
|
||||
|
||||
/**
|
||||
* ListAllInterfaces lists all the interfaces registered in the interface
|
||||
* registry.
|
||||
*
|
||||
* @generated from rpc cosmos.base.reflection.v1beta1.ReflectionService.ListAllInterfaces
|
||||
*/
|
||||
export const ReflectionServiceListAllInterfacesService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: 'ListAllInterfaces',
|
||||
Request: ListAllInterfacesRequest,
|
||||
Response: ListAllInterfacesResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* ListImplementations list all the concrete types that implement a given
|
||||
* interface.
|
||||
*
|
||||
* @generated from rpc cosmos.base.reflection.v1beta1.ReflectionService.ListImplementations
|
||||
*/
|
||||
export const ReflectionServiceListImplementationsService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: 'ListImplementations',
|
||||
Request: ListImplementationsRequest,
|
||||
Response: ListImplementationsResponse,
|
||||
} as const;
|
||||
@@ -0,0 +1,234 @@
|
||||
// @generated by protoc-gen-es v1.2.0 with parameter "target=ts"
|
||||
// @generated from file cosmos/base/reflection/v1beta1/reflection.proto (package cosmos.base.reflection.v1beta1, syntax proto3)
|
||||
/* eslint-disable */
|
||||
// @ts-nocheck
|
||||
|
||||
import type {
|
||||
BinaryReadOptions,
|
||||
FieldList,
|
||||
JsonReadOptions,
|
||||
JsonValue,
|
||||
PartialMessage,
|
||||
PlainMessage,
|
||||
} from '@bufbuild/protobuf';
|
||||
import { Message, proto3 } from '@bufbuild/protobuf';
|
||||
|
||||
/**
|
||||
* ListAllInterfacesRequest is the request type of the ListAllInterfaces RPC.
|
||||
*
|
||||
* @generated from message cosmos.base.reflection.v1beta1.ListAllInterfacesRequest
|
||||
*/
|
||||
export class ListAllInterfacesRequest extends Message<ListAllInterfacesRequest> {
|
||||
constructor(data?: PartialMessage<ListAllInterfacesRequest>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = 'cosmos.base.reflection.v1beta1.ListAllInterfacesRequest';
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => []);
|
||||
|
||||
static fromBinary(
|
||||
bytes: Uint8Array,
|
||||
options?: Partial<BinaryReadOptions>
|
||||
): ListAllInterfacesRequest {
|
||||
return new ListAllInterfacesRequest().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(
|
||||
jsonValue: JsonValue,
|
||||
options?: Partial<JsonReadOptions>
|
||||
): ListAllInterfacesRequest {
|
||||
return new ListAllInterfacesRequest().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(
|
||||
jsonString: string,
|
||||
options?: Partial<JsonReadOptions>
|
||||
): ListAllInterfacesRequest {
|
||||
return new ListAllInterfacesRequest().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(
|
||||
a: ListAllInterfacesRequest | PlainMessage<ListAllInterfacesRequest> | undefined,
|
||||
b: ListAllInterfacesRequest | PlainMessage<ListAllInterfacesRequest> | undefined
|
||||
): boolean {
|
||||
return proto3.util.equals(ListAllInterfacesRequest, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* ListAllInterfacesResponse is the response type of the ListAllInterfaces RPC.
|
||||
*
|
||||
* @generated from message cosmos.base.reflection.v1beta1.ListAllInterfacesResponse
|
||||
*/
|
||||
export class ListAllInterfacesResponse extends Message<ListAllInterfacesResponse> {
|
||||
/**
|
||||
* interface_names is an array of all the registered interfaces.
|
||||
*
|
||||
* @generated from field: repeated string interface_names = 1;
|
||||
*/
|
||||
interfaceNames: string[] = [];
|
||||
|
||||
constructor(data?: PartialMessage<ListAllInterfacesResponse>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = 'cosmos.base.reflection.v1beta1.ListAllInterfacesResponse';
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{
|
||||
no: 1,
|
||||
name: 'interface_names',
|
||||
kind: 'scalar',
|
||||
T: 9 /* ScalarType.STRING */,
|
||||
repeated: true,
|
||||
},
|
||||
]);
|
||||
|
||||
static fromBinary(
|
||||
bytes: Uint8Array,
|
||||
options?: Partial<BinaryReadOptions>
|
||||
): ListAllInterfacesResponse {
|
||||
return new ListAllInterfacesResponse().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(
|
||||
jsonValue: JsonValue,
|
||||
options?: Partial<JsonReadOptions>
|
||||
): ListAllInterfacesResponse {
|
||||
return new ListAllInterfacesResponse().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(
|
||||
jsonString: string,
|
||||
options?: Partial<JsonReadOptions>
|
||||
): ListAllInterfacesResponse {
|
||||
return new ListAllInterfacesResponse().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(
|
||||
a: ListAllInterfacesResponse | PlainMessage<ListAllInterfacesResponse> | undefined,
|
||||
b: ListAllInterfacesResponse | PlainMessage<ListAllInterfacesResponse> | undefined
|
||||
): boolean {
|
||||
return proto3.util.equals(ListAllInterfacesResponse, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* ListImplementationsRequest is the request type of the ListImplementations
|
||||
* RPC.
|
||||
*
|
||||
* @generated from message cosmos.base.reflection.v1beta1.ListImplementationsRequest
|
||||
*/
|
||||
export class ListImplementationsRequest extends Message<ListImplementationsRequest> {
|
||||
/**
|
||||
* interface_name defines the interface to query the implementations for.
|
||||
*
|
||||
* @generated from field: string interface_name = 1;
|
||||
*/
|
||||
interfaceName = '';
|
||||
|
||||
constructor(data?: PartialMessage<ListImplementationsRequest>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = 'cosmos.base.reflection.v1beta1.ListImplementationsRequest';
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{
|
||||
no: 1,
|
||||
name: 'interface_name',
|
||||
kind: 'scalar',
|
||||
T: 9 /* ScalarType.STRING */,
|
||||
},
|
||||
]);
|
||||
|
||||
static fromBinary(
|
||||
bytes: Uint8Array,
|
||||
options?: Partial<BinaryReadOptions>
|
||||
): ListImplementationsRequest {
|
||||
return new ListImplementationsRequest().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(
|
||||
jsonValue: JsonValue,
|
||||
options?: Partial<JsonReadOptions>
|
||||
): ListImplementationsRequest {
|
||||
return new ListImplementationsRequest().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(
|
||||
jsonString: string,
|
||||
options?: Partial<JsonReadOptions>
|
||||
): ListImplementationsRequest {
|
||||
return new ListImplementationsRequest().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(
|
||||
a: ListImplementationsRequest | PlainMessage<ListImplementationsRequest> | undefined,
|
||||
b: ListImplementationsRequest | PlainMessage<ListImplementationsRequest> | undefined
|
||||
): boolean {
|
||||
return proto3.util.equals(ListImplementationsRequest, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* ListImplementationsResponse is the response type of the ListImplementations
|
||||
* RPC.
|
||||
*
|
||||
* @generated from message cosmos.base.reflection.v1beta1.ListImplementationsResponse
|
||||
*/
|
||||
export class ListImplementationsResponse extends Message<ListImplementationsResponse> {
|
||||
/**
|
||||
* @generated from field: repeated string implementation_message_names = 1;
|
||||
*/
|
||||
implementationMessageNames: string[] = [];
|
||||
|
||||
constructor(data?: PartialMessage<ListImplementationsResponse>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = 'cosmos.base.reflection.v1beta1.ListImplementationsResponse';
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{
|
||||
no: 1,
|
||||
name: 'implementation_message_names',
|
||||
kind: 'scalar',
|
||||
T: 9 /* ScalarType.STRING */,
|
||||
repeated: true,
|
||||
},
|
||||
]);
|
||||
|
||||
static fromBinary(
|
||||
bytes: Uint8Array,
|
||||
options?: Partial<BinaryReadOptions>
|
||||
): ListImplementationsResponse {
|
||||
return new ListImplementationsResponse().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(
|
||||
jsonValue: JsonValue,
|
||||
options?: Partial<JsonReadOptions>
|
||||
): ListImplementationsResponse {
|
||||
return new ListImplementationsResponse().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(
|
||||
jsonString: string,
|
||||
options?: Partial<JsonReadOptions>
|
||||
): ListImplementationsResponse {
|
||||
return new ListImplementationsResponse().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(
|
||||
a: ListImplementationsResponse | PlainMessage<ListImplementationsResponse> | undefined,
|
||||
b: ListImplementationsResponse | PlainMessage<ListImplementationsResponse> | undefined
|
||||
): boolean {
|
||||
return proto3.util.equals(ListImplementationsResponse, a, b);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,97 @@
|
||||
// Since: cosmos-sdk 0.43
|
||||
|
||||
// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts"
|
||||
// @generated from file cosmos/base/reflection/v2alpha1/reflection.proto (package cosmos.base.reflection.v2alpha1, syntax proto3)
|
||||
/* eslint-disable */
|
||||
// @ts-nocheck
|
||||
|
||||
import {
|
||||
GetAuthnDescriptorRequest,
|
||||
GetAuthnDescriptorResponse,
|
||||
GetChainDescriptorRequest,
|
||||
GetChainDescriptorResponse,
|
||||
GetCodecDescriptorRequest,
|
||||
GetCodecDescriptorResponse,
|
||||
GetConfigurationDescriptorRequest,
|
||||
GetConfigurationDescriptorResponse,
|
||||
GetQueryServicesDescriptorRequest,
|
||||
GetQueryServicesDescriptorResponse,
|
||||
GetTxDescriptorRequest,
|
||||
GetTxDescriptorResponse,
|
||||
} from './reflection_pb.js';
|
||||
|
||||
const TYPE_NAME = 'cosmos.base.reflection.v2alpha1.ReflectionService';
|
||||
|
||||
/**
|
||||
* GetAuthnDescriptor returns information on how to authenticate transactions in the application
|
||||
* NOTE: this RPC is still experimental and might be subject to breaking changes or removal in
|
||||
* future releases of the cosmos-sdk.
|
||||
*
|
||||
* @generated from rpc cosmos.base.reflection.v2alpha1.ReflectionService.GetAuthnDescriptor
|
||||
*/
|
||||
export const ReflectionServiceGetAuthnDescriptorService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: 'GetAuthnDescriptor',
|
||||
Request: GetAuthnDescriptorRequest,
|
||||
Response: GetAuthnDescriptorResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* GetChainDescriptor returns the description of the chain
|
||||
*
|
||||
* @generated from rpc cosmos.base.reflection.v2alpha1.ReflectionService.GetChainDescriptor
|
||||
*/
|
||||
export const ReflectionServiceGetChainDescriptorService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: 'GetChainDescriptor',
|
||||
Request: GetChainDescriptorRequest,
|
||||
Response: GetChainDescriptorResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* GetCodecDescriptor returns the descriptor of the codec of the application
|
||||
*
|
||||
* @generated from rpc cosmos.base.reflection.v2alpha1.ReflectionService.GetCodecDescriptor
|
||||
*/
|
||||
export const ReflectionServiceGetCodecDescriptorService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: 'GetCodecDescriptor',
|
||||
Request: GetCodecDescriptorRequest,
|
||||
Response: GetCodecDescriptorResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* GetConfigurationDescriptor returns the descriptor for the sdk.Config of the application
|
||||
*
|
||||
* @generated from rpc cosmos.base.reflection.v2alpha1.ReflectionService.GetConfigurationDescriptor
|
||||
*/
|
||||
export const ReflectionServiceGetConfigurationDescriptorService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: 'GetConfigurationDescriptor',
|
||||
Request: GetConfigurationDescriptorRequest,
|
||||
Response: GetConfigurationDescriptorResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* GetQueryServicesDescriptor returns the available gRPC queryable services of the application
|
||||
*
|
||||
* @generated from rpc cosmos.base.reflection.v2alpha1.ReflectionService.GetQueryServicesDescriptor
|
||||
*/
|
||||
export const ReflectionServiceGetQueryServicesDescriptorService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: 'GetQueryServicesDescriptor',
|
||||
Request: GetQueryServicesDescriptorRequest,
|
||||
Response: GetQueryServicesDescriptorResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* GetTxDescriptor returns information on the used transaction object and available msgs that can be used
|
||||
*
|
||||
* @generated from rpc cosmos.base.reflection.v2alpha1.ReflectionService.GetTxDescriptor
|
||||
*/
|
||||
export const ReflectionServiceGetTxDescriptorService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: 'GetTxDescriptor',
|
||||
Request: GetTxDescriptorRequest,
|
||||
Response: GetTxDescriptorResponse,
|
||||
} as const;
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,111 @@
|
||||
// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts"
|
||||
// @generated from file cosmos/base/tendermint/v1beta1/query.proto (package cosmos.base.tendermint.v1beta1, syntax proto3)
|
||||
/* eslint-disable */
|
||||
// @ts-nocheck
|
||||
|
||||
import {
|
||||
ABCIQueryRequest,
|
||||
ABCIQueryResponse,
|
||||
GetBlockByHeightRequest,
|
||||
GetBlockByHeightResponse,
|
||||
GetLatestBlockRequest,
|
||||
GetLatestBlockResponse,
|
||||
GetLatestValidatorSetRequest,
|
||||
GetLatestValidatorSetResponse,
|
||||
GetNodeInfoRequest,
|
||||
GetNodeInfoResponse,
|
||||
GetSyncingRequest,
|
||||
GetSyncingResponse,
|
||||
GetValidatorSetByHeightRequest,
|
||||
GetValidatorSetByHeightResponse,
|
||||
} from './query_pb.js';
|
||||
|
||||
const TYPE_NAME = 'cosmos.base.tendermint.v1beta1.Service';
|
||||
|
||||
/**
|
||||
* GetNodeInfo queries the current node info.
|
||||
*
|
||||
* @generated from rpc cosmos.base.tendermint.v1beta1.Service.GetNodeInfo
|
||||
*/
|
||||
export const ServiceGetNodeInfoService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: 'GetNodeInfo',
|
||||
Request: GetNodeInfoRequest,
|
||||
Response: GetNodeInfoResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* GetSyncing queries node syncing.
|
||||
*
|
||||
* @generated from rpc cosmos.base.tendermint.v1beta1.Service.GetSyncing
|
||||
*/
|
||||
export const ServiceGetSyncingService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: 'GetSyncing',
|
||||
Request: GetSyncingRequest,
|
||||
Response: GetSyncingResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* GetLatestBlock returns the latest block.
|
||||
*
|
||||
* @generated from rpc cosmos.base.tendermint.v1beta1.Service.GetLatestBlock
|
||||
*/
|
||||
export const ServiceGetLatestBlockService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: 'GetLatestBlock',
|
||||
Request: GetLatestBlockRequest,
|
||||
Response: GetLatestBlockResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* GetBlockByHeight queries block for given height.
|
||||
*
|
||||
* @generated from rpc cosmos.base.tendermint.v1beta1.Service.GetBlockByHeight
|
||||
*/
|
||||
export const ServiceGetBlockByHeightService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: 'GetBlockByHeight',
|
||||
Request: GetBlockByHeightRequest,
|
||||
Response: GetBlockByHeightResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* GetLatestValidatorSet queries latest validator-set.
|
||||
*
|
||||
* @generated from rpc cosmos.base.tendermint.v1beta1.Service.GetLatestValidatorSet
|
||||
*/
|
||||
export const ServiceGetLatestValidatorSetService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: 'GetLatestValidatorSet',
|
||||
Request: GetLatestValidatorSetRequest,
|
||||
Response: GetLatestValidatorSetResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* GetValidatorSetByHeight queries validator-set at a given height.
|
||||
*
|
||||
* @generated from rpc cosmos.base.tendermint.v1beta1.Service.GetValidatorSetByHeight
|
||||
*/
|
||||
export const ServiceGetValidatorSetByHeightService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: 'GetValidatorSetByHeight',
|
||||
Request: GetValidatorSetByHeightRequest,
|
||||
Response: GetValidatorSetByHeightResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* ABCIQuery defines a query handler that supports ABCI queries directly to the
|
||||
* application, bypassing Tendermint completely. The ABCI query must contain
|
||||
* a valid and supported path, including app, custom, p2p, and store.
|
||||
*
|
||||
* Since: cosmos-sdk 0.46
|
||||
*
|
||||
* @generated from rpc cosmos.base.tendermint.v1beta1.Service.ABCIQuery
|
||||
*/
|
||||
export const ServiceABCIQueryService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: 'ABCIQuery',
|
||||
Request: ABCIQueryRequest,
|
||||
Response: ABCIQueryResponse,
|
||||
} as const;
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,265 @@
|
||||
// @generated by protoc-gen-es v1.2.0 with parameter "target=ts"
|
||||
// @generated from file cosmos/base/tendermint/v1beta1/types.proto (package cosmos.base.tendermint.v1beta1, syntax proto3)
|
||||
/* eslint-disable */
|
||||
// @ts-nocheck
|
||||
|
||||
import type {
|
||||
BinaryReadOptions,
|
||||
FieldList,
|
||||
JsonReadOptions,
|
||||
JsonValue,
|
||||
PartialMessage,
|
||||
PlainMessage,
|
||||
} from '@bufbuild/protobuf';
|
||||
import { Message, Timestamp, proto3, protoInt64 } from '@bufbuild/protobuf';
|
||||
import { EvidenceList } from '../../../../tendermint/types/evidence_pb.js';
|
||||
import { BlockID, Commit, Data } from '../../../../tendermint/types/types_pb.js';
|
||||
import { Consensus } from '../../../../tendermint/version/types_pb.js';
|
||||
|
||||
/**
|
||||
* Block is tendermint type Block, with the Header proposer address
|
||||
* field converted to bech32 string.
|
||||
*
|
||||
* @generated from message cosmos.base.tendermint.v1beta1.Block
|
||||
*/
|
||||
export class Block extends Message<Block> {
|
||||
/**
|
||||
* @generated from field: cosmos.base.tendermint.v1beta1.Header header = 1;
|
||||
*/
|
||||
header?: Header;
|
||||
|
||||
/**
|
||||
* @generated from field: tendermint.types.Data data = 2;
|
||||
*/
|
||||
data?: Data;
|
||||
|
||||
/**
|
||||
* @generated from field: tendermint.types.EvidenceList evidence = 3;
|
||||
*/
|
||||
evidence?: EvidenceList;
|
||||
|
||||
/**
|
||||
* @generated from field: tendermint.types.Commit last_commit = 4;
|
||||
*/
|
||||
lastCommit?: Commit;
|
||||
|
||||
constructor(data?: PartialMessage<Block>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = 'cosmos.base.tendermint.v1beta1.Block';
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: 'header', kind: 'message', T: Header },
|
||||
{ no: 2, name: 'data', kind: 'message', T: Data },
|
||||
{ no: 3, name: 'evidence', kind: 'message', T: EvidenceList },
|
||||
{ no: 4, name: 'last_commit', kind: 'message', T: Commit },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Block {
|
||||
return new Block().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Block {
|
||||
return new Block().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Block {
|
||||
return new Block().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(
|
||||
a: Block | PlainMessage<Block> | undefined,
|
||||
b: Block | PlainMessage<Block> | undefined
|
||||
): boolean {
|
||||
return proto3.util.equals(Block, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Header defines the structure of a Tendermint block header.
|
||||
*
|
||||
* @generated from message cosmos.base.tendermint.v1beta1.Header
|
||||
*/
|
||||
export class Header extends Message<Header> {
|
||||
/**
|
||||
* basic block info
|
||||
*
|
||||
* @generated from field: tendermint.version.Consensus version = 1;
|
||||
*/
|
||||
version?: Consensus;
|
||||
|
||||
/**
|
||||
* @generated from field: string chain_id = 2;
|
||||
*/
|
||||
chainId = '';
|
||||
|
||||
/**
|
||||
* @generated from field: int64 height = 3;
|
||||
*/
|
||||
height = protoInt64.zero;
|
||||
|
||||
/**
|
||||
* @generated from field: google.protobuf.Timestamp time = 4;
|
||||
*/
|
||||
time?: Timestamp;
|
||||
|
||||
/**
|
||||
* prev block info
|
||||
*
|
||||
* @generated from field: tendermint.types.BlockID last_block_id = 5;
|
||||
*/
|
||||
lastBlockId?: BlockID;
|
||||
|
||||
/**
|
||||
* hashes of block data
|
||||
*
|
||||
* commit from validators from the last block
|
||||
*
|
||||
* @generated from field: bytes last_commit_hash = 6;
|
||||
*/
|
||||
lastCommitHash = new Uint8Array(0);
|
||||
|
||||
/**
|
||||
* transactions
|
||||
*
|
||||
* @generated from field: bytes data_hash = 7;
|
||||
*/
|
||||
dataHash = new Uint8Array(0);
|
||||
|
||||
/**
|
||||
* hashes from the app output from the prev block
|
||||
*
|
||||
* validators for the current block
|
||||
*
|
||||
* @generated from field: bytes validators_hash = 8;
|
||||
*/
|
||||
validatorsHash = new Uint8Array(0);
|
||||
|
||||
/**
|
||||
* validators for the next block
|
||||
*
|
||||
* @generated from field: bytes next_validators_hash = 9;
|
||||
*/
|
||||
nextValidatorsHash = new Uint8Array(0);
|
||||
|
||||
/**
|
||||
* consensus params for current block
|
||||
*
|
||||
* @generated from field: bytes consensus_hash = 10;
|
||||
*/
|
||||
consensusHash = new Uint8Array(0);
|
||||
|
||||
/**
|
||||
* state after txs from the previous block
|
||||
*
|
||||
* @generated from field: bytes app_hash = 11;
|
||||
*/
|
||||
appHash = new Uint8Array(0);
|
||||
|
||||
/**
|
||||
* root hash of all results from the txs from the previous block
|
||||
*
|
||||
* @generated from field: bytes last_results_hash = 12;
|
||||
*/
|
||||
lastResultsHash = new Uint8Array(0);
|
||||
|
||||
/**
|
||||
* consensus info
|
||||
*
|
||||
* evidence included in the block
|
||||
*
|
||||
* @generated from field: bytes evidence_hash = 13;
|
||||
*/
|
||||
evidenceHash = new Uint8Array(0);
|
||||
|
||||
/**
|
||||
* proposer_address is the original block proposer address, formatted as a Bech32 string.
|
||||
* In Tendermint, this type is `bytes`, but in the SDK, we convert it to a Bech32 string
|
||||
* for better UX.
|
||||
*
|
||||
* original proposer of the block
|
||||
*
|
||||
* @generated from field: string proposer_address = 14;
|
||||
*/
|
||||
proposerAddress = '';
|
||||
|
||||
constructor(data?: PartialMessage<Header>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = 'cosmos.base.tendermint.v1beta1.Header';
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: 'version', kind: 'message', T: Consensus },
|
||||
{ no: 2, name: 'chain_id', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 3, name: 'height', kind: 'scalar', T: 3 /* ScalarType.INT64 */ },
|
||||
{ no: 4, name: 'time', kind: 'message', T: Timestamp },
|
||||
{ no: 5, name: 'last_block_id', kind: 'message', T: BlockID },
|
||||
{
|
||||
no: 6,
|
||||
name: 'last_commit_hash',
|
||||
kind: 'scalar',
|
||||
T: 12 /* ScalarType.BYTES */,
|
||||
},
|
||||
{ no: 7, name: 'data_hash', kind: 'scalar', T: 12 /* ScalarType.BYTES */ },
|
||||
{
|
||||
no: 8,
|
||||
name: 'validators_hash',
|
||||
kind: 'scalar',
|
||||
T: 12 /* ScalarType.BYTES */,
|
||||
},
|
||||
{
|
||||
no: 9,
|
||||
name: 'next_validators_hash',
|
||||
kind: 'scalar',
|
||||
T: 12 /* ScalarType.BYTES */,
|
||||
},
|
||||
{
|
||||
no: 10,
|
||||
name: 'consensus_hash',
|
||||
kind: 'scalar',
|
||||
T: 12 /* ScalarType.BYTES */,
|
||||
},
|
||||
{ no: 11, name: 'app_hash', kind: 'scalar', T: 12 /* ScalarType.BYTES */ },
|
||||
{
|
||||
no: 12,
|
||||
name: 'last_results_hash',
|
||||
kind: 'scalar',
|
||||
T: 12 /* ScalarType.BYTES */,
|
||||
},
|
||||
{
|
||||
no: 13,
|
||||
name: 'evidence_hash',
|
||||
kind: 'scalar',
|
||||
T: 12 /* ScalarType.BYTES */,
|
||||
},
|
||||
{
|
||||
no: 14,
|
||||
name: 'proposer_address',
|
||||
kind: 'scalar',
|
||||
T: 9 /* ScalarType.STRING */,
|
||||
},
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Header {
|
||||
return new Header().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Header {
|
||||
return new Header().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Header {
|
||||
return new Header().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(
|
||||
a: Header | PlainMessage<Header> | undefined,
|
||||
b: Header | PlainMessage<Header> | undefined
|
||||
): boolean {
|
||||
return proto3.util.equals(Header, a, b);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,202 @@
|
||||
// @generated by protoc-gen-es v1.2.0 with parameter "target=ts"
|
||||
// @generated from file cosmos/base/v1beta1/coin.proto (package cosmos.base.v1beta1, syntax proto3)
|
||||
/* eslint-disable */
|
||||
// @ts-nocheck
|
||||
|
||||
import type {
|
||||
BinaryReadOptions,
|
||||
FieldList,
|
||||
JsonReadOptions,
|
||||
JsonValue,
|
||||
PartialMessage,
|
||||
PlainMessage,
|
||||
} from '@bufbuild/protobuf';
|
||||
import { Message, proto3 } from '@bufbuild/protobuf';
|
||||
|
||||
/**
|
||||
* Coin defines a token with a denomination and an amount.
|
||||
*
|
||||
* NOTE: The amount field is an Int which implements the custom method
|
||||
* signatures required by gogoproto.
|
||||
*
|
||||
* @generated from message cosmos.base.v1beta1.Coin
|
||||
*/
|
||||
export class Coin extends Message<Coin> {
|
||||
/**
|
||||
* @generated from field: string denom = 1;
|
||||
*/
|
||||
denom = '';
|
||||
|
||||
/**
|
||||
* @generated from field: string amount = 2;
|
||||
*/
|
||||
amount = '';
|
||||
|
||||
constructor(data?: PartialMessage<Coin>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = 'cosmos.base.v1beta1.Coin';
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: 'denom', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 2, name: 'amount', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Coin {
|
||||
return new Coin().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Coin {
|
||||
return new Coin().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Coin {
|
||||
return new Coin().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(
|
||||
a: Coin | PlainMessage<Coin> | undefined,
|
||||
b: Coin | PlainMessage<Coin> | undefined
|
||||
): boolean {
|
||||
return proto3.util.equals(Coin, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* DecCoin defines a token with a denomination and a decimal amount.
|
||||
*
|
||||
* NOTE: The amount field is an Dec which implements the custom method
|
||||
* signatures required by gogoproto.
|
||||
*
|
||||
* @generated from message cosmos.base.v1beta1.DecCoin
|
||||
*/
|
||||
export class DecCoin extends Message<DecCoin> {
|
||||
/**
|
||||
* @generated from field: string denom = 1;
|
||||
*/
|
||||
denom = '';
|
||||
|
||||
/**
|
||||
* @generated from field: string amount = 2;
|
||||
*/
|
||||
amount = '';
|
||||
|
||||
constructor(data?: PartialMessage<DecCoin>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = 'cosmos.base.v1beta1.DecCoin';
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: 'denom', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 2, name: 'amount', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DecCoin {
|
||||
return new DecCoin().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DecCoin {
|
||||
return new DecCoin().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DecCoin {
|
||||
return new DecCoin().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(
|
||||
a: DecCoin | PlainMessage<DecCoin> | undefined,
|
||||
b: DecCoin | PlainMessage<DecCoin> | undefined
|
||||
): boolean {
|
||||
return proto3.util.equals(DecCoin, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* IntProto defines a Protobuf wrapper around an Int object.
|
||||
* Deprecated: Prefer to use math.Int directly. It supports binary Marshal and Unmarshal.
|
||||
*
|
||||
* @generated from message cosmos.base.v1beta1.IntProto
|
||||
*/
|
||||
export class IntProto extends Message<IntProto> {
|
||||
/**
|
||||
* @generated from field: string int = 1;
|
||||
*/
|
||||
int = '';
|
||||
|
||||
constructor(data?: PartialMessage<IntProto>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = 'cosmos.base.v1beta1.IntProto';
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: 'int', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): IntProto {
|
||||
return new IntProto().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): IntProto {
|
||||
return new IntProto().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): IntProto {
|
||||
return new IntProto().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(
|
||||
a: IntProto | PlainMessage<IntProto> | undefined,
|
||||
b: IntProto | PlainMessage<IntProto> | undefined
|
||||
): boolean {
|
||||
return proto3.util.equals(IntProto, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* DecProto defines a Protobuf wrapper around a Dec object.
|
||||
* Deprecated: Prefer to use math.LegacyDec directly. It supports binary Marshal and Unmarshal.
|
||||
*
|
||||
* @generated from message cosmos.base.v1beta1.DecProto
|
||||
*/
|
||||
export class DecProto extends Message<DecProto> {
|
||||
/**
|
||||
* @generated from field: string dec = 1;
|
||||
*/
|
||||
dec = '';
|
||||
|
||||
constructor(data?: PartialMessage<DecProto>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = 'cosmos.base.v1beta1.DecProto';
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: 'dec', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DecProto {
|
||||
return new DecProto().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DecProto {
|
||||
return new DecProto().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DecProto {
|
||||
return new DecProto().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(
|
||||
a: DecProto | PlainMessage<DecProto> | undefined,
|
||||
b: DecProto | PlainMessage<DecProto> | undefined
|
||||
): boolean {
|
||||
return proto3.util.equals(DecProto, a, b);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,103 @@
|
||||
// @generated by protoc-gen-es v1.2.0 with parameter "target=ts"
|
||||
// @generated from file cosmos/crypto/ed25519/keys.proto (package cosmos.crypto.ed25519, syntax proto3)
|
||||
/* eslint-disable */
|
||||
// @ts-nocheck
|
||||
|
||||
import type {
|
||||
BinaryReadOptions,
|
||||
FieldList,
|
||||
JsonReadOptions,
|
||||
JsonValue,
|
||||
PartialMessage,
|
||||
PlainMessage,
|
||||
} from '@bufbuild/protobuf';
|
||||
import { Message, proto3 } from '@bufbuild/protobuf';
|
||||
|
||||
/**
|
||||
* PubKey is an ed25519 public key for handling Tendermint keys in SDK.
|
||||
* It's needed for Any serialization and SDK compatibility.
|
||||
* It must not be used in a non Tendermint key context because it doesn't implement
|
||||
* ADR-28. Nevertheless, you will like to use ed25519 in app user level
|
||||
* then you must create a new proto message and follow ADR-28 for Address construction.
|
||||
*
|
||||
* @generated from message cosmos.crypto.ed25519.PubKey
|
||||
*/
|
||||
export class PubKey extends Message<PubKey> {
|
||||
/**
|
||||
* @generated from field: bytes key = 1;
|
||||
*/
|
||||
key = new Uint8Array(0);
|
||||
|
||||
constructor(data?: PartialMessage<PubKey>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = 'cosmos.crypto.ed25519.PubKey';
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: 'key', kind: 'scalar', T: 12 /* ScalarType.BYTES */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PubKey {
|
||||
return new PubKey().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PubKey {
|
||||
return new PubKey().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PubKey {
|
||||
return new PubKey().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(
|
||||
a: PubKey | PlainMessage<PubKey> | undefined,
|
||||
b: PubKey | PlainMessage<PubKey> | undefined
|
||||
): boolean {
|
||||
return proto3.util.equals(PubKey, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* PrivKey defines a ed25519 private key.
|
||||
* NOTE: ed25519 keys must not be used in SDK apps except in a tendermint validator context.
|
||||
*
|
||||
* @generated from message cosmos.crypto.ed25519.PrivKey
|
||||
*/
|
||||
export class PrivKey extends Message<PrivKey> {
|
||||
/**
|
||||
* @generated from field: bytes key = 1;
|
||||
*/
|
||||
key = new Uint8Array(0);
|
||||
|
||||
constructor(data?: PartialMessage<PrivKey>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = 'cosmos.crypto.ed25519.PrivKey';
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: 'key', kind: 'scalar', T: 12 /* ScalarType.BYTES */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PrivKey {
|
||||
return new PrivKey().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PrivKey {
|
||||
return new PrivKey().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PrivKey {
|
||||
return new PrivKey().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(
|
||||
a: PrivKey | PlainMessage<PrivKey> | undefined,
|
||||
b: PrivKey | PlainMessage<PrivKey> | undefined
|
||||
): boolean {
|
||||
return proto3.util.equals(PrivKey, a, b);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,98 @@
|
||||
// Since: cosmos-sdk 0.46
|
||||
|
||||
// @generated by protoc-gen-es v1.2.0 with parameter "target=ts"
|
||||
// @generated from file cosmos/crypto/hd/v1/hd.proto (package cosmos.crypto.hd.v1, syntax proto3)
|
||||
/* eslint-disable */
|
||||
// @ts-nocheck
|
||||
|
||||
import type {
|
||||
BinaryReadOptions,
|
||||
FieldList,
|
||||
JsonReadOptions,
|
||||
JsonValue,
|
||||
PartialMessage,
|
||||
PlainMessage,
|
||||
} from '@bufbuild/protobuf';
|
||||
import { Message, proto3 } from '@bufbuild/protobuf';
|
||||
|
||||
/**
|
||||
* BIP44Params is used as path field in ledger item in Record.
|
||||
*
|
||||
* @generated from message cosmos.crypto.hd.v1.BIP44Params
|
||||
*/
|
||||
export class BIP44Params extends Message<BIP44Params> {
|
||||
/**
|
||||
* purpose is a constant set to 44' (or 0x8000002C) following the BIP43 recommendation
|
||||
*
|
||||
* @generated from field: uint32 purpose = 1;
|
||||
*/
|
||||
purpose = 0;
|
||||
|
||||
/**
|
||||
* coin_type is a constant that improves privacy
|
||||
*
|
||||
* @generated from field: uint32 coin_type = 2;
|
||||
*/
|
||||
coinType = 0;
|
||||
|
||||
/**
|
||||
* account splits the key space into independent user identities
|
||||
*
|
||||
* @generated from field: uint32 account = 3;
|
||||
*/
|
||||
account = 0;
|
||||
|
||||
/**
|
||||
* change is a constant used for public derivation. Constant 0 is used for external chain and constant 1 for internal
|
||||
* chain.
|
||||
*
|
||||
* @generated from field: bool change = 4;
|
||||
*/
|
||||
change = false;
|
||||
|
||||
/**
|
||||
* address_index is used as child index in BIP32 derivation
|
||||
*
|
||||
* @generated from field: uint32 address_index = 5;
|
||||
*/
|
||||
addressIndex = 0;
|
||||
|
||||
constructor(data?: PartialMessage<BIP44Params>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = 'cosmos.crypto.hd.v1.BIP44Params';
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: 'purpose', kind: 'scalar', T: 13 /* ScalarType.UINT32 */ },
|
||||
{ no: 2, name: 'coin_type', kind: 'scalar', T: 13 /* ScalarType.UINT32 */ },
|
||||
{ no: 3, name: 'account', kind: 'scalar', T: 13 /* ScalarType.UINT32 */ },
|
||||
{ no: 4, name: 'change', kind: 'scalar', T: 8 /* ScalarType.BOOL */ },
|
||||
{
|
||||
no: 5,
|
||||
name: 'address_index',
|
||||
kind: 'scalar',
|
||||
T: 13 /* ScalarType.UINT32 */,
|
||||
},
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): BIP44Params {
|
||||
return new BIP44Params().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): BIP44Params {
|
||||
return new BIP44Params().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): BIP44Params {
|
||||
return new BIP44Params().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(
|
||||
a: BIP44Params | PlainMessage<BIP44Params> | undefined,
|
||||
b: BIP44Params | PlainMessage<BIP44Params> | undefined
|
||||
): boolean {
|
||||
return proto3.util.equals(BIP44Params, a, b);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,278 @@
|
||||
// Since: cosmos-sdk 0.46
|
||||
|
||||
// @generated by protoc-gen-es v1.2.0 with parameter "target=ts"
|
||||
// @generated from file cosmos/crypto/keyring/v1/record.proto (package cosmos.crypto.keyring.v1, syntax proto3)
|
||||
/* eslint-disable */
|
||||
// @ts-nocheck
|
||||
|
||||
import type {
|
||||
BinaryReadOptions,
|
||||
FieldList,
|
||||
JsonReadOptions,
|
||||
JsonValue,
|
||||
PartialMessage,
|
||||
PlainMessage,
|
||||
} from '@bufbuild/protobuf';
|
||||
import { Any, Message, proto3 } from '@bufbuild/protobuf';
|
||||
import { BIP44Params } from '../../hd/v1/hd_pb.js';
|
||||
|
||||
/**
|
||||
* Record is used for representing a key in the keyring.
|
||||
*
|
||||
* @generated from message cosmos.crypto.keyring.v1.Record
|
||||
*/
|
||||
export class Record extends Message<Record> {
|
||||
/**
|
||||
* name represents a name of Record
|
||||
*
|
||||
* @generated from field: string name = 1;
|
||||
*/
|
||||
name = '';
|
||||
|
||||
/**
|
||||
* pub_key represents a public key in any format
|
||||
*
|
||||
* @generated from field: google.protobuf.Any pub_key = 2;
|
||||
*/
|
||||
pubKey?: Any;
|
||||
|
||||
/**
|
||||
* Record contains one of the following items
|
||||
*
|
||||
* @generated from oneof cosmos.crypto.keyring.v1.Record.item
|
||||
*/
|
||||
item:
|
||||
| {
|
||||
/**
|
||||
* local stores the private key locally.
|
||||
*
|
||||
* @generated from field: cosmos.crypto.keyring.v1.Record.Local local = 3;
|
||||
*/
|
||||
value: Record_Local;
|
||||
case: 'local';
|
||||
}
|
||||
| {
|
||||
/**
|
||||
* ledger stores the information about a Ledger key.
|
||||
*
|
||||
* @generated from field: cosmos.crypto.keyring.v1.Record.Ledger ledger = 4;
|
||||
*/
|
||||
value: Record_Ledger;
|
||||
case: 'ledger';
|
||||
}
|
||||
| {
|
||||
/**
|
||||
* Multi does not store any other information.
|
||||
*
|
||||
* @generated from field: cosmos.crypto.keyring.v1.Record.Multi multi = 5;
|
||||
*/
|
||||
value: Record_Multi;
|
||||
case: 'multi';
|
||||
}
|
||||
| {
|
||||
/**
|
||||
* Offline does not store any other information.
|
||||
*
|
||||
* @generated from field: cosmos.crypto.keyring.v1.Record.Offline offline = 6;
|
||||
*/
|
||||
value: Record_Offline;
|
||||
case: 'offline';
|
||||
}
|
||||
| { case: undefined; value?: undefined } = { case: undefined };
|
||||
|
||||
constructor(data?: PartialMessage<Record>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = 'cosmos.crypto.keyring.v1.Record';
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: 'name', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 2, name: 'pub_key', kind: 'message', T: Any },
|
||||
{ no: 3, name: 'local', kind: 'message', T: Record_Local, oneof: 'item' },
|
||||
{ no: 4, name: 'ledger', kind: 'message', T: Record_Ledger, oneof: 'item' },
|
||||
{ no: 5, name: 'multi', kind: 'message', T: Record_Multi, oneof: 'item' },
|
||||
{
|
||||
no: 6,
|
||||
name: 'offline',
|
||||
kind: 'message',
|
||||
T: Record_Offline,
|
||||
oneof: 'item',
|
||||
},
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Record {
|
||||
return new Record().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Record {
|
||||
return new Record().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Record {
|
||||
return new Record().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(
|
||||
a: Record | PlainMessage<Record> | undefined,
|
||||
b: Record | PlainMessage<Record> | undefined
|
||||
): boolean {
|
||||
return proto3.util.equals(Record, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Item is a keyring item stored in a keyring backend.
|
||||
* Local item
|
||||
*
|
||||
* @generated from message cosmos.crypto.keyring.v1.Record.Local
|
||||
*/
|
||||
export class Record_Local extends Message<Record_Local> {
|
||||
/**
|
||||
* @generated from field: google.protobuf.Any priv_key = 1;
|
||||
*/
|
||||
privKey?: Any;
|
||||
|
||||
constructor(data?: PartialMessage<Record_Local>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = 'cosmos.crypto.keyring.v1.Record.Local';
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: 'priv_key', kind: 'message', T: Any },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Record_Local {
|
||||
return new Record_Local().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Record_Local {
|
||||
return new Record_Local().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Record_Local {
|
||||
return new Record_Local().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(
|
||||
a: Record_Local | PlainMessage<Record_Local> | undefined,
|
||||
b: Record_Local | PlainMessage<Record_Local> | undefined
|
||||
): boolean {
|
||||
return proto3.util.equals(Record_Local, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Ledger item
|
||||
*
|
||||
* @generated from message cosmos.crypto.keyring.v1.Record.Ledger
|
||||
*/
|
||||
export class Record_Ledger extends Message<Record_Ledger> {
|
||||
/**
|
||||
* @generated from field: cosmos.crypto.hd.v1.BIP44Params path = 1;
|
||||
*/
|
||||
path?: BIP44Params;
|
||||
|
||||
constructor(data?: PartialMessage<Record_Ledger>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = 'cosmos.crypto.keyring.v1.Record.Ledger';
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: 'path', kind: 'message', T: BIP44Params },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Record_Ledger {
|
||||
return new Record_Ledger().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Record_Ledger {
|
||||
return new Record_Ledger().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Record_Ledger {
|
||||
return new Record_Ledger().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(
|
||||
a: Record_Ledger | PlainMessage<Record_Ledger> | undefined,
|
||||
b: Record_Ledger | PlainMessage<Record_Ledger> | undefined
|
||||
): boolean {
|
||||
return proto3.util.equals(Record_Ledger, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Multi item
|
||||
*
|
||||
* @generated from message cosmos.crypto.keyring.v1.Record.Multi
|
||||
*/
|
||||
export class Record_Multi extends Message<Record_Multi> {
|
||||
constructor(data?: PartialMessage<Record_Multi>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = 'cosmos.crypto.keyring.v1.Record.Multi';
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => []);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Record_Multi {
|
||||
return new Record_Multi().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Record_Multi {
|
||||
return new Record_Multi().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Record_Multi {
|
||||
return new Record_Multi().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(
|
||||
a: Record_Multi | PlainMessage<Record_Multi> | undefined,
|
||||
b: Record_Multi | PlainMessage<Record_Multi> | undefined
|
||||
): boolean {
|
||||
return proto3.util.equals(Record_Multi, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Offline item
|
||||
*
|
||||
* @generated from message cosmos.crypto.keyring.v1.Record.Offline
|
||||
*/
|
||||
export class Record_Offline extends Message<Record_Offline> {
|
||||
constructor(data?: PartialMessage<Record_Offline>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = 'cosmos.crypto.keyring.v1.Record.Offline';
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => []);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Record_Offline {
|
||||
return new Record_Offline().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Record_Offline {
|
||||
return new Record_Offline().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Record_Offline {
|
||||
return new Record_Offline().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(
|
||||
a: Record_Offline | PlainMessage<Record_Offline> | undefined,
|
||||
b: Record_Offline | PlainMessage<Record_Offline> | undefined
|
||||
): boolean {
|
||||
return proto3.util.equals(Record_Offline, a, b);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,64 @@
|
||||
// @generated by protoc-gen-es v1.2.0 with parameter "target=ts"
|
||||
// @generated from file cosmos/crypto/multisig/keys.proto (package cosmos.crypto.multisig, syntax proto3)
|
||||
/* eslint-disable */
|
||||
// @ts-nocheck
|
||||
|
||||
import type {
|
||||
BinaryReadOptions,
|
||||
FieldList,
|
||||
JsonReadOptions,
|
||||
JsonValue,
|
||||
PartialMessage,
|
||||
PlainMessage,
|
||||
} from '@bufbuild/protobuf';
|
||||
import { Any, Message, proto3 } from '@bufbuild/protobuf';
|
||||
|
||||
/**
|
||||
* LegacyAminoPubKey specifies a public key type
|
||||
* which nests multiple public keys and a threshold,
|
||||
* it uses legacy amino address rules.
|
||||
*
|
||||
* @generated from message cosmos.crypto.multisig.LegacyAminoPubKey
|
||||
*/
|
||||
export class LegacyAminoPubKey extends Message<LegacyAminoPubKey> {
|
||||
/**
|
||||
* @generated from field: uint32 threshold = 1;
|
||||
*/
|
||||
threshold = 0;
|
||||
|
||||
/**
|
||||
* @generated from field: repeated google.protobuf.Any public_keys = 2;
|
||||
*/
|
||||
publicKeys: Any[] = [];
|
||||
|
||||
constructor(data?: PartialMessage<LegacyAminoPubKey>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = 'cosmos.crypto.multisig.LegacyAminoPubKey';
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: 'threshold', kind: 'scalar', T: 13 /* ScalarType.UINT32 */ },
|
||||
{ no: 2, name: 'public_keys', kind: 'message', T: Any, repeated: true },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): LegacyAminoPubKey {
|
||||
return new LegacyAminoPubKey().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): LegacyAminoPubKey {
|
||||
return new LegacyAminoPubKey().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): LegacyAminoPubKey {
|
||||
return new LegacyAminoPubKey().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(
|
||||
a: LegacyAminoPubKey | PlainMessage<LegacyAminoPubKey> | undefined,
|
||||
b: LegacyAminoPubKey | PlainMessage<LegacyAminoPubKey> | undefined
|
||||
): boolean {
|
||||
return proto3.util.equals(LegacyAminoPubKey, a, b);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,120 @@
|
||||
// @generated by protoc-gen-es v1.2.0 with parameter "target=ts"
|
||||
// @generated from file cosmos/crypto/multisig/v1beta1/multisig.proto (package cosmos.crypto.multisig.v1beta1, syntax proto3)
|
||||
/* eslint-disable */
|
||||
// @ts-nocheck
|
||||
|
||||
import type {
|
||||
BinaryReadOptions,
|
||||
FieldList,
|
||||
JsonReadOptions,
|
||||
JsonValue,
|
||||
PartialMessage,
|
||||
PlainMessage,
|
||||
} from '@bufbuild/protobuf';
|
||||
import { Message, proto3 } from '@bufbuild/protobuf';
|
||||
|
||||
/**
|
||||
* MultiSignature wraps the signatures from a multisig.LegacyAminoPubKey.
|
||||
* See cosmos.tx.v1betata1.ModeInfo.Multi for how to specify which signers
|
||||
* signed and with which modes.
|
||||
*
|
||||
* @generated from message cosmos.crypto.multisig.v1beta1.MultiSignature
|
||||
*/
|
||||
export class MultiSignature extends Message<MultiSignature> {
|
||||
/**
|
||||
* @generated from field: repeated bytes signatures = 1;
|
||||
*/
|
||||
signatures: Uint8Array[] = [];
|
||||
|
||||
constructor(data?: PartialMessage<MultiSignature>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = 'cosmos.crypto.multisig.v1beta1.MultiSignature';
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{
|
||||
no: 1,
|
||||
name: 'signatures',
|
||||
kind: 'scalar',
|
||||
T: 12 /* ScalarType.BYTES */,
|
||||
repeated: true,
|
||||
},
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MultiSignature {
|
||||
return new MultiSignature().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MultiSignature {
|
||||
return new MultiSignature().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MultiSignature {
|
||||
return new MultiSignature().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(
|
||||
a: MultiSignature | PlainMessage<MultiSignature> | undefined,
|
||||
b: MultiSignature | PlainMessage<MultiSignature> | undefined
|
||||
): boolean {
|
||||
return proto3.util.equals(MultiSignature, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* CompactBitArray is an implementation of a space efficient bit array.
|
||||
* This is used to ensure that the encoded data takes up a minimal amount of
|
||||
* space after proto encoding.
|
||||
* This is not thread safe, and is not intended for concurrent usage.
|
||||
*
|
||||
* @generated from message cosmos.crypto.multisig.v1beta1.CompactBitArray
|
||||
*/
|
||||
export class CompactBitArray extends Message<CompactBitArray> {
|
||||
/**
|
||||
* @generated from field: uint32 extra_bits_stored = 1;
|
||||
*/
|
||||
extraBitsStored = 0;
|
||||
|
||||
/**
|
||||
* @generated from field: bytes elems = 2;
|
||||
*/
|
||||
elems = new Uint8Array(0);
|
||||
|
||||
constructor(data?: PartialMessage<CompactBitArray>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = 'cosmos.crypto.multisig.v1beta1.CompactBitArray';
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{
|
||||
no: 1,
|
||||
name: 'extra_bits_stored',
|
||||
kind: 'scalar',
|
||||
T: 13 /* ScalarType.UINT32 */,
|
||||
},
|
||||
{ no: 2, name: 'elems', kind: 'scalar', T: 12 /* ScalarType.BYTES */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CompactBitArray {
|
||||
return new CompactBitArray().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CompactBitArray {
|
||||
return new CompactBitArray().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CompactBitArray {
|
||||
return new CompactBitArray().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(
|
||||
a: CompactBitArray | PlainMessage<CompactBitArray> | undefined,
|
||||
b: CompactBitArray | PlainMessage<CompactBitArray> | undefined
|
||||
): boolean {
|
||||
return proto3.util.equals(CompactBitArray, a, b);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,102 @@
|
||||
// @generated by protoc-gen-es v1.2.0 with parameter "target=ts"
|
||||
// @generated from file cosmos/crypto/secp256k1/keys.proto (package cosmos.crypto.secp256k1, syntax proto3)
|
||||
/* eslint-disable */
|
||||
// @ts-nocheck
|
||||
|
||||
import type {
|
||||
BinaryReadOptions,
|
||||
FieldList,
|
||||
JsonReadOptions,
|
||||
JsonValue,
|
||||
PartialMessage,
|
||||
PlainMessage,
|
||||
} from '@bufbuild/protobuf';
|
||||
import { Message, proto3 } from '@bufbuild/protobuf';
|
||||
|
||||
/**
|
||||
* PubKey defines a secp256k1 public key
|
||||
* Key is the compressed form of the pubkey. The first byte depends is a 0x02 byte
|
||||
* if the y-coordinate is the lexicographically largest of the two associated with
|
||||
* the x-coordinate. Otherwise the first byte is a 0x03.
|
||||
* This prefix is followed with the x-coordinate.
|
||||
*
|
||||
* @generated from message cosmos.crypto.secp256k1.PubKey
|
||||
*/
|
||||
export class PubKey extends Message<PubKey> {
|
||||
/**
|
||||
* @generated from field: bytes key = 1;
|
||||
*/
|
||||
key = new Uint8Array(0);
|
||||
|
||||
constructor(data?: PartialMessage<PubKey>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = 'cosmos.crypto.secp256k1.PubKey';
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: 'key', kind: 'scalar', T: 12 /* ScalarType.BYTES */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PubKey {
|
||||
return new PubKey().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PubKey {
|
||||
return new PubKey().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PubKey {
|
||||
return new PubKey().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(
|
||||
a: PubKey | PlainMessage<PubKey> | undefined,
|
||||
b: PubKey | PlainMessage<PubKey> | undefined
|
||||
): boolean {
|
||||
return proto3.util.equals(PubKey, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* PrivKey defines a secp256k1 private key.
|
||||
*
|
||||
* @generated from message cosmos.crypto.secp256k1.PrivKey
|
||||
*/
|
||||
export class PrivKey extends Message<PrivKey> {
|
||||
/**
|
||||
* @generated from field: bytes key = 1;
|
||||
*/
|
||||
key = new Uint8Array(0);
|
||||
|
||||
constructor(data?: PartialMessage<PrivKey>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = 'cosmos.crypto.secp256k1.PrivKey';
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: 'key', kind: 'scalar', T: 12 /* ScalarType.BYTES */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PrivKey {
|
||||
return new PrivKey().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PrivKey {
|
||||
return new PrivKey().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PrivKey {
|
||||
return new PrivKey().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(
|
||||
a: PrivKey | PlainMessage<PrivKey> | undefined,
|
||||
b: PrivKey | PlainMessage<PrivKey> | undefined
|
||||
): boolean {
|
||||
return proto3.util.equals(PrivKey, a, b);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,105 @@
|
||||
// Since: cosmos-sdk 0.43
|
||||
|
||||
// @generated by protoc-gen-es v1.2.0 with parameter "target=ts"
|
||||
// @generated from file cosmos/crypto/secp256r1/keys.proto (package cosmos.crypto.secp256r1, syntax proto3)
|
||||
/* eslint-disable */
|
||||
// @ts-nocheck
|
||||
|
||||
import type {
|
||||
BinaryReadOptions,
|
||||
FieldList,
|
||||
JsonReadOptions,
|
||||
JsonValue,
|
||||
PartialMessage,
|
||||
PlainMessage,
|
||||
} from '@bufbuild/protobuf';
|
||||
import { Message, proto3 } from '@bufbuild/protobuf';
|
||||
|
||||
/**
|
||||
* PubKey defines a secp256r1 ECDSA public key.
|
||||
*
|
||||
* @generated from message cosmos.crypto.secp256r1.PubKey
|
||||
*/
|
||||
export class PubKey extends Message<PubKey> {
|
||||
/**
|
||||
* Point on secp256r1 curve in a compressed representation as specified in section
|
||||
* 4.3.6 of ANSI X9.62: https://webstore.ansi.org/standards/ascx9/ansix9621998
|
||||
*
|
||||
* @generated from field: bytes key = 1;
|
||||
*/
|
||||
key = new Uint8Array(0);
|
||||
|
||||
constructor(data?: PartialMessage<PubKey>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = 'cosmos.crypto.secp256r1.PubKey';
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: 'key', kind: 'scalar', T: 12 /* ScalarType.BYTES */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PubKey {
|
||||
return new PubKey().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PubKey {
|
||||
return new PubKey().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PubKey {
|
||||
return new PubKey().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(
|
||||
a: PubKey | PlainMessage<PubKey> | undefined,
|
||||
b: PubKey | PlainMessage<PubKey> | undefined
|
||||
): boolean {
|
||||
return proto3.util.equals(PubKey, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* PrivKey defines a secp256r1 ECDSA private key.
|
||||
*
|
||||
* @generated from message cosmos.crypto.secp256r1.PrivKey
|
||||
*/
|
||||
export class PrivKey extends Message<PrivKey> {
|
||||
/**
|
||||
* secret number serialized using big-endian encoding
|
||||
*
|
||||
* @generated from field: bytes secret = 1;
|
||||
*/
|
||||
secret = new Uint8Array(0);
|
||||
|
||||
constructor(data?: PartialMessage<PrivKey>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = 'cosmos.crypto.secp256r1.PrivKey';
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: 'secret', kind: 'scalar', T: 12 /* ScalarType.BYTES */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PrivKey {
|
||||
return new PrivKey().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PrivKey {
|
||||
return new PrivKey().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PrivKey {
|
||||
return new PrivKey().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(
|
||||
a: PrivKey | PlainMessage<PrivKey> | undefined,
|
||||
b: PrivKey | PlainMessage<PrivKey> | undefined
|
||||
): boolean {
|
||||
return proto3.util.equals(PrivKey, a, b);
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,21 @@
|
||||
// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts"
|
||||
// @generated from file cosmos/reflection/v1/reflection.proto (package cosmos.reflection.v1, syntax proto3)
|
||||
/* eslint-disable */
|
||||
// @ts-nocheck
|
||||
|
||||
import { FileDescriptorsRequest, FileDescriptorsResponse } from './reflection_pb.js';
|
||||
|
||||
const TYPE_NAME = 'cosmos.reflection.v1.ReflectionService';
|
||||
|
||||
/**
|
||||
* FileDescriptors queries all the file descriptors in the app in order
|
||||
* to enable easier generation of dynamic clients.
|
||||
*
|
||||
* @generated from rpc cosmos.reflection.v1.ReflectionService.FileDescriptors
|
||||
*/
|
||||
export const ReflectionServiceFileDescriptorsService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: 'FileDescriptors',
|
||||
Request: FileDescriptorsRequest,
|
||||
Response: FileDescriptorsResponse,
|
||||
} as const;
|
||||
@@ -0,0 +1,117 @@
|
||||
// @generated by protoc-gen-es v1.2.0 with parameter "target=ts"
|
||||
// @generated from file cosmos/reflection/v1/reflection.proto (package cosmos.reflection.v1, syntax proto3)
|
||||
/* eslint-disable */
|
||||
// @ts-nocheck
|
||||
|
||||
import type {
|
||||
BinaryReadOptions,
|
||||
FieldList,
|
||||
JsonReadOptions,
|
||||
JsonValue,
|
||||
PartialMessage,
|
||||
PlainMessage,
|
||||
} from '@bufbuild/protobuf';
|
||||
import { FileDescriptorProto, Message, proto3 } from '@bufbuild/protobuf';
|
||||
|
||||
/**
|
||||
* FileDescriptorsRequest is the Query/FileDescriptors request type.
|
||||
*
|
||||
* @generated from message cosmos.reflection.v1.FileDescriptorsRequest
|
||||
*/
|
||||
export class FileDescriptorsRequest extends Message<FileDescriptorsRequest> {
|
||||
constructor(data?: PartialMessage<FileDescriptorsRequest>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = 'cosmos.reflection.v1.FileDescriptorsRequest';
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => []);
|
||||
|
||||
static fromBinary(
|
||||
bytes: Uint8Array,
|
||||
options?: Partial<BinaryReadOptions>
|
||||
): FileDescriptorsRequest {
|
||||
return new FileDescriptorsRequest().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(
|
||||
jsonValue: JsonValue,
|
||||
options?: Partial<JsonReadOptions>
|
||||
): FileDescriptorsRequest {
|
||||
return new FileDescriptorsRequest().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(
|
||||
jsonString: string,
|
||||
options?: Partial<JsonReadOptions>
|
||||
): FileDescriptorsRequest {
|
||||
return new FileDescriptorsRequest().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(
|
||||
a: FileDescriptorsRequest | PlainMessage<FileDescriptorsRequest> | undefined,
|
||||
b: FileDescriptorsRequest | PlainMessage<FileDescriptorsRequest> | undefined
|
||||
): boolean {
|
||||
return proto3.util.equals(FileDescriptorsRequest, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* FileDescriptorsResponse is the Query/FileDescriptors response type.
|
||||
*
|
||||
* @generated from message cosmos.reflection.v1.FileDescriptorsResponse
|
||||
*/
|
||||
export class FileDescriptorsResponse extends Message<FileDescriptorsResponse> {
|
||||
/**
|
||||
* files is the file descriptors.
|
||||
*
|
||||
* @generated from field: repeated google.protobuf.FileDescriptorProto files = 1;
|
||||
*/
|
||||
files: FileDescriptorProto[] = [];
|
||||
|
||||
constructor(data?: PartialMessage<FileDescriptorsResponse>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = 'cosmos.reflection.v1.FileDescriptorsResponse';
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{
|
||||
no: 1,
|
||||
name: 'files',
|
||||
kind: 'message',
|
||||
T: FileDescriptorProto,
|
||||
repeated: true,
|
||||
},
|
||||
]);
|
||||
|
||||
static fromBinary(
|
||||
bytes: Uint8Array,
|
||||
options?: Partial<BinaryReadOptions>
|
||||
): FileDescriptorsResponse {
|
||||
return new FileDescriptorsResponse().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(
|
||||
jsonValue: JsonValue,
|
||||
options?: Partial<JsonReadOptions>
|
||||
): FileDescriptorsResponse {
|
||||
return new FileDescriptorsResponse().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(
|
||||
jsonString: string,
|
||||
options?: Partial<JsonReadOptions>
|
||||
): FileDescriptorsResponse {
|
||||
return new FileDescriptorsResponse().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(
|
||||
a: FileDescriptorsResponse | PlainMessage<FileDescriptorsResponse> | undefined,
|
||||
b: FileDescriptorsResponse | PlainMessage<FileDescriptorsResponse> | undefined
|
||||
): boolean {
|
||||
return proto3.util.equals(FileDescriptorsResponse, a, b);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,104 @@
|
||||
// @generated by protoc-gen-es v1.2.0 with parameter "target=ts"
|
||||
// @generated from file cosmos/store/internal/kv/v1beta1/kv.proto (package cosmos.store.internal.kv.v1beta1, syntax proto3)
|
||||
/* eslint-disable */
|
||||
// @ts-nocheck
|
||||
|
||||
import type {
|
||||
BinaryReadOptions,
|
||||
FieldList,
|
||||
JsonReadOptions,
|
||||
JsonValue,
|
||||
PartialMessage,
|
||||
PlainMessage,
|
||||
} from '@bufbuild/protobuf';
|
||||
import { Message, proto3 } from '@bufbuild/protobuf';
|
||||
|
||||
/**
|
||||
* Pairs defines a repeated slice of Pair objects.
|
||||
*
|
||||
* @generated from message cosmos.store.internal.kv.v1beta1.Pairs
|
||||
*/
|
||||
export class Pairs extends Message<Pairs> {
|
||||
/**
|
||||
* @generated from field: repeated cosmos.store.internal.kv.v1beta1.Pair pairs = 1;
|
||||
*/
|
||||
pairs: Pair[] = [];
|
||||
|
||||
constructor(data?: PartialMessage<Pairs>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = 'cosmos.store.internal.kv.v1beta1.Pairs';
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: 'pairs', kind: 'message', T: Pair, repeated: true },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Pairs {
|
||||
return new Pairs().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Pairs {
|
||||
return new Pairs().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Pairs {
|
||||
return new Pairs().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(
|
||||
a: Pairs | PlainMessage<Pairs> | undefined,
|
||||
b: Pairs | PlainMessage<Pairs> | undefined
|
||||
): boolean {
|
||||
return proto3.util.equals(Pairs, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Pair defines a key/value bytes tuple.
|
||||
*
|
||||
* @generated from message cosmos.store.internal.kv.v1beta1.Pair
|
||||
*/
|
||||
export class Pair extends Message<Pair> {
|
||||
/**
|
||||
* @generated from field: bytes key = 1;
|
||||
*/
|
||||
key = new Uint8Array(0);
|
||||
|
||||
/**
|
||||
* @generated from field: bytes value = 2;
|
||||
*/
|
||||
value = new Uint8Array(0);
|
||||
|
||||
constructor(data?: PartialMessage<Pair>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = 'cosmos.store.internal.kv.v1beta1.Pair';
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: 'key', kind: 'scalar', T: 12 /* ScalarType.BYTES */ },
|
||||
{ no: 2, name: 'value', kind: 'scalar', T: 12 /* ScalarType.BYTES */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Pair {
|
||||
return new Pair().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Pair {
|
||||
return new Pair().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Pair {
|
||||
return new Pair().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(
|
||||
a: Pair | PlainMessage<Pair> | undefined,
|
||||
b: Pair | PlainMessage<Pair> | undefined
|
||||
): boolean {
|
||||
return proto3.util.equals(Pair, a, b);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,451 @@
|
||||
// @generated by protoc-gen-es v1.2.0 with parameter "target=ts"
|
||||
// @generated from file cosmos/store/snapshots/v1/snapshot.proto (package cosmos.store.snapshots.v1, syntax proto3)
|
||||
/* eslint-disable */
|
||||
// @ts-nocheck
|
||||
|
||||
import type {
|
||||
BinaryReadOptions,
|
||||
FieldList,
|
||||
JsonReadOptions,
|
||||
JsonValue,
|
||||
PartialMessage,
|
||||
PlainMessage,
|
||||
} from '@bufbuild/protobuf';
|
||||
import { Message, proto3, protoInt64 } from '@bufbuild/protobuf';
|
||||
|
||||
/**
|
||||
* Snapshot contains Tendermint state sync snapshot info.
|
||||
*
|
||||
* @generated from message cosmos.store.snapshots.v1.Snapshot
|
||||
*/
|
||||
export class Snapshot extends Message<Snapshot> {
|
||||
/**
|
||||
* @generated from field: uint64 height = 1;
|
||||
*/
|
||||
height = protoInt64.zero;
|
||||
|
||||
/**
|
||||
* @generated from field: uint32 format = 2;
|
||||
*/
|
||||
format = 0;
|
||||
|
||||
/**
|
||||
* @generated from field: uint32 chunks = 3;
|
||||
*/
|
||||
chunks = 0;
|
||||
|
||||
/**
|
||||
* @generated from field: bytes hash = 4;
|
||||
*/
|
||||
hash = new Uint8Array(0);
|
||||
|
||||
/**
|
||||
* @generated from field: cosmos.store.snapshots.v1.Metadata metadata = 5;
|
||||
*/
|
||||
metadata?: Metadata;
|
||||
|
||||
constructor(data?: PartialMessage<Snapshot>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = 'cosmos.store.snapshots.v1.Snapshot';
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: 'height', kind: 'scalar', T: 4 /* ScalarType.UINT64 */ },
|
||||
{ no: 2, name: 'format', kind: 'scalar', T: 13 /* ScalarType.UINT32 */ },
|
||||
{ no: 3, name: 'chunks', kind: 'scalar', T: 13 /* ScalarType.UINT32 */ },
|
||||
{ no: 4, name: 'hash', kind: 'scalar', T: 12 /* ScalarType.BYTES */ },
|
||||
{ no: 5, name: 'metadata', kind: 'message', T: Metadata },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Snapshot {
|
||||
return new Snapshot().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Snapshot {
|
||||
return new Snapshot().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Snapshot {
|
||||
return new Snapshot().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(
|
||||
a: Snapshot | PlainMessage<Snapshot> | undefined,
|
||||
b: Snapshot | PlainMessage<Snapshot> | undefined
|
||||
): boolean {
|
||||
return proto3.util.equals(Snapshot, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Metadata contains SDK-specific snapshot metadata.
|
||||
*
|
||||
* @generated from message cosmos.store.snapshots.v1.Metadata
|
||||
*/
|
||||
export class Metadata extends Message<Metadata> {
|
||||
/**
|
||||
* SHA-256 chunk hashes
|
||||
*
|
||||
* @generated from field: repeated bytes chunk_hashes = 1;
|
||||
*/
|
||||
chunkHashes: Uint8Array[] = [];
|
||||
|
||||
constructor(data?: PartialMessage<Metadata>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = 'cosmos.store.snapshots.v1.Metadata';
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{
|
||||
no: 1,
|
||||
name: 'chunk_hashes',
|
||||
kind: 'scalar',
|
||||
T: 12 /* ScalarType.BYTES */,
|
||||
repeated: true,
|
||||
},
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Metadata {
|
||||
return new Metadata().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Metadata {
|
||||
return new Metadata().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Metadata {
|
||||
return new Metadata().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(
|
||||
a: Metadata | PlainMessage<Metadata> | undefined,
|
||||
b: Metadata | PlainMessage<Metadata> | undefined
|
||||
): boolean {
|
||||
return proto3.util.equals(Metadata, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* SnapshotItem is an item contained in a rootmulti.Store snapshot.
|
||||
*
|
||||
* Since: cosmos-sdk 0.46
|
||||
*
|
||||
* @generated from message cosmos.store.snapshots.v1.SnapshotItem
|
||||
*/
|
||||
export class SnapshotItem extends Message<SnapshotItem> {
|
||||
/**
|
||||
* item is the specific type of snapshot item.
|
||||
*
|
||||
* @generated from oneof cosmos.store.snapshots.v1.SnapshotItem.item
|
||||
*/
|
||||
item:
|
||||
| {
|
||||
/**
|
||||
* @generated from field: cosmos.store.snapshots.v1.SnapshotStoreItem store = 1;
|
||||
*/
|
||||
value: SnapshotStoreItem;
|
||||
case: 'store';
|
||||
}
|
||||
| {
|
||||
/**
|
||||
* @generated from field: cosmos.store.snapshots.v1.SnapshotIAVLItem iavl = 2;
|
||||
*/
|
||||
value: SnapshotIAVLItem;
|
||||
case: 'iavl';
|
||||
}
|
||||
| {
|
||||
/**
|
||||
* @generated from field: cosmos.store.snapshots.v1.SnapshotExtensionMeta extension = 3;
|
||||
*/
|
||||
value: SnapshotExtensionMeta;
|
||||
case: 'extension';
|
||||
}
|
||||
| {
|
||||
/**
|
||||
* @generated from field: cosmos.store.snapshots.v1.SnapshotExtensionPayload extension_payload = 4;
|
||||
*/
|
||||
value: SnapshotExtensionPayload;
|
||||
case: 'extensionPayload';
|
||||
}
|
||||
| { case: undefined; value?: undefined } = { case: undefined };
|
||||
|
||||
constructor(data?: PartialMessage<SnapshotItem>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = 'cosmos.store.snapshots.v1.SnapshotItem';
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{
|
||||
no: 1,
|
||||
name: 'store',
|
||||
kind: 'message',
|
||||
T: SnapshotStoreItem,
|
||||
oneof: 'item',
|
||||
},
|
||||
{
|
||||
no: 2,
|
||||
name: 'iavl',
|
||||
kind: 'message',
|
||||
T: SnapshotIAVLItem,
|
||||
oneof: 'item',
|
||||
},
|
||||
{
|
||||
no: 3,
|
||||
name: 'extension',
|
||||
kind: 'message',
|
||||
T: SnapshotExtensionMeta,
|
||||
oneof: 'item',
|
||||
},
|
||||
{
|
||||
no: 4,
|
||||
name: 'extension_payload',
|
||||
kind: 'message',
|
||||
T: SnapshotExtensionPayload,
|
||||
oneof: 'item',
|
||||
},
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SnapshotItem {
|
||||
return new SnapshotItem().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SnapshotItem {
|
||||
return new SnapshotItem().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SnapshotItem {
|
||||
return new SnapshotItem().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(
|
||||
a: SnapshotItem | PlainMessage<SnapshotItem> | undefined,
|
||||
b: SnapshotItem | PlainMessage<SnapshotItem> | undefined
|
||||
): boolean {
|
||||
return proto3.util.equals(SnapshotItem, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* SnapshotStoreItem contains metadata about a snapshotted store.
|
||||
*
|
||||
* Since: cosmos-sdk 0.46
|
||||
*
|
||||
* @generated from message cosmos.store.snapshots.v1.SnapshotStoreItem
|
||||
*/
|
||||
export class SnapshotStoreItem extends Message<SnapshotStoreItem> {
|
||||
/**
|
||||
* @generated from field: string name = 1;
|
||||
*/
|
||||
name = '';
|
||||
|
||||
constructor(data?: PartialMessage<SnapshotStoreItem>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = 'cosmos.store.snapshots.v1.SnapshotStoreItem';
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: 'name', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SnapshotStoreItem {
|
||||
return new SnapshotStoreItem().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SnapshotStoreItem {
|
||||
return new SnapshotStoreItem().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SnapshotStoreItem {
|
||||
return new SnapshotStoreItem().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(
|
||||
a: SnapshotStoreItem | PlainMessage<SnapshotStoreItem> | undefined,
|
||||
b: SnapshotStoreItem | PlainMessage<SnapshotStoreItem> | undefined
|
||||
): boolean {
|
||||
return proto3.util.equals(SnapshotStoreItem, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* SnapshotIAVLItem is an exported IAVL node.
|
||||
*
|
||||
* Since: cosmos-sdk 0.46
|
||||
*
|
||||
* @generated from message cosmos.store.snapshots.v1.SnapshotIAVLItem
|
||||
*/
|
||||
export class SnapshotIAVLItem extends Message<SnapshotIAVLItem> {
|
||||
/**
|
||||
* @generated from field: bytes key = 1;
|
||||
*/
|
||||
key = new Uint8Array(0);
|
||||
|
||||
/**
|
||||
* @generated from field: bytes value = 2;
|
||||
*/
|
||||
value = new Uint8Array(0);
|
||||
|
||||
/**
|
||||
* version is block height
|
||||
*
|
||||
* @generated from field: int64 version = 3;
|
||||
*/
|
||||
version = protoInt64.zero;
|
||||
|
||||
/**
|
||||
* height is depth of the tree.
|
||||
*
|
||||
* @generated from field: int32 height = 4;
|
||||
*/
|
||||
height = 0;
|
||||
|
||||
constructor(data?: PartialMessage<SnapshotIAVLItem>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = 'cosmos.store.snapshots.v1.SnapshotIAVLItem';
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: 'key', kind: 'scalar', T: 12 /* ScalarType.BYTES */ },
|
||||
{ no: 2, name: 'value', kind: 'scalar', T: 12 /* ScalarType.BYTES */ },
|
||||
{ no: 3, name: 'version', kind: 'scalar', T: 3 /* ScalarType.INT64 */ },
|
||||
{ no: 4, name: 'height', kind: 'scalar', T: 5 /* ScalarType.INT32 */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SnapshotIAVLItem {
|
||||
return new SnapshotIAVLItem().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SnapshotIAVLItem {
|
||||
return new SnapshotIAVLItem().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SnapshotIAVLItem {
|
||||
return new SnapshotIAVLItem().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(
|
||||
a: SnapshotIAVLItem | PlainMessage<SnapshotIAVLItem> | undefined,
|
||||
b: SnapshotIAVLItem | PlainMessage<SnapshotIAVLItem> | undefined
|
||||
): boolean {
|
||||
return proto3.util.equals(SnapshotIAVLItem, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* SnapshotExtensionMeta contains metadata about an external snapshotter.
|
||||
*
|
||||
* Since: cosmos-sdk 0.46
|
||||
*
|
||||
* @generated from message cosmos.store.snapshots.v1.SnapshotExtensionMeta
|
||||
*/
|
||||
export class SnapshotExtensionMeta extends Message<SnapshotExtensionMeta> {
|
||||
/**
|
||||
* @generated from field: string name = 1;
|
||||
*/
|
||||
name = '';
|
||||
|
||||
/**
|
||||
* @generated from field: uint32 format = 2;
|
||||
*/
|
||||
format = 0;
|
||||
|
||||
constructor(data?: PartialMessage<SnapshotExtensionMeta>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = 'cosmos.store.snapshots.v1.SnapshotExtensionMeta';
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: 'name', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 2, name: 'format', kind: 'scalar', T: 13 /* ScalarType.UINT32 */ },
|
||||
]);
|
||||
|
||||
static fromBinary(
|
||||
bytes: Uint8Array,
|
||||
options?: Partial<BinaryReadOptions>
|
||||
): SnapshotExtensionMeta {
|
||||
return new SnapshotExtensionMeta().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SnapshotExtensionMeta {
|
||||
return new SnapshotExtensionMeta().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(
|
||||
jsonString: string,
|
||||
options?: Partial<JsonReadOptions>
|
||||
): SnapshotExtensionMeta {
|
||||
return new SnapshotExtensionMeta().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(
|
||||
a: SnapshotExtensionMeta | PlainMessage<SnapshotExtensionMeta> | undefined,
|
||||
b: SnapshotExtensionMeta | PlainMessage<SnapshotExtensionMeta> | undefined
|
||||
): boolean {
|
||||
return proto3.util.equals(SnapshotExtensionMeta, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* SnapshotExtensionPayload contains payloads of an external snapshotter.
|
||||
*
|
||||
* Since: cosmos-sdk 0.46
|
||||
*
|
||||
* @generated from message cosmos.store.snapshots.v1.SnapshotExtensionPayload
|
||||
*/
|
||||
export class SnapshotExtensionPayload extends Message<SnapshotExtensionPayload> {
|
||||
/**
|
||||
* @generated from field: bytes payload = 1;
|
||||
*/
|
||||
payload = new Uint8Array(0);
|
||||
|
||||
constructor(data?: PartialMessage<SnapshotExtensionPayload>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = 'cosmos.store.snapshots.v1.SnapshotExtensionPayload';
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: 'payload', kind: 'scalar', T: 12 /* ScalarType.BYTES */ },
|
||||
]);
|
||||
|
||||
static fromBinary(
|
||||
bytes: Uint8Array,
|
||||
options?: Partial<BinaryReadOptions>
|
||||
): SnapshotExtensionPayload {
|
||||
return new SnapshotExtensionPayload().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(
|
||||
jsonValue: JsonValue,
|
||||
options?: Partial<JsonReadOptions>
|
||||
): SnapshotExtensionPayload {
|
||||
return new SnapshotExtensionPayload().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(
|
||||
jsonString: string,
|
||||
options?: Partial<JsonReadOptions>
|
||||
): SnapshotExtensionPayload {
|
||||
return new SnapshotExtensionPayload().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(
|
||||
a: SnapshotExtensionPayload | PlainMessage<SnapshotExtensionPayload> | undefined,
|
||||
b: SnapshotExtensionPayload | PlainMessage<SnapshotExtensionPayload> | undefined
|
||||
): boolean {
|
||||
return proto3.util.equals(SnapshotExtensionPayload, a, b);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts"
|
||||
// @generated from file cosmos/store/streaming/abci/grpc.proto (package cosmos.store.streaming.abci, syntax proto3)
|
||||
/* eslint-disable */
|
||||
// @ts-nocheck
|
||||
|
||||
import {
|
||||
ListenCommitRequest,
|
||||
ListenCommitResponse,
|
||||
ListenFinalizeBlockRequest,
|
||||
ListenFinalizeBlockResponse,
|
||||
} from './grpc_pb.js';
|
||||
|
||||
const TYPE_NAME = 'cosmos.store.streaming.abci.ABCIListenerService';
|
||||
|
||||
/**
|
||||
* ListenFinalizeBlock is the corresponding endpoint for ABCIListener.ListenEndBlock
|
||||
*
|
||||
* @generated from rpc cosmos.store.streaming.abci.ABCIListenerService.ListenFinalizeBlock
|
||||
*/
|
||||
export const ABCIListenerServiceListenFinalizeBlockService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: 'ListenFinalizeBlock',
|
||||
Request: ListenFinalizeBlockRequest,
|
||||
Response: ListenFinalizeBlockResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* ListenCommit is the corresponding endpoint for ABCIListener.ListenCommit
|
||||
*
|
||||
* @generated from rpc cosmos.store.streaming.abci.ABCIListenerService.ListenCommit
|
||||
*/
|
||||
export const ABCIListenerServiceListenCommitService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: 'ListenCommit',
|
||||
Request: ListenCommitRequest,
|
||||
Response: ListenCommitResponse,
|
||||
} as const;
|
||||
@@ -0,0 +1,229 @@
|
||||
// @generated by protoc-gen-es v1.2.0 with parameter "target=ts"
|
||||
// @generated from file cosmos/store/streaming/abci/grpc.proto (package cosmos.store.streaming.abci, syntax proto3)
|
||||
/* eslint-disable */
|
||||
// @ts-nocheck
|
||||
|
||||
import type {
|
||||
BinaryReadOptions,
|
||||
FieldList,
|
||||
JsonReadOptions,
|
||||
JsonValue,
|
||||
PartialMessage,
|
||||
PlainMessage,
|
||||
} from '@bufbuild/protobuf';
|
||||
import { Message, proto3, protoInt64 } from '@bufbuild/protobuf';
|
||||
import {
|
||||
RequestFinalizeBlock,
|
||||
ResponseCommit,
|
||||
ResponseFinalizeBlock,
|
||||
} from '../../../../tendermint/abci/types_pb.js';
|
||||
import { StoreKVPair } from '../../v1beta1/listening_pb.js';
|
||||
|
||||
/**
|
||||
* ListenEndBlockRequest is the request type for the ListenEndBlock RPC method
|
||||
*
|
||||
* @generated from message cosmos.store.streaming.abci.ListenFinalizeBlockRequest
|
||||
*/
|
||||
export class ListenFinalizeBlockRequest extends Message<ListenFinalizeBlockRequest> {
|
||||
/**
|
||||
* @generated from field: tendermint.abci.RequestFinalizeBlock req = 1;
|
||||
*/
|
||||
req?: RequestFinalizeBlock;
|
||||
|
||||
/**
|
||||
* @generated from field: tendermint.abci.ResponseFinalizeBlock res = 2;
|
||||
*/
|
||||
res?: ResponseFinalizeBlock;
|
||||
|
||||
constructor(data?: PartialMessage<ListenFinalizeBlockRequest>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = 'cosmos.store.streaming.abci.ListenFinalizeBlockRequest';
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: 'req', kind: 'message', T: RequestFinalizeBlock },
|
||||
{ no: 2, name: 'res', kind: 'message', T: ResponseFinalizeBlock },
|
||||
]);
|
||||
|
||||
static fromBinary(
|
||||
bytes: Uint8Array,
|
||||
options?: Partial<BinaryReadOptions>
|
||||
): ListenFinalizeBlockRequest {
|
||||
return new ListenFinalizeBlockRequest().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(
|
||||
jsonValue: JsonValue,
|
||||
options?: Partial<JsonReadOptions>
|
||||
): ListenFinalizeBlockRequest {
|
||||
return new ListenFinalizeBlockRequest().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(
|
||||
jsonString: string,
|
||||
options?: Partial<JsonReadOptions>
|
||||
): ListenFinalizeBlockRequest {
|
||||
return new ListenFinalizeBlockRequest().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(
|
||||
a: ListenFinalizeBlockRequest | PlainMessage<ListenFinalizeBlockRequest> | undefined,
|
||||
b: ListenFinalizeBlockRequest | PlainMessage<ListenFinalizeBlockRequest> | undefined
|
||||
): boolean {
|
||||
return proto3.util.equals(ListenFinalizeBlockRequest, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* ListenEndBlockResponse is the response type for the ListenEndBlock RPC method
|
||||
*
|
||||
* @generated from message cosmos.store.streaming.abci.ListenFinalizeBlockResponse
|
||||
*/
|
||||
export class ListenFinalizeBlockResponse extends Message<ListenFinalizeBlockResponse> {
|
||||
constructor(data?: PartialMessage<ListenFinalizeBlockResponse>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = 'cosmos.store.streaming.abci.ListenFinalizeBlockResponse';
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => []);
|
||||
|
||||
static fromBinary(
|
||||
bytes: Uint8Array,
|
||||
options?: Partial<BinaryReadOptions>
|
||||
): ListenFinalizeBlockResponse {
|
||||
return new ListenFinalizeBlockResponse().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(
|
||||
jsonValue: JsonValue,
|
||||
options?: Partial<JsonReadOptions>
|
||||
): ListenFinalizeBlockResponse {
|
||||
return new ListenFinalizeBlockResponse().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(
|
||||
jsonString: string,
|
||||
options?: Partial<JsonReadOptions>
|
||||
): ListenFinalizeBlockResponse {
|
||||
return new ListenFinalizeBlockResponse().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(
|
||||
a: ListenFinalizeBlockResponse | PlainMessage<ListenFinalizeBlockResponse> | undefined,
|
||||
b: ListenFinalizeBlockResponse | PlainMessage<ListenFinalizeBlockResponse> | undefined
|
||||
): boolean {
|
||||
return proto3.util.equals(ListenFinalizeBlockResponse, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* ListenCommitRequest is the request type for the ListenCommit RPC method
|
||||
*
|
||||
* @generated from message cosmos.store.streaming.abci.ListenCommitRequest
|
||||
*/
|
||||
export class ListenCommitRequest extends Message<ListenCommitRequest> {
|
||||
/**
|
||||
* explicitly pass in block height as ResponseCommit does not contain this info
|
||||
*
|
||||
* @generated from field: int64 block_height = 1;
|
||||
*/
|
||||
blockHeight = protoInt64.zero;
|
||||
|
||||
/**
|
||||
* @generated from field: tendermint.abci.ResponseCommit res = 2;
|
||||
*/
|
||||
res?: ResponseCommit;
|
||||
|
||||
/**
|
||||
* @generated from field: repeated cosmos.store.v1beta1.StoreKVPair change_set = 3;
|
||||
*/
|
||||
changeSet: StoreKVPair[] = [];
|
||||
|
||||
constructor(data?: PartialMessage<ListenCommitRequest>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = 'cosmos.store.streaming.abci.ListenCommitRequest';
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{
|
||||
no: 1,
|
||||
name: 'block_height',
|
||||
kind: 'scalar',
|
||||
T: 3 /* ScalarType.INT64 */,
|
||||
},
|
||||
{ no: 2, name: 'res', kind: 'message', T: ResponseCommit },
|
||||
{
|
||||
no: 3,
|
||||
name: 'change_set',
|
||||
kind: 'message',
|
||||
T: StoreKVPair,
|
||||
repeated: true,
|
||||
},
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListenCommitRequest {
|
||||
return new ListenCommitRequest().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListenCommitRequest {
|
||||
return new ListenCommitRequest().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(
|
||||
jsonString: string,
|
||||
options?: Partial<JsonReadOptions>
|
||||
): ListenCommitRequest {
|
||||
return new ListenCommitRequest().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(
|
||||
a: ListenCommitRequest | PlainMessage<ListenCommitRequest> | undefined,
|
||||
b: ListenCommitRequest | PlainMessage<ListenCommitRequest> | undefined
|
||||
): boolean {
|
||||
return proto3.util.equals(ListenCommitRequest, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* ListenCommitResponse is the response type for the ListenCommit RPC method
|
||||
*
|
||||
* @generated from message cosmos.store.streaming.abci.ListenCommitResponse
|
||||
*/
|
||||
export class ListenCommitResponse extends Message<ListenCommitResponse> {
|
||||
constructor(data?: PartialMessage<ListenCommitResponse>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = 'cosmos.store.streaming.abci.ListenCommitResponse';
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => []);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListenCommitResponse {
|
||||
return new ListenCommitResponse().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListenCommitResponse {
|
||||
return new ListenCommitResponse().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(
|
||||
jsonString: string,
|
||||
options?: Partial<JsonReadOptions>
|
||||
): ListenCommitResponse {
|
||||
return new ListenCommitResponse().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(
|
||||
a: ListenCommitResponse | PlainMessage<ListenCommitResponse> | undefined,
|
||||
b: ListenCommitResponse | PlainMessage<ListenCommitResponse> | undefined
|
||||
): boolean {
|
||||
return proto3.util.equals(ListenCommitResponse, a, b);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,173 @@
|
||||
// @generated by protoc-gen-es v1.2.0 with parameter "target=ts"
|
||||
// @generated from file cosmos/store/v1beta1/commit_info.proto (package cosmos.store.v1beta1, syntax proto3)
|
||||
/* eslint-disable */
|
||||
// @ts-nocheck
|
||||
|
||||
import type {
|
||||
BinaryReadOptions,
|
||||
FieldList,
|
||||
JsonReadOptions,
|
||||
JsonValue,
|
||||
PartialMessage,
|
||||
PlainMessage,
|
||||
} from '@bufbuild/protobuf';
|
||||
import { Message, Timestamp, proto3, protoInt64 } from '@bufbuild/protobuf';
|
||||
|
||||
/**
|
||||
* CommitInfo defines commit information used by the multi-store when committing
|
||||
* a version/height.
|
||||
*
|
||||
* @generated from message cosmos.store.v1beta1.CommitInfo
|
||||
*/
|
||||
export class CommitInfo extends Message<CommitInfo> {
|
||||
/**
|
||||
* @generated from field: int64 version = 1;
|
||||
*/
|
||||
version = protoInt64.zero;
|
||||
|
||||
/**
|
||||
* @generated from field: repeated cosmos.store.v1beta1.StoreInfo store_infos = 2;
|
||||
*/
|
||||
storeInfos: StoreInfo[] = [];
|
||||
|
||||
/**
|
||||
* @generated from field: google.protobuf.Timestamp timestamp = 3;
|
||||
*/
|
||||
timestamp?: Timestamp;
|
||||
|
||||
constructor(data?: PartialMessage<CommitInfo>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = 'cosmos.store.v1beta1.CommitInfo';
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: 'version', kind: 'scalar', T: 3 /* ScalarType.INT64 */ },
|
||||
{
|
||||
no: 2,
|
||||
name: 'store_infos',
|
||||
kind: 'message',
|
||||
T: StoreInfo,
|
||||
repeated: true,
|
||||
},
|
||||
{ no: 3, name: 'timestamp', kind: 'message', T: Timestamp },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CommitInfo {
|
||||
return new CommitInfo().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CommitInfo {
|
||||
return new CommitInfo().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CommitInfo {
|
||||
return new CommitInfo().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(
|
||||
a: CommitInfo | PlainMessage<CommitInfo> | undefined,
|
||||
b: CommitInfo | PlainMessage<CommitInfo> | undefined
|
||||
): boolean {
|
||||
return proto3.util.equals(CommitInfo, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* StoreInfo defines store-specific commit information. It contains a reference
|
||||
* between a store name and the commit ID.
|
||||
*
|
||||
* @generated from message cosmos.store.v1beta1.StoreInfo
|
||||
*/
|
||||
export class StoreInfo extends Message<StoreInfo> {
|
||||
/**
|
||||
* @generated from field: string name = 1;
|
||||
*/
|
||||
name = '';
|
||||
|
||||
/**
|
||||
* @generated from field: cosmos.store.v1beta1.CommitID commit_id = 2;
|
||||
*/
|
||||
commitId?: CommitID;
|
||||
|
||||
constructor(data?: PartialMessage<StoreInfo>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = 'cosmos.store.v1beta1.StoreInfo';
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: 'name', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 2, name: 'commit_id', kind: 'message', T: CommitID },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): StoreInfo {
|
||||
return new StoreInfo().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): StoreInfo {
|
||||
return new StoreInfo().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): StoreInfo {
|
||||
return new StoreInfo().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(
|
||||
a: StoreInfo | PlainMessage<StoreInfo> | undefined,
|
||||
b: StoreInfo | PlainMessage<StoreInfo> | undefined
|
||||
): boolean {
|
||||
return proto3.util.equals(StoreInfo, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* CommitID defines the commitment information when a specific store is
|
||||
* committed.
|
||||
*
|
||||
* @generated from message cosmos.store.v1beta1.CommitID
|
||||
*/
|
||||
export class CommitID extends Message<CommitID> {
|
||||
/**
|
||||
* @generated from field: int64 version = 1;
|
||||
*/
|
||||
version = protoInt64.zero;
|
||||
|
||||
/**
|
||||
* @generated from field: bytes hash = 2;
|
||||
*/
|
||||
hash = new Uint8Array(0);
|
||||
|
||||
constructor(data?: PartialMessage<CommitID>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = 'cosmos.store.v1beta1.CommitID';
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: 'version', kind: 'scalar', T: 3 /* ScalarType.INT64 */ },
|
||||
{ no: 2, name: 'hash', kind: 'scalar', T: 12 /* ScalarType.BYTES */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CommitID {
|
||||
return new CommitID().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CommitID {
|
||||
return new CommitID().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CommitID {
|
||||
return new CommitID().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(
|
||||
a: CommitID | PlainMessage<CommitID> | undefined,
|
||||
b: CommitID | PlainMessage<CommitID> | undefined
|
||||
): boolean {
|
||||
return proto3.util.equals(CommitID, a, b);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,154 @@
|
||||
// @generated by protoc-gen-es v1.2.0 with parameter "target=ts"
|
||||
// @generated from file cosmos/store/v1beta1/listening.proto (package cosmos.store.v1beta1, syntax proto3)
|
||||
/* eslint-disable */
|
||||
// @ts-nocheck
|
||||
|
||||
import type {
|
||||
BinaryReadOptions,
|
||||
FieldList,
|
||||
JsonReadOptions,
|
||||
JsonValue,
|
||||
PartialMessage,
|
||||
PlainMessage,
|
||||
} from '@bufbuild/protobuf';
|
||||
import { Message, proto3 } from '@bufbuild/protobuf';
|
||||
import {
|
||||
RequestFinalizeBlock,
|
||||
ResponseCommit,
|
||||
ResponseFinalizeBlock,
|
||||
} from '../../../tendermint/abci/types_pb.js';
|
||||
|
||||
/**
|
||||
* 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
|
||||
*
|
||||
* @generated from message cosmos.store.v1beta1.StoreKVPair
|
||||
*/
|
||||
export class StoreKVPair extends Message<StoreKVPair> {
|
||||
/**
|
||||
* the store key for the KVStore this pair originates from
|
||||
*
|
||||
* @generated from field: string store_key = 1;
|
||||
*/
|
||||
storeKey = '';
|
||||
|
||||
/**
|
||||
* true indicates a delete operation, false indicates a set operation
|
||||
*
|
||||
* @generated from field: bool delete = 2;
|
||||
*/
|
||||
delete = false;
|
||||
|
||||
/**
|
||||
* @generated from field: bytes key = 3;
|
||||
*/
|
||||
key = new Uint8Array(0);
|
||||
|
||||
/**
|
||||
* @generated from field: bytes value = 4;
|
||||
*/
|
||||
value = new Uint8Array(0);
|
||||
|
||||
constructor(data?: PartialMessage<StoreKVPair>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = 'cosmos.store.v1beta1.StoreKVPair';
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: 'store_key', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 2, name: 'delete', kind: 'scalar', T: 8 /* ScalarType.BOOL */ },
|
||||
{ no: 3, name: 'key', kind: 'scalar', T: 12 /* ScalarType.BYTES */ },
|
||||
{ no: 4, name: 'value', kind: 'scalar', T: 12 /* ScalarType.BYTES */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): StoreKVPair {
|
||||
return new StoreKVPair().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): StoreKVPair {
|
||||
return new StoreKVPair().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): StoreKVPair {
|
||||
return new StoreKVPair().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(
|
||||
a: StoreKVPair | PlainMessage<StoreKVPair> | undefined,
|
||||
b: StoreKVPair | PlainMessage<StoreKVPair> | undefined
|
||||
): boolean {
|
||||
return proto3.util.equals(StoreKVPair, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* BlockMetadata contains all the abci event data of a block
|
||||
* the file streamer dump them into files together with the state changes.
|
||||
*
|
||||
* @generated from message cosmos.store.v1beta1.BlockMetadata
|
||||
*/
|
||||
export class BlockMetadata extends Message<BlockMetadata> {
|
||||
/**
|
||||
* @generated from field: tendermint.abci.ResponseCommit response_commit = 6;
|
||||
*/
|
||||
responseCommit?: ResponseCommit;
|
||||
|
||||
/**
|
||||
* @generated from field: tendermint.abci.RequestFinalizeBlock request_finalize_block = 7;
|
||||
*/
|
||||
requestFinalizeBlock?: RequestFinalizeBlock;
|
||||
|
||||
/**
|
||||
* TODO: should we renumber this?
|
||||
*
|
||||
* @generated from field: tendermint.abci.ResponseFinalizeBlock response_finalize_block = 8;
|
||||
*/
|
||||
responseFinalizeBlock?: ResponseFinalizeBlock;
|
||||
|
||||
constructor(data?: PartialMessage<BlockMetadata>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = 'cosmos.store.v1beta1.BlockMetadata';
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 6, name: 'response_commit', kind: 'message', T: ResponseCommit },
|
||||
{
|
||||
no: 7,
|
||||
name: 'request_finalize_block',
|
||||
kind: 'message',
|
||||
T: RequestFinalizeBlock,
|
||||
},
|
||||
{
|
||||
no: 8,
|
||||
name: 'response_finalize_block',
|
||||
kind: 'message',
|
||||
T: ResponseFinalizeBlock,
|
||||
},
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): BlockMetadata {
|
||||
return new BlockMetadata().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): BlockMetadata {
|
||||
return new BlockMetadata().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): BlockMetadata {
|
||||
return new BlockMetadata().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(
|
||||
a: BlockMetadata | PlainMessage<BlockMetadata> | undefined,
|
||||
b: BlockMetadata | PlainMessage<BlockMetadata> | undefined
|
||||
): boolean {
|
||||
return proto3.util.equals(BlockMetadata, a, b);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,78 @@
|
||||
// @generated by protoc-gen-es v1.2.0 with parameter "target=ts"
|
||||
// @generated from file cosmos/tx/config/v1/config.proto (package cosmos.tx.config.v1, syntax proto3)
|
||||
/* eslint-disable */
|
||||
// @ts-nocheck
|
||||
|
||||
import type {
|
||||
BinaryReadOptions,
|
||||
FieldList,
|
||||
JsonReadOptions,
|
||||
JsonValue,
|
||||
PartialMessage,
|
||||
PlainMessage,
|
||||
} from '@bufbuild/protobuf';
|
||||
import { Message, proto3 } from '@bufbuild/protobuf';
|
||||
|
||||
/**
|
||||
* Config is the config object of the x/auth/tx package.
|
||||
*
|
||||
* @generated from message cosmos.tx.config.v1.Config
|
||||
*/
|
||||
export class Config extends Message<Config> {
|
||||
/**
|
||||
* skip_ante_handler defines whether the ante handler registration should be skipped in case an app wants to override
|
||||
* this functionality.
|
||||
*
|
||||
* @generated from field: bool skip_ante_handler = 1;
|
||||
*/
|
||||
skipAnteHandler = false;
|
||||
|
||||
/**
|
||||
* skip_post_handler defines whether the post handler registration should be skipped in case an app wants to override
|
||||
* this functionality.
|
||||
*
|
||||
* @generated from field: bool skip_post_handler = 2;
|
||||
*/
|
||||
skipPostHandler = false;
|
||||
|
||||
constructor(data?: PartialMessage<Config>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = 'cosmos.tx.config.v1.Config';
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{
|
||||
no: 1,
|
||||
name: 'skip_ante_handler',
|
||||
kind: 'scalar',
|
||||
T: 8 /* ScalarType.BOOL */,
|
||||
},
|
||||
{
|
||||
no: 2,
|
||||
name: 'skip_post_handler',
|
||||
kind: 'scalar',
|
||||
T: 8 /* ScalarType.BOOL */,
|
||||
},
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Config {
|
||||
return new Config().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Config {
|
||||
return new Config().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Config {
|
||||
return new Config().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(
|
||||
a: Config | PlainMessage<Config> | undefined,
|
||||
b: Config | PlainMessage<Config> | undefined
|
||||
): boolean {
|
||||
return proto3.util.equals(Config, a, b);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,432 @@
|
||||
// @generated by protoc-gen-es v1.2.0 with parameter "target=ts"
|
||||
// @generated from file cosmos/tx/signing/v1beta1/signing.proto (package cosmos.tx.signing.v1beta1, syntax proto3)
|
||||
/* eslint-disable */
|
||||
// @ts-nocheck
|
||||
|
||||
import type {
|
||||
BinaryReadOptions,
|
||||
FieldList,
|
||||
JsonReadOptions,
|
||||
JsonValue,
|
||||
PartialMessage,
|
||||
PlainMessage,
|
||||
} from '@bufbuild/protobuf';
|
||||
import { Any, Message, proto3, protoInt64 } from '@bufbuild/protobuf';
|
||||
import { CompactBitArray } from '../../../crypto/multisig/v1beta1/multisig_pb.js';
|
||||
|
||||
/**
|
||||
* SignMode represents a signing mode with its own security guarantees.
|
||||
*
|
||||
* This enum should be considered a registry of all known sign modes
|
||||
* in the Cosmos ecosystem. Apps are not expected to support all known
|
||||
* sign modes. Apps that would like to support custom sign modes are
|
||||
* encouraged to open a small PR against this file to add a new case
|
||||
* to this SignMode enum describing their sign mode so that different
|
||||
* apps have a consistent version of this enum.
|
||||
*
|
||||
* @generated from enum cosmos.tx.signing.v1beta1.SignMode
|
||||
*/
|
||||
export enum SignMode {
|
||||
/**
|
||||
* SIGN_MODE_UNSPECIFIED specifies an unknown signing mode and will be
|
||||
* rejected.
|
||||
*
|
||||
* @generated from enum value: SIGN_MODE_UNSPECIFIED = 0;
|
||||
*/
|
||||
UNSPECIFIED = 0,
|
||||
|
||||
/**
|
||||
* SIGN_MODE_DIRECT specifies a signing mode which uses SignDoc and is
|
||||
* verified with raw bytes from Tx.
|
||||
*
|
||||
* @generated from enum value: SIGN_MODE_DIRECT = 1;
|
||||
*/
|
||||
DIRECT = 1,
|
||||
|
||||
/**
|
||||
* SIGN_MODE_TEXTUAL is a future signing mode that will verify some
|
||||
* human-readable textual representation on top of the binary representation
|
||||
* from SIGN_MODE_DIRECT.
|
||||
*
|
||||
* Since: cosmos-sdk 0.50
|
||||
*
|
||||
* @generated from enum value: SIGN_MODE_TEXTUAL = 2;
|
||||
*/
|
||||
TEXTUAL = 2,
|
||||
|
||||
/**
|
||||
* SIGN_MODE_DIRECT_AUX specifies a signing mode which uses
|
||||
* SignDocDirectAux. As opposed to SIGN_MODE_DIRECT, this sign mode does not
|
||||
* require signers signing over other signers' `signer_info`.
|
||||
*
|
||||
* Since: cosmos-sdk 0.46
|
||||
*
|
||||
* @generated from enum value: SIGN_MODE_DIRECT_AUX = 3;
|
||||
*/
|
||||
DIRECT_AUX = 3,
|
||||
|
||||
/**
|
||||
* SIGN_MODE_LEGACY_AMINO_JSON is a backwards compatibility mode which uses
|
||||
* Amino JSON and will be removed in the future.
|
||||
*
|
||||
* @generated from enum value: SIGN_MODE_LEGACY_AMINO_JSON = 127;
|
||||
*/
|
||||
LEGACY_AMINO_JSON = 127,
|
||||
|
||||
/**
|
||||
* SIGN_MODE_EIP_191 specifies the sign mode for EIP 191 signing on the Cosmos
|
||||
* SDK. Ref: https://eips.ethereum.org/EIPS/eip-191
|
||||
*
|
||||
* Currently, SIGN_MODE_EIP_191 is registered as a SignMode enum variant,
|
||||
* but is not implemented on the SDK by default. To enable EIP-191, you need
|
||||
* to pass a custom `TxConfig` that has an implementation of
|
||||
* `SignModeHandler` for EIP-191. The SDK may decide to fully support
|
||||
* EIP-191 in the future.
|
||||
*
|
||||
* Since: cosmos-sdk 0.45.2
|
||||
*
|
||||
* @generated from enum value: SIGN_MODE_EIP_191 = 191;
|
||||
*/
|
||||
EIP_191 = 191,
|
||||
}
|
||||
// Retrieve enum metadata with: proto3.getEnumType(SignMode)
|
||||
proto3.util.setEnumType(SignMode, 'cosmos.tx.signing.v1beta1.SignMode', [
|
||||
{ no: 0, name: 'SIGN_MODE_UNSPECIFIED' },
|
||||
{ no: 1, name: 'SIGN_MODE_DIRECT' },
|
||||
{ no: 2, name: 'SIGN_MODE_TEXTUAL' },
|
||||
{ no: 3, name: 'SIGN_MODE_DIRECT_AUX' },
|
||||
{ no: 127, name: 'SIGN_MODE_LEGACY_AMINO_JSON' },
|
||||
{ no: 191, name: 'SIGN_MODE_EIP_191' },
|
||||
]);
|
||||
|
||||
/**
|
||||
* SignatureDescriptors wraps multiple SignatureDescriptor's.
|
||||
*
|
||||
* @generated from message cosmos.tx.signing.v1beta1.SignatureDescriptors
|
||||
*/
|
||||
export class SignatureDescriptors extends Message<SignatureDescriptors> {
|
||||
/**
|
||||
* signatures are the signature descriptors
|
||||
*
|
||||
* @generated from field: repeated cosmos.tx.signing.v1beta1.SignatureDescriptor signatures = 1;
|
||||
*/
|
||||
signatures: SignatureDescriptor[] = [];
|
||||
|
||||
constructor(data?: PartialMessage<SignatureDescriptors>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = 'cosmos.tx.signing.v1beta1.SignatureDescriptors';
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{
|
||||
no: 1,
|
||||
name: 'signatures',
|
||||
kind: 'message',
|
||||
T: SignatureDescriptor,
|
||||
repeated: true,
|
||||
},
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SignatureDescriptors {
|
||||
return new SignatureDescriptors().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SignatureDescriptors {
|
||||
return new SignatureDescriptors().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(
|
||||
jsonString: string,
|
||||
options?: Partial<JsonReadOptions>
|
||||
): SignatureDescriptors {
|
||||
return new SignatureDescriptors().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(
|
||||
a: SignatureDescriptors | PlainMessage<SignatureDescriptors> | undefined,
|
||||
b: SignatureDescriptors | PlainMessage<SignatureDescriptors> | undefined
|
||||
): boolean {
|
||||
return proto3.util.equals(SignatureDescriptors, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* SignatureDescriptor is a convenience type which represents the full data for
|
||||
* a signature including the public key of the signer, signing modes and the
|
||||
* signature itself. It is primarily used for coordinating signatures between
|
||||
* clients.
|
||||
*
|
||||
* @generated from message cosmos.tx.signing.v1beta1.SignatureDescriptor
|
||||
*/
|
||||
export class SignatureDescriptor extends Message<SignatureDescriptor> {
|
||||
/**
|
||||
* public_key is the public key of the signer
|
||||
*
|
||||
* @generated from field: google.protobuf.Any public_key = 1;
|
||||
*/
|
||||
publicKey?: Any;
|
||||
|
||||
/**
|
||||
* @generated from field: cosmos.tx.signing.v1beta1.SignatureDescriptor.Data data = 2;
|
||||
*/
|
||||
data?: SignatureDescriptor_Data;
|
||||
|
||||
/**
|
||||
* sequence is the sequence of the account, which describes the
|
||||
* number of committed transactions signed by a given address. It is used to prevent
|
||||
* replay attacks.
|
||||
*
|
||||
* @generated from field: uint64 sequence = 3;
|
||||
*/
|
||||
sequence = protoInt64.zero;
|
||||
|
||||
constructor(data?: PartialMessage<SignatureDescriptor>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = 'cosmos.tx.signing.v1beta1.SignatureDescriptor';
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: 'public_key', kind: 'message', T: Any },
|
||||
{ no: 2, name: 'data', kind: 'message', T: SignatureDescriptor_Data },
|
||||
{ no: 3, name: 'sequence', kind: 'scalar', T: 4 /* ScalarType.UINT64 */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SignatureDescriptor {
|
||||
return new SignatureDescriptor().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SignatureDescriptor {
|
||||
return new SignatureDescriptor().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(
|
||||
jsonString: string,
|
||||
options?: Partial<JsonReadOptions>
|
||||
): SignatureDescriptor {
|
||||
return new SignatureDescriptor().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(
|
||||
a: SignatureDescriptor | PlainMessage<SignatureDescriptor> | undefined,
|
||||
b: SignatureDescriptor | PlainMessage<SignatureDescriptor> | undefined
|
||||
): boolean {
|
||||
return proto3.util.equals(SignatureDescriptor, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Data represents signature data
|
||||
*
|
||||
* @generated from message cosmos.tx.signing.v1beta1.SignatureDescriptor.Data
|
||||
*/
|
||||
export class SignatureDescriptor_Data extends Message<SignatureDescriptor_Data> {
|
||||
/**
|
||||
* sum is the oneof that specifies whether this represents single or multi-signature data
|
||||
*
|
||||
* @generated from oneof cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.sum
|
||||
*/
|
||||
sum:
|
||||
| {
|
||||
/**
|
||||
* single represents a single signer
|
||||
*
|
||||
* @generated from field: cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Single single = 1;
|
||||
*/
|
||||
value: SignatureDescriptor_Data_Single;
|
||||
case: 'single';
|
||||
}
|
||||
| {
|
||||
/**
|
||||
* multi represents a multisig signer
|
||||
*
|
||||
* @generated from field: cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Multi multi = 2;
|
||||
*/
|
||||
value: SignatureDescriptor_Data_Multi;
|
||||
case: 'multi';
|
||||
}
|
||||
| { case: undefined; value?: undefined } = { case: undefined };
|
||||
|
||||
constructor(data?: PartialMessage<SignatureDescriptor_Data>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = 'cosmos.tx.signing.v1beta1.SignatureDescriptor.Data';
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{
|
||||
no: 1,
|
||||
name: 'single',
|
||||
kind: 'message',
|
||||
T: SignatureDescriptor_Data_Single,
|
||||
oneof: 'sum',
|
||||
},
|
||||
{
|
||||
no: 2,
|
||||
name: 'multi',
|
||||
kind: 'message',
|
||||
T: SignatureDescriptor_Data_Multi,
|
||||
oneof: 'sum',
|
||||
},
|
||||
]);
|
||||
|
||||
static fromBinary(
|
||||
bytes: Uint8Array,
|
||||
options?: Partial<BinaryReadOptions>
|
||||
): SignatureDescriptor_Data {
|
||||
return new SignatureDescriptor_Data().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(
|
||||
jsonValue: JsonValue,
|
||||
options?: Partial<JsonReadOptions>
|
||||
): SignatureDescriptor_Data {
|
||||
return new SignatureDescriptor_Data().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(
|
||||
jsonString: string,
|
||||
options?: Partial<JsonReadOptions>
|
||||
): SignatureDescriptor_Data {
|
||||
return new SignatureDescriptor_Data().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(
|
||||
a: SignatureDescriptor_Data | PlainMessage<SignatureDescriptor_Data> | undefined,
|
||||
b: SignatureDescriptor_Data | PlainMessage<SignatureDescriptor_Data> | undefined
|
||||
): boolean {
|
||||
return proto3.util.equals(SignatureDescriptor_Data, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Single is the signature data for a single signer
|
||||
*
|
||||
* @generated from message cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Single
|
||||
*/
|
||||
export class SignatureDescriptor_Data_Single extends Message<SignatureDescriptor_Data_Single> {
|
||||
/**
|
||||
* mode is the signing mode of the single signer
|
||||
*
|
||||
* @generated from field: cosmos.tx.signing.v1beta1.SignMode mode = 1;
|
||||
*/
|
||||
mode = SignMode.UNSPECIFIED;
|
||||
|
||||
/**
|
||||
* signature is the raw signature bytes
|
||||
*
|
||||
* @generated from field: bytes signature = 2;
|
||||
*/
|
||||
signature = new Uint8Array(0);
|
||||
|
||||
constructor(data?: PartialMessage<SignatureDescriptor_Data_Single>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = 'cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Single';
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: 'mode', kind: 'enum', T: proto3.getEnumType(SignMode) },
|
||||
{ no: 2, name: 'signature', kind: 'scalar', T: 12 /* ScalarType.BYTES */ },
|
||||
]);
|
||||
|
||||
static fromBinary(
|
||||
bytes: Uint8Array,
|
||||
options?: Partial<BinaryReadOptions>
|
||||
): SignatureDescriptor_Data_Single {
|
||||
return new SignatureDescriptor_Data_Single().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(
|
||||
jsonValue: JsonValue,
|
||||
options?: Partial<JsonReadOptions>
|
||||
): SignatureDescriptor_Data_Single {
|
||||
return new SignatureDescriptor_Data_Single().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(
|
||||
jsonString: string,
|
||||
options?: Partial<JsonReadOptions>
|
||||
): SignatureDescriptor_Data_Single {
|
||||
return new SignatureDescriptor_Data_Single().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(
|
||||
a: SignatureDescriptor_Data_Single | PlainMessage<SignatureDescriptor_Data_Single> | undefined,
|
||||
b: SignatureDescriptor_Data_Single | PlainMessage<SignatureDescriptor_Data_Single> | undefined
|
||||
): boolean {
|
||||
return proto3.util.equals(SignatureDescriptor_Data_Single, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Multi is the signature data for a multisig public key
|
||||
*
|
||||
* @generated from message cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Multi
|
||||
*/
|
||||
export class SignatureDescriptor_Data_Multi extends Message<SignatureDescriptor_Data_Multi> {
|
||||
/**
|
||||
* bitarray specifies which keys within the multisig are signing
|
||||
*
|
||||
* @generated from field: cosmos.crypto.multisig.v1beta1.CompactBitArray bitarray = 1;
|
||||
*/
|
||||
bitarray?: CompactBitArray;
|
||||
|
||||
/**
|
||||
* signatures is the signatures of the multi-signature
|
||||
*
|
||||
* @generated from field: repeated cosmos.tx.signing.v1beta1.SignatureDescriptor.Data signatures = 2;
|
||||
*/
|
||||
signatures: SignatureDescriptor_Data[] = [];
|
||||
|
||||
constructor(data?: PartialMessage<SignatureDescriptor_Data_Multi>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = 'cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Multi';
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: 'bitarray', kind: 'message', T: CompactBitArray },
|
||||
{
|
||||
no: 2,
|
||||
name: 'signatures',
|
||||
kind: 'message',
|
||||
T: SignatureDescriptor_Data,
|
||||
repeated: true,
|
||||
},
|
||||
]);
|
||||
|
||||
static fromBinary(
|
||||
bytes: Uint8Array,
|
||||
options?: Partial<BinaryReadOptions>
|
||||
): SignatureDescriptor_Data_Multi {
|
||||
return new SignatureDescriptor_Data_Multi().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(
|
||||
jsonValue: JsonValue,
|
||||
options?: Partial<JsonReadOptions>
|
||||
): SignatureDescriptor_Data_Multi {
|
||||
return new SignatureDescriptor_Data_Multi().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(
|
||||
jsonString: string,
|
||||
options?: Partial<JsonReadOptions>
|
||||
): SignatureDescriptor_Data_Multi {
|
||||
return new SignatureDescriptor_Data_Multi().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(
|
||||
a: SignatureDescriptor_Data_Multi | PlainMessage<SignatureDescriptor_Data_Multi> | undefined,
|
||||
b: SignatureDescriptor_Data_Multi | PlainMessage<SignatureDescriptor_Data_Multi> | undefined
|
||||
): boolean {
|
||||
return proto3.util.equals(SignatureDescriptor_Data_Multi, a, b);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,145 @@
|
||||
// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts"
|
||||
// @generated from file cosmos/tx/v1beta1/service.proto (package cosmos.tx.v1beta1, syntax proto3)
|
||||
/* eslint-disable */
|
||||
// @ts-nocheck
|
||||
|
||||
import {
|
||||
BroadcastTxRequest,
|
||||
BroadcastTxResponse,
|
||||
GetBlockWithTxsRequest,
|
||||
GetBlockWithTxsResponse,
|
||||
GetTxRequest,
|
||||
GetTxResponse,
|
||||
GetTxsEventRequest,
|
||||
GetTxsEventResponse,
|
||||
SimulateRequest,
|
||||
SimulateResponse,
|
||||
TxDecodeAminoRequest,
|
||||
TxDecodeAminoResponse,
|
||||
TxDecodeRequest,
|
||||
TxDecodeResponse,
|
||||
TxEncodeAminoRequest,
|
||||
TxEncodeAminoResponse,
|
||||
TxEncodeRequest,
|
||||
TxEncodeResponse,
|
||||
} from './service_pb.js';
|
||||
|
||||
const TYPE_NAME = 'cosmos.tx.v1beta1.Service';
|
||||
|
||||
/**
|
||||
* Simulate simulates executing a transaction for estimating gas usage.
|
||||
*
|
||||
* @generated from rpc cosmos.tx.v1beta1.Service.Simulate
|
||||
*/
|
||||
export const ServiceSimulateService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: 'Simulate',
|
||||
Request: SimulateRequest,
|
||||
Response: SimulateResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* GetTx fetches a tx by hash.
|
||||
*
|
||||
* @generated from rpc cosmos.tx.v1beta1.Service.GetTx
|
||||
*/
|
||||
export const ServiceGetTxService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: 'GetTx',
|
||||
Request: GetTxRequest,
|
||||
Response: GetTxResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* BroadcastTx broadcast transaction.
|
||||
*
|
||||
* @generated from rpc cosmos.tx.v1beta1.Service.BroadcastTx
|
||||
*/
|
||||
export const ServiceBroadcastTxService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: 'BroadcastTx',
|
||||
Request: BroadcastTxRequest,
|
||||
Response: BroadcastTxResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* GetTxsEvent fetches txs by event.
|
||||
*
|
||||
* @generated from rpc cosmos.tx.v1beta1.Service.GetTxsEvent
|
||||
*/
|
||||
export const ServiceGetTxsEventService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: 'GetTxsEvent',
|
||||
Request: GetTxsEventRequest,
|
||||
Response: GetTxsEventResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* GetBlockWithTxs fetches a block with decoded txs.
|
||||
*
|
||||
* Since: cosmos-sdk 0.45.2
|
||||
*
|
||||
* @generated from rpc cosmos.tx.v1beta1.Service.GetBlockWithTxs
|
||||
*/
|
||||
export const ServiceGetBlockWithTxsService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: 'GetBlockWithTxs',
|
||||
Request: GetBlockWithTxsRequest,
|
||||
Response: GetBlockWithTxsResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* TxDecode decodes the transaction.
|
||||
*
|
||||
* Since: cosmos-sdk 0.47
|
||||
*
|
||||
* @generated from rpc cosmos.tx.v1beta1.Service.TxDecode
|
||||
*/
|
||||
export const ServiceTxDecodeService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: 'TxDecode',
|
||||
Request: TxDecodeRequest,
|
||||
Response: TxDecodeResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* TxEncode encodes the transaction.
|
||||
*
|
||||
* Since: cosmos-sdk 0.47
|
||||
*
|
||||
* @generated from rpc cosmos.tx.v1beta1.Service.TxEncode
|
||||
*/
|
||||
export const ServiceTxEncodeService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: 'TxEncode',
|
||||
Request: TxEncodeRequest,
|
||||
Response: TxEncodeResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* TxEncodeAmino encodes an Amino transaction from JSON to encoded bytes.
|
||||
*
|
||||
* Since: cosmos-sdk 0.47
|
||||
*
|
||||
* @generated from rpc cosmos.tx.v1beta1.Service.TxEncodeAmino
|
||||
*/
|
||||
export const ServiceTxEncodeAminoService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: 'TxEncodeAmino',
|
||||
Request: TxEncodeAminoRequest,
|
||||
Response: TxEncodeAminoResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* TxDecodeAmino decodes an Amino transaction from encoded bytes to JSON.
|
||||
*
|
||||
* Since: cosmos-sdk 0.47
|
||||
*
|
||||
* @generated from rpc cosmos.tx.v1beta1.Service.TxDecodeAmino
|
||||
*/
|
||||
export const ServiceTxDecodeAminoService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: 'TxDecodeAmino',
|
||||
Request: TxDecodeAminoRequest,
|
||||
Response: TxDecodeAminoResponse,
|
||||
} as const;
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,971 @@
|
||||
// @generated by protoc-gen-es v1.2.0 with parameter "target=ts"
|
||||
// @generated from file cosmos/tx/v1beta1/tx.proto (package cosmos.tx.v1beta1, syntax proto3)
|
||||
/* eslint-disable */
|
||||
// @ts-nocheck
|
||||
|
||||
import type {
|
||||
BinaryReadOptions,
|
||||
FieldList,
|
||||
JsonReadOptions,
|
||||
JsonValue,
|
||||
PartialMessage,
|
||||
PlainMessage,
|
||||
} from '@bufbuild/protobuf';
|
||||
import { Any, Message, proto3, protoInt64 } from '@bufbuild/protobuf';
|
||||
import { Coin } from '../../base/v1beta1/coin_pb.js';
|
||||
import { CompactBitArray } from '../../crypto/multisig/v1beta1/multisig_pb.js';
|
||||
import { SignMode } from '../signing/v1beta1/signing_pb.js';
|
||||
|
||||
/**
|
||||
* Tx is the standard type used for broadcasting transactions.
|
||||
*
|
||||
* @generated from message cosmos.tx.v1beta1.Tx
|
||||
*/
|
||||
export class Tx extends Message<Tx> {
|
||||
/**
|
||||
* body is the processable content of the transaction
|
||||
*
|
||||
* @generated from field: cosmos.tx.v1beta1.TxBody body = 1;
|
||||
*/
|
||||
body?: TxBody;
|
||||
|
||||
/**
|
||||
* auth_info is the authorization related content of the transaction,
|
||||
* specifically signers, signer modes and fee
|
||||
*
|
||||
* @generated from field: cosmos.tx.v1beta1.AuthInfo auth_info = 2;
|
||||
*/
|
||||
authInfo?: AuthInfo;
|
||||
|
||||
/**
|
||||
* signatures is a list of signatures that matches the length and order of
|
||||
* AuthInfo's signer_infos to allow connecting signature meta information like
|
||||
* public key and signing mode by position.
|
||||
*
|
||||
* @generated from field: repeated bytes signatures = 3;
|
||||
*/
|
||||
signatures: Uint8Array[] = [];
|
||||
|
||||
constructor(data?: PartialMessage<Tx>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = 'cosmos.tx.v1beta1.Tx';
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: 'body', kind: 'message', T: TxBody },
|
||||
{ no: 2, name: 'auth_info', kind: 'message', T: AuthInfo },
|
||||
{
|
||||
no: 3,
|
||||
name: 'signatures',
|
||||
kind: 'scalar',
|
||||
T: 12 /* ScalarType.BYTES */,
|
||||
repeated: true,
|
||||
},
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Tx {
|
||||
return new Tx().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Tx {
|
||||
return new Tx().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Tx {
|
||||
return new Tx().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(
|
||||
a: Tx | PlainMessage<Tx> | undefined,
|
||||
b: Tx | PlainMessage<Tx> | undefined
|
||||
): boolean {
|
||||
return proto3.util.equals(Tx, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* TxRaw is a variant of Tx that pins the signer's exact binary representation
|
||||
* of body and auth_info. This is used for signing, broadcasting and
|
||||
* verification. The binary `serialize(tx: TxRaw)` is stored in Tendermint and
|
||||
* the hash `sha256(serialize(tx: TxRaw))` becomes the "txhash", commonly used
|
||||
* as the transaction ID.
|
||||
*
|
||||
* @generated from message cosmos.tx.v1beta1.TxRaw
|
||||
*/
|
||||
export class TxRaw extends Message<TxRaw> {
|
||||
/**
|
||||
* body_bytes is a protobuf serialization of a TxBody that matches the
|
||||
* representation in SignDoc.
|
||||
*
|
||||
* @generated from field: bytes body_bytes = 1;
|
||||
*/
|
||||
bodyBytes = new Uint8Array(0);
|
||||
|
||||
/**
|
||||
* auth_info_bytes is a protobuf serialization of an AuthInfo that matches the
|
||||
* representation in SignDoc.
|
||||
*
|
||||
* @generated from field: bytes auth_info_bytes = 2;
|
||||
*/
|
||||
authInfoBytes = new Uint8Array(0);
|
||||
|
||||
/**
|
||||
* signatures is a list of signatures that matches the length and order of
|
||||
* AuthInfo's signer_infos to allow connecting signature meta information like
|
||||
* public key and signing mode by position.
|
||||
*
|
||||
* @generated from field: repeated bytes signatures = 3;
|
||||
*/
|
||||
signatures: Uint8Array[] = [];
|
||||
|
||||
constructor(data?: PartialMessage<TxRaw>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = 'cosmos.tx.v1beta1.TxRaw';
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: 'body_bytes', kind: 'scalar', T: 12 /* ScalarType.BYTES */ },
|
||||
{
|
||||
no: 2,
|
||||
name: 'auth_info_bytes',
|
||||
kind: 'scalar',
|
||||
T: 12 /* ScalarType.BYTES */,
|
||||
},
|
||||
{
|
||||
no: 3,
|
||||
name: 'signatures',
|
||||
kind: 'scalar',
|
||||
T: 12 /* ScalarType.BYTES */,
|
||||
repeated: true,
|
||||
},
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TxRaw {
|
||||
return new TxRaw().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TxRaw {
|
||||
return new TxRaw().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TxRaw {
|
||||
return new TxRaw().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(
|
||||
a: TxRaw | PlainMessage<TxRaw> | undefined,
|
||||
b: TxRaw | PlainMessage<TxRaw> | undefined
|
||||
): boolean {
|
||||
return proto3.util.equals(TxRaw, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* SignDoc is the type used for generating sign bytes for SIGN_MODE_DIRECT.
|
||||
*
|
||||
* @generated from message cosmos.tx.v1beta1.SignDoc
|
||||
*/
|
||||
export class SignDoc extends Message<SignDoc> {
|
||||
/**
|
||||
* body_bytes is protobuf serialization of a TxBody that matches the
|
||||
* representation in TxRaw.
|
||||
*
|
||||
* @generated from field: bytes body_bytes = 1;
|
||||
*/
|
||||
bodyBytes = new Uint8Array(0);
|
||||
|
||||
/**
|
||||
* auth_info_bytes is a protobuf serialization of an AuthInfo that matches the
|
||||
* representation in TxRaw.
|
||||
*
|
||||
* @generated from field: bytes auth_info_bytes = 2;
|
||||
*/
|
||||
authInfoBytes = new Uint8Array(0);
|
||||
|
||||
/**
|
||||
* chain_id is the unique identifier of the chain this transaction targets.
|
||||
* It prevents signed transactions from being used on another chain by an
|
||||
* attacker
|
||||
*
|
||||
* @generated from field: string chain_id = 3;
|
||||
*/
|
||||
chainId = '';
|
||||
|
||||
/**
|
||||
* account_number is the account number of the account in state
|
||||
*
|
||||
* @generated from field: uint64 account_number = 4;
|
||||
*/
|
||||
accountNumber = protoInt64.zero;
|
||||
|
||||
constructor(data?: PartialMessage<SignDoc>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = 'cosmos.tx.v1beta1.SignDoc';
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: 'body_bytes', kind: 'scalar', T: 12 /* ScalarType.BYTES */ },
|
||||
{
|
||||
no: 2,
|
||||
name: 'auth_info_bytes',
|
||||
kind: 'scalar',
|
||||
T: 12 /* ScalarType.BYTES */,
|
||||
},
|
||||
{ no: 3, name: 'chain_id', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
|
||||
{
|
||||
no: 4,
|
||||
name: 'account_number',
|
||||
kind: 'scalar',
|
||||
T: 4 /* ScalarType.UINT64 */,
|
||||
},
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SignDoc {
|
||||
return new SignDoc().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SignDoc {
|
||||
return new SignDoc().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SignDoc {
|
||||
return new SignDoc().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(
|
||||
a: SignDoc | PlainMessage<SignDoc> | undefined,
|
||||
b: SignDoc | PlainMessage<SignDoc> | undefined
|
||||
): boolean {
|
||||
return proto3.util.equals(SignDoc, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* SignDocDirectAux is the type used for generating sign bytes for
|
||||
* SIGN_MODE_DIRECT_AUX.
|
||||
*
|
||||
* Since: cosmos-sdk 0.46
|
||||
*
|
||||
* @generated from message cosmos.tx.v1beta1.SignDocDirectAux
|
||||
*/
|
||||
export class SignDocDirectAux extends Message<SignDocDirectAux> {
|
||||
/**
|
||||
* body_bytes is protobuf serialization of a TxBody that matches the
|
||||
* representation in TxRaw.
|
||||
*
|
||||
* @generated from field: bytes body_bytes = 1;
|
||||
*/
|
||||
bodyBytes = new Uint8Array(0);
|
||||
|
||||
/**
|
||||
* public_key is the public key of the signing account.
|
||||
*
|
||||
* @generated from field: google.protobuf.Any public_key = 2;
|
||||
*/
|
||||
publicKey?: Any;
|
||||
|
||||
/**
|
||||
* chain_id is the identifier of the chain this transaction targets.
|
||||
* It prevents signed transactions from being used on another chain by an
|
||||
* attacker.
|
||||
*
|
||||
* @generated from field: string chain_id = 3;
|
||||
*/
|
||||
chainId = '';
|
||||
|
||||
/**
|
||||
* account_number is the account number of the account in state.
|
||||
*
|
||||
* @generated from field: uint64 account_number = 4;
|
||||
*/
|
||||
accountNumber = protoInt64.zero;
|
||||
|
||||
/**
|
||||
* sequence is the sequence number of the signing account.
|
||||
*
|
||||
* @generated from field: uint64 sequence = 5;
|
||||
*/
|
||||
sequence = protoInt64.zero;
|
||||
|
||||
/**
|
||||
* tips have been depreacted and should not be used
|
||||
*
|
||||
* @generated from field: cosmos.tx.v1beta1.Tip tip = 6 [deprecated = true];
|
||||
* @deprecated
|
||||
*/
|
||||
tip?: Tip;
|
||||
|
||||
constructor(data?: PartialMessage<SignDocDirectAux>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = 'cosmos.tx.v1beta1.SignDocDirectAux';
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: 'body_bytes', kind: 'scalar', T: 12 /* ScalarType.BYTES */ },
|
||||
{ no: 2, name: 'public_key', kind: 'message', T: Any },
|
||||
{ no: 3, name: 'chain_id', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
|
||||
{
|
||||
no: 4,
|
||||
name: 'account_number',
|
||||
kind: 'scalar',
|
||||
T: 4 /* ScalarType.UINT64 */,
|
||||
},
|
||||
{ no: 5, name: 'sequence', kind: 'scalar', T: 4 /* ScalarType.UINT64 */ },
|
||||
{ no: 6, name: 'tip', kind: 'message', T: Tip },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SignDocDirectAux {
|
||||
return new SignDocDirectAux().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SignDocDirectAux {
|
||||
return new SignDocDirectAux().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SignDocDirectAux {
|
||||
return new SignDocDirectAux().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(
|
||||
a: SignDocDirectAux | PlainMessage<SignDocDirectAux> | undefined,
|
||||
b: SignDocDirectAux | PlainMessage<SignDocDirectAux> | undefined
|
||||
): boolean {
|
||||
return proto3.util.equals(SignDocDirectAux, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* TxBody is the body of a transaction that all signers sign over.
|
||||
*
|
||||
* @generated from message cosmos.tx.v1beta1.TxBody
|
||||
*/
|
||||
export class TxBody extends Message<TxBody> {
|
||||
/**
|
||||
* messages is a list of messages to be executed. The required signers of
|
||||
* those messages define the number and order of elements in AuthInfo's
|
||||
* signer_infos and Tx's signatures. Each required signer address is added to
|
||||
* the list only the first time it occurs.
|
||||
* By convention, the first required signer (usually from the first message)
|
||||
* is referred to as the primary signer and pays the fee for the whole
|
||||
* transaction.
|
||||
*
|
||||
* @generated from field: repeated google.protobuf.Any messages = 1;
|
||||
*/
|
||||
messages: Any[] = [];
|
||||
|
||||
/**
|
||||
* memo is any arbitrary note/comment to be added to the transaction.
|
||||
* WARNING: in clients, any publicly exposed text should not be called memo,
|
||||
* but should be called `note` instead (see https://github.com/cosmos/cosmos-sdk/issues/9122).
|
||||
*
|
||||
* @generated from field: string memo = 2;
|
||||
*/
|
||||
memo = '';
|
||||
|
||||
/**
|
||||
* timeout is the block height after which this transaction will not
|
||||
* be processed by the chain
|
||||
*
|
||||
* @generated from field: uint64 timeout_height = 3;
|
||||
*/
|
||||
timeoutHeight = protoInt64.zero;
|
||||
|
||||
/**
|
||||
* extension_options are arbitrary options that can be added by chains
|
||||
* when the default options are not sufficient. If any of these are present
|
||||
* and can't be handled, the transaction will be rejected
|
||||
*
|
||||
* @generated from field: repeated google.protobuf.Any extension_options = 1023;
|
||||
*/
|
||||
extensionOptions: Any[] = [];
|
||||
|
||||
/**
|
||||
* extension_options are arbitrary options that can be added by chains
|
||||
* when the default options are not sufficient. If any of these are present
|
||||
* and can't be handled, they will be ignored
|
||||
*
|
||||
* @generated from field: repeated google.protobuf.Any non_critical_extension_options = 2047;
|
||||
*/
|
||||
nonCriticalExtensionOptions: Any[] = [];
|
||||
|
||||
constructor(data?: PartialMessage<TxBody>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = 'cosmos.tx.v1beta1.TxBody';
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: 'messages', kind: 'message', T: Any, repeated: true },
|
||||
{ no: 2, name: 'memo', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
|
||||
{
|
||||
no: 3,
|
||||
name: 'timeout_height',
|
||||
kind: 'scalar',
|
||||
T: 4 /* ScalarType.UINT64 */,
|
||||
},
|
||||
{
|
||||
no: 1023,
|
||||
name: 'extension_options',
|
||||
kind: 'message',
|
||||
T: Any,
|
||||
repeated: true,
|
||||
},
|
||||
{
|
||||
no: 2047,
|
||||
name: 'non_critical_extension_options',
|
||||
kind: 'message',
|
||||
T: Any,
|
||||
repeated: true,
|
||||
},
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TxBody {
|
||||
return new TxBody().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TxBody {
|
||||
return new TxBody().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TxBody {
|
||||
return new TxBody().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(
|
||||
a: TxBody | PlainMessage<TxBody> | undefined,
|
||||
b: TxBody | PlainMessage<TxBody> | undefined
|
||||
): boolean {
|
||||
return proto3.util.equals(TxBody, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* AuthInfo describes the fee and signer modes that are used to sign a
|
||||
* transaction.
|
||||
*
|
||||
* @generated from message cosmos.tx.v1beta1.AuthInfo
|
||||
*/
|
||||
export class AuthInfo extends Message<AuthInfo> {
|
||||
/**
|
||||
* signer_infos defines the signing modes for the required signers. The number
|
||||
* and order of elements must match the required signers from TxBody's
|
||||
* messages. The first element is the primary signer and the one which pays
|
||||
* the fee.
|
||||
*
|
||||
* @generated from field: repeated cosmos.tx.v1beta1.SignerInfo signer_infos = 1;
|
||||
*/
|
||||
signerInfos: SignerInfo[] = [];
|
||||
|
||||
/**
|
||||
* Fee is the fee and gas limit for the transaction. The first signer is the
|
||||
* primary signer and the one which pays the fee. The fee can be calculated
|
||||
* based on the cost of evaluating the body and doing signature verification
|
||||
* of the signers. This can be estimated via simulation.
|
||||
*
|
||||
* @generated from field: cosmos.tx.v1beta1.Fee fee = 2;
|
||||
*/
|
||||
fee?: Fee;
|
||||
|
||||
/**
|
||||
* Tip is the optional tip used for transactions fees paid in another denom.
|
||||
*
|
||||
* This field is ignored if the chain didn't enable tips, i.e. didn't add the
|
||||
* `TipDecorator` in its posthandler.
|
||||
*
|
||||
* Since: cosmos-sdk 0.46
|
||||
*
|
||||
* @generated from field: cosmos.tx.v1beta1.Tip tip = 3 [deprecated = true];
|
||||
* @deprecated
|
||||
*/
|
||||
tip?: Tip;
|
||||
|
||||
constructor(data?: PartialMessage<AuthInfo>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = 'cosmos.tx.v1beta1.AuthInfo';
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{
|
||||
no: 1,
|
||||
name: 'signer_infos',
|
||||
kind: 'message',
|
||||
T: SignerInfo,
|
||||
repeated: true,
|
||||
},
|
||||
{ no: 2, name: 'fee', kind: 'message', T: Fee },
|
||||
{ no: 3, name: 'tip', kind: 'message', T: Tip },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AuthInfo {
|
||||
return new AuthInfo().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AuthInfo {
|
||||
return new AuthInfo().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AuthInfo {
|
||||
return new AuthInfo().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(
|
||||
a: AuthInfo | PlainMessage<AuthInfo> | undefined,
|
||||
b: AuthInfo | PlainMessage<AuthInfo> | undefined
|
||||
): boolean {
|
||||
return proto3.util.equals(AuthInfo, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* SignerInfo describes the public key and signing mode of a single top-level
|
||||
* signer.
|
||||
*
|
||||
* @generated from message cosmos.tx.v1beta1.SignerInfo
|
||||
*/
|
||||
export class SignerInfo extends Message<SignerInfo> {
|
||||
/**
|
||||
* public_key is the public key of the signer. It is optional for accounts
|
||||
* that already exist in state. If unset, the verifier can use the required \
|
||||
* signer address for this position and lookup the public key.
|
||||
*
|
||||
* @generated from field: google.protobuf.Any public_key = 1;
|
||||
*/
|
||||
publicKey?: Any;
|
||||
|
||||
/**
|
||||
* mode_info describes the signing mode of the signer and is a nested
|
||||
* structure to support nested multisig pubkey's
|
||||
*
|
||||
* @generated from field: cosmos.tx.v1beta1.ModeInfo mode_info = 2;
|
||||
*/
|
||||
modeInfo?: ModeInfo;
|
||||
|
||||
/**
|
||||
* sequence is the sequence of the account, which describes the
|
||||
* number of committed transactions signed by a given address. It is used to
|
||||
* prevent replay attacks.
|
||||
*
|
||||
* @generated from field: uint64 sequence = 3;
|
||||
*/
|
||||
sequence = protoInt64.zero;
|
||||
|
||||
constructor(data?: PartialMessage<SignerInfo>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = 'cosmos.tx.v1beta1.SignerInfo';
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: 'public_key', kind: 'message', T: Any },
|
||||
{ no: 2, name: 'mode_info', kind: 'message', T: ModeInfo },
|
||||
{ no: 3, name: 'sequence', kind: 'scalar', T: 4 /* ScalarType.UINT64 */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SignerInfo {
|
||||
return new SignerInfo().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SignerInfo {
|
||||
return new SignerInfo().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SignerInfo {
|
||||
return new SignerInfo().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(
|
||||
a: SignerInfo | PlainMessage<SignerInfo> | undefined,
|
||||
b: SignerInfo | PlainMessage<SignerInfo> | undefined
|
||||
): boolean {
|
||||
return proto3.util.equals(SignerInfo, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* ModeInfo describes the signing mode of a single or nested multisig signer.
|
||||
*
|
||||
* @generated from message cosmos.tx.v1beta1.ModeInfo
|
||||
*/
|
||||
export class ModeInfo extends Message<ModeInfo> {
|
||||
/**
|
||||
* sum is the oneof that specifies whether this represents a single or nested
|
||||
* multisig signer
|
||||
*
|
||||
* @generated from oneof cosmos.tx.v1beta1.ModeInfo.sum
|
||||
*/
|
||||
sum:
|
||||
| {
|
||||
/**
|
||||
* single represents a single signer
|
||||
*
|
||||
* @generated from field: cosmos.tx.v1beta1.ModeInfo.Single single = 1;
|
||||
*/
|
||||
value: ModeInfo_Single;
|
||||
case: 'single';
|
||||
}
|
||||
| {
|
||||
/**
|
||||
* multi represents a nested multisig signer
|
||||
*
|
||||
* @generated from field: cosmos.tx.v1beta1.ModeInfo.Multi multi = 2;
|
||||
*/
|
||||
value: ModeInfo_Multi;
|
||||
case: 'multi';
|
||||
}
|
||||
| { case: undefined; value?: undefined } = { case: undefined };
|
||||
|
||||
constructor(data?: PartialMessage<ModeInfo>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = 'cosmos.tx.v1beta1.ModeInfo';
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{
|
||||
no: 1,
|
||||
name: 'single',
|
||||
kind: 'message',
|
||||
T: ModeInfo_Single,
|
||||
oneof: 'sum',
|
||||
},
|
||||
{ no: 2, name: 'multi', kind: 'message', T: ModeInfo_Multi, oneof: 'sum' },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ModeInfo {
|
||||
return new ModeInfo().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ModeInfo {
|
||||
return new ModeInfo().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ModeInfo {
|
||||
return new ModeInfo().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(
|
||||
a: ModeInfo | PlainMessage<ModeInfo> | undefined,
|
||||
b: ModeInfo | PlainMessage<ModeInfo> | undefined
|
||||
): boolean {
|
||||
return proto3.util.equals(ModeInfo, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Single is the mode info for a single signer. It is structured as a message
|
||||
* to allow for additional fields such as locale for SIGN_MODE_TEXTUAL in the
|
||||
* future
|
||||
*
|
||||
* @generated from message cosmos.tx.v1beta1.ModeInfo.Single
|
||||
*/
|
||||
export class ModeInfo_Single extends Message<ModeInfo_Single> {
|
||||
/**
|
||||
* mode is the signing mode of the single signer
|
||||
*
|
||||
* @generated from field: cosmos.tx.signing.v1beta1.SignMode mode = 1;
|
||||
*/
|
||||
mode = SignMode.UNSPECIFIED;
|
||||
|
||||
constructor(data?: PartialMessage<ModeInfo_Single>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = 'cosmos.tx.v1beta1.ModeInfo.Single';
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: 'mode', kind: 'enum', T: proto3.getEnumType(SignMode) },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ModeInfo_Single {
|
||||
return new ModeInfo_Single().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ModeInfo_Single {
|
||||
return new ModeInfo_Single().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ModeInfo_Single {
|
||||
return new ModeInfo_Single().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(
|
||||
a: ModeInfo_Single | PlainMessage<ModeInfo_Single> | undefined,
|
||||
b: ModeInfo_Single | PlainMessage<ModeInfo_Single> | undefined
|
||||
): boolean {
|
||||
return proto3.util.equals(ModeInfo_Single, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Multi is the mode info for a multisig public key
|
||||
*
|
||||
* @generated from message cosmos.tx.v1beta1.ModeInfo.Multi
|
||||
*/
|
||||
export class ModeInfo_Multi extends Message<ModeInfo_Multi> {
|
||||
/**
|
||||
* bitarray specifies which keys within the multisig are signing
|
||||
*
|
||||
* @generated from field: cosmos.crypto.multisig.v1beta1.CompactBitArray bitarray = 1;
|
||||
*/
|
||||
bitarray?: CompactBitArray;
|
||||
|
||||
/**
|
||||
* mode_infos is the corresponding modes of the signers of the multisig
|
||||
* which could include nested multisig public keys
|
||||
*
|
||||
* @generated from field: repeated cosmos.tx.v1beta1.ModeInfo mode_infos = 2;
|
||||
*/
|
||||
modeInfos: ModeInfo[] = [];
|
||||
|
||||
constructor(data?: PartialMessage<ModeInfo_Multi>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = 'cosmos.tx.v1beta1.ModeInfo.Multi';
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: 'bitarray', kind: 'message', T: CompactBitArray },
|
||||
{ no: 2, name: 'mode_infos', kind: 'message', T: ModeInfo, repeated: true },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ModeInfo_Multi {
|
||||
return new ModeInfo_Multi().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ModeInfo_Multi {
|
||||
return new ModeInfo_Multi().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ModeInfo_Multi {
|
||||
return new ModeInfo_Multi().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(
|
||||
a: ModeInfo_Multi | PlainMessage<ModeInfo_Multi> | undefined,
|
||||
b: ModeInfo_Multi | PlainMessage<ModeInfo_Multi> | undefined
|
||||
): boolean {
|
||||
return proto3.util.equals(ModeInfo_Multi, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Fee includes the amount of coins paid in fees and the maximum
|
||||
* gas to be used by the transaction. The ratio yields an effective "gasprice",
|
||||
* which must be above some miminum to be accepted into the mempool.
|
||||
*
|
||||
* @generated from message cosmos.tx.v1beta1.Fee
|
||||
*/
|
||||
export class Fee extends Message<Fee> {
|
||||
/**
|
||||
* amount is the amount of coins to be paid as a fee
|
||||
*
|
||||
* @generated from field: repeated cosmos.base.v1beta1.Coin amount = 1;
|
||||
*/
|
||||
amount: Coin[] = [];
|
||||
|
||||
/**
|
||||
* gas_limit is the maximum gas that can be used in transaction processing
|
||||
* before an out of gas error occurs
|
||||
*
|
||||
* @generated from field: uint64 gas_limit = 2;
|
||||
*/
|
||||
gasLimit = protoInt64.zero;
|
||||
|
||||
/**
|
||||
* if unset, the first signer is responsible for paying the fees. If set, the specified account must pay the fees.
|
||||
* the payer must be a tx signer (and thus have signed this field in AuthInfo).
|
||||
* setting this field does *not* change the ordering of required signers for the transaction.
|
||||
*
|
||||
* @generated from field: string payer = 3;
|
||||
*/
|
||||
payer = '';
|
||||
|
||||
/**
|
||||
* if set, the fee payer (either the first signer or the value of the payer field) requests that a fee grant be used
|
||||
* to pay fees instead of the fee payer's own balance. If an appropriate fee grant does not exist or the chain does
|
||||
* not support fee grants, this will fail
|
||||
*
|
||||
* @generated from field: string granter = 4;
|
||||
*/
|
||||
granter = '';
|
||||
|
||||
constructor(data?: PartialMessage<Fee>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = 'cosmos.tx.v1beta1.Fee';
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: 'amount', kind: 'message', T: Coin, repeated: true },
|
||||
{ no: 2, name: 'gas_limit', kind: 'scalar', T: 4 /* ScalarType.UINT64 */ },
|
||||
{ no: 3, name: 'payer', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 4, name: 'granter', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Fee {
|
||||
return new Fee().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Fee {
|
||||
return new Fee().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Fee {
|
||||
return new Fee().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(
|
||||
a: Fee | PlainMessage<Fee> | undefined,
|
||||
b: Fee | PlainMessage<Fee> | undefined
|
||||
): boolean {
|
||||
return proto3.util.equals(Fee, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Tip is the tip used for meta-transactions.
|
||||
*
|
||||
* Since: cosmos-sdk 0.46
|
||||
*
|
||||
* @generated from message cosmos.tx.v1beta1.Tip
|
||||
* @deprecated
|
||||
*/
|
||||
export class Tip extends Message<Tip> {
|
||||
/**
|
||||
* amount is the amount of the tip
|
||||
*
|
||||
* @generated from field: repeated cosmos.base.v1beta1.Coin amount = 1;
|
||||
*/
|
||||
amount: Coin[] = [];
|
||||
|
||||
/**
|
||||
* tipper is the address of the account paying for the tip
|
||||
*
|
||||
* @generated from field: string tipper = 2;
|
||||
*/
|
||||
tipper = '';
|
||||
|
||||
constructor(data?: PartialMessage<Tip>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = 'cosmos.tx.v1beta1.Tip';
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: 'amount', kind: 'message', T: Coin, repeated: true },
|
||||
{ no: 2, name: 'tipper', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Tip {
|
||||
return new Tip().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Tip {
|
||||
return new Tip().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Tip {
|
||||
return new Tip().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(
|
||||
a: Tip | PlainMessage<Tip> | undefined,
|
||||
b: Tip | PlainMessage<Tip> | undefined
|
||||
): boolean {
|
||||
return proto3.util.equals(Tip, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* AuxSignerData is the intermediary format that an auxiliary signer (e.g. a
|
||||
* tipper) builds and sends to the fee payer (who will build and broadcast the
|
||||
* actual tx). AuxSignerData is not a valid tx in itself, and will be rejected
|
||||
* by the node if sent directly as-is.
|
||||
*
|
||||
* Since: cosmos-sdk 0.46
|
||||
*
|
||||
* @generated from message cosmos.tx.v1beta1.AuxSignerData
|
||||
*/
|
||||
export class AuxSignerData extends Message<AuxSignerData> {
|
||||
/**
|
||||
* address is the bech32-encoded address of the auxiliary signer. If using
|
||||
* AuxSignerData across different chains, the bech32 prefix of the target
|
||||
* chain (where the final transaction is broadcasted) should be used.
|
||||
*
|
||||
* @generated from field: string address = 1;
|
||||
*/
|
||||
address = '';
|
||||
|
||||
/**
|
||||
* sign_doc is the SIGN_MODE_DIRECT_AUX sign doc that the auxiliary signer
|
||||
* signs. Note: we use the same sign doc even if we're signing with
|
||||
* LEGACY_AMINO_JSON.
|
||||
*
|
||||
* @generated from field: cosmos.tx.v1beta1.SignDocDirectAux sign_doc = 2;
|
||||
*/
|
||||
signDoc?: SignDocDirectAux;
|
||||
|
||||
/**
|
||||
* mode is the signing mode of the single signer.
|
||||
*
|
||||
* @generated from field: cosmos.tx.signing.v1beta1.SignMode mode = 3;
|
||||
*/
|
||||
mode = SignMode.UNSPECIFIED;
|
||||
|
||||
/**
|
||||
* sig is the signature of the sign doc.
|
||||
*
|
||||
* @generated from field: bytes sig = 4;
|
||||
*/
|
||||
sig = new Uint8Array(0);
|
||||
|
||||
constructor(data?: PartialMessage<AuxSignerData>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = 'cosmos.tx.v1beta1.AuxSignerData';
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: 'address', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 2, name: 'sign_doc', kind: 'message', T: SignDocDirectAux },
|
||||
{ no: 3, name: 'mode', kind: 'enum', T: proto3.getEnumType(SignMode) },
|
||||
{ no: 4, name: 'sig', kind: 'scalar', T: 12 /* ScalarType.BYTES */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AuxSignerData {
|
||||
return new AuxSignerData().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AuxSignerData {
|
||||
return new AuxSignerData().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AuxSignerData {
|
||||
return new AuxSignerData().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(
|
||||
a: AuxSignerData | PlainMessage<AuxSignerData> | undefined,
|
||||
b: AuxSignerData | PlainMessage<AuxSignerData> | undefined
|
||||
): boolean {
|
||||
return proto3.util.equals(AuxSignerData, a, b);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user