@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
|
@@ -22,6 +22,8 @@ __export(leasemsg_exports, {
|
|
|
22
22
|
MsgCloseLeaseResponse: () => MsgCloseLeaseResponse,
|
|
23
23
|
MsgCreateLease: () => MsgCreateLease,
|
|
24
24
|
MsgCreateLeaseResponse: () => MsgCreateLeaseResponse,
|
|
25
|
+
MsgLeaseStartReclaim: () => MsgLeaseStartReclaim,
|
|
26
|
+
MsgLeaseStartReclaimResponse: () => MsgLeaseStartReclaimResponse,
|
|
25
27
|
MsgWithdrawLease: () => MsgWithdrawLease,
|
|
26
28
|
MsgWithdrawLeaseResponse: () => MsgWithdrawLeaseResponse
|
|
27
29
|
});
|
|
@@ -300,6 +302,107 @@ const MsgCloseLeaseResponse = {
|
|
|
300
302
|
return message;
|
|
301
303
|
}
|
|
302
304
|
};
|
|
305
|
+
function createBaseMsgLeaseStartReclaim() {
|
|
306
|
+
return { id: void 0, reason: 0 };
|
|
307
|
+
}
|
|
308
|
+
const MsgLeaseStartReclaim = {
|
|
309
|
+
$type: "akash.market.v1beta5.MsgLeaseStartReclaim",
|
|
310
|
+
encode(message, writer = new import_wire.BinaryWriter()) {
|
|
311
|
+
if (message.id !== void 0) {
|
|
312
|
+
import_lease.LeaseID.encode(message.id, writer.uint32(10).fork()).join();
|
|
313
|
+
}
|
|
314
|
+
if (message.reason !== 0) {
|
|
315
|
+
writer.uint32(16).int32(message.reason);
|
|
316
|
+
}
|
|
317
|
+
return writer;
|
|
318
|
+
},
|
|
319
|
+
decode(input, length) {
|
|
320
|
+
const reader = input instanceof import_wire.BinaryReader ? input : new import_wire.BinaryReader(input);
|
|
321
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
322
|
+
const message = createBaseMsgLeaseStartReclaim();
|
|
323
|
+
while (reader.pos < end) {
|
|
324
|
+
const tag = reader.uint32();
|
|
325
|
+
switch (tag >>> 3) {
|
|
326
|
+
case 1: {
|
|
327
|
+
if (tag !== 10) {
|
|
328
|
+
break;
|
|
329
|
+
}
|
|
330
|
+
message.id = import_lease.LeaseID.decode(reader, reader.uint32());
|
|
331
|
+
continue;
|
|
332
|
+
}
|
|
333
|
+
case 2: {
|
|
334
|
+
if (tag !== 16) {
|
|
335
|
+
break;
|
|
336
|
+
}
|
|
337
|
+
message.reason = reader.int32();
|
|
338
|
+
continue;
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
342
|
+
break;
|
|
343
|
+
}
|
|
344
|
+
reader.skip(tag & 7);
|
|
345
|
+
}
|
|
346
|
+
return message;
|
|
347
|
+
},
|
|
348
|
+
fromJSON(object) {
|
|
349
|
+
return {
|
|
350
|
+
id: (0, import_typeEncodingHelpers.isSet)(object.id) ? import_lease.LeaseID.fromJSON(object.id) : void 0,
|
|
351
|
+
reason: (0, import_typeEncodingHelpers.isSet)(object.reason) ? (0, import_types.leaseClosedReasonFromJSON)(object.reason) : 0
|
|
352
|
+
};
|
|
353
|
+
},
|
|
354
|
+
toJSON(message) {
|
|
355
|
+
const obj = {};
|
|
356
|
+
if (message.id !== void 0) {
|
|
357
|
+
obj.id = import_lease.LeaseID.toJSON(message.id);
|
|
358
|
+
}
|
|
359
|
+
if (message.reason !== 0) {
|
|
360
|
+
obj.reason = (0, import_types.leaseClosedReasonToJSON)(message.reason);
|
|
361
|
+
}
|
|
362
|
+
return obj;
|
|
363
|
+
},
|
|
364
|
+
fromPartial(object) {
|
|
365
|
+
const message = createBaseMsgLeaseStartReclaim();
|
|
366
|
+
message.id = object.id !== void 0 && object.id !== null ? import_lease.LeaseID.fromPartial(object.id) : void 0;
|
|
367
|
+
message.reason = object.reason ?? 0;
|
|
368
|
+
return message;
|
|
369
|
+
}
|
|
370
|
+
};
|
|
371
|
+
function createBaseMsgLeaseStartReclaimResponse() {
|
|
372
|
+
return {};
|
|
373
|
+
}
|
|
374
|
+
const MsgLeaseStartReclaimResponse = {
|
|
375
|
+
$type: "akash.market.v1beta5.MsgLeaseStartReclaimResponse",
|
|
376
|
+
encode(_, writer = new import_wire.BinaryWriter()) {
|
|
377
|
+
return writer;
|
|
378
|
+
},
|
|
379
|
+
decode(input, length) {
|
|
380
|
+
const reader = input instanceof import_wire.BinaryReader ? input : new import_wire.BinaryReader(input);
|
|
381
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
382
|
+
const message = createBaseMsgLeaseStartReclaimResponse();
|
|
383
|
+
while (reader.pos < end) {
|
|
384
|
+
const tag = reader.uint32();
|
|
385
|
+
switch (tag >>> 3) {
|
|
386
|
+
}
|
|
387
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
388
|
+
break;
|
|
389
|
+
}
|
|
390
|
+
reader.skip(tag & 7);
|
|
391
|
+
}
|
|
392
|
+
return message;
|
|
393
|
+
},
|
|
394
|
+
fromJSON(_) {
|
|
395
|
+
return {};
|
|
396
|
+
},
|
|
397
|
+
toJSON(_) {
|
|
398
|
+
const obj = {};
|
|
399
|
+
return obj;
|
|
400
|
+
},
|
|
401
|
+
fromPartial(_) {
|
|
402
|
+
const message = createBaseMsgLeaseStartReclaimResponse();
|
|
403
|
+
return message;
|
|
404
|
+
}
|
|
405
|
+
};
|
|
303
406
|
function _unused_isSet(value) {
|
|
304
407
|
return value !== null && value !== void 0;
|
|
305
408
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../../../../src/generated/protos/akash/market/v1beta5/leasemsg.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/market/v1beta5/leasemsg.proto\n\n/* eslint-disable */\nimport { BinaryReader, BinaryWriter } from \"@bufbuild/protobuf/wire\";\nimport Long from \"long\";\nimport { BidID } from \"../v1/bid.ts\";\nimport { LeaseID } from \"../v1/lease.ts\";\nimport { LeaseClosedReason, leaseClosedReasonFromJSON, leaseClosedReasonToJSON } from \"../v1/types.ts\";\n\n/** MsgCreateLease is sent to create a lease. */\nexport interface MsgCreateLease {\n /** BidId is the unique identifier of the Bid. */\n bidId: BidID | undefined;\n}\n\n/** MsgCreateLeaseResponse is the response from creating a lease. */\nexport interface MsgCreateLeaseResponse {\n}\n\n/** MsgWithdrawLease defines an SDK message for withdrawing lease funds. */\nexport interface MsgWithdrawLease {\n /** BidId is the unique identifier of the Bid. */\n id: LeaseID | undefined;\n}\n\n/** MsgWithdrawLeaseResponse defines the Msg/WithdrawLease response type. */\nexport interface MsgWithdrawLeaseResponse {\n}\n\n/** MsgCloseLease defines an SDK message for closing order. */\nexport interface MsgCloseLease {\n /** LeaseID is the unique identifier of the Lease. */\n id: LeaseID | undefined;\n reason: LeaseClosedReason;\n}\n\n/** MsgCloseLeaseResponse defines the Msg/CloseLease response type. */\nexport interface MsgCloseLeaseResponse {\n}\n\nfunction createBaseMsgCreateLease(): MsgCreateLease {\n return { bidId: undefined };\n}\n\nexport const MsgCreateLease: MessageFns<MsgCreateLease, \"akash.market.v1beta5.MsgCreateLease\"> = {\n $type: \"akash.market.v1beta5.MsgCreateLease\" as const,\n\n encode(message: MsgCreateLease, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {\n if (message.bidId !== undefined) {\n BidID.encode(message.bidId, writer.uint32(10).fork()).join();\n }\n return writer;\n },\n\n decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateLease {\n const reader = input instanceof BinaryReader ? input : new BinaryReader(input);\n const end = length === undefined ? reader.len : reader.pos + length;\n const message = createBaseMsgCreateLease();\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.bidId = BidID.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): MsgCreateLease {\n return { bidId: isSet(object.bid_id) ? BidID.fromJSON(object.bid_id) : undefined };\n },\n\n toJSON(message: MsgCreateLease): unknown {\n const obj: any = {};\n if (message.bidId !== undefined) {\n obj.bid_id = BidID.toJSON(message.bidId);\n }\n return obj;\n },\n fromPartial(object: DeepPartial<MsgCreateLease>): MsgCreateLease {\n const message = createBaseMsgCreateLease();\n message.bidId = (object.bidId !== undefined && object.bidId !== null) ? BidID.fromPartial(object.bidId) : undefined;\n return message;\n },\n};\n\nfunction createBaseMsgCreateLeaseResponse(): MsgCreateLeaseResponse {\n return {};\n}\n\nexport const MsgCreateLeaseResponse: MessageFns<MsgCreateLeaseResponse, \"akash.market.v1beta5.MsgCreateLeaseResponse\"> =\n {\n $type: \"akash.market.v1beta5.MsgCreateLeaseResponse\" as const,\n\n encode(_: MsgCreateLeaseResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {\n return writer;\n },\n\n decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateLeaseResponse {\n const reader = input instanceof BinaryReader ? input : new BinaryReader(input);\n const end = length === undefined ? reader.len : reader.pos + length;\n const message = createBaseMsgCreateLeaseResponse();\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): MsgCreateLeaseResponse {\n return {};\n },\n\n toJSON(_: MsgCreateLeaseResponse): unknown {\n const obj: any = {};\n return obj;\n },\n fromPartial(_: DeepPartial<MsgCreateLeaseResponse>): MsgCreateLeaseResponse {\n const message = createBaseMsgCreateLeaseResponse();\n return message;\n },\n };\n\nfunction createBaseMsgWithdrawLease(): MsgWithdrawLease {\n return { id: undefined };\n}\n\nexport const MsgWithdrawLease: MessageFns<MsgWithdrawLease, \"akash.market.v1beta5.MsgWithdrawLease\"> = {\n $type: \"akash.market.v1beta5.MsgWithdrawLease\" as const,\n\n encode(message: MsgWithdrawLease, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {\n if (message.id !== undefined) {\n LeaseID.encode(message.id, writer.uint32(10).fork()).join();\n }\n return writer;\n },\n\n decode(input: BinaryReader | Uint8Array, length?: number): MsgWithdrawLease {\n const reader = input instanceof BinaryReader ? input : new BinaryReader(input);\n const end = length === undefined ? reader.len : reader.pos + length;\n const message = createBaseMsgWithdrawLease();\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.id = LeaseID.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): MsgWithdrawLease {\n return { id: isSet(object.id) ? LeaseID.fromJSON(object.id) : undefined };\n },\n\n toJSON(message: MsgWithdrawLease): unknown {\n const obj: any = {};\n if (message.id !== undefined) {\n obj.id = LeaseID.toJSON(message.id);\n }\n return obj;\n },\n fromPartial(object: DeepPartial<MsgWithdrawLease>): MsgWithdrawLease {\n const message = createBaseMsgWithdrawLease();\n message.id = (object.id !== undefined && object.id !== null) ? LeaseID.fromPartial(object.id) : undefined;\n return message;\n },\n};\n\nfunction createBaseMsgWithdrawLeaseResponse(): MsgWithdrawLeaseResponse {\n return {};\n}\n\nexport const MsgWithdrawLeaseResponse: MessageFns<\n MsgWithdrawLeaseResponse,\n \"akash.market.v1beta5.MsgWithdrawLeaseResponse\"\n> = {\n $type: \"akash.market.v1beta5.MsgWithdrawLeaseResponse\" as const,\n\n encode(_: MsgWithdrawLeaseResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {\n return writer;\n },\n\n decode(input: BinaryReader | Uint8Array, length?: number): MsgWithdrawLeaseResponse {\n const reader = input instanceof BinaryReader ? input : new BinaryReader(input);\n const end = length === undefined ? reader.len : reader.pos + length;\n const message = createBaseMsgWithdrawLeaseResponse();\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): MsgWithdrawLeaseResponse {\n return {};\n },\n\n toJSON(_: MsgWithdrawLeaseResponse): unknown {\n const obj: any = {};\n return obj;\n },\n fromPartial(_: DeepPartial<MsgWithdrawLeaseResponse>): MsgWithdrawLeaseResponse {\n const message = createBaseMsgWithdrawLeaseResponse();\n return message;\n },\n};\n\nfunction createBaseMsgCloseLease(): MsgCloseLease {\n return { id: undefined, reason: 0 };\n}\n\nexport const MsgCloseLease: MessageFns<MsgCloseLease, \"akash.market.v1beta5.MsgCloseLease\"> = {\n $type: \"akash.market.v1beta5.MsgCloseLease\" as const,\n\n encode(message: MsgCloseLease, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {\n if (message.id !== undefined) {\n LeaseID.encode(message.id, writer.uint32(10).fork()).join();\n }\n if (message.reason !== 0) {\n writer.uint32(16).int32(message.reason);\n }\n return writer;\n },\n\n decode(input: BinaryReader | Uint8Array, length?: number): MsgCloseLease {\n const reader = input instanceof BinaryReader ? input : new BinaryReader(input);\n const end = length === undefined ? reader.len : reader.pos + length;\n const message = createBaseMsgCloseLease();\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.id = LeaseID.decode(reader, reader.uint32());\n continue;\n }\n case 2: {\n if (tag !== 16) {\n break;\n }\n\n message.reason = reader.int32() as any;\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): MsgCloseLease {\n return {\n id: isSet(object.id) ? LeaseID.fromJSON(object.id) : undefined,\n reason: isSet(object.reason) ? leaseClosedReasonFromJSON(object.reason) : 0,\n };\n },\n\n toJSON(message: MsgCloseLease): unknown {\n const obj: any = {};\n if (message.id !== undefined) {\n obj.id = LeaseID.toJSON(message.id);\n }\n if (message.reason !== 0) {\n obj.reason = leaseClosedReasonToJSON(message.reason);\n }\n return obj;\n },\n fromPartial(object: DeepPartial<MsgCloseLease>): MsgCloseLease {\n const message = createBaseMsgCloseLease();\n message.id = (object.id !== undefined && object.id !== null) ? LeaseID.fromPartial(object.id) : undefined;\n message.reason = object.reason ?? 0;\n return message;\n },\n};\n\nfunction createBaseMsgCloseLeaseResponse(): MsgCloseLeaseResponse {\n return {};\n}\n\nexport const MsgCloseLeaseResponse: MessageFns<MsgCloseLeaseResponse, \"akash.market.v1beta5.MsgCloseLeaseResponse\"> = {\n $type: \"akash.market.v1beta5.MsgCloseLeaseResponse\" as const,\n\n encode(_: MsgCloseLeaseResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {\n return writer;\n },\n\n decode(input: BinaryReader | Uint8Array, length?: number): MsgCloseLeaseResponse {\n const reader = input instanceof BinaryReader ? input : new BinaryReader(input);\n const end = length === undefined ? reader.len : reader.pos + length;\n const message = createBaseMsgCloseLeaseResponse();\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): MsgCloseLeaseResponse {\n return {};\n },\n\n toJSON(_: MsgCloseLeaseResponse): unknown {\n const obj: any = {};\n return obj;\n },\n fromPartial(_: DeepPartial<MsgCloseLeaseResponse>): MsgCloseLeaseResponse {\n const message = createBaseMsgCloseLeaseResponse();\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": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iCAAsB;AAStB,kBAA2C;AAE3C,iBAAsB;AACtB,mBAAwB;AACxB,mBAAsF;
|
|
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/market/v1beta5/leasemsg.proto\n\n/* eslint-disable */\nimport { BinaryReader, BinaryWriter } from \"@bufbuild/protobuf/wire\";\nimport Long from \"long\";\nimport { BidID } from \"../v1/bid.ts\";\nimport { LeaseID } from \"../v1/lease.ts\";\nimport { LeaseClosedReason, leaseClosedReasonFromJSON, leaseClosedReasonToJSON } from \"../v1/types.ts\";\n\n/** MsgCreateLease is sent to create a lease. */\nexport interface MsgCreateLease {\n /** BidId is the unique identifier of the Bid. */\n bidId: BidID | undefined;\n}\n\n/** MsgCreateLeaseResponse is the response from creating a lease. */\nexport interface MsgCreateLeaseResponse {\n}\n\n/** MsgWithdrawLease defines an SDK message for withdrawing lease funds. */\nexport interface MsgWithdrawLease {\n /** BidId is the unique identifier of the Bid. */\n id: LeaseID | undefined;\n}\n\n/** MsgWithdrawLeaseResponse defines the Msg/WithdrawLease response type. */\nexport interface MsgWithdrawLeaseResponse {\n}\n\n/** MsgCloseLease defines an SDK message for closing order. */\nexport interface MsgCloseLease {\n /** LeaseID is the unique identifier of the Lease. */\n id: LeaseID | undefined;\n reason: LeaseClosedReason;\n}\n\n/** MsgCloseLeaseResponse defines the Msg/CloseLease response type. */\nexport interface MsgCloseLeaseResponse {\n}\n\n/** MsgLeaseStartReclaim is sent by the provider to initiate reclamation on an active lease. */\nexport interface MsgLeaseStartReclaim {\n /** Id is the unique identifier of the Lease. */\n id:\n | LeaseID\n | undefined;\n /** reason is the provider's stated reason for initiating reclamation. */\n reason: LeaseClosedReason;\n}\n\n/** MsgLeaseStartReclaimResponse is the response from starting lease reclamation. */\nexport interface MsgLeaseStartReclaimResponse {\n}\n\nfunction createBaseMsgCreateLease(): MsgCreateLease {\n return { bidId: undefined };\n}\n\nexport const MsgCreateLease: MessageFns<MsgCreateLease, \"akash.market.v1beta5.MsgCreateLease\"> = {\n $type: \"akash.market.v1beta5.MsgCreateLease\" as const,\n\n encode(message: MsgCreateLease, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {\n if (message.bidId !== undefined) {\n BidID.encode(message.bidId, writer.uint32(10).fork()).join();\n }\n return writer;\n },\n\n decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateLease {\n const reader = input instanceof BinaryReader ? input : new BinaryReader(input);\n const end = length === undefined ? reader.len : reader.pos + length;\n const message = createBaseMsgCreateLease();\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.bidId = BidID.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): MsgCreateLease {\n return { bidId: isSet(object.bid_id) ? BidID.fromJSON(object.bid_id) : undefined };\n },\n\n toJSON(message: MsgCreateLease): unknown {\n const obj: any = {};\n if (message.bidId !== undefined) {\n obj.bid_id = BidID.toJSON(message.bidId);\n }\n return obj;\n },\n fromPartial(object: DeepPartial<MsgCreateLease>): MsgCreateLease {\n const message = createBaseMsgCreateLease();\n message.bidId = (object.bidId !== undefined && object.bidId !== null) ? BidID.fromPartial(object.bidId) : undefined;\n return message;\n },\n};\n\nfunction createBaseMsgCreateLeaseResponse(): MsgCreateLeaseResponse {\n return {};\n}\n\nexport const MsgCreateLeaseResponse: MessageFns<MsgCreateLeaseResponse, \"akash.market.v1beta5.MsgCreateLeaseResponse\"> =\n {\n $type: \"akash.market.v1beta5.MsgCreateLeaseResponse\" as const,\n\n encode(_: MsgCreateLeaseResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {\n return writer;\n },\n\n decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateLeaseResponse {\n const reader = input instanceof BinaryReader ? input : new BinaryReader(input);\n const end = length === undefined ? reader.len : reader.pos + length;\n const message = createBaseMsgCreateLeaseResponse();\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): MsgCreateLeaseResponse {\n return {};\n },\n\n toJSON(_: MsgCreateLeaseResponse): unknown {\n const obj: any = {};\n return obj;\n },\n fromPartial(_: DeepPartial<MsgCreateLeaseResponse>): MsgCreateLeaseResponse {\n const message = createBaseMsgCreateLeaseResponse();\n return message;\n },\n };\n\nfunction createBaseMsgWithdrawLease(): MsgWithdrawLease {\n return { id: undefined };\n}\n\nexport const MsgWithdrawLease: MessageFns<MsgWithdrawLease, \"akash.market.v1beta5.MsgWithdrawLease\"> = {\n $type: \"akash.market.v1beta5.MsgWithdrawLease\" as const,\n\n encode(message: MsgWithdrawLease, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {\n if (message.id !== undefined) {\n LeaseID.encode(message.id, writer.uint32(10).fork()).join();\n }\n return writer;\n },\n\n decode(input: BinaryReader | Uint8Array, length?: number): MsgWithdrawLease {\n const reader = input instanceof BinaryReader ? input : new BinaryReader(input);\n const end = length === undefined ? reader.len : reader.pos + length;\n const message = createBaseMsgWithdrawLease();\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.id = LeaseID.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): MsgWithdrawLease {\n return { id: isSet(object.id) ? LeaseID.fromJSON(object.id) : undefined };\n },\n\n toJSON(message: MsgWithdrawLease): unknown {\n const obj: any = {};\n if (message.id !== undefined) {\n obj.id = LeaseID.toJSON(message.id);\n }\n return obj;\n },\n fromPartial(object: DeepPartial<MsgWithdrawLease>): MsgWithdrawLease {\n const message = createBaseMsgWithdrawLease();\n message.id = (object.id !== undefined && object.id !== null) ? LeaseID.fromPartial(object.id) : undefined;\n return message;\n },\n};\n\nfunction createBaseMsgWithdrawLeaseResponse(): MsgWithdrawLeaseResponse {\n return {};\n}\n\nexport const MsgWithdrawLeaseResponse: MessageFns<\n MsgWithdrawLeaseResponse,\n \"akash.market.v1beta5.MsgWithdrawLeaseResponse\"\n> = {\n $type: \"akash.market.v1beta5.MsgWithdrawLeaseResponse\" as const,\n\n encode(_: MsgWithdrawLeaseResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {\n return writer;\n },\n\n decode(input: BinaryReader | Uint8Array, length?: number): MsgWithdrawLeaseResponse {\n const reader = input instanceof BinaryReader ? input : new BinaryReader(input);\n const end = length === undefined ? reader.len : reader.pos + length;\n const message = createBaseMsgWithdrawLeaseResponse();\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): MsgWithdrawLeaseResponse {\n return {};\n },\n\n toJSON(_: MsgWithdrawLeaseResponse): unknown {\n const obj: any = {};\n return obj;\n },\n fromPartial(_: DeepPartial<MsgWithdrawLeaseResponse>): MsgWithdrawLeaseResponse {\n const message = createBaseMsgWithdrawLeaseResponse();\n return message;\n },\n};\n\nfunction createBaseMsgCloseLease(): MsgCloseLease {\n return { id: undefined, reason: 0 };\n}\n\nexport const MsgCloseLease: MessageFns<MsgCloseLease, \"akash.market.v1beta5.MsgCloseLease\"> = {\n $type: \"akash.market.v1beta5.MsgCloseLease\" as const,\n\n encode(message: MsgCloseLease, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {\n if (message.id !== undefined) {\n LeaseID.encode(message.id, writer.uint32(10).fork()).join();\n }\n if (message.reason !== 0) {\n writer.uint32(16).int32(message.reason);\n }\n return writer;\n },\n\n decode(input: BinaryReader | Uint8Array, length?: number): MsgCloseLease {\n const reader = input instanceof BinaryReader ? input : new BinaryReader(input);\n const end = length === undefined ? reader.len : reader.pos + length;\n const message = createBaseMsgCloseLease();\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.id = LeaseID.decode(reader, reader.uint32());\n continue;\n }\n case 2: {\n if (tag !== 16) {\n break;\n }\n\n message.reason = reader.int32() as any;\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): MsgCloseLease {\n return {\n id: isSet(object.id) ? LeaseID.fromJSON(object.id) : undefined,\n reason: isSet(object.reason) ? leaseClosedReasonFromJSON(object.reason) : 0,\n };\n },\n\n toJSON(message: MsgCloseLease): unknown {\n const obj: any = {};\n if (message.id !== undefined) {\n obj.id = LeaseID.toJSON(message.id);\n }\n if (message.reason !== 0) {\n obj.reason = leaseClosedReasonToJSON(message.reason);\n }\n return obj;\n },\n fromPartial(object: DeepPartial<MsgCloseLease>): MsgCloseLease {\n const message = createBaseMsgCloseLease();\n message.id = (object.id !== undefined && object.id !== null) ? LeaseID.fromPartial(object.id) : undefined;\n message.reason = object.reason ?? 0;\n return message;\n },\n};\n\nfunction createBaseMsgCloseLeaseResponse(): MsgCloseLeaseResponse {\n return {};\n}\n\nexport const MsgCloseLeaseResponse: MessageFns<MsgCloseLeaseResponse, \"akash.market.v1beta5.MsgCloseLeaseResponse\"> = {\n $type: \"akash.market.v1beta5.MsgCloseLeaseResponse\" as const,\n\n encode(_: MsgCloseLeaseResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {\n return writer;\n },\n\n decode(input: BinaryReader | Uint8Array, length?: number): MsgCloseLeaseResponse {\n const reader = input instanceof BinaryReader ? input : new BinaryReader(input);\n const end = length === undefined ? reader.len : reader.pos + length;\n const message = createBaseMsgCloseLeaseResponse();\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): MsgCloseLeaseResponse {\n return {};\n },\n\n toJSON(_: MsgCloseLeaseResponse): unknown {\n const obj: any = {};\n return obj;\n },\n fromPartial(_: DeepPartial<MsgCloseLeaseResponse>): MsgCloseLeaseResponse {\n const message = createBaseMsgCloseLeaseResponse();\n return message;\n },\n};\n\nfunction createBaseMsgLeaseStartReclaim(): MsgLeaseStartReclaim {\n return { id: undefined, reason: 0 };\n}\n\nexport const MsgLeaseStartReclaim: MessageFns<MsgLeaseStartReclaim, \"akash.market.v1beta5.MsgLeaseStartReclaim\"> = {\n $type: \"akash.market.v1beta5.MsgLeaseStartReclaim\" as const,\n\n encode(message: MsgLeaseStartReclaim, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {\n if (message.id !== undefined) {\n LeaseID.encode(message.id, writer.uint32(10).fork()).join();\n }\n if (message.reason !== 0) {\n writer.uint32(16).int32(message.reason);\n }\n return writer;\n },\n\n decode(input: BinaryReader | Uint8Array, length?: number): MsgLeaseStartReclaim {\n const reader = input instanceof BinaryReader ? input : new BinaryReader(input);\n const end = length === undefined ? reader.len : reader.pos + length;\n const message = createBaseMsgLeaseStartReclaim();\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.id = LeaseID.decode(reader, reader.uint32());\n continue;\n }\n case 2: {\n if (tag !== 16) {\n break;\n }\n\n message.reason = reader.int32() as any;\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): MsgLeaseStartReclaim {\n return {\n id: isSet(object.id) ? LeaseID.fromJSON(object.id) : undefined,\n reason: isSet(object.reason) ? leaseClosedReasonFromJSON(object.reason) : 0,\n };\n },\n\n toJSON(message: MsgLeaseStartReclaim): unknown {\n const obj: any = {};\n if (message.id !== undefined) {\n obj.id = LeaseID.toJSON(message.id);\n }\n if (message.reason !== 0) {\n obj.reason = leaseClosedReasonToJSON(message.reason);\n }\n return obj;\n },\n fromPartial(object: DeepPartial<MsgLeaseStartReclaim>): MsgLeaseStartReclaim {\n const message = createBaseMsgLeaseStartReclaim();\n message.id = (object.id !== undefined && object.id !== null) ? LeaseID.fromPartial(object.id) : undefined;\n message.reason = object.reason ?? 0;\n return message;\n },\n};\n\nfunction createBaseMsgLeaseStartReclaimResponse(): MsgLeaseStartReclaimResponse {\n return {};\n}\n\nexport const MsgLeaseStartReclaimResponse: MessageFns<\n MsgLeaseStartReclaimResponse,\n \"akash.market.v1beta5.MsgLeaseStartReclaimResponse\"\n> = {\n $type: \"akash.market.v1beta5.MsgLeaseStartReclaimResponse\" as const,\n\n encode(_: MsgLeaseStartReclaimResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {\n return writer;\n },\n\n decode(input: BinaryReader | Uint8Array, length?: number): MsgLeaseStartReclaimResponse {\n const reader = input instanceof BinaryReader ? input : new BinaryReader(input);\n const end = length === undefined ? reader.len : reader.pos + length;\n const message = createBaseMsgLeaseStartReclaimResponse();\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): MsgLeaseStartReclaimResponse {\n return {};\n },\n\n toJSON(_: MsgLeaseStartReclaimResponse): unknown {\n const obj: any = {};\n return obj;\n },\n fromPartial(_: DeepPartial<MsgLeaseStartReclaimResponse>): MsgLeaseStartReclaimResponse {\n const message = createBaseMsgLeaseStartReclaimResponse();\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": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iCAAsB;AAStB,kBAA2C;AAE3C,iBAAsB;AACtB,mBAAwB;AACxB,mBAAsF;AA+CtF,SAAS,2BAA2C;AAClD,SAAO,EAAE,OAAO,OAAU;AAC5B;AAEO,MAAM,iBAAoF;AAAA,EAC/F,OAAO;AAAA,EAEP,OAAO,SAAyB,SAAuB,IAAI,yBAAa,GAAiB;AACvF,QAAI,QAAQ,UAAU,QAAW;AAC/B,uBAAM,OAAO,QAAQ,OAAO,OAAO,OAAO,EAAE,EAAE,KAAK,CAAC,EAAE,KAAK;AAAA,IAC7D;AACA,WAAO;AAAA,EACT;AAAA,EAEA,OAAO,OAAkC,QAAiC;AACxE,UAAM,SAA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AA4E;AACtF,UAAM,UAAU,uCAAuC;AACvD,WAAO;AAAA,EACT;AACF;AAUA,SAAS,cAAc,OAAqB;AAC1C,SAAO,UAAU,QAAQ,UAAU;AACrC;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -37,6 +37,7 @@ module.exports = __toCommonJS(order_exports);
|
|
|
37
37
|
var import_typeEncodingHelpers = require("../../../../../encoding/typeEncodingHelpers.cjs");
|
|
38
38
|
var import_wire = require("@bufbuild/protobuf/wire");
|
|
39
39
|
var import_long = __toESM(require("long"), 1);
|
|
40
|
+
var import_deployment = require("../../deployment/v1/deployment.cjs");
|
|
40
41
|
var import_groupspec = require("../../deployment/v1beta4/groupspec.cjs");
|
|
41
42
|
var import_order = require("../v1/order.cjs");
|
|
42
43
|
var Order_State = /* @__PURE__ */ ((Order_State2) => {
|
|
@@ -83,7 +84,7 @@ function order_StateToJSON(object) {
|
|
|
83
84
|
}
|
|
84
85
|
}
|
|
85
86
|
function createBaseOrder() {
|
|
86
|
-
return { id: void 0, state: 0, spec: void 0, createdAt: import_long.default.ZERO };
|
|
87
|
+
return { id: void 0, state: 0, spec: void 0, createdAt: import_long.default.ZERO, reclamation: void 0 };
|
|
87
88
|
}
|
|
88
89
|
const Order = {
|
|
89
90
|
$type: "akash.market.v1beta5.Order",
|
|
@@ -100,6 +101,9 @@ const Order = {
|
|
|
100
101
|
if (!message.createdAt.equals(import_long.default.ZERO)) {
|
|
101
102
|
writer.uint32(32).int64(message.createdAt.toString());
|
|
102
103
|
}
|
|
104
|
+
if (message.reclamation !== void 0) {
|
|
105
|
+
import_deployment.DeploymentReclamation.encode(message.reclamation, writer.uint32(42).fork()).join();
|
|
106
|
+
}
|
|
103
107
|
return writer;
|
|
104
108
|
},
|
|
105
109
|
decode(input, length) {
|
|
@@ -137,6 +141,13 @@ const Order = {
|
|
|
137
141
|
message.createdAt = import_long.default.fromString(reader.int64().toString());
|
|
138
142
|
continue;
|
|
139
143
|
}
|
|
144
|
+
case 5: {
|
|
145
|
+
if (tag !== 42) {
|
|
146
|
+
break;
|
|
147
|
+
}
|
|
148
|
+
message.reclamation = import_deployment.DeploymentReclamation.decode(reader, reader.uint32());
|
|
149
|
+
continue;
|
|
150
|
+
}
|
|
140
151
|
}
|
|
141
152
|
if ((tag & 7) === 4 || tag === 0) {
|
|
142
153
|
break;
|
|
@@ -150,7 +161,8 @@ const Order = {
|
|
|
150
161
|
id: (0, import_typeEncodingHelpers.isSet)(object.id) ? import_order.OrderID.fromJSON(object.id) : void 0,
|
|
151
162
|
state: (0, import_typeEncodingHelpers.isSet)(object.state) ? order_StateFromJSON(object.state) : 0,
|
|
152
163
|
spec: (0, import_typeEncodingHelpers.isSet)(object.spec) ? import_groupspec.GroupSpec.fromJSON(object.spec) : void 0,
|
|
153
|
-
createdAt: (0, import_typeEncodingHelpers.isSet)(object.created_at) ? import_long.default.fromValue(object.created_at) : import_long.default.ZERO
|
|
164
|
+
createdAt: (0, import_typeEncodingHelpers.isSet)(object.created_at) ? import_long.default.fromValue(object.created_at) : import_long.default.ZERO,
|
|
165
|
+
reclamation: (0, import_typeEncodingHelpers.isSet)(object.reclamation) ? import_deployment.DeploymentReclamation.fromJSON(object.reclamation) : void 0
|
|
154
166
|
};
|
|
155
167
|
},
|
|
156
168
|
toJSON(message) {
|
|
@@ -167,6 +179,9 @@ const Order = {
|
|
|
167
179
|
if (!message.createdAt.equals(import_long.default.ZERO)) {
|
|
168
180
|
obj.created_at = (message.createdAt || import_long.default.ZERO).toString();
|
|
169
181
|
}
|
|
182
|
+
if (message.reclamation !== void 0) {
|
|
183
|
+
obj.reclamation = import_deployment.DeploymentReclamation.toJSON(message.reclamation);
|
|
184
|
+
}
|
|
170
185
|
return obj;
|
|
171
186
|
},
|
|
172
187
|
fromPartial(object) {
|
|
@@ -175,6 +190,7 @@ const Order = {
|
|
|
175
190
|
message.state = object.state ?? 0;
|
|
176
191
|
message.spec = object.spec !== void 0 && object.spec !== null ? import_groupspec.GroupSpec.fromPartial(object.spec) : void 0;
|
|
177
192
|
message.createdAt = object.createdAt !== void 0 && object.createdAt !== null ? import_long.default.fromValue(object.createdAt) : import_long.default.ZERO;
|
|
193
|
+
message.reclamation = object.reclamation !== void 0 && object.reclamation !== null ? import_deployment.DeploymentReclamation.fromPartial(object.reclamation) : void 0;
|
|
178
194
|
return message;
|
|
179
195
|
}
|
|
180
196
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../../../../src/generated/protos/akash/market/v1beta5/order.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/market/v1beta5/order.proto\n\n/* eslint-disable */\nimport { BinaryReader, BinaryWriter } from \"@bufbuild/protobuf/wire\";\nimport Long from \"long\";\nimport { GroupSpec } from \"../../deployment/v1beta4/groupspec.ts\";\nimport { OrderID } from \"../v1/order.ts\";\n\n/** Order stores orderID, state of order and other details. */\nexport interface Order {\n /** Id is the unique identifier of the order. */\n id: OrderID | undefined;\n state: Order_State;\n spec: GroupSpec | undefined;\n createdAt: Long;\n}\n\n/** State is an enum which refers to state of order. */\nexport enum Order_State {\n /** invalid - Prefix should start with 0 in enum. So declaring dummy state. */\n invalid = 0,\n /** open - OrderOpen denotes state for order open. */\n open = 1,\n /** active - OrderMatched denotes state for order matched. */\n active = 2,\n /** closed - OrderClosed denotes state for order lost. */\n closed = 3,\n UNRECOGNIZED = -1,\n}\n\nexport function order_StateFromJSON(object: any): Order_State {\n switch (object) {\n case 0:\n case \"invalid\":\n return Order_State.invalid;\n case 1:\n case \"open\":\n return Order_State.open;\n case 2:\n case \"active\":\n return Order_State.active;\n case 3:\n case \"closed\":\n return Order_State.closed;\n case -1:\n case \"UNRECOGNIZED\":\n default:\n return Order_State.UNRECOGNIZED;\n }\n}\n\nexport function order_StateToJSON(object: Order_State): string {\n switch (object) {\n case Order_State.invalid:\n return \"invalid\";\n case Order_State.open:\n return \"open\";\n case Order_State.active:\n return \"active\";\n case Order_State.closed:\n return \"closed\";\n case Order_State.UNRECOGNIZED:\n default:\n return \"UNRECOGNIZED\";\n }\n}\n\nfunction createBaseOrder(): Order {\n return { id: undefined, state: 0, spec: undefined, createdAt: Long.ZERO };\n}\n\nexport const Order: MessageFns<Order, \"akash.market.v1beta5.Order\"> = {\n $type: \"akash.market.v1beta5.Order\" as const,\n\n encode(message: Order, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {\n if (message.id !== undefined) {\n OrderID.encode(message.id, writer.uint32(10).fork()).join();\n }\n if (message.state !== 0) {\n writer.uint32(16).int32(message.state);\n }\n if (message.spec !== undefined) {\n GroupSpec.encode(message.spec, writer.uint32(26).fork()).join();\n }\n if (!message.createdAt.equals(Long.ZERO)) {\n writer.uint32(32).int64(message.createdAt.toString());\n }\n return writer;\n },\n\n decode(input: BinaryReader | Uint8Array, length?: number): Order {\n const reader = input instanceof BinaryReader ? input : new BinaryReader(input);\n const end = length === undefined ? reader.len : reader.pos + length;\n const message = createBaseOrder();\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.id = OrderID.decode(reader, reader.uint32());\n continue;\n }\n case 2: {\n if (tag !== 16) {\n break;\n }\n\n message.state = reader.int32() as any;\n continue;\n }\n case 3: {\n if (tag !== 26) {\n break;\n }\n\n message.spec = GroupSpec.decode(reader, reader.uint32());\n continue;\n }\n case 4: {\n if (tag !== 32) {\n break;\n }\n\n message.createdAt = Long.fromString(reader.int64().toString());\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): Order {\n return {\n id: isSet(object.id) ? OrderID.fromJSON(object.id) : undefined,\n state: isSet(object.state) ? order_StateFromJSON(object.state) : 0,\n spec: isSet(object.spec) ? GroupSpec.fromJSON(object.spec) : undefined,\n createdAt: isSet(object.created_at) ? Long.fromValue(object.created_at) : Long.ZERO,\n };\n },\n\n toJSON(message: Order): unknown {\n const obj: any = {};\n if (message.id !== undefined) {\n obj.id = OrderID.toJSON(message.id);\n }\n if (message.state !== 0) {\n obj.state = order_StateToJSON(message.state);\n }\n if (message.spec !== undefined) {\n obj.spec = GroupSpec.toJSON(message.spec);\n }\n if (!message.createdAt.equals(Long.ZERO)) {\n obj.created_at = (message.createdAt || Long.ZERO).toString();\n }\n return obj;\n },\n fromPartial(object: DeepPartial<Order>): Order {\n const message = createBaseOrder();\n message.id = (object.id !== undefined && object.id !== null) ? OrderID.fromPartial(object.id) : undefined;\n message.state = object.state ?? 0;\n message.spec = (object.spec !== undefined && object.spec !== null) ? GroupSpec.fromPartial(object.spec) : undefined;\n message.createdAt = (object.createdAt !== undefined && object.createdAt !== null)\n ? Long.fromValue(object.createdAt)\n : Long.ZERO;\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": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iCAAsB;AAStB,kBAA2C;AAC3C,kBAAiB;AACjB,uBAA0B;AAC1B,mBAAwB;
|
|
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/market/v1beta5/order.proto\n\n/* eslint-disable */\nimport { BinaryReader, BinaryWriter } from \"@bufbuild/protobuf/wire\";\nimport Long from \"long\";\nimport { DeploymentReclamation } from \"../../deployment/v1/deployment.ts\";\nimport { GroupSpec } from \"../../deployment/v1beta4/groupspec.ts\";\nimport { OrderID } from \"../v1/order.ts\";\n\n/** Order stores orderID, state of order and other details. */\nexport interface Order {\n /** Id is the unique identifier of the order. */\n id: OrderID | undefined;\n state: Order_State;\n spec: GroupSpec | undefined;\n createdAt: Long;\n /**\n * reclamation is the deployment-level reclamation requirement, propagated to the order.\n * Nil means the deployment does not require reclamation.\n */\n reclamation: DeploymentReclamation | undefined;\n}\n\n/** State is an enum which refers to state of order. */\nexport enum Order_State {\n /** invalid - Prefix should start with 0 in enum. So declaring dummy state. */\n invalid = 0,\n /** open - OrderOpen denotes state for order open. */\n open = 1,\n /** active - OrderMatched denotes state for order matched. */\n active = 2,\n /** closed - OrderClosed denotes state for order lost. */\n closed = 3,\n UNRECOGNIZED = -1,\n}\n\nexport function order_StateFromJSON(object: any): Order_State {\n switch (object) {\n case 0:\n case \"invalid\":\n return Order_State.invalid;\n case 1:\n case \"open\":\n return Order_State.open;\n case 2:\n case \"active\":\n return Order_State.active;\n case 3:\n case \"closed\":\n return Order_State.closed;\n case -1:\n case \"UNRECOGNIZED\":\n default:\n return Order_State.UNRECOGNIZED;\n }\n}\n\nexport function order_StateToJSON(object: Order_State): string {\n switch (object) {\n case Order_State.invalid:\n return \"invalid\";\n case Order_State.open:\n return \"open\";\n case Order_State.active:\n return \"active\";\n case Order_State.closed:\n return \"closed\";\n case Order_State.UNRECOGNIZED:\n default:\n return \"UNRECOGNIZED\";\n }\n}\n\nfunction createBaseOrder(): Order {\n return { id: undefined, state: 0, spec: undefined, createdAt: Long.ZERO, reclamation: undefined };\n}\n\nexport const Order: MessageFns<Order, \"akash.market.v1beta5.Order\"> = {\n $type: \"akash.market.v1beta5.Order\" as const,\n\n encode(message: Order, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {\n if (message.id !== undefined) {\n OrderID.encode(message.id, writer.uint32(10).fork()).join();\n }\n if (message.state !== 0) {\n writer.uint32(16).int32(message.state);\n }\n if (message.spec !== undefined) {\n GroupSpec.encode(message.spec, writer.uint32(26).fork()).join();\n }\n if (!message.createdAt.equals(Long.ZERO)) {\n writer.uint32(32).int64(message.createdAt.toString());\n }\n if (message.reclamation !== undefined) {\n DeploymentReclamation.encode(message.reclamation, writer.uint32(42).fork()).join();\n }\n return writer;\n },\n\n decode(input: BinaryReader | Uint8Array, length?: number): Order {\n const reader = input instanceof BinaryReader ? input : new BinaryReader(input);\n const end = length === undefined ? reader.len : reader.pos + length;\n const message = createBaseOrder();\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.id = OrderID.decode(reader, reader.uint32());\n continue;\n }\n case 2: {\n if (tag !== 16) {\n break;\n }\n\n message.state = reader.int32() as any;\n continue;\n }\n case 3: {\n if (tag !== 26) {\n break;\n }\n\n message.spec = GroupSpec.decode(reader, reader.uint32());\n continue;\n }\n case 4: {\n if (tag !== 32) {\n break;\n }\n\n message.createdAt = Long.fromString(reader.int64().toString());\n continue;\n }\n case 5: {\n if (tag !== 42) {\n break;\n }\n\n message.reclamation = DeploymentReclamation.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): Order {\n return {\n id: isSet(object.id) ? OrderID.fromJSON(object.id) : undefined,\n state: isSet(object.state) ? order_StateFromJSON(object.state) : 0,\n spec: isSet(object.spec) ? GroupSpec.fromJSON(object.spec) : undefined,\n createdAt: isSet(object.created_at) ? Long.fromValue(object.created_at) : Long.ZERO,\n reclamation: isSet(object.reclamation) ? DeploymentReclamation.fromJSON(object.reclamation) : undefined,\n };\n },\n\n toJSON(message: Order): unknown {\n const obj: any = {};\n if (message.id !== undefined) {\n obj.id = OrderID.toJSON(message.id);\n }\n if (message.state !== 0) {\n obj.state = order_StateToJSON(message.state);\n }\n if (message.spec !== undefined) {\n obj.spec = GroupSpec.toJSON(message.spec);\n }\n if (!message.createdAt.equals(Long.ZERO)) {\n obj.created_at = (message.createdAt || Long.ZERO).toString();\n }\n if (message.reclamation !== undefined) {\n obj.reclamation = DeploymentReclamation.toJSON(message.reclamation);\n }\n return obj;\n },\n fromPartial(object: DeepPartial<Order>): Order {\n const message = createBaseOrder();\n message.id = (object.id !== undefined && object.id !== null) ? OrderID.fromPartial(object.id) : undefined;\n message.state = object.state ?? 0;\n message.spec = (object.spec !== undefined && object.spec !== null) ? GroupSpec.fromPartial(object.spec) : undefined;\n message.createdAt = (object.createdAt !== undefined && object.createdAt !== null)\n ? Long.fromValue(object.createdAt)\n : Long.ZERO;\n message.reclamation = (object.reclamation !== undefined && object.reclamation !== null)\n ? DeploymentReclamation.fromPartial(object.reclamation)\n : 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": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iCAAsB;AAStB,kBAA2C;AAC3C,kBAAiB;AACjB,wBAAsC;AACtC,uBAA0B;AAC1B,mBAAwB;AAiBjB,IAAK,cAAL,kBAAKA,iBAAL;AAEL,EAAAA,0BAAA,aAAU,KAAV;AAEA,EAAAA,0BAAA,UAAO,KAAP;AAEA,EAAAA,0BAAA,YAAS,KAAT;AAEA,EAAAA,0BAAA,YAAS,KAAT;AACA,EAAAA,0BAAA,kBAAe,MAAf;AATU,SAAAA;AAAA,GAAA;AAYL,SAAS,oBAAoB,QAA0B;AAC5D,UAAQ,QAAQ;AAAA,IACd,KAAK;AAAA,IACL,KAAK;AACH,aAAO;AAAA,IACT,KAAK;AAAA,IACL,KAAK;AACH,aAAO;AAAA,IACT,KAAK;AAAA,IACL,KAAK;AACH,aAAO;AAAA,IACT,KAAK;AAAA,IACL,KAAK;AACH,aAAO;AAAA,IACT,KAAK;AAAA,IACL,KAAK;AAAA,IACL;AACE,aAAO;AAAA,EACX;AACF;AAEO,SAAS,kBAAkB,QAA6B;AAC7D,UAAQ,QAAQ;AAAA,IACd,KAAK;AACH,aAAO;AAAA,IACT,KAAK;AACH,aAAO;AAAA,IACT,KAAK;AACH,aAAO;AAAA,IACT,KAAK;AACH,aAAO;AAAA,IACT,KAAK;AAAA,IACL;AACE,aAAO;AAAA,EACX;AACF;AAEA,SAAS,kBAAyB;AAChC,SAAO,EAAE,IAAI,QAAW,OAAO,GAAG,MAAM,QAAW,WAAW,Y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,UAAI,QAAQ,kBAAkB,QAAQ,KAAK;AAAA,IAC7C;AACA,QAAI,QAAQ,SAAS,QAAW;AAC9B,UAAI,OAAO,2BAAU,OAAO,QAAQ,IAAI;AAAA,IAC1C;AACA,QAAI,CAAC,QAAQ,UAAU,OAAO,YAAAA,QAAK,IAAI,GAAG;AACxC,UAAI,cAAc,QAAQ,aAAa,YAAAA,QAAK,MAAM,SAAS;AAAA,IAC7D;AACA,QAAI,QAAQ,gBAAgB,QAAW;AACrC,UAAI,cAAc,wCAAsB,OAAO,QAAQ,WAAW;AAAA,IACpE;AACA,WAAO;AAAA,EACT;AAAA,EACA,YAAY,QAAmC;AAC7C,UAAM,UAAU,gBAAgB;AAChC,YAAQ,KAAM,OAAO,OAAO,UAAa,OAAO,OAAO,OAAQ,qBAAQ,YAAY,OAAO,EAAE,IAAI;AAChG,YAAQ,QAAQ,OAAO,SAAS;AAChC,YAAQ,OAAQ,OAAO,SAAS,UAAa,OAAO,SAAS,OAAQ,2BAAU,YAAY,OAAO,IAAI,IAAI;AAC1G,YAAQ,YAAa,OAAO,cAAc,UAAa,OAAO,cAAc,OACxE,YAAAA,QAAK,UAAU,OAAO,SAAS,IAC/B,YAAAA,QAAK;AACT,YAAQ,cAAe,OAAO,gBAAgB,UAAa,OAAO,gBAAgB,OAC9E,wCAAsB,YAAY,OAAO,WAAW,IACpD;AACJ,WAAO;AAAA,EACT;AACF;AAUA,SAAS,cAAc,OAAqB;AAC1C,SAAO,UAAU,QAAQ,UAAU;AACrC;",
|
|
6
6
|
"names": ["Order_State", "Long"]
|
|
7
7
|
}
|
|
@@ -24,8 +24,15 @@ module.exports = __toCommonJS(params_exports);
|
|
|
24
24
|
var import_typeEncodingHelpers = require("../../../../../encoding/typeEncodingHelpers.cjs");
|
|
25
25
|
var import_wire = require("@bufbuild/protobuf/wire");
|
|
26
26
|
var import_coin = require("../../../cosmos/base/v1beta1/coin.cjs");
|
|
27
|
+
var import_duration = require("../../../google/protobuf/duration.cjs");
|
|
27
28
|
function createBaseParams() {
|
|
28
|
-
return {
|
|
29
|
+
return {
|
|
30
|
+
bidMinDeposit: void 0,
|
|
31
|
+
orderMaxBids: 0,
|
|
32
|
+
bidMinDeposits: [],
|
|
33
|
+
minReclamationWindow: void 0,
|
|
34
|
+
maxReclamationWindow: void 0
|
|
35
|
+
};
|
|
29
36
|
}
|
|
30
37
|
const Params = {
|
|
31
38
|
$type: "akash.market.v1beta5.Params",
|
|
@@ -39,6 +46,12 @@ const Params = {
|
|
|
39
46
|
for (const v of message.bidMinDeposits) {
|
|
40
47
|
import_coin.Coin.encode(v, writer.uint32(26).fork()).join();
|
|
41
48
|
}
|
|
49
|
+
if (message.minReclamationWindow !== void 0) {
|
|
50
|
+
import_duration.Duration.encode(message.minReclamationWindow, writer.uint32(34).fork()).join();
|
|
51
|
+
}
|
|
52
|
+
if (message.maxReclamationWindow !== void 0) {
|
|
53
|
+
import_duration.Duration.encode(message.maxReclamationWindow, writer.uint32(42).fork()).join();
|
|
54
|
+
}
|
|
42
55
|
return writer;
|
|
43
56
|
},
|
|
44
57
|
decode(input, length) {
|
|
@@ -69,6 +82,20 @@ const Params = {
|
|
|
69
82
|
message.bidMinDeposits.push(import_coin.Coin.decode(reader, reader.uint32()));
|
|
70
83
|
continue;
|
|
71
84
|
}
|
|
85
|
+
case 4: {
|
|
86
|
+
if (tag !== 34) {
|
|
87
|
+
break;
|
|
88
|
+
}
|
|
89
|
+
message.minReclamationWindow = import_duration.Duration.decode(reader, reader.uint32());
|
|
90
|
+
continue;
|
|
91
|
+
}
|
|
92
|
+
case 5: {
|
|
93
|
+
if (tag !== 42) {
|
|
94
|
+
break;
|
|
95
|
+
}
|
|
96
|
+
message.maxReclamationWindow = import_duration.Duration.decode(reader, reader.uint32());
|
|
97
|
+
continue;
|
|
98
|
+
}
|
|
72
99
|
}
|
|
73
100
|
if ((tag & 7) === 4 || tag === 0) {
|
|
74
101
|
break;
|
|
@@ -81,7 +108,9 @@ const Params = {
|
|
|
81
108
|
return {
|
|
82
109
|
bidMinDeposit: (0, import_typeEncodingHelpers.isSet)(object.bid_min_deposit) ? import_coin.Coin.fromJSON(object.bid_min_deposit) : void 0,
|
|
83
110
|
orderMaxBids: (0, import_typeEncodingHelpers.isSet)(object.order_max_bids) ? globalThis.Number(object.order_max_bids) : 0,
|
|
84
|
-
bidMinDeposits: globalThis.Array.isArray(object?.bid_min_deposits) ? object.bid_min_deposits.map((e) => import_coin.Coin.fromJSON(e)) : []
|
|
111
|
+
bidMinDeposits: globalThis.Array.isArray(object?.bid_min_deposits) ? object.bid_min_deposits.map((e) => import_coin.Coin.fromJSON(e)) : [],
|
|
112
|
+
minReclamationWindow: (0, import_typeEncodingHelpers.isSet)(object.min_reclamation_window) ? import_duration.Duration.fromJSON(object.min_reclamation_window) : void 0,
|
|
113
|
+
maxReclamationWindow: (0, import_typeEncodingHelpers.isSet)(object.max_reclamation_window) ? import_duration.Duration.fromJSON(object.max_reclamation_window) : void 0
|
|
85
114
|
};
|
|
86
115
|
},
|
|
87
116
|
toJSON(message) {
|
|
@@ -95,6 +124,12 @@ const Params = {
|
|
|
95
124
|
if (message.bidMinDeposits?.length) {
|
|
96
125
|
obj.bid_min_deposits = message.bidMinDeposits.map((e) => import_coin.Coin.toJSON(e));
|
|
97
126
|
}
|
|
127
|
+
if (message.minReclamationWindow !== void 0) {
|
|
128
|
+
obj.min_reclamation_window = import_duration.Duration.toJSON(message.minReclamationWindow);
|
|
129
|
+
}
|
|
130
|
+
if (message.maxReclamationWindow !== void 0) {
|
|
131
|
+
obj.max_reclamation_window = import_duration.Duration.toJSON(message.maxReclamationWindow);
|
|
132
|
+
}
|
|
98
133
|
return obj;
|
|
99
134
|
},
|
|
100
135
|
fromPartial(object) {
|
|
@@ -102,6 +137,8 @@ const Params = {
|
|
|
102
137
|
message.bidMinDeposit = object.bidMinDeposit !== void 0 && object.bidMinDeposit !== null ? import_coin.Coin.fromPartial(object.bidMinDeposit) : void 0;
|
|
103
138
|
message.orderMaxBids = object.orderMaxBids ?? 0;
|
|
104
139
|
message.bidMinDeposits = object.bidMinDeposits?.map((e) => import_coin.Coin.fromPartial(e)) || [];
|
|
140
|
+
message.minReclamationWindow = object.minReclamationWindow !== void 0 && object.minReclamationWindow !== null ? import_duration.Duration.fromPartial(object.minReclamationWindow) : void 0;
|
|
141
|
+
message.maxReclamationWindow = object.maxReclamationWindow !== void 0 && object.maxReclamationWindow !== null ? import_duration.Duration.fromPartial(object.maxReclamationWindow) : void 0;
|
|
105
142
|
return message;
|
|
106
143
|
}
|
|
107
144
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../../../../src/generated/protos/akash/market/v1beta5/params.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/market/v1beta5/params.proto\n\n/* eslint-disable */\nimport { BinaryReader, BinaryWriter } from \"@bufbuild/protobuf/wire\";\nimport Long from \"long\";\nimport { Coin } from \"../../../cosmos/base/v1beta1/coin.ts\";\n\n/** Params is the params for the x/market module. */\nexport interface Params {\n /**\n * BidMinDeposit is a parameter for the minimum deposit on a Bid.\n * Deprecated: use BidMinDeposits\n */\n bidMinDeposit:\n | Coin\n | undefined;\n /** OrderMaxBids is a parameter for the maximum number of bids in an order. */\n orderMaxBids: number;\n /** BidMinDeposits is a parameter for the minimum deposits per denom on a Bid. */\n bidMinDeposits: Coin[];\n}\n\nfunction createBaseParams(): Params {\n return {
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iCAAsB;AAStB,kBAA2C;AAE3C,kBAAqB;
|
|
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/market/v1beta5/params.proto\n\n/* eslint-disable */\nimport { BinaryReader, BinaryWriter } from \"@bufbuild/protobuf/wire\";\nimport Long from \"long\";\nimport { Coin } from \"../../../cosmos/base/v1beta1/coin.ts\";\nimport { Duration } from \"../../../google/protobuf/duration.ts\";\n\n/** Params is the params for the x/market module. */\nexport interface Params {\n /**\n * BidMinDeposit is a parameter for the minimum deposit on a Bid.\n * Deprecated: use BidMinDeposits\n */\n bidMinDeposit:\n | Coin\n | undefined;\n /** OrderMaxBids is a parameter for the maximum number of bids in an order. */\n orderMaxBids: number;\n /** BidMinDeposits is a parameter for the minimum deposits per denom on a Bid. */\n bidMinDeposits: Coin[];\n /** min_reclamation_window is the minimum reclamation window duration allowed. */\n minReclamationWindow:\n | Duration\n | undefined;\n /** max_reclamation_window is the maximum reclamation window duration allowed. */\n maxReclamationWindow: Duration | undefined;\n}\n\nfunction createBaseParams(): Params {\n return {\n bidMinDeposit: undefined,\n orderMaxBids: 0,\n bidMinDeposits: [],\n minReclamationWindow: undefined,\n maxReclamationWindow: undefined,\n };\n}\n\nexport const Params: MessageFns<Params, \"akash.market.v1beta5.Params\"> = {\n $type: \"akash.market.v1beta5.Params\" as const,\n\n encode(message: Params, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {\n if (message.bidMinDeposit !== undefined) {\n Coin.encode(message.bidMinDeposit, writer.uint32(10).fork()).join();\n }\n if (message.orderMaxBids !== 0) {\n writer.uint32(16).uint32(message.orderMaxBids);\n }\n for (const v of message.bidMinDeposits) {\n Coin.encode(v!, writer.uint32(26).fork()).join();\n }\n if (message.minReclamationWindow !== undefined) {\n Duration.encode(message.minReclamationWindow, writer.uint32(34).fork()).join();\n }\n if (message.maxReclamationWindow !== undefined) {\n Duration.encode(message.maxReclamationWindow, writer.uint32(42).fork()).join();\n }\n return writer;\n },\n\n decode(input: BinaryReader | Uint8Array, length?: number): Params {\n const reader = input instanceof BinaryReader ? input : new BinaryReader(input);\n const end = length === undefined ? reader.len : reader.pos + length;\n const message = createBaseParams();\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.bidMinDeposit = Coin.decode(reader, reader.uint32());\n continue;\n }\n case 2: {\n if (tag !== 16) {\n break;\n }\n\n message.orderMaxBids = reader.uint32();\n continue;\n }\n case 3: {\n if (tag !== 26) {\n break;\n }\n\n message.bidMinDeposits.push(Coin.decode(reader, reader.uint32()));\n continue;\n }\n case 4: {\n if (tag !== 34) {\n break;\n }\n\n message.minReclamationWindow = Duration.decode(reader, reader.uint32());\n continue;\n }\n case 5: {\n if (tag !== 42) {\n break;\n }\n\n message.maxReclamationWindow = Duration.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): Params {\n return {\n bidMinDeposit: isSet(object.bid_min_deposit) ? Coin.fromJSON(object.bid_min_deposit) : undefined,\n orderMaxBids: isSet(object.order_max_bids) ? globalThis.Number(object.order_max_bids) : 0,\n bidMinDeposits: globalThis.Array.isArray(object?.bid_min_deposits)\n ? object.bid_min_deposits.map((e: any) => Coin.fromJSON(e))\n : [],\n minReclamationWindow: isSet(object.min_reclamation_window)\n ? Duration.fromJSON(object.min_reclamation_window)\n : undefined,\n maxReclamationWindow: isSet(object.max_reclamation_window)\n ? Duration.fromJSON(object.max_reclamation_window)\n : undefined,\n };\n },\n\n toJSON(message: Params): unknown {\n const obj: any = {};\n if (message.bidMinDeposit !== undefined) {\n obj.bid_min_deposit = Coin.toJSON(message.bidMinDeposit);\n }\n if (message.orderMaxBids !== 0) {\n obj.order_max_bids = Math.round(message.orderMaxBids);\n }\n if (message.bidMinDeposits?.length) {\n obj.bid_min_deposits = message.bidMinDeposits.map((e) => Coin.toJSON(e));\n }\n if (message.minReclamationWindow !== undefined) {\n obj.min_reclamation_window = Duration.toJSON(message.minReclamationWindow);\n }\n if (message.maxReclamationWindow !== undefined) {\n obj.max_reclamation_window = Duration.toJSON(message.maxReclamationWindow);\n }\n return obj;\n },\n fromPartial(object: DeepPartial<Params>): Params {\n const message = createBaseParams();\n message.bidMinDeposit = (object.bidMinDeposit !== undefined && object.bidMinDeposit !== null)\n ? Coin.fromPartial(object.bidMinDeposit)\n : undefined;\n message.orderMaxBids = object.orderMaxBids ?? 0;\n message.bidMinDeposits = object.bidMinDeposits?.map((e) => Coin.fromPartial(e)) || [];\n message.minReclamationWindow = (object.minReclamationWindow !== undefined && object.minReclamationWindow !== null)\n ? Duration.fromPartial(object.minReclamationWindow)\n : undefined;\n message.maxReclamationWindow = (object.maxReclamationWindow !== undefined && object.maxReclamationWindow !== null)\n ? Duration.fromPartial(object.maxReclamationWindow)\n : 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": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;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@@ const Msg = {
|
|
|
67
67
|
return Msg;
|
|
68
68
|
}
|
|
69
69
|
},
|
|
70
|
+
leaseStartReclaim: {
|
|
71
|
+
name: "LeaseStartReclaim",
|
|
72
|
+
input: import_leasemsg.MsgLeaseStartReclaim,
|
|
73
|
+
output: import_leasemsg.MsgLeaseStartReclaimResponse,
|
|
74
|
+
get parent() {
|
|
75
|
+
return Msg;
|
|
76
|
+
}
|
|
77
|
+
},
|
|
70
78
|
updateParams: {
|
|
71
79
|
name: "UpdateParams",
|
|
72
80
|
input: import_paramsmsg.MsgUpdateParams,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../../../../src/generated/protos/akash/market/v1beta5/service_akash.ts"],
|
|
4
|
-
"sourcesContent": ["import { MsgCloseBid, MsgCloseBidResponse, MsgCreateBid, MsgCreateBidResponse } from \"./bidmsg.ts\";\nimport { MsgCloseLease, MsgCloseLeaseResponse, MsgCreateLease, MsgCreateLeaseResponse, MsgWithdrawLease, MsgWithdrawLeaseResponse } from \"./leasemsg.ts\";\nimport { MsgUpdateParams, MsgUpdateParamsResponse } from \"./paramsmsg.ts\";\n\nexport const Msg = {\n typeName: \"akash.market.v1beta5.Msg\",\n methods: {\n createBid: {\n name: \"CreateBid\",\n input: MsgCreateBid,\n output: MsgCreateBidResponse,\n get parent() { return Msg; },\n },\n closeBid: {\n name: \"CloseBid\",\n input: MsgCloseBid,\n output: MsgCloseBidResponse,\n get parent() { return Msg; },\n },\n withdrawLease: {\n name: \"WithdrawLease\",\n input: MsgWithdrawLease,\n output: MsgWithdrawLeaseResponse,\n get parent() { return Msg; },\n },\n createLease: {\n name: \"CreateLease\",\n input: MsgCreateLease,\n output: MsgCreateLeaseResponse,\n get parent() { return Msg; },\n },\n closeLease: {\n name: \"CloseLease\",\n input: MsgCloseLease,\n output: MsgCloseLeaseResponse,\n get parent() { return Msg; },\n },\n updateParams: {\n name: \"UpdateParams\",\n input: MsgUpdateParams,\n output: MsgUpdateParamsResponse,\n get parent() { return Msg; },\n },\n },\n} as const;\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBAAqF;AACrF,
|
|
4
|
+
"sourcesContent": ["import { MsgCloseBid, MsgCloseBidResponse, MsgCreateBid, MsgCreateBidResponse } from \"./bidmsg.ts\";\nimport { MsgCloseLease, MsgCloseLeaseResponse, MsgCreateLease, MsgCreateLeaseResponse, MsgLeaseStartReclaim, MsgLeaseStartReclaimResponse, MsgWithdrawLease, MsgWithdrawLeaseResponse } from \"./leasemsg.ts\";\nimport { MsgUpdateParams, MsgUpdateParamsResponse } from \"./paramsmsg.ts\";\n\nexport const Msg = {\n typeName: \"akash.market.v1beta5.Msg\",\n methods: {\n createBid: {\n name: \"CreateBid\",\n input: MsgCreateBid,\n output: MsgCreateBidResponse,\n get parent() { return Msg; },\n },\n closeBid: {\n name: \"CloseBid\",\n input: MsgCloseBid,\n output: MsgCloseBidResponse,\n get parent() { return Msg; },\n },\n withdrawLease: {\n name: \"WithdrawLease\",\n input: MsgWithdrawLease,\n output: MsgWithdrawLeaseResponse,\n get parent() { return Msg; },\n },\n createLease: {\n name: \"CreateLease\",\n input: MsgCreateLease,\n output: MsgCreateLeaseResponse,\n get parent() { return Msg; },\n },\n closeLease: {\n name: \"CloseLease\",\n input: MsgCloseLease,\n output: MsgCloseLeaseResponse,\n get parent() { return Msg; },\n },\n leaseStartReclaim: {\n name: \"LeaseStartReclaim\",\n input: MsgLeaseStartReclaim,\n output: MsgLeaseStartReclaimResponse,\n get parent() { return Msg; },\n },\n updateParams: {\n name: \"UpdateParams\",\n input: MsgUpdateParams,\n output: MsgUpdateParamsResponse,\n get parent() { return Msg; },\n },\n },\n} as const;\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBAAqF;AACrF,sBAA6L;AAC7L,uBAAyD;AAElD,MAAM,MAAM;AAAA,EACjB,UAAU;AAAA,EACV,SAAS;AAAA,IACP,WAAW;AAAA,MACT,MAAM;AAAA,MACN,OAAO;AAAA,MACP,QAAQ;AAAA,MACR,IAAI,SAAS;AAAE,eAAO;AAAA,MAAK;AAAA,IAC7B;AAAA,IACA,UAAU;AAAA,MACR,MAAM;AAAA,MACN,OAAO;AAAA,MACP,QAAQ;AAAA,MACR,IAAI,SAAS;AAAE,eAAO;AAAA,MAAK;AAAA,IAC7B;AAAA,IACA,eAAe;AAAA,MACb,MAAM;AAAA,MACN,OAAO;AAAA,MACP,QAAQ;AAAA,MACR,IAAI,SAAS;AAAE,eAAO;AAAA,MAAK;AAAA,IAC7B;AAAA,IACA,aAAa;AAAA,MACX,MAAM;AAAA,MACN,OAAO;AAAA,MACP,QAAQ;AAAA,MACR,IAAI,SAAS;AAAE,eAAO;AAAA,MAAK;AAAA,IAC7B;AAAA,IACA,YAAY;AAAA,MACV,MAAM;AAAA,MACN,OAAO;AAAA,MACP,QAAQ;AAAA,MACR,IAAI,SAAS;AAAE,eAAO;AAAA,MAAK;AAAA,IAC7B;AAAA,IACA,mBAAmB;AAAA,MACjB,MAAM;AAAA,MACN,OAAO;AAAA,MACP,QAAQ;AAAA,MACR,IAAI,SAAS;AAAE,eAAO;AAAA,MAAK;AAAA,IAC7B;AAAA,IACA,cAAc;AAAA,MACZ,MAAM;AAAA,MACN,OAAO;AAAA,MACP,QAAQ;AAAA,MACR,IAAI,SAAS;AAAE,eAAO;AAAA,MAAK;AAAA,IAC7B;AAAA,EACF;AACF;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -42,6 +42,7 @@ __export(index_akash_v1_exports, {
|
|
|
42
42
|
DenomTakeRate: () => import_params3.DenomTakeRate,
|
|
43
43
|
Deployment: () => import_deployment.Deployment,
|
|
44
44
|
DeploymentID: () => import_deployment.DeploymentID,
|
|
45
|
+
DeploymentReclamation: () => import_deployment.DeploymentReclamation,
|
|
45
46
|
Deployment_State: () => import_deployment.Deployment_State,
|
|
46
47
|
Deposit: () => import_deposit.Deposit,
|
|
47
48
|
DepositAuthorization: () => import_authz.DepositAuthorization,
|
|
@@ -59,6 +60,7 @@ __export(index_akash_v1_exports, {
|
|
|
59
60
|
EventGroupStarted: () => import_event2.EventGroupStarted,
|
|
60
61
|
EventLeaseClosed: () => import_event3.EventLeaseClosed,
|
|
61
62
|
EventLeaseCreated: () => import_event3.EventLeaseCreated,
|
|
63
|
+
EventLeaseReclaimStarted: () => import_event3.EventLeaseReclaimStarted,
|
|
62
64
|
EventLedgerRecordCanceled: () => import_events.EventLedgerRecordCanceled,
|
|
63
65
|
EventLedgerRecordExecuted: () => import_events.EventLedgerRecordExecuted,
|
|
64
66
|
EventMintStatusChange: () => import_events.EventMintStatusChange,
|
|
@@ -78,6 +80,8 @@ __export(index_akash_v1_exports, {
|
|
|
78
80
|
GenesisLedgerState: () => import_genesis2.GenesisLedgerState,
|
|
79
81
|
GenesisState: () => import_genesis.GenesisState,
|
|
80
82
|
GenesisVaultState: () => import_genesis2.GenesisVaultState,
|
|
83
|
+
GetInfoRequest: () => import_service.GetInfoRequest,
|
|
84
|
+
GetInfoResponse: () => import_service.GetInfoResponse,
|
|
81
85
|
GroupID: () => import_group.GroupID,
|
|
82
86
|
ID: () => import_cert.ID,
|
|
83
87
|
Lease: () => import_lease.Lease,
|
|
@@ -94,6 +98,7 @@ __export(index_akash_v1_exports, {
|
|
|
94
98
|
LedgerRecordID: () => import_types.LedgerRecordID,
|
|
95
99
|
LedgerRecordStatus: () => import_types.LedgerRecordStatus,
|
|
96
100
|
MintStatus: () => import_types.MintStatus,
|
|
101
|
+
ModuleVersion: () => import_client_info.ModuleVersion,
|
|
97
102
|
MsgAccountDeposit: () => import_msg3.MsgAccountDeposit,
|
|
98
103
|
MsgAccountDepositResponse: () => import_msg3.MsgAccountDepositResponse,
|
|
99
104
|
MsgAddPriceEntry: () => import_msgs2.MsgAddPriceEntry,
|
|
@@ -159,6 +164,7 @@ __export(index_akash_v1_exports, {
|
|
|
159
164
|
QueryStatusResponse: () => import_query2.QueryStatusResponse,
|
|
160
165
|
QueryVaultStateRequest: () => import_query2.QueryVaultStateRequest,
|
|
161
166
|
QueryVaultStateResponse: () => import_query2.QueryVaultStateResponse,
|
|
167
|
+
Reclamation: () => import_reclamation.Reclamation,
|
|
162
168
|
Scope: () => import_id.Scope,
|
|
163
169
|
SignedBy: () => import_attribute.SignedBy,
|
|
164
170
|
Source: () => import_deposit.Source,
|
|
@@ -173,6 +179,7 @@ __export(index_akash_v1_exports, {
|
|
|
173
179
|
Types_Account: () => import_account.Account,
|
|
174
180
|
Types_Payment: () => import_payment.Payment,
|
|
175
181
|
Types_State: () => import_state.State,
|
|
182
|
+
VersionInfo: () => import_client_info.VersionInfo,
|
|
176
183
|
Wasm_GenesisState: () => import_genesis7.GenesisState,
|
|
177
184
|
Wasm_MsgUpdateParams: () => import_paramsmsg2.MsgUpdateParams,
|
|
178
185
|
Wasm_MsgUpdateParamsResponse: () => import_paramsmsg2.MsgUpdateParamsResponse,
|
|
@@ -211,6 +218,7 @@ var import_state = require("./akash/escrow/types/v1/state.cjs");
|
|
|
211
218
|
var import_account = require("./akash/escrow/types/v1/account.cjs");
|
|
212
219
|
var import_client_info = require("./akash/discovery/v1/client_info.cjs");
|
|
213
220
|
var import_akash = require("./akash/discovery/v1/akash.cjs");
|
|
221
|
+
var import_service = require("./akash/discovery/v1/service.cjs");
|
|
214
222
|
var import_payment = require("./akash/escrow/types/v1/payment.cjs");
|
|
215
223
|
var import_authz = require("./akash/escrow/v1/authz.cjs");
|
|
216
224
|
var import_genesis4 = require("./akash/escrow/v1/genesis.cjs");
|
|
@@ -219,6 +227,7 @@ var import_query4 = require("./akash/escrow/v1/query.cjs");
|
|
|
219
227
|
var import_bid = require("./akash/market/v1/bid.cjs");
|
|
220
228
|
var import_order = require("./akash/market/v1/order.cjs");
|
|
221
229
|
var import_types2 = require("./akash/market/v1/types.cjs");
|
|
230
|
+
var import_reclamation = require("./akash/market/v1/reclamation.cjs");
|
|
222
231
|
var import_lease = require("./akash/market/v1/lease.cjs");
|
|
223
232
|
var import_event3 = require("./akash/market/v1/event.cjs");
|
|
224
233
|
var import_filters3 = require("./akash/market/v1/filters.cjs");
|