@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
|
@@ -505,10 +505,12 @@ export interface QueryProviderWithdrawableRequest {
|
|
|
505
505
|
/** provider_uuid is the UUID of the provider. */
|
|
506
506
|
providerUuid: string;
|
|
507
507
|
/**
|
|
508
|
-
*
|
|
509
|
-
*
|
|
508
|
+
* pagination defines optional pagination. Only ACTIVE leases are iterated
|
|
509
|
+
* (the only ones that can contribute a withdrawable amount). Page size
|
|
510
|
+
* defaults to 100 and is capped at 1000. Loop until pagination.next_key is
|
|
511
|
+
* empty and sum the response amounts for the provider's full withdrawable total.
|
|
510
512
|
*/
|
|
511
|
-
|
|
513
|
+
pagination?: PageRequest;
|
|
512
514
|
}
|
|
513
515
|
export interface QueryProviderWithdrawableRequestProtoMsg {
|
|
514
516
|
typeUrl: "/liftedinit.billing.v1.QueryProviderWithdrawableRequest";
|
|
@@ -522,10 +524,12 @@ export interface QueryProviderWithdrawableRequestAmino {
|
|
|
522
524
|
/** provider_uuid is the UUID of the provider. */
|
|
523
525
|
provider_uuid?: string;
|
|
524
526
|
/**
|
|
525
|
-
*
|
|
526
|
-
*
|
|
527
|
+
* pagination defines optional pagination. Only ACTIVE leases are iterated
|
|
528
|
+
* (the only ones that can contribute a withdrawable amount). Page size
|
|
529
|
+
* defaults to 100 and is capped at 1000. Loop until pagination.next_key is
|
|
530
|
+
* empty and sum the response amounts for the provider's full withdrawable total.
|
|
527
531
|
*/
|
|
528
|
-
|
|
532
|
+
pagination?: PageRequestAmino;
|
|
529
533
|
}
|
|
530
534
|
export interface QueryProviderWithdrawableRequestAminoMsg {
|
|
531
535
|
type: "/liftedinit.billing.v1.QueryProviderWithdrawableRequest";
|
|
@@ -537,7 +541,7 @@ export interface QueryProviderWithdrawableRequestAminoMsg {
|
|
|
537
541
|
*/
|
|
538
542
|
export interface QueryProviderWithdrawableRequestSDKType {
|
|
539
543
|
provider_uuid: string;
|
|
540
|
-
|
|
544
|
+
pagination?: PageRequestSDKType;
|
|
541
545
|
}
|
|
542
546
|
/**
|
|
543
547
|
* QueryProviderWithdrawableResponse is the response type for the
|
|
@@ -546,13 +550,13 @@ export interface QueryProviderWithdrawableRequestSDKType {
|
|
|
546
550
|
export interface QueryProviderWithdrawableResponse {
|
|
547
551
|
/** amounts is the total amounts available for withdrawal across all leases (one per denom). */
|
|
548
552
|
amounts: Coin[];
|
|
549
|
-
/** lease_count is the number of leases
|
|
553
|
+
/** lease_count is the number of leases with a non-zero withdrawable amount in this page. */
|
|
550
554
|
leaseCount: bigint;
|
|
551
555
|
/**
|
|
552
|
-
*
|
|
553
|
-
*
|
|
556
|
+
* pagination defines the pagination in the response. A non-empty next_key
|
|
557
|
+
* means more leases remain; pass it as the next request's pagination.key.
|
|
554
558
|
*/
|
|
555
|
-
|
|
559
|
+
pagination?: PageResponse;
|
|
556
560
|
}
|
|
557
561
|
export interface QueryProviderWithdrawableResponseProtoMsg {
|
|
558
562
|
typeUrl: "/liftedinit.billing.v1.QueryProviderWithdrawableResponse";
|
|
@@ -565,13 +569,13 @@ export interface QueryProviderWithdrawableResponseProtoMsg {
|
|
|
565
569
|
export interface QueryProviderWithdrawableResponseAmino {
|
|
566
570
|
/** amounts is the total amounts available for withdrawal across all leases (one per denom). */
|
|
567
571
|
amounts: CoinAmino[];
|
|
568
|
-
/** lease_count is the number of leases
|
|
572
|
+
/** lease_count is the number of leases with a non-zero withdrawable amount in this page. */
|
|
569
573
|
lease_count?: string;
|
|
570
574
|
/**
|
|
571
|
-
*
|
|
572
|
-
*
|
|
575
|
+
* pagination defines the pagination in the response. A non-empty next_key
|
|
576
|
+
* means more leases remain; pass it as the next request's pagination.key.
|
|
573
577
|
*/
|
|
574
|
-
|
|
578
|
+
pagination?: PageResponseAmino;
|
|
575
579
|
}
|
|
576
580
|
export interface QueryProviderWithdrawableResponseAminoMsg {
|
|
577
581
|
type: "/liftedinit.billing.v1.QueryProviderWithdrawableResponse";
|
|
@@ -584,7 +588,7 @@ export interface QueryProviderWithdrawableResponseAminoMsg {
|
|
|
584
588
|
export interface QueryProviderWithdrawableResponseSDKType {
|
|
585
589
|
amounts: CoinSDKType[];
|
|
586
590
|
lease_count: bigint;
|
|
587
|
-
|
|
591
|
+
pagination?: PageResponseSDKType;
|
|
588
592
|
}
|
|
589
593
|
/**
|
|
590
594
|
* QueryCreditAccountsRequest is the request type for the Query/CreditAccounts
|
|
@@ -1510,26 +1510,26 @@ registry_1.GlobalDecoderRegistry.register(exports.QueryWithdrawableAmountRespons
|
|
|
1510
1510
|
function createBaseQueryProviderWithdrawableRequest() {
|
|
1511
1511
|
return {
|
|
1512
1512
|
providerUuid: "",
|
|
1513
|
-
|
|
1513
|
+
pagination: undefined
|
|
1514
1514
|
};
|
|
1515
1515
|
}
|
|
1516
1516
|
exports.QueryProviderWithdrawableRequest = {
|
|
1517
1517
|
typeUrl: "/liftedinit.billing.v1.QueryProviderWithdrawableRequest",
|
|
1518
1518
|
is(o) {
|
|
1519
|
-
return o && (o.$typeUrl === exports.QueryProviderWithdrawableRequest.typeUrl || typeof o.providerUuid === "string"
|
|
1519
|
+
return o && (o.$typeUrl === exports.QueryProviderWithdrawableRequest.typeUrl || typeof o.providerUuid === "string");
|
|
1520
1520
|
},
|
|
1521
1521
|
isSDK(o) {
|
|
1522
|
-
return o && (o.$typeUrl === exports.QueryProviderWithdrawableRequest.typeUrl || typeof o.provider_uuid === "string"
|
|
1522
|
+
return o && (o.$typeUrl === exports.QueryProviderWithdrawableRequest.typeUrl || typeof o.provider_uuid === "string");
|
|
1523
1523
|
},
|
|
1524
1524
|
isAmino(o) {
|
|
1525
|
-
return o && (o.$typeUrl === exports.QueryProviderWithdrawableRequest.typeUrl || typeof o.provider_uuid === "string"
|
|
1525
|
+
return o && (o.$typeUrl === exports.QueryProviderWithdrawableRequest.typeUrl || typeof o.provider_uuid === "string");
|
|
1526
1526
|
},
|
|
1527
1527
|
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
1528
1528
|
if (message.providerUuid !== "") {
|
|
1529
1529
|
writer.uint32(10).string(message.providerUuid);
|
|
1530
1530
|
}
|
|
1531
|
-
if (message.
|
|
1532
|
-
writer.uint32(
|
|
1531
|
+
if (message.pagination !== undefined) {
|
|
1532
|
+
pagination_1.PageRequest.encode(message.pagination, writer.uint32(26).fork()).ldelim();
|
|
1533
1533
|
}
|
|
1534
1534
|
return writer;
|
|
1535
1535
|
},
|
|
@@ -1543,8 +1543,8 @@ exports.QueryProviderWithdrawableRequest = {
|
|
|
1543
1543
|
case 1:
|
|
1544
1544
|
message.providerUuid = reader.string();
|
|
1545
1545
|
break;
|
|
1546
|
-
case
|
|
1547
|
-
message.
|
|
1546
|
+
case 3:
|
|
1547
|
+
message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32());
|
|
1548
1548
|
break;
|
|
1549
1549
|
default:
|
|
1550
1550
|
reader.skipType(tag & 7);
|
|
@@ -1556,19 +1556,19 @@ exports.QueryProviderWithdrawableRequest = {
|
|
|
1556
1556
|
fromJSON(object) {
|
|
1557
1557
|
return {
|
|
1558
1558
|
providerUuid: (0, helpers_1.isSet)(object.providerUuid) ? String(object.providerUuid) : "",
|
|
1559
|
-
|
|
1559
|
+
pagination: (0, helpers_1.isSet)(object.pagination) ? pagination_1.PageRequest.fromJSON(object.pagination) : undefined
|
|
1560
1560
|
};
|
|
1561
1561
|
},
|
|
1562
1562
|
toJSON(message) {
|
|
1563
1563
|
const obj = {};
|
|
1564
1564
|
message.providerUuid !== undefined && (obj.providerUuid = message.providerUuid);
|
|
1565
|
-
message.
|
|
1565
|
+
message.pagination !== undefined && (obj.pagination = message.pagination ? pagination_1.PageRequest.toJSON(message.pagination) : undefined);
|
|
1566
1566
|
return obj;
|
|
1567
1567
|
},
|
|
1568
1568
|
fromPartial(object) {
|
|
1569
1569
|
const message = createBaseQueryProviderWithdrawableRequest();
|
|
1570
1570
|
message.providerUuid = object.providerUuid ?? "";
|
|
1571
|
-
message.
|
|
1571
|
+
message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined;
|
|
1572
1572
|
return message;
|
|
1573
1573
|
},
|
|
1574
1574
|
fromAmino(object) {
|
|
@@ -1576,15 +1576,15 @@ exports.QueryProviderWithdrawableRequest = {
|
|
|
1576
1576
|
if (object.provider_uuid !== undefined && object.provider_uuid !== null) {
|
|
1577
1577
|
message.providerUuid = object.provider_uuid;
|
|
1578
1578
|
}
|
|
1579
|
-
if (object.
|
|
1580
|
-
message.
|
|
1579
|
+
if (object.pagination !== undefined && object.pagination !== null) {
|
|
1580
|
+
message.pagination = pagination_1.PageRequest.fromAmino(object.pagination);
|
|
1581
1581
|
}
|
|
1582
1582
|
return message;
|
|
1583
1583
|
},
|
|
1584
1584
|
toAmino(message) {
|
|
1585
1585
|
const obj = {};
|
|
1586
1586
|
obj.provider_uuid = message.providerUuid === "" ? undefined : message.providerUuid;
|
|
1587
|
-
obj.
|
|
1587
|
+
obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined;
|
|
1588
1588
|
return obj;
|
|
1589
1589
|
},
|
|
1590
1590
|
fromAminoMsg(object) {
|
|
@@ -1608,19 +1608,19 @@ function createBaseQueryProviderWithdrawableResponse() {
|
|
|
1608
1608
|
return {
|
|
1609
1609
|
amounts: [],
|
|
1610
1610
|
leaseCount: BigInt(0),
|
|
1611
|
-
|
|
1611
|
+
pagination: undefined
|
|
1612
1612
|
};
|
|
1613
1613
|
}
|
|
1614
1614
|
exports.QueryProviderWithdrawableResponse = {
|
|
1615
1615
|
typeUrl: "/liftedinit.billing.v1.QueryProviderWithdrawableResponse",
|
|
1616
1616
|
is(o) {
|
|
1617
|
-
return o && (o.$typeUrl === exports.QueryProviderWithdrawableResponse.typeUrl || Array.isArray(o.amounts) && (!o.amounts.length || coin_1.Coin.is(o.amounts[0])) && typeof o.leaseCount === "bigint"
|
|
1617
|
+
return o && (o.$typeUrl === exports.QueryProviderWithdrawableResponse.typeUrl || Array.isArray(o.amounts) && (!o.amounts.length || coin_1.Coin.is(o.amounts[0])) && typeof o.leaseCount === "bigint");
|
|
1618
1618
|
},
|
|
1619
1619
|
isSDK(o) {
|
|
1620
|
-
return o && (o.$typeUrl === exports.QueryProviderWithdrawableResponse.typeUrl || Array.isArray(o.amounts) && (!o.amounts.length || coin_1.Coin.isSDK(o.amounts[0])) && typeof o.lease_count === "bigint"
|
|
1620
|
+
return o && (o.$typeUrl === exports.QueryProviderWithdrawableResponse.typeUrl || Array.isArray(o.amounts) && (!o.amounts.length || coin_1.Coin.isSDK(o.amounts[0])) && typeof o.lease_count === "bigint");
|
|
1621
1621
|
},
|
|
1622
1622
|
isAmino(o) {
|
|
1623
|
-
return o && (o.$typeUrl === exports.QueryProviderWithdrawableResponse.typeUrl || Array.isArray(o.amounts) && (!o.amounts.length || coin_1.Coin.isAmino(o.amounts[0])) && typeof o.lease_count === "bigint"
|
|
1623
|
+
return o && (o.$typeUrl === exports.QueryProviderWithdrawableResponse.typeUrl || Array.isArray(o.amounts) && (!o.amounts.length || coin_1.Coin.isAmino(o.amounts[0])) && typeof o.lease_count === "bigint");
|
|
1624
1624
|
},
|
|
1625
1625
|
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
1626
1626
|
for (const v of message.amounts) {
|
|
@@ -1629,8 +1629,8 @@ exports.QueryProviderWithdrawableResponse = {
|
|
|
1629
1629
|
if (message.leaseCount !== BigInt(0)) {
|
|
1630
1630
|
writer.uint32(16).uint64(message.leaseCount);
|
|
1631
1631
|
}
|
|
1632
|
-
if (message.
|
|
1633
|
-
writer.uint32(
|
|
1632
|
+
if (message.pagination !== undefined) {
|
|
1633
|
+
pagination_1.PageResponse.encode(message.pagination, writer.uint32(34).fork()).ldelim();
|
|
1634
1634
|
}
|
|
1635
1635
|
return writer;
|
|
1636
1636
|
},
|
|
@@ -1647,8 +1647,8 @@ exports.QueryProviderWithdrawableResponse = {
|
|
|
1647
1647
|
case 2:
|
|
1648
1648
|
message.leaseCount = reader.uint64();
|
|
1649
1649
|
break;
|
|
1650
|
-
case
|
|
1651
|
-
message.
|
|
1650
|
+
case 4:
|
|
1651
|
+
message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32());
|
|
1652
1652
|
break;
|
|
1653
1653
|
default:
|
|
1654
1654
|
reader.skipType(tag & 7);
|
|
@@ -1661,7 +1661,7 @@ exports.QueryProviderWithdrawableResponse = {
|
|
|
1661
1661
|
return {
|
|
1662
1662
|
amounts: Array.isArray(object?.amounts) ? object.amounts.map((e) => coin_1.Coin.fromJSON(e)) : [],
|
|
1663
1663
|
leaseCount: (0, helpers_1.isSet)(object.leaseCount) ? BigInt(object.leaseCount.toString()) : BigInt(0),
|
|
1664
|
-
|
|
1664
|
+
pagination: (0, helpers_1.isSet)(object.pagination) ? pagination_1.PageResponse.fromJSON(object.pagination) : undefined
|
|
1665
1665
|
};
|
|
1666
1666
|
},
|
|
1667
1667
|
toJSON(message) {
|
|
@@ -1673,14 +1673,14 @@ exports.QueryProviderWithdrawableResponse = {
|
|
|
1673
1673
|
obj.amounts = [];
|
|
1674
1674
|
}
|
|
1675
1675
|
message.leaseCount !== undefined && (obj.leaseCount = (message.leaseCount || BigInt(0)).toString());
|
|
1676
|
-
message.
|
|
1676
|
+
message.pagination !== undefined && (obj.pagination = message.pagination ? pagination_1.PageResponse.toJSON(message.pagination) : undefined);
|
|
1677
1677
|
return obj;
|
|
1678
1678
|
},
|
|
1679
1679
|
fromPartial(object) {
|
|
1680
1680
|
const message = createBaseQueryProviderWithdrawableResponse();
|
|
1681
1681
|
message.amounts = object.amounts?.map(e => coin_1.Coin.fromPartial(e)) || [];
|
|
1682
1682
|
message.leaseCount = object.leaseCount !== undefined && object.leaseCount !== null ? BigInt(object.leaseCount.toString()) : BigInt(0);
|
|
1683
|
-
message.
|
|
1683
|
+
message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined;
|
|
1684
1684
|
return message;
|
|
1685
1685
|
},
|
|
1686
1686
|
fromAmino(object) {
|
|
@@ -1689,8 +1689,8 @@ exports.QueryProviderWithdrawableResponse = {
|
|
|
1689
1689
|
if (object.lease_count !== undefined && object.lease_count !== null) {
|
|
1690
1690
|
message.leaseCount = BigInt(object.lease_count);
|
|
1691
1691
|
}
|
|
1692
|
-
if (object.
|
|
1693
|
-
message.
|
|
1692
|
+
if (object.pagination !== undefined && object.pagination !== null) {
|
|
1693
|
+
message.pagination = pagination_1.PageResponse.fromAmino(object.pagination);
|
|
1694
1694
|
}
|
|
1695
1695
|
return message;
|
|
1696
1696
|
},
|
|
@@ -1703,7 +1703,7 @@ exports.QueryProviderWithdrawableResponse = {
|
|
|
1703
1703
|
obj.amounts = message.amounts;
|
|
1704
1704
|
}
|
|
1705
1705
|
obj.lease_count = message.leaseCount !== BigInt(0) ? message.leaseCount?.toString() : undefined;
|
|
1706
|
-
obj.
|
|
1706
|
+
obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined;
|
|
1707
1707
|
return obj;
|
|
1708
1708
|
},
|
|
1709
1709
|
fromAminoMsg(object) {
|