diff --git a/examples/asset-list/package.json b/examples/asset-list/package.json
index 0308facb9..c7dc7c421 100644
--- a/examples/asset-list/package.json
+++ b/examples/asset-list/package.json
@@ -53,4 +53,4 @@
"typescript": "^5.1.6"
},
"packageManager": "yarn@4.3.0"
-}
\ No newline at end of file
+}
diff --git a/examples/authz/package.json b/examples/authz/package.json
index de62cc0ab..d0e635be7 100644
--- a/examples/authz/package.json
+++ b/examples/authz/package.json
@@ -83,4 +83,4 @@
"typescript": "^5.1.6"
},
"packageManager": "yarn@4.3.0"
-}
\ No newline at end of file
+}
diff --git a/examples/grpc-web-grpc-gateway/package.json b/examples/grpc-web-grpc-gateway/package.json
index a5f6b9a79..f3ff35d65 100644
--- a/examples/grpc-web-grpc-gateway/package.json
+++ b/examples/grpc-web-grpc-gateway/package.json
@@ -56,4 +56,4 @@
"generate-lockfile": "0.0.12",
"typescript": "^5.1.6"
}
-}
\ No newline at end of file
+}
diff --git a/examples/ibc-transfer/package.json b/examples/ibc-transfer/package.json
index 141f2cfb2..6385e1381 100644
--- a/examples/ibc-transfer/package.json
+++ b/examples/ibc-transfer/package.json
@@ -53,4 +53,4 @@
"typescript": "^5.1.6"
},
"packageManager": "yarn@4.3.0"
-}
\ No newline at end of file
+}
diff --git a/examples/injective-vue/.gitignore b/examples/injective-vue/.gitignore
new file mode 100644
index 000000000..a547bf36d
--- /dev/null
+++ b/examples/injective-vue/.gitignore
@@ -0,0 +1,24 @@
+# Logs
+logs
+*.log
+npm-debug.log*
+yarn-debug.log*
+yarn-error.log*
+pnpm-debug.log*
+lerna-debug.log*
+
+node_modules
+dist
+dist-ssr
+*.local
+
+# Editor directories and files
+.vscode/*
+!.vscode/extensions.json
+.idea
+.DS_Store
+*.suo
+*.ntvs*
+*.njsproj
+*.sln
+*.sw?
diff --git a/examples/injective-vue/.vscode/extensions.json b/examples/injective-vue/.vscode/extensions.json
new file mode 100644
index 000000000..58b7200fd
--- /dev/null
+++ b/examples/injective-vue/.vscode/extensions.json
@@ -0,0 +1,5 @@
+{
+ "recommendations": [
+ "Vue.volar"
+ ]
+}
\ No newline at end of file
diff --git a/examples/injective-vue/README.md b/examples/injective-vue/README.md
new file mode 100644
index 000000000..c40cdca78
--- /dev/null
+++ b/examples/injective-vue/README.md
@@ -0,0 +1,140 @@
+# Introduction
+This example demonstrates the usage of Vue composables provided by [@interchain-kit/vue](https://github.com/cosmology-tech/interchain-kit/tree/main/packages/vue) and generated by [telescope](https://github.com/cosmology-tech/telescope).
+## Directory Structure
+```
+├── src/
+│ ├── codegen # containing vue composables generated by `telescope`
+│ ├── components/
+│ │ ├── asset-list/
+│ │ ├── authz/
+│ │ ├── provide-liquidity/
+│ │ ├── stake-tokens/
+│ │ └── voting/
+│ ├── composables/
+│ │ ├── asset-list/
+│ │ ├── authz/
+│ │ ├── common/
+│ │ ├── injective/
+│ │ ├── provide-liquidity/
+│ │ ├── stake-tokens/
+│ │ └── voting/
+│ ├── utils/
+│ │ ├── asset-list/
+│ │ ├── authz/
+│ │ ├── provide-liquidity/
+│ │ ├── stake-tokens/
+│ │ └── voting/
+│ ├── views/
+│ │ ├── asset-list.vue
+│ │ ├── authz.vue
+│ │ ├── index.vue
+│ │ └── voting.vue
+│ ├── router.ts
+│ ├── utils/
+│ ├── App.vue
+│ └── main.ts
+```
+## Pages
+
+### Asset List
+- **Completion Status:** ✅ Completed
+- **Functionalities:**
+ - Wallet connect
+ - Assets display
+ - IBC transfer
+- **Telescope generated `Vue Composables` Used:**
+```ts
+cosmos.bank.v1beta1.useBalance
+cosmos.bank.v1beta1.useAllBalances
+cosmos.staking.v1beta1.useDelegatorDelegations
+osmosis.gamm.v1beta1.usePools
+```
+- **`msgType`s are signAndBroadcasted:**
+```ts
+/ibc.applications.transfer.v1.MsgTransfer
+```
+
+### Auth
+- **Completion Status:** ✅ Completed
+- **Functionalities:**
+ - Vote permission granting and revoking
+ - Send permission granting and revoking
+ - Delegate permission granting and revoking
+ - Claim rewards granting and revoking
+- **Telescope generated `Vue Composables` Used:**
+```ts
+cosmos.authz.v1beta1.useGranterGrants
+cosmos.authz.v1beta1.useGranteeGrants
+cosmos.staking.v1beta1.useValidators
+```
+- **`msgType`s are signAndBroadcasted:**
+```ts
+/cosmos.authz.v1beta1.MsgRevoke
+/cosmos.authz.v1beta1.MsgGrant
+```
+
+### Voting
+- **Completion Status:** ✅ Completed
+- **Functionalities:**
+ - Proposals display
+ - Proposal voting
+- **Telescope generated `Vue Composables` Used:**
+```ts
+cosmos.gov.v1.useProposals
+cosmos.gov.v1.useParams
+cosmos.gov.v1.useProposals
+cosmos.staking.v1beta1.usePools
+```
+- **`msgType`s are signAndBroadcasted:**
+```ts
+/cosmos.gov.v1.MsgVote
+```
+
+### Injective
+- **Completion Status:** ✅ Completed
+- **Functionalities:**
+ - inj balance display
+ - inj tokens transfer
+- **Telescope generated `Vue Composables` Used:**
+```ts
+cosmos.bank.v1beta1.useBalance
+```
+- **`msgType`s are signAndBroadcasted:**
+```ts
+/cosmos.bank.v1beta1.MsgSend
+```
+### Stake tokens
+- **Completion Status:** ⏳ In Progress... 50% done.
+- **Functionalities:**
+ - all validators display
+ - validators display for a specified address
+ - claimable rewards display
+ - staked tokens display for a specified chain
+ - claim rewards
+ - manage validators
+- **Telescope generated `Vue Composables` Used:**
+```ts
+cosmos.mint.v1beta.useAnnualProvisions
+cosmos.distribution.v1beta1.useParams
+cosmos.distribution.v1beta1.useDelegationTotalRewards
+codegen.cosmos.staking.v1beta1.useDelegatorValidators
+cosmos.staking.v1beta1.useParams
+```
+- **`msgType`s are signAndBroadcasted:**
+```ts
+```
+
+### Provide Liquidity
+- **Completion Status:** ⏳ In Progress...
+
+### Swap tokens
+- **Completion Status:** ⏳ In Progress...
+
+### NFT
+- **Completion Status:** ⏳ In Progress...
+
+### Rollkit
+- **Completion Status:** ⏳ In Progress...
+
+### Grpc Web & Grpc Gateway
+- **Completion Status:** ⏳ In Progress...
\ No newline at end of file
diff --git a/examples/injective-vue/index.html b/examples/injective-vue/index.html
new file mode 100644
index 000000000..dde16aaf3
--- /dev/null
+++ b/examples/injective-vue/index.html
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+ Vite + Vue + TS
+
+
+
+
+
+
diff --git a/examples/injective-vue/package.json b/examples/injective-vue/package.json
new file mode 100644
index 000000000..16b5a3280
--- /dev/null
+++ b/examples/injective-vue/package.json
@@ -0,0 +1,35 @@
+{
+ "name": "injective-vue",
+ "private": true,
+ "version": "0.0.0",
+ "type": "module",
+ "scripts": {
+ "dev": "vite",
+ "build": "vue-tsc -b && vite build",
+ "preview": "vite preview"
+ },
+ "dependencies": {
+ "@chain-registry/v2": "^1.71.44",
+ "@chain-registry/v2-types": "^0.53.20",
+ "@cosmjs/amino": "^0.32.4",
+ "@cosmjs/stargate": "^0.32.4",
+ "@interchain-kit/core": "^0.0.1-beta.39",
+ "@interchain-kit/keplr-extension": "^0.0.1-beta.39",
+ "@interchain-kit/leap-extension": "^0.0.1-beta.39",
+ "@interchain-kit/vue": "^0.0.1-beta.38",
+ "@interchain-ui/vue": "^1.4.1",
+ "@interchainjs/cosmos": "1.6.1",
+ "@interchainjs/injective": "1.6.1",
+ "@tanstack/vue-query": "^5.7.2",
+ "osmojs": "^16.15.0",
+ "vue": "^3.5.13",
+ "vue-router": "^4.5.0"
+ },
+ "devDependencies": {
+ "@esbuild-plugins/node-globals-polyfill": "^0.2.3",
+ "@vitejs/plugin-vue": "^5.2.1",
+ "typescript": "~5.6.2",
+ "vite": "^6.0.0",
+ "vue-tsc": "^2.1.10"
+ }
+}
diff --git a/examples/injective-vue/public/vite.svg b/examples/injective-vue/public/vite.svg
new file mode 100644
index 000000000..e7b8dfb1b
--- /dev/null
+++ b/examples/injective-vue/public/vite.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/examples/injective-vue/src/App.vue b/examples/injective-vue/src/App.vue
new file mode 100644
index 000000000..2eee603cf
--- /dev/null
+++ b/examples/injective-vue/src/App.vue
@@ -0,0 +1,28 @@
+
+
+
+
+
+
+
+
+
+
+
diff --git a/examples/injective-vue/src/assets/vue.svg b/examples/injective-vue/src/assets/vue.svg
new file mode 100644
index 000000000..770e9d333
--- /dev/null
+++ b/examples/injective-vue/src/assets/vue.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/examples/injective-vue/src/codegen/akash/audit/v1beta1/audit.amino.ts b/examples/injective-vue/src/codegen/akash/audit/v1beta1/audit.amino.ts
new file mode 100644
index 000000000..b3c5e0e14
--- /dev/null
+++ b/examples/injective-vue/src/codegen/akash/audit/v1beta1/audit.amino.ts
@@ -0,0 +1,81 @@
+/* eslint-disable */
+import { Attribute, AttributeSDKType } from "../../base/v1beta1/attribute";
+import { AminoMsg } from "@cosmjs/amino";
+import { MsgSignProviderAttributes, MsgSignProviderAttributesSDKType, MsgDeleteProviderAttributes, MsgDeleteProviderAttributesSDKType } from "./audit";
+export interface MsgSignProviderAttributesAminoType extends AminoMsg {
+ type: "akash/audit/testonly-sign-provider-attributes";
+ value: {
+ owner: string;
+ auditor: string;
+ attributes: {
+ key: string;
+ value: string;
+ }[];
+ };
+}
+export interface MsgDeleteProviderAttributesAminoType extends AminoMsg {
+ type: "akash/audit/testonly-delete-provider-attributes";
+ value: {
+ owner: string;
+ auditor: string;
+ keys: string[];
+ };
+}
+export const AminoConverter = {
+ "/akash.audit.v1beta1.MsgSignProviderAttributes": {
+ aminoType: "akash/audit/testonly-sign-provider-attributes",
+ toAmino: ({
+ owner,
+ auditor,
+ attributes
+ }: MsgSignProviderAttributes): MsgSignProviderAttributesAminoType["value"] => {
+ return {
+ owner,
+ auditor,
+ attributes: attributes.map(el0 => ({
+ key: el0.key,
+ value: el0.value
+ }))
+ };
+ },
+ fromAmino: ({
+ owner,
+ auditor,
+ attributes
+ }: MsgSignProviderAttributesAminoType["value"]): MsgSignProviderAttributes => {
+ return {
+ owner,
+ auditor,
+ attributes: attributes.map(el0 => ({
+ key: el0.key,
+ value: el0.value
+ }))
+ };
+ }
+ },
+ "/akash.audit.v1beta1.MsgDeleteProviderAttributes": {
+ aminoType: "akash/audit/testonly-delete-provider-attributes",
+ toAmino: ({
+ owner,
+ auditor,
+ keys
+ }: MsgDeleteProviderAttributes): MsgDeleteProviderAttributesAminoType["value"] => {
+ return {
+ owner,
+ auditor,
+ keys
+ };
+ },
+ fromAmino: ({
+ owner,
+ auditor,
+ keys
+ }: MsgDeleteProviderAttributesAminoType["value"]): MsgDeleteProviderAttributes => {
+ return {
+ owner,
+ auditor,
+ keys
+ };
+ }
+ }
+};
\ No newline at end of file
diff --git a/examples/injective-vue/src/codegen/akash/audit/v1beta1/audit.registry.ts b/examples/injective-vue/src/codegen/akash/audit/v1beta1/audit.registry.ts
new file mode 100644
index 000000000..4fe7fd373
--- /dev/null
+++ b/examples/injective-vue/src/codegen/akash/audit/v1beta1/audit.registry.ts
@@ -0,0 +1,81 @@
+import { Attribute, AttributeSDKType } from "../../base/v1beta1/attribute";
+import { GeneratedType, Registry } from "@cosmjs/proto-signing";
+import { MsgSignProviderAttributes, MsgSignProviderAttributesSDKType, MsgDeleteProviderAttributes, MsgDeleteProviderAttributesSDKType } from "./audit";
+export const registry: ReadonlyArray<[string, GeneratedType]> = [["/akash.audit.v1beta1.MsgSignProviderAttributes", MsgSignProviderAttributes], ["/akash.audit.v1beta1.MsgDeleteProviderAttributes", MsgDeleteProviderAttributes]];
+export const load = (protoRegistry: Registry) => {
+ registry.forEach(([typeUrl, mod]) => {
+ protoRegistry.register(typeUrl, mod);
+ });
+};
+export const MessageComposer = {
+ encoded: {
+ signProviderAttributes(value: MsgSignProviderAttributes) {
+ return {
+ typeUrl: "/akash.audit.v1beta1.MsgSignProviderAttributes",
+ value: MsgSignProviderAttributes.encode(value).finish()
+ };
+ },
+ deleteProviderAttributes(value: MsgDeleteProviderAttributes) {
+ return {
+ typeUrl: "/akash.audit.v1beta1.MsgDeleteProviderAttributes",
+ value: MsgDeleteProviderAttributes.encode(value).finish()
+ };
+ }
+ },
+ withTypeUrl: {
+ signProviderAttributes(value: MsgSignProviderAttributes) {
+ return {
+ typeUrl: "/akash.audit.v1beta1.MsgSignProviderAttributes",
+ value
+ };
+ },
+ deleteProviderAttributes(value: MsgDeleteProviderAttributes) {
+ return {
+ typeUrl: "/akash.audit.v1beta1.MsgDeleteProviderAttributes",
+ value
+ };
+ }
+ },
+ toJSON: {
+ signProviderAttributes(value: MsgSignProviderAttributes) {
+ return {
+ typeUrl: "/akash.audit.v1beta1.MsgSignProviderAttributes",
+ value: MsgSignProviderAttributes.toJSON(value)
+ };
+ },
+ deleteProviderAttributes(value: MsgDeleteProviderAttributes) {
+ return {
+ typeUrl: "/akash.audit.v1beta1.MsgDeleteProviderAttributes",
+ value: MsgDeleteProviderAttributes.toJSON(value)
+ };
+ }
+ },
+ fromJSON: {
+ signProviderAttributes(value: any) {
+ return {
+ typeUrl: "/akash.audit.v1beta1.MsgSignProviderAttributes",
+ value: MsgSignProviderAttributes.fromJSON(value)
+ };
+ },
+ deleteProviderAttributes(value: any) {
+ return {
+ typeUrl: "/akash.audit.v1beta1.MsgDeleteProviderAttributes",
+ value: MsgDeleteProviderAttributes.fromJSON(value)
+ };
+ }
+ },
+ fromPartial: {
+ signProviderAttributes(value: MsgSignProviderAttributes) {
+ return {
+ typeUrl: "/akash.audit.v1beta1.MsgSignProviderAttributes",
+ value: MsgSignProviderAttributes.fromPartial(value)
+ };
+ },
+ deleteProviderAttributes(value: MsgDeleteProviderAttributes) {
+ return {
+ typeUrl: "/akash.audit.v1beta1.MsgDeleteProviderAttributes",
+ value: MsgDeleteProviderAttributes.fromPartial(value)
+ };
+ }
+ }
+};
\ No newline at end of file
diff --git a/examples/injective-vue/src/codegen/akash/audit/v1beta1/audit.rpc.msg.ts b/examples/injective-vue/src/codegen/akash/audit/v1beta1/audit.rpc.msg.ts
new file mode 100644
index 000000000..44ae67f10
--- /dev/null
+++ b/examples/injective-vue/src/codegen/akash/audit/v1beta1/audit.rpc.msg.ts
@@ -0,0 +1,32 @@
+import { Attribute, AttributeSDKType } from "../../base/v1beta1/attribute";
+import { Rpc } from "../../../helpers";
+import { BinaryReader } from "../../../binary";
+import { MsgSignProviderAttributes, MsgSignProviderAttributesSDKType, MsgSignProviderAttributesResponse, MsgSignProviderAttributesResponseSDKType, MsgDeleteProviderAttributes, MsgDeleteProviderAttributesSDKType, MsgDeleteProviderAttributesResponse, MsgDeleteProviderAttributesResponseSDKType } from "./audit";
+/** Msg defines the provider Msg service */
+export interface Msg {
+ /** SignProviderAttributes defines a method that signs provider attributes */
+ signProviderAttributes(request: MsgSignProviderAttributes): Promise;
+ /** DeleteProviderAttributes defines a method that deletes provider attributes */
+ deleteProviderAttributes(request: MsgDeleteProviderAttributes): Promise;
+}
+export class MsgClientImpl implements Msg {
+ private readonly rpc: Rpc;
+ constructor(rpc: Rpc) {
+ this.rpc = rpc;
+ }
+ /* SignProviderAttributes defines a method that signs provider attributes */
+ signProviderAttributes = async (request: MsgSignProviderAttributes): Promise => {
+ const data = MsgSignProviderAttributes.encode(request).finish();
+ const promise = this.rpc.request("akash.audit.v1beta1.Msg", "SignProviderAttributes", data);
+ return promise.then(data => MsgSignProviderAttributesResponse.decode(new BinaryReader(data)));
+ };
+ /* DeleteProviderAttributes defines a method that deletes provider attributes */
+ deleteProviderAttributes = async (request: MsgDeleteProviderAttributes): Promise => {
+ const data = MsgDeleteProviderAttributes.encode(request).finish();
+ const promise = this.rpc.request("akash.audit.v1beta1.Msg", "DeleteProviderAttributes", data);
+ return promise.then(data => MsgDeleteProviderAttributesResponse.decode(new BinaryReader(data)));
+ };
+}
+export const createClientImpl = (rpc: Rpc) => {
+ return new MsgClientImpl(rpc);
+};
\ No newline at end of file
diff --git a/examples/injective-vue/src/codegen/akash/audit/v1beta1/audit.ts b/examples/injective-vue/src/codegen/akash/audit/v1beta1/audit.ts
new file mode 100644
index 000000000..17dda3976
--- /dev/null
+++ b/examples/injective-vue/src/codegen/akash/audit/v1beta1/audit.ts
@@ -0,0 +1,1147 @@
+import { Attribute, AttributeSDKType } from "../../base/v1beta1/attribute";
+import { BinaryReader, BinaryWriter } from "../../../binary";
+import { isSet, DeepPartial, Exact } from "../../../helpers";
+import { JsonSafe } from "../../../json-safe";
+import { GlobalDecoderRegistry } from "../../../registry";
+import { ComputedRef } from "vue";
+export const protobufPackage = "akash.audit.v1beta1";
+/** Provider stores owner auditor and attributes details */
+export interface Provider {
+ owner: string;
+ auditor: string;
+ attributes: Attribute[];
+}
+export interface ReactiveProvider {
+ owner: ComputedRef;
+ auditor: ComputedRef;
+ attributes: ComputedRef;
+}
+export interface ProviderProtoMsg {
+ typeUrl: "/akash.audit.v1beta1.Provider";
+ value: Uint8Array;
+}
+/** Provider stores owner auditor and attributes details */
+export interface ProviderSDKType {
+ owner: string;
+ auditor: string;
+ attributes: AttributeSDKType[];
+}
+/** Attributes */
+export interface AuditedAttributes {
+ owner: string;
+ auditor: string;
+ attributes: Attribute[];
+}
+export interface ReactiveAuditedAttributes {
+ owner: ComputedRef;
+ auditor: ComputedRef;
+ attributes: ComputedRef;
+}
+export interface AuditedAttributesProtoMsg {
+ typeUrl: "/akash.audit.v1beta1.AuditedAttributes";
+ value: Uint8Array;
+}
+/** Attributes */
+export interface AuditedAttributesSDKType {
+ owner: string;
+ auditor: string;
+ attributes: AttributeSDKType[];
+}
+/** AttributesResponse represents details of deployment along with group details */
+export interface AttributesResponse {
+ attributes: AuditedAttributes[];
+}
+export interface ReactiveAttributesResponse {
+ attributes: ComputedRef;
+}
+export interface AttributesResponseProtoMsg {
+ typeUrl: "/akash.audit.v1beta1.AttributesResponse";
+ value: Uint8Array;
+}
+/** AttributesResponse represents details of deployment along with group details */
+export interface AttributesResponseSDKType {
+ attributes: AuditedAttributesSDKType[];
+}
+/** AttributesFilters defines filters used to filter deployments */
+export interface AttributesFilters {
+ auditors: string[];
+ owners: string[];
+}
+export interface ReactiveAttributesFilters {
+ auditors: ComputedRef;
+ owners: ComputedRef;
+}
+export interface AttributesFiltersProtoMsg {
+ typeUrl: "/akash.audit.v1beta1.AttributesFilters";
+ value: Uint8Array;
+}
+/** AttributesFilters defines filters used to filter deployments */
+export interface AttributesFiltersSDKType {
+ auditors: string[];
+ owners: string[];
+}
+/** MsgSignProviderAttributes defines an SDK message for signing a provider attributes */
+export interface MsgSignProviderAttributes {
+ owner: string;
+ auditor: string;
+ attributes: Attribute[];
+}
+export interface ReactiveMsgSignProviderAttributes {
+ owner: ComputedRef;
+ auditor: ComputedRef;
+ attributes: ComputedRef;
+}
+export interface MsgSignProviderAttributesProtoMsg {
+ typeUrl: "/akash.audit.v1beta1.MsgSignProviderAttributes";
+ value: Uint8Array;
+}
+/** MsgSignProviderAttributes defines an SDK message for signing a provider attributes */
+export interface MsgSignProviderAttributesSDKType {
+ owner: string;
+ auditor: string;
+ attributes: AttributeSDKType[];
+}
+/** MsgSignProviderAttributesResponse defines the Msg/CreateProvider response type. */
+export interface MsgSignProviderAttributesResponse {}
+export interface ReactiveMsgSignProviderAttributesResponse {}
+export interface MsgSignProviderAttributesResponseProtoMsg {
+ typeUrl: "/akash.audit.v1beta1.MsgSignProviderAttributesResponse";
+ value: Uint8Array;
+}
+/** MsgSignProviderAttributesResponse defines the Msg/CreateProvider response type. */
+export interface MsgSignProviderAttributesResponseSDKType {}
+/** MsgDeleteProviderAttributes defined the Msg/DeleteProviderAttributes */
+export interface MsgDeleteProviderAttributes {
+ owner: string;
+ auditor: string;
+ keys: string[];
+}
+export interface ReactiveMsgDeleteProviderAttributes {
+ owner: ComputedRef;
+ auditor: ComputedRef;
+ keys: ComputedRef;
+}
+export interface MsgDeleteProviderAttributesProtoMsg {
+ typeUrl: "/akash.audit.v1beta1.MsgDeleteProviderAttributes";
+ value: Uint8Array;
+}
+/** MsgDeleteProviderAttributes defined the Msg/DeleteProviderAttributes */
+export interface MsgDeleteProviderAttributesSDKType {
+ owner: string;
+ auditor: string;
+ keys: string[];
+}
+/** MsgDeleteProviderAttributesResponse defines the Msg/ProviderAttributes response type. */
+export interface MsgDeleteProviderAttributesResponse {}
+export interface ReactiveMsgDeleteProviderAttributesResponse {}
+export interface MsgDeleteProviderAttributesResponseProtoMsg {
+ typeUrl: "/akash.audit.v1beta1.MsgDeleteProviderAttributesResponse";
+ value: Uint8Array;
+}
+/** MsgDeleteProviderAttributesResponse defines the Msg/ProviderAttributes response type. */
+export interface MsgDeleteProviderAttributesResponseSDKType {}
+function createBaseProvider(): Provider {
+ return {
+ owner: "",
+ auditor: "",
+ attributes: []
+ };
+}
+export const Provider = {
+ typeUrl: "/akash.audit.v1beta1.Provider",
+ aminoType: "akash/audit/provider",
+ is(o: any): o is Provider {
+ return o && (o.$typeUrl === Provider.typeUrl || typeof o.owner === "string" && typeof o.auditor === "string" && Array.isArray(o.attributes) && (!o.attributes.length || Attribute.is(o.attributes[0])));
+ },
+ isSDK(o: any): o is ProviderSDKType {
+ return o && (o.$typeUrl === Provider.typeUrl || typeof o.owner === "string" && typeof o.auditor === "string" && Array.isArray(o.attributes) && (!o.attributes.length || Attribute.isSDK(o.attributes[0])));
+ },
+ encode(message: Provider, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
+ if (message.owner !== "") {
+ writer.uint32(10).string(message.owner);
+ }
+ if (message.auditor !== "") {
+ writer.uint32(18).string(message.auditor);
+ }
+ for (const v of message.attributes) {
+ Attribute.encode(v!, writer.uint32(34).fork()).ldelim();
+ }
+ return writer;
+ },
+ decode(input: BinaryReader | Uint8Array, length?: number): Provider {
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseProvider();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ message.owner = reader.string();
+ break;
+ case 2:
+ message.auditor = reader.string();
+ break;
+ case 4:
+ message.attributes.push(Attribute.decode(reader, reader.uint32()));
+ break;
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ },
+ fromJSON(object: any): Provider {
+ return {
+ owner: isSet(object.owner) ? String(object.owner) : "",
+ auditor: isSet(object.auditor) ? String(object.auditor) : "",
+ attributes: Array.isArray(object?.attributes) ? object.attributes.map((e: any) => Attribute.fromJSON(e)) : []
+ };
+ },
+ toJSON(message: Provider): JsonSafe {
+ const obj: any = {};
+ message.owner !== undefined && (obj.owner = message.owner);
+ message.auditor !== undefined && (obj.auditor = message.auditor);
+ if (message.attributes) {
+ obj.attributes = message.attributes.map(e => e ? Attribute.toJSON(e) : undefined);
+ } else {
+ obj.attributes = [];
+ }
+ return obj;
+ },
+ fromPartial, I>>(object: I): Provider {
+ const message = createBaseProvider();
+ message.owner = object.owner ?? "";
+ message.auditor = object.auditor ?? "";
+ message.attributes = object.attributes?.map(e => Attribute.fromPartial(e)) || [];
+ return message;
+ },
+ fromSDK(object: ProviderSDKType): Provider {
+ return {
+ owner: object?.owner,
+ auditor: object?.auditor,
+ attributes: Array.isArray(object?.attributes) ? object.attributes.map((e: any) => Attribute.fromSDK(e)) : []
+ };
+ },
+ fromSDKJSON(object: any): ProviderSDKType {
+ return {
+ owner: isSet(object.owner) ? String(object.owner) : "",
+ auditor: isSet(object.auditor) ? String(object.auditor) : "",
+ attributes: Array.isArray(object?.attributes) ? object.attributes.map((e: any) => Attribute.fromSDKJSON(e)) : []
+ };
+ },
+ toSDK(message: Provider): ProviderSDKType {
+ const obj: any = {};
+ obj.owner = message.owner;
+ obj.auditor = message.auditor;
+ if (message.attributes) {
+ obj.attributes = message.attributes.map(e => e ? Attribute.toSDK(e) : undefined);
+ } else {
+ obj.attributes = [];
+ }
+ return obj;
+ },
+ fromAmino(object: ProviderAmino): Provider {
+ const message = createBaseProvider();
+ if (object.owner !== undefined && object.owner !== null) {
+ message.owner = object.owner;
+ }
+ if (object.auditor !== undefined && object.auditor !== null) {
+ message.auditor = object.auditor;
+ }
+ message.attributes = object.attributes?.map(e => Attribute.fromAmino(e)) || [];
+ return message;
+ },
+ toAmino(message: Provider): ProviderAmino {
+ const obj: any = {};
+ obj.owner = message.owner ?? "";
+ obj.auditor = message.auditor ?? "";
+ if (message.attributes) {
+ obj.attributes = message.attributes.map(e => e ? Attribute.toAmino(e) : undefined);
+ } else {
+ obj.attributes = message.attributes;
+ }
+ return obj;
+ },
+ fromAminoMsg(object: ProviderAminoMsg): Provider {
+ return Provider.fromAmino(object.value);
+ },
+ toAminoMsg(message: Provider): ProviderAminoMsg {
+ return {
+ type: "akash/audit/provider",
+ value: Provider.toAmino(message)
+ };
+ },
+ fromProtoMsg(message: ProviderProtoMsg): Provider {
+ return Provider.decode(message.value);
+ },
+ toProto(message: Provider): Uint8Array {
+ return Provider.encode(message).finish();
+ },
+ toProtoMsg(message: Provider): ProviderProtoMsg {
+ return {
+ typeUrl: "/akash.audit.v1beta1.Provider",
+ value: Provider.encode(message).finish()
+ };
+ }
+};
+GlobalDecoderRegistry.register(Provider.typeUrl, Provider);
+GlobalDecoderRegistry.registerAminoProtoMapping(Provider.aminoType, Provider.typeUrl);
+function createBaseAuditedAttributes(): AuditedAttributes {
+ return {
+ owner: "",
+ auditor: "",
+ attributes: []
+ };
+}
+export const AuditedAttributes = {
+ typeUrl: "/akash.audit.v1beta1.AuditedAttributes",
+ aminoType: "akash/audit/audited-attributes",
+ is(o: any): o is AuditedAttributes {
+ return o && (o.$typeUrl === AuditedAttributes.typeUrl || typeof o.owner === "string" && typeof o.auditor === "string" && Array.isArray(o.attributes) && (!o.attributes.length || Attribute.is(o.attributes[0])));
+ },
+ isSDK(o: any): o is AuditedAttributesSDKType {
+ return o && (o.$typeUrl === AuditedAttributes.typeUrl || typeof o.owner === "string" && typeof o.auditor === "string" && Array.isArray(o.attributes) && (!o.attributes.length || Attribute.isSDK(o.attributes[0])));
+ },
+ encode(message: AuditedAttributes, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
+ if (message.owner !== "") {
+ writer.uint32(10).string(message.owner);
+ }
+ if (message.auditor !== "") {
+ writer.uint32(18).string(message.auditor);
+ }
+ for (const v of message.attributes) {
+ Attribute.encode(v!, writer.uint32(26).fork()).ldelim();
+ }
+ return writer;
+ },
+ decode(input: BinaryReader | Uint8Array, length?: number): AuditedAttributes {
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseAuditedAttributes();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ message.owner = reader.string();
+ break;
+ case 2:
+ message.auditor = reader.string();
+ break;
+ case 3:
+ message.attributes.push(Attribute.decode(reader, reader.uint32()));
+ break;
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ },
+ fromJSON(object: any): AuditedAttributes {
+ return {
+ owner: isSet(object.owner) ? String(object.owner) : "",
+ auditor: isSet(object.auditor) ? String(object.auditor) : "",
+ attributes: Array.isArray(object?.attributes) ? object.attributes.map((e: any) => Attribute.fromJSON(e)) : []
+ };
+ },
+ toJSON(message: AuditedAttributes): JsonSafe {
+ const obj: any = {};
+ message.owner !== undefined && (obj.owner = message.owner);
+ message.auditor !== undefined && (obj.auditor = message.auditor);
+ if (message.attributes) {
+ obj.attributes = message.attributes.map(e => e ? Attribute.toJSON(e) : undefined);
+ } else {
+ obj.attributes = [];
+ }
+ return obj;
+ },
+ fromPartial, I>>(object: I): AuditedAttributes {
+ const message = createBaseAuditedAttributes();
+ message.owner = object.owner ?? "";
+ message.auditor = object.auditor ?? "";
+ message.attributes = object.attributes?.map(e => Attribute.fromPartial(e)) || [];
+ return message;
+ },
+ fromSDK(object: AuditedAttributesSDKType): AuditedAttributes {
+ return {
+ owner: object?.owner,
+ auditor: object?.auditor,
+ attributes: Array.isArray(object?.attributes) ? object.attributes.map((e: any) => Attribute.fromSDK(e)) : []
+ };
+ },
+ fromSDKJSON(object: any): AuditedAttributesSDKType {
+ return {
+ owner: isSet(object.owner) ? String(object.owner) : "",
+ auditor: isSet(object.auditor) ? String(object.auditor) : "",
+ attributes: Array.isArray(object?.attributes) ? object.attributes.map((e: any) => Attribute.fromSDKJSON(e)) : []
+ };
+ },
+ toSDK(message: AuditedAttributes): AuditedAttributesSDKType {
+ const obj: any = {};
+ obj.owner = message.owner;
+ obj.auditor = message.auditor;
+ if (message.attributes) {
+ obj.attributes = message.attributes.map(e => e ? Attribute.toSDK(e) : undefined);
+ } else {
+ obj.attributes = [];
+ }
+ return obj;
+ },
+ fromAmino(object: AuditedAttributesAmino): AuditedAttributes {
+ const message = createBaseAuditedAttributes();
+ if (object.owner !== undefined && object.owner !== null) {
+ message.owner = object.owner;
+ }
+ if (object.auditor !== undefined && object.auditor !== null) {
+ message.auditor = object.auditor;
+ }
+ message.attributes = object.attributes?.map(e => Attribute.fromAmino(e)) || [];
+ return message;
+ },
+ toAmino(message: AuditedAttributes): AuditedAttributesAmino {
+ const obj: any = {};
+ obj.owner = message.owner ?? "";
+ obj.auditor = message.auditor ?? "";
+ if (message.attributes) {
+ obj.attributes = message.attributes.map(e => e ? Attribute.toAmino(e) : undefined);
+ } else {
+ obj.attributes = message.attributes;
+ }
+ return obj;
+ },
+ fromAminoMsg(object: AuditedAttributesAminoMsg): AuditedAttributes {
+ return AuditedAttributes.fromAmino(object.value);
+ },
+ toAminoMsg(message: AuditedAttributes): AuditedAttributesAminoMsg {
+ return {
+ type: "akash/audit/audited-attributes",
+ value: AuditedAttributes.toAmino(message)
+ };
+ },
+ fromProtoMsg(message: AuditedAttributesProtoMsg): AuditedAttributes {
+ return AuditedAttributes.decode(message.value);
+ },
+ toProto(message: AuditedAttributes): Uint8Array {
+ return AuditedAttributes.encode(message).finish();
+ },
+ toProtoMsg(message: AuditedAttributes): AuditedAttributesProtoMsg {
+ return {
+ typeUrl: "/akash.audit.v1beta1.AuditedAttributes",
+ value: AuditedAttributes.encode(message).finish()
+ };
+ }
+};
+GlobalDecoderRegistry.register(AuditedAttributes.typeUrl, AuditedAttributes);
+GlobalDecoderRegistry.registerAminoProtoMapping(AuditedAttributes.aminoType, AuditedAttributes.typeUrl);
+function createBaseAttributesResponse(): AttributesResponse {
+ return {
+ attributes: []
+ };
+}
+export const AttributesResponse = {
+ typeUrl: "/akash.audit.v1beta1.AttributesResponse",
+ aminoType: "akash/audit/attributes-response",
+ is(o: any): o is AttributesResponse {
+ return o && (o.$typeUrl === AttributesResponse.typeUrl || Array.isArray(o.attributes) && (!o.attributes.length || AuditedAttributes.is(o.attributes[0])));
+ },
+ isSDK(o: any): o is AttributesResponseSDKType {
+ return o && (o.$typeUrl === AttributesResponse.typeUrl || Array.isArray(o.attributes) && (!o.attributes.length || AuditedAttributes.isSDK(o.attributes[0])));
+ },
+ encode(message: AttributesResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
+ for (const v of message.attributes) {
+ AuditedAttributes.encode(v!, writer.uint32(10).fork()).ldelim();
+ }
+ return writer;
+ },
+ decode(input: BinaryReader | Uint8Array, length?: number): AttributesResponse {
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseAttributesResponse();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ message.attributes.push(AuditedAttributes.decode(reader, reader.uint32()));
+ break;
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ },
+ fromJSON(object: any): AttributesResponse {
+ return {
+ attributes: Array.isArray(object?.attributes) ? object.attributes.map((e: any) => AuditedAttributes.fromJSON(e)) : []
+ };
+ },
+ toJSON(message: AttributesResponse): JsonSafe {
+ const obj: any = {};
+ if (message.attributes) {
+ obj.attributes = message.attributes.map(e => e ? AuditedAttributes.toJSON(e) : undefined);
+ } else {
+ obj.attributes = [];
+ }
+ return obj;
+ },
+ fromPartial, I>>(object: I): AttributesResponse {
+ const message = createBaseAttributesResponse();
+ message.attributes = object.attributes?.map(e => AuditedAttributes.fromPartial(e)) || [];
+ return message;
+ },
+ fromSDK(object: AttributesResponseSDKType): AttributesResponse {
+ return {
+ attributes: Array.isArray(object?.attributes) ? object.attributes.map((e: any) => AuditedAttributes.fromSDK(e)) : []
+ };
+ },
+ fromSDKJSON(object: any): AttributesResponseSDKType {
+ return {
+ attributes: Array.isArray(object?.attributes) ? object.attributes.map((e: any) => AuditedAttributes.fromSDKJSON(e)) : []
+ };
+ },
+ toSDK(message: AttributesResponse): AttributesResponseSDKType {
+ const obj: any = {};
+ if (message.attributes) {
+ obj.attributes = message.attributes.map(e => e ? AuditedAttributes.toSDK(e) : undefined);
+ } else {
+ obj.attributes = [];
+ }
+ return obj;
+ },
+ fromAmino(object: AttributesResponseAmino): AttributesResponse {
+ const message = createBaseAttributesResponse();
+ message.attributes = object.attributes?.map(e => AuditedAttributes.fromAmino(e)) || [];
+ return message;
+ },
+ toAmino(message: AttributesResponse): AttributesResponseAmino {
+ const obj: any = {};
+ if (message.attributes) {
+ obj.attributes = message.attributes.map(e => e ? AuditedAttributes.toAmino(e) : undefined);
+ } else {
+ obj.attributes = message.attributes;
+ }
+ return obj;
+ },
+ fromAminoMsg(object: AttributesResponseAminoMsg): AttributesResponse {
+ return AttributesResponse.fromAmino(object.value);
+ },
+ toAminoMsg(message: AttributesResponse): AttributesResponseAminoMsg {
+ return {
+ type: "akash/audit/attributes-response",
+ value: AttributesResponse.toAmino(message)
+ };
+ },
+ fromProtoMsg(message: AttributesResponseProtoMsg): AttributesResponse {
+ return AttributesResponse.decode(message.value);
+ },
+ toProto(message: AttributesResponse): Uint8Array {
+ return AttributesResponse.encode(message).finish();
+ },
+ toProtoMsg(message: AttributesResponse): AttributesResponseProtoMsg {
+ return {
+ typeUrl: "/akash.audit.v1beta1.AttributesResponse",
+ value: AttributesResponse.encode(message).finish()
+ };
+ }
+};
+GlobalDecoderRegistry.register(AttributesResponse.typeUrl, AttributesResponse);
+GlobalDecoderRegistry.registerAminoProtoMapping(AttributesResponse.aminoType, AttributesResponse.typeUrl);
+function createBaseAttributesFilters(): AttributesFilters {
+ return {
+ auditors: [],
+ owners: []
+ };
+}
+export const AttributesFilters = {
+ typeUrl: "/akash.audit.v1beta1.AttributesFilters",
+ aminoType: "akash/audit/attributes-filters",
+ is(o: any): o is AttributesFilters {
+ return o && (o.$typeUrl === AttributesFilters.typeUrl || Array.isArray(o.auditors) && (!o.auditors.length || typeof o.auditors[0] === "string") && Array.isArray(o.owners) && (!o.owners.length || typeof o.owners[0] === "string"));
+ },
+ isSDK(o: any): o is AttributesFiltersSDKType {
+ return o && (o.$typeUrl === AttributesFilters.typeUrl || Array.isArray(o.auditors) && (!o.auditors.length || typeof o.auditors[0] === "string") && Array.isArray(o.owners) && (!o.owners.length || typeof o.owners[0] === "string"));
+ },
+ encode(message: AttributesFilters, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
+ for (const v of message.auditors) {
+ writer.uint32(10).string(v!);
+ }
+ for (const v of message.owners) {
+ writer.uint32(18).string(v!);
+ }
+ return writer;
+ },
+ decode(input: BinaryReader | Uint8Array, length?: number): AttributesFilters {
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseAttributesFilters();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ message.auditors.push(reader.string());
+ break;
+ case 2:
+ message.owners.push(reader.string());
+ break;
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ },
+ fromJSON(object: any): AttributesFilters {
+ return {
+ auditors: Array.isArray(object?.auditors) ? object.auditors.map((e: any) => String(e)) : [],
+ owners: Array.isArray(object?.owners) ? object.owners.map((e: any) => String(e)) : []
+ };
+ },
+ toJSON(message: AttributesFilters): JsonSafe {
+ const obj: any = {};
+ if (message.auditors) {
+ obj.auditors = message.auditors.map(e => e);
+ } else {
+ obj.auditors = [];
+ }
+ if (message.owners) {
+ obj.owners = message.owners.map(e => e);
+ } else {
+ obj.owners = [];
+ }
+ return obj;
+ },
+ fromPartial, I>>(object: I): AttributesFilters {
+ const message = createBaseAttributesFilters();
+ message.auditors = object.auditors?.map(e => e) || [];
+ message.owners = object.owners?.map(e => e) || [];
+ return message;
+ },
+ fromSDK(object: AttributesFiltersSDKType): AttributesFilters {
+ return {
+ auditors: Array.isArray(object?.auditors) ? object.auditors.map((e: any) => e) : [],
+ owners: Array.isArray(object?.owners) ? object.owners.map((e: any) => e) : []
+ };
+ },
+ fromSDKJSON(object: any): AttributesFiltersSDKType {
+ return {
+ auditors: Array.isArray(object?.auditors) ? object.auditors.map((e: any) => String(e)) : [],
+ owners: Array.isArray(object?.owners) ? object.owners.map((e: any) => String(e)) : []
+ };
+ },
+ toSDK(message: AttributesFilters): AttributesFiltersSDKType {
+ const obj: any = {};
+ if (message.auditors) {
+ obj.auditors = message.auditors.map(e => e);
+ } else {
+ obj.auditors = [];
+ }
+ if (message.owners) {
+ obj.owners = message.owners.map(e => e);
+ } else {
+ obj.owners = [];
+ }
+ return obj;
+ },
+ fromAmino(object: AttributesFiltersAmino): AttributesFilters {
+ const message = createBaseAttributesFilters();
+ message.auditors = object.auditors?.map(e => e) || [];
+ message.owners = object.owners?.map(e => e) || [];
+ return message;
+ },
+ toAmino(message: AttributesFilters): AttributesFiltersAmino {
+ const obj: any = {};
+ if (message.auditors) {
+ obj.auditors = message.auditors.map(e => e);
+ } else {
+ obj.auditors = message.auditors;
+ }
+ if (message.owners) {
+ obj.owners = message.owners.map(e => e);
+ } else {
+ obj.owners = message.owners;
+ }
+ return obj;
+ },
+ fromAminoMsg(object: AttributesFiltersAminoMsg): AttributesFilters {
+ return AttributesFilters.fromAmino(object.value);
+ },
+ toAminoMsg(message: AttributesFilters): AttributesFiltersAminoMsg {
+ return {
+ type: "akash/audit/attributes-filters",
+ value: AttributesFilters.toAmino(message)
+ };
+ },
+ fromProtoMsg(message: AttributesFiltersProtoMsg): AttributesFilters {
+ return AttributesFilters.decode(message.value);
+ },
+ toProto(message: AttributesFilters): Uint8Array {
+ return AttributesFilters.encode(message).finish();
+ },
+ toProtoMsg(message: AttributesFilters): AttributesFiltersProtoMsg {
+ return {
+ typeUrl: "/akash.audit.v1beta1.AttributesFilters",
+ value: AttributesFilters.encode(message).finish()
+ };
+ }
+};
+GlobalDecoderRegistry.register(AttributesFilters.typeUrl, AttributesFilters);
+GlobalDecoderRegistry.registerAminoProtoMapping(AttributesFilters.aminoType, AttributesFilters.typeUrl);
+function createBaseMsgSignProviderAttributes(): MsgSignProviderAttributes {
+ return {
+ owner: "",
+ auditor: "",
+ attributes: []
+ };
+}
+export const MsgSignProviderAttributes = {
+ typeUrl: "/akash.audit.v1beta1.MsgSignProviderAttributes",
+ aminoType: "akash/audit/testonly-sign-provider-attributes",
+ is(o: any): o is MsgSignProviderAttributes {
+ return o && (o.$typeUrl === MsgSignProviderAttributes.typeUrl || typeof o.owner === "string" && typeof o.auditor === "string" && Array.isArray(o.attributes) && (!o.attributes.length || Attribute.is(o.attributes[0])));
+ },
+ isSDK(o: any): o is MsgSignProviderAttributesSDKType {
+ return o && (o.$typeUrl === MsgSignProviderAttributes.typeUrl || typeof o.owner === "string" && typeof o.auditor === "string" && Array.isArray(o.attributes) && (!o.attributes.length || Attribute.isSDK(o.attributes[0])));
+ },
+ encode(message: MsgSignProviderAttributes, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
+ if (message.owner !== "") {
+ writer.uint32(10).string(message.owner);
+ }
+ if (message.auditor !== "") {
+ writer.uint32(18).string(message.auditor);
+ }
+ for (const v of message.attributes) {
+ Attribute.encode(v!, writer.uint32(26).fork()).ldelim();
+ }
+ return writer;
+ },
+ decode(input: BinaryReader | Uint8Array, length?: number): MsgSignProviderAttributes {
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseMsgSignProviderAttributes();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ message.owner = reader.string();
+ break;
+ case 2:
+ message.auditor = reader.string();
+ break;
+ case 3:
+ message.attributes.push(Attribute.decode(reader, reader.uint32()));
+ break;
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ },
+ fromJSON(object: any): MsgSignProviderAttributes {
+ return {
+ owner: isSet(object.owner) ? String(object.owner) : "",
+ auditor: isSet(object.auditor) ? String(object.auditor) : "",
+ attributes: Array.isArray(object?.attributes) ? object.attributes.map((e: any) => Attribute.fromJSON(e)) : []
+ };
+ },
+ toJSON(message: MsgSignProviderAttributes): JsonSafe {
+ const obj: any = {};
+ message.owner !== undefined && (obj.owner = message.owner);
+ message.auditor !== undefined && (obj.auditor = message.auditor);
+ if (message.attributes) {
+ obj.attributes = message.attributes.map(e => e ? Attribute.toJSON(e) : undefined);
+ } else {
+ obj.attributes = [];
+ }
+ return obj;
+ },
+ fromPartial, I>>(object: I): MsgSignProviderAttributes {
+ const message = createBaseMsgSignProviderAttributes();
+ message.owner = object.owner ?? "";
+ message.auditor = object.auditor ?? "";
+ message.attributes = object.attributes?.map(e => Attribute.fromPartial(e)) || [];
+ return message;
+ },
+ fromSDK(object: MsgSignProviderAttributesSDKType): MsgSignProviderAttributes {
+ return {
+ owner: object?.owner,
+ auditor: object?.auditor,
+ attributes: Array.isArray(object?.attributes) ? object.attributes.map((e: any) => Attribute.fromSDK(e)) : []
+ };
+ },
+ fromSDKJSON(object: any): MsgSignProviderAttributesSDKType {
+ return {
+ owner: isSet(object.owner) ? String(object.owner) : "",
+ auditor: isSet(object.auditor) ? String(object.auditor) : "",
+ attributes: Array.isArray(object?.attributes) ? object.attributes.map((e: any) => Attribute.fromSDKJSON(e)) : []
+ };
+ },
+ toSDK(message: MsgSignProviderAttributes): MsgSignProviderAttributesSDKType {
+ const obj: any = {};
+ obj.owner = message.owner;
+ obj.auditor = message.auditor;
+ if (message.attributes) {
+ obj.attributes = message.attributes.map(e => e ? Attribute.toSDK(e) : undefined);
+ } else {
+ obj.attributes = [];
+ }
+ return obj;
+ },
+ fromAmino(object: MsgSignProviderAttributesAmino): MsgSignProviderAttributes {
+ const message = createBaseMsgSignProviderAttributes();
+ if (object.owner !== undefined && object.owner !== null) {
+ message.owner = object.owner;
+ }
+ if (object.auditor !== undefined && object.auditor !== null) {
+ message.auditor = object.auditor;
+ }
+ message.attributes = object.attributes?.map(e => Attribute.fromAmino(e)) || [];
+ return message;
+ },
+ toAmino(message: MsgSignProviderAttributes): MsgSignProviderAttributesAmino {
+ const obj: any = {};
+ obj.owner = message.owner ?? "";
+ obj.auditor = message.auditor ?? "";
+ if (message.attributes) {
+ obj.attributes = message.attributes.map(e => e ? Attribute.toAmino(e) : undefined);
+ } else {
+ obj.attributes = message.attributes;
+ }
+ return obj;
+ },
+ fromAminoMsg(object: MsgSignProviderAttributesAminoMsg): MsgSignProviderAttributes {
+ return MsgSignProviderAttributes.fromAmino(object.value);
+ },
+ toAminoMsg(message: MsgSignProviderAttributes): MsgSignProviderAttributesAminoMsg {
+ return {
+ type: "akash/audit/testonly-sign-provider-attributes",
+ value: MsgSignProviderAttributes.toAmino(message)
+ };
+ },
+ fromProtoMsg(message: MsgSignProviderAttributesProtoMsg): MsgSignProviderAttributes {
+ return MsgSignProviderAttributes.decode(message.value);
+ },
+ toProto(message: MsgSignProviderAttributes): Uint8Array {
+ return MsgSignProviderAttributes.encode(message).finish();
+ },
+ toProtoMsg(message: MsgSignProviderAttributes): MsgSignProviderAttributesProtoMsg {
+ return {
+ typeUrl: "/akash.audit.v1beta1.MsgSignProviderAttributes",
+ value: MsgSignProviderAttributes.encode(message).finish()
+ };
+ }
+};
+GlobalDecoderRegistry.register(MsgSignProviderAttributes.typeUrl, MsgSignProviderAttributes);
+GlobalDecoderRegistry.registerAminoProtoMapping(MsgSignProviderAttributes.aminoType, MsgSignProviderAttributes.typeUrl);
+function createBaseMsgSignProviderAttributesResponse(): MsgSignProviderAttributesResponse {
+ return {};
+}
+export const MsgSignProviderAttributesResponse = {
+ typeUrl: "/akash.audit.v1beta1.MsgSignProviderAttributesResponse",
+ aminoType: "akash/audit/testonly-sign-provider-attributes-response",
+ is(o: any): o is MsgSignProviderAttributesResponse {
+ return o && o.$typeUrl === MsgSignProviderAttributesResponse.typeUrl;
+ },
+ isSDK(o: any): o is MsgSignProviderAttributesResponseSDKType {
+ return o && o.$typeUrl === MsgSignProviderAttributesResponse.typeUrl;
+ },
+ encode(_: MsgSignProviderAttributesResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
+ return writer;
+ },
+ decode(input: BinaryReader | Uint8Array, length?: number): MsgSignProviderAttributesResponse {
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseMsgSignProviderAttributesResponse();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ },
+ fromJSON(_: any): MsgSignProviderAttributesResponse {
+ return {};
+ },
+ toJSON(_: MsgSignProviderAttributesResponse): JsonSafe {
+ const obj: any = {};
+ return obj;
+ },
+ fromPartial, I>>(_: I): MsgSignProviderAttributesResponse {
+ const message = createBaseMsgSignProviderAttributesResponse();
+ return message;
+ },
+ fromSDK(_: MsgSignProviderAttributesResponseSDKType): MsgSignProviderAttributesResponse {
+ return {};
+ },
+ fromSDKJSON(_: any): MsgSignProviderAttributesResponseSDKType {
+ return {};
+ },
+ toSDK(_: MsgSignProviderAttributesResponse): MsgSignProviderAttributesResponseSDKType {
+ const obj: any = {};
+ return obj;
+ },
+ fromAmino(_: MsgSignProviderAttributesResponseAmino): MsgSignProviderAttributesResponse {
+ const message = createBaseMsgSignProviderAttributesResponse();
+ return message;
+ },
+ toAmino(_: MsgSignProviderAttributesResponse): MsgSignProviderAttributesResponseAmino {
+ const obj: any = {};
+ return obj;
+ },
+ fromAminoMsg(object: MsgSignProviderAttributesResponseAminoMsg): MsgSignProviderAttributesResponse {
+ return MsgSignProviderAttributesResponse.fromAmino(object.value);
+ },
+ toAminoMsg(message: MsgSignProviderAttributesResponse): MsgSignProviderAttributesResponseAminoMsg {
+ return {
+ type: "akash/audit/testonly-sign-provider-attributes-response",
+ value: MsgSignProviderAttributesResponse.toAmino(message)
+ };
+ },
+ fromProtoMsg(message: MsgSignProviderAttributesResponseProtoMsg): MsgSignProviderAttributesResponse {
+ return MsgSignProviderAttributesResponse.decode(message.value);
+ },
+ toProto(message: MsgSignProviderAttributesResponse): Uint8Array {
+ return MsgSignProviderAttributesResponse.encode(message).finish();
+ },
+ toProtoMsg(message: MsgSignProviderAttributesResponse): MsgSignProviderAttributesResponseProtoMsg {
+ return {
+ typeUrl: "/akash.audit.v1beta1.MsgSignProviderAttributesResponse",
+ value: MsgSignProviderAttributesResponse.encode(message).finish()
+ };
+ }
+};
+GlobalDecoderRegistry.register(MsgSignProviderAttributesResponse.typeUrl, MsgSignProviderAttributesResponse);
+GlobalDecoderRegistry.registerAminoProtoMapping(MsgSignProviderAttributesResponse.aminoType, MsgSignProviderAttributesResponse.typeUrl);
+function createBaseMsgDeleteProviderAttributes(): MsgDeleteProviderAttributes {
+ return {
+ owner: "",
+ auditor: "",
+ keys: []
+ };
+}
+export const MsgDeleteProviderAttributes = {
+ typeUrl: "/akash.audit.v1beta1.MsgDeleteProviderAttributes",
+ aminoType: "akash/audit/testonly-delete-provider-attributes",
+ is(o: any): o is MsgDeleteProviderAttributes {
+ return o && (o.$typeUrl === MsgDeleteProviderAttributes.typeUrl || typeof o.owner === "string" && typeof o.auditor === "string" && Array.isArray(o.keys) && (!o.keys.length || typeof o.keys[0] === "string"));
+ },
+ isSDK(o: any): o is MsgDeleteProviderAttributesSDKType {
+ return o && (o.$typeUrl === MsgDeleteProviderAttributes.typeUrl || typeof o.owner === "string" && typeof o.auditor === "string" && Array.isArray(o.keys) && (!o.keys.length || typeof o.keys[0] === "string"));
+ },
+ encode(message: MsgDeleteProviderAttributes, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
+ if (message.owner !== "") {
+ writer.uint32(10).string(message.owner);
+ }
+ if (message.auditor !== "") {
+ writer.uint32(18).string(message.auditor);
+ }
+ for (const v of message.keys) {
+ writer.uint32(26).string(v!);
+ }
+ return writer;
+ },
+ decode(input: BinaryReader | Uint8Array, length?: number): MsgDeleteProviderAttributes {
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseMsgDeleteProviderAttributes();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ message.owner = reader.string();
+ break;
+ case 2:
+ message.auditor = reader.string();
+ break;
+ case 3:
+ message.keys.push(reader.string());
+ break;
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ },
+ fromJSON(object: any): MsgDeleteProviderAttributes {
+ return {
+ owner: isSet(object.owner) ? String(object.owner) : "",
+ auditor: isSet(object.auditor) ? String(object.auditor) : "",
+ keys: Array.isArray(object?.keys) ? object.keys.map((e: any) => String(e)) : []
+ };
+ },
+ toJSON(message: MsgDeleteProviderAttributes): JsonSafe {
+ const obj: any = {};
+ message.owner !== undefined && (obj.owner = message.owner);
+ message.auditor !== undefined && (obj.auditor = message.auditor);
+ if (message.keys) {
+ obj.keys = message.keys.map(e => e);
+ } else {
+ obj.keys = [];
+ }
+ return obj;
+ },
+ fromPartial, I>>(object: I): MsgDeleteProviderAttributes {
+ const message = createBaseMsgDeleteProviderAttributes();
+ message.owner = object.owner ?? "";
+ message.auditor = object.auditor ?? "";
+ message.keys = object.keys?.map(e => e) || [];
+ return message;
+ },
+ fromSDK(object: MsgDeleteProviderAttributesSDKType): MsgDeleteProviderAttributes {
+ return {
+ owner: object?.owner,
+ auditor: object?.auditor,
+ keys: Array.isArray(object?.keys) ? object.keys.map((e: any) => e) : []
+ };
+ },
+ fromSDKJSON(object: any): MsgDeleteProviderAttributesSDKType {
+ return {
+ owner: isSet(object.owner) ? String(object.owner) : "",
+ auditor: isSet(object.auditor) ? String(object.auditor) : "",
+ keys: Array.isArray(object?.keys) ? object.keys.map((e: any) => String(e)) : []
+ };
+ },
+ toSDK(message: MsgDeleteProviderAttributes): MsgDeleteProviderAttributesSDKType {
+ const obj: any = {};
+ obj.owner = message.owner;
+ obj.auditor = message.auditor;
+ if (message.keys) {
+ obj.keys = message.keys.map(e => e);
+ } else {
+ obj.keys = [];
+ }
+ return obj;
+ },
+ fromAmino(object: MsgDeleteProviderAttributesAmino): MsgDeleteProviderAttributes {
+ const message = createBaseMsgDeleteProviderAttributes();
+ if (object.owner !== undefined && object.owner !== null) {
+ message.owner = object.owner;
+ }
+ if (object.auditor !== undefined && object.auditor !== null) {
+ message.auditor = object.auditor;
+ }
+ message.keys = object.keys?.map(e => e) || [];
+ return message;
+ },
+ toAmino(message: MsgDeleteProviderAttributes): MsgDeleteProviderAttributesAmino {
+ const obj: any = {};
+ obj.owner = message.owner ?? "";
+ obj.auditor = message.auditor ?? "";
+ if (message.keys) {
+ obj.keys = message.keys.map(e => e);
+ } else {
+ obj.keys = message.keys;
+ }
+ return obj;
+ },
+ fromAminoMsg(object: MsgDeleteProviderAttributesAminoMsg): MsgDeleteProviderAttributes {
+ return MsgDeleteProviderAttributes.fromAmino(object.value);
+ },
+ toAminoMsg(message: MsgDeleteProviderAttributes): MsgDeleteProviderAttributesAminoMsg {
+ return {
+ type: "akash/audit/testonly-delete-provider-attributes",
+ value: MsgDeleteProviderAttributes.toAmino(message)
+ };
+ },
+ fromProtoMsg(message: MsgDeleteProviderAttributesProtoMsg): MsgDeleteProviderAttributes {
+ return MsgDeleteProviderAttributes.decode(message.value);
+ },
+ toProto(message: MsgDeleteProviderAttributes): Uint8Array {
+ return MsgDeleteProviderAttributes.encode(message).finish();
+ },
+ toProtoMsg(message: MsgDeleteProviderAttributes): MsgDeleteProviderAttributesProtoMsg {
+ return {
+ typeUrl: "/akash.audit.v1beta1.MsgDeleteProviderAttributes",
+ value: MsgDeleteProviderAttributes.encode(message).finish()
+ };
+ }
+};
+GlobalDecoderRegistry.register(MsgDeleteProviderAttributes.typeUrl, MsgDeleteProviderAttributes);
+GlobalDecoderRegistry.registerAminoProtoMapping(MsgDeleteProviderAttributes.aminoType, MsgDeleteProviderAttributes.typeUrl);
+function createBaseMsgDeleteProviderAttributesResponse(): MsgDeleteProviderAttributesResponse {
+ return {};
+}
+export const MsgDeleteProviderAttributesResponse = {
+ typeUrl: "/akash.audit.v1beta1.MsgDeleteProviderAttributesResponse",
+ aminoType: "akash/audit/testonly-delete-provider-attributes-response",
+ is(o: any): o is MsgDeleteProviderAttributesResponse {
+ return o && o.$typeUrl === MsgDeleteProviderAttributesResponse.typeUrl;
+ },
+ isSDK(o: any): o is MsgDeleteProviderAttributesResponseSDKType {
+ return o && o.$typeUrl === MsgDeleteProviderAttributesResponse.typeUrl;
+ },
+ encode(_: MsgDeleteProviderAttributesResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
+ return writer;
+ },
+ decode(input: BinaryReader | Uint8Array, length?: number): MsgDeleteProviderAttributesResponse {
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseMsgDeleteProviderAttributesResponse();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ },
+ fromJSON(_: any): MsgDeleteProviderAttributesResponse {
+ return {};
+ },
+ toJSON(_: MsgDeleteProviderAttributesResponse): JsonSafe {
+ const obj: any = {};
+ return obj;
+ },
+ fromPartial, I>>(_: I): MsgDeleteProviderAttributesResponse {
+ const message = createBaseMsgDeleteProviderAttributesResponse();
+ return message;
+ },
+ fromSDK(_: MsgDeleteProviderAttributesResponseSDKType): MsgDeleteProviderAttributesResponse {
+ return {};
+ },
+ fromSDKJSON(_: any): MsgDeleteProviderAttributesResponseSDKType {
+ return {};
+ },
+ toSDK(_: MsgDeleteProviderAttributesResponse): MsgDeleteProviderAttributesResponseSDKType {
+ const obj: any = {};
+ return obj;
+ },
+ fromAmino(_: MsgDeleteProviderAttributesResponseAmino): MsgDeleteProviderAttributesResponse {
+ const message = createBaseMsgDeleteProviderAttributesResponse();
+ return message;
+ },
+ toAmino(_: MsgDeleteProviderAttributesResponse): MsgDeleteProviderAttributesResponseAmino {
+ const obj: any = {};
+ return obj;
+ },
+ fromAminoMsg(object: MsgDeleteProviderAttributesResponseAminoMsg): MsgDeleteProviderAttributesResponse {
+ return MsgDeleteProviderAttributesResponse.fromAmino(object.value);
+ },
+ toAminoMsg(message: MsgDeleteProviderAttributesResponse): MsgDeleteProviderAttributesResponseAminoMsg {
+ return {
+ type: "akash/audit/testonly-delete-provider-attributes-response",
+ value: MsgDeleteProviderAttributesResponse.toAmino(message)
+ };
+ },
+ fromProtoMsg(message: MsgDeleteProviderAttributesResponseProtoMsg): MsgDeleteProviderAttributesResponse {
+ return MsgDeleteProviderAttributesResponse.decode(message.value);
+ },
+ toProto(message: MsgDeleteProviderAttributesResponse): Uint8Array {
+ return MsgDeleteProviderAttributesResponse.encode(message).finish();
+ },
+ toProtoMsg(message: MsgDeleteProviderAttributesResponse): MsgDeleteProviderAttributesResponseProtoMsg {
+ return {
+ typeUrl: "/akash.audit.v1beta1.MsgDeleteProviderAttributesResponse",
+ value: MsgDeleteProviderAttributesResponse.encode(message).finish()
+ };
+ }
+};
+GlobalDecoderRegistry.register(MsgDeleteProviderAttributesResponse.typeUrl, MsgDeleteProviderAttributesResponse);
+GlobalDecoderRegistry.registerAminoProtoMapping(MsgDeleteProviderAttributesResponse.aminoType, MsgDeleteProviderAttributesResponse.typeUrl);
\ No newline at end of file
diff --git a/examples/injective-vue/src/codegen/akash/audit/v1beta2/audit.amino.ts b/examples/injective-vue/src/codegen/akash/audit/v1beta2/audit.amino.ts
new file mode 100644
index 000000000..de83b12ab
--- /dev/null
+++ b/examples/injective-vue/src/codegen/akash/audit/v1beta2/audit.amino.ts
@@ -0,0 +1,81 @@
+/* eslint-disable */
+import { Attribute, AttributeSDKType } from "../../base/v1beta2/attribute";
+import { AminoMsg } from "@cosmjs/amino";
+import { MsgSignProviderAttributes, MsgSignProviderAttributesSDKType, MsgDeleteProviderAttributes, MsgDeleteProviderAttributesSDKType } from "./audit";
+export interface MsgSignProviderAttributesAminoType extends AminoMsg {
+ type: "mymessage-testonly";
+ value: {
+ owner: string;
+ auditor: string;
+ attributes: {
+ key: string;
+ value: string;
+ }[];
+ };
+}
+export interface MsgDeleteProviderAttributesAminoType extends AminoMsg {
+ type: "akash/audit/v1beta2/testonly-delete-provider-attributes";
+ value: {
+ owner: string;
+ auditor: string;
+ keys: string[];
+ };
+}
+export const AminoConverter = {
+ "/akash.audit.v1beta2.MsgSignProviderAttributes": {
+ aminoType: "mymessage-testonly",
+ toAmino: ({
+ owner,
+ auditor,
+ attributes
+ }: MsgSignProviderAttributes): MsgSignProviderAttributesAminoType["value"] => {
+ return {
+ owner,
+ auditor,
+ attributes: attributes.map(el0 => ({
+ key: el0.key,
+ value: el0.value
+ }))
+ };
+ },
+ fromAmino: ({
+ owner,
+ auditor,
+ attributes
+ }: MsgSignProviderAttributesAminoType["value"]): MsgSignProviderAttributes => {
+ return {
+ owner,
+ auditor,
+ attributes: attributes.map(el0 => ({
+ key: el0.key,
+ value: el0.value
+ }))
+ };
+ }
+ },
+ "/akash.audit.v1beta2.MsgDeleteProviderAttributes": {
+ aminoType: "akash/audit/v1beta2/testonly-delete-provider-attributes",
+ toAmino: ({
+ owner,
+ auditor,
+ keys
+ }: MsgDeleteProviderAttributes): MsgDeleteProviderAttributesAminoType["value"] => {
+ return {
+ owner,
+ auditor,
+ keys
+ };
+ },
+ fromAmino: ({
+ owner,
+ auditor,
+ keys
+ }: MsgDeleteProviderAttributesAminoType["value"]): MsgDeleteProviderAttributes => {
+ return {
+ owner,
+ auditor,
+ keys
+ };
+ }
+ }
+};
\ No newline at end of file
diff --git a/examples/injective-vue/src/codegen/akash/audit/v1beta2/audit.registry.ts b/examples/injective-vue/src/codegen/akash/audit/v1beta2/audit.registry.ts
new file mode 100644
index 000000000..3da073322
--- /dev/null
+++ b/examples/injective-vue/src/codegen/akash/audit/v1beta2/audit.registry.ts
@@ -0,0 +1,81 @@
+import { Attribute, AttributeSDKType } from "../../base/v1beta2/attribute";
+import { GeneratedType, Registry } from "@cosmjs/proto-signing";
+import { MsgSignProviderAttributes, MsgSignProviderAttributesSDKType, MsgDeleteProviderAttributes, MsgDeleteProviderAttributesSDKType } from "./audit";
+export const registry: ReadonlyArray<[string, GeneratedType]> = [["/akash.audit.v1beta2.MsgSignProviderAttributes", MsgSignProviderAttributes], ["/akash.audit.v1beta2.MsgDeleteProviderAttributes", MsgDeleteProviderAttributes]];
+export const load = (protoRegistry: Registry) => {
+ registry.forEach(([typeUrl, mod]) => {
+ protoRegistry.register(typeUrl, mod);
+ });
+};
+export const MessageComposer = {
+ encoded: {
+ signProviderAttributes(value: MsgSignProviderAttributes) {
+ return {
+ typeUrl: "/akash.audit.v1beta2.MsgSignProviderAttributes",
+ value: MsgSignProviderAttributes.encode(value).finish()
+ };
+ },
+ deleteProviderAttributes(value: MsgDeleteProviderAttributes) {
+ return {
+ typeUrl: "/akash.audit.v1beta2.MsgDeleteProviderAttributes",
+ value: MsgDeleteProviderAttributes.encode(value).finish()
+ };
+ }
+ },
+ withTypeUrl: {
+ signProviderAttributes(value: MsgSignProviderAttributes) {
+ return {
+ typeUrl: "/akash.audit.v1beta2.MsgSignProviderAttributes",
+ value
+ };
+ },
+ deleteProviderAttributes(value: MsgDeleteProviderAttributes) {
+ return {
+ typeUrl: "/akash.audit.v1beta2.MsgDeleteProviderAttributes",
+ value
+ };
+ }
+ },
+ toJSON: {
+ signProviderAttributes(value: MsgSignProviderAttributes) {
+ return {
+ typeUrl: "/akash.audit.v1beta2.MsgSignProviderAttributes",
+ value: MsgSignProviderAttributes.toJSON(value)
+ };
+ },
+ deleteProviderAttributes(value: MsgDeleteProviderAttributes) {
+ return {
+ typeUrl: "/akash.audit.v1beta2.MsgDeleteProviderAttributes",
+ value: MsgDeleteProviderAttributes.toJSON(value)
+ };
+ }
+ },
+ fromJSON: {
+ signProviderAttributes(value: any) {
+ return {
+ typeUrl: "/akash.audit.v1beta2.MsgSignProviderAttributes",
+ value: MsgSignProviderAttributes.fromJSON(value)
+ };
+ },
+ deleteProviderAttributes(value: any) {
+ return {
+ typeUrl: "/akash.audit.v1beta2.MsgDeleteProviderAttributes",
+ value: MsgDeleteProviderAttributes.fromJSON(value)
+ };
+ }
+ },
+ fromPartial: {
+ signProviderAttributes(value: MsgSignProviderAttributes) {
+ return {
+ typeUrl: "/akash.audit.v1beta2.MsgSignProviderAttributes",
+ value: MsgSignProviderAttributes.fromPartial(value)
+ };
+ },
+ deleteProviderAttributes(value: MsgDeleteProviderAttributes) {
+ return {
+ typeUrl: "/akash.audit.v1beta2.MsgDeleteProviderAttributes",
+ value: MsgDeleteProviderAttributes.fromPartial(value)
+ };
+ }
+ }
+};
\ No newline at end of file
diff --git a/examples/injective-vue/src/codegen/akash/audit/v1beta2/audit.rpc.msg.ts b/examples/injective-vue/src/codegen/akash/audit/v1beta2/audit.rpc.msg.ts
new file mode 100644
index 000000000..74a9504a1
--- /dev/null
+++ b/examples/injective-vue/src/codegen/akash/audit/v1beta2/audit.rpc.msg.ts
@@ -0,0 +1,32 @@
+import { Attribute, AttributeSDKType } from "../../base/v1beta2/attribute";
+import { Rpc } from "../../../helpers";
+import { BinaryReader } from "../../../binary";
+import { MsgSignProviderAttributes, MsgSignProviderAttributesSDKType, MsgSignProviderAttributesResponse, MsgSignProviderAttributesResponseSDKType, MsgDeleteProviderAttributes, MsgDeleteProviderAttributesSDKType, MsgDeleteProviderAttributesResponse, MsgDeleteProviderAttributesResponseSDKType } from "./audit";
+/** Msg defines the provider Msg service */
+export interface Msg {
+ /** SignProviderAttributes defines a method that signs provider attributes */
+ signProviderAttributes(request: MsgSignProviderAttributes): Promise;
+ /** DeleteProviderAttributes defines a method that deletes provider attributes */
+ deleteProviderAttributes(request: MsgDeleteProviderAttributes): Promise;
+}
+export class MsgClientImpl implements Msg {
+ private readonly rpc: Rpc;
+ constructor(rpc: Rpc) {
+ this.rpc = rpc;
+ }
+ /* SignProviderAttributes defines a method that signs provider attributes */
+ signProviderAttributes = async (request: MsgSignProviderAttributes): Promise => {
+ const data = MsgSignProviderAttributes.encode(request).finish();
+ const promise = this.rpc.request("akash.audit.v1beta2.Msg", "SignProviderAttributes", data);
+ return promise.then(data => MsgSignProviderAttributesResponse.decode(new BinaryReader(data)));
+ };
+ /* DeleteProviderAttributes defines a method that deletes provider attributes */
+ deleteProviderAttributes = async (request: MsgDeleteProviderAttributes): Promise => {
+ const data = MsgDeleteProviderAttributes.encode(request).finish();
+ const promise = this.rpc.request("akash.audit.v1beta2.Msg", "DeleteProviderAttributes", data);
+ return promise.then(data => MsgDeleteProviderAttributesResponse.decode(new BinaryReader(data)));
+ };
+}
+export const createClientImpl = (rpc: Rpc) => {
+ return new MsgClientImpl(rpc);
+};
\ No newline at end of file
diff --git a/examples/injective-vue/src/codegen/akash/audit/v1beta2/audit.ts b/examples/injective-vue/src/codegen/akash/audit/v1beta2/audit.ts
new file mode 100644
index 000000000..b4b3b57f4
--- /dev/null
+++ b/examples/injective-vue/src/codegen/akash/audit/v1beta2/audit.ts
@@ -0,0 +1,1147 @@
+import { Attribute, AttributeSDKType } from "../../base/v1beta2/attribute";
+import { BinaryReader, BinaryWriter } from "../../../binary";
+import { isSet, DeepPartial, Exact } from "../../../helpers";
+import { JsonSafe } from "../../../json-safe";
+import { GlobalDecoderRegistry } from "../../../registry";
+import { ComputedRef } from "vue";
+export const protobufPackage = "akash.audit.v1beta2";
+/** Provider stores owner auditor and attributes details */
+export interface Provider {
+ owner: string;
+ auditor: string;
+ attributes: Attribute[];
+}
+export interface ReactiveProvider {
+ owner: ComputedRef;
+ auditor: ComputedRef;
+ attributes: ComputedRef;
+}
+export interface ProviderProtoMsg {
+ typeUrl: "/akash.audit.v1beta2.Provider";
+ value: Uint8Array;
+}
+/** Provider stores owner auditor and attributes details */
+export interface ProviderSDKType {
+ owner: string;
+ auditor: string;
+ attributes: AttributeSDKType[];
+}
+/** Attributes */
+export interface AuditedAttributes {
+ owner: string;
+ auditor: string;
+ attributes: Attribute[];
+}
+export interface ReactiveAuditedAttributes {
+ owner: ComputedRef;
+ auditor: ComputedRef;
+ attributes: ComputedRef;
+}
+export interface AuditedAttributesProtoMsg {
+ typeUrl: "/akash.audit.v1beta2.AuditedAttributes";
+ value: Uint8Array;
+}
+/** Attributes */
+export interface AuditedAttributesSDKType {
+ owner: string;
+ auditor: string;
+ attributes: AttributeSDKType[];
+}
+/** AttributesResponse represents details of deployment along with group details */
+export interface AttributesResponse {
+ attributes: AuditedAttributes[];
+}
+export interface ReactiveAttributesResponse {
+ attributes: ComputedRef;
+}
+export interface AttributesResponseProtoMsg {
+ typeUrl: "/akash.audit.v1beta2.AttributesResponse";
+ value: Uint8Array;
+}
+/** AttributesResponse represents details of deployment along with group details */
+export interface AttributesResponseSDKType {
+ attributes: AuditedAttributesSDKType[];
+}
+/** AttributesFilters defines filters used to filter deployments */
+export interface AttributesFilters {
+ auditors: string[];
+ owners: string[];
+}
+export interface ReactiveAttributesFilters {
+ auditors: ComputedRef;
+ owners: ComputedRef;
+}
+export interface AttributesFiltersProtoMsg {
+ typeUrl: "/akash.audit.v1beta2.AttributesFilters";
+ value: Uint8Array;
+}
+/** AttributesFilters defines filters used to filter deployments */
+export interface AttributesFiltersSDKType {
+ auditors: string[];
+ owners: string[];
+}
+/** MsgSignProviderAttributes defines an SDK message for signing a provider attributes */
+export interface MsgSignProviderAttributes {
+ owner: string;
+ auditor: string;
+ attributes: Attribute[];
+}
+export interface ReactiveMsgSignProviderAttributes {
+ owner: ComputedRef;
+ auditor: ComputedRef;
+ attributes: ComputedRef;
+}
+export interface MsgSignProviderAttributesProtoMsg {
+ typeUrl: "/akash.audit.v1beta2.MsgSignProviderAttributes";
+ value: Uint8Array;
+}
+/** MsgSignProviderAttributes defines an SDK message for signing a provider attributes */
+export interface MsgSignProviderAttributesSDKType {
+ owner: string;
+ auditor: string;
+ attributes: AttributeSDKType[];
+}
+/** MsgSignProviderAttributesResponse defines the Msg/CreateProvider response type. */
+export interface MsgSignProviderAttributesResponse {}
+export interface ReactiveMsgSignProviderAttributesResponse {}
+export interface MsgSignProviderAttributesResponseProtoMsg {
+ typeUrl: "/akash.audit.v1beta2.MsgSignProviderAttributesResponse";
+ value: Uint8Array;
+}
+/** MsgSignProviderAttributesResponse defines the Msg/CreateProvider response type. */
+export interface MsgSignProviderAttributesResponseSDKType {}
+/** MsgDeleteProviderAttributes defined the Msg/DeleteProviderAttributes */
+export interface MsgDeleteProviderAttributes {
+ owner: string;
+ auditor: string;
+ keys: string[];
+}
+export interface ReactiveMsgDeleteProviderAttributes {
+ owner: ComputedRef;
+ auditor: ComputedRef;
+ keys: ComputedRef;
+}
+export interface MsgDeleteProviderAttributesProtoMsg {
+ typeUrl: "/akash.audit.v1beta2.MsgDeleteProviderAttributes";
+ value: Uint8Array;
+}
+/** MsgDeleteProviderAttributes defined the Msg/DeleteProviderAttributes */
+export interface MsgDeleteProviderAttributesSDKType {
+ owner: string;
+ auditor: string;
+ keys: string[];
+}
+/** MsgDeleteProviderAttributesResponse defines the Msg/ProviderAttributes response type. */
+export interface MsgDeleteProviderAttributesResponse {}
+export interface ReactiveMsgDeleteProviderAttributesResponse {}
+export interface MsgDeleteProviderAttributesResponseProtoMsg {
+ typeUrl: "/akash.audit.v1beta2.MsgDeleteProviderAttributesResponse";
+ value: Uint8Array;
+}
+/** MsgDeleteProviderAttributesResponse defines the Msg/ProviderAttributes response type. */
+export interface MsgDeleteProviderAttributesResponseSDKType {}
+function createBaseProvider(): Provider {
+ return {
+ owner: "",
+ auditor: "",
+ attributes: []
+ };
+}
+export const Provider = {
+ typeUrl: "/akash.audit.v1beta2.Provider",
+ aminoType: "akash/audit/v1beta2/provider",
+ is(o: any): o is Provider {
+ return o && (o.$typeUrl === Provider.typeUrl || typeof o.owner === "string" && typeof o.auditor === "string" && Array.isArray(o.attributes) && (!o.attributes.length || Attribute.is(o.attributes[0])));
+ },
+ isSDK(o: any): o is ProviderSDKType {
+ return o && (o.$typeUrl === Provider.typeUrl || typeof o.owner === "string" && typeof o.auditor === "string" && Array.isArray(o.attributes) && (!o.attributes.length || Attribute.isSDK(o.attributes[0])));
+ },
+ encode(message: Provider, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
+ if (message.owner !== "") {
+ writer.uint32(10).string(message.owner);
+ }
+ if (message.auditor !== "") {
+ writer.uint32(18).string(message.auditor);
+ }
+ for (const v of message.attributes) {
+ Attribute.encode(v!, writer.uint32(34).fork()).ldelim();
+ }
+ return writer;
+ },
+ decode(input: BinaryReader | Uint8Array, length?: number): Provider {
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseProvider();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ message.owner = reader.string();
+ break;
+ case 2:
+ message.auditor = reader.string();
+ break;
+ case 4:
+ message.attributes.push(Attribute.decode(reader, reader.uint32()));
+ break;
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ },
+ fromJSON(object: any): Provider {
+ return {
+ owner: isSet(object.owner) ? String(object.owner) : "",
+ auditor: isSet(object.auditor) ? String(object.auditor) : "",
+ attributes: Array.isArray(object?.attributes) ? object.attributes.map((e: any) => Attribute.fromJSON(e)) : []
+ };
+ },
+ toJSON(message: Provider): JsonSafe {
+ const obj: any = {};
+ message.owner !== undefined && (obj.owner = message.owner);
+ message.auditor !== undefined && (obj.auditor = message.auditor);
+ if (message.attributes) {
+ obj.attributes = message.attributes.map(e => e ? Attribute.toJSON(e) : undefined);
+ } else {
+ obj.attributes = [];
+ }
+ return obj;
+ },
+ fromPartial, I>>(object: I): Provider {
+ const message = createBaseProvider();
+ message.owner = object.owner ?? "";
+ message.auditor = object.auditor ?? "";
+ message.attributes = object.attributes?.map(e => Attribute.fromPartial(e)) || [];
+ return message;
+ },
+ fromSDK(object: ProviderSDKType): Provider {
+ return {
+ owner: object?.owner,
+ auditor: object?.auditor,
+ attributes: Array.isArray(object?.attributes) ? object.attributes.map((e: any) => Attribute.fromSDK(e)) : []
+ };
+ },
+ fromSDKJSON(object: any): ProviderSDKType {
+ return {
+ owner: isSet(object.owner) ? String(object.owner) : "",
+ auditor: isSet(object.auditor) ? String(object.auditor) : "",
+ attributes: Array.isArray(object?.attributes) ? object.attributes.map((e: any) => Attribute.fromSDKJSON(e)) : []
+ };
+ },
+ toSDK(message: Provider): ProviderSDKType {
+ const obj: any = {};
+ obj.owner = message.owner;
+ obj.auditor = message.auditor;
+ if (message.attributes) {
+ obj.attributes = message.attributes.map(e => e ? Attribute.toSDK(e) : undefined);
+ } else {
+ obj.attributes = [];
+ }
+ return obj;
+ },
+ fromAmino(object: ProviderAmino): Provider {
+ const message = createBaseProvider();
+ if (object.owner !== undefined && object.owner !== null) {
+ message.owner = object.owner;
+ }
+ if (object.auditor !== undefined && object.auditor !== null) {
+ message.auditor = object.auditor;
+ }
+ message.attributes = object.attributes?.map(e => Attribute.fromAmino(e)) || [];
+ return message;
+ },
+ toAmino(message: Provider): ProviderAmino {
+ const obj: any = {};
+ obj.owner = message.owner ?? "";
+ obj.auditor = message.auditor ?? "";
+ if (message.attributes) {
+ obj.attributes = message.attributes.map(e => e ? Attribute.toAmino(e) : undefined);
+ } else {
+ obj.attributes = message.attributes;
+ }
+ return obj;
+ },
+ fromAminoMsg(object: ProviderAminoMsg): Provider {
+ return Provider.fromAmino(object.value);
+ },
+ toAminoMsg(message: Provider): ProviderAminoMsg {
+ return {
+ type: "akash/audit/v1beta2/provider",
+ value: Provider.toAmino(message)
+ };
+ },
+ fromProtoMsg(message: ProviderProtoMsg): Provider {
+ return Provider.decode(message.value);
+ },
+ toProto(message: Provider): Uint8Array {
+ return Provider.encode(message).finish();
+ },
+ toProtoMsg(message: Provider): ProviderProtoMsg {
+ return {
+ typeUrl: "/akash.audit.v1beta2.Provider",
+ value: Provider.encode(message).finish()
+ };
+ }
+};
+GlobalDecoderRegistry.register(Provider.typeUrl, Provider);
+GlobalDecoderRegistry.registerAminoProtoMapping(Provider.aminoType, Provider.typeUrl);
+function createBaseAuditedAttributes(): AuditedAttributes {
+ return {
+ owner: "",
+ auditor: "",
+ attributes: []
+ };
+}
+export const AuditedAttributes = {
+ typeUrl: "/akash.audit.v1beta2.AuditedAttributes",
+ aminoType: "akash/audit/v1beta2/audited-attributes",
+ is(o: any): o is AuditedAttributes {
+ return o && (o.$typeUrl === AuditedAttributes.typeUrl || typeof o.owner === "string" && typeof o.auditor === "string" && Array.isArray(o.attributes) && (!o.attributes.length || Attribute.is(o.attributes[0])));
+ },
+ isSDK(o: any): o is AuditedAttributesSDKType {
+ return o && (o.$typeUrl === AuditedAttributes.typeUrl || typeof o.owner === "string" && typeof o.auditor === "string" && Array.isArray(o.attributes) && (!o.attributes.length || Attribute.isSDK(o.attributes[0])));
+ },
+ encode(message: AuditedAttributes, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
+ if (message.owner !== "") {
+ writer.uint32(10).string(message.owner);
+ }
+ if (message.auditor !== "") {
+ writer.uint32(18).string(message.auditor);
+ }
+ for (const v of message.attributes) {
+ Attribute.encode(v!, writer.uint32(26).fork()).ldelim();
+ }
+ return writer;
+ },
+ decode(input: BinaryReader | Uint8Array, length?: number): AuditedAttributes {
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseAuditedAttributes();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ message.owner = reader.string();
+ break;
+ case 2:
+ message.auditor = reader.string();
+ break;
+ case 3:
+ message.attributes.push(Attribute.decode(reader, reader.uint32()));
+ break;
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ },
+ fromJSON(object: any): AuditedAttributes {
+ return {
+ owner: isSet(object.owner) ? String(object.owner) : "",
+ auditor: isSet(object.auditor) ? String(object.auditor) : "",
+ attributes: Array.isArray(object?.attributes) ? object.attributes.map((e: any) => Attribute.fromJSON(e)) : []
+ };
+ },
+ toJSON(message: AuditedAttributes): JsonSafe {
+ const obj: any = {};
+ message.owner !== undefined && (obj.owner = message.owner);
+ message.auditor !== undefined && (obj.auditor = message.auditor);
+ if (message.attributes) {
+ obj.attributes = message.attributes.map(e => e ? Attribute.toJSON(e) : undefined);
+ } else {
+ obj.attributes = [];
+ }
+ return obj;
+ },
+ fromPartial, I>>(object: I): AuditedAttributes {
+ const message = createBaseAuditedAttributes();
+ message.owner = object.owner ?? "";
+ message.auditor = object.auditor ?? "";
+ message.attributes = object.attributes?.map(e => Attribute.fromPartial(e)) || [];
+ return message;
+ },
+ fromSDK(object: AuditedAttributesSDKType): AuditedAttributes {
+ return {
+ owner: object?.owner,
+ auditor: object?.auditor,
+ attributes: Array.isArray(object?.attributes) ? object.attributes.map((e: any) => Attribute.fromSDK(e)) : []
+ };
+ },
+ fromSDKJSON(object: any): AuditedAttributesSDKType {
+ return {
+ owner: isSet(object.owner) ? String(object.owner) : "",
+ auditor: isSet(object.auditor) ? String(object.auditor) : "",
+ attributes: Array.isArray(object?.attributes) ? object.attributes.map((e: any) => Attribute.fromSDKJSON(e)) : []
+ };
+ },
+ toSDK(message: AuditedAttributes): AuditedAttributesSDKType {
+ const obj: any = {};
+ obj.owner = message.owner;
+ obj.auditor = message.auditor;
+ if (message.attributes) {
+ obj.attributes = message.attributes.map(e => e ? Attribute.toSDK(e) : undefined);
+ } else {
+ obj.attributes = [];
+ }
+ return obj;
+ },
+ fromAmino(object: AuditedAttributesAmino): AuditedAttributes {
+ const message = createBaseAuditedAttributes();
+ if (object.owner !== undefined && object.owner !== null) {
+ message.owner = object.owner;
+ }
+ if (object.auditor !== undefined && object.auditor !== null) {
+ message.auditor = object.auditor;
+ }
+ message.attributes = object.attributes?.map(e => Attribute.fromAmino(e)) || [];
+ return message;
+ },
+ toAmino(message: AuditedAttributes): AuditedAttributesAmino {
+ const obj: any = {};
+ obj.owner = message.owner ?? "";
+ obj.auditor = message.auditor ?? "";
+ if (message.attributes) {
+ obj.attributes = message.attributes.map(e => e ? Attribute.toAmino(e) : undefined);
+ } else {
+ obj.attributes = message.attributes;
+ }
+ return obj;
+ },
+ fromAminoMsg(object: AuditedAttributesAminoMsg): AuditedAttributes {
+ return AuditedAttributes.fromAmino(object.value);
+ },
+ toAminoMsg(message: AuditedAttributes): AuditedAttributesAminoMsg {
+ return {
+ type: "akash/audit/v1beta2/audited-attributes",
+ value: AuditedAttributes.toAmino(message)
+ };
+ },
+ fromProtoMsg(message: AuditedAttributesProtoMsg): AuditedAttributes {
+ return AuditedAttributes.decode(message.value);
+ },
+ toProto(message: AuditedAttributes): Uint8Array {
+ return AuditedAttributes.encode(message).finish();
+ },
+ toProtoMsg(message: AuditedAttributes): AuditedAttributesProtoMsg {
+ return {
+ typeUrl: "/akash.audit.v1beta2.AuditedAttributes",
+ value: AuditedAttributes.encode(message).finish()
+ };
+ }
+};
+GlobalDecoderRegistry.register(AuditedAttributes.typeUrl, AuditedAttributes);
+GlobalDecoderRegistry.registerAminoProtoMapping(AuditedAttributes.aminoType, AuditedAttributes.typeUrl);
+function createBaseAttributesResponse(): AttributesResponse {
+ return {
+ attributes: []
+ };
+}
+export const AttributesResponse = {
+ typeUrl: "/akash.audit.v1beta2.AttributesResponse",
+ aminoType: "akash/audit/v1beta2/attributes-response",
+ is(o: any): o is AttributesResponse {
+ return o && (o.$typeUrl === AttributesResponse.typeUrl || Array.isArray(o.attributes) && (!o.attributes.length || AuditedAttributes.is(o.attributes[0])));
+ },
+ isSDK(o: any): o is AttributesResponseSDKType {
+ return o && (o.$typeUrl === AttributesResponse.typeUrl || Array.isArray(o.attributes) && (!o.attributes.length || AuditedAttributes.isSDK(o.attributes[0])));
+ },
+ encode(message: AttributesResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
+ for (const v of message.attributes) {
+ AuditedAttributes.encode(v!, writer.uint32(10).fork()).ldelim();
+ }
+ return writer;
+ },
+ decode(input: BinaryReader | Uint8Array, length?: number): AttributesResponse {
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseAttributesResponse();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ message.attributes.push(AuditedAttributes.decode(reader, reader.uint32()));
+ break;
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ },
+ fromJSON(object: any): AttributesResponse {
+ return {
+ attributes: Array.isArray(object?.attributes) ? object.attributes.map((e: any) => AuditedAttributes.fromJSON(e)) : []
+ };
+ },
+ toJSON(message: AttributesResponse): JsonSafe {
+ const obj: any = {};
+ if (message.attributes) {
+ obj.attributes = message.attributes.map(e => e ? AuditedAttributes.toJSON(e) : undefined);
+ } else {
+ obj.attributes = [];
+ }
+ return obj;
+ },
+ fromPartial, I>>(object: I): AttributesResponse {
+ const message = createBaseAttributesResponse();
+ message.attributes = object.attributes?.map(e => AuditedAttributes.fromPartial(e)) || [];
+ return message;
+ },
+ fromSDK(object: AttributesResponseSDKType): AttributesResponse {
+ return {
+ attributes: Array.isArray(object?.attributes) ? object.attributes.map((e: any) => AuditedAttributes.fromSDK(e)) : []
+ };
+ },
+ fromSDKJSON(object: any): AttributesResponseSDKType {
+ return {
+ attributes: Array.isArray(object?.attributes) ? object.attributes.map((e: any) => AuditedAttributes.fromSDKJSON(e)) : []
+ };
+ },
+ toSDK(message: AttributesResponse): AttributesResponseSDKType {
+ const obj: any = {};
+ if (message.attributes) {
+ obj.attributes = message.attributes.map(e => e ? AuditedAttributes.toSDK(e) : undefined);
+ } else {
+ obj.attributes = [];
+ }
+ return obj;
+ },
+ fromAmino(object: AttributesResponseAmino): AttributesResponse {
+ const message = createBaseAttributesResponse();
+ message.attributes = object.attributes?.map(e => AuditedAttributes.fromAmino(e)) || [];
+ return message;
+ },
+ toAmino(message: AttributesResponse): AttributesResponseAmino {
+ const obj: any = {};
+ if (message.attributes) {
+ obj.attributes = message.attributes.map(e => e ? AuditedAttributes.toAmino(e) : undefined);
+ } else {
+ obj.attributes = message.attributes;
+ }
+ return obj;
+ },
+ fromAminoMsg(object: AttributesResponseAminoMsg): AttributesResponse {
+ return AttributesResponse.fromAmino(object.value);
+ },
+ toAminoMsg(message: AttributesResponse): AttributesResponseAminoMsg {
+ return {
+ type: "akash/audit/v1beta2/attributes-response",
+ value: AttributesResponse.toAmino(message)
+ };
+ },
+ fromProtoMsg(message: AttributesResponseProtoMsg): AttributesResponse {
+ return AttributesResponse.decode(message.value);
+ },
+ toProto(message: AttributesResponse): Uint8Array {
+ return AttributesResponse.encode(message).finish();
+ },
+ toProtoMsg(message: AttributesResponse): AttributesResponseProtoMsg {
+ return {
+ typeUrl: "/akash.audit.v1beta2.AttributesResponse",
+ value: AttributesResponse.encode(message).finish()
+ };
+ }
+};
+GlobalDecoderRegistry.register(AttributesResponse.typeUrl, AttributesResponse);
+GlobalDecoderRegistry.registerAminoProtoMapping(AttributesResponse.aminoType, AttributesResponse.typeUrl);
+function createBaseAttributesFilters(): AttributesFilters {
+ return {
+ auditors: [],
+ owners: []
+ };
+}
+export const AttributesFilters = {
+ typeUrl: "/akash.audit.v1beta2.AttributesFilters",
+ aminoType: "akash/audit/v1beta2/attributes-filters",
+ is(o: any): o is AttributesFilters {
+ return o && (o.$typeUrl === AttributesFilters.typeUrl || Array.isArray(o.auditors) && (!o.auditors.length || typeof o.auditors[0] === "string") && Array.isArray(o.owners) && (!o.owners.length || typeof o.owners[0] === "string"));
+ },
+ isSDK(o: any): o is AttributesFiltersSDKType {
+ return o && (o.$typeUrl === AttributesFilters.typeUrl || Array.isArray(o.auditors) && (!o.auditors.length || typeof o.auditors[0] === "string") && Array.isArray(o.owners) && (!o.owners.length || typeof o.owners[0] === "string"));
+ },
+ encode(message: AttributesFilters, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
+ for (const v of message.auditors) {
+ writer.uint32(10).string(v!);
+ }
+ for (const v of message.owners) {
+ writer.uint32(18).string(v!);
+ }
+ return writer;
+ },
+ decode(input: BinaryReader | Uint8Array, length?: number): AttributesFilters {
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseAttributesFilters();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ message.auditors.push(reader.string());
+ break;
+ case 2:
+ message.owners.push(reader.string());
+ break;
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ },
+ fromJSON(object: any): AttributesFilters {
+ return {
+ auditors: Array.isArray(object?.auditors) ? object.auditors.map((e: any) => String(e)) : [],
+ owners: Array.isArray(object?.owners) ? object.owners.map((e: any) => String(e)) : []
+ };
+ },
+ toJSON(message: AttributesFilters): JsonSafe {
+ const obj: any = {};
+ if (message.auditors) {
+ obj.auditors = message.auditors.map(e => e);
+ } else {
+ obj.auditors = [];
+ }
+ if (message.owners) {
+ obj.owners = message.owners.map(e => e);
+ } else {
+ obj.owners = [];
+ }
+ return obj;
+ },
+ fromPartial, I>>(object: I): AttributesFilters {
+ const message = createBaseAttributesFilters();
+ message.auditors = object.auditors?.map(e => e) || [];
+ message.owners = object.owners?.map(e => e) || [];
+ return message;
+ },
+ fromSDK(object: AttributesFiltersSDKType): AttributesFilters {
+ return {
+ auditors: Array.isArray(object?.auditors) ? object.auditors.map((e: any) => e) : [],
+ owners: Array.isArray(object?.owners) ? object.owners.map((e: any) => e) : []
+ };
+ },
+ fromSDKJSON(object: any): AttributesFiltersSDKType {
+ return {
+ auditors: Array.isArray(object?.auditors) ? object.auditors.map((e: any) => String(e)) : [],
+ owners: Array.isArray(object?.owners) ? object.owners.map((e: any) => String(e)) : []
+ };
+ },
+ toSDK(message: AttributesFilters): AttributesFiltersSDKType {
+ const obj: any = {};
+ if (message.auditors) {
+ obj.auditors = message.auditors.map(e => e);
+ } else {
+ obj.auditors = [];
+ }
+ if (message.owners) {
+ obj.owners = message.owners.map(e => e);
+ } else {
+ obj.owners = [];
+ }
+ return obj;
+ },
+ fromAmino(object: AttributesFiltersAmino): AttributesFilters {
+ const message = createBaseAttributesFilters();
+ message.auditors = object.auditors?.map(e => e) || [];
+ message.owners = object.owners?.map(e => e) || [];
+ return message;
+ },
+ toAmino(message: AttributesFilters): AttributesFiltersAmino {
+ const obj: any = {};
+ if (message.auditors) {
+ obj.auditors = message.auditors.map(e => e);
+ } else {
+ obj.auditors = message.auditors;
+ }
+ if (message.owners) {
+ obj.owners = message.owners.map(e => e);
+ } else {
+ obj.owners = message.owners;
+ }
+ return obj;
+ },
+ fromAminoMsg(object: AttributesFiltersAminoMsg): AttributesFilters {
+ return AttributesFilters.fromAmino(object.value);
+ },
+ toAminoMsg(message: AttributesFilters): AttributesFiltersAminoMsg {
+ return {
+ type: "akash/audit/v1beta2/attributes-filters",
+ value: AttributesFilters.toAmino(message)
+ };
+ },
+ fromProtoMsg(message: AttributesFiltersProtoMsg): AttributesFilters {
+ return AttributesFilters.decode(message.value);
+ },
+ toProto(message: AttributesFilters): Uint8Array {
+ return AttributesFilters.encode(message).finish();
+ },
+ toProtoMsg(message: AttributesFilters): AttributesFiltersProtoMsg {
+ return {
+ typeUrl: "/akash.audit.v1beta2.AttributesFilters",
+ value: AttributesFilters.encode(message).finish()
+ };
+ }
+};
+GlobalDecoderRegistry.register(AttributesFilters.typeUrl, AttributesFilters);
+GlobalDecoderRegistry.registerAminoProtoMapping(AttributesFilters.aminoType, AttributesFilters.typeUrl);
+function createBaseMsgSignProviderAttributes(): MsgSignProviderAttributes {
+ return {
+ owner: "",
+ auditor: "",
+ attributes: []
+ };
+}
+export const MsgSignProviderAttributes = {
+ typeUrl: "/akash.audit.v1beta2.MsgSignProviderAttributes",
+ aminoType: "mymessage-testonly",
+ is(o: any): o is MsgSignProviderAttributes {
+ return o && (o.$typeUrl === MsgSignProviderAttributes.typeUrl || typeof o.owner === "string" && typeof o.auditor === "string" && Array.isArray(o.attributes) && (!o.attributes.length || Attribute.is(o.attributes[0])));
+ },
+ isSDK(o: any): o is MsgSignProviderAttributesSDKType {
+ return o && (o.$typeUrl === MsgSignProviderAttributes.typeUrl || typeof o.owner === "string" && typeof o.auditor === "string" && Array.isArray(o.attributes) && (!o.attributes.length || Attribute.isSDK(o.attributes[0])));
+ },
+ encode(message: MsgSignProviderAttributes, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
+ if (message.owner !== "") {
+ writer.uint32(10).string(message.owner);
+ }
+ if (message.auditor !== "") {
+ writer.uint32(18).string(message.auditor);
+ }
+ for (const v of message.attributes) {
+ Attribute.encode(v!, writer.uint32(26).fork()).ldelim();
+ }
+ return writer;
+ },
+ decode(input: BinaryReader | Uint8Array, length?: number): MsgSignProviderAttributes {
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseMsgSignProviderAttributes();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ message.owner = reader.string();
+ break;
+ case 2:
+ message.auditor = reader.string();
+ break;
+ case 3:
+ message.attributes.push(Attribute.decode(reader, reader.uint32()));
+ break;
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ },
+ fromJSON(object: any): MsgSignProviderAttributes {
+ return {
+ owner: isSet(object.owner) ? String(object.owner) : "",
+ auditor: isSet(object.auditor) ? String(object.auditor) : "",
+ attributes: Array.isArray(object?.attributes) ? object.attributes.map((e: any) => Attribute.fromJSON(e)) : []
+ };
+ },
+ toJSON(message: MsgSignProviderAttributes): JsonSafe {
+ const obj: any = {};
+ message.owner !== undefined && (obj.owner = message.owner);
+ message.auditor !== undefined && (obj.auditor = message.auditor);
+ if (message.attributes) {
+ obj.attributes = message.attributes.map(e => e ? Attribute.toJSON(e) : undefined);
+ } else {
+ obj.attributes = [];
+ }
+ return obj;
+ },
+ fromPartial, I>>(object: I): MsgSignProviderAttributes {
+ const message = createBaseMsgSignProviderAttributes();
+ message.owner = object.owner ?? "";
+ message.auditor = object.auditor ?? "";
+ message.attributes = object.attributes?.map(e => Attribute.fromPartial(e)) || [];
+ return message;
+ },
+ fromSDK(object: MsgSignProviderAttributesSDKType): MsgSignProviderAttributes {
+ return {
+ owner: object?.owner,
+ auditor: object?.auditor,
+ attributes: Array.isArray(object?.attributes) ? object.attributes.map((e: any) => Attribute.fromSDK(e)) : []
+ };
+ },
+ fromSDKJSON(object: any): MsgSignProviderAttributesSDKType {
+ return {
+ owner: isSet(object.owner) ? String(object.owner) : "",
+ auditor: isSet(object.auditor) ? String(object.auditor) : "",
+ attributes: Array.isArray(object?.attributes) ? object.attributes.map((e: any) => Attribute.fromSDKJSON(e)) : []
+ };
+ },
+ toSDK(message: MsgSignProviderAttributes): MsgSignProviderAttributesSDKType {
+ const obj: any = {};
+ obj.owner = message.owner;
+ obj.auditor = message.auditor;
+ if (message.attributes) {
+ obj.attributes = message.attributes.map(e => e ? Attribute.toSDK(e) : undefined);
+ } else {
+ obj.attributes = [];
+ }
+ return obj;
+ },
+ fromAmino(object: MsgSignProviderAttributesAmino): MsgSignProviderAttributes {
+ const message = createBaseMsgSignProviderAttributes();
+ if (object.owner !== undefined && object.owner !== null) {
+ message.owner = object.owner;
+ }
+ if (object.auditor !== undefined && object.auditor !== null) {
+ message.auditor = object.auditor;
+ }
+ message.attributes = object.attributes?.map(e => Attribute.fromAmino(e)) || [];
+ return message;
+ },
+ toAmino(message: MsgSignProviderAttributes): MsgSignProviderAttributesAmino {
+ const obj: any = {};
+ obj.owner = message.owner ?? "";
+ obj.auditor = message.auditor ?? "";
+ if (message.attributes) {
+ obj.attributes = message.attributes.map(e => e ? Attribute.toAmino(e) : undefined);
+ } else {
+ obj.attributes = message.attributes;
+ }
+ return obj;
+ },
+ fromAminoMsg(object: MsgSignProviderAttributesAminoMsg): MsgSignProviderAttributes {
+ return MsgSignProviderAttributes.fromAmino(object.value);
+ },
+ toAminoMsg(message: MsgSignProviderAttributes): MsgSignProviderAttributesAminoMsg {
+ return {
+ type: "mymessage-testonly",
+ value: MsgSignProviderAttributes.toAmino(message)
+ };
+ },
+ fromProtoMsg(message: MsgSignProviderAttributesProtoMsg): MsgSignProviderAttributes {
+ return MsgSignProviderAttributes.decode(message.value);
+ },
+ toProto(message: MsgSignProviderAttributes): Uint8Array {
+ return MsgSignProviderAttributes.encode(message).finish();
+ },
+ toProtoMsg(message: MsgSignProviderAttributes): MsgSignProviderAttributesProtoMsg {
+ return {
+ typeUrl: "/akash.audit.v1beta2.MsgSignProviderAttributes",
+ value: MsgSignProviderAttributes.encode(message).finish()
+ };
+ }
+};
+GlobalDecoderRegistry.register(MsgSignProviderAttributes.typeUrl, MsgSignProviderAttributes);
+GlobalDecoderRegistry.registerAminoProtoMapping(MsgSignProviderAttributes.aminoType, MsgSignProviderAttributes.typeUrl);
+function createBaseMsgSignProviderAttributesResponse(): MsgSignProviderAttributesResponse {
+ return {};
+}
+export const MsgSignProviderAttributesResponse = {
+ typeUrl: "/akash.audit.v1beta2.MsgSignProviderAttributesResponse",
+ aminoType: "akash/audit/v1beta2/testonly-sign-provider-attributes-response",
+ is(o: any): o is MsgSignProviderAttributesResponse {
+ return o && o.$typeUrl === MsgSignProviderAttributesResponse.typeUrl;
+ },
+ isSDK(o: any): o is MsgSignProviderAttributesResponseSDKType {
+ return o && o.$typeUrl === MsgSignProviderAttributesResponse.typeUrl;
+ },
+ encode(_: MsgSignProviderAttributesResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
+ return writer;
+ },
+ decode(input: BinaryReader | Uint8Array, length?: number): MsgSignProviderAttributesResponse {
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseMsgSignProviderAttributesResponse();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ },
+ fromJSON(_: any): MsgSignProviderAttributesResponse {
+ return {};
+ },
+ toJSON(_: MsgSignProviderAttributesResponse): JsonSafe {
+ const obj: any = {};
+ return obj;
+ },
+ fromPartial, I>>(_: I): MsgSignProviderAttributesResponse {
+ const message = createBaseMsgSignProviderAttributesResponse();
+ return message;
+ },
+ fromSDK(_: MsgSignProviderAttributesResponseSDKType): MsgSignProviderAttributesResponse {
+ return {};
+ },
+ fromSDKJSON(_: any): MsgSignProviderAttributesResponseSDKType {
+ return {};
+ },
+ toSDK(_: MsgSignProviderAttributesResponse): MsgSignProviderAttributesResponseSDKType {
+ const obj: any = {};
+ return obj;
+ },
+ fromAmino(_: MsgSignProviderAttributesResponseAmino): MsgSignProviderAttributesResponse {
+ const message = createBaseMsgSignProviderAttributesResponse();
+ return message;
+ },
+ toAmino(_: MsgSignProviderAttributesResponse): MsgSignProviderAttributesResponseAmino {
+ const obj: any = {};
+ return obj;
+ },
+ fromAminoMsg(object: MsgSignProviderAttributesResponseAminoMsg): MsgSignProviderAttributesResponse {
+ return MsgSignProviderAttributesResponse.fromAmino(object.value);
+ },
+ toAminoMsg(message: MsgSignProviderAttributesResponse): MsgSignProviderAttributesResponseAminoMsg {
+ return {
+ type: "akash/audit/v1beta2/testonly-sign-provider-attributes-response",
+ value: MsgSignProviderAttributesResponse.toAmino(message)
+ };
+ },
+ fromProtoMsg(message: MsgSignProviderAttributesResponseProtoMsg): MsgSignProviderAttributesResponse {
+ return MsgSignProviderAttributesResponse.decode(message.value);
+ },
+ toProto(message: MsgSignProviderAttributesResponse): Uint8Array {
+ return MsgSignProviderAttributesResponse.encode(message).finish();
+ },
+ toProtoMsg(message: MsgSignProviderAttributesResponse): MsgSignProviderAttributesResponseProtoMsg {
+ return {
+ typeUrl: "/akash.audit.v1beta2.MsgSignProviderAttributesResponse",
+ value: MsgSignProviderAttributesResponse.encode(message).finish()
+ };
+ }
+};
+GlobalDecoderRegistry.register(MsgSignProviderAttributesResponse.typeUrl, MsgSignProviderAttributesResponse);
+GlobalDecoderRegistry.registerAminoProtoMapping(MsgSignProviderAttributesResponse.aminoType, MsgSignProviderAttributesResponse.typeUrl);
+function createBaseMsgDeleteProviderAttributes(): MsgDeleteProviderAttributes {
+ return {
+ owner: "",
+ auditor: "",
+ keys: []
+ };
+}
+export const MsgDeleteProviderAttributes = {
+ typeUrl: "/akash.audit.v1beta2.MsgDeleteProviderAttributes",
+ aminoType: "akash/audit/v1beta2/testonly-delete-provider-attributes",
+ is(o: any): o is MsgDeleteProviderAttributes {
+ return o && (o.$typeUrl === MsgDeleteProviderAttributes.typeUrl || typeof o.owner === "string" && typeof o.auditor === "string" && Array.isArray(o.keys) && (!o.keys.length || typeof o.keys[0] === "string"));
+ },
+ isSDK(o: any): o is MsgDeleteProviderAttributesSDKType {
+ return o && (o.$typeUrl === MsgDeleteProviderAttributes.typeUrl || typeof o.owner === "string" && typeof o.auditor === "string" && Array.isArray(o.keys) && (!o.keys.length || typeof o.keys[0] === "string"));
+ },
+ encode(message: MsgDeleteProviderAttributes, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
+ if (message.owner !== "") {
+ writer.uint32(10).string(message.owner);
+ }
+ if (message.auditor !== "") {
+ writer.uint32(18).string(message.auditor);
+ }
+ for (const v of message.keys) {
+ writer.uint32(26).string(v!);
+ }
+ return writer;
+ },
+ decode(input: BinaryReader | Uint8Array, length?: number): MsgDeleteProviderAttributes {
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseMsgDeleteProviderAttributes();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ message.owner = reader.string();
+ break;
+ case 2:
+ message.auditor = reader.string();
+ break;
+ case 3:
+ message.keys.push(reader.string());
+ break;
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ },
+ fromJSON(object: any): MsgDeleteProviderAttributes {
+ return {
+ owner: isSet(object.owner) ? String(object.owner) : "",
+ auditor: isSet(object.auditor) ? String(object.auditor) : "",
+ keys: Array.isArray(object?.keys) ? object.keys.map((e: any) => String(e)) : []
+ };
+ },
+ toJSON(message: MsgDeleteProviderAttributes): JsonSafe {
+ const obj: any = {};
+ message.owner !== undefined && (obj.owner = message.owner);
+ message.auditor !== undefined && (obj.auditor = message.auditor);
+ if (message.keys) {
+ obj.keys = message.keys.map(e => e);
+ } else {
+ obj.keys = [];
+ }
+ return obj;
+ },
+ fromPartial, I>>(object: I): MsgDeleteProviderAttributes {
+ const message = createBaseMsgDeleteProviderAttributes();
+ message.owner = object.owner ?? "";
+ message.auditor = object.auditor ?? "";
+ message.keys = object.keys?.map(e => e) || [];
+ return message;
+ },
+ fromSDK(object: MsgDeleteProviderAttributesSDKType): MsgDeleteProviderAttributes {
+ return {
+ owner: object?.owner,
+ auditor: object?.auditor,
+ keys: Array.isArray(object?.keys) ? object.keys.map((e: any) => e) : []
+ };
+ },
+ fromSDKJSON(object: any): MsgDeleteProviderAttributesSDKType {
+ return {
+ owner: isSet(object.owner) ? String(object.owner) : "",
+ auditor: isSet(object.auditor) ? String(object.auditor) : "",
+ keys: Array.isArray(object?.keys) ? object.keys.map((e: any) => String(e)) : []
+ };
+ },
+ toSDK(message: MsgDeleteProviderAttributes): MsgDeleteProviderAttributesSDKType {
+ const obj: any = {};
+ obj.owner = message.owner;
+ obj.auditor = message.auditor;
+ if (message.keys) {
+ obj.keys = message.keys.map(e => e);
+ } else {
+ obj.keys = [];
+ }
+ return obj;
+ },
+ fromAmino(object: MsgDeleteProviderAttributesAmino): MsgDeleteProviderAttributes {
+ const message = createBaseMsgDeleteProviderAttributes();
+ if (object.owner !== undefined && object.owner !== null) {
+ message.owner = object.owner;
+ }
+ if (object.auditor !== undefined && object.auditor !== null) {
+ message.auditor = object.auditor;
+ }
+ message.keys = object.keys?.map(e => e) || [];
+ return message;
+ },
+ toAmino(message: MsgDeleteProviderAttributes): MsgDeleteProviderAttributesAmino {
+ const obj: any = {};
+ obj.owner = message.owner ?? "";
+ obj.auditor = message.auditor ?? "";
+ if (message.keys) {
+ obj.keys = message.keys.map(e => e);
+ } else {
+ obj.keys = message.keys;
+ }
+ return obj;
+ },
+ fromAminoMsg(object: MsgDeleteProviderAttributesAminoMsg): MsgDeleteProviderAttributes {
+ return MsgDeleteProviderAttributes.fromAmino(object.value);
+ },
+ toAminoMsg(message: MsgDeleteProviderAttributes): MsgDeleteProviderAttributesAminoMsg {
+ return {
+ type: "akash/audit/v1beta2/testonly-delete-provider-attributes",
+ value: MsgDeleteProviderAttributes.toAmino(message)
+ };
+ },
+ fromProtoMsg(message: MsgDeleteProviderAttributesProtoMsg): MsgDeleteProviderAttributes {
+ return MsgDeleteProviderAttributes.decode(message.value);
+ },
+ toProto(message: MsgDeleteProviderAttributes): Uint8Array {
+ return MsgDeleteProviderAttributes.encode(message).finish();
+ },
+ toProtoMsg(message: MsgDeleteProviderAttributes): MsgDeleteProviderAttributesProtoMsg {
+ return {
+ typeUrl: "/akash.audit.v1beta2.MsgDeleteProviderAttributes",
+ value: MsgDeleteProviderAttributes.encode(message).finish()
+ };
+ }
+};
+GlobalDecoderRegistry.register(MsgDeleteProviderAttributes.typeUrl, MsgDeleteProviderAttributes);
+GlobalDecoderRegistry.registerAminoProtoMapping(MsgDeleteProviderAttributes.aminoType, MsgDeleteProviderAttributes.typeUrl);
+function createBaseMsgDeleteProviderAttributesResponse(): MsgDeleteProviderAttributesResponse {
+ return {};
+}
+export const MsgDeleteProviderAttributesResponse = {
+ typeUrl: "/akash.audit.v1beta2.MsgDeleteProviderAttributesResponse",
+ aminoType: "akash/audit/v1beta2/testonly-delete-provider-attributes-response",
+ is(o: any): o is MsgDeleteProviderAttributesResponse {
+ return o && o.$typeUrl === MsgDeleteProviderAttributesResponse.typeUrl;
+ },
+ isSDK(o: any): o is MsgDeleteProviderAttributesResponseSDKType {
+ return o && o.$typeUrl === MsgDeleteProviderAttributesResponse.typeUrl;
+ },
+ encode(_: MsgDeleteProviderAttributesResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
+ return writer;
+ },
+ decode(input: BinaryReader | Uint8Array, length?: number): MsgDeleteProviderAttributesResponse {
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseMsgDeleteProviderAttributesResponse();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ },
+ fromJSON(_: any): MsgDeleteProviderAttributesResponse {
+ return {};
+ },
+ toJSON(_: MsgDeleteProviderAttributesResponse): JsonSafe {
+ const obj: any = {};
+ return obj;
+ },
+ fromPartial, I>>(_: I): MsgDeleteProviderAttributesResponse {
+ const message = createBaseMsgDeleteProviderAttributesResponse();
+ return message;
+ },
+ fromSDK(_: MsgDeleteProviderAttributesResponseSDKType): MsgDeleteProviderAttributesResponse {
+ return {};
+ },
+ fromSDKJSON(_: any): MsgDeleteProviderAttributesResponseSDKType {
+ return {};
+ },
+ toSDK(_: MsgDeleteProviderAttributesResponse): MsgDeleteProviderAttributesResponseSDKType {
+ const obj: any = {};
+ return obj;
+ },
+ fromAmino(_: MsgDeleteProviderAttributesResponseAmino): MsgDeleteProviderAttributesResponse {
+ const message = createBaseMsgDeleteProviderAttributesResponse();
+ return message;
+ },
+ toAmino(_: MsgDeleteProviderAttributesResponse): MsgDeleteProviderAttributesResponseAmino {
+ const obj: any = {};
+ return obj;
+ },
+ fromAminoMsg(object: MsgDeleteProviderAttributesResponseAminoMsg): MsgDeleteProviderAttributesResponse {
+ return MsgDeleteProviderAttributesResponse.fromAmino(object.value);
+ },
+ toAminoMsg(message: MsgDeleteProviderAttributesResponse): MsgDeleteProviderAttributesResponseAminoMsg {
+ return {
+ type: "akash/audit/v1beta2/testonly-delete-provider-attributes-response",
+ value: MsgDeleteProviderAttributesResponse.toAmino(message)
+ };
+ },
+ fromProtoMsg(message: MsgDeleteProviderAttributesResponseProtoMsg): MsgDeleteProviderAttributesResponse {
+ return MsgDeleteProviderAttributesResponse.decode(message.value);
+ },
+ toProto(message: MsgDeleteProviderAttributesResponse): Uint8Array {
+ return MsgDeleteProviderAttributesResponse.encode(message).finish();
+ },
+ toProtoMsg(message: MsgDeleteProviderAttributesResponse): MsgDeleteProviderAttributesResponseProtoMsg {
+ return {
+ typeUrl: "/akash.audit.v1beta2.MsgDeleteProviderAttributesResponse",
+ value: MsgDeleteProviderAttributesResponse.encode(message).finish()
+ };
+ }
+};
+GlobalDecoderRegistry.register(MsgDeleteProviderAttributesResponse.typeUrl, MsgDeleteProviderAttributesResponse);
+GlobalDecoderRegistry.registerAminoProtoMapping(MsgDeleteProviderAttributesResponse.aminoType, MsgDeleteProviderAttributesResponse.typeUrl);
\ No newline at end of file
diff --git a/examples/injective-vue/src/codegen/akash/audit/v1beta2/genesis.ts b/examples/injective-vue/src/codegen/akash/audit/v1beta2/genesis.ts
new file mode 100644
index 000000000..f7c1b5baa
--- /dev/null
+++ b/examples/injective-vue/src/codegen/akash/audit/v1beta2/genesis.ts
@@ -0,0 +1,135 @@
+import { AuditedAttributes, AuditedAttributesSDKType } from "./audit";
+import { BinaryReader, BinaryWriter } from "../../../binary";
+import { JsonSafe } from "../../../json-safe";
+import { DeepPartial, Exact } from "../../../helpers";
+import { GlobalDecoderRegistry } from "../../../registry";
+import { ComputedRef } from "vue";
+export const protobufPackage = "akash.audit.v1beta2";
+/** GenesisState defines the basic genesis state used by audit module */
+export interface GenesisState {
+ attributes: AuditedAttributes[];
+}
+export interface ReactiveGenesisState {
+ attributes: ComputedRef;
+}
+export interface GenesisStateProtoMsg {
+ typeUrl: "/akash.audit.v1beta2.GenesisState";
+ value: Uint8Array;
+}
+/** GenesisState defines the basic genesis state used by audit module */
+export interface GenesisStateSDKType {
+ attributes: AuditedAttributesSDKType[];
+}
+function createBaseGenesisState(): GenesisState {
+ return {
+ attributes: []
+ };
+}
+export const GenesisState = {
+ typeUrl: "/akash.audit.v1beta2.GenesisState",
+ aminoType: "akash/audit/v1beta2/genesis-state",
+ is(o: any): o is GenesisState {
+ return o && (o.$typeUrl === GenesisState.typeUrl || Array.isArray(o.attributes) && (!o.attributes.length || AuditedAttributes.is(o.attributes[0])));
+ },
+ isSDK(o: any): o is GenesisStateSDKType {
+ return o && (o.$typeUrl === GenesisState.typeUrl || Array.isArray(o.attributes) && (!o.attributes.length || AuditedAttributes.isSDK(o.attributes[0])));
+ },
+ encode(message: GenesisState, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
+ for (const v of message.attributes) {
+ AuditedAttributes.encode(v!, writer.uint32(10).fork()).ldelim();
+ }
+ return writer;
+ },
+ decode(input: BinaryReader | Uint8Array, length?: number): GenesisState {
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseGenesisState();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ message.attributes.push(AuditedAttributes.decode(reader, reader.uint32()));
+ break;
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ },
+ fromJSON(object: any): GenesisState {
+ return {
+ attributes: Array.isArray(object?.attributes) ? object.attributes.map((e: any) => AuditedAttributes.fromJSON(e)) : []
+ };
+ },
+ toJSON(message: GenesisState): JsonSafe {
+ const obj: any = {};
+ if (message.attributes) {
+ obj.attributes = message.attributes.map(e => e ? AuditedAttributes.toJSON(e) : undefined);
+ } else {
+ obj.attributes = [];
+ }
+ return obj;
+ },
+ fromPartial, I>>(object: I): GenesisState {
+ const message = createBaseGenesisState();
+ message.attributes = object.attributes?.map(e => AuditedAttributes.fromPartial(e)) || [];
+ return message;
+ },
+ fromSDK(object: GenesisStateSDKType): GenesisState {
+ return {
+ attributes: Array.isArray(object?.attributes) ? object.attributes.map((e: any) => AuditedAttributes.fromSDK(e)) : []
+ };
+ },
+ fromSDKJSON(object: any): GenesisStateSDKType {
+ return {
+ attributes: Array.isArray(object?.attributes) ? object.attributes.map((e: any) => AuditedAttributes.fromSDKJSON(e)) : []
+ };
+ },
+ toSDK(message: GenesisState): GenesisStateSDKType {
+ const obj: any = {};
+ if (message.attributes) {
+ obj.attributes = message.attributes.map(e => e ? AuditedAttributes.toSDK(e) : undefined);
+ } else {
+ obj.attributes = [];
+ }
+ return obj;
+ },
+ fromAmino(object: GenesisStateAmino): GenesisState {
+ const message = createBaseGenesisState();
+ message.attributes = object.attributes?.map(e => AuditedAttributes.fromAmino(e)) || [];
+ return message;
+ },
+ toAmino(message: GenesisState): GenesisStateAmino {
+ const obj: any = {};
+ if (message.attributes) {
+ obj.attributes = message.attributes.map(e => e ? AuditedAttributes.toAmino(e) : undefined);
+ } else {
+ obj.attributes = message.attributes;
+ }
+ return obj;
+ },
+ fromAminoMsg(object: GenesisStateAminoMsg): GenesisState {
+ return GenesisState.fromAmino(object.value);
+ },
+ toAminoMsg(message: GenesisState): GenesisStateAminoMsg {
+ return {
+ type: "akash/audit/v1beta2/genesis-state",
+ value: GenesisState.toAmino(message)
+ };
+ },
+ fromProtoMsg(message: GenesisStateProtoMsg): GenesisState {
+ return GenesisState.decode(message.value);
+ },
+ toProto(message: GenesisState): Uint8Array {
+ return GenesisState.encode(message).finish();
+ },
+ toProtoMsg(message: GenesisState): GenesisStateProtoMsg {
+ return {
+ typeUrl: "/akash.audit.v1beta2.GenesisState",
+ value: GenesisState.encode(message).finish()
+ };
+ }
+};
+GlobalDecoderRegistry.register(GenesisState.typeUrl, GenesisState);
+GlobalDecoderRegistry.registerAminoProtoMapping(GenesisState.aminoType, GenesisState.typeUrl);
\ No newline at end of file
diff --git a/examples/injective-vue/src/codegen/akash/audit/v1beta2/query.lcd.ts b/examples/injective-vue/src/codegen/akash/audit/v1beta2/query.lcd.ts
new file mode 100644
index 000000000..5a2e5d515
--- /dev/null
+++ b/examples/injective-vue/src/codegen/akash/audit/v1beta2/query.lcd.ts
@@ -0,0 +1,63 @@
+import { PageRequest, PageRequestSDKType, PageResponse, PageResponseSDKType } from "../../../cosmos/base/query/v1beta1/pagination";
+import { Provider, ProviderSDKType } from "./audit";
+import { setPaginationParams } from "../../../helpers";
+import { LCDClient } from "@cosmology/lcd";
+import { QueryAllProvidersAttributesRequest, QueryAllProvidersAttributesRequestSDKType, QueryProvidersResponse, QueryProvidersResponseSDKType, QueryProviderAttributesRequest, QueryProviderAttributesRequestSDKType, QueryProviderAuditorRequest, QueryProviderAuditorRequestSDKType, QueryAuditorAttributesRequest, QueryAuditorAttributesRequestSDKType } from "./query";
+export class LCDQueryClient {
+ req: LCDClient;
+ constructor({
+ requestClient
+ }: {
+ requestClient: LCDClient;
+ }) {
+ this.req = requestClient;
+ }
+ /* AllProvidersAttributes queries all providers
+ buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE
+ buf:lint:ignore RPC_RESPONSE_STANDARD_NAME */
+ allProvidersAttributes = async (params: QueryAllProvidersAttributesRequest = {
+ pagination: undefined
+ }): Promise => {
+ const options: any = {
+ params: {}
+ };
+ if (typeof params?.pagination !== "undefined") {
+ setPaginationParams(options, params.pagination);
+ }
+ const endpoint = `akash/audit/v1beta2/audit/attributes/list`;
+ return QueryProvidersResponse.fromSDKJSON(await this.req.get(endpoint, options));
+ };
+ /* ProviderAttributes queries all provider signed attributes
+ buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE
+ buf:lint:ignore RPC_RESPONSE_STANDARD_NAME */
+ providerAttributes = async (params: QueryProviderAttributesRequest): Promise => {
+ const options: any = {
+ params: {}
+ };
+ if (typeof params?.pagination !== "undefined") {
+ setPaginationParams(options, params.pagination);
+ }
+ const endpoint = `akash/audit/v1beta2/audit/attributes/${params.owner}/list`;
+ return QueryProvidersResponse.fromSDKJSON(await this.req.get(endpoint, options));
+ };
+ /* ProviderAuditorAttributes queries provider signed attributes by specific auditor
+ buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE
+ buf:lint:ignore RPC_RESPONSE_STANDARD_NAME */
+ providerAuditorAttributes = async (params: QueryProviderAuditorRequest): Promise => {
+ const endpoint = `akash/audit/v1beta2/audit/attributes/${params.auditor}/${params.owner}`;
+ return QueryProvidersResponse.fromSDKJSON(await this.req.get(endpoint));
+ };
+ /* AuditorAttributes queries all providers signed by this auditor
+ buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE
+ buf:lint:ignore RPC_RESPONSE_STANDARD_NAME */
+ auditorAttributes = async (params: QueryAuditorAttributesRequest): Promise => {
+ const options: any = {
+ params: {}
+ };
+ if (typeof params?.pagination !== "undefined") {
+ setPaginationParams(options, params.pagination);
+ }
+ const endpoint = `akash/provider/v1beta2/auditor/${params.auditor}/list`;
+ return QueryProvidersResponse.fromSDKJSON(await this.req.get(endpoint, options));
+ };
+}
\ No newline at end of file
diff --git a/examples/injective-vue/src/codegen/akash/audit/v1beta2/query.rpc.Query.ts b/examples/injective-vue/src/codegen/akash/audit/v1beta2/query.rpc.Query.ts
new file mode 100644
index 000000000..a07b59c2f
--- /dev/null
+++ b/examples/injective-vue/src/codegen/akash/audit/v1beta2/query.rpc.Query.ts
@@ -0,0 +1,91 @@
+import { PageRequest, PageRequestSDKType, PageResponse, PageResponseSDKType } from "../../../cosmos/base/query/v1beta1/pagination";
+import { Provider, ProviderSDKType } from "./audit";
+import { Rpc } from "../../../helpers";
+import { BinaryReader } from "../../../binary";
+import { QueryClient, createProtobufRpcClient } from "@cosmjs/stargate";
+import { QueryAllProvidersAttributesRequest, QueryAllProvidersAttributesRequestSDKType, QueryProvidersResponse, QueryProvidersResponseSDKType, QueryProviderAttributesRequest, QueryProviderAttributesRequestSDKType, QueryProviderAuditorRequest, QueryProviderAuditorRequestSDKType, QueryAuditorAttributesRequest, QueryAuditorAttributesRequestSDKType, ReactiveQueryAllProvidersAttributesRequest, ReactiveQueryProviderAttributesRequest, ReactiveQueryProviderAuditorRequest, ReactiveQueryAuditorAttributesRequest } from "./query";
+/** Query defines the gRPC querier service */
+export interface Query {
+ /**
+ * AllProvidersAttributes queries all providers
+ * buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE
+ * buf:lint:ignore RPC_RESPONSE_STANDARD_NAME
+ */
+ allProvidersAttributes(request?: QueryAllProvidersAttributesRequest): Promise;
+ /**
+ * ProviderAttributes queries all provider signed attributes
+ * buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE
+ * buf:lint:ignore RPC_RESPONSE_STANDARD_NAME
+ */
+ providerAttributes(request: QueryProviderAttributesRequest): Promise;
+ /**
+ * ProviderAuditorAttributes queries provider signed attributes by specific auditor
+ * buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE
+ * buf:lint:ignore RPC_RESPONSE_STANDARD_NAME
+ */
+ providerAuditorAttributes(request: QueryProviderAuditorRequest): Promise;
+ /**
+ * AuditorAttributes queries all providers signed by this auditor
+ * buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE
+ * buf:lint:ignore RPC_RESPONSE_STANDARD_NAME
+ */
+ auditorAttributes(request: QueryAuditorAttributesRequest): Promise;
+}
+export class QueryClientImpl implements Query {
+ private readonly rpc: Rpc;
+ constructor(rpc: Rpc) {
+ this.rpc = rpc;
+ }
+ /* AllProvidersAttributes queries all providers
+ buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE
+ buf:lint:ignore RPC_RESPONSE_STANDARD_NAME */
+ allProvidersAttributes = async (request: QueryAllProvidersAttributesRequest = {
+ pagination: undefined
+ }): Promise => {
+ const data = QueryAllProvidersAttributesRequest.encode(request).finish();
+ const promise = this.rpc.request("akash.audit.v1beta2.Query", "AllProvidersAttributes", data);
+ return promise.then(data => QueryProvidersResponse.decode(new BinaryReader(data)));
+ };
+ /* ProviderAttributes queries all provider signed attributes
+ buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE
+ buf:lint:ignore RPC_RESPONSE_STANDARD_NAME */
+ providerAttributes = async (request: QueryProviderAttributesRequest): Promise => {
+ const data = QueryProviderAttributesRequest.encode(request).finish();
+ const promise = this.rpc.request("akash.audit.v1beta2.Query", "ProviderAttributes", data);
+ return promise.then(data => QueryProvidersResponse.decode(new BinaryReader(data)));
+ };
+ /* ProviderAuditorAttributes queries provider signed attributes by specific auditor
+ buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE
+ buf:lint:ignore RPC_RESPONSE_STANDARD_NAME */
+ providerAuditorAttributes = async (request: QueryProviderAuditorRequest): Promise => {
+ const data = QueryProviderAuditorRequest.encode(request).finish();
+ const promise = this.rpc.request("akash.audit.v1beta2.Query", "ProviderAuditorAttributes", data);
+ return promise.then(data => QueryProvidersResponse.decode(new BinaryReader(data)));
+ };
+ /* AuditorAttributes queries all providers signed by this auditor
+ buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE
+ buf:lint:ignore RPC_RESPONSE_STANDARD_NAME */
+ auditorAttributes = async (request: QueryAuditorAttributesRequest): Promise => {
+ const data = QueryAuditorAttributesRequest.encode(request).finish();
+ const promise = this.rpc.request("akash.audit.v1beta2.Query", "AuditorAttributes", data);
+ return promise.then(data => QueryProvidersResponse.decode(new BinaryReader(data)));
+ };
+}
+export const createRpcQueryExtension = (base: QueryClient) => {
+ const rpc = createProtobufRpcClient(base);
+ const queryService = new QueryClientImpl(rpc);
+ return {
+ allProvidersAttributes(request?: QueryAllProvidersAttributesRequest): Promise {
+ return queryService.allProvidersAttributes(request);
+ },
+ providerAttributes(request: QueryProviderAttributesRequest): Promise {
+ return queryService.providerAttributes(request);
+ },
+ providerAuditorAttributes(request: QueryProviderAuditorRequest): Promise {
+ return queryService.providerAuditorAttributes(request);
+ },
+ auditorAttributes(request: QueryAuditorAttributesRequest): Promise {
+ return queryService.auditorAttributes(request);
+ }
+ };
+};
\ No newline at end of file
diff --git a/examples/injective-vue/src/codegen/akash/audit/v1beta2/query.ts b/examples/injective-vue/src/codegen/akash/audit/v1beta2/query.ts
new file mode 100644
index 000000000..de02affaa
--- /dev/null
+++ b/examples/injective-vue/src/codegen/akash/audit/v1beta2/query.ts
@@ -0,0 +1,826 @@
+import { PageRequest, PageRequestSDKType, PageResponse, PageResponseSDKType } from "../../../cosmos/base/query/v1beta1/pagination";
+import { Provider, ProviderSDKType } from "./audit";
+import { BinaryReader, BinaryWriter } from "../../../binary";
+import { isSet, DeepPartial, Exact } from "../../../helpers";
+import { JsonSafe } from "../../../json-safe";
+import { GlobalDecoderRegistry } from "../../../registry";
+import { ComputedRef } from "vue";
+export const protobufPackage = "akash.audit.v1beta2";
+/** QueryProvidersResponse is response type for the Query/Providers RPC method */
+export interface QueryProvidersResponse {
+ providers: Provider[];
+ pagination?: PageResponse;
+}
+export interface ReactiveQueryProvidersResponse {
+ providers: ComputedRef;
+ pagination?: ComputedRef;
+}
+export interface QueryProvidersResponseProtoMsg {
+ typeUrl: "/akash.audit.v1beta2.QueryProvidersResponse";
+ value: Uint8Array;
+}
+/** QueryProvidersResponse is response type for the Query/Providers RPC method */
+export interface QueryProvidersResponseSDKType {
+ providers: ProviderSDKType[];
+ pagination?: PageResponseSDKType;
+}
+/** QueryProviderRequest is request type for the Query/Provider RPC method */
+export interface QueryProviderRequest {
+ auditor: string;
+ owner: string;
+}
+export interface ReactiveQueryProviderRequest {
+ auditor: ComputedRef;
+ owner: ComputedRef;
+}
+export interface QueryProviderRequestProtoMsg {
+ typeUrl: "/akash.audit.v1beta2.QueryProviderRequest";
+ value: Uint8Array;
+}
+/** QueryProviderRequest is request type for the Query/Provider RPC method */
+export interface QueryProviderRequestSDKType {
+ auditor: string;
+ owner: string;
+}
+/** QueryAllProvidersAttributesRequest is request type for the Query/All Providers RPC method */
+export interface QueryAllProvidersAttributesRequest {
+ pagination?: PageRequest;
+}
+export interface ReactiveQueryAllProvidersAttributesRequest {
+ pagination?: ComputedRef;
+}
+export interface QueryAllProvidersAttributesRequestProtoMsg {
+ typeUrl: "/akash.audit.v1beta2.QueryAllProvidersAttributesRequest";
+ value: Uint8Array;
+}
+/** QueryAllProvidersAttributesRequest is request type for the Query/All Providers RPC method */
+export interface QueryAllProvidersAttributesRequestSDKType {
+ pagination?: PageRequestSDKType;
+}
+/** QueryProviderAttributesRequest is request type for the Query/Provider RPC method */
+export interface QueryProviderAttributesRequest {
+ owner: string;
+ pagination?: PageRequest;
+}
+export interface ReactiveQueryProviderAttributesRequest {
+ owner: ComputedRef;
+ pagination?: ComputedRef;
+}
+export interface QueryProviderAttributesRequestProtoMsg {
+ typeUrl: "/akash.audit.v1beta2.QueryProviderAttributesRequest";
+ value: Uint8Array;
+}
+/** QueryProviderAttributesRequest is request type for the Query/Provider RPC method */
+export interface QueryProviderAttributesRequestSDKType {
+ owner: string;
+ pagination?: PageRequestSDKType;
+}
+/** QueryProviderAuditorRequest is request type for the Query/Providers RPC method */
+export interface QueryProviderAuditorRequest {
+ auditor: string;
+ owner: string;
+}
+export interface ReactiveQueryProviderAuditorRequest {
+ auditor: ComputedRef;
+ owner: ComputedRef;
+}
+export interface QueryProviderAuditorRequestProtoMsg {
+ typeUrl: "/akash.audit.v1beta2.QueryProviderAuditorRequest";
+ value: Uint8Array;
+}
+/** QueryProviderAuditorRequest is request type for the Query/Providers RPC method */
+export interface QueryProviderAuditorRequestSDKType {
+ auditor: string;
+ owner: string;
+}
+/** QueryAuditorAttributesRequest is request type for the Query/Providers RPC method */
+export interface QueryAuditorAttributesRequest {
+ auditor: string;
+ pagination?: PageRequest;
+}
+export interface ReactiveQueryAuditorAttributesRequest {
+ auditor: ComputedRef;
+ pagination?: ComputedRef;
+}
+export interface QueryAuditorAttributesRequestProtoMsg {
+ typeUrl: "/akash.audit.v1beta2.QueryAuditorAttributesRequest";
+ value: Uint8Array;
+}
+/** QueryAuditorAttributesRequest is request type for the Query/Providers RPC method */
+export interface QueryAuditorAttributesRequestSDKType {
+ auditor: string;
+ pagination?: PageRequestSDKType;
+}
+function createBaseQueryProvidersResponse(): QueryProvidersResponse {
+ return {
+ providers: [],
+ pagination: undefined
+ };
+}
+export const QueryProvidersResponse = {
+ typeUrl: "/akash.audit.v1beta2.QueryProvidersResponse",
+ aminoType: "akash/audit/v1beta2/query-providers-response",
+ is(o: any): o is QueryProvidersResponse {
+ return o && (o.$typeUrl === QueryProvidersResponse.typeUrl || Array.isArray(o.providers) && (!o.providers.length || Provider.is(o.providers[0])));
+ },
+ isSDK(o: any): o is QueryProvidersResponseSDKType {
+ return o && (o.$typeUrl === QueryProvidersResponse.typeUrl || Array.isArray(o.providers) && (!o.providers.length || Provider.isSDK(o.providers[0])));
+ },
+ encode(message: QueryProvidersResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
+ for (const v of message.providers) {
+ Provider.encode(v!, writer.uint32(10).fork()).ldelim();
+ }
+ if (message.pagination !== undefined) {
+ PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
+ }
+ return writer;
+ },
+ decode(input: BinaryReader | Uint8Array, length?: number): QueryProvidersResponse {
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseQueryProvidersResponse();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ message.providers.push(Provider.decode(reader, reader.uint32()));
+ break;
+ case 2:
+ message.pagination = PageResponse.decode(reader, reader.uint32());
+ break;
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ },
+ fromJSON(object: any): QueryProvidersResponse {
+ return {
+ providers: Array.isArray(object?.providers) ? object.providers.map((e: any) => Provider.fromJSON(e)) : [],
+ pagination: isSet(object.pagination) ? PageResponse.fromJSON(object.pagination) : undefined
+ };
+ },
+ toJSON(message: QueryProvidersResponse): JsonSafe {
+ const obj: any = {};
+ if (message.providers) {
+ obj.providers = message.providers.map(e => e ? Provider.toJSON(e) : undefined);
+ } else {
+ obj.providers = [];
+ }
+ message.pagination !== undefined && (obj.pagination = message.pagination ? PageResponse.toJSON(message.pagination) : undefined);
+ return obj;
+ },
+ fromPartial, I>>(object: I): QueryProvidersResponse {
+ const message = createBaseQueryProvidersResponse();
+ message.providers = object.providers?.map(e => Provider.fromPartial(e)) || [];
+ message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined;
+ return message;
+ },
+ fromSDK(object: QueryProvidersResponseSDKType): QueryProvidersResponse {
+ return {
+ providers: Array.isArray(object?.providers) ? object.providers.map((e: any) => Provider.fromSDK(e)) : [],
+ pagination: object.pagination ? PageResponse.fromSDK(object.pagination) : undefined
+ };
+ },
+ fromSDKJSON(object: any): QueryProvidersResponseSDKType {
+ return {
+ providers: Array.isArray(object?.providers) ? object.providers.map((e: any) => Provider.fromSDKJSON(e)) : [],
+ pagination: isSet(object.pagination) ? PageResponse.fromSDKJSON(object.pagination) : undefined
+ };
+ },
+ toSDK(message: QueryProvidersResponse): QueryProvidersResponseSDKType {
+ const obj: any = {};
+ if (message.providers) {
+ obj.providers = message.providers.map(e => e ? Provider.toSDK(e) : undefined);
+ } else {
+ obj.providers = [];
+ }
+ message.pagination !== undefined && (obj.pagination = message.pagination ? PageResponse.toSDK(message.pagination) : undefined);
+ return obj;
+ },
+ fromAmino(object: QueryProvidersResponseAmino): QueryProvidersResponse {
+ const message = createBaseQueryProvidersResponse();
+ message.providers = object.providers?.map(e => Provider.fromAmino(e)) || [];
+ if (object.pagination !== undefined && object.pagination !== null) {
+ message.pagination = PageResponse.fromAmino(object.pagination);
+ }
+ return message;
+ },
+ toAmino(message: QueryProvidersResponse): QueryProvidersResponseAmino {
+ const obj: any = {};
+ if (message.providers) {
+ obj.providers = message.providers.map(e => e ? Provider.toAmino(e) : undefined);
+ } else {
+ obj.providers = message.providers;
+ }
+ obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined;
+ return obj;
+ },
+ fromAminoMsg(object: QueryProvidersResponseAminoMsg): QueryProvidersResponse {
+ return QueryProvidersResponse.fromAmino(object.value);
+ },
+ toAminoMsg(message: QueryProvidersResponse): QueryProvidersResponseAminoMsg {
+ return {
+ type: "akash/audit/v1beta2/query-providers-response",
+ value: QueryProvidersResponse.toAmino(message)
+ };
+ },
+ fromProtoMsg(message: QueryProvidersResponseProtoMsg): QueryProvidersResponse {
+ return QueryProvidersResponse.decode(message.value);
+ },
+ toProto(message: QueryProvidersResponse): Uint8Array {
+ return QueryProvidersResponse.encode(message).finish();
+ },
+ toProtoMsg(message: QueryProvidersResponse): QueryProvidersResponseProtoMsg {
+ return {
+ typeUrl: "/akash.audit.v1beta2.QueryProvidersResponse",
+ value: QueryProvidersResponse.encode(message).finish()
+ };
+ }
+};
+GlobalDecoderRegistry.register(QueryProvidersResponse.typeUrl, QueryProvidersResponse);
+GlobalDecoderRegistry.registerAminoProtoMapping(QueryProvidersResponse.aminoType, QueryProvidersResponse.typeUrl);
+function createBaseQueryProviderRequest(): QueryProviderRequest {
+ return {
+ auditor: "",
+ owner: ""
+ };
+}
+export const QueryProviderRequest = {
+ typeUrl: "/akash.audit.v1beta2.QueryProviderRequest",
+ aminoType: "akash/audit/v1beta2/query-provider-request",
+ is(o: any): o is QueryProviderRequest {
+ return o && (o.$typeUrl === QueryProviderRequest.typeUrl || typeof o.auditor === "string" && typeof o.owner === "string");
+ },
+ isSDK(o: any): o is QueryProviderRequestSDKType {
+ return o && (o.$typeUrl === QueryProviderRequest.typeUrl || typeof o.auditor === "string" && typeof o.owner === "string");
+ },
+ encode(message: QueryProviderRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
+ if (message.auditor !== "") {
+ writer.uint32(10).string(message.auditor);
+ }
+ if (message.owner !== "") {
+ writer.uint32(18).string(message.owner);
+ }
+ return writer;
+ },
+ decode(input: BinaryReader | Uint8Array, length?: number): QueryProviderRequest {
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseQueryProviderRequest();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ message.auditor = reader.string();
+ break;
+ case 2:
+ message.owner = reader.string();
+ break;
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ },
+ fromJSON(object: any): QueryProviderRequest {
+ return {
+ auditor: isSet(object.auditor) ? String(object.auditor) : "",
+ owner: isSet(object.owner) ? String(object.owner) : ""
+ };
+ },
+ toJSON(message: QueryProviderRequest): JsonSafe {
+ const obj: any = {};
+ message.auditor !== undefined && (obj.auditor = message.auditor);
+ message.owner !== undefined && (obj.owner = message.owner);
+ return obj;
+ },
+ fromPartial, I>>(object: I): QueryProviderRequest {
+ const message = createBaseQueryProviderRequest();
+ message.auditor = object.auditor ?? "";
+ message.owner = object.owner ?? "";
+ return message;
+ },
+ fromSDK(object: QueryProviderRequestSDKType): QueryProviderRequest {
+ return {
+ auditor: object?.auditor,
+ owner: object?.owner
+ };
+ },
+ fromSDKJSON(object: any): QueryProviderRequestSDKType {
+ return {
+ auditor: isSet(object.auditor) ? String(object.auditor) : "",
+ owner: isSet(object.owner) ? String(object.owner) : ""
+ };
+ },
+ toSDK(message: QueryProviderRequest): QueryProviderRequestSDKType {
+ const obj: any = {};
+ obj.auditor = message.auditor;
+ obj.owner = message.owner;
+ return obj;
+ },
+ fromAmino(object: QueryProviderRequestAmino): QueryProviderRequest {
+ const message = createBaseQueryProviderRequest();
+ if (object.auditor !== undefined && object.auditor !== null) {
+ message.auditor = object.auditor;
+ }
+ if (object.owner !== undefined && object.owner !== null) {
+ message.owner = object.owner;
+ }
+ return message;
+ },
+ toAmino(message: QueryProviderRequest): QueryProviderRequestAmino {
+ const obj: any = {};
+ obj.auditor = message.auditor === "" ? undefined : message.auditor;
+ obj.owner = message.owner === "" ? undefined : message.owner;
+ return obj;
+ },
+ fromAminoMsg(object: QueryProviderRequestAminoMsg): QueryProviderRequest {
+ return QueryProviderRequest.fromAmino(object.value);
+ },
+ toAminoMsg(message: QueryProviderRequest): QueryProviderRequestAminoMsg {
+ return {
+ type: "akash/audit/v1beta2/query-provider-request",
+ value: QueryProviderRequest.toAmino(message)
+ };
+ },
+ fromProtoMsg(message: QueryProviderRequestProtoMsg): QueryProviderRequest {
+ return QueryProviderRequest.decode(message.value);
+ },
+ toProto(message: QueryProviderRequest): Uint8Array {
+ return QueryProviderRequest.encode(message).finish();
+ },
+ toProtoMsg(message: QueryProviderRequest): QueryProviderRequestProtoMsg {
+ return {
+ typeUrl: "/akash.audit.v1beta2.QueryProviderRequest",
+ value: QueryProviderRequest.encode(message).finish()
+ };
+ }
+};
+GlobalDecoderRegistry.register(QueryProviderRequest.typeUrl, QueryProviderRequest);
+GlobalDecoderRegistry.registerAminoProtoMapping(QueryProviderRequest.aminoType, QueryProviderRequest.typeUrl);
+function createBaseQueryAllProvidersAttributesRequest(): QueryAllProvidersAttributesRequest {
+ return {
+ pagination: undefined
+ };
+}
+export const QueryAllProvidersAttributesRequest = {
+ typeUrl: "/akash.audit.v1beta2.QueryAllProvidersAttributesRequest",
+ aminoType: "akash/audit/v1beta2/query-all-providers-attributes-request",
+ is(o: any): o is QueryAllProvidersAttributesRequest {
+ return o && o.$typeUrl === QueryAllProvidersAttributesRequest.typeUrl;
+ },
+ isSDK(o: any): o is QueryAllProvidersAttributesRequestSDKType {
+ return o && o.$typeUrl === QueryAllProvidersAttributesRequest.typeUrl;
+ },
+ encode(message: QueryAllProvidersAttributesRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
+ if (message.pagination !== undefined) {
+ PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim();
+ }
+ return writer;
+ },
+ decode(input: BinaryReader | Uint8Array, length?: number): QueryAllProvidersAttributesRequest {
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseQueryAllProvidersAttributesRequest();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ message.pagination = PageRequest.decode(reader, reader.uint32());
+ break;
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ },
+ fromJSON(object: any): QueryAllProvidersAttributesRequest {
+ return {
+ pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined
+ };
+ },
+ toJSON(message: QueryAllProvidersAttributesRequest): JsonSafe {
+ const obj: any = {};
+ message.pagination !== undefined && (obj.pagination = message.pagination ? PageRequest.toJSON(message.pagination) : undefined);
+ return obj;
+ },
+ fromPartial, I>>(object: I): QueryAllProvidersAttributesRequest {
+ const message = createBaseQueryAllProvidersAttributesRequest();
+ message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined;
+ return message;
+ },
+ fromSDK(object: QueryAllProvidersAttributesRequestSDKType): QueryAllProvidersAttributesRequest {
+ return {
+ pagination: object.pagination ? PageRequest.fromSDK(object.pagination) : undefined
+ };
+ },
+ fromSDKJSON(object: any): QueryAllProvidersAttributesRequestSDKType {
+ return {
+ pagination: isSet(object.pagination) ? PageRequest.fromSDKJSON(object.pagination) : undefined
+ };
+ },
+ toSDK(message: QueryAllProvidersAttributesRequest): QueryAllProvidersAttributesRequestSDKType {
+ const obj: any = {};
+ message.pagination !== undefined && (obj.pagination = message.pagination ? PageRequest.toSDK(message.pagination) : undefined);
+ return obj;
+ },
+ fromAmino(object: QueryAllProvidersAttributesRequestAmino): QueryAllProvidersAttributesRequest {
+ const message = createBaseQueryAllProvidersAttributesRequest();
+ if (object.pagination !== undefined && object.pagination !== null) {
+ message.pagination = PageRequest.fromAmino(object.pagination);
+ }
+ return message;
+ },
+ toAmino(message: QueryAllProvidersAttributesRequest): QueryAllProvidersAttributesRequestAmino {
+ const obj: any = {};
+ obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined;
+ return obj;
+ },
+ fromAminoMsg(object: QueryAllProvidersAttributesRequestAminoMsg): QueryAllProvidersAttributesRequest {
+ return QueryAllProvidersAttributesRequest.fromAmino(object.value);
+ },
+ toAminoMsg(message: QueryAllProvidersAttributesRequest): QueryAllProvidersAttributesRequestAminoMsg {
+ return {
+ type: "akash/audit/v1beta2/query-all-providers-attributes-request",
+ value: QueryAllProvidersAttributesRequest.toAmino(message)
+ };
+ },
+ fromProtoMsg(message: QueryAllProvidersAttributesRequestProtoMsg): QueryAllProvidersAttributesRequest {
+ return QueryAllProvidersAttributesRequest.decode(message.value);
+ },
+ toProto(message: QueryAllProvidersAttributesRequest): Uint8Array {
+ return QueryAllProvidersAttributesRequest.encode(message).finish();
+ },
+ toProtoMsg(message: QueryAllProvidersAttributesRequest): QueryAllProvidersAttributesRequestProtoMsg {
+ return {
+ typeUrl: "/akash.audit.v1beta2.QueryAllProvidersAttributesRequest",
+ value: QueryAllProvidersAttributesRequest.encode(message).finish()
+ };
+ }
+};
+GlobalDecoderRegistry.register(QueryAllProvidersAttributesRequest.typeUrl, QueryAllProvidersAttributesRequest);
+GlobalDecoderRegistry.registerAminoProtoMapping(QueryAllProvidersAttributesRequest.aminoType, QueryAllProvidersAttributesRequest.typeUrl);
+function createBaseQueryProviderAttributesRequest(): QueryProviderAttributesRequest {
+ return {
+ owner: "",
+ pagination: undefined
+ };
+}
+export const QueryProviderAttributesRequest = {
+ typeUrl: "/akash.audit.v1beta2.QueryProviderAttributesRequest",
+ aminoType: "akash/audit/v1beta2/query-provider-attributes-request",
+ is(o: any): o is QueryProviderAttributesRequest {
+ return o && (o.$typeUrl === QueryProviderAttributesRequest.typeUrl || typeof o.owner === "string");
+ },
+ isSDK(o: any): o is QueryProviderAttributesRequestSDKType {
+ return o && (o.$typeUrl === QueryProviderAttributesRequest.typeUrl || typeof o.owner === "string");
+ },
+ encode(message: QueryProviderAttributesRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
+ if (message.owner !== "") {
+ writer.uint32(10).string(message.owner);
+ }
+ if (message.pagination !== undefined) {
+ PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim();
+ }
+ return writer;
+ },
+ decode(input: BinaryReader | Uint8Array, length?: number): QueryProviderAttributesRequest {
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseQueryProviderAttributesRequest();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ message.owner = reader.string();
+ break;
+ case 2:
+ message.pagination = PageRequest.decode(reader, reader.uint32());
+ break;
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ },
+ fromJSON(object: any): QueryProviderAttributesRequest {
+ return {
+ owner: isSet(object.owner) ? String(object.owner) : "",
+ pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined
+ };
+ },
+ toJSON(message: QueryProviderAttributesRequest): JsonSafe {
+ const obj: any = {};
+ message.owner !== undefined && (obj.owner = message.owner);
+ message.pagination !== undefined && (obj.pagination = message.pagination ? PageRequest.toJSON(message.pagination) : undefined);
+ return obj;
+ },
+ fromPartial, I>>(object: I): QueryProviderAttributesRequest {
+ const message = createBaseQueryProviderAttributesRequest();
+ message.owner = object.owner ?? "";
+ message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined;
+ return message;
+ },
+ fromSDK(object: QueryProviderAttributesRequestSDKType): QueryProviderAttributesRequest {
+ return {
+ owner: object?.owner,
+ pagination: object.pagination ? PageRequest.fromSDK(object.pagination) : undefined
+ };
+ },
+ fromSDKJSON(object: any): QueryProviderAttributesRequestSDKType {
+ return {
+ owner: isSet(object.owner) ? String(object.owner) : "",
+ pagination: isSet(object.pagination) ? PageRequest.fromSDKJSON(object.pagination) : undefined
+ };
+ },
+ toSDK(message: QueryProviderAttributesRequest): QueryProviderAttributesRequestSDKType {
+ const obj: any = {};
+ obj.owner = message.owner;
+ message.pagination !== undefined && (obj.pagination = message.pagination ? PageRequest.toSDK(message.pagination) : undefined);
+ return obj;
+ },
+ fromAmino(object: QueryProviderAttributesRequestAmino): QueryProviderAttributesRequest {
+ const message = createBaseQueryProviderAttributesRequest();
+ if (object.owner !== undefined && object.owner !== null) {
+ message.owner = object.owner;
+ }
+ if (object.pagination !== undefined && object.pagination !== null) {
+ message.pagination = PageRequest.fromAmino(object.pagination);
+ }
+ return message;
+ },
+ toAmino(message: QueryProviderAttributesRequest): QueryProviderAttributesRequestAmino {
+ const obj: any = {};
+ obj.owner = message.owner === "" ? undefined : message.owner;
+ obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined;
+ return obj;
+ },
+ fromAminoMsg(object: QueryProviderAttributesRequestAminoMsg): QueryProviderAttributesRequest {
+ return QueryProviderAttributesRequest.fromAmino(object.value);
+ },
+ toAminoMsg(message: QueryProviderAttributesRequest): QueryProviderAttributesRequestAminoMsg {
+ return {
+ type: "akash/audit/v1beta2/query-provider-attributes-request",
+ value: QueryProviderAttributesRequest.toAmino(message)
+ };
+ },
+ fromProtoMsg(message: QueryProviderAttributesRequestProtoMsg): QueryProviderAttributesRequest {
+ return QueryProviderAttributesRequest.decode(message.value);
+ },
+ toProto(message: QueryProviderAttributesRequest): Uint8Array {
+ return QueryProviderAttributesRequest.encode(message).finish();
+ },
+ toProtoMsg(message: QueryProviderAttributesRequest): QueryProviderAttributesRequestProtoMsg {
+ return {
+ typeUrl: "/akash.audit.v1beta2.QueryProviderAttributesRequest",
+ value: QueryProviderAttributesRequest.encode(message).finish()
+ };
+ }
+};
+GlobalDecoderRegistry.register(QueryProviderAttributesRequest.typeUrl, QueryProviderAttributesRequest);
+GlobalDecoderRegistry.registerAminoProtoMapping(QueryProviderAttributesRequest.aminoType, QueryProviderAttributesRequest.typeUrl);
+function createBaseQueryProviderAuditorRequest(): QueryProviderAuditorRequest {
+ return {
+ auditor: "",
+ owner: ""
+ };
+}
+export const QueryProviderAuditorRequest = {
+ typeUrl: "/akash.audit.v1beta2.QueryProviderAuditorRequest",
+ aminoType: "akash/audit/v1beta2/query-provider-auditor-request",
+ is(o: any): o is QueryProviderAuditorRequest {
+ return o && (o.$typeUrl === QueryProviderAuditorRequest.typeUrl || typeof o.auditor === "string" && typeof o.owner === "string");
+ },
+ isSDK(o: any): o is QueryProviderAuditorRequestSDKType {
+ return o && (o.$typeUrl === QueryProviderAuditorRequest.typeUrl || typeof o.auditor === "string" && typeof o.owner === "string");
+ },
+ encode(message: QueryProviderAuditorRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
+ if (message.auditor !== "") {
+ writer.uint32(10).string(message.auditor);
+ }
+ if (message.owner !== "") {
+ writer.uint32(18).string(message.owner);
+ }
+ return writer;
+ },
+ decode(input: BinaryReader | Uint8Array, length?: number): QueryProviderAuditorRequest {
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseQueryProviderAuditorRequest();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ message.auditor = reader.string();
+ break;
+ case 2:
+ message.owner = reader.string();
+ break;
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ },
+ fromJSON(object: any): QueryProviderAuditorRequest {
+ return {
+ auditor: isSet(object.auditor) ? String(object.auditor) : "",
+ owner: isSet(object.owner) ? String(object.owner) : ""
+ };
+ },
+ toJSON(message: QueryProviderAuditorRequest): JsonSafe {
+ const obj: any = {};
+ message.auditor !== undefined && (obj.auditor = message.auditor);
+ message.owner !== undefined && (obj.owner = message.owner);
+ return obj;
+ },
+ fromPartial, I>>(object: I): QueryProviderAuditorRequest {
+ const message = createBaseQueryProviderAuditorRequest();
+ message.auditor = object.auditor ?? "";
+ message.owner = object.owner ?? "";
+ return message;
+ },
+ fromSDK(object: QueryProviderAuditorRequestSDKType): QueryProviderAuditorRequest {
+ return {
+ auditor: object?.auditor,
+ owner: object?.owner
+ };
+ },
+ fromSDKJSON(object: any): QueryProviderAuditorRequestSDKType {
+ return {
+ auditor: isSet(object.auditor) ? String(object.auditor) : "",
+ owner: isSet(object.owner) ? String(object.owner) : ""
+ };
+ },
+ toSDK(message: QueryProviderAuditorRequest): QueryProviderAuditorRequestSDKType {
+ const obj: any = {};
+ obj.auditor = message.auditor;
+ obj.owner = message.owner;
+ return obj;
+ },
+ fromAmino(object: QueryProviderAuditorRequestAmino): QueryProviderAuditorRequest {
+ const message = createBaseQueryProviderAuditorRequest();
+ if (object.auditor !== undefined && object.auditor !== null) {
+ message.auditor = object.auditor;
+ }
+ if (object.owner !== undefined && object.owner !== null) {
+ message.owner = object.owner;
+ }
+ return message;
+ },
+ toAmino(message: QueryProviderAuditorRequest): QueryProviderAuditorRequestAmino {
+ const obj: any = {};
+ obj.auditor = message.auditor === "" ? undefined : message.auditor;
+ obj.owner = message.owner === "" ? undefined : message.owner;
+ return obj;
+ },
+ fromAminoMsg(object: QueryProviderAuditorRequestAminoMsg): QueryProviderAuditorRequest {
+ return QueryProviderAuditorRequest.fromAmino(object.value);
+ },
+ toAminoMsg(message: QueryProviderAuditorRequest): QueryProviderAuditorRequestAminoMsg {
+ return {
+ type: "akash/audit/v1beta2/query-provider-auditor-request",
+ value: QueryProviderAuditorRequest.toAmino(message)
+ };
+ },
+ fromProtoMsg(message: QueryProviderAuditorRequestProtoMsg): QueryProviderAuditorRequest {
+ return QueryProviderAuditorRequest.decode(message.value);
+ },
+ toProto(message: QueryProviderAuditorRequest): Uint8Array {
+ return QueryProviderAuditorRequest.encode(message).finish();
+ },
+ toProtoMsg(message: QueryProviderAuditorRequest): QueryProviderAuditorRequestProtoMsg {
+ return {
+ typeUrl: "/akash.audit.v1beta2.QueryProviderAuditorRequest",
+ value: QueryProviderAuditorRequest.encode(message).finish()
+ };
+ }
+};
+GlobalDecoderRegistry.register(QueryProviderAuditorRequest.typeUrl, QueryProviderAuditorRequest);
+GlobalDecoderRegistry.registerAminoProtoMapping(QueryProviderAuditorRequest.aminoType, QueryProviderAuditorRequest.typeUrl);
+function createBaseQueryAuditorAttributesRequest(): QueryAuditorAttributesRequest {
+ return {
+ auditor: "",
+ pagination: undefined
+ };
+}
+export const QueryAuditorAttributesRequest = {
+ typeUrl: "/akash.audit.v1beta2.QueryAuditorAttributesRequest",
+ aminoType: "akash/audit/v1beta2/query-auditor-attributes-request",
+ is(o: any): o is QueryAuditorAttributesRequest {
+ return o && (o.$typeUrl === QueryAuditorAttributesRequest.typeUrl || typeof o.auditor === "string");
+ },
+ isSDK(o: any): o is QueryAuditorAttributesRequestSDKType {
+ return o && (o.$typeUrl === QueryAuditorAttributesRequest.typeUrl || typeof o.auditor === "string");
+ },
+ encode(message: QueryAuditorAttributesRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
+ if (message.auditor !== "") {
+ writer.uint32(10).string(message.auditor);
+ }
+ if (message.pagination !== undefined) {
+ PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim();
+ }
+ return writer;
+ },
+ decode(input: BinaryReader | Uint8Array, length?: number): QueryAuditorAttributesRequest {
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseQueryAuditorAttributesRequest();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ message.auditor = reader.string();
+ break;
+ case 2:
+ message.pagination = PageRequest.decode(reader, reader.uint32());
+ break;
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ },
+ fromJSON(object: any): QueryAuditorAttributesRequest {
+ return {
+ auditor: isSet(object.auditor) ? String(object.auditor) : "",
+ pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined
+ };
+ },
+ toJSON(message: QueryAuditorAttributesRequest): JsonSafe {
+ const obj: any = {};
+ message.auditor !== undefined && (obj.auditor = message.auditor);
+ message.pagination !== undefined && (obj.pagination = message.pagination ? PageRequest.toJSON(message.pagination) : undefined);
+ return obj;
+ },
+ fromPartial, I>>(object: I): QueryAuditorAttributesRequest {
+ const message = createBaseQueryAuditorAttributesRequest();
+ message.auditor = object.auditor ?? "";
+ message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined;
+ return message;
+ },
+ fromSDK(object: QueryAuditorAttributesRequestSDKType): QueryAuditorAttributesRequest {
+ return {
+ auditor: object?.auditor,
+ pagination: object.pagination ? PageRequest.fromSDK(object.pagination) : undefined
+ };
+ },
+ fromSDKJSON(object: any): QueryAuditorAttributesRequestSDKType {
+ return {
+ auditor: isSet(object.auditor) ? String(object.auditor) : "",
+ pagination: isSet(object.pagination) ? PageRequest.fromSDKJSON(object.pagination) : undefined
+ };
+ },
+ toSDK(message: QueryAuditorAttributesRequest): QueryAuditorAttributesRequestSDKType {
+ const obj: any = {};
+ obj.auditor = message.auditor;
+ message.pagination !== undefined && (obj.pagination = message.pagination ? PageRequest.toSDK(message.pagination) : undefined);
+ return obj;
+ },
+ fromAmino(object: QueryAuditorAttributesRequestAmino): QueryAuditorAttributesRequest {
+ const message = createBaseQueryAuditorAttributesRequest();
+ if (object.auditor !== undefined && object.auditor !== null) {
+ message.auditor = object.auditor;
+ }
+ if (object.pagination !== undefined && object.pagination !== null) {
+ message.pagination = PageRequest.fromAmino(object.pagination);
+ }
+ return message;
+ },
+ toAmino(message: QueryAuditorAttributesRequest): QueryAuditorAttributesRequestAmino {
+ const obj: any = {};
+ obj.auditor = message.auditor === "" ? undefined : message.auditor;
+ obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined;
+ return obj;
+ },
+ fromAminoMsg(object: QueryAuditorAttributesRequestAminoMsg): QueryAuditorAttributesRequest {
+ return QueryAuditorAttributesRequest.fromAmino(object.value);
+ },
+ toAminoMsg(message: QueryAuditorAttributesRequest): QueryAuditorAttributesRequestAminoMsg {
+ return {
+ type: "akash/audit/v1beta2/query-auditor-attributes-request",
+ value: QueryAuditorAttributesRequest.toAmino(message)
+ };
+ },
+ fromProtoMsg(message: QueryAuditorAttributesRequestProtoMsg): QueryAuditorAttributesRequest {
+ return QueryAuditorAttributesRequest.decode(message.value);
+ },
+ toProto(message: QueryAuditorAttributesRequest): Uint8Array {
+ return QueryAuditorAttributesRequest.encode(message).finish();
+ },
+ toProtoMsg(message: QueryAuditorAttributesRequest): QueryAuditorAttributesRequestProtoMsg {
+ return {
+ typeUrl: "/akash.audit.v1beta2.QueryAuditorAttributesRequest",
+ value: QueryAuditorAttributesRequest.encode(message).finish()
+ };
+ }
+};
+GlobalDecoderRegistry.register(QueryAuditorAttributesRequest.typeUrl, QueryAuditorAttributesRequest);
+GlobalDecoderRegistry.registerAminoProtoMapping(QueryAuditorAttributesRequest.aminoType, QueryAuditorAttributesRequest.typeUrl);
\ No newline at end of file
diff --git a/examples/injective-vue/src/codegen/akash/base/v1beta1/attribute.ts b/examples/injective-vue/src/codegen/akash/base/v1beta1/attribute.ts
new file mode 100644
index 000000000..f3a072cdb
--- /dev/null
+++ b/examples/injective-vue/src/codegen/akash/base/v1beta1/attribute.ts
@@ -0,0 +1,464 @@
+import { BinaryReader, BinaryWriter } from "../../../binary";
+import { isSet, DeepPartial, Exact } from "../../../helpers";
+import { JsonSafe } from "../../../json-safe";
+import { GlobalDecoderRegistry } from "../../../registry";
+import { ComputedRef } from "vue";
+export const protobufPackage = "akash.base.v1beta1";
+/** Attribute represents key value pair */
+export interface Attribute {
+ key: string;
+ value: string;
+}
+export interface ReactiveAttribute {
+ key: ComputedRef;
+ value: ComputedRef;
+}
+export interface AttributeProtoMsg {
+ typeUrl: "/akash.base.v1beta1.Attribute";
+ value: Uint8Array;
+}
+/** Attribute represents key value pair */
+export interface AttributeSDKType {
+ key: string;
+ value: string;
+}
+/**
+ * SignedBy represents validation accounts that tenant expects signatures for provider attributes
+ * AllOf has precedence i.e. if there is at least one entry AnyOf is ignored regardless to how many
+ * entries there
+ * this behaviour to be discussed
+ */
+export interface SignedBy {
+ /** all_of all keys in this list must have signed attributes */
+ allOf: string[];
+ /** any_of at least of of the keys from the list must have signed attributes */
+ anyOf: string[];
+}
+export interface ReactiveSignedBy {
+ allOf: ComputedRef;
+ anyOf: ComputedRef;
+}
+export interface SignedByProtoMsg {
+ typeUrl: "/akash.base.v1beta1.SignedBy";
+ value: Uint8Array;
+}
+/**
+ * SignedBy represents validation accounts that tenant expects signatures for provider attributes
+ * AllOf has precedence i.e. if there is at least one entry AnyOf is ignored regardless to how many
+ * entries there
+ * this behaviour to be discussed
+ */
+export interface SignedBySDKType {
+ all_of: string[];
+ any_of: string[];
+}
+/** PlacementRequirements */
+export interface PlacementRequirements {
+ /** SignedBy list of keys that tenants expect to have signatures from */
+ signedBy: SignedBy;
+ /** Attribute list of attributes tenant expects from the provider */
+ attributes: Attribute[];
+}
+export interface ReactivePlacementRequirements {
+ signedBy: ComputedRef;
+ attributes: ComputedRef;
+}
+export interface PlacementRequirementsProtoMsg {
+ typeUrl: "/akash.base.v1beta1.PlacementRequirements";
+ value: Uint8Array;
+}
+/** PlacementRequirements */
+export interface PlacementRequirementsSDKType {
+ signed_by: SignedBySDKType;
+ attributes: AttributeSDKType[];
+}
+function createBaseAttribute(): Attribute {
+ return {
+ key: "",
+ value: ""
+ };
+}
+export const Attribute = {
+ typeUrl: "/akash.base.v1beta1.Attribute",
+ aminoType: "akash/base/attribute",
+ is(o: any): o is Attribute {
+ return o && (o.$typeUrl === Attribute.typeUrl || typeof o.key === "string" && typeof o.value === "string");
+ },
+ isSDK(o: any): o is AttributeSDKType {
+ return o && (o.$typeUrl === Attribute.typeUrl || typeof o.key === "string" && typeof o.value === "string");
+ },
+ encode(message: Attribute, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
+ if (message.key !== "") {
+ writer.uint32(10).string(message.key);
+ }
+ if (message.value !== "") {
+ writer.uint32(18).string(message.value);
+ }
+ return writer;
+ },
+ decode(input: BinaryReader | Uint8Array, length?: number): Attribute {
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseAttribute();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ message.key = reader.string();
+ break;
+ case 2:
+ message.value = reader.string();
+ break;
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ },
+ fromJSON(object: any): Attribute {
+ return {
+ key: isSet(object.key) ? String(object.key) : "",
+ value: isSet(object.value) ? String(object.value) : ""
+ };
+ },
+ toJSON(message: Attribute): JsonSafe {
+ const obj: any = {};
+ message.key !== undefined && (obj.key = message.key);
+ message.value !== undefined && (obj.value = message.value);
+ return obj;
+ },
+ fromPartial, I>>(object: I): Attribute {
+ const message = createBaseAttribute();
+ message.key = object.key ?? "";
+ message.value = object.value ?? "";
+ return message;
+ },
+ fromSDK(object: AttributeSDKType): Attribute {
+ return {
+ key: object?.key,
+ value: object?.value
+ };
+ },
+ fromSDKJSON(object: any): AttributeSDKType {
+ return {
+ key: isSet(object.key) ? String(object.key) : "",
+ value: isSet(object.value) ? String(object.value) : ""
+ };
+ },
+ toSDK(message: Attribute): AttributeSDKType {
+ const obj: any = {};
+ obj.key = message.key;
+ obj.value = message.value;
+ return obj;
+ },
+ fromAmino(object: AttributeAmino): Attribute {
+ const message = createBaseAttribute();
+ if (object.key !== undefined && object.key !== null) {
+ message.key = object.key;
+ }
+ if (object.value !== undefined && object.value !== null) {
+ message.value = object.value;
+ }
+ return message;
+ },
+ toAmino(message: Attribute): AttributeAmino {
+ const obj: any = {};
+ obj.key = message.key === "" ? undefined : message.key;
+ obj.value = message.value === "" ? undefined : message.value;
+ return obj;
+ },
+ fromAminoMsg(object: AttributeAminoMsg): Attribute {
+ return Attribute.fromAmino(object.value);
+ },
+ toAminoMsg(message: Attribute): AttributeAminoMsg {
+ return {
+ type: "akash/base/attribute",
+ value: Attribute.toAmino(message)
+ };
+ },
+ fromProtoMsg(message: AttributeProtoMsg): Attribute {
+ return Attribute.decode(message.value);
+ },
+ toProto(message: Attribute): Uint8Array {
+ return Attribute.encode(message).finish();
+ },
+ toProtoMsg(message: Attribute): AttributeProtoMsg {
+ return {
+ typeUrl: "/akash.base.v1beta1.Attribute",
+ value: Attribute.encode(message).finish()
+ };
+ }
+};
+GlobalDecoderRegistry.register(Attribute.typeUrl, Attribute);
+GlobalDecoderRegistry.registerAminoProtoMapping(Attribute.aminoType, Attribute.typeUrl);
+function createBaseSignedBy(): SignedBy {
+ return {
+ allOf: [],
+ anyOf: []
+ };
+}
+export const SignedBy = {
+ typeUrl: "/akash.base.v1beta1.SignedBy",
+ aminoType: "akash/base/signed-by",
+ is(o: any): o is SignedBy {
+ return o && (o.$typeUrl === SignedBy.typeUrl || Array.isArray(o.allOf) && (!o.allOf.length || typeof o.allOf[0] === "string") && Array.isArray(o.anyOf) && (!o.anyOf.length || typeof o.anyOf[0] === "string"));
+ },
+ isSDK(o: any): o is SignedBySDKType {
+ return o && (o.$typeUrl === SignedBy.typeUrl || Array.isArray(o.all_of) && (!o.all_of.length || typeof o.all_of[0] === "string") && Array.isArray(o.any_of) && (!o.any_of.length || typeof o.any_of[0] === "string"));
+ },
+ encode(message: SignedBy, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
+ for (const v of message.allOf) {
+ writer.uint32(10).string(v!);
+ }
+ for (const v of message.anyOf) {
+ writer.uint32(18).string(v!);
+ }
+ return writer;
+ },
+ decode(input: BinaryReader | Uint8Array, length?: number): SignedBy {
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseSignedBy();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ message.allOf.push(reader.string());
+ break;
+ case 2:
+ message.anyOf.push(reader.string());
+ break;
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ },
+ fromJSON(object: any): SignedBy {
+ return {
+ allOf: Array.isArray(object?.allOf) ? object.allOf.map((e: any) => String(e)) : [],
+ anyOf: Array.isArray(object?.anyOf) ? object.anyOf.map((e: any) => String(e)) : []
+ };
+ },
+ toJSON(message: SignedBy): JsonSafe {
+ const obj: any = {};
+ if (message.allOf) {
+ obj.allOf = message.allOf.map(e => e);
+ } else {
+ obj.allOf = [];
+ }
+ if (message.anyOf) {
+ obj.anyOf = message.anyOf.map(e => e);
+ } else {
+ obj.anyOf = [];
+ }
+ return obj;
+ },
+ fromPartial, I>>(object: I): SignedBy {
+ const message = createBaseSignedBy();
+ message.allOf = object.allOf?.map(e => e) || [];
+ message.anyOf = object.anyOf?.map(e => e) || [];
+ return message;
+ },
+ fromSDK(object: SignedBySDKType): SignedBy {
+ return {
+ allOf: Array.isArray(object?.all_of) ? object.all_of.map((e: any) => e) : [],
+ anyOf: Array.isArray(object?.any_of) ? object.any_of.map((e: any) => e) : []
+ };
+ },
+ fromSDKJSON(object: any): SignedBySDKType {
+ return {
+ all_of: Array.isArray(object?.all_of) ? object.all_of.map((e: any) => String(e)) : [],
+ any_of: Array.isArray(object?.any_of) ? object.any_of.map((e: any) => String(e)) : []
+ };
+ },
+ toSDK(message: SignedBy): SignedBySDKType {
+ const obj: any = {};
+ if (message.allOf) {
+ obj.all_of = message.allOf.map(e => e);
+ } else {
+ obj.all_of = [];
+ }
+ if (message.anyOf) {
+ obj.any_of = message.anyOf.map(e => e);
+ } else {
+ obj.any_of = [];
+ }
+ return obj;
+ },
+ fromAmino(object: SignedByAmino): SignedBy {
+ const message = createBaseSignedBy();
+ message.allOf = object.all_of?.map(e => e) || [];
+ message.anyOf = object.any_of?.map(e => e) || [];
+ return message;
+ },
+ toAmino(message: SignedBy): SignedByAmino {
+ const obj: any = {};
+ if (message.allOf) {
+ obj.all_of = message.allOf.map(e => e);
+ } else {
+ obj.all_of = message.allOf;
+ }
+ if (message.anyOf) {
+ obj.any_of = message.anyOf.map(e => e);
+ } else {
+ obj.any_of = message.anyOf;
+ }
+ return obj;
+ },
+ fromAminoMsg(object: SignedByAminoMsg): SignedBy {
+ return SignedBy.fromAmino(object.value);
+ },
+ toAminoMsg(message: SignedBy): SignedByAminoMsg {
+ return {
+ type: "akash/base/signed-by",
+ value: SignedBy.toAmino(message)
+ };
+ },
+ fromProtoMsg(message: SignedByProtoMsg): SignedBy {
+ return SignedBy.decode(message.value);
+ },
+ toProto(message: SignedBy): Uint8Array {
+ return SignedBy.encode(message).finish();
+ },
+ toProtoMsg(message: SignedBy): SignedByProtoMsg {
+ return {
+ typeUrl: "/akash.base.v1beta1.SignedBy",
+ value: SignedBy.encode(message).finish()
+ };
+ }
+};
+GlobalDecoderRegistry.register(SignedBy.typeUrl, SignedBy);
+GlobalDecoderRegistry.registerAminoProtoMapping(SignedBy.aminoType, SignedBy.typeUrl);
+function createBasePlacementRequirements(): PlacementRequirements {
+ return {
+ signedBy: SignedBy.fromPartial({}),
+ attributes: []
+ };
+}
+export const PlacementRequirements = {
+ typeUrl: "/akash.base.v1beta1.PlacementRequirements",
+ aminoType: "akash/base/placement-requirements",
+ is(o: any): o is PlacementRequirements {
+ return o && (o.$typeUrl === PlacementRequirements.typeUrl || SignedBy.is(o.signedBy) && Array.isArray(o.attributes) && (!o.attributes.length || Attribute.is(o.attributes[0])));
+ },
+ isSDK(o: any): o is PlacementRequirementsSDKType {
+ return o && (o.$typeUrl === PlacementRequirements.typeUrl || SignedBy.isSDK(o.signed_by) && Array.isArray(o.attributes) && (!o.attributes.length || Attribute.isSDK(o.attributes[0])));
+ },
+ encode(message: PlacementRequirements, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
+ if (message.signedBy !== undefined) {
+ SignedBy.encode(message.signedBy, writer.uint32(10).fork()).ldelim();
+ }
+ for (const v of message.attributes) {
+ Attribute.encode(v!, writer.uint32(18).fork()).ldelim();
+ }
+ return writer;
+ },
+ decode(input: BinaryReader | Uint8Array, length?: number): PlacementRequirements {
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBasePlacementRequirements();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ message.signedBy = SignedBy.decode(reader, reader.uint32());
+ break;
+ case 2:
+ message.attributes.push(Attribute.decode(reader, reader.uint32()));
+ break;
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ },
+ fromJSON(object: any): PlacementRequirements {
+ return {
+ signedBy: isSet(object.signedBy) ? SignedBy.fromJSON(object.signedBy) : undefined,
+ attributes: Array.isArray(object?.attributes) ? object.attributes.map((e: any) => Attribute.fromJSON(e)) : []
+ };
+ },
+ toJSON(message: PlacementRequirements): JsonSafe {
+ const obj: any = {};
+ message.signedBy !== undefined && (obj.signedBy = message.signedBy ? SignedBy.toJSON(message.signedBy) : undefined);
+ if (message.attributes) {
+ obj.attributes = message.attributes.map(e => e ? Attribute.toJSON(e) : undefined);
+ } else {
+ obj.attributes = [];
+ }
+ return obj;
+ },
+ fromPartial, I>>(object: I): PlacementRequirements {
+ const message = createBasePlacementRequirements();
+ message.signedBy = object.signedBy !== undefined && object.signedBy !== null ? SignedBy.fromPartial(object.signedBy) : undefined;
+ message.attributes = object.attributes?.map(e => Attribute.fromPartial(e)) || [];
+ return message;
+ },
+ fromSDK(object: PlacementRequirementsSDKType): PlacementRequirements {
+ return {
+ signedBy: object.signed_by ? SignedBy.fromSDK(object.signed_by) : undefined,
+ attributes: Array.isArray(object?.attributes) ? object.attributes.map((e: any) => Attribute.fromSDK(e)) : []
+ };
+ },
+ fromSDKJSON(object: any): PlacementRequirementsSDKType {
+ return {
+ signed_by: isSet(object.signed_by) ? SignedBy.fromSDKJSON(object.signed_by) : undefined,
+ attributes: Array.isArray(object?.attributes) ? object.attributes.map((e: any) => Attribute.fromSDKJSON(e)) : []
+ };
+ },
+ toSDK(message: PlacementRequirements): PlacementRequirementsSDKType {
+ const obj: any = {};
+ message.signedBy !== undefined && (obj.signed_by = message.signedBy ? SignedBy.toSDK(message.signedBy) : undefined);
+ if (message.attributes) {
+ obj.attributes = message.attributes.map(e => e ? Attribute.toSDK(e) : undefined);
+ } else {
+ obj.attributes = [];
+ }
+ return obj;
+ },
+ fromAmino(object: PlacementRequirementsAmino): PlacementRequirements {
+ const message = createBasePlacementRequirements();
+ if (object.signed_by !== undefined && object.signed_by !== null) {
+ message.signedBy = SignedBy.fromAmino(object.signed_by);
+ }
+ message.attributes = object.attributes?.map(e => Attribute.fromAmino(e)) || [];
+ return message;
+ },
+ toAmino(message: PlacementRequirements): PlacementRequirementsAmino {
+ const obj: any = {};
+ obj.signed_by = message.signedBy ? SignedBy.toAmino(message.signedBy) : SignedBy.toAmino(SignedBy.fromPartial({}));
+ if (message.attributes) {
+ obj.attributes = message.attributes.map(e => e ? Attribute.toAmino(e) : undefined);
+ } else {
+ obj.attributes = message.attributes;
+ }
+ return obj;
+ },
+ fromAminoMsg(object: PlacementRequirementsAminoMsg): PlacementRequirements {
+ return PlacementRequirements.fromAmino(object.value);
+ },
+ toAminoMsg(message: PlacementRequirements): PlacementRequirementsAminoMsg {
+ return {
+ type: "akash/base/placement-requirements",
+ value: PlacementRequirements.toAmino(message)
+ };
+ },
+ fromProtoMsg(message: PlacementRequirementsProtoMsg): PlacementRequirements {
+ return PlacementRequirements.decode(message.value);
+ },
+ toProto(message: PlacementRequirements): Uint8Array {
+ return PlacementRequirements.encode(message).finish();
+ },
+ toProtoMsg(message: PlacementRequirements): PlacementRequirementsProtoMsg {
+ return {
+ typeUrl: "/akash.base.v1beta1.PlacementRequirements",
+ value: PlacementRequirements.encode(message).finish()
+ };
+ }
+};
+GlobalDecoderRegistry.register(PlacementRequirements.typeUrl, PlacementRequirements);
+GlobalDecoderRegistry.registerAminoProtoMapping(PlacementRequirements.aminoType, PlacementRequirements.typeUrl);
\ No newline at end of file
diff --git a/examples/injective-vue/src/codegen/akash/base/v1beta1/endpoint.ts b/examples/injective-vue/src/codegen/akash/base/v1beta1/endpoint.ts
new file mode 100644
index 000000000..a8866b539
--- /dev/null
+++ b/examples/injective-vue/src/codegen/akash/base/v1beta1/endpoint.ts
@@ -0,0 +1,158 @@
+import { isSet, DeepPartial, Exact } from "../../../helpers";
+import { BinaryReader, BinaryWriter } from "../../../binary";
+import { JsonSafe } from "../../../json-safe";
+import { GlobalDecoderRegistry } from "../../../registry";
+import { ComputedRef } from "vue";
+export const protobufPackage = "akash.base.v1beta1";
+/** This describes how the endpoint is implemented when the lease is deployed */
+export enum Endpoint_Kind {
+ /** SHARED_HTTP - Describes an endpoint that becomes a Kubernetes Ingress */
+ SHARED_HTTP = 0,
+ /** RANDOM_PORT - Describes an endpoint that becomes a Kubernetes NodePort */
+ RANDOM_PORT = 1,
+ UNRECOGNIZED = -1,
+}
+export const Endpoint_KindSDKType = Endpoint_Kind;
+export function endpoint_KindFromJSON(object: any): Endpoint_Kind {
+ switch (object) {
+ case 0:
+ case "SHARED_HTTP":
+ return Endpoint_Kind.SHARED_HTTP;
+ case 1:
+ case "RANDOM_PORT":
+ return Endpoint_Kind.RANDOM_PORT;
+ case -1:
+ case "UNRECOGNIZED":
+ default:
+ return Endpoint_Kind.UNRECOGNIZED;
+ }
+}
+export function endpoint_KindToJSON(object: Endpoint_Kind): string {
+ switch (object) {
+ case Endpoint_Kind.SHARED_HTTP:
+ return "SHARED_HTTP";
+ case Endpoint_Kind.RANDOM_PORT:
+ return "RANDOM_PORT";
+ case Endpoint_Kind.UNRECOGNIZED:
+ default:
+ return "UNRECOGNIZED";
+ }
+}
+/** Endpoint describes a publicly accessible IP service */
+export interface Endpoint {
+ kind: Endpoint_Kind;
+}
+export interface ReactiveEndpoint {
+ kind: ComputedRef;
+}
+export interface EndpointProtoMsg {
+ typeUrl: "/akash.base.v1beta1.Endpoint";
+ value: Uint8Array;
+}
+/** Endpoint describes a publicly accessible IP service */
+export interface EndpointSDKType {
+ kind: Endpoint_Kind;
+}
+function createBaseEndpoint(): Endpoint {
+ return {
+ kind: 0
+ };
+}
+export const Endpoint = {
+ typeUrl: "/akash.base.v1beta1.Endpoint",
+ aminoType: "akash/base/endpoint",
+ is(o: any): o is Endpoint {
+ return o && (o.$typeUrl === Endpoint.typeUrl || isSet(o.kind));
+ },
+ isSDK(o: any): o is EndpointSDKType {
+ return o && (o.$typeUrl === Endpoint.typeUrl || isSet(o.kind));
+ },
+ encode(message: Endpoint, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
+ if (message.kind !== 0) {
+ writer.uint32(8).int32(message.kind);
+ }
+ return writer;
+ },
+ decode(input: BinaryReader | Uint8Array, length?: number): Endpoint {
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseEndpoint();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ message.kind = (reader.int32() as any);
+ break;
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ },
+ fromJSON(object: any): Endpoint {
+ return {
+ kind: isSet(object.kind) ? endpoint_KindFromJSON(object.kind) : -1
+ };
+ },
+ toJSON(message: Endpoint): JsonSafe {
+ const obj: any = {};
+ message.kind !== undefined && (obj.kind = endpoint_KindToJSON(message.kind));
+ return obj;
+ },
+ fromPartial, I>>(object: I): Endpoint {
+ const message = createBaseEndpoint();
+ message.kind = object.kind ?? 0;
+ return message;
+ },
+ fromSDK(object: EndpointSDKType): Endpoint {
+ return {
+ kind: isSet(object.kind) ? endpoint_KindFromJSON(object.kind) : -1
+ };
+ },
+ fromSDKJSON(object: any): EndpointSDKType {
+ return {
+ kind: isSet(object.kind) ? endpoint_KindFromJSON(object.kind) : -1
+ };
+ },
+ toSDK(message: Endpoint): EndpointSDKType {
+ const obj: any = {};
+ message.kind !== undefined && (obj.kind = endpoint_KindToJSON(message.kind));
+ return obj;
+ },
+ fromAmino(object: EndpointAmino): Endpoint {
+ const message = createBaseEndpoint();
+ if (object.kind !== undefined && object.kind !== null) {
+ message.kind = object.kind;
+ }
+ return message;
+ },
+ toAmino(message: Endpoint): EndpointAmino {
+ const obj: any = {};
+ obj.kind = message.kind === 0 ? undefined : message.kind;
+ return obj;
+ },
+ fromAminoMsg(object: EndpointAminoMsg): Endpoint {
+ return Endpoint.fromAmino(object.value);
+ },
+ toAminoMsg(message: Endpoint): EndpointAminoMsg {
+ return {
+ type: "akash/base/endpoint",
+ value: Endpoint.toAmino(message)
+ };
+ },
+ fromProtoMsg(message: EndpointProtoMsg): Endpoint {
+ return Endpoint.decode(message.value);
+ },
+ toProto(message: Endpoint): Uint8Array {
+ return Endpoint.encode(message).finish();
+ },
+ toProtoMsg(message: Endpoint): EndpointProtoMsg {
+ return {
+ typeUrl: "/akash.base.v1beta1.Endpoint",
+ value: Endpoint.encode(message).finish()
+ };
+ }
+};
+GlobalDecoderRegistry.register(Endpoint.typeUrl, Endpoint);
+GlobalDecoderRegistry.registerAminoProtoMapping(Endpoint.aminoType, Endpoint.typeUrl);
\ No newline at end of file
diff --git a/examples/injective-vue/src/codegen/akash/base/v1beta1/resource.ts b/examples/injective-vue/src/codegen/akash/base/v1beta1/resource.ts
new file mode 100644
index 000000000..24c1bd356
--- /dev/null
+++ b/examples/injective-vue/src/codegen/akash/base/v1beta1/resource.ts
@@ -0,0 +1,647 @@
+import { ResourceValue, ResourceValueSDKType } from "./resourcevalue";
+import { Attribute, AttributeSDKType } from "./attribute";
+import { Endpoint, EndpointSDKType } from "./endpoint";
+import { BinaryReader, BinaryWriter } from "../../../binary";
+import { isSet, DeepPartial, Exact } from "../../../helpers";
+import { JsonSafe } from "../../../json-safe";
+import { GlobalDecoderRegistry } from "../../../registry";
+import { ComputedRef } from "vue";
+export const protobufPackage = "akash.base.v1beta1";
+/** CPU stores resource units and cpu config attributes */
+export interface CPU {
+ units: ResourceValue;
+ attributes: Attribute[];
+}
+export interface ReactiveCPU {
+ units: ComputedRef;
+ attributes: ComputedRef;
+}
+export interface CPUProtoMsg {
+ typeUrl: "/akash.base.v1beta1.CPU";
+ value: Uint8Array;
+}
+/** CPU stores resource units and cpu config attributes */
+export interface CPUSDKType {
+ units: ResourceValueSDKType;
+ attributes: AttributeSDKType[];
+}
+/** Memory stores resource quantity and memory attributes */
+export interface Memory {
+ quantity: ResourceValue;
+ attributes: Attribute[];
+}
+export interface ReactiveMemory {
+ quantity: ComputedRef;
+ attributes: ComputedRef;
+}
+export interface MemoryProtoMsg {
+ typeUrl: "/akash.base.v1beta1.Memory";
+ value: Uint8Array;
+}
+/** Memory stores resource quantity and memory attributes */
+export interface MemorySDKType {
+ quantity: ResourceValueSDKType;
+ attributes: AttributeSDKType[];
+}
+/** Storage stores resource quantity and storage attributes */
+export interface Storage {
+ quantity: ResourceValue;
+ attributes: Attribute[];
+}
+export interface ReactiveStorage {
+ quantity: ComputedRef;
+ attributes: ComputedRef;
+}
+export interface StorageProtoMsg {
+ typeUrl: "/akash.base.v1beta1.Storage";
+ value: Uint8Array;
+}
+/** Storage stores resource quantity and storage attributes */
+export interface StorageSDKType {
+ quantity: ResourceValueSDKType;
+ attributes: AttributeSDKType[];
+}
+/**
+ * ResourceUnits describes all available resources types for deployment/node etc
+ * if field is nil resource is not present in the given data-structure
+ */
+export interface ResourceUnits {
+ cpu?: CPU;
+ memory?: Memory;
+ storage?: Storage;
+ endpoints: Endpoint[];
+}
+export interface ReactiveResourceUnits {
+ cpu?: ComputedRef;
+ memory?: ComputedRef;
+ storage?: ComputedRef;
+ endpoints: ComputedRef;
+}
+export interface ResourceUnitsProtoMsg {
+ typeUrl: "/akash.base.v1beta1.ResourceUnits";
+ value: Uint8Array;
+}
+/**
+ * ResourceUnits describes all available resources types for deployment/node etc
+ * if field is nil resource is not present in the given data-structure
+ */
+export interface ResourceUnitsSDKType {
+ cpu?: CPUSDKType;
+ memory?: MemorySDKType;
+ storage?: StorageSDKType;
+ endpoints: EndpointSDKType[];
+}
+function createBaseCPU(): CPU {
+ return {
+ units: ResourceValue.fromPartial({}),
+ attributes: []
+ };
+}
+export const CPU = {
+ typeUrl: "/akash.base.v1beta1.CPU",
+ aminoType: "akash/base/cpu",
+ is(o: any): o is CPU {
+ return o && (o.$typeUrl === CPU.typeUrl || ResourceValue.is(o.units) && Array.isArray(o.attributes) && (!o.attributes.length || Attribute.is(o.attributes[0])));
+ },
+ isSDK(o: any): o is CPUSDKType {
+ return o && (o.$typeUrl === CPU.typeUrl || ResourceValue.isSDK(o.units) && Array.isArray(o.attributes) && (!o.attributes.length || Attribute.isSDK(o.attributes[0])));
+ },
+ encode(message: CPU, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
+ if (message.units !== undefined) {
+ ResourceValue.encode(message.units, writer.uint32(10).fork()).ldelim();
+ }
+ for (const v of message.attributes) {
+ Attribute.encode(v!, writer.uint32(18).fork()).ldelim();
+ }
+ return writer;
+ },
+ decode(input: BinaryReader | Uint8Array, length?: number): CPU {
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseCPU();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ message.units = ResourceValue.decode(reader, reader.uint32());
+ break;
+ case 2:
+ message.attributes.push(Attribute.decode(reader, reader.uint32()));
+ break;
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ },
+ fromJSON(object: any): CPU {
+ return {
+ units: isSet(object.units) ? ResourceValue.fromJSON(object.units) : undefined,
+ attributes: Array.isArray(object?.attributes) ? object.attributes.map((e: any) => Attribute.fromJSON(e)) : []
+ };
+ },
+ toJSON(message: CPU): JsonSafe {
+ const obj: any = {};
+ message.units !== undefined && (obj.units = message.units ? ResourceValue.toJSON(message.units) : undefined);
+ if (message.attributes) {
+ obj.attributes = message.attributes.map(e => e ? Attribute.toJSON(e) : undefined);
+ } else {
+ obj.attributes = [];
+ }
+ return obj;
+ },
+ fromPartial, I>>(object: I): CPU {
+ const message = createBaseCPU();
+ message.units = object.units !== undefined && object.units !== null ? ResourceValue.fromPartial(object.units) : undefined;
+ message.attributes = object.attributes?.map(e => Attribute.fromPartial(e)) || [];
+ return message;
+ },
+ fromSDK(object: CPUSDKType): CPU {
+ return {
+ units: object.units ? ResourceValue.fromSDK(object.units) : undefined,
+ attributes: Array.isArray(object?.attributes) ? object.attributes.map((e: any) => Attribute.fromSDK(e)) : []
+ };
+ },
+ fromSDKJSON(object: any): CPUSDKType {
+ return {
+ units: isSet(object.units) ? ResourceValue.fromSDKJSON(object.units) : undefined,
+ attributes: Array.isArray(object?.attributes) ? object.attributes.map((e: any) => Attribute.fromSDKJSON(e)) : []
+ };
+ },
+ toSDK(message: CPU): CPUSDKType {
+ const obj: any = {};
+ message.units !== undefined && (obj.units = message.units ? ResourceValue.toSDK(message.units) : undefined);
+ if (message.attributes) {
+ obj.attributes = message.attributes.map(e => e ? Attribute.toSDK(e) : undefined);
+ } else {
+ obj.attributes = [];
+ }
+ return obj;
+ },
+ fromAmino(object: CPUAmino): CPU {
+ const message = createBaseCPU();
+ if (object.units !== undefined && object.units !== null) {
+ message.units = ResourceValue.fromAmino(object.units);
+ }
+ message.attributes = object.attributes?.map(e => Attribute.fromAmino(e)) || [];
+ return message;
+ },
+ toAmino(message: CPU): CPUAmino {
+ const obj: any = {};
+ obj.units = message.units ? ResourceValue.toAmino(message.units) : undefined;
+ if (message.attributes) {
+ obj.attributes = message.attributes.map(e => e ? Attribute.toAmino(e) : undefined);
+ } else {
+ obj.attributes = message.attributes;
+ }
+ return obj;
+ },
+ fromAminoMsg(object: CPUAminoMsg): CPU {
+ return CPU.fromAmino(object.value);
+ },
+ toAminoMsg(message: CPU): CPUAminoMsg {
+ return {
+ type: "akash/base/cpu",
+ value: CPU.toAmino(message)
+ };
+ },
+ fromProtoMsg(message: CPUProtoMsg): CPU {
+ return CPU.decode(message.value);
+ },
+ toProto(message: CPU): Uint8Array {
+ return CPU.encode(message).finish();
+ },
+ toProtoMsg(message: CPU): CPUProtoMsg {
+ return {
+ typeUrl: "/akash.base.v1beta1.CPU",
+ value: CPU.encode(message).finish()
+ };
+ }
+};
+GlobalDecoderRegistry.register(CPU.typeUrl, CPU);
+GlobalDecoderRegistry.registerAminoProtoMapping(CPU.aminoType, CPU.typeUrl);
+function createBaseMemory(): Memory {
+ return {
+ quantity: ResourceValue.fromPartial({}),
+ attributes: []
+ };
+}
+export const Memory = {
+ typeUrl: "/akash.base.v1beta1.Memory",
+ aminoType: "akash/base/memory",
+ is(o: any): o is Memory {
+ return o && (o.$typeUrl === Memory.typeUrl || ResourceValue.is(o.quantity) && Array.isArray(o.attributes) && (!o.attributes.length || Attribute.is(o.attributes[0])));
+ },
+ isSDK(o: any): o is MemorySDKType {
+ return o && (o.$typeUrl === Memory.typeUrl || ResourceValue.isSDK(o.quantity) && Array.isArray(o.attributes) && (!o.attributes.length || Attribute.isSDK(o.attributes[0])));
+ },
+ encode(message: Memory, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
+ if (message.quantity !== undefined) {
+ ResourceValue.encode(message.quantity, writer.uint32(10).fork()).ldelim();
+ }
+ for (const v of message.attributes) {
+ Attribute.encode(v!, writer.uint32(18).fork()).ldelim();
+ }
+ return writer;
+ },
+ decode(input: BinaryReader | Uint8Array, length?: number): Memory {
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseMemory();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ message.quantity = ResourceValue.decode(reader, reader.uint32());
+ break;
+ case 2:
+ message.attributes.push(Attribute.decode(reader, reader.uint32()));
+ break;
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ },
+ fromJSON(object: any): Memory {
+ return {
+ quantity: isSet(object.quantity) ? ResourceValue.fromJSON(object.quantity) : undefined,
+ attributes: Array.isArray(object?.attributes) ? object.attributes.map((e: any) => Attribute.fromJSON(e)) : []
+ };
+ },
+ toJSON(message: Memory): JsonSafe {
+ const obj: any = {};
+ message.quantity !== undefined && (obj.quantity = message.quantity ? ResourceValue.toJSON(message.quantity) : undefined);
+ if (message.attributes) {
+ obj.attributes = message.attributes.map(e => e ? Attribute.toJSON(e) : undefined);
+ } else {
+ obj.attributes = [];
+ }
+ return obj;
+ },
+ fromPartial, I>>(object: I): Memory {
+ const message = createBaseMemory();
+ message.quantity = object.quantity !== undefined && object.quantity !== null ? ResourceValue.fromPartial(object.quantity) : undefined;
+ message.attributes = object.attributes?.map(e => Attribute.fromPartial(e)) || [];
+ return message;
+ },
+ fromSDK(object: MemorySDKType): Memory {
+ return {
+ quantity: object.quantity ? ResourceValue.fromSDK(object.quantity) : undefined,
+ attributes: Array.isArray(object?.attributes) ? object.attributes.map((e: any) => Attribute.fromSDK(e)) : []
+ };
+ },
+ fromSDKJSON(object: any): MemorySDKType {
+ return {
+ quantity: isSet(object.quantity) ? ResourceValue.fromSDKJSON(object.quantity) : undefined,
+ attributes: Array.isArray(object?.attributes) ? object.attributes.map((e: any) => Attribute.fromSDKJSON(e)) : []
+ };
+ },
+ toSDK(message: Memory): MemorySDKType {
+ const obj: any = {};
+ message.quantity !== undefined && (obj.quantity = message.quantity ? ResourceValue.toSDK(message.quantity) : undefined);
+ if (message.attributes) {
+ obj.attributes = message.attributes.map(e => e ? Attribute.toSDK(e) : undefined);
+ } else {
+ obj.attributes = [];
+ }
+ return obj;
+ },
+ fromAmino(object: MemoryAmino): Memory {
+ const message = createBaseMemory();
+ if (object.quantity !== undefined && object.quantity !== null) {
+ message.quantity = ResourceValue.fromAmino(object.quantity);
+ }
+ message.attributes = object.attributes?.map(e => Attribute.fromAmino(e)) || [];
+ return message;
+ },
+ toAmino(message: Memory): MemoryAmino {
+ const obj: any = {};
+ obj.quantity = message.quantity ? ResourceValue.toAmino(message.quantity) : ResourceValue.toAmino(ResourceValue.fromPartial({}));
+ if (message.attributes) {
+ obj.attributes = message.attributes.map(e => e ? Attribute.toAmino(e) : undefined);
+ } else {
+ obj.attributes = message.attributes;
+ }
+ return obj;
+ },
+ fromAminoMsg(object: MemoryAminoMsg): Memory {
+ return Memory.fromAmino(object.value);
+ },
+ toAminoMsg(message: Memory): MemoryAminoMsg {
+ return {
+ type: "akash/base/memory",
+ value: Memory.toAmino(message)
+ };
+ },
+ fromProtoMsg(message: MemoryProtoMsg): Memory {
+ return Memory.decode(message.value);
+ },
+ toProto(message: Memory): Uint8Array {
+ return Memory.encode(message).finish();
+ },
+ toProtoMsg(message: Memory): MemoryProtoMsg {
+ return {
+ typeUrl: "/akash.base.v1beta1.Memory",
+ value: Memory.encode(message).finish()
+ };
+ }
+};
+GlobalDecoderRegistry.register(Memory.typeUrl, Memory);
+GlobalDecoderRegistry.registerAminoProtoMapping(Memory.aminoType, Memory.typeUrl);
+function createBaseStorage(): Storage {
+ return {
+ quantity: ResourceValue.fromPartial({}),
+ attributes: []
+ };
+}
+export const Storage = {
+ typeUrl: "/akash.base.v1beta1.Storage",
+ aminoType: "akash/base/storage",
+ is(o: any): o is Storage {
+ return o && (o.$typeUrl === Storage.typeUrl || ResourceValue.is(o.quantity) && Array.isArray(o.attributes) && (!o.attributes.length || Attribute.is(o.attributes[0])));
+ },
+ isSDK(o: any): o is StorageSDKType {
+ return o && (o.$typeUrl === Storage.typeUrl || ResourceValue.isSDK(o.quantity) && Array.isArray(o.attributes) && (!o.attributes.length || Attribute.isSDK(o.attributes[0])));
+ },
+ encode(message: Storage, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
+ if (message.quantity !== undefined) {
+ ResourceValue.encode(message.quantity, writer.uint32(10).fork()).ldelim();
+ }
+ for (const v of message.attributes) {
+ Attribute.encode(v!, writer.uint32(18).fork()).ldelim();
+ }
+ return writer;
+ },
+ decode(input: BinaryReader | Uint8Array, length?: number): Storage {
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseStorage();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ message.quantity = ResourceValue.decode(reader, reader.uint32());
+ break;
+ case 2:
+ message.attributes.push(Attribute.decode(reader, reader.uint32()));
+ break;
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ },
+ fromJSON(object: any): Storage {
+ return {
+ quantity: isSet(object.quantity) ? ResourceValue.fromJSON(object.quantity) : undefined,
+ attributes: Array.isArray(object?.attributes) ? object.attributes.map((e: any) => Attribute.fromJSON(e)) : []
+ };
+ },
+ toJSON(message: Storage): JsonSafe {
+ const obj: any = {};
+ message.quantity !== undefined && (obj.quantity = message.quantity ? ResourceValue.toJSON(message.quantity) : undefined);
+ if (message.attributes) {
+ obj.attributes = message.attributes.map(e => e ? Attribute.toJSON(e) : undefined);
+ } else {
+ obj.attributes = [];
+ }
+ return obj;
+ },
+ fromPartial, I>>(object: I): Storage {
+ const message = createBaseStorage();
+ message.quantity = object.quantity !== undefined && object.quantity !== null ? ResourceValue.fromPartial(object.quantity) : undefined;
+ message.attributes = object.attributes?.map(e => Attribute.fromPartial(e)) || [];
+ return message;
+ },
+ fromSDK(object: StorageSDKType): Storage {
+ return {
+ quantity: object.quantity ? ResourceValue.fromSDK(object.quantity) : undefined,
+ attributes: Array.isArray(object?.attributes) ? object.attributes.map((e: any) => Attribute.fromSDK(e)) : []
+ };
+ },
+ fromSDKJSON(object: any): StorageSDKType {
+ return {
+ quantity: isSet(object.quantity) ? ResourceValue.fromSDKJSON(object.quantity) : undefined,
+ attributes: Array.isArray(object?.attributes) ? object.attributes.map((e: any) => Attribute.fromSDKJSON(e)) : []
+ };
+ },
+ toSDK(message: Storage): StorageSDKType {
+ const obj: any = {};
+ message.quantity !== undefined && (obj.quantity = message.quantity ? ResourceValue.toSDK(message.quantity) : undefined);
+ if (message.attributes) {
+ obj.attributes = message.attributes.map(e => e ? Attribute.toSDK(e) : undefined);
+ } else {
+ obj.attributes = [];
+ }
+ return obj;
+ },
+ fromAmino(object: StorageAmino): Storage {
+ const message = createBaseStorage();
+ if (object.quantity !== undefined && object.quantity !== null) {
+ message.quantity = ResourceValue.fromAmino(object.quantity);
+ }
+ message.attributes = object.attributes?.map(e => Attribute.fromAmino(e)) || [];
+ return message;
+ },
+ toAmino(message: Storage): StorageAmino {
+ const obj: any = {};
+ obj.quantity = message.quantity ? ResourceValue.toAmino(message.quantity) : ResourceValue.toAmino(ResourceValue.fromPartial({}));
+ if (message.attributes) {
+ obj.attributes = message.attributes.map(e => e ? Attribute.toAmino(e) : undefined);
+ } else {
+ obj.attributes = message.attributes;
+ }
+ return obj;
+ },
+ fromAminoMsg(object: StorageAminoMsg): Storage {
+ return Storage.fromAmino(object.value);
+ },
+ toAminoMsg(message: Storage): StorageAminoMsg {
+ return {
+ type: "akash/base/storage",
+ value: Storage.toAmino(message)
+ };
+ },
+ fromProtoMsg(message: StorageProtoMsg): Storage {
+ return Storage.decode(message.value);
+ },
+ toProto(message: Storage): Uint8Array {
+ return Storage.encode(message).finish();
+ },
+ toProtoMsg(message: Storage): StorageProtoMsg {
+ return {
+ typeUrl: "/akash.base.v1beta1.Storage",
+ value: Storage.encode(message).finish()
+ };
+ }
+};
+GlobalDecoderRegistry.register(Storage.typeUrl, Storage);
+GlobalDecoderRegistry.registerAminoProtoMapping(Storage.aminoType, Storage.typeUrl);
+function createBaseResourceUnits(): ResourceUnits {
+ return {
+ cpu: undefined,
+ memory: undefined,
+ storage: undefined,
+ endpoints: []
+ };
+}
+export const ResourceUnits = {
+ typeUrl: "/akash.base.v1beta1.ResourceUnits",
+ aminoType: "akash/base/resource-units",
+ is(o: any): o is ResourceUnits {
+ return o && (o.$typeUrl === ResourceUnits.typeUrl || Array.isArray(o.endpoints) && (!o.endpoints.length || Endpoint.is(o.endpoints[0])));
+ },
+ isSDK(o: any): o is ResourceUnitsSDKType {
+ return o && (o.$typeUrl === ResourceUnits.typeUrl || Array.isArray(o.endpoints) && (!o.endpoints.length || Endpoint.isSDK(o.endpoints[0])));
+ },
+ encode(message: ResourceUnits, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
+ if (message.cpu !== undefined) {
+ CPU.encode(message.cpu, writer.uint32(10).fork()).ldelim();
+ }
+ if (message.memory !== undefined) {
+ Memory.encode(message.memory, writer.uint32(18).fork()).ldelim();
+ }
+ if (message.storage !== undefined) {
+ Storage.encode(message.storage, writer.uint32(26).fork()).ldelim();
+ }
+ for (const v of message.endpoints) {
+ Endpoint.encode(v!, writer.uint32(34).fork()).ldelim();
+ }
+ return writer;
+ },
+ decode(input: BinaryReader | Uint8Array, length?: number): ResourceUnits {
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseResourceUnits();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ message.cpu = CPU.decode(reader, reader.uint32());
+ break;
+ case 2:
+ message.memory = Memory.decode(reader, reader.uint32());
+ break;
+ case 3:
+ message.storage = Storage.decode(reader, reader.uint32());
+ break;
+ case 4:
+ message.endpoints.push(Endpoint.decode(reader, reader.uint32()));
+ break;
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ },
+ fromJSON(object: any): ResourceUnits {
+ return {
+ cpu: isSet(object.cpu) ? CPU.fromJSON(object.cpu) : undefined,
+ memory: isSet(object.memory) ? Memory.fromJSON(object.memory) : undefined,
+ storage: isSet(object.storage) ? Storage.fromJSON(object.storage) : undefined,
+ endpoints: Array.isArray(object?.endpoints) ? object.endpoints.map((e: any) => Endpoint.fromJSON(e)) : []
+ };
+ },
+ toJSON(message: ResourceUnits): JsonSafe {
+ const obj: any = {};
+ message.cpu !== undefined && (obj.cpu = message.cpu ? CPU.toJSON(message.cpu) : undefined);
+ message.memory !== undefined && (obj.memory = message.memory ? Memory.toJSON(message.memory) : undefined);
+ message.storage !== undefined && (obj.storage = message.storage ? Storage.toJSON(message.storage) : undefined);
+ if (message.endpoints) {
+ obj.endpoints = message.endpoints.map(e => e ? Endpoint.toJSON(e) : undefined);
+ } else {
+ obj.endpoints = [];
+ }
+ return obj;
+ },
+ fromPartial, I>>(object: I): ResourceUnits {
+ const message = createBaseResourceUnits();
+ message.cpu = object.cpu !== undefined && object.cpu !== null ? CPU.fromPartial(object.cpu) : undefined;
+ message.memory = object.memory !== undefined && object.memory !== null ? Memory.fromPartial(object.memory) : undefined;
+ message.storage = object.storage !== undefined && object.storage !== null ? Storage.fromPartial(object.storage) : undefined;
+ message.endpoints = object.endpoints?.map(e => Endpoint.fromPartial(e)) || [];
+ return message;
+ },
+ fromSDK(object: ResourceUnitsSDKType): ResourceUnits {
+ return {
+ cpu: object.cpu ? CPU.fromSDK(object.cpu) : undefined,
+ memory: object.memory ? Memory.fromSDK(object.memory) : undefined,
+ storage: object.storage ? Storage.fromSDK(object.storage) : undefined,
+ endpoints: Array.isArray(object?.endpoints) ? object.endpoints.map((e: any) => Endpoint.fromSDK(e)) : []
+ };
+ },
+ fromSDKJSON(object: any): ResourceUnitsSDKType {
+ return {
+ cpu: isSet(object.cpu) ? CPU.fromSDKJSON(object.cpu) : undefined,
+ memory: isSet(object.memory) ? Memory.fromSDKJSON(object.memory) : undefined,
+ storage: isSet(object.storage) ? Storage.fromSDKJSON(object.storage) : undefined,
+ endpoints: Array.isArray(object?.endpoints) ? object.endpoints.map((e: any) => Endpoint.fromSDKJSON(e)) : []
+ };
+ },
+ toSDK(message: ResourceUnits): ResourceUnitsSDKType {
+ const obj: any = {};
+ message.cpu !== undefined && (obj.cpu = message.cpu ? CPU.toSDK(message.cpu) : undefined);
+ message.memory !== undefined && (obj.memory = message.memory ? Memory.toSDK(message.memory) : undefined);
+ message.storage !== undefined && (obj.storage = message.storage ? Storage.toSDK(message.storage) : undefined);
+ if (message.endpoints) {
+ obj.endpoints = message.endpoints.map(e => e ? Endpoint.toSDK(e) : undefined);
+ } else {
+ obj.endpoints = [];
+ }
+ return obj;
+ },
+ fromAmino(object: ResourceUnitsAmino): ResourceUnits {
+ const message = createBaseResourceUnits();
+ if (object.cpu !== undefined && object.cpu !== null) {
+ message.cpu = CPU.fromAmino(object.cpu);
+ }
+ if (object.memory !== undefined && object.memory !== null) {
+ message.memory = Memory.fromAmino(object.memory);
+ }
+ if (object.storage !== undefined && object.storage !== null) {
+ message.storage = Storage.fromAmino(object.storage);
+ }
+ message.endpoints = object.endpoints?.map(e => Endpoint.fromAmino(e)) || [];
+ return message;
+ },
+ toAmino(message: ResourceUnits): ResourceUnitsAmino {
+ const obj: any = {};
+ obj.cpu = message.cpu ? CPU.toAmino(message.cpu) : undefined;
+ obj.memory = message.memory ? Memory.toAmino(message.memory) : undefined;
+ obj.storage = message.storage ? Storage.toAmino(message.storage) : undefined;
+ if (message.endpoints) {
+ obj.endpoints = message.endpoints.map(e => e ? Endpoint.toAmino(e) : undefined);
+ } else {
+ obj.endpoints = message.endpoints;
+ }
+ return obj;
+ },
+ fromAminoMsg(object: ResourceUnitsAminoMsg): ResourceUnits {
+ return ResourceUnits.fromAmino(object.value);
+ },
+ toAminoMsg(message: ResourceUnits): ResourceUnitsAminoMsg {
+ return {
+ type: "akash/base/resource-units",
+ value: ResourceUnits.toAmino(message)
+ };
+ },
+ fromProtoMsg(message: ResourceUnitsProtoMsg): ResourceUnits {
+ return ResourceUnits.decode(message.value);
+ },
+ toProto(message: ResourceUnits): Uint8Array {
+ return ResourceUnits.encode(message).finish();
+ },
+ toProtoMsg(message: ResourceUnits): ResourceUnitsProtoMsg {
+ return {
+ typeUrl: "/akash.base.v1beta1.ResourceUnits",
+ value: ResourceUnits.encode(message).finish()
+ };
+ }
+};
+GlobalDecoderRegistry.register(ResourceUnits.typeUrl, ResourceUnits);
+GlobalDecoderRegistry.registerAminoProtoMapping(ResourceUnits.aminoType, ResourceUnits.typeUrl);
\ No newline at end of file
diff --git a/examples/injective-vue/src/codegen/akash/base/v1beta1/resourcevalue.ts b/examples/injective-vue/src/codegen/akash/base/v1beta1/resourcevalue.ts
new file mode 100644
index 000000000..aa33dafec
--- /dev/null
+++ b/examples/injective-vue/src/codegen/akash/base/v1beta1/resourcevalue.ts
@@ -0,0 +1,124 @@
+import { BinaryReader, BinaryWriter } from "../../../binary";
+import { isSet, bytesFromBase64, base64FromBytes, DeepPartial, Exact } from "../../../helpers";
+import { JsonSafe } from "../../../json-safe";
+import { GlobalDecoderRegistry } from "../../../registry";
+import { ComputedRef } from "vue";
+export const protobufPackage = "akash.base.v1beta1";
+/** Unit stores cpu, memory and storage metrics */
+export interface ResourceValue {
+ val: Uint8Array;
+}
+export interface ReactiveResourceValue {
+ val: ComputedRef;
+}
+export interface ResourceValueProtoMsg {
+ typeUrl: "/akash.base.v1beta1.ResourceValue";
+ value: Uint8Array;
+}
+/** Unit stores cpu, memory and storage metrics */
+export interface ResourceValueSDKType {
+ val: Uint8Array;
+}
+function createBaseResourceValue(): ResourceValue {
+ return {
+ val: new Uint8Array()
+ };
+}
+export const ResourceValue = {
+ typeUrl: "/akash.base.v1beta1.ResourceValue",
+ aminoType: "akash/base/resource-value",
+ is(o: any): o is ResourceValue {
+ return o && (o.$typeUrl === ResourceValue.typeUrl || o.val instanceof Uint8Array || typeof o.val === "string");
+ },
+ isSDK(o: any): o is ResourceValueSDKType {
+ return o && (o.$typeUrl === ResourceValue.typeUrl || o.val instanceof Uint8Array || typeof o.val === "string");
+ },
+ encode(message: ResourceValue, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
+ if (message.val.length !== 0) {
+ writer.uint32(10).bytes(message.val);
+ }
+ return writer;
+ },
+ decode(input: BinaryReader | Uint8Array, length?: number): ResourceValue {
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseResourceValue();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ message.val = reader.bytes();
+ break;
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ },
+ fromJSON(object: any): ResourceValue {
+ return {
+ val: isSet(object.val) ? bytesFromBase64(object.val) : new Uint8Array()
+ };
+ },
+ toJSON(message: ResourceValue): JsonSafe {
+ const obj: any = {};
+ message.val !== undefined && (obj.val = base64FromBytes(message.val !== undefined ? message.val : new Uint8Array()));
+ return obj;
+ },
+ fromPartial, I>>(object: I): ResourceValue {
+ const message = createBaseResourceValue();
+ message.val = object.val ?? new Uint8Array();
+ return message;
+ },
+ fromSDK(object: ResourceValueSDKType): ResourceValue {
+ return {
+ val: object?.val
+ };
+ },
+ fromSDKJSON(object: any): ResourceValueSDKType {
+ return {
+ val: isSet(object.val) ? bytesFromBase64(object.val) : new Uint8Array()
+ };
+ },
+ toSDK(message: ResourceValue): ResourceValueSDKType {
+ const obj: any = {};
+ obj.val = message.val;
+ return obj;
+ },
+ fromAmino(object: ResourceValueAmino): ResourceValue {
+ const message = createBaseResourceValue();
+ if (object.val !== undefined && object.val !== null) {
+ message.val = bytesFromBase64(object.val);
+ }
+ return message;
+ },
+ toAmino(message: ResourceValue): ResourceValueAmino {
+ const obj: any = {};
+ obj.val = message.val ? base64FromBytes(message.val) : undefined;
+ return obj;
+ },
+ fromAminoMsg(object: ResourceValueAminoMsg): ResourceValue {
+ return ResourceValue.fromAmino(object.value);
+ },
+ toAminoMsg(message: ResourceValue): ResourceValueAminoMsg {
+ return {
+ type: "akash/base/resource-value",
+ value: ResourceValue.toAmino(message)
+ };
+ },
+ fromProtoMsg(message: ResourceValueProtoMsg): ResourceValue {
+ return ResourceValue.decode(message.value);
+ },
+ toProto(message: ResourceValue): Uint8Array {
+ return ResourceValue.encode(message).finish();
+ },
+ toProtoMsg(message: ResourceValue): ResourceValueProtoMsg {
+ return {
+ typeUrl: "/akash.base.v1beta1.ResourceValue",
+ value: ResourceValue.encode(message).finish()
+ };
+ }
+};
+GlobalDecoderRegistry.register(ResourceValue.typeUrl, ResourceValue);
+GlobalDecoderRegistry.registerAminoProtoMapping(ResourceValue.aminoType, ResourceValue.typeUrl);
\ No newline at end of file
diff --git a/examples/injective-vue/src/codegen/akash/base/v1beta2/attribute.ts b/examples/injective-vue/src/codegen/akash/base/v1beta2/attribute.ts
new file mode 100644
index 000000000..b0cc60d9a
--- /dev/null
+++ b/examples/injective-vue/src/codegen/akash/base/v1beta2/attribute.ts
@@ -0,0 +1,464 @@
+import { BinaryReader, BinaryWriter } from "../../../binary";
+import { isSet, DeepPartial, Exact } from "../../../helpers";
+import { JsonSafe } from "../../../json-safe";
+import { GlobalDecoderRegistry } from "../../../registry";
+import { ComputedRef } from "vue";
+export const protobufPackage = "akash.base.v1beta2";
+/** Attribute represents key value pair */
+export interface Attribute {
+ key: string;
+ value: string;
+}
+export interface ReactiveAttribute {
+ key: ComputedRef;
+ value: ComputedRef;
+}
+export interface AttributeProtoMsg {
+ typeUrl: "/akash.base.v1beta2.Attribute";
+ value: Uint8Array;
+}
+/** Attribute represents key value pair */
+export interface AttributeSDKType {
+ key: string;
+ value: string;
+}
+/**
+ * SignedBy represents validation accounts that tenant expects signatures for provider attributes
+ * AllOf has precedence i.e. if there is at least one entry AnyOf is ignored regardless to how many
+ * entries there
+ * this behaviour to be discussed
+ */
+export interface SignedBy {
+ /** all_of all keys in this list must have signed attributes */
+ allOf: string[];
+ /** any_of at least of of the keys from the list must have signed attributes */
+ anyOf: string[];
+}
+export interface ReactiveSignedBy {
+ allOf: ComputedRef;
+ anyOf: ComputedRef;
+}
+export interface SignedByProtoMsg {
+ typeUrl: "/akash.base.v1beta2.SignedBy";
+ value: Uint8Array;
+}
+/**
+ * SignedBy represents validation accounts that tenant expects signatures for provider attributes
+ * AllOf has precedence i.e. if there is at least one entry AnyOf is ignored regardless to how many
+ * entries there
+ * this behaviour to be discussed
+ */
+export interface SignedBySDKType {
+ all_of: string[];
+ any_of: string[];
+}
+/** PlacementRequirements */
+export interface PlacementRequirements {
+ /** SignedBy list of keys that tenants expect to have signatures from */
+ signedBy: SignedBy;
+ /** Attribute list of attributes tenant expects from the provider */
+ attributes: Attribute[];
+}
+export interface ReactivePlacementRequirements {
+ signedBy: ComputedRef;
+ attributes: ComputedRef;
+}
+export interface PlacementRequirementsProtoMsg {
+ typeUrl: "/akash.base.v1beta2.PlacementRequirements";
+ value: Uint8Array;
+}
+/** PlacementRequirements */
+export interface PlacementRequirementsSDKType {
+ signed_by: SignedBySDKType;
+ attributes: AttributeSDKType[];
+}
+function createBaseAttribute(): Attribute {
+ return {
+ key: "",
+ value: ""
+ };
+}
+export const Attribute = {
+ typeUrl: "/akash.base.v1beta2.Attribute",
+ aminoType: "akash/base/v1beta2/attribute",
+ is(o: any): o is Attribute {
+ return o && (o.$typeUrl === Attribute.typeUrl || typeof o.key === "string" && typeof o.value === "string");
+ },
+ isSDK(o: any): o is AttributeSDKType {
+ return o && (o.$typeUrl === Attribute.typeUrl || typeof o.key === "string" && typeof o.value === "string");
+ },
+ encode(message: Attribute, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
+ if (message.key !== "") {
+ writer.uint32(10).string(message.key);
+ }
+ if (message.value !== "") {
+ writer.uint32(18).string(message.value);
+ }
+ return writer;
+ },
+ decode(input: BinaryReader | Uint8Array, length?: number): Attribute {
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseAttribute();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ message.key = reader.string();
+ break;
+ case 2:
+ message.value = reader.string();
+ break;
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ },
+ fromJSON(object: any): Attribute {
+ return {
+ key: isSet(object.key) ? String(object.key) : "",
+ value: isSet(object.value) ? String(object.value) : ""
+ };
+ },
+ toJSON(message: Attribute): JsonSafe {
+ const obj: any = {};
+ message.key !== undefined && (obj.key = message.key);
+ message.value !== undefined && (obj.value = message.value);
+ return obj;
+ },
+ fromPartial, I>>(object: I): Attribute {
+ const message = createBaseAttribute();
+ message.key = object.key ?? "";
+ message.value = object.value ?? "";
+ return message;
+ },
+ fromSDK(object: AttributeSDKType): Attribute {
+ return {
+ key: object?.key,
+ value: object?.value
+ };
+ },
+ fromSDKJSON(object: any): AttributeSDKType {
+ return {
+ key: isSet(object.key) ? String(object.key) : "",
+ value: isSet(object.value) ? String(object.value) : ""
+ };
+ },
+ toSDK(message: Attribute): AttributeSDKType {
+ const obj: any = {};
+ obj.key = message.key;
+ obj.value = message.value;
+ return obj;
+ },
+ fromAmino(object: AttributeAmino): Attribute {
+ const message = createBaseAttribute();
+ if (object.key !== undefined && object.key !== null) {
+ message.key = object.key;
+ }
+ if (object.value !== undefined && object.value !== null) {
+ message.value = object.value;
+ }
+ return message;
+ },
+ toAmino(message: Attribute): AttributeAmino {
+ const obj: any = {};
+ obj.key = message.key === "" ? undefined : message.key;
+ obj.value = message.value === "" ? undefined : message.value;
+ return obj;
+ },
+ fromAminoMsg(object: AttributeAminoMsg): Attribute {
+ return Attribute.fromAmino(object.value);
+ },
+ toAminoMsg(message: Attribute): AttributeAminoMsg {
+ return {
+ type: "akash/base/v1beta2/attribute",
+ value: Attribute.toAmino(message)
+ };
+ },
+ fromProtoMsg(message: AttributeProtoMsg): Attribute {
+ return Attribute.decode(message.value);
+ },
+ toProto(message: Attribute): Uint8Array {
+ return Attribute.encode(message).finish();
+ },
+ toProtoMsg(message: Attribute): AttributeProtoMsg {
+ return {
+ typeUrl: "/akash.base.v1beta2.Attribute",
+ value: Attribute.encode(message).finish()
+ };
+ }
+};
+GlobalDecoderRegistry.register(Attribute.typeUrl, Attribute);
+GlobalDecoderRegistry.registerAminoProtoMapping(Attribute.aminoType, Attribute.typeUrl);
+function createBaseSignedBy(): SignedBy {
+ return {
+ allOf: [],
+ anyOf: []
+ };
+}
+export const SignedBy = {
+ typeUrl: "/akash.base.v1beta2.SignedBy",
+ aminoType: "akash/base/v1beta2/signed-by",
+ is(o: any): o is SignedBy {
+ return o && (o.$typeUrl === SignedBy.typeUrl || Array.isArray(o.allOf) && (!o.allOf.length || typeof o.allOf[0] === "string") && Array.isArray(o.anyOf) && (!o.anyOf.length || typeof o.anyOf[0] === "string"));
+ },
+ isSDK(o: any): o is SignedBySDKType {
+ return o && (o.$typeUrl === SignedBy.typeUrl || Array.isArray(o.all_of) && (!o.all_of.length || typeof o.all_of[0] === "string") && Array.isArray(o.any_of) && (!o.any_of.length || typeof o.any_of[0] === "string"));
+ },
+ encode(message: SignedBy, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
+ for (const v of message.allOf) {
+ writer.uint32(10).string(v!);
+ }
+ for (const v of message.anyOf) {
+ writer.uint32(18).string(v!);
+ }
+ return writer;
+ },
+ decode(input: BinaryReader | Uint8Array, length?: number): SignedBy {
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseSignedBy();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ message.allOf.push(reader.string());
+ break;
+ case 2:
+ message.anyOf.push(reader.string());
+ break;
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ },
+ fromJSON(object: any): SignedBy {
+ return {
+ allOf: Array.isArray(object?.allOf) ? object.allOf.map((e: any) => String(e)) : [],
+ anyOf: Array.isArray(object?.anyOf) ? object.anyOf.map((e: any) => String(e)) : []
+ };
+ },
+ toJSON(message: SignedBy): JsonSafe {
+ const obj: any = {};
+ if (message.allOf) {
+ obj.allOf = message.allOf.map(e => e);
+ } else {
+ obj.allOf = [];
+ }
+ if (message.anyOf) {
+ obj.anyOf = message.anyOf.map(e => e);
+ } else {
+ obj.anyOf = [];
+ }
+ return obj;
+ },
+ fromPartial, I>>(object: I): SignedBy {
+ const message = createBaseSignedBy();
+ message.allOf = object.allOf?.map(e => e) || [];
+ message.anyOf = object.anyOf?.map(e => e) || [];
+ return message;
+ },
+ fromSDK(object: SignedBySDKType): SignedBy {
+ return {
+ allOf: Array.isArray(object?.all_of) ? object.all_of.map((e: any) => e) : [],
+ anyOf: Array.isArray(object?.any_of) ? object.any_of.map((e: any) => e) : []
+ };
+ },
+ fromSDKJSON(object: any): SignedBySDKType {
+ return {
+ all_of: Array.isArray(object?.all_of) ? object.all_of.map((e: any) => String(e)) : [],
+ any_of: Array.isArray(object?.any_of) ? object.any_of.map((e: any) => String(e)) : []
+ };
+ },
+ toSDK(message: SignedBy): SignedBySDKType {
+ const obj: any = {};
+ if (message.allOf) {
+ obj.all_of = message.allOf.map(e => e);
+ } else {
+ obj.all_of = [];
+ }
+ if (message.anyOf) {
+ obj.any_of = message.anyOf.map(e => e);
+ } else {
+ obj.any_of = [];
+ }
+ return obj;
+ },
+ fromAmino(object: SignedByAmino): SignedBy {
+ const message = createBaseSignedBy();
+ message.allOf = object.all_of?.map(e => e) || [];
+ message.anyOf = object.any_of?.map(e => e) || [];
+ return message;
+ },
+ toAmino(message: SignedBy): SignedByAmino {
+ const obj: any = {};
+ if (message.allOf) {
+ obj.all_of = message.allOf.map(e => e);
+ } else {
+ obj.all_of = message.allOf;
+ }
+ if (message.anyOf) {
+ obj.any_of = message.anyOf.map(e => e);
+ } else {
+ obj.any_of = message.anyOf;
+ }
+ return obj;
+ },
+ fromAminoMsg(object: SignedByAminoMsg): SignedBy {
+ return SignedBy.fromAmino(object.value);
+ },
+ toAminoMsg(message: SignedBy): SignedByAminoMsg {
+ return {
+ type: "akash/base/v1beta2/signed-by",
+ value: SignedBy.toAmino(message)
+ };
+ },
+ fromProtoMsg(message: SignedByProtoMsg): SignedBy {
+ return SignedBy.decode(message.value);
+ },
+ toProto(message: SignedBy): Uint8Array {
+ return SignedBy.encode(message).finish();
+ },
+ toProtoMsg(message: SignedBy): SignedByProtoMsg {
+ return {
+ typeUrl: "/akash.base.v1beta2.SignedBy",
+ value: SignedBy.encode(message).finish()
+ };
+ }
+};
+GlobalDecoderRegistry.register(SignedBy.typeUrl, SignedBy);
+GlobalDecoderRegistry.registerAminoProtoMapping(SignedBy.aminoType, SignedBy.typeUrl);
+function createBasePlacementRequirements(): PlacementRequirements {
+ return {
+ signedBy: SignedBy.fromPartial({}),
+ attributes: []
+ };
+}
+export const PlacementRequirements = {
+ typeUrl: "/akash.base.v1beta2.PlacementRequirements",
+ aminoType: "akash/base/v1beta2/placement-requirements",
+ is(o: any): o is PlacementRequirements {
+ return o && (o.$typeUrl === PlacementRequirements.typeUrl || SignedBy.is(o.signedBy) && Array.isArray(o.attributes) && (!o.attributes.length || Attribute.is(o.attributes[0])));
+ },
+ isSDK(o: any): o is PlacementRequirementsSDKType {
+ return o && (o.$typeUrl === PlacementRequirements.typeUrl || SignedBy.isSDK(o.signed_by) && Array.isArray(o.attributes) && (!o.attributes.length || Attribute.isSDK(o.attributes[0])));
+ },
+ encode(message: PlacementRequirements, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
+ if (message.signedBy !== undefined) {
+ SignedBy.encode(message.signedBy, writer.uint32(10).fork()).ldelim();
+ }
+ for (const v of message.attributes) {
+ Attribute.encode(v!, writer.uint32(18).fork()).ldelim();
+ }
+ return writer;
+ },
+ decode(input: BinaryReader | Uint8Array, length?: number): PlacementRequirements {
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBasePlacementRequirements();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ message.signedBy = SignedBy.decode(reader, reader.uint32());
+ break;
+ case 2:
+ message.attributes.push(Attribute.decode(reader, reader.uint32()));
+ break;
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ },
+ fromJSON(object: any): PlacementRequirements {
+ return {
+ signedBy: isSet(object.signedBy) ? SignedBy.fromJSON(object.signedBy) : undefined,
+ attributes: Array.isArray(object?.attributes) ? object.attributes.map((e: any) => Attribute.fromJSON(e)) : []
+ };
+ },
+ toJSON(message: PlacementRequirements): JsonSafe {
+ const obj: any = {};
+ message.signedBy !== undefined && (obj.signedBy = message.signedBy ? SignedBy.toJSON(message.signedBy) : undefined);
+ if (message.attributes) {
+ obj.attributes = message.attributes.map(e => e ? Attribute.toJSON(e) : undefined);
+ } else {
+ obj.attributes = [];
+ }
+ return obj;
+ },
+ fromPartial, I>>(object: I): PlacementRequirements {
+ const message = createBasePlacementRequirements();
+ message.signedBy = object.signedBy !== undefined && object.signedBy !== null ? SignedBy.fromPartial(object.signedBy) : undefined;
+ message.attributes = object.attributes?.map(e => Attribute.fromPartial(e)) || [];
+ return message;
+ },
+ fromSDK(object: PlacementRequirementsSDKType): PlacementRequirements {
+ return {
+ signedBy: object.signed_by ? SignedBy.fromSDK(object.signed_by) : undefined,
+ attributes: Array.isArray(object?.attributes) ? object.attributes.map((e: any) => Attribute.fromSDK(e)) : []
+ };
+ },
+ fromSDKJSON(object: any): PlacementRequirementsSDKType {
+ return {
+ signed_by: isSet(object.signed_by) ? SignedBy.fromSDKJSON(object.signed_by) : undefined,
+ attributes: Array.isArray(object?.attributes) ? object.attributes.map((e: any) => Attribute.fromSDKJSON(e)) : []
+ };
+ },
+ toSDK(message: PlacementRequirements): PlacementRequirementsSDKType {
+ const obj: any = {};
+ message.signedBy !== undefined && (obj.signed_by = message.signedBy ? SignedBy.toSDK(message.signedBy) : undefined);
+ if (message.attributes) {
+ obj.attributes = message.attributes.map(e => e ? Attribute.toSDK(e) : undefined);
+ } else {
+ obj.attributes = [];
+ }
+ return obj;
+ },
+ fromAmino(object: PlacementRequirementsAmino): PlacementRequirements {
+ const message = createBasePlacementRequirements();
+ if (object.signed_by !== undefined && object.signed_by !== null) {
+ message.signedBy = SignedBy.fromAmino(object.signed_by);
+ }
+ message.attributes = object.attributes?.map(e => Attribute.fromAmino(e)) || [];
+ return message;
+ },
+ toAmino(message: PlacementRequirements): PlacementRequirementsAmino {
+ const obj: any = {};
+ obj.signed_by = message.signedBy ? SignedBy.toAmino(message.signedBy) : SignedBy.toAmino(SignedBy.fromPartial({}));
+ if (message.attributes) {
+ obj.attributes = message.attributes.map(e => e ? Attribute.toAmino(e) : undefined);
+ } else {
+ obj.attributes = message.attributes;
+ }
+ return obj;
+ },
+ fromAminoMsg(object: PlacementRequirementsAminoMsg): PlacementRequirements {
+ return PlacementRequirements.fromAmino(object.value);
+ },
+ toAminoMsg(message: PlacementRequirements): PlacementRequirementsAminoMsg {
+ return {
+ type: "akash/base/v1beta2/placement-requirements",
+ value: PlacementRequirements.toAmino(message)
+ };
+ },
+ fromProtoMsg(message: PlacementRequirementsProtoMsg): PlacementRequirements {
+ return PlacementRequirements.decode(message.value);
+ },
+ toProto(message: PlacementRequirements): Uint8Array {
+ return PlacementRequirements.encode(message).finish();
+ },
+ toProtoMsg(message: PlacementRequirements): PlacementRequirementsProtoMsg {
+ return {
+ typeUrl: "/akash.base.v1beta2.PlacementRequirements",
+ value: PlacementRequirements.encode(message).finish()
+ };
+ }
+};
+GlobalDecoderRegistry.register(PlacementRequirements.typeUrl, PlacementRequirements);
+GlobalDecoderRegistry.registerAminoProtoMapping(PlacementRequirements.aminoType, PlacementRequirements.typeUrl);
\ No newline at end of file
diff --git a/examples/injective-vue/src/codegen/akash/base/v1beta2/endpoint.ts b/examples/injective-vue/src/codegen/akash/base/v1beta2/endpoint.ts
new file mode 100644
index 000000000..d5584a65c
--- /dev/null
+++ b/examples/injective-vue/src/codegen/akash/base/v1beta2/endpoint.ts
@@ -0,0 +1,185 @@
+import { isSet, DeepPartial, Exact } from "../../../helpers";
+import { BinaryReader, BinaryWriter } from "../../../binary";
+import { JsonSafe } from "../../../json-safe";
+import { GlobalDecoderRegistry } from "../../../registry";
+import { ComputedRef } from "vue";
+export const protobufPackage = "akash.base.v1beta2";
+/** This describes how the endpoint is implemented when the lease is deployed */
+export enum Endpoint_Kind {
+ /** SHARED_HTTP - Describes an endpoint that becomes a Kubernetes Ingress */
+ SHARED_HTTP = 0,
+ /** RANDOM_PORT - Describes an endpoint that becomes a Kubernetes NodePort */
+ RANDOM_PORT = 1,
+ /** LEASED_IP - Describes an endpoint that becomes a leased IP */
+ LEASED_IP = 2,
+ UNRECOGNIZED = -1,
+}
+export const Endpoint_KindSDKType = Endpoint_Kind;
+export function endpoint_KindFromJSON(object: any): Endpoint_Kind {
+ switch (object) {
+ case 0:
+ case "SHARED_HTTP":
+ return Endpoint_Kind.SHARED_HTTP;
+ case 1:
+ case "RANDOM_PORT":
+ return Endpoint_Kind.RANDOM_PORT;
+ case 2:
+ case "LEASED_IP":
+ return Endpoint_Kind.LEASED_IP;
+ case -1:
+ case "UNRECOGNIZED":
+ default:
+ return Endpoint_Kind.UNRECOGNIZED;
+ }
+}
+export function endpoint_KindToJSON(object: Endpoint_Kind): string {
+ switch (object) {
+ case Endpoint_Kind.SHARED_HTTP:
+ return "SHARED_HTTP";
+ case Endpoint_Kind.RANDOM_PORT:
+ return "RANDOM_PORT";
+ case Endpoint_Kind.LEASED_IP:
+ return "LEASED_IP";
+ case Endpoint_Kind.UNRECOGNIZED:
+ default:
+ return "UNRECOGNIZED";
+ }
+}
+/** Endpoint describes a publicly accessible IP service */
+export interface Endpoint {
+ kind: Endpoint_Kind;
+ sequenceNumber: number;
+}
+export interface ReactiveEndpoint {
+ kind: ComputedRef;
+ sequenceNumber: ComputedRef;
+}
+export interface EndpointProtoMsg {
+ typeUrl: "/akash.base.v1beta2.Endpoint";
+ value: Uint8Array;
+}
+/** Endpoint describes a publicly accessible IP service */
+export interface EndpointSDKType {
+ kind: Endpoint_Kind;
+ sequence_number: number;
+}
+function createBaseEndpoint(): Endpoint {
+ return {
+ kind: 0,
+ sequenceNumber: 0
+ };
+}
+export const Endpoint = {
+ typeUrl: "/akash.base.v1beta2.Endpoint",
+ aminoType: "akash/base/v1beta2/endpoint",
+ is(o: any): o is Endpoint {
+ return o && (o.$typeUrl === Endpoint.typeUrl || isSet(o.kind) && typeof o.sequenceNumber === "number");
+ },
+ isSDK(o: any): o is EndpointSDKType {
+ return o && (o.$typeUrl === Endpoint.typeUrl || isSet(o.kind) && typeof o.sequence_number === "number");
+ },
+ encode(message: Endpoint, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
+ if (message.kind !== 0) {
+ writer.uint32(8).int32(message.kind);
+ }
+ if (message.sequenceNumber !== 0) {
+ writer.uint32(16).uint32(message.sequenceNumber);
+ }
+ return writer;
+ },
+ decode(input: BinaryReader | Uint8Array, length?: number): Endpoint {
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseEndpoint();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ message.kind = (reader.int32() as any);
+ break;
+ case 2:
+ message.sequenceNumber = reader.uint32();
+ break;
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ },
+ fromJSON(object: any): Endpoint {
+ return {
+ kind: isSet(object.kind) ? endpoint_KindFromJSON(object.kind) : -1,
+ sequenceNumber: isSet(object.sequenceNumber) ? Number(object.sequenceNumber) : 0
+ };
+ },
+ toJSON(message: Endpoint): JsonSafe {
+ const obj: any = {};
+ message.kind !== undefined && (obj.kind = endpoint_KindToJSON(message.kind));
+ message.sequenceNumber !== undefined && (obj.sequenceNumber = Math.round(message.sequenceNumber));
+ return obj;
+ },
+ fromPartial, I>>(object: I): Endpoint {
+ const message = createBaseEndpoint();
+ message.kind = object.kind ?? 0;
+ message.sequenceNumber = object.sequenceNumber ?? 0;
+ return message;
+ },
+ fromSDK(object: EndpointSDKType): Endpoint {
+ return {
+ kind: isSet(object.kind) ? endpoint_KindFromJSON(object.kind) : -1,
+ sequenceNumber: object?.sequence_number
+ };
+ },
+ fromSDKJSON(object: any): EndpointSDKType {
+ return {
+ kind: isSet(object.kind) ? endpoint_KindFromJSON(object.kind) : -1,
+ sequence_number: isSet(object.sequence_number) ? Number(object.sequence_number) : 0
+ };
+ },
+ toSDK(message: Endpoint): EndpointSDKType {
+ const obj: any = {};
+ message.kind !== undefined && (obj.kind = endpoint_KindToJSON(message.kind));
+ obj.sequence_number = message.sequenceNumber;
+ return obj;
+ },
+ fromAmino(object: EndpointAmino): Endpoint {
+ const message = createBaseEndpoint();
+ if (object.kind !== undefined && object.kind !== null) {
+ message.kind = object.kind;
+ }
+ if (object.sequence_number !== undefined && object.sequence_number !== null) {
+ message.sequenceNumber = object.sequence_number;
+ }
+ return message;
+ },
+ toAmino(message: Endpoint): EndpointAmino {
+ const obj: any = {};
+ obj.kind = message.kind === 0 ? undefined : message.kind;
+ obj.sequence_number = message.sequenceNumber ?? 0;
+ return obj;
+ },
+ fromAminoMsg(object: EndpointAminoMsg): Endpoint {
+ return Endpoint.fromAmino(object.value);
+ },
+ toAminoMsg(message: Endpoint): EndpointAminoMsg {
+ return {
+ type: "akash/base/v1beta2/endpoint",
+ value: Endpoint.toAmino(message)
+ };
+ },
+ fromProtoMsg(message: EndpointProtoMsg): Endpoint {
+ return Endpoint.decode(message.value);
+ },
+ toProto(message: Endpoint): Uint8Array {
+ return Endpoint.encode(message).finish();
+ },
+ toProtoMsg(message: Endpoint): EndpointProtoMsg {
+ return {
+ typeUrl: "/akash.base.v1beta2.Endpoint",
+ value: Endpoint.encode(message).finish()
+ };
+ }
+};
+GlobalDecoderRegistry.register(Endpoint.typeUrl, Endpoint);
+GlobalDecoderRegistry.registerAminoProtoMapping(Endpoint.aminoType, Endpoint.typeUrl);
\ No newline at end of file
diff --git a/examples/injective-vue/src/codegen/akash/base/v1beta2/resource.ts b/examples/injective-vue/src/codegen/akash/base/v1beta2/resource.ts
new file mode 100644
index 000000000..7fd7f048d
--- /dev/null
+++ b/examples/injective-vue/src/codegen/akash/base/v1beta2/resource.ts
@@ -0,0 +1,472 @@
+import { ResourceValue, ResourceValueSDKType } from "./resourcevalue";
+import { Attribute, AttributeSDKType } from "./attribute";
+import { BinaryReader, BinaryWriter } from "../../../binary";
+import { isSet, DeepPartial, Exact } from "../../../helpers";
+import { JsonSafe } from "../../../json-safe";
+import { GlobalDecoderRegistry } from "../../../registry";
+import { ComputedRef } from "vue";
+export const protobufPackage = "akash.base.v1beta2";
+/** CPU stores resource units and cpu config attributes */
+export interface CPU {
+ units: ResourceValue;
+ attributes: Attribute[];
+}
+export interface ReactiveCPU {
+ units: ComputedRef;
+ attributes: ComputedRef;
+}
+export interface CPUProtoMsg {
+ typeUrl: "/akash.base.v1beta2.CPU";
+ value: Uint8Array;
+}
+/** CPU stores resource units and cpu config attributes */
+export interface CPUSDKType {
+ units: ResourceValueSDKType;
+ attributes: AttributeSDKType[];
+}
+/** Memory stores resource quantity and memory attributes */
+export interface Memory {
+ quantity: ResourceValue;
+ attributes: Attribute[];
+}
+export interface ReactiveMemory {
+ quantity: ComputedRef;
+ attributes: ComputedRef;
+}
+export interface MemoryProtoMsg {
+ typeUrl: "/akash.base.v1beta2.Memory";
+ value: Uint8Array;
+}
+/** Memory stores resource quantity and memory attributes */
+export interface MemorySDKType {
+ quantity: ResourceValueSDKType;
+ attributes: AttributeSDKType[];
+}
+/** Storage stores resource quantity and storage attributes */
+export interface Storage {
+ name: string;
+ quantity: ResourceValue;
+ attributes: Attribute[];
+}
+export interface ReactiveStorage {
+ name: ComputedRef;
+ quantity: ComputedRef;
+ attributes: ComputedRef;
+}
+export interface StorageProtoMsg {
+ typeUrl: "/akash.base.v1beta2.Storage";
+ value: Uint8Array;
+}
+/** Storage stores resource quantity and storage attributes */
+export interface StorageSDKType {
+ name: string;
+ quantity: ResourceValueSDKType;
+ attributes: AttributeSDKType[];
+}
+function createBaseCPU(): CPU {
+ return {
+ units: ResourceValue.fromPartial({}),
+ attributes: []
+ };
+}
+export const CPU = {
+ typeUrl: "/akash.base.v1beta2.CPU",
+ aminoType: "akash/base/v1beta2/cpu",
+ is(o: any): o is CPU {
+ return o && (o.$typeUrl === CPU.typeUrl || ResourceValue.is(o.units) && Array.isArray(o.attributes) && (!o.attributes.length || Attribute.is(o.attributes[0])));
+ },
+ isSDK(o: any): o is CPUSDKType {
+ return o && (o.$typeUrl === CPU.typeUrl || ResourceValue.isSDK(o.units) && Array.isArray(o.attributes) && (!o.attributes.length || Attribute.isSDK(o.attributes[0])));
+ },
+ encode(message: CPU, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
+ if (message.units !== undefined) {
+ ResourceValue.encode(message.units, writer.uint32(10).fork()).ldelim();
+ }
+ for (const v of message.attributes) {
+ Attribute.encode(v!, writer.uint32(18).fork()).ldelim();
+ }
+ return writer;
+ },
+ decode(input: BinaryReader | Uint8Array, length?: number): CPU {
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseCPU();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ message.units = ResourceValue.decode(reader, reader.uint32());
+ break;
+ case 2:
+ message.attributes.push(Attribute.decode(reader, reader.uint32()));
+ break;
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ },
+ fromJSON(object: any): CPU {
+ return {
+ units: isSet(object.units) ? ResourceValue.fromJSON(object.units) : undefined,
+ attributes: Array.isArray(object?.attributes) ? object.attributes.map((e: any) => Attribute.fromJSON(e)) : []
+ };
+ },
+ toJSON(message: CPU): JsonSafe {
+ const obj: any = {};
+ message.units !== undefined && (obj.units = message.units ? ResourceValue.toJSON(message.units) : undefined);
+ if (message.attributes) {
+ obj.attributes = message.attributes.map(e => e ? Attribute.toJSON(e) : undefined);
+ } else {
+ obj.attributes = [];
+ }
+ return obj;
+ },
+ fromPartial, I>>(object: I): CPU {
+ const message = createBaseCPU();
+ message.units = object.units !== undefined && object.units !== null ? ResourceValue.fromPartial(object.units) : undefined;
+ message.attributes = object.attributes?.map(e => Attribute.fromPartial(e)) || [];
+ return message;
+ },
+ fromSDK(object: CPUSDKType): CPU {
+ return {
+ units: object.units ? ResourceValue.fromSDK(object.units) : undefined,
+ attributes: Array.isArray(object?.attributes) ? object.attributes.map((e: any) => Attribute.fromSDK(e)) : []
+ };
+ },
+ fromSDKJSON(object: any): CPUSDKType {
+ return {
+ units: isSet(object.units) ? ResourceValue.fromSDKJSON(object.units) : undefined,
+ attributes: Array.isArray(object?.attributes) ? object.attributes.map((e: any) => Attribute.fromSDKJSON(e)) : []
+ };
+ },
+ toSDK(message: CPU): CPUSDKType {
+ const obj: any = {};
+ message.units !== undefined && (obj.units = message.units ? ResourceValue.toSDK(message.units) : undefined);
+ if (message.attributes) {
+ obj.attributes = message.attributes.map(e => e ? Attribute.toSDK(e) : undefined);
+ } else {
+ obj.attributes = [];
+ }
+ return obj;
+ },
+ fromAmino(object: CPUAmino): CPU {
+ const message = createBaseCPU();
+ if (object.units !== undefined && object.units !== null) {
+ message.units = ResourceValue.fromAmino(object.units);
+ }
+ message.attributes = object.attributes?.map(e => Attribute.fromAmino(e)) || [];
+ return message;
+ },
+ toAmino(message: CPU): CPUAmino {
+ const obj: any = {};
+ obj.units = message.units ? ResourceValue.toAmino(message.units) : undefined;
+ if (message.attributes) {
+ obj.attributes = message.attributes.map(e => e ? Attribute.toAmino(e) : undefined);
+ } else {
+ obj.attributes = message.attributes;
+ }
+ return obj;
+ },
+ fromAminoMsg(object: CPUAminoMsg): CPU {
+ return CPU.fromAmino(object.value);
+ },
+ toAminoMsg(message: CPU): CPUAminoMsg {
+ return {
+ type: "akash/base/v1beta2/cpu",
+ value: CPU.toAmino(message)
+ };
+ },
+ fromProtoMsg(message: CPUProtoMsg): CPU {
+ return CPU.decode(message.value);
+ },
+ toProto(message: CPU): Uint8Array {
+ return CPU.encode(message).finish();
+ },
+ toProtoMsg(message: CPU): CPUProtoMsg {
+ return {
+ typeUrl: "/akash.base.v1beta2.CPU",
+ value: CPU.encode(message).finish()
+ };
+ }
+};
+GlobalDecoderRegistry.register(CPU.typeUrl, CPU);
+GlobalDecoderRegistry.registerAminoProtoMapping(CPU.aminoType, CPU.typeUrl);
+function createBaseMemory(): Memory {
+ return {
+ quantity: ResourceValue.fromPartial({}),
+ attributes: []
+ };
+}
+export const Memory = {
+ typeUrl: "/akash.base.v1beta2.Memory",
+ aminoType: "akash/base/v1beta2/memory",
+ is(o: any): o is Memory {
+ return o && (o.$typeUrl === Memory.typeUrl || ResourceValue.is(o.quantity) && Array.isArray(o.attributes) && (!o.attributes.length || Attribute.is(o.attributes[0])));
+ },
+ isSDK(o: any): o is MemorySDKType {
+ return o && (o.$typeUrl === Memory.typeUrl || ResourceValue.isSDK(o.quantity) && Array.isArray(o.attributes) && (!o.attributes.length || Attribute.isSDK(o.attributes[0])));
+ },
+ encode(message: Memory, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
+ if (message.quantity !== undefined) {
+ ResourceValue.encode(message.quantity, writer.uint32(10).fork()).ldelim();
+ }
+ for (const v of message.attributes) {
+ Attribute.encode(v!, writer.uint32(18).fork()).ldelim();
+ }
+ return writer;
+ },
+ decode(input: BinaryReader | Uint8Array, length?: number): Memory {
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseMemory();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ message.quantity = ResourceValue.decode(reader, reader.uint32());
+ break;
+ case 2:
+ message.attributes.push(Attribute.decode(reader, reader.uint32()));
+ break;
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ },
+ fromJSON(object: any): Memory {
+ return {
+ quantity: isSet(object.quantity) ? ResourceValue.fromJSON(object.quantity) : undefined,
+ attributes: Array.isArray(object?.attributes) ? object.attributes.map((e: any) => Attribute.fromJSON(e)) : []
+ };
+ },
+ toJSON(message: Memory): JsonSafe {
+ const obj: any = {};
+ message.quantity !== undefined && (obj.quantity = message.quantity ? ResourceValue.toJSON(message.quantity) : undefined);
+ if (message.attributes) {
+ obj.attributes = message.attributes.map(e => e ? Attribute.toJSON(e) : undefined);
+ } else {
+ obj.attributes = [];
+ }
+ return obj;
+ },
+ fromPartial, I>>(object: I): Memory {
+ const message = createBaseMemory();
+ message.quantity = object.quantity !== undefined && object.quantity !== null ? ResourceValue.fromPartial(object.quantity) : undefined;
+ message.attributes = object.attributes?.map(e => Attribute.fromPartial(e)) || [];
+ return message;
+ },
+ fromSDK(object: MemorySDKType): Memory {
+ return {
+ quantity: object.quantity ? ResourceValue.fromSDK(object.quantity) : undefined,
+ attributes: Array.isArray(object?.attributes) ? object.attributes.map((e: any) => Attribute.fromSDK(e)) : []
+ };
+ },
+ fromSDKJSON(object: any): MemorySDKType {
+ return {
+ quantity: isSet(object.quantity) ? ResourceValue.fromSDKJSON(object.quantity) : undefined,
+ attributes: Array.isArray(object?.attributes) ? object.attributes.map((e: any) => Attribute.fromSDKJSON(e)) : []
+ };
+ },
+ toSDK(message: Memory): MemorySDKType {
+ const obj: any = {};
+ message.quantity !== undefined && (obj.quantity = message.quantity ? ResourceValue.toSDK(message.quantity) : undefined);
+ if (message.attributes) {
+ obj.attributes = message.attributes.map(e => e ? Attribute.toSDK(e) : undefined);
+ } else {
+ obj.attributes = [];
+ }
+ return obj;
+ },
+ fromAmino(object: MemoryAmino): Memory {
+ const message = createBaseMemory();
+ if (object.quantity !== undefined && object.quantity !== null) {
+ message.quantity = ResourceValue.fromAmino(object.quantity);
+ }
+ message.attributes = object.attributes?.map(e => Attribute.fromAmino(e)) || [];
+ return message;
+ },
+ toAmino(message: Memory): MemoryAmino {
+ const obj: any = {};
+ obj.quantity = message.quantity ? ResourceValue.toAmino(message.quantity) : ResourceValue.toAmino(ResourceValue.fromPartial({}));
+ if (message.attributes) {
+ obj.attributes = message.attributes.map(e => e ? Attribute.toAmino(e) : undefined);
+ } else {
+ obj.attributes = message.attributes;
+ }
+ return obj;
+ },
+ fromAminoMsg(object: MemoryAminoMsg): Memory {
+ return Memory.fromAmino(object.value);
+ },
+ toAminoMsg(message: Memory): MemoryAminoMsg {
+ return {
+ type: "akash/base/v1beta2/memory",
+ value: Memory.toAmino(message)
+ };
+ },
+ fromProtoMsg(message: MemoryProtoMsg): Memory {
+ return Memory.decode(message.value);
+ },
+ toProto(message: Memory): Uint8Array {
+ return Memory.encode(message).finish();
+ },
+ toProtoMsg(message: Memory): MemoryProtoMsg {
+ return {
+ typeUrl: "/akash.base.v1beta2.Memory",
+ value: Memory.encode(message).finish()
+ };
+ }
+};
+GlobalDecoderRegistry.register(Memory.typeUrl, Memory);
+GlobalDecoderRegistry.registerAminoProtoMapping(Memory.aminoType, Memory.typeUrl);
+function createBaseStorage(): Storage {
+ return {
+ name: "",
+ quantity: ResourceValue.fromPartial({}),
+ attributes: []
+ };
+}
+export const Storage = {
+ typeUrl: "/akash.base.v1beta2.Storage",
+ aminoType: "akash/base/v1beta2/storage",
+ is(o: any): o is Storage {
+ return o && (o.$typeUrl === Storage.typeUrl || typeof o.name === "string" && ResourceValue.is(o.quantity) && Array.isArray(o.attributes) && (!o.attributes.length || Attribute.is(o.attributes[0])));
+ },
+ isSDK(o: any): o is StorageSDKType {
+ return o && (o.$typeUrl === Storage.typeUrl || typeof o.name === "string" && ResourceValue.isSDK(o.quantity) && Array.isArray(o.attributes) && (!o.attributes.length || Attribute.isSDK(o.attributes[0])));
+ },
+ encode(message: Storage, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
+ if (message.name !== "") {
+ writer.uint32(10).string(message.name);
+ }
+ if (message.quantity !== undefined) {
+ ResourceValue.encode(message.quantity, writer.uint32(18).fork()).ldelim();
+ }
+ for (const v of message.attributes) {
+ Attribute.encode(v!, writer.uint32(26).fork()).ldelim();
+ }
+ return writer;
+ },
+ decode(input: BinaryReader | Uint8Array, length?: number): Storage {
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseStorage();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ message.name = reader.string();
+ break;
+ case 2:
+ message.quantity = ResourceValue.decode(reader, reader.uint32());
+ break;
+ case 3:
+ message.attributes.push(Attribute.decode(reader, reader.uint32()));
+ break;
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ },
+ fromJSON(object: any): Storage {
+ return {
+ name: isSet(object.name) ? String(object.name) : "",
+ quantity: isSet(object.quantity) ? ResourceValue.fromJSON(object.quantity) : undefined,
+ attributes: Array.isArray(object?.attributes) ? object.attributes.map((e: any) => Attribute.fromJSON(e)) : []
+ };
+ },
+ toJSON(message: Storage): JsonSafe {
+ const obj: any = {};
+ message.name !== undefined && (obj.name = message.name);
+ message.quantity !== undefined && (obj.quantity = message.quantity ? ResourceValue.toJSON(message.quantity) : undefined);
+ if (message.attributes) {
+ obj.attributes = message.attributes.map(e => e ? Attribute.toJSON(e) : undefined);
+ } else {
+ obj.attributes = [];
+ }
+ return obj;
+ },
+ fromPartial, I>>(object: I): Storage {
+ const message = createBaseStorage();
+ message.name = object.name ?? "";
+ message.quantity = object.quantity !== undefined && object.quantity !== null ? ResourceValue.fromPartial(object.quantity) : undefined;
+ message.attributes = object.attributes?.map(e => Attribute.fromPartial(e)) || [];
+ return message;
+ },
+ fromSDK(object: StorageSDKType): Storage {
+ return {
+ name: object?.name,
+ quantity: object.quantity ? ResourceValue.fromSDK(object.quantity) : undefined,
+ attributes: Array.isArray(object?.attributes) ? object.attributes.map((e: any) => Attribute.fromSDK(e)) : []
+ };
+ },
+ fromSDKJSON(object: any): StorageSDKType {
+ return {
+ name: isSet(object.name) ? String(object.name) : "",
+ quantity: isSet(object.quantity) ? ResourceValue.fromSDKJSON(object.quantity) : undefined,
+ attributes: Array.isArray(object?.attributes) ? object.attributes.map((e: any) => Attribute.fromSDKJSON(e)) : []
+ };
+ },
+ toSDK(message: Storage): StorageSDKType {
+ const obj: any = {};
+ obj.name = message.name;
+ message.quantity !== undefined && (obj.quantity = message.quantity ? ResourceValue.toSDK(message.quantity) : undefined);
+ if (message.attributes) {
+ obj.attributes = message.attributes.map(e => e ? Attribute.toSDK(e) : undefined);
+ } else {
+ obj.attributes = [];
+ }
+ return obj;
+ },
+ fromAmino(object: StorageAmino): Storage {
+ const message = createBaseStorage();
+ if (object.name !== undefined && object.name !== null) {
+ message.name = object.name;
+ }
+ if (object.quantity !== undefined && object.quantity !== null) {
+ message.quantity = ResourceValue.fromAmino(object.quantity);
+ }
+ message.attributes = object.attributes?.map(e => Attribute.fromAmino(e)) || [];
+ return message;
+ },
+ toAmino(message: Storage): StorageAmino {
+ const obj: any = {};
+ obj.name = message.name ?? "";
+ obj.quantity = message.quantity ? ResourceValue.toAmino(message.quantity) : ResourceValue.toAmino(ResourceValue.fromPartial({}));
+ if (message.attributes) {
+ obj.attributes = message.attributes.map(e => e ? Attribute.toAmino(e) : undefined);
+ } else {
+ obj.attributes = message.attributes;
+ }
+ return obj;
+ },
+ fromAminoMsg(object: StorageAminoMsg): Storage {
+ return Storage.fromAmino(object.value);
+ },
+ toAminoMsg(message: Storage): StorageAminoMsg {
+ return {
+ type: "akash/base/v1beta2/storage",
+ value: Storage.toAmino(message)
+ };
+ },
+ fromProtoMsg(message: StorageProtoMsg): Storage {
+ return Storage.decode(message.value);
+ },
+ toProto(message: Storage): Uint8Array {
+ return Storage.encode(message).finish();
+ },
+ toProtoMsg(message: Storage): StorageProtoMsg {
+ return {
+ typeUrl: "/akash.base.v1beta2.Storage",
+ value: Storage.encode(message).finish()
+ };
+ }
+};
+GlobalDecoderRegistry.register(Storage.typeUrl, Storage);
+GlobalDecoderRegistry.registerAminoProtoMapping(Storage.aminoType, Storage.typeUrl);
\ No newline at end of file
diff --git a/examples/injective-vue/src/codegen/akash/base/v1beta2/resourceunits.ts b/examples/injective-vue/src/codegen/akash/base/v1beta2/resourceunits.ts
new file mode 100644
index 000000000..1a022ef49
--- /dev/null
+++ b/examples/injective-vue/src/codegen/akash/base/v1beta2/resourceunits.ts
@@ -0,0 +1,212 @@
+import { CPU, CPUSDKType, Memory, MemorySDKType, Storage, StorageSDKType } from "./resource";
+import { Endpoint, EndpointSDKType } from "./endpoint";
+import { BinaryReader, BinaryWriter } from "../../../binary";
+import { isSet, DeepPartial, Exact } from "../../../helpers";
+import { JsonSafe } from "../../../json-safe";
+import { GlobalDecoderRegistry } from "../../../registry";
+import { ComputedRef } from "vue";
+export const protobufPackage = "akash.base.v1beta2";
+/**
+ * ResourceUnits describes all available resources types for deployment/node etc
+ * if field is nil resource is not present in the given data-structure
+ */
+export interface ResourceUnits {
+ cpu?: CPU;
+ memory?: Memory;
+ storage: Storage[];
+ endpoints: Endpoint[];
+}
+export interface ReactiveResourceUnits {
+ cpu?: ComputedRef;
+ memory?: ComputedRef;
+ storage: ComputedRef;
+ endpoints: ComputedRef;
+}
+export interface ResourceUnitsProtoMsg {
+ typeUrl: "/akash.base.v1beta2.ResourceUnits";
+ value: Uint8Array;
+}
+/**
+ * ResourceUnits describes all available resources types for deployment/node etc
+ * if field is nil resource is not present in the given data-structure
+ */
+export interface ResourceUnitsSDKType {
+ cpu?: CPUSDKType;
+ memory?: MemorySDKType;
+ storage: StorageSDKType[];
+ endpoints: EndpointSDKType[];
+}
+function createBaseResourceUnits(): ResourceUnits {
+ return {
+ cpu: undefined,
+ memory: undefined,
+ storage: [],
+ endpoints: []
+ };
+}
+export const ResourceUnits = {
+ typeUrl: "/akash.base.v1beta2.ResourceUnits",
+ aminoType: "akash/base/v1beta2/resource-units",
+ is(o: any): o is ResourceUnits {
+ return o && (o.$typeUrl === ResourceUnits.typeUrl || Array.isArray(o.storage) && (!o.storage.length || Storage.is(o.storage[0])) && Array.isArray(o.endpoints) && (!o.endpoints.length || Endpoint.is(o.endpoints[0])));
+ },
+ isSDK(o: any): o is ResourceUnitsSDKType {
+ return o && (o.$typeUrl === ResourceUnits.typeUrl || Array.isArray(o.storage) && (!o.storage.length || Storage.isSDK(o.storage[0])) && Array.isArray(o.endpoints) && (!o.endpoints.length || Endpoint.isSDK(o.endpoints[0])));
+ },
+ encode(message: ResourceUnits, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
+ if (message.cpu !== undefined) {
+ CPU.encode(message.cpu, writer.uint32(10).fork()).ldelim();
+ }
+ if (message.memory !== undefined) {
+ Memory.encode(message.memory, writer.uint32(18).fork()).ldelim();
+ }
+ for (const v of message.storage) {
+ Storage.encode(v!, writer.uint32(26).fork()).ldelim();
+ }
+ for (const v of message.endpoints) {
+ Endpoint.encode(v!, writer.uint32(34).fork()).ldelim();
+ }
+ return writer;
+ },
+ decode(input: BinaryReader | Uint8Array, length?: number): ResourceUnits {
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseResourceUnits();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ message.cpu = CPU.decode(reader, reader.uint32());
+ break;
+ case 2:
+ message.memory = Memory.decode(reader, reader.uint32());
+ break;
+ case 3:
+ message.storage.push(Storage.decode(reader, reader.uint32()));
+ break;
+ case 4:
+ message.endpoints.push(Endpoint.decode(reader, reader.uint32()));
+ break;
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ },
+ fromJSON(object: any): ResourceUnits {
+ return {
+ cpu: isSet(object.cpu) ? CPU.fromJSON(object.cpu) : undefined,
+ memory: isSet(object.memory) ? Memory.fromJSON(object.memory) : undefined,
+ storage: Array.isArray(object?.storage) ? object.storage.map((e: any) => Storage.fromJSON(e)) : [],
+ endpoints: Array.isArray(object?.endpoints) ? object.endpoints.map((e: any) => Endpoint.fromJSON(e)) : []
+ };
+ },
+ toJSON(message: ResourceUnits): JsonSafe {
+ const obj: any = {};
+ message.cpu !== undefined && (obj.cpu = message.cpu ? CPU.toJSON(message.cpu) : undefined);
+ message.memory !== undefined && (obj.memory = message.memory ? Memory.toJSON(message.memory) : undefined);
+ if (message.storage) {
+ obj.storage = message.storage.map(e => e ? Storage.toJSON(e) : undefined);
+ } else {
+ obj.storage = [];
+ }
+ if (message.endpoints) {
+ obj.endpoints = message.endpoints.map(e => e ? Endpoint.toJSON(e) : undefined);
+ } else {
+ obj.endpoints = [];
+ }
+ return obj;
+ },
+ fromPartial, I>>(object: I): ResourceUnits {
+ const message = createBaseResourceUnits();
+ message.cpu = object.cpu !== undefined && object.cpu !== null ? CPU.fromPartial(object.cpu) : undefined;
+ message.memory = object.memory !== undefined && object.memory !== null ? Memory.fromPartial(object.memory) : undefined;
+ message.storage = object.storage?.map(e => Storage.fromPartial(e)) || [];
+ message.endpoints = object.endpoints?.map(e => Endpoint.fromPartial(e)) || [];
+ return message;
+ },
+ fromSDK(object: ResourceUnitsSDKType): ResourceUnits {
+ return {
+ cpu: object.cpu ? CPU.fromSDK(object.cpu) : undefined,
+ memory: object.memory ? Memory.fromSDK(object.memory) : undefined,
+ storage: Array.isArray(object?.storage) ? object.storage.map((e: any) => Storage.fromSDK(e)) : [],
+ endpoints: Array.isArray(object?.endpoints) ? object.endpoints.map((e: any) => Endpoint.fromSDK(e)) : []
+ };
+ },
+ fromSDKJSON(object: any): ResourceUnitsSDKType {
+ return {
+ cpu: isSet(object.cpu) ? CPU.fromSDKJSON(object.cpu) : undefined,
+ memory: isSet(object.memory) ? Memory.fromSDKJSON(object.memory) : undefined,
+ storage: Array.isArray(object?.storage) ? object.storage.map((e: any) => Storage.fromSDKJSON(e)) : [],
+ endpoints: Array.isArray(object?.endpoints) ? object.endpoints.map((e: any) => Endpoint.fromSDKJSON(e)) : []
+ };
+ },
+ toSDK(message: ResourceUnits): ResourceUnitsSDKType {
+ const obj: any = {};
+ message.cpu !== undefined && (obj.cpu = message.cpu ? CPU.toSDK(message.cpu) : undefined);
+ message.memory !== undefined && (obj.memory = message.memory ? Memory.toSDK(message.memory) : undefined);
+ if (message.storage) {
+ obj.storage = message.storage.map(e => e ? Storage.toSDK(e) : undefined);
+ } else {
+ obj.storage = [];
+ }
+ if (message.endpoints) {
+ obj.endpoints = message.endpoints.map(e => e ? Endpoint.toSDK(e) : undefined);
+ } else {
+ obj.endpoints = [];
+ }
+ return obj;
+ },
+ fromAmino(object: ResourceUnitsAmino): ResourceUnits {
+ const message = createBaseResourceUnits();
+ if (object.cpu !== undefined && object.cpu !== null) {
+ message.cpu = CPU.fromAmino(object.cpu);
+ }
+ if (object.memory !== undefined && object.memory !== null) {
+ message.memory = Memory.fromAmino(object.memory);
+ }
+ message.storage = object.storage?.map(e => Storage.fromAmino(e)) || [];
+ message.endpoints = object.endpoints?.map(e => Endpoint.fromAmino(e)) || [];
+ return message;
+ },
+ toAmino(message: ResourceUnits): ResourceUnitsAmino {
+ const obj: any = {};
+ obj.cpu = message.cpu ? CPU.toAmino(message.cpu) : undefined;
+ obj.memory = message.memory ? Memory.toAmino(message.memory) : undefined;
+ if (message.storage) {
+ obj.storage = message.storage.map(e => e ? Storage.toAmino(e) : undefined);
+ } else {
+ obj.storage = message.storage;
+ }
+ if (message.endpoints) {
+ obj.endpoints = message.endpoints.map(e => e ? Endpoint.toAmino(e) : undefined);
+ } else {
+ obj.endpoints = message.endpoints;
+ }
+ return obj;
+ },
+ fromAminoMsg(object: ResourceUnitsAminoMsg): ResourceUnits {
+ return ResourceUnits.fromAmino(object.value);
+ },
+ toAminoMsg(message: ResourceUnits): ResourceUnitsAminoMsg {
+ return {
+ type: "akash/base/v1beta2/resource-units",
+ value: ResourceUnits.toAmino(message)
+ };
+ },
+ fromProtoMsg(message: ResourceUnitsProtoMsg): ResourceUnits {
+ return ResourceUnits.decode(message.value);
+ },
+ toProto(message: ResourceUnits): Uint8Array {
+ return ResourceUnits.encode(message).finish();
+ },
+ toProtoMsg(message: ResourceUnits): ResourceUnitsProtoMsg {
+ return {
+ typeUrl: "/akash.base.v1beta2.ResourceUnits",
+ value: ResourceUnits.encode(message).finish()
+ };
+ }
+};
+GlobalDecoderRegistry.register(ResourceUnits.typeUrl, ResourceUnits);
+GlobalDecoderRegistry.registerAminoProtoMapping(ResourceUnits.aminoType, ResourceUnits.typeUrl);
\ No newline at end of file
diff --git a/examples/injective-vue/src/codegen/akash/base/v1beta2/resourcevalue.ts b/examples/injective-vue/src/codegen/akash/base/v1beta2/resourcevalue.ts
new file mode 100644
index 000000000..867214f18
--- /dev/null
+++ b/examples/injective-vue/src/codegen/akash/base/v1beta2/resourcevalue.ts
@@ -0,0 +1,124 @@
+import { BinaryReader, BinaryWriter } from "../../../binary";
+import { isSet, bytesFromBase64, base64FromBytes, DeepPartial, Exact } from "../../../helpers";
+import { JsonSafe } from "../../../json-safe";
+import { GlobalDecoderRegistry } from "../../../registry";
+import { ComputedRef } from "vue";
+export const protobufPackage = "akash.base.v1beta2";
+/** Unit stores cpu, memory and storage metrics */
+export interface ResourceValue {
+ val: Uint8Array;
+}
+export interface ReactiveResourceValue {
+ val: ComputedRef;
+}
+export interface ResourceValueProtoMsg {
+ typeUrl: "/akash.base.v1beta2.ResourceValue";
+ value: Uint8Array;
+}
+/** Unit stores cpu, memory and storage metrics */
+export interface ResourceValueSDKType {
+ val: Uint8Array;
+}
+function createBaseResourceValue(): ResourceValue {
+ return {
+ val: new Uint8Array()
+ };
+}
+export const ResourceValue = {
+ typeUrl: "/akash.base.v1beta2.ResourceValue",
+ aminoType: "akash/base/v1beta2/resource-value",
+ is(o: any): o is ResourceValue {
+ return o && (o.$typeUrl === ResourceValue.typeUrl || o.val instanceof Uint8Array || typeof o.val === "string");
+ },
+ isSDK(o: any): o is ResourceValueSDKType {
+ return o && (o.$typeUrl === ResourceValue.typeUrl || o.val instanceof Uint8Array || typeof o.val === "string");
+ },
+ encode(message: ResourceValue, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
+ if (message.val.length !== 0) {
+ writer.uint32(10).bytes(message.val);
+ }
+ return writer;
+ },
+ decode(input: BinaryReader | Uint8Array, length?: number): ResourceValue {
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseResourceValue();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ message.val = reader.bytes();
+ break;
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ },
+ fromJSON(object: any): ResourceValue {
+ return {
+ val: isSet(object.val) ? bytesFromBase64(object.val) : new Uint8Array()
+ };
+ },
+ toJSON(message: ResourceValue): JsonSafe {
+ const obj: any = {};
+ message.val !== undefined && (obj.val = base64FromBytes(message.val !== undefined ? message.val : new Uint8Array()));
+ return obj;
+ },
+ fromPartial, I>>(object: I): ResourceValue {
+ const message = createBaseResourceValue();
+ message.val = object.val ?? new Uint8Array();
+ return message;
+ },
+ fromSDK(object: ResourceValueSDKType): ResourceValue {
+ return {
+ val: object?.val
+ };
+ },
+ fromSDKJSON(object: any): ResourceValueSDKType {
+ return {
+ val: isSet(object.val) ? bytesFromBase64(object.val) : new Uint8Array()
+ };
+ },
+ toSDK(message: ResourceValue): ResourceValueSDKType {
+ const obj: any = {};
+ obj.val = message.val;
+ return obj;
+ },
+ fromAmino(object: ResourceValueAmino): ResourceValue {
+ const message = createBaseResourceValue();
+ if (object.val !== undefined && object.val !== null) {
+ message.val = bytesFromBase64(object.val);
+ }
+ return message;
+ },
+ toAmino(message: ResourceValue): ResourceValueAmino {
+ const obj: any = {};
+ obj.val = message.val ? base64FromBytes(message.val) : undefined;
+ return obj;
+ },
+ fromAminoMsg(object: ResourceValueAminoMsg): ResourceValue {
+ return ResourceValue.fromAmino(object.value);
+ },
+ toAminoMsg(message: ResourceValue): ResourceValueAminoMsg {
+ return {
+ type: "akash/base/v1beta2/resource-value",
+ value: ResourceValue.toAmino(message)
+ };
+ },
+ fromProtoMsg(message: ResourceValueProtoMsg): ResourceValue {
+ return ResourceValue.decode(message.value);
+ },
+ toProto(message: ResourceValue): Uint8Array {
+ return ResourceValue.encode(message).finish();
+ },
+ toProtoMsg(message: ResourceValue): ResourceValueProtoMsg {
+ return {
+ typeUrl: "/akash.base.v1beta2.ResourceValue",
+ value: ResourceValue.encode(message).finish()
+ };
+ }
+};
+GlobalDecoderRegistry.register(ResourceValue.typeUrl, ResourceValue);
+GlobalDecoderRegistry.registerAminoProtoMapping(ResourceValue.aminoType, ResourceValue.typeUrl);
\ No newline at end of file
diff --git a/examples/injective-vue/src/codegen/akash/bundle.ts b/examples/injective-vue/src/codegen/akash/bundle.ts
new file mode 100644
index 000000000..845b92822
--- /dev/null
+++ b/examples/injective-vue/src/codegen/akash/bundle.ts
@@ -0,0 +1,230 @@
+import * as _0 from "./audit/v1beta1/audit";
+import * as _1 from "./audit/v1beta2/audit";
+import * as _2 from "./audit/v1beta2/genesis";
+import * as _3 from "./audit/v1beta2/query";
+import * as _4 from "./base/v1beta1/attribute";
+import * as _5 from "./base/v1beta1/endpoint";
+import * as _6 from "./base/v1beta1/resource";
+import * as _7 from "./base/v1beta1/resourcevalue";
+import * as _8 from "./base/v1beta2/attribute";
+import * as _9 from "./base/v1beta2/endpoint";
+import * as _10 from "./base/v1beta2/resource";
+import * as _11 from "./base/v1beta2/resourceunits";
+import * as _12 from "./base/v1beta2/resourcevalue";
+import * as _13 from "./cert/v1beta2/cert";
+import * as _14 from "./cert/v1beta2/genesis";
+import * as _15 from "./cert/v1beta2/query";
+import * as _16 from "./deployment/v1beta1/authz";
+import * as _17 from "./deployment/v1beta1/deployment";
+import * as _18 from "./deployment/v1beta1/genesis";
+import * as _19 from "./deployment/v1beta1/group";
+import * as _20 from "./deployment/v1beta1/params";
+import * as _21 from "./deployment/v1beta1/query";
+import * as _22 from "./deployment/v1beta2/authz";
+import * as _23 from "./deployment/v1beta2/deployment";
+import * as _24 from "./deployment/v1beta2/deploymentmsg";
+import * as _25 from "./deployment/v1beta2/genesis";
+import * as _26 from "./deployment/v1beta2/group";
+import * as _27 from "./deployment/v1beta2/groupid";
+import * as _28 from "./deployment/v1beta2/groupmsg";
+import * as _29 from "./deployment/v1beta2/groupspec";
+import * as _30 from "./deployment/v1beta2/params";
+import * as _31 from "./deployment/v1beta2/query";
+import * as _32 from "./deployment/v1beta2/resource";
+import * as _33 from "./deployment/v1beta2/service";
+import * as _34 from "./escrow/v1beta1/genesis";
+import * as _35 from "./escrow/v1beta1/query";
+import * as _36 from "./escrow/v1beta1/types";
+import * as _37 from "./escrow/v1beta2/genesis";
+import * as _38 from "./escrow/v1beta2/query";
+import * as _39 from "./escrow/v1beta2/types";
+import * as _40 from "./inflation/v1beta2/genesis";
+import * as _41 from "./inflation/v1beta2/params";
+import * as _42 from "./market/v1beta2/bid";
+import * as _43 from "./market/v1beta2/genesis";
+import * as _44 from "./market/v1beta2/lease";
+import * as _45 from "./market/v1beta2/order";
+import * as _46 from "./market/v1beta2/params";
+import * as _47 from "./market/v1beta2/query";
+import * as _48 from "./market/v1beta2/service";
+import * as _49 from "./provider/v1beta1/provider";
+import * as _50 from "./provider/v1beta2/genesis";
+import * as _51 from "./provider/v1beta2/provider";
+import * as _52 from "./provider/v1beta2/query";
+import * as _366 from "./audit/v1beta1/audit.amino";
+import * as _367 from "./audit/v1beta2/audit.amino";
+import * as _368 from "./cert/v1beta2/cert.amino";
+import * as _369 from "./deployment/v1beta2/service.amino";
+import * as _370 from "./market/v1beta2/service.amino";
+import * as _371 from "./provider/v1beta1/provider.amino";
+import * as _372 from "./provider/v1beta2/provider.amino";
+import * as _373 from "./audit/v1beta1/audit.registry";
+import * as _374 from "./audit/v1beta2/audit.registry";
+import * as _375 from "./cert/v1beta2/cert.registry";
+import * as _376 from "./deployment/v1beta2/service.registry";
+import * as _377 from "./market/v1beta2/service.registry";
+import * as _378 from "./provider/v1beta1/provider.registry";
+import * as _379 from "./provider/v1beta2/provider.registry";
+import * as _380 from "./audit/v1beta2/query.lcd";
+import * as _381 from "./cert/v1beta2/query.lcd";
+import * as _382 from "./deployment/v1beta1/query.lcd";
+import * as _383 from "./deployment/v1beta2/query.lcd";
+import * as _384 from "./escrow/v1beta1/query.lcd";
+import * as _385 from "./escrow/v1beta2/query.lcd";
+import * as _386 from "./market/v1beta2/query.lcd";
+import * as _387 from "./provider/v1beta2/query.lcd";
+import * as _388 from "./audit/v1beta2/query.rpc.Query";
+import * as _389 from "./cert/v1beta2/query.rpc.Query";
+import * as _390 from "./deployment/v1beta2/query.rpc.Query";
+import * as _391 from "./escrow/v1beta1/query.rpc.Query";
+import * as _392 from "./escrow/v1beta2/query.rpc.Query";
+import * as _393 from "./market/v1beta2/query.rpc.Query";
+import * as _394 from "./provider/v1beta2/query.rpc.Query";
+import * as _395 from "./audit/v1beta1/audit.rpc.msg";
+import * as _396 from "./audit/v1beta2/audit.rpc.msg";
+import * as _397 from "./cert/v1beta2/cert.rpc.msg";
+import * as _398 from "./deployment/v1beta2/service.rpc.msg";
+import * as _399 from "./market/v1beta2/service.rpc.msg";
+import * as _400 from "./provider/v1beta1/provider.rpc.msg";
+import * as _401 from "./provider/v1beta2/provider.rpc.msg";
+import * as _620 from "./lcd";
+import * as _621 from "./rpc.query";
+import * as _622 from "./rpc.tx";
+export namespace akash {
+ export namespace audit {
+ export const v1beta1 = {
+ ..._0,
+ ..._366,
+ ..._373,
+ ..._395
+ };
+ export const v1beta2 = {
+ ..._1,
+ ..._2,
+ ..._3,
+ ..._367,
+ ..._374,
+ ..._380,
+ ..._388,
+ ..._396
+ };
+ }
+ export namespace base {
+ export const v1beta1 = {
+ ..._4,
+ ..._5,
+ ..._6,
+ ..._7
+ };
+ export const v1beta2 = {
+ ..._8,
+ ..._9,
+ ..._10,
+ ..._11,
+ ..._12
+ };
+ }
+ export namespace cert {
+ export const v1beta2 = {
+ ..._13,
+ ..._14,
+ ..._15,
+ ..._368,
+ ..._375,
+ ..._381,
+ ..._389,
+ ..._397
+ };
+ }
+ export namespace deployment {
+ export const v1beta1 = {
+ ..._16,
+ ..._17,
+ ..._18,
+ ..._19,
+ ..._20,
+ ..._21,
+ ..._382
+ };
+ export const v1beta2 = {
+ ..._22,
+ ..._23,
+ ..._24,
+ ..._25,
+ ..._26,
+ ..._27,
+ ..._28,
+ ..._29,
+ ..._30,
+ ..._31,
+ ..._32,
+ ..._33,
+ ..._369,
+ ..._376,
+ ..._383,
+ ..._390,
+ ..._398
+ };
+ }
+ export namespace escrow {
+ export const v1beta1 = {
+ ..._34,
+ ..._35,
+ ..._36,
+ ..._384,
+ ..._391
+ };
+ export const v1beta2 = {
+ ..._37,
+ ..._38,
+ ..._39,
+ ..._385,
+ ..._392
+ };
+ }
+ export namespace inflation {
+ export const v1beta2 = {
+ ..._40,
+ ..._41
+ };
+ }
+ export namespace market {
+ export const v1beta2 = {
+ ..._42,
+ ..._43,
+ ..._44,
+ ..._45,
+ ..._46,
+ ..._47,
+ ..._48,
+ ..._370,
+ ..._377,
+ ..._386,
+ ..._393,
+ ..._399
+ };
+ }
+ export namespace provider {
+ export const v1beta1 = {
+ ..._49,
+ ..._371,
+ ..._378,
+ ..._400
+ };
+ export const v1beta2 = {
+ ..._50,
+ ..._51,
+ ..._52,
+ ..._372,
+ ..._379,
+ ..._387,
+ ..._394,
+ ..._401
+ };
+ }
+ export const ClientFactory = {
+ ..._620,
+ ..._621,
+ ..._622
+ };
+}
\ No newline at end of file
diff --git a/examples/injective-vue/src/codegen/akash/cert/v1beta2/cert.amino.ts b/examples/injective-vue/src/codegen/akash/cert/v1beta2/cert.amino.ts
new file mode 100644
index 000000000..97e535cbe
--- /dev/null
+++ b/examples/injective-vue/src/codegen/akash/cert/v1beta2/cert.amino.ts
@@ -0,0 +1,70 @@
+/* eslint-disable */
+import { AminoMsg } from "@cosmjs/amino";
+import { CertificateID, CertificateIDSDKType, MsgCreateCertificate, MsgCreateCertificateSDKType, MsgRevokeCertificate, MsgRevokeCertificateSDKType } from "./cert";
+export interface MsgCreateCertificateAminoType extends AminoMsg {
+ type: "akash/cert/v1beta2/testonly-create-certificate";
+ value: {
+ owner: string;
+ cert: Uint8Array;
+ pubkey: Uint8Array;
+ };
+}
+export interface MsgRevokeCertificateAminoType extends AminoMsg {
+ type: "akash/cert/v1beta2/testonly-revoke-certificate";
+ value: {
+ id: {
+ owner: string;
+ serial: string;
+ };
+ };
+}
+export const AminoConverter = {
+ "/akash.cert.v1beta2.MsgCreateCertificate": {
+ aminoType: "akash/cert/v1beta2/testonly-create-certificate",
+ toAmino: ({
+ owner,
+ cert,
+ pubkey
+ }: MsgCreateCertificate): MsgCreateCertificateAminoType["value"] => {
+ return {
+ owner,
+ cert,
+ pubkey
+ };
+ },
+ fromAmino: ({
+ owner,
+ cert,
+ pubkey
+ }: MsgCreateCertificateAminoType["value"]): MsgCreateCertificate => {
+ return {
+ owner,
+ cert,
+ pubkey
+ };
+ }
+ },
+ "/akash.cert.v1beta2.MsgRevokeCertificate": {
+ aminoType: "akash/cert/v1beta2/testonly-revoke-certificate",
+ toAmino: ({
+ id
+ }: MsgRevokeCertificate): MsgRevokeCertificateAminoType["value"] => {
+ return {
+ id: {
+ owner: id.owner,
+ serial: id.serial
+ }
+ };
+ },
+ fromAmino: ({
+ id
+ }: MsgRevokeCertificateAminoType["value"]): MsgRevokeCertificate => {
+ return {
+ id: {
+ owner: id.owner,
+ serial: id.serial
+ }
+ };
+ }
+ }
+};
\ No newline at end of file
diff --git a/examples/injective-vue/src/codegen/akash/cert/v1beta2/cert.registry.ts b/examples/injective-vue/src/codegen/akash/cert/v1beta2/cert.registry.ts
new file mode 100644
index 000000000..db2b4835c
--- /dev/null
+++ b/examples/injective-vue/src/codegen/akash/cert/v1beta2/cert.registry.ts
@@ -0,0 +1,80 @@
+import { GeneratedType, Registry } from "@cosmjs/proto-signing";
+import { MsgCreateCertificate, MsgCreateCertificateSDKType, MsgRevokeCertificate, MsgRevokeCertificateSDKType } from "./cert";
+export const registry: ReadonlyArray<[string, GeneratedType]> = [["/akash.cert.v1beta2.MsgCreateCertificate", MsgCreateCertificate], ["/akash.cert.v1beta2.MsgRevokeCertificate", MsgRevokeCertificate]];
+export const load = (protoRegistry: Registry) => {
+ registry.forEach(([typeUrl, mod]) => {
+ protoRegistry.register(typeUrl, mod);
+ });
+};
+export const MessageComposer = {
+ encoded: {
+ createCertificate(value: MsgCreateCertificate) {
+ return {
+ typeUrl: "/akash.cert.v1beta2.MsgCreateCertificate",
+ value: MsgCreateCertificate.encode(value).finish()
+ };
+ },
+ revokeCertificate(value: MsgRevokeCertificate) {
+ return {
+ typeUrl: "/akash.cert.v1beta2.MsgRevokeCertificate",
+ value: MsgRevokeCertificate.encode(value).finish()
+ };
+ }
+ },
+ withTypeUrl: {
+ createCertificate(value: MsgCreateCertificate) {
+ return {
+ typeUrl: "/akash.cert.v1beta2.MsgCreateCertificate",
+ value
+ };
+ },
+ revokeCertificate(value: MsgRevokeCertificate) {
+ return {
+ typeUrl: "/akash.cert.v1beta2.MsgRevokeCertificate",
+ value
+ };
+ }
+ },
+ toJSON: {
+ createCertificate(value: MsgCreateCertificate) {
+ return {
+ typeUrl: "/akash.cert.v1beta2.MsgCreateCertificate",
+ value: MsgCreateCertificate.toJSON(value)
+ };
+ },
+ revokeCertificate(value: MsgRevokeCertificate) {
+ return {
+ typeUrl: "/akash.cert.v1beta2.MsgRevokeCertificate",
+ value: MsgRevokeCertificate.toJSON(value)
+ };
+ }
+ },
+ fromJSON: {
+ createCertificate(value: any) {
+ return {
+ typeUrl: "/akash.cert.v1beta2.MsgCreateCertificate",
+ value: MsgCreateCertificate.fromJSON(value)
+ };
+ },
+ revokeCertificate(value: any) {
+ return {
+ typeUrl: "/akash.cert.v1beta2.MsgRevokeCertificate",
+ value: MsgRevokeCertificate.fromJSON(value)
+ };
+ }
+ },
+ fromPartial: {
+ createCertificate(value: MsgCreateCertificate) {
+ return {
+ typeUrl: "/akash.cert.v1beta2.MsgCreateCertificate",
+ value: MsgCreateCertificate.fromPartial(value)
+ };
+ },
+ revokeCertificate(value: MsgRevokeCertificate) {
+ return {
+ typeUrl: "/akash.cert.v1beta2.MsgRevokeCertificate",
+ value: MsgRevokeCertificate.fromPartial(value)
+ };
+ }
+ }
+};
\ No newline at end of file
diff --git a/examples/injective-vue/src/codegen/akash/cert/v1beta2/cert.rpc.msg.ts b/examples/injective-vue/src/codegen/akash/cert/v1beta2/cert.rpc.msg.ts
new file mode 100644
index 000000000..a00c4317e
--- /dev/null
+++ b/examples/injective-vue/src/codegen/akash/cert/v1beta2/cert.rpc.msg.ts
@@ -0,0 +1,31 @@
+import { Rpc } from "../../../helpers";
+import { BinaryReader } from "../../../binary";
+import { MsgCreateCertificate, MsgCreateCertificateSDKType, MsgCreateCertificateResponse, MsgCreateCertificateResponseSDKType, MsgRevokeCertificate, MsgRevokeCertificateSDKType, MsgRevokeCertificateResponse, MsgRevokeCertificateResponseSDKType } from "./cert";
+/** Msg defines the provider Msg service */
+export interface Msg {
+ /** CreateCertificate defines a method to create new certificate given proper inputs. */
+ createCertificate(request: MsgCreateCertificate): Promise;
+ /** RevokeCertificate defines a method to revoke the certificate */
+ revokeCertificate(request: MsgRevokeCertificate): Promise;
+}
+export class MsgClientImpl implements Msg {
+ private readonly rpc: Rpc;
+ constructor(rpc: Rpc) {
+ this.rpc = rpc;
+ }
+ /* CreateCertificate defines a method to create new certificate given proper inputs. */
+ createCertificate = async (request: MsgCreateCertificate): Promise => {
+ const data = MsgCreateCertificate.encode(request).finish();
+ const promise = this.rpc.request("akash.cert.v1beta2.Msg", "CreateCertificate", data);
+ return promise.then(data => MsgCreateCertificateResponse.decode(new BinaryReader(data)));
+ };
+ /* RevokeCertificate defines a method to revoke the certificate */
+ revokeCertificate = async (request: MsgRevokeCertificate): Promise => {
+ const data = MsgRevokeCertificate.encode(request).finish();
+ const promise = this.rpc.request("akash.cert.v1beta2.Msg", "RevokeCertificate", data);
+ return promise.then(data => MsgRevokeCertificateResponse.decode(new BinaryReader(data)));
+ };
+}
+export const createClientImpl = (rpc: Rpc) => {
+ return new MsgClientImpl(rpc);
+};
\ No newline at end of file
diff --git a/examples/injective-vue/src/codegen/akash/cert/v1beta2/cert.ts b/examples/injective-vue/src/codegen/akash/cert/v1beta2/cert.ts
new file mode 100644
index 000000000..b8d7e9d50
--- /dev/null
+++ b/examples/injective-vue/src/codegen/akash/cert/v1beta2/cert.ts
@@ -0,0 +1,959 @@
+import { BinaryReader, BinaryWriter } from "../../../binary";
+import { isSet, DeepPartial, Exact, bytesFromBase64, base64FromBytes } from "../../../helpers";
+import { JsonSafe } from "../../../json-safe";
+import { GlobalDecoderRegistry } from "../../../registry";
+import { ComputedRef } from "vue";
+export const protobufPackage = "akash.cert.v1beta2";
+/** State is an enum which refers to state of deployment */
+export enum Certificate_State {
+ /** invalid - Prefix should start with 0 in enum. So declaring dummy state */
+ invalid = 0,
+ /** valid - CertificateValid denotes state for deployment active */
+ valid = 1,
+ /** revoked - CertificateRevoked denotes state for deployment closed */
+ revoked = 2,
+ UNRECOGNIZED = -1,
+}
+export const Certificate_StateSDKType = Certificate_State;
+export function certificate_StateFromJSON(object: any): Certificate_State {
+ switch (object) {
+ case 0:
+ case "invalid":
+ return Certificate_State.invalid;
+ case 1:
+ case "valid":
+ return Certificate_State.valid;
+ case 2:
+ case "revoked":
+ return Certificate_State.revoked;
+ case -1:
+ case "UNRECOGNIZED":
+ default:
+ return Certificate_State.UNRECOGNIZED;
+ }
+}
+export function certificate_StateToJSON(object: Certificate_State): string {
+ switch (object) {
+ case Certificate_State.invalid:
+ return "invalid";
+ case Certificate_State.valid:
+ return "valid";
+ case Certificate_State.revoked:
+ return "revoked";
+ case Certificate_State.UNRECOGNIZED:
+ default:
+ return "UNRECOGNIZED";
+ }
+}
+/** CertificateID stores owner and sequence number */
+export interface CertificateID {
+ owner: string;
+ serial: string;
+}
+export interface ReactiveCertificateID {
+ owner: ComputedRef;
+ serial: ComputedRef;
+}
+export interface CertificateIDProtoMsg {
+ typeUrl: "/akash.cert.v1beta2.CertificateID";
+ value: Uint8Array;
+}
+/** CertificateID stores owner and sequence number */
+export interface CertificateIDSDKType {
+ owner: string;
+ serial: string;
+}
+/** Certificate stores state, certificate and it's public key */
+export interface Certificate {
+ state: Certificate_State;
+ cert: Uint8Array;
+ pubkey: Uint8Array;
+}
+export interface ReactiveCertificate {
+ state: ComputedRef;
+ cert: ComputedRef;
+ pubkey: ComputedRef;
+}
+export interface CertificateProtoMsg {
+ typeUrl: "/akash.cert.v1beta2.Certificate";
+ value: Uint8Array;
+}
+/** Certificate stores state, certificate and it's public key */
+export interface CertificateSDKType {
+ state: Certificate_State;
+ cert: Uint8Array;
+ pubkey: Uint8Array;
+}
+/** CertificateFilter defines filters used to filter certificates */
+export interface CertificateFilter {
+ owner: string;
+ serial: string;
+ state: string;
+}
+export interface ReactiveCertificateFilter {
+ owner: ComputedRef;
+ serial: ComputedRef;
+ state: ComputedRef;
+}
+export interface CertificateFilterProtoMsg {
+ typeUrl: "/akash.cert.v1beta2.CertificateFilter";
+ value: Uint8Array;
+}
+/** CertificateFilter defines filters used to filter certificates */
+export interface CertificateFilterSDKType {
+ owner: string;
+ serial: string;
+ state: string;
+}
+/** MsgCreateCertificate defines an SDK message for creating certificate */
+export interface MsgCreateCertificate {
+ owner: string;
+ cert: Uint8Array;
+ pubkey: Uint8Array;
+}
+export interface ReactiveMsgCreateCertificate {
+ owner: ComputedRef;
+ cert: ComputedRef;
+ pubkey: ComputedRef;
+}
+export interface MsgCreateCertificateProtoMsg {
+ typeUrl: "/akash.cert.v1beta2.MsgCreateCertificate";
+ value: Uint8Array;
+}
+/** MsgCreateCertificate defines an SDK message for creating certificate */
+export interface MsgCreateCertificateSDKType {
+ owner: string;
+ cert: Uint8Array;
+ pubkey: Uint8Array;
+}
+/** MsgCreateCertificateResponse defines the Msg/CreateCertificate response type. */
+export interface MsgCreateCertificateResponse {}
+export interface ReactiveMsgCreateCertificateResponse {}
+export interface MsgCreateCertificateResponseProtoMsg {
+ typeUrl: "/akash.cert.v1beta2.MsgCreateCertificateResponse";
+ value: Uint8Array;
+}
+/** MsgCreateCertificateResponse defines the Msg/CreateCertificate response type. */
+export interface MsgCreateCertificateResponseSDKType {}
+/** MsgRevokeCertificate defines an SDK message for revoking certificate */
+export interface MsgRevokeCertificate {
+ id: CertificateID;
+}
+export interface ReactiveMsgRevokeCertificate {
+ id: ComputedRef;
+}
+export interface MsgRevokeCertificateProtoMsg {
+ typeUrl: "/akash.cert.v1beta2.MsgRevokeCertificate";
+ value: Uint8Array;
+}
+/** MsgRevokeCertificate defines an SDK message for revoking certificate */
+export interface MsgRevokeCertificateSDKType {
+ id: CertificateIDSDKType;
+}
+/** MsgRevokeCertificateResponse defines the Msg/RevokeCertificate response type. */
+export interface MsgRevokeCertificateResponse {}
+export interface ReactiveMsgRevokeCertificateResponse {}
+export interface MsgRevokeCertificateResponseProtoMsg {
+ typeUrl: "/akash.cert.v1beta2.MsgRevokeCertificateResponse";
+ value: Uint8Array;
+}
+/** MsgRevokeCertificateResponse defines the Msg/RevokeCertificate response type. */
+export interface MsgRevokeCertificateResponseSDKType {}
+function createBaseCertificateID(): CertificateID {
+ return {
+ owner: "",
+ serial: ""
+ };
+}
+export const CertificateID = {
+ typeUrl: "/akash.cert.v1beta2.CertificateID",
+ aminoType: "akash/cert/v1beta2/certificate-i-d",
+ is(o: any): o is CertificateID {
+ return o && (o.$typeUrl === CertificateID.typeUrl || typeof o.owner === "string" && typeof o.serial === "string");
+ },
+ isSDK(o: any): o is CertificateIDSDKType {
+ return o && (o.$typeUrl === CertificateID.typeUrl || typeof o.owner === "string" && typeof o.serial === "string");
+ },
+ encode(message: CertificateID, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
+ if (message.owner !== "") {
+ writer.uint32(10).string(message.owner);
+ }
+ if (message.serial !== "") {
+ writer.uint32(18).string(message.serial);
+ }
+ return writer;
+ },
+ decode(input: BinaryReader | Uint8Array, length?: number): CertificateID {
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseCertificateID();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ message.owner = reader.string();
+ break;
+ case 2:
+ message.serial = reader.string();
+ break;
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ },
+ fromJSON(object: any): CertificateID {
+ return {
+ owner: isSet(object.owner) ? String(object.owner) : "",
+ serial: isSet(object.serial) ? String(object.serial) : ""
+ };
+ },
+ toJSON(message: CertificateID): JsonSafe {
+ const obj: any = {};
+ message.owner !== undefined && (obj.owner = message.owner);
+ message.serial !== undefined && (obj.serial = message.serial);
+ return obj;
+ },
+ fromPartial, I>>(object: I): CertificateID {
+ const message = createBaseCertificateID();
+ message.owner = object.owner ?? "";
+ message.serial = object.serial ?? "";
+ return message;
+ },
+ fromSDK(object: CertificateIDSDKType): CertificateID {
+ return {
+ owner: object?.owner,
+ serial: object?.serial
+ };
+ },
+ fromSDKJSON(object: any): CertificateIDSDKType {
+ return {
+ owner: isSet(object.owner) ? String(object.owner) : "",
+ serial: isSet(object.serial) ? String(object.serial) : ""
+ };
+ },
+ toSDK(message: CertificateID): CertificateIDSDKType {
+ const obj: any = {};
+ obj.owner = message.owner;
+ obj.serial = message.serial;
+ return obj;
+ },
+ fromAmino(object: CertificateIDAmino): CertificateID {
+ const message = createBaseCertificateID();
+ if (object.owner !== undefined && object.owner !== null) {
+ message.owner = object.owner;
+ }
+ if (object.serial !== undefined && object.serial !== null) {
+ message.serial = object.serial;
+ }
+ return message;
+ },
+ toAmino(message: CertificateID): CertificateIDAmino {
+ const obj: any = {};
+ obj.owner = message.owner ?? "";
+ obj.serial = message.serial ?? "";
+ return obj;
+ },
+ fromAminoMsg(object: CertificateIDAminoMsg): CertificateID {
+ return CertificateID.fromAmino(object.value);
+ },
+ toAminoMsg(message: CertificateID): CertificateIDAminoMsg {
+ return {
+ type: "akash/cert/v1beta2/certificate-i-d",
+ value: CertificateID.toAmino(message)
+ };
+ },
+ fromProtoMsg(message: CertificateIDProtoMsg): CertificateID {
+ return CertificateID.decode(message.value);
+ },
+ toProto(message: CertificateID): Uint8Array {
+ return CertificateID.encode(message).finish();
+ },
+ toProtoMsg(message: CertificateID): CertificateIDProtoMsg {
+ return {
+ typeUrl: "/akash.cert.v1beta2.CertificateID",
+ value: CertificateID.encode(message).finish()
+ };
+ }
+};
+GlobalDecoderRegistry.register(CertificateID.typeUrl, CertificateID);
+GlobalDecoderRegistry.registerAminoProtoMapping(CertificateID.aminoType, CertificateID.typeUrl);
+function createBaseCertificate(): Certificate {
+ return {
+ state: 0,
+ cert: new Uint8Array(),
+ pubkey: new Uint8Array()
+ };
+}
+export const Certificate = {
+ typeUrl: "/akash.cert.v1beta2.Certificate",
+ aminoType: "akash/cert/v1beta2/certificate",
+ is(o: any): o is Certificate {
+ return o && (o.$typeUrl === Certificate.typeUrl || isSet(o.state) && (o.cert instanceof Uint8Array || typeof o.cert === "string") && (o.pubkey instanceof Uint8Array || typeof o.pubkey === "string"));
+ },
+ isSDK(o: any): o is CertificateSDKType {
+ return o && (o.$typeUrl === Certificate.typeUrl || isSet(o.state) && (o.cert instanceof Uint8Array || typeof o.cert === "string") && (o.pubkey instanceof Uint8Array || typeof o.pubkey === "string"));
+ },
+ encode(message: Certificate, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
+ if (message.state !== 0) {
+ writer.uint32(16).int32(message.state);
+ }
+ if (message.cert.length !== 0) {
+ writer.uint32(26).bytes(message.cert);
+ }
+ if (message.pubkey.length !== 0) {
+ writer.uint32(34).bytes(message.pubkey);
+ }
+ return writer;
+ },
+ decode(input: BinaryReader | Uint8Array, length?: number): Certificate {
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseCertificate();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 2:
+ message.state = (reader.int32() as any);
+ break;
+ case 3:
+ message.cert = reader.bytes();
+ break;
+ case 4:
+ message.pubkey = reader.bytes();
+ break;
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ },
+ fromJSON(object: any): Certificate {
+ return {
+ state: isSet(object.state) ? certificate_StateFromJSON(object.state) : -1,
+ cert: isSet(object.cert) ? bytesFromBase64(object.cert) : new Uint8Array(),
+ pubkey: isSet(object.pubkey) ? bytesFromBase64(object.pubkey) : new Uint8Array()
+ };
+ },
+ toJSON(message: Certificate): JsonSafe {
+ const obj: any = {};
+ message.state !== undefined && (obj.state = certificate_StateToJSON(message.state));
+ message.cert !== undefined && (obj.cert = base64FromBytes(message.cert !== undefined ? message.cert : new Uint8Array()));
+ message.pubkey !== undefined && (obj.pubkey = base64FromBytes(message.pubkey !== undefined ? message.pubkey : new Uint8Array()));
+ return obj;
+ },
+ fromPartial, I>>(object: I): Certificate {
+ const message = createBaseCertificate();
+ message.state = object.state ?? 0;
+ message.cert = object.cert ?? new Uint8Array();
+ message.pubkey = object.pubkey ?? new Uint8Array();
+ return message;
+ },
+ fromSDK(object: CertificateSDKType): Certificate {
+ return {
+ state: isSet(object.state) ? certificate_StateFromJSON(object.state) : -1,
+ cert: object?.cert,
+ pubkey: object?.pubkey
+ };
+ },
+ fromSDKJSON(object: any): CertificateSDKType {
+ return {
+ state: isSet(object.state) ? certificate_StateFromJSON(object.state) : -1,
+ cert: isSet(object.cert) ? bytesFromBase64(object.cert) : new Uint8Array(),
+ pubkey: isSet(object.pubkey) ? bytesFromBase64(object.pubkey) : new Uint8Array()
+ };
+ },
+ toSDK(message: Certificate): CertificateSDKType {
+ const obj: any = {};
+ message.state !== undefined && (obj.state = certificate_StateToJSON(message.state));
+ obj.cert = message.cert;
+ obj.pubkey = message.pubkey;
+ return obj;
+ },
+ fromAmino(object: CertificateAmino): Certificate {
+ const message = createBaseCertificate();
+ if (object.state !== undefined && object.state !== null) {
+ message.state = object.state;
+ }
+ if (object.cert !== undefined && object.cert !== null) {
+ message.cert = bytesFromBase64(object.cert);
+ }
+ if (object.pubkey !== undefined && object.pubkey !== null) {
+ message.pubkey = bytesFromBase64(object.pubkey);
+ }
+ return message;
+ },
+ toAmino(message: Certificate): CertificateAmino {
+ const obj: any = {};
+ obj.state = message.state ?? 0;
+ obj.cert = message.cert ? base64FromBytes(message.cert) : "";
+ obj.pubkey = message.pubkey ? base64FromBytes(message.pubkey) : "";
+ return obj;
+ },
+ fromAminoMsg(object: CertificateAminoMsg): Certificate {
+ return Certificate.fromAmino(object.value);
+ },
+ toAminoMsg(message: Certificate): CertificateAminoMsg {
+ return {
+ type: "akash/cert/v1beta2/certificate",
+ value: Certificate.toAmino(message)
+ };
+ },
+ fromProtoMsg(message: CertificateProtoMsg): Certificate {
+ return Certificate.decode(message.value);
+ },
+ toProto(message: Certificate): Uint8Array {
+ return Certificate.encode(message).finish();
+ },
+ toProtoMsg(message: Certificate): CertificateProtoMsg {
+ return {
+ typeUrl: "/akash.cert.v1beta2.Certificate",
+ value: Certificate.encode(message).finish()
+ };
+ }
+};
+GlobalDecoderRegistry.register(Certificate.typeUrl, Certificate);
+GlobalDecoderRegistry.registerAminoProtoMapping(Certificate.aminoType, Certificate.typeUrl);
+function createBaseCertificateFilter(): CertificateFilter {
+ return {
+ owner: "",
+ serial: "",
+ state: ""
+ };
+}
+export const CertificateFilter = {
+ typeUrl: "/akash.cert.v1beta2.CertificateFilter",
+ aminoType: "akash/cert/v1beta2/certificate-filter",
+ is(o: any): o is CertificateFilter {
+ return o && (o.$typeUrl === CertificateFilter.typeUrl || typeof o.owner === "string" && typeof o.serial === "string" && typeof o.state === "string");
+ },
+ isSDK(o: any): o is CertificateFilterSDKType {
+ return o && (o.$typeUrl === CertificateFilter.typeUrl || typeof o.owner === "string" && typeof o.serial === "string" && typeof o.state === "string");
+ },
+ encode(message: CertificateFilter, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
+ if (message.owner !== "") {
+ writer.uint32(10).string(message.owner);
+ }
+ if (message.serial !== "") {
+ writer.uint32(18).string(message.serial);
+ }
+ if (message.state !== "") {
+ writer.uint32(26).string(message.state);
+ }
+ return writer;
+ },
+ decode(input: BinaryReader | Uint8Array, length?: number): CertificateFilter {
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseCertificateFilter();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ message.owner = reader.string();
+ break;
+ case 2:
+ message.serial = reader.string();
+ break;
+ case 3:
+ message.state = reader.string();
+ break;
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ },
+ fromJSON(object: any): CertificateFilter {
+ return {
+ owner: isSet(object.owner) ? String(object.owner) : "",
+ serial: isSet(object.serial) ? String(object.serial) : "",
+ state: isSet(object.state) ? String(object.state) : ""
+ };
+ },
+ toJSON(message: CertificateFilter): JsonSafe {
+ const obj: any = {};
+ message.owner !== undefined && (obj.owner = message.owner);
+ message.serial !== undefined && (obj.serial = message.serial);
+ message.state !== undefined && (obj.state = message.state);
+ return obj;
+ },
+ fromPartial, I>>(object: I): CertificateFilter {
+ const message = createBaseCertificateFilter();
+ message.owner = object.owner ?? "";
+ message.serial = object.serial ?? "";
+ message.state = object.state ?? "";
+ return message;
+ },
+ fromSDK(object: CertificateFilterSDKType): CertificateFilter {
+ return {
+ owner: object?.owner,
+ serial: object?.serial,
+ state: object?.state
+ };
+ },
+ fromSDKJSON(object: any): CertificateFilterSDKType {
+ return {
+ owner: isSet(object.owner) ? String(object.owner) : "",
+ serial: isSet(object.serial) ? String(object.serial) : "",
+ state: isSet(object.state) ? String(object.state) : ""
+ };
+ },
+ toSDK(message: CertificateFilter): CertificateFilterSDKType {
+ const obj: any = {};
+ obj.owner = message.owner;
+ obj.serial = message.serial;
+ obj.state = message.state;
+ return obj;
+ },
+ fromAmino(object: CertificateFilterAmino): CertificateFilter {
+ const message = createBaseCertificateFilter();
+ if (object.owner !== undefined && object.owner !== null) {
+ message.owner = object.owner;
+ }
+ if (object.serial !== undefined && object.serial !== null) {
+ message.serial = object.serial;
+ }
+ if (object.state !== undefined && object.state !== null) {
+ message.state = object.state;
+ }
+ return message;
+ },
+ toAmino(message: CertificateFilter): CertificateFilterAmino {
+ const obj: any = {};
+ obj.owner = message.owner ?? "";
+ obj.serial = message.serial ?? "";
+ obj.state = message.state ?? "";
+ return obj;
+ },
+ fromAminoMsg(object: CertificateFilterAminoMsg): CertificateFilter {
+ return CertificateFilter.fromAmino(object.value);
+ },
+ toAminoMsg(message: CertificateFilter): CertificateFilterAminoMsg {
+ return {
+ type: "akash/cert/v1beta2/certificate-filter",
+ value: CertificateFilter.toAmino(message)
+ };
+ },
+ fromProtoMsg(message: CertificateFilterProtoMsg): CertificateFilter {
+ return CertificateFilter.decode(message.value);
+ },
+ toProto(message: CertificateFilter): Uint8Array {
+ return CertificateFilter.encode(message).finish();
+ },
+ toProtoMsg(message: CertificateFilter): CertificateFilterProtoMsg {
+ return {
+ typeUrl: "/akash.cert.v1beta2.CertificateFilter",
+ value: CertificateFilter.encode(message).finish()
+ };
+ }
+};
+GlobalDecoderRegistry.register(CertificateFilter.typeUrl, CertificateFilter);
+GlobalDecoderRegistry.registerAminoProtoMapping(CertificateFilter.aminoType, CertificateFilter.typeUrl);
+function createBaseMsgCreateCertificate(): MsgCreateCertificate {
+ return {
+ owner: "",
+ cert: new Uint8Array(),
+ pubkey: new Uint8Array()
+ };
+}
+export const MsgCreateCertificate = {
+ typeUrl: "/akash.cert.v1beta2.MsgCreateCertificate",
+ aminoType: "akash/cert/v1beta2/testonly-create-certificate",
+ is(o: any): o is MsgCreateCertificate {
+ return o && (o.$typeUrl === MsgCreateCertificate.typeUrl || typeof o.owner === "string" && (o.cert instanceof Uint8Array || typeof o.cert === "string") && (o.pubkey instanceof Uint8Array || typeof o.pubkey === "string"));
+ },
+ isSDK(o: any): o is MsgCreateCertificateSDKType {
+ return o && (o.$typeUrl === MsgCreateCertificate.typeUrl || typeof o.owner === "string" && (o.cert instanceof Uint8Array || typeof o.cert === "string") && (o.pubkey instanceof Uint8Array || typeof o.pubkey === "string"));
+ },
+ encode(message: MsgCreateCertificate, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
+ if (message.owner !== "") {
+ writer.uint32(10).string(message.owner);
+ }
+ if (message.cert.length !== 0) {
+ writer.uint32(18).bytes(message.cert);
+ }
+ if (message.pubkey.length !== 0) {
+ writer.uint32(26).bytes(message.pubkey);
+ }
+ return writer;
+ },
+ decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateCertificate {
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseMsgCreateCertificate();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ message.owner = reader.string();
+ break;
+ case 2:
+ message.cert = reader.bytes();
+ break;
+ case 3:
+ message.pubkey = reader.bytes();
+ break;
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ },
+ fromJSON(object: any): MsgCreateCertificate {
+ return {
+ owner: isSet(object.owner) ? String(object.owner) : "",
+ cert: isSet(object.cert) ? bytesFromBase64(object.cert) : new Uint8Array(),
+ pubkey: isSet(object.pubkey) ? bytesFromBase64(object.pubkey) : new Uint8Array()
+ };
+ },
+ toJSON(message: MsgCreateCertificate): JsonSafe {
+ const obj: any = {};
+ message.owner !== undefined && (obj.owner = message.owner);
+ message.cert !== undefined && (obj.cert = base64FromBytes(message.cert !== undefined ? message.cert : new Uint8Array()));
+ message.pubkey !== undefined && (obj.pubkey = base64FromBytes(message.pubkey !== undefined ? message.pubkey : new Uint8Array()));
+ return obj;
+ },
+ fromPartial, I>>(object: I): MsgCreateCertificate {
+ const message = createBaseMsgCreateCertificate();
+ message.owner = object.owner ?? "";
+ message.cert = object.cert ?? new Uint8Array();
+ message.pubkey = object.pubkey ?? new Uint8Array();
+ return message;
+ },
+ fromSDK(object: MsgCreateCertificateSDKType): MsgCreateCertificate {
+ return {
+ owner: object?.owner,
+ cert: object?.cert,
+ pubkey: object?.pubkey
+ };
+ },
+ fromSDKJSON(object: any): MsgCreateCertificateSDKType {
+ return {
+ owner: isSet(object.owner) ? String(object.owner) : "",
+ cert: isSet(object.cert) ? bytesFromBase64(object.cert) : new Uint8Array(),
+ pubkey: isSet(object.pubkey) ? bytesFromBase64(object.pubkey) : new Uint8Array()
+ };
+ },
+ toSDK(message: MsgCreateCertificate): MsgCreateCertificateSDKType {
+ const obj: any = {};
+ obj.owner = message.owner;
+ obj.cert = message.cert;
+ obj.pubkey = message.pubkey;
+ return obj;
+ },
+ fromAmino(object: MsgCreateCertificateAmino): MsgCreateCertificate {
+ const message = createBaseMsgCreateCertificate();
+ if (object.owner !== undefined && object.owner !== null) {
+ message.owner = object.owner;
+ }
+ if (object.cert !== undefined && object.cert !== null) {
+ message.cert = bytesFromBase64(object.cert);
+ }
+ if (object.pubkey !== undefined && object.pubkey !== null) {
+ message.pubkey = bytesFromBase64(object.pubkey);
+ }
+ return message;
+ },
+ toAmino(message: MsgCreateCertificate): MsgCreateCertificateAmino {
+ const obj: any = {};
+ obj.owner = message.owner ?? "";
+ obj.cert = message.cert ? base64FromBytes(message.cert) : "";
+ obj.pubkey = message.pubkey ? base64FromBytes(message.pubkey) : "";
+ return obj;
+ },
+ fromAminoMsg(object: MsgCreateCertificateAminoMsg): MsgCreateCertificate {
+ return MsgCreateCertificate.fromAmino(object.value);
+ },
+ toAminoMsg(message: MsgCreateCertificate): MsgCreateCertificateAminoMsg {
+ return {
+ type: "akash/cert/v1beta2/testonly-create-certificate",
+ value: MsgCreateCertificate.toAmino(message)
+ };
+ },
+ fromProtoMsg(message: MsgCreateCertificateProtoMsg): MsgCreateCertificate {
+ return MsgCreateCertificate.decode(message.value);
+ },
+ toProto(message: MsgCreateCertificate): Uint8Array {
+ return MsgCreateCertificate.encode(message).finish();
+ },
+ toProtoMsg(message: MsgCreateCertificate): MsgCreateCertificateProtoMsg {
+ return {
+ typeUrl: "/akash.cert.v1beta2.MsgCreateCertificate",
+ value: MsgCreateCertificate.encode(message).finish()
+ };
+ }
+};
+GlobalDecoderRegistry.register(MsgCreateCertificate.typeUrl, MsgCreateCertificate);
+GlobalDecoderRegistry.registerAminoProtoMapping(MsgCreateCertificate.aminoType, MsgCreateCertificate.typeUrl);
+function createBaseMsgCreateCertificateResponse(): MsgCreateCertificateResponse {
+ return {};
+}
+export const MsgCreateCertificateResponse = {
+ typeUrl: "/akash.cert.v1beta2.MsgCreateCertificateResponse",
+ aminoType: "akash/cert/v1beta2/testonly-create-certificate-response",
+ is(o: any): o is MsgCreateCertificateResponse {
+ return o && o.$typeUrl === MsgCreateCertificateResponse.typeUrl;
+ },
+ isSDK(o: any): o is MsgCreateCertificateResponseSDKType {
+ return o && o.$typeUrl === MsgCreateCertificateResponse.typeUrl;
+ },
+ encode(_: MsgCreateCertificateResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
+ return writer;
+ },
+ decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateCertificateResponse {
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseMsgCreateCertificateResponse();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ },
+ fromJSON(_: any): MsgCreateCertificateResponse {
+ return {};
+ },
+ toJSON(_: MsgCreateCertificateResponse): JsonSafe {
+ const obj: any = {};
+ return obj;
+ },
+ fromPartial, I>>(_: I): MsgCreateCertificateResponse {
+ const message = createBaseMsgCreateCertificateResponse();
+ return message;
+ },
+ fromSDK(_: MsgCreateCertificateResponseSDKType): MsgCreateCertificateResponse {
+ return {};
+ },
+ fromSDKJSON(_: any): MsgCreateCertificateResponseSDKType {
+ return {};
+ },
+ toSDK(_: MsgCreateCertificateResponse): MsgCreateCertificateResponseSDKType {
+ const obj: any = {};
+ return obj;
+ },
+ fromAmino(_: MsgCreateCertificateResponseAmino): MsgCreateCertificateResponse {
+ const message = createBaseMsgCreateCertificateResponse();
+ return message;
+ },
+ toAmino(_: MsgCreateCertificateResponse): MsgCreateCertificateResponseAmino {
+ const obj: any = {};
+ return obj;
+ },
+ fromAminoMsg(object: MsgCreateCertificateResponseAminoMsg): MsgCreateCertificateResponse {
+ return MsgCreateCertificateResponse.fromAmino(object.value);
+ },
+ toAminoMsg(message: MsgCreateCertificateResponse): MsgCreateCertificateResponseAminoMsg {
+ return {
+ type: "akash/cert/v1beta2/testonly-create-certificate-response",
+ value: MsgCreateCertificateResponse.toAmino(message)
+ };
+ },
+ fromProtoMsg(message: MsgCreateCertificateResponseProtoMsg): MsgCreateCertificateResponse {
+ return MsgCreateCertificateResponse.decode(message.value);
+ },
+ toProto(message: MsgCreateCertificateResponse): Uint8Array {
+ return MsgCreateCertificateResponse.encode(message).finish();
+ },
+ toProtoMsg(message: MsgCreateCertificateResponse): MsgCreateCertificateResponseProtoMsg {
+ return {
+ typeUrl: "/akash.cert.v1beta2.MsgCreateCertificateResponse",
+ value: MsgCreateCertificateResponse.encode(message).finish()
+ };
+ }
+};
+GlobalDecoderRegistry.register(MsgCreateCertificateResponse.typeUrl, MsgCreateCertificateResponse);
+GlobalDecoderRegistry.registerAminoProtoMapping(MsgCreateCertificateResponse.aminoType, MsgCreateCertificateResponse.typeUrl);
+function createBaseMsgRevokeCertificate(): MsgRevokeCertificate {
+ return {
+ id: CertificateID.fromPartial({})
+ };
+}
+export const MsgRevokeCertificate = {
+ typeUrl: "/akash.cert.v1beta2.MsgRevokeCertificate",
+ aminoType: "akash/cert/v1beta2/testonly-revoke-certificate",
+ is(o: any): o is MsgRevokeCertificate {
+ return o && (o.$typeUrl === MsgRevokeCertificate.typeUrl || CertificateID.is(o.id));
+ },
+ isSDK(o: any): o is MsgRevokeCertificateSDKType {
+ return o && (o.$typeUrl === MsgRevokeCertificate.typeUrl || CertificateID.isSDK(o.id));
+ },
+ encode(message: MsgRevokeCertificate, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
+ if (message.id !== undefined) {
+ CertificateID.encode(message.id, writer.uint32(10).fork()).ldelim();
+ }
+ return writer;
+ },
+ decode(input: BinaryReader | Uint8Array, length?: number): MsgRevokeCertificate {
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseMsgRevokeCertificate();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ message.id = CertificateID.decode(reader, reader.uint32());
+ break;
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ },
+ fromJSON(object: any): MsgRevokeCertificate {
+ return {
+ id: isSet(object.id) ? CertificateID.fromJSON(object.id) : undefined
+ };
+ },
+ toJSON(message: MsgRevokeCertificate): JsonSafe {
+ const obj: any = {};
+ message.id !== undefined && (obj.id = message.id ? CertificateID.toJSON(message.id) : undefined);
+ return obj;
+ },
+ fromPartial, I>>(object: I): MsgRevokeCertificate {
+ const message = createBaseMsgRevokeCertificate();
+ message.id = object.id !== undefined && object.id !== null ? CertificateID.fromPartial(object.id) : undefined;
+ return message;
+ },
+ fromSDK(object: MsgRevokeCertificateSDKType): MsgRevokeCertificate {
+ return {
+ id: object.id ? CertificateID.fromSDK(object.id) : undefined
+ };
+ },
+ fromSDKJSON(object: any): MsgRevokeCertificateSDKType {
+ return {
+ id: isSet(object.id) ? CertificateID.fromSDKJSON(object.id) : undefined
+ };
+ },
+ toSDK(message: MsgRevokeCertificate): MsgRevokeCertificateSDKType {
+ const obj: any = {};
+ message.id !== undefined && (obj.id = message.id ? CertificateID.toSDK(message.id) : undefined);
+ return obj;
+ },
+ fromAmino(object: MsgRevokeCertificateAmino): MsgRevokeCertificate {
+ const message = createBaseMsgRevokeCertificate();
+ if (object.id !== undefined && object.id !== null) {
+ message.id = CertificateID.fromAmino(object.id);
+ }
+ return message;
+ },
+ toAmino(message: MsgRevokeCertificate): MsgRevokeCertificateAmino {
+ const obj: any = {};
+ obj.id = message.id ? CertificateID.toAmino(message.id) : CertificateID.toAmino(CertificateID.fromPartial({}));
+ return obj;
+ },
+ fromAminoMsg(object: MsgRevokeCertificateAminoMsg): MsgRevokeCertificate {
+ return MsgRevokeCertificate.fromAmino(object.value);
+ },
+ toAminoMsg(message: MsgRevokeCertificate): MsgRevokeCertificateAminoMsg {
+ return {
+ type: "akash/cert/v1beta2/testonly-revoke-certificate",
+ value: MsgRevokeCertificate.toAmino(message)
+ };
+ },
+ fromProtoMsg(message: MsgRevokeCertificateProtoMsg): MsgRevokeCertificate {
+ return MsgRevokeCertificate.decode(message.value);
+ },
+ toProto(message: MsgRevokeCertificate): Uint8Array {
+ return MsgRevokeCertificate.encode(message).finish();
+ },
+ toProtoMsg(message: MsgRevokeCertificate): MsgRevokeCertificateProtoMsg {
+ return {
+ typeUrl: "/akash.cert.v1beta2.MsgRevokeCertificate",
+ value: MsgRevokeCertificate.encode(message).finish()
+ };
+ }
+};
+GlobalDecoderRegistry.register(MsgRevokeCertificate.typeUrl, MsgRevokeCertificate);
+GlobalDecoderRegistry.registerAminoProtoMapping(MsgRevokeCertificate.aminoType, MsgRevokeCertificate.typeUrl);
+function createBaseMsgRevokeCertificateResponse(): MsgRevokeCertificateResponse {
+ return {};
+}
+export const MsgRevokeCertificateResponse = {
+ typeUrl: "/akash.cert.v1beta2.MsgRevokeCertificateResponse",
+ aminoType: "akash/cert/v1beta2/testonly-revoke-certificate-response",
+ is(o: any): o is MsgRevokeCertificateResponse {
+ return o && o.$typeUrl === MsgRevokeCertificateResponse.typeUrl;
+ },
+ isSDK(o: any): o is MsgRevokeCertificateResponseSDKType {
+ return o && o.$typeUrl === MsgRevokeCertificateResponse.typeUrl;
+ },
+ encode(_: MsgRevokeCertificateResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
+ return writer;
+ },
+ decode(input: BinaryReader | Uint8Array, length?: number): MsgRevokeCertificateResponse {
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseMsgRevokeCertificateResponse();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ },
+ fromJSON(_: any): MsgRevokeCertificateResponse {
+ return {};
+ },
+ toJSON(_: MsgRevokeCertificateResponse): JsonSafe {
+ const obj: any = {};
+ return obj;
+ },
+ fromPartial, I>>(_: I): MsgRevokeCertificateResponse {
+ const message = createBaseMsgRevokeCertificateResponse();
+ return message;
+ },
+ fromSDK(_: MsgRevokeCertificateResponseSDKType): MsgRevokeCertificateResponse {
+ return {};
+ },
+ fromSDKJSON(_: any): MsgRevokeCertificateResponseSDKType {
+ return {};
+ },
+ toSDK(_: MsgRevokeCertificateResponse): MsgRevokeCertificateResponseSDKType {
+ const obj: any = {};
+ return obj;
+ },
+ fromAmino(_: MsgRevokeCertificateResponseAmino): MsgRevokeCertificateResponse {
+ const message = createBaseMsgRevokeCertificateResponse();
+ return message;
+ },
+ toAmino(_: MsgRevokeCertificateResponse): MsgRevokeCertificateResponseAmino {
+ const obj: any = {};
+ return obj;
+ },
+ fromAminoMsg(object: MsgRevokeCertificateResponseAminoMsg): MsgRevokeCertificateResponse {
+ return MsgRevokeCertificateResponse.fromAmino(object.value);
+ },
+ toAminoMsg(message: MsgRevokeCertificateResponse): MsgRevokeCertificateResponseAminoMsg {
+ return {
+ type: "akash/cert/v1beta2/testonly-revoke-certificate-response",
+ value: MsgRevokeCertificateResponse.toAmino(message)
+ };
+ },
+ fromProtoMsg(message: MsgRevokeCertificateResponseProtoMsg): MsgRevokeCertificateResponse {
+ return MsgRevokeCertificateResponse.decode(message.value);
+ },
+ toProto(message: MsgRevokeCertificateResponse): Uint8Array {
+ return MsgRevokeCertificateResponse.encode(message).finish();
+ },
+ toProtoMsg(message: MsgRevokeCertificateResponse): MsgRevokeCertificateResponseProtoMsg {
+ return {
+ typeUrl: "/akash.cert.v1beta2.MsgRevokeCertificateResponse",
+ value: MsgRevokeCertificateResponse.encode(message).finish()
+ };
+ }
+};
+GlobalDecoderRegistry.register(MsgRevokeCertificateResponse.typeUrl, MsgRevokeCertificateResponse);
+GlobalDecoderRegistry.registerAminoProtoMapping(MsgRevokeCertificateResponse.aminoType, MsgRevokeCertificateResponse.typeUrl);
\ No newline at end of file
diff --git a/examples/injective-vue/src/codegen/akash/cert/v1beta2/genesis.ts b/examples/injective-vue/src/codegen/akash/cert/v1beta2/genesis.ts
new file mode 100644
index 000000000..65bb7a55d
--- /dev/null
+++ b/examples/injective-vue/src/codegen/akash/cert/v1beta2/genesis.ts
@@ -0,0 +1,273 @@
+import { Certificate, CertificateSDKType } from "./cert";
+import { BinaryReader, BinaryWriter } from "../../../binary";
+import { isSet, DeepPartial, Exact } from "../../../helpers";
+import { JsonSafe } from "../../../json-safe";
+import { GlobalDecoderRegistry } from "../../../registry";
+import { ComputedRef } from "vue";
+export const protobufPackage = "akash.cert.v1beta2";
+/** GenesisCertificate defines certificate entry at genesis */
+export interface GenesisCertificate {
+ owner: string;
+ certificate: Certificate;
+}
+export interface ReactiveGenesisCertificate {
+ owner: ComputedRef;
+ certificate: ComputedRef;
+}
+export interface GenesisCertificateProtoMsg {
+ typeUrl: "/akash.cert.v1beta2.GenesisCertificate";
+ value: Uint8Array;
+}
+/** GenesisCertificate defines certificate entry at genesis */
+export interface GenesisCertificateSDKType {
+ owner: string;
+ certificate: CertificateSDKType;
+}
+/** GenesisState defines the basic genesis state used by cert module */
+export interface GenesisState {
+ certificates: GenesisCertificate[];
+}
+export interface ReactiveGenesisState {
+ certificates: ComputedRef;
+}
+export interface GenesisStateProtoMsg {
+ typeUrl: "/akash.cert.v1beta2.GenesisState";
+ value: Uint8Array;
+}
+/** GenesisState defines the basic genesis state used by cert module */
+export interface GenesisStateSDKType {
+ certificates: GenesisCertificateSDKType[];
+}
+function createBaseGenesisCertificate(): GenesisCertificate {
+ return {
+ owner: "",
+ certificate: Certificate.fromPartial({})
+ };
+}
+export const GenesisCertificate = {
+ typeUrl: "/akash.cert.v1beta2.GenesisCertificate",
+ aminoType: "akash/cert/v1beta2/genesis-certificate",
+ is(o: any): o is GenesisCertificate {
+ return o && (o.$typeUrl === GenesisCertificate.typeUrl || typeof o.owner === "string" && Certificate.is(o.certificate));
+ },
+ isSDK(o: any): o is GenesisCertificateSDKType {
+ return o && (o.$typeUrl === GenesisCertificate.typeUrl || typeof o.owner === "string" && Certificate.isSDK(o.certificate));
+ },
+ encode(message: GenesisCertificate, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
+ if (message.owner !== "") {
+ writer.uint32(10).string(message.owner);
+ }
+ if (message.certificate !== undefined) {
+ Certificate.encode(message.certificate, writer.uint32(18).fork()).ldelim();
+ }
+ return writer;
+ },
+ decode(input: BinaryReader | Uint8Array, length?: number): GenesisCertificate {
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseGenesisCertificate();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ message.owner = reader.string();
+ break;
+ case 2:
+ message.certificate = Certificate.decode(reader, reader.uint32());
+ break;
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ },
+ fromJSON(object: any): GenesisCertificate {
+ return {
+ owner: isSet(object.owner) ? String(object.owner) : "",
+ certificate: isSet(object.certificate) ? Certificate.fromJSON(object.certificate) : undefined
+ };
+ },
+ toJSON(message: GenesisCertificate): JsonSafe {
+ const obj: any = {};
+ message.owner !== undefined && (obj.owner = message.owner);
+ message.certificate !== undefined && (obj.certificate = message.certificate ? Certificate.toJSON(message.certificate) : undefined);
+ return obj;
+ },
+ fromPartial, I>>(object: I): GenesisCertificate {
+ const message = createBaseGenesisCertificate();
+ message.owner = object.owner ?? "";
+ message.certificate = object.certificate !== undefined && object.certificate !== null ? Certificate.fromPartial(object.certificate) : undefined;
+ return message;
+ },
+ fromSDK(object: GenesisCertificateSDKType): GenesisCertificate {
+ return {
+ owner: object?.owner,
+ certificate: object.certificate ? Certificate.fromSDK(object.certificate) : undefined
+ };
+ },
+ fromSDKJSON(object: any): GenesisCertificateSDKType {
+ return {
+ owner: isSet(object.owner) ? String(object.owner) : "",
+ certificate: isSet(object.certificate) ? Certificate.fromSDKJSON(object.certificate) : undefined
+ };
+ },
+ toSDK(message: GenesisCertificate): GenesisCertificateSDKType {
+ const obj: any = {};
+ obj.owner = message.owner;
+ message.certificate !== undefined && (obj.certificate = message.certificate ? Certificate.toSDK(message.certificate) : undefined);
+ return obj;
+ },
+ fromAmino(object: GenesisCertificateAmino): GenesisCertificate {
+ const message = createBaseGenesisCertificate();
+ if (object.owner !== undefined && object.owner !== null) {
+ message.owner = object.owner;
+ }
+ if (object.certificate !== undefined && object.certificate !== null) {
+ message.certificate = Certificate.fromAmino(object.certificate);
+ }
+ return message;
+ },
+ toAmino(message: GenesisCertificate): GenesisCertificateAmino {
+ const obj: any = {};
+ obj.owner = message.owner ?? "";
+ obj.certificate = message.certificate ? Certificate.toAmino(message.certificate) : Certificate.toAmino(Certificate.fromPartial({}));
+ return obj;
+ },
+ fromAminoMsg(object: GenesisCertificateAminoMsg): GenesisCertificate {
+ return GenesisCertificate.fromAmino(object.value);
+ },
+ toAminoMsg(message: GenesisCertificate): GenesisCertificateAminoMsg {
+ return {
+ type: "akash/cert/v1beta2/genesis-certificate",
+ value: GenesisCertificate.toAmino(message)
+ };
+ },
+ fromProtoMsg(message: GenesisCertificateProtoMsg): GenesisCertificate {
+ return GenesisCertificate.decode(message.value);
+ },
+ toProto(message: GenesisCertificate): Uint8Array {
+ return GenesisCertificate.encode(message).finish();
+ },
+ toProtoMsg(message: GenesisCertificate): GenesisCertificateProtoMsg {
+ return {
+ typeUrl: "/akash.cert.v1beta2.GenesisCertificate",
+ value: GenesisCertificate.encode(message).finish()
+ };
+ }
+};
+GlobalDecoderRegistry.register(GenesisCertificate.typeUrl, GenesisCertificate);
+GlobalDecoderRegistry.registerAminoProtoMapping(GenesisCertificate.aminoType, GenesisCertificate.typeUrl);
+function createBaseGenesisState(): GenesisState {
+ return {
+ certificates: []
+ };
+}
+export const GenesisState = {
+ typeUrl: "/akash.cert.v1beta2.GenesisState",
+ aminoType: "akash/cert/v1beta2/genesis-state",
+ is(o: any): o is GenesisState {
+ return o && (o.$typeUrl === GenesisState.typeUrl || Array.isArray(o.certificates) && (!o.certificates.length || GenesisCertificate.is(o.certificates[0])));
+ },
+ isSDK(o: any): o is GenesisStateSDKType {
+ return o && (o.$typeUrl === GenesisState.typeUrl || Array.isArray(o.certificates) && (!o.certificates.length || GenesisCertificate.isSDK(o.certificates[0])));
+ },
+ encode(message: GenesisState, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
+ for (const v of message.certificates) {
+ GenesisCertificate.encode(v!, writer.uint32(10).fork()).ldelim();
+ }
+ return writer;
+ },
+ decode(input: BinaryReader | Uint8Array, length?: number): GenesisState {
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseGenesisState();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ message.certificates.push(GenesisCertificate.decode(reader, reader.uint32()));
+ break;
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ },
+ fromJSON(object: any): GenesisState {
+ return {
+ certificates: Array.isArray(object?.certificates) ? object.certificates.map((e: any) => GenesisCertificate.fromJSON(e)) : []
+ };
+ },
+ toJSON(message: GenesisState): JsonSafe {
+ const obj: any = {};
+ if (message.certificates) {
+ obj.certificates = message.certificates.map(e => e ? GenesisCertificate.toJSON(e) : undefined);
+ } else {
+ obj.certificates = [];
+ }
+ return obj;
+ },
+ fromPartial, I>>(object: I): GenesisState {
+ const message = createBaseGenesisState();
+ message.certificates = object.certificates?.map(e => GenesisCertificate.fromPartial(e)) || [];
+ return message;
+ },
+ fromSDK(object: GenesisStateSDKType): GenesisState {
+ return {
+ certificates: Array.isArray(object?.certificates) ? object.certificates.map((e: any) => GenesisCertificate.fromSDK(e)) : []
+ };
+ },
+ fromSDKJSON(object: any): GenesisStateSDKType {
+ return {
+ certificates: Array.isArray(object?.certificates) ? object.certificates.map((e: any) => GenesisCertificate.fromSDKJSON(e)) : []
+ };
+ },
+ toSDK(message: GenesisState): GenesisStateSDKType {
+ const obj: any = {};
+ if (message.certificates) {
+ obj.certificates = message.certificates.map(e => e ? GenesisCertificate.toSDK(e) : undefined);
+ } else {
+ obj.certificates = [];
+ }
+ return obj;
+ },
+ fromAmino(object: GenesisStateAmino): GenesisState {
+ const message = createBaseGenesisState();
+ message.certificates = object.certificates?.map(e => GenesisCertificate.fromAmino(e)) || [];
+ return message;
+ },
+ toAmino(message: GenesisState): GenesisStateAmino {
+ const obj: any = {};
+ if (message.certificates) {
+ obj.certificates = message.certificates.map(e => e ? GenesisCertificate.toAmino(e) : undefined);
+ } else {
+ obj.certificates = message.certificates;
+ }
+ return obj;
+ },
+ fromAminoMsg(object: GenesisStateAminoMsg): GenesisState {
+ return GenesisState.fromAmino(object.value);
+ },
+ toAminoMsg(message: GenesisState): GenesisStateAminoMsg {
+ return {
+ type: "akash/cert/v1beta2/genesis-state",
+ value: GenesisState.toAmino(message)
+ };
+ },
+ fromProtoMsg(message: GenesisStateProtoMsg): GenesisState {
+ return GenesisState.decode(message.value);
+ },
+ toProto(message: GenesisState): Uint8Array {
+ return GenesisState.encode(message).finish();
+ },
+ toProtoMsg(message: GenesisState): GenesisStateProtoMsg {
+ return {
+ typeUrl: "/akash.cert.v1beta2.GenesisState",
+ value: GenesisState.encode(message).finish()
+ };
+ }
+};
+GlobalDecoderRegistry.register(GenesisState.typeUrl, GenesisState);
+GlobalDecoderRegistry.registerAminoProtoMapping(GenesisState.aminoType, GenesisState.typeUrl);
\ No newline at end of file
diff --git a/examples/injective-vue/src/codegen/akash/cert/v1beta2/query.lcd.ts b/examples/injective-vue/src/codegen/akash/cert/v1beta2/query.lcd.ts
new file mode 100644
index 000000000..cb8744897
--- /dev/null
+++ b/examples/injective-vue/src/codegen/akash/cert/v1beta2/query.lcd.ts
@@ -0,0 +1,29 @@
+import { CertificateFilter, CertificateFilterSDKType, Certificate, CertificateSDKType } from "./cert";
+import { PageRequest, PageRequestSDKType, PageResponse, PageResponseSDKType } from "../../../cosmos/base/query/v1beta1/pagination";
+import { setPaginationParams } from "../../../helpers";
+import { LCDClient } from "@cosmology/lcd";
+import { QueryCertificatesRequest, QueryCertificatesRequestSDKType, QueryCertificatesResponse, QueryCertificatesResponseSDKType } from "./query";
+export class LCDQueryClient {
+ req: LCDClient;
+ constructor({
+ requestClient
+ }: {
+ requestClient: LCDClient;
+ }) {
+ this.req = requestClient;
+ }
+ /* Certificates queries certificates */
+ certificates = async (params: QueryCertificatesRequest): Promise => {
+ const options: any = {
+ params: {}
+ };
+ if (typeof params?.filter !== "undefined") {
+ options.params.filter = params.filter;
+ }
+ if (typeof params?.pagination !== "undefined") {
+ setPaginationParams(options, params.pagination);
+ }
+ const endpoint = `akash/cert/v1beta2/certificates/list`;
+ return QueryCertificatesResponse.fromSDKJSON(await this.req.get(endpoint, options));
+ };
+}
\ No newline at end of file
diff --git a/examples/injective-vue/src/codegen/akash/cert/v1beta2/query.pinia.store.ts b/examples/injective-vue/src/codegen/akash/cert/v1beta2/query.pinia.store.ts
new file mode 100644
index 000000000..a9ca08d4c
--- /dev/null
+++ b/examples/injective-vue/src/codegen/akash/cert/v1beta2/query.pinia.store.ts
@@ -0,0 +1,26 @@
+import { CertificateFilter, CertificateFilterSDKType, Certificate, CertificateSDKType } from "./cert.js";
+import { PageRequest, PageRequestSDKType, PageResponse, PageResponseSDKType } from "../../../cosmos/base/query/v1beta1/pagination.js";
+import { LCDClient } from "@cosmology/lcd";
+import { useEndpoint } from "../../../pinia-endpoint.js";
+import { QueryCertificatesRequest, QueryCertificatesRequestSDKType, QueryCertificatesResponse, QueryCertificatesResponseSDKType } from "./query.js";
+import { defineStore } from "pinia";
+import { LCDQueryClient } from "./query.lcd.js";
+export const usePiniaStore = defineStore('akash/cert/v1beta2/query.proto', {
+ state: () => {
+ return {
+ certificates: ({} as QueryCertificatesResponseSDKType)
+ };
+ },
+ getters: {
+ lcdClient() {
+ const requestClient = useEndpoint().restClient;
+ return new LCDQueryClient({ requestClient });
+ }
+ },
+ actions: {
+ async fetchCertificates(param : QueryCertificatesRequestSDKType) {
+ this.certificates = await this.lcdClient.certificates(param);
+ return this.certificates;
+ }
+ }
+});
\ No newline at end of file
diff --git a/examples/injective-vue/src/codegen/akash/cert/v1beta2/query.rpc.Query.ts b/examples/injective-vue/src/codegen/akash/cert/v1beta2/query.rpc.Query.ts
new file mode 100644
index 000000000..5a230b423
--- /dev/null
+++ b/examples/injective-vue/src/codegen/akash/cert/v1beta2/query.rpc.Query.ts
@@ -0,0 +1,32 @@
+import { CertificateFilter, CertificateFilterSDKType, Certificate, CertificateSDKType } from "./cert";
+import { PageRequest, PageRequestSDKType, PageResponse, PageResponseSDKType } from "../../../cosmos/base/query/v1beta1/pagination";
+import { Rpc } from "../../../helpers";
+import { BinaryReader } from "../../../binary";
+import { QueryClient, createProtobufRpcClient } from "@cosmjs/stargate";
+import { QueryCertificatesRequest, QueryCertificatesRequestSDKType, QueryCertificatesResponse, QueryCertificatesResponseSDKType, ReactiveQueryCertificatesRequest } from "./query";
+/** Query defines the gRPC querier service */
+export interface Query {
+ /** Certificates queries certificates */
+ certificates(request: QueryCertificatesRequest): Promise;
+}
+export class QueryClientImpl implements Query {
+ private readonly rpc: Rpc;
+ constructor(rpc: Rpc) {
+ this.rpc = rpc;
+ }
+ /* Certificates queries certificates */
+ certificates = async (request: QueryCertificatesRequest): Promise => {
+ const data = QueryCertificatesRequest.encode(request).finish();
+ const promise = this.rpc.request("akash.cert.v1beta2.Query", "Certificates", data);
+ return promise.then(data => QueryCertificatesResponse.decode(new BinaryReader(data)));
+ };
+}
+export const createRpcQueryExtension = (base: QueryClient) => {
+ const rpc = createProtobufRpcClient(base);
+ const queryService = new QueryClientImpl(rpc);
+ return {
+ certificates(request: QueryCertificatesRequest): Promise {
+ return queryService.certificates(request);
+ }
+ };
+};
\ No newline at end of file
diff --git a/examples/injective-vue/src/codegen/akash/cert/v1beta2/query.ts b/examples/injective-vue/src/codegen/akash/cert/v1beta2/query.ts
new file mode 100644
index 000000000..a3d4c800b
--- /dev/null
+++ b/examples/injective-vue/src/codegen/akash/cert/v1beta2/query.ts
@@ -0,0 +1,432 @@
+import { CertificateFilter, CertificateFilterSDKType, Certificate, CertificateSDKType } from "./cert";
+import { PageRequest, PageRequestSDKType, PageResponse, PageResponseSDKType } from "../../../cosmos/base/query/v1beta1/pagination";
+import { BinaryReader, BinaryWriter } from "../../../binary";
+import { isSet, DeepPartial, Exact } from "../../../helpers";
+import { JsonSafe } from "../../../json-safe";
+import { GlobalDecoderRegistry } from "../../../registry";
+import { ComputedRef } from "vue";
+export const protobufPackage = "akash.cert.v1beta2";
+/** CertificateResponse contains a single X509 certificate and its serial number */
+export interface CertificateResponse {
+ certificate: Certificate;
+ serial: string;
+}
+export interface ReactiveCertificateResponse {
+ certificate: ComputedRef;
+ serial: ComputedRef;
+}
+export interface CertificateResponseProtoMsg {
+ typeUrl: "/akash.cert.v1beta2.CertificateResponse";
+ value: Uint8Array;
+}
+/** CertificateResponse contains a single X509 certificate and its serial number */
+export interface CertificateResponseSDKType {
+ certificate: CertificateSDKType;
+ serial: string;
+}
+/** QueryDeploymentsRequest is request type for the Query/Deployments RPC method */
+export interface QueryCertificatesRequest {
+ filter: CertificateFilter;
+ pagination?: PageRequest;
+}
+export interface ReactiveQueryCertificatesRequest {
+ filter: ComputedRef;
+ pagination?: ComputedRef;
+}
+export interface QueryCertificatesRequestProtoMsg {
+ typeUrl: "/akash.cert.v1beta2.QueryCertificatesRequest";
+ value: Uint8Array;
+}
+/** QueryDeploymentsRequest is request type for the Query/Deployments RPC method */
+export interface QueryCertificatesRequestSDKType {
+ filter: CertificateFilterSDKType;
+ pagination?: PageRequestSDKType;
+}
+/** QueryCertificatesResponse is response type for the Query/Certificates RPC method */
+export interface QueryCertificatesResponse {
+ certificates: CertificateResponse[];
+ pagination?: PageResponse;
+}
+export interface ReactiveQueryCertificatesResponse {
+ certificates: ComputedRef;
+ pagination?: ComputedRef;
+}
+export interface QueryCertificatesResponseProtoMsg {
+ typeUrl: "/akash.cert.v1beta2.QueryCertificatesResponse";
+ value: Uint8Array;
+}
+/** QueryCertificatesResponse is response type for the Query/Certificates RPC method */
+export interface QueryCertificatesResponseSDKType {
+ certificates: CertificateResponseSDKType[];
+ pagination?: PageResponseSDKType;
+}
+function createBaseCertificateResponse(): CertificateResponse {
+ return {
+ certificate: Certificate.fromPartial({}),
+ serial: ""
+ };
+}
+export const CertificateResponse = {
+ typeUrl: "/akash.cert.v1beta2.CertificateResponse",
+ aminoType: "akash/cert/v1beta2/certificate-response",
+ is(o: any): o is CertificateResponse {
+ return o && (o.$typeUrl === CertificateResponse.typeUrl || Certificate.is(o.certificate) && typeof o.serial === "string");
+ },
+ isSDK(o: any): o is CertificateResponseSDKType {
+ return o && (o.$typeUrl === CertificateResponse.typeUrl || Certificate.isSDK(o.certificate) && typeof o.serial === "string");
+ },
+ encode(message: CertificateResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
+ if (message.certificate !== undefined) {
+ Certificate.encode(message.certificate, writer.uint32(10).fork()).ldelim();
+ }
+ if (message.serial !== "") {
+ writer.uint32(18).string(message.serial);
+ }
+ return writer;
+ },
+ decode(input: BinaryReader | Uint8Array, length?: number): CertificateResponse {
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseCertificateResponse();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ message.certificate = Certificate.decode(reader, reader.uint32());
+ break;
+ case 2:
+ message.serial = reader.string();
+ break;
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ },
+ fromJSON(object: any): CertificateResponse {
+ return {
+ certificate: isSet(object.certificate) ? Certificate.fromJSON(object.certificate) : undefined,
+ serial: isSet(object.serial) ? String(object.serial) : ""
+ };
+ },
+ toJSON(message: CertificateResponse): JsonSafe {
+ const obj: any = {};
+ message.certificate !== undefined && (obj.certificate = message.certificate ? Certificate.toJSON(message.certificate) : undefined);
+ message.serial !== undefined && (obj.serial = message.serial);
+ return obj;
+ },
+ fromPartial, I>>(object: I): CertificateResponse {
+ const message = createBaseCertificateResponse();
+ message.certificate = object.certificate !== undefined && object.certificate !== null ? Certificate.fromPartial(object.certificate) : undefined;
+ message.serial = object.serial ?? "";
+ return message;
+ },
+ fromSDK(object: CertificateResponseSDKType): CertificateResponse {
+ return {
+ certificate: object.certificate ? Certificate.fromSDK(object.certificate) : undefined,
+ serial: object?.serial
+ };
+ },
+ fromSDKJSON(object: any): CertificateResponseSDKType {
+ return {
+ certificate: isSet(object.certificate) ? Certificate.fromSDKJSON(object.certificate) : undefined,
+ serial: isSet(object.serial) ? String(object.serial) : ""
+ };
+ },
+ toSDK(message: CertificateResponse): CertificateResponseSDKType {
+ const obj: any = {};
+ message.certificate !== undefined && (obj.certificate = message.certificate ? Certificate.toSDK(message.certificate) : undefined);
+ obj.serial = message.serial;
+ return obj;
+ },
+ fromAmino(object: CertificateResponseAmino): CertificateResponse {
+ const message = createBaseCertificateResponse();
+ if (object.certificate !== undefined && object.certificate !== null) {
+ message.certificate = Certificate.fromAmino(object.certificate);
+ }
+ if (object.serial !== undefined && object.serial !== null) {
+ message.serial = object.serial;
+ }
+ return message;
+ },
+ toAmino(message: CertificateResponse): CertificateResponseAmino {
+ const obj: any = {};
+ obj.certificate = message.certificate ? Certificate.toAmino(message.certificate) : Certificate.toAmino(Certificate.fromPartial({}));
+ obj.serial = message.serial ?? "";
+ return obj;
+ },
+ fromAminoMsg(object: CertificateResponseAminoMsg): CertificateResponse {
+ return CertificateResponse.fromAmino(object.value);
+ },
+ toAminoMsg(message: CertificateResponse): CertificateResponseAminoMsg {
+ return {
+ type: "akash/cert/v1beta2/certificate-response",
+ value: CertificateResponse.toAmino(message)
+ };
+ },
+ fromProtoMsg(message: CertificateResponseProtoMsg): CertificateResponse {
+ return CertificateResponse.decode(message.value);
+ },
+ toProto(message: CertificateResponse): Uint8Array {
+ return CertificateResponse.encode(message).finish();
+ },
+ toProtoMsg(message: CertificateResponse): CertificateResponseProtoMsg {
+ return {
+ typeUrl: "/akash.cert.v1beta2.CertificateResponse",
+ value: CertificateResponse.encode(message).finish()
+ };
+ }
+};
+GlobalDecoderRegistry.register(CertificateResponse.typeUrl, CertificateResponse);
+GlobalDecoderRegistry.registerAminoProtoMapping(CertificateResponse.aminoType, CertificateResponse.typeUrl);
+function createBaseQueryCertificatesRequest(): QueryCertificatesRequest {
+ return {
+ filter: CertificateFilter.fromPartial({}),
+ pagination: undefined
+ };
+}
+export const QueryCertificatesRequest = {
+ typeUrl: "/akash.cert.v1beta2.QueryCertificatesRequest",
+ aminoType: "akash/cert/v1beta2/query-certificates-request",
+ is(o: any): o is QueryCertificatesRequest {
+ return o && (o.$typeUrl === QueryCertificatesRequest.typeUrl || CertificateFilter.is(o.filter));
+ },
+ isSDK(o: any): o is QueryCertificatesRequestSDKType {
+ return o && (o.$typeUrl === QueryCertificatesRequest.typeUrl || CertificateFilter.isSDK(o.filter));
+ },
+ encode(message: QueryCertificatesRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
+ if (message.filter !== undefined) {
+ CertificateFilter.encode(message.filter, writer.uint32(10).fork()).ldelim();
+ }
+ if (message.pagination !== undefined) {
+ PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim();
+ }
+ return writer;
+ },
+ decode(input: BinaryReader | Uint8Array, length?: number): QueryCertificatesRequest {
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseQueryCertificatesRequest();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ message.filter = CertificateFilter.decode(reader, reader.uint32());
+ break;
+ case 2:
+ message.pagination = PageRequest.decode(reader, reader.uint32());
+ break;
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ },
+ fromJSON(object: any): QueryCertificatesRequest {
+ return {
+ filter: isSet(object.filter) ? CertificateFilter.fromJSON(object.filter) : undefined,
+ pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined
+ };
+ },
+ toJSON(message: QueryCertificatesRequest): JsonSafe {
+ const obj: any = {};
+ message.filter !== undefined && (obj.filter = message.filter ? CertificateFilter.toJSON(message.filter) : undefined);
+ message.pagination !== undefined && (obj.pagination = message.pagination ? PageRequest.toJSON(message.pagination) : undefined);
+ return obj;
+ },
+ fromPartial, I>>(object: I): QueryCertificatesRequest {
+ const message = createBaseQueryCertificatesRequest();
+ message.filter = object.filter !== undefined && object.filter !== null ? CertificateFilter.fromPartial(object.filter) : undefined;
+ message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined;
+ return message;
+ },
+ fromSDK(object: QueryCertificatesRequestSDKType): QueryCertificatesRequest {
+ return {
+ filter: object.filter ? CertificateFilter.fromSDK(object.filter) : undefined,
+ pagination: object.pagination ? PageRequest.fromSDK(object.pagination) : undefined
+ };
+ },
+ fromSDKJSON(object: any): QueryCertificatesRequestSDKType {
+ return {
+ filter: isSet(object.filter) ? CertificateFilter.fromSDKJSON(object.filter) : undefined,
+ pagination: isSet(object.pagination) ? PageRequest.fromSDKJSON(object.pagination) : undefined
+ };
+ },
+ toSDK(message: QueryCertificatesRequest): QueryCertificatesRequestSDKType {
+ const obj: any = {};
+ message.filter !== undefined && (obj.filter = message.filter ? CertificateFilter.toSDK(message.filter) : undefined);
+ message.pagination !== undefined && (obj.pagination = message.pagination ? PageRequest.toSDK(message.pagination) : undefined);
+ return obj;
+ },
+ fromAmino(object: QueryCertificatesRequestAmino): QueryCertificatesRequest {
+ const message = createBaseQueryCertificatesRequest();
+ if (object.filter !== undefined && object.filter !== null) {
+ message.filter = CertificateFilter.fromAmino(object.filter);
+ }
+ if (object.pagination !== undefined && object.pagination !== null) {
+ message.pagination = PageRequest.fromAmino(object.pagination);
+ }
+ return message;
+ },
+ toAmino(message: QueryCertificatesRequest): QueryCertificatesRequestAmino {
+ const obj: any = {};
+ obj.filter = message.filter ? CertificateFilter.toAmino(message.filter) : undefined;
+ obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined;
+ return obj;
+ },
+ fromAminoMsg(object: QueryCertificatesRequestAminoMsg): QueryCertificatesRequest {
+ return QueryCertificatesRequest.fromAmino(object.value);
+ },
+ toAminoMsg(message: QueryCertificatesRequest): QueryCertificatesRequestAminoMsg {
+ return {
+ type: "akash/cert/v1beta2/query-certificates-request",
+ value: QueryCertificatesRequest.toAmino(message)
+ };
+ },
+ fromProtoMsg(message: QueryCertificatesRequestProtoMsg): QueryCertificatesRequest {
+ return QueryCertificatesRequest.decode(message.value);
+ },
+ toProto(message: QueryCertificatesRequest): Uint8Array {
+ return QueryCertificatesRequest.encode(message).finish();
+ },
+ toProtoMsg(message: QueryCertificatesRequest): QueryCertificatesRequestProtoMsg {
+ return {
+ typeUrl: "/akash.cert.v1beta2.QueryCertificatesRequest",
+ value: QueryCertificatesRequest.encode(message).finish()
+ };
+ }
+};
+GlobalDecoderRegistry.register(QueryCertificatesRequest.typeUrl, QueryCertificatesRequest);
+GlobalDecoderRegistry.registerAminoProtoMapping(QueryCertificatesRequest.aminoType, QueryCertificatesRequest.typeUrl);
+function createBaseQueryCertificatesResponse(): QueryCertificatesResponse {
+ return {
+ certificates: [],
+ pagination: undefined
+ };
+}
+export const QueryCertificatesResponse = {
+ typeUrl: "/akash.cert.v1beta2.QueryCertificatesResponse",
+ aminoType: "akash/cert/v1beta2/query-certificates-response",
+ is(o: any): o is QueryCertificatesResponse {
+ return o && (o.$typeUrl === QueryCertificatesResponse.typeUrl || Array.isArray(o.certificates) && (!o.certificates.length || CertificateResponse.is(o.certificates[0])));
+ },
+ isSDK(o: any): o is QueryCertificatesResponseSDKType {
+ return o && (o.$typeUrl === QueryCertificatesResponse.typeUrl || Array.isArray(o.certificates) && (!o.certificates.length || CertificateResponse.isSDK(o.certificates[0])));
+ },
+ encode(message: QueryCertificatesResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
+ for (const v of message.certificates) {
+ CertificateResponse.encode(v!, writer.uint32(10).fork()).ldelim();
+ }
+ if (message.pagination !== undefined) {
+ PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
+ }
+ return writer;
+ },
+ decode(input: BinaryReader | Uint8Array, length?: number): QueryCertificatesResponse {
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseQueryCertificatesResponse();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ message.certificates.push(CertificateResponse.decode(reader, reader.uint32()));
+ break;
+ case 2:
+ message.pagination = PageResponse.decode(reader, reader.uint32());
+ break;
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ },
+ fromJSON(object: any): QueryCertificatesResponse {
+ return {
+ certificates: Array.isArray(object?.certificates) ? object.certificates.map((e: any) => CertificateResponse.fromJSON(e)) : [],
+ pagination: isSet(object.pagination) ? PageResponse.fromJSON(object.pagination) : undefined
+ };
+ },
+ toJSON(message: QueryCertificatesResponse): JsonSafe {
+ const obj: any = {};
+ if (message.certificates) {
+ obj.certificates = message.certificates.map(e => e ? CertificateResponse.toJSON(e) : undefined);
+ } else {
+ obj.certificates = [];
+ }
+ message.pagination !== undefined && (obj.pagination = message.pagination ? PageResponse.toJSON(message.pagination) : undefined);
+ return obj;
+ },
+ fromPartial, I>>(object: I): QueryCertificatesResponse {
+ const message = createBaseQueryCertificatesResponse();
+ message.certificates = object.certificates?.map(e => CertificateResponse.fromPartial(e)) || [];
+ message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined;
+ return message;
+ },
+ fromSDK(object: QueryCertificatesResponseSDKType): QueryCertificatesResponse {
+ return {
+ certificates: Array.isArray(object?.certificates) ? object.certificates.map((e: any) => CertificateResponse.fromSDK(e)) : [],
+ pagination: object.pagination ? PageResponse.fromSDK(object.pagination) : undefined
+ };
+ },
+ fromSDKJSON(object: any): QueryCertificatesResponseSDKType {
+ return {
+ certificates: Array.isArray(object?.certificates) ? object.certificates.map((e: any) => CertificateResponse.fromSDKJSON(e)) : [],
+ pagination: isSet(object.pagination) ? PageResponse.fromSDKJSON(object.pagination) : undefined
+ };
+ },
+ toSDK(message: QueryCertificatesResponse): QueryCertificatesResponseSDKType {
+ const obj: any = {};
+ if (message.certificates) {
+ obj.certificates = message.certificates.map(e => e ? CertificateResponse.toSDK(e) : undefined);
+ } else {
+ obj.certificates = [];
+ }
+ message.pagination !== undefined && (obj.pagination = message.pagination ? PageResponse.toSDK(message.pagination) : undefined);
+ return obj;
+ },
+ fromAmino(object: QueryCertificatesResponseAmino): QueryCertificatesResponse {
+ const message = createBaseQueryCertificatesResponse();
+ message.certificates = object.certificates?.map(e => CertificateResponse.fromAmino(e)) || [];
+ if (object.pagination !== undefined && object.pagination !== null) {
+ message.pagination = PageResponse.fromAmino(object.pagination);
+ }
+ return message;
+ },
+ toAmino(message: QueryCertificatesResponse): QueryCertificatesResponseAmino {
+ const obj: any = {};
+ if (message.certificates) {
+ obj.certificates = message.certificates.map(e => e ? CertificateResponse.toAmino(e) : undefined);
+ } else {
+ obj.certificates = message.certificates;
+ }
+ obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined;
+ return obj;
+ },
+ fromAminoMsg(object: QueryCertificatesResponseAminoMsg): QueryCertificatesResponse {
+ return QueryCertificatesResponse.fromAmino(object.value);
+ },
+ toAminoMsg(message: QueryCertificatesResponse): QueryCertificatesResponseAminoMsg {
+ return {
+ type: "akash/cert/v1beta2/query-certificates-response",
+ value: QueryCertificatesResponse.toAmino(message)
+ };
+ },
+ fromProtoMsg(message: QueryCertificatesResponseProtoMsg): QueryCertificatesResponse {
+ return QueryCertificatesResponse.decode(message.value);
+ },
+ toProto(message: QueryCertificatesResponse): Uint8Array {
+ return QueryCertificatesResponse.encode(message).finish();
+ },
+ toProtoMsg(message: QueryCertificatesResponse): QueryCertificatesResponseProtoMsg {
+ return {
+ typeUrl: "/akash.cert.v1beta2.QueryCertificatesResponse",
+ value: QueryCertificatesResponse.encode(message).finish()
+ };
+ }
+};
+GlobalDecoderRegistry.register(QueryCertificatesResponse.typeUrl, QueryCertificatesResponse);
+GlobalDecoderRegistry.registerAminoProtoMapping(QueryCertificatesResponse.aminoType, QueryCertificatesResponse.typeUrl);
\ No newline at end of file
diff --git a/examples/injective-vue/src/codegen/akash/client.ts b/examples/injective-vue/src/codegen/akash/client.ts
new file mode 100644
index 000000000..564870b96
--- /dev/null
+++ b/examples/injective-vue/src/codegen/akash/client.ts
@@ -0,0 +1,65 @@
+import { GeneratedType, Registry, OfflineSigner } from "@cosmjs/proto-signing";
+import { defaultRegistryTypes, AminoTypes, SigningStargateClient } from "@cosmjs/stargate";
+import { HttpEndpoint } from "@cosmjs/tendermint-rpc";
+import * as akashAuditV1beta1AuditRegistry from "./audit/v1beta1/audit.registry";
+import * as akashAuditV1beta2AuditRegistry from "./audit/v1beta2/audit.registry";
+import * as akashCertV1beta2CertRegistry from "./cert/v1beta2/cert.registry";
+import * as akashDeploymentV1beta2ServiceRegistry from "./deployment/v1beta2/service.registry";
+import * as akashMarketV1beta2ServiceRegistry from "./market/v1beta2/service.registry";
+import * as akashProviderV1beta1ProviderRegistry from "./provider/v1beta1/provider.registry";
+import * as akashProviderV1beta2ProviderRegistry from "./provider/v1beta2/provider.registry";
+import * as akashAuditV1beta1AuditAmino from "./audit/v1beta1/audit.amino";
+import * as akashAuditV1beta2AuditAmino from "./audit/v1beta2/audit.amino";
+import * as akashCertV1beta2CertAmino from "./cert/v1beta2/cert.amino";
+import * as akashDeploymentV1beta2ServiceAmino from "./deployment/v1beta2/service.amino";
+import * as akashMarketV1beta2ServiceAmino from "./market/v1beta2/service.amino";
+import * as akashProviderV1beta1ProviderAmino from "./provider/v1beta1/provider.amino";
+import * as akashProviderV1beta2ProviderAmino from "./provider/v1beta2/provider.amino";
+export const akashAminoConverters = {
+ ...akashAuditV1beta1AuditAmino.AminoConverter,
+ ...akashAuditV1beta2AuditAmino.AminoConverter,
+ ...akashCertV1beta2CertAmino.AminoConverter,
+ ...akashDeploymentV1beta2ServiceAmino.AminoConverter,
+ ...akashMarketV1beta2ServiceAmino.AminoConverter,
+ ...akashProviderV1beta1ProviderAmino.AminoConverter,
+ ...akashProviderV1beta2ProviderAmino.AminoConverter
+};
+export const akashProtoRegistry: ReadonlyArray<[string, GeneratedType]> = [...akashAuditV1beta1AuditRegistry.registry, ...akashAuditV1beta2AuditRegistry.registry, ...akashCertV1beta2CertRegistry.registry, ...akashDeploymentV1beta2ServiceRegistry.registry, ...akashMarketV1beta2ServiceRegistry.registry, ...akashProviderV1beta1ProviderRegistry.registry, ...akashProviderV1beta2ProviderRegistry.registry];
+export const getSigningAkashClientOptions = ({
+ defaultTypes = defaultRegistryTypes
+}: {
+ defaultTypes?: ReadonlyArray<[string, GeneratedType]>;
+} = {}): {
+ registry: Registry;
+ aminoTypes: AminoTypes;
+} => {
+ const registry = new Registry([...defaultTypes, ...akashProtoRegistry]);
+ const aminoTypes = new AminoTypes({
+ ...akashAminoConverters
+ });
+ return {
+ registry,
+ aminoTypes
+ };
+};
+export const getSigningAkashClient = async ({
+ rpcEndpoint,
+ signer,
+ defaultTypes = defaultRegistryTypes
+}: {
+ rpcEndpoint: string | HttpEndpoint;
+ signer: OfflineSigner;
+ defaultTypes?: ReadonlyArray<[string, GeneratedType]>;
+}) => {
+ const {
+ registry,
+ aminoTypes
+ } = getSigningAkashClientOptions({
+ defaultTypes
+ });
+ const client = await SigningStargateClient.connectWithSigner(rpcEndpoint, signer, {
+ registry: (registry as any),
+ aminoTypes
+ });
+ return client;
+};
\ No newline at end of file
diff --git a/examples/injective-vue/src/codegen/akash/deployment/v1beta1/authz.ts b/examples/injective-vue/src/codegen/akash/deployment/v1beta1/authz.ts
new file mode 100644
index 000000000..89aa0257d
--- /dev/null
+++ b/examples/injective-vue/src/codegen/akash/deployment/v1beta1/authz.ts
@@ -0,0 +1,139 @@
+import { Coin, CoinSDKType } from "../../../cosmos/base/v1beta1/coin";
+import { BinaryReader, BinaryWriter } from "../../../binary";
+import { isSet, Exact } from "../../../helpers";
+import { JsonSafe } from "../../../json-safe";
+import { GlobalDecoderRegistry } from "../../../registry";
+import { ComputedRef } from "vue";
+export const protobufPackage = "akash.deployment.v1beta1";
+/**
+ * DepositDeploymentAuthorization allows the grantee to deposit up to spend_limit coins from
+ * the granter's account for a deployment.
+ */
+export interface DepositDeploymentAuthorization {
+ $typeUrl?: "/akash.deployment.v1beta1.DepositDeploymentAuthorization";
+ /**
+ * SpendLimit is the amount the grantee is authorized to spend from the granter's account for
+ * the purpose of deployment.
+ */
+ spendLimit: Coin | undefined;
+}
+export interface ReactiveDepositDeploymentAuthorization {
+ $typeUrl?: ComputedRef<"/akash.deployment.v1beta1.DepositDeploymentAuthorization">;
+ spendLimit: ComputedRef;
+}
+export interface DepositDeploymentAuthorizationProtoMsg {
+ typeUrl: "/akash.deployment.v1beta1.DepositDeploymentAuthorization";
+ value: Uint8Array;
+}
+/**
+ * DepositDeploymentAuthorization allows the grantee to deposit up to spend_limit coins from
+ * the granter's account for a deployment.
+ */
+export interface DepositDeploymentAuthorizationSDKType {
+ $typeUrl?: "/akash.deployment.v1beta1.DepositDeploymentAuthorization";
+ spend_limit: CoinSDKType | undefined;
+}
+function createBaseDepositDeploymentAuthorization(): DepositDeploymentAuthorization {
+ return {
+ $typeUrl: "/akash.deployment.v1beta1.DepositDeploymentAuthorization",
+ spendLimit: Coin.fromPartial({})
+ };
+}
+export const DepositDeploymentAuthorization = {
+ typeUrl: "/akash.deployment.v1beta1.DepositDeploymentAuthorization",
+ aminoType: "akash/deployment/deposit-deployment-authorization",
+ is(o: any): o is DepositDeploymentAuthorization {
+ return o && (o.$typeUrl === DepositDeploymentAuthorization.typeUrl || Coin.is(o.spendLimit));
+ },
+ isSDK(o: any): o is DepositDeploymentAuthorizationSDKType {
+ return o && (o.$typeUrl === DepositDeploymentAuthorization.typeUrl || Coin.isSDK(o.spend_limit));
+ },
+ encode(message: DepositDeploymentAuthorization, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
+ if (message.spendLimit !== undefined) {
+ Coin.encode(message.spendLimit, writer.uint32(10).fork()).ldelim();
+ }
+ return writer;
+ },
+ decode(input: BinaryReader | Uint8Array, length?: number): DepositDeploymentAuthorization {
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseDepositDeploymentAuthorization();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ message.spendLimit = Coin.decode(reader, reader.uint32());
+ break;
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ },
+ fromJSON(object: any): DepositDeploymentAuthorization {
+ return {
+ spendLimit: isSet(object.spendLimit) ? Coin.fromJSON(object.spendLimit) : undefined
+ };
+ },
+ toJSON(message: DepositDeploymentAuthorization): JsonSafe {
+ const obj: any = {};
+ message.spendLimit !== undefined && (obj.spendLimit = message.spendLimit ? Coin.toJSON(message.spendLimit) : undefined);
+ return obj;
+ },
+ fromPartial, I>>(object: I): DepositDeploymentAuthorization {
+ const message = createBaseDepositDeploymentAuthorization();
+ message.spendLimit = object.spendLimit !== undefined && object.spendLimit !== null ? Coin.fromPartial(object.spendLimit) : undefined;
+ return message;
+ },
+ fromSDK(object: DepositDeploymentAuthorizationSDKType): DepositDeploymentAuthorization {
+ return {
+ spendLimit: object.spend_limit ? Coin.fromSDK(object.spend_limit) : undefined
+ };
+ },
+ fromSDKJSON(object: any): DepositDeploymentAuthorizationSDKType {
+ return {
+ spend_limit: isSet(object.spend_limit) ? Coin.fromSDKJSON(object.spend_limit) : undefined
+ };
+ },
+ toSDK(message: DepositDeploymentAuthorization): DepositDeploymentAuthorizationSDKType {
+ const obj: any = {};
+ message.spendLimit !== undefined && (obj.spend_limit = message.spendLimit ? Coin.toSDK(message.spendLimit) : undefined);
+ return obj;
+ },
+ fromAmino(object: DepositDeploymentAuthorizationAmino): DepositDeploymentAuthorization {
+ const message = createBaseDepositDeploymentAuthorization();
+ if (object.spend_limit !== undefined && object.spend_limit !== null) {
+ message.spendLimit = Coin.fromAmino(object.spend_limit);
+ }
+ return message;
+ },
+ toAmino(message: DepositDeploymentAuthorization): DepositDeploymentAuthorizationAmino {
+ const obj: any = {};
+ obj.spend_limit = message.spendLimit ? Coin.toAmino(message.spendLimit) : Coin.toAmino(Coin.fromPartial({}));
+ return obj;
+ },
+ fromAminoMsg(object: DepositDeploymentAuthorizationAminoMsg): DepositDeploymentAuthorization {
+ return DepositDeploymentAuthorization.fromAmino(object.value);
+ },
+ toAminoMsg(message: DepositDeploymentAuthorization): DepositDeploymentAuthorizationAminoMsg {
+ return {
+ type: "akash/deployment/deposit-deployment-authorization",
+ value: DepositDeploymentAuthorization.toAmino(message)
+ };
+ },
+ fromProtoMsg(message: DepositDeploymentAuthorizationProtoMsg): DepositDeploymentAuthorization {
+ return DepositDeploymentAuthorization.decode(message.value);
+ },
+ toProto(message: DepositDeploymentAuthorization): Uint8Array {
+ return DepositDeploymentAuthorization.encode(message).finish();
+ },
+ toProtoMsg(message: DepositDeploymentAuthorization): DepositDeploymentAuthorizationProtoMsg {
+ return {
+ typeUrl: "/akash.deployment.v1beta1.DepositDeploymentAuthorization",
+ value: DepositDeploymentAuthorization.encode(message).finish()
+ };
+ }
+};
+GlobalDecoderRegistry.register(DepositDeploymentAuthorization.typeUrl, DepositDeploymentAuthorization);
+GlobalDecoderRegistry.registerAminoProtoMapping(DepositDeploymentAuthorization.aminoType, DepositDeploymentAuthorization.typeUrl);
\ No newline at end of file
diff --git a/examples/injective-vue/src/codegen/akash/deployment/v1beta1/deployment.ts b/examples/injective-vue/src/codegen/akash/deployment/v1beta1/deployment.ts
new file mode 100644
index 000000000..cab531104
--- /dev/null
+++ b/examples/injective-vue/src/codegen/akash/deployment/v1beta1/deployment.ts
@@ -0,0 +1,1569 @@
+//@ts-nocheck
+/* eslint-disable */
+import { GroupSpec, GroupSpecSDKType, GroupID, GroupIDSDKType } from "./group";
+import { Coin, CoinSDKType } from "../../../cosmos/base/v1beta1/coin";
+import { BinaryReader, BinaryWriter } from "../../../binary";
+import { isSet, bytesFromBase64, base64FromBytes, Exact, Rpc } from "../../../helpers";
+import { JsonSafe } from "../../../json-safe";
+import { GlobalDecoderRegistry } from "../../../registry";
+import { ComputedRef } from "vue";
+export const protobufPackage = "akash.deployment.v1beta1";
+/** State is an enum which refers to state of deployment */
+export enum Deployment_State {
+ /** invalid - Prefix should start with 0 in enum. So declaring dummy state */
+ invalid = 0,
+ /** active - DeploymentActive denotes state for deployment active */
+ active = 1,
+ /** closed - DeploymentClosed denotes state for deployment closed */
+ closed = 2,
+ UNRECOGNIZED = -1,
+}
+export const Deployment_StateSDKType = Deployment_State;
+export function deployment_StateFromJSON(object: any): Deployment_State {
+ switch (object) {
+ case 0:
+ case "invalid":
+ return Deployment_State.invalid;
+ case 1:
+ case "active":
+ return Deployment_State.active;
+ case 2:
+ case "closed":
+ return Deployment_State.closed;
+ case -1:
+ case "UNRECOGNIZED":
+ default:
+ return Deployment_State.UNRECOGNIZED;
+ }
+}
+export function deployment_StateToJSON(object: Deployment_State): string {
+ switch (object) {
+ case Deployment_State.invalid:
+ return "invalid";
+ case Deployment_State.active:
+ return "active";
+ case Deployment_State.closed:
+ return "closed";
+ case Deployment_State.UNRECOGNIZED:
+ default:
+ return "UNRECOGNIZED";
+ }
+}
+/** MsgCreateDeployment defines an SDK message for creating deployment */
+export interface MsgCreateDeployment {
+ id: DeploymentID | undefined;
+ groups: GroupSpec[];
+ version: Uint8Array;
+ deposit: Coin | undefined;
+}
+export interface ReactiveMsgCreateDeployment {
+ id: ComputedRef;
+ groups: ComputedRef;
+ version: ComputedRef;
+ deposit: ComputedRef;
+}
+export interface MsgCreateDeploymentProtoMsg {
+ typeUrl: "/akash.deployment.v1beta1.MsgCreateDeployment";
+ value: Uint8Array;
+}
+/** MsgCreateDeployment defines an SDK message for creating deployment */
+export interface MsgCreateDeploymentSDKType {
+ id: DeploymentIDSDKType | undefined;
+ groups: GroupSpecSDKType[];
+ version: Uint8Array;
+ deposit: CoinSDKType | undefined;
+}
+/** MsgCreateDeploymentResponse defines the Msg/CreateDeployment response type. */
+export interface MsgCreateDeploymentResponse {}
+export interface ReactiveMsgCreateDeploymentResponse {}
+export interface MsgCreateDeploymentResponseProtoMsg {
+ typeUrl: "/akash.deployment.v1beta1.MsgCreateDeploymentResponse";
+ value: Uint8Array;
+}
+/** MsgCreateDeploymentResponse defines the Msg/CreateDeployment response type. */
+export interface MsgCreateDeploymentResponseSDKType {}
+/** MsgDepositDeployment deposits more funds into the deposit account */
+export interface MsgDepositDeployment {
+ id: DeploymentID | undefined;
+ amount: Coin | undefined;
+}
+export interface ReactiveMsgDepositDeployment {
+ id: ComputedRef;
+ amount: ComputedRef;
+}
+export interface MsgDepositDeploymentProtoMsg {
+ typeUrl: "/akash.deployment.v1beta1.MsgDepositDeployment";
+ value: Uint8Array;
+}
+/** MsgDepositDeployment deposits more funds into the deposit account */
+export interface MsgDepositDeploymentSDKType {
+ id: DeploymentIDSDKType | undefined;
+ amount: CoinSDKType | undefined;
+}
+/** MsgCreateDeploymentResponse defines the Msg/CreateDeployment response type. */
+export interface MsgDepositDeploymentResponse {}
+export interface ReactiveMsgDepositDeploymentResponse {}
+export interface MsgDepositDeploymentResponseProtoMsg {
+ typeUrl: "/akash.deployment.v1beta1.MsgDepositDeploymentResponse";
+ value: Uint8Array;
+}
+/** MsgCreateDeploymentResponse defines the Msg/CreateDeployment response type. */
+export interface MsgDepositDeploymentResponseSDKType {}
+/** MsgUpdateDeployment defines an SDK message for updating deployment */
+export interface MsgUpdateDeployment {
+ id: DeploymentID | undefined;
+ groups: GroupSpec[];
+ version: Uint8Array;
+}
+export interface ReactiveMsgUpdateDeployment {
+ id: ComputedRef