mirror of
https://github.com/sonr-io/sonr.git
synced 2026-08-04 10:21:40 +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);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,505 @@
|
||||
// @generated by protoc-gen-es v1.2.0 with parameter "target=ts"
|
||||
// @generated from file cosmwasm/wasm/v1/authz.proto (package cosmwasm.wasm.v1, 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 { AccessConfig } from "./types_pb.js";
|
||||
import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js";
|
||||
|
||||
/**
|
||||
* StoreCodeAuthorization defines authorization for wasm code upload.
|
||||
* Since: wasmd 0.42
|
||||
*
|
||||
* @generated from message cosmwasm.wasm.v1.StoreCodeAuthorization
|
||||
*/
|
||||
export class StoreCodeAuthorization extends Message<StoreCodeAuthorization> {
|
||||
/**
|
||||
* Grants for code upload
|
||||
*
|
||||
* @generated from field: repeated cosmwasm.wasm.v1.CodeGrant grants = 1;
|
||||
*/
|
||||
grants: CodeGrant[] = [];
|
||||
|
||||
constructor(data?: PartialMessage<StoreCodeAuthorization>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "cosmwasm.wasm.v1.StoreCodeAuthorization";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "grants", kind: "message", T: CodeGrant, repeated: true },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): StoreCodeAuthorization {
|
||||
return new StoreCodeAuthorization().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): StoreCodeAuthorization {
|
||||
return new StoreCodeAuthorization().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): StoreCodeAuthorization {
|
||||
return new StoreCodeAuthorization().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: StoreCodeAuthorization | PlainMessage<StoreCodeAuthorization> | undefined, b: StoreCodeAuthorization | PlainMessage<StoreCodeAuthorization> | undefined): boolean {
|
||||
return proto3.util.equals(StoreCodeAuthorization, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* ContractExecutionAuthorization defines authorization for wasm execute.
|
||||
* Since: wasmd 0.30
|
||||
*
|
||||
* @generated from message cosmwasm.wasm.v1.ContractExecutionAuthorization
|
||||
*/
|
||||
export class ContractExecutionAuthorization extends Message<ContractExecutionAuthorization> {
|
||||
/**
|
||||
* Grants for contract executions
|
||||
*
|
||||
* @generated from field: repeated cosmwasm.wasm.v1.ContractGrant grants = 1;
|
||||
*/
|
||||
grants: ContractGrant[] = [];
|
||||
|
||||
constructor(data?: PartialMessage<ContractExecutionAuthorization>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "cosmwasm.wasm.v1.ContractExecutionAuthorization";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "grants", kind: "message", T: ContractGrant, repeated: true },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ContractExecutionAuthorization {
|
||||
return new ContractExecutionAuthorization().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ContractExecutionAuthorization {
|
||||
return new ContractExecutionAuthorization().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ContractExecutionAuthorization {
|
||||
return new ContractExecutionAuthorization().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: ContractExecutionAuthorization | PlainMessage<ContractExecutionAuthorization> | undefined, b: ContractExecutionAuthorization | PlainMessage<ContractExecutionAuthorization> | undefined): boolean {
|
||||
return proto3.util.equals(ContractExecutionAuthorization, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* ContractMigrationAuthorization defines authorization for wasm contract
|
||||
* migration. Since: wasmd 0.30
|
||||
*
|
||||
* @generated from message cosmwasm.wasm.v1.ContractMigrationAuthorization
|
||||
*/
|
||||
export class ContractMigrationAuthorization extends Message<ContractMigrationAuthorization> {
|
||||
/**
|
||||
* Grants for contract migrations
|
||||
*
|
||||
* @generated from field: repeated cosmwasm.wasm.v1.ContractGrant grants = 1;
|
||||
*/
|
||||
grants: ContractGrant[] = [];
|
||||
|
||||
constructor(data?: PartialMessage<ContractMigrationAuthorization>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "cosmwasm.wasm.v1.ContractMigrationAuthorization";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "grants", kind: "message", T: ContractGrant, repeated: true },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ContractMigrationAuthorization {
|
||||
return new ContractMigrationAuthorization().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ContractMigrationAuthorization {
|
||||
return new ContractMigrationAuthorization().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ContractMigrationAuthorization {
|
||||
return new ContractMigrationAuthorization().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: ContractMigrationAuthorization | PlainMessage<ContractMigrationAuthorization> | undefined, b: ContractMigrationAuthorization | PlainMessage<ContractMigrationAuthorization> | undefined): boolean {
|
||||
return proto3.util.equals(ContractMigrationAuthorization, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* CodeGrant a granted permission for a single code
|
||||
*
|
||||
* @generated from message cosmwasm.wasm.v1.CodeGrant
|
||||
*/
|
||||
export class CodeGrant extends Message<CodeGrant> {
|
||||
/**
|
||||
* CodeHash is the unique identifier created by wasmvm
|
||||
* Wildcard "*" is used to specify any kind of grant.
|
||||
*
|
||||
* @generated from field: bytes code_hash = 1;
|
||||
*/
|
||||
codeHash = new Uint8Array(0);
|
||||
|
||||
/**
|
||||
* InstantiatePermission is the superset access control to apply
|
||||
* on contract creation.
|
||||
* Optional
|
||||
*
|
||||
* @generated from field: cosmwasm.wasm.v1.AccessConfig instantiate_permission = 2;
|
||||
*/
|
||||
instantiatePermission?: AccessConfig;
|
||||
|
||||
constructor(data?: PartialMessage<CodeGrant>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "cosmwasm.wasm.v1.CodeGrant";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "code_hash", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
|
||||
{ no: 2, name: "instantiate_permission", kind: "message", T: AccessConfig },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CodeGrant {
|
||||
return new CodeGrant().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CodeGrant {
|
||||
return new CodeGrant().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CodeGrant {
|
||||
return new CodeGrant().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: CodeGrant | PlainMessage<CodeGrant> | undefined, b: CodeGrant | PlainMessage<CodeGrant> | undefined): boolean {
|
||||
return proto3.util.equals(CodeGrant, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* ContractGrant a granted permission for a single contract
|
||||
* Since: wasmd 0.30
|
||||
*
|
||||
* @generated from message cosmwasm.wasm.v1.ContractGrant
|
||||
*/
|
||||
export class ContractGrant extends Message<ContractGrant> {
|
||||
/**
|
||||
* Contract is the bech32 address of the smart contract
|
||||
*
|
||||
* @generated from field: string contract = 1;
|
||||
*/
|
||||
contract = "";
|
||||
|
||||
/**
|
||||
* Limit defines execution limits that are enforced and updated when the grant
|
||||
* is applied. When the limit lapsed the grant is removed.
|
||||
*
|
||||
* @generated from field: google.protobuf.Any limit = 2;
|
||||
*/
|
||||
limit?: Any;
|
||||
|
||||
/**
|
||||
* Filter define more fine-grained control on the message payload passed
|
||||
* to the contract in the operation. When no filter applies on execution, the
|
||||
* operation is prohibited.
|
||||
*
|
||||
* @generated from field: google.protobuf.Any filter = 3;
|
||||
*/
|
||||
filter?: Any;
|
||||
|
||||
constructor(data?: PartialMessage<ContractGrant>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "cosmwasm.wasm.v1.ContractGrant";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "contract", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 2, name: "limit", kind: "message", T: Any },
|
||||
{ no: 3, name: "filter", kind: "message", T: Any },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ContractGrant {
|
||||
return new ContractGrant().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ContractGrant {
|
||||
return new ContractGrant().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ContractGrant {
|
||||
return new ContractGrant().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: ContractGrant | PlainMessage<ContractGrant> | undefined, b: ContractGrant | PlainMessage<ContractGrant> | undefined): boolean {
|
||||
return proto3.util.equals(ContractGrant, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* MaxCallsLimit limited number of calls to the contract. No funds transferable.
|
||||
* Since: wasmd 0.30
|
||||
*
|
||||
* @generated from message cosmwasm.wasm.v1.MaxCallsLimit
|
||||
*/
|
||||
export class MaxCallsLimit extends Message<MaxCallsLimit> {
|
||||
/**
|
||||
* Remaining number that is decremented on each execution
|
||||
*
|
||||
* @generated from field: uint64 remaining = 1;
|
||||
*/
|
||||
remaining = protoInt64.zero;
|
||||
|
||||
constructor(data?: PartialMessage<MaxCallsLimit>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "cosmwasm.wasm.v1.MaxCallsLimit";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "remaining", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MaxCallsLimit {
|
||||
return new MaxCallsLimit().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MaxCallsLimit {
|
||||
return new MaxCallsLimit().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MaxCallsLimit {
|
||||
return new MaxCallsLimit().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: MaxCallsLimit | PlainMessage<MaxCallsLimit> | undefined, b: MaxCallsLimit | PlainMessage<MaxCallsLimit> | undefined): boolean {
|
||||
return proto3.util.equals(MaxCallsLimit, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* MaxFundsLimit defines the maximal amounts that can be sent to the contract.
|
||||
* Since: wasmd 0.30
|
||||
*
|
||||
* @generated from message cosmwasm.wasm.v1.MaxFundsLimit
|
||||
*/
|
||||
export class MaxFundsLimit extends Message<MaxFundsLimit> {
|
||||
/**
|
||||
* Amounts is the maximal amount of tokens transferable to the contract.
|
||||
*
|
||||
* @generated from field: repeated cosmos.base.v1beta1.Coin amounts = 1;
|
||||
*/
|
||||
amounts: Coin[] = [];
|
||||
|
||||
constructor(data?: PartialMessage<MaxFundsLimit>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "cosmwasm.wasm.v1.MaxFundsLimit";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "amounts", kind: "message", T: Coin, repeated: true },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MaxFundsLimit {
|
||||
return new MaxFundsLimit().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MaxFundsLimit {
|
||||
return new MaxFundsLimit().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MaxFundsLimit {
|
||||
return new MaxFundsLimit().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: MaxFundsLimit | PlainMessage<MaxFundsLimit> | undefined, b: MaxFundsLimit | PlainMessage<MaxFundsLimit> | undefined): boolean {
|
||||
return proto3.util.equals(MaxFundsLimit, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* CombinedLimit defines the maximal amounts that can be sent to a contract and
|
||||
* the maximal number of calls executable. Both need to remain >0 to be valid.
|
||||
* Since: wasmd 0.30
|
||||
*
|
||||
* @generated from message cosmwasm.wasm.v1.CombinedLimit
|
||||
*/
|
||||
export class CombinedLimit extends Message<CombinedLimit> {
|
||||
/**
|
||||
* Remaining number that is decremented on each execution
|
||||
*
|
||||
* @generated from field: uint64 calls_remaining = 1;
|
||||
*/
|
||||
callsRemaining = protoInt64.zero;
|
||||
|
||||
/**
|
||||
* Amounts is the maximal amount of tokens transferable to the contract.
|
||||
*
|
||||
* @generated from field: repeated cosmos.base.v1beta1.Coin amounts = 2;
|
||||
*/
|
||||
amounts: Coin[] = [];
|
||||
|
||||
constructor(data?: PartialMessage<CombinedLimit>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "cosmwasm.wasm.v1.CombinedLimit";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "calls_remaining", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
||||
{ no: 2, name: "amounts", kind: "message", T: Coin, repeated: true },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CombinedLimit {
|
||||
return new CombinedLimit().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CombinedLimit {
|
||||
return new CombinedLimit().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CombinedLimit {
|
||||
return new CombinedLimit().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: CombinedLimit | PlainMessage<CombinedLimit> | undefined, b: CombinedLimit | PlainMessage<CombinedLimit> | undefined): boolean {
|
||||
return proto3.util.equals(CombinedLimit, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* AllowAllMessagesFilter is a wildcard to allow any type of contract payload
|
||||
* message.
|
||||
* Since: wasmd 0.30
|
||||
*
|
||||
* @generated from message cosmwasm.wasm.v1.AllowAllMessagesFilter
|
||||
*/
|
||||
export class AllowAllMessagesFilter extends Message<AllowAllMessagesFilter> {
|
||||
constructor(data?: PartialMessage<AllowAllMessagesFilter>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "cosmwasm.wasm.v1.AllowAllMessagesFilter";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AllowAllMessagesFilter {
|
||||
return new AllowAllMessagesFilter().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AllowAllMessagesFilter {
|
||||
return new AllowAllMessagesFilter().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AllowAllMessagesFilter {
|
||||
return new AllowAllMessagesFilter().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: AllowAllMessagesFilter | PlainMessage<AllowAllMessagesFilter> | undefined, b: AllowAllMessagesFilter | PlainMessage<AllowAllMessagesFilter> | undefined): boolean {
|
||||
return proto3.util.equals(AllowAllMessagesFilter, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* AcceptedMessageKeysFilter accept only the specific contract message keys in
|
||||
* the json object to be executed.
|
||||
* Since: wasmd 0.30
|
||||
*
|
||||
* @generated from message cosmwasm.wasm.v1.AcceptedMessageKeysFilter
|
||||
*/
|
||||
export class AcceptedMessageKeysFilter extends Message<AcceptedMessageKeysFilter> {
|
||||
/**
|
||||
* Messages is the list of unique keys
|
||||
*
|
||||
* @generated from field: repeated string keys = 1;
|
||||
*/
|
||||
keys: string[] = [];
|
||||
|
||||
constructor(data?: PartialMessage<AcceptedMessageKeysFilter>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "cosmwasm.wasm.v1.AcceptedMessageKeysFilter";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "keys", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AcceptedMessageKeysFilter {
|
||||
return new AcceptedMessageKeysFilter().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AcceptedMessageKeysFilter {
|
||||
return new AcceptedMessageKeysFilter().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AcceptedMessageKeysFilter {
|
||||
return new AcceptedMessageKeysFilter().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: AcceptedMessageKeysFilter | PlainMessage<AcceptedMessageKeysFilter> | undefined, b: AcceptedMessageKeysFilter | PlainMessage<AcceptedMessageKeysFilter> | undefined): boolean {
|
||||
return proto3.util.equals(AcceptedMessageKeysFilter, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* AcceptedMessagesFilter accept only the specific raw contract messages to be
|
||||
* executed.
|
||||
* Since: wasmd 0.30
|
||||
*
|
||||
* @generated from message cosmwasm.wasm.v1.AcceptedMessagesFilter
|
||||
*/
|
||||
export class AcceptedMessagesFilter extends Message<AcceptedMessagesFilter> {
|
||||
/**
|
||||
* Messages is the list of raw contract messages
|
||||
*
|
||||
* @generated from field: repeated bytes messages = 1;
|
||||
*/
|
||||
messages: Uint8Array[] = [];
|
||||
|
||||
constructor(data?: PartialMessage<AcceptedMessagesFilter>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "cosmwasm.wasm.v1.AcceptedMessagesFilter";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "messages", kind: "scalar", T: 12 /* ScalarType.BYTES */, repeated: true },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AcceptedMessagesFilter {
|
||||
return new AcceptedMessagesFilter().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AcceptedMessagesFilter {
|
||||
return new AcceptedMessagesFilter().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AcceptedMessagesFilter {
|
||||
return new AcceptedMessagesFilter().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: AcceptedMessagesFilter | PlainMessage<AcceptedMessagesFilter> | undefined, b: AcceptedMessagesFilter | PlainMessage<AcceptedMessagesFilter> | undefined): boolean {
|
||||
return proto3.util.equals(AcceptedMessagesFilter, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,227 @@
|
||||
// @generated by protoc-gen-es v1.2.0 with parameter "target=ts"
|
||||
// @generated from file cosmwasm/wasm/v1/genesis.proto (package cosmwasm.wasm.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";
|
||||
import { CodeInfo, ContractCodeHistoryEntry, ContractInfo, Model, Params } from "./types_pb.js";
|
||||
|
||||
/**
|
||||
* GenesisState - genesis state of x/wasm
|
||||
*
|
||||
* @generated from message cosmwasm.wasm.v1.GenesisState
|
||||
*/
|
||||
export class GenesisState extends Message<GenesisState> {
|
||||
/**
|
||||
* @generated from field: cosmwasm.wasm.v1.Params params = 1;
|
||||
*/
|
||||
params?: Params;
|
||||
|
||||
/**
|
||||
* @generated from field: repeated cosmwasm.wasm.v1.Code codes = 2;
|
||||
*/
|
||||
codes: Code[] = [];
|
||||
|
||||
/**
|
||||
* @generated from field: repeated cosmwasm.wasm.v1.Contract contracts = 3;
|
||||
*/
|
||||
contracts: Contract[] = [];
|
||||
|
||||
/**
|
||||
* @generated from field: repeated cosmwasm.wasm.v1.Sequence sequences = 4;
|
||||
*/
|
||||
sequences: Sequence[] = [];
|
||||
|
||||
constructor(data?: PartialMessage<GenesisState>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "cosmwasm.wasm.v1.GenesisState";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "params", kind: "message", T: Params },
|
||||
{ no: 2, name: "codes", kind: "message", T: Code, repeated: true },
|
||||
{ no: 3, name: "contracts", kind: "message", T: Contract, repeated: true },
|
||||
{ no: 4, name: "sequences", kind: "message", T: Sequence, repeated: true },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GenesisState {
|
||||
return new GenesisState().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GenesisState {
|
||||
return new GenesisState().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GenesisState {
|
||||
return new GenesisState().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: GenesisState | PlainMessage<GenesisState> | undefined, b: GenesisState | PlainMessage<GenesisState> | undefined): boolean {
|
||||
return proto3.util.equals(GenesisState, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Code struct encompasses CodeInfo and CodeBytes
|
||||
*
|
||||
* @generated from message cosmwasm.wasm.v1.Code
|
||||
*/
|
||||
export class Code extends Message<Code> {
|
||||
/**
|
||||
* @generated from field: uint64 code_id = 1;
|
||||
*/
|
||||
codeId = protoInt64.zero;
|
||||
|
||||
/**
|
||||
* @generated from field: cosmwasm.wasm.v1.CodeInfo code_info = 2;
|
||||
*/
|
||||
codeInfo?: CodeInfo;
|
||||
|
||||
/**
|
||||
* @generated from field: bytes code_bytes = 3;
|
||||
*/
|
||||
codeBytes = new Uint8Array(0);
|
||||
|
||||
/**
|
||||
* Pinned to wasmvm cache
|
||||
*
|
||||
* @generated from field: bool pinned = 4;
|
||||
*/
|
||||
pinned = false;
|
||||
|
||||
constructor(data?: PartialMessage<Code>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "cosmwasm.wasm.v1.Code";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "code_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
||||
{ no: 2, name: "code_info", kind: "message", T: CodeInfo },
|
||||
{ no: 3, name: "code_bytes", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
|
||||
{ no: 4, name: "pinned", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Code {
|
||||
return new Code().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Code {
|
||||
return new Code().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Code {
|
||||
return new Code().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: Code | PlainMessage<Code> | undefined, b: Code | PlainMessage<Code> | undefined): boolean {
|
||||
return proto3.util.equals(Code, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Contract struct encompasses ContractAddress, ContractInfo, and ContractState
|
||||
*
|
||||
* @generated from message cosmwasm.wasm.v1.Contract
|
||||
*/
|
||||
export class Contract extends Message<Contract> {
|
||||
/**
|
||||
* @generated from field: string contract_address = 1;
|
||||
*/
|
||||
contractAddress = "";
|
||||
|
||||
/**
|
||||
* @generated from field: cosmwasm.wasm.v1.ContractInfo contract_info = 2;
|
||||
*/
|
||||
contractInfo?: ContractInfo;
|
||||
|
||||
/**
|
||||
* @generated from field: repeated cosmwasm.wasm.v1.Model contract_state = 3;
|
||||
*/
|
||||
contractState: Model[] = [];
|
||||
|
||||
/**
|
||||
* @generated from field: repeated cosmwasm.wasm.v1.ContractCodeHistoryEntry contract_code_history = 4;
|
||||
*/
|
||||
contractCodeHistory: ContractCodeHistoryEntry[] = [];
|
||||
|
||||
constructor(data?: PartialMessage<Contract>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "cosmwasm.wasm.v1.Contract";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "contract_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 2, name: "contract_info", kind: "message", T: ContractInfo },
|
||||
{ no: 3, name: "contract_state", kind: "message", T: Model, repeated: true },
|
||||
{ no: 4, name: "contract_code_history", kind: "message", T: ContractCodeHistoryEntry, repeated: true },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Contract {
|
||||
return new Contract().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Contract {
|
||||
return new Contract().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Contract {
|
||||
return new Contract().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: Contract | PlainMessage<Contract> | undefined, b: Contract | PlainMessage<Contract> | undefined): boolean {
|
||||
return proto3.util.equals(Contract, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Sequence key and value of an id generation counter
|
||||
*
|
||||
* @generated from message cosmwasm.wasm.v1.Sequence
|
||||
*/
|
||||
export class Sequence extends Message<Sequence> {
|
||||
/**
|
||||
* @generated from field: bytes id_key = 1;
|
||||
*/
|
||||
idKey = new Uint8Array(0);
|
||||
|
||||
/**
|
||||
* @generated from field: uint64 value = 2;
|
||||
*/
|
||||
value = protoInt64.zero;
|
||||
|
||||
constructor(data?: PartialMessage<Sequence>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "cosmwasm.wasm.v1.Sequence";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "id_key", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
|
||||
{ no: 2, name: "value", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Sequence {
|
||||
return new Sequence().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Sequence {
|
||||
return new Sequence().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Sequence {
|
||||
return new Sequence().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: Sequence | PlainMessage<Sequence> | undefined, b: Sequence | PlainMessage<Sequence> | undefined): boolean {
|
||||
return proto3.util.equals(Sequence, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,189 @@
|
||||
// @generated by protoc-gen-es v1.2.0 with parameter "target=ts"
|
||||
// @generated from file cosmwasm/wasm/v1/ibc.proto (package cosmwasm.wasm.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";
|
||||
|
||||
/**
|
||||
* MsgIBCSend
|
||||
*
|
||||
* @generated from message cosmwasm.wasm.v1.MsgIBCSend
|
||||
*/
|
||||
export class MsgIBCSend extends Message<MsgIBCSend> {
|
||||
/**
|
||||
* the channel by which the packet will be sent
|
||||
*
|
||||
* @generated from field: string channel = 2;
|
||||
*/
|
||||
channel = "";
|
||||
|
||||
/**
|
||||
* Timeout height relative to the current block height.
|
||||
* The timeout is disabled when set to 0.
|
||||
*
|
||||
* @generated from field: uint64 timeout_height = 4;
|
||||
*/
|
||||
timeoutHeight = protoInt64.zero;
|
||||
|
||||
/**
|
||||
* Timeout timestamp (in nanoseconds) relative to the current block timestamp.
|
||||
* The timeout is disabled when set to 0.
|
||||
*
|
||||
* @generated from field: uint64 timeout_timestamp = 5;
|
||||
*/
|
||||
timeoutTimestamp = protoInt64.zero;
|
||||
|
||||
/**
|
||||
* Data is the payload to transfer. We must not make assumption what format or
|
||||
* content is in here.
|
||||
*
|
||||
* @generated from field: bytes data = 6;
|
||||
*/
|
||||
data = new Uint8Array(0);
|
||||
|
||||
constructor(data?: PartialMessage<MsgIBCSend>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "cosmwasm.wasm.v1.MsgIBCSend";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 2, name: "channel", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 4, name: "timeout_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
||||
{ no: 5, name: "timeout_timestamp", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
||||
{ no: 6, name: "data", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MsgIBCSend {
|
||||
return new MsgIBCSend().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MsgIBCSend {
|
||||
return new MsgIBCSend().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MsgIBCSend {
|
||||
return new MsgIBCSend().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: MsgIBCSend | PlainMessage<MsgIBCSend> | undefined, b: MsgIBCSend | PlainMessage<MsgIBCSend> | undefined): boolean {
|
||||
return proto3.util.equals(MsgIBCSend, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* MsgIBCSendResponse
|
||||
*
|
||||
* @generated from message cosmwasm.wasm.v1.MsgIBCSendResponse
|
||||
*/
|
||||
export class MsgIBCSendResponse extends Message<MsgIBCSendResponse> {
|
||||
/**
|
||||
* Sequence number of the IBC packet sent
|
||||
*
|
||||
* @generated from field: uint64 sequence = 1;
|
||||
*/
|
||||
sequence = protoInt64.zero;
|
||||
|
||||
constructor(data?: PartialMessage<MsgIBCSendResponse>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "cosmwasm.wasm.v1.MsgIBCSendResponse";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "sequence", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MsgIBCSendResponse {
|
||||
return new MsgIBCSendResponse().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MsgIBCSendResponse {
|
||||
return new MsgIBCSendResponse().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MsgIBCSendResponse {
|
||||
return new MsgIBCSendResponse().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: MsgIBCSendResponse | PlainMessage<MsgIBCSendResponse> | undefined, b: MsgIBCSendResponse | PlainMessage<MsgIBCSendResponse> | undefined): boolean {
|
||||
return proto3.util.equals(MsgIBCSendResponse, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* MsgIBCWriteAcknowledgementResponse
|
||||
*
|
||||
* @generated from message cosmwasm.wasm.v1.MsgIBCWriteAcknowledgementResponse
|
||||
*/
|
||||
export class MsgIBCWriteAcknowledgementResponse extends Message<MsgIBCWriteAcknowledgementResponse> {
|
||||
constructor(data?: PartialMessage<MsgIBCWriteAcknowledgementResponse>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "cosmwasm.wasm.v1.MsgIBCWriteAcknowledgementResponse";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MsgIBCWriteAcknowledgementResponse {
|
||||
return new MsgIBCWriteAcknowledgementResponse().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MsgIBCWriteAcknowledgementResponse {
|
||||
return new MsgIBCWriteAcknowledgementResponse().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MsgIBCWriteAcknowledgementResponse {
|
||||
return new MsgIBCWriteAcknowledgementResponse().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: MsgIBCWriteAcknowledgementResponse | PlainMessage<MsgIBCWriteAcknowledgementResponse> | undefined, b: MsgIBCWriteAcknowledgementResponse | PlainMessage<MsgIBCWriteAcknowledgementResponse> | undefined): boolean {
|
||||
return proto3.util.equals(MsgIBCWriteAcknowledgementResponse, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* MsgIBCCloseChannel port and channel need to be owned by the contract
|
||||
*
|
||||
* @generated from message cosmwasm.wasm.v1.MsgIBCCloseChannel
|
||||
*/
|
||||
export class MsgIBCCloseChannel extends Message<MsgIBCCloseChannel> {
|
||||
/**
|
||||
* @generated from field: string channel = 2;
|
||||
*/
|
||||
channel = "";
|
||||
|
||||
constructor(data?: PartialMessage<MsgIBCCloseChannel>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "cosmwasm.wasm.v1.MsgIBCCloseChannel";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 2, name: "channel", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MsgIBCCloseChannel {
|
||||
return new MsgIBCCloseChannel().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MsgIBCCloseChannel {
|
||||
return new MsgIBCCloseChannel().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MsgIBCCloseChannel {
|
||||
return new MsgIBCCloseChannel().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: MsgIBCCloseChannel | PlainMessage<MsgIBCCloseChannel> | undefined, b: MsgIBCCloseChannel | PlainMessage<MsgIBCCloseChannel> | undefined): boolean {
|
||||
return proto3.util.equals(MsgIBCCloseChannel, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,178 @@
|
||||
// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts"
|
||||
// @generated from file cosmwasm/wasm/v1/query.proto (package cosmwasm.wasm.v1, syntax proto3)
|
||||
/* eslint-disable */
|
||||
// @ts-nocheck
|
||||
|
||||
import { QueryAllContractStateRequest, QueryAllContractStateResponse, QueryBuildAddressRequest, QueryBuildAddressResponse, QueryCodeInfoRequest, QueryCodeInfoResponse, QueryCodeRequest, QueryCodeResponse, QueryCodesRequest, QueryCodesResponse, QueryContractHistoryRequest, QueryContractHistoryResponse, QueryContractInfoRequest, QueryContractInfoResponse, QueryContractsByCodeRequest, QueryContractsByCodeResponse, QueryContractsByCreatorRequest, QueryContractsByCreatorResponse, QueryParamsRequest, QueryParamsResponse, QueryPinnedCodesRequest, QueryPinnedCodesResponse, QueryRawContractStateRequest, QueryRawContractStateResponse, QuerySmartContractStateRequest, QuerySmartContractStateResponse, QueryWasmLimitsConfigRequest, QueryWasmLimitsConfigResponse } from "./query_pb.js";
|
||||
|
||||
const TYPE_NAME = "cosmwasm.wasm.v1.Query";
|
||||
|
||||
/**
|
||||
* ContractInfo gets the contract meta data
|
||||
*
|
||||
* @generated from rpc cosmwasm.wasm.v1.Query.ContractInfo
|
||||
*/
|
||||
export const QueryContractInfoService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "ContractInfo",
|
||||
Request: QueryContractInfoRequest,
|
||||
Response: QueryContractInfoResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* ContractHistory gets the contract code history
|
||||
*
|
||||
* @generated from rpc cosmwasm.wasm.v1.Query.ContractHistory
|
||||
*/
|
||||
export const QueryContractHistoryService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "ContractHistory",
|
||||
Request: QueryContractHistoryRequest,
|
||||
Response: QueryContractHistoryResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* ContractsByCode lists all smart contracts for a code id
|
||||
*
|
||||
* @generated from rpc cosmwasm.wasm.v1.Query.ContractsByCode
|
||||
*/
|
||||
export const QueryContractsByCodeService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "ContractsByCode",
|
||||
Request: QueryContractsByCodeRequest,
|
||||
Response: QueryContractsByCodeResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* AllContractState gets all raw store data for a single contract
|
||||
*
|
||||
* @generated from rpc cosmwasm.wasm.v1.Query.AllContractState
|
||||
*/
|
||||
export const QueryAllContractStateService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "AllContractState",
|
||||
Request: QueryAllContractStateRequest,
|
||||
Response: QueryAllContractStateResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* RawContractState gets single key from the raw store data of a contract
|
||||
*
|
||||
* @generated from rpc cosmwasm.wasm.v1.Query.RawContractState
|
||||
*/
|
||||
export const QueryRawContractStateService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "RawContractState",
|
||||
Request: QueryRawContractStateRequest,
|
||||
Response: QueryRawContractStateResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* SmartContractState get smart query result from the contract
|
||||
*
|
||||
* @generated from rpc cosmwasm.wasm.v1.Query.SmartContractState
|
||||
*/
|
||||
export const QuerySmartContractStateService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "SmartContractState",
|
||||
Request: QuerySmartContractStateRequest,
|
||||
Response: QuerySmartContractStateResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* Code gets the binary code and metadata for a single wasm code
|
||||
*
|
||||
* @generated from rpc cosmwasm.wasm.v1.Query.Code
|
||||
*/
|
||||
export const QueryCodeService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "Code",
|
||||
Request: QueryCodeRequest,
|
||||
Response: QueryCodeResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* Codes gets the metadata for all stored wasm codes
|
||||
*
|
||||
* @generated from rpc cosmwasm.wasm.v1.Query.Codes
|
||||
*/
|
||||
export const QueryCodesService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "Codes",
|
||||
Request: QueryCodesRequest,
|
||||
Response: QueryCodesResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* CodeInfo gets the metadata for a single wasm code
|
||||
*
|
||||
* @generated from rpc cosmwasm.wasm.v1.Query.CodeInfo
|
||||
*/
|
||||
export const QueryCodeInfoService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "CodeInfo",
|
||||
Request: QueryCodeInfoRequest,
|
||||
Response: QueryCodeInfoResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* PinnedCodes gets the pinned code ids
|
||||
*
|
||||
* @generated from rpc cosmwasm.wasm.v1.Query.PinnedCodes
|
||||
*/
|
||||
export const QueryPinnedCodesService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "PinnedCodes",
|
||||
Request: QueryPinnedCodesRequest,
|
||||
Response: QueryPinnedCodesResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* Params gets the module params
|
||||
*
|
||||
* @generated from rpc cosmwasm.wasm.v1.Query.Params
|
||||
*/
|
||||
export const QueryParamsService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "Params",
|
||||
Request: QueryParamsRequest,
|
||||
Response: QueryParamsResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* ContractsByCreator gets the contracts by creator
|
||||
*
|
||||
* @generated from rpc cosmwasm.wasm.v1.Query.ContractsByCreator
|
||||
*/
|
||||
export const QueryContractsByCreatorService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "ContractsByCreator",
|
||||
Request: QueryContractsByCreatorRequest,
|
||||
Response: QueryContractsByCreatorResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* WasmLimitsConfig gets the configured limits for static validation of Wasm
|
||||
* files, encoded in JSON.
|
||||
*
|
||||
* @generated from rpc cosmwasm.wasm.v1.Query.WasmLimitsConfig
|
||||
*/
|
||||
export const QueryWasmLimitsConfigService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "WasmLimitsConfig",
|
||||
Request: QueryWasmLimitsConfigRequest,
|
||||
Response: QueryWasmLimitsConfigResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* BuildAddress builds a contract address
|
||||
*
|
||||
* @generated from rpc cosmwasm.wasm.v1.Query.BuildAddress
|
||||
*/
|
||||
export const QueryBuildAddressService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "BuildAddress",
|
||||
Request: QueryBuildAddressRequest,
|
||||
Response: QueryBuildAddressResponse,
|
||||
} as const;
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,239 @@
|
||||
// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts"
|
||||
// @generated from file cosmwasm/wasm/v1/tx.proto (package cosmwasm.wasm.v1, syntax proto3)
|
||||
/* eslint-disable */
|
||||
// @ts-nocheck
|
||||
|
||||
import { MsgAddCodeUploadParamsAddresses, MsgAddCodeUploadParamsAddressesResponse, MsgClearAdmin, MsgClearAdminResponse, MsgExecuteContract, MsgExecuteContractResponse, MsgInstantiateContract, MsgInstantiateContract2, MsgInstantiateContract2Response, MsgInstantiateContractResponse, MsgMigrateContract, MsgMigrateContractResponse, MsgPinCodes, MsgPinCodesResponse, MsgRemoveCodeUploadParamsAddresses, MsgRemoveCodeUploadParamsAddressesResponse, MsgStoreAndInstantiateContract, MsgStoreAndInstantiateContractResponse, MsgStoreAndMigrateContract, MsgStoreAndMigrateContractResponse, MsgStoreCode, MsgStoreCodeResponse, MsgSudoContract, MsgSudoContractResponse, MsgUnpinCodes, MsgUnpinCodesResponse, MsgUpdateAdmin, MsgUpdateAdminResponse, MsgUpdateContractLabel, MsgUpdateContractLabelResponse, MsgUpdateInstantiateConfig, MsgUpdateInstantiateConfigResponse, MsgUpdateParams, MsgUpdateParamsResponse } from "./tx_pb.js";
|
||||
|
||||
const TYPE_NAME = "cosmwasm.wasm.v1.Msg";
|
||||
|
||||
/**
|
||||
* StoreCode to submit Wasm code to the system
|
||||
*
|
||||
* @generated from rpc cosmwasm.wasm.v1.Msg.StoreCode
|
||||
*/
|
||||
export const MsgStoreCodeService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "StoreCode",
|
||||
Request: MsgStoreCode,
|
||||
Response: MsgStoreCodeResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* InstantiateContract creates a new smart contract instance for the given
|
||||
* code id.
|
||||
*
|
||||
* @generated from rpc cosmwasm.wasm.v1.Msg.InstantiateContract
|
||||
*/
|
||||
export const MsgInstantiateContractService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "InstantiateContract",
|
||||
Request: MsgInstantiateContract,
|
||||
Response: MsgInstantiateContractResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* InstantiateContract2 creates a new smart contract instance for the given
|
||||
* code id with a predictable address
|
||||
*
|
||||
* @generated from rpc cosmwasm.wasm.v1.Msg.InstantiateContract2
|
||||
*/
|
||||
export const MsgInstantiateContract2Service = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "InstantiateContract2",
|
||||
Request: MsgInstantiateContract2,
|
||||
Response: MsgInstantiateContract2Response,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* Execute submits the given message data to a smart contract
|
||||
*
|
||||
* @generated from rpc cosmwasm.wasm.v1.Msg.ExecuteContract
|
||||
*/
|
||||
export const MsgExecuteContractService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "ExecuteContract",
|
||||
Request: MsgExecuteContract,
|
||||
Response: MsgExecuteContractResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* Migrate runs a code upgrade/ downgrade for a smart contract
|
||||
*
|
||||
* @generated from rpc cosmwasm.wasm.v1.Msg.MigrateContract
|
||||
*/
|
||||
export const MsgMigrateContractService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "MigrateContract",
|
||||
Request: MsgMigrateContract,
|
||||
Response: MsgMigrateContractResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* UpdateAdmin sets a new admin for a smart contract
|
||||
*
|
||||
* @generated from rpc cosmwasm.wasm.v1.Msg.UpdateAdmin
|
||||
*/
|
||||
export const MsgUpdateAdminService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "UpdateAdmin",
|
||||
Request: MsgUpdateAdmin,
|
||||
Response: MsgUpdateAdminResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* ClearAdmin removes any admin stored for a smart contract
|
||||
*
|
||||
* @generated from rpc cosmwasm.wasm.v1.Msg.ClearAdmin
|
||||
*/
|
||||
export const MsgClearAdminService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "ClearAdmin",
|
||||
Request: MsgClearAdmin,
|
||||
Response: MsgClearAdminResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* UpdateInstantiateConfig updates instantiate config for a smart contract
|
||||
*
|
||||
* @generated from rpc cosmwasm.wasm.v1.Msg.UpdateInstantiateConfig
|
||||
*/
|
||||
export const MsgUpdateInstantiateConfigService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "UpdateInstantiateConfig",
|
||||
Request: MsgUpdateInstantiateConfig,
|
||||
Response: MsgUpdateInstantiateConfigResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* UpdateParams defines a governance operation for updating the x/wasm
|
||||
* module parameters. The authority is defined in the keeper.
|
||||
*
|
||||
* Since: 0.40
|
||||
*
|
||||
* @generated from rpc cosmwasm.wasm.v1.Msg.UpdateParams
|
||||
*/
|
||||
export const MsgUpdateParamsService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "UpdateParams",
|
||||
Request: MsgUpdateParams,
|
||||
Response: MsgUpdateParamsResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* SudoContract defines a governance operation for calling sudo
|
||||
* on a contract. The authority is defined in the keeper.
|
||||
*
|
||||
* Since: 0.40
|
||||
*
|
||||
* @generated from rpc cosmwasm.wasm.v1.Msg.SudoContract
|
||||
*/
|
||||
export const MsgSudoContractService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "SudoContract",
|
||||
Request: MsgSudoContract,
|
||||
Response: MsgSudoContractResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* PinCodes defines a governance operation for pinning a set of
|
||||
* code ids in the wasmvm cache. The authority is defined in the keeper.
|
||||
*
|
||||
* Since: 0.40
|
||||
*
|
||||
* @generated from rpc cosmwasm.wasm.v1.Msg.PinCodes
|
||||
*/
|
||||
export const MsgPinCodesService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "PinCodes",
|
||||
Request: MsgPinCodes,
|
||||
Response: MsgPinCodesResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* UnpinCodes defines a governance operation for unpinning a set of
|
||||
* code ids in the wasmvm cache. The authority is defined in the keeper.
|
||||
*
|
||||
* Since: 0.40
|
||||
*
|
||||
* @generated from rpc cosmwasm.wasm.v1.Msg.UnpinCodes
|
||||
*/
|
||||
export const MsgUnpinCodesService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "UnpinCodes",
|
||||
Request: MsgUnpinCodes,
|
||||
Response: MsgUnpinCodesResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* StoreAndInstantiateContract defines a governance operation for storing
|
||||
* and instantiating the contract. The authority is defined in the keeper.
|
||||
*
|
||||
* Since: 0.40
|
||||
*
|
||||
* @generated from rpc cosmwasm.wasm.v1.Msg.StoreAndInstantiateContract
|
||||
*/
|
||||
export const MsgStoreAndInstantiateContractService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "StoreAndInstantiateContract",
|
||||
Request: MsgStoreAndInstantiateContract,
|
||||
Response: MsgStoreAndInstantiateContractResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* RemoveCodeUploadParamsAddresses defines a governance operation for
|
||||
* removing addresses from code upload params.
|
||||
* The authority is defined in the keeper.
|
||||
*
|
||||
* @generated from rpc cosmwasm.wasm.v1.Msg.RemoveCodeUploadParamsAddresses
|
||||
*/
|
||||
export const MsgRemoveCodeUploadParamsAddressesService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "RemoveCodeUploadParamsAddresses",
|
||||
Request: MsgRemoveCodeUploadParamsAddresses,
|
||||
Response: MsgRemoveCodeUploadParamsAddressesResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* AddCodeUploadParamsAddresses defines a governance operation for
|
||||
* adding addresses to code upload params.
|
||||
* The authority is defined in the keeper.
|
||||
*
|
||||
* @generated from rpc cosmwasm.wasm.v1.Msg.AddCodeUploadParamsAddresses
|
||||
*/
|
||||
export const MsgAddCodeUploadParamsAddressesService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "AddCodeUploadParamsAddresses",
|
||||
Request: MsgAddCodeUploadParamsAddresses,
|
||||
Response: MsgAddCodeUploadParamsAddressesResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* StoreAndMigrateContract defines a governance operation for storing
|
||||
* and migrating the contract. The authority is defined in the keeper.
|
||||
*
|
||||
* Since: 0.42
|
||||
*
|
||||
* @generated from rpc cosmwasm.wasm.v1.Msg.StoreAndMigrateContract
|
||||
*/
|
||||
export const MsgStoreAndMigrateContractService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "StoreAndMigrateContract",
|
||||
Request: MsgStoreAndMigrateContract,
|
||||
Response: MsgStoreAndMigrateContractResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* UpdateContractLabel sets a new label for a smart contract
|
||||
*
|
||||
* Since: 0.43
|
||||
*
|
||||
* @generated from rpc cosmwasm.wasm.v1.Msg.UpdateContractLabel
|
||||
*/
|
||||
export const MsgUpdateContractLabelService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "UpdateContractLabel",
|
||||
Request: MsgUpdateContractLabel,
|
||||
Response: MsgUpdateContractLabelResponse,
|
||||
} as const;
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,533 @@
|
||||
// @generated by protoc-gen-es v1.2.0 with parameter "target=ts"
|
||||
// @generated from file cosmwasm/wasm/v1/types.proto (package cosmwasm.wasm.v1, 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";
|
||||
|
||||
/**
|
||||
* AccessType permission types
|
||||
*
|
||||
* @generated from enum cosmwasm.wasm.v1.AccessType
|
||||
*/
|
||||
export enum AccessType {
|
||||
/**
|
||||
* AccessTypeUnspecified placeholder for empty value
|
||||
*
|
||||
* @generated from enum value: ACCESS_TYPE_UNSPECIFIED = 0;
|
||||
*/
|
||||
UNSPECIFIED = 0,
|
||||
|
||||
/**
|
||||
* AccessTypeNobody forbidden
|
||||
*
|
||||
* @generated from enum value: ACCESS_TYPE_NOBODY = 1;
|
||||
*/
|
||||
NOBODY = 1,
|
||||
|
||||
/**
|
||||
* AccessTypeEverybody unrestricted
|
||||
*
|
||||
* @generated from enum value: ACCESS_TYPE_EVERYBODY = 3;
|
||||
*/
|
||||
EVERYBODY = 3,
|
||||
|
||||
/**
|
||||
* AccessTypeAnyOfAddresses allow any of the addresses
|
||||
*
|
||||
* @generated from enum value: ACCESS_TYPE_ANY_OF_ADDRESSES = 4;
|
||||
*/
|
||||
ANY_OF_ADDRESSES = 4,
|
||||
}
|
||||
// Retrieve enum metadata with: proto3.getEnumType(AccessType)
|
||||
proto3.util.setEnumType(AccessType, "cosmwasm.wasm.v1.AccessType", [
|
||||
{ no: 0, name: "ACCESS_TYPE_UNSPECIFIED" },
|
||||
{ no: 1, name: "ACCESS_TYPE_NOBODY" },
|
||||
{ no: 3, name: "ACCESS_TYPE_EVERYBODY" },
|
||||
{ no: 4, name: "ACCESS_TYPE_ANY_OF_ADDRESSES" },
|
||||
]);
|
||||
|
||||
/**
|
||||
* ContractCodeHistoryOperationType actions that caused a code change
|
||||
*
|
||||
* @generated from enum cosmwasm.wasm.v1.ContractCodeHistoryOperationType
|
||||
*/
|
||||
export enum ContractCodeHistoryOperationType {
|
||||
/**
|
||||
* ContractCodeHistoryOperationTypeUnspecified placeholder for empty value
|
||||
*
|
||||
* @generated from enum value: CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED = 0;
|
||||
*/
|
||||
UNSPECIFIED = 0,
|
||||
|
||||
/**
|
||||
* ContractCodeHistoryOperationTypeInit on chain contract instantiation
|
||||
*
|
||||
* @generated from enum value: CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT = 1;
|
||||
*/
|
||||
INIT = 1,
|
||||
|
||||
/**
|
||||
* ContractCodeHistoryOperationTypeMigrate code migration
|
||||
*
|
||||
* @generated from enum value: CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE = 2;
|
||||
*/
|
||||
MIGRATE = 2,
|
||||
|
||||
/**
|
||||
* ContractCodeHistoryOperationTypeGenesis based on genesis data
|
||||
*
|
||||
* @generated from enum value: CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS = 3;
|
||||
*/
|
||||
GENESIS = 3,
|
||||
}
|
||||
// Retrieve enum metadata with: proto3.getEnumType(ContractCodeHistoryOperationType)
|
||||
proto3.util.setEnumType(ContractCodeHistoryOperationType, "cosmwasm.wasm.v1.ContractCodeHistoryOperationType", [
|
||||
{ no: 0, name: "CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED" },
|
||||
{ no: 1, name: "CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT" },
|
||||
{ no: 2, name: "CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE" },
|
||||
{ no: 3, name: "CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS" },
|
||||
]);
|
||||
|
||||
/**
|
||||
* AccessTypeParam
|
||||
*
|
||||
* @generated from message cosmwasm.wasm.v1.AccessTypeParam
|
||||
*/
|
||||
export class AccessTypeParam extends Message<AccessTypeParam> {
|
||||
/**
|
||||
* @generated from field: cosmwasm.wasm.v1.AccessType value = 1;
|
||||
*/
|
||||
value = AccessType.UNSPECIFIED;
|
||||
|
||||
constructor(data?: PartialMessage<AccessTypeParam>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "cosmwasm.wasm.v1.AccessTypeParam";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "value", kind: "enum", T: proto3.getEnumType(AccessType) },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AccessTypeParam {
|
||||
return new AccessTypeParam().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AccessTypeParam {
|
||||
return new AccessTypeParam().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AccessTypeParam {
|
||||
return new AccessTypeParam().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: AccessTypeParam | PlainMessage<AccessTypeParam> | undefined, b: AccessTypeParam | PlainMessage<AccessTypeParam> | undefined): boolean {
|
||||
return proto3.util.equals(AccessTypeParam, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* AccessConfig access control type.
|
||||
*
|
||||
* @generated from message cosmwasm.wasm.v1.AccessConfig
|
||||
*/
|
||||
export class AccessConfig extends Message<AccessConfig> {
|
||||
/**
|
||||
* @generated from field: cosmwasm.wasm.v1.AccessType permission = 1;
|
||||
*/
|
||||
permission = AccessType.UNSPECIFIED;
|
||||
|
||||
/**
|
||||
* @generated from field: repeated string addresses = 3;
|
||||
*/
|
||||
addresses: string[] = [];
|
||||
|
||||
constructor(data?: PartialMessage<AccessConfig>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "cosmwasm.wasm.v1.AccessConfig";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "permission", kind: "enum", T: proto3.getEnumType(AccessType) },
|
||||
{ no: 3, name: "addresses", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AccessConfig {
|
||||
return new AccessConfig().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AccessConfig {
|
||||
return new AccessConfig().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AccessConfig {
|
||||
return new AccessConfig().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: AccessConfig | PlainMessage<AccessConfig> | undefined, b: AccessConfig | PlainMessage<AccessConfig> | undefined): boolean {
|
||||
return proto3.util.equals(AccessConfig, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Params defines the set of wasm parameters.
|
||||
*
|
||||
* @generated from message cosmwasm.wasm.v1.Params
|
||||
*/
|
||||
export class Params extends Message<Params> {
|
||||
/**
|
||||
* @generated from field: cosmwasm.wasm.v1.AccessConfig code_upload_access = 1;
|
||||
*/
|
||||
codeUploadAccess?: AccessConfig;
|
||||
|
||||
/**
|
||||
* @generated from field: cosmwasm.wasm.v1.AccessType instantiate_default_permission = 2;
|
||||
*/
|
||||
instantiateDefaultPermission = AccessType.UNSPECIFIED;
|
||||
|
||||
constructor(data?: PartialMessage<Params>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "cosmwasm.wasm.v1.Params";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "code_upload_access", kind: "message", T: AccessConfig },
|
||||
{ no: 2, name: "instantiate_default_permission", kind: "enum", T: proto3.getEnumType(AccessType) },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Params {
|
||||
return new Params().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Params {
|
||||
return new Params().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Params {
|
||||
return new Params().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: Params | PlainMessage<Params> | undefined, b: Params | PlainMessage<Params> | undefined): boolean {
|
||||
return proto3.util.equals(Params, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* CodeInfo is data for the uploaded contract WASM code
|
||||
*
|
||||
* @generated from message cosmwasm.wasm.v1.CodeInfo
|
||||
*/
|
||||
export class CodeInfo extends Message<CodeInfo> {
|
||||
/**
|
||||
* CodeHash is the unique identifier created by wasmvm
|
||||
*
|
||||
* @generated from field: bytes code_hash = 1;
|
||||
*/
|
||||
codeHash = new Uint8Array(0);
|
||||
|
||||
/**
|
||||
* Creator address who initially stored the code
|
||||
*
|
||||
* @generated from field: string creator = 2;
|
||||
*/
|
||||
creator = "";
|
||||
|
||||
/**
|
||||
* InstantiateConfig access control to apply on contract creation, optional
|
||||
*
|
||||
* @generated from field: cosmwasm.wasm.v1.AccessConfig instantiate_config = 5;
|
||||
*/
|
||||
instantiateConfig?: AccessConfig;
|
||||
|
||||
constructor(data?: PartialMessage<CodeInfo>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "cosmwasm.wasm.v1.CodeInfo";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "code_hash", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
|
||||
{ no: 2, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 5, name: "instantiate_config", kind: "message", T: AccessConfig },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CodeInfo {
|
||||
return new CodeInfo().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CodeInfo {
|
||||
return new CodeInfo().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CodeInfo {
|
||||
return new CodeInfo().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: CodeInfo | PlainMessage<CodeInfo> | undefined, b: CodeInfo | PlainMessage<CodeInfo> | undefined): boolean {
|
||||
return proto3.util.equals(CodeInfo, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* ContractInfo stores a WASM contract instance
|
||||
*
|
||||
* @generated from message cosmwasm.wasm.v1.ContractInfo
|
||||
*/
|
||||
export class ContractInfo extends Message<ContractInfo> {
|
||||
/**
|
||||
* CodeID is the reference to the stored Wasm code
|
||||
*
|
||||
* @generated from field: uint64 code_id = 1;
|
||||
*/
|
||||
codeId = protoInt64.zero;
|
||||
|
||||
/**
|
||||
* Creator address who initially instantiated the contract
|
||||
*
|
||||
* @generated from field: string creator = 2;
|
||||
*/
|
||||
creator = "";
|
||||
|
||||
/**
|
||||
* Admin is an optional address that can execute migrations
|
||||
*
|
||||
* @generated from field: string admin = 3;
|
||||
*/
|
||||
admin = "";
|
||||
|
||||
/**
|
||||
* Label is optional metadata to be stored with a contract instance.
|
||||
*
|
||||
* @generated from field: string label = 4;
|
||||
*/
|
||||
label = "";
|
||||
|
||||
/**
|
||||
* Created Tx position when the contract was instantiated.
|
||||
*
|
||||
* @generated from field: cosmwasm.wasm.v1.AbsoluteTxPosition created = 5;
|
||||
*/
|
||||
created?: AbsoluteTxPosition;
|
||||
|
||||
/**
|
||||
* @generated from field: string ibc_port_id = 6;
|
||||
*/
|
||||
ibcPortId = "";
|
||||
|
||||
/**
|
||||
* @generated from field: string ibc2_port_id = 7;
|
||||
*/
|
||||
ibc2PortId = "";
|
||||
|
||||
/**
|
||||
* Extension is an extension point to store custom metadata within the
|
||||
* persistence model.
|
||||
*
|
||||
* @generated from field: google.protobuf.Any extension = 8;
|
||||
*/
|
||||
extension?: Any;
|
||||
|
||||
constructor(data?: PartialMessage<ContractInfo>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "cosmwasm.wasm.v1.ContractInfo";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "code_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
||||
{ no: 2, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 3, name: "admin", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 4, name: "label", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 5, name: "created", kind: "message", T: AbsoluteTxPosition },
|
||||
{ no: 6, name: "ibc_port_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 7, name: "ibc2_port_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 8, name: "extension", kind: "message", T: Any },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ContractInfo {
|
||||
return new ContractInfo().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ContractInfo {
|
||||
return new ContractInfo().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ContractInfo {
|
||||
return new ContractInfo().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: ContractInfo | PlainMessage<ContractInfo> | undefined, b: ContractInfo | PlainMessage<ContractInfo> | undefined): boolean {
|
||||
return proto3.util.equals(ContractInfo, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* ContractCodeHistoryEntry metadata to a contract.
|
||||
*
|
||||
* @generated from message cosmwasm.wasm.v1.ContractCodeHistoryEntry
|
||||
*/
|
||||
export class ContractCodeHistoryEntry extends Message<ContractCodeHistoryEntry> {
|
||||
/**
|
||||
* @generated from field: cosmwasm.wasm.v1.ContractCodeHistoryOperationType operation = 1;
|
||||
*/
|
||||
operation = ContractCodeHistoryOperationType.UNSPECIFIED;
|
||||
|
||||
/**
|
||||
* CodeID is the reference to the stored WASM code
|
||||
*
|
||||
* @generated from field: uint64 code_id = 2;
|
||||
*/
|
||||
codeId = protoInt64.zero;
|
||||
|
||||
/**
|
||||
* Updated Tx position when the operation was executed.
|
||||
*
|
||||
* @generated from field: cosmwasm.wasm.v1.AbsoluteTxPosition updated = 3;
|
||||
*/
|
||||
updated?: AbsoluteTxPosition;
|
||||
|
||||
/**
|
||||
* @generated from field: bytes msg = 4;
|
||||
*/
|
||||
msg = new Uint8Array(0);
|
||||
|
||||
constructor(data?: PartialMessage<ContractCodeHistoryEntry>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "cosmwasm.wasm.v1.ContractCodeHistoryEntry";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "operation", kind: "enum", T: proto3.getEnumType(ContractCodeHistoryOperationType) },
|
||||
{ no: 2, name: "code_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
||||
{ no: 3, name: "updated", kind: "message", T: AbsoluteTxPosition },
|
||||
{ no: 4, name: "msg", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ContractCodeHistoryEntry {
|
||||
return new ContractCodeHistoryEntry().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ContractCodeHistoryEntry {
|
||||
return new ContractCodeHistoryEntry().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ContractCodeHistoryEntry {
|
||||
return new ContractCodeHistoryEntry().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: ContractCodeHistoryEntry | PlainMessage<ContractCodeHistoryEntry> | undefined, b: ContractCodeHistoryEntry | PlainMessage<ContractCodeHistoryEntry> | undefined): boolean {
|
||||
return proto3.util.equals(ContractCodeHistoryEntry, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* AbsoluteTxPosition is a unique transaction position that allows for global
|
||||
* ordering of transactions.
|
||||
*
|
||||
* @generated from message cosmwasm.wasm.v1.AbsoluteTxPosition
|
||||
*/
|
||||
export class AbsoluteTxPosition extends Message<AbsoluteTxPosition> {
|
||||
/**
|
||||
* BlockHeight is the block the contract was created at
|
||||
*
|
||||
* @generated from field: uint64 block_height = 1;
|
||||
*/
|
||||
blockHeight = protoInt64.zero;
|
||||
|
||||
/**
|
||||
* TxIndex is a monotonic counter within the block (actual transaction index,
|
||||
* or gas consumed)
|
||||
*
|
||||
* @generated from field: uint64 tx_index = 2;
|
||||
*/
|
||||
txIndex = protoInt64.zero;
|
||||
|
||||
constructor(data?: PartialMessage<AbsoluteTxPosition>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "cosmwasm.wasm.v1.AbsoluteTxPosition";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "block_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
||||
{ no: 2, name: "tx_index", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AbsoluteTxPosition {
|
||||
return new AbsoluteTxPosition().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AbsoluteTxPosition {
|
||||
return new AbsoluteTxPosition().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AbsoluteTxPosition {
|
||||
return new AbsoluteTxPosition().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: AbsoluteTxPosition | PlainMessage<AbsoluteTxPosition> | undefined, b: AbsoluteTxPosition | PlainMessage<AbsoluteTxPosition> | undefined): boolean {
|
||||
return proto3.util.equals(AbsoluteTxPosition, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Model is a struct that holds a KV pair
|
||||
*
|
||||
* @generated from message cosmwasm.wasm.v1.Model
|
||||
*/
|
||||
export class Model extends Message<Model> {
|
||||
/**
|
||||
* hex-encode key to read it better (this is often ascii)
|
||||
*
|
||||
* @generated from field: bytes key = 1;
|
||||
*/
|
||||
key = new Uint8Array(0);
|
||||
|
||||
/**
|
||||
* base64-encode raw value
|
||||
*
|
||||
* @generated from field: bytes value = 2;
|
||||
*/
|
||||
value = new Uint8Array(0);
|
||||
|
||||
constructor(data?: PartialMessage<Model>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "cosmwasm.wasm.v1.Model";
|
||||
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>): Model {
|
||||
return new Model().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Model {
|
||||
return new Model().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Model {
|
||||
return new Model().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: Model | PlainMessage<Model> | undefined, b: Model | PlainMessage<Model> | undefined): boolean {
|
||||
return proto3.util.equals(Model, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,42 @@
|
||||
// @generated by protoc-gen-es v1.2.0 with parameter "target=ts"
|
||||
// @generated from file dex/module/v1/module.proto (package dex.module.v1, 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 app config object of the module.
|
||||
* Learn more: https://docs.cosmos.network/main/building-modules/depinject
|
||||
*
|
||||
* @generated from message dex.module.v1.Module
|
||||
*/
|
||||
export class Module extends Message<Module> {
|
||||
constructor(data?: PartialMessage<Module>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "dex.module.v1.Module";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
]);
|
||||
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,698 @@
|
||||
// @generated by protoc-gen-es v1.2.0 with parameter "target=ts"
|
||||
// @generated from file dex/v1/events.proto (package dex.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";
|
||||
import { Coin } from "../../cosmos/base/v1beta1/coin_pb.js";
|
||||
|
||||
/**
|
||||
* EventDEXAccountRegistered is emitted when a new DEX account is registered
|
||||
*
|
||||
* @generated from message dex.v1.EventDEXAccountRegistered
|
||||
*/
|
||||
export class EventDEXAccountRegistered extends Message<EventDEXAccountRegistered> {
|
||||
/**
|
||||
* DID of the account owner
|
||||
*
|
||||
* @generated from field: string did = 1;
|
||||
*/
|
||||
did = "";
|
||||
|
||||
/**
|
||||
* IBC connection ID
|
||||
*
|
||||
* @generated from field: string connection_id = 2;
|
||||
*/
|
||||
connectionId = "";
|
||||
|
||||
/**
|
||||
* Generated port ID
|
||||
*
|
||||
* @generated from field: string port_id = 3;
|
||||
*/
|
||||
portId = "";
|
||||
|
||||
/**
|
||||
* Remote account address (when available)
|
||||
*
|
||||
* @generated from field: string account_address = 4;
|
||||
*/
|
||||
accountAddress = "";
|
||||
|
||||
constructor(data?: PartialMessage<EventDEXAccountRegistered>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "dex.v1.EventDEXAccountRegistered";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "did", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 2, name: "connection_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 3, name: "port_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 4, name: "account_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): EventDEXAccountRegistered {
|
||||
return new EventDEXAccountRegistered().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): EventDEXAccountRegistered {
|
||||
return new EventDEXAccountRegistered().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): EventDEXAccountRegistered {
|
||||
return new EventDEXAccountRegistered().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: EventDEXAccountRegistered | PlainMessage<EventDEXAccountRegistered> | undefined, b: EventDEXAccountRegistered | PlainMessage<EventDEXAccountRegistered> | undefined): boolean {
|
||||
return proto3.util.equals(EventDEXAccountRegistered, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* EventSwapExecuted is emitted when a swap is executed
|
||||
*
|
||||
* @generated from message dex.v1.EventSwapExecuted
|
||||
*/
|
||||
export class EventSwapExecuted extends Message<EventSwapExecuted> {
|
||||
/**
|
||||
* DID of the trader
|
||||
*
|
||||
* @generated from field: string did = 1;
|
||||
*/
|
||||
did = "";
|
||||
|
||||
/**
|
||||
* IBC connection ID
|
||||
*
|
||||
* @generated from field: string connection_id = 2;
|
||||
*/
|
||||
connectionId = "";
|
||||
|
||||
/**
|
||||
* Source token and amount
|
||||
*
|
||||
* @generated from field: cosmos.base.v1beta1.Coin source = 3;
|
||||
*/
|
||||
source?: Coin;
|
||||
|
||||
/**
|
||||
* Target token and amount received
|
||||
*
|
||||
* @generated from field: cosmos.base.v1beta1.Coin target = 4;
|
||||
*/
|
||||
target?: Coin;
|
||||
|
||||
/**
|
||||
* Transaction hash on remote chain
|
||||
*
|
||||
* @generated from field: string tx_hash = 5;
|
||||
*/
|
||||
txHash = "";
|
||||
|
||||
/**
|
||||
* IBC packet sequence
|
||||
*
|
||||
* @generated from field: uint64 sequence = 6;
|
||||
*/
|
||||
sequence = protoInt64.zero;
|
||||
|
||||
constructor(data?: PartialMessage<EventSwapExecuted>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "dex.v1.EventSwapExecuted";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "did", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 2, name: "connection_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 3, name: "source", kind: "message", T: Coin },
|
||||
{ no: 4, name: "target", kind: "message", T: Coin },
|
||||
{ no: 5, name: "tx_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 6, name: "sequence", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): EventSwapExecuted {
|
||||
return new EventSwapExecuted().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): EventSwapExecuted {
|
||||
return new EventSwapExecuted().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): EventSwapExecuted {
|
||||
return new EventSwapExecuted().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: EventSwapExecuted | PlainMessage<EventSwapExecuted> | undefined, b: EventSwapExecuted | PlainMessage<EventSwapExecuted> | undefined): boolean {
|
||||
return proto3.util.equals(EventSwapExecuted, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* EventLiquidityProvided is emitted when liquidity is added
|
||||
*
|
||||
* @generated from message dex.v1.EventLiquidityProvided
|
||||
*/
|
||||
export class EventLiquidityProvided extends Message<EventLiquidityProvided> {
|
||||
/**
|
||||
* DID of the liquidity provider
|
||||
*
|
||||
* @generated from field: string did = 1;
|
||||
*/
|
||||
did = "";
|
||||
|
||||
/**
|
||||
* IBC connection ID
|
||||
*
|
||||
* @generated from field: string connection_id = 2;
|
||||
*/
|
||||
connectionId = "";
|
||||
|
||||
/**
|
||||
* Pool ID
|
||||
*
|
||||
* @generated from field: string pool_id = 3;
|
||||
*/
|
||||
poolId = "";
|
||||
|
||||
/**
|
||||
* Assets provided
|
||||
*
|
||||
* @generated from field: repeated cosmos.base.v1beta1.Coin assets = 4;
|
||||
*/
|
||||
assets: Coin[] = [];
|
||||
|
||||
/**
|
||||
* Shares received
|
||||
*
|
||||
* @generated from field: string shares_received = 5;
|
||||
*/
|
||||
sharesReceived = "";
|
||||
|
||||
/**
|
||||
* Transaction hash on remote chain
|
||||
*
|
||||
* @generated from field: string tx_hash = 6;
|
||||
*/
|
||||
txHash = "";
|
||||
|
||||
constructor(data?: PartialMessage<EventLiquidityProvided>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "dex.v1.EventLiquidityProvided";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "did", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 2, name: "connection_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 3, name: "pool_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 4, name: "assets", kind: "message", T: Coin, repeated: true },
|
||||
{ no: 5, name: "shares_received", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 6, name: "tx_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): EventLiquidityProvided {
|
||||
return new EventLiquidityProvided().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): EventLiquidityProvided {
|
||||
return new EventLiquidityProvided().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): EventLiquidityProvided {
|
||||
return new EventLiquidityProvided().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: EventLiquidityProvided | PlainMessage<EventLiquidityProvided> | undefined, b: EventLiquidityProvided | PlainMessage<EventLiquidityProvided> | undefined): boolean {
|
||||
return proto3.util.equals(EventLiquidityProvided, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* EventLiquidityRemoved is emitted when liquidity is removed
|
||||
*
|
||||
* @generated from message dex.v1.EventLiquidityRemoved
|
||||
*/
|
||||
export class EventLiquidityRemoved extends Message<EventLiquidityRemoved> {
|
||||
/**
|
||||
* DID of the liquidity provider
|
||||
*
|
||||
* @generated from field: string did = 1;
|
||||
*/
|
||||
did = "";
|
||||
|
||||
/**
|
||||
* IBC connection ID
|
||||
*
|
||||
* @generated from field: string connection_id = 2;
|
||||
*/
|
||||
connectionId = "";
|
||||
|
||||
/**
|
||||
* Pool ID
|
||||
*
|
||||
* @generated from field: string pool_id = 3;
|
||||
*/
|
||||
poolId = "";
|
||||
|
||||
/**
|
||||
* Shares removed
|
||||
*
|
||||
* @generated from field: string shares_removed = 4;
|
||||
*/
|
||||
sharesRemoved = "";
|
||||
|
||||
/**
|
||||
* Assets received
|
||||
*
|
||||
* @generated from field: repeated cosmos.base.v1beta1.Coin assets = 5;
|
||||
*/
|
||||
assets: Coin[] = [];
|
||||
|
||||
/**
|
||||
* Transaction hash on remote chain
|
||||
*
|
||||
* @generated from field: string tx_hash = 6;
|
||||
*/
|
||||
txHash = "";
|
||||
|
||||
constructor(data?: PartialMessage<EventLiquidityRemoved>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "dex.v1.EventLiquidityRemoved";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "did", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 2, name: "connection_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 3, name: "pool_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 4, name: "shares_removed", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 5, name: "assets", kind: "message", T: Coin, repeated: true },
|
||||
{ no: 6, name: "tx_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): EventLiquidityRemoved {
|
||||
return new EventLiquidityRemoved().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): EventLiquidityRemoved {
|
||||
return new EventLiquidityRemoved().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): EventLiquidityRemoved {
|
||||
return new EventLiquidityRemoved().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: EventLiquidityRemoved | PlainMessage<EventLiquidityRemoved> | undefined, b: EventLiquidityRemoved | PlainMessage<EventLiquidityRemoved> | undefined): boolean {
|
||||
return proto3.util.equals(EventLiquidityRemoved, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* EventOrderCreated is emitted when a limit order is created
|
||||
*
|
||||
* @generated from message dex.v1.EventOrderCreated
|
||||
*/
|
||||
export class EventOrderCreated extends Message<EventOrderCreated> {
|
||||
/**
|
||||
* DID of the trader
|
||||
*
|
||||
* @generated from field: string did = 1;
|
||||
*/
|
||||
did = "";
|
||||
|
||||
/**
|
||||
* IBC connection ID
|
||||
*
|
||||
* @generated from field: string connection_id = 2;
|
||||
*/
|
||||
connectionId = "";
|
||||
|
||||
/**
|
||||
* Order ID on remote chain
|
||||
*
|
||||
* @generated from field: string order_id = 3;
|
||||
*/
|
||||
orderId = "";
|
||||
|
||||
/**
|
||||
* Order details
|
||||
*
|
||||
* @generated from field: string sell_denom = 4;
|
||||
*/
|
||||
sellDenom = "";
|
||||
|
||||
/**
|
||||
* @generated from field: string buy_denom = 5;
|
||||
*/
|
||||
buyDenom = "";
|
||||
|
||||
/**
|
||||
* @generated from field: string amount = 6;
|
||||
*/
|
||||
amount = "";
|
||||
|
||||
/**
|
||||
* @generated from field: string price = 7;
|
||||
*/
|
||||
price = "";
|
||||
|
||||
/**
|
||||
* Transaction hash on remote chain
|
||||
*
|
||||
* @generated from field: string tx_hash = 8;
|
||||
*/
|
||||
txHash = "";
|
||||
|
||||
constructor(data?: PartialMessage<EventOrderCreated>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "dex.v1.EventOrderCreated";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "did", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 2, name: "connection_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 3, name: "order_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 4, name: "sell_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 5, name: "buy_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 6, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 7, name: "price", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 8, name: "tx_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): EventOrderCreated {
|
||||
return new EventOrderCreated().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): EventOrderCreated {
|
||||
return new EventOrderCreated().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): EventOrderCreated {
|
||||
return new EventOrderCreated().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: EventOrderCreated | PlainMessage<EventOrderCreated> | undefined, b: EventOrderCreated | PlainMessage<EventOrderCreated> | undefined): boolean {
|
||||
return proto3.util.equals(EventOrderCreated, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* EventOrderCancelled is emitted when an order is cancelled
|
||||
*
|
||||
* @generated from message dex.v1.EventOrderCancelled
|
||||
*/
|
||||
export class EventOrderCancelled extends Message<EventOrderCancelled> {
|
||||
/**
|
||||
* DID of the trader
|
||||
*
|
||||
* @generated from field: string did = 1;
|
||||
*/
|
||||
did = "";
|
||||
|
||||
/**
|
||||
* IBC connection ID
|
||||
*
|
||||
* @generated from field: string connection_id = 2;
|
||||
*/
|
||||
connectionId = "";
|
||||
|
||||
/**
|
||||
* Order ID that was cancelled
|
||||
*
|
||||
* @generated from field: string order_id = 3;
|
||||
*/
|
||||
orderId = "";
|
||||
|
||||
/**
|
||||
* Transaction hash on remote chain
|
||||
*
|
||||
* @generated from field: string tx_hash = 4;
|
||||
*/
|
||||
txHash = "";
|
||||
|
||||
constructor(data?: PartialMessage<EventOrderCancelled>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "dex.v1.EventOrderCancelled";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "did", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 2, name: "connection_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 3, name: "order_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 4, name: "tx_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): EventOrderCancelled {
|
||||
return new EventOrderCancelled().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): EventOrderCancelled {
|
||||
return new EventOrderCancelled().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): EventOrderCancelled {
|
||||
return new EventOrderCancelled().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: EventOrderCancelled | PlainMessage<EventOrderCancelled> | undefined, b: EventOrderCancelled | PlainMessage<EventOrderCancelled> | undefined): boolean {
|
||||
return proto3.util.equals(EventOrderCancelled, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* EventOrderFilled is emitted when an order is filled
|
||||
*
|
||||
* @generated from message dex.v1.EventOrderFilled
|
||||
*/
|
||||
export class EventOrderFilled extends Message<EventOrderFilled> {
|
||||
/**
|
||||
* DID of the trader
|
||||
*
|
||||
* @generated from field: string did = 1;
|
||||
*/
|
||||
did = "";
|
||||
|
||||
/**
|
||||
* IBC connection ID
|
||||
*
|
||||
* @generated from field: string connection_id = 2;
|
||||
*/
|
||||
connectionId = "";
|
||||
|
||||
/**
|
||||
* Order ID that was filled
|
||||
*
|
||||
* @generated from field: string order_id = 3;
|
||||
*/
|
||||
orderId = "";
|
||||
|
||||
/**
|
||||
* Fill details
|
||||
*
|
||||
* @generated from field: string fill_amount = 4;
|
||||
*/
|
||||
fillAmount = "";
|
||||
|
||||
/**
|
||||
* @generated from field: string fill_price = 5;
|
||||
*/
|
||||
fillPrice = "";
|
||||
|
||||
/**
|
||||
* Transaction hash on remote chain
|
||||
*
|
||||
* @generated from field: string tx_hash = 6;
|
||||
*/
|
||||
txHash = "";
|
||||
|
||||
constructor(data?: PartialMessage<EventOrderFilled>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "dex.v1.EventOrderFilled";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "did", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 2, name: "connection_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 3, name: "order_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 4, name: "fill_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 5, name: "fill_price", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 6, name: "tx_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): EventOrderFilled {
|
||||
return new EventOrderFilled().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): EventOrderFilled {
|
||||
return new EventOrderFilled().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): EventOrderFilled {
|
||||
return new EventOrderFilled().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: EventOrderFilled | PlainMessage<EventOrderFilled> | undefined, b: EventOrderFilled | PlainMessage<EventOrderFilled> | undefined): boolean {
|
||||
return proto3.util.equals(EventOrderFilled, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* EventICAPacketSent is emitted when an ICA packet is sent
|
||||
*
|
||||
* @generated from message dex.v1.EventICAPacketSent
|
||||
*/
|
||||
export class EventICAPacketSent extends Message<EventICAPacketSent> {
|
||||
/**
|
||||
* DID of the sender
|
||||
*
|
||||
* @generated from field: string did = 1;
|
||||
*/
|
||||
did = "";
|
||||
|
||||
/**
|
||||
* IBC connection ID
|
||||
*
|
||||
* @generated from field: string connection_id = 2;
|
||||
*/
|
||||
connectionId = "";
|
||||
|
||||
/**
|
||||
* Packet type (swap, liquidity, order, etc.)
|
||||
*
|
||||
* @generated from field: string packet_type = 3;
|
||||
*/
|
||||
packetType = "";
|
||||
|
||||
/**
|
||||
* IBC packet sequence
|
||||
*
|
||||
* @generated from field: uint64 sequence = 4;
|
||||
*/
|
||||
sequence = protoInt64.zero;
|
||||
|
||||
constructor(data?: PartialMessage<EventICAPacketSent>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "dex.v1.EventICAPacketSent";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "did", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 2, name: "connection_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 3, name: "packet_type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 4, name: "sequence", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): EventICAPacketSent {
|
||||
return new EventICAPacketSent().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): EventICAPacketSent {
|
||||
return new EventICAPacketSent().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): EventICAPacketSent {
|
||||
return new EventICAPacketSent().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: EventICAPacketSent | PlainMessage<EventICAPacketSent> | undefined, b: EventICAPacketSent | PlainMessage<EventICAPacketSent> | undefined): boolean {
|
||||
return proto3.util.equals(EventICAPacketSent, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* EventICAPacketAcknowledged is emitted when an ICA packet is acknowledged
|
||||
*
|
||||
* @generated from message dex.v1.EventICAPacketAcknowledged
|
||||
*/
|
||||
export class EventICAPacketAcknowledged extends Message<EventICAPacketAcknowledged> {
|
||||
/**
|
||||
* DID of the sender
|
||||
*
|
||||
* @generated from field: string did = 1;
|
||||
*/
|
||||
did = "";
|
||||
|
||||
/**
|
||||
* IBC connection ID
|
||||
*
|
||||
* @generated from field: string connection_id = 2;
|
||||
*/
|
||||
connectionId = "";
|
||||
|
||||
/**
|
||||
* Packet type
|
||||
*
|
||||
* @generated from field: string packet_type = 3;
|
||||
*/
|
||||
packetType = "";
|
||||
|
||||
/**
|
||||
* IBC packet sequence
|
||||
*
|
||||
* @generated from field: uint64 sequence = 4;
|
||||
*/
|
||||
sequence = protoInt64.zero;
|
||||
|
||||
/**
|
||||
* Success status
|
||||
*
|
||||
* @generated from field: bool success = 5;
|
||||
*/
|
||||
success = false;
|
||||
|
||||
/**
|
||||
* Error message if failed
|
||||
*
|
||||
* @generated from field: string error = 6;
|
||||
*/
|
||||
error = "";
|
||||
|
||||
constructor(data?: PartialMessage<EventICAPacketAcknowledged>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "dex.v1.EventICAPacketAcknowledged";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "did", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 2, name: "connection_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 3, name: "packet_type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 4, name: "sequence", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
||||
{ no: 5, name: "success", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
||||
{ no: 6, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): EventICAPacketAcknowledged {
|
||||
return new EventICAPacketAcknowledged().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): EventICAPacketAcknowledged {
|
||||
return new EventICAPacketAcknowledged().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): EventICAPacketAcknowledged {
|
||||
return new EventICAPacketAcknowledged().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: EventICAPacketAcknowledged | PlainMessage<EventICAPacketAcknowledged> | undefined, b: EventICAPacketAcknowledged | PlainMessage<EventICAPacketAcknowledged> | undefined): boolean {
|
||||
return proto3.util.equals(EventICAPacketAcknowledged, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,293 @@
|
||||
// @generated by protoc-gen-es v1.2.0 with parameter "target=ts"
|
||||
// @generated from file dex/v1/genesis.proto (package dex.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";
|
||||
import { InterchainDEXAccount } from "./ica_pb.js";
|
||||
|
||||
/**
|
||||
* GenesisState defines the DEX module's genesis state
|
||||
*
|
||||
* @generated from message dex.v1.GenesisState
|
||||
*/
|
||||
export class GenesisState extends Message<GenesisState> {
|
||||
/**
|
||||
* Module parameters
|
||||
*
|
||||
* @generated from field: dex.v1.Params params = 1;
|
||||
*/
|
||||
params?: Params;
|
||||
|
||||
/**
|
||||
* IBC port ID for the module
|
||||
*
|
||||
* @generated from field: string port_id = 2;
|
||||
*/
|
||||
portId = "";
|
||||
|
||||
/**
|
||||
* Registered DEX accounts
|
||||
*
|
||||
* @generated from field: repeated dex.v1.InterchainDEXAccount accounts = 3;
|
||||
*/
|
||||
accounts: InterchainDEXAccount[] = [];
|
||||
|
||||
/**
|
||||
* Account sequence counter
|
||||
*
|
||||
* @generated from field: uint64 account_sequence = 4;
|
||||
*/
|
||||
accountSequence = protoInt64.zero;
|
||||
|
||||
constructor(data?: PartialMessage<GenesisState>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "dex.v1.GenesisState";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "params", kind: "message", T: Params },
|
||||
{ no: 2, name: "port_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 3, name: "accounts", kind: "message", T: InterchainDEXAccount, repeated: true },
|
||||
{ no: 4, name: "account_sequence", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GenesisState {
|
||||
return new GenesisState().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GenesisState {
|
||||
return new GenesisState().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GenesisState {
|
||||
return new GenesisState().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: GenesisState | PlainMessage<GenesisState> | undefined, b: GenesisState | PlainMessage<GenesisState> | undefined): boolean {
|
||||
return proto3.util.equals(GenesisState, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Params defines the parameters for the DEX module
|
||||
*
|
||||
* @generated from message dex.v1.Params
|
||||
*/
|
||||
export class Params extends Message<Params> {
|
||||
/**
|
||||
* Enable/disable the module
|
||||
*
|
||||
* @generated from field: bool enabled = 1;
|
||||
*/
|
||||
enabled = false;
|
||||
|
||||
/**
|
||||
* Maximum accounts per DID
|
||||
*
|
||||
* @generated from field: uint32 max_accounts_per_did = 2;
|
||||
*/
|
||||
maxAccountsPerDid = 0;
|
||||
|
||||
/**
|
||||
* Default timeout for ICA operations (in seconds)
|
||||
*
|
||||
* @generated from field: uint64 default_timeout_seconds = 3;
|
||||
*/
|
||||
defaultTimeoutSeconds = protoInt64.zero;
|
||||
|
||||
/**
|
||||
* Allowed DEX connections
|
||||
*
|
||||
* @generated from field: repeated string allowed_connections = 4;
|
||||
*/
|
||||
allowedConnections: string[] = [];
|
||||
|
||||
/**
|
||||
* Minimum swap amount (in base denom)
|
||||
*
|
||||
* @generated from field: string min_swap_amount = 5;
|
||||
*/
|
||||
minSwapAmount = "";
|
||||
|
||||
/**
|
||||
* Maximum daily volume per DID (in USD equivalent)
|
||||
*
|
||||
* @generated from field: string max_daily_volume = 6;
|
||||
*/
|
||||
maxDailyVolume = "";
|
||||
|
||||
/**
|
||||
* Rate limit parameters
|
||||
*
|
||||
* @generated from field: dex.v1.RateLimitParams rate_limits = 7;
|
||||
*/
|
||||
rateLimits?: RateLimitParams;
|
||||
|
||||
/**
|
||||
* Fee parameters
|
||||
*
|
||||
* @generated from field: dex.v1.FeeParams fees = 8;
|
||||
*/
|
||||
fees?: FeeParams;
|
||||
|
||||
constructor(data?: PartialMessage<Params>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "dex.v1.Params";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
||||
{ no: 2, name: "max_accounts_per_did", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
||||
{ no: 3, name: "default_timeout_seconds", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
||||
{ no: 4, name: "allowed_connections", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
||||
{ no: 5, name: "min_swap_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 6, name: "max_daily_volume", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 7, name: "rate_limits", kind: "message", T: RateLimitParams },
|
||||
{ no: 8, name: "fees", kind: "message", T: FeeParams },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Params {
|
||||
return new Params().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Params {
|
||||
return new Params().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Params {
|
||||
return new Params().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: Params | PlainMessage<Params> | undefined, b: Params | PlainMessage<Params> | undefined): boolean {
|
||||
return proto3.util.equals(Params, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* RateLimitParams defines rate limiting parameters
|
||||
*
|
||||
* @generated from message dex.v1.RateLimitParams
|
||||
*/
|
||||
export class RateLimitParams extends Message<RateLimitParams> {
|
||||
/**
|
||||
* Maximum operations per block
|
||||
*
|
||||
* @generated from field: uint32 max_ops_per_block = 1;
|
||||
*/
|
||||
maxOpsPerBlock = 0;
|
||||
|
||||
/**
|
||||
* Maximum operations per DID per day
|
||||
*
|
||||
* @generated from field: uint32 max_ops_per_did_per_day = 2;
|
||||
*/
|
||||
maxOpsPerDidPerDay = 0;
|
||||
|
||||
/**
|
||||
* Cooldown period between operations (in blocks)
|
||||
*
|
||||
* @generated from field: uint32 cooldown_blocks = 3;
|
||||
*/
|
||||
cooldownBlocks = 0;
|
||||
|
||||
constructor(data?: PartialMessage<RateLimitParams>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "dex.v1.RateLimitParams";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "max_ops_per_block", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
||||
{ no: 2, name: "max_ops_per_did_per_day", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
||||
{ no: 3, name: "cooldown_blocks", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RateLimitParams {
|
||||
return new RateLimitParams().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RateLimitParams {
|
||||
return new RateLimitParams().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RateLimitParams {
|
||||
return new RateLimitParams().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: RateLimitParams | PlainMessage<RateLimitParams> | undefined, b: RateLimitParams | PlainMessage<RateLimitParams> | undefined): boolean {
|
||||
return proto3.util.equals(RateLimitParams, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* FeeParams defines fee parameters for DEX operations
|
||||
*
|
||||
* @generated from message dex.v1.FeeParams
|
||||
*/
|
||||
export class FeeParams extends Message<FeeParams> {
|
||||
/**
|
||||
* Platform fee for swaps (basis points, e.g., 30 = 0.3%)
|
||||
*
|
||||
* @generated from field: uint32 swap_fee_bps = 1;
|
||||
*/
|
||||
swapFeeBps = 0;
|
||||
|
||||
/**
|
||||
* Platform fee for liquidity operations
|
||||
*
|
||||
* @generated from field: uint32 liquidity_fee_bps = 2;
|
||||
*/
|
||||
liquidityFeeBps = 0;
|
||||
|
||||
/**
|
||||
* Platform fee for orders
|
||||
*
|
||||
* @generated from field: uint32 order_fee_bps = 3;
|
||||
*/
|
||||
orderFeeBps = 0;
|
||||
|
||||
/**
|
||||
* Fee collector address
|
||||
*
|
||||
* @generated from field: string fee_collector = 4;
|
||||
*/
|
||||
feeCollector = "";
|
||||
|
||||
constructor(data?: PartialMessage<FeeParams>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "dex.v1.FeeParams";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "swap_fee_bps", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
||||
{ no: 2, name: "liquidity_fee_bps", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
||||
{ no: 3, name: "order_fee_bps", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
||||
{ no: 4, name: "fee_collector", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): FeeParams {
|
||||
return new FeeParams().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): FeeParams {
|
||||
return new FeeParams().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): FeeParams {
|
||||
return new FeeParams().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: FeeParams | PlainMessage<FeeParams> | undefined, b: FeeParams | PlainMessage<FeeParams> | undefined): boolean {
|
||||
return proto3.util.equals(FeeParams, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,311 @@
|
||||
// @generated by protoc-gen-es v1.2.0 with parameter "target=ts"
|
||||
// @generated from file dex/v1/ica.proto (package dex.v1, syntax proto3)
|
||||
/* eslint-disable */
|
||||
// @ts-nocheck
|
||||
|
||||
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
|
||||
import { Message, proto3, protoInt64, Timestamp } from "@bufbuild/protobuf";
|
||||
import { Coin } from "../../cosmos/base/v1beta1/coin_pb.js";
|
||||
|
||||
/**
|
||||
* AccountStatus defines the status of an ICA account
|
||||
*
|
||||
* @generated from enum dex.v1.AccountStatus
|
||||
*/
|
||||
export enum AccountStatus {
|
||||
/**
|
||||
* Account is pending creation
|
||||
*
|
||||
* @generated from enum value: ACCOUNT_STATUS_PENDING = 0;
|
||||
*/
|
||||
PENDING = 0,
|
||||
|
||||
/**
|
||||
* Account is active and ready
|
||||
*
|
||||
* @generated from enum value: ACCOUNT_STATUS_ACTIVE = 1;
|
||||
*/
|
||||
ACTIVE = 1,
|
||||
|
||||
/**
|
||||
* Account is temporarily disabled
|
||||
*
|
||||
* @generated from enum value: ACCOUNT_STATUS_DISABLED = 2;
|
||||
*/
|
||||
DISABLED = 2,
|
||||
|
||||
/**
|
||||
* Account creation failed
|
||||
*
|
||||
* @generated from enum value: ACCOUNT_STATUS_FAILED = 3;
|
||||
*/
|
||||
FAILED = 3,
|
||||
}
|
||||
// Retrieve enum metadata with: proto3.getEnumType(AccountStatus)
|
||||
proto3.util.setEnumType(AccountStatus, "dex.v1.AccountStatus", [
|
||||
{ no: 0, name: "ACCOUNT_STATUS_PENDING" },
|
||||
{ no: 1, name: "ACCOUNT_STATUS_ACTIVE" },
|
||||
{ no: 2, name: "ACCOUNT_STATUS_DISABLED" },
|
||||
{ no: 3, name: "ACCOUNT_STATUS_FAILED" },
|
||||
]);
|
||||
|
||||
/**
|
||||
* DEXFeatures defines available features for DEX accounts
|
||||
*
|
||||
* @generated from enum dex.v1.DEXFeatures
|
||||
*/
|
||||
export enum DEXFeatures {
|
||||
/**
|
||||
* Basic swap functionality
|
||||
*
|
||||
* @generated from enum value: DEX_FEATURE_SWAP = 0;
|
||||
*/
|
||||
DEX_FEATURE_SWAP = 0,
|
||||
|
||||
/**
|
||||
* Liquidity provision
|
||||
*
|
||||
* @generated from enum value: DEX_FEATURE_LIQUIDITY = 1;
|
||||
*/
|
||||
DEX_FEATURE_LIQUIDITY = 1,
|
||||
|
||||
/**
|
||||
* Limit orders
|
||||
*
|
||||
* @generated from enum value: DEX_FEATURE_ORDERS = 2;
|
||||
*/
|
||||
DEX_FEATURE_ORDERS = 2,
|
||||
|
||||
/**
|
||||
* Staking operations
|
||||
*
|
||||
* @generated from enum value: DEX_FEATURE_STAKING = 3;
|
||||
*/
|
||||
DEX_FEATURE_STAKING = 3,
|
||||
|
||||
/**
|
||||
* Governance participation
|
||||
*
|
||||
* @generated from enum value: DEX_FEATURE_GOVERNANCE = 4;
|
||||
*/
|
||||
DEX_FEATURE_GOVERNANCE = 4,
|
||||
}
|
||||
// Retrieve enum metadata with: proto3.getEnumType(DEXFeatures)
|
||||
proto3.util.setEnumType(DEXFeatures, "dex.v1.DEXFeatures", [
|
||||
{ no: 0, name: "DEX_FEATURE_SWAP" },
|
||||
{ no: 1, name: "DEX_FEATURE_LIQUIDITY" },
|
||||
{ no: 2, name: "DEX_FEATURE_ORDERS" },
|
||||
{ no: 3, name: "DEX_FEATURE_STAKING" },
|
||||
{ no: 4, name: "DEX_FEATURE_GOVERNANCE" },
|
||||
]);
|
||||
|
||||
/**
|
||||
* InterchainDEXAccount represents a DEX account on a remote chain
|
||||
*
|
||||
* @generated from message dex.v1.InterchainDEXAccount
|
||||
*/
|
||||
export class InterchainDEXAccount extends Message<InterchainDEXAccount> {
|
||||
/**
|
||||
* DID controller of this account
|
||||
*
|
||||
* @generated from field: string did = 1;
|
||||
*/
|
||||
did = "";
|
||||
|
||||
/**
|
||||
* IBC connection to the remote chain
|
||||
*
|
||||
* @generated from field: string connection_id = 2;
|
||||
*/
|
||||
connectionId = "";
|
||||
|
||||
/**
|
||||
* Remote chain ID (e.g., osmosis-1)
|
||||
*
|
||||
* @generated from field: string host_chain_id = 3;
|
||||
*/
|
||||
hostChainId = "";
|
||||
|
||||
/**
|
||||
* Account address on the remote chain
|
||||
*
|
||||
* @generated from field: string account_address = 4;
|
||||
*/
|
||||
accountAddress = "";
|
||||
|
||||
/**
|
||||
* ICA port ID for this account
|
||||
*
|
||||
* @generated from field: string port_id = 5;
|
||||
*/
|
||||
portId = "";
|
||||
|
||||
/**
|
||||
* Account creation timestamp
|
||||
*
|
||||
* @generated from field: google.protobuf.Timestamp created_at = 6;
|
||||
*/
|
||||
createdAt?: Timestamp;
|
||||
|
||||
/**
|
||||
* Enabled features for this account
|
||||
*
|
||||
* @generated from field: repeated string enabled_features = 7;
|
||||
*/
|
||||
enabledFeatures: string[] = [];
|
||||
|
||||
/**
|
||||
* Account status
|
||||
*
|
||||
* @generated from field: dex.v1.AccountStatus status = 8;
|
||||
*/
|
||||
status = AccountStatus.PENDING;
|
||||
|
||||
constructor(data?: PartialMessage<InterchainDEXAccount>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "dex.v1.InterchainDEXAccount";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "did", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 2, name: "connection_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 3, name: "host_chain_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 4, name: "account_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 5, name: "port_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 6, name: "created_at", kind: "message", T: Timestamp },
|
||||
{ no: 7, name: "enabled_features", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
||||
{ no: 8, name: "status", kind: "enum", T: proto3.getEnumType(AccountStatus) },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): InterchainDEXAccount {
|
||||
return new InterchainDEXAccount().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): InterchainDEXAccount {
|
||||
return new InterchainDEXAccount().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): InterchainDEXAccount {
|
||||
return new InterchainDEXAccount().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: InterchainDEXAccount | PlainMessage<InterchainDEXAccount> | undefined, b: InterchainDEXAccount | PlainMessage<InterchainDEXAccount> | undefined): boolean {
|
||||
return proto3.util.equals(InterchainDEXAccount, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* DEXActivity represents a DEX operation activity record
|
||||
*
|
||||
* @generated from message dex.v1.DEXActivity
|
||||
*/
|
||||
export class DEXActivity extends Message<DEXActivity> {
|
||||
/**
|
||||
* Type of activity (swap, provide_liquidity, remove_liquidity, create_order, cancel_order)
|
||||
*
|
||||
* @generated from field: string type = 1;
|
||||
*/
|
||||
type = "";
|
||||
|
||||
/**
|
||||
* DID that performed the activity
|
||||
*
|
||||
* @generated from field: string did = 2;
|
||||
*/
|
||||
did = "";
|
||||
|
||||
/**
|
||||
* Connection ID where the activity occurred
|
||||
*
|
||||
* @generated from field: string connection_id = 3;
|
||||
*/
|
||||
connectionId = "";
|
||||
|
||||
/**
|
||||
* Transaction hash of the activity
|
||||
*
|
||||
* @generated from field: string tx_hash = 4;
|
||||
*/
|
||||
txHash = "";
|
||||
|
||||
/**
|
||||
* Block height when the activity occurred
|
||||
*
|
||||
* @generated from field: int64 block_height = 5;
|
||||
*/
|
||||
blockHeight = protoInt64.zero;
|
||||
|
||||
/**
|
||||
* Timestamp of the activity
|
||||
*
|
||||
* @generated from field: google.protobuf.Timestamp timestamp = 6;
|
||||
*/
|
||||
timestamp?: Timestamp;
|
||||
|
||||
/**
|
||||
* Activity-specific details (JSON encoded)
|
||||
*
|
||||
* @generated from field: string details = 7;
|
||||
*/
|
||||
details = "";
|
||||
|
||||
/**
|
||||
* Status of the activity (pending, success, failed)
|
||||
*
|
||||
* @generated from field: string status = 8;
|
||||
*/
|
||||
status = "";
|
||||
|
||||
/**
|
||||
* Amount involved in the activity (if applicable)
|
||||
*
|
||||
* @generated from field: repeated cosmos.base.v1beta1.Coin amount = 9;
|
||||
*/
|
||||
amount: Coin[] = [];
|
||||
|
||||
/**
|
||||
* Gas used for the activity
|
||||
*
|
||||
* @generated from field: uint64 gas_used = 10;
|
||||
*/
|
||||
gasUsed = protoInt64.zero;
|
||||
|
||||
constructor(data?: PartialMessage<DEXActivity>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "dex.v1.DEXActivity";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 2, name: "did", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 3, name: "connection_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 4, name: "tx_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 5, name: "block_height", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
||||
{ no: 6, name: "timestamp", kind: "message", T: Timestamp },
|
||||
{ no: 7, name: "details", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 8, name: "status", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 9, name: "amount", kind: "message", T: Coin, repeated: true },
|
||||
{ no: 10, name: "gas_used", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DEXActivity {
|
||||
return new DEXActivity().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DEXActivity {
|
||||
return new DEXActivity().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DEXActivity {
|
||||
return new DEXActivity().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: DEXActivity | PlainMessage<DEXActivity> | undefined, b: DEXActivity | PlainMessage<DEXActivity> | undefined): boolean {
|
||||
return proto3.util.equals(DEXActivity, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,128 @@
|
||||
// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts"
|
||||
// @generated from file dex/v1/query.proto (package dex.v1, syntax proto3)
|
||||
/* eslint-disable */
|
||||
// @ts-nocheck
|
||||
|
||||
import { QueryAccountRequest, QueryAccountResponse, QueryAccountsRequest, QueryAccountsResponse, QueryBalanceRequest, QueryBalanceResponse, QueryHistoryRequest, QueryHistoryResponse, QueryOrdersRequest, QueryOrdersResponse, QueryParamsRequest, QueryParamsResponse, QueryPoolRequest, QueryPoolResponse } from "./query_pb.js";
|
||||
|
||||
const TYPE_NAME = "dex.v1.Query";
|
||||
|
||||
/**
|
||||
* Params queries the parameters of the module
|
||||
*
|
||||
* {{.MethodDescriptorProto.Name}} is a call with the method(s) {{$first := true}}{{range .Bindings}}{{if $first}}{{$first = false}}{{else}}, {{end}}{{.HTTPMethod}}{{end}} within the "{{.Service.Name}}" service.
|
||||
* It takes in "{{.RequestType.Name}}" and returns a "{{.ResponseType.Name}}".
|
||||
*
|
||||
* {{import "dex_query_docs.md"}}
|
||||
*
|
||||
* @generated from rpc dex.v1.Query.Params
|
||||
*/
|
||||
export const QueryParamsService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "Params",
|
||||
Request: QueryParamsRequest,
|
||||
Response: QueryParamsResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* Account queries a DEX account by DID and connection
|
||||
*
|
||||
* {{.MethodDescriptorProto.Name}} is a call with the method(s) {{$first := true}}{{range .Bindings}}{{if $first}}{{$first = false}}{{else}}, {{end}}{{.HTTPMethod}}{{end}} within the "{{.Service.Name}}" service.
|
||||
* It takes in "{{.RequestType.Name}}" and returns a "{{.ResponseType.Name}}".
|
||||
*
|
||||
* {{import "dex_query_docs.md"}}
|
||||
*
|
||||
* @generated from rpc dex.v1.Query.Account
|
||||
*/
|
||||
export const QueryAccountService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "Account",
|
||||
Request: QueryAccountRequest,
|
||||
Response: QueryAccountResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* Accounts queries all DEX accounts for a DID
|
||||
*
|
||||
* {{.MethodDescriptorProto.Name}} is a call with the method(s) {{$first := true}}{{range .Bindings}}{{if $first}}{{$first = false}}{{else}}, {{end}}{{.HTTPMethod}}{{end}} within the "{{.Service.Name}}" service.
|
||||
* It takes in "{{.RequestType.Name}}" and returns a "{{.ResponseType.Name}}".
|
||||
*
|
||||
* {{import "dex_query_docs.md"}}
|
||||
*
|
||||
* @generated from rpc dex.v1.Query.Accounts
|
||||
*/
|
||||
export const QueryAccountsService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "Accounts",
|
||||
Request: QueryAccountsRequest,
|
||||
Response: QueryAccountsResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* Balance queries remote chain balance
|
||||
*
|
||||
* {{.MethodDescriptorProto.Name}} is a call with the method(s) {{$first := true}}{{range .Bindings}}{{if $first}}{{$first = false}}{{else}}, {{end}}{{.HTTPMethod}}{{end}} within the "{{.Service.Name}}" service.
|
||||
* It takes in "{{.RequestType.Name}}" and returns a "{{.ResponseType.Name}}".
|
||||
*
|
||||
* {{import "dex_query_docs.md"}}
|
||||
*
|
||||
* @generated from rpc dex.v1.Query.Balance
|
||||
*/
|
||||
export const QueryBalanceService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "Balance",
|
||||
Request: QueryBalanceRequest,
|
||||
Response: QueryBalanceResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* Pool queries pool information
|
||||
*
|
||||
* {{.MethodDescriptorProto.Name}} is a call with the method(s) {{$first := true}}{{range .Bindings}}{{if $first}}{{$first = false}}{{else}}, {{end}}{{.HTTPMethod}}{{end}} within the "{{.Service.Name}}" service.
|
||||
* It takes in "{{.RequestType.Name}}" and returns a "{{.ResponseType.Name}}".
|
||||
*
|
||||
* {{import "dex_query_docs.md"}}
|
||||
*
|
||||
* @generated from rpc dex.v1.Query.Pool
|
||||
*/
|
||||
export const QueryPoolService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "Pool",
|
||||
Request: QueryPoolRequest,
|
||||
Response: QueryPoolResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* Orders queries orders for a DID
|
||||
*
|
||||
* {{.MethodDescriptorProto.Name}} is a call with the method(s) {{$first := true}}{{range .Bindings}}{{if $first}}{{$first = false}}{{else}}, {{end}}{{.HTTPMethod}}{{end}} within the "{{.Service.Name}}" service.
|
||||
* It takes in "{{.RequestType.Name}}" and returns a "{{.ResponseType.Name}}".
|
||||
*
|
||||
* {{import "dex_query_docs.md"}}
|
||||
*
|
||||
* @generated from rpc dex.v1.Query.Orders
|
||||
*/
|
||||
export const QueryOrdersService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "Orders",
|
||||
Request: QueryOrdersRequest,
|
||||
Response: QueryOrdersResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* History queries transaction history
|
||||
*
|
||||
* {{.MethodDescriptorProto.Name}} is a call with the method(s) {{$first := true}}{{range .Bindings}}{{if $first}}{{$first = false}}{{else}}, {{end}}{{.HTTPMethod}}{{end}} within the "{{.Service.Name}}" service.
|
||||
* It takes in "{{.RequestType.Name}}" and returns a "{{.ResponseType.Name}}".
|
||||
*
|
||||
* {{import "dex_query_docs.md"}}
|
||||
*
|
||||
* @generated from rpc dex.v1.Query.History
|
||||
*/
|
||||
export const QueryHistoryService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "History",
|
||||
Request: QueryHistoryRequest,
|
||||
Response: QueryHistoryResponse,
|
||||
} as const;
|
||||
|
||||
@@ -0,0 +1,933 @@
|
||||
// @generated by protoc-gen-es v1.2.0 with parameter "target=ts"
|
||||
// @generated from file dex/v1/query.proto (package dex.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 { Params } from "./genesis_pb.js";
|
||||
import { InterchainDEXAccount } from "./ica_pb.js";
|
||||
import { PageRequest, PageResponse } from "../../cosmos/base/query/v1beta1/pagination_pb.js";
|
||||
import { Coin } from "../../cosmos/base/v1beta1/coin_pb.js";
|
||||
|
||||
/**
|
||||
* QueryParamsRequest is request type for Query/Params RPC method
|
||||
*
|
||||
* @generated from message dex.v1.QueryParamsRequest
|
||||
*/
|
||||
export class QueryParamsRequest extends Message<QueryParamsRequest> {
|
||||
constructor(data?: PartialMessage<QueryParamsRequest>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "dex.v1.QueryParamsRequest";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): QueryParamsRequest {
|
||||
return new QueryParamsRequest().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): QueryParamsRequest {
|
||||
return new QueryParamsRequest().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): QueryParamsRequest {
|
||||
return new QueryParamsRequest().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: QueryParamsRequest | PlainMessage<QueryParamsRequest> | undefined, b: QueryParamsRequest | PlainMessage<QueryParamsRequest> | undefined): boolean {
|
||||
return proto3.util.equals(QueryParamsRequest, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* QueryParamsResponse is response type for Query/Params RPC method
|
||||
*
|
||||
* @generated from message dex.v1.QueryParamsResponse
|
||||
*/
|
||||
export class QueryParamsResponse extends Message<QueryParamsResponse> {
|
||||
/**
|
||||
* params holds all the parameters of this module
|
||||
*
|
||||
* @generated from field: dex.v1.Params params = 1;
|
||||
*/
|
||||
params?: Params;
|
||||
|
||||
constructor(data?: PartialMessage<QueryParamsResponse>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "dex.v1.QueryParamsResponse";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "params", kind: "message", T: Params },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): QueryParamsResponse {
|
||||
return new QueryParamsResponse().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): QueryParamsResponse {
|
||||
return new QueryParamsResponse().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): QueryParamsResponse {
|
||||
return new QueryParamsResponse().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: QueryParamsResponse | PlainMessage<QueryParamsResponse> | undefined, b: QueryParamsResponse | PlainMessage<QueryParamsResponse> | undefined): boolean {
|
||||
return proto3.util.equals(QueryParamsResponse, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* QueryAccountRequest is request type for Query/Account RPC method
|
||||
*
|
||||
* @generated from message dex.v1.QueryAccountRequest
|
||||
*/
|
||||
export class QueryAccountRequest extends Message<QueryAccountRequest> {
|
||||
/**
|
||||
* DID of the account owner
|
||||
*
|
||||
* @generated from field: string did = 1;
|
||||
*/
|
||||
did = "";
|
||||
|
||||
/**
|
||||
* IBC connection ID
|
||||
*
|
||||
* @generated from field: string connection_id = 2;
|
||||
*/
|
||||
connectionId = "";
|
||||
|
||||
constructor(data?: PartialMessage<QueryAccountRequest>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "dex.v1.QueryAccountRequest";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "did", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 2, name: "connection_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): QueryAccountRequest {
|
||||
return new QueryAccountRequest().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): QueryAccountRequest {
|
||||
return new QueryAccountRequest().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): QueryAccountRequest {
|
||||
return new QueryAccountRequest().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: QueryAccountRequest | PlainMessage<QueryAccountRequest> | undefined, b: QueryAccountRequest | PlainMessage<QueryAccountRequest> | undefined): boolean {
|
||||
return proto3.util.equals(QueryAccountRequest, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* QueryAccountResponse is response type for Query/Account RPC method
|
||||
*
|
||||
* @generated from message dex.v1.QueryAccountResponse
|
||||
*/
|
||||
export class QueryAccountResponse extends Message<QueryAccountResponse> {
|
||||
/**
|
||||
* The DEX account
|
||||
*
|
||||
* @generated from field: dex.v1.InterchainDEXAccount account = 1;
|
||||
*/
|
||||
account?: InterchainDEXAccount;
|
||||
|
||||
constructor(data?: PartialMessage<QueryAccountResponse>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "dex.v1.QueryAccountResponse";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "account", kind: "message", T: InterchainDEXAccount },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): QueryAccountResponse {
|
||||
return new QueryAccountResponse().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): QueryAccountResponse {
|
||||
return new QueryAccountResponse().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): QueryAccountResponse {
|
||||
return new QueryAccountResponse().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: QueryAccountResponse | PlainMessage<QueryAccountResponse> | undefined, b: QueryAccountResponse | PlainMessage<QueryAccountResponse> | undefined): boolean {
|
||||
return proto3.util.equals(QueryAccountResponse, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* QueryAccountsRequest is request type for Query/Accounts RPC method
|
||||
*
|
||||
* @generated from message dex.v1.QueryAccountsRequest
|
||||
*/
|
||||
export class QueryAccountsRequest extends Message<QueryAccountsRequest> {
|
||||
/**
|
||||
* DID of the account owner
|
||||
*
|
||||
* @generated from field: string did = 1;
|
||||
*/
|
||||
did = "";
|
||||
|
||||
/**
|
||||
* pagination defines optional pagination
|
||||
*
|
||||
* @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2;
|
||||
*/
|
||||
pagination?: PageRequest;
|
||||
|
||||
constructor(data?: PartialMessage<QueryAccountsRequest>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "dex.v1.QueryAccountsRequest";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "did", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 2, name: "pagination", kind: "message", T: PageRequest },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): QueryAccountsRequest {
|
||||
return new QueryAccountsRequest().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): QueryAccountsRequest {
|
||||
return new QueryAccountsRequest().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): QueryAccountsRequest {
|
||||
return new QueryAccountsRequest().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: QueryAccountsRequest | PlainMessage<QueryAccountsRequest> | undefined, b: QueryAccountsRequest | PlainMessage<QueryAccountsRequest> | undefined): boolean {
|
||||
return proto3.util.equals(QueryAccountsRequest, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* QueryAccountsResponse is response type for Query/Accounts RPC method
|
||||
*
|
||||
* @generated from message dex.v1.QueryAccountsResponse
|
||||
*/
|
||||
export class QueryAccountsResponse extends Message<QueryAccountsResponse> {
|
||||
/**
|
||||
* List of DEX accounts
|
||||
*
|
||||
* @generated from field: repeated dex.v1.InterchainDEXAccount accounts = 1;
|
||||
*/
|
||||
accounts: InterchainDEXAccount[] = [];
|
||||
|
||||
/**
|
||||
* pagination defines the pagination in the response
|
||||
*
|
||||
* @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2;
|
||||
*/
|
||||
pagination?: PageResponse;
|
||||
|
||||
constructor(data?: PartialMessage<QueryAccountsResponse>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "dex.v1.QueryAccountsResponse";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "accounts", kind: "message", T: InterchainDEXAccount, repeated: true },
|
||||
{ no: 2, name: "pagination", kind: "message", T: PageResponse },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): QueryAccountsResponse {
|
||||
return new QueryAccountsResponse().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): QueryAccountsResponse {
|
||||
return new QueryAccountsResponse().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): QueryAccountsResponse {
|
||||
return new QueryAccountsResponse().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: QueryAccountsResponse | PlainMessage<QueryAccountsResponse> | undefined, b: QueryAccountsResponse | PlainMessage<QueryAccountsResponse> | undefined): boolean {
|
||||
return proto3.util.equals(QueryAccountsResponse, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* QueryBalanceRequest is request type for Query/Balance RPC method
|
||||
*
|
||||
* @generated from message dex.v1.QueryBalanceRequest
|
||||
*/
|
||||
export class QueryBalanceRequest extends Message<QueryBalanceRequest> {
|
||||
/**
|
||||
* DID of the account owner
|
||||
*
|
||||
* @generated from field: string did = 1;
|
||||
*/
|
||||
did = "";
|
||||
|
||||
/**
|
||||
* IBC connection ID
|
||||
*
|
||||
* @generated from field: string connection_id = 2;
|
||||
*/
|
||||
connectionId = "";
|
||||
|
||||
/**
|
||||
* Optional specific denom to query
|
||||
*
|
||||
* @generated from field: string denom = 3;
|
||||
*/
|
||||
denom = "";
|
||||
|
||||
constructor(data?: PartialMessage<QueryBalanceRequest>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "dex.v1.QueryBalanceRequest";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "did", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 2, name: "connection_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 3, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): QueryBalanceRequest {
|
||||
return new QueryBalanceRequest().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): QueryBalanceRequest {
|
||||
return new QueryBalanceRequest().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): QueryBalanceRequest {
|
||||
return new QueryBalanceRequest().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: QueryBalanceRequest | PlainMessage<QueryBalanceRequest> | undefined, b: QueryBalanceRequest | PlainMessage<QueryBalanceRequest> | undefined): boolean {
|
||||
return proto3.util.equals(QueryBalanceRequest, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* QueryBalanceResponse is response type for Query/Balance RPC method
|
||||
*
|
||||
* @generated from message dex.v1.QueryBalanceResponse
|
||||
*/
|
||||
export class QueryBalanceResponse extends Message<QueryBalanceResponse> {
|
||||
/**
|
||||
* Balances on the remote chain
|
||||
*
|
||||
* @generated from field: repeated cosmos.base.v1beta1.Coin balances = 1;
|
||||
*/
|
||||
balances: Coin[] = [];
|
||||
|
||||
constructor(data?: PartialMessage<QueryBalanceResponse>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "dex.v1.QueryBalanceResponse";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "balances", kind: "message", T: Coin, repeated: true },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): QueryBalanceResponse {
|
||||
return new QueryBalanceResponse().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): QueryBalanceResponse {
|
||||
return new QueryBalanceResponse().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): QueryBalanceResponse {
|
||||
return new QueryBalanceResponse().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: QueryBalanceResponse | PlainMessage<QueryBalanceResponse> | undefined, b: QueryBalanceResponse | PlainMessage<QueryBalanceResponse> | undefined): boolean {
|
||||
return proto3.util.equals(QueryBalanceResponse, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* QueryPoolRequest is request type for Query/Pool RPC method
|
||||
*
|
||||
* @generated from message dex.v1.QueryPoolRequest
|
||||
*/
|
||||
export class QueryPoolRequest extends Message<QueryPoolRequest> {
|
||||
/**
|
||||
* IBC connection ID
|
||||
*
|
||||
* @generated from field: string connection_id = 1;
|
||||
*/
|
||||
connectionId = "";
|
||||
|
||||
/**
|
||||
* Pool ID to query
|
||||
*
|
||||
* @generated from field: string pool_id = 2;
|
||||
*/
|
||||
poolId = "";
|
||||
|
||||
constructor(data?: PartialMessage<QueryPoolRequest>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "dex.v1.QueryPoolRequest";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "connection_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 2, name: "pool_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): QueryPoolRequest {
|
||||
return new QueryPoolRequest().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): QueryPoolRequest {
|
||||
return new QueryPoolRequest().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): QueryPoolRequest {
|
||||
return new QueryPoolRequest().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: QueryPoolRequest | PlainMessage<QueryPoolRequest> | undefined, b: QueryPoolRequest | PlainMessage<QueryPoolRequest> | undefined): boolean {
|
||||
return proto3.util.equals(QueryPoolRequest, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* QueryPoolResponse is response type for Query/Pool RPC method
|
||||
*
|
||||
* @generated from message dex.v1.QueryPoolResponse
|
||||
*/
|
||||
export class QueryPoolResponse extends Message<QueryPoolResponse> {
|
||||
/**
|
||||
* Pool information
|
||||
*
|
||||
* @generated from field: dex.v1.PoolInfo pool = 1;
|
||||
*/
|
||||
pool?: PoolInfo;
|
||||
|
||||
constructor(data?: PartialMessage<QueryPoolResponse>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "dex.v1.QueryPoolResponse";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "pool", kind: "message", T: PoolInfo },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): QueryPoolResponse {
|
||||
return new QueryPoolResponse().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): QueryPoolResponse {
|
||||
return new QueryPoolResponse().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): QueryPoolResponse {
|
||||
return new QueryPoolResponse().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: QueryPoolResponse | PlainMessage<QueryPoolResponse> | undefined, b: QueryPoolResponse | PlainMessage<QueryPoolResponse> | undefined): boolean {
|
||||
return proto3.util.equals(QueryPoolResponse, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* PoolInfo contains pool information
|
||||
*
|
||||
* @generated from message dex.v1.PoolInfo
|
||||
*/
|
||||
export class PoolInfo extends Message<PoolInfo> {
|
||||
/**
|
||||
* Pool ID
|
||||
*
|
||||
* @generated from field: string pool_id = 1;
|
||||
*/
|
||||
poolId = "";
|
||||
|
||||
/**
|
||||
* Pool assets
|
||||
*
|
||||
* @generated from field: repeated cosmos.base.v1beta1.Coin assets = 2;
|
||||
*/
|
||||
assets: Coin[] = [];
|
||||
|
||||
/**
|
||||
* Total shares
|
||||
*
|
||||
* @generated from field: string total_shares = 3;
|
||||
*/
|
||||
totalShares = "";
|
||||
|
||||
/**
|
||||
* Swap fee
|
||||
*
|
||||
* @generated from field: string swap_fee = 4;
|
||||
*/
|
||||
swapFee = "";
|
||||
|
||||
constructor(data?: PartialMessage<PoolInfo>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "dex.v1.PoolInfo";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "pool_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 2, name: "assets", kind: "message", T: Coin, repeated: true },
|
||||
{ no: 3, name: "total_shares", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 4, name: "swap_fee", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PoolInfo {
|
||||
return new PoolInfo().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PoolInfo {
|
||||
return new PoolInfo().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PoolInfo {
|
||||
return new PoolInfo().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: PoolInfo | PlainMessage<PoolInfo> | undefined, b: PoolInfo | PlainMessage<PoolInfo> | undefined): boolean {
|
||||
return proto3.util.equals(PoolInfo, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* QueryOrdersRequest is request type for Query/Orders RPC method
|
||||
*
|
||||
* @generated from message dex.v1.QueryOrdersRequest
|
||||
*/
|
||||
export class QueryOrdersRequest extends Message<QueryOrdersRequest> {
|
||||
/**
|
||||
* DID of the account owner
|
||||
*
|
||||
* @generated from field: string did = 1;
|
||||
*/
|
||||
did = "";
|
||||
|
||||
/**
|
||||
* IBC connection ID
|
||||
*
|
||||
* @generated from field: string connection_id = 2;
|
||||
*/
|
||||
connectionId = "";
|
||||
|
||||
/**
|
||||
* Filter by status (optional)
|
||||
*
|
||||
* @generated from field: string status = 3;
|
||||
*/
|
||||
status = "";
|
||||
|
||||
/**
|
||||
* pagination defines optional pagination
|
||||
*
|
||||
* @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 4;
|
||||
*/
|
||||
pagination?: PageRequest;
|
||||
|
||||
constructor(data?: PartialMessage<QueryOrdersRequest>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "dex.v1.QueryOrdersRequest";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "did", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 2, name: "connection_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 3, name: "status", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 4, name: "pagination", kind: "message", T: PageRequest },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): QueryOrdersRequest {
|
||||
return new QueryOrdersRequest().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): QueryOrdersRequest {
|
||||
return new QueryOrdersRequest().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): QueryOrdersRequest {
|
||||
return new QueryOrdersRequest().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: QueryOrdersRequest | PlainMessage<QueryOrdersRequest> | undefined, b: QueryOrdersRequest | PlainMessage<QueryOrdersRequest> | undefined): boolean {
|
||||
return proto3.util.equals(QueryOrdersRequest, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* QueryOrdersResponse is response type for Query/Orders RPC method
|
||||
*
|
||||
* @generated from message dex.v1.QueryOrdersResponse
|
||||
*/
|
||||
export class QueryOrdersResponse extends Message<QueryOrdersResponse> {
|
||||
/**
|
||||
* List of orders
|
||||
*
|
||||
* @generated from field: repeated dex.v1.Order orders = 1;
|
||||
*/
|
||||
orders: Order[] = [];
|
||||
|
||||
/**
|
||||
* pagination defines the pagination in the response
|
||||
*
|
||||
* @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2;
|
||||
*/
|
||||
pagination?: PageResponse;
|
||||
|
||||
constructor(data?: PartialMessage<QueryOrdersResponse>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "dex.v1.QueryOrdersResponse";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "orders", kind: "message", T: Order, repeated: true },
|
||||
{ no: 2, name: "pagination", kind: "message", T: PageResponse },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): QueryOrdersResponse {
|
||||
return new QueryOrdersResponse().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): QueryOrdersResponse {
|
||||
return new QueryOrdersResponse().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): QueryOrdersResponse {
|
||||
return new QueryOrdersResponse().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: QueryOrdersResponse | PlainMessage<QueryOrdersResponse> | undefined, b: QueryOrdersResponse | PlainMessage<QueryOrdersResponse> | undefined): boolean {
|
||||
return proto3.util.equals(QueryOrdersResponse, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Order represents a DEX order
|
||||
*
|
||||
* @generated from message dex.v1.Order
|
||||
*/
|
||||
export class Order extends Message<Order> {
|
||||
/**
|
||||
* Order ID
|
||||
*
|
||||
* @generated from field: string order_id = 1;
|
||||
*/
|
||||
orderId = "";
|
||||
|
||||
/**
|
||||
* Order type
|
||||
*
|
||||
* @generated from field: string order_type = 2;
|
||||
*/
|
||||
orderType = "";
|
||||
|
||||
/**
|
||||
* Sell token
|
||||
*
|
||||
* @generated from field: string sell_denom = 3;
|
||||
*/
|
||||
sellDenom = "";
|
||||
|
||||
/**
|
||||
* Buy token
|
||||
*
|
||||
* @generated from field: string buy_denom = 4;
|
||||
*/
|
||||
buyDenom = "";
|
||||
|
||||
/**
|
||||
* Amount
|
||||
*
|
||||
* @generated from field: string amount = 5;
|
||||
*/
|
||||
amount = "";
|
||||
|
||||
/**
|
||||
* Price
|
||||
*
|
||||
* @generated from field: string price = 6;
|
||||
*/
|
||||
price = "";
|
||||
|
||||
/**
|
||||
* Status
|
||||
*
|
||||
* @generated from field: string status = 7;
|
||||
*/
|
||||
status = "";
|
||||
|
||||
/**
|
||||
* Creation time
|
||||
*
|
||||
* @generated from field: string created_at = 8;
|
||||
*/
|
||||
createdAt = "";
|
||||
|
||||
constructor(data?: PartialMessage<Order>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "dex.v1.Order";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "order_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 2, name: "order_type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 3, name: "sell_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 4, name: "buy_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 5, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 6, name: "price", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 7, name: "status", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 8, name: "created_at", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Order {
|
||||
return new Order().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Order {
|
||||
return new Order().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Order {
|
||||
return new Order().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: Order | PlainMessage<Order> | undefined, b: Order | PlainMessage<Order> | undefined): boolean {
|
||||
return proto3.util.equals(Order, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* QueryHistoryRequest is request type for Query/History RPC method
|
||||
*
|
||||
* @generated from message dex.v1.QueryHistoryRequest
|
||||
*/
|
||||
export class QueryHistoryRequest extends Message<QueryHistoryRequest> {
|
||||
/**
|
||||
* DID of the account owner
|
||||
*
|
||||
* @generated from field: string did = 1;
|
||||
*/
|
||||
did = "";
|
||||
|
||||
/**
|
||||
* Optional connection filter
|
||||
*
|
||||
* @generated from field: string connection_id = 2;
|
||||
*/
|
||||
connectionId = "";
|
||||
|
||||
/**
|
||||
* Optional operation type filter
|
||||
*
|
||||
* @generated from field: string operation_type = 3;
|
||||
*/
|
||||
operationType = "";
|
||||
|
||||
/**
|
||||
* pagination defines optional pagination
|
||||
*
|
||||
* @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 4;
|
||||
*/
|
||||
pagination?: PageRequest;
|
||||
|
||||
constructor(data?: PartialMessage<QueryHistoryRequest>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "dex.v1.QueryHistoryRequest";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "did", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 2, name: "connection_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 3, name: "operation_type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 4, name: "pagination", kind: "message", T: PageRequest },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): QueryHistoryRequest {
|
||||
return new QueryHistoryRequest().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): QueryHistoryRequest {
|
||||
return new QueryHistoryRequest().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): QueryHistoryRequest {
|
||||
return new QueryHistoryRequest().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: QueryHistoryRequest | PlainMessage<QueryHistoryRequest> | undefined, b: QueryHistoryRequest | PlainMessage<QueryHistoryRequest> | undefined): boolean {
|
||||
return proto3.util.equals(QueryHistoryRequest, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* QueryHistoryResponse is response type for Query/History RPC method
|
||||
*
|
||||
* @generated from message dex.v1.QueryHistoryResponse
|
||||
*/
|
||||
export class QueryHistoryResponse extends Message<QueryHistoryResponse> {
|
||||
/**
|
||||
* List of historical transactions
|
||||
*
|
||||
* @generated from field: repeated dex.v1.Transaction transactions = 1;
|
||||
*/
|
||||
transactions: Transaction[] = [];
|
||||
|
||||
/**
|
||||
* pagination defines the pagination in the response
|
||||
*
|
||||
* @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2;
|
||||
*/
|
||||
pagination?: PageResponse;
|
||||
|
||||
constructor(data?: PartialMessage<QueryHistoryResponse>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "dex.v1.QueryHistoryResponse";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "transactions", kind: "message", T: Transaction, repeated: true },
|
||||
{ no: 2, name: "pagination", kind: "message", T: PageResponse },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): QueryHistoryResponse {
|
||||
return new QueryHistoryResponse().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): QueryHistoryResponse {
|
||||
return new QueryHistoryResponse().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): QueryHistoryResponse {
|
||||
return new QueryHistoryResponse().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: QueryHistoryResponse | PlainMessage<QueryHistoryResponse> | undefined, b: QueryHistoryResponse | PlainMessage<QueryHistoryResponse> | undefined): boolean {
|
||||
return proto3.util.equals(QueryHistoryResponse, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Transaction represents a historical transaction
|
||||
*
|
||||
* @generated from message dex.v1.Transaction
|
||||
*/
|
||||
export class Transaction extends Message<Transaction> {
|
||||
/**
|
||||
* Transaction ID
|
||||
*
|
||||
* @generated from field: string tx_id = 1;
|
||||
*/
|
||||
txId = "";
|
||||
|
||||
/**
|
||||
* Operation type (swap, provide_liquidity, etc.)
|
||||
*
|
||||
* @generated from field: string operation_type = 2;
|
||||
*/
|
||||
operationType = "";
|
||||
|
||||
/**
|
||||
* Connection ID
|
||||
*
|
||||
* @generated from field: string connection_id = 3;
|
||||
*/
|
||||
connectionId = "";
|
||||
|
||||
/**
|
||||
* Transaction details (JSON)
|
||||
*
|
||||
* @generated from field: string details = 4;
|
||||
*/
|
||||
details = "";
|
||||
|
||||
/**
|
||||
* Status
|
||||
*
|
||||
* @generated from field: string status = 5;
|
||||
*/
|
||||
status = "";
|
||||
|
||||
/**
|
||||
* Timestamp
|
||||
*
|
||||
* @generated from field: string timestamp = 6;
|
||||
*/
|
||||
timestamp = "";
|
||||
|
||||
constructor(data?: PartialMessage<Transaction>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "dex.v1.Transaction";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "tx_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 2, name: "operation_type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 3, name: "connection_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 4, name: "details", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 5, name: "status", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 6, name: "timestamp", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Transaction {
|
||||
return new Transaction().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Transaction {
|
||||
return new Transaction().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Transaction {
|
||||
return new Transaction().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: Transaction | PlainMessage<Transaction> | undefined, b: Transaction | PlainMessage<Transaction> | undefined): boolean {
|
||||
return proto3.util.equals(Transaction, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,111 @@
|
||||
// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts"
|
||||
// @generated from file dex/v1/tx.proto (package dex.v1, syntax proto3)
|
||||
/* eslint-disable */
|
||||
// @ts-nocheck
|
||||
|
||||
import { MsgCancelOrder, MsgCancelOrderResponse, MsgCreateLimitOrder, MsgCreateLimitOrderResponse, MsgExecuteSwap, MsgExecuteSwapResponse, MsgProvideLiquidity, MsgProvideLiquidityResponse, MsgRegisterDEXAccount, MsgRegisterDEXAccountResponse, MsgRemoveLiquidity, MsgRemoveLiquidityResponse } from "./tx_pb.js";
|
||||
|
||||
const TYPE_NAME = "dex.v1.Msg";
|
||||
|
||||
/**
|
||||
* RegisterDEXAccount creates a new ICA account for DEX operations
|
||||
*
|
||||
* {{.MethodDescriptorProto.Name}} is a call with the method(s) {{$first := true}}{{range .Bindings}}{{if $first}}{{$first = false}}{{else}}, {{end}}{{.HTTPMethod}}{{end}} within the "{{.Service.Name}}" service.
|
||||
* It takes in "{{.RequestType.Name}}" and returns a "{{.ResponseType.Name}}".
|
||||
*
|
||||
* {{import "dex_tx_docs.md"}}
|
||||
*
|
||||
* @generated from rpc dex.v1.Msg.RegisterDEXAccount
|
||||
*/
|
||||
export const MsgRegisterDEXAccountService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "RegisterDEXAccount",
|
||||
Request: MsgRegisterDEXAccount,
|
||||
Response: MsgRegisterDEXAccountResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* ExecuteSwap performs a token swap on a remote chain
|
||||
*
|
||||
* {{.MethodDescriptorProto.Name}} is a call with the method(s) {{$first := true}}{{range .Bindings}}{{if $first}}{{$first = false}}{{else}}, {{end}}{{.HTTPMethod}}{{end}} within the "{{.Service.Name}}" service.
|
||||
* It takes in "{{.RequestType.Name}}" and returns a "{{.ResponseType.Name}}".
|
||||
*
|
||||
* {{import "dex_tx_docs.md"}}
|
||||
*
|
||||
* @generated from rpc dex.v1.Msg.ExecuteSwap
|
||||
*/
|
||||
export const MsgExecuteSwapService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "ExecuteSwap",
|
||||
Request: MsgExecuteSwap,
|
||||
Response: MsgExecuteSwapResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* ProvideLiquidity adds liquidity to a pool
|
||||
*
|
||||
* {{.MethodDescriptorProto.Name}} is a call with the method(s) {{$first := true}}{{range .Bindings}}{{if $first}}{{$first = false}}{{else}}, {{end}}{{.HTTPMethod}}{{end}} within the "{{.Service.Name}}" service.
|
||||
* It takes in "{{.RequestType.Name}}" and returns a "{{.ResponseType.Name}}".
|
||||
*
|
||||
* {{import "dex_tx_docs.md"}}
|
||||
*
|
||||
* @generated from rpc dex.v1.Msg.ProvideLiquidity
|
||||
*/
|
||||
export const MsgProvideLiquidityService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "ProvideLiquidity",
|
||||
Request: MsgProvideLiquidity,
|
||||
Response: MsgProvideLiquidityResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* RemoveLiquidity removes liquidity from a pool
|
||||
*
|
||||
* {{.MethodDescriptorProto.Name}} is a call with the method(s) {{$first := true}}{{range .Bindings}}{{if $first}}{{$first = false}}{{else}}, {{end}}{{.HTTPMethod}}{{end}} within the "{{.Service.Name}}" service.
|
||||
* It takes in "{{.RequestType.Name}}" and returns a "{{.ResponseType.Name}}".
|
||||
*
|
||||
* {{import "dex_tx_docs.md"}}
|
||||
*
|
||||
* @generated from rpc dex.v1.Msg.RemoveLiquidity
|
||||
*/
|
||||
export const MsgRemoveLiquidityService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "RemoveLiquidity",
|
||||
Request: MsgRemoveLiquidity,
|
||||
Response: MsgRemoveLiquidityResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* CreateLimitOrder creates a limit order
|
||||
*
|
||||
* {{.MethodDescriptorProto.Name}} is a call with the method(s) {{$first := true}}{{range .Bindings}}{{if $first}}{{$first = false}}{{else}}, {{end}}{{.HTTPMethod}}{{end}} within the "{{.Service.Name}}" service.
|
||||
* It takes in "{{.RequestType.Name}}" and returns a "{{.ResponseType.Name}}".
|
||||
*
|
||||
* {{import "dex_tx_docs.md"}}
|
||||
*
|
||||
* @generated from rpc dex.v1.Msg.CreateLimitOrder
|
||||
*/
|
||||
export const MsgCreateLimitOrderService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "CreateLimitOrder",
|
||||
Request: MsgCreateLimitOrder,
|
||||
Response: MsgCreateLimitOrderResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* CancelOrder cancels an existing order
|
||||
*
|
||||
* {{.MethodDescriptorProto.Name}} is a call with the method(s) {{$first := true}}{{range .Bindings}}{{if $first}}{{$first = false}}{{else}}, {{end}}{{.HTTPMethod}}{{end}} within the "{{.Service.Name}}" service.
|
||||
* It takes in "{{.RequestType.Name}}" and returns a "{{.ResponseType.Name}}".
|
||||
*
|
||||
* {{import "dex_tx_docs.md"}}
|
||||
*
|
||||
* @generated from rpc dex.v1.Msg.CancelOrder
|
||||
*/
|
||||
export const MsgCancelOrderService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "CancelOrder",
|
||||
Request: MsgCancelOrder,
|
||||
Response: MsgCancelOrderResponse,
|
||||
} as const;
|
||||
|
||||
@@ -0,0 +1,845 @@
|
||||
// @generated by protoc-gen-es v1.2.0 with parameter "target=ts"
|
||||
// @generated from file dex/v1/tx.proto (package dex.v1, syntax proto3)
|
||||
/* eslint-disable */
|
||||
// @ts-nocheck
|
||||
|
||||
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
|
||||
import { Message, proto3, protoInt64, Timestamp } from "@bufbuild/protobuf";
|
||||
import { Coin } from "../../cosmos/base/v1beta1/coin_pb.js";
|
||||
|
||||
/**
|
||||
* MsgRegisterDEXAccount registers a new ICA account for DEX operations
|
||||
*
|
||||
* @generated from message dex.v1.MsgRegisterDEXAccount
|
||||
*/
|
||||
export class MsgRegisterDEXAccount extends Message<MsgRegisterDEXAccount> {
|
||||
/**
|
||||
* DID controller requesting the account
|
||||
*
|
||||
* @generated from field: string did = 1;
|
||||
*/
|
||||
did = "";
|
||||
|
||||
/**
|
||||
* IBC connection to target chain
|
||||
*
|
||||
* @generated from field: string connection_id = 2;
|
||||
*/
|
||||
connectionId = "";
|
||||
|
||||
/**
|
||||
* Requested features for this account
|
||||
*
|
||||
* @generated from field: repeated string features = 3;
|
||||
*/
|
||||
features: string[] = [];
|
||||
|
||||
/**
|
||||
* Optional metadata
|
||||
*
|
||||
* @generated from field: string metadata = 4;
|
||||
*/
|
||||
metadata = "";
|
||||
|
||||
constructor(data?: PartialMessage<MsgRegisterDEXAccount>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "dex.v1.MsgRegisterDEXAccount";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "did", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 2, name: "connection_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 3, name: "features", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
||||
{ no: 4, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MsgRegisterDEXAccount {
|
||||
return new MsgRegisterDEXAccount().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MsgRegisterDEXAccount {
|
||||
return new MsgRegisterDEXAccount().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MsgRegisterDEXAccount {
|
||||
return new MsgRegisterDEXAccount().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: MsgRegisterDEXAccount | PlainMessage<MsgRegisterDEXAccount> | undefined, b: MsgRegisterDEXAccount | PlainMessage<MsgRegisterDEXAccount> | undefined): boolean {
|
||||
return proto3.util.equals(MsgRegisterDEXAccount, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* MsgRegisterDEXAccountResponse defines the response
|
||||
*
|
||||
* @generated from message dex.v1.MsgRegisterDEXAccountResponse
|
||||
*/
|
||||
export class MsgRegisterDEXAccountResponse extends Message<MsgRegisterDEXAccountResponse> {
|
||||
/**
|
||||
* Generated port ID for the account
|
||||
*
|
||||
* @generated from field: string port_id = 1;
|
||||
*/
|
||||
portId = "";
|
||||
|
||||
/**
|
||||
* Account address on remote chain (once available)
|
||||
*
|
||||
* @generated from field: string account_address = 2;
|
||||
*/
|
||||
accountAddress = "";
|
||||
|
||||
constructor(data?: PartialMessage<MsgRegisterDEXAccountResponse>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "dex.v1.MsgRegisterDEXAccountResponse";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "port_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 2, name: "account_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MsgRegisterDEXAccountResponse {
|
||||
return new MsgRegisterDEXAccountResponse().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MsgRegisterDEXAccountResponse {
|
||||
return new MsgRegisterDEXAccountResponse().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MsgRegisterDEXAccountResponse {
|
||||
return new MsgRegisterDEXAccountResponse().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: MsgRegisterDEXAccountResponse | PlainMessage<MsgRegisterDEXAccountResponse> | undefined, b: MsgRegisterDEXAccountResponse | PlainMessage<MsgRegisterDEXAccountResponse> | undefined): boolean {
|
||||
return proto3.util.equals(MsgRegisterDEXAccountResponse, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* MsgExecuteSwap executes a token swap on a remote chain
|
||||
*
|
||||
* @generated from message dex.v1.MsgExecuteSwap
|
||||
*/
|
||||
export class MsgExecuteSwap extends Message<MsgExecuteSwap> {
|
||||
/**
|
||||
* DID initiating the swap
|
||||
*
|
||||
* @generated from field: string did = 1;
|
||||
*/
|
||||
did = "";
|
||||
|
||||
/**
|
||||
* IBC connection to DEX chain
|
||||
*
|
||||
* @generated from field: string connection_id = 2;
|
||||
*/
|
||||
connectionId = "";
|
||||
|
||||
/**
|
||||
* Token to swap from
|
||||
*
|
||||
* @generated from field: string source_denom = 3;
|
||||
*/
|
||||
sourceDenom = "";
|
||||
|
||||
/**
|
||||
* Token to swap to
|
||||
*
|
||||
* @generated from field: string target_denom = 4;
|
||||
*/
|
||||
targetDenom = "";
|
||||
|
||||
/**
|
||||
* Amount to swap
|
||||
*
|
||||
* @generated from field: string amount = 5;
|
||||
*/
|
||||
amount = "";
|
||||
|
||||
/**
|
||||
* Minimum amount out (slippage protection)
|
||||
*
|
||||
* @generated from field: string min_amount_out = 6;
|
||||
*/
|
||||
minAmountOut = "";
|
||||
|
||||
/**
|
||||
* Optional specific route
|
||||
*
|
||||
* @generated from field: string route = 7;
|
||||
*/
|
||||
route = "";
|
||||
|
||||
/**
|
||||
* UCAN authorization token
|
||||
*
|
||||
* @generated from field: string ucan_token = 8;
|
||||
*/
|
||||
ucanToken = "";
|
||||
|
||||
/**
|
||||
* Timeout for the swap
|
||||
*
|
||||
* @generated from field: google.protobuf.Timestamp timeout = 9;
|
||||
*/
|
||||
timeout?: Timestamp;
|
||||
|
||||
constructor(data?: PartialMessage<MsgExecuteSwap>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "dex.v1.MsgExecuteSwap";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "did", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 2, name: "connection_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 3, name: "source_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 4, name: "target_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 5, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 6, name: "min_amount_out", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 7, name: "route", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 8, name: "ucan_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 9, name: "timeout", kind: "message", T: Timestamp },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MsgExecuteSwap {
|
||||
return new MsgExecuteSwap().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MsgExecuteSwap {
|
||||
return new MsgExecuteSwap().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MsgExecuteSwap {
|
||||
return new MsgExecuteSwap().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: MsgExecuteSwap | PlainMessage<MsgExecuteSwap> | undefined, b: MsgExecuteSwap | PlainMessage<MsgExecuteSwap> | undefined): boolean {
|
||||
return proto3.util.equals(MsgExecuteSwap, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* MsgExecuteSwapResponse defines the response
|
||||
*
|
||||
* @generated from message dex.v1.MsgExecuteSwapResponse
|
||||
*/
|
||||
export class MsgExecuteSwapResponse extends Message<MsgExecuteSwapResponse> {
|
||||
/**
|
||||
* Transaction ID on remote chain
|
||||
*
|
||||
* @generated from field: string tx_hash = 1;
|
||||
*/
|
||||
txHash = "";
|
||||
|
||||
/**
|
||||
* Actual amount received
|
||||
*
|
||||
* @generated from field: string amount_received = 2;
|
||||
*/
|
||||
amountReceived = "";
|
||||
|
||||
/**
|
||||
* IBC packet sequence
|
||||
*
|
||||
* @generated from field: uint64 sequence = 3;
|
||||
*/
|
||||
sequence = protoInt64.zero;
|
||||
|
||||
constructor(data?: PartialMessage<MsgExecuteSwapResponse>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "dex.v1.MsgExecuteSwapResponse";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "tx_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 2, name: "amount_received", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 3, name: "sequence", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MsgExecuteSwapResponse {
|
||||
return new MsgExecuteSwapResponse().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MsgExecuteSwapResponse {
|
||||
return new MsgExecuteSwapResponse().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MsgExecuteSwapResponse {
|
||||
return new MsgExecuteSwapResponse().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: MsgExecuteSwapResponse | PlainMessage<MsgExecuteSwapResponse> | undefined, b: MsgExecuteSwapResponse | PlainMessage<MsgExecuteSwapResponse> | undefined): boolean {
|
||||
return proto3.util.equals(MsgExecuteSwapResponse, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* MsgProvideLiquidity adds liquidity to a pool
|
||||
*
|
||||
* @generated from message dex.v1.MsgProvideLiquidity
|
||||
*/
|
||||
export class MsgProvideLiquidity extends Message<MsgProvideLiquidity> {
|
||||
/**
|
||||
* DID providing liquidity
|
||||
*
|
||||
* @generated from field: string did = 1;
|
||||
*/
|
||||
did = "";
|
||||
|
||||
/**
|
||||
* IBC connection to DEX chain
|
||||
*
|
||||
* @generated from field: string connection_id = 2;
|
||||
*/
|
||||
connectionId = "";
|
||||
|
||||
/**
|
||||
* Pool ID to add liquidity to
|
||||
*
|
||||
* @generated from field: string pool_id = 3;
|
||||
*/
|
||||
poolId = "";
|
||||
|
||||
/**
|
||||
* Assets to provide
|
||||
*
|
||||
* @generated from field: repeated cosmos.base.v1beta1.Coin assets = 4;
|
||||
*/
|
||||
assets: Coin[] = [];
|
||||
|
||||
/**
|
||||
* Minimum shares to receive (slippage protection)
|
||||
*
|
||||
* @generated from field: string min_shares = 5;
|
||||
*/
|
||||
minShares = "";
|
||||
|
||||
/**
|
||||
* UCAN authorization token
|
||||
*
|
||||
* @generated from field: string ucan_token = 6;
|
||||
*/
|
||||
ucanToken = "";
|
||||
|
||||
/**
|
||||
* Timeout for the operation
|
||||
*
|
||||
* @generated from field: google.protobuf.Timestamp timeout = 7;
|
||||
*/
|
||||
timeout?: Timestamp;
|
||||
|
||||
constructor(data?: PartialMessage<MsgProvideLiquidity>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "dex.v1.MsgProvideLiquidity";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "did", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 2, name: "connection_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 3, name: "pool_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 4, name: "assets", kind: "message", T: Coin, repeated: true },
|
||||
{ no: 5, name: "min_shares", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 6, name: "ucan_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 7, name: "timeout", kind: "message", T: Timestamp },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MsgProvideLiquidity {
|
||||
return new MsgProvideLiquidity().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MsgProvideLiquidity {
|
||||
return new MsgProvideLiquidity().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MsgProvideLiquidity {
|
||||
return new MsgProvideLiquidity().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: MsgProvideLiquidity | PlainMessage<MsgProvideLiquidity> | undefined, b: MsgProvideLiquidity | PlainMessage<MsgProvideLiquidity> | undefined): boolean {
|
||||
return proto3.util.equals(MsgProvideLiquidity, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* MsgProvideLiquidityResponse defines the response
|
||||
*
|
||||
* @generated from message dex.v1.MsgProvideLiquidityResponse
|
||||
*/
|
||||
export class MsgProvideLiquidityResponse extends Message<MsgProvideLiquidityResponse> {
|
||||
/**
|
||||
* Transaction ID on remote chain
|
||||
*
|
||||
* @generated from field: string tx_hash = 1;
|
||||
*/
|
||||
txHash = "";
|
||||
|
||||
/**
|
||||
* LP tokens received
|
||||
*
|
||||
* @generated from field: string shares_received = 2;
|
||||
*/
|
||||
sharesReceived = "";
|
||||
|
||||
/**
|
||||
* IBC packet sequence
|
||||
*
|
||||
* @generated from field: uint64 sequence = 3;
|
||||
*/
|
||||
sequence = protoInt64.zero;
|
||||
|
||||
constructor(data?: PartialMessage<MsgProvideLiquidityResponse>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "dex.v1.MsgProvideLiquidityResponse";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "tx_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 2, name: "shares_received", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 3, name: "sequence", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MsgProvideLiquidityResponse {
|
||||
return new MsgProvideLiquidityResponse().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MsgProvideLiquidityResponse {
|
||||
return new MsgProvideLiquidityResponse().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MsgProvideLiquidityResponse {
|
||||
return new MsgProvideLiquidityResponse().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: MsgProvideLiquidityResponse | PlainMessage<MsgProvideLiquidityResponse> | undefined, b: MsgProvideLiquidityResponse | PlainMessage<MsgProvideLiquidityResponse> | undefined): boolean {
|
||||
return proto3.util.equals(MsgProvideLiquidityResponse, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* MsgRemoveLiquidity removes liquidity from a pool
|
||||
*
|
||||
* @generated from message dex.v1.MsgRemoveLiquidity
|
||||
*/
|
||||
export class MsgRemoveLiquidity extends Message<MsgRemoveLiquidity> {
|
||||
/**
|
||||
* DID removing liquidity
|
||||
*
|
||||
* @generated from field: string did = 1;
|
||||
*/
|
||||
did = "";
|
||||
|
||||
/**
|
||||
* IBC connection to DEX chain
|
||||
*
|
||||
* @generated from field: string connection_id = 2;
|
||||
*/
|
||||
connectionId = "";
|
||||
|
||||
/**
|
||||
* Pool ID to remove liquidity from
|
||||
*
|
||||
* @generated from field: string pool_id = 3;
|
||||
*/
|
||||
poolId = "";
|
||||
|
||||
/**
|
||||
* Amount of shares to remove
|
||||
*
|
||||
* @generated from field: string shares = 4;
|
||||
*/
|
||||
shares = "";
|
||||
|
||||
/**
|
||||
* Minimum assets to receive
|
||||
*
|
||||
* @generated from field: repeated cosmos.base.v1beta1.Coin min_amounts = 5;
|
||||
*/
|
||||
minAmounts: Coin[] = [];
|
||||
|
||||
/**
|
||||
* UCAN authorization token
|
||||
*
|
||||
* @generated from field: string ucan_token = 6;
|
||||
*/
|
||||
ucanToken = "";
|
||||
|
||||
/**
|
||||
* Timeout for the operation
|
||||
*
|
||||
* @generated from field: google.protobuf.Timestamp timeout = 7;
|
||||
*/
|
||||
timeout?: Timestamp;
|
||||
|
||||
constructor(data?: PartialMessage<MsgRemoveLiquidity>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "dex.v1.MsgRemoveLiquidity";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "did", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 2, name: "connection_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 3, name: "pool_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 4, name: "shares", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 5, name: "min_amounts", kind: "message", T: Coin, repeated: true },
|
||||
{ no: 6, name: "ucan_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 7, name: "timeout", kind: "message", T: Timestamp },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MsgRemoveLiquidity {
|
||||
return new MsgRemoveLiquidity().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MsgRemoveLiquidity {
|
||||
return new MsgRemoveLiquidity().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MsgRemoveLiquidity {
|
||||
return new MsgRemoveLiquidity().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: MsgRemoveLiquidity | PlainMessage<MsgRemoveLiquidity> | undefined, b: MsgRemoveLiquidity | PlainMessage<MsgRemoveLiquidity> | undefined): boolean {
|
||||
return proto3.util.equals(MsgRemoveLiquidity, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* MsgRemoveLiquidityResponse defines the response
|
||||
*
|
||||
* @generated from message dex.v1.MsgRemoveLiquidityResponse
|
||||
*/
|
||||
export class MsgRemoveLiquidityResponse extends Message<MsgRemoveLiquidityResponse> {
|
||||
/**
|
||||
* Transaction ID on remote chain
|
||||
*
|
||||
* @generated from field: string tx_hash = 1;
|
||||
*/
|
||||
txHash = "";
|
||||
|
||||
/**
|
||||
* Assets received
|
||||
*
|
||||
* @generated from field: repeated cosmos.base.v1beta1.Coin assets_received = 2;
|
||||
*/
|
||||
assetsReceived: Coin[] = [];
|
||||
|
||||
/**
|
||||
* IBC packet sequence
|
||||
*
|
||||
* @generated from field: uint64 sequence = 3;
|
||||
*/
|
||||
sequence = protoInt64.zero;
|
||||
|
||||
constructor(data?: PartialMessage<MsgRemoveLiquidityResponse>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "dex.v1.MsgRemoveLiquidityResponse";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "tx_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 2, name: "assets_received", kind: "message", T: Coin, repeated: true },
|
||||
{ no: 3, name: "sequence", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MsgRemoveLiquidityResponse {
|
||||
return new MsgRemoveLiquidityResponse().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MsgRemoveLiquidityResponse {
|
||||
return new MsgRemoveLiquidityResponse().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MsgRemoveLiquidityResponse {
|
||||
return new MsgRemoveLiquidityResponse().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: MsgRemoveLiquidityResponse | PlainMessage<MsgRemoveLiquidityResponse> | undefined, b: MsgRemoveLiquidityResponse | PlainMessage<MsgRemoveLiquidityResponse> | undefined): boolean {
|
||||
return proto3.util.equals(MsgRemoveLiquidityResponse, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* MsgCreateLimitOrder creates a limit order
|
||||
*
|
||||
* @generated from message dex.v1.MsgCreateLimitOrder
|
||||
*/
|
||||
export class MsgCreateLimitOrder extends Message<MsgCreateLimitOrder> {
|
||||
/**
|
||||
* DID creating the order
|
||||
*
|
||||
* @generated from field: string did = 1;
|
||||
*/
|
||||
did = "";
|
||||
|
||||
/**
|
||||
* IBC connection to DEX chain
|
||||
*
|
||||
* @generated from field: string connection_id = 2;
|
||||
*/
|
||||
connectionId = "";
|
||||
|
||||
/**
|
||||
* Token to sell
|
||||
*
|
||||
* @generated from field: string sell_denom = 3;
|
||||
*/
|
||||
sellDenom = "";
|
||||
|
||||
/**
|
||||
* Token to buy
|
||||
*
|
||||
* @generated from field: string buy_denom = 4;
|
||||
*/
|
||||
buyDenom = "";
|
||||
|
||||
/**
|
||||
* Amount to sell
|
||||
*
|
||||
* @generated from field: string amount = 5;
|
||||
*/
|
||||
amount = "";
|
||||
|
||||
/**
|
||||
* Price per unit
|
||||
*
|
||||
* @generated from field: string price = 6;
|
||||
*/
|
||||
price = "";
|
||||
|
||||
/**
|
||||
* Order expiration
|
||||
*
|
||||
* @generated from field: google.protobuf.Timestamp expiration = 7;
|
||||
*/
|
||||
expiration?: Timestamp;
|
||||
|
||||
/**
|
||||
* UCAN authorization token
|
||||
*
|
||||
* @generated from field: string ucan_token = 8;
|
||||
*/
|
||||
ucanToken = "";
|
||||
|
||||
constructor(data?: PartialMessage<MsgCreateLimitOrder>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "dex.v1.MsgCreateLimitOrder";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "did", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 2, name: "connection_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 3, name: "sell_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 4, name: "buy_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 5, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 6, name: "price", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 7, name: "expiration", kind: "message", T: Timestamp },
|
||||
{ no: 8, name: "ucan_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MsgCreateLimitOrder {
|
||||
return new MsgCreateLimitOrder().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MsgCreateLimitOrder {
|
||||
return new MsgCreateLimitOrder().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MsgCreateLimitOrder {
|
||||
return new MsgCreateLimitOrder().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: MsgCreateLimitOrder | PlainMessage<MsgCreateLimitOrder> | undefined, b: MsgCreateLimitOrder | PlainMessage<MsgCreateLimitOrder> | undefined): boolean {
|
||||
return proto3.util.equals(MsgCreateLimitOrder, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* MsgCreateLimitOrderResponse defines the response
|
||||
*
|
||||
* @generated from message dex.v1.MsgCreateLimitOrderResponse
|
||||
*/
|
||||
export class MsgCreateLimitOrderResponse extends Message<MsgCreateLimitOrderResponse> {
|
||||
/**
|
||||
* Order ID on remote chain
|
||||
*
|
||||
* @generated from field: string order_id = 1;
|
||||
*/
|
||||
orderId = "";
|
||||
|
||||
/**
|
||||
* Transaction ID
|
||||
*
|
||||
* @generated from field: string tx_hash = 2;
|
||||
*/
|
||||
txHash = "";
|
||||
|
||||
/**
|
||||
* IBC packet sequence
|
||||
*
|
||||
* @generated from field: uint64 sequence = 3;
|
||||
*/
|
||||
sequence = protoInt64.zero;
|
||||
|
||||
constructor(data?: PartialMessage<MsgCreateLimitOrderResponse>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "dex.v1.MsgCreateLimitOrderResponse";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "order_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 2, name: "tx_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 3, name: "sequence", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MsgCreateLimitOrderResponse {
|
||||
return new MsgCreateLimitOrderResponse().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MsgCreateLimitOrderResponse {
|
||||
return new MsgCreateLimitOrderResponse().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MsgCreateLimitOrderResponse {
|
||||
return new MsgCreateLimitOrderResponse().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: MsgCreateLimitOrderResponse | PlainMessage<MsgCreateLimitOrderResponse> | undefined, b: MsgCreateLimitOrderResponse | PlainMessage<MsgCreateLimitOrderResponse> | undefined): boolean {
|
||||
return proto3.util.equals(MsgCreateLimitOrderResponse, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* MsgCancelOrder cancels an existing order
|
||||
*
|
||||
* @generated from message dex.v1.MsgCancelOrder
|
||||
*/
|
||||
export class MsgCancelOrder extends Message<MsgCancelOrder> {
|
||||
/**
|
||||
* DID canceling the order
|
||||
*
|
||||
* @generated from field: string did = 1;
|
||||
*/
|
||||
did = "";
|
||||
|
||||
/**
|
||||
* IBC connection to DEX chain
|
||||
*
|
||||
* @generated from field: string connection_id = 2;
|
||||
*/
|
||||
connectionId = "";
|
||||
|
||||
/**
|
||||
* Order ID to cancel
|
||||
*
|
||||
* @generated from field: string order_id = 3;
|
||||
*/
|
||||
orderId = "";
|
||||
|
||||
/**
|
||||
* UCAN authorization token
|
||||
*
|
||||
* @generated from field: string ucan_token = 4;
|
||||
*/
|
||||
ucanToken = "";
|
||||
|
||||
constructor(data?: PartialMessage<MsgCancelOrder>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "dex.v1.MsgCancelOrder";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "did", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 2, name: "connection_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 3, name: "order_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 4, name: "ucan_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MsgCancelOrder {
|
||||
return new MsgCancelOrder().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MsgCancelOrder {
|
||||
return new MsgCancelOrder().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MsgCancelOrder {
|
||||
return new MsgCancelOrder().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: MsgCancelOrder | PlainMessage<MsgCancelOrder> | undefined, b: MsgCancelOrder | PlainMessage<MsgCancelOrder> | undefined): boolean {
|
||||
return proto3.util.equals(MsgCancelOrder, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* MsgCancelOrderResponse defines the response
|
||||
*
|
||||
* @generated from message dex.v1.MsgCancelOrderResponse
|
||||
*/
|
||||
export class MsgCancelOrderResponse extends Message<MsgCancelOrderResponse> {
|
||||
/**
|
||||
* Transaction ID
|
||||
*
|
||||
* @generated from field: string tx_hash = 1;
|
||||
*/
|
||||
txHash = "";
|
||||
|
||||
/**
|
||||
* IBC packet sequence
|
||||
*
|
||||
* @generated from field: uint64 sequence = 2;
|
||||
*/
|
||||
sequence = protoInt64.zero;
|
||||
|
||||
constructor(data?: PartialMessage<MsgCancelOrderResponse>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "dex.v1.MsgCancelOrderResponse";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "tx_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 2, name: "sequence", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MsgCancelOrderResponse {
|
||||
return new MsgCancelOrderResponse().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MsgCancelOrderResponse {
|
||||
return new MsgCancelOrderResponse().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MsgCancelOrderResponse {
|
||||
return new MsgCancelOrderResponse().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: MsgCancelOrderResponse | PlainMessage<MsgCancelOrderResponse> | undefined, b: MsgCancelOrderResponse | PlainMessage<MsgCancelOrderResponse> | undefined): boolean {
|
||||
return proto3.util.equals(MsgCancelOrderResponse, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,42 @@
|
||||
// @generated by protoc-gen-es v1.2.0 with parameter "target=ts"
|
||||
// @generated from file did/module/v1/module.proto (package did.module.v1, 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 app config object of the module.
|
||||
* Learn more: https://docs.cosmos.network/main/building-modules/depinject
|
||||
*
|
||||
* @generated from message did.module.v1.Module
|
||||
*/
|
||||
export class Module extends Message<Module> {
|
||||
constructor(data?: PartialMessage<Module>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "did.module.v1.Module";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
]);
|
||||
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,771 @@
|
||||
// @generated by protoc-gen-es v1.2.0 with parameter "target=ts"
|
||||
// @generated from file did/v1/events.proto (package did.v1, syntax proto3)
|
||||
/* eslint-disable */
|
||||
// @ts-nocheck
|
||||
|
||||
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
|
||||
import { Message, proto3, protoInt64, Timestamp } from "@bufbuild/protobuf";
|
||||
|
||||
/**
|
||||
* EventDIDCreated is emitted when a new DID is created
|
||||
*
|
||||
* @generated from message did.v1.EventDIDCreated
|
||||
*/
|
||||
export class EventDIDCreated extends Message<EventDIDCreated> {
|
||||
/**
|
||||
* DID identifier
|
||||
*
|
||||
* @generated from field: string did = 1;
|
||||
*/
|
||||
did = "";
|
||||
|
||||
/**
|
||||
* Creator address
|
||||
*
|
||||
* @generated from field: string creator = 2;
|
||||
*/
|
||||
creator = "";
|
||||
|
||||
/**
|
||||
* Public keys added
|
||||
*
|
||||
* @generated from field: repeated string public_keys = 3;
|
||||
*/
|
||||
publicKeys: string[] = [];
|
||||
|
||||
/**
|
||||
* Services added
|
||||
*
|
||||
* @generated from field: repeated string services = 4;
|
||||
*/
|
||||
services: string[] = [];
|
||||
|
||||
/**
|
||||
* Creation timestamp
|
||||
*
|
||||
* @generated from field: google.protobuf.Timestamp created_at = 5;
|
||||
*/
|
||||
createdAt?: Timestamp;
|
||||
|
||||
/**
|
||||
* Block height
|
||||
*
|
||||
* @generated from field: uint64 block_height = 6;
|
||||
*/
|
||||
blockHeight = protoInt64.zero;
|
||||
|
||||
constructor(data?: PartialMessage<EventDIDCreated>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "did.v1.EventDIDCreated";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "did", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 2, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 3, name: "public_keys", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
||||
{ no: 4, name: "services", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
||||
{ no: 5, name: "created_at", kind: "message", T: Timestamp },
|
||||
{ no: 6, name: "block_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): EventDIDCreated {
|
||||
return new EventDIDCreated().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): EventDIDCreated {
|
||||
return new EventDIDCreated().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): EventDIDCreated {
|
||||
return new EventDIDCreated().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: EventDIDCreated | PlainMessage<EventDIDCreated> | undefined, b: EventDIDCreated | PlainMessage<EventDIDCreated> | undefined): boolean {
|
||||
return proto3.util.equals(EventDIDCreated, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* EventDIDUpdated is emitted when a DID is updated
|
||||
*
|
||||
* @generated from message did.v1.EventDIDUpdated
|
||||
*/
|
||||
export class EventDIDUpdated extends Message<EventDIDUpdated> {
|
||||
/**
|
||||
* DID identifier
|
||||
*
|
||||
* @generated from field: string did = 1;
|
||||
*/
|
||||
did = "";
|
||||
|
||||
/**
|
||||
* Updater address
|
||||
*
|
||||
* @generated from field: string updater = 2;
|
||||
*/
|
||||
updater = "";
|
||||
|
||||
/**
|
||||
* Fields that were updated
|
||||
*
|
||||
* @generated from field: repeated string fields_updated = 3;
|
||||
*/
|
||||
fieldsUpdated: string[] = [];
|
||||
|
||||
/**
|
||||
* Update timestamp
|
||||
*
|
||||
* @generated from field: google.protobuf.Timestamp updated_at = 4;
|
||||
*/
|
||||
updatedAt?: Timestamp;
|
||||
|
||||
/**
|
||||
* Block height
|
||||
*
|
||||
* @generated from field: uint64 block_height = 5;
|
||||
*/
|
||||
blockHeight = protoInt64.zero;
|
||||
|
||||
constructor(data?: PartialMessage<EventDIDUpdated>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "did.v1.EventDIDUpdated";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "did", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 2, name: "updater", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 3, name: "fields_updated", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
||||
{ no: 4, name: "updated_at", kind: "message", T: Timestamp },
|
||||
{ no: 5, name: "block_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): EventDIDUpdated {
|
||||
return new EventDIDUpdated().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): EventDIDUpdated {
|
||||
return new EventDIDUpdated().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): EventDIDUpdated {
|
||||
return new EventDIDUpdated().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: EventDIDUpdated | PlainMessage<EventDIDUpdated> | undefined, b: EventDIDUpdated | PlainMessage<EventDIDUpdated> | undefined): boolean {
|
||||
return proto3.util.equals(EventDIDUpdated, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* EventDIDDeactivated is emitted when a DID is deactivated
|
||||
*
|
||||
* @generated from message did.v1.EventDIDDeactivated
|
||||
*/
|
||||
export class EventDIDDeactivated extends Message<EventDIDDeactivated> {
|
||||
/**
|
||||
* DID identifier
|
||||
*
|
||||
* @generated from field: string did = 1;
|
||||
*/
|
||||
did = "";
|
||||
|
||||
/**
|
||||
* Deactivator address
|
||||
*
|
||||
* @generated from field: string deactivator = 2;
|
||||
*/
|
||||
deactivator = "";
|
||||
|
||||
/**
|
||||
* Deactivation timestamp
|
||||
*
|
||||
* @generated from field: google.protobuf.Timestamp deactivated_at = 3;
|
||||
*/
|
||||
deactivatedAt?: Timestamp;
|
||||
|
||||
/**
|
||||
* Block height
|
||||
*
|
||||
* @generated from field: uint64 block_height = 4;
|
||||
*/
|
||||
blockHeight = protoInt64.zero;
|
||||
|
||||
constructor(data?: PartialMessage<EventDIDDeactivated>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "did.v1.EventDIDDeactivated";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "did", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 2, name: "deactivator", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 3, name: "deactivated_at", kind: "message", T: Timestamp },
|
||||
{ no: 4, name: "block_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): EventDIDDeactivated {
|
||||
return new EventDIDDeactivated().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): EventDIDDeactivated {
|
||||
return new EventDIDDeactivated().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): EventDIDDeactivated {
|
||||
return new EventDIDDeactivated().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: EventDIDDeactivated | PlainMessage<EventDIDDeactivated> | undefined, b: EventDIDDeactivated | PlainMessage<EventDIDDeactivated> | undefined): boolean {
|
||||
return proto3.util.equals(EventDIDDeactivated, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* EventVerificationMethodAdded is emitted when a verification method is added
|
||||
*
|
||||
* @generated from message did.v1.EventVerificationMethodAdded
|
||||
*/
|
||||
export class EventVerificationMethodAdded extends Message<EventVerificationMethodAdded> {
|
||||
/**
|
||||
* DID identifier
|
||||
*
|
||||
* @generated from field: string did = 1;
|
||||
*/
|
||||
did = "";
|
||||
|
||||
/**
|
||||
* Method ID
|
||||
*
|
||||
* @generated from field: string method_id = 2;
|
||||
*/
|
||||
methodId = "";
|
||||
|
||||
/**
|
||||
* Key type
|
||||
*
|
||||
* @generated from field: string key_type = 3;
|
||||
*/
|
||||
keyType = "";
|
||||
|
||||
/**
|
||||
* Public key (encoded)
|
||||
*
|
||||
* @generated from field: string public_key = 4;
|
||||
*/
|
||||
publicKey = "";
|
||||
|
||||
/**
|
||||
* Block height
|
||||
*
|
||||
* @generated from field: uint64 block_height = 5;
|
||||
*/
|
||||
blockHeight = protoInt64.zero;
|
||||
|
||||
constructor(data?: PartialMessage<EventVerificationMethodAdded>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "did.v1.EventVerificationMethodAdded";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "did", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 2, name: "method_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 3, name: "key_type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 4, name: "public_key", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 5, name: "block_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): EventVerificationMethodAdded {
|
||||
return new EventVerificationMethodAdded().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): EventVerificationMethodAdded {
|
||||
return new EventVerificationMethodAdded().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): EventVerificationMethodAdded {
|
||||
return new EventVerificationMethodAdded().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: EventVerificationMethodAdded | PlainMessage<EventVerificationMethodAdded> | undefined, b: EventVerificationMethodAdded | PlainMessage<EventVerificationMethodAdded> | undefined): boolean {
|
||||
return proto3.util.equals(EventVerificationMethodAdded, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* EventVerificationMethodRemoved is emitted when a verification method is removed
|
||||
*
|
||||
* @generated from message did.v1.EventVerificationMethodRemoved
|
||||
*/
|
||||
export class EventVerificationMethodRemoved extends Message<EventVerificationMethodRemoved> {
|
||||
/**
|
||||
* DID identifier
|
||||
*
|
||||
* @generated from field: string did = 1;
|
||||
*/
|
||||
did = "";
|
||||
|
||||
/**
|
||||
* Method ID
|
||||
*
|
||||
* @generated from field: string method_id = 2;
|
||||
*/
|
||||
methodId = "";
|
||||
|
||||
/**
|
||||
* Block height
|
||||
*
|
||||
* @generated from field: uint64 block_height = 3;
|
||||
*/
|
||||
blockHeight = protoInt64.zero;
|
||||
|
||||
constructor(data?: PartialMessage<EventVerificationMethodRemoved>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "did.v1.EventVerificationMethodRemoved";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "did", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 2, name: "method_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 3, name: "block_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): EventVerificationMethodRemoved {
|
||||
return new EventVerificationMethodRemoved().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): EventVerificationMethodRemoved {
|
||||
return new EventVerificationMethodRemoved().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): EventVerificationMethodRemoved {
|
||||
return new EventVerificationMethodRemoved().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: EventVerificationMethodRemoved | PlainMessage<EventVerificationMethodRemoved> | undefined, b: EventVerificationMethodRemoved | PlainMessage<EventVerificationMethodRemoved> | undefined): boolean {
|
||||
return proto3.util.equals(EventVerificationMethodRemoved, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* EventServiceAdded is emitted when a service is added to a DID
|
||||
*
|
||||
* @generated from message did.v1.EventServiceAdded
|
||||
*/
|
||||
export class EventServiceAdded extends Message<EventServiceAdded> {
|
||||
/**
|
||||
* DID identifier
|
||||
*
|
||||
* @generated from field: string did = 1;
|
||||
*/
|
||||
did = "";
|
||||
|
||||
/**
|
||||
* Service ID
|
||||
*
|
||||
* @generated from field: string service_id = 2;
|
||||
*/
|
||||
serviceId = "";
|
||||
|
||||
/**
|
||||
* Service type
|
||||
*
|
||||
* @generated from field: string type = 3;
|
||||
*/
|
||||
type = "";
|
||||
|
||||
/**
|
||||
* Service endpoint
|
||||
*
|
||||
* @generated from field: string endpoint = 4;
|
||||
*/
|
||||
endpoint = "";
|
||||
|
||||
/**
|
||||
* Block height
|
||||
*
|
||||
* @generated from field: uint64 block_height = 5;
|
||||
*/
|
||||
blockHeight = protoInt64.zero;
|
||||
|
||||
constructor(data?: PartialMessage<EventServiceAdded>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "did.v1.EventServiceAdded";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "did", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 2, name: "service_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 3, name: "type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 4, name: "endpoint", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 5, name: "block_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): EventServiceAdded {
|
||||
return new EventServiceAdded().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): EventServiceAdded {
|
||||
return new EventServiceAdded().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): EventServiceAdded {
|
||||
return new EventServiceAdded().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: EventServiceAdded | PlainMessage<EventServiceAdded> | undefined, b: EventServiceAdded | PlainMessage<EventServiceAdded> | undefined): boolean {
|
||||
return proto3.util.equals(EventServiceAdded, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* EventServiceRemoved is emitted when a service is removed from a DID
|
||||
*
|
||||
* @generated from message did.v1.EventServiceRemoved
|
||||
*/
|
||||
export class EventServiceRemoved extends Message<EventServiceRemoved> {
|
||||
/**
|
||||
* DID identifier
|
||||
*
|
||||
* @generated from field: string did = 1;
|
||||
*/
|
||||
did = "";
|
||||
|
||||
/**
|
||||
* Service ID
|
||||
*
|
||||
* @generated from field: string service_id = 2;
|
||||
*/
|
||||
serviceId = "";
|
||||
|
||||
/**
|
||||
* Block height
|
||||
*
|
||||
* @generated from field: uint64 block_height = 3;
|
||||
*/
|
||||
blockHeight = protoInt64.zero;
|
||||
|
||||
constructor(data?: PartialMessage<EventServiceRemoved>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "did.v1.EventServiceRemoved";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "did", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 2, name: "service_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 3, name: "block_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): EventServiceRemoved {
|
||||
return new EventServiceRemoved().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): EventServiceRemoved {
|
||||
return new EventServiceRemoved().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): EventServiceRemoved {
|
||||
return new EventServiceRemoved().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: EventServiceRemoved | PlainMessage<EventServiceRemoved> | undefined, b: EventServiceRemoved | PlainMessage<EventServiceRemoved> | undefined): boolean {
|
||||
return proto3.util.equals(EventServiceRemoved, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* EventCredentialIssued is emitted when a verifiable credential is issued
|
||||
*
|
||||
* @generated from message did.v1.EventCredentialIssued
|
||||
*/
|
||||
export class EventCredentialIssued extends Message<EventCredentialIssued> {
|
||||
/**
|
||||
* Credential ID
|
||||
*
|
||||
* @generated from field: string credential_id = 1;
|
||||
*/
|
||||
credentialId = "";
|
||||
|
||||
/**
|
||||
* Issuer DID
|
||||
*
|
||||
* @generated from field: string issuer = 2;
|
||||
*/
|
||||
issuer = "";
|
||||
|
||||
/**
|
||||
* Subject DID
|
||||
*
|
||||
* @generated from field: string subject = 3;
|
||||
*/
|
||||
subject = "";
|
||||
|
||||
/**
|
||||
* Credential type
|
||||
*
|
||||
* @generated from field: string type = 4;
|
||||
*/
|
||||
type = "";
|
||||
|
||||
/**
|
||||
* Issuance timestamp
|
||||
*
|
||||
* @generated from field: google.protobuf.Timestamp issued_at = 5;
|
||||
*/
|
||||
issuedAt?: Timestamp;
|
||||
|
||||
/**
|
||||
* Block height
|
||||
*
|
||||
* @generated from field: uint64 block_height = 6;
|
||||
*/
|
||||
blockHeight = protoInt64.zero;
|
||||
|
||||
constructor(data?: PartialMessage<EventCredentialIssued>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "did.v1.EventCredentialIssued";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "credential_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 2, name: "issuer", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 3, name: "subject", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 4, name: "type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 5, name: "issued_at", kind: "message", T: Timestamp },
|
||||
{ no: 6, name: "block_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): EventCredentialIssued {
|
||||
return new EventCredentialIssued().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): EventCredentialIssued {
|
||||
return new EventCredentialIssued().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): EventCredentialIssued {
|
||||
return new EventCredentialIssued().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: EventCredentialIssued | PlainMessage<EventCredentialIssued> | undefined, b: EventCredentialIssued | PlainMessage<EventCredentialIssued> | undefined): boolean {
|
||||
return proto3.util.equals(EventCredentialIssued, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* EventCredentialRevoked is emitted when a credential is revoked
|
||||
*
|
||||
* @generated from message did.v1.EventCredentialRevoked
|
||||
*/
|
||||
export class EventCredentialRevoked extends Message<EventCredentialRevoked> {
|
||||
/**
|
||||
* Credential ID
|
||||
*
|
||||
* @generated from field: string credential_id = 1;
|
||||
*/
|
||||
credentialId = "";
|
||||
|
||||
/**
|
||||
* Revoker DID
|
||||
*
|
||||
* @generated from field: string revoker = 2;
|
||||
*/
|
||||
revoker = "";
|
||||
|
||||
/**
|
||||
* Revocation reason
|
||||
*
|
||||
* @generated from field: string reason = 3;
|
||||
*/
|
||||
reason = "";
|
||||
|
||||
/**
|
||||
* Revocation timestamp
|
||||
*
|
||||
* @generated from field: google.protobuf.Timestamp revoked_at = 4;
|
||||
*/
|
||||
revokedAt?: Timestamp;
|
||||
|
||||
/**
|
||||
* Block height
|
||||
*
|
||||
* @generated from field: uint64 block_height = 5;
|
||||
*/
|
||||
blockHeight = protoInt64.zero;
|
||||
|
||||
constructor(data?: PartialMessage<EventCredentialRevoked>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "did.v1.EventCredentialRevoked";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "credential_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 2, name: "revoker", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 3, name: "reason", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 4, name: "revoked_at", kind: "message", T: Timestamp },
|
||||
{ no: 5, name: "block_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): EventCredentialRevoked {
|
||||
return new EventCredentialRevoked().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): EventCredentialRevoked {
|
||||
return new EventCredentialRevoked().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): EventCredentialRevoked {
|
||||
return new EventCredentialRevoked().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: EventCredentialRevoked | PlainMessage<EventCredentialRevoked> | undefined, b: EventCredentialRevoked | PlainMessage<EventCredentialRevoked> | undefined): boolean {
|
||||
return proto3.util.equals(EventCredentialRevoked, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* EventWebAuthnRegistered is emitted when a WebAuthn credential is registered
|
||||
*
|
||||
* @generated from message did.v1.EventWebAuthnRegistered
|
||||
*/
|
||||
export class EventWebAuthnRegistered extends Message<EventWebAuthnRegistered> {
|
||||
/**
|
||||
* DID identifier
|
||||
*
|
||||
* @generated from field: string did = 1;
|
||||
*/
|
||||
did = "";
|
||||
|
||||
/**
|
||||
* WebAuthn credential ID
|
||||
*
|
||||
* @generated from field: string credential_id = 2;
|
||||
*/
|
||||
credentialId = "";
|
||||
|
||||
/**
|
||||
* Attestation type
|
||||
*
|
||||
* @generated from field: string attestation_type = 3;
|
||||
*/
|
||||
attestationType = "";
|
||||
|
||||
/**
|
||||
* Block height
|
||||
*
|
||||
* @generated from field: uint64 block_height = 4;
|
||||
*/
|
||||
blockHeight = protoInt64.zero;
|
||||
|
||||
constructor(data?: PartialMessage<EventWebAuthnRegistered>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "did.v1.EventWebAuthnRegistered";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "did", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 2, name: "credential_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 3, name: "attestation_type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 4, name: "block_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): EventWebAuthnRegistered {
|
||||
return new EventWebAuthnRegistered().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): EventWebAuthnRegistered {
|
||||
return new EventWebAuthnRegistered().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): EventWebAuthnRegistered {
|
||||
return new EventWebAuthnRegistered().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: EventWebAuthnRegistered | PlainMessage<EventWebAuthnRegistered> | undefined, b: EventWebAuthnRegistered | PlainMessage<EventWebAuthnRegistered> | undefined): boolean {
|
||||
return proto3.util.equals(EventWebAuthnRegistered, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* EventExternalWalletLinked is emitted when an external wallet is linked
|
||||
*
|
||||
* @generated from message did.v1.EventExternalWalletLinked
|
||||
*/
|
||||
export class EventExternalWalletLinked extends Message<EventExternalWalletLinked> {
|
||||
/**
|
||||
* DID identifier
|
||||
*
|
||||
* @generated from field: string did = 1;
|
||||
*/
|
||||
did = "";
|
||||
|
||||
/**
|
||||
* Wallet type (ethereum, bitcoin, etc.)
|
||||
*
|
||||
* @generated from field: string wallet_type = 2;
|
||||
*/
|
||||
walletType = "";
|
||||
|
||||
/**
|
||||
* Wallet address
|
||||
*
|
||||
* @generated from field: string wallet_address = 3;
|
||||
*/
|
||||
walletAddress = "";
|
||||
|
||||
/**
|
||||
* Block height
|
||||
*
|
||||
* @generated from field: uint64 block_height = 4;
|
||||
*/
|
||||
blockHeight = protoInt64.zero;
|
||||
|
||||
constructor(data?: PartialMessage<EventExternalWalletLinked>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "did.v1.EventExternalWalletLinked";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "did", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 2, name: "wallet_type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 3, name: "wallet_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 4, name: "block_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): EventExternalWalletLinked {
|
||||
return new EventExternalWalletLinked().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): EventExternalWalletLinked {
|
||||
return new EventExternalWalletLinked().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): EventExternalWalletLinked {
|
||||
return new EventExternalWalletLinked().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: EventExternalWalletLinked | PlainMessage<EventExternalWalletLinked> | undefined, b: EventExternalWalletLinked | PlainMessage<EventExternalWalletLinked> | undefined): boolean {
|
||||
return proto3.util.equals(EventExternalWalletLinked, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,320 @@
|
||||
// @generated by protoc-gen-es v1.2.0 with parameter "target=ts"
|
||||
// @generated from file did/v1/genesis.proto (package did.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";
|
||||
|
||||
/**
|
||||
* GenesisState defines the module genesis state
|
||||
*
|
||||
* @generated from message did.v1.GenesisState
|
||||
*/
|
||||
export class GenesisState extends Message<GenesisState> {
|
||||
/**
|
||||
* Params defines all the parameters of the module.
|
||||
*
|
||||
* @generated from field: did.v1.Params params = 1;
|
||||
*/
|
||||
params?: Params;
|
||||
|
||||
/**
|
||||
* Export format version for future migrations
|
||||
*
|
||||
* @generated from field: uint32 export_version = 2;
|
||||
*/
|
||||
exportVersion = 0;
|
||||
|
||||
constructor(data?: PartialMessage<GenesisState>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "did.v1.GenesisState";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "params", kind: "message", T: Params },
|
||||
{ no: 2, name: "export_version", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GenesisState {
|
||||
return new GenesisState().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GenesisState {
|
||||
return new GenesisState().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GenesisState {
|
||||
return new GenesisState().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: GenesisState | PlainMessage<GenesisState> | undefined, b: GenesisState | PlainMessage<GenesisState> | undefined): boolean {
|
||||
return proto3.util.equals(GenesisState, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Params defines the set of module parameters.
|
||||
*
|
||||
* @generated from message did.v1.Params
|
||||
*/
|
||||
export class Params extends Message<Params> {
|
||||
/**
|
||||
* @generated from field: did.v1.DocumentParams document = 1;
|
||||
*/
|
||||
document?: DocumentParams;
|
||||
|
||||
/**
|
||||
* @generated from field: did.v1.WebauthnParams webauthn = 2;
|
||||
*/
|
||||
webauthn?: WebauthnParams;
|
||||
|
||||
constructor(data?: PartialMessage<Params>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "did.v1.Params";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "document", kind: "message", T: DocumentParams },
|
||||
{ no: 2, name: "webauthn", kind: "message", T: WebauthnParams },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Params {
|
||||
return new Params().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Params {
|
||||
return new Params().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Params {
|
||||
return new Params().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: Params | PlainMessage<Params> | undefined, b: Params | PlainMessage<Params> | undefined): boolean {
|
||||
return proto3.util.equals(Params, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* DocumentParams defines the parameters for the DID module.
|
||||
*
|
||||
* @generated from message did.v1.DocumentParams
|
||||
*/
|
||||
export class DocumentParams extends Message<DocumentParams> {
|
||||
/**
|
||||
* AutoCreateVault enables automatic vault creation upon DID registration
|
||||
*
|
||||
* @generated from field: bool auto_create_vault = 1;
|
||||
*/
|
||||
autoCreateVault = false;
|
||||
|
||||
/**
|
||||
* MaxVerificationMethods limits the number of verification methods
|
||||
*
|
||||
* @generated from field: int32 max_verification_methods = 2;
|
||||
*/
|
||||
maxVerificationMethods = 0;
|
||||
|
||||
/**
|
||||
* MaxServiceEndpoints limits the number of service endpoints
|
||||
*
|
||||
* @generated from field: int32 max_service_endpoints = 3;
|
||||
*/
|
||||
maxServiceEndpoints = 0;
|
||||
|
||||
/**
|
||||
* MaxControllers limits the number of controllers per DID document
|
||||
*
|
||||
* @generated from field: int32 max_controllers = 4;
|
||||
*/
|
||||
maxControllers = 0;
|
||||
|
||||
/**
|
||||
* DidDocumentMaxSize limits the maximum size of a DID document in bytes
|
||||
*
|
||||
* @generated from field: int64 did_document_max_size = 5;
|
||||
*/
|
||||
didDocumentMaxSize = protoInt64.zero;
|
||||
|
||||
/**
|
||||
* DidResolutionTimeout is the timeout for resolution operations in seconds
|
||||
*
|
||||
* @generated from field: int64 did_resolution_timeout = 6;
|
||||
*/
|
||||
didResolutionTimeout = protoInt64.zero;
|
||||
|
||||
/**
|
||||
* KeyRotationInterval is the recommended interval for key rotation in seconds
|
||||
*
|
||||
* @generated from field: int64 key_rotation_interval = 7;
|
||||
*/
|
||||
keyRotationInterval = protoInt64.zero;
|
||||
|
||||
/**
|
||||
* CredentialLifetime is the default lifetime in seconds
|
||||
*
|
||||
* @generated from field: int64 credential_lifetime = 8;
|
||||
*/
|
||||
credentialLifetime = protoInt64.zero;
|
||||
|
||||
/**
|
||||
* Supported Assertion methods
|
||||
*
|
||||
* @generated from field: repeated string supported_assertion_methods = 9;
|
||||
*/
|
||||
supportedAssertionMethods: string[] = [];
|
||||
|
||||
/**
|
||||
* Supported Authentication methods
|
||||
*
|
||||
* @generated from field: repeated string supported_authentication_methods = 10;
|
||||
*/
|
||||
supportedAuthenticationMethods: string[] = [];
|
||||
|
||||
/**
|
||||
* Supported Invocation methods
|
||||
*
|
||||
* @generated from field: repeated string supported_invocation_methods = 11;
|
||||
*/
|
||||
supportedInvocationMethods: string[] = [];
|
||||
|
||||
/**
|
||||
* Supported Delegation methods
|
||||
*
|
||||
* @generated from field: repeated string supported_delegation_methods = 12;
|
||||
*/
|
||||
supportedDelegationMethods: string[] = [];
|
||||
|
||||
constructor(data?: PartialMessage<DocumentParams>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "did.v1.DocumentParams";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "auto_create_vault", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
||||
{ no: 2, name: "max_verification_methods", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
||||
{ no: 3, name: "max_service_endpoints", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
||||
{ no: 4, name: "max_controllers", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
||||
{ no: 5, name: "did_document_max_size", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
||||
{ no: 6, name: "did_resolution_timeout", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
||||
{ no: 7, name: "key_rotation_interval", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
||||
{ no: 8, name: "credential_lifetime", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
||||
{ no: 9, name: "supported_assertion_methods", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
||||
{ no: 10, name: "supported_authentication_methods", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
||||
{ no: 11, name: "supported_invocation_methods", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
||||
{ no: 12, name: "supported_delegation_methods", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DocumentParams {
|
||||
return new DocumentParams().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DocumentParams {
|
||||
return new DocumentParams().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DocumentParams {
|
||||
return new DocumentParams().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: DocumentParams | PlainMessage<DocumentParams> | undefined, b: DocumentParams | PlainMessage<DocumentParams> | undefined): boolean {
|
||||
return proto3.util.equals(DocumentParams, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* WebauthnParams defines the parameters for the WebAuthn module.
|
||||
*
|
||||
* @generated from message did.v1.WebauthnParams
|
||||
*/
|
||||
export class WebauthnParams extends Message<WebauthnParams> {
|
||||
/**
|
||||
* ChallengeTimeout is the default timeout in seconds
|
||||
*
|
||||
* @generated from field: int64 challenge_timeout = 1;
|
||||
*/
|
||||
challengeTimeout = protoInt64.zero;
|
||||
|
||||
/**
|
||||
* AllowedOrigins are the allowed WebAuthn origins for credential creation
|
||||
*
|
||||
* @generated from field: repeated string allowed_origins = 2;
|
||||
*/
|
||||
allowedOrigins: string[] = [];
|
||||
|
||||
/**
|
||||
* SupportedAlgorithms are the supported signature for WebAuthn credentials
|
||||
*
|
||||
* @generated from field: repeated string supported_algorithms = 3;
|
||||
*/
|
||||
supportedAlgorithms: string[] = [];
|
||||
|
||||
/**
|
||||
* RequireUserVerification enforces verification for WebAuthn credentials
|
||||
*
|
||||
* @generated from field: bool require_user_verification = 4;
|
||||
*/
|
||||
requireUserVerification = false;
|
||||
|
||||
/**
|
||||
* MaxCredentialsPerDID limits the number of WebAuthn credentials per DID
|
||||
*
|
||||
* @generated from field: int32 max_credentials_per_did = 5;
|
||||
*/
|
||||
maxCredentialsPerDid = 0;
|
||||
|
||||
/**
|
||||
* DefaultRPID is the default Relying Party ID for WebAuthn operations
|
||||
*
|
||||
* @generated from field: string default_rp_id = 6;
|
||||
*/
|
||||
defaultRpId = "";
|
||||
|
||||
/**
|
||||
* DefaultRPName is the default Relying Party name for WebAuthn operations
|
||||
*
|
||||
* @generated from field: string default_rp_name = 7;
|
||||
*/
|
||||
defaultRpName = "";
|
||||
|
||||
constructor(data?: PartialMessage<WebauthnParams>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "did.v1.WebauthnParams";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "challenge_timeout", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
||||
{ no: 2, name: "allowed_origins", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
||||
{ no: 3, name: "supported_algorithms", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
||||
{ no: 4, name: "require_user_verification", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
||||
{ no: 5, name: "max_credentials_per_did", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
||||
{ no: 6, name: "default_rp_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 7, name: "default_rp_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): WebauthnParams {
|
||||
return new WebauthnParams().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): WebauthnParams {
|
||||
return new WebauthnParams().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): WebauthnParams {
|
||||
return new WebauthnParams().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: WebauthnParams | PlainMessage<WebauthnParams> | undefined, b: WebauthnParams | PlainMessage<WebauthnParams> | undefined): boolean {
|
||||
return proto3.util.equals(WebauthnParams, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,158 @@
|
||||
// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts"
|
||||
// @generated from file did/v1/query.proto (package did.v1, syntax proto3)
|
||||
/* eslint-disable */
|
||||
// @ts-nocheck
|
||||
|
||||
import { QueryGetCredentialsByDIDRequest, QueryGetCredentialsByDIDResponse, QueryGetDIDDocumentRequest, QueryGetDIDDocumentResponse, QueryGetDIDDocumentsByControllerRequest, QueryGetDIDDocumentsByControllerResponse, QueryGetServiceRequest, QueryGetServiceResponse, QueryGetVerifiableCredentialRequest, QueryGetVerifiableCredentialResponse, QueryGetVerificationMethodRequest, QueryGetVerificationMethodResponse, QueryListDIDDocumentsRequest, QueryListDIDDocumentsResponse, QueryListVerifiableCredentialsRequest, QueryListVerifiableCredentialsResponse, QueryLoginStartRequest, QueryLoginStartResponse, QueryParamsRequest, QueryParamsResponse, QueryRegisterStartRequest, QueryRegisterStartResponse, QueryResolveDIDRequest, QueryResolveDIDResponse } from "./query_pb.js";
|
||||
|
||||
const TYPE_NAME = "did.v1.Query";
|
||||
|
||||
/**
|
||||
* Params queries all parameters of the module.
|
||||
*
|
||||
* @generated from rpc did.v1.Query.Params
|
||||
*/
|
||||
export const QueryParamsService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "Params",
|
||||
Request: QueryParamsRequest,
|
||||
Response: QueryParamsResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* ResolveDID resolves a DID to its DID document
|
||||
*
|
||||
* {{.MethodDescriptorProto.Name}} is a call with the method(s) {{$first := true}}{{range .Bindings}}{{if $first}}{{$first = false}}{{else}}, {{end}}{{.HTTPMethod}}{{end}} within the "{{.Service.Name}}" service.
|
||||
* It takes in "{{.RequestType.Name}}" and returns a "{{.ResponseType.Name}}".
|
||||
*
|
||||
* {{import "did_query_docs.md"}}
|
||||
*
|
||||
* @generated from rpc did.v1.Query.ResolveDID
|
||||
*/
|
||||
export const QueryResolveDIDService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "ResolveDID",
|
||||
Request: QueryResolveDIDRequest,
|
||||
Response: QueryResolveDIDResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* GetDIDDocument retrieves a DID document by its ID
|
||||
*
|
||||
* @generated from rpc did.v1.Query.GetDIDDocument
|
||||
*/
|
||||
export const QueryGetDIDDocumentService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "GetDIDDocument",
|
||||
Request: QueryGetDIDDocumentRequest,
|
||||
Response: QueryGetDIDDocumentResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* ListDIDDocuments lists all DID documents with pagination
|
||||
*
|
||||
* @generated from rpc did.v1.Query.ListDIDDocuments
|
||||
*/
|
||||
export const QueryListDIDDocumentsService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "ListDIDDocuments",
|
||||
Request: QueryListDIDDocumentsRequest,
|
||||
Response: QueryListDIDDocumentsResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* GetDIDDocumentsByController retrieves DID documents by controller
|
||||
*
|
||||
* @generated from rpc did.v1.Query.GetDIDDocumentsByController
|
||||
*/
|
||||
export const QueryGetDIDDocumentsByControllerService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "GetDIDDocumentsByController",
|
||||
Request: QueryGetDIDDocumentsByControllerRequest,
|
||||
Response: QueryGetDIDDocumentsByControllerResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* GetVerificationMethod retrieves a specific verification method
|
||||
*
|
||||
* @generated from rpc did.v1.Query.GetVerificationMethod
|
||||
*/
|
||||
export const QueryGetVerificationMethodService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "GetVerificationMethod",
|
||||
Request: QueryGetVerificationMethodRequest,
|
||||
Response: QueryGetVerificationMethodResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* GetService retrieves a specific service endpoint
|
||||
*
|
||||
* @generated from rpc did.v1.Query.GetService
|
||||
*/
|
||||
export const QueryGetServiceService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "GetService",
|
||||
Request: QueryGetServiceRequest,
|
||||
Response: QueryGetServiceResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* GetVerifiableCredential retrieves a verifiable credential by ID
|
||||
*
|
||||
* @generated from rpc did.v1.Query.GetVerifiableCredential
|
||||
*/
|
||||
export const QueryGetVerifiableCredentialService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "GetVerifiableCredential",
|
||||
Request: QueryGetVerifiableCredentialRequest,
|
||||
Response: QueryGetVerifiableCredentialResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* ListVerifiableCredentials lists all verifiable credentials with filtering options
|
||||
*
|
||||
* @generated from rpc did.v1.Query.ListVerifiableCredentials
|
||||
*/
|
||||
export const QueryListVerifiableCredentialsService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "ListVerifiableCredentials",
|
||||
Request: QueryListVerifiableCredentialsRequest,
|
||||
Response: QueryListVerifiableCredentialsResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* GetCredentialsByDID retrieves all credentials (verifiable and WebAuthn) associated with a DID
|
||||
*
|
||||
* @generated from rpc did.v1.Query.GetCredentialsByDID
|
||||
*/
|
||||
export const QueryGetCredentialsByDIDService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "GetCredentialsByDID",
|
||||
Request: QueryGetCredentialsByDIDRequest,
|
||||
Response: QueryGetCredentialsByDIDResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* RegisterStart represents the start of the registration process
|
||||
*
|
||||
* @generated from rpc did.v1.Query.RegisterStart
|
||||
*/
|
||||
export const QueryRegisterStartService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "RegisterStart",
|
||||
Request: QueryRegisterStartRequest,
|
||||
Response: QueryRegisterStartResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* LoginStart represents the start of the login process
|
||||
*
|
||||
* @generated from rpc did.v1.Query.LoginStart
|
||||
*/
|
||||
export const QueryLoginStartService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "LoginStart",
|
||||
Request: QueryLoginStartRequest,
|
||||
Response: QueryLoginStartResponse,
|
||||
} as const;
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,873 @@
|
||||
// @generated by protoc-gen-es v1.2.0 with parameter "target=ts"
|
||||
// @generated from file did/v1/state.proto (package did.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";
|
||||
import { CredentialProof, CredentialStatus, Service, VerificationMethod, VerificationMethodReference } from "./types_pb.js";
|
||||
|
||||
/**
|
||||
* Authentication is the authentication method to be used by the DID.
|
||||
*
|
||||
* @generated from message did.v1.Authentication
|
||||
*/
|
||||
export class Authentication extends Message<Authentication> {
|
||||
/**
|
||||
* The unique identifier of the assertion
|
||||
*
|
||||
* @generated from field: string did = 1;
|
||||
*/
|
||||
did = "";
|
||||
|
||||
/**
|
||||
* The authentication of the DID
|
||||
*
|
||||
* @generated from field: string controller = 2;
|
||||
*/
|
||||
controller = "";
|
||||
|
||||
/**
|
||||
* Origin of the authentication
|
||||
*
|
||||
* @generated from field: string subject = 3;
|
||||
*/
|
||||
subject = "";
|
||||
|
||||
/**
|
||||
* string is the verification method
|
||||
*
|
||||
* @generated from field: string public_key_base64 = 4;
|
||||
*/
|
||||
publicKeyBase64 = "";
|
||||
|
||||
/**
|
||||
* AssertionKind is the assertion type
|
||||
*
|
||||
* @generated from field: string did_kind = 5;
|
||||
*/
|
||||
didKind = "";
|
||||
|
||||
/**
|
||||
* CreationBlock is the block number of the creation of the authentication
|
||||
*
|
||||
* @generated from field: int64 creation_block = 6;
|
||||
*/
|
||||
creationBlock = protoInt64.zero;
|
||||
|
||||
constructor(data?: PartialMessage<Authentication>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "did.v1.Authentication";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "did", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 2, name: "controller", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 3, name: "subject", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 4, name: "public_key_base64", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 5, name: "did_kind", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 6, name: "creation_block", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Authentication {
|
||||
return new Authentication().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Authentication {
|
||||
return new Authentication().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Authentication {
|
||||
return new Authentication().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: Authentication | PlainMessage<Authentication> | undefined, b: Authentication | PlainMessage<Authentication> | undefined): boolean {
|
||||
return proto3.util.equals(Authentication, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Assertion is the assertion method to be used by the DID.
|
||||
*
|
||||
* @generated from message did.v1.Assertion
|
||||
*/
|
||||
export class Assertion extends Message<Assertion> {
|
||||
/**
|
||||
* The unique identifier of the assertion
|
||||
*
|
||||
* @generated from field: string did = 1;
|
||||
*/
|
||||
did = "";
|
||||
|
||||
/**
|
||||
* The authentication of the DID
|
||||
*
|
||||
* @generated from field: string controller = 2;
|
||||
*/
|
||||
controller = "";
|
||||
|
||||
/**
|
||||
* Origin of the authentication
|
||||
*
|
||||
* @generated from field: string subject = 3;
|
||||
*/
|
||||
subject = "";
|
||||
|
||||
/**
|
||||
* string is the verification method
|
||||
*
|
||||
* @generated from field: string public_key_base64 = 4;
|
||||
*/
|
||||
publicKeyBase64 = "";
|
||||
|
||||
/**
|
||||
* DIDKind is the DID type
|
||||
*
|
||||
* @generated from field: string did_kind = 5;
|
||||
*/
|
||||
didKind = "";
|
||||
|
||||
/**
|
||||
* CreationBlock is the block number of the creation of the authentication
|
||||
*
|
||||
* @generated from field: int64 creation_block = 6;
|
||||
*/
|
||||
creationBlock = protoInt64.zero;
|
||||
|
||||
constructor(data?: PartialMessage<Assertion>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "did.v1.Assertion";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "did", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 2, name: "controller", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 3, name: "subject", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 4, name: "public_key_base64", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 5, name: "did_kind", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 6, name: "creation_block", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Assertion {
|
||||
return new Assertion().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Assertion {
|
||||
return new Assertion().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Assertion {
|
||||
return new Assertion().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: Assertion | PlainMessage<Assertion> | undefined, b: Assertion | PlainMessage<Assertion> | undefined): boolean {
|
||||
return proto3.util.equals(Assertion, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Controller is the controller method to be used by the DID.
|
||||
*
|
||||
* @generated from message did.v1.Controller
|
||||
*/
|
||||
export class Controller extends Message<Controller> {
|
||||
/**
|
||||
* The unique identifier of the assertion
|
||||
*
|
||||
* @generated from field: string did = 1;
|
||||
*/
|
||||
did = "";
|
||||
|
||||
/**
|
||||
* The authentication of the DID
|
||||
*
|
||||
* @generated from field: string address = 2;
|
||||
*/
|
||||
address = "";
|
||||
|
||||
/**
|
||||
* Origin of the authentication
|
||||
*
|
||||
* @generated from field: string subject = 3;
|
||||
*/
|
||||
subject = "";
|
||||
|
||||
/**
|
||||
* string is the verification method
|
||||
*
|
||||
* @generated from field: string public_key_base64 = 4;
|
||||
*/
|
||||
publicKeyBase64 = "";
|
||||
|
||||
/**
|
||||
* DIDKind is the DID type
|
||||
*
|
||||
* @generated from field: string did_kind = 5;
|
||||
*/
|
||||
didKind = "";
|
||||
|
||||
/**
|
||||
* CreationBlock is the block number of the creation of the authentication
|
||||
*
|
||||
* @generated from field: int64 creation_block = 6;
|
||||
*/
|
||||
creationBlock = protoInt64.zero;
|
||||
|
||||
constructor(data?: PartialMessage<Controller>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "did.v1.Controller";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "did", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 2, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 3, name: "subject", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 4, name: "public_key_base64", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 5, name: "did_kind", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 6, name: "creation_block", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Controller {
|
||||
return new Controller().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Controller {
|
||||
return new Controller().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Controller {
|
||||
return new Controller().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: Controller | PlainMessage<Controller> | undefined, b: Controller | PlainMessage<Controller> | undefined): boolean {
|
||||
return proto3.util.equals(Controller, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Delegation is usually an external blockchain account that is used to sign
|
||||
* transactions on behalf of the DID
|
||||
*
|
||||
* @generated from message did.v1.Delegation
|
||||
*/
|
||||
export class Delegation extends Message<Delegation> {
|
||||
/**
|
||||
* The unique identifier of the assertion
|
||||
*
|
||||
* @generated from field: string did = 1;
|
||||
*/
|
||||
did = "";
|
||||
|
||||
/**
|
||||
* The authentication of the DID
|
||||
*
|
||||
* @generated from field: string controller = 2;
|
||||
*/
|
||||
controller = "";
|
||||
|
||||
/**
|
||||
* Origin of the authentication
|
||||
*
|
||||
* @generated from field: string subject = 3;
|
||||
*/
|
||||
subject = "";
|
||||
|
||||
/**
|
||||
* string is the verification method
|
||||
*
|
||||
* @generated from field: string public_key_base64 = 4;
|
||||
*/
|
||||
publicKeyBase64 = "";
|
||||
|
||||
/**
|
||||
* DIDKind is the DID type
|
||||
*
|
||||
* @generated from field: string did_kind = 5;
|
||||
*/
|
||||
didKind = "";
|
||||
|
||||
/**
|
||||
* CreationBlock is the block number of the creation of the authentication
|
||||
*
|
||||
* @generated from field: int64 creation_block = 6;
|
||||
*/
|
||||
creationBlock = protoInt64.zero;
|
||||
|
||||
constructor(data?: PartialMessage<Delegation>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "did.v1.Delegation";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "did", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 2, name: "controller", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 3, name: "subject", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 4, name: "public_key_base64", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 5, name: "did_kind", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 6, name: "creation_block", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Delegation {
|
||||
return new Delegation().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Delegation {
|
||||
return new Delegation().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Delegation {
|
||||
return new Delegation().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: Delegation | PlainMessage<Delegation> | undefined, b: Delegation | PlainMessage<Delegation> | undefined): boolean {
|
||||
return proto3.util.equals(Delegation, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Invocation is usually a smart contract that is used to sign transactions on
|
||||
* behalf of the DID
|
||||
*
|
||||
* @generated from message did.v1.Invocation
|
||||
*/
|
||||
export class Invocation extends Message<Invocation> {
|
||||
/**
|
||||
* The unique identifier of the assertion
|
||||
*
|
||||
* @generated from field: string did = 1;
|
||||
*/
|
||||
did = "";
|
||||
|
||||
/**
|
||||
* The authentication of the DID
|
||||
*
|
||||
* @generated from field: string controller = 2;
|
||||
*/
|
||||
controller = "";
|
||||
|
||||
/**
|
||||
* Origin of the authentication
|
||||
*
|
||||
* @generated from field: string subject = 3;
|
||||
*/
|
||||
subject = "";
|
||||
|
||||
/**
|
||||
* string is the verification method
|
||||
*
|
||||
* @generated from field: string public_key_base64 = 4;
|
||||
*/
|
||||
publicKeyBase64 = "";
|
||||
|
||||
/**
|
||||
* DIDKind is the DID type
|
||||
*
|
||||
* @generated from field: string did_kind = 5;
|
||||
*/
|
||||
didKind = "";
|
||||
|
||||
/**
|
||||
* CreationBlock is the block number of the creation of the authentication
|
||||
*
|
||||
* @generated from field: int64 creation_block = 6;
|
||||
*/
|
||||
creationBlock = protoInt64.zero;
|
||||
|
||||
constructor(data?: PartialMessage<Invocation>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "did.v1.Invocation";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "did", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 2, name: "controller", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 3, name: "subject", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 4, name: "public_key_base64", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 5, name: "did_kind", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 6, name: "creation_block", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Invocation {
|
||||
return new Invocation().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Invocation {
|
||||
return new Invocation().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Invocation {
|
||||
return new Invocation().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: Invocation | PlainMessage<Invocation> | undefined, b: Invocation | PlainMessage<Invocation> | undefined): boolean {
|
||||
return proto3.util.equals(Invocation, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* DIDDocument represents a W3C compliant DID Document
|
||||
*
|
||||
* @generated from message did.v1.DIDDocument
|
||||
*/
|
||||
export class DIDDocument extends Message<DIDDocument> {
|
||||
/**
|
||||
* id is the DID that is the subject of this DID Document (REQUIRED)
|
||||
*
|
||||
* @generated from field: string id = 1;
|
||||
*/
|
||||
id = "";
|
||||
|
||||
/**
|
||||
* primary_controller identifies the primary entity that controls the DID
|
||||
* document (OPTIONAL)
|
||||
*
|
||||
* @generated from field: string primary_controller = 2;
|
||||
*/
|
||||
primaryController = "";
|
||||
|
||||
/**
|
||||
* alsoKnownAs expresses other identifiers for the DID subject (OPTIONAL)
|
||||
*
|
||||
* @generated from field: repeated string also_known_as = 3;
|
||||
*/
|
||||
alsoKnownAs: string[] = [];
|
||||
|
||||
/**
|
||||
* verificationMethod expresses verification methods (OPTIONAL)
|
||||
*
|
||||
* @generated from field: repeated did.v1.VerificationMethod verification_method = 4;
|
||||
*/
|
||||
verificationMethod: VerificationMethod[] = [];
|
||||
|
||||
/**
|
||||
* authentication expresses authentication verification relationships
|
||||
* (OPTIONAL)
|
||||
*
|
||||
* @generated from field: repeated did.v1.VerificationMethodReference authentication = 5;
|
||||
*/
|
||||
authentication: VerificationMethodReference[] = [];
|
||||
|
||||
/**
|
||||
* assertionMethod expresses assertion verification relationships (OPTIONAL)
|
||||
*
|
||||
* @generated from field: repeated did.v1.VerificationMethodReference assertion_method = 6;
|
||||
*/
|
||||
assertionMethod: VerificationMethodReference[] = [];
|
||||
|
||||
/**
|
||||
* keyAgreement expresses key agreement verification relationships (OPTIONAL)
|
||||
*
|
||||
* @generated from field: repeated did.v1.VerificationMethodReference key_agreement = 7;
|
||||
*/
|
||||
keyAgreement: VerificationMethodReference[] = [];
|
||||
|
||||
/**
|
||||
* capabilityInvocation expresses capability invocation verification
|
||||
* relationships (OPTIONAL)
|
||||
*
|
||||
* @generated from field: repeated did.v1.VerificationMethodReference capability_invocation = 8;
|
||||
*/
|
||||
capabilityInvocation: VerificationMethodReference[] = [];
|
||||
|
||||
/**
|
||||
* capabilityDelegation expresses capability delegation verification
|
||||
* relationships (OPTIONAL)
|
||||
*
|
||||
* @generated from field: repeated did.v1.VerificationMethodReference capability_delegation = 9;
|
||||
*/
|
||||
capabilityDelegation: VerificationMethodReference[] = [];
|
||||
|
||||
/**
|
||||
* service expresses service endpoints (OPTIONAL)
|
||||
*
|
||||
* @generated from field: repeated did.v1.Service service = 10;
|
||||
*/
|
||||
service: Service[] = [];
|
||||
|
||||
/**
|
||||
* Block height when the DID document was created
|
||||
*
|
||||
* @generated from field: int64 created_at = 11;
|
||||
*/
|
||||
createdAt = protoInt64.zero;
|
||||
|
||||
/**
|
||||
* Block height when the DID document was last updated
|
||||
*
|
||||
* @generated from field: int64 updated_at = 12;
|
||||
*/
|
||||
updatedAt = protoInt64.zero;
|
||||
|
||||
/**
|
||||
* Whether the DID document is deactivated
|
||||
*
|
||||
* @generated from field: bool deactivated = 13;
|
||||
*/
|
||||
deactivated = false;
|
||||
|
||||
/**
|
||||
* Version number for the DID document
|
||||
*
|
||||
* @generated from field: uint64 version = 14;
|
||||
*/
|
||||
version = protoInt64.zero;
|
||||
|
||||
constructor(data?: PartialMessage<DIDDocument>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "did.v1.DIDDocument";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 2, name: "primary_controller", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 3, name: "also_known_as", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
||||
{ no: 4, name: "verification_method", kind: "message", T: VerificationMethod, repeated: true },
|
||||
{ no: 5, name: "authentication", kind: "message", T: VerificationMethodReference, repeated: true },
|
||||
{ no: 6, name: "assertion_method", kind: "message", T: VerificationMethodReference, repeated: true },
|
||||
{ no: 7, name: "key_agreement", kind: "message", T: VerificationMethodReference, repeated: true },
|
||||
{ no: 8, name: "capability_invocation", kind: "message", T: VerificationMethodReference, repeated: true },
|
||||
{ no: 9, name: "capability_delegation", kind: "message", T: VerificationMethodReference, repeated: true },
|
||||
{ no: 10, name: "service", kind: "message", T: Service, repeated: true },
|
||||
{ no: 11, name: "created_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
||||
{ no: 12, name: "updated_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
||||
{ no: 13, name: "deactivated", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
||||
{ no: 14, name: "version", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DIDDocument {
|
||||
return new DIDDocument().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DIDDocument {
|
||||
return new DIDDocument().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DIDDocument {
|
||||
return new DIDDocument().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: DIDDocument | PlainMessage<DIDDocument> | undefined, b: DIDDocument | PlainMessage<DIDDocument> | undefined): boolean {
|
||||
return proto3.util.equals(DIDDocument, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* DIDDocumentMetadata contains metadata about the DID document
|
||||
*
|
||||
* @generated from message did.v1.DIDDocumentMetadata
|
||||
*/
|
||||
export class DIDDocumentMetadata extends Message<DIDDocumentMetadata> {
|
||||
/**
|
||||
* did is the DID this metadata belongs to
|
||||
*
|
||||
* @generated from field: string did = 1;
|
||||
*/
|
||||
did = "";
|
||||
|
||||
/**
|
||||
* created is when the DID was created
|
||||
*
|
||||
* @generated from field: int64 created = 2;
|
||||
*/
|
||||
created = protoInt64.zero;
|
||||
|
||||
/**
|
||||
* updated is when the DID was last updated
|
||||
*
|
||||
* @generated from field: int64 updated = 3;
|
||||
*/
|
||||
updated = protoInt64.zero;
|
||||
|
||||
/**
|
||||
* deactivated is when the DID was deactivated (if applicable)
|
||||
*
|
||||
* @generated from field: int64 deactivated = 4;
|
||||
*/
|
||||
deactivated = protoInt64.zero;
|
||||
|
||||
/**
|
||||
* version_id is the version identifier
|
||||
*
|
||||
* @generated from field: string version_id = 5;
|
||||
*/
|
||||
versionId = "";
|
||||
|
||||
/**
|
||||
* next_update is when the next update is scheduled (if applicable)
|
||||
*
|
||||
* @generated from field: int64 next_update = 6;
|
||||
*/
|
||||
nextUpdate = protoInt64.zero;
|
||||
|
||||
/**
|
||||
* next_version_id is the next version identifier (if applicable)
|
||||
*
|
||||
* @generated from field: string next_version_id = 7;
|
||||
*/
|
||||
nextVersionId = "";
|
||||
|
||||
/**
|
||||
* equivalentId lists equivalent DIDs
|
||||
*
|
||||
* @generated from field: repeated string equivalent_id = 8;
|
||||
*/
|
||||
equivalentId: string[] = [];
|
||||
|
||||
/**
|
||||
* canonicalId is the canonical DID
|
||||
*
|
||||
* @generated from field: string canonical_id = 9;
|
||||
*/
|
||||
canonicalId = "";
|
||||
|
||||
constructor(data?: PartialMessage<DIDDocumentMetadata>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "did.v1.DIDDocumentMetadata";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "did", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 2, name: "created", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
||||
{ no: 3, name: "updated", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
||||
{ no: 4, name: "deactivated", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
||||
{ no: 5, name: "version_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 6, name: "next_update", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
||||
{ no: 7, name: "next_version_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 8, name: "equivalent_id", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
||||
{ no: 9, name: "canonical_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DIDDocumentMetadata {
|
||||
return new DIDDocumentMetadata().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DIDDocumentMetadata {
|
||||
return new DIDDocumentMetadata().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DIDDocumentMetadata {
|
||||
return new DIDDocumentMetadata().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: DIDDocumentMetadata | PlainMessage<DIDDocumentMetadata> | undefined, b: DIDDocumentMetadata | PlainMessage<DIDDocumentMetadata> | undefined): boolean {
|
||||
return proto3.util.equals(DIDDocumentMetadata, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* VerifiableCredential represents a W3C Verifiable Credential
|
||||
*
|
||||
* @generated from message did.v1.VerifiableCredential
|
||||
*/
|
||||
export class VerifiableCredential extends Message<VerifiableCredential> {
|
||||
/**
|
||||
* id is the credential identifier
|
||||
*
|
||||
* @generated from field: string id = 1;
|
||||
*/
|
||||
id = "";
|
||||
|
||||
/**
|
||||
* context is the JSON-LD contexts
|
||||
*
|
||||
* @generated from field: repeated string context = 2;
|
||||
*/
|
||||
context: string[] = [];
|
||||
|
||||
/**
|
||||
* credential_kinds is the credential types
|
||||
*
|
||||
* @generated from field: repeated string credential_kinds = 3;
|
||||
*/
|
||||
credentialKinds: string[] = [];
|
||||
|
||||
/**
|
||||
* issuer is the DID of the credential issuer
|
||||
*
|
||||
* @generated from field: string issuer = 4;
|
||||
*/
|
||||
issuer = "";
|
||||
|
||||
/**
|
||||
* issuanceDate is when the credential was issued
|
||||
*
|
||||
* @generated from field: string issuance_date = 5;
|
||||
*/
|
||||
issuanceDate = "";
|
||||
|
||||
/**
|
||||
* expirationDate is when the credential expires (optional)
|
||||
*
|
||||
* @generated from field: string expiration_date = 6;
|
||||
*/
|
||||
expirationDate = "";
|
||||
|
||||
/**
|
||||
* credentialSubject contains the claims about the subject as JSON
|
||||
*
|
||||
* @generated from field: bytes credential_subject = 7;
|
||||
*/
|
||||
credentialSubject = new Uint8Array(0);
|
||||
|
||||
/**
|
||||
* proof contains the cryptographic proof
|
||||
*
|
||||
* @generated from field: repeated did.v1.CredentialProof proof = 8;
|
||||
*/
|
||||
proof: CredentialProof[] = [];
|
||||
|
||||
/**
|
||||
* credentialStatus contains information about credential revocation
|
||||
* (optional)
|
||||
*
|
||||
* @generated from field: did.v1.CredentialStatus credential_status = 9;
|
||||
*/
|
||||
credentialStatus?: CredentialStatus;
|
||||
|
||||
/**
|
||||
* subject is the DID of the credential subject (for indexing)
|
||||
*
|
||||
* @generated from field: string subject = 10;
|
||||
*/
|
||||
subject = "";
|
||||
|
||||
/**
|
||||
* Block height when issued
|
||||
*
|
||||
* @generated from field: int64 issued_at = 11;
|
||||
*/
|
||||
issuedAt = protoInt64.zero;
|
||||
|
||||
/**
|
||||
* Block height when expires (0 if no expiration)
|
||||
*
|
||||
* @generated from field: int64 expires_at = 12;
|
||||
*/
|
||||
expiresAt = protoInt64.zero;
|
||||
|
||||
/**
|
||||
* Whether the credential is revoked
|
||||
*
|
||||
* @generated from field: bool revoked = 13;
|
||||
*/
|
||||
revoked = false;
|
||||
|
||||
constructor(data?: PartialMessage<VerifiableCredential>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "did.v1.VerifiableCredential";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 2, name: "context", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
||||
{ no: 3, name: "credential_kinds", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
||||
{ no: 4, name: "issuer", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 5, name: "issuance_date", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 6, name: "expiration_date", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 7, name: "credential_subject", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
|
||||
{ no: 8, name: "proof", kind: "message", T: CredentialProof, repeated: true },
|
||||
{ no: 9, name: "credential_status", kind: "message", T: CredentialStatus },
|
||||
{ no: 10, name: "subject", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 11, name: "issued_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
||||
{ no: 12, name: "expires_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
||||
{ no: 13, name: "revoked", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VerifiableCredential {
|
||||
return new VerifiableCredential().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VerifiableCredential {
|
||||
return new VerifiableCredential().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VerifiableCredential {
|
||||
return new VerifiableCredential().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: VerifiableCredential | PlainMessage<VerifiableCredential> | undefined, b: VerifiableCredential | PlainMessage<VerifiableCredential> | undefined): boolean {
|
||||
return proto3.util.equals(VerifiableCredential, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* DIDController represents additional controllers for a DID document
|
||||
*
|
||||
* @generated from message did.v1.DIDController
|
||||
*/
|
||||
export class DIDController extends Message<DIDController> {
|
||||
/**
|
||||
* id is the auto-incrementing primary key
|
||||
*
|
||||
* @generated from field: uint64 id = 1;
|
||||
*/
|
||||
id = protoInt64.zero;
|
||||
|
||||
/**
|
||||
* did is the DID this controller belongs to
|
||||
*
|
||||
* @generated from field: string did = 2;
|
||||
*/
|
||||
did = "";
|
||||
|
||||
/**
|
||||
* controller_did is the controller DID
|
||||
*
|
||||
* @generated from field: string controller_did = 3;
|
||||
*/
|
||||
controllerDid = "";
|
||||
|
||||
/**
|
||||
* added_at is when this controller was added
|
||||
*
|
||||
* @generated from field: int64 added_at = 4;
|
||||
*/
|
||||
addedAt = protoInt64.zero;
|
||||
|
||||
constructor(data?: PartialMessage<DIDController>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "did.v1.DIDController";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
||||
{ no: 2, name: "did", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 3, name: "controller_did", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 4, name: "added_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DIDController {
|
||||
return new DIDController().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DIDController {
|
||||
return new DIDController().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DIDController {
|
||||
return new DIDController().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: DIDController | PlainMessage<DIDController> | undefined, b: DIDController | PlainMessage<DIDController> | undefined): boolean {
|
||||
return proto3.util.equals(DIDController, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,170 @@
|
||||
// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts"
|
||||
// @generated from file did/v1/tx.proto (package did.v1, syntax proto3)
|
||||
/* eslint-disable */
|
||||
// @ts-nocheck
|
||||
|
||||
import { MsgAddService, MsgAddServiceResponse, MsgAddVerificationMethod, MsgAddVerificationMethodResponse, MsgCreateDID, MsgCreateDIDResponse, MsgDeactivateDID, MsgDeactivateDIDResponse, MsgIssueVerifiableCredential, MsgIssueVerifiableCredentialResponse, MsgLinkExternalWallet, MsgLinkExternalWalletResponse, MsgRegisterWebAuthnCredential, MsgRegisterWebAuthnCredentialResponse, MsgRemoveService, MsgRemoveServiceResponse, MsgRemoveVerificationMethod, MsgRemoveVerificationMethodResponse, MsgRevokeVerifiableCredential, MsgRevokeVerifiableCredentialResponse, MsgUpdateDID, MsgUpdateDIDResponse, MsgUpdateParams, MsgUpdateParamsResponse } from "./tx_pb.js";
|
||||
|
||||
const TYPE_NAME = "did.v1.Msg";
|
||||
|
||||
/**
|
||||
* UpdateParams defines a governance operation for updating the parameters.
|
||||
*
|
||||
* Since: cosmos-sdk 0.47
|
||||
*
|
||||
* @generated from rpc did.v1.Msg.UpdateParams
|
||||
*/
|
||||
export const MsgUpdateParamsService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "UpdateParams",
|
||||
Request: MsgUpdateParams,
|
||||
Response: MsgUpdateParamsResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* CreateDID creates a new DID document
|
||||
*
|
||||
* {{.MethodDescriptorProto.Name}} is a call with the method(s) {{$first := true}}{{range .Bindings}}{{if $first}}{{$first = false}}{{else}}, {{end}}{{.HTTPMethod}}{{end}} within the "{{.Service.Name}}" service.
|
||||
* It takes in "{{.RequestType.Name}}" and returns a "{{.ResponseType.Name}}".
|
||||
*
|
||||
* {{import "did_tx_docs.md"}}
|
||||
*
|
||||
* @generated from rpc did.v1.Msg.CreateDID
|
||||
*/
|
||||
export const MsgCreateDIDService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "CreateDID",
|
||||
Request: MsgCreateDID,
|
||||
Response: MsgCreateDIDResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* UpdateDID updates an existing DID document
|
||||
*
|
||||
* {{.MethodDescriptorProto.Name}} is a call with the method(s) {{$first := true}}{{range .Bindings}}{{if $first}}{{$first = false}}{{else}}, {{end}}{{.HTTPMethod}}{{end}} within the "{{.Service.Name}}" service.
|
||||
* It takes in "{{.RequestType.Name}}" and returns a "{{.ResponseType.Name}}".
|
||||
*
|
||||
* {{import "did_tx_docs.md"}}
|
||||
*
|
||||
* @generated from rpc did.v1.Msg.UpdateDID
|
||||
*/
|
||||
export const MsgUpdateDIDService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "UpdateDID",
|
||||
Request: MsgUpdateDID,
|
||||
Response: MsgUpdateDIDResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* DeactivateDID deactivates a DID document
|
||||
*
|
||||
* @generated from rpc did.v1.Msg.DeactivateDID
|
||||
*/
|
||||
export const MsgDeactivateDIDService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "DeactivateDID",
|
||||
Request: MsgDeactivateDID,
|
||||
Response: MsgDeactivateDIDResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* AddVerificationMethod adds a new verification method to a DID document
|
||||
*
|
||||
* @generated from rpc did.v1.Msg.AddVerificationMethod
|
||||
*/
|
||||
export const MsgAddVerificationMethodService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "AddVerificationMethod",
|
||||
Request: MsgAddVerificationMethod,
|
||||
Response: MsgAddVerificationMethodResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* RemoveVerificationMethod removes a verification method from a DID document
|
||||
*
|
||||
* @generated from rpc did.v1.Msg.RemoveVerificationMethod
|
||||
*/
|
||||
export const MsgRemoveVerificationMethodService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "RemoveVerificationMethod",
|
||||
Request: MsgRemoveVerificationMethod,
|
||||
Response: MsgRemoveVerificationMethodResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* AddService adds a new service endpoint to a DID document
|
||||
*
|
||||
* @generated from rpc did.v1.Msg.AddService
|
||||
*/
|
||||
export const MsgAddServiceService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "AddService",
|
||||
Request: MsgAddService,
|
||||
Response: MsgAddServiceResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* RemoveService removes a service endpoint from a DID document
|
||||
*
|
||||
* @generated from rpc did.v1.Msg.RemoveService
|
||||
*/
|
||||
export const MsgRemoveServiceService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "RemoveService",
|
||||
Request: MsgRemoveService,
|
||||
Response: MsgRemoveServiceResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* IssueVerifiableCredential issues a new verifiable credential
|
||||
*
|
||||
* @generated from rpc did.v1.Msg.IssueVerifiableCredential
|
||||
*/
|
||||
export const MsgIssueVerifiableCredentialService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "IssueVerifiableCredential",
|
||||
Request: MsgIssueVerifiableCredential,
|
||||
Response: MsgIssueVerifiableCredentialResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* RevokeVerifiableCredential revokes a verifiable credential
|
||||
*
|
||||
* @generated from rpc did.v1.Msg.RevokeVerifiableCredential
|
||||
*/
|
||||
export const MsgRevokeVerifiableCredentialService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "RevokeVerifiableCredential",
|
||||
Request: MsgRevokeVerifiableCredential,
|
||||
Response: MsgRevokeVerifiableCredentialResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* LinkExternalWallet links an external wallet as an assertion method
|
||||
*
|
||||
* @generated from rpc did.v1.Msg.LinkExternalWallet
|
||||
*/
|
||||
export const MsgLinkExternalWalletService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "LinkExternalWallet",
|
||||
Request: MsgLinkExternalWallet,
|
||||
Response: MsgLinkExternalWalletResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* RegisterWebAuthnCredential registers a new WebAuthn credential and creates a DID
|
||||
*
|
||||
* {{.MethodDescriptorProto.Name}} is a call with the method(s) {{$first := true}}{{range .Bindings}}{{if $first}}{{$first = false}}{{else}}, {{end}}{{.HTTPMethod}}{{end}} within the "{{.Service.Name}}" service.
|
||||
* It takes in "{{.RequestType.Name}}" and returns a "{{.ResponseType.Name}}".
|
||||
*
|
||||
* {{import "did_tx_docs.md"}}
|
||||
*
|
||||
* @generated from rpc did.v1.Msg.RegisterWebAuthnCredential
|
||||
*/
|
||||
export const MsgRegisterWebAuthnCredentialService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "RegisterWebAuthnCredential",
|
||||
Request: MsgRegisterWebAuthnCredential,
|
||||
Response: MsgRegisterWebAuthnCredentialResponse,
|
||||
} as const;
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,586 @@
|
||||
// @generated by protoc-gen-es v1.2.0 with parameter "target=ts"
|
||||
// @generated from file did/v1/types.proto (package did.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";
|
||||
|
||||
/**
|
||||
* VerificationMethod represents a verification method in a DID document
|
||||
*
|
||||
* @generated from message did.v1.VerificationMethod
|
||||
*/
|
||||
export class VerificationMethod extends Message<VerificationMethod> {
|
||||
/**
|
||||
* id is the verification method identifier (REQUIRED)
|
||||
*
|
||||
* @generated from field: string id = 1;
|
||||
*/
|
||||
id = "";
|
||||
|
||||
/**
|
||||
* verification_method_kind is the verification method type (REQUIRED)
|
||||
*
|
||||
* @generated from field: string verification_method_kind = 2;
|
||||
*/
|
||||
verificationMethodKind = "";
|
||||
|
||||
/**
|
||||
* controller is the DID that controls this verification method (REQUIRED)
|
||||
*
|
||||
* @generated from field: string controller = 3;
|
||||
*/
|
||||
controller = "";
|
||||
|
||||
/**
|
||||
* Public key material (optional, only one should be set)
|
||||
* publicKeyJwk represents the public key as a JSON Web Key
|
||||
*
|
||||
* @generated from field: string public_key_jwk = 4;
|
||||
*/
|
||||
publicKeyJwk = "";
|
||||
|
||||
/**
|
||||
* publicKeyMultibase represents the public key as multibase
|
||||
*
|
||||
* @generated from field: string public_key_multibase = 5;
|
||||
*/
|
||||
publicKeyMultibase = "";
|
||||
|
||||
/**
|
||||
* publicKeyBase58 represents the public key in Base58 (legacy)
|
||||
*
|
||||
* @generated from field: string public_key_base58 = 6;
|
||||
*/
|
||||
publicKeyBase58 = "";
|
||||
|
||||
/**
|
||||
* publicKeyBase64 represents the public key in Base64 (legacy)
|
||||
*
|
||||
* @generated from field: string public_key_base64 = 7;
|
||||
*/
|
||||
publicKeyBase64 = "";
|
||||
|
||||
/**
|
||||
* publicKeyPem represents the public key in PEM format (legacy)
|
||||
*
|
||||
* @generated from field: string public_key_pem = 8;
|
||||
*/
|
||||
publicKeyPem = "";
|
||||
|
||||
/**
|
||||
* publicKeyHex represents the public key in hexadecimal (legacy)
|
||||
*
|
||||
* @generated from field: string public_key_hex = 9;
|
||||
*/
|
||||
publicKeyHex = "";
|
||||
|
||||
/**
|
||||
* WebAuthn credential information (for WebAuthn integration)
|
||||
*
|
||||
* @generated from field: did.v1.WebAuthnCredential webauthn_credential = 10;
|
||||
*/
|
||||
webauthnCredential?: WebAuthnCredential;
|
||||
|
||||
/**
|
||||
* blockchain_account_id for external wallet linking (CAIP-10 format)
|
||||
* Format: "eip155:1:0x89a932207c485f85226d86f7cd486a89a24fcc12" for Ethereum
|
||||
* Format: "cosmos:cosmoshub-4:cosmos1..." for Cosmos chains
|
||||
*
|
||||
* @generated from field: string blockchain_account_id = 11;
|
||||
*/
|
||||
blockchainAccountId = "";
|
||||
|
||||
constructor(data?: PartialMessage<VerificationMethod>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "did.v1.VerificationMethod";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 2, name: "verification_method_kind", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 3, name: "controller", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 4, name: "public_key_jwk", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 5, name: "public_key_multibase", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 6, name: "public_key_base58", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 7, name: "public_key_base64", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 8, name: "public_key_pem", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 9, name: "public_key_hex", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 10, name: "webauthn_credential", kind: "message", T: WebAuthnCredential },
|
||||
{ no: 11, name: "blockchain_account_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VerificationMethod {
|
||||
return new VerificationMethod().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VerificationMethod {
|
||||
return new VerificationMethod().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VerificationMethod {
|
||||
return new VerificationMethod().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: VerificationMethod | PlainMessage<VerificationMethod> | undefined, b: VerificationMethod | PlainMessage<VerificationMethod> | undefined): boolean {
|
||||
return proto3.util.equals(VerificationMethod, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* VerificationMethodReference can be either an embedded verification method
|
||||
* or a reference
|
||||
*
|
||||
* @generated from message did.v1.VerificationMethodReference
|
||||
*/
|
||||
export class VerificationMethodReference extends Message<VerificationMethodReference> {
|
||||
/**
|
||||
* verification_method_id is a reference to a verification method by ID (optional)
|
||||
*
|
||||
* @generated from field: string verification_method_id = 1;
|
||||
*/
|
||||
verificationMethodId = "";
|
||||
|
||||
/**
|
||||
* embedded_verification_method is an embedded verification method (optional)
|
||||
*
|
||||
* @generated from field: did.v1.VerificationMethod embedded_verification_method = 2;
|
||||
*/
|
||||
embeddedVerificationMethod?: VerificationMethod;
|
||||
|
||||
constructor(data?: PartialMessage<VerificationMethodReference>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "did.v1.VerificationMethodReference";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "verification_method_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 2, name: "embedded_verification_method", kind: "message", T: VerificationMethod },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VerificationMethodReference {
|
||||
return new VerificationMethodReference().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VerificationMethodReference {
|
||||
return new VerificationMethodReference().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VerificationMethodReference {
|
||||
return new VerificationMethodReference().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: VerificationMethodReference | PlainMessage<VerificationMethodReference> | undefined, b: VerificationMethodReference | PlainMessage<VerificationMethodReference> | undefined): boolean {
|
||||
return proto3.util.equals(VerificationMethodReference, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Service represents a service endpoint in a DID document
|
||||
*
|
||||
* @generated from message did.v1.Service
|
||||
*/
|
||||
export class Service extends Message<Service> {
|
||||
/**
|
||||
* id is the service identifier (REQUIRED)
|
||||
*
|
||||
* @generated from field: string id = 1;
|
||||
*/
|
||||
id = "";
|
||||
|
||||
/**
|
||||
* service_kind is the service type (REQUIRED)
|
||||
*
|
||||
* @generated from field: string service_kind = 2;
|
||||
*/
|
||||
serviceKind = "";
|
||||
|
||||
/**
|
||||
* single_endpoint for a single URL
|
||||
*
|
||||
* @generated from field: string single_endpoint = 3;
|
||||
*/
|
||||
singleEndpoint = "";
|
||||
|
||||
/**
|
||||
* multiple_endpoints for multiple URLs
|
||||
*
|
||||
* @generated from field: did.v1.ServiceEndpoints multiple_endpoints = 4;
|
||||
*/
|
||||
multipleEndpoints?: ServiceEndpoints;
|
||||
|
||||
/**
|
||||
* complex_endpoint for complex endpoint objects as JSON
|
||||
*
|
||||
* @generated from field: bytes complex_endpoint = 5;
|
||||
*/
|
||||
complexEndpoint = new Uint8Array(0);
|
||||
|
||||
/**
|
||||
* Additional properties for the service
|
||||
*
|
||||
* @generated from field: map<string, string> properties = 6;
|
||||
*/
|
||||
properties: { [key: string]: string } = {};
|
||||
|
||||
constructor(data?: PartialMessage<Service>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "did.v1.Service";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 2, name: "service_kind", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 3, name: "single_endpoint", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 4, name: "multiple_endpoints", kind: "message", T: ServiceEndpoints },
|
||||
{ no: 5, name: "complex_endpoint", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
|
||||
{ no: 6, name: "properties", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Service {
|
||||
return new Service().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Service {
|
||||
return new Service().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Service {
|
||||
return new Service().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: Service | PlainMessage<Service> | undefined, b: Service | PlainMessage<Service> | undefined): boolean {
|
||||
return proto3.util.equals(Service, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* ServiceEndpoints represents multiple service endpoints
|
||||
*
|
||||
* @generated from message did.v1.ServiceEndpoints
|
||||
*/
|
||||
export class ServiceEndpoints extends Message<ServiceEndpoints> {
|
||||
/**
|
||||
* @generated from field: repeated string endpoints = 1;
|
||||
*/
|
||||
endpoints: string[] = [];
|
||||
|
||||
constructor(data?: PartialMessage<ServiceEndpoints>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "did.v1.ServiceEndpoints";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "endpoints", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ServiceEndpoints {
|
||||
return new ServiceEndpoints().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ServiceEndpoints {
|
||||
return new ServiceEndpoints().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ServiceEndpoints {
|
||||
return new ServiceEndpoints().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: ServiceEndpoints | PlainMessage<ServiceEndpoints> | undefined, b: ServiceEndpoints | PlainMessage<ServiceEndpoints> | undefined): boolean {
|
||||
return proto3.util.equals(ServiceEndpoints, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* WebAuthnCredential represents WebAuthn credential information
|
||||
*
|
||||
* @generated from message did.v1.WebAuthnCredential
|
||||
*/
|
||||
export class WebAuthnCredential extends Message<WebAuthnCredential> {
|
||||
/**
|
||||
* credential_id is the WebAuthn credential ID
|
||||
*
|
||||
* @generated from field: string credential_id = 1;
|
||||
*/
|
||||
credentialId = "";
|
||||
|
||||
/**
|
||||
* public_key is the WebAuthn public key
|
||||
*
|
||||
* @generated from field: bytes public_key = 2;
|
||||
*/
|
||||
publicKey = new Uint8Array(0);
|
||||
|
||||
/**
|
||||
* algorithm is the signing algorithm
|
||||
*
|
||||
* @generated from field: int32 algorithm = 3;
|
||||
*/
|
||||
algorithm = 0;
|
||||
|
||||
/**
|
||||
* attestation_type is the attestation type
|
||||
*
|
||||
* @generated from field: string attestation_type = 4;
|
||||
*/
|
||||
attestationType = "";
|
||||
|
||||
/**
|
||||
* origin is the origin where the credential was created
|
||||
*
|
||||
* @generated from field: string origin = 5;
|
||||
*/
|
||||
origin = "";
|
||||
|
||||
/**
|
||||
* created_at is when the credential was created
|
||||
*
|
||||
* @generated from field: int64 created_at = 6;
|
||||
*/
|
||||
createdAt = protoInt64.zero;
|
||||
|
||||
/**
|
||||
* rp_id is the Relying Party ID
|
||||
*
|
||||
* @generated from field: string rp_id = 7;
|
||||
*/
|
||||
rpId = "";
|
||||
|
||||
/**
|
||||
* rp_name is the Relying Party Name
|
||||
*
|
||||
* @generated from field: string rp_name = 8;
|
||||
*/
|
||||
rpName = "";
|
||||
|
||||
/**
|
||||
* transports are the authenticator transports
|
||||
*
|
||||
* @generated from field: repeated string transports = 9;
|
||||
*/
|
||||
transports: string[] = [];
|
||||
|
||||
/**
|
||||
* user_verified indicates whether user verification was performed
|
||||
*
|
||||
* @generated from field: bool user_verified = 10;
|
||||
*/
|
||||
userVerified = false;
|
||||
|
||||
/**
|
||||
* signature_algorithm provides detailed algorithm information
|
||||
*
|
||||
* @generated from field: string signature_algorithm = 11;
|
||||
*/
|
||||
signatureAlgorithm = "";
|
||||
|
||||
/**
|
||||
* raw_id is the base64url encoded raw credential ID
|
||||
*
|
||||
* @generated from field: string raw_id = 12;
|
||||
*/
|
||||
rawId = "";
|
||||
|
||||
/**
|
||||
* client_data_json is the base64url encoded client data JSON
|
||||
*
|
||||
* @generated from field: string client_data_json = 13;
|
||||
*/
|
||||
clientDataJson = "";
|
||||
|
||||
/**
|
||||
* attestation_object is the base64url encoded attestation object
|
||||
*
|
||||
* @generated from field: string attestation_object = 14;
|
||||
*/
|
||||
attestationObject = "";
|
||||
|
||||
constructor(data?: PartialMessage<WebAuthnCredential>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "did.v1.WebAuthnCredential";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "credential_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 2, name: "public_key", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
|
||||
{ no: 3, name: "algorithm", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
||||
{ no: 4, name: "attestation_type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 5, name: "origin", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 6, name: "created_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
||||
{ no: 7, name: "rp_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 8, name: "rp_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 9, name: "transports", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
||||
{ no: 10, name: "user_verified", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
||||
{ no: 11, name: "signature_algorithm", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 12, name: "raw_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 13, name: "client_data_json", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 14, name: "attestation_object", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): WebAuthnCredential {
|
||||
return new WebAuthnCredential().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): WebAuthnCredential {
|
||||
return new WebAuthnCredential().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): WebAuthnCredential {
|
||||
return new WebAuthnCredential().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: WebAuthnCredential | PlainMessage<WebAuthnCredential> | undefined, b: WebAuthnCredential | PlainMessage<WebAuthnCredential> | undefined): boolean {
|
||||
return proto3.util.equals(WebAuthnCredential, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* CredentialProof represents a cryptographic proof for a verifiable
|
||||
* credential
|
||||
*
|
||||
* @generated from message did.v1.CredentialProof
|
||||
*/
|
||||
export class CredentialProof extends Message<CredentialProof> {
|
||||
/**
|
||||
* proof_kind is the proof type
|
||||
*
|
||||
* @generated from field: string proof_kind = 1;
|
||||
*/
|
||||
proofKind = "";
|
||||
|
||||
/**
|
||||
* created is when the proof was created
|
||||
*
|
||||
* @generated from field: string created = 2;
|
||||
*/
|
||||
created = "";
|
||||
|
||||
/**
|
||||
* verificationMethod is the verification method used
|
||||
*
|
||||
* @generated from field: string verification_method = 3;
|
||||
*/
|
||||
verificationMethod = "";
|
||||
|
||||
/**
|
||||
* proofPurpose is the purpose of the proof
|
||||
*
|
||||
* @generated from field: string proof_purpose = 4;
|
||||
*/
|
||||
proofPurpose = "";
|
||||
|
||||
/**
|
||||
* signature is the cryptographic signature
|
||||
*
|
||||
* @generated from field: string signature = 5;
|
||||
*/
|
||||
signature = "";
|
||||
|
||||
/**
|
||||
* Additional proof properties
|
||||
*
|
||||
* @generated from field: map<string, string> properties = 6;
|
||||
*/
|
||||
properties: { [key: string]: string } = {};
|
||||
|
||||
constructor(data?: PartialMessage<CredentialProof>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "did.v1.CredentialProof";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "proof_kind", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 2, name: "created", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 3, name: "verification_method", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 4, name: "proof_purpose", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 5, name: "signature", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 6, name: "properties", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CredentialProof {
|
||||
return new CredentialProof().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CredentialProof {
|
||||
return new CredentialProof().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CredentialProof {
|
||||
return new CredentialProof().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: CredentialProof | PlainMessage<CredentialProof> | undefined, b: CredentialProof | PlainMessage<CredentialProof> | undefined): boolean {
|
||||
return proto3.util.equals(CredentialProof, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* CredentialStatus represents the revocation status of a credential
|
||||
*
|
||||
* @generated from message did.v1.CredentialStatus
|
||||
*/
|
||||
export class CredentialStatus extends Message<CredentialStatus> {
|
||||
/**
|
||||
* id is the status identifier
|
||||
*
|
||||
* @generated from field: string id = 1;
|
||||
*/
|
||||
id = "";
|
||||
|
||||
/**
|
||||
* status_kind is the status type
|
||||
*
|
||||
* @generated from field: string status_kind = 2;
|
||||
*/
|
||||
statusKind = "";
|
||||
|
||||
/**
|
||||
* Additional status properties
|
||||
*
|
||||
* @generated from field: map<string, string> properties = 3;
|
||||
*/
|
||||
properties: { [key: string]: string } = {};
|
||||
|
||||
constructor(data?: PartialMessage<CredentialStatus>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "did.v1.CredentialStatus";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 2, name: "status_kind", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 3, name: "properties", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CredentialStatus {
|
||||
return new CredentialStatus().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CredentialStatus {
|
||||
return new CredentialStatus().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CredentialStatus {
|
||||
return new CredentialStatus().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: CredentialStatus | PlainMessage<CredentialStatus> | undefined, b: CredentialStatus | PlainMessage<CredentialStatus> | undefined): boolean {
|
||||
return proto3.util.equals(CredentialStatus, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,42 @@
|
||||
// @generated by protoc-gen-es v1.2.0 with parameter "target=ts"
|
||||
// @generated from file dwn/module/v1/module.proto (package dwn.module.v1, 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 app config object of the module.
|
||||
* Learn more: https://docs.cosmos.network/main/building-modules/depinject
|
||||
*
|
||||
* @generated from message dwn.module.v1.Module
|
||||
*/
|
||||
export class Module extends Message<Module> {
|
||||
constructor(data?: PartialMessage<Module>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "dwn.module.v1.Module";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
]);
|
||||
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,600 @@
|
||||
// @generated by protoc-gen-es v1.2.0 with parameter "target=ts"
|
||||
// @generated from file dwn/v1/events.proto (package dwn.v1, syntax proto3)
|
||||
/* eslint-disable */
|
||||
// @ts-nocheck
|
||||
|
||||
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
|
||||
import { Message, proto3, protoInt64, Timestamp } from "@bufbuild/protobuf";
|
||||
|
||||
/**
|
||||
* EventRecordWritten is emitted when a record is written to DWN
|
||||
*
|
||||
* @generated from message dwn.v1.EventRecordWritten
|
||||
*/
|
||||
export class EventRecordWritten extends Message<EventRecordWritten> {
|
||||
/**
|
||||
* Record ID
|
||||
*
|
||||
* @generated from field: string record_id = 1;
|
||||
*/
|
||||
recordId = "";
|
||||
|
||||
/**
|
||||
* Target DID
|
||||
*
|
||||
* @generated from field: string target = 2;
|
||||
*/
|
||||
target = "";
|
||||
|
||||
/**
|
||||
* Protocol URI
|
||||
*
|
||||
* @generated from field: string protocol = 3;
|
||||
*/
|
||||
protocol = "";
|
||||
|
||||
/**
|
||||
* Schema URI
|
||||
*
|
||||
* @generated from field: string schema = 4;
|
||||
*/
|
||||
schema = "";
|
||||
|
||||
/**
|
||||
* Data CID
|
||||
*
|
||||
* @generated from field: string data_cid = 5;
|
||||
*/
|
||||
dataCid = "";
|
||||
|
||||
/**
|
||||
* Data size in bytes
|
||||
*
|
||||
* @generated from field: uint64 data_size = 6;
|
||||
*/
|
||||
dataSize = protoInt64.zero;
|
||||
|
||||
/**
|
||||
* Whether data is encrypted
|
||||
*
|
||||
* @generated from field: bool encrypted = 7;
|
||||
*/
|
||||
encrypted = false;
|
||||
|
||||
/**
|
||||
* Block height
|
||||
*
|
||||
* @generated from field: uint64 block_height = 8;
|
||||
*/
|
||||
blockHeight = protoInt64.zero;
|
||||
|
||||
constructor(data?: PartialMessage<EventRecordWritten>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "dwn.v1.EventRecordWritten";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "record_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 2, name: "target", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 3, name: "protocol", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 4, name: "schema", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 5, name: "data_cid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 6, name: "data_size", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
||||
{ no: 7, name: "encrypted", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
||||
{ no: 8, name: "block_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): EventRecordWritten {
|
||||
return new EventRecordWritten().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): EventRecordWritten {
|
||||
return new EventRecordWritten().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): EventRecordWritten {
|
||||
return new EventRecordWritten().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: EventRecordWritten | PlainMessage<EventRecordWritten> | undefined, b: EventRecordWritten | PlainMessage<EventRecordWritten> | undefined): boolean {
|
||||
return proto3.util.equals(EventRecordWritten, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* EventRecordDeleted is emitted when a record is deleted from DWN
|
||||
*
|
||||
* @generated from message dwn.v1.EventRecordDeleted
|
||||
*/
|
||||
export class EventRecordDeleted extends Message<EventRecordDeleted> {
|
||||
/**
|
||||
* Record ID
|
||||
*
|
||||
* @generated from field: string record_id = 1;
|
||||
*/
|
||||
recordId = "";
|
||||
|
||||
/**
|
||||
* Target DID
|
||||
*
|
||||
* @generated from field: string target = 2;
|
||||
*/
|
||||
target = "";
|
||||
|
||||
/**
|
||||
* Deleter address
|
||||
*
|
||||
* @generated from field: string deleter = 3;
|
||||
*/
|
||||
deleter = "";
|
||||
|
||||
/**
|
||||
* Block height
|
||||
*
|
||||
* @generated from field: uint64 block_height = 4;
|
||||
*/
|
||||
blockHeight = protoInt64.zero;
|
||||
|
||||
constructor(data?: PartialMessage<EventRecordDeleted>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "dwn.v1.EventRecordDeleted";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "record_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 2, name: "target", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 3, name: "deleter", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 4, name: "block_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): EventRecordDeleted {
|
||||
return new EventRecordDeleted().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): EventRecordDeleted {
|
||||
return new EventRecordDeleted().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): EventRecordDeleted {
|
||||
return new EventRecordDeleted().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: EventRecordDeleted | PlainMessage<EventRecordDeleted> | undefined, b: EventRecordDeleted | PlainMessage<EventRecordDeleted> | undefined): boolean {
|
||||
return proto3.util.equals(EventRecordDeleted, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* EventProtocolConfigured is emitted when a protocol is configured
|
||||
*
|
||||
* @generated from message dwn.v1.EventProtocolConfigured
|
||||
*/
|
||||
export class EventProtocolConfigured extends Message<EventProtocolConfigured> {
|
||||
/**
|
||||
* Target DID
|
||||
*
|
||||
* @generated from field: string target = 1;
|
||||
*/
|
||||
target = "";
|
||||
|
||||
/**
|
||||
* Protocol URI
|
||||
*
|
||||
* @generated from field: string protocol_uri = 2;
|
||||
*/
|
||||
protocolUri = "";
|
||||
|
||||
/**
|
||||
* Whether protocol is published
|
||||
*
|
||||
* @generated from field: bool published = 3;
|
||||
*/
|
||||
published = false;
|
||||
|
||||
/**
|
||||
* Block height
|
||||
*
|
||||
* @generated from field: uint64 block_height = 4;
|
||||
*/
|
||||
blockHeight = protoInt64.zero;
|
||||
|
||||
constructor(data?: PartialMessage<EventProtocolConfigured>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "dwn.v1.EventProtocolConfigured";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "target", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 2, name: "protocol_uri", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 3, name: "published", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
||||
{ no: 4, name: "block_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): EventProtocolConfigured {
|
||||
return new EventProtocolConfigured().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): EventProtocolConfigured {
|
||||
return new EventProtocolConfigured().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): EventProtocolConfigured {
|
||||
return new EventProtocolConfigured().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: EventProtocolConfigured | PlainMessage<EventProtocolConfigured> | undefined, b: EventProtocolConfigured | PlainMessage<EventProtocolConfigured> | undefined): boolean {
|
||||
return proto3.util.equals(EventProtocolConfigured, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* EventPermissionGranted is emitted when a permission is granted
|
||||
*
|
||||
* @generated from message dwn.v1.EventPermissionGranted
|
||||
*/
|
||||
export class EventPermissionGranted extends Message<EventPermissionGranted> {
|
||||
/**
|
||||
* Permission ID
|
||||
*
|
||||
* @generated from field: string permission_id = 1;
|
||||
*/
|
||||
permissionId = "";
|
||||
|
||||
/**
|
||||
* Grantor DID
|
||||
*
|
||||
* @generated from field: string grantor = 2;
|
||||
*/
|
||||
grantor = "";
|
||||
|
||||
/**
|
||||
* Grantee DID
|
||||
*
|
||||
* @generated from field: string grantee = 3;
|
||||
*/
|
||||
grantee = "";
|
||||
|
||||
/**
|
||||
* Interface name
|
||||
*
|
||||
* @generated from field: string interface_name = 4;
|
||||
*/
|
||||
interfaceName = "";
|
||||
|
||||
/**
|
||||
* Method name
|
||||
*
|
||||
* @generated from field: string method = 5;
|
||||
*/
|
||||
method = "";
|
||||
|
||||
/**
|
||||
* Expiration timestamp
|
||||
*
|
||||
* @generated from field: google.protobuf.Timestamp expires_at = 6;
|
||||
*/
|
||||
expiresAt?: Timestamp;
|
||||
|
||||
/**
|
||||
* Block height
|
||||
*
|
||||
* @generated from field: uint64 block_height = 7;
|
||||
*/
|
||||
blockHeight = protoInt64.zero;
|
||||
|
||||
constructor(data?: PartialMessage<EventPermissionGranted>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "dwn.v1.EventPermissionGranted";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "permission_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 2, name: "grantor", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 3, name: "grantee", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 4, name: "interface_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 5, name: "method", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 6, name: "expires_at", kind: "message", T: Timestamp },
|
||||
{ no: 7, name: "block_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): EventPermissionGranted {
|
||||
return new EventPermissionGranted().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): EventPermissionGranted {
|
||||
return new EventPermissionGranted().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): EventPermissionGranted {
|
||||
return new EventPermissionGranted().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: EventPermissionGranted | PlainMessage<EventPermissionGranted> | undefined, b: EventPermissionGranted | PlainMessage<EventPermissionGranted> | undefined): boolean {
|
||||
return proto3.util.equals(EventPermissionGranted, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* EventPermissionRevoked is emitted when a permission is revoked
|
||||
*
|
||||
* @generated from message dwn.v1.EventPermissionRevoked
|
||||
*/
|
||||
export class EventPermissionRevoked extends Message<EventPermissionRevoked> {
|
||||
/**
|
||||
* Permission ID
|
||||
*
|
||||
* @generated from field: string permission_id = 1;
|
||||
*/
|
||||
permissionId = "";
|
||||
|
||||
/**
|
||||
* Revoker DID
|
||||
*
|
||||
* @generated from field: string revoker = 2;
|
||||
*/
|
||||
revoker = "";
|
||||
|
||||
/**
|
||||
* Block height
|
||||
*
|
||||
* @generated from field: uint64 block_height = 3;
|
||||
*/
|
||||
blockHeight = protoInt64.zero;
|
||||
|
||||
constructor(data?: PartialMessage<EventPermissionRevoked>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "dwn.v1.EventPermissionRevoked";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "permission_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 2, name: "revoker", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 3, name: "block_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): EventPermissionRevoked {
|
||||
return new EventPermissionRevoked().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): EventPermissionRevoked {
|
||||
return new EventPermissionRevoked().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): EventPermissionRevoked {
|
||||
return new EventPermissionRevoked().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: EventPermissionRevoked | PlainMessage<EventPermissionRevoked> | undefined, b: EventPermissionRevoked | PlainMessage<EventPermissionRevoked> | undefined): boolean {
|
||||
return proto3.util.equals(EventPermissionRevoked, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* EventVaultCreated is emitted when a vault is created
|
||||
*
|
||||
* @generated from message dwn.v1.EventVaultCreated
|
||||
*/
|
||||
export class EventVaultCreated extends Message<EventVaultCreated> {
|
||||
/**
|
||||
* Vault ID
|
||||
*
|
||||
* @generated from field: string vault_id = 1;
|
||||
*/
|
||||
vaultId = "";
|
||||
|
||||
/**
|
||||
* Owner DID
|
||||
*
|
||||
* @generated from field: string owner = 2;
|
||||
*/
|
||||
owner = "";
|
||||
|
||||
/**
|
||||
* Vault public key
|
||||
*
|
||||
* @generated from field: string public_key = 3;
|
||||
*/
|
||||
publicKey = "";
|
||||
|
||||
/**
|
||||
* Block height
|
||||
*
|
||||
* @generated from field: uint64 block_height = 4;
|
||||
*/
|
||||
blockHeight = protoInt64.zero;
|
||||
|
||||
constructor(data?: PartialMessage<EventVaultCreated>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "dwn.v1.EventVaultCreated";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "vault_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 2, name: "owner", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 3, name: "public_key", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 4, name: "block_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): EventVaultCreated {
|
||||
return new EventVaultCreated().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): EventVaultCreated {
|
||||
return new EventVaultCreated().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): EventVaultCreated {
|
||||
return new EventVaultCreated().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: EventVaultCreated | PlainMessage<EventVaultCreated> | undefined, b: EventVaultCreated | PlainMessage<EventVaultCreated> | undefined): boolean {
|
||||
return proto3.util.equals(EventVaultCreated, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* EventVaultKeysRotated is emitted when vault keys are rotated
|
||||
*
|
||||
* @generated from message dwn.v1.EventVaultKeysRotated
|
||||
*/
|
||||
export class EventVaultKeysRotated extends Message<EventVaultKeysRotated> {
|
||||
/**
|
||||
* Vault ID
|
||||
*
|
||||
* @generated from field: string vault_id = 1;
|
||||
*/
|
||||
vaultId = "";
|
||||
|
||||
/**
|
||||
* Owner DID
|
||||
*
|
||||
* @generated from field: string owner = 2;
|
||||
*/
|
||||
owner = "";
|
||||
|
||||
/**
|
||||
* New public key
|
||||
*
|
||||
* @generated from field: string new_public_key = 3;
|
||||
*/
|
||||
newPublicKey = "";
|
||||
|
||||
/**
|
||||
* Rotation height
|
||||
*
|
||||
* @generated from field: uint64 rotation_height = 4;
|
||||
*/
|
||||
rotationHeight = protoInt64.zero;
|
||||
|
||||
/**
|
||||
* Block height
|
||||
*
|
||||
* @generated from field: uint64 block_height = 5;
|
||||
*/
|
||||
blockHeight = protoInt64.zero;
|
||||
|
||||
constructor(data?: PartialMessage<EventVaultKeysRotated>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "dwn.v1.EventVaultKeysRotated";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "vault_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 2, name: "owner", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 3, name: "new_public_key", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 4, name: "rotation_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
||||
{ no: 5, name: "block_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): EventVaultKeysRotated {
|
||||
return new EventVaultKeysRotated().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): EventVaultKeysRotated {
|
||||
return new EventVaultKeysRotated().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): EventVaultKeysRotated {
|
||||
return new EventVaultKeysRotated().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: EventVaultKeysRotated | PlainMessage<EventVaultKeysRotated> | undefined, b: EventVaultKeysRotated | PlainMessage<EventVaultKeysRotated> | undefined): boolean {
|
||||
return proto3.util.equals(EventVaultKeysRotated, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* EventKeyRotation is emitted when encryption keys are rotated
|
||||
*
|
||||
* @generated from message dwn.v1.EventKeyRotation
|
||||
*/
|
||||
export class EventKeyRotation extends Message<EventKeyRotation> {
|
||||
/**
|
||||
* Previous key version (0 if first rotation)
|
||||
*
|
||||
* @generated from field: uint64 old_key_version = 1;
|
||||
*/
|
||||
oldKeyVersion = protoInt64.zero;
|
||||
|
||||
/**
|
||||
* New key version
|
||||
*
|
||||
* @generated from field: uint64 new_key_version = 2;
|
||||
*/
|
||||
newKeyVersion = protoInt64.zero;
|
||||
|
||||
/**
|
||||
* Reason for rotation
|
||||
*
|
||||
* @generated from field: string reason = 3;
|
||||
*/
|
||||
reason = "";
|
||||
|
||||
/**
|
||||
* Block height when rotation occurred
|
||||
*
|
||||
* @generated from field: uint64 block_height = 4;
|
||||
*/
|
||||
blockHeight = protoInt64.zero;
|
||||
|
||||
/**
|
||||
* Whether running in single node mode
|
||||
*
|
||||
* @generated from field: bool single_node_mode = 5;
|
||||
*/
|
||||
singleNodeMode = false;
|
||||
|
||||
/**
|
||||
* Number of validators at time of rotation
|
||||
*
|
||||
* @generated from field: uint32 validator_count = 6;
|
||||
*/
|
||||
validatorCount = 0;
|
||||
|
||||
constructor(data?: PartialMessage<EventKeyRotation>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "dwn.v1.EventKeyRotation";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "old_key_version", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
||||
{ no: 2, name: "new_key_version", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
||||
{ no: 3, name: "reason", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 4, name: "block_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
||||
{ no: 5, name: "single_node_mode", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
||||
{ no: 6, name: "validator_count", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): EventKeyRotation {
|
||||
return new EventKeyRotation().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): EventKeyRotation {
|
||||
return new EventKeyRotation().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): EventKeyRotation {
|
||||
return new EventKeyRotation().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: EventKeyRotation | PlainMessage<EventKeyRotation> | undefined, b: EventKeyRotation | PlainMessage<EventKeyRotation> | undefined): boolean {
|
||||
return proto3.util.equals(EventKeyRotation, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,258 @@
|
||||
// @generated by protoc-gen-es v1.2.0 with parameter "target=ts"
|
||||
// @generated from file dwn/v1/genesis.proto (package dwn.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";
|
||||
import { DWNPermission, DWNProtocol, DWNRecord, VaultState } from "./state_pb.js";
|
||||
|
||||
/**
|
||||
* GenesisState defines the module genesis state
|
||||
*
|
||||
* @generated from message dwn.v1.GenesisState
|
||||
*/
|
||||
export class GenesisState extends Message<GenesisState> {
|
||||
/**
|
||||
* Params defines all the parameters of the module.
|
||||
*
|
||||
* @generated from field: dwn.v1.Params params = 1;
|
||||
*/
|
||||
params?: Params;
|
||||
|
||||
/**
|
||||
* DWN Records
|
||||
*
|
||||
* @generated from field: repeated dwn.v1.DWNRecord records = 2;
|
||||
*/
|
||||
records: DWNRecord[] = [];
|
||||
|
||||
/**
|
||||
* DWN Protocols
|
||||
*
|
||||
* @generated from field: repeated dwn.v1.DWNProtocol protocols = 3;
|
||||
*/
|
||||
protocols: DWNProtocol[] = [];
|
||||
|
||||
/**
|
||||
* DWN Permissions
|
||||
*
|
||||
* @generated from field: repeated dwn.v1.DWNPermission permissions = 4;
|
||||
*/
|
||||
permissions: DWNPermission[] = [];
|
||||
|
||||
/**
|
||||
* Vaults
|
||||
*
|
||||
* @generated from field: repeated dwn.v1.VaultState vaults = 5;
|
||||
*/
|
||||
vaults: VaultState[] = [];
|
||||
|
||||
constructor(data?: PartialMessage<GenesisState>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "dwn.v1.GenesisState";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "params", kind: "message", T: Params },
|
||||
{ no: 2, name: "records", kind: "message", T: DWNRecord, repeated: true },
|
||||
{ no: 3, name: "protocols", kind: "message", T: DWNProtocol, repeated: true },
|
||||
{ no: 4, name: "permissions", kind: "message", T: DWNPermission, repeated: true },
|
||||
{ no: 5, name: "vaults", kind: "message", T: VaultState, repeated: true },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GenesisState {
|
||||
return new GenesisState().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GenesisState {
|
||||
return new GenesisState().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GenesisState {
|
||||
return new GenesisState().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: GenesisState | PlainMessage<GenesisState> | undefined, b: GenesisState | PlainMessage<GenesisState> | undefined): boolean {
|
||||
return proto3.util.equals(GenesisState, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Params defines the set of module parameters.
|
||||
*
|
||||
* @generated from message dwn.v1.Params
|
||||
*/
|
||||
export class Params extends Message<Params> {
|
||||
/**
|
||||
* Maximum size for DWN record data in bytes
|
||||
*
|
||||
* @generated from field: uint64 max_record_size = 1;
|
||||
*/
|
||||
maxRecordSize = protoInt64.zero;
|
||||
|
||||
/**
|
||||
* Maximum number of protocols per DWN
|
||||
*
|
||||
* @generated from field: uint32 max_protocols_per_dwn = 2;
|
||||
*/
|
||||
maxProtocolsPerDwn = 0;
|
||||
|
||||
/**
|
||||
* Maximum number of permissions per DWN
|
||||
*
|
||||
* @generated from field: uint32 max_permissions_per_dwn = 3;
|
||||
*/
|
||||
maxPermissionsPerDwn = 0;
|
||||
|
||||
/**
|
||||
* Enable vault creation
|
||||
*
|
||||
* @generated from field: bool vault_creation_enabled = 4;
|
||||
*/
|
||||
vaultCreationEnabled = false;
|
||||
|
||||
/**
|
||||
* Minimum vault refresh interval in blocks
|
||||
*
|
||||
* @generated from field: uint64 min_vault_refresh_interval = 5;
|
||||
*/
|
||||
minVaultRefreshInterval = protoInt64.zero;
|
||||
|
||||
/**
|
||||
* Encryption configuration
|
||||
*
|
||||
* @generated from field: bool encryption_enabled = 6;
|
||||
*/
|
||||
encryptionEnabled = false;
|
||||
|
||||
/**
|
||||
* Key rotation interval in days
|
||||
*
|
||||
* @generated from field: uint32 key_rotation_days = 7;
|
||||
*/
|
||||
keyRotationDays = 0;
|
||||
|
||||
/**
|
||||
* Minimum validators required for key generation (percentage of active set)
|
||||
*
|
||||
* @generated from field: uint32 min_validators_for_key_gen = 8;
|
||||
*/
|
||||
minValidatorsForKeyGen = 0;
|
||||
|
||||
/**
|
||||
* Protocols that require encryption
|
||||
*
|
||||
* @generated from field: repeated string encrypted_protocols = 9;
|
||||
*/
|
||||
encryptedProtocols: string[] = [];
|
||||
|
||||
/**
|
||||
* Schemas that require encryption
|
||||
*
|
||||
* @generated from field: repeated string encrypted_schemas = 10;
|
||||
*/
|
||||
encryptedSchemas: string[] = [];
|
||||
|
||||
/**
|
||||
* Enable single-node fallback for development
|
||||
*
|
||||
* @generated from field: bool single_node_fallback = 11;
|
||||
*/
|
||||
singleNodeFallback = false;
|
||||
|
||||
constructor(data?: PartialMessage<Params>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "dwn.v1.Params";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "max_record_size", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
||||
{ no: 2, name: "max_protocols_per_dwn", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
||||
{ no: 3, name: "max_permissions_per_dwn", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
||||
{ no: 4, name: "vault_creation_enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
||||
{ no: 5, name: "min_vault_refresh_interval", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
||||
{ no: 6, name: "encryption_enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
||||
{ no: 7, name: "key_rotation_days", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
||||
{ no: 8, name: "min_validators_for_key_gen", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
||||
{ no: 9, name: "encrypted_protocols", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
||||
{ no: 10, name: "encrypted_schemas", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
||||
{ no: 11, name: "single_node_fallback", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Params {
|
||||
return new Params().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Params {
|
||||
return new Params().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Params {
|
||||
return new Params().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: Params | PlainMessage<Params> | undefined, b: Params | PlainMessage<Params> | undefined): boolean {
|
||||
return proto3.util.equals(Params, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @generated from message dwn.v1.IPFSStatus
|
||||
*/
|
||||
export class IPFSStatus extends Message<IPFSStatus> {
|
||||
/**
|
||||
* @generated from field: string peer_id = 1;
|
||||
*/
|
||||
peerId = "";
|
||||
|
||||
/**
|
||||
* @generated from field: string peer_name = 2;
|
||||
*/
|
||||
peerName = "";
|
||||
|
||||
/**
|
||||
* @generated from field: string peer_type = 3;
|
||||
*/
|
||||
peerType = "";
|
||||
|
||||
/**
|
||||
* @generated from field: string version = 4;
|
||||
*/
|
||||
version = "";
|
||||
|
||||
constructor(data?: PartialMessage<IPFSStatus>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "dwn.v1.IPFSStatus";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "peer_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 2, name: "peer_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 3, name: "peer_type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 4, name: "version", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): IPFSStatus {
|
||||
return new IPFSStatus().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): IPFSStatus {
|
||||
return new IPFSStatus().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): IPFSStatus {
|
||||
return new IPFSStatus().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: IPFSStatus | PlainMessage<IPFSStatus> | undefined, b: IPFSStatus | PlainMessage<IPFSStatus> | undefined): boolean {
|
||||
return proto3.util.equals(IPFSStatus, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,170 @@
|
||||
// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts"
|
||||
// @generated from file dwn/v1/query.proto (package dwn.v1, syntax proto3)
|
||||
/* eslint-disable */
|
||||
// @ts-nocheck
|
||||
|
||||
import { QueryCIDRequest, QueryCIDResponse, QueryEncryptedRecordRequest, QueryEncryptedRecordResponse, QueryEncryptionStatusRequest, QueryEncryptionStatusResponse, QueryIPFSRequest, QueryIPFSResponse, QueryParamsRequest, QueryParamsResponse, QueryPermissionsRequest, QueryPermissionsResponse, QueryProtocolRequest, QueryProtocolResponse, QueryProtocolsRequest, QueryProtocolsResponse, QueryRecordRequest, QueryRecordResponse, QueryRecordsRequest, QueryRecordsResponse, QueryVaultRequest, QueryVaultResponse, QueryVaultsRequest, QueryVaultsResponse, QueryVRFContributionsRequest, QueryVRFContributionsResponse } from "./query_pb.js";
|
||||
|
||||
const TYPE_NAME = "dwn.v1.Query";
|
||||
|
||||
/**
|
||||
* Params queries all parameters of the module.
|
||||
*
|
||||
* @generated from rpc dwn.v1.Query.Params
|
||||
*/
|
||||
export const QueryParamsService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "Params",
|
||||
Request: QueryParamsRequest,
|
||||
Response: QueryParamsResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* IPFS queries the status of the IPFS node
|
||||
*
|
||||
* @generated from rpc dwn.v1.Query.IPFS
|
||||
*/
|
||||
export const QueryIPFSService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "IPFS",
|
||||
Request: QueryIPFSRequest,
|
||||
Response: QueryIPFSResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* CID returns the data for a given CID
|
||||
*
|
||||
* @generated from rpc dwn.v1.Query.CID
|
||||
*/
|
||||
export const QueryCIDService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "CID",
|
||||
Request: QueryCIDRequest,
|
||||
Response: QueryCIDResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* Records queries DWN records with filters
|
||||
*
|
||||
* {{.MethodDescriptorProto.Name}} is a call with the method(s) {{$first := true}}{{range .Bindings}}{{if $first}}{{$first = false}}{{else}}, {{end}}{{.HTTPMethod}}{{end}} within the "{{.Service.Name}}" service.
|
||||
* It takes in "{{.RequestType.Name}}" and returns a "{{.ResponseType.Name}}".
|
||||
*
|
||||
* {{import "dwn_docs.md"}}
|
||||
*
|
||||
* @generated from rpc dwn.v1.Query.Records
|
||||
*/
|
||||
export const QueryRecordsService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "Records",
|
||||
Request: QueryRecordsRequest,
|
||||
Response: QueryRecordsResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* Record queries a specific DWN record by ID
|
||||
*
|
||||
* @generated from rpc dwn.v1.Query.Record
|
||||
*/
|
||||
export const QueryRecordService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "Record",
|
||||
Request: QueryRecordRequest,
|
||||
Response: QueryRecordResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* Protocols queries DWN protocols
|
||||
*
|
||||
* @generated from rpc dwn.v1.Query.Protocols
|
||||
*/
|
||||
export const QueryProtocolsService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "Protocols",
|
||||
Request: QueryProtocolsRequest,
|
||||
Response: QueryProtocolsResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* Protocol queries a specific DWN protocol
|
||||
*
|
||||
* @generated from rpc dwn.v1.Query.Protocol
|
||||
*/
|
||||
export const QueryProtocolService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "Protocol",
|
||||
Request: QueryProtocolRequest,
|
||||
Response: QueryProtocolResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* Permissions queries DWN permissions
|
||||
*
|
||||
* @generated from rpc dwn.v1.Query.Permissions
|
||||
*/
|
||||
export const QueryPermissionsService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "Permissions",
|
||||
Request: QueryPermissionsRequest,
|
||||
Response: QueryPermissionsResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* Vault queries a specific vault
|
||||
*
|
||||
* @generated from rpc dwn.v1.Query.Vault
|
||||
*/
|
||||
export const QueryVaultService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "Vault",
|
||||
Request: QueryVaultRequest,
|
||||
Response: QueryVaultResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* Vaults queries vaults by owner
|
||||
*
|
||||
* @generated from rpc dwn.v1.Query.Vaults
|
||||
*/
|
||||
export const QueryVaultsService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "Vaults",
|
||||
Request: QueryVaultsRequest,
|
||||
Response: QueryVaultsResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* EncryptedRecord queries a specific encrypted record with automatic decryption
|
||||
*
|
||||
* @generated from rpc dwn.v1.Query.EncryptedRecord
|
||||
*/
|
||||
export const QueryEncryptedRecordService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "EncryptedRecord",
|
||||
Request: QueryEncryptedRecordRequest,
|
||||
Response: QueryEncryptedRecordResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* EncryptionStatus queries current encryption key state and version
|
||||
*
|
||||
* @generated from rpc dwn.v1.Query.EncryptionStatus
|
||||
*/
|
||||
export const QueryEncryptionStatusService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "EncryptionStatus",
|
||||
Request: QueryEncryptionStatusRequest,
|
||||
Response: QueryEncryptionStatusResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* VRFContributions lists VRF contributions for current consensus round
|
||||
*
|
||||
* @generated from rpc dwn.v1.Query.VRFContributions
|
||||
*/
|
||||
export const QueryVRFContributionsService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "VRFContributions",
|
||||
Request: QueryVRFContributionsRequest,
|
||||
Response: QueryVRFContributionsResponse,
|
||||
} as const;
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,94 @@
|
||||
// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts"
|
||||
// @generated from file dwn/v1/tx.proto (package dwn.v1, syntax proto3)
|
||||
/* eslint-disable */
|
||||
// @ts-nocheck
|
||||
|
||||
import { MsgPermissionsGrant, MsgPermissionsGrantResponse, MsgPermissionsRevoke, MsgPermissionsRevokeResponse, MsgProtocolsConfigure, MsgProtocolsConfigureResponse, MsgRecordsDelete, MsgRecordsDeleteResponse, MsgRecordsWrite, MsgRecordsWriteResponse, MsgRotateVaultKeys, MsgRotateVaultKeysResponse, MsgUpdateParams, MsgUpdateParamsResponse } from "./tx_pb.js";
|
||||
|
||||
const TYPE_NAME = "dwn.v1.Msg";
|
||||
|
||||
/**
|
||||
* UpdateParams defines a governance operation for updating the parameters.
|
||||
*
|
||||
* @generated from rpc dwn.v1.Msg.UpdateParams
|
||||
*/
|
||||
export const MsgUpdateParamsService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "UpdateParams",
|
||||
Request: MsgUpdateParams,
|
||||
Response: MsgUpdateParamsResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* DWN Records Operations
|
||||
*
|
||||
* {{.MethodDescriptorProto.Name}} is a call with the method(s) {{$first := true}}{{range .Bindings}}{{if $first}}{{$first = false}}{{else}}, {{end}}{{.HTTPMethod}}{{end}} within the "{{.Service.Name}}" service.
|
||||
* It takes in "{{.RequestType.Name}}" and returns a "{{.ResponseType.Name}}".
|
||||
*
|
||||
* {{import "dwn_docs.md"}}
|
||||
*
|
||||
* @generated from rpc dwn.v1.Msg.RecordsWrite
|
||||
*/
|
||||
export const MsgRecordsWriteService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "RecordsWrite",
|
||||
Request: MsgRecordsWrite,
|
||||
Response: MsgRecordsWriteResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* @generated from rpc dwn.v1.Msg.RecordsDelete
|
||||
*/
|
||||
export const MsgRecordsDeleteService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "RecordsDelete",
|
||||
Request: MsgRecordsDelete,
|
||||
Response: MsgRecordsDeleteResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* DWN Protocols Operations
|
||||
*
|
||||
* @generated from rpc dwn.v1.Msg.ProtocolsConfigure
|
||||
*/
|
||||
export const MsgProtocolsConfigureService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "ProtocolsConfigure",
|
||||
Request: MsgProtocolsConfigure,
|
||||
Response: MsgProtocolsConfigureResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* DWN Permissions Operations
|
||||
*
|
||||
* @generated from rpc dwn.v1.Msg.PermissionsGrant
|
||||
*/
|
||||
export const MsgPermissionsGrantService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "PermissionsGrant",
|
||||
Request: MsgPermissionsGrant,
|
||||
Response: MsgPermissionsGrantResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* @generated from rpc dwn.v1.Msg.PermissionsRevoke
|
||||
*/
|
||||
export const MsgPermissionsRevokeService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "PermissionsRevoke",
|
||||
Request: MsgPermissionsRevoke,
|
||||
Response: MsgPermissionsRevokeResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* DWN Vault Operations
|
||||
*
|
||||
* @generated from rpc dwn.v1.Msg.RotateVaultKeys
|
||||
*/
|
||||
export const MsgRotateVaultKeysService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "RotateVaultKeys",
|
||||
Request: MsgRotateVaultKeys,
|
||||
Response: MsgRotateVaultKeysResponse,
|
||||
} as const;
|
||||
|
||||
@@ -0,0 +1,929 @@
|
||||
// @generated by protoc-gen-es v1.2.0 with parameter "target=ts"
|
||||
// @generated from file dwn/v1/tx.proto (package dwn.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";
|
||||
import { Params } from "./genesis_pb.js";
|
||||
import { DWNMessageDescriptor } from "./state_pb.js";
|
||||
|
||||
/**
|
||||
* MsgUpdateParams is the Msg/UpdateParams request type.
|
||||
*
|
||||
* @generated from message dwn.v1.MsgUpdateParams
|
||||
*/
|
||||
export class MsgUpdateParams extends Message<MsgUpdateParams> {
|
||||
/**
|
||||
* authority is the address of the governance account.
|
||||
*
|
||||
* @generated from field: string authority = 1;
|
||||
*/
|
||||
authority = "";
|
||||
|
||||
/**
|
||||
* params defines the parameters to update.
|
||||
*
|
||||
* @generated from field: dwn.v1.Params params = 2;
|
||||
*/
|
||||
params?: Params;
|
||||
|
||||
constructor(data?: PartialMessage<MsgUpdateParams>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "dwn.v1.MsgUpdateParams";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 2, name: "params", kind: "message", T: Params },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MsgUpdateParams {
|
||||
return new MsgUpdateParams().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MsgUpdateParams {
|
||||
return new MsgUpdateParams().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MsgUpdateParams {
|
||||
return new MsgUpdateParams().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: MsgUpdateParams | PlainMessage<MsgUpdateParams> | undefined, b: MsgUpdateParams | PlainMessage<MsgUpdateParams> | undefined): boolean {
|
||||
return proto3.util.equals(MsgUpdateParams, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* MsgUpdateParamsResponse defines the response structure for executing a
|
||||
* MsgUpdateParams message.
|
||||
*
|
||||
* @generated from message dwn.v1.MsgUpdateParamsResponse
|
||||
*/
|
||||
export class MsgUpdateParamsResponse extends Message<MsgUpdateParamsResponse> {
|
||||
constructor(data?: PartialMessage<MsgUpdateParamsResponse>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "dwn.v1.MsgUpdateParamsResponse";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MsgUpdateParamsResponse {
|
||||
return new MsgUpdateParamsResponse().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MsgUpdateParamsResponse {
|
||||
return new MsgUpdateParamsResponse().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MsgUpdateParamsResponse {
|
||||
return new MsgUpdateParamsResponse().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: MsgUpdateParamsResponse | PlainMessage<MsgUpdateParamsResponse> | undefined, b: MsgUpdateParamsResponse | PlainMessage<MsgUpdateParamsResponse> | undefined): boolean {
|
||||
return proto3.util.equals(MsgUpdateParamsResponse, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* MsgRecordsWrite creates or updates a record in the DWN
|
||||
*
|
||||
* @generated from message dwn.v1.MsgRecordsWrite
|
||||
*/
|
||||
export class MsgRecordsWrite extends Message<MsgRecordsWrite> {
|
||||
/**
|
||||
* Author of the record (DID or cosmos address)
|
||||
*
|
||||
* @generated from field: string author = 1;
|
||||
*/
|
||||
author = "";
|
||||
|
||||
/**
|
||||
* Target DWN (DID)
|
||||
*
|
||||
* @generated from field: string target = 2;
|
||||
*/
|
||||
target = "";
|
||||
|
||||
/**
|
||||
* Message descriptor
|
||||
*
|
||||
* @generated from field: dwn.v1.DWNMessageDescriptor descriptor = 3;
|
||||
*/
|
||||
descriptor?: DWNMessageDescriptor;
|
||||
|
||||
/**
|
||||
* Authorization JWT/signature
|
||||
*
|
||||
* @generated from field: string authorization = 4;
|
||||
*/
|
||||
authorization = "";
|
||||
|
||||
/**
|
||||
* Record data
|
||||
*
|
||||
* @generated from field: bytes data = 5;
|
||||
*/
|
||||
data = new Uint8Array(0);
|
||||
|
||||
/**
|
||||
* Optional protocol URI
|
||||
*
|
||||
* @generated from field: string protocol = 6;
|
||||
*/
|
||||
protocol = "";
|
||||
|
||||
/**
|
||||
* Optional protocol path
|
||||
*
|
||||
* @generated from field: string protocol_path = 7;
|
||||
*/
|
||||
protocolPath = "";
|
||||
|
||||
/**
|
||||
* Optional schema URI
|
||||
*
|
||||
* @generated from field: string schema = 8;
|
||||
*/
|
||||
schema = "";
|
||||
|
||||
/**
|
||||
* Optional parent record ID
|
||||
*
|
||||
* @generated from field: string parent_id = 9;
|
||||
*/
|
||||
parentId = "";
|
||||
|
||||
/**
|
||||
* Published flag
|
||||
*
|
||||
* @generated from field: bool published = 10;
|
||||
*/
|
||||
published = false;
|
||||
|
||||
/**
|
||||
* Optional encryption details
|
||||
*
|
||||
* @generated from field: string encryption = 11;
|
||||
*/
|
||||
encryption = "";
|
||||
|
||||
/**
|
||||
* Optional attestation
|
||||
*
|
||||
* @generated from field: string attestation = 12;
|
||||
*/
|
||||
attestation = "";
|
||||
|
||||
constructor(data?: PartialMessage<MsgRecordsWrite>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "dwn.v1.MsgRecordsWrite";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "author", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 2, name: "target", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 3, name: "descriptor", kind: "message", T: DWNMessageDescriptor },
|
||||
{ no: 4, name: "authorization", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 5, name: "data", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
|
||||
{ no: 6, name: "protocol", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 7, name: "protocol_path", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 8, name: "schema", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 9, name: "parent_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 10, name: "published", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
||||
{ no: 11, name: "encryption", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 12, name: "attestation", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MsgRecordsWrite {
|
||||
return new MsgRecordsWrite().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MsgRecordsWrite {
|
||||
return new MsgRecordsWrite().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MsgRecordsWrite {
|
||||
return new MsgRecordsWrite().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: MsgRecordsWrite | PlainMessage<MsgRecordsWrite> | undefined, b: MsgRecordsWrite | PlainMessage<MsgRecordsWrite> | undefined): boolean {
|
||||
return proto3.util.equals(MsgRecordsWrite, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* MsgRecordsWriteResponse defines the response for RecordsWrite
|
||||
*
|
||||
* @generated from message dwn.v1.MsgRecordsWriteResponse
|
||||
*/
|
||||
export class MsgRecordsWriteResponse extends Message<MsgRecordsWriteResponse> {
|
||||
/**
|
||||
* Record ID of the created/updated record
|
||||
*
|
||||
* @generated from field: string record_id = 1;
|
||||
*/
|
||||
recordId = "";
|
||||
|
||||
/**
|
||||
* CID of the data
|
||||
*
|
||||
* @generated from field: string data_cid = 2;
|
||||
*/
|
||||
dataCid = "";
|
||||
|
||||
constructor(data?: PartialMessage<MsgRecordsWriteResponse>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "dwn.v1.MsgRecordsWriteResponse";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "record_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 2, name: "data_cid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MsgRecordsWriteResponse {
|
||||
return new MsgRecordsWriteResponse().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MsgRecordsWriteResponse {
|
||||
return new MsgRecordsWriteResponse().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MsgRecordsWriteResponse {
|
||||
return new MsgRecordsWriteResponse().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: MsgRecordsWriteResponse | PlainMessage<MsgRecordsWriteResponse> | undefined, b: MsgRecordsWriteResponse | PlainMessage<MsgRecordsWriteResponse> | undefined): boolean {
|
||||
return proto3.util.equals(MsgRecordsWriteResponse, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* MsgRecordsDelete deletes a record from the DWN
|
||||
*
|
||||
* @generated from message dwn.v1.MsgRecordsDelete
|
||||
*/
|
||||
export class MsgRecordsDelete extends Message<MsgRecordsDelete> {
|
||||
/**
|
||||
* Author requesting deletion (DID or cosmos address)
|
||||
*
|
||||
* @generated from field: string author = 1;
|
||||
*/
|
||||
author = "";
|
||||
|
||||
/**
|
||||
* Target DWN (DID)
|
||||
*
|
||||
* @generated from field: string target = 2;
|
||||
*/
|
||||
target = "";
|
||||
|
||||
/**
|
||||
* Record ID to delete
|
||||
*
|
||||
* @generated from field: string record_id = 3;
|
||||
*/
|
||||
recordId = "";
|
||||
|
||||
/**
|
||||
* Message descriptor
|
||||
*
|
||||
* @generated from field: dwn.v1.DWNMessageDescriptor descriptor = 4;
|
||||
*/
|
||||
descriptor?: DWNMessageDescriptor;
|
||||
|
||||
/**
|
||||
* Authorization JWT/signature
|
||||
*
|
||||
* @generated from field: string authorization = 5;
|
||||
*/
|
||||
authorization = "";
|
||||
|
||||
/**
|
||||
* Prune descendants flag
|
||||
*
|
||||
* @generated from field: bool prune = 6;
|
||||
*/
|
||||
prune = false;
|
||||
|
||||
constructor(data?: PartialMessage<MsgRecordsDelete>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "dwn.v1.MsgRecordsDelete";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "author", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 2, name: "target", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 3, name: "record_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 4, name: "descriptor", kind: "message", T: DWNMessageDescriptor },
|
||||
{ no: 5, name: "authorization", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 6, name: "prune", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MsgRecordsDelete {
|
||||
return new MsgRecordsDelete().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MsgRecordsDelete {
|
||||
return new MsgRecordsDelete().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MsgRecordsDelete {
|
||||
return new MsgRecordsDelete().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: MsgRecordsDelete | PlainMessage<MsgRecordsDelete> | undefined, b: MsgRecordsDelete | PlainMessage<MsgRecordsDelete> | undefined): boolean {
|
||||
return proto3.util.equals(MsgRecordsDelete, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* MsgRecordsDeleteResponse defines the response for RecordsDelete
|
||||
*
|
||||
* @generated from message dwn.v1.MsgRecordsDeleteResponse
|
||||
*/
|
||||
export class MsgRecordsDeleteResponse extends Message<MsgRecordsDeleteResponse> {
|
||||
/**
|
||||
* Success flag
|
||||
*
|
||||
* @generated from field: bool success = 1;
|
||||
*/
|
||||
success = false;
|
||||
|
||||
/**
|
||||
* Number of records deleted (including pruned)
|
||||
*
|
||||
* @generated from field: int32 deleted_count = 2;
|
||||
*/
|
||||
deletedCount = 0;
|
||||
|
||||
constructor(data?: PartialMessage<MsgRecordsDeleteResponse>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "dwn.v1.MsgRecordsDeleteResponse";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "success", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
||||
{ no: 2, name: "deleted_count", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MsgRecordsDeleteResponse {
|
||||
return new MsgRecordsDeleteResponse().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MsgRecordsDeleteResponse {
|
||||
return new MsgRecordsDeleteResponse().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MsgRecordsDeleteResponse {
|
||||
return new MsgRecordsDeleteResponse().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: MsgRecordsDeleteResponse | PlainMessage<MsgRecordsDeleteResponse> | undefined, b: MsgRecordsDeleteResponse | PlainMessage<MsgRecordsDeleteResponse> | undefined): boolean {
|
||||
return proto3.util.equals(MsgRecordsDeleteResponse, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* MsgProtocolsConfigure configures a protocol in the DWN
|
||||
*
|
||||
* @generated from message dwn.v1.MsgProtocolsConfigure
|
||||
*/
|
||||
export class MsgProtocolsConfigure extends Message<MsgProtocolsConfigure> {
|
||||
/**
|
||||
* Author configuring the protocol (DID or cosmos address)
|
||||
*
|
||||
* @generated from field: string author = 1;
|
||||
*/
|
||||
author = "";
|
||||
|
||||
/**
|
||||
* Target DWN (DID)
|
||||
*
|
||||
* @generated from field: string target = 2;
|
||||
*/
|
||||
target = "";
|
||||
|
||||
/**
|
||||
* Message descriptor
|
||||
*
|
||||
* @generated from field: dwn.v1.DWNMessageDescriptor descriptor = 3;
|
||||
*/
|
||||
descriptor?: DWNMessageDescriptor;
|
||||
|
||||
/**
|
||||
* Authorization JWT/signature
|
||||
*
|
||||
* @generated from field: string authorization = 4;
|
||||
*/
|
||||
authorization = "";
|
||||
|
||||
/**
|
||||
* Protocol URI
|
||||
*
|
||||
* @generated from field: string protocol_uri = 5;
|
||||
*/
|
||||
protocolUri = "";
|
||||
|
||||
/**
|
||||
* Protocol definition JSON
|
||||
*
|
||||
* @generated from field: bytes definition = 6;
|
||||
*/
|
||||
definition = new Uint8Array(0);
|
||||
|
||||
/**
|
||||
* Published flag
|
||||
*
|
||||
* @generated from field: bool published = 7;
|
||||
*/
|
||||
published = false;
|
||||
|
||||
constructor(data?: PartialMessage<MsgProtocolsConfigure>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "dwn.v1.MsgProtocolsConfigure";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "author", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 2, name: "target", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 3, name: "descriptor", kind: "message", T: DWNMessageDescriptor },
|
||||
{ no: 4, name: "authorization", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 5, name: "protocol_uri", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 6, name: "definition", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
|
||||
{ no: 7, name: "published", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MsgProtocolsConfigure {
|
||||
return new MsgProtocolsConfigure().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MsgProtocolsConfigure {
|
||||
return new MsgProtocolsConfigure().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MsgProtocolsConfigure {
|
||||
return new MsgProtocolsConfigure().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: MsgProtocolsConfigure | PlainMessage<MsgProtocolsConfigure> | undefined, b: MsgProtocolsConfigure | PlainMessage<MsgProtocolsConfigure> | undefined): boolean {
|
||||
return proto3.util.equals(MsgProtocolsConfigure, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* MsgProtocolsConfigureResponse defines the response for ProtocolsConfigure
|
||||
*
|
||||
* @generated from message dwn.v1.MsgProtocolsConfigureResponse
|
||||
*/
|
||||
export class MsgProtocolsConfigureResponse extends Message<MsgProtocolsConfigureResponse> {
|
||||
/**
|
||||
* Protocol URI that was configured
|
||||
*
|
||||
* @generated from field: string protocol_uri = 1;
|
||||
*/
|
||||
protocolUri = "";
|
||||
|
||||
/**
|
||||
* Success flag
|
||||
*
|
||||
* @generated from field: bool success = 2;
|
||||
*/
|
||||
success = false;
|
||||
|
||||
constructor(data?: PartialMessage<MsgProtocolsConfigureResponse>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "dwn.v1.MsgProtocolsConfigureResponse";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "protocol_uri", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 2, name: "success", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MsgProtocolsConfigureResponse {
|
||||
return new MsgProtocolsConfigureResponse().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MsgProtocolsConfigureResponse {
|
||||
return new MsgProtocolsConfigureResponse().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MsgProtocolsConfigureResponse {
|
||||
return new MsgProtocolsConfigureResponse().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: MsgProtocolsConfigureResponse | PlainMessage<MsgProtocolsConfigureResponse> | undefined, b: MsgProtocolsConfigureResponse | PlainMessage<MsgProtocolsConfigureResponse> | undefined): boolean {
|
||||
return proto3.util.equals(MsgProtocolsConfigureResponse, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* MsgPermissionsGrant grants permissions in the DWN
|
||||
*
|
||||
* @generated from message dwn.v1.MsgPermissionsGrant
|
||||
*/
|
||||
export class MsgPermissionsGrant extends Message<MsgPermissionsGrant> {
|
||||
/**
|
||||
* Grantor of the permission (DID or cosmos address)
|
||||
*
|
||||
* @generated from field: string grantor = 1;
|
||||
*/
|
||||
grantor = "";
|
||||
|
||||
/**
|
||||
* Grantee receiving the permission (DID)
|
||||
*
|
||||
* @generated from field: string grantee = 2;
|
||||
*/
|
||||
grantee = "";
|
||||
|
||||
/**
|
||||
* Target DWN (DID)
|
||||
*
|
||||
* @generated from field: string target = 3;
|
||||
*/
|
||||
target = "";
|
||||
|
||||
/**
|
||||
* Message descriptor
|
||||
*
|
||||
* @generated from field: dwn.v1.DWNMessageDescriptor descriptor = 4;
|
||||
*/
|
||||
descriptor?: DWNMessageDescriptor;
|
||||
|
||||
/**
|
||||
* Authorization JWT/signature
|
||||
*
|
||||
* @generated from field: string authorization = 5;
|
||||
*/
|
||||
authorization = "";
|
||||
|
||||
/**
|
||||
* Interface scope
|
||||
*
|
||||
* @generated from field: string interface_name = 6;
|
||||
*/
|
||||
interfaceName = "";
|
||||
|
||||
/**
|
||||
* Method scope
|
||||
*
|
||||
* @generated from field: string method = 7;
|
||||
*/
|
||||
method = "";
|
||||
|
||||
/**
|
||||
* Optional protocol scope
|
||||
*
|
||||
* @generated from field: string protocol = 8;
|
||||
*/
|
||||
protocol = "";
|
||||
|
||||
/**
|
||||
* Optional record scope
|
||||
*
|
||||
* @generated from field: string record_id = 9;
|
||||
*/
|
||||
recordId = "";
|
||||
|
||||
/**
|
||||
* Permission conditions JSON
|
||||
*
|
||||
* @generated from field: bytes conditions = 10;
|
||||
*/
|
||||
conditions = new Uint8Array(0);
|
||||
|
||||
/**
|
||||
* Expiration timestamp (Unix timestamp)
|
||||
*
|
||||
* @generated from field: int64 expires_at = 11;
|
||||
*/
|
||||
expiresAt = protoInt64.zero;
|
||||
|
||||
constructor(data?: PartialMessage<MsgPermissionsGrant>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "dwn.v1.MsgPermissionsGrant";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "grantor", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 2, name: "grantee", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 3, name: "target", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 4, name: "descriptor", kind: "message", T: DWNMessageDescriptor },
|
||||
{ no: 5, name: "authorization", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 6, name: "interface_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 7, name: "method", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 8, name: "protocol", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 9, name: "record_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 10, name: "conditions", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
|
||||
{ no: 11, name: "expires_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MsgPermissionsGrant {
|
||||
return new MsgPermissionsGrant().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MsgPermissionsGrant {
|
||||
return new MsgPermissionsGrant().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MsgPermissionsGrant {
|
||||
return new MsgPermissionsGrant().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: MsgPermissionsGrant | PlainMessage<MsgPermissionsGrant> | undefined, b: MsgPermissionsGrant | PlainMessage<MsgPermissionsGrant> | undefined): boolean {
|
||||
return proto3.util.equals(MsgPermissionsGrant, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* MsgPermissionsGrantResponse defines the response for PermissionsGrant
|
||||
*
|
||||
* @generated from message dwn.v1.MsgPermissionsGrantResponse
|
||||
*/
|
||||
export class MsgPermissionsGrantResponse extends Message<MsgPermissionsGrantResponse> {
|
||||
/**
|
||||
* Permission ID of the created grant
|
||||
*
|
||||
* @generated from field: string permission_id = 1;
|
||||
*/
|
||||
permissionId = "";
|
||||
|
||||
constructor(data?: PartialMessage<MsgPermissionsGrantResponse>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "dwn.v1.MsgPermissionsGrantResponse";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "permission_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MsgPermissionsGrantResponse {
|
||||
return new MsgPermissionsGrantResponse().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MsgPermissionsGrantResponse {
|
||||
return new MsgPermissionsGrantResponse().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MsgPermissionsGrantResponse {
|
||||
return new MsgPermissionsGrantResponse().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: MsgPermissionsGrantResponse | PlainMessage<MsgPermissionsGrantResponse> | undefined, b: MsgPermissionsGrantResponse | PlainMessage<MsgPermissionsGrantResponse> | undefined): boolean {
|
||||
return proto3.util.equals(MsgPermissionsGrantResponse, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* MsgPermissionsRevoke revokes permissions in the DWN
|
||||
*
|
||||
* @generated from message dwn.v1.MsgPermissionsRevoke
|
||||
*/
|
||||
export class MsgPermissionsRevoke extends Message<MsgPermissionsRevoke> {
|
||||
/**
|
||||
* Grantor revoking the permission (DID or cosmos address)
|
||||
*
|
||||
* @generated from field: string grantor = 1;
|
||||
*/
|
||||
grantor = "";
|
||||
|
||||
/**
|
||||
* Permission ID to revoke
|
||||
*
|
||||
* @generated from field: string permission_id = 2;
|
||||
*/
|
||||
permissionId = "";
|
||||
|
||||
/**
|
||||
* Message descriptor
|
||||
*
|
||||
* @generated from field: dwn.v1.DWNMessageDescriptor descriptor = 3;
|
||||
*/
|
||||
descriptor?: DWNMessageDescriptor;
|
||||
|
||||
/**
|
||||
* Authorization JWT/signature
|
||||
*
|
||||
* @generated from field: string authorization = 4;
|
||||
*/
|
||||
authorization = "";
|
||||
|
||||
constructor(data?: PartialMessage<MsgPermissionsRevoke>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "dwn.v1.MsgPermissionsRevoke";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "grantor", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 2, name: "permission_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 3, name: "descriptor", kind: "message", T: DWNMessageDescriptor },
|
||||
{ no: 4, name: "authorization", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MsgPermissionsRevoke {
|
||||
return new MsgPermissionsRevoke().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MsgPermissionsRevoke {
|
||||
return new MsgPermissionsRevoke().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MsgPermissionsRevoke {
|
||||
return new MsgPermissionsRevoke().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: MsgPermissionsRevoke | PlainMessage<MsgPermissionsRevoke> | undefined, b: MsgPermissionsRevoke | PlainMessage<MsgPermissionsRevoke> | undefined): boolean {
|
||||
return proto3.util.equals(MsgPermissionsRevoke, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* MsgPermissionsRevokeResponse defines the response for PermissionsRevoke
|
||||
*
|
||||
* @generated from message dwn.v1.MsgPermissionsRevokeResponse
|
||||
*/
|
||||
export class MsgPermissionsRevokeResponse extends Message<MsgPermissionsRevokeResponse> {
|
||||
/**
|
||||
* Success flag
|
||||
*
|
||||
* @generated from field: bool success = 1;
|
||||
*/
|
||||
success = false;
|
||||
|
||||
constructor(data?: PartialMessage<MsgPermissionsRevokeResponse>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "dwn.v1.MsgPermissionsRevokeResponse";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "success", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MsgPermissionsRevokeResponse {
|
||||
return new MsgPermissionsRevokeResponse().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MsgPermissionsRevokeResponse {
|
||||
return new MsgPermissionsRevokeResponse().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MsgPermissionsRevokeResponse {
|
||||
return new MsgPermissionsRevokeResponse().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: MsgPermissionsRevokeResponse | PlainMessage<MsgPermissionsRevokeResponse> | undefined, b: MsgPermissionsRevokeResponse | PlainMessage<MsgPermissionsRevokeResponse> | undefined): boolean {
|
||||
return proto3.util.equals(MsgPermissionsRevokeResponse, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* MsgRotateVaultKeys rotates encryption keys for existing vaults
|
||||
*
|
||||
* @generated from message dwn.v1.MsgRotateVaultKeys
|
||||
*/
|
||||
export class MsgRotateVaultKeys extends Message<MsgRotateVaultKeys> {
|
||||
/**
|
||||
* Authority performing the rotation (governance or validator)
|
||||
*
|
||||
* @generated from field: string authority = 1;
|
||||
*/
|
||||
authority = "";
|
||||
|
||||
/**
|
||||
* Vault ID to rotate keys for (empty means all vaults)
|
||||
*
|
||||
* @generated from field: string vault_id = 2;
|
||||
*/
|
||||
vaultId = "";
|
||||
|
||||
/**
|
||||
* Reason for rotation
|
||||
*
|
||||
* @generated from field: string reason = 3;
|
||||
*/
|
||||
reason = "";
|
||||
|
||||
/**
|
||||
* Force rotation even if not due
|
||||
*
|
||||
* @generated from field: bool force = 4;
|
||||
*/
|
||||
force = false;
|
||||
|
||||
constructor(data?: PartialMessage<MsgRotateVaultKeys>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "dwn.v1.MsgRotateVaultKeys";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 2, name: "vault_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 3, name: "reason", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 4, name: "force", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MsgRotateVaultKeys {
|
||||
return new MsgRotateVaultKeys().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MsgRotateVaultKeys {
|
||||
return new MsgRotateVaultKeys().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MsgRotateVaultKeys {
|
||||
return new MsgRotateVaultKeys().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: MsgRotateVaultKeys | PlainMessage<MsgRotateVaultKeys> | undefined, b: MsgRotateVaultKeys | PlainMessage<MsgRotateVaultKeys> | undefined): boolean {
|
||||
return proto3.util.equals(MsgRotateVaultKeys, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* MsgRotateVaultKeysResponse defines the response for RotateVaultKeys
|
||||
*
|
||||
* @generated from message dwn.v1.MsgRotateVaultKeysResponse
|
||||
*/
|
||||
export class MsgRotateVaultKeysResponse extends Message<MsgRotateVaultKeysResponse> {
|
||||
/**
|
||||
* Number of vaults affected
|
||||
*
|
||||
* @generated from field: uint32 vaults_rotated = 1;
|
||||
*/
|
||||
vaultsRotated = 0;
|
||||
|
||||
/**
|
||||
* New key version after rotation
|
||||
*
|
||||
* @generated from field: uint64 new_key_version = 2;
|
||||
*/
|
||||
newKeyVersion = protoInt64.zero;
|
||||
|
||||
/**
|
||||
* Success flag
|
||||
*
|
||||
* @generated from field: bool success = 3;
|
||||
*/
|
||||
success = false;
|
||||
|
||||
constructor(data?: PartialMessage<MsgRotateVaultKeysResponse>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "dwn.v1.MsgRotateVaultKeysResponse";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "vaults_rotated", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
||||
{ no: 2, name: "new_key_version", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
||||
{ no: 3, name: "success", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MsgRotateVaultKeysResponse {
|
||||
return new MsgRotateVaultKeysResponse().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MsgRotateVaultKeysResponse {
|
||||
return new MsgRotateVaultKeysResponse().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MsgRotateVaultKeysResponse {
|
||||
return new MsgRotateVaultKeysResponse().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: MsgRotateVaultKeysResponse | PlainMessage<MsgRotateVaultKeysResponse> | undefined, b: MsgRotateVaultKeysResponse | PlainMessage<MsgRotateVaultKeysResponse> | undefined): boolean {
|
||||
return proto3.util.equals(MsgRotateVaultKeysResponse, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,93 @@
|
||||
// @generated by protoc-gen-es v1.2.0 with parameter "target=ts"
|
||||
// @generated from file ethermint/crypto/v1/ethsecp256k1/keys.proto (package ethermint.crypto.v1.ethsecp256k1, 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 type alias for an ecdsa.PublicKey that implements
|
||||
* Tendermint's PubKey interface. It represents the 33-byte compressed public
|
||||
* key format.
|
||||
*
|
||||
* @generated from message ethermint.crypto.v1.ethsecp256k1.PubKey
|
||||
*/
|
||||
export class PubKey extends Message<PubKey> {
|
||||
/**
|
||||
* key is the public key in byte form
|
||||
*
|
||||
* @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 = "ethermint.crypto.v1.ethsecp256k1.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 type alias for an ecdsa.PrivateKey that implements
|
||||
* Tendermint's PrivateKey interface.
|
||||
*
|
||||
* @generated from message ethermint.crypto.v1.ethsecp256k1.PrivKey
|
||||
*/
|
||||
export class PrivKey extends Message<PrivKey> {
|
||||
/**
|
||||
* key is the private key in byte form
|
||||
*
|
||||
* @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 = "ethermint.crypto.v1.ethsecp256k1.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,236 @@
|
||||
// @generated by protoc-gen-es v1.2.0 with parameter "target=ts"
|
||||
// @generated from file ethermint/evm/v1/events.proto (package ethermint.evm.v1, syntax proto3)
|
||||
/* eslint-disable */
|
||||
// @ts-nocheck
|
||||
|
||||
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
|
||||
import { Message, proto3 } from "@bufbuild/protobuf";
|
||||
|
||||
/**
|
||||
* EventEthereumTx defines the event for an Ethereum transaction
|
||||
*
|
||||
* @generated from message ethermint.evm.v1.EventEthereumTx
|
||||
*/
|
||||
export class EventEthereumTx extends Message<EventEthereumTx> {
|
||||
/**
|
||||
* amount
|
||||
*
|
||||
* @generated from field: string amount = 1;
|
||||
*/
|
||||
amount = "";
|
||||
|
||||
/**
|
||||
* eth_hash is the Ethereum hash of the transaction
|
||||
*
|
||||
* @generated from field: string eth_hash = 2;
|
||||
*/
|
||||
ethHash = "";
|
||||
|
||||
/**
|
||||
* index of the transaction in the block
|
||||
*
|
||||
* @generated from field: string index = 3;
|
||||
*/
|
||||
index = "";
|
||||
|
||||
/**
|
||||
* gas_used is the amount of gas used by the transaction
|
||||
*
|
||||
* @generated from field: string gas_used = 4;
|
||||
*/
|
||||
gasUsed = "";
|
||||
|
||||
/**
|
||||
* hash is the Tendermint hash of the transaction
|
||||
*
|
||||
* @generated from field: string hash = 5;
|
||||
*/
|
||||
hash = "";
|
||||
|
||||
/**
|
||||
* recipient of the transaction
|
||||
*
|
||||
* @generated from field: string recipient = 6;
|
||||
*/
|
||||
recipient = "";
|
||||
|
||||
/**
|
||||
* eth_tx_failed contains a VM error should it occur
|
||||
*
|
||||
* @generated from field: string eth_tx_failed = 7;
|
||||
*/
|
||||
ethTxFailed = "";
|
||||
|
||||
constructor(data?: PartialMessage<EventEthereumTx>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "ethermint.evm.v1.EventEthereumTx";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 2, name: "eth_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 3, name: "index", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 4, name: "gas_used", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 5, name: "hash", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 6, name: "recipient", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 7, name: "eth_tx_failed", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): EventEthereumTx {
|
||||
return new EventEthereumTx().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): EventEthereumTx {
|
||||
return new EventEthereumTx().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): EventEthereumTx {
|
||||
return new EventEthereumTx().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: EventEthereumTx | PlainMessage<EventEthereumTx> | undefined, b: EventEthereumTx | PlainMessage<EventEthereumTx> | undefined): boolean {
|
||||
return proto3.util.equals(EventEthereumTx, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* EventTxLog defines the event for an Ethereum transaction log
|
||||
*
|
||||
* @generated from message ethermint.evm.v1.EventTxLog
|
||||
*/
|
||||
export class EventTxLog extends Message<EventTxLog> {
|
||||
/**
|
||||
* tx_logs is an array of transaction logs
|
||||
*
|
||||
* @generated from field: repeated string tx_logs = 1;
|
||||
*/
|
||||
txLogs: string[] = [];
|
||||
|
||||
constructor(data?: PartialMessage<EventTxLog>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "ethermint.evm.v1.EventTxLog";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "tx_logs", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): EventTxLog {
|
||||
return new EventTxLog().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): EventTxLog {
|
||||
return new EventTxLog().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): EventTxLog {
|
||||
return new EventTxLog().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: EventTxLog | PlainMessage<EventTxLog> | undefined, b: EventTxLog | PlainMessage<EventTxLog> | undefined): boolean {
|
||||
return proto3.util.equals(EventTxLog, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* EventMessage
|
||||
*
|
||||
* @generated from message ethermint.evm.v1.EventMessage
|
||||
*/
|
||||
export class EventMessage extends Message<EventMessage> {
|
||||
/**
|
||||
* module which emits the event
|
||||
*
|
||||
* @generated from field: string module = 1;
|
||||
*/
|
||||
module = "";
|
||||
|
||||
/**
|
||||
* sender of the message
|
||||
*
|
||||
* @generated from field: string sender = 2;
|
||||
*/
|
||||
sender = "";
|
||||
|
||||
/**
|
||||
* tx_type is the type of the message
|
||||
*
|
||||
* @generated from field: string tx_type = 3;
|
||||
*/
|
||||
txType = "";
|
||||
|
||||
constructor(data?: PartialMessage<EventMessage>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "ethermint.evm.v1.EventMessage";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "module", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 2, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 3, name: "tx_type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): EventMessage {
|
||||
return new EventMessage().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): EventMessage {
|
||||
return new EventMessage().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): EventMessage {
|
||||
return new EventMessage().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: EventMessage | PlainMessage<EventMessage> | undefined, b: EventMessage | PlainMessage<EventMessage> | undefined): boolean {
|
||||
return proto3.util.equals(EventMessage, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* EventBlockBloom defines an Ethereum block bloom filter event
|
||||
*
|
||||
* @generated from message ethermint.evm.v1.EventBlockBloom
|
||||
*/
|
||||
export class EventBlockBloom extends Message<EventBlockBloom> {
|
||||
/**
|
||||
* bloom is the bloom filter of the block
|
||||
*
|
||||
* @generated from field: string bloom = 1;
|
||||
*/
|
||||
bloom = "";
|
||||
|
||||
constructor(data?: PartialMessage<EventBlockBloom>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "ethermint.evm.v1.EventBlockBloom";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "bloom", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): EventBlockBloom {
|
||||
return new EventBlockBloom().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): EventBlockBloom {
|
||||
return new EventBlockBloom().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): EventBlockBloom {
|
||||
return new EventBlockBloom().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: EventBlockBloom | PlainMessage<EventBlockBloom> | undefined, b: EventBlockBloom | PlainMessage<EventBlockBloom> | undefined): boolean {
|
||||
return proto3.util.equals(EventBlockBloom, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,745 @@
|
||||
// @generated by protoc-gen-es v1.2.0 with parameter "target=ts"
|
||||
// @generated from file ethermint/evm/v1/evm.proto (package ethermint.evm.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";
|
||||
|
||||
/**
|
||||
* Params defines the EVM module parameters
|
||||
*
|
||||
* @generated from message ethermint.evm.v1.Params
|
||||
*/
|
||||
export class Params extends Message<Params> {
|
||||
/**
|
||||
* evm_denom represents the token denomination used to run the EVM state
|
||||
* transitions.
|
||||
*
|
||||
* @generated from field: string evm_denom = 1;
|
||||
*/
|
||||
evmDenom = "";
|
||||
|
||||
/**
|
||||
* enable_create toggles state transitions that use the vm.Create function
|
||||
*
|
||||
* @generated from field: bool enable_create = 2;
|
||||
*/
|
||||
enableCreate = false;
|
||||
|
||||
/**
|
||||
* enable_call toggles state transitions that use the vm.Call function
|
||||
*
|
||||
* @generated from field: bool enable_call = 3;
|
||||
*/
|
||||
enableCall = false;
|
||||
|
||||
/**
|
||||
* extra_eips defines the additional EIPs for the vm.Config
|
||||
*
|
||||
* @generated from field: repeated int64 extra_eips = 4;
|
||||
*/
|
||||
extraEips: bigint[] = [];
|
||||
|
||||
/**
|
||||
* chain_config defines the EVM chain configuration parameters
|
||||
*
|
||||
* @generated from field: ethermint.evm.v1.ChainConfig chain_config = 5;
|
||||
*/
|
||||
chainConfig?: ChainConfig;
|
||||
|
||||
/**
|
||||
* allow_unprotected_txs defines if replay-protected (i.e non EIP155
|
||||
* signed) transactions can be executed on the state machine.
|
||||
*
|
||||
* @generated from field: bool allow_unprotected_txs = 6;
|
||||
*/
|
||||
allowUnprotectedTxs = false;
|
||||
|
||||
constructor(data?: PartialMessage<Params>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "ethermint.evm.v1.Params";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "evm_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 2, name: "enable_create", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
||||
{ no: 3, name: "enable_call", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
||||
{ no: 4, name: "extra_eips", kind: "scalar", T: 3 /* ScalarType.INT64 */, repeated: true },
|
||||
{ no: 5, name: "chain_config", kind: "message", T: ChainConfig },
|
||||
{ no: 6, name: "allow_unprotected_txs", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Params {
|
||||
return new Params().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Params {
|
||||
return new Params().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Params {
|
||||
return new Params().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: Params | PlainMessage<Params> | undefined, b: Params | PlainMessage<Params> | undefined): boolean {
|
||||
return proto3.util.equals(Params, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* ChainConfig defines the Ethereum ChainConfig parameters using *sdk.Int values
|
||||
* instead of *big.Int.
|
||||
*
|
||||
* @generated from message ethermint.evm.v1.ChainConfig
|
||||
*/
|
||||
export class ChainConfig extends Message<ChainConfig> {
|
||||
/**
|
||||
* homestead_block switch (nil no fork, 0 = already homestead)
|
||||
*
|
||||
* @generated from field: string homestead_block = 1;
|
||||
*/
|
||||
homesteadBlock = "";
|
||||
|
||||
/**
|
||||
* dao_fork_block corresponds to TheDAO hard-fork switch block (nil no fork)
|
||||
*
|
||||
* @generated from field: string dao_fork_block = 2;
|
||||
*/
|
||||
daoForkBlock = "";
|
||||
|
||||
/**
|
||||
* dao_fork_support defines whether the nodes supports or opposes the DAO hard-fork
|
||||
*
|
||||
* @generated from field: bool dao_fork_support = 3;
|
||||
*/
|
||||
daoForkSupport = false;
|
||||
|
||||
/**
|
||||
* eip150_block: EIP150 implements the Gas price changes
|
||||
* (https://github.com/ethereum/EIPs/issues/150) EIP150 HF block (nil no fork)
|
||||
*
|
||||
* @generated from field: string eip150_block = 4;
|
||||
*/
|
||||
eip150Block = "";
|
||||
|
||||
/**
|
||||
* eip150_hash: EIP150 HF hash (needed for header only clients as only gas pricing changed)
|
||||
*
|
||||
* @generated from field: string eip150_hash = 5;
|
||||
*/
|
||||
eip150Hash = "";
|
||||
|
||||
/**
|
||||
* eip155_block: EIP155Block HF block
|
||||
*
|
||||
* @generated from field: string eip155_block = 6;
|
||||
*/
|
||||
eip155Block = "";
|
||||
|
||||
/**
|
||||
* eip158_block: EIP158 HF block
|
||||
*
|
||||
* @generated from field: string eip158_block = 7;
|
||||
*/
|
||||
eip158Block = "";
|
||||
|
||||
/**
|
||||
* byzantium_block: Byzantium switch block (nil no fork, 0 = already on byzantium)
|
||||
*
|
||||
* @generated from field: string byzantium_block = 8;
|
||||
*/
|
||||
byzantiumBlock = "";
|
||||
|
||||
/**
|
||||
* constantinople_block: Constantinople switch block (nil no fork, 0 = already activated)
|
||||
*
|
||||
* @generated from field: string constantinople_block = 9;
|
||||
*/
|
||||
constantinopleBlock = "";
|
||||
|
||||
/**
|
||||
* petersburg_block: Petersburg switch block (nil same as Constantinople)
|
||||
*
|
||||
* @generated from field: string petersburg_block = 10;
|
||||
*/
|
||||
petersburgBlock = "";
|
||||
|
||||
/**
|
||||
* istanbul_block: Istanbul switch block (nil no fork, 0 = already on istanbul)
|
||||
*
|
||||
* @generated from field: string istanbul_block = 11;
|
||||
*/
|
||||
istanbulBlock = "";
|
||||
|
||||
/**
|
||||
* muir_glacier_block: Eip-2384 (bomb delay) switch block (nil no fork, 0 = already activated)
|
||||
*
|
||||
* @generated from field: string muir_glacier_block = 12;
|
||||
*/
|
||||
muirGlacierBlock = "";
|
||||
|
||||
/**
|
||||
* berlin_block: Berlin switch block (nil = no fork, 0 = already on berlin)
|
||||
*
|
||||
* @generated from field: string berlin_block = 13;
|
||||
*/
|
||||
berlinBlock = "";
|
||||
|
||||
/**
|
||||
* london_block: London switch block (nil = no fork, 0 = already on london)
|
||||
*
|
||||
* @generated from field: string london_block = 17;
|
||||
*/
|
||||
londonBlock = "";
|
||||
|
||||
/**
|
||||
* arrow_glacier_block: Eip-4345 (bomb delay) switch block (nil = no fork, 0 = already activated)
|
||||
*
|
||||
* @generated from field: string arrow_glacier_block = 18;
|
||||
*/
|
||||
arrowGlacierBlock = "";
|
||||
|
||||
/**
|
||||
* gray_glacier_block: EIP-5133 (bomb delay) switch block (nil = no fork, 0 = already activated)
|
||||
*
|
||||
* @generated from field: string gray_glacier_block = 20;
|
||||
*/
|
||||
grayGlacierBlock = "";
|
||||
|
||||
/**
|
||||
* merge_netsplit_block: Virtual fork after The Merge to use as a network splitter
|
||||
*
|
||||
* @generated from field: string merge_netsplit_block = 21;
|
||||
*/
|
||||
mergeNetsplitBlock = "";
|
||||
|
||||
/**
|
||||
* shanghai_block switch block (nil = no fork, 0 = already on shanghai)
|
||||
*
|
||||
* @generated from field: string shanghai_block = 22;
|
||||
*/
|
||||
shanghaiBlock = "";
|
||||
|
||||
/**
|
||||
* cancun_block switch block (nil = no fork, 0 = already on cancun)
|
||||
*
|
||||
* @generated from field: string cancun_block = 23;
|
||||
*/
|
||||
cancunBlock = "";
|
||||
|
||||
constructor(data?: PartialMessage<ChainConfig>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "ethermint.evm.v1.ChainConfig";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "homestead_block", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 2, name: "dao_fork_block", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 3, name: "dao_fork_support", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
||||
{ no: 4, name: "eip150_block", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 5, name: "eip150_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 6, name: "eip155_block", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 7, name: "eip158_block", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 8, name: "byzantium_block", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 9, name: "constantinople_block", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 10, name: "petersburg_block", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 11, name: "istanbul_block", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 12, name: "muir_glacier_block", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 13, name: "berlin_block", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 17, name: "london_block", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 18, name: "arrow_glacier_block", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 20, name: "gray_glacier_block", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 21, name: "merge_netsplit_block", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 22, name: "shanghai_block", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 23, name: "cancun_block", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ChainConfig {
|
||||
return new ChainConfig().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ChainConfig {
|
||||
return new ChainConfig().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ChainConfig {
|
||||
return new ChainConfig().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: ChainConfig | PlainMessage<ChainConfig> | undefined, b: ChainConfig | PlainMessage<ChainConfig> | undefined): boolean {
|
||||
return proto3.util.equals(ChainConfig, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* State represents a single Storage key value pair item.
|
||||
*
|
||||
* @generated from message ethermint.evm.v1.State
|
||||
*/
|
||||
export class State extends Message<State> {
|
||||
/**
|
||||
* key is the stored key
|
||||
*
|
||||
* @generated from field: string key = 1;
|
||||
*/
|
||||
key = "";
|
||||
|
||||
/**
|
||||
* value is the stored value for the given key
|
||||
*
|
||||
* @generated from field: string value = 2;
|
||||
*/
|
||||
value = "";
|
||||
|
||||
constructor(data?: PartialMessage<State>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "ethermint.evm.v1.State";
|
||||
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>): State {
|
||||
return new State().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): State {
|
||||
return new State().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): State {
|
||||
return new State().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: State | PlainMessage<State> | undefined, b: State | PlainMessage<State> | undefined): boolean {
|
||||
return proto3.util.equals(State, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* TransactionLogs define the logs generated from a transaction execution
|
||||
* with a given hash. It it used for import/export data as transactions are not
|
||||
* persisted on blockchain state after an upgrade.
|
||||
*
|
||||
* @generated from message ethermint.evm.v1.TransactionLogs
|
||||
*/
|
||||
export class TransactionLogs extends Message<TransactionLogs> {
|
||||
/**
|
||||
* hash of the transaction
|
||||
*
|
||||
* @generated from field: string hash = 1;
|
||||
*/
|
||||
hash = "";
|
||||
|
||||
/**
|
||||
* logs is an array of Logs for the given transaction hash
|
||||
*
|
||||
* @generated from field: repeated ethermint.evm.v1.Log logs = 2;
|
||||
*/
|
||||
logs: Log[] = [];
|
||||
|
||||
constructor(data?: PartialMessage<TransactionLogs>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "ethermint.evm.v1.TransactionLogs";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "hash", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 2, name: "logs", kind: "message", T: Log, repeated: true },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TransactionLogs {
|
||||
return new TransactionLogs().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TransactionLogs {
|
||||
return new TransactionLogs().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TransactionLogs {
|
||||
return new TransactionLogs().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: TransactionLogs | PlainMessage<TransactionLogs> | undefined, b: TransactionLogs | PlainMessage<TransactionLogs> | undefined): boolean {
|
||||
return proto3.util.equals(TransactionLogs, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Log represents an protobuf compatible Ethereum Log that defines a contract
|
||||
* log event. These events are generated by the LOG opcode and stored/indexed by
|
||||
* the node.
|
||||
*
|
||||
* NOTE: address, topics and data are consensus fields. The rest of the fields
|
||||
* are derived, i.e. filled in by the nodes, but not secured by consensus.
|
||||
*
|
||||
* @generated from message ethermint.evm.v1.Log
|
||||
*/
|
||||
export class Log extends Message<Log> {
|
||||
/**
|
||||
* address of the contract that generated the event
|
||||
*
|
||||
* @generated from field: string address = 1;
|
||||
*/
|
||||
address = "";
|
||||
|
||||
/**
|
||||
* topics is a list of topics provided by the contract.
|
||||
*
|
||||
* @generated from field: repeated string topics = 2;
|
||||
*/
|
||||
topics: string[] = [];
|
||||
|
||||
/**
|
||||
* data which is supplied by the contract, usually ABI-encoded
|
||||
*
|
||||
* @generated from field: bytes data = 3;
|
||||
*/
|
||||
data = new Uint8Array(0);
|
||||
|
||||
/**
|
||||
* block_number of the block in which the transaction was included
|
||||
*
|
||||
* @generated from field: uint64 block_number = 4;
|
||||
*/
|
||||
blockNumber = protoInt64.zero;
|
||||
|
||||
/**
|
||||
* tx_hash is the transaction hash
|
||||
*
|
||||
* @generated from field: string tx_hash = 5;
|
||||
*/
|
||||
txHash = "";
|
||||
|
||||
/**
|
||||
* tx_index of the transaction in the block
|
||||
*
|
||||
* @generated from field: uint64 tx_index = 6;
|
||||
*/
|
||||
txIndex = protoInt64.zero;
|
||||
|
||||
/**
|
||||
* block_hash of the block in which the transaction was included
|
||||
*
|
||||
* @generated from field: string block_hash = 7;
|
||||
*/
|
||||
blockHash = "";
|
||||
|
||||
/**
|
||||
* index of the log in the block
|
||||
*
|
||||
* @generated from field: uint64 index = 8;
|
||||
*/
|
||||
index = protoInt64.zero;
|
||||
|
||||
/**
|
||||
* removed is true if this log was reverted due to a chain
|
||||
* reorganisation. You must pay attention to this field if you receive logs
|
||||
* through a filter query.
|
||||
*
|
||||
* @generated from field: bool removed = 9;
|
||||
*/
|
||||
removed = false;
|
||||
|
||||
constructor(data?: PartialMessage<Log>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "ethermint.evm.v1.Log";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 2, name: "topics", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
||||
{ no: 3, name: "data", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
|
||||
{ no: 4, name: "block_number", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
||||
{ no: 5, name: "tx_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 6, name: "tx_index", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
||||
{ no: 7, name: "block_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 8, name: "index", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
||||
{ no: 9, name: "removed", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Log {
|
||||
return new Log().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Log {
|
||||
return new Log().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Log {
|
||||
return new Log().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: Log | PlainMessage<Log> | undefined, b: Log | PlainMessage<Log> | undefined): boolean {
|
||||
return proto3.util.equals(Log, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* TxResult stores results of Tx execution.
|
||||
*
|
||||
* @generated from message ethermint.evm.v1.TxResult
|
||||
*/
|
||||
export class TxResult extends Message<TxResult> {
|
||||
/**
|
||||
* contract_address contains the ethereum address of the created contract (if
|
||||
* any). If the state transition is an evm.Call, the contract address will be
|
||||
* empty.
|
||||
*
|
||||
* @generated from field: string contract_address = 1;
|
||||
*/
|
||||
contractAddress = "";
|
||||
|
||||
/**
|
||||
* bloom represents the bloom filter bytes
|
||||
*
|
||||
* @generated from field: bytes bloom = 2;
|
||||
*/
|
||||
bloom = new Uint8Array(0);
|
||||
|
||||
/**
|
||||
* tx_logs contains the transaction hash and the proto-compatible ethereum
|
||||
* logs.
|
||||
*
|
||||
* @generated from field: ethermint.evm.v1.TransactionLogs tx_logs = 3;
|
||||
*/
|
||||
txLogs?: TransactionLogs;
|
||||
|
||||
/**
|
||||
* ret defines the bytes from the execution.
|
||||
*
|
||||
* @generated from field: bytes ret = 4;
|
||||
*/
|
||||
ret = new Uint8Array(0);
|
||||
|
||||
/**
|
||||
* reverted flag is set to true when the call has been reverted
|
||||
*
|
||||
* @generated from field: bool reverted = 5;
|
||||
*/
|
||||
reverted = false;
|
||||
|
||||
/**
|
||||
* gas_used notes the amount of gas consumed while execution
|
||||
*
|
||||
* @generated from field: uint64 gas_used = 6;
|
||||
*/
|
||||
gasUsed = protoInt64.zero;
|
||||
|
||||
constructor(data?: PartialMessage<TxResult>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "ethermint.evm.v1.TxResult";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "contract_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 2, name: "bloom", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
|
||||
{ no: 3, name: "tx_logs", kind: "message", T: TransactionLogs },
|
||||
{ no: 4, name: "ret", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
|
||||
{ no: 5, name: "reverted", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
||||
{ no: 6, name: "gas_used", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TxResult {
|
||||
return new TxResult().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TxResult {
|
||||
return new TxResult().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TxResult {
|
||||
return new TxResult().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: TxResult | PlainMessage<TxResult> | undefined, b: TxResult | PlainMessage<TxResult> | undefined): boolean {
|
||||
return proto3.util.equals(TxResult, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* AccessTuple is the element type of an access list.
|
||||
*
|
||||
* @generated from message ethermint.evm.v1.AccessTuple
|
||||
*/
|
||||
export class AccessTuple extends Message<AccessTuple> {
|
||||
/**
|
||||
* address is a hex formatted ethereum address
|
||||
*
|
||||
* @generated from field: string address = 1;
|
||||
*/
|
||||
address = "";
|
||||
|
||||
/**
|
||||
* storage_keys are hex formatted hashes of the storage keys
|
||||
*
|
||||
* @generated from field: repeated string storage_keys = 2;
|
||||
*/
|
||||
storageKeys: string[] = [];
|
||||
|
||||
constructor(data?: PartialMessage<AccessTuple>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "ethermint.evm.v1.AccessTuple";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 2, name: "storage_keys", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AccessTuple {
|
||||
return new AccessTuple().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AccessTuple {
|
||||
return new AccessTuple().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AccessTuple {
|
||||
return new AccessTuple().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: AccessTuple | PlainMessage<AccessTuple> | undefined, b: AccessTuple | PlainMessage<AccessTuple> | undefined): boolean {
|
||||
return proto3.util.equals(AccessTuple, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* TraceConfig holds extra parameters to trace functions.
|
||||
*
|
||||
* @generated from message ethermint.evm.v1.TraceConfig
|
||||
*/
|
||||
export class TraceConfig extends Message<TraceConfig> {
|
||||
/**
|
||||
* tracer is a custom javascript tracer
|
||||
*
|
||||
* @generated from field: string tracer = 1;
|
||||
*/
|
||||
tracer = "";
|
||||
|
||||
/**
|
||||
* timeout overrides the default timeout of 5 seconds for JavaScript-based tracing
|
||||
* calls
|
||||
*
|
||||
* @generated from field: string timeout = 2;
|
||||
*/
|
||||
timeout = "";
|
||||
|
||||
/**
|
||||
* reexec defines the number of blocks the tracer is willing to go back
|
||||
*
|
||||
* @generated from field: uint64 reexec = 3;
|
||||
*/
|
||||
reexec = protoInt64.zero;
|
||||
|
||||
/**
|
||||
* disable_stack switches stack capture
|
||||
*
|
||||
* @generated from field: bool disable_stack = 5;
|
||||
*/
|
||||
disableStack = false;
|
||||
|
||||
/**
|
||||
* disable_storage switches storage capture
|
||||
*
|
||||
* @generated from field: bool disable_storage = 6;
|
||||
*/
|
||||
disableStorage = false;
|
||||
|
||||
/**
|
||||
* debug can be used to print output during capture end
|
||||
*
|
||||
* @generated from field: bool debug = 8;
|
||||
*/
|
||||
debug = false;
|
||||
|
||||
/**
|
||||
* limit defines the maximum length of output, but zero means unlimited
|
||||
*
|
||||
* @generated from field: int32 limit = 9;
|
||||
*/
|
||||
limit = 0;
|
||||
|
||||
/**
|
||||
* overrides can be used to execute a trace using future fork rules
|
||||
*
|
||||
* @generated from field: ethermint.evm.v1.ChainConfig overrides = 10;
|
||||
*/
|
||||
overrides?: ChainConfig;
|
||||
|
||||
/**
|
||||
* enable_memory switches memory capture
|
||||
*
|
||||
* @generated from field: bool enable_memory = 11;
|
||||
*/
|
||||
enableMemory = false;
|
||||
|
||||
/**
|
||||
* enable_return_data switches the capture of return data
|
||||
*
|
||||
* @generated from field: bool enable_return_data = 12;
|
||||
*/
|
||||
enableReturnData = false;
|
||||
|
||||
/**
|
||||
* tracer_json_config configures the tracer using a JSON string
|
||||
*
|
||||
* @generated from field: string tracer_json_config = 13;
|
||||
*/
|
||||
tracerJsonConfig = "";
|
||||
|
||||
constructor(data?: PartialMessage<TraceConfig>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "ethermint.evm.v1.TraceConfig";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "tracer", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 2, name: "timeout", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 3, name: "reexec", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
||||
{ no: 5, name: "disable_stack", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
||||
{ no: 6, name: "disable_storage", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
||||
{ no: 8, name: "debug", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
||||
{ no: 9, name: "limit", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
||||
{ no: 10, name: "overrides", kind: "message", T: ChainConfig },
|
||||
{ no: 11, name: "enable_memory", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
||||
{ no: 12, name: "enable_return_data", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
||||
{ no: 13, name: "tracer_json_config", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TraceConfig {
|
||||
return new TraceConfig().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TraceConfig {
|
||||
return new TraceConfig().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TraceConfig {
|
||||
return new TraceConfig().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: TraceConfig | PlainMessage<TraceConfig> | undefined, b: TraceConfig | PlainMessage<TraceConfig> | undefined): boolean {
|
||||
return proto3.util.equals(TraceConfig, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,117 @@
|
||||
// @generated by protoc-gen-es v1.2.0 with parameter "target=ts"
|
||||
// @generated from file ethermint/evm/v1/genesis.proto (package ethermint.evm.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 { Params, State } from "./evm_pb.js";
|
||||
|
||||
/**
|
||||
* GenesisState defines the evm module's genesis state.
|
||||
*
|
||||
* @generated from message ethermint.evm.v1.GenesisState
|
||||
*/
|
||||
export class GenesisState extends Message<GenesisState> {
|
||||
/**
|
||||
* accounts is an array containing the ethereum genesis accounts.
|
||||
*
|
||||
* @generated from field: repeated ethermint.evm.v1.GenesisAccount accounts = 1;
|
||||
*/
|
||||
accounts: GenesisAccount[] = [];
|
||||
|
||||
/**
|
||||
* params defines all the parameters of the module.
|
||||
*
|
||||
* @generated from field: ethermint.evm.v1.Params params = 2;
|
||||
*/
|
||||
params?: Params;
|
||||
|
||||
constructor(data?: PartialMessage<GenesisState>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "ethermint.evm.v1.GenesisState";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "accounts", kind: "message", T: GenesisAccount, repeated: true },
|
||||
{ no: 2, name: "params", kind: "message", T: Params },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GenesisState {
|
||||
return new GenesisState().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GenesisState {
|
||||
return new GenesisState().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GenesisState {
|
||||
return new GenesisState().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: GenesisState | PlainMessage<GenesisState> | undefined, b: GenesisState | PlainMessage<GenesisState> | undefined): boolean {
|
||||
return proto3.util.equals(GenesisState, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* GenesisAccount defines an account to be initialized in the genesis state.
|
||||
* Its main difference between with Geth's GenesisAccount is that it uses a
|
||||
* custom storage type and that it doesn't contain the private key field.
|
||||
*
|
||||
* @generated from message ethermint.evm.v1.GenesisAccount
|
||||
*/
|
||||
export class GenesisAccount extends Message<GenesisAccount> {
|
||||
/**
|
||||
* address defines an ethereum hex formated address of an account
|
||||
*
|
||||
* @generated from field: string address = 1;
|
||||
*/
|
||||
address = "";
|
||||
|
||||
/**
|
||||
* code defines the hex bytes of the account code.
|
||||
*
|
||||
* @generated from field: string code = 2;
|
||||
*/
|
||||
code = "";
|
||||
|
||||
/**
|
||||
* storage defines the set of state key values for the account.
|
||||
*
|
||||
* @generated from field: repeated ethermint.evm.v1.State storage = 3;
|
||||
*/
|
||||
storage: State[] = [];
|
||||
|
||||
constructor(data?: PartialMessage<GenesisAccount>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "ethermint.evm.v1.GenesisAccount";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 2, name: "code", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 3, name: "storage", kind: "message", T: State, repeated: true },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GenesisAccount {
|
||||
return new GenesisAccount().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GenesisAccount {
|
||||
return new GenesisAccount().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GenesisAccount {
|
||||
return new GenesisAccount().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: GenesisAccount | PlainMessage<GenesisAccount> | undefined, b: GenesisAccount | PlainMessage<GenesisAccount> | undefined): boolean {
|
||||
return proto3.util.equals(GenesisAccount, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,157 @@
|
||||
// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts"
|
||||
// @generated from file ethermint/evm/v1/query.proto (package ethermint.evm.v1, syntax proto3)
|
||||
/* eslint-disable */
|
||||
// @ts-nocheck
|
||||
|
||||
import { EstimateGasResponse, EthCallRequest, QueryAccountRequest, QueryAccountResponse, QueryBalanceRequest, QueryBalanceResponse, QueryBaseFeeRequest, QueryBaseFeeResponse, QueryCodeRequest, QueryCodeResponse, QueryCosmosAccountRequest, QueryCosmosAccountResponse, QueryParamsRequest, QueryParamsResponse, QueryStorageRequest, QueryStorageResponse, QueryTraceBlockRequest, QueryTraceBlockResponse, QueryTraceTxRequest, QueryTraceTxResponse, QueryValidatorAccountRequest, QueryValidatorAccountResponse } from "./query_pb.js";
|
||||
import { MsgEthereumTxResponse } from "./tx_pb.js";
|
||||
|
||||
const TYPE_NAME = "ethermint.evm.v1.Query";
|
||||
|
||||
/**
|
||||
* Account queries an Ethereum account.
|
||||
*
|
||||
* @generated from rpc ethermint.evm.v1.Query.Account
|
||||
*/
|
||||
export const QueryAccountService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "Account",
|
||||
Request: QueryAccountRequest,
|
||||
Response: QueryAccountResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* CosmosAccount queries an Ethereum account's Cosmos Address.
|
||||
*
|
||||
* @generated from rpc ethermint.evm.v1.Query.CosmosAccount
|
||||
*/
|
||||
export const QueryCosmosAccountService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "CosmosAccount",
|
||||
Request: QueryCosmosAccountRequest,
|
||||
Response: QueryCosmosAccountResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* ValidatorAccount queries an Ethereum account's from a validator consensus
|
||||
* Address.
|
||||
*
|
||||
* @generated from rpc ethermint.evm.v1.Query.ValidatorAccount
|
||||
*/
|
||||
export const QueryValidatorAccountService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "ValidatorAccount",
|
||||
Request: QueryValidatorAccountRequest,
|
||||
Response: QueryValidatorAccountResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* Balance queries the balance of a the EVM denomination for a single
|
||||
* EthAccount.
|
||||
*
|
||||
* @generated from rpc ethermint.evm.v1.Query.Balance
|
||||
*/
|
||||
export const QueryBalanceService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "Balance",
|
||||
Request: QueryBalanceRequest,
|
||||
Response: QueryBalanceResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* Storage queries the balance of all coins for a single account.
|
||||
*
|
||||
* @generated from rpc ethermint.evm.v1.Query.Storage
|
||||
*/
|
||||
export const QueryStorageService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "Storage",
|
||||
Request: QueryStorageRequest,
|
||||
Response: QueryStorageResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* Code queries the balance of all coins for a single account.
|
||||
*
|
||||
* @generated from rpc ethermint.evm.v1.Query.Code
|
||||
*/
|
||||
export const QueryCodeService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "Code",
|
||||
Request: QueryCodeRequest,
|
||||
Response: QueryCodeResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* Params queries the parameters of x/evm module.
|
||||
*
|
||||
* @generated from rpc ethermint.evm.v1.Query.Params
|
||||
*/
|
||||
export const QueryParamsService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "Params",
|
||||
Request: QueryParamsRequest,
|
||||
Response: QueryParamsResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* EthCall implements the `eth_call` rpc api
|
||||
*
|
||||
* @generated from rpc ethermint.evm.v1.Query.EthCall
|
||||
*/
|
||||
export const QueryEthCallService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "EthCall",
|
||||
Request: EthCallRequest,
|
||||
Response: MsgEthereumTxResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* EstimateGas implements the `eth_estimateGas` rpc api
|
||||
*
|
||||
* @generated from rpc ethermint.evm.v1.Query.EstimateGas
|
||||
*/
|
||||
export const QueryEstimateGasService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "EstimateGas",
|
||||
Request: EthCallRequest,
|
||||
Response: EstimateGasResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* TraceTx implements the `debug_traceTransaction` rpc api
|
||||
*
|
||||
* @generated from rpc ethermint.evm.v1.Query.TraceTx
|
||||
*/
|
||||
export const QueryTraceTxService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "TraceTx",
|
||||
Request: QueryTraceTxRequest,
|
||||
Response: QueryTraceTxResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* TraceBlock implements the `debug_traceBlockByNumber` and `debug_traceBlockByHash` rpc api
|
||||
*
|
||||
* @generated from rpc ethermint.evm.v1.Query.TraceBlock
|
||||
*/
|
||||
export const QueryTraceBlockService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "TraceBlock",
|
||||
Request: QueryTraceBlockRequest,
|
||||
Response: QueryTraceBlockResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* BaseFee queries the base fee of the parent block of the current block,
|
||||
* it's similar to feemarket module's method, but also checks london hardfork status.
|
||||
*
|
||||
* @generated from rpc ethermint.evm.v1.Query.BaseFee
|
||||
*/
|
||||
export const QueryBaseFeeService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "BaseFee",
|
||||
Request: QueryBaseFeeRequest,
|
||||
Response: QueryBaseFeeResponse,
|
||||
} as const;
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,34 @@
|
||||
// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts"
|
||||
// @generated from file ethermint/evm/v1/tx.proto (package ethermint.evm.v1, syntax proto3)
|
||||
/* eslint-disable */
|
||||
// @ts-nocheck
|
||||
|
||||
import { MsgEthereumTx, MsgEthereumTxResponse, MsgUpdateParams, MsgUpdateParamsResponse } from "./tx_pb.js";
|
||||
|
||||
const TYPE_NAME = "ethermint.evm.v1.Msg";
|
||||
|
||||
/**
|
||||
* EthereumTx defines a method submitting Ethereum transactions.
|
||||
*
|
||||
* @generated from rpc ethermint.evm.v1.Msg.EthereumTx
|
||||
*/
|
||||
export const MsgEthereumTxService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "EthereumTx",
|
||||
Request: MsgEthereumTx,
|
||||
Response: MsgEthereumTxResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* UpdateParams defined a governance operation for updating the x/evm module parameters.
|
||||
* The authority is hard-coded to the Cosmos SDK x/gov module account
|
||||
*
|
||||
* @generated from rpc ethermint.evm.v1.Msg.UpdateParams
|
||||
*/
|
||||
export const MsgUpdateParamsService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "UpdateParams",
|
||||
Request: MsgUpdateParams,
|
||||
Response: MsgUpdateParamsResponse,
|
||||
} as const;
|
||||
|
||||
@@ -0,0 +1,627 @@
|
||||
// @generated by protoc-gen-es v1.2.0 with parameter "target=ts"
|
||||
// @generated from file ethermint/evm/v1/tx.proto (package ethermint.evm.v1, 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 { AccessTuple, Log, Params } from "./evm_pb.js";
|
||||
|
||||
/**
|
||||
* MsgEthereumTx encapsulates an Ethereum transaction as an SDK message.
|
||||
*
|
||||
* @generated from message ethermint.evm.v1.MsgEthereumTx
|
||||
*/
|
||||
export class MsgEthereumTx extends Message<MsgEthereumTx> {
|
||||
/**
|
||||
* data is inner transaction data of the Ethereum transaction
|
||||
*
|
||||
* @generated from field: google.protobuf.Any data = 1;
|
||||
*/
|
||||
data?: Any;
|
||||
|
||||
/**
|
||||
* size is the encoded storage size of the transaction (DEPRECATED)
|
||||
*
|
||||
* @generated from field: double size = 2;
|
||||
*/
|
||||
size = 0;
|
||||
|
||||
/**
|
||||
* hash of the transaction in hex format
|
||||
*
|
||||
* @generated from field: string hash = 3;
|
||||
*/
|
||||
hash = "";
|
||||
|
||||
/**
|
||||
* from is the ethereum signer address in hex format. This address value is checked
|
||||
* against the address derived from the signature (V, R, S) using the
|
||||
* secp256k1 elliptic curve
|
||||
*
|
||||
* @generated from field: string from = 4;
|
||||
*/
|
||||
from = "";
|
||||
|
||||
constructor(data?: PartialMessage<MsgEthereumTx>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "ethermint.evm.v1.MsgEthereumTx";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "data", kind: "message", T: Any },
|
||||
{ no: 2, name: "size", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
||||
{ no: 3, name: "hash", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 4, name: "from", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MsgEthereumTx {
|
||||
return new MsgEthereumTx().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MsgEthereumTx {
|
||||
return new MsgEthereumTx().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MsgEthereumTx {
|
||||
return new MsgEthereumTx().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: MsgEthereumTx | PlainMessage<MsgEthereumTx> | undefined, b: MsgEthereumTx | PlainMessage<MsgEthereumTx> | undefined): boolean {
|
||||
return proto3.util.equals(MsgEthereumTx, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* LegacyTx is the transaction data of regular Ethereum transactions.
|
||||
* NOTE: All non-protected transactions (i.e non EIP155 signed) will fail if the
|
||||
* AllowUnprotectedTxs parameter is disabled.
|
||||
*
|
||||
* @generated from message ethermint.evm.v1.LegacyTx
|
||||
*/
|
||||
export class LegacyTx extends Message<LegacyTx> {
|
||||
/**
|
||||
* nonce corresponds to the account nonce (transaction sequence).
|
||||
*
|
||||
* @generated from field: uint64 nonce = 1;
|
||||
*/
|
||||
nonce = protoInt64.zero;
|
||||
|
||||
/**
|
||||
* gas_price defines the value for each gas unit
|
||||
*
|
||||
* @generated from field: string gas_price = 2;
|
||||
*/
|
||||
gasPrice = "";
|
||||
|
||||
/**
|
||||
* gas defines the gas limit defined for the transaction.
|
||||
*
|
||||
* @generated from field: uint64 gas = 3;
|
||||
*/
|
||||
gas = protoInt64.zero;
|
||||
|
||||
/**
|
||||
* to is the hex formatted address of the recipient
|
||||
*
|
||||
* @generated from field: string to = 4;
|
||||
*/
|
||||
to = "";
|
||||
|
||||
/**
|
||||
* value defines the unsigned integer value of the transaction amount.
|
||||
*
|
||||
* @generated from field: string value = 5;
|
||||
*/
|
||||
value = "";
|
||||
|
||||
/**
|
||||
* data is the data payload bytes of the transaction.
|
||||
*
|
||||
* @generated from field: bytes data = 6;
|
||||
*/
|
||||
data = new Uint8Array(0);
|
||||
|
||||
/**
|
||||
* v defines the signature value
|
||||
*
|
||||
* @generated from field: bytes v = 7;
|
||||
*/
|
||||
v = new Uint8Array(0);
|
||||
|
||||
/**
|
||||
* r defines the signature value
|
||||
*
|
||||
* @generated from field: bytes r = 8;
|
||||
*/
|
||||
r = new Uint8Array(0);
|
||||
|
||||
/**
|
||||
* s define the signature value
|
||||
*
|
||||
* @generated from field: bytes s = 9;
|
||||
*/
|
||||
s = new Uint8Array(0);
|
||||
|
||||
constructor(data?: PartialMessage<LegacyTx>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "ethermint.evm.v1.LegacyTx";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "nonce", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
||||
{ no: 2, name: "gas_price", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 3, name: "gas", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
||||
{ no: 4, name: "to", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 5, name: "value", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 6, name: "data", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
|
||||
{ no: 7, name: "v", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
|
||||
{ no: 8, name: "r", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
|
||||
{ no: 9, name: "s", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): LegacyTx {
|
||||
return new LegacyTx().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): LegacyTx {
|
||||
return new LegacyTx().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): LegacyTx {
|
||||
return new LegacyTx().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: LegacyTx | PlainMessage<LegacyTx> | undefined, b: LegacyTx | PlainMessage<LegacyTx> | undefined): boolean {
|
||||
return proto3.util.equals(LegacyTx, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* AccessListTx is the data of EIP-2930 access list transactions.
|
||||
*
|
||||
* @generated from message ethermint.evm.v1.AccessListTx
|
||||
*/
|
||||
export class AccessListTx extends Message<AccessListTx> {
|
||||
/**
|
||||
* chain_id of the destination EVM chain
|
||||
*
|
||||
* @generated from field: string chain_id = 1;
|
||||
*/
|
||||
chainId = "";
|
||||
|
||||
/**
|
||||
* nonce corresponds to the account nonce (transaction sequence).
|
||||
*
|
||||
* @generated from field: uint64 nonce = 2;
|
||||
*/
|
||||
nonce = protoInt64.zero;
|
||||
|
||||
/**
|
||||
* gas_price defines the value for each gas unit
|
||||
*
|
||||
* @generated from field: string gas_price = 3;
|
||||
*/
|
||||
gasPrice = "";
|
||||
|
||||
/**
|
||||
* gas defines the gas limit defined for the transaction.
|
||||
*
|
||||
* @generated from field: uint64 gas = 4;
|
||||
*/
|
||||
gas = protoInt64.zero;
|
||||
|
||||
/**
|
||||
* to is the recipient address in hex format
|
||||
*
|
||||
* @generated from field: string to = 5;
|
||||
*/
|
||||
to = "";
|
||||
|
||||
/**
|
||||
* value defines the unsigned integer value of the transaction amount.
|
||||
*
|
||||
* @generated from field: string value = 6;
|
||||
*/
|
||||
value = "";
|
||||
|
||||
/**
|
||||
* data is the data payload bytes of the transaction.
|
||||
*
|
||||
* @generated from field: bytes data = 7;
|
||||
*/
|
||||
data = new Uint8Array(0);
|
||||
|
||||
/**
|
||||
* accesses is an array of access tuples
|
||||
*
|
||||
* @generated from field: repeated ethermint.evm.v1.AccessTuple accesses = 8;
|
||||
*/
|
||||
accesses: AccessTuple[] = [];
|
||||
|
||||
/**
|
||||
* v defines the signature value
|
||||
*
|
||||
* @generated from field: bytes v = 9;
|
||||
*/
|
||||
v = new Uint8Array(0);
|
||||
|
||||
/**
|
||||
* r defines the signature value
|
||||
*
|
||||
* @generated from field: bytes r = 10;
|
||||
*/
|
||||
r = new Uint8Array(0);
|
||||
|
||||
/**
|
||||
* s define the signature value
|
||||
*
|
||||
* @generated from field: bytes s = 11;
|
||||
*/
|
||||
s = new Uint8Array(0);
|
||||
|
||||
constructor(data?: PartialMessage<AccessListTx>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "ethermint.evm.v1.AccessListTx";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "chain_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 2, name: "nonce", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
||||
{ no: 3, name: "gas_price", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 4, name: "gas", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
||||
{ no: 5, name: "to", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 6, name: "value", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 7, name: "data", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
|
||||
{ no: 8, name: "accesses", kind: "message", T: AccessTuple, repeated: true },
|
||||
{ no: 9, name: "v", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
|
||||
{ no: 10, name: "r", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
|
||||
{ no: 11, name: "s", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AccessListTx {
|
||||
return new AccessListTx().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AccessListTx {
|
||||
return new AccessListTx().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AccessListTx {
|
||||
return new AccessListTx().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: AccessListTx | PlainMessage<AccessListTx> | undefined, b: AccessListTx | PlainMessage<AccessListTx> | undefined): boolean {
|
||||
return proto3.util.equals(AccessListTx, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* DynamicFeeTx is the data of EIP-1559 dinamic fee transactions.
|
||||
*
|
||||
* @generated from message ethermint.evm.v1.DynamicFeeTx
|
||||
*/
|
||||
export class DynamicFeeTx extends Message<DynamicFeeTx> {
|
||||
/**
|
||||
* chain_id of the destination EVM chain
|
||||
*
|
||||
* @generated from field: string chain_id = 1;
|
||||
*/
|
||||
chainId = "";
|
||||
|
||||
/**
|
||||
* nonce corresponds to the account nonce (transaction sequence).
|
||||
*
|
||||
* @generated from field: uint64 nonce = 2;
|
||||
*/
|
||||
nonce = protoInt64.zero;
|
||||
|
||||
/**
|
||||
* gas_tip_cap defines the max value for the gas tip
|
||||
*
|
||||
* @generated from field: string gas_tip_cap = 3;
|
||||
*/
|
||||
gasTipCap = "";
|
||||
|
||||
/**
|
||||
* gas_fee_cap defines the max value for the gas fee
|
||||
*
|
||||
* @generated from field: string gas_fee_cap = 4;
|
||||
*/
|
||||
gasFeeCap = "";
|
||||
|
||||
/**
|
||||
* gas defines the gas limit defined for the transaction.
|
||||
*
|
||||
* @generated from field: uint64 gas = 5;
|
||||
*/
|
||||
gas = protoInt64.zero;
|
||||
|
||||
/**
|
||||
* to is the hex formatted address of the recipient
|
||||
*
|
||||
* @generated from field: string to = 6;
|
||||
*/
|
||||
to = "";
|
||||
|
||||
/**
|
||||
* value defines the the transaction amount.
|
||||
*
|
||||
* @generated from field: string value = 7;
|
||||
*/
|
||||
value = "";
|
||||
|
||||
/**
|
||||
* data is the data payload bytes of the transaction.
|
||||
*
|
||||
* @generated from field: bytes data = 8;
|
||||
*/
|
||||
data = new Uint8Array(0);
|
||||
|
||||
/**
|
||||
* accesses is an array of access tuples
|
||||
*
|
||||
* @generated from field: repeated ethermint.evm.v1.AccessTuple accesses = 9;
|
||||
*/
|
||||
accesses: AccessTuple[] = [];
|
||||
|
||||
/**
|
||||
* v defines the signature value
|
||||
*
|
||||
* @generated from field: bytes v = 10;
|
||||
*/
|
||||
v = new Uint8Array(0);
|
||||
|
||||
/**
|
||||
* r defines the signature value
|
||||
*
|
||||
* @generated from field: bytes r = 11;
|
||||
*/
|
||||
r = new Uint8Array(0);
|
||||
|
||||
/**
|
||||
* s define the signature value
|
||||
*
|
||||
* @generated from field: bytes s = 12;
|
||||
*/
|
||||
s = new Uint8Array(0);
|
||||
|
||||
constructor(data?: PartialMessage<DynamicFeeTx>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "ethermint.evm.v1.DynamicFeeTx";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "chain_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 2, name: "nonce", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
||||
{ no: 3, name: "gas_tip_cap", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 4, name: "gas_fee_cap", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 5, name: "gas", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
||||
{ no: 6, name: "to", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 7, name: "value", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 8, name: "data", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
|
||||
{ no: 9, name: "accesses", kind: "message", T: AccessTuple, repeated: true },
|
||||
{ no: 10, name: "v", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
|
||||
{ no: 11, name: "r", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
|
||||
{ no: 12, name: "s", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DynamicFeeTx {
|
||||
return new DynamicFeeTx().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DynamicFeeTx {
|
||||
return new DynamicFeeTx().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DynamicFeeTx {
|
||||
return new DynamicFeeTx().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: DynamicFeeTx | PlainMessage<DynamicFeeTx> | undefined, b: DynamicFeeTx | PlainMessage<DynamicFeeTx> | undefined): boolean {
|
||||
return proto3.util.equals(DynamicFeeTx, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* ExtensionOptionsEthereumTx is an extension option for ethereum transactions
|
||||
*
|
||||
* @generated from message ethermint.evm.v1.ExtensionOptionsEthereumTx
|
||||
*/
|
||||
export class ExtensionOptionsEthereumTx extends Message<ExtensionOptionsEthereumTx> {
|
||||
constructor(data?: PartialMessage<ExtensionOptionsEthereumTx>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "ethermint.evm.v1.ExtensionOptionsEthereumTx";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ExtensionOptionsEthereumTx {
|
||||
return new ExtensionOptionsEthereumTx().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ExtensionOptionsEthereumTx {
|
||||
return new ExtensionOptionsEthereumTx().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ExtensionOptionsEthereumTx {
|
||||
return new ExtensionOptionsEthereumTx().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: ExtensionOptionsEthereumTx | PlainMessage<ExtensionOptionsEthereumTx> | undefined, b: ExtensionOptionsEthereumTx | PlainMessage<ExtensionOptionsEthereumTx> | undefined): boolean {
|
||||
return proto3.util.equals(ExtensionOptionsEthereumTx, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* MsgEthereumTxResponse defines the Msg/EthereumTx response type.
|
||||
*
|
||||
* @generated from message ethermint.evm.v1.MsgEthereumTxResponse
|
||||
*/
|
||||
export class MsgEthereumTxResponse extends Message<MsgEthereumTxResponse> {
|
||||
/**
|
||||
* hash of the ethereum transaction in hex format. This hash differs from the
|
||||
* Tendermint sha256 hash of the transaction bytes. See
|
||||
* https://github.com/tendermint/tendermint/issues/6539 for reference
|
||||
*
|
||||
* @generated from field: string hash = 1;
|
||||
*/
|
||||
hash = "";
|
||||
|
||||
/**
|
||||
* logs contains the transaction hash and the proto-compatible ethereum
|
||||
* logs.
|
||||
*
|
||||
* @generated from field: repeated ethermint.evm.v1.Log logs = 2;
|
||||
*/
|
||||
logs: Log[] = [];
|
||||
|
||||
/**
|
||||
* ret is the returned data from evm function (result or data supplied with revert
|
||||
* opcode)
|
||||
*
|
||||
* @generated from field: bytes ret = 3;
|
||||
*/
|
||||
ret = new Uint8Array(0);
|
||||
|
||||
/**
|
||||
* vm_error is the error returned by vm execution
|
||||
*
|
||||
* @generated from field: string vm_error = 4;
|
||||
*/
|
||||
vmError = "";
|
||||
|
||||
/**
|
||||
* gas_used specifies how much gas was consumed by the transaction
|
||||
*
|
||||
* @generated from field: uint64 gas_used = 5;
|
||||
*/
|
||||
gasUsed = protoInt64.zero;
|
||||
|
||||
constructor(data?: PartialMessage<MsgEthereumTxResponse>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "ethermint.evm.v1.MsgEthereumTxResponse";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "hash", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 2, name: "logs", kind: "message", T: Log, repeated: true },
|
||||
{ no: 3, name: "ret", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
|
||||
{ no: 4, name: "vm_error", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 5, name: "gas_used", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MsgEthereumTxResponse {
|
||||
return new MsgEthereumTxResponse().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MsgEthereumTxResponse {
|
||||
return new MsgEthereumTxResponse().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MsgEthereumTxResponse {
|
||||
return new MsgEthereumTxResponse().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: MsgEthereumTxResponse | PlainMessage<MsgEthereumTxResponse> | undefined, b: MsgEthereumTxResponse | PlainMessage<MsgEthereumTxResponse> | undefined): boolean {
|
||||
return proto3.util.equals(MsgEthereumTxResponse, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* MsgUpdateParams defines a Msg for updating the x/evm module parameters.
|
||||
*
|
||||
* @generated from message ethermint.evm.v1.MsgUpdateParams
|
||||
*/
|
||||
export class MsgUpdateParams extends Message<MsgUpdateParams> {
|
||||
/**
|
||||
* authority is the address of the governance account.
|
||||
*
|
||||
* @generated from field: string authority = 1;
|
||||
*/
|
||||
authority = "";
|
||||
|
||||
/**
|
||||
* params defines the x/evm parameters to update.
|
||||
* NOTE: All parameters must be supplied.
|
||||
*
|
||||
* @generated from field: ethermint.evm.v1.Params params = 2;
|
||||
*/
|
||||
params?: Params;
|
||||
|
||||
constructor(data?: PartialMessage<MsgUpdateParams>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "ethermint.evm.v1.MsgUpdateParams";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 2, name: "params", kind: "message", T: Params },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MsgUpdateParams {
|
||||
return new MsgUpdateParams().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MsgUpdateParams {
|
||||
return new MsgUpdateParams().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MsgUpdateParams {
|
||||
return new MsgUpdateParams().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: MsgUpdateParams | PlainMessage<MsgUpdateParams> | undefined, b: MsgUpdateParams | PlainMessage<MsgUpdateParams> | undefined): boolean {
|
||||
return proto3.util.equals(MsgUpdateParams, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* MsgUpdateParamsResponse defines the response structure for executing a
|
||||
* MsgUpdateParams message.
|
||||
*
|
||||
* @generated from message ethermint.evm.v1.MsgUpdateParamsResponse
|
||||
*/
|
||||
export class MsgUpdateParamsResponse extends Message<MsgUpdateParamsResponse> {
|
||||
constructor(data?: PartialMessage<MsgUpdateParamsResponse>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "ethermint.evm.v1.MsgUpdateParamsResponse";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MsgUpdateParamsResponse {
|
||||
return new MsgUpdateParamsResponse().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MsgUpdateParamsResponse {
|
||||
return new MsgUpdateParamsResponse().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MsgUpdateParamsResponse {
|
||||
return new MsgUpdateParamsResponse().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: MsgUpdateParamsResponse | PlainMessage<MsgUpdateParamsResponse> | undefined, b: MsgUpdateParamsResponse | PlainMessage<MsgUpdateParamsResponse> | undefined): boolean {
|
||||
return proto3.util.equals(MsgUpdateParamsResponse, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,98 @@
|
||||
// @generated by protoc-gen-es v1.2.0 with parameter "target=ts"
|
||||
// @generated from file ethermint/feemarket/v1/events.proto (package ethermint.feemarket.v1, syntax proto3)
|
||||
/* eslint-disable */
|
||||
// @ts-nocheck
|
||||
|
||||
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
|
||||
import { Message, proto3 } from "@bufbuild/protobuf";
|
||||
|
||||
/**
|
||||
* EventFeeMarket is the event type for the fee market module
|
||||
*
|
||||
* @generated from message ethermint.feemarket.v1.EventFeeMarket
|
||||
*/
|
||||
export class EventFeeMarket extends Message<EventFeeMarket> {
|
||||
/**
|
||||
* base_fee for EIP-1559 blocks
|
||||
*
|
||||
* @generated from field: string base_fee = 1;
|
||||
*/
|
||||
baseFee = "";
|
||||
|
||||
constructor(data?: PartialMessage<EventFeeMarket>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "ethermint.feemarket.v1.EventFeeMarket";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "base_fee", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): EventFeeMarket {
|
||||
return new EventFeeMarket().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): EventFeeMarket {
|
||||
return new EventFeeMarket().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): EventFeeMarket {
|
||||
return new EventFeeMarket().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: EventFeeMarket | PlainMessage<EventFeeMarket> | undefined, b: EventFeeMarket | PlainMessage<EventFeeMarket> | undefined): boolean {
|
||||
return proto3.util.equals(EventFeeMarket, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* EventBlockGas defines an Ethereum block gas event
|
||||
*
|
||||
* @generated from message ethermint.feemarket.v1.EventBlockGas
|
||||
*/
|
||||
export class EventBlockGas extends Message<EventBlockGas> {
|
||||
/**
|
||||
* height of the block
|
||||
*
|
||||
* @generated from field: string height = 1;
|
||||
*/
|
||||
height = "";
|
||||
|
||||
/**
|
||||
* amount of gas wanted by the block
|
||||
*
|
||||
* @generated from field: string amount = 2;
|
||||
*/
|
||||
amount = "";
|
||||
|
||||
constructor(data?: PartialMessage<EventBlockGas>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "ethermint.feemarket.v1.EventBlockGas";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "height", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 2, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): EventBlockGas {
|
||||
return new EventBlockGas().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): EventBlockGas {
|
||||
return new EventBlockGas().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): EventBlockGas {
|
||||
return new EventBlockGas().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: EventBlockGas | PlainMessage<EventBlockGas> | undefined, b: EventBlockGas | PlainMessage<EventBlockGas> | undefined): boolean {
|
||||
return proto3.util.equals(EventBlockGas, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,100 @@
|
||||
// @generated by protoc-gen-es v1.2.0 with parameter "target=ts"
|
||||
// @generated from file ethermint/feemarket/v1/feemarket.proto (package ethermint.feemarket.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";
|
||||
|
||||
/**
|
||||
* Params defines the EVM module parameters
|
||||
*
|
||||
* @generated from message ethermint.feemarket.v1.Params
|
||||
*/
|
||||
export class Params extends Message<Params> {
|
||||
/**
|
||||
* no_base_fee forces the EIP-1559 base fee to 0 (needed for 0 price calls)
|
||||
*
|
||||
* @generated from field: bool no_base_fee = 1;
|
||||
*/
|
||||
noBaseFee = false;
|
||||
|
||||
/**
|
||||
* base_fee_change_denominator bounds the amount the base fee can change
|
||||
* between blocks.
|
||||
*
|
||||
* @generated from field: uint32 base_fee_change_denominator = 2;
|
||||
*/
|
||||
baseFeeChangeDenominator = 0;
|
||||
|
||||
/**
|
||||
* elasticity_multiplier bounds the maximum gas limit an EIP-1559 block may
|
||||
* have.
|
||||
*
|
||||
* @generated from field: uint32 elasticity_multiplier = 3;
|
||||
*/
|
||||
elasticityMultiplier = 0;
|
||||
|
||||
/**
|
||||
* enable_height defines at which block height the base fee calculation is enabled.
|
||||
*
|
||||
* @generated from field: int64 enable_height = 5;
|
||||
*/
|
||||
enableHeight = protoInt64.zero;
|
||||
|
||||
/**
|
||||
* base_fee for EIP-1559 blocks.
|
||||
*
|
||||
* @generated from field: string base_fee = 6;
|
||||
*/
|
||||
baseFee = "";
|
||||
|
||||
/**
|
||||
* min_gas_price defines the minimum gas price value for cosmos and eth transactions
|
||||
*
|
||||
* @generated from field: string min_gas_price = 7;
|
||||
*/
|
||||
minGasPrice = "";
|
||||
|
||||
/**
|
||||
* min_gas_multiplier bounds the minimum gas used to be charged
|
||||
* to senders based on gas limit
|
||||
*
|
||||
* @generated from field: string min_gas_multiplier = 8;
|
||||
*/
|
||||
minGasMultiplier = "";
|
||||
|
||||
constructor(data?: PartialMessage<Params>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "ethermint.feemarket.v1.Params";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "no_base_fee", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
||||
{ no: 2, name: "base_fee_change_denominator", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
||||
{ no: 3, name: "elasticity_multiplier", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
||||
{ no: 5, name: "enable_height", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
||||
{ no: 6, name: "base_fee", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 7, name: "min_gas_price", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 8, name: "min_gas_multiplier", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Params {
|
||||
return new Params().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Params {
|
||||
return new Params().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Params {
|
||||
return new Params().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: Params | PlainMessage<Params> | undefined, b: Params | PlainMessage<Params> | undefined): boolean {
|
||||
return proto3.util.equals(Params, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,59 @@
|
||||
// @generated by protoc-gen-es v1.2.0 with parameter "target=ts"
|
||||
// @generated from file ethermint/feemarket/v1/genesis.proto (package ethermint.feemarket.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";
|
||||
import { Params } from "./feemarket_pb.js";
|
||||
|
||||
/**
|
||||
* GenesisState defines the feemarket module's genesis state.
|
||||
*
|
||||
* @generated from message ethermint.feemarket.v1.GenesisState
|
||||
*/
|
||||
export class GenesisState extends Message<GenesisState> {
|
||||
/**
|
||||
* params defines all the parameters of the feemarket module.
|
||||
*
|
||||
* @generated from field: ethermint.feemarket.v1.Params params = 1;
|
||||
*/
|
||||
params?: Params;
|
||||
|
||||
/**
|
||||
* block_gas is the amount of gas wanted on the last block before the upgrade.
|
||||
* Zero by default.
|
||||
*
|
||||
* @generated from field: uint64 block_gas = 3;
|
||||
*/
|
||||
blockGas = protoInt64.zero;
|
||||
|
||||
constructor(data?: PartialMessage<GenesisState>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "ethermint.feemarket.v1.GenesisState";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "params", kind: "message", T: Params },
|
||||
{ no: 3, name: "block_gas", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GenesisState {
|
||||
return new GenesisState().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GenesisState {
|
||||
return new GenesisState().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GenesisState {
|
||||
return new GenesisState().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: GenesisState | PlainMessage<GenesisState> | undefined, b: GenesisState | PlainMessage<GenesisState> | undefined): boolean {
|
||||
return proto3.util.equals(GenesisState, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,45 @@
|
||||
// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts"
|
||||
// @generated from file ethermint/feemarket/v1/query.proto (package ethermint.feemarket.v1, syntax proto3)
|
||||
/* eslint-disable */
|
||||
// @ts-nocheck
|
||||
|
||||
import { QueryBaseFeeRequest, QueryBaseFeeResponse, QueryBlockGasRequest, QueryBlockGasResponse, QueryParamsRequest, QueryParamsResponse } from "./query_pb.js";
|
||||
|
||||
const TYPE_NAME = "ethermint.feemarket.v1.Query";
|
||||
|
||||
/**
|
||||
* Params queries the parameters of x/feemarket module.
|
||||
*
|
||||
* @generated from rpc ethermint.feemarket.v1.Query.Params
|
||||
*/
|
||||
export const QueryParamsService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "Params",
|
||||
Request: QueryParamsRequest,
|
||||
Response: QueryParamsResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* BaseFee queries the base fee of the parent block of the current block.
|
||||
*
|
||||
* @generated from rpc ethermint.feemarket.v1.Query.BaseFee
|
||||
*/
|
||||
export const QueryBaseFeeService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "BaseFee",
|
||||
Request: QueryBaseFeeRequest,
|
||||
Response: QueryBaseFeeResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* BlockGas queries the gas used at a given block height
|
||||
*
|
||||
* @generated from rpc ethermint.feemarket.v1.Query.BlockGas
|
||||
*/
|
||||
export const QueryBlockGasService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "BlockGas",
|
||||
Request: QueryBlockGasRequest,
|
||||
Response: QueryBlockGasResponse,
|
||||
} as const;
|
||||
|
||||
@@ -0,0 +1,233 @@
|
||||
// @generated by protoc-gen-es v1.2.0 with parameter "target=ts"
|
||||
// @generated from file ethermint/feemarket/v1/query.proto (package ethermint.feemarket.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";
|
||||
import { Params } from "./feemarket_pb.js";
|
||||
|
||||
/**
|
||||
* QueryParamsRequest defines the request type for querying x/evm parameters.
|
||||
*
|
||||
* @generated from message ethermint.feemarket.v1.QueryParamsRequest
|
||||
*/
|
||||
export class QueryParamsRequest extends Message<QueryParamsRequest> {
|
||||
constructor(data?: PartialMessage<QueryParamsRequest>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "ethermint.feemarket.v1.QueryParamsRequest";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): QueryParamsRequest {
|
||||
return new QueryParamsRequest().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): QueryParamsRequest {
|
||||
return new QueryParamsRequest().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): QueryParamsRequest {
|
||||
return new QueryParamsRequest().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: QueryParamsRequest | PlainMessage<QueryParamsRequest> | undefined, b: QueryParamsRequest | PlainMessage<QueryParamsRequest> | undefined): boolean {
|
||||
return proto3.util.equals(QueryParamsRequest, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* QueryParamsResponse defines the response type for querying x/evm parameters.
|
||||
*
|
||||
* @generated from message ethermint.feemarket.v1.QueryParamsResponse
|
||||
*/
|
||||
export class QueryParamsResponse extends Message<QueryParamsResponse> {
|
||||
/**
|
||||
* params define the evm module parameters.
|
||||
*
|
||||
* @generated from field: ethermint.feemarket.v1.Params params = 1;
|
||||
*/
|
||||
params?: Params;
|
||||
|
||||
constructor(data?: PartialMessage<QueryParamsResponse>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "ethermint.feemarket.v1.QueryParamsResponse";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "params", kind: "message", T: Params },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): QueryParamsResponse {
|
||||
return new QueryParamsResponse().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): QueryParamsResponse {
|
||||
return new QueryParamsResponse().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): QueryParamsResponse {
|
||||
return new QueryParamsResponse().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: QueryParamsResponse | PlainMessage<QueryParamsResponse> | undefined, b: QueryParamsResponse | PlainMessage<QueryParamsResponse> | undefined): boolean {
|
||||
return proto3.util.equals(QueryParamsResponse, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* QueryBaseFeeRequest defines the request type for querying the EIP1559 base
|
||||
* fee.
|
||||
*
|
||||
* @generated from message ethermint.feemarket.v1.QueryBaseFeeRequest
|
||||
*/
|
||||
export class QueryBaseFeeRequest extends Message<QueryBaseFeeRequest> {
|
||||
constructor(data?: PartialMessage<QueryBaseFeeRequest>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "ethermint.feemarket.v1.QueryBaseFeeRequest";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): QueryBaseFeeRequest {
|
||||
return new QueryBaseFeeRequest().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): QueryBaseFeeRequest {
|
||||
return new QueryBaseFeeRequest().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): QueryBaseFeeRequest {
|
||||
return new QueryBaseFeeRequest().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: QueryBaseFeeRequest | PlainMessage<QueryBaseFeeRequest> | undefined, b: QueryBaseFeeRequest | PlainMessage<QueryBaseFeeRequest> | undefined): boolean {
|
||||
return proto3.util.equals(QueryBaseFeeRequest, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* QueryBaseFeeResponse returns the EIP1559 base fee.
|
||||
*
|
||||
* @generated from message ethermint.feemarket.v1.QueryBaseFeeResponse
|
||||
*/
|
||||
export class QueryBaseFeeResponse extends Message<QueryBaseFeeResponse> {
|
||||
/**
|
||||
* base_fee is the EIP1559 base fee
|
||||
*
|
||||
* @generated from field: string base_fee = 1;
|
||||
*/
|
||||
baseFee = "";
|
||||
|
||||
constructor(data?: PartialMessage<QueryBaseFeeResponse>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "ethermint.feemarket.v1.QueryBaseFeeResponse";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "base_fee", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): QueryBaseFeeResponse {
|
||||
return new QueryBaseFeeResponse().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): QueryBaseFeeResponse {
|
||||
return new QueryBaseFeeResponse().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): QueryBaseFeeResponse {
|
||||
return new QueryBaseFeeResponse().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: QueryBaseFeeResponse | PlainMessage<QueryBaseFeeResponse> | undefined, b: QueryBaseFeeResponse | PlainMessage<QueryBaseFeeResponse> | undefined): boolean {
|
||||
return proto3.util.equals(QueryBaseFeeResponse, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* QueryBlockGasRequest defines the request type for querying the EIP1559 base
|
||||
* fee.
|
||||
*
|
||||
* @generated from message ethermint.feemarket.v1.QueryBlockGasRequest
|
||||
*/
|
||||
export class QueryBlockGasRequest extends Message<QueryBlockGasRequest> {
|
||||
constructor(data?: PartialMessage<QueryBlockGasRequest>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "ethermint.feemarket.v1.QueryBlockGasRequest";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): QueryBlockGasRequest {
|
||||
return new QueryBlockGasRequest().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): QueryBlockGasRequest {
|
||||
return new QueryBlockGasRequest().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): QueryBlockGasRequest {
|
||||
return new QueryBlockGasRequest().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: QueryBlockGasRequest | PlainMessage<QueryBlockGasRequest> | undefined, b: QueryBlockGasRequest | PlainMessage<QueryBlockGasRequest> | undefined): boolean {
|
||||
return proto3.util.equals(QueryBlockGasRequest, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* QueryBlockGasResponse returns block gas used for a given height.
|
||||
*
|
||||
* @generated from message ethermint.feemarket.v1.QueryBlockGasResponse
|
||||
*/
|
||||
export class QueryBlockGasResponse extends Message<QueryBlockGasResponse> {
|
||||
/**
|
||||
* gas is the returned block gas
|
||||
*
|
||||
* @generated from field: int64 gas = 1;
|
||||
*/
|
||||
gas = protoInt64.zero;
|
||||
|
||||
constructor(data?: PartialMessage<QueryBlockGasResponse>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "ethermint.feemarket.v1.QueryBlockGasResponse";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "gas", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): QueryBlockGasResponse {
|
||||
return new QueryBlockGasResponse().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): QueryBlockGasResponse {
|
||||
return new QueryBlockGasResponse().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): QueryBlockGasResponse {
|
||||
return new QueryBlockGasResponse().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: QueryBlockGasResponse | PlainMessage<QueryBlockGasResponse> | undefined, b: QueryBlockGasResponse | PlainMessage<QueryBlockGasResponse> | undefined): boolean {
|
||||
return proto3.util.equals(QueryBlockGasResponse, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts"
|
||||
// @generated from file ethermint/feemarket/v1/tx.proto (package ethermint.feemarket.v1, syntax proto3)
|
||||
/* eslint-disable */
|
||||
// @ts-nocheck
|
||||
|
||||
import { MsgUpdateParams, MsgUpdateParamsResponse } from "./tx_pb.js";
|
||||
|
||||
const TYPE_NAME = "ethermint.feemarket.v1.Msg";
|
||||
|
||||
/**
|
||||
* UpdateParams defined a governance operation for updating the x/feemarket module parameters.
|
||||
* The authority is hard-coded to the Cosmos SDK x/gov module account
|
||||
*
|
||||
* @generated from rpc ethermint.feemarket.v1.Msg.UpdateParams
|
||||
*/
|
||||
export const MsgUpdateParamsService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "UpdateParams",
|
||||
Request: MsgUpdateParams,
|
||||
Response: MsgUpdateParamsResponse,
|
||||
} as const;
|
||||
|
||||
@@ -0,0 +1,93 @@
|
||||
// @generated by protoc-gen-es v1.2.0 with parameter "target=ts"
|
||||
// @generated from file ethermint/feemarket/v1/tx.proto (package ethermint.feemarket.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 { Params } from "./feemarket_pb.js";
|
||||
|
||||
/**
|
||||
* MsgUpdateParams defines a Msg for updating the x/feemarket module parameters.
|
||||
*
|
||||
* @generated from message ethermint.feemarket.v1.MsgUpdateParams
|
||||
*/
|
||||
export class MsgUpdateParams extends Message<MsgUpdateParams> {
|
||||
/**
|
||||
* authority is the address of the governance account.
|
||||
*
|
||||
* @generated from field: string authority = 1;
|
||||
*/
|
||||
authority = "";
|
||||
|
||||
/**
|
||||
* params defines the x/feemarket parameters to update.
|
||||
* NOTE: All parameters must be supplied.
|
||||
*
|
||||
* @generated from field: ethermint.feemarket.v1.Params params = 2;
|
||||
*/
|
||||
params?: Params;
|
||||
|
||||
constructor(data?: PartialMessage<MsgUpdateParams>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "ethermint.feemarket.v1.MsgUpdateParams";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 2, name: "params", kind: "message", T: Params },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MsgUpdateParams {
|
||||
return new MsgUpdateParams().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MsgUpdateParams {
|
||||
return new MsgUpdateParams().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MsgUpdateParams {
|
||||
return new MsgUpdateParams().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: MsgUpdateParams | PlainMessage<MsgUpdateParams> | undefined, b: MsgUpdateParams | PlainMessage<MsgUpdateParams> | undefined): boolean {
|
||||
return proto3.util.equals(MsgUpdateParams, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* MsgUpdateParamsResponse defines the response structure for executing a
|
||||
* MsgUpdateParams message.
|
||||
*
|
||||
* @generated from message ethermint.feemarket.v1.MsgUpdateParamsResponse
|
||||
*/
|
||||
export class MsgUpdateParamsResponse extends Message<MsgUpdateParamsResponse> {
|
||||
constructor(data?: PartialMessage<MsgUpdateParamsResponse>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "ethermint.feemarket.v1.MsgUpdateParamsResponse";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MsgUpdateParamsResponse {
|
||||
return new MsgUpdateParamsResponse().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MsgUpdateParamsResponse {
|
||||
return new MsgUpdateParamsResponse().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MsgUpdateParamsResponse {
|
||||
return new MsgUpdateParamsResponse().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: MsgUpdateParamsResponse | PlainMessage<MsgUpdateParamsResponse> | undefined, b: MsgUpdateParamsResponse | PlainMessage<MsgUpdateParamsResponse> | undefined): boolean {
|
||||
return proto3.util.equals(MsgUpdateParamsResponse, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,59 @@
|
||||
// @generated by protoc-gen-es v1.2.0 with parameter "target=ts"
|
||||
// @generated from file ethermint/types/v1/account.proto (package ethermint.types.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 { BaseAccount } from "../../../cosmos/auth/v1beta1/auth_pb.js";
|
||||
|
||||
/**
|
||||
* EthAccount implements the authtypes.AccountI interface and embeds an
|
||||
* authtypes.BaseAccount type. It is compatible with the auth AccountKeeper.
|
||||
*
|
||||
* @generated from message ethermint.types.v1.EthAccount
|
||||
*/
|
||||
export class EthAccount extends Message<EthAccount> {
|
||||
/**
|
||||
* base_account is an authtypes.BaseAccount
|
||||
*
|
||||
* @generated from field: cosmos.auth.v1beta1.BaseAccount base_account = 1;
|
||||
*/
|
||||
baseAccount?: BaseAccount;
|
||||
|
||||
/**
|
||||
* code_hash is the hash calculated from the code contents
|
||||
*
|
||||
* @generated from field: string code_hash = 2;
|
||||
*/
|
||||
codeHash = "";
|
||||
|
||||
constructor(data?: PartialMessage<EthAccount>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "ethermint.types.v1.EthAccount";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "base_account", kind: "message", T: BaseAccount },
|
||||
{ no: 2, name: "code_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): EthAccount {
|
||||
return new EthAccount().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): EthAccount {
|
||||
return new EthAccount().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): EthAccount {
|
||||
return new EthAccount().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: EthAccount | PlainMessage<EthAccount> | undefined, b: EthAccount | PlainMessage<EthAccount> | undefined): boolean {
|
||||
return proto3.util.equals(EthAccount, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,49 @@
|
||||
// @generated by protoc-gen-es v1.2.0 with parameter "target=ts"
|
||||
// @generated from file ethermint/types/v1/dynamic_fee.proto (package ethermint.types.v1, syntax proto3)
|
||||
/* eslint-disable */
|
||||
// @ts-nocheck
|
||||
|
||||
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
|
||||
import { Message, proto3 } from "@bufbuild/protobuf";
|
||||
|
||||
/**
|
||||
* ExtensionOptionDynamicFeeTx is an extension option that specifies the maxPrioPrice for cosmos tx
|
||||
*
|
||||
* @generated from message ethermint.types.v1.ExtensionOptionDynamicFeeTx
|
||||
*/
|
||||
export class ExtensionOptionDynamicFeeTx extends Message<ExtensionOptionDynamicFeeTx> {
|
||||
/**
|
||||
* max_priority_price is the same as `max_priority_fee_per_gas` in eip-1559 spec
|
||||
*
|
||||
* @generated from field: string max_priority_price = 1;
|
||||
*/
|
||||
maxPriorityPrice = "";
|
||||
|
||||
constructor(data?: PartialMessage<ExtensionOptionDynamicFeeTx>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "ethermint.types.v1.ExtensionOptionDynamicFeeTx";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "max_priority_price", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ExtensionOptionDynamicFeeTx {
|
||||
return new ExtensionOptionDynamicFeeTx().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ExtensionOptionDynamicFeeTx {
|
||||
return new ExtensionOptionDynamicFeeTx().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ExtensionOptionDynamicFeeTx {
|
||||
return new ExtensionOptionDynamicFeeTx().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: ExtensionOptionDynamicFeeTx | PlainMessage<ExtensionOptionDynamicFeeTx> | undefined, b: ExtensionOptionDynamicFeeTx | PlainMessage<ExtensionOptionDynamicFeeTx> | undefined): boolean {
|
||||
return proto3.util.equals(ExtensionOptionDynamicFeeTx, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,100 @@
|
||||
// @generated by protoc-gen-es v1.2.0 with parameter "target=ts"
|
||||
// @generated from file ethermint/types/v1/indexer.proto (package ethermint.types.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";
|
||||
|
||||
/**
|
||||
* TxResult is the value stored in eth tx indexer
|
||||
*
|
||||
* @generated from message ethermint.types.v1.TxResult
|
||||
*/
|
||||
export class TxResult extends Message<TxResult> {
|
||||
/**
|
||||
* height of the blockchain
|
||||
*
|
||||
* @generated from field: int64 height = 1;
|
||||
*/
|
||||
height = protoInt64.zero;
|
||||
|
||||
/**
|
||||
* tx_index of the cosmos transaction
|
||||
*
|
||||
* @generated from field: uint32 tx_index = 2;
|
||||
*/
|
||||
txIndex = 0;
|
||||
|
||||
/**
|
||||
* msg_index in a batch transaction
|
||||
*
|
||||
* @generated from field: uint32 msg_index = 3;
|
||||
*/
|
||||
msgIndex = 0;
|
||||
|
||||
/**
|
||||
* eth_tx_index is the index in the list of valid eth tx in the block,
|
||||
* aka. the transaction list returned by eth_getBlock api.
|
||||
*
|
||||
* @generated from field: int32 eth_tx_index = 4;
|
||||
*/
|
||||
ethTxIndex = 0;
|
||||
|
||||
/**
|
||||
* failed is true if the eth transaction did not go succeed
|
||||
*
|
||||
* @generated from field: bool failed = 5;
|
||||
*/
|
||||
failed = false;
|
||||
|
||||
/**
|
||||
* gas_used by the transaction. If it exceeds the block gas limit,
|
||||
* it's set to gas limit, which is what's actually deducted by ante handler.
|
||||
*
|
||||
* @generated from field: uint64 gas_used = 6;
|
||||
*/
|
||||
gasUsed = protoInt64.zero;
|
||||
|
||||
/**
|
||||
* cumulative_gas_used specifies the cumulated amount of gas used for all
|
||||
* processed messages within the current batch transaction.
|
||||
*
|
||||
* @generated from field: uint64 cumulative_gas_used = 7;
|
||||
*/
|
||||
cumulativeGasUsed = protoInt64.zero;
|
||||
|
||||
constructor(data?: PartialMessage<TxResult>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "ethermint.types.v1.TxResult";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "height", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
||||
{ no: 2, name: "tx_index", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
||||
{ no: 3, name: "msg_index", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
||||
{ no: 4, name: "eth_tx_index", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
||||
{ no: 5, name: "failed", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
||||
{ no: 6, name: "gas_used", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
||||
{ no: 7, name: "cumulative_gas_used", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TxResult {
|
||||
return new TxResult().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TxResult {
|
||||
return new TxResult().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TxResult {
|
||||
return new TxResult().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: TxResult | PlainMessage<TxResult> | undefined, b: TxResult | PlainMessage<TxResult> | undefined): boolean {
|
||||
return proto3.util.equals(TxResult, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,69 @@
|
||||
// @generated by protoc-gen-es v1.2.0 with parameter "target=ts"
|
||||
// @generated from file ethermint/types/v1/web3.proto (package ethermint.types.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";
|
||||
|
||||
/**
|
||||
* ExtensionOptionsWeb3Tx is an extension option that specifies the typed chain id,
|
||||
* the fee payer as well as its signature data.
|
||||
*
|
||||
* @generated from message ethermint.types.v1.ExtensionOptionsWeb3Tx
|
||||
*/
|
||||
export class ExtensionOptionsWeb3Tx extends Message<ExtensionOptionsWeb3Tx> {
|
||||
/**
|
||||
* typed_data_chain_id is used only in EIP712 Domain and should match
|
||||
* Ethereum network ID in a Web3 provider (e.g. Metamask).
|
||||
*
|
||||
* @generated from field: uint64 typed_data_chain_id = 1;
|
||||
*/
|
||||
typedDataChainId = protoInt64.zero;
|
||||
|
||||
/**
|
||||
* fee_payer is an account address for the fee payer. It will be validated
|
||||
* during EIP712 signature checking.
|
||||
*
|
||||
* @generated from field: string fee_payer = 2;
|
||||
*/
|
||||
feePayer = "";
|
||||
|
||||
/**
|
||||
* fee_payer_sig is a signature data from the fee paying account,
|
||||
* allows to perform fee delegation when using EIP712 Domain.
|
||||
*
|
||||
* @generated from field: bytes fee_payer_sig = 3;
|
||||
*/
|
||||
feePayerSig = new Uint8Array(0);
|
||||
|
||||
constructor(data?: PartialMessage<ExtensionOptionsWeb3Tx>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "ethermint.types.v1.ExtensionOptionsWeb3Tx";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "typed_data_chain_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
||||
{ no: 2, name: "fee_payer", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 3, name: "fee_payer_sig", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ExtensionOptionsWeb3Tx {
|
||||
return new ExtensionOptionsWeb3Tx().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ExtensionOptionsWeb3Tx {
|
||||
return new ExtensionOptionsWeb3Tx().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ExtensionOptionsWeb3Tx {
|
||||
return new ExtensionOptionsWeb3Tx().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: ExtensionOptionsWeb3Tx | PlainMessage<ExtensionOptionsWeb3Tx> | undefined, b: ExtensionOptionsWeb3Tx | PlainMessage<ExtensionOptionsWeb3Tx> | undefined): boolean {
|
||||
return proto3.util.equals(ExtensionOptionsWeb3Tx, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
+50
@@ -0,0 +1,50 @@
|
||||
// @generated by protoc-gen-es v1.2.0 with parameter "target=ts"
|
||||
// @generated from file ibc/applications/interchain_accounts/controller/v1/controller.proto (package ibc.applications.interchain_accounts.controller.v1, syntax proto3)
|
||||
/* eslint-disable */
|
||||
// @ts-nocheck
|
||||
|
||||
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
|
||||
import { Message, proto3 } from "@bufbuild/protobuf";
|
||||
|
||||
/**
|
||||
* Params defines the set of on-chain interchain accounts parameters.
|
||||
* The following parameters may be used to disable the controller submodule.
|
||||
*
|
||||
* @generated from message ibc.applications.interchain_accounts.controller.v1.Params
|
||||
*/
|
||||
export class Params extends Message<Params> {
|
||||
/**
|
||||
* controller_enabled enables or disables the controller submodule.
|
||||
*
|
||||
* @generated from field: bool controller_enabled = 1;
|
||||
*/
|
||||
controllerEnabled = false;
|
||||
|
||||
constructor(data?: PartialMessage<Params>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "ibc.applications.interchain_accounts.controller.v1.Params";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "controller_enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Params {
|
||||
return new Params().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Params {
|
||||
return new Params().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Params {
|
||||
return new Params().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: Params | PlainMessage<Params> | undefined, b: Params | PlainMessage<Params> | undefined): boolean {
|
||||
return proto3.util.equals(Params, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
+33
@@ -0,0 +1,33 @@
|
||||
// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts"
|
||||
// @generated from file ibc/applications/interchain_accounts/controller/v1/query.proto (package ibc.applications.interchain_accounts.controller.v1, syntax proto3)
|
||||
/* eslint-disable */
|
||||
// @ts-nocheck
|
||||
|
||||
import { QueryInterchainAccountRequest, QueryInterchainAccountResponse, QueryParamsRequest, QueryParamsResponse } from "./query_pb.js";
|
||||
|
||||
const TYPE_NAME = "ibc.applications.interchain_accounts.controller.v1.Query";
|
||||
|
||||
/**
|
||||
* InterchainAccount returns the interchain account address for a given owner address on a given connection
|
||||
*
|
||||
* @generated from rpc ibc.applications.interchain_accounts.controller.v1.Query.InterchainAccount
|
||||
*/
|
||||
export const QueryInterchainAccountService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "InterchainAccount",
|
||||
Request: QueryInterchainAccountRequest,
|
||||
Response: QueryInterchainAccountResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* Params queries all parameters of the ICA controller submodule.
|
||||
*
|
||||
* @generated from rpc ibc.applications.interchain_accounts.controller.v1.Query.Params
|
||||
*/
|
||||
export const QueryParamsService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "Params",
|
||||
Request: QueryParamsRequest,
|
||||
Response: QueryParamsResponse,
|
||||
} as const;
|
||||
|
||||
+167
@@ -0,0 +1,167 @@
|
||||
// @generated by protoc-gen-es v1.2.0 with parameter "target=ts"
|
||||
// @generated from file ibc/applications/interchain_accounts/controller/v1/query.proto (package ibc.applications.interchain_accounts.controller.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 { Params } from "./controller_pb.js";
|
||||
|
||||
/**
|
||||
* QueryInterchainAccountRequest is the request type for the Query/InterchainAccount RPC method.
|
||||
*
|
||||
* @generated from message ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountRequest
|
||||
*/
|
||||
export class QueryInterchainAccountRequest extends Message<QueryInterchainAccountRequest> {
|
||||
/**
|
||||
* @generated from field: string owner = 1;
|
||||
*/
|
||||
owner = "";
|
||||
|
||||
/**
|
||||
* @generated from field: string connection_id = 2;
|
||||
*/
|
||||
connectionId = "";
|
||||
|
||||
constructor(data?: PartialMessage<QueryInterchainAccountRequest>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountRequest";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "owner", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 2, name: "connection_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): QueryInterchainAccountRequest {
|
||||
return new QueryInterchainAccountRequest().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): QueryInterchainAccountRequest {
|
||||
return new QueryInterchainAccountRequest().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): QueryInterchainAccountRequest {
|
||||
return new QueryInterchainAccountRequest().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: QueryInterchainAccountRequest | PlainMessage<QueryInterchainAccountRequest> | undefined, b: QueryInterchainAccountRequest | PlainMessage<QueryInterchainAccountRequest> | undefined): boolean {
|
||||
return proto3.util.equals(QueryInterchainAccountRequest, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* QueryInterchainAccountResponse the response type for the Query/InterchainAccount RPC method.
|
||||
*
|
||||
* @generated from message ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountResponse
|
||||
*/
|
||||
export class QueryInterchainAccountResponse extends Message<QueryInterchainAccountResponse> {
|
||||
/**
|
||||
* @generated from field: string address = 1;
|
||||
*/
|
||||
address = "";
|
||||
|
||||
constructor(data?: PartialMessage<QueryInterchainAccountResponse>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountResponse";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): QueryInterchainAccountResponse {
|
||||
return new QueryInterchainAccountResponse().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): QueryInterchainAccountResponse {
|
||||
return new QueryInterchainAccountResponse().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): QueryInterchainAccountResponse {
|
||||
return new QueryInterchainAccountResponse().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: QueryInterchainAccountResponse | PlainMessage<QueryInterchainAccountResponse> | undefined, b: QueryInterchainAccountResponse | PlainMessage<QueryInterchainAccountResponse> | undefined): boolean {
|
||||
return proto3.util.equals(QueryInterchainAccountResponse, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* QueryParamsRequest is the request type for the Query/Params RPC method.
|
||||
*
|
||||
* @generated from message ibc.applications.interchain_accounts.controller.v1.QueryParamsRequest
|
||||
*/
|
||||
export class QueryParamsRequest extends Message<QueryParamsRequest> {
|
||||
constructor(data?: PartialMessage<QueryParamsRequest>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "ibc.applications.interchain_accounts.controller.v1.QueryParamsRequest";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): QueryParamsRequest {
|
||||
return new QueryParamsRequest().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): QueryParamsRequest {
|
||||
return new QueryParamsRequest().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): QueryParamsRequest {
|
||||
return new QueryParamsRequest().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: QueryParamsRequest | PlainMessage<QueryParamsRequest> | undefined, b: QueryParamsRequest | PlainMessage<QueryParamsRequest> | undefined): boolean {
|
||||
return proto3.util.equals(QueryParamsRequest, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* QueryParamsResponse is the response type for the Query/Params RPC method.
|
||||
*
|
||||
* @generated from message ibc.applications.interchain_accounts.controller.v1.QueryParamsResponse
|
||||
*/
|
||||
export class QueryParamsResponse extends Message<QueryParamsResponse> {
|
||||
/**
|
||||
* params defines the parameters of the module.
|
||||
*
|
||||
* @generated from field: ibc.applications.interchain_accounts.controller.v1.Params params = 1;
|
||||
*/
|
||||
params?: Params;
|
||||
|
||||
constructor(data?: PartialMessage<QueryParamsResponse>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "ibc.applications.interchain_accounts.controller.v1.QueryParamsResponse";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "params", kind: "message", T: Params },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): QueryParamsResponse {
|
||||
return new QueryParamsResponse().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): QueryParamsResponse {
|
||||
return new QueryParamsResponse().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): QueryParamsResponse {
|
||||
return new QueryParamsResponse().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: QueryParamsResponse | PlainMessage<QueryParamsResponse> | undefined, b: QueryParamsResponse | PlainMessage<QueryParamsResponse> | undefined): boolean {
|
||||
return proto3.util.equals(QueryParamsResponse, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
+45
@@ -0,0 +1,45 @@
|
||||
// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts"
|
||||
// @generated from file ibc/applications/interchain_accounts/controller/v1/tx.proto (package ibc.applications.interchain_accounts.controller.v1, syntax proto3)
|
||||
/* eslint-disable */
|
||||
// @ts-nocheck
|
||||
|
||||
import { MsgRegisterInterchainAccount, MsgRegisterInterchainAccountResponse, MsgSendTx, MsgSendTxResponse, MsgUpdateParams, MsgUpdateParamsResponse } from "./tx_pb.js";
|
||||
|
||||
const TYPE_NAME = "ibc.applications.interchain_accounts.controller.v1.Msg";
|
||||
|
||||
/**
|
||||
* RegisterInterchainAccount defines a rpc handler for MsgRegisterInterchainAccount.
|
||||
*
|
||||
* @generated from rpc ibc.applications.interchain_accounts.controller.v1.Msg.RegisterInterchainAccount
|
||||
*/
|
||||
export const MsgRegisterInterchainAccountService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "RegisterInterchainAccount",
|
||||
Request: MsgRegisterInterchainAccount,
|
||||
Response: MsgRegisterInterchainAccountResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* SendTx defines a rpc handler for MsgSendTx.
|
||||
*
|
||||
* @generated from rpc ibc.applications.interchain_accounts.controller.v1.Msg.SendTx
|
||||
*/
|
||||
export const MsgSendTxService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "SendTx",
|
||||
Request: MsgSendTx,
|
||||
Response: MsgSendTxResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* UpdateParams defines a rpc handler for MsgUpdateParams.
|
||||
*
|
||||
* @generated from rpc ibc.applications.interchain_accounts.controller.v1.Msg.UpdateParams
|
||||
*/
|
||||
export const MsgUpdateParamsService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "UpdateParams",
|
||||
Request: MsgUpdateParams,
|
||||
Response: MsgUpdateParamsResponse,
|
||||
} as const;
|
||||
|
||||
+296
@@ -0,0 +1,296 @@
|
||||
// @generated by protoc-gen-es v1.2.0 with parameter "target=ts"
|
||||
// @generated from file ibc/applications/interchain_accounts/controller/v1/tx.proto (package ibc.applications.interchain_accounts.controller.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";
|
||||
import { Order } from "../../../../core/channel/v1/channel_pb.js";
|
||||
import { InterchainAccountPacketData } from "../../v1/packet_pb.js";
|
||||
import { Params } from "./controller_pb.js";
|
||||
|
||||
/**
|
||||
* MsgRegisterInterchainAccount defines the payload for Msg/RegisterAccount
|
||||
*
|
||||
* @generated from message ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccount
|
||||
*/
|
||||
export class MsgRegisterInterchainAccount extends Message<MsgRegisterInterchainAccount> {
|
||||
/**
|
||||
* @generated from field: string owner = 1;
|
||||
*/
|
||||
owner = "";
|
||||
|
||||
/**
|
||||
* @generated from field: string connection_id = 2;
|
||||
*/
|
||||
connectionId = "";
|
||||
|
||||
/**
|
||||
* @generated from field: string version = 3;
|
||||
*/
|
||||
version = "";
|
||||
|
||||
/**
|
||||
* @generated from field: ibc.core.channel.v1.Order ordering = 4;
|
||||
*/
|
||||
ordering = Order.NONE_UNSPECIFIED;
|
||||
|
||||
constructor(data?: PartialMessage<MsgRegisterInterchainAccount>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccount";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "owner", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 2, name: "connection_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 3, name: "version", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 4, name: "ordering", kind: "enum", T: proto3.getEnumType(Order) },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MsgRegisterInterchainAccount {
|
||||
return new MsgRegisterInterchainAccount().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MsgRegisterInterchainAccount {
|
||||
return new MsgRegisterInterchainAccount().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MsgRegisterInterchainAccount {
|
||||
return new MsgRegisterInterchainAccount().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: MsgRegisterInterchainAccount | PlainMessage<MsgRegisterInterchainAccount> | undefined, b: MsgRegisterInterchainAccount | PlainMessage<MsgRegisterInterchainAccount> | undefined): boolean {
|
||||
return proto3.util.equals(MsgRegisterInterchainAccount, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* MsgRegisterInterchainAccountResponse defines the response for Msg/RegisterAccount
|
||||
*
|
||||
* @generated from message ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccountResponse
|
||||
*/
|
||||
export class MsgRegisterInterchainAccountResponse extends Message<MsgRegisterInterchainAccountResponse> {
|
||||
/**
|
||||
* @generated from field: string channel_id = 1;
|
||||
*/
|
||||
channelId = "";
|
||||
|
||||
/**
|
||||
* @generated from field: string port_id = 2;
|
||||
*/
|
||||
portId = "";
|
||||
|
||||
constructor(data?: PartialMessage<MsgRegisterInterchainAccountResponse>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccountResponse";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "channel_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 2, name: "port_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MsgRegisterInterchainAccountResponse {
|
||||
return new MsgRegisterInterchainAccountResponse().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MsgRegisterInterchainAccountResponse {
|
||||
return new MsgRegisterInterchainAccountResponse().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MsgRegisterInterchainAccountResponse {
|
||||
return new MsgRegisterInterchainAccountResponse().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: MsgRegisterInterchainAccountResponse | PlainMessage<MsgRegisterInterchainAccountResponse> | undefined, b: MsgRegisterInterchainAccountResponse | PlainMessage<MsgRegisterInterchainAccountResponse> | undefined): boolean {
|
||||
return proto3.util.equals(MsgRegisterInterchainAccountResponse, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* MsgSendTx defines the payload for Msg/SendTx
|
||||
*
|
||||
* @generated from message ibc.applications.interchain_accounts.controller.v1.MsgSendTx
|
||||
*/
|
||||
export class MsgSendTx extends Message<MsgSendTx> {
|
||||
/**
|
||||
* @generated from field: string owner = 1;
|
||||
*/
|
||||
owner = "";
|
||||
|
||||
/**
|
||||
* @generated from field: string connection_id = 2;
|
||||
*/
|
||||
connectionId = "";
|
||||
|
||||
/**
|
||||
* @generated from field: ibc.applications.interchain_accounts.v1.InterchainAccountPacketData packet_data = 3;
|
||||
*/
|
||||
packetData?: InterchainAccountPacketData;
|
||||
|
||||
/**
|
||||
* Relative timeout timestamp provided will be added to the current block time during transaction execution.
|
||||
* The timeout timestamp must be non-zero.
|
||||
*
|
||||
* @generated from field: uint64 relative_timeout = 4;
|
||||
*/
|
||||
relativeTimeout = protoInt64.zero;
|
||||
|
||||
constructor(data?: PartialMessage<MsgSendTx>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "ibc.applications.interchain_accounts.controller.v1.MsgSendTx";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "owner", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 2, name: "connection_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 3, name: "packet_data", kind: "message", T: InterchainAccountPacketData },
|
||||
{ no: 4, name: "relative_timeout", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MsgSendTx {
|
||||
return new MsgSendTx().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MsgSendTx {
|
||||
return new MsgSendTx().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MsgSendTx {
|
||||
return new MsgSendTx().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: MsgSendTx | PlainMessage<MsgSendTx> | undefined, b: MsgSendTx | PlainMessage<MsgSendTx> | undefined): boolean {
|
||||
return proto3.util.equals(MsgSendTx, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* MsgSendTxResponse defines the response for MsgSendTx
|
||||
*
|
||||
* @generated from message ibc.applications.interchain_accounts.controller.v1.MsgSendTxResponse
|
||||
*/
|
||||
export class MsgSendTxResponse extends Message<MsgSendTxResponse> {
|
||||
/**
|
||||
* @generated from field: uint64 sequence = 1;
|
||||
*/
|
||||
sequence = protoInt64.zero;
|
||||
|
||||
constructor(data?: PartialMessage<MsgSendTxResponse>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "ibc.applications.interchain_accounts.controller.v1.MsgSendTxResponse";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "sequence", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MsgSendTxResponse {
|
||||
return new MsgSendTxResponse().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MsgSendTxResponse {
|
||||
return new MsgSendTxResponse().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MsgSendTxResponse {
|
||||
return new MsgSendTxResponse().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: MsgSendTxResponse | PlainMessage<MsgSendTxResponse> | undefined, b: MsgSendTxResponse | PlainMessage<MsgSendTxResponse> | undefined): boolean {
|
||||
return proto3.util.equals(MsgSendTxResponse, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* MsgUpdateParams defines the payload for Msg/UpdateParams
|
||||
*
|
||||
* @generated from message ibc.applications.interchain_accounts.controller.v1.MsgUpdateParams
|
||||
*/
|
||||
export class MsgUpdateParams extends Message<MsgUpdateParams> {
|
||||
/**
|
||||
* signer address
|
||||
*
|
||||
* @generated from field: string signer = 1;
|
||||
*/
|
||||
signer = "";
|
||||
|
||||
/**
|
||||
* params defines the 27-interchain-accounts/controller parameters to update.
|
||||
*
|
||||
* NOTE: All parameters must be supplied.
|
||||
*
|
||||
* @generated from field: ibc.applications.interchain_accounts.controller.v1.Params params = 2;
|
||||
*/
|
||||
params?: Params;
|
||||
|
||||
constructor(data?: PartialMessage<MsgUpdateParams>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "ibc.applications.interchain_accounts.controller.v1.MsgUpdateParams";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "signer", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 2, name: "params", kind: "message", T: Params },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MsgUpdateParams {
|
||||
return new MsgUpdateParams().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MsgUpdateParams {
|
||||
return new MsgUpdateParams().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MsgUpdateParams {
|
||||
return new MsgUpdateParams().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: MsgUpdateParams | PlainMessage<MsgUpdateParams> | undefined, b: MsgUpdateParams | PlainMessage<MsgUpdateParams> | undefined): boolean {
|
||||
return proto3.util.equals(MsgUpdateParams, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* MsgUpdateParamsResponse defines the response for Msg/UpdateParams
|
||||
*
|
||||
* @generated from message ibc.applications.interchain_accounts.controller.v1.MsgUpdateParamsResponse
|
||||
*/
|
||||
export class MsgUpdateParamsResponse extends Message<MsgUpdateParamsResponse> {
|
||||
constructor(data?: PartialMessage<MsgUpdateParamsResponse>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "ibc.applications.interchain_accounts.controller.v1.MsgUpdateParamsResponse";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MsgUpdateParamsResponse {
|
||||
return new MsgUpdateParamsResponse().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MsgUpdateParamsResponse {
|
||||
return new MsgUpdateParamsResponse().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MsgUpdateParamsResponse {
|
||||
return new MsgUpdateParamsResponse().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: MsgUpdateParamsResponse | PlainMessage<MsgUpdateParamsResponse> | undefined, b: MsgUpdateParamsResponse | PlainMessage<MsgUpdateParamsResponse> | undefined): boolean {
|
||||
return proto3.util.equals(MsgUpdateParamsResponse, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
+278
@@ -0,0 +1,278 @@
|
||||
// @generated by protoc-gen-es v1.2.0 with parameter "target=ts"
|
||||
// @generated from file ibc/applications/interchain_accounts/genesis/v1/genesis.proto (package ibc.applications.interchain_accounts.genesis.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 { Params } from "../../controller/v1/controller_pb.js";
|
||||
import { Params as Params$1 } from "../../host/v1/host_pb.js";
|
||||
|
||||
/**
|
||||
* GenesisState defines the interchain accounts genesis state
|
||||
*
|
||||
* @generated from message ibc.applications.interchain_accounts.genesis.v1.GenesisState
|
||||
*/
|
||||
export class GenesisState extends Message<GenesisState> {
|
||||
/**
|
||||
* @generated from field: ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState controller_genesis_state = 1;
|
||||
*/
|
||||
controllerGenesisState?: ControllerGenesisState;
|
||||
|
||||
/**
|
||||
* @generated from field: ibc.applications.interchain_accounts.genesis.v1.HostGenesisState host_genesis_state = 2;
|
||||
*/
|
||||
hostGenesisState?: HostGenesisState;
|
||||
|
||||
constructor(data?: PartialMessage<GenesisState>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "ibc.applications.interchain_accounts.genesis.v1.GenesisState";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "controller_genesis_state", kind: "message", T: ControllerGenesisState },
|
||||
{ no: 2, name: "host_genesis_state", kind: "message", T: HostGenesisState },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GenesisState {
|
||||
return new GenesisState().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GenesisState {
|
||||
return new GenesisState().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GenesisState {
|
||||
return new GenesisState().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: GenesisState | PlainMessage<GenesisState> | undefined, b: GenesisState | PlainMessage<GenesisState> | undefined): boolean {
|
||||
return proto3.util.equals(GenesisState, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* ControllerGenesisState defines the interchain accounts controller genesis state
|
||||
*
|
||||
* @generated from message ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState
|
||||
*/
|
||||
export class ControllerGenesisState extends Message<ControllerGenesisState> {
|
||||
/**
|
||||
* @generated from field: repeated ibc.applications.interchain_accounts.genesis.v1.ActiveChannel active_channels = 1;
|
||||
*/
|
||||
activeChannels: ActiveChannel[] = [];
|
||||
|
||||
/**
|
||||
* @generated from field: repeated ibc.applications.interchain_accounts.genesis.v1.RegisteredInterchainAccount interchain_accounts = 2;
|
||||
*/
|
||||
interchainAccounts: RegisteredInterchainAccount[] = [];
|
||||
|
||||
/**
|
||||
* @generated from field: repeated string ports = 3;
|
||||
*/
|
||||
ports: string[] = [];
|
||||
|
||||
/**
|
||||
* @generated from field: ibc.applications.interchain_accounts.controller.v1.Params params = 4;
|
||||
*/
|
||||
params?: Params;
|
||||
|
||||
constructor(data?: PartialMessage<ControllerGenesisState>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "active_channels", kind: "message", T: ActiveChannel, repeated: true },
|
||||
{ no: 2, name: "interchain_accounts", kind: "message", T: RegisteredInterchainAccount, repeated: true },
|
||||
{ no: 3, name: "ports", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
||||
{ no: 4, name: "params", kind: "message", T: Params },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ControllerGenesisState {
|
||||
return new ControllerGenesisState().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ControllerGenesisState {
|
||||
return new ControllerGenesisState().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ControllerGenesisState {
|
||||
return new ControllerGenesisState().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: ControllerGenesisState | PlainMessage<ControllerGenesisState> | undefined, b: ControllerGenesisState | PlainMessage<ControllerGenesisState> | undefined): boolean {
|
||||
return proto3.util.equals(ControllerGenesisState, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* HostGenesisState defines the interchain accounts host genesis state
|
||||
*
|
||||
* @generated from message ibc.applications.interchain_accounts.genesis.v1.HostGenesisState
|
||||
*/
|
||||
export class HostGenesisState extends Message<HostGenesisState> {
|
||||
/**
|
||||
* @generated from field: repeated ibc.applications.interchain_accounts.genesis.v1.ActiveChannel active_channels = 1;
|
||||
*/
|
||||
activeChannels: ActiveChannel[] = [];
|
||||
|
||||
/**
|
||||
* @generated from field: repeated ibc.applications.interchain_accounts.genesis.v1.RegisteredInterchainAccount interchain_accounts = 2;
|
||||
*/
|
||||
interchainAccounts: RegisteredInterchainAccount[] = [];
|
||||
|
||||
/**
|
||||
* @generated from field: string port = 3;
|
||||
*/
|
||||
port = "";
|
||||
|
||||
/**
|
||||
* @generated from field: ibc.applications.interchain_accounts.host.v1.Params params = 4;
|
||||
*/
|
||||
params?: Params$1;
|
||||
|
||||
constructor(data?: PartialMessage<HostGenesisState>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "ibc.applications.interchain_accounts.genesis.v1.HostGenesisState";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "active_channels", kind: "message", T: ActiveChannel, repeated: true },
|
||||
{ no: 2, name: "interchain_accounts", kind: "message", T: RegisteredInterchainAccount, repeated: true },
|
||||
{ no: 3, name: "port", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 4, name: "params", kind: "message", T: Params$1 },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): HostGenesisState {
|
||||
return new HostGenesisState().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): HostGenesisState {
|
||||
return new HostGenesisState().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): HostGenesisState {
|
||||
return new HostGenesisState().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: HostGenesisState | PlainMessage<HostGenesisState> | undefined, b: HostGenesisState | PlainMessage<HostGenesisState> | undefined): boolean {
|
||||
return proto3.util.equals(HostGenesisState, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* ActiveChannel contains a connection ID, port ID and associated active channel ID, as well as a boolean flag to
|
||||
* indicate if the channel is middleware enabled
|
||||
*
|
||||
* @generated from message ibc.applications.interchain_accounts.genesis.v1.ActiveChannel
|
||||
*/
|
||||
export class ActiveChannel extends Message<ActiveChannel> {
|
||||
/**
|
||||
* @generated from field: string connection_id = 1;
|
||||
*/
|
||||
connectionId = "";
|
||||
|
||||
/**
|
||||
* @generated from field: string port_id = 2;
|
||||
*/
|
||||
portId = "";
|
||||
|
||||
/**
|
||||
* @generated from field: string channel_id = 3;
|
||||
*/
|
||||
channelId = "";
|
||||
|
||||
/**
|
||||
* @generated from field: bool is_middleware_enabled = 4;
|
||||
*/
|
||||
isMiddlewareEnabled = false;
|
||||
|
||||
constructor(data?: PartialMessage<ActiveChannel>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "ibc.applications.interchain_accounts.genesis.v1.ActiveChannel";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "connection_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 2, name: "port_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 3, name: "channel_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 4, name: "is_middleware_enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ActiveChannel {
|
||||
return new ActiveChannel().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ActiveChannel {
|
||||
return new ActiveChannel().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ActiveChannel {
|
||||
return new ActiveChannel().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: ActiveChannel | PlainMessage<ActiveChannel> | undefined, b: ActiveChannel | PlainMessage<ActiveChannel> | undefined): boolean {
|
||||
return proto3.util.equals(ActiveChannel, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* RegisteredInterchainAccount contains a connection ID, port ID and associated interchain account address
|
||||
*
|
||||
* @generated from message ibc.applications.interchain_accounts.genesis.v1.RegisteredInterchainAccount
|
||||
*/
|
||||
export class RegisteredInterchainAccount extends Message<RegisteredInterchainAccount> {
|
||||
/**
|
||||
* @generated from field: string connection_id = 1;
|
||||
*/
|
||||
connectionId = "";
|
||||
|
||||
/**
|
||||
* @generated from field: string port_id = 2;
|
||||
*/
|
||||
portId = "";
|
||||
|
||||
/**
|
||||
* @generated from field: string account_address = 3;
|
||||
*/
|
||||
accountAddress = "";
|
||||
|
||||
constructor(data?: PartialMessage<RegisteredInterchainAccount>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "ibc.applications.interchain_accounts.genesis.v1.RegisteredInterchainAccount";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "connection_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 2, name: "port_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 3, name: "account_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RegisteredInterchainAccount {
|
||||
return new RegisteredInterchainAccount().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RegisteredInterchainAccount {
|
||||
return new RegisteredInterchainAccount().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RegisteredInterchainAccount {
|
||||
return new RegisteredInterchainAccount().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: RegisteredInterchainAccount | PlainMessage<RegisteredInterchainAccount> | undefined, b: RegisteredInterchainAccount | PlainMessage<RegisteredInterchainAccount> | undefined): boolean {
|
||||
return proto3.util.equals(RegisteredInterchainAccount, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user