@akashnetwork/chain-sdk 1.0.0-alpha.21 → 1.0.0-alpha.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +42 -4
- package/dist/cjs/index.shared.cjs +1 -0
- package/dist/cjs/index.shared.cjs.map +2 -2
- package/dist/cjs/sdl/SDL/SDL.cjs +5 -3
- package/dist/cjs/sdl/SDL/SDL.cjs.map +2 -2
- package/dist/cjs/sdl/SDL/SdlValidationError.cjs.map +2 -2
- package/dist/cjs/sdl/index.cjs +6 -1
- package/dist/cjs/sdl/index.cjs.map +2 -2
- package/dist/cjs/sdl/manifest/generateManifest.cjs +241 -0
- package/dist/cjs/sdl/manifest/generateManifest.cjs.map +7 -0
- package/dist/cjs/sdl/manifest/generateManifestVersion.cjs +84 -0
- package/dist/cjs/sdl/manifest/generateManifestVersion.cjs.map +7 -0
- package/dist/cjs/sdl/manifest/manifestUtils.cjs +138 -0
- package/dist/cjs/sdl/manifest/manifestUtils.cjs.map +7 -0
- package/dist/cjs/sdl/types.cjs.map +1 -1
- package/dist/cjs/sdl/{SDL/utils.cjs.map → utils.cjs.map} +1 -1
- package/dist/cjs/sdl/{SDL/validateSDL → validateSDL}/validateSDL.cjs +20 -13
- package/dist/cjs/sdl/validateSDL/validateSDL.cjs.map +7 -0
- package/dist/cjs/sdl/{SDL/validateSDL → validateSDL}/validateSDLInput.cjs +84 -25
- package/dist/cjs/sdl/validateSDL/validateSDLInput.cjs.map +7 -0
- package/dist/cjs/utils/yaml.cjs +44 -0
- package/dist/cjs/utils/yaml.cjs.map +7 -0
- package/dist/esm/chunk-2XL6OX6E.js +1 -0
- package/dist/esm/chunk-2XL6OX6E.js.map +7 -0
- package/dist/esm/{chunk-K3L3J5XB.js → chunk-4D3QNKFB.js} +3 -3
- package/dist/esm/{chunk-DUCGLLTN.js → chunk-5DCYIWCG.js} +100 -100
- package/dist/esm/{chunk-DUCGLLTN.js.map → chunk-5DCYIWCG.js.map} +4 -4
- package/dist/esm/{chunk-BGBAJIKV.js → chunk-5YECXI3P.js} +2 -2
- package/dist/esm/{chunk-MEXNRJE4.js → chunk-BYQF33C6.js} +2 -2
- package/dist/esm/{chunk-R5DUC7IU.js → chunk-C7UQYVYH.js} +2 -2
- package/dist/esm/{chunk-726NIMPF.js → chunk-JISXXX24.js} +2 -2
- package/dist/esm/{chunk-XPLMSDXV.js → chunk-QSKWS3TI.js} +553 -78
- package/dist/esm/chunk-QSKWS3TI.js.map +7 -0
- package/dist/esm/{chunk-EYW7M3KV.js → chunk-SA4SEZ6F.js} +2 -2
- package/dist/esm/{chunk-ST2QQ72E.js → chunk-VRE72ZD5.js} +2 -2
- package/dist/esm/{chunk-A5CS5ZKQ.js → chunk-XFCN5LRY.js} +2 -2
- package/dist/esm/chunk-Z5KZUB7X.js +364 -0
- package/dist/esm/chunk-Z5KZUB7X.js.map +7 -0
- package/dist/esm/generated/protos/index.akash.v1.js +6 -6
- package/dist/esm/generated/protos/index.akash.v1beta4.js +14 -349
- package/dist/esm/generated/protos/index.akash.v1beta4.js.map +4 -4
- package/dist/esm/generated/protos/index.akash.v1beta5.js +5 -5
- package/dist/esm/generated/protos/index.provider.akash.v1.js +3 -3
- package/dist/esm/generated/protos/index.provider.akash.v2beta3.js +3 -2
- package/dist/esm/index.js +30 -4
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/index.web.js +29 -3
- package/dist/esm/index.web.js.map +1 -1
- package/dist/esm/{query_akash-XTPHUGJZ.js → query_akash-4CTLBKZR.js} +4 -4
- package/dist/esm/{query_akash-IXSQT2VJ.js → query_akash-DJ7LTLRE.js} +5 -5
- package/dist/esm/{service_akash-YMJ4ZYYX.js → service_akash-AZFAYT7H.js} +4 -4
- package/dist/esm/{service_akash-2EBLHFIP.js → service_akash-VMU3LNBA.js} +4 -4
- package/dist/esm/{service_akash-AYYJKBHS.js → service_akash-WRGOVR7I.js} +4 -4
- package/dist/sdl-schema.yaml +12 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types/index.shared.d.ts +1 -0
- package/dist/types/sdl/SDL/SDL.d.ts +2 -0
- package/dist/types/sdl/SDL/SdlValidationError.d.ts +3 -0
- package/dist/types/sdl/index.d.ts +5 -2
- package/dist/types/sdl/manifest/generateManifest.d.ts +18 -0
- package/dist/types/sdl/manifest/generateManifestVersion.d.ts +3 -0
- package/dist/types/sdl/manifest/manifestUtils.d.ts +27 -0
- package/dist/types/sdl/types.d.ts +60 -0
- package/dist/types/sdl/{SDL/validateSDL → validateSDL}/validateSDL.d.ts +2 -2
- package/dist/types/sdl/{SDL/validateSDL → validateSDL}/validateSDLInput.d.ts +16 -0
- package/dist/types/utils/yaml.d.ts +38 -0
- package/package.json +1 -1
- package/dist/cjs/sdl/SDL/validateSDL/validateSDL.cjs.map +0 -7
- package/dist/cjs/sdl/SDL/validateSDL/validateSDLInput.cjs.map +0 -7
- package/dist/cjs/test.cjs +0 -192
- package/dist/cjs/test.cjs.map +0 -7
- package/dist/esm/chunk-XPLMSDXV.js.map +0 -7
- package/dist/types/test.d.ts +0 -1
- /package/dist/cjs/sdl/{SDL/utils.cjs → utils.cjs} +0 -0
- /package/dist/esm/{chunk-K3L3J5XB.js.map → chunk-4D3QNKFB.js.map} +0 -0
- /package/dist/esm/{chunk-BGBAJIKV.js.map → chunk-5YECXI3P.js.map} +0 -0
- /package/dist/esm/{chunk-MEXNRJE4.js.map → chunk-BYQF33C6.js.map} +0 -0
- /package/dist/esm/{chunk-R5DUC7IU.js.map → chunk-C7UQYVYH.js.map} +0 -0
- /package/dist/esm/{chunk-726NIMPF.js.map → chunk-JISXXX24.js.map} +0 -0
- /package/dist/esm/{chunk-EYW7M3KV.js.map → chunk-SA4SEZ6F.js.map} +0 -0
- /package/dist/esm/{chunk-ST2QQ72E.js.map → chunk-VRE72ZD5.js.map} +0 -0
- /package/dist/esm/{chunk-A5CS5ZKQ.js.map → chunk-XFCN5LRY.js.map} +0 -0
- /package/dist/esm/{query_akash-XTPHUGJZ.js.map → query_akash-4CTLBKZR.js.map} +0 -0
- /package/dist/esm/{query_akash-IXSQT2VJ.js.map → query_akash-DJ7LTLRE.js.map} +0 -0
- /package/dist/esm/{service_akash-YMJ4ZYYX.js.map → service_akash-AZFAYT7H.js.map} +0 -0
- /package/dist/esm/{service_akash-2EBLHFIP.js.map → service_akash-VMU3LNBA.js.map} +0 -0
- /package/dist/esm/{service_akash-AYYJKBHS.js.map → service_akash-WRGOVR7I.js.map} +0 -0
- /package/dist/types/sdl/{SDL/utils.d.ts → utils.d.ts} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../../src/generated/protos/akash/base/resources/v1beta4/resourcevalue.ts", "../../src/generated/protos/akash/base/resources/v1beta4/cpu.ts", "../../src/generated/protos/akash/base/resources/v1beta4/
|
|
4
|
-
"sourcesContent": ["import { bytesFromBase64, base64FromBytes, isSet } from \"../../../../../../encoding/typeEncodingHelpers.ts\"\nimport type { DeepPartial, MessageFns } from \"../../../../../../encoding/typeEncodingHelpers.ts\"\n// Code generated by protoc-gen-ts_proto. DO NOT EDIT.\n// versions:\n// protoc-gen-ts_proto v2.7.7\n// protoc unknown\n// source: akash/base/resources/v1beta4/resourcevalue.proto\n\n/* eslint-disable */\nimport { BinaryReader, BinaryWriter } from \"@bufbuild/protobuf/wire\";\nimport Long from \"long\";\n\n/** Unit stores cpu, memory and storage metrics. */\nexport interface ResourceValue {\n val: Uint8Array;\n}\n\nfunction createBaseResourceValue(): ResourceValue {\n return { val: new Uint8Array(0) };\n}\n\nexport const ResourceValue: MessageFns<ResourceValue, \"akash.base.resources.v1beta4.ResourceValue\"> = {\n $type: \"akash.base.resources.v1beta4.ResourceValue\" as const,\n\n encode(message: ResourceValue, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {\n if (message.val.length !== 0) {\n writer.uint32(10).bytes(message.val);\n }\n return writer;\n },\n\n decode(input: BinaryReader | Uint8Array, length?: number): ResourceValue {\n const reader = input instanceof BinaryReader ? input : new BinaryReader(input);\n const end = length === undefined ? reader.len : reader.pos + length;\n const message = createBaseResourceValue();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n case 1: {\n if (tag !== 10) {\n break;\n }\n\n message.val = reader.bytes();\n continue;\n }\n }\n if ((tag & 7) === 4 || tag === 0) {\n break;\n }\n reader.skip(tag & 7);\n }\n return message;\n },\n\n fromJSON(object: any): ResourceValue {\n return { val: isSet(object.val) ? bytesFromBase64(object.val) : new Uint8Array(0) };\n },\n\n toJSON(message: ResourceValue): unknown {\n const obj: any = {};\n if (message.val.length !== 0) {\n obj.val = base64FromBytes(message.val);\n }\n return obj;\n },\n fromPartial(object: DeepPartial<ResourceValue>): ResourceValue {\n const message = createBaseResourceValue();\n message.val = object.val ?? new Uint8Array(0);\n return message;\n },\n};\n\nfunction _unused_bytesFromBase64(b64: string): Uint8Array {\n if ((globalThis as any).Buffer) {\n return Uint8Array.from(globalThis.Buffer.from(b64, \"base64\"));\n } else {\n const bin = globalThis.atob(b64);\n const arr = new Uint8Array(bin.length);\n for (let i = 0; i < bin.length; ++i) {\n arr[i] = bin.charCodeAt(i);\n }\n return arr;\n }\n}\n\nfunction _unused_base64FromBytes(arr: Uint8Array): string {\n if ((globalThis as any).Buffer) {\n return globalThis.Buffer.from(arr).toString(\"base64\");\n } else {\n const bin: string[] = [];\n arr.forEach((byte) => {\n bin.push(globalThis.String.fromCharCode(byte));\n });\n return globalThis.btoa(bin.join(\"\"));\n }\n}\n\ntype Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;\n\ntype _unused_DeepPartial<T> = T extends Builtin ? T\n : T extends Long ? string | number | Long : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>\n : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>\n : T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }\n : Partial<T>;\n\nfunction _unused_isSet(value: any): boolean {\n return value !== null && value !== undefined;\n}\n\ninterface _unused_MessageFns<T, V extends string> {\n readonly $type: V;\n encode(message: T, writer?: BinaryWriter): BinaryWriter;\n decode(input: BinaryReader | Uint8Array, length?: number): T;\n fromJSON(object: any): T;\n toJSON(message: T): unknown;\n create(base?: DeepPartial<T>): T;\n fromPartial(object: DeepPartial<T>): T;\n}\n", "import { isSet } from \"../../../../../../encoding/typeEncodingHelpers.ts\"\nimport type { DeepPartial, MessageFns } from \"../../../../../../encoding/typeEncodingHelpers.ts\"\n// Code generated by protoc-gen-ts_proto. DO NOT EDIT.\n// versions:\n// protoc-gen-ts_proto v2.7.7\n// protoc unknown\n// source: akash/base/resources/v1beta4/cpu.proto\n\n/* eslint-disable */\nimport { BinaryReader, BinaryWriter } from \"@bufbuild/protobuf/wire\";\nimport Long from \"long\";\nimport { Attribute } from \"../../attributes/v1/attribute.ts\";\nimport { ResourceValue } from \"./resourcevalue.ts\";\n\n/** CPU stores resource units and cpu config attributes. */\nexport interface CPU {\n /**\n * Units of the CPU, which represents the number of CPUs available.\n * This field is required and must be a non-negative integer.\n */\n units:\n | ResourceValue\n | undefined;\n /**\n * Attributes holds a list of key-value attributes that describe the GPU, such as its model, memory and interface.\n * This field is required and must be a list of `Attribute` messages.\n */\n attributes: Attribute[];\n}\n\nfunction createBaseCPU(): CPU {\n return { units: undefined, attributes: [] };\n}\n\nexport const CPU: MessageFns<CPU, \"akash.base.resources.v1beta4.CPU\"> = {\n $type: \"akash.base.resources.v1beta4.CPU\" as const,\n\n encode(message: CPU, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {\n if (message.units !== undefined) {\n ResourceValue.encode(message.units, writer.uint32(10).fork()).join();\n }\n for (const v of message.attributes) {\n Attribute.encode(v!, writer.uint32(18).fork()).join();\n }\n return writer;\n },\n\n decode(input: BinaryReader | Uint8Array, length?: number): CPU {\n const reader = input instanceof BinaryReader ? input : new BinaryReader(input);\n const end = length === undefined ? reader.len : reader.pos + length;\n const message = createBaseCPU();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n case 1: {\n if (tag !== 10) {\n break;\n }\n\n message.units = ResourceValue.decode(reader, reader.uint32());\n continue;\n }\n case 2: {\n if (tag !== 18) {\n break;\n }\n\n message.attributes.push(Attribute.decode(reader, reader.uint32()));\n continue;\n }\n }\n if ((tag & 7) === 4 || tag === 0) {\n break;\n }\n reader.skip(tag & 7);\n }\n return message;\n },\n\n fromJSON(object: any): CPU {\n return {\n units: isSet(object.units) ? ResourceValue.fromJSON(object.units) : undefined,\n attributes: globalThis.Array.isArray(object?.attributes)\n ? object.attributes.map((e: any) => Attribute.fromJSON(e))\n : [],\n };\n },\n\n toJSON(message: CPU): unknown {\n const obj: any = {};\n if (message.units !== undefined) {\n obj.units = ResourceValue.toJSON(message.units);\n }\n if (message.attributes?.length) {\n obj.attributes = message.attributes.map((e) => Attribute.toJSON(e));\n }\n return obj;\n },\n fromPartial(object: DeepPartial<CPU>): CPU {\n const message = createBaseCPU();\n message.units = (object.units !== undefined && object.units !== null)\n ? ResourceValue.fromPartial(object.units)\n : undefined;\n message.attributes = object.attributes?.map((e) => Attribute.fromPartial(e)) || [];\n return message;\n },\n};\n\ntype Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;\n\ntype _unused_DeepPartial<T> = T extends Builtin ? T\n : T extends Long ? string | number | Long : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>\n : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>\n : T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }\n : Partial<T>;\n\nfunction _unused_isSet(value: any): boolean {\n return value !== null && value !== undefined;\n}\n\ninterface _unused_MessageFns<T, V extends string> {\n readonly $type: V;\n encode(message: T, writer?: BinaryWriter): BinaryWriter;\n decode(input: BinaryReader | Uint8Array, length?: number): T;\n fromJSON(object: any): T;\n toJSON(message: T): unknown;\n create(base?: DeepPartial<T>): T;\n fromPartial(object: DeepPartial<T>): T;\n}\n", "import { isSet } from \"../../../../../../encoding/typeEncodingHelpers.ts\"\nimport type { DeepPartial, MessageFns } from \"../../../../../../encoding/typeEncodingHelpers.ts\"\n// Code generated by protoc-gen-ts_proto. DO NOT EDIT.\n// versions:\n// protoc-gen-ts_proto v2.7.7\n// protoc unknown\n// source: akash/base/resources/v1beta4/endpoint.proto\n\n/* eslint-disable */\nimport { BinaryReader, BinaryWriter } from \"@bufbuild/protobuf/wire\";\nimport Long from \"long\";\n\n/** Endpoint describes a publicly accessible IP service. */\nexport interface Endpoint {\n /** Kind describes how the endpoint is implemented when the lease is deployed. */\n kind: Endpoint_Kind;\n /** SequenceNumber represents a sequence number for the Endpoint. */\n sequenceNumber: number;\n}\n\n/** Kind describes how the endpoint is implemented when the lease is deployed. */\nexport enum Endpoint_Kind {\n /** SHARED_HTTP - Describes an endpoint that becomes a Kubernetes Ingress. */\n SHARED_HTTP = 0,\n /** RANDOM_PORT - Describes an endpoint that becomes a Kubernetes NodePort. */\n RANDOM_PORT = 1,\n /** LEASED_IP - Describes an endpoint that becomes a leased IP. */\n LEASED_IP = 2,\n UNRECOGNIZED = -1,\n}\n\nexport function endpoint_KindFromJSON(object: any): Endpoint_Kind {\n switch (object) {\n case 0:\n case \"SHARED_HTTP\":\n return Endpoint_Kind.SHARED_HTTP;\n case 1:\n case \"RANDOM_PORT\":\n return Endpoint_Kind.RANDOM_PORT;\n case 2:\n case \"LEASED_IP\":\n return Endpoint_Kind.LEASED_IP;\n case -1:\n case \"UNRECOGNIZED\":\n default:\n return Endpoint_Kind.UNRECOGNIZED;\n }\n}\n\nexport function endpoint_KindToJSON(object: Endpoint_Kind): string {\n switch (object) {\n case Endpoint_Kind.SHARED_HTTP:\n return \"SHARED_HTTP\";\n case Endpoint_Kind.RANDOM_PORT:\n return \"RANDOM_PORT\";\n case Endpoint_Kind.LEASED_IP:\n return \"LEASED_IP\";\n case Endpoint_Kind.UNRECOGNIZED:\n default:\n return \"UNRECOGNIZED\";\n }\n}\n\nfunction createBaseEndpoint(): Endpoint {\n return { kind: 0, sequenceNumber: 0 };\n}\n\nexport const Endpoint: MessageFns<Endpoint, \"akash.base.resources.v1beta4.Endpoint\"> = {\n $type: \"akash.base.resources.v1beta4.Endpoint\" as const,\n\n encode(message: Endpoint, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {\n if (message.kind !== 0) {\n writer.uint32(8).int32(message.kind);\n }\n if (message.sequenceNumber !== 0) {\n writer.uint32(16).uint32(message.sequenceNumber);\n }\n return writer;\n },\n\n decode(input: BinaryReader | Uint8Array, length?: number): Endpoint {\n const reader = input instanceof BinaryReader ? input : new BinaryReader(input);\n const end = length === undefined ? reader.len : reader.pos + length;\n const message = createBaseEndpoint();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n case 1: {\n if (tag !== 8) {\n break;\n }\n\n message.kind = reader.int32() as any;\n continue;\n }\n case 2: {\n if (tag !== 16) {\n break;\n }\n\n message.sequenceNumber = reader.uint32();\n continue;\n }\n }\n if ((tag & 7) === 4 || tag === 0) {\n break;\n }\n reader.skip(tag & 7);\n }\n return message;\n },\n\n fromJSON(object: any): Endpoint {\n return {\n kind: isSet(object.kind) ? endpoint_KindFromJSON(object.kind) : 0,\n sequenceNumber: isSet(object.sequence_number) ? globalThis.Number(object.sequence_number) : 0,\n };\n },\n\n toJSON(message: Endpoint): unknown {\n const obj: any = {};\n if (message.kind !== 0) {\n obj.kind = endpoint_KindToJSON(message.kind);\n }\n if (message.sequenceNumber !== 0) {\n obj.sequence_number = Math.round(message.sequenceNumber);\n }\n return obj;\n },\n fromPartial(object: DeepPartial<Endpoint>): Endpoint {\n const message = createBaseEndpoint();\n message.kind = object.kind ?? 0;\n message.sequenceNumber = object.sequenceNumber ?? 0;\n return message;\n },\n};\n\ntype Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;\n\ntype _unused_DeepPartial<T> = T extends Builtin ? T\n : T extends Long ? string | number | Long : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>\n : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>\n : T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }\n : Partial<T>;\n\nfunction _unused_isSet(value: any): boolean {\n return value !== null && value !== undefined;\n}\n\ninterface _unused_MessageFns<T, V extends string> {\n readonly $type: V;\n encode(message: T, writer?: BinaryWriter): BinaryWriter;\n decode(input: BinaryReader | Uint8Array, length?: number): T;\n fromJSON(object: any): T;\n toJSON(message: T): unknown;\n create(base?: DeepPartial<T>): T;\n fromPartial(object: DeepPartial<T>): T;\n}\n", "import { isSet } from \"../../../../../../encoding/typeEncodingHelpers.ts\"\nimport type { DeepPartial, MessageFns } from \"../../../../../../encoding/typeEncodingHelpers.ts\"\n// Code generated by protoc-gen-ts_proto. DO NOT EDIT.\n// versions:\n// protoc-gen-ts_proto v2.7.7\n// protoc unknown\n// source: akash/base/resources/v1beta4/gpu.proto\n\n/* eslint-disable */\nimport { BinaryReader, BinaryWriter } from \"@bufbuild/protobuf/wire\";\nimport Long from \"long\";\nimport { Attribute } from \"../../attributes/v1/attribute.ts\";\nimport { ResourceValue } from \"./resourcevalue.ts\";\n\n/** GPU stores resource units and gpu configuration attributes. */\nexport interface GPU {\n /**\n * The resource value of the GPU, which represents the number of GPUs available.\n * This field is required and must be a non-negative integer.\n */\n units: ResourceValue | undefined;\n attributes: Attribute[];\n}\n\nfunction createBaseGPU(): GPU {\n return { units: undefined, attributes: [] };\n}\n\nexport const GPU: MessageFns<GPU, \"akash.base.resources.v1beta4.GPU\"> = {\n $type: \"akash.base.resources.v1beta4.GPU\" as const,\n\n encode(message: GPU, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {\n if (message.units !== undefined) {\n ResourceValue.encode(message.units, writer.uint32(10).fork()).join();\n }\n for (const v of message.attributes) {\n Attribute.encode(v!, writer.uint32(18).fork()).join();\n }\n return writer;\n },\n\n decode(input: BinaryReader | Uint8Array, length?: number): GPU {\n const reader = input instanceof BinaryReader ? input : new BinaryReader(input);\n const end = length === undefined ? reader.len : reader.pos + length;\n const message = createBaseGPU();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n case 1: {\n if (tag !== 10) {\n break;\n }\n\n message.units = ResourceValue.decode(reader, reader.uint32());\n continue;\n }\n case 2: {\n if (tag !== 18) {\n break;\n }\n\n message.attributes.push(Attribute.decode(reader, reader.uint32()));\n continue;\n }\n }\n if ((tag & 7) === 4 || tag === 0) {\n break;\n }\n reader.skip(tag & 7);\n }\n return message;\n },\n\n fromJSON(object: any): GPU {\n return {\n units: isSet(object.units) ? ResourceValue.fromJSON(object.units) : undefined,\n attributes: globalThis.Array.isArray(object?.attributes)\n ? object.attributes.map((e: any) => Attribute.fromJSON(e))\n : [],\n };\n },\n\n toJSON(message: GPU): unknown {\n const obj: any = {};\n if (message.units !== undefined) {\n obj.units = ResourceValue.toJSON(message.units);\n }\n if (message.attributes?.length) {\n obj.attributes = message.attributes.map((e) => Attribute.toJSON(e));\n }\n return obj;\n },\n fromPartial(object: DeepPartial<GPU>): GPU {\n const message = createBaseGPU();\n message.units = (object.units !== undefined && object.units !== null)\n ? ResourceValue.fromPartial(object.units)\n : undefined;\n message.attributes = object.attributes?.map((e) => Attribute.fromPartial(e)) || [];\n return message;\n },\n};\n\ntype Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;\n\ntype _unused_DeepPartial<T> = T extends Builtin ? T\n : T extends Long ? string | number | Long : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>\n : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>\n : T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }\n : Partial<T>;\n\nfunction _unused_isSet(value: any): boolean {\n return value !== null && value !== undefined;\n}\n\ninterface _unused_MessageFns<T, V extends string> {\n readonly $type: V;\n encode(message: T, writer?: BinaryWriter): BinaryWriter;\n decode(input: BinaryReader | Uint8Array, length?: number): T;\n fromJSON(object: any): T;\n toJSON(message: T): unknown;\n create(base?: DeepPartial<T>): T;\n fromPartial(object: DeepPartial<T>): T;\n}\n", "import { isSet } from \"../../../../../../encoding/typeEncodingHelpers.ts\"\nimport type { DeepPartial, MessageFns } from \"../../../../../../encoding/typeEncodingHelpers.ts\"\n// Code generated by protoc-gen-ts_proto. DO NOT EDIT.\n// versions:\n// protoc-gen-ts_proto v2.7.7\n// protoc unknown\n// source: akash/base/resources/v1beta4/memory.proto\n\n/* eslint-disable */\nimport { BinaryReader, BinaryWriter } from \"@bufbuild/protobuf/wire\";\nimport Long from \"long\";\nimport { Attribute } from \"../../attributes/v1/attribute.ts\";\nimport { ResourceValue } from \"./resourcevalue.ts\";\n\n/** Memory stores resource quantity and memory attributes. */\nexport interface Memory {\n /**\n * Quantity of memory available, which represents the amount of memory in bytes.\n * This field is required and must be a non-negative integer.\n */\n quantity:\n | ResourceValue\n | undefined;\n /**\n * Attributes that describe the memory, such as its type and speed.\n * This field is required and must be a list of Attribute key-values.\n */\n attributes: Attribute[];\n}\n\nfunction createBaseMemory(): Memory {\n return { quantity: undefined, attributes: [] };\n}\n\nexport const Memory: MessageFns<Memory, \"akash.base.resources.v1beta4.Memory\"> = {\n $type: \"akash.base.resources.v1beta4.Memory\" as const,\n\n encode(message: Memory, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {\n if (message.quantity !== undefined) {\n ResourceValue.encode(message.quantity, writer.uint32(10).fork()).join();\n }\n for (const v of message.attributes) {\n Attribute.encode(v!, writer.uint32(18).fork()).join();\n }\n return writer;\n },\n\n decode(input: BinaryReader | Uint8Array, length?: number): Memory {\n const reader = input instanceof BinaryReader ? input : new BinaryReader(input);\n const end = length === undefined ? reader.len : reader.pos + length;\n const message = createBaseMemory();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n case 1: {\n if (tag !== 10) {\n break;\n }\n\n message.quantity = ResourceValue.decode(reader, reader.uint32());\n continue;\n }\n case 2: {\n if (tag !== 18) {\n break;\n }\n\n message.attributes.push(Attribute.decode(reader, reader.uint32()));\n continue;\n }\n }\n if ((tag & 7) === 4 || tag === 0) {\n break;\n }\n reader.skip(tag & 7);\n }\n return message;\n },\n\n fromJSON(object: any): Memory {\n return {\n quantity: isSet(object.quantity) ? ResourceValue.fromJSON(object.quantity) : undefined,\n attributes: globalThis.Array.isArray(object?.attributes)\n ? object.attributes.map((e: any) => Attribute.fromJSON(e))\n : [],\n };\n },\n\n toJSON(message: Memory): unknown {\n const obj: any = {};\n if (message.quantity !== undefined) {\n obj.quantity = ResourceValue.toJSON(message.quantity);\n }\n if (message.attributes?.length) {\n obj.attributes = message.attributes.map((e) => Attribute.toJSON(e));\n }\n return obj;\n },\n fromPartial(object: DeepPartial<Memory>): Memory {\n const message = createBaseMemory();\n message.quantity = (object.quantity !== undefined && object.quantity !== null)\n ? ResourceValue.fromPartial(object.quantity)\n : undefined;\n message.attributes = object.attributes?.map((e) => Attribute.fromPartial(e)) || [];\n return message;\n },\n};\n\ntype Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;\n\ntype _unused_DeepPartial<T> = T extends Builtin ? T\n : T extends Long ? string | number | Long : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>\n : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>\n : T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }\n : Partial<T>;\n\nfunction _unused_isSet(value: any): boolean {\n return value !== null && value !== undefined;\n}\n\ninterface _unused_MessageFns<T, V extends string> {\n readonly $type: V;\n encode(message: T, writer?: BinaryWriter): BinaryWriter;\n decode(input: BinaryReader | Uint8Array, length?: number): T;\n fromJSON(object: any): T;\n toJSON(message: T): unknown;\n create(base?: DeepPartial<T>): T;\n fromPartial(object: DeepPartial<T>): T;\n}\n", "import { isSet } from \"../../../../../../encoding/typeEncodingHelpers.ts\"\nimport type { DeepPartial, MessageFns } from \"../../../../../../encoding/typeEncodingHelpers.ts\"\n// Code generated by protoc-gen-ts_proto. DO NOT EDIT.\n// versions:\n// protoc-gen-ts_proto v2.7.7\n// protoc unknown\n// source: akash/base/resources/v1beta4/storage.proto\n\n/* eslint-disable */\nimport { BinaryReader, BinaryWriter } from \"@bufbuild/protobuf/wire\";\nimport Long from \"long\";\nimport { Attribute } from \"../../attributes/v1/attribute.ts\";\nimport { ResourceValue } from \"./resourcevalue.ts\";\n\n/** Storage stores resource quantity and storage attributes. */\nexport interface Storage {\n /** Name holds an arbitrary name for the storage resource. */\n name: string;\n /**\n * Quantity of storage available, which represents the amount of memory in bytes.\n * This field is required and must be a non-negative integer.\n */\n quantity:\n | ResourceValue\n | undefined;\n /**\n * Attributes that describe the storage.\n * This field is required and must be a list of Attribute key-values.\n */\n attributes: Attribute[];\n}\n\nfunction createBaseStorage(): Storage {\n return { name: \"\", quantity: undefined, attributes: [] };\n}\n\nexport const Storage: MessageFns<Storage, \"akash.base.resources.v1beta4.Storage\"> = {\n $type: \"akash.base.resources.v1beta4.Storage\" as const,\n\n encode(message: Storage, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {\n if (message.name !== \"\") {\n writer.uint32(10).string(message.name);\n }\n if (message.quantity !== undefined) {\n ResourceValue.encode(message.quantity, writer.uint32(18).fork()).join();\n }\n for (const v of message.attributes) {\n Attribute.encode(v!, writer.uint32(26).fork()).join();\n }\n return writer;\n },\n\n decode(input: BinaryReader | Uint8Array, length?: number): Storage {\n const reader = input instanceof BinaryReader ? input : new BinaryReader(input);\n const end = length === undefined ? reader.len : reader.pos + length;\n const message = createBaseStorage();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n case 1: {\n if (tag !== 10) {\n break;\n }\n\n message.name = reader.string();\n continue;\n }\n case 2: {\n if (tag !== 18) {\n break;\n }\n\n message.quantity = ResourceValue.decode(reader, reader.uint32());\n continue;\n }\n case 3: {\n if (tag !== 26) {\n break;\n }\n\n message.attributes.push(Attribute.decode(reader, reader.uint32()));\n continue;\n }\n }\n if ((tag & 7) === 4 || tag === 0) {\n break;\n }\n reader.skip(tag & 7);\n }\n return message;\n },\n\n fromJSON(object: any): Storage {\n return {\n name: isSet(object.name) ? globalThis.String(object.name) : \"\",\n quantity: isSet(object.quantity) ? ResourceValue.fromJSON(object.quantity) : undefined,\n attributes: globalThis.Array.isArray(object?.attributes)\n ? object.attributes.map((e: any) => Attribute.fromJSON(e))\n : [],\n };\n },\n\n toJSON(message: Storage): unknown {\n const obj: any = {};\n if (message.name !== \"\") {\n obj.name = message.name;\n }\n if (message.quantity !== undefined) {\n obj.quantity = ResourceValue.toJSON(message.quantity);\n }\n if (message.attributes?.length) {\n obj.attributes = message.attributes.map((e) => Attribute.toJSON(e));\n }\n return obj;\n },\n fromPartial(object: DeepPartial<Storage>): Storage {\n const message = createBaseStorage();\n message.name = object.name ?? \"\";\n message.quantity = (object.quantity !== undefined && object.quantity !== null)\n ? ResourceValue.fromPartial(object.quantity)\n : undefined;\n message.attributes = object.attributes?.map((e) => Attribute.fromPartial(e)) || [];\n return message;\n },\n};\n\ntype Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;\n\ntype _unused_DeepPartial<T> = T extends Builtin ? T\n : T extends Long ? string | number | Long : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>\n : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>\n : T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }\n : Partial<T>;\n\nfunction _unused_isSet(value: any): boolean {\n return value !== null && value !== undefined;\n}\n\ninterface _unused_MessageFns<T, V extends string> {\n readonly $type: V;\n encode(message: T, writer?: BinaryWriter): BinaryWriter;\n decode(input: BinaryReader | Uint8Array, length?: number): T;\n fromJSON(object: any): T;\n toJSON(message: T): unknown;\n create(base?: DeepPartial<T>): T;\n fromPartial(object: DeepPartial<T>): T;\n}\n", "import { isSet } from \"../../../../../../encoding/typeEncodingHelpers.ts\"\nimport type { DeepPartial, MessageFns } from \"../../../../../../encoding/typeEncodingHelpers.ts\"\n// Code generated by protoc-gen-ts_proto. DO NOT EDIT.\n// versions:\n// protoc-gen-ts_proto v2.7.7\n// protoc unknown\n// source: akash/base/resources/v1beta4/resources.proto\n\n/* eslint-disable */\nimport { BinaryReader, BinaryWriter } from \"@bufbuild/protobuf/wire\";\nimport Long from \"long\";\nimport { CPU } from \"./cpu.ts\";\nimport { Endpoint } from \"./endpoint.ts\";\nimport { GPU } from \"./gpu.ts\";\nimport { Memory } from \"./memory.ts\";\nimport { Storage } from \"./storage.ts\";\n\n/**\n * Resources describes all available resources types for deployment/node etc\n * if field is nil resource is not present in the given data-structure\n */\nexport interface Resources {\n /** Id is a unique identifier for the resources. */\n id: number;\n /**\n * CPU resources available, including the architecture, number of cores and other details.\n * This field is optional and can be empty if no CPU resources are available.\n */\n cpu:\n | CPU\n | undefined;\n /**\n * Memory resources available, including the quantity and attributes.\n * This field is optional and can be empty if no memory resources are available.\n */\n memory:\n | Memory\n | undefined;\n /**\n * Storage resources available, including the quantity and attributes.\n * This field is optional and can be empty if no storage resources are available.\n */\n storage: Storage[];\n /**\n * GPU resources available, including the type, architecture and other details.\n * This field is optional and can be empty if no GPU resources are available.\n */\n gpu:\n | GPU\n | undefined;\n /** Endpoint resources available */\n endpoints: Endpoint[];\n}\n\nfunction createBaseResources(): Resources {\n return { id: 0, cpu: undefined, memory: undefined, storage: [], gpu: undefined, endpoints: [] };\n}\n\nexport const Resources: MessageFns<Resources, \"akash.base.resources.v1beta4.Resources\"> = {\n $type: \"akash.base.resources.v1beta4.Resources\" as const,\n\n encode(message: Resources, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {\n if (message.id !== 0) {\n writer.uint32(8).uint32(message.id);\n }\n if (message.cpu !== undefined) {\n CPU.encode(message.cpu, writer.uint32(18).fork()).join();\n }\n if (message.memory !== undefined) {\n Memory.encode(message.memory, writer.uint32(26).fork()).join();\n }\n for (const v of message.storage) {\n Storage.encode(v!, writer.uint32(34).fork()).join();\n }\n if (message.gpu !== undefined) {\n GPU.encode(message.gpu, writer.uint32(42).fork()).join();\n }\n for (const v of message.endpoints) {\n Endpoint.encode(v!, writer.uint32(50).fork()).join();\n }\n return writer;\n },\n\n decode(input: BinaryReader | Uint8Array, length?: number): Resources {\n const reader = input instanceof BinaryReader ? input : new BinaryReader(input);\n const end = length === undefined ? reader.len : reader.pos + length;\n const message = createBaseResources();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n case 1: {\n if (tag !== 8) {\n break;\n }\n\n message.id = reader.uint32();\n continue;\n }\n case 2: {\n if (tag !== 18) {\n break;\n }\n\n message.cpu = CPU.decode(reader, reader.uint32());\n continue;\n }\n case 3: {\n if (tag !== 26) {\n break;\n }\n\n message.memory = Memory.decode(reader, reader.uint32());\n continue;\n }\n case 4: {\n if (tag !== 34) {\n break;\n }\n\n message.storage.push(Storage.decode(reader, reader.uint32()));\n continue;\n }\n case 5: {\n if (tag !== 42) {\n break;\n }\n\n message.gpu = GPU.decode(reader, reader.uint32());\n continue;\n }\n case 6: {\n if (tag !== 50) {\n break;\n }\n\n message.endpoints.push(Endpoint.decode(reader, reader.uint32()));\n continue;\n }\n }\n if ((tag & 7) === 4 || tag === 0) {\n break;\n }\n reader.skip(tag & 7);\n }\n return message;\n },\n\n fromJSON(object: any): Resources {\n return {\n id: isSet(object.id) ? globalThis.Number(object.id) : 0,\n cpu: isSet(object.cpu) ? CPU.fromJSON(object.cpu) : undefined,\n memory: isSet(object.memory) ? Memory.fromJSON(object.memory) : undefined,\n storage: globalThis.Array.isArray(object?.storage) ? object.storage.map((e: any) => Storage.fromJSON(e)) : [],\n gpu: isSet(object.gpu) ? GPU.fromJSON(object.gpu) : undefined,\n endpoints: globalThis.Array.isArray(object?.endpoints)\n ? object.endpoints.map((e: any) => Endpoint.fromJSON(e))\n : [],\n };\n },\n\n toJSON(message: Resources): unknown {\n const obj: any = {};\n if (message.id !== 0) {\n obj.id = Math.round(message.id);\n }\n if (message.cpu !== undefined) {\n obj.cpu = CPU.toJSON(message.cpu);\n }\n if (message.memory !== undefined) {\n obj.memory = Memory.toJSON(message.memory);\n }\n if (message.storage?.length) {\n obj.storage = message.storage.map((e) => Storage.toJSON(e));\n }\n if (message.gpu !== undefined) {\n obj.gpu = GPU.toJSON(message.gpu);\n }\n if (message.endpoints?.length) {\n obj.endpoints = message.endpoints.map((e) => Endpoint.toJSON(e));\n }\n return obj;\n },\n fromPartial(object: DeepPartial<Resources>): Resources {\n const message = createBaseResources();\n message.id = object.id ?? 0;\n message.cpu = (object.cpu !== undefined && object.cpu !== null) ? CPU.fromPartial(object.cpu) : undefined;\n message.memory = (object.memory !== undefined && object.memory !== null)\n ? Memory.fromPartial(object.memory)\n : undefined;\n message.storage = object.storage?.map((e) => Storage.fromPartial(e)) || [];\n message.gpu = (object.gpu !== undefined && object.gpu !== null) ? GPU.fromPartial(object.gpu) : undefined;\n message.endpoints = object.endpoints?.map((e) => Endpoint.fromPartial(e)) || [];\n return message;\n },\n};\n\ntype Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;\n\ntype _unused_DeepPartial<T> = T extends Builtin ? T\n : T extends Long ? string | number | Long : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>\n : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>\n : T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }\n : Partial<T>;\n\nfunction _unused_isSet(value: any): boolean {\n return value !== null && value !== undefined;\n}\n\ninterface _unused_MessageFns<T, V extends string> {\n readonly $type: V;\n encode(message: T, writer?: BinaryWriter): BinaryWriter;\n decode(input: BinaryReader | Uint8Array, length?: number): T;\n fromJSON(object: any): T;\n toJSON(message: T): unknown;\n create(base?: DeepPartial<T>): T;\n fromPartial(object: DeepPartial<T>): T;\n}\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;AASA,SAAS,cAAc,oBAAoB;AAQ3C,SAAS,0BAAyC;AAChD,SAAO,EAAE,KAAK,IAAI,WAAW,CAAC,EAAE;AAClC;AAEO,IAAM,gBAAyF;AAAA,EACpG,OAAO;AAAA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AAAA,IAC5D;AACA,QAAI,QAAQ,QAAQ,QAAW;AAC7B,UAAI,MAAM,IAAI,OAAO,QAAQ,GAAG;AAAA,IAClC;AACA,QAAI,QAAQ,WAAW,QAAQ;AAC7B,UAAI,YAAY,QAAQ,UAAU,IAAI,CAAC,MAAM,SAAS,OAAO,CAAC,CAAC;AAAA,IACjE;AACA,WAAO;AAAA,EACT;AAAA,EACA,YAAY,QAA2C;AACrD,UAAM,UAAU,oBAAoB;AACpC,YAAQ,KAAK,OAAO,MAAM;AAC1B,YAAQ,MAAO,OAAO,QAAQ,UAAa,OAAO,QAAQ,OAAQ,IAAI,YAAY,OAAO,GAAG,IAAI;AAChG,YAAQ,SAAU,OAAO,WAAW,UAAa,OAAO,WAAW,OAC/D,OAAO,YAAY,OAAO,MAAM,IAChC;AACJ,YAAQ,UAAU,OAAO,SAAS,IAAI,CAAC,MAAM,QAAQ,YAAY,CAAC,CAAC,KAAK,CAAC;AACzE,YAAQ,MAAO,OAAO,QAAQ,UAAa,OAAO,QAAQ,OAAQ,IAAI,YAAY,OAAO,GAAG,IAAI;AAChG,YAAQ,YAAY,OAAO,WAAW,IAAI,CAAC,MAAM,SAAS,YAAY,CAAC,CAAC,KAAK,CAAC;AAC9E,WAAO;AAAA,EACT;AACF;",
|
|
6
|
-
"names": ["BinaryReader", "BinaryWriter", "BinaryWriter", "BinaryReader", "BinaryReader", "BinaryWriter", "
|
|
3
|
+
"sources": ["../../src/generated/protos/akash/base/resources/v1beta4/resourcevalue.ts", "../../src/generated/protos/akash/base/resources/v1beta4/cpu.ts", "../../src/generated/protos/akash/base/resources/v1beta4/gpu.ts", "../../src/generated/protos/akash/base/resources/v1beta4/memory.ts", "../../src/generated/protos/akash/base/resources/v1beta4/endpoint.ts", "../../src/generated/protos/akash/base/resources/v1beta4/storage.ts", "../../src/generated/protos/akash/base/resources/v1beta4/resources.ts"],
|
|
4
|
+
"sourcesContent": ["import { bytesFromBase64, base64FromBytes, isSet } from \"../../../../../../encoding/typeEncodingHelpers.ts\"\nimport type { DeepPartial, MessageFns } from \"../../../../../../encoding/typeEncodingHelpers.ts\"\n// Code generated by protoc-gen-ts_proto. DO NOT EDIT.\n// versions:\n// protoc-gen-ts_proto v2.7.7\n// protoc unknown\n// source: akash/base/resources/v1beta4/resourcevalue.proto\n\n/* eslint-disable */\nimport { BinaryReader, BinaryWriter } from \"@bufbuild/protobuf/wire\";\nimport Long from \"long\";\n\n/** Unit stores cpu, memory and storage metrics. */\nexport interface ResourceValue {\n val: Uint8Array;\n}\n\nfunction createBaseResourceValue(): ResourceValue {\n return { val: new Uint8Array(0) };\n}\n\nexport const ResourceValue: MessageFns<ResourceValue, \"akash.base.resources.v1beta4.ResourceValue\"> = {\n $type: \"akash.base.resources.v1beta4.ResourceValue\" as const,\n\n encode(message: ResourceValue, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {\n if (message.val.length !== 0) {\n writer.uint32(10).bytes(message.val);\n }\n return writer;\n },\n\n decode(input: BinaryReader | Uint8Array, length?: number): ResourceValue {\n const reader = input instanceof BinaryReader ? input : new BinaryReader(input);\n const end = length === undefined ? reader.len : reader.pos + length;\n const message = createBaseResourceValue();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n case 1: {\n if (tag !== 10) {\n break;\n }\n\n message.val = reader.bytes();\n continue;\n }\n }\n if ((tag & 7) === 4 || tag === 0) {\n break;\n }\n reader.skip(tag & 7);\n }\n return message;\n },\n\n fromJSON(object: any): ResourceValue {\n return { val: isSet(object.val) ? bytesFromBase64(object.val) : new Uint8Array(0) };\n },\n\n toJSON(message: ResourceValue): unknown {\n const obj: any = {};\n if (message.val.length !== 0) {\n obj.val = base64FromBytes(message.val);\n }\n return obj;\n },\n fromPartial(object: DeepPartial<ResourceValue>): ResourceValue {\n const message = createBaseResourceValue();\n message.val = object.val ?? new Uint8Array(0);\n return message;\n },\n};\n\nfunction _unused_bytesFromBase64(b64: string): Uint8Array {\n if ((globalThis as any).Buffer) {\n return Uint8Array.from(globalThis.Buffer.from(b64, \"base64\"));\n } else {\n const bin = globalThis.atob(b64);\n const arr = new Uint8Array(bin.length);\n for (let i = 0; i < bin.length; ++i) {\n arr[i] = bin.charCodeAt(i);\n }\n return arr;\n }\n}\n\nfunction _unused_base64FromBytes(arr: Uint8Array): string {\n if ((globalThis as any).Buffer) {\n return globalThis.Buffer.from(arr).toString(\"base64\");\n } else {\n const bin: string[] = [];\n arr.forEach((byte) => {\n bin.push(globalThis.String.fromCharCode(byte));\n });\n return globalThis.btoa(bin.join(\"\"));\n }\n}\n\ntype Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;\n\ntype _unused_DeepPartial<T> = T extends Builtin ? T\n : T extends Long ? string | number | Long : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>\n : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>\n : T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }\n : Partial<T>;\n\nfunction _unused_isSet(value: any): boolean {\n return value !== null && value !== undefined;\n}\n\ninterface _unused_MessageFns<T, V extends string> {\n readonly $type: V;\n encode(message: T, writer?: BinaryWriter): BinaryWriter;\n decode(input: BinaryReader | Uint8Array, length?: number): T;\n fromJSON(object: any): T;\n toJSON(message: T): unknown;\n create(base?: DeepPartial<T>): T;\n fromPartial(object: DeepPartial<T>): T;\n}\n", "import { isSet } from \"../../../../../../encoding/typeEncodingHelpers.ts\"\nimport type { DeepPartial, MessageFns } from \"../../../../../../encoding/typeEncodingHelpers.ts\"\n// Code generated by protoc-gen-ts_proto. DO NOT EDIT.\n// versions:\n// protoc-gen-ts_proto v2.7.7\n// protoc unknown\n// source: akash/base/resources/v1beta4/cpu.proto\n\n/* eslint-disable */\nimport { BinaryReader, BinaryWriter } from \"@bufbuild/protobuf/wire\";\nimport Long from \"long\";\nimport { Attribute } from \"../../attributes/v1/attribute.ts\";\nimport { ResourceValue } from \"./resourcevalue.ts\";\n\n/** CPU stores resource units and cpu config attributes. */\nexport interface CPU {\n /**\n * Units of the CPU, which represents the number of CPUs available.\n * This field is required and must be a non-negative integer.\n */\n units:\n | ResourceValue\n | undefined;\n /**\n * Attributes holds a list of key-value attributes that describe the GPU, such as its model, memory and interface.\n * This field is required and must be a list of `Attribute` messages.\n */\n attributes: Attribute[];\n}\n\nfunction createBaseCPU(): CPU {\n return { units: undefined, attributes: [] };\n}\n\nexport const CPU: MessageFns<CPU, \"akash.base.resources.v1beta4.CPU\"> = {\n $type: \"akash.base.resources.v1beta4.CPU\" as const,\n\n encode(message: CPU, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {\n if (message.units !== undefined) {\n ResourceValue.encode(message.units, writer.uint32(10).fork()).join();\n }\n for (const v of message.attributes) {\n Attribute.encode(v!, writer.uint32(18).fork()).join();\n }\n return writer;\n },\n\n decode(input: BinaryReader | Uint8Array, length?: number): CPU {\n const reader = input instanceof BinaryReader ? input : new BinaryReader(input);\n const end = length === undefined ? reader.len : reader.pos + length;\n const message = createBaseCPU();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n case 1: {\n if (tag !== 10) {\n break;\n }\n\n message.units = ResourceValue.decode(reader, reader.uint32());\n continue;\n }\n case 2: {\n if (tag !== 18) {\n break;\n }\n\n message.attributes.push(Attribute.decode(reader, reader.uint32()));\n continue;\n }\n }\n if ((tag & 7) === 4 || tag === 0) {\n break;\n }\n reader.skip(tag & 7);\n }\n return message;\n },\n\n fromJSON(object: any): CPU {\n return {\n units: isSet(object.units) ? ResourceValue.fromJSON(object.units) : undefined,\n attributes: globalThis.Array.isArray(object?.attributes)\n ? object.attributes.map((e: any) => Attribute.fromJSON(e))\n : [],\n };\n },\n\n toJSON(message: CPU): unknown {\n const obj: any = {};\n if (message.units !== undefined) {\n obj.units = ResourceValue.toJSON(message.units);\n }\n if (message.attributes?.length) {\n obj.attributes = message.attributes.map((e) => Attribute.toJSON(e));\n }\n return obj;\n },\n fromPartial(object: DeepPartial<CPU>): CPU {\n const message = createBaseCPU();\n message.units = (object.units !== undefined && object.units !== null)\n ? ResourceValue.fromPartial(object.units)\n : undefined;\n message.attributes = object.attributes?.map((e) => Attribute.fromPartial(e)) || [];\n return message;\n },\n};\n\ntype Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;\n\ntype _unused_DeepPartial<T> = T extends Builtin ? T\n : T extends Long ? string | number | Long : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>\n : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>\n : T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }\n : Partial<T>;\n\nfunction _unused_isSet(value: any): boolean {\n return value !== null && value !== undefined;\n}\n\ninterface _unused_MessageFns<T, V extends string> {\n readonly $type: V;\n encode(message: T, writer?: BinaryWriter): BinaryWriter;\n decode(input: BinaryReader | Uint8Array, length?: number): T;\n fromJSON(object: any): T;\n toJSON(message: T): unknown;\n create(base?: DeepPartial<T>): T;\n fromPartial(object: DeepPartial<T>): T;\n}\n", "import { isSet } from \"../../../../../../encoding/typeEncodingHelpers.ts\"\nimport type { DeepPartial, MessageFns } from \"../../../../../../encoding/typeEncodingHelpers.ts\"\n// Code generated by protoc-gen-ts_proto. DO NOT EDIT.\n// versions:\n// protoc-gen-ts_proto v2.7.7\n// protoc unknown\n// source: akash/base/resources/v1beta4/gpu.proto\n\n/* eslint-disable */\nimport { BinaryReader, BinaryWriter } from \"@bufbuild/protobuf/wire\";\nimport Long from \"long\";\nimport { Attribute } from \"../../attributes/v1/attribute.ts\";\nimport { ResourceValue } from \"./resourcevalue.ts\";\n\n/** GPU stores resource units and gpu configuration attributes. */\nexport interface GPU {\n /**\n * The resource value of the GPU, which represents the number of GPUs available.\n * This field is required and must be a non-negative integer.\n */\n units: ResourceValue | undefined;\n attributes: Attribute[];\n}\n\nfunction createBaseGPU(): GPU {\n return { units: undefined, attributes: [] };\n}\n\nexport const GPU: MessageFns<GPU, \"akash.base.resources.v1beta4.GPU\"> = {\n $type: \"akash.base.resources.v1beta4.GPU\" as const,\n\n encode(message: GPU, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {\n if (message.units !== undefined) {\n ResourceValue.encode(message.units, writer.uint32(10).fork()).join();\n }\n for (const v of message.attributes) {\n Attribute.encode(v!, writer.uint32(18).fork()).join();\n }\n return writer;\n },\n\n decode(input: BinaryReader | Uint8Array, length?: number): GPU {\n const reader = input instanceof BinaryReader ? input : new BinaryReader(input);\n const end = length === undefined ? reader.len : reader.pos + length;\n const message = createBaseGPU();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n case 1: {\n if (tag !== 10) {\n break;\n }\n\n message.units = ResourceValue.decode(reader, reader.uint32());\n continue;\n }\n case 2: {\n if (tag !== 18) {\n break;\n }\n\n message.attributes.push(Attribute.decode(reader, reader.uint32()));\n continue;\n }\n }\n if ((tag & 7) === 4 || tag === 0) {\n break;\n }\n reader.skip(tag & 7);\n }\n return message;\n },\n\n fromJSON(object: any): GPU {\n return {\n units: isSet(object.units) ? ResourceValue.fromJSON(object.units) : undefined,\n attributes: globalThis.Array.isArray(object?.attributes)\n ? object.attributes.map((e: any) => Attribute.fromJSON(e))\n : [],\n };\n },\n\n toJSON(message: GPU): unknown {\n const obj: any = {};\n if (message.units !== undefined) {\n obj.units = ResourceValue.toJSON(message.units);\n }\n if (message.attributes?.length) {\n obj.attributes = message.attributes.map((e) => Attribute.toJSON(e));\n }\n return obj;\n },\n fromPartial(object: DeepPartial<GPU>): GPU {\n const message = createBaseGPU();\n message.units = (object.units !== undefined && object.units !== null)\n ? ResourceValue.fromPartial(object.units)\n : undefined;\n message.attributes = object.attributes?.map((e) => Attribute.fromPartial(e)) || [];\n return message;\n },\n};\n\ntype Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;\n\ntype _unused_DeepPartial<T> = T extends Builtin ? T\n : T extends Long ? string | number | Long : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>\n : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>\n : T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }\n : Partial<T>;\n\nfunction _unused_isSet(value: any): boolean {\n return value !== null && value !== undefined;\n}\n\ninterface _unused_MessageFns<T, V extends string> {\n readonly $type: V;\n encode(message: T, writer?: BinaryWriter): BinaryWriter;\n decode(input: BinaryReader | Uint8Array, length?: number): T;\n fromJSON(object: any): T;\n toJSON(message: T): unknown;\n create(base?: DeepPartial<T>): T;\n fromPartial(object: DeepPartial<T>): T;\n}\n", "import { isSet } from \"../../../../../../encoding/typeEncodingHelpers.ts\"\nimport type { DeepPartial, MessageFns } from \"../../../../../../encoding/typeEncodingHelpers.ts\"\n// Code generated by protoc-gen-ts_proto. DO NOT EDIT.\n// versions:\n// protoc-gen-ts_proto v2.7.7\n// protoc unknown\n// source: akash/base/resources/v1beta4/memory.proto\n\n/* eslint-disable */\nimport { BinaryReader, BinaryWriter } from \"@bufbuild/protobuf/wire\";\nimport Long from \"long\";\nimport { Attribute } from \"../../attributes/v1/attribute.ts\";\nimport { ResourceValue } from \"./resourcevalue.ts\";\n\n/** Memory stores resource quantity and memory attributes. */\nexport interface Memory {\n /**\n * Quantity of memory available, which represents the amount of memory in bytes.\n * This field is required and must be a non-negative integer.\n */\n quantity:\n | ResourceValue\n | undefined;\n /**\n * Attributes that describe the memory, such as its type and speed.\n * This field is required and must be a list of Attribute key-values.\n */\n attributes: Attribute[];\n}\n\nfunction createBaseMemory(): Memory {\n return { quantity: undefined, attributes: [] };\n}\n\nexport const Memory: MessageFns<Memory, \"akash.base.resources.v1beta4.Memory\"> = {\n $type: \"akash.base.resources.v1beta4.Memory\" as const,\n\n encode(message: Memory, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {\n if (message.quantity !== undefined) {\n ResourceValue.encode(message.quantity, writer.uint32(10).fork()).join();\n }\n for (const v of message.attributes) {\n Attribute.encode(v!, writer.uint32(18).fork()).join();\n }\n return writer;\n },\n\n decode(input: BinaryReader | Uint8Array, length?: number): Memory {\n const reader = input instanceof BinaryReader ? input : new BinaryReader(input);\n const end = length === undefined ? reader.len : reader.pos + length;\n const message = createBaseMemory();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n case 1: {\n if (tag !== 10) {\n break;\n }\n\n message.quantity = ResourceValue.decode(reader, reader.uint32());\n continue;\n }\n case 2: {\n if (tag !== 18) {\n break;\n }\n\n message.attributes.push(Attribute.decode(reader, reader.uint32()));\n continue;\n }\n }\n if ((tag & 7) === 4 || tag === 0) {\n break;\n }\n reader.skip(tag & 7);\n }\n return message;\n },\n\n fromJSON(object: any): Memory {\n return {\n quantity: isSet(object.quantity) ? ResourceValue.fromJSON(object.quantity) : undefined,\n attributes: globalThis.Array.isArray(object?.attributes)\n ? object.attributes.map((e: any) => Attribute.fromJSON(e))\n : [],\n };\n },\n\n toJSON(message: Memory): unknown {\n const obj: any = {};\n if (message.quantity !== undefined) {\n obj.quantity = ResourceValue.toJSON(message.quantity);\n }\n if (message.attributes?.length) {\n obj.attributes = message.attributes.map((e) => Attribute.toJSON(e));\n }\n return obj;\n },\n fromPartial(object: DeepPartial<Memory>): Memory {\n const message = createBaseMemory();\n message.quantity = (object.quantity !== undefined && object.quantity !== null)\n ? ResourceValue.fromPartial(object.quantity)\n : undefined;\n message.attributes = object.attributes?.map((e) => Attribute.fromPartial(e)) || [];\n return message;\n },\n};\n\ntype Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;\n\ntype _unused_DeepPartial<T> = T extends Builtin ? T\n : T extends Long ? string | number | Long : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>\n : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>\n : T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }\n : Partial<T>;\n\nfunction _unused_isSet(value: any): boolean {\n return value !== null && value !== undefined;\n}\n\ninterface _unused_MessageFns<T, V extends string> {\n readonly $type: V;\n encode(message: T, writer?: BinaryWriter): BinaryWriter;\n decode(input: BinaryReader | Uint8Array, length?: number): T;\n fromJSON(object: any): T;\n toJSON(message: T): unknown;\n create(base?: DeepPartial<T>): T;\n fromPartial(object: DeepPartial<T>): T;\n}\n", "import { isSet } from \"../../../../../../encoding/typeEncodingHelpers.ts\"\nimport type { DeepPartial, MessageFns } from \"../../../../../../encoding/typeEncodingHelpers.ts\"\n// Code generated by protoc-gen-ts_proto. DO NOT EDIT.\n// versions:\n// protoc-gen-ts_proto v2.7.7\n// protoc unknown\n// source: akash/base/resources/v1beta4/endpoint.proto\n\n/* eslint-disable */\nimport { BinaryReader, BinaryWriter } from \"@bufbuild/protobuf/wire\";\nimport Long from \"long\";\n\n/** Endpoint describes a publicly accessible IP service. */\nexport interface Endpoint {\n /** Kind describes how the endpoint is implemented when the lease is deployed. */\n kind: Endpoint_Kind;\n /** SequenceNumber represents a sequence number for the Endpoint. */\n sequenceNumber: number;\n}\n\n/** Kind describes how the endpoint is implemented when the lease is deployed. */\nexport enum Endpoint_Kind {\n /** SHARED_HTTP - Describes an endpoint that becomes a Kubernetes Ingress. */\n SHARED_HTTP = 0,\n /** RANDOM_PORT - Describes an endpoint that becomes a Kubernetes NodePort. */\n RANDOM_PORT = 1,\n /** LEASED_IP - Describes an endpoint that becomes a leased IP. */\n LEASED_IP = 2,\n UNRECOGNIZED = -1,\n}\n\nexport function endpoint_KindFromJSON(object: any): Endpoint_Kind {\n switch (object) {\n case 0:\n case \"SHARED_HTTP\":\n return Endpoint_Kind.SHARED_HTTP;\n case 1:\n case \"RANDOM_PORT\":\n return Endpoint_Kind.RANDOM_PORT;\n case 2:\n case \"LEASED_IP\":\n return Endpoint_Kind.LEASED_IP;\n case -1:\n case \"UNRECOGNIZED\":\n default:\n return Endpoint_Kind.UNRECOGNIZED;\n }\n}\n\nexport function endpoint_KindToJSON(object: Endpoint_Kind): string {\n switch (object) {\n case Endpoint_Kind.SHARED_HTTP:\n return \"SHARED_HTTP\";\n case Endpoint_Kind.RANDOM_PORT:\n return \"RANDOM_PORT\";\n case Endpoint_Kind.LEASED_IP:\n return \"LEASED_IP\";\n case Endpoint_Kind.UNRECOGNIZED:\n default:\n return \"UNRECOGNIZED\";\n }\n}\n\nfunction createBaseEndpoint(): Endpoint {\n return { kind: 0, sequenceNumber: 0 };\n}\n\nexport const Endpoint: MessageFns<Endpoint, \"akash.base.resources.v1beta4.Endpoint\"> = {\n $type: \"akash.base.resources.v1beta4.Endpoint\" as const,\n\n encode(message: Endpoint, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {\n if (message.kind !== 0) {\n writer.uint32(8).int32(message.kind);\n }\n if (message.sequenceNumber !== 0) {\n writer.uint32(16).uint32(message.sequenceNumber);\n }\n return writer;\n },\n\n decode(input: BinaryReader | Uint8Array, length?: number): Endpoint {\n const reader = input instanceof BinaryReader ? input : new BinaryReader(input);\n const end = length === undefined ? reader.len : reader.pos + length;\n const message = createBaseEndpoint();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n case 1: {\n if (tag !== 8) {\n break;\n }\n\n message.kind = reader.int32() as any;\n continue;\n }\n case 2: {\n if (tag !== 16) {\n break;\n }\n\n message.sequenceNumber = reader.uint32();\n continue;\n }\n }\n if ((tag & 7) === 4 || tag === 0) {\n break;\n }\n reader.skip(tag & 7);\n }\n return message;\n },\n\n fromJSON(object: any): Endpoint {\n return {\n kind: isSet(object.kind) ? endpoint_KindFromJSON(object.kind) : 0,\n sequenceNumber: isSet(object.sequence_number) ? globalThis.Number(object.sequence_number) : 0,\n };\n },\n\n toJSON(message: Endpoint): unknown {\n const obj: any = {};\n if (message.kind !== 0) {\n obj.kind = endpoint_KindToJSON(message.kind);\n }\n if (message.sequenceNumber !== 0) {\n obj.sequence_number = Math.round(message.sequenceNumber);\n }\n return obj;\n },\n fromPartial(object: DeepPartial<Endpoint>): Endpoint {\n const message = createBaseEndpoint();\n message.kind = object.kind ?? 0;\n message.sequenceNumber = object.sequenceNumber ?? 0;\n return message;\n },\n};\n\ntype Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;\n\ntype _unused_DeepPartial<T> = T extends Builtin ? T\n : T extends Long ? string | number | Long : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>\n : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>\n : T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }\n : Partial<T>;\n\nfunction _unused_isSet(value: any): boolean {\n return value !== null && value !== undefined;\n}\n\ninterface _unused_MessageFns<T, V extends string> {\n readonly $type: V;\n encode(message: T, writer?: BinaryWriter): BinaryWriter;\n decode(input: BinaryReader | Uint8Array, length?: number): T;\n fromJSON(object: any): T;\n toJSON(message: T): unknown;\n create(base?: DeepPartial<T>): T;\n fromPartial(object: DeepPartial<T>): T;\n}\n", "import { isSet } from \"../../../../../../encoding/typeEncodingHelpers.ts\"\nimport type { DeepPartial, MessageFns } from \"../../../../../../encoding/typeEncodingHelpers.ts\"\n// Code generated by protoc-gen-ts_proto. DO NOT EDIT.\n// versions:\n// protoc-gen-ts_proto v2.7.7\n// protoc unknown\n// source: akash/base/resources/v1beta4/storage.proto\n\n/* eslint-disable */\nimport { BinaryReader, BinaryWriter } from \"@bufbuild/protobuf/wire\";\nimport Long from \"long\";\nimport { Attribute } from \"../../attributes/v1/attribute.ts\";\nimport { ResourceValue } from \"./resourcevalue.ts\";\n\n/** Storage stores resource quantity and storage attributes. */\nexport interface Storage {\n /** Name holds an arbitrary name for the storage resource. */\n name: string;\n /**\n * Quantity of storage available, which represents the amount of memory in bytes.\n * This field is required and must be a non-negative integer.\n */\n quantity:\n | ResourceValue\n | undefined;\n /**\n * Attributes that describe the storage.\n * This field is required and must be a list of Attribute key-values.\n */\n attributes: Attribute[];\n}\n\nfunction createBaseStorage(): Storage {\n return { name: \"\", quantity: undefined, attributes: [] };\n}\n\nexport const Storage: MessageFns<Storage, \"akash.base.resources.v1beta4.Storage\"> = {\n $type: \"akash.base.resources.v1beta4.Storage\" as const,\n\n encode(message: Storage, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {\n if (message.name !== \"\") {\n writer.uint32(10).string(message.name);\n }\n if (message.quantity !== undefined) {\n ResourceValue.encode(message.quantity, writer.uint32(18).fork()).join();\n }\n for (const v of message.attributes) {\n Attribute.encode(v!, writer.uint32(26).fork()).join();\n }\n return writer;\n },\n\n decode(input: BinaryReader | Uint8Array, length?: number): Storage {\n const reader = input instanceof BinaryReader ? input : new BinaryReader(input);\n const end = length === undefined ? reader.len : reader.pos + length;\n const message = createBaseStorage();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n case 1: {\n if (tag !== 10) {\n break;\n }\n\n message.name = reader.string();\n continue;\n }\n case 2: {\n if (tag !== 18) {\n break;\n }\n\n message.quantity = ResourceValue.decode(reader, reader.uint32());\n continue;\n }\n case 3: {\n if (tag !== 26) {\n break;\n }\n\n message.attributes.push(Attribute.decode(reader, reader.uint32()));\n continue;\n }\n }\n if ((tag & 7) === 4 || tag === 0) {\n break;\n }\n reader.skip(tag & 7);\n }\n return message;\n },\n\n fromJSON(object: any): Storage {\n return {\n name: isSet(object.name) ? globalThis.String(object.name) : \"\",\n quantity: isSet(object.quantity) ? ResourceValue.fromJSON(object.quantity) : undefined,\n attributes: globalThis.Array.isArray(object?.attributes)\n ? object.attributes.map((e: any) => Attribute.fromJSON(e))\n : [],\n };\n },\n\n toJSON(message: Storage): unknown {\n const obj: any = {};\n if (message.name !== \"\") {\n obj.name = message.name;\n }\n if (message.quantity !== undefined) {\n obj.quantity = ResourceValue.toJSON(message.quantity);\n }\n if (message.attributes?.length) {\n obj.attributes = message.attributes.map((e) => Attribute.toJSON(e));\n }\n return obj;\n },\n fromPartial(object: DeepPartial<Storage>): Storage {\n const message = createBaseStorage();\n message.name = object.name ?? \"\";\n message.quantity = (object.quantity !== undefined && object.quantity !== null)\n ? ResourceValue.fromPartial(object.quantity)\n : undefined;\n message.attributes = object.attributes?.map((e) => Attribute.fromPartial(e)) || [];\n return message;\n },\n};\n\ntype Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;\n\ntype _unused_DeepPartial<T> = T extends Builtin ? T\n : T extends Long ? string | number | Long : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>\n : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>\n : T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }\n : Partial<T>;\n\nfunction _unused_isSet(value: any): boolean {\n return value !== null && value !== undefined;\n}\n\ninterface _unused_MessageFns<T, V extends string> {\n readonly $type: V;\n encode(message: T, writer?: BinaryWriter): BinaryWriter;\n decode(input: BinaryReader | Uint8Array, length?: number): T;\n fromJSON(object: any): T;\n toJSON(message: T): unknown;\n create(base?: DeepPartial<T>): T;\n fromPartial(object: DeepPartial<T>): T;\n}\n", "import { isSet } from \"../../../../../../encoding/typeEncodingHelpers.ts\"\nimport type { DeepPartial, MessageFns } from \"../../../../../../encoding/typeEncodingHelpers.ts\"\n// Code generated by protoc-gen-ts_proto. DO NOT EDIT.\n// versions:\n// protoc-gen-ts_proto v2.7.7\n// protoc unknown\n// source: akash/base/resources/v1beta4/resources.proto\n\n/* eslint-disable */\nimport { BinaryReader, BinaryWriter } from \"@bufbuild/protobuf/wire\";\nimport Long from \"long\";\nimport { CPU } from \"./cpu.ts\";\nimport { Endpoint } from \"./endpoint.ts\";\nimport { GPU } from \"./gpu.ts\";\nimport { Memory } from \"./memory.ts\";\nimport { Storage } from \"./storage.ts\";\n\n/**\n * Resources describes all available resources types for deployment/node etc\n * if field is nil resource is not present in the given data-structure\n */\nexport interface Resources {\n /** Id is a unique identifier for the resources. */\n id: number;\n /**\n * CPU resources available, including the architecture, number of cores and other details.\n * This field is optional and can be empty if no CPU resources are available.\n */\n cpu:\n | CPU\n | undefined;\n /**\n * Memory resources available, including the quantity and attributes.\n * This field is optional and can be empty if no memory resources are available.\n */\n memory:\n | Memory\n | undefined;\n /**\n * Storage resources available, including the quantity and attributes.\n * This field is optional and can be empty if no storage resources are available.\n */\n storage: Storage[];\n /**\n * GPU resources available, including the type, architecture and other details.\n * This field is optional and can be empty if no GPU resources are available.\n */\n gpu:\n | GPU\n | undefined;\n /** Endpoint resources available */\n endpoints: Endpoint[];\n}\n\nfunction createBaseResources(): Resources {\n return { id: 0, cpu: undefined, memory: undefined, storage: [], gpu: undefined, endpoints: [] };\n}\n\nexport const Resources: MessageFns<Resources, \"akash.base.resources.v1beta4.Resources\"> = {\n $type: \"akash.base.resources.v1beta4.Resources\" as const,\n\n encode(message: Resources, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {\n if (message.id !== 0) {\n writer.uint32(8).uint32(message.id);\n }\n if (message.cpu !== undefined) {\n CPU.encode(message.cpu, writer.uint32(18).fork()).join();\n }\n if (message.memory !== undefined) {\n Memory.encode(message.memory, writer.uint32(26).fork()).join();\n }\n for (const v of message.storage) {\n Storage.encode(v!, writer.uint32(34).fork()).join();\n }\n if (message.gpu !== undefined) {\n GPU.encode(message.gpu, writer.uint32(42).fork()).join();\n }\n for (const v of message.endpoints) {\n Endpoint.encode(v!, writer.uint32(50).fork()).join();\n }\n return writer;\n },\n\n decode(input: BinaryReader | Uint8Array, length?: number): Resources {\n const reader = input instanceof BinaryReader ? input : new BinaryReader(input);\n const end = length === undefined ? reader.len : reader.pos + length;\n const message = createBaseResources();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n case 1: {\n if (tag !== 8) {\n break;\n }\n\n message.id = reader.uint32();\n continue;\n }\n case 2: {\n if (tag !== 18) {\n break;\n }\n\n message.cpu = CPU.decode(reader, reader.uint32());\n continue;\n }\n case 3: {\n if (tag !== 26) {\n break;\n }\n\n message.memory = Memory.decode(reader, reader.uint32());\n continue;\n }\n case 4: {\n if (tag !== 34) {\n break;\n }\n\n message.storage.push(Storage.decode(reader, reader.uint32()));\n continue;\n }\n case 5: {\n if (tag !== 42) {\n break;\n }\n\n message.gpu = GPU.decode(reader, reader.uint32());\n continue;\n }\n case 6: {\n if (tag !== 50) {\n break;\n }\n\n message.endpoints.push(Endpoint.decode(reader, reader.uint32()));\n continue;\n }\n }\n if ((tag & 7) === 4 || tag === 0) {\n break;\n }\n reader.skip(tag & 7);\n }\n return message;\n },\n\n fromJSON(object: any): Resources {\n return {\n id: isSet(object.id) ? globalThis.Number(object.id) : 0,\n cpu: isSet(object.cpu) ? CPU.fromJSON(object.cpu) : undefined,\n memory: isSet(object.memory) ? Memory.fromJSON(object.memory) : undefined,\n storage: globalThis.Array.isArray(object?.storage) ? object.storage.map((e: any) => Storage.fromJSON(e)) : [],\n gpu: isSet(object.gpu) ? GPU.fromJSON(object.gpu) : undefined,\n endpoints: globalThis.Array.isArray(object?.endpoints)\n ? object.endpoints.map((e: any) => Endpoint.fromJSON(e))\n : [],\n };\n },\n\n toJSON(message: Resources): unknown {\n const obj: any = {};\n if (message.id !== 0) {\n obj.id = Math.round(message.id);\n }\n if (message.cpu !== undefined) {\n obj.cpu = CPU.toJSON(message.cpu);\n }\n if (message.memory !== undefined) {\n obj.memory = Memory.toJSON(message.memory);\n }\n if (message.storage?.length) {\n obj.storage = message.storage.map((e) => Storage.toJSON(e));\n }\n if (message.gpu !== undefined) {\n obj.gpu = GPU.toJSON(message.gpu);\n }\n if (message.endpoints?.length) {\n obj.endpoints = message.endpoints.map((e) => Endpoint.toJSON(e));\n }\n return obj;\n },\n fromPartial(object: DeepPartial<Resources>): Resources {\n const message = createBaseResources();\n message.id = object.id ?? 0;\n message.cpu = (object.cpu !== undefined && object.cpu !== null) ? CPU.fromPartial(object.cpu) : undefined;\n message.memory = (object.memory !== undefined && object.memory !== null)\n ? Memory.fromPartial(object.memory)\n : undefined;\n message.storage = object.storage?.map((e) => Storage.fromPartial(e)) || [];\n message.gpu = (object.gpu !== undefined && object.gpu !== null) ? GPU.fromPartial(object.gpu) : undefined;\n message.endpoints = object.endpoints?.map((e) => Endpoint.fromPartial(e)) || [];\n return message;\n },\n};\n\ntype Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;\n\ntype _unused_DeepPartial<T> = T extends Builtin ? T\n : T extends Long ? string | number | Long : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>\n : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>\n : T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }\n : Partial<T>;\n\nfunction _unused_isSet(value: any): boolean {\n return value !== null && value !== undefined;\n}\n\ninterface _unused_MessageFns<T, V extends string> {\n readonly $type: V;\n encode(message: T, writer?: BinaryWriter): BinaryWriter;\n decode(input: BinaryReader | Uint8Array, length?: number): T;\n fromJSON(object: any): T;\n toJSON(message: T): unknown;\n create(base?: DeepPartial<T>): T;\n fromPartial(object: DeepPartial<T>): T;\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;AASA,SAAS,cAAc,oBAAoB;AAQ3C,SAAS,0BAAyC;AAChD,SAAO,EAAE,KAAK,IAAI,WAAW,CAAC,EAAE;AAClC;AAEO,IAAM,gBAAyF;AAAA,EACpG,OAAO;AAAA,EAEP,OAAO,SAAwB,SAAuB,IAAI,aAAa,GAAiB;AACtF,QAAI,QAAQ,IAAI,WAAW,GAAG;AAC5B,aAAO,OAAO,EAAE,EAAE,MAAM,QAAQ,GAAG;AAAA,IACrC;AACA,WAAO;AAAA,EACT;AAAA,EAEA,OAAO,OAAkC,QAAgC;AACvE,UAAM,SAAS,iBAAiB,eAAe,QAAQ,IAAI,aAAa,KAAK;AAC7E,UAAM,MAAM,WAAW,SAAY,OAAO,MAAM,OAAO,MAAM;AAC7D,UAAM,UAAU,wBAAwB;AACxC,WAAO,OAAO,MAAM,KAAK;AACvB,YAAM,MAAM,OAAO,OAAO;AAC1B,cAAQ,QAAQ,GAAG;AAAA,QACjB,KAAK,GAAG;AACN,cAAI,QAAQ,IAAI;AACd;AAAA,UACF;AAEA,kBAAQ,MAAM,OAAO,MAAM;AAC3B;AAAA,QACF;AAAA,MACF;AACA,WAAK,MAAM,OAAO,KAAK,QAAQ,GAAG;AAChC;AAAA,MACF;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AQ,UAAa,OAAO,QAAQ,OAAQ,IAAI,YAAY,OAAO,GAAG,IAAI;AAChG,YAAQ,YAAY,OAAO,WAAW,IAAI,CAAC,MAAM,SAAS,YAAY,CAAC,CAAC,KAAK,CAAC;AAC9E,WAAO;AAAA,EACT;AACF;",
|
|
6
|
+
"names": ["BinaryReader", "BinaryWriter", "BinaryWriter", "BinaryReader", "BinaryReader", "BinaryWriter", "BinaryWriter", "BinaryReader", "BinaryReader", "BinaryWriter", "BinaryWriter", "BinaryReader", "BinaryReader", "BinaryWriter", "Endpoint_Kind", "BinaryReader", "BinaryWriter", "BinaryWriter", "BinaryReader", "BinaryReader", "BinaryWriter", "BinaryWriter", "BinaryReader"]
|
|
7
7
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Resources
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-5DCYIWCG.js";
|
|
4
4
|
import {
|
|
5
5
|
PlacementRequirements
|
|
6
6
|
} from "./chunk-JGBH2EPB.js";
|
|
@@ -183,4 +183,4 @@ export {
|
|
|
183
183
|
ResourceUnit,
|
|
184
184
|
GroupSpec
|
|
185
185
|
};
|
|
186
|
-
//# sourceMappingURL=chunk-
|
|
186
|
+
//# sourceMappingURL=chunk-5YECXI3P.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Group
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-VRE72ZD5.js";
|
|
4
4
|
import {
|
|
5
5
|
LeaseID
|
|
6
6
|
} from "./chunk-LKYHOABO.js";
|
|
@@ -946,4 +946,4 @@ export {
|
|
|
946
946
|
ServiceStatusRequest,
|
|
947
947
|
ServiceStatusResponse
|
|
948
948
|
};
|
|
949
|
-
//# sourceMappingURL=chunk-
|
|
949
|
+
//# sourceMappingURL=chunk-BYQF33C6.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Resources
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-5DCYIWCG.js";
|
|
4
4
|
import {
|
|
5
5
|
Coin
|
|
6
6
|
} from "./chunk-ESEV5MX6.js";
|
|
@@ -150,4 +150,4 @@ export {
|
|
|
150
150
|
ResourceOffer,
|
|
151
151
|
Params
|
|
152
152
|
};
|
|
153
|
-
//# sourceMappingURL=chunk-
|
|
153
|
+
//# sourceMappingURL=chunk-C7UQYVYH.js.map
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
} from "./chunk-OHAEKHAC.js";
|
|
9
9
|
import {
|
|
10
10
|
GroupSpec
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-5YECXI3P.js";
|
|
12
12
|
import {
|
|
13
13
|
Account
|
|
14
14
|
} from "./chunk-CT7AHZAH.js";
|
|
@@ -811,4 +811,4 @@ export {
|
|
|
811
811
|
QueryParamsRequest,
|
|
812
812
|
QueryParamsResponse
|
|
813
813
|
};
|
|
814
|
-
//# sourceMappingURL=chunk-
|
|
814
|
+
//# sourceMappingURL=chunk-JISXXX24.js.map
|