From 5e1b5816f44720f5d8c5758838c3f56970018552 Mon Sep 17 00:00:00 2001 From: Yaroslav Grishajev Date: Thu, 19 Dec 2024 12:58:57 +0100 Subject: [PATCH] feat(ts): implement exports generation refs akash-network/console#566 refs akash-network/support#212 --- buf.gen.ts.yaml | 4 +- docs/proto/node.md | 2 +- docs/swagger-ui/swagger.yaml | 4 +- go/node/deployment/v1/msg.pb.go | 2 +- make/test.mk | 2 +- ts/package.json | 83 +--- ts/script/generate-exports.js | 4 +- ts/script/generate-index-files.js | 78 ++++ .../akash/audit/v1/service.grpc-js.ts | 2 - .../akash/cert/v1/service.grpc-js.ts | 2 - ts/src/generated/akash/deployment/v1/msg.ts | 2 +- .../deployment/v1beta4/service.grpc-js.ts | 2 - .../akash/inventory/v1/service.grpc-js.ts | 2 - .../akash/manifest/v2beta3/service.grpc-js.ts | 73 +--- .../akash/market/v1beta5/service.grpc-js.ts | 2 - .../provider/lease/v1/service.grpc-js.ts | 207 ++-------- .../akash/provider/v1/service.grpc-js.ts | 2 - .../akash/provider/v1beta4/service.grpc-js.ts | 2 - .../akash/staking/v1beta3/service.grpc-js.ts | 2 - .../akash/take/v1/service.grpc-js.ts | 2 - .../cosmos/base/v1beta1/coin.original.ts | 383 ----------------- ts/src/generated/cosmos/base/v1beta1/coin.ts | 384 +++++++++++++++++- ts/src/generated/index.akash.audit.ts | 8 - ts/src/generated/index.akash.audit.v1.ts | 12 +- .../generated/index.akash.base.attributes.ts | 8 - .../index.akash.base.attributes.v1.ts | 7 - .../generated/index.akash.base.resources.ts | 8 - .../index.akash.base.resources.v1beta4.ts | 13 +- ts/src/generated/index.akash.base.ts | 8 - ts/src/generated/index.akash.cert.ts | 8 - ts/src/generated/index.akash.cert.v1.ts | 11 +- ts/src/generated/index.akash.deployment.ts | 8 - ts/src/generated/index.akash.deployment.v1.ts | 10 +- .../index.akash.deployment.v1beta4.ts | 18 +- ts/src/generated/index.akash.discovery.ts | 8 - ts/src/generated/index.akash.discovery.v1.ts | 9 +- ts/src/generated/index.akash.escrow.ts | 8 - ts/src/generated/index.akash.escrow.v1.ts | 10 +- ts/src/generated/index.akash.gov.ts | 8 - ts/src/generated/index.akash.gov.v1beta3.ts | 8 +- ts/src/generated/index.akash.inflation.ts | 8 - .../index.akash.inflation.v1beta2.ts | 8 +- .../index.akash.inflation.v1beta3.ts | 8 +- ts/src/generated/index.akash.inventory.ts | 8 - ts/src/generated/index.akash.inventory.v1.ts | 14 +- ts/src/generated/index.akash.manifest.ts | 8 - .../generated/index.akash.manifest.v2beta3.ts | 11 +- ts/src/generated/index.akash.market.ts | 8 - ts/src/generated/index.akash.market.v1.ts | 10 +- .../generated/index.akash.market.v1beta5.ts | 16 +- .../generated/index.akash.provider.lease.ts | 8 - .../index.akash.provider.lease.v1.ts | 7 - ts/src/generated/index.akash.provider.ts | 8 - ts/src/generated/index.akash.provider.v1.ts | 9 +- .../generated/index.akash.provider.v1beta4.ts | 13 +- ts/src/generated/index.akash.staking.ts | 8 - .../generated/index.akash.staking.v1beta3.ts | 11 +- ts/src/generated/index.akash.take.ts | 8 - ts/src/generated/index.akash.take.v1.ts | 11 +- ts/src/generated/index.akash.ts | 10 - ts/src/generated/index.amino.ts | 8 - ts/src/generated/index.cosmos.base.query.ts | 8 - .../index.cosmos.base.query.v1beta1.ts | 8 - ts/src/generated/index.cosmos.base.ts | 8 - ts/src/generated/index.cosmos.base.v1beta1.ts | 8 - ts/src/generated/index.cosmos.msg.ts | 8 - ts/src/generated/index.cosmos.msg.v1.ts | 8 - ts/src/generated/index.cosmos.ts | 8 - ts/src/generated/index.cosmos_proto.ts | 8 - ts/src/generated/index.gogoproto.ts | 8 - ts/src/generated/index.google.api.ts | 9 - ts/src/generated/index.google.protobuf.ts | 9 - ts/src/generated/index.google.ts | 9 - ...ex.k8s.io.apimachinery.pkg.api.resource.ts | 8 - .../index.k8s.io.apimachinery.pkg.api.ts | 8 - .../index.k8s.io.apimachinery.pkg.ts | 8 - ts/src/generated/index.k8s.io.apimachinery.ts | 8 - ts/src/generated/index.k8s.io.ts | 8 - ts/src/generated/index.k8s.ts | 8 - ts/src/generated/index.ts | 11 - ts/src/generated/index.v1.ts | 30 ++ ts/src/generated/index.v1beta3.ts | 1 + ts/src/generated/index.v1beta4.ts | 17 + ts/src/generated/index.v1beta5.ts | 6 + ts/src/generated/index.v2beta3.ts | 3 + ts/src/patch/cosmos/base/v1beta1/coin.spec.ts | 31 -- ts/src/patch/cosmos/base/v1beta1/coin.ts | 33 -- ts/static-exports.json | 25 +- 88 files changed, 634 insertions(+), 1286 deletions(-) create mode 100755 ts/script/generate-index-files.js delete mode 100644 ts/src/generated/cosmos/base/v1beta1/coin.original.ts delete mode 100644 ts/src/generated/index.akash.audit.ts delete mode 100644 ts/src/generated/index.akash.base.attributes.ts delete mode 100644 ts/src/generated/index.akash.base.resources.ts delete mode 100644 ts/src/generated/index.akash.base.ts delete mode 100644 ts/src/generated/index.akash.cert.ts delete mode 100644 ts/src/generated/index.akash.deployment.ts delete mode 100644 ts/src/generated/index.akash.discovery.ts delete mode 100644 ts/src/generated/index.akash.escrow.ts delete mode 100644 ts/src/generated/index.akash.gov.ts delete mode 100644 ts/src/generated/index.akash.inflation.ts delete mode 100644 ts/src/generated/index.akash.inventory.ts delete mode 100644 ts/src/generated/index.akash.manifest.ts delete mode 100644 ts/src/generated/index.akash.market.ts delete mode 100644 ts/src/generated/index.akash.provider.lease.ts delete mode 100644 ts/src/generated/index.akash.provider.ts delete mode 100644 ts/src/generated/index.akash.staking.ts delete mode 100644 ts/src/generated/index.akash.take.ts delete mode 100644 ts/src/generated/index.akash.ts delete mode 100644 ts/src/generated/index.amino.ts delete mode 100644 ts/src/generated/index.cosmos.base.query.ts delete mode 100644 ts/src/generated/index.cosmos.base.query.v1beta1.ts delete mode 100644 ts/src/generated/index.cosmos.base.ts delete mode 100644 ts/src/generated/index.cosmos.base.v1beta1.ts delete mode 100644 ts/src/generated/index.cosmos.msg.ts delete mode 100644 ts/src/generated/index.cosmos.msg.v1.ts delete mode 100644 ts/src/generated/index.cosmos.ts delete mode 100644 ts/src/generated/index.cosmos_proto.ts delete mode 100644 ts/src/generated/index.gogoproto.ts delete mode 100644 ts/src/generated/index.google.api.ts delete mode 100644 ts/src/generated/index.google.protobuf.ts delete mode 100644 ts/src/generated/index.google.ts delete mode 100644 ts/src/generated/index.k8s.io.apimachinery.pkg.api.resource.ts delete mode 100644 ts/src/generated/index.k8s.io.apimachinery.pkg.api.ts delete mode 100644 ts/src/generated/index.k8s.io.apimachinery.pkg.ts delete mode 100644 ts/src/generated/index.k8s.io.apimachinery.ts delete mode 100644 ts/src/generated/index.k8s.io.ts delete mode 100644 ts/src/generated/index.k8s.ts delete mode 100644 ts/src/generated/index.ts create mode 100644 ts/src/generated/index.v1.ts create mode 100644 ts/src/generated/index.v1beta3.ts create mode 100644 ts/src/generated/index.v1beta4.ts create mode 100644 ts/src/generated/index.v1beta5.ts create mode 100644 ts/src/generated/index.v2beta3.ts delete mode 100644 ts/src/patch/cosmos/base/v1beta1/coin.spec.ts delete mode 100644 ts/src/patch/cosmos/base/v1beta1/coin.ts diff --git a/buf.gen.ts.yaml b/buf.gen.ts.yaml index cd2f4c0f..27f2fd29 100644 --- a/buf.gen.ts.yaml +++ b/buf.gen.ts.yaml @@ -4,8 +4,8 @@ plugins: strategy: all path: ./ts/node_modules/.bin/protoc-gen-ts_proto out: ./ts/src/generated - opt: "esModuleInterop=true,forceLong=long,outputTypeRegistry=true,useExactTypes=false,outputIndex=true" + opt: "esModuleInterop=true,forceLong=long,outputTypeRegistry=true,useExactTypes=false,exportCommonSymbols=false" - name: grpc-gateway-ts path: ./ts/node_modules/.bin/protoc-gen-ts_proto out: ./.cache/tmp/ts/generated-grpc-js - opt: "esModuleInterop=true,forceLong=long,outputTypeRegistry=true,useExactTypes=false,outputServices=grpc-js" \ No newline at end of file + opt: "esModuleInterop=true,forceLong=long,useExactTypes=false,exportCommonSymbols=false,outputServices=grpc-js" \ No newline at end of file diff --git a/docs/proto/node.md b/docs/proto/node.md index 95773ac1..ca423fdd 100644 --- a/docs/proto/node.md +++ b/docs/proto/node.md @@ -1627,7 +1627,7 @@ the granter's account for a deployment. ### MsgDepositDeploymentResponse - MsgCreateDeploymentResponse defines the Msg/CreateDeployment response type. + MsgDepositDeploymentResponse defines response type for the MsgDepositDeployment. diff --git a/docs/swagger-ui/swagger.yaml b/docs/swagger-ui/swagger.yaml index ddc9c451..2c77d516 100644 --- a/docs/swagger-ui/swagger.yaml +++ b/docs/swagger-ui/swagger.yaml @@ -43721,8 +43721,8 @@ definitions: akash.deployment.v1.MsgDepositDeploymentResponse: type: object description: >- - MsgCreateDeploymentResponse defines the Msg/CreateDeployment response - type. + MsgDepositDeploymentResponse defines response type for the + MsgDepositDeployment. akash.deployment.v1beta4.MsgCloseDeploymentResponse: type: object description: MsgCloseDeploymentResponse defines the Msg/CloseDeployment response type. diff --git a/go/node/deployment/v1/msg.pb.go b/go/node/deployment/v1/msg.pb.go index 8c29710b..1121fe06 100644 --- a/go/node/deployment/v1/msg.pb.go +++ b/go/node/deployment/v1/msg.pb.go @@ -87,7 +87,7 @@ func (m *MsgDepositDeployment) GetDepositor() string { return "" } -// MsgCreateDeploymentResponse defines the Msg/CreateDeployment response type. +// MsgDepositDeploymentResponse defines response type for the MsgDepositDeployment. type MsgDepositDeploymentResponse struct { } diff --git a/make/test.mk b/make/test.mk index d9b6f0bc..379accce 100644 --- a/make/test.mk +++ b/make/test.mk @@ -34,7 +34,7 @@ test-ts: $(AKASH_TS_NODE_MODULES) .PHONY: test-coverage-ts test-coverage-ts: $(AKASH_TS_NODE_MODULES) - cd $(TS_ROOT) && npm run test:cov + cd $(TS_ROOT) && npm run test:ci:cov .PHONY: test-go test-go: export GO111MODULE := $(GO111MODULE) diff --git a/ts/package.json b/ts/package.json index b9a42de1..d4a9763a 100644 --- a/ts/package.json +++ b/ts/package.json @@ -14,11 +14,13 @@ "types": "dist/index.d.ts", "scripts": { "build": "rimraf dist && tsc -p tsconfig.build.json && npm run format", - "postbuild": "script/generate-exports.js", + "postbuild": "script/generate-exports.js && script/generate-exports.js", "format": "prettier --write \"$AKASH_TS_ROOT/**/*.{js,jsx,ts,tsx,css,json}\" --config ./.prettierrc --log-level silent", "lint": "eslint src", "lint:fix": "npm run lint -- --fix", "test": "jest --selectProjects unit functional", + "test:ci": "echo \"No tests present...\"", + "test:ci:cov": "echo \"No tests present...\"", "test:cov": "jest --selectProjects unit functional --coverage", "test:functional": "jest --selectProjects functional", "test:functional:cov": "jest --selectProjects functional --coverage", @@ -65,84 +67,5 @@ }, "peerDependencies": { "@grpc/grpc-js": "^1.10.6" - }, - "exports": { - "./": "./dist/index.js", - "./typeRegistry": "./dist/generated/typeRegistry.js", - "./akash/deployment/v1beta3/query": "./dist/generated/akash/deployment/v1beta3/query.js", - "./deprecated/akash/cert/v1beta1": "./dist/deprecated/index.akash.cert.v1beta1.js", - "./deprecated/akash/market/v1beta1": "./dist/deprecated/index.akash.market.v1beta1.js", - "./v1beta1": "./dist/index.v1beta1.js", - "./v1beta2": "./dist/index.v1beta2.js", - "./v1beta3": "./dist/index.v1beta3.js", - "./v1beta4": "./dist/index.v1beta4.js", - "./akash/audit": "./dist/generated/index.akash.audit.js", - "./akash/audit/v1": "./dist/generated/index.akash.audit.v1.js", - "./akash/audit/v1/grpc-js": "./dist/generated/index.akash.audit.v1.grpc-js.js", - "./akash/base/attributes": "./dist/generated/index.akash.base.attributes.js", - "./akash/base/attributes/v1": "./dist/generated/index.akash.base.attributes.v1.js", - "./akash/base": "./dist/generated/index.akash.base.js", - "./akash/base/resources": "./dist/generated/index.akash.base.resources.js", - "./akash/base/resources/v1beta4": "./dist/generated/index.akash.base.resources.v1beta4.js", - "./akash/cert": "./dist/generated/index.akash.cert.js", - "./akash/cert/v1": "./dist/generated/index.akash.cert.v1.js", - "./akash/cert/v1/grpc-js": "./dist/generated/index.akash.cert.v1.grpc-js.js", - "./akash": "./dist/generated/index.akash.js", - "./akash/deployment": "./dist/generated/index.akash.deployment.js", - "./akash/deployment/v1": "./dist/generated/index.akash.deployment.v1.js", - "./akash/deployment/v1beta4": "./dist/generated/index.akash.deployment.v1beta4.js", - "./akash/deployment/v1beta4/grpc-js": "./dist/generated/index.akash.deployment.v1beta4.grpc-js.js", - "./akash/discovery": "./dist/generated/index.akash.discovery.js", - "./akash/discovery/v1": "./dist/generated/index.akash.discovery.v1.js", - "./akash/escrow": "./dist/generated/index.akash.escrow.js", - "./akash/escrow/v1": "./dist/generated/index.akash.escrow.v1.js", - "./akash/gov": "./dist/generated/index.akash.gov.js", - "./akash/gov/v1beta3": "./dist/generated/index.akash.gov.v1beta3.js", - "./akash/inflation": "./dist/generated/index.akash.inflation.js", - "./akash/inflation/v1beta2": "./dist/generated/index.akash.inflation.v1beta2.js", - "./akash/inflation/v1beta3": "./dist/generated/index.akash.inflation.v1beta3.js", - "./akash/inventory": "./dist/generated/index.akash.inventory.js", - "./akash/inventory/v1": "./dist/generated/index.akash.inventory.v1.js", - "./akash/inventory/v1/grpc-js": "./dist/generated/index.akash.inventory.v1.grpc-js.js", - "./akash/manifest": "./dist/generated/index.akash.manifest.js", - "./akash/manifest/v2beta3": "./dist/generated/index.akash.manifest.v2beta3.js", - "./akash/manifest/v2beta3/grpc-js": "./dist/generated/index.akash.manifest.v2beta3.grpc-js.js", - "./akash/market": "./dist/generated/index.akash.market.js", - "./akash/market/v1": "./dist/generated/index.akash.market.v1.js", - "./akash/market/v1beta5": "./dist/generated/index.akash.market.v1beta5.js", - "./akash/market/v1beta5/grpc-js": "./dist/generated/index.akash.market.v1beta5.grpc-js.js", - "./akash/provider": "./dist/generated/index.akash.provider.js", - "./akash/provider/lease": "./dist/generated/index.akash.provider.lease.js", - "./akash/provider/lease/v1": "./dist/generated/index.akash.provider.lease.v1.js", - "./akash/provider/lease/v1/grpc-js": "./dist/generated/index.akash.provider.lease.v1.grpc-js.js", - "./akash/provider/v1": "./dist/generated/index.akash.provider.v1.js", - "./akash/provider/v1/grpc-js": "./dist/generated/index.akash.provider.v1.grpc-js.js", - "./akash/provider/v1beta4": "./dist/generated/index.akash.provider.v1beta4.js", - "./akash/provider/v1beta4/grpc-js": "./dist/generated/index.akash.provider.v1beta4.grpc-js.js", - "./akash/staking": "./dist/generated/index.akash.staking.js", - "./akash/staking/v1beta3": "./dist/generated/index.akash.staking.v1beta3.js", - "./akash/staking/v1beta3/grpc-js": "./dist/generated/index.akash.staking.v1beta3.grpc-js.js", - "./akash/take": "./dist/generated/index.akash.take.js", - "./akash/take/v1": "./dist/generated/index.akash.take.v1.js", - "./akash/take/v1/grpc-js": "./dist/generated/index.akash.take.v1.grpc-js.js", - "./amino": "./dist/generated/index.amino.js", - "./cosmos/base": "./dist/generated/index.cosmos.base.js", - "./cosmos/base/query": "./dist/generated/index.cosmos.base.query.js", - "./cosmos/base/query/v1beta1": "./dist/generated/index.cosmos.base.query.v1beta1.js", - "./cosmos/base/v1beta1": "./dist/generated/index.cosmos.base.v1beta1.js", - "./cosmos": "./dist/generated/index.cosmos.js", - "./cosmos/msg": "./dist/generated/index.cosmos.msg.js", - "./cosmos/msg/v1": "./dist/generated/index.cosmos.msg.v1.js", - "./cosmos_proto": "./dist/generated/index.cosmos_proto.js", - "./gogoproto": "./dist/generated/index.gogoproto.js", - "./google/api": "./dist/generated/index.google.api.js", - "./google": "./dist/generated/index.google.js", - "./google/protobuf": "./dist/generated/index.google.protobuf.js", - "./k8s": "./dist/generated/index.k8s.js", - "./k8s/io/apimachinery": "./dist/generated/index.k8s.io.apimachinery.js", - "./k8s/io/apimachinery/pkg/api": "./dist/generated/index.k8s.io.apimachinery.pkg.api.js", - "./k8s/io/apimachinery/pkg/api/resource": "./dist/generated/index.k8s.io.apimachinery.pkg.api.resource.js", - "./k8s/io/apimachinery/pkg": "./dist/generated/index.k8s.io.apimachinery.pkg.js", - "./k8s/io": "./dist/generated/index.k8s.io.js" } } \ No newline at end of file diff --git a/ts/script/generate-exports.js b/ts/script/generate-exports.js index a2f828f8..0101e65c 100755 --- a/ts/script/generate-exports.js +++ b/ts/script/generate-exports.js @@ -4,7 +4,7 @@ const fs = require("fs"); const path = require("path"); const staticExports = require("../static-exports.json"); -const distDir = path.resolve(__dirname, "../dist/generated"); +const distDir = path.resolve(__dirname, "../dist"); const files = fs.readdirSync(distDir); const paths = files.reduce((acc, file) => { const match = file.match(/index.(.*)\.d\.ts/); @@ -14,7 +14,7 @@ const paths = files.reduce((acc, file) => { const slashedPath = dottedPath.replace(/\./g, "/"); const resolvedPath = fs.existsSync(`./dist/patch/index.${dottedPath}.js`) ? `./dist/patch/index.${dottedPath}` - : `./dist/generated/index.${dottedPath}`; + : `./dist/index.${dottedPath}`; acc.tsconfig[`@akashnetwork/akash-api/${slashedPath}`] = [resolvedPath]; acc.package[`./${slashedPath}`] = `${resolvedPath}.js`; diff --git a/ts/script/generate-index-files.js b/ts/script/generate-index-files.js new file mode 100755 index 00000000..c1abf031 --- /dev/null +++ b/ts/script/generate-index-files.js @@ -0,0 +1,78 @@ +#!/usr/bin/env node + +const fs = require("fs/promises"); +const path = require("path"); + +async function getAllPaths(dir) { + let results = []; + + const entries = await fs.readdir(dir, { withFileTypes: true }); + + for (const entry of entries) { + const fullPath = path.join(dir, entry.name); + if (entry.isDirectory()) { + const subEntries = await getAllPaths(fullPath); + results = results.concat(subEntries); + } else { + results.push(fullPath); + } + } + + return results; +} + +const EXCLUSIONS = ["genesis", "params", "service", "query"]; + +(async () => { + const directory = path.resolve(__dirname, "../src/generated"); + const allPaths = await getAllPaths(directory); + const root = `${process.cwd()}/ts/src/generated/`; + const nsWithExports = allPaths + .filter((path) => !path.endsWith("d.ts") && path.endsWith(".ts")) + .reduce((acc, path) => { + const relativePath = path.replace(root, "").replace(".ts", ""); + const pathParts = relativePath.split("/"); + const [fileName] = pathParts.splice(pathParts.length - 1, 1); + + const ns = pathParts.join("."); + + if (!ns || !ns.includes("akash")) { + return acc; + } + + if (!acc[ns]) { + acc[ns] = []; + } + + acc[ns].push(relativePath); + + const version = pathParts[pathParts.length - 1]; + + if (EXCLUSIONS.includes(fileName)) { + return acc; + } + + if (!acc[version]) { + acc[version] = []; + } + + acc[version].push(relativePath); + + return acc; + }, {}); + + const namespaces = Object.keys(nsWithExports); + + namespaces.forEach((ns) => { + const nsExports = nsWithExports[ns]; + const content = nsExports.reduce((acc, file) => { + return `${acc}export * from "./${file}";\n`; + }, ""); + + fs.writeFile( + path.resolve(__dirname, `../src/generated/index.${ns}.ts`), + content, + "utf8", + ); + }); +})(); diff --git a/ts/src/generated/akash/audit/v1/service.grpc-js.ts b/ts/src/generated/akash/audit/v1/service.grpc-js.ts index 87294ba4..c0fa3bed 100644 --- a/ts/src/generated/akash/audit/v1/service.grpc-js.ts +++ b/ts/src/generated/akash/audit/v1/service.grpc-js.ts @@ -26,8 +26,6 @@ import { MsgSignProviderAttributesResponse, } from "./msg"; -export const protobufPackage = "akash.audit.v1"; - /** Msg defines the provider Msg service */ export type MsgService = typeof MsgService; export const MsgService = { diff --git a/ts/src/generated/akash/cert/v1/service.grpc-js.ts b/ts/src/generated/akash/cert/v1/service.grpc-js.ts index 7bc62e03..c7d0617b 100644 --- a/ts/src/generated/akash/cert/v1/service.grpc-js.ts +++ b/ts/src/generated/akash/cert/v1/service.grpc-js.ts @@ -26,8 +26,6 @@ import { MsgRevokeCertificateResponse, } from "./msg"; -export const protobufPackage = "akash.cert.v1"; - /** Msg defines the provider Msg service */ export type MsgService = typeof MsgService; export const MsgService = { diff --git a/ts/src/generated/akash/deployment/v1/msg.ts b/ts/src/generated/akash/deployment/v1/msg.ts index 1fd619db..c2fe87d5 100644 --- a/ts/src/generated/akash/deployment/v1/msg.ts +++ b/ts/src/generated/akash/deployment/v1/msg.ts @@ -20,7 +20,7 @@ export interface MsgDepositDeployment { depositor: string; } -/** MsgCreateDeploymentResponse defines the Msg/CreateDeployment response type. */ +/** MsgDepositDeploymentResponse defines response type for the MsgDepositDeployment. */ export interface MsgDepositDeploymentResponse { $type: "akash.deployment.v1.MsgDepositDeploymentResponse"; } diff --git a/ts/src/generated/akash/deployment/v1beta4/service.grpc-js.ts b/ts/src/generated/akash/deployment/v1beta4/service.grpc-js.ts index d5ef0da3..233f1f17 100644 --- a/ts/src/generated/akash/deployment/v1beta4/service.grpc-js.ts +++ b/ts/src/generated/akash/deployment/v1beta4/service.grpc-js.ts @@ -38,8 +38,6 @@ import { } from "./groupmsg"; import { MsgUpdateParams, MsgUpdateParamsResponse } from "./paramsmsg"; -export const protobufPackage = "akash.deployment.v1beta4"; - /** Msg defines the x/deployment Msg service. */ export type MsgService = typeof MsgService; export const MsgService = { diff --git a/ts/src/generated/akash/inventory/v1/service.grpc-js.ts b/ts/src/generated/akash/inventory/v1/service.grpc-js.ts index e62058ec..9b8d43ec 100644 --- a/ts/src/generated/akash/inventory/v1/service.grpc-js.ts +++ b/ts/src/generated/akash/inventory/v1/service.grpc-js.ts @@ -25,8 +25,6 @@ import { Empty } from "../../../google/protobuf/empty"; import { Cluster } from "./cluster"; import { Node } from "./node"; -export const protobufPackage = "akash.inventory.v1"; - /** NodeRPC defines the RPC server of node */ export type NodeRPCService = typeof NodeRPCService; export const NodeRPCService = { diff --git a/ts/src/generated/akash/manifest/v2beta3/service.grpc-js.ts b/ts/src/generated/akash/manifest/v2beta3/service.grpc-js.ts index 30226465..b2ea1c13 100644 --- a/ts/src/generated/akash/manifest/v2beta3/service.grpc-js.ts +++ b/ts/src/generated/akash/manifest/v2beta3/service.grpc-js.ts @@ -7,15 +7,11 @@ /* eslint-disable */ import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire"; import Long from "long"; -import { messageTypeRegistry } from "../../../typeRegistry"; import { Resources } from "../../base/resources/v1beta4/resources"; import { ServiceExpose } from "./serviceexpose"; -export const protobufPackage = "akash.manifest.v2beta3"; - /** StorageParams */ export interface StorageParams { - $type: "akash.manifest.v2beta3.StorageParams"; name: string; mount: string; readOnly: boolean; @@ -23,14 +19,12 @@ export interface StorageParams { /** ServiceParams */ export interface ServiceParams { - $type: "akash.manifest.v2beta3.ServiceParams"; storage: StorageParams[]; credentials: ImageCredentials | undefined; } /** Credentials to fetch image from registry */ export interface ImageCredentials { - $type: "akash.manifest.v2beta3.ImageCredentials"; host: string; email: string; username: string; @@ -39,7 +33,6 @@ export interface ImageCredentials { /** Service stores name, image, args, env, unit, count and expose list of service */ export interface Service { - $type: "akash.manifest.v2beta3.Service"; name: string; image: string; command: string[]; @@ -53,20 +46,10 @@ export interface Service { } function createBaseStorageParams(): StorageParams { - return { - $type: "akash.manifest.v2beta3.StorageParams", - name: "", - mount: "", - readOnly: false, - }; + return { name: "", mount: "", readOnly: false }; } -export const StorageParams: MessageFns< - StorageParams, - "akash.manifest.v2beta3.StorageParams" -> = { - $type: "akash.manifest.v2beta3.StorageParams" as const, - +export const StorageParams: MessageFns = { encode( message: StorageParams, writer: BinaryWriter = new BinaryWriter(), @@ -123,7 +106,6 @@ export const StorageParams: MessageFns< fromJSON(object: any): StorageParams { return { - $type: StorageParams.$type, name: isSet(object.name) ? globalThis.String(object.name) : "", mount: isSet(object.mount) ? globalThis.String(object.mount) : "", readOnly: isSet(object.readOnly) @@ -158,22 +140,11 @@ export const StorageParams: MessageFns< }, }; -messageTypeRegistry.set(StorageParams.$type, StorageParams); - function createBaseServiceParams(): ServiceParams { - return { - $type: "akash.manifest.v2beta3.ServiceParams", - storage: [], - credentials: undefined, - }; + return { storage: [], credentials: undefined }; } -export const ServiceParams: MessageFns< - ServiceParams, - "akash.manifest.v2beta3.ServiceParams" -> = { - $type: "akash.manifest.v2beta3.ServiceParams" as const, - +export const ServiceParams: MessageFns = { encode( message: ServiceParams, writer: BinaryWriter = new BinaryWriter(), @@ -226,7 +197,6 @@ export const ServiceParams: MessageFns< fromJSON(object: any): ServiceParams { return { - $type: ServiceParams.$type, storage: globalThis.Array.isArray(object?.storage) ? object.storage.map((e: any) => StorageParams.fromJSON(e)) : [], @@ -262,24 +232,11 @@ export const ServiceParams: MessageFns< }, }; -messageTypeRegistry.set(ServiceParams.$type, ServiceParams); - function createBaseImageCredentials(): ImageCredentials { - return { - $type: "akash.manifest.v2beta3.ImageCredentials", - host: "", - email: "", - username: "", - password: "", - }; + return { host: "", email: "", username: "", password: "" }; } -export const ImageCredentials: MessageFns< - ImageCredentials, - "akash.manifest.v2beta3.ImageCredentials" -> = { - $type: "akash.manifest.v2beta3.ImageCredentials" as const, - +export const ImageCredentials: MessageFns = { encode( message: ImageCredentials, writer: BinaryWriter = new BinaryWriter(), @@ -346,7 +303,6 @@ export const ImageCredentials: MessageFns< fromJSON(object: any): ImageCredentials { return { - $type: ImageCredentials.$type, host: isSet(object.host) ? globalThis.String(object.host) : "", email: isSet(object.email) ? globalThis.String(object.email) : "", username: isSet(object.username) @@ -388,11 +344,8 @@ export const ImageCredentials: MessageFns< }, }; -messageTypeRegistry.set(ImageCredentials.$type, ImageCredentials); - function createBaseService(): Service { return { - $type: "akash.manifest.v2beta3.Service", name: "", image: "", command: [], @@ -406,9 +359,7 @@ function createBaseService(): Service { }; } -export const Service: MessageFns = { - $type: "akash.manifest.v2beta3.Service" as const, - +export const Service: MessageFns = { encode( message: Service, writer: BinaryWriter = new BinaryWriter(), @@ -541,7 +492,6 @@ export const Service: MessageFns = { fromJSON(object: any): Service { return { - $type: Service.$type, name: isSet(object.name) ? globalThis.String(object.name) : "", image: isSet(object.image) ? globalThis.String(object.image) : "", command: globalThis.Array.isArray(object?.command) @@ -633,8 +583,6 @@ export const Service: MessageFns = { }, }; -messageTypeRegistry.set(Service.$type, Service); - type Builtin = | Date | Function @@ -644,7 +592,7 @@ type Builtin = | boolean | undefined; -export type DeepPartial = T extends Builtin +type DeepPartial = T extends Builtin ? T : T extends Long ? string | number | Long @@ -653,15 +601,14 @@ export type DeepPartial = T extends Builtin : T extends ReadonlyArray ? ReadonlyArray> : T extends {} - ? { [K in Exclude]?: DeepPartial } + ? { [K in keyof T]?: DeepPartial } : Partial; function isSet(value: any): boolean { return value !== null && value !== undefined; } -export interface MessageFns { - readonly $type: V; +interface MessageFns { encode(message: T, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): T; fromJSON(object: any): T; diff --git a/ts/src/generated/akash/market/v1beta5/service.grpc-js.ts b/ts/src/generated/akash/market/v1beta5/service.grpc-js.ts index 352c2497..5f475147 100644 --- a/ts/src/generated/akash/market/v1beta5/service.grpc-js.ts +++ b/ts/src/generated/akash/market/v1beta5/service.grpc-js.ts @@ -35,8 +35,6 @@ import { } from "./leasemsg"; import { MsgUpdateParams, MsgUpdateParamsResponse } from "./paramsmsg"; -export const protobufPackage = "akash.market.v1beta5"; - /** Msg defines the market Msg service */ export type MsgService = typeof MsgService; export const MsgService = { diff --git a/ts/src/generated/akash/provider/lease/v1/service.grpc-js.ts b/ts/src/generated/akash/provider/lease/v1/service.grpc-js.ts index ff30aab3..5a0a4bdd 100644 --- a/ts/src/generated/akash/provider/lease/v1/service.grpc-js.ts +++ b/ts/src/generated/akash/provider/lease/v1/service.grpc-js.ts @@ -23,15 +23,11 @@ import type { UntypedServiceImplementation, } from "@grpc/grpc-js"; import Long from "long"; -import { messageTypeRegistry } from "../../../../typeRegistry"; import { Group } from "../../../manifest/v2beta3/group"; import { LeaseID } from "../../../market/v1/lease"; -export const protobufPackage = "akash.provider.lease.v1"; - /** LeaseServiceStatus */ export interface LeaseServiceStatus { - $type: "akash.provider.lease.v1.LeaseServiceStatus"; available: number; total: number; uris: string[]; @@ -44,7 +40,6 @@ export interface LeaseServiceStatus { /** LeaseIPStatus */ export interface LeaseIPStatus { - $type: "akash.provider.lease.v1.LeaseIPStatus"; port: number; externalPort: number; protocol: string; @@ -53,7 +48,6 @@ export interface LeaseIPStatus { /** ForwarderPortStatus */ export interface ForwarderPortStatus { - $type: "akash.provider.lease.v1.ForwarderPortStatus"; host: string; port: number; externalPort: number; @@ -63,7 +57,6 @@ export interface ForwarderPortStatus { /** ServiceStatus */ export interface ServiceStatus { - $type: "akash.provider.lease.v1.ServiceStatus"; name: string; status: LeaseServiceStatus | undefined; ports: ForwarderPortStatus[]; @@ -72,58 +65,48 @@ export interface ServiceStatus { /** SendManifestRequest is request type for the SendManifest Providers RPC method */ export interface SendManifestRequest { - $type: "akash.provider.lease.v1.SendManifestRequest"; leaseId: LeaseID | undefined; manifest: Group[]; } /** SendManifestResponse is response type for the SendManifest Providers RPC method */ -export interface SendManifestResponse { - $type: "akash.provider.lease.v1.SendManifestResponse"; -} +export interface SendManifestResponse {} /** ServiceLogsRequest */ export interface ServiceLogsRequest { - $type: "akash.provider.lease.v1.ServiceLogsRequest"; leaseId: LeaseID | undefined; services: string[]; } /** ServiceLogs */ export interface ServiceLogs { - $type: "akash.provider.lease.v1.ServiceLogs"; name: string; logs: Uint8Array; } /** ServiceLogsResponse */ export interface ServiceLogsResponse { - $type: "akash.provider.lease.v1.ServiceLogsResponse"; services: ServiceLogs[]; } /** ShellRequest */ export interface ShellRequest { - $type: "akash.provider.lease.v1.ShellRequest"; leaseId: LeaseID | undefined; } /** ServiceStatusRequest */ export interface ServiceStatusRequest { - $type: "akash.provider.lease.v1.ServiceStatusRequest"; leaseId: LeaseID | undefined; services: string[]; } /** ServiceStatusResponse */ export interface ServiceStatusResponse { - $type: "akash.provider.lease.v1.ServiceStatusResponse"; services: ServiceStatus[]; } function createBaseLeaseServiceStatus(): LeaseServiceStatus { return { - $type: "akash.provider.lease.v1.LeaseServiceStatus", available: 0, total: 0, uris: [], @@ -135,12 +118,7 @@ function createBaseLeaseServiceStatus(): LeaseServiceStatus { }; } -export const LeaseServiceStatus: MessageFns< - LeaseServiceStatus, - "akash.provider.lease.v1.LeaseServiceStatus" -> = { - $type: "akash.provider.lease.v1.LeaseServiceStatus" as const, - +export const LeaseServiceStatus: MessageFns = { encode( message: LeaseServiceStatus, writer: BinaryWriter = new BinaryWriter(), @@ -252,7 +230,6 @@ export const LeaseServiceStatus: MessageFns< fromJSON(object: any): LeaseServiceStatus { return { - $type: LeaseServiceStatus.$type, available: isSet(object.available) ? globalThis.Number(object.available) : 0, @@ -328,24 +305,11 @@ export const LeaseServiceStatus: MessageFns< }, }; -messageTypeRegistry.set(LeaseServiceStatus.$type, LeaseServiceStatus); - function createBaseLeaseIPStatus(): LeaseIPStatus { - return { - $type: "akash.provider.lease.v1.LeaseIPStatus", - port: 0, - externalPort: 0, - protocol: "", - ip: "", - }; + return { port: 0, externalPort: 0, protocol: "", ip: "" }; } -export const LeaseIPStatus: MessageFns< - LeaseIPStatus, - "akash.provider.lease.v1.LeaseIPStatus" -> = { - $type: "akash.provider.lease.v1.LeaseIPStatus" as const, - +export const LeaseIPStatus: MessageFns = { encode( message: LeaseIPStatus, writer: BinaryWriter = new BinaryWriter(), @@ -412,7 +376,6 @@ export const LeaseIPStatus: MessageFns< fromJSON(object: any): LeaseIPStatus { return { - $type: LeaseIPStatus.$type, port: isSet(object.port) ? globalThis.Number(object.port) : 0, externalPort: isSet(object.externalPort) ? globalThis.Number(object.externalPort) @@ -454,25 +417,11 @@ export const LeaseIPStatus: MessageFns< }, }; -messageTypeRegistry.set(LeaseIPStatus.$type, LeaseIPStatus); - function createBaseForwarderPortStatus(): ForwarderPortStatus { - return { - $type: "akash.provider.lease.v1.ForwarderPortStatus", - host: "", - port: 0, - externalPort: 0, - proto: "", - name: "", - }; + return { host: "", port: 0, externalPort: 0, proto: "", name: "" }; } -export const ForwarderPortStatus: MessageFns< - ForwarderPortStatus, - "akash.provider.lease.v1.ForwarderPortStatus" -> = { - $type: "akash.provider.lease.v1.ForwarderPortStatus" as const, - +export const ForwarderPortStatus: MessageFns = { encode( message: ForwarderPortStatus, writer: BinaryWriter = new BinaryWriter(), @@ -552,7 +501,6 @@ export const ForwarderPortStatus: MessageFns< fromJSON(object: any): ForwarderPortStatus { return { - $type: ForwarderPortStatus.$type, host: isSet(object.host) ? globalThis.String(object.host) : "", port: isSet(object.port) ? globalThis.Number(object.port) : 0, externalPort: isSet(object.externalPort) @@ -597,24 +545,11 @@ export const ForwarderPortStatus: MessageFns< }, }; -messageTypeRegistry.set(ForwarderPortStatus.$type, ForwarderPortStatus); - function createBaseServiceStatus(): ServiceStatus { - return { - $type: "akash.provider.lease.v1.ServiceStatus", - name: "", - status: undefined, - ports: [], - ips: [], - }; + return { name: "", status: undefined, ports: [], ips: [] }; } -export const ServiceStatus: MessageFns< - ServiceStatus, - "akash.provider.lease.v1.ServiceStatus" -> = { - $type: "akash.provider.lease.v1.ServiceStatus" as const, - +export const ServiceStatus: MessageFns = { encode( message: ServiceStatus, writer: BinaryWriter = new BinaryWriter(), @@ -686,7 +621,6 @@ export const ServiceStatus: MessageFns< fromJSON(object: any): ServiceStatus { return { - $type: ServiceStatus.$type, name: isSet(object.name) ? globalThis.String(object.name) : "", status: isSet(object.status) ? LeaseServiceStatus.fromJSON(object.status) @@ -734,22 +668,11 @@ export const ServiceStatus: MessageFns< }, }; -messageTypeRegistry.set(ServiceStatus.$type, ServiceStatus); - function createBaseSendManifestRequest(): SendManifestRequest { - return { - $type: "akash.provider.lease.v1.SendManifestRequest", - leaseId: undefined, - manifest: [], - }; + return { leaseId: undefined, manifest: [] }; } -export const SendManifestRequest: MessageFns< - SendManifestRequest, - "akash.provider.lease.v1.SendManifestRequest" -> = { - $type: "akash.provider.lease.v1.SendManifestRequest" as const, - +export const SendManifestRequest: MessageFns = { encode( message: SendManifestRequest, writer: BinaryWriter = new BinaryWriter(), @@ -799,7 +722,6 @@ export const SendManifestRequest: MessageFns< fromJSON(object: any): SendManifestRequest { return { - $type: SendManifestRequest.$type, leaseId: isSet(object.leaseId) ? LeaseID.fromJSON(object.leaseId) : undefined, @@ -834,18 +756,11 @@ export const SendManifestRequest: MessageFns< }, }; -messageTypeRegistry.set(SendManifestRequest.$type, SendManifestRequest); - function createBaseSendManifestResponse(): SendManifestResponse { - return { $type: "akash.provider.lease.v1.SendManifestResponse" }; + return {}; } -export const SendManifestResponse: MessageFns< - SendManifestResponse, - "akash.provider.lease.v1.SendManifestResponse" -> = { - $type: "akash.provider.lease.v1.SendManifestResponse" as const, - +export const SendManifestResponse: MessageFns = { encode( _: SendManifestResponse, writer: BinaryWriter = new BinaryWriter(), @@ -874,7 +789,7 @@ export const SendManifestResponse: MessageFns< }, fromJSON(_: any): SendManifestResponse { - return { $type: SendManifestResponse.$type }; + return {}; }, toJSON(_: SendManifestResponse): unknown { @@ -891,22 +806,11 @@ export const SendManifestResponse: MessageFns< }, }; -messageTypeRegistry.set(SendManifestResponse.$type, SendManifestResponse); - function createBaseServiceLogsRequest(): ServiceLogsRequest { - return { - $type: "akash.provider.lease.v1.ServiceLogsRequest", - leaseId: undefined, - services: [], - }; + return { leaseId: undefined, services: [] }; } -export const ServiceLogsRequest: MessageFns< - ServiceLogsRequest, - "akash.provider.lease.v1.ServiceLogsRequest" -> = { - $type: "akash.provider.lease.v1.ServiceLogsRequest" as const, - +export const ServiceLogsRequest: MessageFns = { encode( message: ServiceLogsRequest, writer: BinaryWriter = new BinaryWriter(), @@ -956,7 +860,6 @@ export const ServiceLogsRequest: MessageFns< fromJSON(object: any): ServiceLogsRequest { return { - $type: ServiceLogsRequest.$type, leaseId: isSet(object.leaseId) ? LeaseID.fromJSON(object.leaseId) : undefined, @@ -991,22 +894,11 @@ export const ServiceLogsRequest: MessageFns< }, }; -messageTypeRegistry.set(ServiceLogsRequest.$type, ServiceLogsRequest); - function createBaseServiceLogs(): ServiceLogs { - return { - $type: "akash.provider.lease.v1.ServiceLogs", - name: "", - logs: new Uint8Array(0), - }; + return { name: "", logs: new Uint8Array(0) }; } -export const ServiceLogs: MessageFns< - ServiceLogs, - "akash.provider.lease.v1.ServiceLogs" -> = { - $type: "akash.provider.lease.v1.ServiceLogs" as const, - +export const ServiceLogs: MessageFns = { encode( message: ServiceLogs, writer: BinaryWriter = new BinaryWriter(), @@ -1053,7 +945,6 @@ export const ServiceLogs: MessageFns< fromJSON(object: any): ServiceLogs { return { - $type: ServiceLogs.$type, name: isSet(object.name) ? globalThis.String(object.name) : "", logs: isSet(object.logs) ? bytesFromBase64(object.logs) @@ -1083,18 +974,11 @@ export const ServiceLogs: MessageFns< }, }; -messageTypeRegistry.set(ServiceLogs.$type, ServiceLogs); - function createBaseServiceLogsResponse(): ServiceLogsResponse { - return { $type: "akash.provider.lease.v1.ServiceLogsResponse", services: [] }; + return { services: [] }; } -export const ServiceLogsResponse: MessageFns< - ServiceLogsResponse, - "akash.provider.lease.v1.ServiceLogsResponse" -> = { - $type: "akash.provider.lease.v1.ServiceLogsResponse" as const, - +export const ServiceLogsResponse: MessageFns = { encode( message: ServiceLogsResponse, writer: BinaryWriter = new BinaryWriter(), @@ -1134,7 +1018,6 @@ export const ServiceLogsResponse: MessageFns< fromJSON(object: any): ServiceLogsResponse { return { - $type: ServiceLogsResponse.$type, services: globalThis.Array.isArray(object?.services) ? object.services.map((e: any) => ServiceLogs.fromJSON(e)) : [], @@ -1160,18 +1043,11 @@ export const ServiceLogsResponse: MessageFns< }, }; -messageTypeRegistry.set(ServiceLogsResponse.$type, ServiceLogsResponse); - function createBaseShellRequest(): ShellRequest { - return { $type: "akash.provider.lease.v1.ShellRequest", leaseId: undefined }; + return { leaseId: undefined }; } -export const ShellRequest: MessageFns< - ShellRequest, - "akash.provider.lease.v1.ShellRequest" -> = { - $type: "akash.provider.lease.v1.ShellRequest" as const, - +export const ShellRequest: MessageFns = { encode( message: ShellRequest, writer: BinaryWriter = new BinaryWriter(), @@ -1208,7 +1084,6 @@ export const ShellRequest: MessageFns< fromJSON(object: any): ShellRequest { return { - $type: ShellRequest.$type, leaseId: isSet(object.leaseId) ? LeaseID.fromJSON(object.leaseId) : undefined, @@ -1236,22 +1111,11 @@ export const ShellRequest: MessageFns< }, }; -messageTypeRegistry.set(ShellRequest.$type, ShellRequest); - function createBaseServiceStatusRequest(): ServiceStatusRequest { - return { - $type: "akash.provider.lease.v1.ServiceStatusRequest", - leaseId: undefined, - services: [], - }; + return { leaseId: undefined, services: [] }; } -export const ServiceStatusRequest: MessageFns< - ServiceStatusRequest, - "akash.provider.lease.v1.ServiceStatusRequest" -> = { - $type: "akash.provider.lease.v1.ServiceStatusRequest" as const, - +export const ServiceStatusRequest: MessageFns = { encode( message: ServiceStatusRequest, writer: BinaryWriter = new BinaryWriter(), @@ -1301,7 +1165,6 @@ export const ServiceStatusRequest: MessageFns< fromJSON(object: any): ServiceStatusRequest { return { - $type: ServiceStatusRequest.$type, leaseId: isSet(object.leaseId) ? LeaseID.fromJSON(object.leaseId) : undefined, @@ -1336,21 +1199,11 @@ export const ServiceStatusRequest: MessageFns< }, }; -messageTypeRegistry.set(ServiceStatusRequest.$type, ServiceStatusRequest); - function createBaseServiceStatusResponse(): ServiceStatusResponse { - return { - $type: "akash.provider.lease.v1.ServiceStatusResponse", - services: [], - }; + return { services: [] }; } -export const ServiceStatusResponse: MessageFns< - ServiceStatusResponse, - "akash.provider.lease.v1.ServiceStatusResponse" -> = { - $type: "akash.provider.lease.v1.ServiceStatusResponse" as const, - +export const ServiceStatusResponse: MessageFns = { encode( message: ServiceStatusResponse, writer: BinaryWriter = new BinaryWriter(), @@ -1390,7 +1243,6 @@ export const ServiceStatusResponse: MessageFns< fromJSON(object: any): ServiceStatusResponse { return { - $type: ServiceStatusResponse.$type, services: globalThis.Array.isArray(object?.services) ? object.services.map((e: any) => ServiceStatus.fromJSON(e)) : [], @@ -1418,8 +1270,6 @@ export const ServiceStatusResponse: MessageFns< }, }; -messageTypeRegistry.set(ServiceStatusResponse.$type, ServiceStatusResponse); - /** LeaseRPC defines the RPC server for lease control */ export type LeaseRPCService = typeof LeaseRPCService; export const LeaseRPCService = { @@ -1697,7 +1547,7 @@ type Builtin = | boolean | undefined; -export type DeepPartial = T extends Builtin +type DeepPartial = T extends Builtin ? T : T extends Long ? string | number | Long @@ -1706,15 +1556,14 @@ export type DeepPartial = T extends Builtin : T extends ReadonlyArray ? ReadonlyArray> : T extends {} - ? { [K in Exclude]?: DeepPartial } + ? { [K in keyof T]?: DeepPartial } : Partial; function isSet(value: any): boolean { return value !== null && value !== undefined; } -export interface MessageFns { - readonly $type: V; +interface MessageFns { encode(message: T, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): T; fromJSON(object: any): T; diff --git a/ts/src/generated/akash/provider/v1/service.grpc-js.ts b/ts/src/generated/akash/provider/v1/service.grpc-js.ts index d63c70db..2791a3e0 100644 --- a/ts/src/generated/akash/provider/v1/service.grpc-js.ts +++ b/ts/src/generated/akash/provider/v1/service.grpc-js.ts @@ -24,8 +24,6 @@ import type { import { Empty } from "../../../google/protobuf/empty"; import { Status } from "./status"; -export const protobufPackage = "akash.provider.v1"; - /** ProviderRPC defines the RPC server for provider */ export type ProviderRPCService = typeof ProviderRPCService; export const ProviderRPCService = { diff --git a/ts/src/generated/akash/provider/v1beta4/service.grpc-js.ts b/ts/src/generated/akash/provider/v1beta4/service.grpc-js.ts index b6dd0c0d..d26d1a2b 100644 --- a/ts/src/generated/akash/provider/v1beta4/service.grpc-js.ts +++ b/ts/src/generated/akash/provider/v1beta4/service.grpc-js.ts @@ -28,8 +28,6 @@ import { MsgUpdateProviderResponse, } from "./msg"; -export const protobufPackage = "akash.provider.v1beta4"; - /** Msg defines the provider Msg service */ export type MsgService = typeof MsgService; export const MsgService = { diff --git a/ts/src/generated/akash/staking/v1beta3/service.grpc-js.ts b/ts/src/generated/akash/staking/v1beta3/service.grpc-js.ts index aa657a32..3b72d511 100644 --- a/ts/src/generated/akash/staking/v1beta3/service.grpc-js.ts +++ b/ts/src/generated/akash/staking/v1beta3/service.grpc-js.ts @@ -21,8 +21,6 @@ import type { } from "@grpc/grpc-js"; import { MsgUpdateParams, MsgUpdateParamsResponse } from "./paramsmsg"; -export const protobufPackage = "akash.staking.v1beta3"; - /** Msg defines the market Msg service */ export type MsgService = typeof MsgService; export const MsgService = { diff --git a/ts/src/generated/akash/take/v1/service.grpc-js.ts b/ts/src/generated/akash/take/v1/service.grpc-js.ts index 3f99b5be..9101c72f 100644 --- a/ts/src/generated/akash/take/v1/service.grpc-js.ts +++ b/ts/src/generated/akash/take/v1/service.grpc-js.ts @@ -21,8 +21,6 @@ import type { } from "@grpc/grpc-js"; import { MsgUpdateParams, MsgUpdateParamsResponse } from "./paramsmsg"; -export const protobufPackage = "akash.take.v1"; - /** Msg defines the market Msg service */ export type MsgService = typeof MsgService; export const MsgService = { diff --git a/ts/src/generated/cosmos/base/v1beta1/coin.original.ts b/ts/src/generated/cosmos/base/v1beta1/coin.original.ts deleted file mode 100644 index e022cb50..00000000 --- a/ts/src/generated/cosmos/base/v1beta1/coin.original.ts +++ /dev/null @@ -1,383 +0,0 @@ -// Code generated by protoc-gen-ts_proto. DO NOT EDIT. -// versions: -// protoc-gen-ts_proto v2.2.0 -// protoc unknown -// source: cosmos/base/v1beta1/coin.proto - -/* eslint-disable */ -import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire"; -import Long from "long"; -import { messageTypeRegistry } from "../../../typeRegistry"; - -/** - * 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. - */ -export interface Coin { - $type: "cosmos.base.v1beta1.Coin"; - denom: string; - amount: string; -} - -/** - * 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. - */ -export interface DecCoin { - $type: "cosmos.base.v1beta1.DecCoin"; - denom: string; - amount: string; -} - -/** IntProto defines a Protobuf wrapper around an Int object. */ -export interface IntProto { - $type: "cosmos.base.v1beta1.IntProto"; - int: string; -} - -/** DecProto defines a Protobuf wrapper around a Dec object. */ -export interface DecProto { - $type: "cosmos.base.v1beta1.DecProto"; - dec: string; -} - -function createBaseCoin(): Coin { - return { $type: "cosmos.base.v1beta1.Coin", denom: "", amount: "" }; -} - -export const Coin: MessageFns = { - $type: "cosmos.base.v1beta1.Coin" as const, - - encode( - message: Coin, - writer: BinaryWriter = new BinaryWriter(), - ): BinaryWriter { - if (message.denom !== "") { - writer.uint32(10).string(message.denom); - } - if (message.amount !== "") { - writer.uint32(18).string(message.amount); - } - return writer; - }, - - decode(input: BinaryReader | Uint8Array, length?: number): Coin { - const reader = - input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseCoin(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (tag !== 10) { - break; - } - - message.denom = reader.string(); - continue; - case 2: - if (tag !== 18) { - break; - } - - message.amount = reader.string(); - continue; - } - if ((tag & 7) === 4 || tag === 0) { - break; - } - reader.skip(tag & 7); - } - return message; - }, - - fromJSON(object: any): Coin { - return { - $type: Coin.$type, - denom: isSet(object.denom) ? globalThis.String(object.denom) : "", - amount: isSet(object.amount) ? globalThis.String(object.amount) : "", - }; - }, - - toJSON(message: Coin): unknown { - const obj: any = {}; - if (message.denom !== "") { - obj.denom = message.denom; - } - if (message.amount !== "") { - obj.amount = message.amount; - } - return obj; - }, - - create(base?: DeepPartial): Coin { - return Coin.fromPartial(base ?? {}); - }, - fromPartial(object: DeepPartial): Coin { - const message = createBaseCoin(); - message.denom = object.denom ?? ""; - message.amount = object.amount ?? ""; - return message; - }, -}; - -messageTypeRegistry.set(Coin.$type, Coin); - -function createBaseDecCoin(): DecCoin { - return { $type: "cosmos.base.v1beta1.DecCoin", denom: "", amount: "" }; -} - -export const DecCoin: MessageFns = { - $type: "cosmos.base.v1beta1.DecCoin" as const, - - encode( - message: DecCoin, - writer: BinaryWriter = new BinaryWriter(), - ): BinaryWriter { - if (message.denom !== "") { - writer.uint32(10).string(message.denom); - } - if (message.amount !== "") { - writer.uint32(18).string(message.amount); - } - return writer; - }, - - decode(input: BinaryReader | Uint8Array, length?: number): DecCoin { - const reader = - input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseDecCoin(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (tag !== 10) { - break; - } - - message.denom = reader.string(); - continue; - case 2: - if (tag !== 18) { - break; - } - - message.amount = reader.string(); - continue; - } - if ((tag & 7) === 4 || tag === 0) { - break; - } - reader.skip(tag & 7); - } - return message; - }, - - fromJSON(object: any): DecCoin { - return { - $type: DecCoin.$type, - denom: isSet(object.denom) ? globalThis.String(object.denom) : "", - amount: isSet(object.amount) ? globalThis.String(object.amount) : "", - }; - }, - - toJSON(message: DecCoin): unknown { - const obj: any = {}; - if (message.denom !== "") { - obj.denom = message.denom; - } - if (message.amount !== "") { - obj.amount = message.amount; - } - return obj; - }, - - create(base?: DeepPartial): DecCoin { - return DecCoin.fromPartial(base ?? {}); - }, - fromPartial(object: DeepPartial): DecCoin { - const message = createBaseDecCoin(); - message.denom = object.denom ?? ""; - message.amount = object.amount ?? ""; - return message; - }, -}; - -messageTypeRegistry.set(DecCoin.$type, DecCoin); - -function createBaseIntProto(): IntProto { - return { $type: "cosmos.base.v1beta1.IntProto", int: "" }; -} - -export const IntProto: MessageFns = { - $type: "cosmos.base.v1beta1.IntProto" as const, - - encode( - message: IntProto, - writer: BinaryWriter = new BinaryWriter(), - ): BinaryWriter { - if (message.int !== "") { - writer.uint32(10).string(message.int); - } - return writer; - }, - - decode(input: BinaryReader | Uint8Array, length?: number): IntProto { - const reader = - input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseIntProto(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (tag !== 10) { - break; - } - - message.int = reader.string(); - continue; - } - if ((tag & 7) === 4 || tag === 0) { - break; - } - reader.skip(tag & 7); - } - return message; - }, - - fromJSON(object: any): IntProto { - return { - $type: IntProto.$type, - int: isSet(object.int) ? globalThis.String(object.int) : "", - }; - }, - - toJSON(message: IntProto): unknown { - const obj: any = {}; - if (message.int !== "") { - obj.int = message.int; - } - return obj; - }, - - create(base?: DeepPartial): IntProto { - return IntProto.fromPartial(base ?? {}); - }, - fromPartial(object: DeepPartial): IntProto { - const message = createBaseIntProto(); - message.int = object.int ?? ""; - return message; - }, -}; - -messageTypeRegistry.set(IntProto.$type, IntProto); - -function createBaseDecProto(): DecProto { - return { $type: "cosmos.base.v1beta1.DecProto", dec: "" }; -} - -export const DecProto: MessageFns = { - $type: "cosmos.base.v1beta1.DecProto" as const, - - encode( - message: DecProto, - writer: BinaryWriter = new BinaryWriter(), - ): BinaryWriter { - if (message.dec !== "") { - writer.uint32(10).string(message.dec); - } - return writer; - }, - - decode(input: BinaryReader | Uint8Array, length?: number): DecProto { - const reader = - input instanceof BinaryReader ? input : new BinaryReader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseDecProto(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (tag !== 10) { - break; - } - - message.dec = reader.string(); - continue; - } - if ((tag & 7) === 4 || tag === 0) { - break; - } - reader.skip(tag & 7); - } - return message; - }, - - fromJSON(object: any): DecProto { - return { - $type: DecProto.$type, - dec: isSet(object.dec) ? globalThis.String(object.dec) : "", - }; - }, - - toJSON(message: DecProto): unknown { - const obj: any = {}; - if (message.dec !== "") { - obj.dec = message.dec; - } - return obj; - }, - - create(base?: DeepPartial): DecProto { - return DecProto.fromPartial(base ?? {}); - }, - fromPartial(object: DeepPartial): DecProto { - const message = createBaseDecProto(); - message.dec = object.dec ?? ""; - return message; - }, -}; - -messageTypeRegistry.set(DecProto.$type, DecProto); - -type Builtin = - | Date - | Function - | Uint8Array - | string - | number - | boolean - | undefined; - -type DeepPartial = T extends Builtin - ? T - : T extends Long - ? string | number | Long - : T extends globalThis.Array - ? globalThis.Array> - : T extends ReadonlyArray - ? ReadonlyArray> - : T extends {} - ? { [K in Exclude]?: DeepPartial } - : Partial; - -function isSet(value: any): boolean { - return value !== null && value !== undefined; -} - -interface MessageFns { - readonly $type: V; - encode(message: T, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): T; - fromJSON(object: any): T; - toJSON(message: T): unknown; - create(base?: DeepPartial): T; - fromPartial(object: DeepPartial): T; -} diff --git a/ts/src/generated/cosmos/base/v1beta1/coin.ts b/ts/src/generated/cosmos/base/v1beta1/coin.ts index 9dd5c450..e022cb50 100644 --- a/ts/src/generated/cosmos/base/v1beta1/coin.ts +++ b/ts/src/generated/cosmos/base/v1beta1/coin.ts @@ -1 +1,383 @@ -export * from "./coin.original"; +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v2.2.0 +// protoc unknown +// source: cosmos/base/v1beta1/coin.proto + +/* eslint-disable */ +import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire"; +import Long from "long"; +import { messageTypeRegistry } from "../../../typeRegistry"; + +/** + * 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. + */ +export interface Coin { + $type: "cosmos.base.v1beta1.Coin"; + denom: string; + amount: string; +} + +/** + * 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. + */ +export interface DecCoin { + $type: "cosmos.base.v1beta1.DecCoin"; + denom: string; + amount: string; +} + +/** IntProto defines a Protobuf wrapper around an Int object. */ +export interface IntProto { + $type: "cosmos.base.v1beta1.IntProto"; + int: string; +} + +/** DecProto defines a Protobuf wrapper around a Dec object. */ +export interface DecProto { + $type: "cosmos.base.v1beta1.DecProto"; + dec: string; +} + +function createBaseCoin(): Coin { + return { $type: "cosmos.base.v1beta1.Coin", denom: "", amount: "" }; +} + +export const Coin: MessageFns = { + $type: "cosmos.base.v1beta1.Coin" as const, + + encode( + message: Coin, + writer: BinaryWriter = new BinaryWriter(), + ): BinaryWriter { + if (message.denom !== "") { + writer.uint32(10).string(message.denom); + } + if (message.amount !== "") { + writer.uint32(18).string(message.amount); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): Coin { + const reader = + input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseCoin(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (tag !== 10) { + break; + } + + message.denom = reader.string(); + continue; + case 2: + if (tag !== 18) { + break; + } + + message.amount = reader.string(); + continue; + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): Coin { + return { + $type: Coin.$type, + denom: isSet(object.denom) ? globalThis.String(object.denom) : "", + amount: isSet(object.amount) ? globalThis.String(object.amount) : "", + }; + }, + + toJSON(message: Coin): unknown { + const obj: any = {}; + if (message.denom !== "") { + obj.denom = message.denom; + } + if (message.amount !== "") { + obj.amount = message.amount; + } + return obj; + }, + + create(base?: DeepPartial): Coin { + return Coin.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): Coin { + const message = createBaseCoin(); + message.denom = object.denom ?? ""; + message.amount = object.amount ?? ""; + return message; + }, +}; + +messageTypeRegistry.set(Coin.$type, Coin); + +function createBaseDecCoin(): DecCoin { + return { $type: "cosmos.base.v1beta1.DecCoin", denom: "", amount: "" }; +} + +export const DecCoin: MessageFns = { + $type: "cosmos.base.v1beta1.DecCoin" as const, + + encode( + message: DecCoin, + writer: BinaryWriter = new BinaryWriter(), + ): BinaryWriter { + if (message.denom !== "") { + writer.uint32(10).string(message.denom); + } + if (message.amount !== "") { + writer.uint32(18).string(message.amount); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): DecCoin { + const reader = + input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseDecCoin(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (tag !== 10) { + break; + } + + message.denom = reader.string(); + continue; + case 2: + if (tag !== 18) { + break; + } + + message.amount = reader.string(); + continue; + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): DecCoin { + return { + $type: DecCoin.$type, + denom: isSet(object.denom) ? globalThis.String(object.denom) : "", + amount: isSet(object.amount) ? globalThis.String(object.amount) : "", + }; + }, + + toJSON(message: DecCoin): unknown { + const obj: any = {}; + if (message.denom !== "") { + obj.denom = message.denom; + } + if (message.amount !== "") { + obj.amount = message.amount; + } + return obj; + }, + + create(base?: DeepPartial): DecCoin { + return DecCoin.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): DecCoin { + const message = createBaseDecCoin(); + message.denom = object.denom ?? ""; + message.amount = object.amount ?? ""; + return message; + }, +}; + +messageTypeRegistry.set(DecCoin.$type, DecCoin); + +function createBaseIntProto(): IntProto { + return { $type: "cosmos.base.v1beta1.IntProto", int: "" }; +} + +export const IntProto: MessageFns = { + $type: "cosmos.base.v1beta1.IntProto" as const, + + encode( + message: IntProto, + writer: BinaryWriter = new BinaryWriter(), + ): BinaryWriter { + if (message.int !== "") { + writer.uint32(10).string(message.int); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): IntProto { + const reader = + input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseIntProto(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (tag !== 10) { + break; + } + + message.int = reader.string(); + continue; + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): IntProto { + return { + $type: IntProto.$type, + int: isSet(object.int) ? globalThis.String(object.int) : "", + }; + }, + + toJSON(message: IntProto): unknown { + const obj: any = {}; + if (message.int !== "") { + obj.int = message.int; + } + return obj; + }, + + create(base?: DeepPartial): IntProto { + return IntProto.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): IntProto { + const message = createBaseIntProto(); + message.int = object.int ?? ""; + return message; + }, +}; + +messageTypeRegistry.set(IntProto.$type, IntProto); + +function createBaseDecProto(): DecProto { + return { $type: "cosmos.base.v1beta1.DecProto", dec: "" }; +} + +export const DecProto: MessageFns = { + $type: "cosmos.base.v1beta1.DecProto" as const, + + encode( + message: DecProto, + writer: BinaryWriter = new BinaryWriter(), + ): BinaryWriter { + if (message.dec !== "") { + writer.uint32(10).string(message.dec); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): DecProto { + const reader = + input instanceof BinaryReader ? input : new BinaryReader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseDecProto(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (tag !== 10) { + break; + } + + message.dec = reader.string(); + continue; + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): DecProto { + return { + $type: DecProto.$type, + dec: isSet(object.dec) ? globalThis.String(object.dec) : "", + }; + }, + + toJSON(message: DecProto): unknown { + const obj: any = {}; + if (message.dec !== "") { + obj.dec = message.dec; + } + return obj; + }, + + create(base?: DeepPartial): DecProto { + return DecProto.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): DecProto { + const message = createBaseDecProto(); + message.dec = object.dec ?? ""; + return message; + }, +}; + +messageTypeRegistry.set(DecProto.$type, DecProto); + +type Builtin = + | Date + | Function + | Uint8Array + | string + | number + | boolean + | undefined; + +type DeepPartial = T extends Builtin + ? T + : T extends Long + ? string | number | Long + : T extends globalThis.Array + ? globalThis.Array> + : T extends ReadonlyArray + ? ReadonlyArray> + : T extends {} + ? { [K in Exclude]?: DeepPartial } + : Partial; + +function isSet(value: any): boolean { + return value !== null && value !== undefined; +} + +interface MessageFns { + readonly $type: V; + encode(message: T, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): T; + fromJSON(object: any): T; + toJSON(message: T): unknown; + create(base?: DeepPartial): T; + fromPartial(object: DeepPartial): T; +} diff --git a/ts/src/generated/index.akash.audit.ts b/ts/src/generated/index.akash.audit.ts deleted file mode 100644 index a5c1f8b1..00000000 --- a/ts/src/generated/index.akash.audit.ts +++ /dev/null @@ -1,8 +0,0 @@ -// Code generated by protoc-gen-ts_proto. DO NOT EDIT. -// versions: -// protoc-gen-ts_proto v2.2.0 -// protoc unknown - -/* eslint-disable */ - -export * as v1 from "./index.akash.audit.v1"; diff --git a/ts/src/generated/index.akash.audit.v1.ts b/ts/src/generated/index.akash.audit.v1.ts index d212c6d7..b533b773 100644 --- a/ts/src/generated/index.akash.audit.v1.ts +++ b/ts/src/generated/index.akash.audit.v1.ts @@ -1,8 +1,6 @@ -// Code generated by protoc-gen-ts_proto. DO NOT EDIT. -// versions: -// protoc-gen-ts_proto v2.2.0 -// protoc unknown - -/* eslint-disable */ - +export * from "./akash/audit/v1/audit"; +export * from "./akash/audit/v1/event"; +export * from "./akash/audit/v1/genesis"; export * from "./akash/audit/v1/msg"; +export * from "./akash/audit/v1/query"; +export * from "./akash/audit/v1/service"; diff --git a/ts/src/generated/index.akash.base.attributes.ts b/ts/src/generated/index.akash.base.attributes.ts deleted file mode 100644 index f21f2712..00000000 --- a/ts/src/generated/index.akash.base.attributes.ts +++ /dev/null @@ -1,8 +0,0 @@ -// Code generated by protoc-gen-ts_proto. DO NOT EDIT. -// versions: -// protoc-gen-ts_proto v2.2.0 -// protoc unknown - -/* eslint-disable */ - -export * as v1 from "./index.akash.base.attributes.v1"; diff --git a/ts/src/generated/index.akash.base.attributes.v1.ts b/ts/src/generated/index.akash.base.attributes.v1.ts index 3d4a12fd..9f12082f 100644 --- a/ts/src/generated/index.akash.base.attributes.v1.ts +++ b/ts/src/generated/index.akash.base.attributes.v1.ts @@ -1,8 +1 @@ -// Code generated by protoc-gen-ts_proto. DO NOT EDIT. -// versions: -// protoc-gen-ts_proto v2.2.0 -// protoc unknown - -/* eslint-disable */ - export * from "./akash/base/attributes/v1/attribute"; diff --git a/ts/src/generated/index.akash.base.resources.ts b/ts/src/generated/index.akash.base.resources.ts deleted file mode 100644 index 4d6affe6..00000000 --- a/ts/src/generated/index.akash.base.resources.ts +++ /dev/null @@ -1,8 +0,0 @@ -// Code generated by protoc-gen-ts_proto. DO NOT EDIT. -// versions: -// protoc-gen-ts_proto v2.2.0 -// protoc unknown - -/* eslint-disable */ - -export * as v1beta4 from "./index.akash.base.resources.v1beta4"; diff --git a/ts/src/generated/index.akash.base.resources.v1beta4.ts b/ts/src/generated/index.akash.base.resources.v1beta4.ts index b17efc55..0e5061e4 100644 --- a/ts/src/generated/index.akash.base.resources.v1beta4.ts +++ b/ts/src/generated/index.akash.base.resources.v1beta4.ts @@ -1,14 +1,7 @@ -// Code generated by protoc-gen-ts_proto. DO NOT EDIT. -// versions: -// protoc-gen-ts_proto v2.2.0 -// protoc unknown - -/* eslint-disable */ - -export * from "./akash/base/resources/v1beta4/resourcevalue"; export * from "./akash/base/resources/v1beta4/cpu"; +export * from "./akash/base/resources/v1beta4/endpoint"; export * from "./akash/base/resources/v1beta4/gpu"; export * from "./akash/base/resources/v1beta4/memory"; -export * from "./akash/base/resources/v1beta4/storage"; -export * from "./akash/base/resources/v1beta4/endpoint"; export * from "./akash/base/resources/v1beta4/resources"; +export * from "./akash/base/resources/v1beta4/resourcevalue"; +export * from "./akash/base/resources/v1beta4/storage"; diff --git a/ts/src/generated/index.akash.base.ts b/ts/src/generated/index.akash.base.ts deleted file mode 100644 index 2f2a9821..00000000 --- a/ts/src/generated/index.akash.base.ts +++ /dev/null @@ -1,8 +0,0 @@ -// Code generated by protoc-gen-ts_proto. DO NOT EDIT. -// versions: -// protoc-gen-ts_proto v2.2.0 -// protoc unknown - -/* eslint-disable */ - -export * as attributes from "./index.akash.base.attributes"; diff --git a/ts/src/generated/index.akash.cert.ts b/ts/src/generated/index.akash.cert.ts deleted file mode 100644 index 959b170b..00000000 --- a/ts/src/generated/index.akash.cert.ts +++ /dev/null @@ -1,8 +0,0 @@ -// Code generated by protoc-gen-ts_proto. DO NOT EDIT. -// versions: -// protoc-gen-ts_proto v2.2.0 -// protoc unknown - -/* eslint-disable */ - -export * as v1 from "./index.akash.cert.v1"; diff --git a/ts/src/generated/index.akash.cert.v1.ts b/ts/src/generated/index.akash.cert.v1.ts index fa2f7914..e00a8e84 100644 --- a/ts/src/generated/index.akash.cert.v1.ts +++ b/ts/src/generated/index.akash.cert.v1.ts @@ -1,9 +1,6 @@ -// Code generated by protoc-gen-ts_proto. DO NOT EDIT. -// versions: -// protoc-gen-ts_proto v2.2.0 -// protoc unknown - -/* eslint-disable */ - export * from "./akash/cert/v1/cert"; +export * from "./akash/cert/v1/filters"; +export * from "./akash/cert/v1/genesis"; export * from "./akash/cert/v1/msg"; +export * from "./akash/cert/v1/query"; +export * from "./akash/cert/v1/service"; diff --git a/ts/src/generated/index.akash.deployment.ts b/ts/src/generated/index.akash.deployment.ts deleted file mode 100644 index a564b97d..00000000 --- a/ts/src/generated/index.akash.deployment.ts +++ /dev/null @@ -1,8 +0,0 @@ -// Code generated by protoc-gen-ts_proto. DO NOT EDIT. -// versions: -// protoc-gen-ts_proto v2.2.0 -// protoc unknown - -/* eslint-disable */ - -export * as v1beta4 from "./index.akash.deployment.v1beta4"; diff --git a/ts/src/generated/index.akash.deployment.v1.ts b/ts/src/generated/index.akash.deployment.v1.ts index a4ac9c3e..c1a704a1 100644 --- a/ts/src/generated/index.akash.deployment.v1.ts +++ b/ts/src/generated/index.akash.deployment.v1.ts @@ -1,9 +1,5 @@ -// Code generated by protoc-gen-ts_proto. DO NOT EDIT. -// versions: -// protoc-gen-ts_proto v2.2.0 -// protoc unknown - -/* eslint-disable */ - +export * from "./akash/deployment/v1/authz"; export * from "./akash/deployment/v1/deployment"; +export * from "./akash/deployment/v1/event"; export * from "./akash/deployment/v1/group"; +export * from "./akash/deployment/v1/msg"; diff --git a/ts/src/generated/index.akash.deployment.v1beta4.ts b/ts/src/generated/index.akash.deployment.v1beta4.ts index 34730f1d..08653352 100644 --- a/ts/src/generated/index.akash.deployment.v1beta4.ts +++ b/ts/src/generated/index.akash.deployment.v1beta4.ts @@ -1,9 +1,11 @@ -// Code generated by protoc-gen-ts_proto. DO NOT EDIT. -// versions: -// protoc-gen-ts_proto v2.2.0 -// protoc unknown - -/* eslint-disable */ - -export * from "./akash/deployment/v1beta4/resourceunit"; +export * from "./akash/deployment/v1beta4/deploymentmsg"; +export * from "./akash/deployment/v1beta4/filters"; +export * from "./akash/deployment/v1beta4/genesis"; +export * from "./akash/deployment/v1beta4/group"; +export * from "./akash/deployment/v1beta4/groupmsg"; export * from "./akash/deployment/v1beta4/groupspec"; +export * from "./akash/deployment/v1beta4/params"; +export * from "./akash/deployment/v1beta4/paramsmsg"; +export * from "./akash/deployment/v1beta4/query"; +export * from "./akash/deployment/v1beta4/resourceunit"; +export * from "./akash/deployment/v1beta4/service"; diff --git a/ts/src/generated/index.akash.discovery.ts b/ts/src/generated/index.akash.discovery.ts deleted file mode 100644 index 12e9cd44..00000000 --- a/ts/src/generated/index.akash.discovery.ts +++ /dev/null @@ -1,8 +0,0 @@ -// Code generated by protoc-gen-ts_proto. DO NOT EDIT. -// versions: -// protoc-gen-ts_proto v2.2.0 -// protoc unknown - -/* eslint-disable */ - -export * as v1 from "./index.akash.discovery.v1"; diff --git a/ts/src/generated/index.akash.discovery.v1.ts b/ts/src/generated/index.akash.discovery.v1.ts index a9516c78..9eb77f6f 100644 --- a/ts/src/generated/index.akash.discovery.v1.ts +++ b/ts/src/generated/index.akash.discovery.v1.ts @@ -1,9 +1,2 @@ -// Code generated by protoc-gen-ts_proto. DO NOT EDIT. -// versions: -// protoc-gen-ts_proto v2.2.0 -// protoc unknown - -/* eslint-disable */ - -export * from "./akash/discovery/v1/client_info"; export * from "./akash/discovery/v1/akash"; +export * from "./akash/discovery/v1/client_info"; diff --git a/ts/src/generated/index.akash.escrow.ts b/ts/src/generated/index.akash.escrow.ts deleted file mode 100644 index 68a6bc40..00000000 --- a/ts/src/generated/index.akash.escrow.ts +++ /dev/null @@ -1,8 +0,0 @@ -// Code generated by protoc-gen-ts_proto. DO NOT EDIT. -// versions: -// protoc-gen-ts_proto v2.2.0 -// protoc unknown - -/* eslint-disable */ - -export * as v1 from "./index.akash.escrow.v1"; diff --git a/ts/src/generated/index.akash.escrow.v1.ts b/ts/src/generated/index.akash.escrow.v1.ts index 5e7d041a..78fcd944 100644 --- a/ts/src/generated/index.akash.escrow.v1.ts +++ b/ts/src/generated/index.akash.escrow.v1.ts @@ -1,10 +1,4 @@ -// Code generated by protoc-gen-ts_proto. DO NOT EDIT. -// versions: -// protoc-gen-ts_proto v2.2.0 -// protoc unknown - -/* eslint-disable */ - -export * from "./akash/escrow/v1/accountid"; export * from "./akash/escrow/v1/account"; export * from "./akash/escrow/v1/fractional_payment"; +export * from "./akash/escrow/v1/genesis"; +export * from "./akash/escrow/v1/query"; diff --git a/ts/src/generated/index.akash.gov.ts b/ts/src/generated/index.akash.gov.ts deleted file mode 100644 index a5a7a695..00000000 --- a/ts/src/generated/index.akash.gov.ts +++ /dev/null @@ -1,8 +0,0 @@ -// Code generated by protoc-gen-ts_proto. DO NOT EDIT. -// versions: -// protoc-gen-ts_proto v2.2.0 -// protoc unknown - -/* eslint-disable */ - -export * as v1beta3 from "./index.akash.gov.v1beta3"; diff --git a/ts/src/generated/index.akash.gov.v1beta3.ts b/ts/src/generated/index.akash.gov.v1beta3.ts index 21e8260e..2866d76d 100644 --- a/ts/src/generated/index.akash.gov.v1beta3.ts +++ b/ts/src/generated/index.akash.gov.v1beta3.ts @@ -1,8 +1,2 @@ -// Code generated by protoc-gen-ts_proto. DO NOT EDIT. -// versions: -// protoc-gen-ts_proto v2.2.0 -// protoc unknown - -/* eslint-disable */ - +export * from "./akash/gov/v1beta3/genesis"; export * from "./akash/gov/v1beta3/params"; diff --git a/ts/src/generated/index.akash.inflation.ts b/ts/src/generated/index.akash.inflation.ts deleted file mode 100644 index 467ff6e8..00000000 --- a/ts/src/generated/index.akash.inflation.ts +++ /dev/null @@ -1,8 +0,0 @@ -// Code generated by protoc-gen-ts_proto. DO NOT EDIT. -// versions: -// protoc-gen-ts_proto v2.2.0 -// protoc unknown - -/* eslint-disable */ - -export * as v1beta3 from "./index.akash.inflation.v1beta3"; diff --git a/ts/src/generated/index.akash.inflation.v1beta2.ts b/ts/src/generated/index.akash.inflation.v1beta2.ts index eaa21440..a8fb9cf8 100644 --- a/ts/src/generated/index.akash.inflation.v1beta2.ts +++ b/ts/src/generated/index.akash.inflation.v1beta2.ts @@ -1,8 +1,2 @@ -// Code generated by protoc-gen-ts_proto. DO NOT EDIT. -// versions: -// protoc-gen-ts_proto v2.2.0 -// protoc unknown - -/* eslint-disable */ - +export * from "./akash/inflation/v1beta2/genesis"; export * from "./akash/inflation/v1beta2/params"; diff --git a/ts/src/generated/index.akash.inflation.v1beta3.ts b/ts/src/generated/index.akash.inflation.v1beta3.ts index b3dce010..f8aef663 100644 --- a/ts/src/generated/index.akash.inflation.v1beta3.ts +++ b/ts/src/generated/index.akash.inflation.v1beta3.ts @@ -1,8 +1,2 @@ -// Code generated by protoc-gen-ts_proto. DO NOT EDIT. -// versions: -// protoc-gen-ts_proto v2.2.0 -// protoc unknown - -/* eslint-disable */ - +export * from "./akash/inflation/v1beta3/genesis"; export * from "./akash/inflation/v1beta3/params"; diff --git a/ts/src/generated/index.akash.inventory.ts b/ts/src/generated/index.akash.inventory.ts deleted file mode 100644 index 20fa8dab..00000000 --- a/ts/src/generated/index.akash.inventory.ts +++ /dev/null @@ -1,8 +0,0 @@ -// Code generated by protoc-gen-ts_proto. DO NOT EDIT. -// versions: -// protoc-gen-ts_proto v2.2.0 -// protoc unknown - -/* eslint-disable */ - -export * as v1 from "./index.akash.inventory.v1"; diff --git a/ts/src/generated/index.akash.inventory.v1.ts b/ts/src/generated/index.akash.inventory.v1.ts index 83330ea2..31fffc91 100644 --- a/ts/src/generated/index.akash.inventory.v1.ts +++ b/ts/src/generated/index.akash.inventory.v1.ts @@ -1,15 +1,9 @@ -// Code generated by protoc-gen-ts_proto. DO NOT EDIT. -// versions: -// protoc-gen-ts_proto v2.2.0 -// protoc unknown - -/* eslint-disable */ - -export * from "./akash/inventory/v1/resourcepair"; +export * from "./akash/inventory/v1/cluster"; export * from "./akash/inventory/v1/cpu"; export * from "./akash/inventory/v1/gpu"; export * from "./akash/inventory/v1/memory"; -export * from "./akash/inventory/v1/resources"; export * from "./akash/inventory/v1/node"; +export * from "./akash/inventory/v1/resourcepair"; +export * from "./akash/inventory/v1/resources"; +export * from "./akash/inventory/v1/service"; export * from "./akash/inventory/v1/storage"; -export * from "./akash/inventory/v1/cluster"; diff --git a/ts/src/generated/index.akash.manifest.ts b/ts/src/generated/index.akash.manifest.ts deleted file mode 100644 index bb2a95dd..00000000 --- a/ts/src/generated/index.akash.manifest.ts +++ /dev/null @@ -1,8 +0,0 @@ -// Code generated by protoc-gen-ts_proto. DO NOT EDIT. -// versions: -// protoc-gen-ts_proto v2.2.0 -// protoc unknown - -/* eslint-disable */ - -export * as v2beta3 from "./index.akash.manifest.v2beta3"; diff --git a/ts/src/generated/index.akash.manifest.v2beta3.ts b/ts/src/generated/index.akash.manifest.v2beta3.ts index e022d2a6..2c13d505 100644 --- a/ts/src/generated/index.akash.manifest.v2beta3.ts +++ b/ts/src/generated/index.akash.manifest.v2beta3.ts @@ -1,11 +1,4 @@ -// Code generated by protoc-gen-ts_proto. DO NOT EDIT. -// versions: -// protoc-gen-ts_proto v2.2.0 -// protoc unknown - -/* eslint-disable */ - +export * from "./akash/manifest/v2beta3/group"; export * from "./akash/manifest/v2beta3/httpoptions"; -export * from "./akash/manifest/v2beta3/serviceexpose"; export * from "./akash/manifest/v2beta3/service"; -export * from "./akash/manifest/v2beta3/group"; +export * from "./akash/manifest/v2beta3/serviceexpose"; diff --git a/ts/src/generated/index.akash.market.ts b/ts/src/generated/index.akash.market.ts deleted file mode 100644 index f7a810cd..00000000 --- a/ts/src/generated/index.akash.market.ts +++ /dev/null @@ -1,8 +0,0 @@ -// Code generated by protoc-gen-ts_proto. DO NOT EDIT. -// versions: -// protoc-gen-ts_proto v2.2.0 -// protoc unknown - -/* eslint-disable */ - -export * as v1 from "./index.akash.market.v1"; diff --git a/ts/src/generated/index.akash.market.v1.ts b/ts/src/generated/index.akash.market.v1.ts index fe8072a6..411d5f94 100644 --- a/ts/src/generated/index.akash.market.v1.ts +++ b/ts/src/generated/index.akash.market.v1.ts @@ -1,8 +1,4 @@ -// Code generated by protoc-gen-ts_proto. DO NOT EDIT. -// versions: -// protoc-gen-ts_proto v2.2.0 -// protoc unknown - -/* eslint-disable */ - +export * from "./akash/market/v1/event"; +export * from "./akash/market/v1/filters"; export * from "./akash/market/v1/lease"; +export * from "./akash/market/v1/order"; diff --git a/ts/src/generated/index.akash.market.v1beta5.ts b/ts/src/generated/index.akash.market.v1beta5.ts index a08afb85..79b33c9d 100644 --- a/ts/src/generated/index.akash.market.v1beta5.ts +++ b/ts/src/generated/index.akash.market.v1beta5.ts @@ -1,8 +1,10 @@ -// Code generated by protoc-gen-ts_proto. DO NOT EDIT. -// versions: -// protoc-gen-ts_proto v2.2.0 -// protoc unknown - -/* eslint-disable */ - +export * from "./akash/market/v1beta5/bidmsg"; +export * from "./akash/market/v1beta5/filters"; +export * from "./akash/market/v1beta5/genesis"; +export * from "./akash/market/v1beta5/leasemsg"; +export * from "./akash/market/v1beta5/order"; export * from "./akash/market/v1beta5/params"; +export * from "./akash/market/v1beta5/paramsmsg"; +export * from "./akash/market/v1beta5/query"; +export * from "./akash/market/v1beta5/resourcesoffer"; +export * from "./akash/market/v1beta5/service"; diff --git a/ts/src/generated/index.akash.provider.lease.ts b/ts/src/generated/index.akash.provider.lease.ts deleted file mode 100644 index 1ae52070..00000000 --- a/ts/src/generated/index.akash.provider.lease.ts +++ /dev/null @@ -1,8 +0,0 @@ -// Code generated by protoc-gen-ts_proto. DO NOT EDIT. -// versions: -// protoc-gen-ts_proto v2.2.0 -// protoc unknown - -/* eslint-disable */ - -export * as v1 from "./index.akash.provider.lease.v1"; diff --git a/ts/src/generated/index.akash.provider.lease.v1.ts b/ts/src/generated/index.akash.provider.lease.v1.ts index 5d68a263..19c75847 100644 --- a/ts/src/generated/index.akash.provider.lease.v1.ts +++ b/ts/src/generated/index.akash.provider.lease.v1.ts @@ -1,8 +1 @@ -// Code generated by protoc-gen-ts_proto. DO NOT EDIT. -// versions: -// protoc-gen-ts_proto v2.2.0 -// protoc unknown - -/* eslint-disable */ - export * from "./akash/provider/lease/v1/service"; diff --git a/ts/src/generated/index.akash.provider.ts b/ts/src/generated/index.akash.provider.ts deleted file mode 100644 index 4c3eb585..00000000 --- a/ts/src/generated/index.akash.provider.ts +++ /dev/null @@ -1,8 +0,0 @@ -// Code generated by protoc-gen-ts_proto. DO NOT EDIT. -// versions: -// protoc-gen-ts_proto v2.2.0 -// protoc unknown - -/* eslint-disable */ - -export * as v1 from "./index.akash.provider.v1"; diff --git a/ts/src/generated/index.akash.provider.v1.ts b/ts/src/generated/index.akash.provider.v1.ts index 7698c551..06969606 100644 --- a/ts/src/generated/index.akash.provider.v1.ts +++ b/ts/src/generated/index.akash.provider.v1.ts @@ -1,9 +1,2 @@ -// Code generated by protoc-gen-ts_proto. DO NOT EDIT. -// versions: -// protoc-gen-ts_proto v2.2.0 -// protoc unknown - -/* eslint-disable */ - -export * from "./akash/provider/v1/status"; export * from "./akash/provider/v1/service"; +export * from "./akash/provider/v1/status"; diff --git a/ts/src/generated/index.akash.provider.v1beta4.ts b/ts/src/generated/index.akash.provider.v1beta4.ts index 1c05173e..a5c1779a 100644 --- a/ts/src/generated/index.akash.provider.v1beta4.ts +++ b/ts/src/generated/index.akash.provider.v1beta4.ts @@ -1,9 +1,6 @@ -// Code generated by protoc-gen-ts_proto. DO NOT EDIT. -// versions: -// protoc-gen-ts_proto v2.2.0 -// protoc unknown - -/* eslint-disable */ - -export * from "./akash/provider/v1beta4/provider"; +export * from "./akash/provider/v1beta4/event"; +export * from "./akash/provider/v1beta4/genesis"; export * from "./akash/provider/v1beta4/msg"; +export * from "./akash/provider/v1beta4/provider"; +export * from "./akash/provider/v1beta4/query"; +export * from "./akash/provider/v1beta4/service"; diff --git a/ts/src/generated/index.akash.staking.ts b/ts/src/generated/index.akash.staking.ts deleted file mode 100644 index 738981f6..00000000 --- a/ts/src/generated/index.akash.staking.ts +++ /dev/null @@ -1,8 +0,0 @@ -// Code generated by protoc-gen-ts_proto. DO NOT EDIT. -// versions: -// protoc-gen-ts_proto v2.2.0 -// protoc unknown - -/* eslint-disable */ - -export * as v1beta3 from "./index.akash.staking.v1beta3"; diff --git a/ts/src/generated/index.akash.staking.v1beta3.ts b/ts/src/generated/index.akash.staking.v1beta3.ts index 9f92d6e2..7a614680 100644 --- a/ts/src/generated/index.akash.staking.v1beta3.ts +++ b/ts/src/generated/index.akash.staking.v1beta3.ts @@ -1,8 +1,5 @@ -// Code generated by protoc-gen-ts_proto. DO NOT EDIT. -// versions: -// protoc-gen-ts_proto v2.2.0 -// protoc unknown - -/* eslint-disable */ - +export * from "./akash/staking/v1beta3/genesis"; export * from "./akash/staking/v1beta3/params"; +export * from "./akash/staking/v1beta3/paramsmsg"; +export * from "./akash/staking/v1beta3/query"; +export * from "./akash/staking/v1beta3/service"; diff --git a/ts/src/generated/index.akash.take.ts b/ts/src/generated/index.akash.take.ts deleted file mode 100644 index 7163edd1..00000000 --- a/ts/src/generated/index.akash.take.ts +++ /dev/null @@ -1,8 +0,0 @@ -// Code generated by protoc-gen-ts_proto. DO NOT EDIT. -// versions: -// protoc-gen-ts_proto v2.2.0 -// protoc unknown - -/* eslint-disable */ - -export * as v1 from "./index.akash.take.v1"; diff --git a/ts/src/generated/index.akash.take.v1.ts b/ts/src/generated/index.akash.take.v1.ts index 03dcc69a..32f4219e 100644 --- a/ts/src/generated/index.akash.take.v1.ts +++ b/ts/src/generated/index.akash.take.v1.ts @@ -1,8 +1,5 @@ -// Code generated by protoc-gen-ts_proto. DO NOT EDIT. -// versions: -// protoc-gen-ts_proto v2.2.0 -// protoc unknown - -/* eslint-disable */ - +export * from "./akash/take/v1/genesis"; export * from "./akash/take/v1/params"; +export * from "./akash/take/v1/paramsmsg"; +export * from "./akash/take/v1/query"; +export * from "./akash/take/v1/service"; diff --git a/ts/src/generated/index.akash.ts b/ts/src/generated/index.akash.ts deleted file mode 100644 index 461b3554..00000000 --- a/ts/src/generated/index.akash.ts +++ /dev/null @@ -1,10 +0,0 @@ -// Code generated by protoc-gen-ts_proto. DO NOT EDIT. -// versions: -// protoc-gen-ts_proto v2.2.0 -// protoc unknown - -/* eslint-disable */ - -export * as base from "./index.akash.base"; -export * as inventory from "./index.akash.inventory"; -export * as provider from "./index.akash.provider"; diff --git a/ts/src/generated/index.amino.ts b/ts/src/generated/index.amino.ts deleted file mode 100644 index e31961d0..00000000 --- a/ts/src/generated/index.amino.ts +++ /dev/null @@ -1,8 +0,0 @@ -// Code generated by protoc-gen-ts_proto. DO NOT EDIT. -// versions: -// protoc-gen-ts_proto v2.2.0 -// protoc unknown - -/* eslint-disable */ - -export * from "./amino/amino"; diff --git a/ts/src/generated/index.cosmos.base.query.ts b/ts/src/generated/index.cosmos.base.query.ts deleted file mode 100644 index 0463e256..00000000 --- a/ts/src/generated/index.cosmos.base.query.ts +++ /dev/null @@ -1,8 +0,0 @@ -// Code generated by protoc-gen-ts_proto. DO NOT EDIT. -// versions: -// protoc-gen-ts_proto v2.2.0 -// protoc unknown - -/* eslint-disable */ - -export * as v1beta1 from "./index.cosmos.base.query.v1beta1"; diff --git a/ts/src/generated/index.cosmos.base.query.v1beta1.ts b/ts/src/generated/index.cosmos.base.query.v1beta1.ts deleted file mode 100644 index aca6f79a..00000000 --- a/ts/src/generated/index.cosmos.base.query.v1beta1.ts +++ /dev/null @@ -1,8 +0,0 @@ -// Code generated by protoc-gen-ts_proto. DO NOT EDIT. -// versions: -// protoc-gen-ts_proto v2.2.0 -// protoc unknown - -/* eslint-disable */ - -export * from "./cosmos/base/query/v1beta1/pagination"; diff --git a/ts/src/generated/index.cosmos.base.ts b/ts/src/generated/index.cosmos.base.ts deleted file mode 100644 index 96eb8442..00000000 --- a/ts/src/generated/index.cosmos.base.ts +++ /dev/null @@ -1,8 +0,0 @@ -// Code generated by protoc-gen-ts_proto. DO NOT EDIT. -// versions: -// protoc-gen-ts_proto v2.2.0 -// protoc unknown - -/* eslint-disable */ - -export * as v1beta1 from "./index.cosmos.base.v1beta1"; diff --git a/ts/src/generated/index.cosmos.base.v1beta1.ts b/ts/src/generated/index.cosmos.base.v1beta1.ts deleted file mode 100644 index b4a2faa1..00000000 --- a/ts/src/generated/index.cosmos.base.v1beta1.ts +++ /dev/null @@ -1,8 +0,0 @@ -// Code generated by protoc-gen-ts_proto. DO NOT EDIT. -// versions: -// protoc-gen-ts_proto v2.2.0 -// protoc unknown - -/* eslint-disable */ - -export * from "./cosmos/base/v1beta1/coin"; diff --git a/ts/src/generated/index.cosmos.msg.ts b/ts/src/generated/index.cosmos.msg.ts deleted file mode 100644 index b474a9fc..00000000 --- a/ts/src/generated/index.cosmos.msg.ts +++ /dev/null @@ -1,8 +0,0 @@ -// Code generated by protoc-gen-ts_proto. DO NOT EDIT. -// versions: -// protoc-gen-ts_proto v2.2.0 -// protoc unknown - -/* eslint-disable */ - -export * as v1 from "./index.cosmos.msg.v1"; diff --git a/ts/src/generated/index.cosmos.msg.v1.ts b/ts/src/generated/index.cosmos.msg.v1.ts deleted file mode 100644 index fe926337..00000000 --- a/ts/src/generated/index.cosmos.msg.v1.ts +++ /dev/null @@ -1,8 +0,0 @@ -// Code generated by protoc-gen-ts_proto. DO NOT EDIT. -// versions: -// protoc-gen-ts_proto v2.2.0 -// protoc unknown - -/* eslint-disable */ - -export * from "./cosmos/msg/v1/msg"; diff --git a/ts/src/generated/index.cosmos.ts b/ts/src/generated/index.cosmos.ts deleted file mode 100644 index ea6d1f25..00000000 --- a/ts/src/generated/index.cosmos.ts +++ /dev/null @@ -1,8 +0,0 @@ -// Code generated by protoc-gen-ts_proto. DO NOT EDIT. -// versions: -// protoc-gen-ts_proto v2.2.0 -// protoc unknown - -/* eslint-disable */ - -export * as base from "./index.cosmos.base"; diff --git a/ts/src/generated/index.cosmos_proto.ts b/ts/src/generated/index.cosmos_proto.ts deleted file mode 100644 index 713bfce4..00000000 --- a/ts/src/generated/index.cosmos_proto.ts +++ /dev/null @@ -1,8 +0,0 @@ -// Code generated by protoc-gen-ts_proto. DO NOT EDIT. -// versions: -// protoc-gen-ts_proto v2.2.0 -// protoc unknown - -/* eslint-disable */ - -export * from "./cosmos_proto/cosmos"; diff --git a/ts/src/generated/index.gogoproto.ts b/ts/src/generated/index.gogoproto.ts deleted file mode 100644 index 16813d26..00000000 --- a/ts/src/generated/index.gogoproto.ts +++ /dev/null @@ -1,8 +0,0 @@ -// Code generated by protoc-gen-ts_proto. DO NOT EDIT. -// versions: -// protoc-gen-ts_proto v2.2.0 -// protoc unknown - -/* eslint-disable */ - -export * from "./gogoproto/gogo"; diff --git a/ts/src/generated/index.google.api.ts b/ts/src/generated/index.google.api.ts deleted file mode 100644 index dad9e389..00000000 --- a/ts/src/generated/index.google.api.ts +++ /dev/null @@ -1,9 +0,0 @@ -// Code generated by protoc-gen-ts_proto. DO NOT EDIT. -// versions: -// protoc-gen-ts_proto v2.2.0 -// protoc unknown - -/* eslint-disable */ - -export * from "./google/api/http"; -export * from "./google/api/annotations"; diff --git a/ts/src/generated/index.google.protobuf.ts b/ts/src/generated/index.google.protobuf.ts deleted file mode 100644 index 89eb17fb..00000000 --- a/ts/src/generated/index.google.protobuf.ts +++ /dev/null @@ -1,9 +0,0 @@ -// Code generated by protoc-gen-ts_proto. DO NOT EDIT. -// versions: -// protoc-gen-ts_proto v2.2.0 -// protoc unknown - -/* eslint-disable */ - -export * from "./google/protobuf/empty"; -export * from "./google/protobuf/descriptor"; diff --git a/ts/src/generated/index.google.ts b/ts/src/generated/index.google.ts deleted file mode 100644 index 4b5a6d1e..00000000 --- a/ts/src/generated/index.google.ts +++ /dev/null @@ -1,9 +0,0 @@ -// Code generated by protoc-gen-ts_proto. DO NOT EDIT. -// versions: -// protoc-gen-ts_proto v2.2.0 -// protoc unknown - -/* eslint-disable */ - -export * as protobuf from "./index.google.protobuf"; -export * as api from "./index.google.api"; diff --git a/ts/src/generated/index.k8s.io.apimachinery.pkg.api.resource.ts b/ts/src/generated/index.k8s.io.apimachinery.pkg.api.resource.ts deleted file mode 100644 index 1b71c0a2..00000000 --- a/ts/src/generated/index.k8s.io.apimachinery.pkg.api.resource.ts +++ /dev/null @@ -1,8 +0,0 @@ -// Code generated by protoc-gen-ts_proto. DO NOT EDIT. -// versions: -// protoc-gen-ts_proto v2.2.0 -// protoc unknown - -/* eslint-disable */ - -export * from "./k8s/io/apimachinery/pkg/api/resource/generated"; diff --git a/ts/src/generated/index.k8s.io.apimachinery.pkg.api.ts b/ts/src/generated/index.k8s.io.apimachinery.pkg.api.ts deleted file mode 100644 index 01cc6d84..00000000 --- a/ts/src/generated/index.k8s.io.apimachinery.pkg.api.ts +++ /dev/null @@ -1,8 +0,0 @@ -// Code generated by protoc-gen-ts_proto. DO NOT EDIT. -// versions: -// protoc-gen-ts_proto v2.2.0 -// protoc unknown - -/* eslint-disable */ - -export * as resource from "./index.k8s.io.apimachinery.pkg.api.resource"; diff --git a/ts/src/generated/index.k8s.io.apimachinery.pkg.ts b/ts/src/generated/index.k8s.io.apimachinery.pkg.ts deleted file mode 100644 index 47652c1c..00000000 --- a/ts/src/generated/index.k8s.io.apimachinery.pkg.ts +++ /dev/null @@ -1,8 +0,0 @@ -// Code generated by protoc-gen-ts_proto. DO NOT EDIT. -// versions: -// protoc-gen-ts_proto v2.2.0 -// protoc unknown - -/* eslint-disable */ - -export * as api from "./index.k8s.io.apimachinery.pkg.api"; diff --git a/ts/src/generated/index.k8s.io.apimachinery.ts b/ts/src/generated/index.k8s.io.apimachinery.ts deleted file mode 100644 index a16c8918..00000000 --- a/ts/src/generated/index.k8s.io.apimachinery.ts +++ /dev/null @@ -1,8 +0,0 @@ -// Code generated by protoc-gen-ts_proto. DO NOT EDIT. -// versions: -// protoc-gen-ts_proto v2.2.0 -// protoc unknown - -/* eslint-disable */ - -export * as pkg from "./index.k8s.io.apimachinery.pkg"; diff --git a/ts/src/generated/index.k8s.io.ts b/ts/src/generated/index.k8s.io.ts deleted file mode 100644 index 4a6a498a..00000000 --- a/ts/src/generated/index.k8s.io.ts +++ /dev/null @@ -1,8 +0,0 @@ -// Code generated by protoc-gen-ts_proto. DO NOT EDIT. -// versions: -// protoc-gen-ts_proto v2.2.0 -// protoc unknown - -/* eslint-disable */ - -export * as apimachinery from "./index.k8s.io.apimachinery"; diff --git a/ts/src/generated/index.k8s.ts b/ts/src/generated/index.k8s.ts deleted file mode 100644 index fe7709d4..00000000 --- a/ts/src/generated/index.k8s.ts +++ /dev/null @@ -1,8 +0,0 @@ -// Code generated by protoc-gen-ts_proto. DO NOT EDIT. -// versions: -// protoc-gen-ts_proto v2.2.0 -// protoc unknown - -/* eslint-disable */ - -export * as io from "./index.k8s.io"; diff --git a/ts/src/generated/index.ts b/ts/src/generated/index.ts deleted file mode 100644 index 65249e11..00000000 --- a/ts/src/generated/index.ts +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by protoc-gen-ts_proto. DO NOT EDIT. -// versions: -// protoc-gen-ts_proto v2.2.0 -// protoc unknown - -/* eslint-disable */ - -export * as google from "./index.google"; -export * as gogoproto from "./index.gogoproto"; -export * as akash from "./index.akash"; -export * as k8s from "./index.k8s"; diff --git a/ts/src/generated/index.v1.ts b/ts/src/generated/index.v1.ts new file mode 100644 index 00000000..bda2955a --- /dev/null +++ b/ts/src/generated/index.v1.ts @@ -0,0 +1,30 @@ +export * from "./akash/audit/v1/audit"; +export * from "./akash/audit/v1/event"; +export * from "./akash/audit/v1/msg"; +export * from "./akash/base/attributes/v1/attribute"; +export * from "./akash/cert/v1/cert"; +export * from "./akash/cert/v1/filters"; +export * from "./akash/cert/v1/msg"; +export * from "./akash/deployment/v1/authz"; +export * from "./akash/deployment/v1/deployment"; +export * from "./akash/deployment/v1/event"; +export * from "./akash/deployment/v1/group"; +export * from "./akash/deployment/v1/msg"; +export * from "./akash/discovery/v1/akash"; +export * from "./akash/discovery/v1/client_info"; +export * from "./akash/escrow/v1/account"; +export * from "./akash/escrow/v1/fractional_payment"; +export * from "./akash/inventory/v1/cluster"; +export * from "./akash/inventory/v1/cpu"; +export * from "./akash/inventory/v1/gpu"; +export * from "./akash/inventory/v1/memory"; +export * from "./akash/inventory/v1/node"; +export * from "./akash/inventory/v1/resourcepair"; +export * from "./akash/inventory/v1/resources"; +export * from "./akash/inventory/v1/storage"; +export * from "./akash/market/v1/event"; +export * from "./akash/market/v1/filters"; +export * from "./akash/market/v1/lease"; +export * from "./akash/market/v1/order"; +export * from "./akash/provider/v1/status"; +export * from "./akash/take/v1/paramsmsg"; diff --git a/ts/src/generated/index.v1beta3.ts b/ts/src/generated/index.v1beta3.ts new file mode 100644 index 00000000..8fd3ad01 --- /dev/null +++ b/ts/src/generated/index.v1beta3.ts @@ -0,0 +1 @@ +export * from "./akash/staking/v1beta3/paramsmsg"; diff --git a/ts/src/generated/index.v1beta4.ts b/ts/src/generated/index.v1beta4.ts new file mode 100644 index 00000000..bc8089be --- /dev/null +++ b/ts/src/generated/index.v1beta4.ts @@ -0,0 +1,17 @@ +export * from "./akash/base/resources/v1beta4/cpu"; +export * from "./akash/base/resources/v1beta4/endpoint"; +export * from "./akash/base/resources/v1beta4/gpu"; +export * from "./akash/base/resources/v1beta4/memory"; +export * from "./akash/base/resources/v1beta4/resources"; +export * from "./akash/base/resources/v1beta4/resourcevalue"; +export * from "./akash/base/resources/v1beta4/storage"; +export * from "./akash/deployment/v1beta4/deploymentmsg"; +export * from "./akash/deployment/v1beta4/filters"; +export * from "./akash/deployment/v1beta4/group"; +export * from "./akash/deployment/v1beta4/groupmsg"; +export * from "./akash/deployment/v1beta4/groupspec"; +export * from "./akash/deployment/v1beta4/paramsmsg"; +export * from "./akash/deployment/v1beta4/resourceunit"; +export * from "./akash/provider/v1beta4/event"; +export * from "./akash/provider/v1beta4/msg"; +export * from "./akash/provider/v1beta4/provider"; diff --git a/ts/src/generated/index.v1beta5.ts b/ts/src/generated/index.v1beta5.ts new file mode 100644 index 00000000..dcb6ae98 --- /dev/null +++ b/ts/src/generated/index.v1beta5.ts @@ -0,0 +1,6 @@ +export * from "./akash/market/v1beta5/bidmsg"; +export * from "./akash/market/v1beta5/filters"; +export * from "./akash/market/v1beta5/leasemsg"; +export * from "./akash/market/v1beta5/order"; +export * from "./akash/market/v1beta5/paramsmsg"; +export * from "./akash/market/v1beta5/resourcesoffer"; diff --git a/ts/src/generated/index.v2beta3.ts b/ts/src/generated/index.v2beta3.ts new file mode 100644 index 00000000..18cd2c7b --- /dev/null +++ b/ts/src/generated/index.v2beta3.ts @@ -0,0 +1,3 @@ +export * from "./akash/manifest/v2beta3/group"; +export * from "./akash/manifest/v2beta3/httpoptions"; +export * from "./akash/manifest/v2beta3/serviceexpose"; diff --git a/ts/src/patch/cosmos/base/v1beta1/coin.spec.ts b/ts/src/patch/cosmos/base/v1beta1/coin.spec.ts deleted file mode 100644 index 39a1bcf9..00000000 --- a/ts/src/patch/cosmos/base/v1beta1/coin.spec.ts +++ /dev/null @@ -1,31 +0,0 @@ -import { BinaryReader } from "@bufbuild/protobuf/wire"; - -import * as coin from "./coin"; - -describe("DecCoin", () => { - describe("prototype.decode", () => { - it("should properly decode whole amount", () => { - const encodedCoin = coin.DecCoin.encode({ - $type: "cosmos.base.v1beta1.DecCoin", - denom: "", - amount: "1000", - }).finish(); - const reader = new BinaryReader(encodedCoin); - const result = coin.DecCoin.decode(reader); - - expect(result.amount).toEqual("1000.00000000000000"); - }); - - it("should properly decode amount with a floating point", () => { - const encodedCoin = coin.DecCoin.encode({ - $type: "cosmos.base.v1beta1.DecCoin", - denom: "", - amount: "1000.5", - }).finish(); - const reader = new BinaryReader(encodedCoin); - const result = coin.DecCoin.decode(reader); - - expect(result.amount).toEqual("1000.50000000000000"); - }); - }); -}); diff --git a/ts/src/patch/cosmos/base/v1beta1/coin.ts b/ts/src/patch/cosmos/base/v1beta1/coin.ts deleted file mode 100644 index 85bc8025..00000000 --- a/ts/src/patch/cosmos/base/v1beta1/coin.ts +++ /dev/null @@ -1,33 +0,0 @@ -import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire"; - -import * as coin from "../../../../generated/cosmos/base/v1beta1/coin.original"; -import { DecCoin } from "../../../../generated/cosmos/base/v1beta1/coin.original"; - -const originalEncode = coin.DecCoin.encode; - -coin.DecCoin.encode = function encode( - message: DecCoin, - writer: BinaryWriter = new BinaryWriter(), -): BinaryWriter { - const { amount } = message; - const parts = amount.includes(".") - ? message.amount.split(".") - : [message.amount, ""]; - message.amount = `${parts[0]}${parts[1].padEnd(18, "0")}`; - - return originalEncode.apply(this, [message, writer]); -}; - -const originalDecode = coin.DecCoin.decode; - -coin.DecCoin.decode = function decode( - input: BinaryReader | Uint8Array, - length?: number, -): coin.DecCoin { - const message = originalDecode.apply(this, [input, length]); - message.amount = (parseInt(message.amount) / 10 ** 18).toPrecision(18); - - return message; -}; - -export * from "../../../../generated/cosmos/base/v1beta1/coin.original"; diff --git a/ts/static-exports.json b/ts/static-exports.json index a88f7f23..9504e746 100644 --- a/ts/static-exports.json +++ b/ts/static-exports.json @@ -1,29 +1,8 @@ { "package": { - "./": "./dist/index.js", - "./typeRegistry": "./dist/generated/typeRegistry.js", - "./akash/deployment/v1beta3/query": "./dist/generated/akash/deployment/v1beta3/query.js", - "./deprecated/akash/cert/v1beta1": "./dist/deprecated/index.akash.cert.v1beta1.js", - "./deprecated/akash/market/v1beta1": "./dist/deprecated/index.akash.market.v1beta1.js", - "./v1beta1": "./dist/index.v1beta1.js", - "./v1beta2": "./dist/index.v1beta2.js", - "./v1beta3": "./dist/index.v1beta3.js", - "./v1beta4": "./dist/index.v1beta4.js" + "./typeRegistry": "./dist/typeRegistry.js" }, "tsconfig": { - "@akashnetwork/akash-api/typeRegistry": ["./dist/generated/typeRegistry"], - "@akashnetwork/akash-api/akash/deployment/v1beta3/query": [ - "./dist/generated/akash/deployment/v1beta3/query" - ], - "@akashnetwork/akash-api/deprecated/akash/cert/v1beta1": [ - "./dist/deprecated/index.akash.cert.v1beta1" - ], - "@akashnetwork/akash-api/deprecated/akash/market/v1beta1": [ - "./dist/deprecated/index.akash.market.v1beta1" - ], - "@akashnetwork/akash-api/v1beta1": ["./dist/index.v1beta1"], - "@akashnetwork/akash-api/v1beta2": ["./dist/index.v1beta2"], - "@akashnetwork/akash-api/v1beta3": ["./dist/index.v1beta3"], - "@akashnetwork/akash-api/v1beta4": ["./dist/index.v1beta4"] + "@akashnetwork/akash-api/typeRegistry": ["./dist/typeRegistry"] } }