@manifest-network/manifestjs 2.4.1 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +293 -170
- package/dist/codegen/liftedinit/billing/v1/query.d.ts +20 -16
- package/dist/codegen/liftedinit/billing/v1/query.js +28 -28
- package/dist/codegen/liftedinit/billing/v1/query.js.map +1 -1
- package/dist/codegen/liftedinit/billing/v1/query.lcd.js +2 -2
- package/dist/codegen/liftedinit/billing/v1/query.lcd.js.map +1 -1
- package/dist/codegen/liftedinit/billing/v1/query.lcd.mjs +2 -2
- package/dist/codegen/liftedinit/billing/v1/query.mjs +28 -28
- package/dist/codegen/liftedinit/billing/v1/tx.d.ts +30 -0
- package/dist/codegen/liftedinit/billing/v1/tx.js +38 -10
- package/dist/codegen/liftedinit/billing/v1/tx.js.map +1 -1
- package/dist/codegen/liftedinit/billing/v1/tx.mjs +38 -10
- package/dist/codegen/liftedinit/billing/v1/tx.registry.d.ts +1 -0
- package/dist/codegen/liftedinit/bundle.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1507,26 +1507,26 @@ GlobalDecoderRegistry.register(QueryWithdrawableAmountResponse.typeUrl, QueryWit
|
|
|
1507
1507
|
function createBaseQueryProviderWithdrawableRequest() {
|
|
1508
1508
|
return {
|
|
1509
1509
|
providerUuid: "",
|
|
1510
|
-
|
|
1510
|
+
pagination: undefined
|
|
1511
1511
|
};
|
|
1512
1512
|
}
|
|
1513
1513
|
export const QueryProviderWithdrawableRequest = {
|
|
1514
1514
|
typeUrl: "/liftedinit.billing.v1.QueryProviderWithdrawableRequest",
|
|
1515
1515
|
is(o) {
|
|
1516
|
-
return o && (o.$typeUrl === QueryProviderWithdrawableRequest.typeUrl || typeof o.providerUuid === "string"
|
|
1516
|
+
return o && (o.$typeUrl === QueryProviderWithdrawableRequest.typeUrl || typeof o.providerUuid === "string");
|
|
1517
1517
|
},
|
|
1518
1518
|
isSDK(o) {
|
|
1519
|
-
return o && (o.$typeUrl === QueryProviderWithdrawableRequest.typeUrl || typeof o.provider_uuid === "string"
|
|
1519
|
+
return o && (o.$typeUrl === QueryProviderWithdrawableRequest.typeUrl || typeof o.provider_uuid === "string");
|
|
1520
1520
|
},
|
|
1521
1521
|
isAmino(o) {
|
|
1522
|
-
return o && (o.$typeUrl === QueryProviderWithdrawableRequest.typeUrl || typeof o.provider_uuid === "string"
|
|
1522
|
+
return o && (o.$typeUrl === QueryProviderWithdrawableRequest.typeUrl || typeof o.provider_uuid === "string");
|
|
1523
1523
|
},
|
|
1524
1524
|
encode(message, writer = BinaryWriter.create()) {
|
|
1525
1525
|
if (message.providerUuid !== "") {
|
|
1526
1526
|
writer.uint32(10).string(message.providerUuid);
|
|
1527
1527
|
}
|
|
1528
|
-
if (message.
|
|
1529
|
-
writer.uint32(
|
|
1528
|
+
if (message.pagination !== undefined) {
|
|
1529
|
+
PageRequest.encode(message.pagination, writer.uint32(26).fork()).ldelim();
|
|
1530
1530
|
}
|
|
1531
1531
|
return writer;
|
|
1532
1532
|
},
|
|
@@ -1540,8 +1540,8 @@ export const QueryProviderWithdrawableRequest = {
|
|
|
1540
1540
|
case 1:
|
|
1541
1541
|
message.providerUuid = reader.string();
|
|
1542
1542
|
break;
|
|
1543
|
-
case
|
|
1544
|
-
message.
|
|
1543
|
+
case 3:
|
|
1544
|
+
message.pagination = PageRequest.decode(reader, reader.uint32());
|
|
1545
1545
|
break;
|
|
1546
1546
|
default:
|
|
1547
1547
|
reader.skipType(tag & 7);
|
|
@@ -1553,19 +1553,19 @@ export const QueryProviderWithdrawableRequest = {
|
|
|
1553
1553
|
fromJSON(object) {
|
|
1554
1554
|
return {
|
|
1555
1555
|
providerUuid: isSet(object.providerUuid) ? String(object.providerUuid) : "",
|
|
1556
|
-
|
|
1556
|
+
pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined
|
|
1557
1557
|
};
|
|
1558
1558
|
},
|
|
1559
1559
|
toJSON(message) {
|
|
1560
1560
|
const obj = {};
|
|
1561
1561
|
message.providerUuid !== undefined && (obj.providerUuid = message.providerUuid);
|
|
1562
|
-
message.
|
|
1562
|
+
message.pagination !== undefined && (obj.pagination = message.pagination ? PageRequest.toJSON(message.pagination) : undefined);
|
|
1563
1563
|
return obj;
|
|
1564
1564
|
},
|
|
1565
1565
|
fromPartial(object) {
|
|
1566
1566
|
const message = createBaseQueryProviderWithdrawableRequest();
|
|
1567
1567
|
message.providerUuid = object.providerUuid ?? "";
|
|
1568
|
-
message.
|
|
1568
|
+
message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined;
|
|
1569
1569
|
return message;
|
|
1570
1570
|
},
|
|
1571
1571
|
fromAmino(object) {
|
|
@@ -1573,15 +1573,15 @@ export const QueryProviderWithdrawableRequest = {
|
|
|
1573
1573
|
if (object.provider_uuid !== undefined && object.provider_uuid !== null) {
|
|
1574
1574
|
message.providerUuid = object.provider_uuid;
|
|
1575
1575
|
}
|
|
1576
|
-
if (object.
|
|
1577
|
-
message.
|
|
1576
|
+
if (object.pagination !== undefined && object.pagination !== null) {
|
|
1577
|
+
message.pagination = PageRequest.fromAmino(object.pagination);
|
|
1578
1578
|
}
|
|
1579
1579
|
return message;
|
|
1580
1580
|
},
|
|
1581
1581
|
toAmino(message) {
|
|
1582
1582
|
const obj = {};
|
|
1583
1583
|
obj.provider_uuid = message.providerUuid === "" ? undefined : message.providerUuid;
|
|
1584
|
-
obj.
|
|
1584
|
+
obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined;
|
|
1585
1585
|
return obj;
|
|
1586
1586
|
},
|
|
1587
1587
|
fromAminoMsg(object) {
|
|
@@ -1605,19 +1605,19 @@ function createBaseQueryProviderWithdrawableResponse() {
|
|
|
1605
1605
|
return {
|
|
1606
1606
|
amounts: [],
|
|
1607
1607
|
leaseCount: BigInt(0),
|
|
1608
|
-
|
|
1608
|
+
pagination: undefined
|
|
1609
1609
|
};
|
|
1610
1610
|
}
|
|
1611
1611
|
export const QueryProviderWithdrawableResponse = {
|
|
1612
1612
|
typeUrl: "/liftedinit.billing.v1.QueryProviderWithdrawableResponse",
|
|
1613
1613
|
is(o) {
|
|
1614
|
-
return o && (o.$typeUrl === QueryProviderWithdrawableResponse.typeUrl || Array.isArray(o.amounts) && (!o.amounts.length || Coin.is(o.amounts[0])) && typeof o.leaseCount === "bigint"
|
|
1614
|
+
return o && (o.$typeUrl === QueryProviderWithdrawableResponse.typeUrl || Array.isArray(o.amounts) && (!o.amounts.length || Coin.is(o.amounts[0])) && typeof o.leaseCount === "bigint");
|
|
1615
1615
|
},
|
|
1616
1616
|
isSDK(o) {
|
|
1617
|
-
return o && (o.$typeUrl === QueryProviderWithdrawableResponse.typeUrl || Array.isArray(o.amounts) && (!o.amounts.length || Coin.isSDK(o.amounts[0])) && typeof o.lease_count === "bigint"
|
|
1617
|
+
return o && (o.$typeUrl === QueryProviderWithdrawableResponse.typeUrl || Array.isArray(o.amounts) && (!o.amounts.length || Coin.isSDK(o.amounts[0])) && typeof o.lease_count === "bigint");
|
|
1618
1618
|
},
|
|
1619
1619
|
isAmino(o) {
|
|
1620
|
-
return o && (o.$typeUrl === QueryProviderWithdrawableResponse.typeUrl || Array.isArray(o.amounts) && (!o.amounts.length || Coin.isAmino(o.amounts[0])) && typeof o.lease_count === "bigint"
|
|
1620
|
+
return o && (o.$typeUrl === QueryProviderWithdrawableResponse.typeUrl || Array.isArray(o.amounts) && (!o.amounts.length || Coin.isAmino(o.amounts[0])) && typeof o.lease_count === "bigint");
|
|
1621
1621
|
},
|
|
1622
1622
|
encode(message, writer = BinaryWriter.create()) {
|
|
1623
1623
|
for (const v of message.amounts) {
|
|
@@ -1626,8 +1626,8 @@ export const QueryProviderWithdrawableResponse = {
|
|
|
1626
1626
|
if (message.leaseCount !== BigInt(0)) {
|
|
1627
1627
|
writer.uint32(16).uint64(message.leaseCount);
|
|
1628
1628
|
}
|
|
1629
|
-
if (message.
|
|
1630
|
-
writer.uint32(
|
|
1629
|
+
if (message.pagination !== undefined) {
|
|
1630
|
+
PageResponse.encode(message.pagination, writer.uint32(34).fork()).ldelim();
|
|
1631
1631
|
}
|
|
1632
1632
|
return writer;
|
|
1633
1633
|
},
|
|
@@ -1644,8 +1644,8 @@ export const QueryProviderWithdrawableResponse = {
|
|
|
1644
1644
|
case 2:
|
|
1645
1645
|
message.leaseCount = reader.uint64();
|
|
1646
1646
|
break;
|
|
1647
|
-
case
|
|
1648
|
-
message.
|
|
1647
|
+
case 4:
|
|
1648
|
+
message.pagination = PageResponse.decode(reader, reader.uint32());
|
|
1649
1649
|
break;
|
|
1650
1650
|
default:
|
|
1651
1651
|
reader.skipType(tag & 7);
|
|
@@ -1658,7 +1658,7 @@ export const QueryProviderWithdrawableResponse = {
|
|
|
1658
1658
|
return {
|
|
1659
1659
|
amounts: Array.isArray(object?.amounts) ? object.amounts.map((e) => Coin.fromJSON(e)) : [],
|
|
1660
1660
|
leaseCount: isSet(object.leaseCount) ? BigInt(object.leaseCount.toString()) : BigInt(0),
|
|
1661
|
-
|
|
1661
|
+
pagination: isSet(object.pagination) ? PageResponse.fromJSON(object.pagination) : undefined
|
|
1662
1662
|
};
|
|
1663
1663
|
},
|
|
1664
1664
|
toJSON(message) {
|
|
@@ -1670,14 +1670,14 @@ export const QueryProviderWithdrawableResponse = {
|
|
|
1670
1670
|
obj.amounts = [];
|
|
1671
1671
|
}
|
|
1672
1672
|
message.leaseCount !== undefined && (obj.leaseCount = (message.leaseCount || BigInt(0)).toString());
|
|
1673
|
-
message.
|
|
1673
|
+
message.pagination !== undefined && (obj.pagination = message.pagination ? PageResponse.toJSON(message.pagination) : undefined);
|
|
1674
1674
|
return obj;
|
|
1675
1675
|
},
|
|
1676
1676
|
fromPartial(object) {
|
|
1677
1677
|
const message = createBaseQueryProviderWithdrawableResponse();
|
|
1678
1678
|
message.amounts = object.amounts?.map(e => Coin.fromPartial(e)) || [];
|
|
1679
1679
|
message.leaseCount = object.leaseCount !== undefined && object.leaseCount !== null ? BigInt(object.leaseCount.toString()) : BigInt(0);
|
|
1680
|
-
message.
|
|
1680
|
+
message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined;
|
|
1681
1681
|
return message;
|
|
1682
1682
|
},
|
|
1683
1683
|
fromAmino(object) {
|
|
@@ -1686,8 +1686,8 @@ export const QueryProviderWithdrawableResponse = {
|
|
|
1686
1686
|
if (object.lease_count !== undefined && object.lease_count !== null) {
|
|
1687
1687
|
message.leaseCount = BigInt(object.lease_count);
|
|
1688
1688
|
}
|
|
1689
|
-
if (object.
|
|
1690
|
-
message.
|
|
1689
|
+
if (object.pagination !== undefined && object.pagination !== null) {
|
|
1690
|
+
message.pagination = PageResponse.fromAmino(object.pagination);
|
|
1691
1691
|
}
|
|
1692
1692
|
return message;
|
|
1693
1693
|
},
|
|
@@ -1700,7 +1700,7 @@ export const QueryProviderWithdrawableResponse = {
|
|
|
1700
1700
|
obj.amounts = message.amounts;
|
|
1701
1701
|
}
|
|
1702
1702
|
obj.lease_count = message.leaseCount !== BigInt(0) ? message.leaseCount?.toString() : undefined;
|
|
1703
|
-
obj.
|
|
1703
|
+
obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined;
|
|
1704
1704
|
return obj;
|
|
1705
1705
|
},
|
|
1706
1706
|
fromAminoMsg(object) {
|
|
@@ -363,6 +363,13 @@ export interface MsgWithdraw {
|
|
|
363
363
|
* Ignored when lease_uuids is specified.
|
|
364
364
|
*/
|
|
365
365
|
limit: bigint;
|
|
366
|
+
/**
|
|
367
|
+
* key is an opaque pagination cursor for provider-wide mode. Echo back the
|
|
368
|
+
* next_key returned by the previous MsgWithdrawResponse to continue paging;
|
|
369
|
+
* empty starts from the beginning. Must not be set when lease_uuids is
|
|
370
|
+
* specified (rejected by ValidateBasic).
|
|
371
|
+
*/
|
|
372
|
+
key: Uint8Array;
|
|
366
373
|
}
|
|
367
374
|
export interface MsgWithdrawProtoMsg {
|
|
368
375
|
typeUrl: "/liftedinit.billing.v1.MsgWithdraw";
|
|
@@ -395,6 +402,13 @@ export interface MsgWithdrawAmino {
|
|
|
395
402
|
* Ignored when lease_uuids is specified.
|
|
396
403
|
*/
|
|
397
404
|
limit?: string;
|
|
405
|
+
/**
|
|
406
|
+
* key is an opaque pagination cursor for provider-wide mode. Echo back the
|
|
407
|
+
* next_key returned by the previous MsgWithdrawResponse to continue paging;
|
|
408
|
+
* empty starts from the beginning. Must not be set when lease_uuids is
|
|
409
|
+
* specified (rejected by ValidateBasic).
|
|
410
|
+
*/
|
|
411
|
+
key?: string;
|
|
398
412
|
}
|
|
399
413
|
export interface MsgWithdrawAminoMsg {
|
|
400
414
|
type: "lifted/billing/MsgWithdraw";
|
|
@@ -412,6 +426,7 @@ export interface MsgWithdrawSDKType {
|
|
|
412
426
|
lease_uuids: string[];
|
|
413
427
|
provider_uuid: string;
|
|
414
428
|
limit: bigint;
|
|
429
|
+
key: Uint8Array;
|
|
415
430
|
}
|
|
416
431
|
/** MsgWithdrawResponse is the response type for MsgWithdraw. */
|
|
417
432
|
export interface MsgWithdrawResponse {
|
|
@@ -426,6 +441,13 @@ export interface MsgWithdrawResponse {
|
|
|
426
441
|
* Always false when using lease_uuids mode.
|
|
427
442
|
*/
|
|
428
443
|
hasMore: boolean;
|
|
444
|
+
/**
|
|
445
|
+
* next_key is the opaque cursor to pass as MsgWithdraw.key to fetch the next
|
|
446
|
+
* page in provider-wide mode. It is non-empty if and only if has_more is
|
|
447
|
+
* true; an empty next_key means there are no more leases. Always empty in
|
|
448
|
+
* lease_uuids mode.
|
|
449
|
+
*/
|
|
450
|
+
nextKey: Uint8Array;
|
|
429
451
|
}
|
|
430
452
|
export interface MsgWithdrawResponseProtoMsg {
|
|
431
453
|
typeUrl: "/liftedinit.billing.v1.MsgWithdrawResponse";
|
|
@@ -444,6 +466,13 @@ export interface MsgWithdrawResponseAmino {
|
|
|
444
466
|
* Always false when using lease_uuids mode.
|
|
445
467
|
*/
|
|
446
468
|
has_more?: boolean;
|
|
469
|
+
/**
|
|
470
|
+
* next_key is the opaque cursor to pass as MsgWithdraw.key to fetch the next
|
|
471
|
+
* page in provider-wide mode. It is non-empty if and only if has_more is
|
|
472
|
+
* true; an empty next_key means there are no more leases. Always empty in
|
|
473
|
+
* lease_uuids mode.
|
|
474
|
+
*/
|
|
475
|
+
next_key?: string;
|
|
447
476
|
}
|
|
448
477
|
export interface MsgWithdrawResponseAminoMsg {
|
|
449
478
|
type: "/liftedinit.billing.v1.MsgWithdrawResponse";
|
|
@@ -455,6 +484,7 @@ export interface MsgWithdrawResponseSDKType {
|
|
|
455
484
|
payout_address: string;
|
|
456
485
|
withdrawal_count: bigint;
|
|
457
486
|
has_more: boolean;
|
|
487
|
+
next_key: Uint8Array;
|
|
458
488
|
}
|
|
459
489
|
/** MsgUpdateParams updates the module parameters. */
|
|
460
490
|
export interface MsgUpdateParams {
|
|
@@ -1027,20 +1027,21 @@ function createBaseMsgWithdraw() {
|
|
|
1027
1027
|
sender: "",
|
|
1028
1028
|
leaseUuids: [],
|
|
1029
1029
|
providerUuid: "",
|
|
1030
|
-
limit: BigInt(0)
|
|
1030
|
+
limit: BigInt(0),
|
|
1031
|
+
key: new Uint8Array()
|
|
1031
1032
|
};
|
|
1032
1033
|
}
|
|
1033
1034
|
exports.MsgWithdraw = {
|
|
1034
1035
|
typeUrl: "/liftedinit.billing.v1.MsgWithdraw",
|
|
1035
1036
|
aminoType: "lifted/billing/MsgWithdraw",
|
|
1036
1037
|
is(o) {
|
|
1037
|
-
return o && (o.$typeUrl === exports.MsgWithdraw.typeUrl || typeof o.sender === "string" && Array.isArray(o.leaseUuids) && (!o.leaseUuids.length || typeof o.leaseUuids[0] === "string") && typeof o.providerUuid === "string" && typeof o.limit === "bigint");
|
|
1038
|
+
return o && (o.$typeUrl === exports.MsgWithdraw.typeUrl || typeof o.sender === "string" && Array.isArray(o.leaseUuids) && (!o.leaseUuids.length || typeof o.leaseUuids[0] === "string") && typeof o.providerUuid === "string" && typeof o.limit === "bigint" && (o.key instanceof Uint8Array || typeof o.key === "string"));
|
|
1038
1039
|
},
|
|
1039
1040
|
isSDK(o) {
|
|
1040
|
-
return o && (o.$typeUrl === exports.MsgWithdraw.typeUrl || typeof o.sender === "string" && Array.isArray(o.lease_uuids) && (!o.lease_uuids.length || typeof o.lease_uuids[0] === "string") && typeof o.provider_uuid === "string" && typeof o.limit === "bigint");
|
|
1041
|
+
return o && (o.$typeUrl === exports.MsgWithdraw.typeUrl || typeof o.sender === "string" && Array.isArray(o.lease_uuids) && (!o.lease_uuids.length || typeof o.lease_uuids[0] === "string") && typeof o.provider_uuid === "string" && typeof o.limit === "bigint" && (o.key instanceof Uint8Array || typeof o.key === "string"));
|
|
1041
1042
|
},
|
|
1042
1043
|
isAmino(o) {
|
|
1043
|
-
return o && (o.$typeUrl === exports.MsgWithdraw.typeUrl || typeof o.sender === "string" && Array.isArray(o.lease_uuids) && (!o.lease_uuids.length || typeof o.lease_uuids[0] === "string") && typeof o.provider_uuid === "string" && typeof o.limit === "bigint");
|
|
1044
|
+
return o && (o.$typeUrl === exports.MsgWithdraw.typeUrl || typeof o.sender === "string" && Array.isArray(o.lease_uuids) && (!o.lease_uuids.length || typeof o.lease_uuids[0] === "string") && typeof o.provider_uuid === "string" && typeof o.limit === "bigint" && (o.key instanceof Uint8Array || typeof o.key === "string"));
|
|
1044
1045
|
},
|
|
1045
1046
|
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
1046
1047
|
if (message.sender !== "") {
|
|
@@ -1055,6 +1056,9 @@ exports.MsgWithdraw = {
|
|
|
1055
1056
|
if (message.limit !== BigInt(0)) {
|
|
1056
1057
|
writer.uint32(32).uint64(message.limit);
|
|
1057
1058
|
}
|
|
1059
|
+
if (message.key.length !== 0) {
|
|
1060
|
+
writer.uint32(42).bytes(message.key);
|
|
1061
|
+
}
|
|
1058
1062
|
return writer;
|
|
1059
1063
|
},
|
|
1060
1064
|
decode(input, length) {
|
|
@@ -1076,6 +1080,9 @@ exports.MsgWithdraw = {
|
|
|
1076
1080
|
case 4:
|
|
1077
1081
|
message.limit = reader.uint64();
|
|
1078
1082
|
break;
|
|
1083
|
+
case 5:
|
|
1084
|
+
message.key = reader.bytes();
|
|
1085
|
+
break;
|
|
1079
1086
|
default:
|
|
1080
1087
|
reader.skipType(tag & 7);
|
|
1081
1088
|
break;
|
|
@@ -1088,7 +1095,8 @@ exports.MsgWithdraw = {
|
|
|
1088
1095
|
sender: (0, helpers_1.isSet)(object.sender) ? String(object.sender) : "",
|
|
1089
1096
|
leaseUuids: Array.isArray(object?.leaseUuids) ? object.leaseUuids.map((e) => String(e)) : [],
|
|
1090
1097
|
providerUuid: (0, helpers_1.isSet)(object.providerUuid) ? String(object.providerUuid) : "",
|
|
1091
|
-
limit: (0, helpers_1.isSet)(object.limit) ? BigInt(object.limit.toString()) : BigInt(0)
|
|
1098
|
+
limit: (0, helpers_1.isSet)(object.limit) ? BigInt(object.limit.toString()) : BigInt(0),
|
|
1099
|
+
key: (0, helpers_1.isSet)(object.key) ? (0, helpers_1.bytesFromBase64)(object.key) : new Uint8Array()
|
|
1092
1100
|
};
|
|
1093
1101
|
},
|
|
1094
1102
|
toJSON(message) {
|
|
@@ -1102,6 +1110,7 @@ exports.MsgWithdraw = {
|
|
|
1102
1110
|
}
|
|
1103
1111
|
message.providerUuid !== undefined && (obj.providerUuid = message.providerUuid);
|
|
1104
1112
|
message.limit !== undefined && (obj.limit = (message.limit || BigInt(0)).toString());
|
|
1113
|
+
message.key !== undefined && (obj.key = (0, helpers_1.base64FromBytes)(message.key !== undefined ? message.key : new Uint8Array()));
|
|
1105
1114
|
return obj;
|
|
1106
1115
|
},
|
|
1107
1116
|
fromPartial(object) {
|
|
@@ -1110,6 +1119,7 @@ exports.MsgWithdraw = {
|
|
|
1110
1119
|
message.leaseUuids = object.leaseUuids?.map(e => e) || [];
|
|
1111
1120
|
message.providerUuid = object.providerUuid ?? "";
|
|
1112
1121
|
message.limit = object.limit !== undefined && object.limit !== null ? BigInt(object.limit.toString()) : BigInt(0);
|
|
1122
|
+
message.key = object.key ?? new Uint8Array();
|
|
1113
1123
|
return message;
|
|
1114
1124
|
},
|
|
1115
1125
|
fromAmino(object) {
|
|
@@ -1124,6 +1134,9 @@ exports.MsgWithdraw = {
|
|
|
1124
1134
|
if (object.limit !== undefined && object.limit !== null) {
|
|
1125
1135
|
message.limit = BigInt(object.limit);
|
|
1126
1136
|
}
|
|
1137
|
+
if (object.key !== undefined && object.key !== null) {
|
|
1138
|
+
message.key = (0, helpers_1.bytesFromBase64)(object.key);
|
|
1139
|
+
}
|
|
1127
1140
|
return message;
|
|
1128
1141
|
},
|
|
1129
1142
|
toAmino(message) {
|
|
@@ -1137,6 +1150,7 @@ exports.MsgWithdraw = {
|
|
|
1137
1150
|
}
|
|
1138
1151
|
obj.provider_uuid = message.providerUuid === "" ? undefined : message.providerUuid;
|
|
1139
1152
|
obj.limit = message.limit !== BigInt(0) ? message.limit?.toString() : undefined;
|
|
1153
|
+
obj.key = message.key ? (0, helpers_1.base64FromBytes)(message.key) : undefined;
|
|
1140
1154
|
return obj;
|
|
1141
1155
|
},
|
|
1142
1156
|
fromAminoMsg(object) {
|
|
@@ -1168,19 +1182,20 @@ function createBaseMsgWithdrawResponse() {
|
|
|
1168
1182
|
totalAmounts: [],
|
|
1169
1183
|
payoutAddress: "",
|
|
1170
1184
|
withdrawalCount: BigInt(0),
|
|
1171
|
-
hasMore: false
|
|
1185
|
+
hasMore: false,
|
|
1186
|
+
nextKey: new Uint8Array()
|
|
1172
1187
|
};
|
|
1173
1188
|
}
|
|
1174
1189
|
exports.MsgWithdrawResponse = {
|
|
1175
1190
|
typeUrl: "/liftedinit.billing.v1.MsgWithdrawResponse",
|
|
1176
1191
|
is(o) {
|
|
1177
|
-
return o && (o.$typeUrl === exports.MsgWithdrawResponse.typeUrl || Array.isArray(o.totalAmounts) && (!o.totalAmounts.length || coin_1.Coin.is(o.totalAmounts[0])) && typeof o.payoutAddress === "string" && typeof o.withdrawalCount === "bigint" && typeof o.hasMore === "boolean");
|
|
1192
|
+
return o && (o.$typeUrl === exports.MsgWithdrawResponse.typeUrl || Array.isArray(o.totalAmounts) && (!o.totalAmounts.length || coin_1.Coin.is(o.totalAmounts[0])) && typeof o.payoutAddress === "string" && typeof o.withdrawalCount === "bigint" && typeof o.hasMore === "boolean" && (o.nextKey instanceof Uint8Array || typeof o.nextKey === "string"));
|
|
1178
1193
|
},
|
|
1179
1194
|
isSDK(o) {
|
|
1180
|
-
return o && (o.$typeUrl === exports.MsgWithdrawResponse.typeUrl || Array.isArray(o.total_amounts) && (!o.total_amounts.length || coin_1.Coin.isSDK(o.total_amounts[0])) && typeof o.payout_address === "string" && typeof o.withdrawal_count === "bigint" && typeof o.has_more === "boolean");
|
|
1195
|
+
return o && (o.$typeUrl === exports.MsgWithdrawResponse.typeUrl || Array.isArray(o.total_amounts) && (!o.total_amounts.length || coin_1.Coin.isSDK(o.total_amounts[0])) && typeof o.payout_address === "string" && typeof o.withdrawal_count === "bigint" && typeof o.has_more === "boolean" && (o.next_key instanceof Uint8Array || typeof o.next_key === "string"));
|
|
1181
1196
|
},
|
|
1182
1197
|
isAmino(o) {
|
|
1183
|
-
return o && (o.$typeUrl === exports.MsgWithdrawResponse.typeUrl || Array.isArray(o.total_amounts) && (!o.total_amounts.length || coin_1.Coin.isAmino(o.total_amounts[0])) && typeof o.payout_address === "string" && typeof o.withdrawal_count === "bigint" && typeof o.has_more === "boolean");
|
|
1198
|
+
return o && (o.$typeUrl === exports.MsgWithdrawResponse.typeUrl || Array.isArray(o.total_amounts) && (!o.total_amounts.length || coin_1.Coin.isAmino(o.total_amounts[0])) && typeof o.payout_address === "string" && typeof o.withdrawal_count === "bigint" && typeof o.has_more === "boolean" && (o.next_key instanceof Uint8Array || typeof o.next_key === "string"));
|
|
1184
1199
|
},
|
|
1185
1200
|
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
1186
1201
|
for (const v of message.totalAmounts) {
|
|
@@ -1195,6 +1210,9 @@ exports.MsgWithdrawResponse = {
|
|
|
1195
1210
|
if (message.hasMore === true) {
|
|
1196
1211
|
writer.uint32(32).bool(message.hasMore);
|
|
1197
1212
|
}
|
|
1213
|
+
if (message.nextKey.length !== 0) {
|
|
1214
|
+
writer.uint32(42).bytes(message.nextKey);
|
|
1215
|
+
}
|
|
1198
1216
|
return writer;
|
|
1199
1217
|
},
|
|
1200
1218
|
decode(input, length) {
|
|
@@ -1216,6 +1234,9 @@ exports.MsgWithdrawResponse = {
|
|
|
1216
1234
|
case 4:
|
|
1217
1235
|
message.hasMore = reader.bool();
|
|
1218
1236
|
break;
|
|
1237
|
+
case 5:
|
|
1238
|
+
message.nextKey = reader.bytes();
|
|
1239
|
+
break;
|
|
1219
1240
|
default:
|
|
1220
1241
|
reader.skipType(tag & 7);
|
|
1221
1242
|
break;
|
|
@@ -1228,7 +1249,8 @@ exports.MsgWithdrawResponse = {
|
|
|
1228
1249
|
totalAmounts: Array.isArray(object?.totalAmounts) ? object.totalAmounts.map((e) => coin_1.Coin.fromJSON(e)) : [],
|
|
1229
1250
|
payoutAddress: (0, helpers_1.isSet)(object.payoutAddress) ? String(object.payoutAddress) : "",
|
|
1230
1251
|
withdrawalCount: (0, helpers_1.isSet)(object.withdrawalCount) ? BigInt(object.withdrawalCount.toString()) : BigInt(0),
|
|
1231
|
-
hasMore: (0, helpers_1.isSet)(object.hasMore) ? Boolean(object.hasMore) : false
|
|
1252
|
+
hasMore: (0, helpers_1.isSet)(object.hasMore) ? Boolean(object.hasMore) : false,
|
|
1253
|
+
nextKey: (0, helpers_1.isSet)(object.nextKey) ? (0, helpers_1.bytesFromBase64)(object.nextKey) : new Uint8Array()
|
|
1232
1254
|
};
|
|
1233
1255
|
},
|
|
1234
1256
|
toJSON(message) {
|
|
@@ -1242,6 +1264,7 @@ exports.MsgWithdrawResponse = {
|
|
|
1242
1264
|
message.payoutAddress !== undefined && (obj.payoutAddress = message.payoutAddress);
|
|
1243
1265
|
message.withdrawalCount !== undefined && (obj.withdrawalCount = (message.withdrawalCount || BigInt(0)).toString());
|
|
1244
1266
|
message.hasMore !== undefined && (obj.hasMore = message.hasMore);
|
|
1267
|
+
message.nextKey !== undefined && (obj.nextKey = (0, helpers_1.base64FromBytes)(message.nextKey !== undefined ? message.nextKey : new Uint8Array()));
|
|
1245
1268
|
return obj;
|
|
1246
1269
|
},
|
|
1247
1270
|
fromPartial(object) {
|
|
@@ -1250,6 +1273,7 @@ exports.MsgWithdrawResponse = {
|
|
|
1250
1273
|
message.payoutAddress = object.payoutAddress ?? "";
|
|
1251
1274
|
message.withdrawalCount = object.withdrawalCount !== undefined && object.withdrawalCount !== null ? BigInt(object.withdrawalCount.toString()) : BigInt(0);
|
|
1252
1275
|
message.hasMore = object.hasMore ?? false;
|
|
1276
|
+
message.nextKey = object.nextKey ?? new Uint8Array();
|
|
1253
1277
|
return message;
|
|
1254
1278
|
},
|
|
1255
1279
|
fromAmino(object) {
|
|
@@ -1264,6 +1288,9 @@ exports.MsgWithdrawResponse = {
|
|
|
1264
1288
|
if (object.has_more !== undefined && object.has_more !== null) {
|
|
1265
1289
|
message.hasMore = object.has_more;
|
|
1266
1290
|
}
|
|
1291
|
+
if (object.next_key !== undefined && object.next_key !== null) {
|
|
1292
|
+
message.nextKey = (0, helpers_1.bytesFromBase64)(object.next_key);
|
|
1293
|
+
}
|
|
1267
1294
|
return message;
|
|
1268
1295
|
},
|
|
1269
1296
|
toAmino(message) {
|
|
@@ -1277,6 +1304,7 @@ exports.MsgWithdrawResponse = {
|
|
|
1277
1304
|
obj.payout_address = message.payoutAddress === "" ? undefined : message.payoutAddress;
|
|
1278
1305
|
obj.withdrawal_count = message.withdrawalCount !== BigInt(0) ? message.withdrawalCount?.toString() : undefined;
|
|
1279
1306
|
obj.has_more = message.hasMore === false ? undefined : message.hasMore;
|
|
1307
|
+
obj.next_key = message.nextKey ? (0, helpers_1.base64FromBytes)(message.nextKey) : undefined;
|
|
1280
1308
|
return obj;
|
|
1281
1309
|
},
|
|
1282
1310
|
fromAminoMsg(object) {
|