@manifest-network/manifestjs 2.3.0 → 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 +127 -16
- package/dist/codegen/liftedinit/billing/v1/query.js +209 -29
- package/dist/codegen/liftedinit/billing/v1/query.js.map +1 -1
- package/dist/codegen/liftedinit/billing/v1/query.lcd.d.ts +2 -1
- package/dist/codegen/liftedinit/billing/v1/query.lcd.js +8 -2
- package/dist/codegen/liftedinit/billing/v1/query.lcd.js.map +1 -1
- package/dist/codegen/liftedinit/billing/v1/query.lcd.mjs +8 -2
- package/dist/codegen/liftedinit/billing/v1/query.mjs +208 -28
- package/dist/codegen/liftedinit/billing/v1/query.rpc.Query.d.ts +8 -1
- package/dist/codegen/liftedinit/billing/v1/query.rpc.Query.js +10 -0
- package/dist/codegen/liftedinit/billing/v1/query.rpc.Query.js.map +1 -1
- package/dist/codegen/liftedinit/billing/v1/query.rpc.Query.mjs +11 -1
- package/dist/codegen/liftedinit/billing/v1/tx.amino.d.ts +6 -1
- package/dist/codegen/liftedinit/billing/v1/tx.amino.js +5 -0
- package/dist/codegen/liftedinit/billing/v1/tx.amino.js.map +1 -1
- package/dist/codegen/liftedinit/billing/v1/tx.amino.mjs +6 -1
- package/dist/codegen/liftedinit/billing/v1/tx.d.ts +166 -0
- package/dist/codegen/liftedinit/billing/v1/tx.js +239 -11
- package/dist/codegen/liftedinit/billing/v1/tx.js.map +1 -1
- package/dist/codegen/liftedinit/billing/v1/tx.mjs +238 -10
- package/dist/codegen/liftedinit/billing/v1/tx.registry.d.ts +28 -1
- package/dist/codegen/liftedinit/billing/v1/tx.registry.js +31 -1
- package/dist/codegen/liftedinit/billing/v1/tx.registry.js.map +1 -1
- package/dist/codegen/liftedinit/billing/v1/tx.registry.mjs +32 -2
- package/dist/codegen/liftedinit/billing/v1/tx.rpc.msg.d.ts +10 -1
- package/dist/codegen/liftedinit/billing/v1/tx.rpc.msg.js +12 -0
- package/dist/codegen/liftedinit/billing/v1/tx.rpc.msg.js.map +1 -1
- package/dist/codegen/liftedinit/billing/v1/tx.rpc.msg.mjs +13 -1
- package/dist/codegen/liftedinit/billing/v1/types.d.ts +120 -0
- package/dist/codegen/liftedinit/billing/v1/types.js +144 -11
- package/dist/codegen/liftedinit/billing/v1/types.js.map +1 -1
- package/dist/codegen/liftedinit/billing/v1/types.mjs +143 -10
- package/dist/codegen/liftedinit/bundle.d.ts +121 -0
- package/dist/codegen/liftedinit/client.d.ts +5 -0
- package/dist/codegen/liftedinit/rpc.query.d.ts +1 -0
- package/package.json +1 -2
|
@@ -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) {
|
|
@@ -2348,4 +2348,184 @@ export const QueryCreditEstimateResponse = {
|
|
|
2348
2348
|
}
|
|
2349
2349
|
};
|
|
2350
2350
|
GlobalDecoderRegistry.register(QueryCreditEstimateResponse.typeUrl, QueryCreditEstimateResponse);
|
|
2351
|
+
function createBaseQueryLeaseByCustomDomainRequest() {
|
|
2352
|
+
return {
|
|
2353
|
+
customDomain: ""
|
|
2354
|
+
};
|
|
2355
|
+
}
|
|
2356
|
+
export const QueryLeaseByCustomDomainRequest = {
|
|
2357
|
+
typeUrl: "/liftedinit.billing.v1.QueryLeaseByCustomDomainRequest",
|
|
2358
|
+
is(o) {
|
|
2359
|
+
return o && (o.$typeUrl === QueryLeaseByCustomDomainRequest.typeUrl || typeof o.customDomain === "string");
|
|
2360
|
+
},
|
|
2361
|
+
isSDK(o) {
|
|
2362
|
+
return o && (o.$typeUrl === QueryLeaseByCustomDomainRequest.typeUrl || typeof o.custom_domain === "string");
|
|
2363
|
+
},
|
|
2364
|
+
isAmino(o) {
|
|
2365
|
+
return o && (o.$typeUrl === QueryLeaseByCustomDomainRequest.typeUrl || typeof o.custom_domain === "string");
|
|
2366
|
+
},
|
|
2367
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
2368
|
+
if (message.customDomain !== "") {
|
|
2369
|
+
writer.uint32(10).string(message.customDomain);
|
|
2370
|
+
}
|
|
2371
|
+
return writer;
|
|
2372
|
+
},
|
|
2373
|
+
decode(input, length) {
|
|
2374
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2375
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2376
|
+
const message = createBaseQueryLeaseByCustomDomainRequest();
|
|
2377
|
+
while (reader.pos < end) {
|
|
2378
|
+
const tag = reader.uint32();
|
|
2379
|
+
switch (tag >>> 3) {
|
|
2380
|
+
case 1:
|
|
2381
|
+
message.customDomain = reader.string();
|
|
2382
|
+
break;
|
|
2383
|
+
default:
|
|
2384
|
+
reader.skipType(tag & 7);
|
|
2385
|
+
break;
|
|
2386
|
+
}
|
|
2387
|
+
}
|
|
2388
|
+
return message;
|
|
2389
|
+
},
|
|
2390
|
+
fromJSON(object) {
|
|
2391
|
+
return {
|
|
2392
|
+
customDomain: isSet(object.customDomain) ? String(object.customDomain) : ""
|
|
2393
|
+
};
|
|
2394
|
+
},
|
|
2395
|
+
toJSON(message) {
|
|
2396
|
+
const obj = {};
|
|
2397
|
+
message.customDomain !== undefined && (obj.customDomain = message.customDomain);
|
|
2398
|
+
return obj;
|
|
2399
|
+
},
|
|
2400
|
+
fromPartial(object) {
|
|
2401
|
+
const message = createBaseQueryLeaseByCustomDomainRequest();
|
|
2402
|
+
message.customDomain = object.customDomain ?? "";
|
|
2403
|
+
return message;
|
|
2404
|
+
},
|
|
2405
|
+
fromAmino(object) {
|
|
2406
|
+
const message = createBaseQueryLeaseByCustomDomainRequest();
|
|
2407
|
+
if (object.custom_domain !== undefined && object.custom_domain !== null) {
|
|
2408
|
+
message.customDomain = object.custom_domain;
|
|
2409
|
+
}
|
|
2410
|
+
return message;
|
|
2411
|
+
},
|
|
2412
|
+
toAmino(message) {
|
|
2413
|
+
const obj = {};
|
|
2414
|
+
obj.custom_domain = message.customDomain === "" ? undefined : message.customDomain;
|
|
2415
|
+
return obj;
|
|
2416
|
+
},
|
|
2417
|
+
fromAminoMsg(object) {
|
|
2418
|
+
return QueryLeaseByCustomDomainRequest.fromAmino(object.value);
|
|
2419
|
+
},
|
|
2420
|
+
fromProtoMsg(message) {
|
|
2421
|
+
return QueryLeaseByCustomDomainRequest.decode(message.value);
|
|
2422
|
+
},
|
|
2423
|
+
toProto(message) {
|
|
2424
|
+
return QueryLeaseByCustomDomainRequest.encode(message).finish();
|
|
2425
|
+
},
|
|
2426
|
+
toProtoMsg(message) {
|
|
2427
|
+
return {
|
|
2428
|
+
typeUrl: "/liftedinit.billing.v1.QueryLeaseByCustomDomainRequest",
|
|
2429
|
+
value: QueryLeaseByCustomDomainRequest.encode(message).finish()
|
|
2430
|
+
};
|
|
2431
|
+
}
|
|
2432
|
+
};
|
|
2433
|
+
GlobalDecoderRegistry.register(QueryLeaseByCustomDomainRequest.typeUrl, QueryLeaseByCustomDomainRequest);
|
|
2434
|
+
function createBaseQueryLeaseByCustomDomainResponse() {
|
|
2435
|
+
return {
|
|
2436
|
+
lease: Lease.fromPartial({}),
|
|
2437
|
+
serviceName: ""
|
|
2438
|
+
};
|
|
2439
|
+
}
|
|
2440
|
+
export const QueryLeaseByCustomDomainResponse = {
|
|
2441
|
+
typeUrl: "/liftedinit.billing.v1.QueryLeaseByCustomDomainResponse",
|
|
2442
|
+
is(o) {
|
|
2443
|
+
return o && (o.$typeUrl === QueryLeaseByCustomDomainResponse.typeUrl || Lease.is(o.lease) && typeof o.serviceName === "string");
|
|
2444
|
+
},
|
|
2445
|
+
isSDK(o) {
|
|
2446
|
+
return o && (o.$typeUrl === QueryLeaseByCustomDomainResponse.typeUrl || Lease.isSDK(o.lease) && typeof o.service_name === "string");
|
|
2447
|
+
},
|
|
2448
|
+
isAmino(o) {
|
|
2449
|
+
return o && (o.$typeUrl === QueryLeaseByCustomDomainResponse.typeUrl || Lease.isAmino(o.lease) && typeof o.service_name === "string");
|
|
2450
|
+
},
|
|
2451
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
2452
|
+
if (message.lease !== undefined) {
|
|
2453
|
+
Lease.encode(message.lease, writer.uint32(10).fork()).ldelim();
|
|
2454
|
+
}
|
|
2455
|
+
if (message.serviceName !== "") {
|
|
2456
|
+
writer.uint32(18).string(message.serviceName);
|
|
2457
|
+
}
|
|
2458
|
+
return writer;
|
|
2459
|
+
},
|
|
2460
|
+
decode(input, length) {
|
|
2461
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2462
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2463
|
+
const message = createBaseQueryLeaseByCustomDomainResponse();
|
|
2464
|
+
while (reader.pos < end) {
|
|
2465
|
+
const tag = reader.uint32();
|
|
2466
|
+
switch (tag >>> 3) {
|
|
2467
|
+
case 1:
|
|
2468
|
+
message.lease = Lease.decode(reader, reader.uint32());
|
|
2469
|
+
break;
|
|
2470
|
+
case 2:
|
|
2471
|
+
message.serviceName = reader.string();
|
|
2472
|
+
break;
|
|
2473
|
+
default:
|
|
2474
|
+
reader.skipType(tag & 7);
|
|
2475
|
+
break;
|
|
2476
|
+
}
|
|
2477
|
+
}
|
|
2478
|
+
return message;
|
|
2479
|
+
},
|
|
2480
|
+
fromJSON(object) {
|
|
2481
|
+
return {
|
|
2482
|
+
lease: isSet(object.lease) ? Lease.fromJSON(object.lease) : undefined,
|
|
2483
|
+
serviceName: isSet(object.serviceName) ? String(object.serviceName) : ""
|
|
2484
|
+
};
|
|
2485
|
+
},
|
|
2486
|
+
toJSON(message) {
|
|
2487
|
+
const obj = {};
|
|
2488
|
+
message.lease !== undefined && (obj.lease = message.lease ? Lease.toJSON(message.lease) : undefined);
|
|
2489
|
+
message.serviceName !== undefined && (obj.serviceName = message.serviceName);
|
|
2490
|
+
return obj;
|
|
2491
|
+
},
|
|
2492
|
+
fromPartial(object) {
|
|
2493
|
+
const message = createBaseQueryLeaseByCustomDomainResponse();
|
|
2494
|
+
message.lease = object.lease !== undefined && object.lease !== null ? Lease.fromPartial(object.lease) : undefined;
|
|
2495
|
+
message.serviceName = object.serviceName ?? "";
|
|
2496
|
+
return message;
|
|
2497
|
+
},
|
|
2498
|
+
fromAmino(object) {
|
|
2499
|
+
const message = createBaseQueryLeaseByCustomDomainResponse();
|
|
2500
|
+
if (object.lease !== undefined && object.lease !== null) {
|
|
2501
|
+
message.lease = Lease.fromAmino(object.lease);
|
|
2502
|
+
}
|
|
2503
|
+
if (object.service_name !== undefined && object.service_name !== null) {
|
|
2504
|
+
message.serviceName = object.service_name;
|
|
2505
|
+
}
|
|
2506
|
+
return message;
|
|
2507
|
+
},
|
|
2508
|
+
toAmino(message) {
|
|
2509
|
+
const obj = {};
|
|
2510
|
+
obj.lease = message.lease ? Lease.toAmino(message.lease) : Lease.toAmino(Lease.fromPartial({}));
|
|
2511
|
+
obj.service_name = message.serviceName === "" ? undefined : message.serviceName;
|
|
2512
|
+
return obj;
|
|
2513
|
+
},
|
|
2514
|
+
fromAminoMsg(object) {
|
|
2515
|
+
return QueryLeaseByCustomDomainResponse.fromAmino(object.value);
|
|
2516
|
+
},
|
|
2517
|
+
fromProtoMsg(message) {
|
|
2518
|
+
return QueryLeaseByCustomDomainResponse.decode(message.value);
|
|
2519
|
+
},
|
|
2520
|
+
toProto(message) {
|
|
2521
|
+
return QueryLeaseByCustomDomainResponse.encode(message).finish();
|
|
2522
|
+
},
|
|
2523
|
+
toProtoMsg(message) {
|
|
2524
|
+
return {
|
|
2525
|
+
typeUrl: "/liftedinit.billing.v1.QueryLeaseByCustomDomainResponse",
|
|
2526
|
+
value: QueryLeaseByCustomDomainResponse.encode(message).finish()
|
|
2527
|
+
};
|
|
2528
|
+
}
|
|
2529
|
+
};
|
|
2530
|
+
GlobalDecoderRegistry.register(QueryLeaseByCustomDomainResponse.typeUrl, QueryLeaseByCustomDomainResponse);
|
|
2351
2531
|
//# sourceMappingURL=query.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TxRpc } from "../../../types";
|
|
2
2
|
import { QueryClient } from "@cosmjs/stargate";
|
|
3
|
-
import { QueryParamsRequest, QueryParamsResponse, QueryLeaseRequest, QueryLeaseResponse, QueryLeasesRequest, QueryLeasesResponse, QueryLeasesByTenantRequest, QueryLeasesByTenantResponse, QueryLeasesByProviderRequest, QueryLeasesByProviderResponse, QueryCreditAccountRequest, QueryCreditAccountResponse, QueryCreditAddressRequest, QueryCreditAddressResponse, QueryWithdrawableAmountRequest, QueryWithdrawableAmountResponse, QueryProviderWithdrawableRequest, QueryProviderWithdrawableResponse, QueryCreditAccountsRequest, QueryCreditAccountsResponse, QueryLeasesBySKURequest, QueryLeasesBySKUResponse, QueryCreditEstimateRequest, QueryCreditEstimateResponse } from "./query";
|
|
3
|
+
import { QueryParamsRequest, QueryParamsResponse, QueryLeaseRequest, QueryLeaseResponse, QueryLeasesRequest, QueryLeasesResponse, QueryLeasesByTenantRequest, QueryLeasesByTenantResponse, QueryLeasesByProviderRequest, QueryLeasesByProviderResponse, QueryCreditAccountRequest, QueryCreditAccountResponse, QueryCreditAddressRequest, QueryCreditAddressResponse, QueryWithdrawableAmountRequest, QueryWithdrawableAmountResponse, QueryProviderWithdrawableRequest, QueryProviderWithdrawableResponse, QueryCreditAccountsRequest, QueryCreditAccountsResponse, QueryLeasesBySKURequest, QueryLeasesBySKUResponse, QueryCreditEstimateRequest, QueryCreditEstimateResponse, QueryLeaseByCustomDomainRequest, QueryLeaseByCustomDomainResponse } from "./query";
|
|
4
4
|
/** Query defines the gRPC querier service for the billing module. */
|
|
5
5
|
export interface Query {
|
|
6
6
|
/** Params queries the module parameters. */
|
|
@@ -27,6 +27,11 @@ export interface Query {
|
|
|
27
27
|
leasesBySKU(request: QueryLeasesBySKURequest): Promise<QueryLeasesBySKUResponse>;
|
|
28
28
|
/** CreditEstimate estimates remaining lease duration for a tenant. */
|
|
29
29
|
creditEstimate(request: QueryCreditEstimateRequest): Promise<QueryCreditEstimateResponse>;
|
|
30
|
+
/**
|
|
31
|
+
* LeaseByCustomDomain returns the active or pending lease that has claimed
|
|
32
|
+
* the given custom_domain, if any.
|
|
33
|
+
*/
|
|
34
|
+
leaseByCustomDomain(request: QueryLeaseByCustomDomainRequest): Promise<QueryLeaseByCustomDomainResponse>;
|
|
30
35
|
}
|
|
31
36
|
export declare class QueryClientImpl implements Query {
|
|
32
37
|
private readonly rpc;
|
|
@@ -43,6 +48,7 @@ export declare class QueryClientImpl implements Query {
|
|
|
43
48
|
creditAccounts: (request?: QueryCreditAccountsRequest) => Promise<QueryCreditAccountsResponse>;
|
|
44
49
|
leasesBySKU: (request: QueryLeasesBySKURequest) => Promise<QueryLeasesBySKUResponse>;
|
|
45
50
|
creditEstimate: (request: QueryCreditEstimateRequest) => Promise<QueryCreditEstimateResponse>;
|
|
51
|
+
leaseByCustomDomain: (request: QueryLeaseByCustomDomainRequest) => Promise<QueryLeaseByCustomDomainResponse>;
|
|
46
52
|
}
|
|
47
53
|
export declare const createRpcQueryExtension: (base: QueryClient) => {
|
|
48
54
|
params(request?: QueryParamsRequest): Promise<QueryParamsResponse>;
|
|
@@ -57,4 +63,5 @@ export declare const createRpcQueryExtension: (base: QueryClient) => {
|
|
|
57
63
|
creditAccounts(request?: QueryCreditAccountsRequest): Promise<QueryCreditAccountsResponse>;
|
|
58
64
|
leasesBySKU(request: QueryLeasesBySKURequest): Promise<QueryLeasesBySKUResponse>;
|
|
59
65
|
creditEstimate(request: QueryCreditEstimateRequest): Promise<QueryCreditEstimateResponse>;
|
|
66
|
+
leaseByCustomDomain(request: QueryLeaseByCustomDomainRequest): Promise<QueryLeaseByCustomDomainResponse>;
|
|
60
67
|
};
|
|
@@ -83,6 +83,13 @@ class QueryClientImpl {
|
|
|
83
83
|
const promise = this.rpc.request("liftedinit.billing.v1.Query", "CreditEstimate", data);
|
|
84
84
|
return promise.then(data => query_1.QueryCreditEstimateResponse.decode(new binary_1.BinaryReader(data)));
|
|
85
85
|
};
|
|
86
|
+
/* LeaseByCustomDomain returns the active or pending lease that has claimed
|
|
87
|
+
the given custom_domain, if any. */
|
|
88
|
+
leaseByCustomDomain = async (request) => {
|
|
89
|
+
const data = query_1.QueryLeaseByCustomDomainRequest.encode(request).finish();
|
|
90
|
+
const promise = this.rpc.request("liftedinit.billing.v1.Query", "LeaseByCustomDomain", data);
|
|
91
|
+
return promise.then(data => query_1.QueryLeaseByCustomDomainResponse.decode(new binary_1.BinaryReader(data)));
|
|
92
|
+
};
|
|
86
93
|
}
|
|
87
94
|
exports.QueryClientImpl = QueryClientImpl;
|
|
88
95
|
const createRpcQueryExtension = (base) => {
|
|
@@ -124,6 +131,9 @@ const createRpcQueryExtension = (base) => {
|
|
|
124
131
|
},
|
|
125
132
|
creditEstimate(request) {
|
|
126
133
|
return queryService.creditEstimate(request);
|
|
134
|
+
},
|
|
135
|
+
leaseByCustomDomain(request) {
|
|
136
|
+
return queryService.leaseByCustomDomain(request);
|
|
127
137
|
}
|
|
128
138
|
};
|
|
129
139
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query.rpc.Query.js","sourceRoot":"","sources":["../../../../../src/codegen/liftedinit/billing/v1/query.rpc.Query.ts"],"names":[],"mappings":";;;AACA,4CAA+C;AAC/C,+CAAwE;AACxE,
|
|
1
|
+
{"version":3,"file":"query.rpc.Query.js","sourceRoot":"","sources":["../../../../../src/codegen/liftedinit/billing/v1/query.rpc.Query.ts"],"names":[],"mappings":";;;AACA,4CAA+C;AAC/C,+CAAwE;AACxE,mCAAouB;AAiCpuB,MAAa,eAAe;IACT,GAAG,CAAQ;IAC5B,YAAY,GAAU;QACpB,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;IACjB,CAAC;IACD,2CAA2C;IAC3C,MAAM,GAAG,KAAK,EAAE,UAA8B,EAAE,EAAgC,EAAE;QAChF,M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C,CAAC;QAC7C,CAAC;QACD,kBAAkB,CAAC,OAAuC;YACxD,OAAO,YAAY,CAAC,kBAAkB,CAAC,OAAO,CAAC,CAAC;QAClD,CAAC;QACD,oBAAoB,CAAC,OAAyC;YAC5D,OAAO,YAAY,CAAC,oBAAoB,CAAC,OAAO,CAAC,CAAC;QACpD,CAAC;QACD,cAAc,CAAC,OAAoC;YACjD,OAAO,YAAY,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC;QAC9C,CAAC;QACD,WAAW,CAAC,OAAgC;YAC1C,OAAO,YAAY,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;QAC3C,CAAC;QACD,cAAc,CAAC,OAAmC;YAChD,OAAO,YAAY,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC;QAC9C,CAAC;QACD,mBAAmB,CAAC,OAAwC;YAC1D,OAAO,YAAY,CAAC,mBAAmB,CAAC,OAAO,CAAC,CAAC;QACnD,CAAC;KACF,CAAC;AACJ,CAAC,CAAC;AA5CW,QAAA,uBAAuB,2BA4ClC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BinaryReader } from "../../../binary";
|
|
2
2
|
import { createProtobufRpcClient } from "@cosmjs/stargate";
|
|
3
|
-
import { QueryParamsRequest, QueryParamsResponse, QueryLeaseRequest, QueryLeaseResponse, QueryLeasesRequest, QueryLeasesResponse, QueryLeasesByTenantRequest, QueryLeasesByTenantResponse, QueryLeasesByProviderRequest, QueryLeasesByProviderResponse, QueryCreditAccountRequest, QueryCreditAccountResponse, QueryCreditAddressRequest, QueryCreditAddressResponse, QueryWithdrawableAmountRequest, QueryWithdrawableAmountResponse, QueryProviderWithdrawableRequest, QueryProviderWithdrawableResponse, QueryCreditAccountsRequest, QueryCreditAccountsResponse, QueryLeasesBySKURequest, QueryLeasesBySKUResponse, QueryCreditEstimateRequest, QueryCreditEstimateResponse } from "./query";
|
|
3
|
+
import { QueryParamsRequest, QueryParamsResponse, QueryLeaseRequest, QueryLeaseResponse, QueryLeasesRequest, QueryLeasesResponse, QueryLeasesByTenantRequest, QueryLeasesByTenantResponse, QueryLeasesByProviderRequest, QueryLeasesByProviderResponse, QueryCreditAccountRequest, QueryCreditAccountResponse, QueryCreditAddressRequest, QueryCreditAddressResponse, QueryWithdrawableAmountRequest, QueryWithdrawableAmountResponse, QueryProviderWithdrawableRequest, QueryProviderWithdrawableResponse, QueryCreditAccountsRequest, QueryCreditAccountsResponse, QueryLeasesBySKURequest, QueryLeasesBySKUResponse, QueryCreditEstimateRequest, QueryCreditEstimateResponse, QueryLeaseByCustomDomainRequest, QueryLeaseByCustomDomainResponse } from "./query";
|
|
4
4
|
export class QueryClientImpl {
|
|
5
5
|
rpc;
|
|
6
6
|
constructor(rpc) {
|
|
@@ -80,6 +80,13 @@ export class QueryClientImpl {
|
|
|
80
80
|
const promise = this.rpc.request("liftedinit.billing.v1.Query", "CreditEstimate", data);
|
|
81
81
|
return promise.then(data => QueryCreditEstimateResponse.decode(new BinaryReader(data)));
|
|
82
82
|
};
|
|
83
|
+
/* LeaseByCustomDomain returns the active or pending lease that has claimed
|
|
84
|
+
the given custom_domain, if any. */
|
|
85
|
+
leaseByCustomDomain = async (request) => {
|
|
86
|
+
const data = QueryLeaseByCustomDomainRequest.encode(request).finish();
|
|
87
|
+
const promise = this.rpc.request("liftedinit.billing.v1.Query", "LeaseByCustomDomain", data);
|
|
88
|
+
return promise.then(data => QueryLeaseByCustomDomainResponse.decode(new BinaryReader(data)));
|
|
89
|
+
};
|
|
83
90
|
}
|
|
84
91
|
export const createRpcQueryExtension = (base) => {
|
|
85
92
|
const rpc = createProtobufRpcClient(base);
|
|
@@ -120,6 +127,9 @@ export const createRpcQueryExtension = (base) => {
|
|
|
120
127
|
},
|
|
121
128
|
creditEstimate(request) {
|
|
122
129
|
return queryService.creditEstimate(request);
|
|
130
|
+
},
|
|
131
|
+
leaseByCustomDomain(request) {
|
|
132
|
+
return queryService.leaseByCustomDomain(request);
|
|
123
133
|
}
|
|
124
134
|
};
|
|
125
135
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MsgFundCredit, MsgCreateLease, MsgCreateLeaseForTenant, MsgAcknowledgeLease, MsgRejectLease, MsgCancelLease, MsgCloseLease, MsgWithdraw, MsgUpdateParams } from "./tx";
|
|
1
|
+
import { MsgFundCredit, MsgCreateLease, MsgCreateLeaseForTenant, MsgAcknowledgeLease, MsgRejectLease, MsgCancelLease, MsgCloseLease, MsgWithdraw, MsgUpdateParams, MsgSetItemCustomDomain } from "./tx";
|
|
2
2
|
export declare const AminoConverter: {
|
|
3
3
|
"/liftedinit.billing.v1.MsgFundCredit": {
|
|
4
4
|
aminoType: string;
|
|
@@ -45,4 +45,9 @@ export declare const AminoConverter: {
|
|
|
45
45
|
toAmino: (message: MsgUpdateParams) => import("./tx").MsgUpdateParamsAmino;
|
|
46
46
|
fromAmino: (object: import("./tx").MsgUpdateParamsAmino) => MsgUpdateParams;
|
|
47
47
|
};
|
|
48
|
+
"/liftedinit.billing.v1.MsgSetItemCustomDomain": {
|
|
49
|
+
aminoType: string;
|
|
50
|
+
toAmino: (message: MsgSetItemCustomDomain) => import("./tx").MsgSetItemCustomDomainAmino;
|
|
51
|
+
fromAmino: (object: import("./tx").MsgSetItemCustomDomainAmino) => MsgSetItemCustomDomain;
|
|
52
|
+
};
|
|
48
53
|
};
|
|
@@ -47,6 +47,11 @@ exports.AminoConverter = {
|
|
|
47
47
|
aminoType: "lifted/billing/MsgUpdateParams",
|
|
48
48
|
toAmino: tx_1.MsgUpdateParams.toAmino,
|
|
49
49
|
fromAmino: tx_1.MsgUpdateParams.fromAmino
|
|
50
|
+
},
|
|
51
|
+
"/liftedinit.billing.v1.MsgSetItemCustomDomain": {
|
|
52
|
+
aminoType: "lifted/billing/MsgSetItemCustomDomain",
|
|
53
|
+
toAmino: tx_1.MsgSetItemCustomDomain.toAmino,
|
|
54
|
+
fromAmino: tx_1.MsgSetItemCustomDomain.fromAmino
|
|
50
55
|
}
|
|
51
56
|
};
|
|
52
57
|
//# sourceMappingURL=tx.amino.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tx.amino.js","sourceRoot":"","sources":["../../../../../src/codegen/liftedinit/billing/v1/tx.amino.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"tx.amino.js","sourceRoot":"","sources":["../../../../../src/codegen/liftedinit/billing/v1/tx.amino.ts"],"names":[],"mappings":";;;AAAA,6BAAwM;AAC3L,QAAA,cAAc,GAAG;IAC5B,sCAAsC,EAAE;QACtC,SAAS,EAAE,8BAA8B;QACzC,OAAO,EAAE,kBAAa,CAAC,OAAO;QAC9B,SAAS,EAAE,kBAAa,CAAC,SAAS;KACnC;IACD,uCAAuC,EAAE;QACvC,SAAS,EAAE,+BAA+B;QAC1C,OAAO,EAAE,mBAAc,CAAC,OAAO;QAC/B,SAAS,EAAE,mBAAc,CAAC,SAAS;KACpC;IACD,gDAAgD,EAAE;QAChD,SAAS,EAAE,wCAAwC;QACnD,OAAO,EAAE,4BAAuB,CAAC,OAAO;QACxC,SAAS,EAAE,4BAAuB,CAAC,SAAS;KAC7C;IACD,4CAA4C,EAAE;QAC5C,SAAS,EAAE,oCAAoC;QAC/C,OAAO,EAAE,wBAAmB,CAAC,OAAO;QACpC,SAAS,EAAE,wBAAmB,CAAC,SAAS;KACzC;IACD,uCAAuC,EAAE;QACvC,SAAS,EAAE,+BAA+B;QAC1C,OAAO,EAAE,mBAAc,CAAC,OAAO;QAC/B,SAAS,EAAE,mBAAc,CAAC,SAAS;KACpC;IACD,uCAAuC,EAAE;QACvC,SAAS,EAAE,+BAA+B;QAC1C,OAAO,EAAE,mBAAc,CAAC,OAAO;QAC/B,SAAS,EAAE,mBAAc,CAAC,SAAS;KACpC;IACD,sCAAsC,EAAE;QACtC,SAAS,EAAE,8BAA8B;QACzC,OAAO,EAAE,kBAAa,CAAC,OAAO;QAC9B,SAAS,EAAE,kBAAa,CAAC,SAAS;KACnC;IACD,oCAAoC,EAAE;QACpC,SAAS,EAAE,4BAA4B;QACvC,OAAO,EAAE,gBAAW,CAAC,OAAO;QAC5B,SAAS,EAAE,gBAAW,CAAC,SAAS;KACjC;IACD,wCAAwC,EAAE;QACxC,SAAS,EAAE,gCAAgC;QAC3C,OAAO,EAAE,oBAAe,CAAC,OAAO;QAChC,SAAS,EAAE,oBAAe,CAAC,SAAS;KACrC;IACD,+CAA+C,EAAE;QAC/C,SAAS,EAAE,uCAAuC;QAClD,OAAO,EAAE,2BAAsB,CAAC,OAAO;QACvC,SAAS,EAAE,2BAAsB,CAAC,SAAS;KAC5C;CACF,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MsgFundCredit, MsgCreateLease, MsgCreateLeaseForTenant, MsgAcknowledgeLease, MsgRejectLease, MsgCancelLease, MsgCloseLease, MsgWithdraw, MsgUpdateParams } from "./tx";
|
|
1
|
+
import { MsgFundCredit, MsgCreateLease, MsgCreateLeaseForTenant, MsgAcknowledgeLease, MsgRejectLease, MsgCancelLease, MsgCloseLease, MsgWithdraw, MsgUpdateParams, MsgSetItemCustomDomain } from "./tx";
|
|
2
2
|
export const AminoConverter = {
|
|
3
3
|
"/liftedinit.billing.v1.MsgFundCredit": {
|
|
4
4
|
aminoType: "lifted/billing/MsgFundCredit",
|
|
@@ -44,6 +44,11 @@ export const AminoConverter = {
|
|
|
44
44
|
aminoType: "lifted/billing/MsgUpdateParams",
|
|
45
45
|
toAmino: MsgUpdateParams.toAmino,
|
|
46
46
|
fromAmino: MsgUpdateParams.fromAmino
|
|
47
|
+
},
|
|
48
|
+
"/liftedinit.billing.v1.MsgSetItemCustomDomain": {
|
|
49
|
+
aminoType: "lifted/billing/MsgSetItemCustomDomain",
|
|
50
|
+
toAmino: MsgSetItemCustomDomain.toAmino,
|
|
51
|
+
fromAmino: MsgSetItemCustomDomain.fromAmino
|
|
47
52
|
}
|
|
48
53
|
};
|
|
49
54
|
//# sourceMappingURL=tx.amino.js.map
|