diff --git a/packages/osmo-query/.gitignore b/packages/osmo-query/.gitignore index 80319e381..07faa0bfc 100644 --- a/packages/osmo-query/.gitignore +++ b/packages/osmo-query/.gitignore @@ -10,9 +10,6 @@ pids # dist dist -mjs -main -module # Directory for instrumented libs generated by jscoverage/JSCover lib-cov diff --git a/packages/osmo-query/package.json b/packages/osmo-query/package.json index 8e55aa616..63aaf2bfa 100644 --- a/packages/osmo-query/package.json +++ b/packages/osmo-query/package.json @@ -1,12 +1,11 @@ { "name": "osmo-query", - "version": "16.8.3", + "version": "16.8.5", "description": "Typescript Protobuf Messages for Osmosis with react-query", "author": "Dan Lynch ", "homepage": "https://github.com/osmosis-labs/osmojs/tree/master/packages/osmojs#readme", "license": "SEE LICENSE IN LICENSE", "main": "dist/index.js", - "module": "dist/index.mjs", "typings": "dist/index.d.ts", "directories": { "lib": "src", @@ -18,12 +17,9 @@ ], "scripts": { "build:cjs": "yarn tsc -p tsconfig.json --outDir dist --module commonjs || true", - "build:mjs": "yarn tsc -p tsconfig.json --outDir mjs --module es2022 --declaration false || true", - "clean:mjs": "rimraf mjs", "clean:dist": "rimraf dist", - "clean": "npm run clean:mjs && npm run clean:dist", - "build:rename": "publish-scripts --cmd rename --srcDir mjs --outDir dist --findExt js --replaceExt mjs --no-rmDir", - "build": "npm run clean && npm run build:cjs && npm run build:mjs && npm run build:rename", + "clean": "npm run clean:dist", + "build": "npm run clean && npm run build:cjs", "codegen": "cross-env NODE_ENV=development babel-node scripts/codegen.js", "prepare": "npm run build", "lint": "eslint .", diff --git a/packages/osmo-query/src/codegen/binary.ts b/packages/osmo-query/src/codegen/binary.ts index 8696e47c5..1df1a60a3 100644 --- a/packages/osmo-query/src/codegen/binary.ts +++ b/packages/osmo-query/src/codegen/binary.ts @@ -1,5 +1,5 @@ /** -* This file and any referenced files were automatically generated by @cosmology/telescope@1.4.3 +* This file and any referenced files were automatically generated by @cosmology/telescope@1.4.6 * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain * and run the transpile command or yarn proto command to regenerate this bundle. */ diff --git a/packages/osmo-query/src/codegen/cosmos/auth/module/v1/module.ts b/packages/osmo-query/src/codegen/cosmos/auth/module/v1/module.ts new file mode 100644 index 000000000..4bdb9a434 --- /dev/null +++ b/packages/osmo-query/src/codegen/cosmos/auth/module/v1/module.ts @@ -0,0 +1,244 @@ +import { BinaryReader, BinaryWriter } from "../../../../binary"; +/** Module is the config object for the auth module. */ +export interface Module { + /** bech32_prefix is the bech32 account prefix for the app. */ + bech32Prefix: string; + /** module_account_permissions are module account permissions. */ + moduleAccountPermissions: ModuleAccountPermission[]; + /** authority defines the custom module authority. If not set, defaults to the governance module. */ + authority: string; +} +export interface ModuleProtoMsg { + typeUrl: "/cosmos.auth.module.v1.Module"; + value: Uint8Array; +} +/** Module is the config object for the auth module. */ +export interface ModuleAmino { + /** bech32_prefix is the bech32 account prefix for the app. */ + bech32_prefix?: string; + /** module_account_permissions are module account permissions. */ + module_account_permissions?: ModuleAccountPermissionAmino[]; + /** authority defines the custom module authority. If not set, defaults to the governance module. */ + authority?: string; +} +export interface ModuleAminoMsg { + type: "cosmos-sdk/Module"; + value: ModuleAmino; +} +/** Module is the config object for the auth module. */ +export interface ModuleSDKType { + bech32_prefix: string; + module_account_permissions: ModuleAccountPermissionSDKType[]; + authority: string; +} +/** ModuleAccountPermission represents permissions for a module account. */ +export interface ModuleAccountPermission { + /** account is the name of the module. */ + account: string; + /** + * permissions are the permissions this module has. Currently recognized + * values are minter, burner and staking. + */ + permissions: string[]; +} +export interface ModuleAccountPermissionProtoMsg { + typeUrl: "/cosmos.auth.module.v1.ModuleAccountPermission"; + value: Uint8Array; +} +/** ModuleAccountPermission represents permissions for a module account. */ +export interface ModuleAccountPermissionAmino { + /** account is the name of the module. */ + account?: string; + /** + * permissions are the permissions this module has. Currently recognized + * values are minter, burner and staking. + */ + permissions?: string[]; +} +export interface ModuleAccountPermissionAminoMsg { + type: "cosmos-sdk/ModuleAccountPermission"; + value: ModuleAccountPermissionAmino; +} +/** ModuleAccountPermission represents permissions for a module account. */ +export interface ModuleAccountPermissionSDKType { + account: string; + permissions: string[]; +} +function createBaseModule(): Module { + return { + bech32Prefix: "", + moduleAccountPermissions: [], + authority: "" + }; +} +export const Module = { + typeUrl: "/cosmos.auth.module.v1.Module", + encode(message: Module, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.bech32Prefix !== "") { + writer.uint32(10).string(message.bech32Prefix); + } + for (const v of message.moduleAccountPermissions) { + ModuleAccountPermission.encode(v!, writer.uint32(18).fork()).ldelim(); + } + if (message.authority !== "") { + writer.uint32(26).string(message.authority); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): Module { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseModule(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.bech32Prefix = reader.string(); + break; + case 2: + message.moduleAccountPermissions.push(ModuleAccountPermission.decode(reader, reader.uint32())); + break; + case 3: + message.authority = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): Module { + const message = createBaseModule(); + message.bech32Prefix = object.bech32Prefix ?? ""; + message.moduleAccountPermissions = object.moduleAccountPermissions?.map(e => ModuleAccountPermission.fromPartial(e)) || []; + message.authority = object.authority ?? ""; + return message; + }, + fromAmino(object: ModuleAmino): Module { + const message = createBaseModule(); + if (object.bech32_prefix !== undefined && object.bech32_prefix !== null) { + message.bech32Prefix = object.bech32_prefix; + } + message.moduleAccountPermissions = object.module_account_permissions?.map(e => ModuleAccountPermission.fromAmino(e)) || []; + if (object.authority !== undefined && object.authority !== null) { + message.authority = object.authority; + } + return message; + }, + toAmino(message: Module): ModuleAmino { + const obj: any = {}; + obj.bech32_prefix = message.bech32Prefix; + if (message.moduleAccountPermissions) { + obj.module_account_permissions = message.moduleAccountPermissions.map(e => e ? ModuleAccountPermission.toAmino(e) : undefined); + } else { + obj.module_account_permissions = []; + } + obj.authority = message.authority; + return obj; + }, + fromAminoMsg(object: ModuleAminoMsg): Module { + return Module.fromAmino(object.value); + }, + toAminoMsg(message: Module): ModuleAminoMsg { + return { + type: "cosmos-sdk/Module", + value: Module.toAmino(message) + }; + }, + fromProtoMsg(message: ModuleProtoMsg): Module { + return Module.decode(message.value); + }, + toProto(message: Module): Uint8Array { + return Module.encode(message).finish(); + }, + toProtoMsg(message: Module): ModuleProtoMsg { + return { + typeUrl: "/cosmos.auth.module.v1.Module", + value: Module.encode(message).finish() + }; + } +}; +function createBaseModuleAccountPermission(): ModuleAccountPermission { + return { + account: "", + permissions: [] + }; +} +export const ModuleAccountPermission = { + typeUrl: "/cosmos.auth.module.v1.ModuleAccountPermission", + encode(message: ModuleAccountPermission, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.account !== "") { + writer.uint32(10).string(message.account); + } + for (const v of message.permissions) { + writer.uint32(18).string(v!); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): ModuleAccountPermission { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseModuleAccountPermission(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.account = reader.string(); + break; + case 2: + message.permissions.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): ModuleAccountPermission { + const message = createBaseModuleAccountPermission(); + message.account = object.account ?? ""; + message.permissions = object.permissions?.map(e => e) || []; + return message; + }, + fromAmino(object: ModuleAccountPermissionAmino): ModuleAccountPermission { + const message = createBaseModuleAccountPermission(); + if (object.account !== undefined && object.account !== null) { + message.account = object.account; + } + message.permissions = object.permissions?.map(e => e) || []; + return message; + }, + toAmino(message: ModuleAccountPermission): ModuleAccountPermissionAmino { + const obj: any = {}; + obj.account = message.account; + if (message.permissions) { + obj.permissions = message.permissions.map(e => e); + } else { + obj.permissions = []; + } + return obj; + }, + fromAminoMsg(object: ModuleAccountPermissionAminoMsg): ModuleAccountPermission { + return ModuleAccountPermission.fromAmino(object.value); + }, + toAminoMsg(message: ModuleAccountPermission): ModuleAccountPermissionAminoMsg { + return { + type: "cosmos-sdk/ModuleAccountPermission", + value: ModuleAccountPermission.toAmino(message) + }; + }, + fromProtoMsg(message: ModuleAccountPermissionProtoMsg): ModuleAccountPermission { + return ModuleAccountPermission.decode(message.value); + }, + toProto(message: ModuleAccountPermission): Uint8Array { + return ModuleAccountPermission.encode(message).finish(); + }, + toProtoMsg(message: ModuleAccountPermission): ModuleAccountPermissionProtoMsg { + return { + typeUrl: "/cosmos.auth.module.v1.ModuleAccountPermission", + value: ModuleAccountPermission.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/osmo-query/src/codegen/cosmos/authz/module/v1/module.ts b/packages/osmo-query/src/codegen/cosmos/authz/module/v1/module.ts new file mode 100644 index 000000000..9bccce713 --- /dev/null +++ b/packages/osmo-query/src/codegen/cosmos/authz/module/v1/module.ts @@ -0,0 +1,71 @@ +import { BinaryReader, BinaryWriter } from "../../../../binary"; +/** Module is the config object of the authz module. */ +export interface Module {} +export interface ModuleProtoMsg { + typeUrl: "/cosmos.authz.module.v1.Module"; + value: Uint8Array; +} +/** Module is the config object of the authz module. */ +export interface ModuleAmino {} +export interface ModuleAminoMsg { + type: "cosmos-sdk/Module"; + value: ModuleAmino; +} +/** Module is the config object of the authz module. */ +export interface ModuleSDKType {} +function createBaseModule(): Module { + return {}; +} +export const Module = { + typeUrl: "/cosmos.authz.module.v1.Module", + encode(_: Module, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): Module { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseModule(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_: Partial): Module { + const message = createBaseModule(); + return message; + }, + fromAmino(_: ModuleAmino): Module { + const message = createBaseModule(); + return message; + }, + toAmino(_: Module): ModuleAmino { + const obj: any = {}; + return obj; + }, + fromAminoMsg(object: ModuleAminoMsg): Module { + return Module.fromAmino(object.value); + }, + toAminoMsg(message: Module): ModuleAminoMsg { + return { + type: "cosmos-sdk/Module", + value: Module.toAmino(message) + }; + }, + fromProtoMsg(message: ModuleProtoMsg): Module { + return Module.decode(message.value); + }, + toProto(message: Module): Uint8Array { + return Module.encode(message).finish(); + }, + toProtoMsg(message: Module): ModuleProtoMsg { + return { + typeUrl: "/cosmos.authz.module.v1.Module", + value: Module.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/osmo-query/src/codegen/cosmos/bank/module/v1/module.ts b/packages/osmo-query/src/codegen/cosmos/bank/module/v1/module.ts new file mode 100644 index 000000000..442a41aa5 --- /dev/null +++ b/packages/osmo-query/src/codegen/cosmos/bank/module/v1/module.ts @@ -0,0 +1,119 @@ +import { BinaryReader, BinaryWriter } from "../../../../binary"; +/** Module is the config object of the bank module. */ +export interface Module { + /** + * blocked_module_accounts configures exceptional module accounts which should be blocked from receiving funds. + * If left empty it defaults to the list of account names supplied in the auth module configuration as + * module_account_permissions + */ + blockedModuleAccountsOverride: string[]; + /** authority defines the custom module authority. If not set, defaults to the governance module. */ + authority: string; +} +export interface ModuleProtoMsg { + typeUrl: "/cosmos.bank.module.v1.Module"; + value: Uint8Array; +} +/** Module is the config object of the bank module. */ +export interface ModuleAmino { + /** + * blocked_module_accounts configures exceptional module accounts which should be blocked from receiving funds. + * If left empty it defaults to the list of account names supplied in the auth module configuration as + * module_account_permissions + */ + blocked_module_accounts_override?: string[]; + /** authority defines the custom module authority. If not set, defaults to the governance module. */ + authority?: string; +} +export interface ModuleAminoMsg { + type: "cosmos-sdk/Module"; + value: ModuleAmino; +} +/** Module is the config object of the bank module. */ +export interface ModuleSDKType { + blocked_module_accounts_override: string[]; + authority: string; +} +function createBaseModule(): Module { + return { + blockedModuleAccountsOverride: [], + authority: "" + }; +} +export const Module = { + typeUrl: "/cosmos.bank.module.v1.Module", + encode(message: Module, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.blockedModuleAccountsOverride) { + writer.uint32(10).string(v!); + } + if (message.authority !== "") { + writer.uint32(18).string(message.authority); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): Module { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseModule(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.blockedModuleAccountsOverride.push(reader.string()); + break; + case 2: + message.authority = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): Module { + const message = createBaseModule(); + message.blockedModuleAccountsOverride = object.blockedModuleAccountsOverride?.map(e => e) || []; + message.authority = object.authority ?? ""; + return message; + }, + fromAmino(object: ModuleAmino): Module { + const message = createBaseModule(); + message.blockedModuleAccountsOverride = object.blocked_module_accounts_override?.map(e => e) || []; + if (object.authority !== undefined && object.authority !== null) { + message.authority = object.authority; + } + return message; + }, + toAmino(message: Module): ModuleAmino { + const obj: any = {}; + if (message.blockedModuleAccountsOverride) { + obj.blocked_module_accounts_override = message.blockedModuleAccountsOverride.map(e => e); + } else { + obj.blocked_module_accounts_override = []; + } + obj.authority = message.authority; + return obj; + }, + fromAminoMsg(object: ModuleAminoMsg): Module { + return Module.fromAmino(object.value); + }, + toAminoMsg(message: Module): ModuleAminoMsg { + return { + type: "cosmos-sdk/Module", + value: Module.toAmino(message) + }; + }, + fromProtoMsg(message: ModuleProtoMsg): Module { + return Module.decode(message.value); + }, + toProto(message: Module): Uint8Array { + return Module.encode(message).finish(); + }, + toProtoMsg(message: Module): ModuleProtoMsg { + return { + typeUrl: "/cosmos.bank.module.v1.Module", + value: Module.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/osmo-query/src/codegen/cosmos/capability/module/v1/module.ts b/packages/osmo-query/src/codegen/cosmos/capability/module/v1/module.ts new file mode 100644 index 000000000..bf046169c --- /dev/null +++ b/packages/osmo-query/src/codegen/cosmos/capability/module/v1/module.ts @@ -0,0 +1,98 @@ +import { BinaryReader, BinaryWriter } from "../../../../binary"; +/** Module is the config object of the capability module. */ +export interface Module { + /** + * seal_keeper defines if keeper.Seal() will run on BeginBlock() to prevent further modules from creating a scoped + * keeper. For more details check x/capability/keeper.go. + */ + sealKeeper: boolean; +} +export interface ModuleProtoMsg { + typeUrl: "/cosmos.capability.module.v1.Module"; + value: Uint8Array; +} +/** Module is the config object of the capability module. */ +export interface ModuleAmino { + /** + * seal_keeper defines if keeper.Seal() will run on BeginBlock() to prevent further modules from creating a scoped + * keeper. For more details check x/capability/keeper.go. + */ + seal_keeper?: boolean; +} +export interface ModuleAminoMsg { + type: "cosmos-sdk/Module"; + value: ModuleAmino; +} +/** Module is the config object of the capability module. */ +export interface ModuleSDKType { + seal_keeper: boolean; +} +function createBaseModule(): Module { + return { + sealKeeper: false + }; +} +export const Module = { + typeUrl: "/cosmos.capability.module.v1.Module", + encode(message: Module, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.sealKeeper === true) { + writer.uint32(8).bool(message.sealKeeper); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): Module { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseModule(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.sealKeeper = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): Module { + const message = createBaseModule(); + message.sealKeeper = object.sealKeeper ?? false; + return message; + }, + fromAmino(object: ModuleAmino): Module { + const message = createBaseModule(); + if (object.seal_keeper !== undefined && object.seal_keeper !== null) { + message.sealKeeper = object.seal_keeper; + } + return message; + }, + toAmino(message: Module): ModuleAmino { + const obj: any = {}; + obj.seal_keeper = message.sealKeeper; + return obj; + }, + fromAminoMsg(object: ModuleAminoMsg): Module { + return Module.fromAmino(object.value); + }, + toAminoMsg(message: Module): ModuleAminoMsg { + return { + type: "cosmos-sdk/Module", + value: Module.toAmino(message) + }; + }, + fromProtoMsg(message: ModuleProtoMsg): Module { + return Module.decode(message.value); + }, + toProto(message: Module): Uint8Array { + return Module.encode(message).finish(); + }, + toProtoMsg(message: Module): ModuleProtoMsg { + return { + typeUrl: "/cosmos.capability.module.v1.Module", + value: Module.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/osmo-query/src/codegen/cosmos/consensus/module/v1/module.ts b/packages/osmo-query/src/codegen/cosmos/consensus/module/v1/module.ts new file mode 100644 index 000000000..de53e888a --- /dev/null +++ b/packages/osmo-query/src/codegen/cosmos/consensus/module/v1/module.ts @@ -0,0 +1,92 @@ +import { BinaryReader, BinaryWriter } from "../../../../binary"; +/** Module is the config object of the consensus module. */ +export interface Module { + /** authority defines the custom module authority. If not set, defaults to the governance module. */ + authority: string; +} +export interface ModuleProtoMsg { + typeUrl: "/cosmos.consensus.module.v1.Module"; + value: Uint8Array; +} +/** Module is the config object of the consensus module. */ +export interface ModuleAmino { + /** authority defines the custom module authority. If not set, defaults to the governance module. */ + authority?: string; +} +export interface ModuleAminoMsg { + type: "cosmos-sdk/Module"; + value: ModuleAmino; +} +/** Module is the config object of the consensus module. */ +export interface ModuleSDKType { + authority: string; +} +function createBaseModule(): Module { + return { + authority: "" + }; +} +export const Module = { + typeUrl: "/cosmos.consensus.module.v1.Module", + encode(message: Module, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.authority !== "") { + writer.uint32(10).string(message.authority); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): Module { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseModule(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.authority = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): Module { + const message = createBaseModule(); + message.authority = object.authority ?? ""; + return message; + }, + fromAmino(object: ModuleAmino): Module { + const message = createBaseModule(); + if (object.authority !== undefined && object.authority !== null) { + message.authority = object.authority; + } + return message; + }, + toAmino(message: Module): ModuleAmino { + const obj: any = {}; + obj.authority = message.authority; + return obj; + }, + fromAminoMsg(object: ModuleAminoMsg): Module { + return Module.fromAmino(object.value); + }, + toAminoMsg(message: Module): ModuleAminoMsg { + return { + type: "cosmos-sdk/Module", + value: Module.toAmino(message) + }; + }, + fromProtoMsg(message: ModuleProtoMsg): Module { + return Module.decode(message.value); + }, + toProto(message: Module): Uint8Array { + return Module.encode(message).finish(); + }, + toProtoMsg(message: Module): ModuleProtoMsg { + return { + typeUrl: "/cosmos.consensus.module.v1.Module", + value: Module.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/osmo-query/src/codegen/cosmos/crisis/module/v1/module.ts b/packages/osmo-query/src/codegen/cosmos/crisis/module/v1/module.ts new file mode 100644 index 000000000..d297ef66c --- /dev/null +++ b/packages/osmo-query/src/codegen/cosmos/crisis/module/v1/module.ts @@ -0,0 +1,109 @@ +import { BinaryReader, BinaryWriter } from "../../../../binary"; +/** Module is the config object of the crisis module. */ +export interface Module { + /** fee_collector_name is the name of the FeeCollector ModuleAccount. */ + feeCollectorName: string; + /** authority defines the custom module authority. If not set, defaults to the governance module. */ + authority: string; +} +export interface ModuleProtoMsg { + typeUrl: "/cosmos.crisis.module.v1.Module"; + value: Uint8Array; +} +/** Module is the config object of the crisis module. */ +export interface ModuleAmino { + /** fee_collector_name is the name of the FeeCollector ModuleAccount. */ + fee_collector_name?: string; + /** authority defines the custom module authority. If not set, defaults to the governance module. */ + authority?: string; +} +export interface ModuleAminoMsg { + type: "cosmos-sdk/Module"; + value: ModuleAmino; +} +/** Module is the config object of the crisis module. */ +export interface ModuleSDKType { + fee_collector_name: string; + authority: string; +} +function createBaseModule(): Module { + return { + feeCollectorName: "", + authority: "" + }; +} +export const Module = { + typeUrl: "/cosmos.crisis.module.v1.Module", + encode(message: Module, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.feeCollectorName !== "") { + writer.uint32(10).string(message.feeCollectorName); + } + if (message.authority !== "") { + writer.uint32(18).string(message.authority); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): Module { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseModule(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.feeCollectorName = reader.string(); + break; + case 2: + message.authority = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): Module { + const message = createBaseModule(); + message.feeCollectorName = object.feeCollectorName ?? ""; + message.authority = object.authority ?? ""; + return message; + }, + fromAmino(object: ModuleAmino): Module { + const message = createBaseModule(); + if (object.fee_collector_name !== undefined && object.fee_collector_name !== null) { + message.feeCollectorName = object.fee_collector_name; + } + if (object.authority !== undefined && object.authority !== null) { + message.authority = object.authority; + } + return message; + }, + toAmino(message: Module): ModuleAmino { + const obj: any = {}; + obj.fee_collector_name = message.feeCollectorName; + obj.authority = message.authority; + return obj; + }, + fromAminoMsg(object: ModuleAminoMsg): Module { + return Module.fromAmino(object.value); + }, + toAminoMsg(message: Module): ModuleAminoMsg { + return { + type: "cosmos-sdk/Module", + value: Module.toAmino(message) + }; + }, + fromProtoMsg(message: ModuleProtoMsg): Module { + return Module.decode(message.value); + }, + toProto(message: Module): Uint8Array { + return Module.encode(message).finish(); + }, + toProtoMsg(message: Module): ModuleProtoMsg { + return { + typeUrl: "/cosmos.crisis.module.v1.Module", + value: Module.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/osmo-query/src/codegen/cosmos/distribution/module/v1/module.ts b/packages/osmo-query/src/codegen/cosmos/distribution/module/v1/module.ts new file mode 100644 index 000000000..717ed99e1 --- /dev/null +++ b/packages/osmo-query/src/codegen/cosmos/distribution/module/v1/module.ts @@ -0,0 +1,107 @@ +import { BinaryReader, BinaryWriter } from "../../../../binary"; +/** Module is the config object of the distribution module. */ +export interface Module { + feeCollectorName: string; + /** authority defines the custom module authority. If not set, defaults to the governance module. */ + authority: string; +} +export interface ModuleProtoMsg { + typeUrl: "/cosmos.distribution.module.v1.Module"; + value: Uint8Array; +} +/** Module is the config object of the distribution module. */ +export interface ModuleAmino { + fee_collector_name?: string; + /** authority defines the custom module authority. If not set, defaults to the governance module. */ + authority?: string; +} +export interface ModuleAminoMsg { + type: "cosmos-sdk/Module"; + value: ModuleAmino; +} +/** Module is the config object of the distribution module. */ +export interface ModuleSDKType { + fee_collector_name: string; + authority: string; +} +function createBaseModule(): Module { + return { + feeCollectorName: "", + authority: "" + }; +} +export const Module = { + typeUrl: "/cosmos.distribution.module.v1.Module", + encode(message: Module, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.feeCollectorName !== "") { + writer.uint32(10).string(message.feeCollectorName); + } + if (message.authority !== "") { + writer.uint32(18).string(message.authority); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): Module { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseModule(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.feeCollectorName = reader.string(); + break; + case 2: + message.authority = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): Module { + const message = createBaseModule(); + message.feeCollectorName = object.feeCollectorName ?? ""; + message.authority = object.authority ?? ""; + return message; + }, + fromAmino(object: ModuleAmino): Module { + const message = createBaseModule(); + if (object.fee_collector_name !== undefined && object.fee_collector_name !== null) { + message.feeCollectorName = object.fee_collector_name; + } + if (object.authority !== undefined && object.authority !== null) { + message.authority = object.authority; + } + return message; + }, + toAmino(message: Module): ModuleAmino { + const obj: any = {}; + obj.fee_collector_name = message.feeCollectorName; + obj.authority = message.authority; + return obj; + }, + fromAminoMsg(object: ModuleAminoMsg): Module { + return Module.fromAmino(object.value); + }, + toAminoMsg(message: Module): ModuleAminoMsg { + return { + type: "cosmos-sdk/Module", + value: Module.toAmino(message) + }; + }, + fromProtoMsg(message: ModuleProtoMsg): Module { + return Module.decode(message.value); + }, + toProto(message: Module): Uint8Array { + return Module.encode(message).finish(); + }, + toProtoMsg(message: Module): ModuleProtoMsg { + return { + typeUrl: "/cosmos.distribution.module.v1.Module", + value: Module.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/osmo-query/src/codegen/cosmos/evidence/module/v1/module.ts b/packages/osmo-query/src/codegen/cosmos/evidence/module/v1/module.ts new file mode 100644 index 000000000..6e283032e --- /dev/null +++ b/packages/osmo-query/src/codegen/cosmos/evidence/module/v1/module.ts @@ -0,0 +1,71 @@ +import { BinaryReader, BinaryWriter } from "../../../../binary"; +/** Module is the config object of the evidence module. */ +export interface Module {} +export interface ModuleProtoMsg { + typeUrl: "/cosmos.evidence.module.v1.Module"; + value: Uint8Array; +} +/** Module is the config object of the evidence module. */ +export interface ModuleAmino {} +export interface ModuleAminoMsg { + type: "cosmos-sdk/Module"; + value: ModuleAmino; +} +/** Module is the config object of the evidence module. */ +export interface ModuleSDKType {} +function createBaseModule(): Module { + return {}; +} +export const Module = { + typeUrl: "/cosmos.evidence.module.v1.Module", + encode(_: Module, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): Module { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseModule(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_: Partial): Module { + const message = createBaseModule(); + return message; + }, + fromAmino(_: ModuleAmino): Module { + const message = createBaseModule(); + return message; + }, + toAmino(_: Module): ModuleAmino { + const obj: any = {}; + return obj; + }, + fromAminoMsg(object: ModuleAminoMsg): Module { + return Module.fromAmino(object.value); + }, + toAminoMsg(message: Module): ModuleAminoMsg { + return { + type: "cosmos-sdk/Module", + value: Module.toAmino(message) + }; + }, + fromProtoMsg(message: ModuleProtoMsg): Module { + return Module.decode(message.value); + }, + toProto(message: Module): Uint8Array { + return Module.encode(message).finish(); + }, + toProtoMsg(message: Module): ModuleProtoMsg { + return { + typeUrl: "/cosmos.evidence.module.v1.Module", + value: Module.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/osmo-query/src/codegen/cosmos/feegrant/module/v1/module.ts b/packages/osmo-query/src/codegen/cosmos/feegrant/module/v1/module.ts new file mode 100644 index 000000000..d573fb7dc --- /dev/null +++ b/packages/osmo-query/src/codegen/cosmos/feegrant/module/v1/module.ts @@ -0,0 +1,71 @@ +import { BinaryReader, BinaryWriter } from "../../../../binary"; +/** Module is the config object of the feegrant module. */ +export interface Module {} +export interface ModuleProtoMsg { + typeUrl: "/cosmos.feegrant.module.v1.Module"; + value: Uint8Array; +} +/** Module is the config object of the feegrant module. */ +export interface ModuleAmino {} +export interface ModuleAminoMsg { + type: "cosmos-sdk/Module"; + value: ModuleAmino; +} +/** Module is the config object of the feegrant module. */ +export interface ModuleSDKType {} +function createBaseModule(): Module { + return {}; +} +export const Module = { + typeUrl: "/cosmos.feegrant.module.v1.Module", + encode(_: Module, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): Module { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseModule(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_: Partial): Module { + const message = createBaseModule(); + return message; + }, + fromAmino(_: ModuleAmino): Module { + const message = createBaseModule(); + return message; + }, + toAmino(_: Module): ModuleAmino { + const obj: any = {}; + return obj; + }, + fromAminoMsg(object: ModuleAminoMsg): Module { + return Module.fromAmino(object.value); + }, + toAminoMsg(message: Module): ModuleAminoMsg { + return { + type: "cosmos-sdk/Module", + value: Module.toAmino(message) + }; + }, + fromProtoMsg(message: ModuleProtoMsg): Module { + return Module.decode(message.value); + }, + toProto(message: Module): Uint8Array { + return Module.encode(message).finish(); + }, + toProtoMsg(message: Module): ModuleProtoMsg { + return { + typeUrl: "/cosmos.feegrant.module.v1.Module", + value: Module.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/osmo-query/src/codegen/cosmos/genutil/module/v1/module.ts b/packages/osmo-query/src/codegen/cosmos/genutil/module/v1/module.ts new file mode 100644 index 000000000..32d6bd8c4 --- /dev/null +++ b/packages/osmo-query/src/codegen/cosmos/genutil/module/v1/module.ts @@ -0,0 +1,71 @@ +import { BinaryReader, BinaryWriter } from "../../../../binary"; +/** Module is the config object for the genutil module. */ +export interface Module {} +export interface ModuleProtoMsg { + typeUrl: "/cosmos.genutil.module.v1.Module"; + value: Uint8Array; +} +/** Module is the config object for the genutil module. */ +export interface ModuleAmino {} +export interface ModuleAminoMsg { + type: "cosmos-sdk/Module"; + value: ModuleAmino; +} +/** Module is the config object for the genutil module. */ +export interface ModuleSDKType {} +function createBaseModule(): Module { + return {}; +} +export const Module = { + typeUrl: "/cosmos.genutil.module.v1.Module", + encode(_: Module, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): Module { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseModule(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_: Partial): Module { + const message = createBaseModule(); + return message; + }, + fromAmino(_: ModuleAmino): Module { + const message = createBaseModule(); + return message; + }, + toAmino(_: Module): ModuleAmino { + const obj: any = {}; + return obj; + }, + fromAminoMsg(object: ModuleAminoMsg): Module { + return Module.fromAmino(object.value); + }, + toAminoMsg(message: Module): ModuleAminoMsg { + return { + type: "cosmos-sdk/Module", + value: Module.toAmino(message) + }; + }, + fromProtoMsg(message: ModuleProtoMsg): Module { + return Module.decode(message.value); + }, + toProto(message: Module): Uint8Array { + return Module.encode(message).finish(); + }, + toProtoMsg(message: Module): ModuleProtoMsg { + return { + typeUrl: "/cosmos.genutil.module.v1.Module", + value: Module.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/osmo-query/src/codegen/cosmos/gov/module/v1/module.ts b/packages/osmo-query/src/codegen/cosmos/gov/module/v1/module.ts new file mode 100644 index 000000000..69865db94 --- /dev/null +++ b/packages/osmo-query/src/codegen/cosmos/gov/module/v1/module.ts @@ -0,0 +1,115 @@ +import { BinaryReader, BinaryWriter } from "../../../../binary"; +/** Module is the config object of the gov module. */ +export interface Module { + /** + * max_metadata_len defines the maximum proposal metadata length. + * Defaults to 255 if not explicitly set. + */ + maxMetadataLen: bigint; + /** authority defines the custom module authority. If not set, defaults to the governance module. */ + authority: string; +} +export interface ModuleProtoMsg { + typeUrl: "/cosmos.gov.module.v1.Module"; + value: Uint8Array; +} +/** Module is the config object of the gov module. */ +export interface ModuleAmino { + /** + * max_metadata_len defines the maximum proposal metadata length. + * Defaults to 255 if not explicitly set. + */ + max_metadata_len?: string; + /** authority defines the custom module authority. If not set, defaults to the governance module. */ + authority?: string; +} +export interface ModuleAminoMsg { + type: "cosmos-sdk/Module"; + value: ModuleAmino; +} +/** Module is the config object of the gov module. */ +export interface ModuleSDKType { + max_metadata_len: bigint; + authority: string; +} +function createBaseModule(): Module { + return { + maxMetadataLen: BigInt(0), + authority: "" + }; +} +export const Module = { + typeUrl: "/cosmos.gov.module.v1.Module", + encode(message: Module, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.maxMetadataLen !== BigInt(0)) { + writer.uint32(8).uint64(message.maxMetadataLen); + } + if (message.authority !== "") { + writer.uint32(18).string(message.authority); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): Module { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseModule(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.maxMetadataLen = reader.uint64(); + break; + case 2: + message.authority = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): Module { + const message = createBaseModule(); + message.maxMetadataLen = object.maxMetadataLen !== undefined && object.maxMetadataLen !== null ? BigInt(object.maxMetadataLen.toString()) : BigInt(0); + message.authority = object.authority ?? ""; + return message; + }, + fromAmino(object: ModuleAmino): Module { + const message = createBaseModule(); + if (object.max_metadata_len !== undefined && object.max_metadata_len !== null) { + message.maxMetadataLen = BigInt(object.max_metadata_len); + } + if (object.authority !== undefined && object.authority !== null) { + message.authority = object.authority; + } + return message; + }, + toAmino(message: Module): ModuleAmino { + const obj: any = {}; + obj.max_metadata_len = message.maxMetadataLen ? message.maxMetadataLen.toString() : undefined; + obj.authority = message.authority; + return obj; + }, + fromAminoMsg(object: ModuleAminoMsg): Module { + return Module.fromAmino(object.value); + }, + toAminoMsg(message: Module): ModuleAminoMsg { + return { + type: "cosmos-sdk/Module", + value: Module.toAmino(message) + }; + }, + fromProtoMsg(message: ModuleProtoMsg): Module { + return Module.decode(message.value); + }, + toProto(message: Module): Uint8Array { + return Module.encode(message).finish(); + }, + toProtoMsg(message: Module): ModuleProtoMsg { + return { + typeUrl: "/cosmos.gov.module.v1.Module", + value: Module.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/osmo-query/src/codegen/cosmos/group/module/v1/module.ts b/packages/osmo-query/src/codegen/cosmos/group/module/v1/module.ts new file mode 100644 index 000000000..9c8976c9f --- /dev/null +++ b/packages/osmo-query/src/codegen/cosmos/group/module/v1/module.ts @@ -0,0 +1,122 @@ +import { Duration, DurationAmino, DurationSDKType } from "../../../../google/protobuf/duration"; +import { BinaryReader, BinaryWriter } from "../../../../binary"; +/** Module is the config object of the group module. */ +export interface Module { + /** + * max_execution_period defines the max duration after a proposal's voting period ends that members can send a MsgExec + * to execute the proposal. + */ + maxExecutionPeriod: Duration; + /** + * max_metadata_len defines the max length of the metadata bytes field for various entities within the group module. + * Defaults to 255 if not explicitly set. + */ + maxMetadataLen: bigint; +} +export interface ModuleProtoMsg { + typeUrl: "/cosmos.group.module.v1.Module"; + value: Uint8Array; +} +/** Module is the config object of the group module. */ +export interface ModuleAmino { + /** + * max_execution_period defines the max duration after a proposal's voting period ends that members can send a MsgExec + * to execute the proposal. + */ + max_execution_period: DurationAmino; + /** + * max_metadata_len defines the max length of the metadata bytes field for various entities within the group module. + * Defaults to 255 if not explicitly set. + */ + max_metadata_len?: string; +} +export interface ModuleAminoMsg { + type: "cosmos-sdk/Module"; + value: ModuleAmino; +} +/** Module is the config object of the group module. */ +export interface ModuleSDKType { + max_execution_period: DurationSDKType; + max_metadata_len: bigint; +} +function createBaseModule(): Module { + return { + maxExecutionPeriod: Duration.fromPartial({}), + maxMetadataLen: BigInt(0) + }; +} +export const Module = { + typeUrl: "/cosmos.group.module.v1.Module", + encode(message: Module, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.maxExecutionPeriod !== undefined) { + Duration.encode(message.maxExecutionPeriod, writer.uint32(10).fork()).ldelim(); + } + if (message.maxMetadataLen !== BigInt(0)) { + writer.uint32(16).uint64(message.maxMetadataLen); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): Module { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseModule(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.maxExecutionPeriod = Duration.decode(reader, reader.uint32()); + break; + case 2: + message.maxMetadataLen = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): Module { + const message = createBaseModule(); + message.maxExecutionPeriod = object.maxExecutionPeriod !== undefined && object.maxExecutionPeriod !== null ? Duration.fromPartial(object.maxExecutionPeriod) : undefined; + message.maxMetadataLen = object.maxMetadataLen !== undefined && object.maxMetadataLen !== null ? BigInt(object.maxMetadataLen.toString()) : BigInt(0); + return message; + }, + fromAmino(object: ModuleAmino): Module { + const message = createBaseModule(); + if (object.max_execution_period !== undefined && object.max_execution_period !== null) { + message.maxExecutionPeriod = Duration.fromAmino(object.max_execution_period); + } + if (object.max_metadata_len !== undefined && object.max_metadata_len !== null) { + message.maxMetadataLen = BigInt(object.max_metadata_len); + } + return message; + }, + toAmino(message: Module): ModuleAmino { + const obj: any = {}; + obj.max_execution_period = message.maxExecutionPeriod ? Duration.toAmino(message.maxExecutionPeriod) : Duration.fromPartial({}); + obj.max_metadata_len = message.maxMetadataLen ? message.maxMetadataLen.toString() : undefined; + return obj; + }, + fromAminoMsg(object: ModuleAminoMsg): Module { + return Module.fromAmino(object.value); + }, + toAminoMsg(message: Module): ModuleAminoMsg { + return { + type: "cosmos-sdk/Module", + value: Module.toAmino(message) + }; + }, + fromProtoMsg(message: ModuleProtoMsg): Module { + return Module.decode(message.value); + }, + toProto(message: Module): Uint8Array { + return Module.encode(message).finish(); + }, + toProtoMsg(message: Module): ModuleProtoMsg { + return { + typeUrl: "/cosmos.group.module.v1.Module", + value: Module.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/osmo-query/src/codegen/cosmos/mint/module/v1/module.ts b/packages/osmo-query/src/codegen/cosmos/mint/module/v1/module.ts new file mode 100644 index 000000000..c510b592d --- /dev/null +++ b/packages/osmo-query/src/codegen/cosmos/mint/module/v1/module.ts @@ -0,0 +1,107 @@ +import { BinaryReader, BinaryWriter } from "../../../../binary"; +/** Module is the config object of the mint module. */ +export interface Module { + feeCollectorName: string; + /** authority defines the custom module authority. If not set, defaults to the governance module. */ + authority: string; +} +export interface ModuleProtoMsg { + typeUrl: "/cosmos.mint.module.v1.Module"; + value: Uint8Array; +} +/** Module is the config object of the mint module. */ +export interface ModuleAmino { + fee_collector_name?: string; + /** authority defines the custom module authority. If not set, defaults to the governance module. */ + authority?: string; +} +export interface ModuleAminoMsg { + type: "cosmos-sdk/Module"; + value: ModuleAmino; +} +/** Module is the config object of the mint module. */ +export interface ModuleSDKType { + fee_collector_name: string; + authority: string; +} +function createBaseModule(): Module { + return { + feeCollectorName: "", + authority: "" + }; +} +export const Module = { + typeUrl: "/cosmos.mint.module.v1.Module", + encode(message: Module, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.feeCollectorName !== "") { + writer.uint32(10).string(message.feeCollectorName); + } + if (message.authority !== "") { + writer.uint32(18).string(message.authority); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): Module { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseModule(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.feeCollectorName = reader.string(); + break; + case 2: + message.authority = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): Module { + const message = createBaseModule(); + message.feeCollectorName = object.feeCollectorName ?? ""; + message.authority = object.authority ?? ""; + return message; + }, + fromAmino(object: ModuleAmino): Module { + const message = createBaseModule(); + if (object.fee_collector_name !== undefined && object.fee_collector_name !== null) { + message.feeCollectorName = object.fee_collector_name; + } + if (object.authority !== undefined && object.authority !== null) { + message.authority = object.authority; + } + return message; + }, + toAmino(message: Module): ModuleAmino { + const obj: any = {}; + obj.fee_collector_name = message.feeCollectorName; + obj.authority = message.authority; + return obj; + }, + fromAminoMsg(object: ModuleAminoMsg): Module { + return Module.fromAmino(object.value); + }, + toAminoMsg(message: Module): ModuleAminoMsg { + return { + type: "cosmos-sdk/Module", + value: Module.toAmino(message) + }; + }, + fromProtoMsg(message: ModuleProtoMsg): Module { + return Module.decode(message.value); + }, + toProto(message: Module): Uint8Array { + return Module.encode(message).finish(); + }, + toProtoMsg(message: Module): ModuleProtoMsg { + return { + typeUrl: "/cosmos.mint.module.v1.Module", + value: Module.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/osmo-query/src/codegen/cosmos/nft/module/v1/module.ts b/packages/osmo-query/src/codegen/cosmos/nft/module/v1/module.ts new file mode 100644 index 000000000..a0116bba4 --- /dev/null +++ b/packages/osmo-query/src/codegen/cosmos/nft/module/v1/module.ts @@ -0,0 +1,71 @@ +import { BinaryReader, BinaryWriter } from "../../../../binary"; +/** Module is the config object of the nft module. */ +export interface Module {} +export interface ModuleProtoMsg { + typeUrl: "/cosmos.nft.module.v1.Module"; + value: Uint8Array; +} +/** Module is the config object of the nft module. */ +export interface ModuleAmino {} +export interface ModuleAminoMsg { + type: "cosmos-sdk/Module"; + value: ModuleAmino; +} +/** Module is the config object of the nft module. */ +export interface ModuleSDKType {} +function createBaseModule(): Module { + return {}; +} +export const Module = { + typeUrl: "/cosmos.nft.module.v1.Module", + encode(_: Module, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): Module { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseModule(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_: Partial): Module { + const message = createBaseModule(); + return message; + }, + fromAmino(_: ModuleAmino): Module { + const message = createBaseModule(); + return message; + }, + toAmino(_: Module): ModuleAmino { + const obj: any = {}; + return obj; + }, + fromAminoMsg(object: ModuleAminoMsg): Module { + return Module.fromAmino(object.value); + }, + toAminoMsg(message: Module): ModuleAminoMsg { + return { + type: "cosmos-sdk/Module", + value: Module.toAmino(message) + }; + }, + fromProtoMsg(message: ModuleProtoMsg): Module { + return Module.decode(message.value); + }, + toProto(message: Module): Uint8Array { + return Module.encode(message).finish(); + }, + toProtoMsg(message: Module): ModuleProtoMsg { + return { + typeUrl: "/cosmos.nft.module.v1.Module", + value: Module.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/osmo-query/src/codegen/cosmos/orm/module/v1alpha1/module.ts b/packages/osmo-query/src/codegen/cosmos/orm/module/v1alpha1/module.ts new file mode 100644 index 000000000..67d096995 --- /dev/null +++ b/packages/osmo-query/src/codegen/cosmos/orm/module/v1alpha1/module.ts @@ -0,0 +1,83 @@ +import { BinaryReader, BinaryWriter } from "../../../../binary"; +/** + * Module defines the ORM module which adds providers to the app container for + * module-scoped DB's. In the future it may provide gRPC services for interacting + * with ORM data. + */ +export interface Module {} +export interface ModuleProtoMsg { + typeUrl: "/cosmos.orm.module.v1alpha1.Module"; + value: Uint8Array; +} +/** + * Module defines the ORM module which adds providers to the app container for + * module-scoped DB's. In the future it may provide gRPC services for interacting + * with ORM data. + */ +export interface ModuleAmino {} +export interface ModuleAminoMsg { + type: "cosmos-sdk/Module"; + value: ModuleAmino; +} +/** + * Module defines the ORM module which adds providers to the app container for + * module-scoped DB's. In the future it may provide gRPC services for interacting + * with ORM data. + */ +export interface ModuleSDKType {} +function createBaseModule(): Module { + return {}; +} +export const Module = { + typeUrl: "/cosmos.orm.module.v1alpha1.Module", + encode(_: Module, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): Module { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseModule(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_: Partial): Module { + const message = createBaseModule(); + return message; + }, + fromAmino(_: ModuleAmino): Module { + const message = createBaseModule(); + return message; + }, + toAmino(_: Module): ModuleAmino { + const obj: any = {}; + return obj; + }, + fromAminoMsg(object: ModuleAminoMsg): Module { + return Module.fromAmino(object.value); + }, + toAminoMsg(message: Module): ModuleAminoMsg { + return { + type: "cosmos-sdk/Module", + value: Module.toAmino(message) + }; + }, + fromProtoMsg(message: ModuleProtoMsg): Module { + return Module.decode(message.value); + }, + toProto(message: Module): Uint8Array { + return Module.encode(message).finish(); + }, + toProtoMsg(message: Module): ModuleProtoMsg { + return { + typeUrl: "/cosmos.orm.module.v1alpha1.Module", + value: Module.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/osmo-query/src/codegen/cosmos/params/module/v1/module.ts b/packages/osmo-query/src/codegen/cosmos/params/module/v1/module.ts new file mode 100644 index 000000000..332c933bc --- /dev/null +++ b/packages/osmo-query/src/codegen/cosmos/params/module/v1/module.ts @@ -0,0 +1,71 @@ +import { BinaryReader, BinaryWriter } from "../../../../binary"; +/** Module is the config object of the params module. */ +export interface Module {} +export interface ModuleProtoMsg { + typeUrl: "/cosmos.params.module.v1.Module"; + value: Uint8Array; +} +/** Module is the config object of the params module. */ +export interface ModuleAmino {} +export interface ModuleAminoMsg { + type: "cosmos-sdk/Module"; + value: ModuleAmino; +} +/** Module is the config object of the params module. */ +export interface ModuleSDKType {} +function createBaseModule(): Module { + return {}; +} +export const Module = { + typeUrl: "/cosmos.params.module.v1.Module", + encode(_: Module, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): Module { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseModule(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_: Partial): Module { + const message = createBaseModule(); + return message; + }, + fromAmino(_: ModuleAmino): Module { + const message = createBaseModule(); + return message; + }, + toAmino(_: Module): ModuleAmino { + const obj: any = {}; + return obj; + }, + fromAminoMsg(object: ModuleAminoMsg): Module { + return Module.fromAmino(object.value); + }, + toAminoMsg(message: Module): ModuleAminoMsg { + return { + type: "cosmos-sdk/Module", + value: Module.toAmino(message) + }; + }, + fromProtoMsg(message: ModuleProtoMsg): Module { + return Module.decode(message.value); + }, + toProto(message: Module): Uint8Array { + return Module.encode(message).finish(); + }, + toProtoMsg(message: Module): ModuleProtoMsg { + return { + typeUrl: "/cosmos.params.module.v1.Module", + value: Module.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/osmo-query/src/codegen/cosmos/slashing/module/v1/module.ts b/packages/osmo-query/src/codegen/cosmos/slashing/module/v1/module.ts new file mode 100644 index 000000000..cb5b8fd10 --- /dev/null +++ b/packages/osmo-query/src/codegen/cosmos/slashing/module/v1/module.ts @@ -0,0 +1,92 @@ +import { BinaryReader, BinaryWriter } from "../../../../binary"; +/** Module is the config object of the slashing module. */ +export interface Module { + /** authority defines the custom module authority. If not set, defaults to the governance module. */ + authority: string; +} +export interface ModuleProtoMsg { + typeUrl: "/cosmos.slashing.module.v1.Module"; + value: Uint8Array; +} +/** Module is the config object of the slashing module. */ +export interface ModuleAmino { + /** authority defines the custom module authority. If not set, defaults to the governance module. */ + authority?: string; +} +export interface ModuleAminoMsg { + type: "cosmos-sdk/Module"; + value: ModuleAmino; +} +/** Module is the config object of the slashing module. */ +export interface ModuleSDKType { + authority: string; +} +function createBaseModule(): Module { + return { + authority: "" + }; +} +export const Module = { + typeUrl: "/cosmos.slashing.module.v1.Module", + encode(message: Module, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.authority !== "") { + writer.uint32(10).string(message.authority); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): Module { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseModule(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.authority = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): Module { + const message = createBaseModule(); + message.authority = object.authority ?? ""; + return message; + }, + fromAmino(object: ModuleAmino): Module { + const message = createBaseModule(); + if (object.authority !== undefined && object.authority !== null) { + message.authority = object.authority; + } + return message; + }, + toAmino(message: Module): ModuleAmino { + const obj: any = {}; + obj.authority = message.authority; + return obj; + }, + fromAminoMsg(object: ModuleAminoMsg): Module { + return Module.fromAmino(object.value); + }, + toAminoMsg(message: Module): ModuleAminoMsg { + return { + type: "cosmos-sdk/Module", + value: Module.toAmino(message) + }; + }, + fromProtoMsg(message: ModuleProtoMsg): Module { + return Module.decode(message.value); + }, + toProto(message: Module): Uint8Array { + return Module.encode(message).finish(); + }, + toProtoMsg(message: Module): ModuleProtoMsg { + return { + typeUrl: "/cosmos.slashing.module.v1.Module", + value: Module.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/osmo-query/src/codegen/cosmos/staking/module/v1/module.ts b/packages/osmo-query/src/codegen/cosmos/staking/module/v1/module.ts new file mode 100644 index 000000000..a98c58f79 --- /dev/null +++ b/packages/osmo-query/src/codegen/cosmos/staking/module/v1/module.ts @@ -0,0 +1,119 @@ +import { BinaryReader, BinaryWriter } from "../../../../binary"; +/** Module is the config object of the staking module. */ +export interface Module { + /** + * hooks_order specifies the order of staking hooks and should be a list + * of module names which provide a staking hooks instance. If no order is + * provided, then hooks will be applied in alphabetical order of module names. + */ + hooksOrder: string[]; + /** authority defines the custom module authority. If not set, defaults to the governance module. */ + authority: string; +} +export interface ModuleProtoMsg { + typeUrl: "/cosmos.staking.module.v1.Module"; + value: Uint8Array; +} +/** Module is the config object of the staking module. */ +export interface ModuleAmino { + /** + * hooks_order specifies the order of staking hooks and should be a list + * of module names which provide a staking hooks instance. If no order is + * provided, then hooks will be applied in alphabetical order of module names. + */ + hooks_order?: string[]; + /** authority defines the custom module authority. If not set, defaults to the governance module. */ + authority?: string; +} +export interface ModuleAminoMsg { + type: "cosmos-sdk/Module"; + value: ModuleAmino; +} +/** Module is the config object of the staking module. */ +export interface ModuleSDKType { + hooks_order: string[]; + authority: string; +} +function createBaseModule(): Module { + return { + hooksOrder: [], + authority: "" + }; +} +export const Module = { + typeUrl: "/cosmos.staking.module.v1.Module", + encode(message: Module, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + for (const v of message.hooksOrder) { + writer.uint32(10).string(v!); + } + if (message.authority !== "") { + writer.uint32(18).string(message.authority); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): Module { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseModule(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.hooksOrder.push(reader.string()); + break; + case 2: + message.authority = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): Module { + const message = createBaseModule(); + message.hooksOrder = object.hooksOrder?.map(e => e) || []; + message.authority = object.authority ?? ""; + return message; + }, + fromAmino(object: ModuleAmino): Module { + const message = createBaseModule(); + message.hooksOrder = object.hooks_order?.map(e => e) || []; + if (object.authority !== undefined && object.authority !== null) { + message.authority = object.authority; + } + return message; + }, + toAmino(message: Module): ModuleAmino { + const obj: any = {}; + if (message.hooksOrder) { + obj.hooks_order = message.hooksOrder.map(e => e); + } else { + obj.hooks_order = []; + } + obj.authority = message.authority; + return obj; + }, + fromAminoMsg(object: ModuleAminoMsg): Module { + return Module.fromAmino(object.value); + }, + toAminoMsg(message: Module): ModuleAminoMsg { + return { + type: "cosmos-sdk/Module", + value: Module.toAmino(message) + }; + }, + fromProtoMsg(message: ModuleProtoMsg): Module { + return Module.decode(message.value); + }, + toProto(message: Module): Uint8Array { + return Module.encode(message).finish(); + }, + toProtoMsg(message: Module): ModuleProtoMsg { + return { + typeUrl: "/cosmos.staking.module.v1.Module", + value: Module.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/osmo-query/src/codegen/cosmos/upgrade/module/v1/module.ts b/packages/osmo-query/src/codegen/cosmos/upgrade/module/v1/module.ts new file mode 100644 index 000000000..02f8c480e --- /dev/null +++ b/packages/osmo-query/src/codegen/cosmos/upgrade/module/v1/module.ts @@ -0,0 +1,92 @@ +import { BinaryReader, BinaryWriter } from "../../../../binary"; +/** Module is the config object of the upgrade module. */ +export interface Module { + /** authority defines the custom module authority. If not set, defaults to the governance module. */ + authority: string; +} +export interface ModuleProtoMsg { + typeUrl: "/cosmos.upgrade.module.v1.Module"; + value: Uint8Array; +} +/** Module is the config object of the upgrade module. */ +export interface ModuleAmino { + /** authority defines the custom module authority. If not set, defaults to the governance module. */ + authority?: string; +} +export interface ModuleAminoMsg { + type: "cosmos-sdk/Module"; + value: ModuleAmino; +} +/** Module is the config object of the upgrade module. */ +export interface ModuleSDKType { + authority: string; +} +function createBaseModule(): Module { + return { + authority: "" + }; +} +export const Module = { + typeUrl: "/cosmos.upgrade.module.v1.Module", + encode(message: Module, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + if (message.authority !== "") { + writer.uint32(10).string(message.authority); + } + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): Module { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseModule(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.authority = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(object: Partial): Module { + const message = createBaseModule(); + message.authority = object.authority ?? ""; + return message; + }, + fromAmino(object: ModuleAmino): Module { + const message = createBaseModule(); + if (object.authority !== undefined && object.authority !== null) { + message.authority = object.authority; + } + return message; + }, + toAmino(message: Module): ModuleAmino { + const obj: any = {}; + obj.authority = message.authority; + return obj; + }, + fromAminoMsg(object: ModuleAminoMsg): Module { + return Module.fromAmino(object.value); + }, + toAminoMsg(message: Module): ModuleAminoMsg { + return { + type: "cosmos-sdk/Module", + value: Module.toAmino(message) + }; + }, + fromProtoMsg(message: ModuleProtoMsg): Module { + return Module.decode(message.value); + }, + toProto(message: Module): Uint8Array { + return Module.encode(message).finish(); + }, + toProtoMsg(message: Module): ModuleProtoMsg { + return { + typeUrl: "/cosmos.upgrade.module.v1.Module", + value: Module.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/osmo-query/src/codegen/cosmos/vesting/module/v1/module.ts b/packages/osmo-query/src/codegen/cosmos/vesting/module/v1/module.ts new file mode 100644 index 000000000..9e164bbe2 --- /dev/null +++ b/packages/osmo-query/src/codegen/cosmos/vesting/module/v1/module.ts @@ -0,0 +1,71 @@ +import { BinaryReader, BinaryWriter } from "../../../../binary"; +/** Module is the config object of the vesting module. */ +export interface Module {} +export interface ModuleProtoMsg { + typeUrl: "/cosmos.vesting.module.v1.Module"; + value: Uint8Array; +} +/** Module is the config object of the vesting module. */ +export interface ModuleAmino {} +export interface ModuleAminoMsg { + type: "cosmos-sdk/Module"; + value: ModuleAmino; +} +/** Module is the config object of the vesting module. */ +export interface ModuleSDKType {} +function createBaseModule(): Module { + return {}; +} +export const Module = { + typeUrl: "/cosmos.vesting.module.v1.Module", + encode(_: Module, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter { + return writer; + }, + decode(input: BinaryReader | Uint8Array, length?: number): Module { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseModule(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }, + fromPartial(_: Partial): Module { + const message = createBaseModule(); + return message; + }, + fromAmino(_: ModuleAmino): Module { + const message = createBaseModule(); + return message; + }, + toAmino(_: Module): ModuleAmino { + const obj: any = {}; + return obj; + }, + fromAminoMsg(object: ModuleAminoMsg): Module { + return Module.fromAmino(object.value); + }, + toAminoMsg(message: Module): ModuleAminoMsg { + return { + type: "cosmos-sdk/Module", + value: Module.toAmino(message) + }; + }, + fromProtoMsg(message: ModuleProtoMsg): Module { + return Module.decode(message.value); + }, + toProto(message: Module): Uint8Array { + return Module.encode(message).finish(); + }, + toProtoMsg(message: Module): ModuleProtoMsg { + return { + typeUrl: "/cosmos.vesting.module.v1.Module", + value: Module.encode(message).finish() + }; + } +}; \ No newline at end of file diff --git a/packages/osmo-query/src/codegen/extern.ts b/packages/osmo-query/src/codegen/extern.ts index 3d472b8ed..b735407d1 100644 --- a/packages/osmo-query/src/codegen/extern.ts +++ b/packages/osmo-query/src/codegen/extern.ts @@ -1,5 +1,5 @@ /** -* This file and any referenced files were automatically generated by @cosmology/telescope@1.4.3 +* This file and any referenced files were automatically generated by @cosmology/telescope@1.4.6 * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain * and run the transpile command or yarn proto command to regenerate this bundle. */ diff --git a/packages/osmo-query/src/codegen/helpers.ts b/packages/osmo-query/src/codegen/helpers.ts index 8f22d11c1..5a3b67693 100644 --- a/packages/osmo-query/src/codegen/helpers.ts +++ b/packages/osmo-query/src/codegen/helpers.ts @@ -1,5 +1,5 @@ /** -* This file and any referenced files were automatically generated by @cosmology/telescope@1.4.3 +* This file and any referenced files were automatically generated by @cosmology/telescope@1.4.6 * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain * and run the transpile command or yarn proto command to regenerate this bundle. */ @@ -248,3 +248,4 @@ export function fromJsonTimestamp(o: any): Timestamp { function numberToLong(number: number) { return BigInt(Math.trunc(number)); } + diff --git a/packages/osmo-query/src/codegen/index.ts b/packages/osmo-query/src/codegen/index.ts index 8121ea4b5..0529db557 100644 --- a/packages/osmo-query/src/codegen/index.ts +++ b/packages/osmo-query/src/codegen/index.ts @@ -1,5 +1,5 @@ /** - * This file and any referenced files were automatically generated by @cosmology/telescope@1.4.3 + * This file and any referenced files were automatically generated by @cosmology/telescope@1.4.6 * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain * and run the transpile command or yarn proto command to regenerate this bundle. */ diff --git a/packages/osmo-query/src/codegen/react-query.ts b/packages/osmo-query/src/codegen/react-query.ts index 1dd6224b5..2afa1435b 100644 --- a/packages/osmo-query/src/codegen/react-query.ts +++ b/packages/osmo-query/src/codegen/react-query.ts @@ -1,5 +1,5 @@ /** -* This file and any referenced files were automatically generated by @cosmology/telescope@1.4.3 +* This file and any referenced files were automatically generated by @cosmology/telescope@1.4.6 * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain * and run the transpile command or yarn proto command to regenerate this bundle. */ diff --git a/packages/osmo-query/src/codegen/utf8.ts b/packages/osmo-query/src/codegen/utf8.ts index 4118d0dbc..fe2c923c5 100644 --- a/packages/osmo-query/src/codegen/utf8.ts +++ b/packages/osmo-query/src/codegen/utf8.ts @@ -1,5 +1,5 @@ /** -* This file and any referenced files were automatically generated by @cosmology/telescope@1.4.3 +* This file and any referenced files were automatically generated by @cosmology/telescope@1.4.6 * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain * and run the transpile command or yarn proto command to regenerate this bundle. */ diff --git a/packages/osmo-query/src/codegen/varint.ts b/packages/osmo-query/src/codegen/varint.ts index a80a74e85..d22d8f281 100644 --- a/packages/osmo-query/src/codegen/varint.ts +++ b/packages/osmo-query/src/codegen/varint.ts @@ -1,5 +1,5 @@ /** -* This file and any referenced files were automatically generated by @cosmology/telescope@1.4.3 +* This file and any referenced files were automatically generated by @cosmology/telescope@1.4.6 * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain * and run the transpile command or yarn proto command to regenerate this bundle. */ diff --git a/packages/osmojs/package.json b/packages/osmojs/package.json index 9baf6fabc..a9af3ba79 100644 --- a/packages/osmojs/package.json +++ b/packages/osmojs/package.json @@ -1,12 +1,11 @@ { "name": "osmojs", - "version": "16.8.3", + "version": "16.8.5", "description": "Typescript Protobuf Messages for Osmosis", "author": "Dan Lynch ", "homepage": "https://github.com/osmosis-labs/osmojs/tree/master/packages/osmojs#readme", "license": "SEE LICENSE IN LICENSE", "main": "dist/index.js", - "module": "dist/index.mjs", "typings": "dist/index.d.ts", "directories": { "lib": "src", @@ -18,12 +17,9 @@ ], "scripts": { "build:cjs": "yarn tsc -p tsconfig.json --outDir dist --module commonjs || true", - "build:mjs": "yarn tsc -p tsconfig.json --outDir mjs --module es2022 --declaration false || true", - "clean:mjs": "rimraf mjs", "clean:dist": "rimraf dist", - "clean": "npm run clean:mjs && npm run clean:dist", - "build:rename": "publish-scripts --cmd rename --srcDir mjs --outDir dist --findExt js --replaceExt mjs --no-rmDir", - "build": "npm run clean && npm run build:cjs && npm run build:mjs && npm run build:rename", + "clean": "npm run clean:dist", + "build": "npm run clean && npm run build:cjs", "codegen": "cross-env NODE_ENV=development babel-node scripts/codegen.js", "prepare": "npm run build", "lint": "eslint .", diff --git a/packages/osmojs/src/codegen/binary.ts b/packages/osmojs/src/codegen/binary.ts index 8696e47c5..1df1a60a3 100644 --- a/packages/osmojs/src/codegen/binary.ts +++ b/packages/osmojs/src/codegen/binary.ts @@ -1,5 +1,5 @@ /** -* This file and any referenced files were automatically generated by @cosmology/telescope@1.4.3 +* This file and any referenced files were automatically generated by @cosmology/telescope@1.4.6 * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain * and run the transpile command or yarn proto command to regenerate this bundle. */ diff --git a/packages/osmojs/src/codegen/helpers.ts b/packages/osmojs/src/codegen/helpers.ts index 8f22d11c1..5a3b67693 100644 --- a/packages/osmojs/src/codegen/helpers.ts +++ b/packages/osmojs/src/codegen/helpers.ts @@ -1,5 +1,5 @@ /** -* This file and any referenced files were automatically generated by @cosmology/telescope@1.4.3 +* This file and any referenced files were automatically generated by @cosmology/telescope@1.4.6 * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain * and run the transpile command or yarn proto command to regenerate this bundle. */ @@ -248,3 +248,4 @@ export function fromJsonTimestamp(o: any): Timestamp { function numberToLong(number: number) { return BigInt(Math.trunc(number)); } + diff --git a/packages/osmojs/src/codegen/index.ts b/packages/osmojs/src/codegen/index.ts index 798feebb3..9b5f0639e 100644 --- a/packages/osmojs/src/codegen/index.ts +++ b/packages/osmojs/src/codegen/index.ts @@ -1,5 +1,5 @@ /** - * This file and any referenced files were automatically generated by @cosmology/telescope@1.4.3 + * This file and any referenced files were automatically generated by @cosmology/telescope@1.4.6 * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain * and run the transpile command or yarn proto command to regenerate this bundle. */ diff --git a/packages/osmojs/src/codegen/utf8.ts b/packages/osmojs/src/codegen/utf8.ts index 4118d0dbc..fe2c923c5 100644 --- a/packages/osmojs/src/codegen/utf8.ts +++ b/packages/osmojs/src/codegen/utf8.ts @@ -1,5 +1,5 @@ /** -* This file and any referenced files were automatically generated by @cosmology/telescope@1.4.3 +* This file and any referenced files were automatically generated by @cosmology/telescope@1.4.6 * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain * and run the transpile command or yarn proto command to regenerate this bundle. */ diff --git a/packages/osmojs/src/codegen/varint.ts b/packages/osmojs/src/codegen/varint.ts index a80a74e85..d22d8f281 100644 --- a/packages/osmojs/src/codegen/varint.ts +++ b/packages/osmojs/src/codegen/varint.ts @@ -1,5 +1,5 @@ /** -* This file and any referenced files were automatically generated by @cosmology/telescope@1.4.3 +* This file and any referenced files were automatically generated by @cosmology/telescope@1.4.6 * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain * and run the transpile command or yarn proto command to regenerate this bundle. */