@akashnetwork/chain-sdk 1.0.0-alpha.30 → 1.0.0-alpha.31
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/dist/cjs/bla.cjs +7 -0
- package/dist/cjs/bla.cjs.map +7 -0
- package/dist/cjs/generated/createNodeSDK.cjs +95 -76
- package/dist/cjs/generated/createNodeSDK.cjs.map +2 -2
- package/dist/cjs/generated/protos/akash/bme/v1/params.cjs +18 -2
- package/dist/cjs/generated/protos/akash/bme/v1/params.cjs.map +2 -2
- package/dist/cjs/generated/protos/akash/bme/v1/types.cjs +65 -2
- package/dist/cjs/generated/protos/akash/bme/v1/types.cjs.map +2 -2
- package/dist/cjs/generated/protos/akash/deployment/v1/deployment.cjs +68 -2
- package/dist/cjs/generated/protos/akash/deployment/v1/deployment.cjs.map +2 -2
- package/dist/cjs/generated/protos/akash/deployment/v1beta4/deploymentmsg.cjs +17 -2
- package/dist/cjs/generated/protos/akash/deployment/v1beta4/deploymentmsg.cjs.map +2 -2
- package/dist/cjs/generated/protos/akash/discovery/v1/akash.cjs +64 -2
- package/dist/cjs/generated/protos/akash/discovery/v1/akash.cjs.map +2 -2
- package/dist/cjs/generated/protos/akash/discovery/v1/client_info.cjs +150 -1
- package/dist/cjs/generated/protos/akash/discovery/v1/client_info.cjs.map +2 -2
- package/dist/cjs/generated/protos/akash/discovery/v1/service.cjs +115 -0
- package/dist/cjs/generated/protos/akash/discovery/v1/service.cjs.map +7 -0
- package/dist/cjs/generated/protos/akash/discovery/v1/service_akash.cjs +39 -0
- package/dist/cjs/generated/protos/akash/discovery/v1/service_akash.cjs.map +7 -0
- package/dist/cjs/generated/protos/akash/market/v1/event.cjs +93 -0
- package/dist/cjs/generated/protos/akash/market/v1/event.cjs.map +3 -3
- package/dist/cjs/generated/protos/akash/market/v1/lease.cjs +32 -2
- package/dist/cjs/generated/protos/akash/market/v1/lease.cjs.map +2 -2
- package/dist/cjs/generated/protos/akash/market/v1/reclamation.cjs +138 -0
- package/dist/cjs/generated/protos/akash/market/v1/reclamation.cjs.map +7 -0
- package/dist/cjs/generated/protos/akash/market/v1beta5/bid.cjs +25 -2
- package/dist/cjs/generated/protos/akash/market/v1beta5/bid.cjs.map +2 -2
- package/dist/cjs/generated/protos/akash/market/v1beta5/bidmsg.cjs +18 -2
- package/dist/cjs/generated/protos/akash/market/v1beta5/bidmsg.cjs.map +2 -2
- package/dist/cjs/generated/protos/akash/market/v1beta5/leasemsg.cjs +103 -0
- package/dist/cjs/generated/protos/akash/market/v1beta5/leasemsg.cjs.map +2 -2
- package/dist/cjs/generated/protos/akash/market/v1beta5/order.cjs +18 -2
- package/dist/cjs/generated/protos/akash/market/v1beta5/order.cjs.map +2 -2
- package/dist/cjs/generated/protos/akash/market/v1beta5/params.cjs +39 -2
- package/dist/cjs/generated/protos/akash/market/v1beta5/params.cjs.map +2 -2
- package/dist/cjs/generated/protos/akash/market/v1beta5/service_akash.cjs +8 -0
- package/dist/cjs/generated/protos/akash/market/v1beta5/service_akash.cjs.map +2 -2
- package/dist/cjs/generated/protos/index.akash.v1.cjs +9 -0
- package/dist/cjs/generated/protos/index.akash.v1.cjs.map +2 -2
- package/dist/cjs/generated/protos/index.akash.v1beta5.cjs +2 -0
- package/dist/cjs/generated/protos/index.akash.v1beta5.cjs.map +2 -2
- package/dist/cjs/network/config.cjs +3 -7
- package/dist/cjs/network/config.cjs.map +2 -2
- package/dist/cjs/sdk/provider/auth/jwt/types.cjs.map +1 -1
- package/dist/cjs/sdk/provider/auth/jwt/validateJwtPayload.cjs +1058 -1259
- package/dist/cjs/sdk/provider/auth/jwt/validateJwtPayload.cjs.map +2 -2
- package/dist/cjs/sdl/index.cjs +0 -4
- package/dist/cjs/sdl/index.cjs.map +2 -2
- package/dist/cjs/sdl/manifest/generateManifest.cjs +2 -3
- package/dist/cjs/sdl/manifest/generateManifest.cjs.map +2 -2
- package/dist/cjs/sdl/validateSDL/validateSDL.cjs +4 -36
- package/dist/cjs/sdl/validateSDL/validateSDL.cjs.map +2 -2
- package/dist/cjs/sdl/validateSDL/validateSDLInput.cjs +49 -50
- package/dist/cjs/sdl/validateSDL/validateSDLInput.cjs.map +2 -2
- package/dist/cjs/test.cjs +2 -0
- package/dist/cjs/test.cjs.map +7 -0
- package/dist/esm/{chunk-JAPXWQ3D.js → chunk-7XWZXYD2.js} +2 -2
- package/dist/esm/{chunk-5RTSSO7K.js → chunk-B7H4H62Z.js} +3 -3
- package/dist/esm/chunk-E4KEMLL4.js +413 -0
- package/dist/esm/chunk-E4KEMLL4.js.map +7 -0
- package/dist/esm/{chunk-H5WUFEMM.js → chunk-EG6EVQGI.js} +23 -5
- package/dist/esm/chunk-EG6EVQGI.js.map +7 -0
- package/dist/esm/{chunk-5YIS3XNX.js → chunk-EXKSXOV2.js} +2 -2
- package/dist/esm/{chunk-TXQ2BR6G.js → chunk-IFAXXMON.js} +126 -5
- package/dist/esm/chunk-IFAXXMON.js.map +7 -0
- package/dist/esm/chunk-IMR6WS6F.js +93 -0
- package/dist/esm/chunk-IMR6WS6F.js.map +7 -0
- package/dist/esm/{chunk-LKYHOABO.js → chunk-IPOIF4A2.js} +170 -37
- package/dist/esm/chunk-IPOIF4A2.js.map +7 -0
- package/dist/esm/{chunk-PFJG3V3A.js → chunk-ITPLCNJB.js} +84 -5
- package/dist/esm/chunk-ITPLCNJB.js.map +7 -0
- package/dist/esm/{chunk-YSOG5YCI.js → chunk-KM336UKV.js} +1203 -2125
- package/dist/esm/chunk-KM336UKV.js.map +7 -0
- package/dist/esm/{chunk-KFWTFROT.js → chunk-M5SAGBGR.js} +42 -3
- package/dist/esm/chunk-M5SAGBGR.js.map +7 -0
- package/dist/esm/{chunk-OHAEKHAC.js → chunk-NPGGO3JN.js} +37 -55
- package/dist/esm/chunk-NPGGO3JN.js.map +7 -0
- package/dist/esm/{chunk-HDAINZXA.js → chunk-RKOP2GYL.js} +50 -7
- package/dist/esm/chunk-RKOP2GYL.js.map +7 -0
- package/dist/esm/{chunk-VZZ4GN23.js → chunk-T5PKT4I6.js} +6 -4
- package/dist/esm/{chunk-VZZ4GN23.js.map → chunk-T5PKT4I6.js.map} +1 -1
- package/dist/esm/{chunk-B4MMOAAO.js → chunk-WI3EWXXI.js} +2 -2
- package/dist/esm/generated/protos/index.akash.v1.js +180 -182
- package/dist/esm/generated/protos/index.akash.v1.js.map +4 -4
- package/dist/esm/generated/protos/index.akash.v1beta1.js +7 -7
- package/dist/esm/generated/protos/index.akash.v1beta4.js +6 -4
- package/dist/esm/generated/protos/index.akash.v1beta5.js +10 -4
- package/dist/esm/generated/protos/index.akash.v1beta5.js.map +1 -1
- package/dist/esm/generated/protos/index.akash.v2.js +6 -6
- package/dist/esm/generated/protos/index.provider.akash.v1.js +16 -15
- package/dist/esm/index.js +10 -12
- package/dist/esm/index.web.js +9 -11
- package/dist/esm/{query_akash-3UBRLLRZ.js → query_akash-3IY2DKPB.js} +3 -3
- package/dist/esm/{query_akash-CKZRI7R6.js → query_akash-OKZLG4MG.js} +5 -3
- package/dist/esm/{query_akash-CKZRI7R6.js.map → query_akash-OKZLG4MG.js.map} +1 -1
- package/dist/esm/{query_akash-3LAHGVQJ.js → query_akash-ZITEPCYB.js} +6 -4
- package/dist/esm/{query_akash-3LAHGVQJ.js.map → query_akash-ZITEPCYB.js.map} +1 -1
- package/dist/esm/{service_akash-UFTUJDPM.js → service_akash-2CH5FJ4J.js} +3 -3
- package/dist/esm/{service_akash-5JSE44LJ.js → service_akash-BLDT6YCO.js} +5 -3
- package/dist/esm/{service_akash-5JSE44LJ.js.map → service_akash-BLDT6YCO.js.map} +1 -1
- package/dist/esm/{service_akash-QEN5EQUY.js → service_akash-DZETPXWM.js} +15 -4
- package/dist/esm/service_akash-DZETPXWM.js.map +7 -0
- package/dist/esm/service_akash-K7FWCKUQ.js +25 -0
- package/dist/esm/service_akash-K7FWCKUQ.js.map +7 -0
- package/dist/esm/{service_akash-FI6WXDZP.js → service_akash-VOFSDZEK.js} +4 -3
- package/dist/esm/{service_akash-FI6WXDZP.js.map → service_akash-VOFSDZEK.js.map} +1 -1
- package/dist/sdl-schema.yaml +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types/bla.d.ts +1 -0
- package/dist/types/generated/createNodeSDK.d.ts +30 -0
- package/dist/types/generated/protos/akash/bme/v1/params.d.ts +5 -0
- package/dist/types/generated/protos/akash/bme/v1/types.d.ts +19 -1
- package/dist/types/generated/protos/akash/deployment/v1/deployment.d.ts +15 -0
- package/dist/types/generated/protos/akash/deployment/v1beta4/deploymentmsg.d.ts +6 -1
- package/dist/types/generated/protos/akash/discovery/v1/akash.d.ts +16 -2
- package/dist/types/generated/protos/akash/discovery/v1/client_info.d.ts +18 -0
- package/dist/types/generated/protos/akash/discovery/v1/service.d.ts +12 -0
- package/dist/types/generated/protos/akash/discovery/v1/service_akash.d.ts +13 -0
- package/dist/types/generated/protos/akash/market/v1/event.d.ts +11 -0
- package/dist/types/generated/protos/akash/market/v1/lease.d.ts +8 -0
- package/dist/types/generated/protos/akash/market/v1/reclamation.d.ts +22 -0
- package/dist/types/generated/protos/akash/market/v1beta5/bid.d.ts +3 -0
- package/dist/types/generated/protos/akash/market/v1beta5/bidmsg.d.ts +7 -0
- package/dist/types/generated/protos/akash/market/v1beta5/leasemsg.d.ts +12 -0
- package/dist/types/generated/protos/akash/market/v1beta5/order.d.ts +6 -0
- package/dist/types/generated/protos/akash/market/v1beta5/params.d.ts +5 -0
- package/dist/types/generated/protos/akash/market/v1beta5/service_akash.d.ts +7 -1
- package/dist/types/generated/protos/index.akash.v1.d.ts +5 -3
- package/dist/types/generated/protos/index.akash.v1beta5.d.ts +1 -1
- package/dist/types/network/config.d.ts +4 -5
- package/dist/types/sdk/chain/createChainNodeSDK.d.ts +6 -0
- package/dist/types/sdk/chain/createChainNodeWebSDK.d.ts +6 -0
- package/dist/types/sdk/chain/helpers.d.ts +1 -1
- package/dist/types/sdk/provider/auth/jwt/types.d.ts +4 -58
- package/dist/types/sdk/provider/auth/jwt/validateJwtPayload.d.ts +273 -225
- package/dist/types/sdl/index.d.ts +0 -2
- package/dist/types/sdl/manifest/generateManifest.d.ts +1 -2
- package/dist/types/sdl/validateSDL/validateSDL.d.ts +2 -3
- package/dist/types/sdl/validateSDL/validateSDLInput.d.ts +5 -5
- package/dist/types/test.d.ts +1 -0
- package/package.json +13 -15
- package/dist/cjs/sdl/SDL/SDL.cjs +0 -718
- package/dist/cjs/sdl/SDL/SDL.cjs.map +0 -7
- package/dist/cjs/sdl/SDL/SdlValidationError.cjs +0 -46
- package/dist/cjs/sdl/SDL/SdlValidationError.cjs.map +0 -7
- package/dist/esm/chunk-H5WUFEMM.js.map +0 -7
- package/dist/esm/chunk-HDAINZXA.js.map +0 -7
- package/dist/esm/chunk-KFWTFROT.js.map +0 -7
- package/dist/esm/chunk-LKYHOABO.js.map +0 -7
- package/dist/esm/chunk-OHAEKHAC.js.map +0 -7
- package/dist/esm/chunk-PFJG3V3A.js.map +0 -7
- package/dist/esm/chunk-TXQ2BR6G.js.map +0 -7
- package/dist/esm/chunk-YSOG5YCI.js.map +0 -7
- package/dist/esm/service_akash-QEN5EQUY.js.map +0 -7
- package/dist/types/sdl/SDL/SDL.d.ts +0 -439
- package/dist/types/sdl/SDL/SdlValidationError.d.ts +0 -18
- /package/dist/esm/{chunk-JAPXWQ3D.js.map → chunk-7XWZXYD2.js.map} +0 -0
- /package/dist/esm/{chunk-5RTSSO7K.js.map → chunk-B7H4H62Z.js.map} +0 -0
- /package/dist/esm/{chunk-5YIS3XNX.js.map → chunk-EXKSXOV2.js.map} +0 -0
- /package/dist/esm/{chunk-B4MMOAAO.js.map → chunk-WI3EWXXI.js.map} +0 -0
- /package/dist/esm/{query_akash-3UBRLLRZ.js.map → query_akash-3IY2DKPB.js.map} +0 -0
- /package/dist/esm/{service_akash-UFTUJDPM.js.map → service_akash-2CH5FJ4J.js.map} +0 -0
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
ledgerRecordStatusToJSON,
|
|
10
10
|
mintStatusFromJSON,
|
|
11
11
|
mintStatusToJSON
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-ITPLCNJB.js";
|
|
13
13
|
import {
|
|
14
14
|
patched
|
|
15
15
|
} from "./chunk-QIS4LLV4.js";
|
|
@@ -715,4 +715,4 @@ export {
|
|
|
715
715
|
QueryLedgerRecordsResponse,
|
|
716
716
|
QueryStatusResponse
|
|
717
717
|
};
|
|
718
|
-
//# sourceMappingURL=chunk-
|
|
718
|
+
//# sourceMappingURL=chunk-7XWZXYD2.js.map
|
|
@@ -3,13 +3,13 @@ import {
|
|
|
3
3
|
} from "./chunk-ZG2HL3EK.js";
|
|
4
4
|
import {
|
|
5
5
|
Group
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-T5PKT4I6.js";
|
|
7
7
|
import {
|
|
8
8
|
Params
|
|
9
9
|
} from "./chunk-CVQBDXFP.js";
|
|
10
10
|
import {
|
|
11
11
|
Deployment
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-NPGGO3JN.js";
|
|
13
13
|
import {
|
|
14
14
|
isSet
|
|
15
15
|
} from "./chunk-35BIJBXD.js";
|
|
@@ -361,4 +361,4 @@ export {
|
|
|
361
361
|
EventProviderDeleted,
|
|
362
362
|
GenesisState2
|
|
363
363
|
};
|
|
364
|
-
//# sourceMappingURL=chunk-
|
|
364
|
+
//# sourceMappingURL=chunk-B7H4H62Z.js.map
|
|
@@ -0,0 +1,413 @@
|
|
|
1
|
+
import {
|
|
2
|
+
isSet
|
|
3
|
+
} from "./chunk-35BIJBXD.js";
|
|
4
|
+
|
|
5
|
+
// src/generated/protos/akash/discovery/v1/client_info.ts
|
|
6
|
+
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
7
|
+
function createBaseClientInfo() {
|
|
8
|
+
return { apiVersion: "" };
|
|
9
|
+
}
|
|
10
|
+
var ClientInfo = {
|
|
11
|
+
$type: "akash.discovery.v1.ClientInfo",
|
|
12
|
+
encode(message, writer = new BinaryWriter()) {
|
|
13
|
+
if (message.apiVersion !== "") {
|
|
14
|
+
writer.uint32(10).string(message.apiVersion);
|
|
15
|
+
}
|
|
16
|
+
return writer;
|
|
17
|
+
},
|
|
18
|
+
decode(input, length) {
|
|
19
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
20
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
21
|
+
const message = createBaseClientInfo();
|
|
22
|
+
while (reader.pos < end) {
|
|
23
|
+
const tag = reader.uint32();
|
|
24
|
+
switch (tag >>> 3) {
|
|
25
|
+
case 1: {
|
|
26
|
+
if (tag !== 10) {
|
|
27
|
+
break;
|
|
28
|
+
}
|
|
29
|
+
message.apiVersion = reader.string();
|
|
30
|
+
continue;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
34
|
+
break;
|
|
35
|
+
}
|
|
36
|
+
reader.skip(tag & 7);
|
|
37
|
+
}
|
|
38
|
+
return message;
|
|
39
|
+
},
|
|
40
|
+
fromJSON(object) {
|
|
41
|
+
return { apiVersion: isSet(object.api_version) ? globalThis.String(object.api_version) : "" };
|
|
42
|
+
},
|
|
43
|
+
toJSON(message) {
|
|
44
|
+
const obj = {};
|
|
45
|
+
if (message.apiVersion !== "") {
|
|
46
|
+
obj.api_version = message.apiVersion;
|
|
47
|
+
}
|
|
48
|
+
return obj;
|
|
49
|
+
},
|
|
50
|
+
fromPartial(object) {
|
|
51
|
+
const message = createBaseClientInfo();
|
|
52
|
+
message.apiVersion = object.apiVersion ?? "";
|
|
53
|
+
return message;
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
function createBaseModuleVersion() {
|
|
57
|
+
return { module: "", version: "" };
|
|
58
|
+
}
|
|
59
|
+
var ModuleVersion = {
|
|
60
|
+
$type: "akash.discovery.v1.ModuleVersion",
|
|
61
|
+
encode(message, writer = new BinaryWriter()) {
|
|
62
|
+
if (message.module !== "") {
|
|
63
|
+
writer.uint32(10).string(message.module);
|
|
64
|
+
}
|
|
65
|
+
if (message.version !== "") {
|
|
66
|
+
writer.uint32(18).string(message.version);
|
|
67
|
+
}
|
|
68
|
+
return writer;
|
|
69
|
+
},
|
|
70
|
+
decode(input, length) {
|
|
71
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
72
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
73
|
+
const message = createBaseModuleVersion();
|
|
74
|
+
while (reader.pos < end) {
|
|
75
|
+
const tag = reader.uint32();
|
|
76
|
+
switch (tag >>> 3) {
|
|
77
|
+
case 1: {
|
|
78
|
+
if (tag !== 10) {
|
|
79
|
+
break;
|
|
80
|
+
}
|
|
81
|
+
message.module = reader.string();
|
|
82
|
+
continue;
|
|
83
|
+
}
|
|
84
|
+
case 2: {
|
|
85
|
+
if (tag !== 18) {
|
|
86
|
+
break;
|
|
87
|
+
}
|
|
88
|
+
message.version = reader.string();
|
|
89
|
+
continue;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
93
|
+
break;
|
|
94
|
+
}
|
|
95
|
+
reader.skip(tag & 7);
|
|
96
|
+
}
|
|
97
|
+
return message;
|
|
98
|
+
},
|
|
99
|
+
fromJSON(object) {
|
|
100
|
+
return {
|
|
101
|
+
module: isSet(object.module) ? globalThis.String(object.module) : "",
|
|
102
|
+
version: isSet(object.version) ? globalThis.String(object.version) : ""
|
|
103
|
+
};
|
|
104
|
+
},
|
|
105
|
+
toJSON(message) {
|
|
106
|
+
const obj = {};
|
|
107
|
+
if (message.module !== "") {
|
|
108
|
+
obj.module = message.module;
|
|
109
|
+
}
|
|
110
|
+
if (message.version !== "") {
|
|
111
|
+
obj.version = message.version;
|
|
112
|
+
}
|
|
113
|
+
return obj;
|
|
114
|
+
},
|
|
115
|
+
fromPartial(object) {
|
|
116
|
+
const message = createBaseModuleVersion();
|
|
117
|
+
message.module = object.module ?? "";
|
|
118
|
+
message.version = object.version ?? "";
|
|
119
|
+
return message;
|
|
120
|
+
}
|
|
121
|
+
};
|
|
122
|
+
function createBaseVersionInfo() {
|
|
123
|
+
return { apiVersion: "", modules: [], features: [] };
|
|
124
|
+
}
|
|
125
|
+
var VersionInfo = {
|
|
126
|
+
$type: "akash.discovery.v1.VersionInfo",
|
|
127
|
+
encode(message, writer = new BinaryWriter()) {
|
|
128
|
+
if (message.apiVersion !== "") {
|
|
129
|
+
writer.uint32(10).string(message.apiVersion);
|
|
130
|
+
}
|
|
131
|
+
for (const v of message.modules) {
|
|
132
|
+
ModuleVersion.encode(v, writer.uint32(18).fork()).join();
|
|
133
|
+
}
|
|
134
|
+
for (const v of message.features) {
|
|
135
|
+
writer.uint32(26).string(v);
|
|
136
|
+
}
|
|
137
|
+
return writer;
|
|
138
|
+
},
|
|
139
|
+
decode(input, length) {
|
|
140
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
141
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
142
|
+
const message = createBaseVersionInfo();
|
|
143
|
+
while (reader.pos < end) {
|
|
144
|
+
const tag = reader.uint32();
|
|
145
|
+
switch (tag >>> 3) {
|
|
146
|
+
case 1: {
|
|
147
|
+
if (tag !== 10) {
|
|
148
|
+
break;
|
|
149
|
+
}
|
|
150
|
+
message.apiVersion = reader.string();
|
|
151
|
+
continue;
|
|
152
|
+
}
|
|
153
|
+
case 2: {
|
|
154
|
+
if (tag !== 18) {
|
|
155
|
+
break;
|
|
156
|
+
}
|
|
157
|
+
message.modules.push(ModuleVersion.decode(reader, reader.uint32()));
|
|
158
|
+
continue;
|
|
159
|
+
}
|
|
160
|
+
case 3: {
|
|
161
|
+
if (tag !== 26) {
|
|
162
|
+
break;
|
|
163
|
+
}
|
|
164
|
+
message.features.push(reader.string());
|
|
165
|
+
continue;
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
169
|
+
break;
|
|
170
|
+
}
|
|
171
|
+
reader.skip(tag & 7);
|
|
172
|
+
}
|
|
173
|
+
return message;
|
|
174
|
+
},
|
|
175
|
+
fromJSON(object) {
|
|
176
|
+
return {
|
|
177
|
+
apiVersion: isSet(object.api_version) ? globalThis.String(object.api_version) : "",
|
|
178
|
+
modules: globalThis.Array.isArray(object?.modules) ? object.modules.map((e) => ModuleVersion.fromJSON(e)) : [],
|
|
179
|
+
features: globalThis.Array.isArray(object?.features) ? object.features.map((e) => globalThis.String(e)) : []
|
|
180
|
+
};
|
|
181
|
+
},
|
|
182
|
+
toJSON(message) {
|
|
183
|
+
const obj = {};
|
|
184
|
+
if (message.apiVersion !== "") {
|
|
185
|
+
obj.api_version = message.apiVersion;
|
|
186
|
+
}
|
|
187
|
+
if (message.modules?.length) {
|
|
188
|
+
obj.modules = message.modules.map((e) => ModuleVersion.toJSON(e));
|
|
189
|
+
}
|
|
190
|
+
if (message.features?.length) {
|
|
191
|
+
obj.features = message.features;
|
|
192
|
+
}
|
|
193
|
+
return obj;
|
|
194
|
+
},
|
|
195
|
+
fromPartial(object) {
|
|
196
|
+
const message = createBaseVersionInfo();
|
|
197
|
+
message.apiVersion = object.apiVersion ?? "";
|
|
198
|
+
message.modules = object.modules?.map((e) => ModuleVersion.fromPartial(e)) || [];
|
|
199
|
+
message.features = object.features?.map((e) => e) || [];
|
|
200
|
+
return message;
|
|
201
|
+
}
|
|
202
|
+
};
|
|
203
|
+
|
|
204
|
+
// src/generated/protos/akash/discovery/v1/akash.ts
|
|
205
|
+
import { BinaryReader as BinaryReader2, BinaryWriter as BinaryWriter2 } from "@bufbuild/protobuf/wire";
|
|
206
|
+
function createBaseAkash() {
|
|
207
|
+
return { clientInfo: void 0, supportedVersions: [], chainId: "", nodeVersion: "", minClientVersion: "" };
|
|
208
|
+
}
|
|
209
|
+
var Akash = {
|
|
210
|
+
$type: "akash.discovery.v1.Akash",
|
|
211
|
+
encode(message, writer = new BinaryWriter2()) {
|
|
212
|
+
if (message.clientInfo !== void 0) {
|
|
213
|
+
ClientInfo.encode(message.clientInfo, writer.uint32(10).fork()).join();
|
|
214
|
+
}
|
|
215
|
+
for (const v of message.supportedVersions) {
|
|
216
|
+
VersionInfo.encode(v, writer.uint32(18).fork()).join();
|
|
217
|
+
}
|
|
218
|
+
if (message.chainId !== "") {
|
|
219
|
+
writer.uint32(26).string(message.chainId);
|
|
220
|
+
}
|
|
221
|
+
if (message.nodeVersion !== "") {
|
|
222
|
+
writer.uint32(34).string(message.nodeVersion);
|
|
223
|
+
}
|
|
224
|
+
if (message.minClientVersion !== "") {
|
|
225
|
+
writer.uint32(42).string(message.minClientVersion);
|
|
226
|
+
}
|
|
227
|
+
return writer;
|
|
228
|
+
},
|
|
229
|
+
decode(input, length) {
|
|
230
|
+
const reader = input instanceof BinaryReader2 ? input : new BinaryReader2(input);
|
|
231
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
232
|
+
const message = createBaseAkash();
|
|
233
|
+
while (reader.pos < end) {
|
|
234
|
+
const tag = reader.uint32();
|
|
235
|
+
switch (tag >>> 3) {
|
|
236
|
+
case 1: {
|
|
237
|
+
if (tag !== 10) {
|
|
238
|
+
break;
|
|
239
|
+
}
|
|
240
|
+
message.clientInfo = ClientInfo.decode(reader, reader.uint32());
|
|
241
|
+
continue;
|
|
242
|
+
}
|
|
243
|
+
case 2: {
|
|
244
|
+
if (tag !== 18) {
|
|
245
|
+
break;
|
|
246
|
+
}
|
|
247
|
+
message.supportedVersions.push(VersionInfo.decode(reader, reader.uint32()));
|
|
248
|
+
continue;
|
|
249
|
+
}
|
|
250
|
+
case 3: {
|
|
251
|
+
if (tag !== 26) {
|
|
252
|
+
break;
|
|
253
|
+
}
|
|
254
|
+
message.chainId = reader.string();
|
|
255
|
+
continue;
|
|
256
|
+
}
|
|
257
|
+
case 4: {
|
|
258
|
+
if (tag !== 34) {
|
|
259
|
+
break;
|
|
260
|
+
}
|
|
261
|
+
message.nodeVersion = reader.string();
|
|
262
|
+
continue;
|
|
263
|
+
}
|
|
264
|
+
case 5: {
|
|
265
|
+
if (tag !== 42) {
|
|
266
|
+
break;
|
|
267
|
+
}
|
|
268
|
+
message.minClientVersion = reader.string();
|
|
269
|
+
continue;
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
273
|
+
break;
|
|
274
|
+
}
|
|
275
|
+
reader.skip(tag & 7);
|
|
276
|
+
}
|
|
277
|
+
return message;
|
|
278
|
+
},
|
|
279
|
+
fromJSON(object) {
|
|
280
|
+
return {
|
|
281
|
+
clientInfo: isSet(object.client_info) ? ClientInfo.fromJSON(object.client_info) : void 0,
|
|
282
|
+
supportedVersions: globalThis.Array.isArray(object?.supported_versions) ? object.supported_versions.map((e) => VersionInfo.fromJSON(e)) : [],
|
|
283
|
+
chainId: isSet(object.chain_id) ? globalThis.String(object.chain_id) : "",
|
|
284
|
+
nodeVersion: isSet(object.node_version) ? globalThis.String(object.node_version) : "",
|
|
285
|
+
minClientVersion: isSet(object.min_client_version) ? globalThis.String(object.min_client_version) : ""
|
|
286
|
+
};
|
|
287
|
+
},
|
|
288
|
+
toJSON(message) {
|
|
289
|
+
const obj = {};
|
|
290
|
+
if (message.clientInfo !== void 0) {
|
|
291
|
+
obj.client_info = ClientInfo.toJSON(message.clientInfo);
|
|
292
|
+
}
|
|
293
|
+
if (message.supportedVersions?.length) {
|
|
294
|
+
obj.supported_versions = message.supportedVersions.map((e) => VersionInfo.toJSON(e));
|
|
295
|
+
}
|
|
296
|
+
if (message.chainId !== "") {
|
|
297
|
+
obj.chain_id = message.chainId;
|
|
298
|
+
}
|
|
299
|
+
if (message.nodeVersion !== "") {
|
|
300
|
+
obj.node_version = message.nodeVersion;
|
|
301
|
+
}
|
|
302
|
+
if (message.minClientVersion !== "") {
|
|
303
|
+
obj.min_client_version = message.minClientVersion;
|
|
304
|
+
}
|
|
305
|
+
return obj;
|
|
306
|
+
},
|
|
307
|
+
fromPartial(object) {
|
|
308
|
+
const message = createBaseAkash();
|
|
309
|
+
message.clientInfo = object.clientInfo !== void 0 && object.clientInfo !== null ? ClientInfo.fromPartial(object.clientInfo) : void 0;
|
|
310
|
+
message.supportedVersions = object.supportedVersions?.map((e) => VersionInfo.fromPartial(e)) || [];
|
|
311
|
+
message.chainId = object.chainId ?? "";
|
|
312
|
+
message.nodeVersion = object.nodeVersion ?? "";
|
|
313
|
+
message.minClientVersion = object.minClientVersion ?? "";
|
|
314
|
+
return message;
|
|
315
|
+
}
|
|
316
|
+
};
|
|
317
|
+
|
|
318
|
+
// src/generated/protos/akash/discovery/v1/service.ts
|
|
319
|
+
import { BinaryReader as BinaryReader3, BinaryWriter as BinaryWriter3 } from "@bufbuild/protobuf/wire";
|
|
320
|
+
function createBaseGetInfoRequest() {
|
|
321
|
+
return {};
|
|
322
|
+
}
|
|
323
|
+
var GetInfoRequest = {
|
|
324
|
+
$type: "akash.discovery.v1.GetInfoRequest",
|
|
325
|
+
encode(_, writer = new BinaryWriter3()) {
|
|
326
|
+
return writer;
|
|
327
|
+
},
|
|
328
|
+
decode(input, length) {
|
|
329
|
+
const reader = input instanceof BinaryReader3 ? input : new BinaryReader3(input);
|
|
330
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
331
|
+
const message = createBaseGetInfoRequest();
|
|
332
|
+
while (reader.pos < end) {
|
|
333
|
+
const tag = reader.uint32();
|
|
334
|
+
switch (tag >>> 3) {
|
|
335
|
+
}
|
|
336
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
337
|
+
break;
|
|
338
|
+
}
|
|
339
|
+
reader.skip(tag & 7);
|
|
340
|
+
}
|
|
341
|
+
return message;
|
|
342
|
+
},
|
|
343
|
+
fromJSON(_) {
|
|
344
|
+
return {};
|
|
345
|
+
},
|
|
346
|
+
toJSON(_) {
|
|
347
|
+
const obj = {};
|
|
348
|
+
return obj;
|
|
349
|
+
},
|
|
350
|
+
fromPartial(_) {
|
|
351
|
+
const message = createBaseGetInfoRequest();
|
|
352
|
+
return message;
|
|
353
|
+
}
|
|
354
|
+
};
|
|
355
|
+
function createBaseGetInfoResponse() {
|
|
356
|
+
return { info: void 0 };
|
|
357
|
+
}
|
|
358
|
+
var GetInfoResponse = {
|
|
359
|
+
$type: "akash.discovery.v1.GetInfoResponse",
|
|
360
|
+
encode(message, writer = new BinaryWriter3()) {
|
|
361
|
+
if (message.info !== void 0) {
|
|
362
|
+
Akash.encode(message.info, writer.uint32(10).fork()).join();
|
|
363
|
+
}
|
|
364
|
+
return writer;
|
|
365
|
+
},
|
|
366
|
+
decode(input, length) {
|
|
367
|
+
const reader = input instanceof BinaryReader3 ? input : new BinaryReader3(input);
|
|
368
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
369
|
+
const message = createBaseGetInfoResponse();
|
|
370
|
+
while (reader.pos < end) {
|
|
371
|
+
const tag = reader.uint32();
|
|
372
|
+
switch (tag >>> 3) {
|
|
373
|
+
case 1: {
|
|
374
|
+
if (tag !== 10) {
|
|
375
|
+
break;
|
|
376
|
+
}
|
|
377
|
+
message.info = Akash.decode(reader, reader.uint32());
|
|
378
|
+
continue;
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
382
|
+
break;
|
|
383
|
+
}
|
|
384
|
+
reader.skip(tag & 7);
|
|
385
|
+
}
|
|
386
|
+
return message;
|
|
387
|
+
},
|
|
388
|
+
fromJSON(object) {
|
|
389
|
+
return { info: isSet(object.info) ? Akash.fromJSON(object.info) : void 0 };
|
|
390
|
+
},
|
|
391
|
+
toJSON(message) {
|
|
392
|
+
const obj = {};
|
|
393
|
+
if (message.info !== void 0) {
|
|
394
|
+
obj.info = Akash.toJSON(message.info);
|
|
395
|
+
}
|
|
396
|
+
return obj;
|
|
397
|
+
},
|
|
398
|
+
fromPartial(object) {
|
|
399
|
+
const message = createBaseGetInfoResponse();
|
|
400
|
+
message.info = object.info !== void 0 && object.info !== null ? Akash.fromPartial(object.info) : void 0;
|
|
401
|
+
return message;
|
|
402
|
+
}
|
|
403
|
+
};
|
|
404
|
+
|
|
405
|
+
export {
|
|
406
|
+
ClientInfo,
|
|
407
|
+
ModuleVersion,
|
|
408
|
+
VersionInfo,
|
|
409
|
+
Akash,
|
|
410
|
+
GetInfoRequest,
|
|
411
|
+
GetInfoResponse
|
|
412
|
+
};
|
|
413
|
+
//# sourceMappingURL=chunk-E4KEMLL4.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/generated/protos/akash/discovery/v1/client_info.ts", "../../src/generated/protos/akash/discovery/v1/akash.ts", "../../src/generated/protos/akash/discovery/v1/service.ts"],
|
|
4
|
+
"sourcesContent": ["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/discovery/v1/client_info.proto\n\n/* eslint-disable */\nimport { BinaryReader, BinaryWriter } from \"@bufbuild/protobuf/wire\";\nimport Long from \"long\";\n\n/** ClientInfo is the akash specific client info. */\nexport interface ClientInfo {\n /** ApiVersion is the version of the API running on the client. */\n apiVersion: string;\n}\n\n/** ModuleVersion describes a single module and its API version. */\nexport interface ModuleVersion {\n /** Module is the name of the module (e.g., \"deployment\", \"market\", \"oracle\"). */\n module: string;\n /** Version is the API version of the module (e.g., \"v1beta4\", \"v1beta5\", \"v2\"). */\n version: string;\n}\n\n/** VersionInfo describes a complete API version and its metadata. */\nexport interface VersionInfo {\n /** ApiVersion is the composite API version identifier (e.g., \"v1beta4\"). */\n apiVersion: string;\n /** Modules lists the per-module versions included in this API version. */\n modules: ModuleVersion[];\n /** Features lists optional feature flags supported by this API version. */\n features: string[];\n}\n\nfunction createBaseClientInfo(): ClientInfo {\n return { apiVersion: \"\" };\n}\n\nexport const ClientInfo: MessageFns<ClientInfo, \"akash.discovery.v1.ClientInfo\"> = {\n $type: \"akash.discovery.v1.ClientInfo\" as const,\n\n encode(message: ClientInfo, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {\n if (message.apiVersion !== \"\") {\n writer.uint32(10).string(message.apiVersion);\n }\n return writer;\n },\n\n decode(input: BinaryReader | Uint8Array, length?: number): ClientInfo {\n const reader = input instanceof BinaryReader ? input : new BinaryReader(input);\n const end = length === undefined ? reader.len : reader.pos + length;\n const message = createBaseClientInfo();\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.apiVersion = reader.string();\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): ClientInfo {\n return { apiVersion: isSet(object.api_version) ? globalThis.String(object.api_version) : \"\" };\n },\n\n toJSON(message: ClientInfo): unknown {\n const obj: any = {};\n if (message.apiVersion !== \"\") {\n obj.api_version = message.apiVersion;\n }\n return obj;\n },\n fromPartial(object: DeepPartial<ClientInfo>): ClientInfo {\n const message = createBaseClientInfo();\n message.apiVersion = object.apiVersion ?? \"\";\n return message;\n },\n};\n\nfunction createBaseModuleVersion(): ModuleVersion {\n return { module: \"\", version: \"\" };\n}\n\nexport const ModuleVersion: MessageFns<ModuleVersion, \"akash.discovery.v1.ModuleVersion\"> = {\n $type: \"akash.discovery.v1.ModuleVersion\" as const,\n\n encode(message: ModuleVersion, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {\n if (message.module !== \"\") {\n writer.uint32(10).string(message.module);\n }\n if (message.version !== \"\") {\n writer.uint32(18).string(message.version);\n }\n return writer;\n },\n\n decode(input: BinaryReader | Uint8Array, length?: number): ModuleVersion {\n const reader = input instanceof BinaryReader ? input : new BinaryReader(input);\n const end = length === undefined ? reader.len : reader.pos + length;\n const message = createBaseModuleVersion();\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.module = reader.string();\n continue;\n }\n case 2: {\n if (tag !== 18) {\n break;\n }\n\n message.version = reader.string();\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): ModuleVersion {\n return {\n module: isSet(object.module) ? globalThis.String(object.module) : \"\",\n version: isSet(object.version) ? globalThis.String(object.version) : \"\",\n };\n },\n\n toJSON(message: ModuleVersion): unknown {\n const obj: any = {};\n if (message.module !== \"\") {\n obj.module = message.module;\n }\n if (message.version !== \"\") {\n obj.version = message.version;\n }\n return obj;\n },\n fromPartial(object: DeepPartial<ModuleVersion>): ModuleVersion {\n const message = createBaseModuleVersion();\n message.module = object.module ?? \"\";\n message.version = object.version ?? \"\";\n return message;\n },\n};\n\nfunction createBaseVersionInfo(): VersionInfo {\n return { apiVersion: \"\", modules: [], features: [] };\n}\n\nexport const VersionInfo: MessageFns<VersionInfo, \"akash.discovery.v1.VersionInfo\"> = {\n $type: \"akash.discovery.v1.VersionInfo\" as const,\n\n encode(message: VersionInfo, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {\n if (message.apiVersion !== \"\") {\n writer.uint32(10).string(message.apiVersion);\n }\n for (const v of message.modules) {\n ModuleVersion.encode(v!, writer.uint32(18).fork()).join();\n }\n for (const v of message.features) {\n writer.uint32(26).string(v!);\n }\n return writer;\n },\n\n decode(input: BinaryReader | Uint8Array, length?: number): VersionInfo {\n const reader = input instanceof BinaryReader ? input : new BinaryReader(input);\n const end = length === undefined ? reader.len : reader.pos + length;\n const message = createBaseVersionInfo();\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.apiVersion = reader.string();\n continue;\n }\n case 2: {\n if (tag !== 18) {\n break;\n }\n\n message.modules.push(ModuleVersion.decode(reader, reader.uint32()));\n continue;\n }\n case 3: {\n if (tag !== 26) {\n break;\n }\n\n message.features.push(reader.string());\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): VersionInfo {\n return {\n apiVersion: isSet(object.api_version) ? globalThis.String(object.api_version) : \"\",\n modules: globalThis.Array.isArray(object?.modules)\n ? object.modules.map((e: any) => ModuleVersion.fromJSON(e))\n : [],\n features: globalThis.Array.isArray(object?.features) ? object.features.map((e: any) => globalThis.String(e)) : [],\n };\n },\n\n toJSON(message: VersionInfo): unknown {\n const obj: any = {};\n if (message.apiVersion !== \"\") {\n obj.api_version = message.apiVersion;\n }\n if (message.modules?.length) {\n obj.modules = message.modules.map((e) => ModuleVersion.toJSON(e));\n }\n if (message.features?.length) {\n obj.features = message.features;\n }\n return obj;\n },\n fromPartial(object: DeepPartial<VersionInfo>): VersionInfo {\n const message = createBaseVersionInfo();\n message.apiVersion = object.apiVersion ?? \"\";\n message.modules = object.modules?.map((e) => ModuleVersion.fromPartial(e)) || [];\n message.features = object.features?.map((e) => 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/discovery/v1/akash.proto\n\n/* eslint-disable */\nimport { BinaryReader, BinaryWriter } from \"@bufbuild/protobuf/wire\";\nimport Long from \"long\";\nimport { ClientInfo, VersionInfo } from \"./client_info.ts\";\n\n/** Akash akash specific RPC parameters. */\nexport interface Akash {\n /**\n * ClientInfo holds information about the client.\n * Kept for backward compatibility. New clients should use supported_versions.\n */\n clientInfo:\n | ClientInfo\n | undefined;\n /**\n * SupportedVersions lists all API versions the node supports.\n * Clients should pick the best match from this list.\n */\n supportedVersions: VersionInfo[];\n /** ChainID is the identifier of the blockchain network. */\n chainId: string;\n /** NodeVersion is the software version of the node. */\n nodeVersion: string;\n /** MinClientVersion is the minimum client version the node accepts. */\n minClientVersion: string;\n}\n\nfunction createBaseAkash(): Akash {\n return { clientInfo: undefined, supportedVersions: [], chainId: \"\", nodeVersion: \"\", minClientVersion: \"\" };\n}\n\nexport const Akash: MessageFns<Akash, \"akash.discovery.v1.Akash\"> = {\n $type: \"akash.discovery.v1.Akash\" as const,\n\n encode(message: Akash, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {\n if (message.clientInfo !== undefined) {\n ClientInfo.encode(message.clientInfo, writer.uint32(10).fork()).join();\n }\n for (const v of message.supportedVersions) {\n VersionInfo.encode(v!, writer.uint32(18).fork()).join();\n }\n if (message.chainId !== \"\") {\n writer.uint32(26).string(message.chainId);\n }\n if (message.nodeVersion !== \"\") {\n writer.uint32(34).string(message.nodeVersion);\n }\n if (message.minClientVersion !== \"\") {\n writer.uint32(42).string(message.minClientVersion);\n }\n return writer;\n },\n\n decode(input: BinaryReader | Uint8Array, length?: number): Akash {\n const reader = input instanceof BinaryReader ? input : new BinaryReader(input);\n const end = length === undefined ? reader.len : reader.pos + length;\n const message = createBaseAkash();\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.clientInfo = ClientInfo.decode(reader, reader.uint32());\n continue;\n }\n case 2: {\n if (tag !== 18) {\n break;\n }\n\n message.supportedVersions.push(VersionInfo.decode(reader, reader.uint32()));\n continue;\n }\n case 3: {\n if (tag !== 26) {\n break;\n }\n\n message.chainId = reader.string();\n continue;\n }\n case 4: {\n if (tag !== 34) {\n break;\n }\n\n message.nodeVersion = reader.string();\n continue;\n }\n case 5: {\n if (tag !== 42) {\n break;\n }\n\n message.minClientVersion = reader.string();\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): Akash {\n return {\n clientInfo: isSet(object.client_info) ? ClientInfo.fromJSON(object.client_info) : undefined,\n supportedVersions: globalThis.Array.isArray(object?.supported_versions)\n ? object.supported_versions.map((e: any) => VersionInfo.fromJSON(e))\n : [],\n chainId: isSet(object.chain_id) ? globalThis.String(object.chain_id) : \"\",\n nodeVersion: isSet(object.node_version) ? globalThis.String(object.node_version) : \"\",\n minClientVersion: isSet(object.min_client_version) ? globalThis.String(object.min_client_version) : \"\",\n };\n },\n\n toJSON(message: Akash): unknown {\n const obj: any = {};\n if (message.clientInfo !== undefined) {\n obj.client_info = ClientInfo.toJSON(message.clientInfo);\n }\n if (message.supportedVersions?.length) {\n obj.supported_versions = message.supportedVersions.map((e) => VersionInfo.toJSON(e));\n }\n if (message.chainId !== \"\") {\n obj.chain_id = message.chainId;\n }\n if (message.nodeVersion !== \"\") {\n obj.node_version = message.nodeVersion;\n }\n if (message.minClientVersion !== \"\") {\n obj.min_client_version = message.minClientVersion;\n }\n return obj;\n },\n fromPartial(object: DeepPartial<Akash>): Akash {\n const message = createBaseAkash();\n message.clientInfo = (object.clientInfo !== undefined && object.clientInfo !== null)\n ? ClientInfo.fromPartial(object.clientInfo)\n : undefined;\n message.supportedVersions = object.supportedVersions?.map((e) => VersionInfo.fromPartial(e)) || [];\n message.chainId = object.chainId ?? \"\";\n message.nodeVersion = object.nodeVersion ?? \"\";\n message.minClientVersion = object.minClientVersion ?? \"\";\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/discovery/v1/service.proto\n\n/* eslint-disable */\nimport { BinaryReader, BinaryWriter } from \"@bufbuild/protobuf/wire\";\nimport Long from \"long\";\nimport { Akash } from \"./akash.ts\";\n\n/** GetInfoRequest is the request type for the Discovery/GetInfo RPC method. */\nexport interface GetInfoRequest {\n}\n\n/** GetInfoResponse is the response type for the Discovery/GetInfo RPC method. */\nexport interface GetInfoResponse {\n /** Info contains the node's version and capability information. */\n info: Akash | undefined;\n}\n\nfunction createBaseGetInfoRequest(): GetInfoRequest {\n return {};\n}\n\nexport const GetInfoRequest: MessageFns<GetInfoRequest, \"akash.discovery.v1.GetInfoRequest\"> = {\n $type: \"akash.discovery.v1.GetInfoRequest\" as const,\n\n encode(_: GetInfoRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {\n return writer;\n },\n\n decode(input: BinaryReader | Uint8Array, length?: number): GetInfoRequest {\n const reader = input instanceof BinaryReader ? input : new BinaryReader(input);\n const end = length === undefined ? reader.len : reader.pos + length;\n const message = createBaseGetInfoRequest();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n }\n if ((tag & 7) === 4 || tag === 0) {\n break;\n }\n reader.skip(tag & 7);\n }\n return message;\n },\n\n fromJSON(_: any): GetInfoRequest {\n return {};\n },\n\n toJSON(_: GetInfoRequest): unknown {\n const obj: any = {};\n return obj;\n },\n fromPartial(_: DeepPartial<GetInfoRequest>): GetInfoRequest {\n const message = createBaseGetInfoRequest();\n return message;\n },\n};\n\nfunction createBaseGetInfoResponse(): GetInfoResponse {\n return { info: undefined };\n}\n\nexport const GetInfoResponse: MessageFns<GetInfoResponse, \"akash.discovery.v1.GetInfoResponse\"> = {\n $type: \"akash.discovery.v1.GetInfoResponse\" as const,\n\n encode(message: GetInfoResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {\n if (message.info !== undefined) {\n Akash.encode(message.info, writer.uint32(10).fork()).join();\n }\n return writer;\n },\n\n decode(input: BinaryReader | Uint8Array, length?: number): GetInfoResponse {\n const reader = input instanceof BinaryReader ? input : new BinaryReader(input);\n const end = length === undefined ? reader.len : reader.pos + length;\n const message = createBaseGetInfoResponse();\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.info = Akash.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): GetInfoResponse {\n return { info: isSet(object.info) ? Akash.fromJSON(object.info) : undefined };\n },\n\n toJSON(message: GetInfoResponse): unknown {\n const obj: any = {};\n if (message.info !== undefined) {\n obj.info = Akash.toJSON(message.info);\n }\n return obj;\n },\n fromPartial(object: DeepPartial<GetInfoResponse>): GetInfoResponse {\n const message = createBaseGetInfoResponse();\n message.info = (object.info !== undefined && object.info !== null) ? Akash.fromPartial(object.info) : undefined;\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;AA2B3C,SAAS,uBAAmC;AAC1C,SAAO,EAAE,YAAY,GAAG;AAC1B;AAEO,IAAM,aAAsE;AAAA,EACjF,OAAO;AAAA,EAEP,OAAO,SAAqB,SAAuB,IAAI,aAAa,GAAiB;AACnF,QAAI,QAAQ,eAAe,IAAI;AAC7B,aAAO,OAAO,EAAE,EAAE,OAAO,QAAQ,UAAU;AAAA,IAC7C;AACA,WAAO;AAAA,EACT;AAAA,EAEA,OAAO,OAAkC,QAA6B;AACpE,UAAM,SAAS,iBAAiB,eAAe,QAAQ,IAAI,aAAa,KAAK;AAC7E,UAAM,MAAM,WAAW,SAAY,OAAO,MAAM,OAAO,MAAM;AAC7D,UAAM,UAAU,qBAAqB;AACrC,WAAO,OAAO,M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Reader"]
|
|
7
|
+
}
|
|
@@ -2,12 +2,15 @@ import {
|
|
|
2
2
|
Params
|
|
3
3
|
} from "./chunk-CVQBDXFP.js";
|
|
4
4
|
import {
|
|
5
|
-
DeploymentID,
|
|
6
5
|
GroupID
|
|
7
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-IMR6WS6F.js";
|
|
8
7
|
import {
|
|
9
8
|
GroupSpec
|
|
10
9
|
} from "./chunk-RUC3LXDX.js";
|
|
10
|
+
import {
|
|
11
|
+
DeploymentID,
|
|
12
|
+
DeploymentReclamation
|
|
13
|
+
} from "./chunk-NPGGO3JN.js";
|
|
11
14
|
import {
|
|
12
15
|
Deposit
|
|
13
16
|
} from "./chunk-NX2OO5DC.js";
|
|
@@ -20,7 +23,7 @@ import {
|
|
|
20
23
|
// src/generated/protos/akash/deployment/v1beta4/deploymentmsg.ts
|
|
21
24
|
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
22
25
|
function createBaseMsgCreateDeployment() {
|
|
23
|
-
return { id: void 0, groups: [], hash: new Uint8Array(0), deposit: void 0 };
|
|
26
|
+
return { id: void 0, groups: [], hash: new Uint8Array(0), deposit: void 0, reclamation: void 0 };
|
|
24
27
|
}
|
|
25
28
|
var MsgCreateDeployment = {
|
|
26
29
|
$type: "akash.deployment.v1beta4.MsgCreateDeployment",
|
|
@@ -37,6 +40,9 @@ var MsgCreateDeployment = {
|
|
|
37
40
|
if (message.deposit !== void 0) {
|
|
38
41
|
Deposit.encode(message.deposit, writer.uint32(34).fork()).join();
|
|
39
42
|
}
|
|
43
|
+
if (message.reclamation !== void 0) {
|
|
44
|
+
DeploymentReclamation.encode(message.reclamation, writer.uint32(42).fork()).join();
|
|
45
|
+
}
|
|
40
46
|
return writer;
|
|
41
47
|
},
|
|
42
48
|
decode(input, length) {
|
|
@@ -74,6 +80,13 @@ var MsgCreateDeployment = {
|
|
|
74
80
|
message.deposit = Deposit.decode(reader, reader.uint32());
|
|
75
81
|
continue;
|
|
76
82
|
}
|
|
83
|
+
case 5: {
|
|
84
|
+
if (tag !== 42) {
|
|
85
|
+
break;
|
|
86
|
+
}
|
|
87
|
+
message.reclamation = DeploymentReclamation.decode(reader, reader.uint32());
|
|
88
|
+
continue;
|
|
89
|
+
}
|
|
77
90
|
}
|
|
78
91
|
if ((tag & 7) === 4 || tag === 0) {
|
|
79
92
|
break;
|
|
@@ -87,7 +100,8 @@ var MsgCreateDeployment = {
|
|
|
87
100
|
id: isSet(object.id) ? DeploymentID.fromJSON(object.id) : void 0,
|
|
88
101
|
groups: globalThis.Array.isArray(object?.groups) ? object.groups.map((e) => GroupSpec.fromJSON(e)) : [],
|
|
89
102
|
hash: isSet(object.hash) ? bytesFromBase64(object.hash) : new Uint8Array(0),
|
|
90
|
-
deposit: isSet(object.deposit) ? Deposit.fromJSON(object.deposit) : void 0
|
|
103
|
+
deposit: isSet(object.deposit) ? Deposit.fromJSON(object.deposit) : void 0,
|
|
104
|
+
reclamation: isSet(object.reclamation) ? DeploymentReclamation.fromJSON(object.reclamation) : void 0
|
|
91
105
|
};
|
|
92
106
|
},
|
|
93
107
|
toJSON(message) {
|
|
@@ -104,6 +118,9 @@ var MsgCreateDeployment = {
|
|
|
104
118
|
if (message.deposit !== void 0) {
|
|
105
119
|
obj.deposit = Deposit.toJSON(message.deposit);
|
|
106
120
|
}
|
|
121
|
+
if (message.reclamation !== void 0) {
|
|
122
|
+
obj.reclamation = DeploymentReclamation.toJSON(message.reclamation);
|
|
123
|
+
}
|
|
107
124
|
return obj;
|
|
108
125
|
},
|
|
109
126
|
fromPartial(object) {
|
|
@@ -112,6 +129,7 @@ var MsgCreateDeployment = {
|
|
|
112
129
|
message.groups = object.groups?.map((e) => GroupSpec.fromPartial(e)) || [];
|
|
113
130
|
message.hash = object.hash ?? new Uint8Array(0);
|
|
114
131
|
message.deposit = object.deposit !== void 0 && object.deposit !== null ? Deposit.fromPartial(object.deposit) : void 0;
|
|
132
|
+
message.reclamation = object.reclamation !== void 0 && object.reclamation !== null ? DeploymentReclamation.fromPartial(object.reclamation) : void 0;
|
|
115
133
|
return message;
|
|
116
134
|
}
|
|
117
135
|
};
|
|
@@ -711,4 +729,4 @@ export {
|
|
|
711
729
|
MsgUpdateParams,
|
|
712
730
|
MsgUpdateParamsResponse
|
|
713
731
|
};
|
|
714
|
-
//# sourceMappingURL=chunk-
|
|
732
|
+
//# sourceMappingURL=chunk-EG6EVQGI.js.map
|