@manifest-network/manifestjs 2.2.0-billing-v2.3 → 2.4.1
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 +2 -3
- package/dist/codegen/liftedinit/billing/v1/genesis.d.ts +11 -0
- package/dist/codegen/liftedinit/billing/v1/genesis.js +19 -5
- package/dist/codegen/liftedinit/billing/v1/genesis.js.map +1 -1
- package/dist/codegen/liftedinit/billing/v1/genesis.mjs +19 -5
- package/dist/codegen/liftedinit/billing/v1/query.d.ts +107 -0
- package/dist/codegen/liftedinit/billing/v1/query.js +181 -1
- 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 +6 -0
- package/dist/codegen/liftedinit/billing/v1/query.lcd.js.map +1 -1
- package/dist/codegen/liftedinit/billing/v1/query.lcd.mjs +6 -0
- package/dist/codegen/liftedinit/billing/v1/query.mjs +180 -0
- 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 +136 -0
- package/dist/codegen/liftedinit/billing/v1/tx.js +201 -1
- package/dist/codegen/liftedinit/billing/v1/tx.js.map +1 -1
- package/dist/codegen/liftedinit/billing/v1/tx.mjs +200 -0
- package/dist/codegen/liftedinit/billing/v1/tx.registry.d.ts +27 -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 +120 -0
- package/dist/codegen/liftedinit/client.d.ts +5 -0
- package/dist/codegen/liftedinit/rpc.query.d.ts +1 -0
- package/dist/codegen/liftedinit/sku/v1/genesis.d.ts +22 -0
- package/dist/codegen/liftedinit/sku/v1/genesis.js +33 -5
- package/dist/codegen/liftedinit/sku/v1/genesis.js.map +1 -1
- package/dist/codegen/liftedinit/sku/v1/genesis.mjs +33 -5
- package/package.json +1 -2
package/README.md
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
<h1 align="center">manifestjs</h1>
|
|
2
2
|
|
|
3
3
|
<p align="center">
|
|
4
|
-
<img src="https://
|
|
5
|
-
Javascript library for interacting with the Manifest Network
|
|
4
|
+
<img src="https://raw.githubusercontent.com/cosmos/chain-registry/00df6ff89abd382f9efe3d37306c353e2bd8d55c/manifest/images/manifest.png" alt="Manifest Network" width="100"/>
|
|
6
5
|
</p>
|
|
7
6
|
|
|
8
7
|
## install
|
|
@@ -10,6 +10,11 @@ export interface GenesisState {
|
|
|
10
10
|
leases: Lease[];
|
|
11
11
|
/** credit_accounts is the list of all credit accounts. */
|
|
12
12
|
creditAccounts: CreditAccount[];
|
|
13
|
+
/**
|
|
14
|
+
* lease_sequence is the sequence counter for deterministic lease UUID generation.
|
|
15
|
+
* Exported via Sequence.Peek(); the next Sequence.Next() call will return this value.
|
|
16
|
+
*/
|
|
17
|
+
leaseSequence: bigint;
|
|
13
18
|
}
|
|
14
19
|
export interface GenesisStateProtoMsg {
|
|
15
20
|
typeUrl: "/liftedinit.billing.v1.GenesisState";
|
|
@@ -23,6 +28,11 @@ export interface GenesisStateAmino {
|
|
|
23
28
|
leases: LeaseAmino[];
|
|
24
29
|
/** credit_accounts is the list of all credit accounts. */
|
|
25
30
|
credit_accounts: CreditAccountAmino[];
|
|
31
|
+
/**
|
|
32
|
+
* lease_sequence is the sequence counter for deterministic lease UUID generation.
|
|
33
|
+
* Exported via Sequence.Peek(); the next Sequence.Next() call will return this value.
|
|
34
|
+
*/
|
|
35
|
+
lease_sequence: string;
|
|
26
36
|
}
|
|
27
37
|
export interface GenesisStateAminoMsg {
|
|
28
38
|
type: "lifted/billing/GenesisState";
|
|
@@ -33,6 +43,7 @@ export interface GenesisStateSDKType {
|
|
|
33
43
|
params: ParamsSDKType;
|
|
34
44
|
leases: LeaseSDKType[];
|
|
35
45
|
credit_accounts: CreditAccountSDKType[];
|
|
46
|
+
lease_sequence: bigint;
|
|
36
47
|
}
|
|
37
48
|
export declare const GenesisState: {
|
|
38
49
|
typeUrl: string;
|
|
@@ -9,20 +9,21 @@ function createBaseGenesisState() {
|
|
|
9
9
|
return {
|
|
10
10
|
params: types_1.Params.fromPartial({}),
|
|
11
11
|
leases: [],
|
|
12
|
-
creditAccounts: []
|
|
12
|
+
creditAccounts: [],
|
|
13
|
+
leaseSequence: BigInt(0)
|
|
13
14
|
};
|
|
14
15
|
}
|
|
15
16
|
exports.GenesisState = {
|
|
16
17
|
typeUrl: "/liftedinit.billing.v1.GenesisState",
|
|
17
18
|
aminoType: "lifted/billing/GenesisState",
|
|
18
19
|
is(o) {
|
|
19
|
-
return o && (o.$typeUrl === exports.GenesisState.typeUrl || types_1.Params.is(o.params) && Array.isArray(o.leases) && (!o.leases.length || types_1.Lease.is(o.leases[0])) && Array.isArray(o.creditAccounts) && (!o.creditAccounts.length || types_1.CreditAccount.is(o.creditAccounts[0])));
|
|
20
|
+
return o && (o.$typeUrl === exports.GenesisState.typeUrl || types_1.Params.is(o.params) && Array.isArray(o.leases) && (!o.leases.length || types_1.Lease.is(o.leases[0])) && Array.isArray(o.creditAccounts) && (!o.creditAccounts.length || types_1.CreditAccount.is(o.creditAccounts[0])) && typeof o.leaseSequence === "bigint");
|
|
20
21
|
},
|
|
21
22
|
isSDK(o) {
|
|
22
|
-
return o && (o.$typeUrl === exports.GenesisState.typeUrl || types_1.Params.isSDK(o.params) && Array.isArray(o.leases) && (!o.leases.length || types_1.Lease.isSDK(o.leases[0])) && Array.isArray(o.credit_accounts) && (!o.credit_accounts.length || types_1.CreditAccount.isSDK(o.credit_accounts[0])));
|
|
23
|
+
return o && (o.$typeUrl === exports.GenesisState.typeUrl || types_1.Params.isSDK(o.params) && Array.isArray(o.leases) && (!o.leases.length || types_1.Lease.isSDK(o.leases[0])) && Array.isArray(o.credit_accounts) && (!o.credit_accounts.length || types_1.CreditAccount.isSDK(o.credit_accounts[0])) && typeof o.lease_sequence === "bigint");
|
|
23
24
|
},
|
|
24
25
|
isAmino(o) {
|
|
25
|
-
return o && (o.$typeUrl === exports.GenesisState.typeUrl || types_1.Params.isAmino(o.params) && Array.isArray(o.leases) && (!o.leases.length || types_1.Lease.isAmino(o.leases[0])) && Array.isArray(o.credit_accounts) && (!o.credit_accounts.length || types_1.CreditAccount.isAmino(o.credit_accounts[0])));
|
|
26
|
+
return o && (o.$typeUrl === exports.GenesisState.typeUrl || types_1.Params.isAmino(o.params) && Array.isArray(o.leases) && (!o.leases.length || types_1.Lease.isAmino(o.leases[0])) && Array.isArray(o.credit_accounts) && (!o.credit_accounts.length || types_1.CreditAccount.isAmino(o.credit_accounts[0])) && typeof o.lease_sequence === "bigint");
|
|
26
27
|
},
|
|
27
28
|
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
28
29
|
if (message.params !== undefined) {
|
|
@@ -34,6 +35,9 @@ exports.GenesisState = {
|
|
|
34
35
|
for (const v of message.creditAccounts) {
|
|
35
36
|
types_1.CreditAccount.encode(v, writer.uint32(26).fork()).ldelim();
|
|
36
37
|
}
|
|
38
|
+
if (message.leaseSequence !== BigInt(0)) {
|
|
39
|
+
writer.uint32(32).uint64(message.leaseSequence);
|
|
40
|
+
}
|
|
37
41
|
return writer;
|
|
38
42
|
},
|
|
39
43
|
decode(input, length) {
|
|
@@ -52,6 +56,9 @@ exports.GenesisState = {
|
|
|
52
56
|
case 3:
|
|
53
57
|
message.creditAccounts.push(types_1.CreditAccount.decode(reader, reader.uint32()));
|
|
54
58
|
break;
|
|
59
|
+
case 4:
|
|
60
|
+
message.leaseSequence = reader.uint64();
|
|
61
|
+
break;
|
|
55
62
|
default:
|
|
56
63
|
reader.skipType(tag & 7);
|
|
57
64
|
break;
|
|
@@ -63,7 +70,8 @@ exports.GenesisState = {
|
|
|
63
70
|
return {
|
|
64
71
|
params: (0, helpers_1.isSet)(object.params) ? types_1.Params.fromJSON(object.params) : undefined,
|
|
65
72
|
leases: Array.isArray(object?.leases) ? object.leases.map((e) => types_1.Lease.fromJSON(e)) : [],
|
|
66
|
-
creditAccounts: Array.isArray(object?.creditAccounts) ? object.creditAccounts.map((e) => types_1.CreditAccount.fromJSON(e)) : []
|
|
73
|
+
creditAccounts: Array.isArray(object?.creditAccounts) ? object.creditAccounts.map((e) => types_1.CreditAccount.fromJSON(e)) : [],
|
|
74
|
+
leaseSequence: (0, helpers_1.isSet)(object.leaseSequence) ? BigInt(object.leaseSequence.toString()) : BigInt(0)
|
|
67
75
|
};
|
|
68
76
|
},
|
|
69
77
|
toJSON(message) {
|
|
@@ -81,6 +89,7 @@ exports.GenesisState = {
|
|
|
81
89
|
else {
|
|
82
90
|
obj.creditAccounts = [];
|
|
83
91
|
}
|
|
92
|
+
message.leaseSequence !== undefined && (obj.leaseSequence = (message.leaseSequence || BigInt(0)).toString());
|
|
84
93
|
return obj;
|
|
85
94
|
},
|
|
86
95
|
fromPartial(object) {
|
|
@@ -88,6 +97,7 @@ exports.GenesisState = {
|
|
|
88
97
|
message.params = object.params !== undefined && object.params !== null ? types_1.Params.fromPartial(object.params) : undefined;
|
|
89
98
|
message.leases = object.leases?.map(e => types_1.Lease.fromPartial(e)) || [];
|
|
90
99
|
message.creditAccounts = object.creditAccounts?.map(e => types_1.CreditAccount.fromPartial(e)) || [];
|
|
100
|
+
message.leaseSequence = object.leaseSequence !== undefined && object.leaseSequence !== null ? BigInt(object.leaseSequence.toString()) : BigInt(0);
|
|
91
101
|
return message;
|
|
92
102
|
},
|
|
93
103
|
fromAmino(object) {
|
|
@@ -97,6 +107,9 @@ exports.GenesisState = {
|
|
|
97
107
|
}
|
|
98
108
|
message.leases = object.leases?.map(e => types_1.Lease.fromAmino(e)) || [];
|
|
99
109
|
message.creditAccounts = object.credit_accounts?.map(e => types_1.CreditAccount.fromAmino(e)) || [];
|
|
110
|
+
if (object.lease_sequence !== undefined && object.lease_sequence !== null) {
|
|
111
|
+
message.leaseSequence = BigInt(object.lease_sequence);
|
|
112
|
+
}
|
|
100
113
|
return message;
|
|
101
114
|
},
|
|
102
115
|
toAmino(message) {
|
|
@@ -114,6 +127,7 @@ exports.GenesisState = {
|
|
|
114
127
|
else {
|
|
115
128
|
obj.credit_accounts = message.creditAccounts;
|
|
116
129
|
}
|
|
130
|
+
obj.lease_sequence = message.leaseSequence ? message.leaseSequence?.toString() : "0";
|
|
117
131
|
return obj;
|
|
118
132
|
},
|
|
119
133
|
fromAminoMsg(object) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"genesis.js","sourceRoot":"","sources":["../../../../../src/codegen/liftedinit/billing/v1/genesis.ts"],"names":[],"mappings":";;;AAAA,mCAAuJ;AACvJ,4CAA6D;AAC7D,8CAA6D;AAE7D,gDAA0D;
|
|
1
|
+
{"version":3,"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O,CAAC,aAAa,CAAC,CAAC,CAAC,OAAO,CAAC,aAAa,EAAE,QAAQ,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC;QACrF,OAAO,GAAG,CAAC;IACb,CAAC;IACD,YAAY,CAAC,MAA4B;QACvC,OAAO,oBAAY,CAAC,SAAS,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IAC9C,CAAC;IACD,UAAU,CAAC,OAAqB;QAC9B,OAAO;YACL,IAAI,EAAE,6BAA6B;YACnC,KAAK,EAAE,oBAAY,CAAC,OAAO,CAAC,OAAO,CAAC;SACrC,CAAC;IACJ,CAAC;IACD,YAAY,CAAC,OAA6B;QACxC,OAAO,oBAAY,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IAC5C,CAAC;IACD,OAAO,CAAC,OAAqB;QAC3B,OAAO,oBAAY,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,CAAC;IAC/C,CAAC;IACD,UAAU,CAAC,OAAqB;QAC9B,OAAO;YACL,OAAO,EAAE,qCAAqC;YAC9C,KAAK,EAAE,oBAAY,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE;SAC7C,CAAC;IACJ,CAAC;CACF,CAAC;AACF,gCAAqB,CAAC,QAAQ,CAAC,oBAAY,CAAC,OAAO,EAAE,oBAAY,CAAC,CAAC;AACnE,gCAAqB,CAAC,yBAAyB,CAAC,oBAAY,CAAC,SAAS,EAAE,oBAAY,CAAC,OAAO,CAAC,CAAC"}
|
|
@@ -6,20 +6,21 @@ function createBaseGenesisState() {
|
|
|
6
6
|
return {
|
|
7
7
|
params: Params.fromPartial({}),
|
|
8
8
|
leases: [],
|
|
9
|
-
creditAccounts: []
|
|
9
|
+
creditAccounts: [],
|
|
10
|
+
leaseSequence: BigInt(0)
|
|
10
11
|
};
|
|
11
12
|
}
|
|
12
13
|
export const GenesisState = {
|
|
13
14
|
typeUrl: "/liftedinit.billing.v1.GenesisState",
|
|
14
15
|
aminoType: "lifted/billing/GenesisState",
|
|
15
16
|
is(o) {
|
|
16
|
-
return o && (o.$typeUrl === GenesisState.typeUrl || Params.is(o.params) && Array.isArray(o.leases) && (!o.leases.length || Lease.is(o.leases[0])) && Array.isArray(o.creditAccounts) && (!o.creditAccounts.length || CreditAccount.is(o.creditAccounts[0])));
|
|
17
|
+
return o && (o.$typeUrl === GenesisState.typeUrl || Params.is(o.params) && Array.isArray(o.leases) && (!o.leases.length || Lease.is(o.leases[0])) && Array.isArray(o.creditAccounts) && (!o.creditAccounts.length || CreditAccount.is(o.creditAccounts[0])) && typeof o.leaseSequence === "bigint");
|
|
17
18
|
},
|
|
18
19
|
isSDK(o) {
|
|
19
|
-
return o && (o.$typeUrl === GenesisState.typeUrl || Params.isSDK(o.params) && Array.isArray(o.leases) && (!o.leases.length || Lease.isSDK(o.leases[0])) && Array.isArray(o.credit_accounts) && (!o.credit_accounts.length || CreditAccount.isSDK(o.credit_accounts[0])));
|
|
20
|
+
return o && (o.$typeUrl === GenesisState.typeUrl || Params.isSDK(o.params) && Array.isArray(o.leases) && (!o.leases.length || Lease.isSDK(o.leases[0])) && Array.isArray(o.credit_accounts) && (!o.credit_accounts.length || CreditAccount.isSDK(o.credit_accounts[0])) && typeof o.lease_sequence === "bigint");
|
|
20
21
|
},
|
|
21
22
|
isAmino(o) {
|
|
22
|
-
return o && (o.$typeUrl === GenesisState.typeUrl || Params.isAmino(o.params) && Array.isArray(o.leases) && (!o.leases.length || Lease.isAmino(o.leases[0])) && Array.isArray(o.credit_accounts) && (!o.credit_accounts.length || CreditAccount.isAmino(o.credit_accounts[0])));
|
|
23
|
+
return o && (o.$typeUrl === GenesisState.typeUrl || Params.isAmino(o.params) && Array.isArray(o.leases) && (!o.leases.length || Lease.isAmino(o.leases[0])) && Array.isArray(o.credit_accounts) && (!o.credit_accounts.length || CreditAccount.isAmino(o.credit_accounts[0])) && typeof o.lease_sequence === "bigint");
|
|
23
24
|
},
|
|
24
25
|
encode(message, writer = BinaryWriter.create()) {
|
|
25
26
|
if (message.params !== undefined) {
|
|
@@ -31,6 +32,9 @@ export const GenesisState = {
|
|
|
31
32
|
for (const v of message.creditAccounts) {
|
|
32
33
|
CreditAccount.encode(v, writer.uint32(26).fork()).ldelim();
|
|
33
34
|
}
|
|
35
|
+
if (message.leaseSequence !== BigInt(0)) {
|
|
36
|
+
writer.uint32(32).uint64(message.leaseSequence);
|
|
37
|
+
}
|
|
34
38
|
return writer;
|
|
35
39
|
},
|
|
36
40
|
decode(input, length) {
|
|
@@ -49,6 +53,9 @@ export const GenesisState = {
|
|
|
49
53
|
case 3:
|
|
50
54
|
message.creditAccounts.push(CreditAccount.decode(reader, reader.uint32()));
|
|
51
55
|
break;
|
|
56
|
+
case 4:
|
|
57
|
+
message.leaseSequence = reader.uint64();
|
|
58
|
+
break;
|
|
52
59
|
default:
|
|
53
60
|
reader.skipType(tag & 7);
|
|
54
61
|
break;
|
|
@@ -60,7 +67,8 @@ export const GenesisState = {
|
|
|
60
67
|
return {
|
|
61
68
|
params: isSet(object.params) ? Params.fromJSON(object.params) : undefined,
|
|
62
69
|
leases: Array.isArray(object?.leases) ? object.leases.map((e) => Lease.fromJSON(e)) : [],
|
|
63
|
-
creditAccounts: Array.isArray(object?.creditAccounts) ? object.creditAccounts.map((e) => CreditAccount.fromJSON(e)) : []
|
|
70
|
+
creditAccounts: Array.isArray(object?.creditAccounts) ? object.creditAccounts.map((e) => CreditAccount.fromJSON(e)) : [],
|
|
71
|
+
leaseSequence: isSet(object.leaseSequence) ? BigInt(object.leaseSequence.toString()) : BigInt(0)
|
|
64
72
|
};
|
|
65
73
|
},
|
|
66
74
|
toJSON(message) {
|
|
@@ -78,6 +86,7 @@ export const GenesisState = {
|
|
|
78
86
|
else {
|
|
79
87
|
obj.creditAccounts = [];
|
|
80
88
|
}
|
|
89
|
+
message.leaseSequence !== undefined && (obj.leaseSequence = (message.leaseSequence || BigInt(0)).toString());
|
|
81
90
|
return obj;
|
|
82
91
|
},
|
|
83
92
|
fromPartial(object) {
|
|
@@ -85,6 +94,7 @@ export const GenesisState = {
|
|
|
85
94
|
message.params = object.params !== undefined && object.params !== null ? Params.fromPartial(object.params) : undefined;
|
|
86
95
|
message.leases = object.leases?.map(e => Lease.fromPartial(e)) || [];
|
|
87
96
|
message.creditAccounts = object.creditAccounts?.map(e => CreditAccount.fromPartial(e)) || [];
|
|
97
|
+
message.leaseSequence = object.leaseSequence !== undefined && object.leaseSequence !== null ? BigInt(object.leaseSequence.toString()) : BigInt(0);
|
|
88
98
|
return message;
|
|
89
99
|
},
|
|
90
100
|
fromAmino(object) {
|
|
@@ -94,6 +104,9 @@ export const GenesisState = {
|
|
|
94
104
|
}
|
|
95
105
|
message.leases = object.leases?.map(e => Lease.fromAmino(e)) || [];
|
|
96
106
|
message.creditAccounts = object.credit_accounts?.map(e => CreditAccount.fromAmino(e)) || [];
|
|
107
|
+
if (object.lease_sequence !== undefined && object.lease_sequence !== null) {
|
|
108
|
+
message.leaseSequence = BigInt(object.lease_sequence);
|
|
109
|
+
}
|
|
97
110
|
return message;
|
|
98
111
|
},
|
|
99
112
|
toAmino(message) {
|
|
@@ -111,6 +124,7 @@ export const GenesisState = {
|
|
|
111
124
|
else {
|
|
112
125
|
obj.credit_accounts = message.creditAccounts;
|
|
113
126
|
}
|
|
127
|
+
obj.lease_sequence = message.leaseSequence ? message.leaseSequence?.toString() : "0";
|
|
114
128
|
return obj;
|
|
115
129
|
},
|
|
116
130
|
fromAminoMsg(object) {
|
|
@@ -815,6 +815,79 @@ export interface QueryCreditEstimateResponseSDKType {
|
|
|
815
815
|
estimated_duration_seconds: bigint;
|
|
816
816
|
active_lease_count: bigint;
|
|
817
817
|
}
|
|
818
|
+
/**
|
|
819
|
+
* QueryLeaseByCustomDomainRequest is the request type for the
|
|
820
|
+
* Query/LeaseByCustomDomain RPC method.
|
|
821
|
+
*/
|
|
822
|
+
export interface QueryLeaseByCustomDomainRequest {
|
|
823
|
+
/** custom_domain is the FQDN to look up. */
|
|
824
|
+
customDomain: string;
|
|
825
|
+
}
|
|
826
|
+
export interface QueryLeaseByCustomDomainRequestProtoMsg {
|
|
827
|
+
typeUrl: "/liftedinit.billing.v1.QueryLeaseByCustomDomainRequest";
|
|
828
|
+
value: Uint8Array;
|
|
829
|
+
}
|
|
830
|
+
/**
|
|
831
|
+
* QueryLeaseByCustomDomainRequest is the request type for the
|
|
832
|
+
* Query/LeaseByCustomDomain RPC method.
|
|
833
|
+
*/
|
|
834
|
+
export interface QueryLeaseByCustomDomainRequestAmino {
|
|
835
|
+
/** custom_domain is the FQDN to look up. */
|
|
836
|
+
custom_domain?: string;
|
|
837
|
+
}
|
|
838
|
+
export interface QueryLeaseByCustomDomainRequestAminoMsg {
|
|
839
|
+
type: "/liftedinit.billing.v1.QueryLeaseByCustomDomainRequest";
|
|
840
|
+
value: QueryLeaseByCustomDomainRequestAmino;
|
|
841
|
+
}
|
|
842
|
+
/**
|
|
843
|
+
* QueryLeaseByCustomDomainRequest is the request type for the
|
|
844
|
+
* Query/LeaseByCustomDomain RPC method.
|
|
845
|
+
*/
|
|
846
|
+
export interface QueryLeaseByCustomDomainRequestSDKType {
|
|
847
|
+
custom_domain: string;
|
|
848
|
+
}
|
|
849
|
+
/**
|
|
850
|
+
* QueryLeaseByCustomDomainResponse is the response type for the
|
|
851
|
+
* Query/LeaseByCustomDomain RPC method.
|
|
852
|
+
*/
|
|
853
|
+
export interface QueryLeaseByCustomDomainResponse {
|
|
854
|
+
/** lease is the lease that owns the LeaseItem holding this custom_domain. */
|
|
855
|
+
lease: Lease;
|
|
856
|
+
/**
|
|
857
|
+
* service_name identifies the specific LeaseItem within the lease.
|
|
858
|
+
* For a 1-item legacy lease, this is "".
|
|
859
|
+
*/
|
|
860
|
+
serviceName: string;
|
|
861
|
+
}
|
|
862
|
+
export interface QueryLeaseByCustomDomainResponseProtoMsg {
|
|
863
|
+
typeUrl: "/liftedinit.billing.v1.QueryLeaseByCustomDomainResponse";
|
|
864
|
+
value: Uint8Array;
|
|
865
|
+
}
|
|
866
|
+
/**
|
|
867
|
+
* QueryLeaseByCustomDomainResponse is the response type for the
|
|
868
|
+
* Query/LeaseByCustomDomain RPC method.
|
|
869
|
+
*/
|
|
870
|
+
export interface QueryLeaseByCustomDomainResponseAmino {
|
|
871
|
+
/** lease is the lease that owns the LeaseItem holding this custom_domain. */
|
|
872
|
+
lease: LeaseAmino;
|
|
873
|
+
/**
|
|
874
|
+
* service_name identifies the specific LeaseItem within the lease.
|
|
875
|
+
* For a 1-item legacy lease, this is "".
|
|
876
|
+
*/
|
|
877
|
+
service_name?: string;
|
|
878
|
+
}
|
|
879
|
+
export interface QueryLeaseByCustomDomainResponseAminoMsg {
|
|
880
|
+
type: "/liftedinit.billing.v1.QueryLeaseByCustomDomainResponse";
|
|
881
|
+
value: QueryLeaseByCustomDomainResponseAmino;
|
|
882
|
+
}
|
|
883
|
+
/**
|
|
884
|
+
* QueryLeaseByCustomDomainResponse is the response type for the
|
|
885
|
+
* Query/LeaseByCustomDomain RPC method.
|
|
886
|
+
*/
|
|
887
|
+
export interface QueryLeaseByCustomDomainResponseSDKType {
|
|
888
|
+
lease: LeaseSDKType;
|
|
889
|
+
service_name: string;
|
|
890
|
+
}
|
|
818
891
|
export declare const QueryParamsRequest: {
|
|
819
892
|
typeUrl: string;
|
|
820
893
|
is(o: any): o is QueryParamsRequest;
|
|
@@ -1223,3 +1296,37 @@ export declare const QueryCreditEstimateResponse: {
|
|
|
1223
1296
|
toProto(message: QueryCreditEstimateResponse): Uint8Array;
|
|
1224
1297
|
toProtoMsg(message: QueryCreditEstimateResponse): QueryCreditEstimateResponseProtoMsg;
|
|
1225
1298
|
};
|
|
1299
|
+
export declare const QueryLeaseByCustomDomainRequest: {
|
|
1300
|
+
typeUrl: string;
|
|
1301
|
+
is(o: any): o is QueryLeaseByCustomDomainRequest;
|
|
1302
|
+
isSDK(o: any): o is QueryLeaseByCustomDomainRequestSDKType;
|
|
1303
|
+
isAmino(o: any): o is QueryLeaseByCustomDomainRequestAmino;
|
|
1304
|
+
encode(message: QueryLeaseByCustomDomainRequest, writer?: BinaryWriter): BinaryWriter;
|
|
1305
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryLeaseByCustomDomainRequest;
|
|
1306
|
+
fromJSON(object: any): QueryLeaseByCustomDomainRequest;
|
|
1307
|
+
toJSON(message: QueryLeaseByCustomDomainRequest): JsonSafe<QueryLeaseByCustomDomainRequest>;
|
|
1308
|
+
fromPartial<I extends Exact<DeepPartial<QueryLeaseByCustomDomainRequest>, I>>(object: I): QueryLeaseByCustomDomainRequest;
|
|
1309
|
+
fromAmino(object: QueryLeaseByCustomDomainRequestAmino): QueryLeaseByCustomDomainRequest;
|
|
1310
|
+
toAmino(message: QueryLeaseByCustomDomainRequest): QueryLeaseByCustomDomainRequestAmino;
|
|
1311
|
+
fromAminoMsg(object: QueryLeaseByCustomDomainRequestAminoMsg): QueryLeaseByCustomDomainRequest;
|
|
1312
|
+
fromProtoMsg(message: QueryLeaseByCustomDomainRequestProtoMsg): QueryLeaseByCustomDomainRequest;
|
|
1313
|
+
toProto(message: QueryLeaseByCustomDomainRequest): Uint8Array;
|
|
1314
|
+
toProtoMsg(message: QueryLeaseByCustomDomainRequest): QueryLeaseByCustomDomainRequestProtoMsg;
|
|
1315
|
+
};
|
|
1316
|
+
export declare const QueryLeaseByCustomDomainResponse: {
|
|
1317
|
+
typeUrl: string;
|
|
1318
|
+
is(o: any): o is QueryLeaseByCustomDomainResponse;
|
|
1319
|
+
isSDK(o: any): o is QueryLeaseByCustomDomainResponseSDKType;
|
|
1320
|
+
isAmino(o: any): o is QueryLeaseByCustomDomainResponseAmino;
|
|
1321
|
+
encode(message: QueryLeaseByCustomDomainResponse, writer?: BinaryWriter): BinaryWriter;
|
|
1322
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryLeaseByCustomDomainResponse;
|
|
1323
|
+
fromJSON(object: any): QueryLeaseByCustomDomainResponse;
|
|
1324
|
+
toJSON(message: QueryLeaseByCustomDomainResponse): JsonSafe<QueryLeaseByCustomDomainResponse>;
|
|
1325
|
+
fromPartial<I extends Exact<DeepPartial<QueryLeaseByCustomDomainResponse>, I>>(object: I): QueryLeaseByCustomDomainResponse;
|
|
1326
|
+
fromAmino(object: QueryLeaseByCustomDomainResponseAmino): QueryLeaseByCustomDomainResponse;
|
|
1327
|
+
toAmino(message: QueryLeaseByCustomDomainResponse): QueryLeaseByCustomDomainResponseAmino;
|
|
1328
|
+
fromAminoMsg(object: QueryLeaseByCustomDomainResponseAminoMsg): QueryLeaseByCustomDomainResponse;
|
|
1329
|
+
fromProtoMsg(message: QueryLeaseByCustomDomainResponseProtoMsg): QueryLeaseByCustomDomainResponse;
|
|
1330
|
+
toProto(message: QueryLeaseByCustomDomainResponse): Uint8Array;
|
|
1331
|
+
toProtoMsg(message: QueryLeaseByCustomDomainResponse): QueryLeaseByCustomDomainResponseProtoMsg;
|
|
1332
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.QueryCreditEstimateResponse = exports.QueryCreditEstimateRequest = exports.QueryLeasesBySKUResponse = exports.QueryLeasesBySKURequest = exports.QueryCreditAccountsResponse = exports.QueryCreditAccountsRequest = exports.QueryProviderWithdrawableResponse = exports.QueryProviderWithdrawableRequest = exports.QueryWithdrawableAmountResponse = exports.QueryWithdrawableAmountRequest = exports.QueryCreditAddressResponse = exports.QueryCreditAddressRequest = exports.QueryCreditAccountResponse = exports.QueryCreditAccountRequest = exports.QueryLeasesByProviderResponse = exports.QueryLeasesByProviderRequest = exports.QueryLeasesByTenantResponse = exports.QueryLeasesByTenantRequest = exports.QueryLeasesResponse = exports.QueryLeasesRequest = exports.QueryLeaseResponse = exports.QueryLeaseRequest = exports.QueryParamsResponse = exports.QueryParamsRequest = void 0;
|
|
3
|
+
exports.QueryLeaseByCustomDomainResponse = exports.QueryLeaseByCustomDomainRequest = exports.QueryCreditEstimateResponse = exports.QueryCreditEstimateRequest = exports.QueryLeasesBySKUResponse = exports.QueryLeasesBySKURequest = exports.QueryCreditAccountsResponse = exports.QueryCreditAccountsRequest = exports.QueryProviderWithdrawableResponse = exports.QueryProviderWithdrawableRequest = exports.QueryWithdrawableAmountResponse = exports.QueryWithdrawableAmountRequest = exports.QueryCreditAddressResponse = exports.QueryCreditAddressRequest = exports.QueryCreditAccountResponse = exports.QueryCreditAccountRequest = exports.QueryLeasesByProviderResponse = exports.QueryLeasesByProviderRequest = exports.QueryLeasesByTenantResponse = exports.QueryLeasesByTenantRequest = exports.QueryLeasesResponse = exports.QueryLeasesRequest = exports.QueryLeaseResponse = exports.QueryLeaseRequest = exports.QueryParamsResponse = exports.QueryParamsRequest = void 0;
|
|
4
4
|
const pagination_1 = require("../../../cosmos/base/query/v1beta1/pagination");
|
|
5
5
|
const types_1 = require("./types");
|
|
6
6
|
const coin_1 = require("../../../cosmos/base/v1beta1/coin");
|
|
@@ -2351,4 +2351,184 @@ exports.QueryCreditEstimateResponse = {
|
|
|
2351
2351
|
}
|
|
2352
2352
|
};
|
|
2353
2353
|
registry_1.GlobalDecoderRegistry.register(exports.QueryCreditEstimateResponse.typeUrl, exports.QueryCreditEstimateResponse);
|
|
2354
|
+
function createBaseQueryLeaseByCustomDomainRequest() {
|
|
2355
|
+
return {
|
|
2356
|
+
customDomain: ""
|
|
2357
|
+
};
|
|
2358
|
+
}
|
|
2359
|
+
exports.QueryLeaseByCustomDomainRequest = {
|
|
2360
|
+
typeUrl: "/liftedinit.billing.v1.QueryLeaseByCustomDomainRequest",
|
|
2361
|
+
is(o) {
|
|
2362
|
+
return o && (o.$typeUrl === exports.QueryLeaseByCustomDomainRequest.typeUrl || typeof o.customDomain === "string");
|
|
2363
|
+
},
|
|
2364
|
+
isSDK(o) {
|
|
2365
|
+
return o && (o.$typeUrl === exports.QueryLeaseByCustomDomainRequest.typeUrl || typeof o.custom_domain === "string");
|
|
2366
|
+
},
|
|
2367
|
+
isAmino(o) {
|
|
2368
|
+
return o && (o.$typeUrl === exports.QueryLeaseByCustomDomainRequest.typeUrl || typeof o.custom_domain === "string");
|
|
2369
|
+
},
|
|
2370
|
+
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
2371
|
+
if (message.customDomain !== "") {
|
|
2372
|
+
writer.uint32(10).string(message.customDomain);
|
|
2373
|
+
}
|
|
2374
|
+
return writer;
|
|
2375
|
+
},
|
|
2376
|
+
decode(input, length) {
|
|
2377
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
2378
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2379
|
+
const message = createBaseQueryLeaseByCustomDomainRequest();
|
|
2380
|
+
while (reader.pos < end) {
|
|
2381
|
+
const tag = reader.uint32();
|
|
2382
|
+
switch (tag >>> 3) {
|
|
2383
|
+
case 1:
|
|
2384
|
+
message.customDomain = reader.string();
|
|
2385
|
+
break;
|
|
2386
|
+
default:
|
|
2387
|
+
reader.skipType(tag & 7);
|
|
2388
|
+
break;
|
|
2389
|
+
}
|
|
2390
|
+
}
|
|
2391
|
+
return message;
|
|
2392
|
+
},
|
|
2393
|
+
fromJSON(object) {
|
|
2394
|
+
return {
|
|
2395
|
+
customDomain: (0, helpers_1.isSet)(object.customDomain) ? String(object.customDomain) : ""
|
|
2396
|
+
};
|
|
2397
|
+
},
|
|
2398
|
+
toJSON(message) {
|
|
2399
|
+
const obj = {};
|
|
2400
|
+
message.customDomain !== undefined && (obj.customDomain = message.customDomain);
|
|
2401
|
+
return obj;
|
|
2402
|
+
},
|
|
2403
|
+
fromPartial(object) {
|
|
2404
|
+
const message = createBaseQueryLeaseByCustomDomainRequest();
|
|
2405
|
+
message.customDomain = object.customDomain ?? "";
|
|
2406
|
+
return message;
|
|
2407
|
+
},
|
|
2408
|
+
fromAmino(object) {
|
|
2409
|
+
const message = createBaseQueryLeaseByCustomDomainRequest();
|
|
2410
|
+
if (object.custom_domain !== undefined && object.custom_domain !== null) {
|
|
2411
|
+
message.customDomain = object.custom_domain;
|
|
2412
|
+
}
|
|
2413
|
+
return message;
|
|
2414
|
+
},
|
|
2415
|
+
toAmino(message) {
|
|
2416
|
+
const obj = {};
|
|
2417
|
+
obj.custom_domain = message.customDomain === "" ? undefined : message.customDomain;
|
|
2418
|
+
return obj;
|
|
2419
|
+
},
|
|
2420
|
+
fromAminoMsg(object) {
|
|
2421
|
+
return exports.QueryLeaseByCustomDomainRequest.fromAmino(object.value);
|
|
2422
|
+
},
|
|
2423
|
+
fromProtoMsg(message) {
|
|
2424
|
+
return exports.QueryLeaseByCustomDomainRequest.decode(message.value);
|
|
2425
|
+
},
|
|
2426
|
+
toProto(message) {
|
|
2427
|
+
return exports.QueryLeaseByCustomDomainRequest.encode(message).finish();
|
|
2428
|
+
},
|
|
2429
|
+
toProtoMsg(message) {
|
|
2430
|
+
return {
|
|
2431
|
+
typeUrl: "/liftedinit.billing.v1.QueryLeaseByCustomDomainRequest",
|
|
2432
|
+
value: exports.QueryLeaseByCustomDomainRequest.encode(message).finish()
|
|
2433
|
+
};
|
|
2434
|
+
}
|
|
2435
|
+
};
|
|
2436
|
+
registry_1.GlobalDecoderRegistry.register(exports.QueryLeaseByCustomDomainRequest.typeUrl, exports.QueryLeaseByCustomDomainRequest);
|
|
2437
|
+
function createBaseQueryLeaseByCustomDomainResponse() {
|
|
2438
|
+
return {
|
|
2439
|
+
lease: types_1.Lease.fromPartial({}),
|
|
2440
|
+
serviceName: ""
|
|
2441
|
+
};
|
|
2442
|
+
}
|
|
2443
|
+
exports.QueryLeaseByCustomDomainResponse = {
|
|
2444
|
+
typeUrl: "/liftedinit.billing.v1.QueryLeaseByCustomDomainResponse",
|
|
2445
|
+
is(o) {
|
|
2446
|
+
return o && (o.$typeUrl === exports.QueryLeaseByCustomDomainResponse.typeUrl || types_1.Lease.is(o.lease) && typeof o.serviceName === "string");
|
|
2447
|
+
},
|
|
2448
|
+
isSDK(o) {
|
|
2449
|
+
return o && (o.$typeUrl === exports.QueryLeaseByCustomDomainResponse.typeUrl || types_1.Lease.isSDK(o.lease) && typeof o.service_name === "string");
|
|
2450
|
+
},
|
|
2451
|
+
isAmino(o) {
|
|
2452
|
+
return o && (o.$typeUrl === exports.QueryLeaseByCustomDomainResponse.typeUrl || types_1.Lease.isAmino(o.lease) && typeof o.service_name === "string");
|
|
2453
|
+
},
|
|
2454
|
+
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
2455
|
+
if (message.lease !== undefined) {
|
|
2456
|
+
types_1.Lease.encode(message.lease, writer.uint32(10).fork()).ldelim();
|
|
2457
|
+
}
|
|
2458
|
+
if (message.serviceName !== "") {
|
|
2459
|
+
writer.uint32(18).string(message.serviceName);
|
|
2460
|
+
}
|
|
2461
|
+
return writer;
|
|
2462
|
+
},
|
|
2463
|
+
decode(input, length) {
|
|
2464
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
2465
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2466
|
+
const message = createBaseQueryLeaseByCustomDomainResponse();
|
|
2467
|
+
while (reader.pos < end) {
|
|
2468
|
+
const tag = reader.uint32();
|
|
2469
|
+
switch (tag >>> 3) {
|
|
2470
|
+
case 1:
|
|
2471
|
+
message.lease = types_1.Lease.decode(reader, reader.uint32());
|
|
2472
|
+
break;
|
|
2473
|
+
case 2:
|
|
2474
|
+
message.serviceName = reader.string();
|
|
2475
|
+
break;
|
|
2476
|
+
default:
|
|
2477
|
+
reader.skipType(tag & 7);
|
|
2478
|
+
break;
|
|
2479
|
+
}
|
|
2480
|
+
}
|
|
2481
|
+
return message;
|
|
2482
|
+
},
|
|
2483
|
+
fromJSON(object) {
|
|
2484
|
+
return {
|
|
2485
|
+
lease: (0, helpers_1.isSet)(object.lease) ? types_1.Lease.fromJSON(object.lease) : undefined,
|
|
2486
|
+
serviceName: (0, helpers_1.isSet)(object.serviceName) ? String(object.serviceName) : ""
|
|
2487
|
+
};
|
|
2488
|
+
},
|
|
2489
|
+
toJSON(message) {
|
|
2490
|
+
const obj = {};
|
|
2491
|
+
message.lease !== undefined && (obj.lease = message.lease ? types_1.Lease.toJSON(message.lease) : undefined);
|
|
2492
|
+
message.serviceName !== undefined && (obj.serviceName = message.serviceName);
|
|
2493
|
+
return obj;
|
|
2494
|
+
},
|
|
2495
|
+
fromPartial(object) {
|
|
2496
|
+
const message = createBaseQueryLeaseByCustomDomainResponse();
|
|
2497
|
+
message.lease = object.lease !== undefined && object.lease !== null ? types_1.Lease.fromPartial(object.lease) : undefined;
|
|
2498
|
+
message.serviceName = object.serviceName ?? "";
|
|
2499
|
+
return message;
|
|
2500
|
+
},
|
|
2501
|
+
fromAmino(object) {
|
|
2502
|
+
const message = createBaseQueryLeaseByCustomDomainResponse();
|
|
2503
|
+
if (object.lease !== undefined && object.lease !== null) {
|
|
2504
|
+
message.lease = types_1.Lease.fromAmino(object.lease);
|
|
2505
|
+
}
|
|
2506
|
+
if (object.service_name !== undefined && object.service_name !== null) {
|
|
2507
|
+
message.serviceName = object.service_name;
|
|
2508
|
+
}
|
|
2509
|
+
return message;
|
|
2510
|
+
},
|
|
2511
|
+
toAmino(message) {
|
|
2512
|
+
const obj = {};
|
|
2513
|
+
obj.lease = message.lease ? types_1.Lease.toAmino(message.lease) : types_1.Lease.toAmino(types_1.Lease.fromPartial({}));
|
|
2514
|
+
obj.service_name = message.serviceName === "" ? undefined : message.serviceName;
|
|
2515
|
+
return obj;
|
|
2516
|
+
},
|
|
2517
|
+
fromAminoMsg(object) {
|
|
2518
|
+
return exports.QueryLeaseByCustomDomainResponse.fromAmino(object.value);
|
|
2519
|
+
},
|
|
2520
|
+
fromProtoMsg(message) {
|
|
2521
|
+
return exports.QueryLeaseByCustomDomainResponse.decode(message.value);
|
|
2522
|
+
},
|
|
2523
|
+
toProto(message) {
|
|
2524
|
+
return exports.QueryLeaseByCustomDomainResponse.encode(message).finish();
|
|
2525
|
+
},
|
|
2526
|
+
toProtoMsg(message) {
|
|
2527
|
+
return {
|
|
2528
|
+
typeUrl: "/liftedinit.billing.v1.QueryLeaseByCustomDomainResponse",
|
|
2529
|
+
value: exports.QueryLeaseByCustomDomainResponse.encode(message).finish()
|
|
2530
|
+
};
|
|
2531
|
+
}
|
|
2532
|
+
};
|
|
2533
|
+
registry_1.GlobalDecoderRegistry.register(exports.QueryLeaseByCustomDomainResponse.typeUrl, exports.QueryLeaseByCustomDomainResponse);
|
|
2354
2534
|
//# sourceMappingURL=query.js.map
|