@firmachain/firma-js 0.2.47 → 0.2.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -5
- package/dist/sdk/FirmaAuthzService.js +5 -5
- package/dist/sdk/FirmaBankService.js +1 -1
- package/dist/sdk/FirmaChainService.d.ts +5 -0
- package/dist/sdk/FirmaChainService.js +44 -0
- package/dist/sdk/FirmaContractService.js +5 -5
- package/dist/sdk/FirmaCosmWasmCw20.d.ts +17 -0
- package/dist/sdk/FirmaCosmWasmCw20.js +269 -0
- package/dist/sdk/FirmaCosmWasmCw721.d.ts +43 -0
- package/dist/sdk/FirmaCosmWasmCw721.js +318 -0
- package/dist/sdk/FirmaCosmWasmService.js +9 -9
- package/dist/sdk/FirmaDistributionService.js +5 -5
- package/dist/sdk/FirmaFeeGrantService.js +3 -3
- package/dist/sdk/FirmaGovService.js +7 -7
- package/dist/sdk/FirmaIbcService.js +1 -1
- package/dist/sdk/FirmaNftService.js +5 -5
- package/dist/sdk/FirmaSDK.d.ts +5 -1
- package/dist/sdk/FirmaSDK.js +7 -1
- package/dist/sdk/FirmaStakingService.d.ts +7 -1
- package/dist/sdk/FirmaStakingService.js +16 -8
- package/dist/sdk/FirmaTokenService.js +4 -4
- package/dist/sdk/FirmaUtil.js +16 -20
- package/dist/sdk/FirmaWalletService.js +3 -3
- package/dist/sdk/firmachain/amino/addresses.js +11 -11
- package/dist/sdk/firmachain/amino/aminotypes.js +32 -36
- package/dist/sdk/firmachain/amino/encoding.js +26 -30
- package/dist/sdk/firmachain/amino/multisig.js +5 -5
- package/dist/sdk/firmachain/amino/signature.js +4 -4
- package/dist/sdk/firmachain/amino/signdoc.js +1 -1
- package/dist/sdk/firmachain/amino/wallet.js +10 -14
- package/dist/sdk/firmachain/authz/AuthzQueryClient.js +3 -3
- package/dist/sdk/firmachain/authz/index.js +1 -5
- package/dist/sdk/firmachain/bank/BankQueryClient.js +4 -4
- package/dist/sdk/firmachain/bank/index.js +1 -5
- package/dist/sdk/firmachain/common/LedgerSigningStargateClient.js +2 -2
- package/dist/sdk/firmachain/common/LedgerWallet.js +10 -14
- package/dist/sdk/firmachain/common/accounts.js +2 -2
- package/dist/sdk/firmachain/common/index.js +1 -5
- package/dist/sdk/firmachain/common/signing.js +5 -9
- package/dist/sdk/firmachain/common/signingaminostargateclient.js +16 -16
- package/dist/sdk/firmachain/common/signingstargateclient.js +14 -18
- package/dist/sdk/firmachain/common/stargateclient.js +6 -6
- package/dist/sdk/firmachain/contract/ContractQueryClient.js +2 -2
- package/dist/sdk/firmachain/contract/ContractTxTypes.d.ts +4 -4
- package/dist/sdk/firmachain/contract/index.js +1 -5
- package/dist/sdk/firmachain/cosmwasm/CosmWasmQueryClient.js +8 -8
- package/dist/sdk/firmachain/cosmwasm/index.js +1 -5
- package/dist/sdk/firmachain/distribution/DistributionQueryClient.js +5 -5
- package/dist/sdk/firmachain/distribution/index.js +1 -5
- package/dist/sdk/firmachain/feegrant/FeeGrantQueryClient.js +2 -2
- package/dist/sdk/firmachain/feegrant/index.js +1 -5
- package/dist/sdk/firmachain/google/protobuf/any.d.ts +1 -1
- package/dist/sdk/firmachain/google/protobuf/descriptor.d.ts +27 -27
- package/dist/sdk/firmachain/google/protobuf/duration.d.ts +1 -1
- package/dist/sdk/firmachain/google/protobuf/timestamp.d.ts +1 -1
- package/dist/sdk/firmachain/gov/GovQueryClient.js +2 -2
- package/dist/sdk/firmachain/gov/index.js +1 -5
- package/dist/sdk/firmachain/ibc/IbcQueryClient.js +1 -1
- package/dist/sdk/firmachain/ibc/index.js +1 -5
- package/dist/sdk/firmachain/mint/index.js +1 -5
- package/dist/sdk/firmachain/nft/NftTxTypes.d.ts +6 -6
- package/dist/sdk/firmachain/nft/index.js +1 -5
- package/dist/sdk/firmachain/slashing/index.js +1 -5
- package/dist/sdk/firmachain/staking/StakingQueryClient.d.ts +3 -3
- package/dist/sdk/firmachain/staking/StakingQueryClient.js +13 -13
- package/dist/sdk/firmachain/staking/index.js +1 -5
- package/dist/sdk/firmachain/token/TokenTxTypes.d.ts +8 -8
- package/dist/sdk/firmachain/token/index.js +1 -5
- package/package.json +24 -24
|
@@ -66,14 +66,10 @@ var __read = (this && this.__read) || function (o, n) {
|
|
|
66
66
|
}
|
|
67
67
|
return ar;
|
|
68
68
|
};
|
|
69
|
-
var __spreadArray = (this && this.__spreadArray) || function (to, from
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
ar[i] = from[i];
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
69
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from) {
|
|
70
|
+
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
|
|
71
|
+
to[j] = from[i];
|
|
72
|
+
return to;
|
|
77
73
|
};
|
|
78
74
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
79
75
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -149,8 +145,8 @@ var SigningStargateClient = /** @class */ (function (_super) {
|
|
|
149
145
|
account = _b.sent();
|
|
150
146
|
if (account == null)
|
|
151
147
|
throw new Error("Failed to retrieve account from signer");
|
|
152
|
-
rawSecp256k1Pubkey =
|
|
153
|
-
pubkey =
|
|
148
|
+
rawSecp256k1Pubkey = encoding_1.fromBase64(pubkeyStr);
|
|
149
|
+
pubkey = proto_signing_1.encodePubkey(encoding_3.encodeSecp256k1Pubkey(rawSecp256k1Pubkey));
|
|
154
150
|
txBodyEncodeObject = {
|
|
155
151
|
typeUrl: "/cosmos.tx.v1beta1.TxBody",
|
|
156
152
|
value: {
|
|
@@ -161,7 +157,7 @@ var SigningStargateClient = /** @class */ (function (_super) {
|
|
|
161
157
|
txBodyBytes = registry.encode(txBodyEncodeObject);
|
|
162
158
|
gasLimit = math_1.Int53.fromString(fee.gas).toNumber();
|
|
163
159
|
authInfoBytes = this.makeAuthInfoBytes([{ pubkey: pubkey, sequence: sequence }], fee.amount, gasLimit, fee.granter);
|
|
164
|
-
return [2 /*return*/,
|
|
160
|
+
return [2 /*return*/, proto_signing_1.makeSignDoc(txBodyBytes, authInfoBytes, chainId, accountNumber)];
|
|
165
161
|
}
|
|
166
162
|
});
|
|
167
163
|
});
|
|
@@ -228,7 +224,7 @@ var SigningStargateClient = /** @class */ (function (_super) {
|
|
|
228
224
|
case 0:
|
|
229
225
|
_a.trys.push([0, 2, , 3]);
|
|
230
226
|
accAddress = this.toAccAddress(address);
|
|
231
|
-
hexAccAddress = "0x01"
|
|
227
|
+
hexAccAddress = "0x01" + Buffer.from(accAddress).toString("hex");
|
|
232
228
|
axios = axios_1.default.create({
|
|
233
229
|
baseURL: SigningStargateClient._endpoint,
|
|
234
230
|
headers: {
|
|
@@ -242,7 +238,7 @@ var SigningStargateClient = /** @class */ (function (_super) {
|
|
|
242
238
|
result = _a.sent();
|
|
243
239
|
finalData = result.data.result.response.value;
|
|
244
240
|
account = any_1.Any.decode(Buffer.from(finalData, "base64"));
|
|
245
|
-
finalAccount =
|
|
241
|
+
finalAccount = accounts_1.accountFromAny(account);
|
|
246
242
|
return [2 /*return*/, finalAccount];
|
|
247
243
|
case 2:
|
|
248
244
|
error_1 = _a.sent();
|
|
@@ -288,7 +284,7 @@ var SigningStargateClient = /** @class */ (function (_super) {
|
|
|
288
284
|
var authInfo = {
|
|
289
285
|
signerInfos: this.makeSignerInfos(signers, signMode),
|
|
290
286
|
fee: {
|
|
291
|
-
amount: __spreadArray([], __read(feeAmount)
|
|
287
|
+
amount: __spreadArray([], __read(feeAmount)),
|
|
292
288
|
gasLimit: long_1.default.fromNumber(gasLimit),
|
|
293
289
|
granter: granter,
|
|
294
290
|
},
|
|
@@ -307,7 +303,7 @@ var SigningStargateClient = /** @class */ (function (_super) {
|
|
|
307
303
|
if (!accountFromSigner) {
|
|
308
304
|
throw new Error("Failed to retrieve account from signer");
|
|
309
305
|
}
|
|
310
|
-
pubkey =
|
|
306
|
+
pubkey = proto_signing_1.encodePubkey(encoding_3.encodeSecp256k1Pubkey(accountFromSigner.pubkey));
|
|
311
307
|
txBodyEncodeObject = {
|
|
312
308
|
typeUrl: "/cosmos.tx.v1beta1.TxBody",
|
|
313
309
|
value: {
|
|
@@ -318,14 +314,14 @@ var SigningStargateClient = /** @class */ (function (_super) {
|
|
|
318
314
|
txBodyBytes = this.registry.encode(txBodyEncodeObject);
|
|
319
315
|
gasLimit = math_1.Int53.fromString(fee.gas).toNumber();
|
|
320
316
|
authInfoBytes = SigningStargateClient.makeAuthInfoBytes([{ pubkey: pubkey, sequence: sequence }], fee.amount, gasLimit, fee.granter);
|
|
321
|
-
signDoc =
|
|
317
|
+
signDoc = proto_signing_1.makeSignDoc(txBodyBytes, authInfoBytes, chainId, accountNumber);
|
|
322
318
|
return [4 /*yield*/, this.getSigner().signDirect(signerAddress, signDoc)];
|
|
323
319
|
case 2:
|
|
324
320
|
_b = _c.sent(), signature = _b.signature, signed = _b.signed;
|
|
325
321
|
return [2 /*return*/, tx_1.TxRaw.fromPartial({
|
|
326
322
|
bodyBytes: signed.bodyBytes,
|
|
327
323
|
authInfoBytes: signed.authInfoBytes,
|
|
328
|
-
signatures: [
|
|
324
|
+
signatures: [encoding_1.fromBase64(signature.signature)],
|
|
329
325
|
})];
|
|
330
326
|
}
|
|
331
327
|
});
|
|
@@ -348,7 +344,7 @@ var SigningStargateClient = /** @class */ (function (_super) {
|
|
|
348
344
|
txRaw = tx_1.TxRaw.fromPartial({
|
|
349
345
|
bodyBytes: signed.bodyBytes,
|
|
350
346
|
authInfoBytes: signed.authInfoBytes,
|
|
351
|
-
signatures: [
|
|
347
|
+
signatures: [encoding_1.fromBase64(signature.signature)],
|
|
352
348
|
});
|
|
353
349
|
return [2 /*return*/, { txRaw: txRaw, signature: signature.signature }];
|
|
354
350
|
}
|
|
@@ -108,7 +108,7 @@ var StargateClient = /** @class */ (function () {
|
|
|
108
108
|
var results;
|
|
109
109
|
return __generator(this, function (_b) {
|
|
110
110
|
switch (_b.label) {
|
|
111
|
-
case 0: return [4 /*yield*/, this.txsQuery("tx.hash='"
|
|
111
|
+
case 0: return [4 /*yield*/, this.txsQuery("tx.hash='" + id + "'")];
|
|
112
112
|
case 1:
|
|
113
113
|
results = _b.sent();
|
|
114
114
|
return [2 /*return*/, (_a = results[0]) !== null && _a !== void 0 ? _a : null];
|
|
@@ -139,9 +139,9 @@ var StargateClient = /** @class */ (function () {
|
|
|
139
139
|
switch (_a.label) {
|
|
140
140
|
case 0:
|
|
141
141
|
if (timedOut) {
|
|
142
|
-
throw new TimeoutError("Transaction with ID "
|
|
142
|
+
throw new TimeoutError("Transaction with ID " + txId + " was submitted but was not yet found on the chain. You might want to check later.", txId);
|
|
143
143
|
}
|
|
144
|
-
return [4 /*yield*/,
|
|
144
|
+
return [4 /*yield*/, utils_1.sleep(pollIntervalMs)];
|
|
145
145
|
case 1:
|
|
146
146
|
_a.sent();
|
|
147
147
|
return [4 /*yield*/, this.getTx(txId)];
|
|
@@ -167,9 +167,9 @@ var StargateClient = /** @class */ (function () {
|
|
|
167
167
|
case 2:
|
|
168
168
|
broadcasted = _a.sent();
|
|
169
169
|
if (broadcasted.code) {
|
|
170
|
-
throw new Error("Broadcasting transaction failed with code "
|
|
170
|
+
throw new Error("Broadcasting transaction failed with code " + broadcasted.code + " (codespace: " + broadcasted.codeSpace + "). Log: " + broadcasted.log);
|
|
171
171
|
}
|
|
172
|
-
transactionId =
|
|
172
|
+
transactionId = encoding_1.toHex(broadcasted.hash).toUpperCase();
|
|
173
173
|
return [2 /*return*/, new Promise(function (resolve, reject) {
|
|
174
174
|
return pollForTx(transactionId).then(function (value) {
|
|
175
175
|
clearTimeout(txPollTimeout);
|
|
@@ -194,7 +194,7 @@ var StargateClient = /** @class */ (function () {
|
|
|
194
194
|
return [2 /*return*/, results.txs.map(function (tx) {
|
|
195
195
|
return {
|
|
196
196
|
height: tx.height,
|
|
197
|
-
hash:
|
|
197
|
+
hash: encoding_1.toHex(tx.hash).toUpperCase(),
|
|
198
198
|
code: tx.result.code,
|
|
199
199
|
rawLog: tx.result.log || "",
|
|
200
200
|
tx: tx.tx,
|
|
@@ -87,7 +87,7 @@ var ContractQueryClient = /** @class */ (function () {
|
|
|
87
87
|
return __generator(this, function (_a) {
|
|
88
88
|
switch (_a.label) {
|
|
89
89
|
case 0:
|
|
90
|
-
path = "/firmachain/firmachain/contract/contractFile/"
|
|
90
|
+
path = "/firmachain/firmachain/contract/contractFile/" + fileHash;
|
|
91
91
|
return [4 /*yield*/, this.axios.get(path)];
|
|
92
92
|
case 1:
|
|
93
93
|
result = _a.sent();
|
|
@@ -122,7 +122,7 @@ var ContractQueryClient = /** @class */ (function () {
|
|
|
122
122
|
return __generator(this, function (_a) {
|
|
123
123
|
switch (_a.label) {
|
|
124
124
|
case 0:
|
|
125
|
-
path = "/firmachain/firmachain/contract/contractLog/"
|
|
125
|
+
path = "/firmachain/firmachain/contract/contractLog/" + logId;
|
|
126
126
|
return [4 /*yield*/, this.axios.get(path)];
|
|
127
127
|
case 1:
|
|
128
128
|
result = _a.sent();
|
|
@@ -22,28 +22,28 @@ export interface MsgAddContractLogResponse {
|
|
|
22
22
|
}
|
|
23
23
|
export declare const MsgCreateContractFile: {
|
|
24
24
|
encode(message: MsgCreateContractFile, writer?: Writer): Writer;
|
|
25
|
-
decode(input: Reader | Uint8Array, length?: number): MsgCreateContractFile;
|
|
25
|
+
decode(input: Reader | Uint8Array, length?: number | undefined): MsgCreateContractFile;
|
|
26
26
|
fromJSON(object: any): MsgCreateContractFile;
|
|
27
27
|
toJSON(message: MsgCreateContractFile): unknown;
|
|
28
28
|
fromPartial(object: DeepPartial<MsgCreateContractFile>): MsgCreateContractFile;
|
|
29
29
|
};
|
|
30
30
|
export declare const MsgCreateContractFileResponse: {
|
|
31
31
|
encode(_: MsgCreateContractFileResponse, writer?: Writer): Writer;
|
|
32
|
-
decode(input: Reader | Uint8Array, length?: number): MsgCreateContractFileResponse;
|
|
32
|
+
decode(input: Reader | Uint8Array, length?: number | undefined): MsgCreateContractFileResponse;
|
|
33
33
|
fromJSON(_: any): MsgCreateContractFileResponse;
|
|
34
34
|
toJSON(_: MsgCreateContractFileResponse): unknown;
|
|
35
35
|
fromPartial(_: DeepPartial<MsgCreateContractFileResponse>): MsgCreateContractFileResponse;
|
|
36
36
|
};
|
|
37
37
|
export declare const MsgAddContractLog: {
|
|
38
38
|
encode(message: MsgAddContractLog, writer?: Writer): Writer;
|
|
39
|
-
decode(input: Reader | Uint8Array, length?: number): MsgAddContractLog;
|
|
39
|
+
decode(input: Reader | Uint8Array, length?: number | undefined): MsgAddContractLog;
|
|
40
40
|
fromJSON(object: any): MsgAddContractLog;
|
|
41
41
|
toJSON(message: MsgAddContractLog): unknown;
|
|
42
42
|
fromPartial(object: DeepPartial<MsgAddContractLog>): MsgAddContractLog;
|
|
43
43
|
};
|
|
44
44
|
export declare const MsgAddContractLogResponse: {
|
|
45
45
|
encode(message: MsgAddContractLogResponse, writer?: Writer): Writer;
|
|
46
|
-
decode(input: Reader | Uint8Array, length?: number): MsgAddContractLogResponse;
|
|
46
|
+
decode(input: Reader | Uint8Array, length?: number | undefined): MsgAddContractLogResponse;
|
|
47
47
|
fromJSON(object: any): MsgAddContractLogResponse;
|
|
48
48
|
toJSON(message: MsgAddContractLogResponse): unknown;
|
|
49
49
|
fromPartial(object: DeepPartial<MsgAddContractLogResponse>): MsgAddContractLogResponse;
|
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
9
5
|
}) : (function(o, m, k, k2) {
|
|
10
6
|
if (k2 === undefined) k2 = k;
|
|
11
7
|
o[k2] = m[k];
|
|
@@ -72,7 +72,7 @@ var CosmWasmQueryClient = /** @class */ (function () {
|
|
|
72
72
|
return __generator(this, function (_a) {
|
|
73
73
|
switch (_a.label) {
|
|
74
74
|
case 0:
|
|
75
|
-
path = "/cosmwasm/wasm/v1/code/"
|
|
75
|
+
path = "/cosmwasm/wasm/v1/code/" + codeId;
|
|
76
76
|
return [4 /*yield*/, this.axios.get(path)];
|
|
77
77
|
case 1:
|
|
78
78
|
result = _a.sent();
|
|
@@ -87,7 +87,7 @@ var CosmWasmQueryClient = /** @class */ (function () {
|
|
|
87
87
|
return __generator(this, function (_a) {
|
|
88
88
|
switch (_a.label) {
|
|
89
89
|
case 0:
|
|
90
|
-
path = "/cosmwasm/wasm/v1/code/"
|
|
90
|
+
path = "/cosmwasm/wasm/v1/code/" + codeId + "/contracts";
|
|
91
91
|
return [4 /*yield*/, this.axios.get(path)];
|
|
92
92
|
case 1:
|
|
93
93
|
result = _a.sent();
|
|
@@ -102,7 +102,7 @@ var CosmWasmQueryClient = /** @class */ (function () {
|
|
|
102
102
|
return __generator(this, function (_a) {
|
|
103
103
|
switch (_a.label) {
|
|
104
104
|
case 0:
|
|
105
|
-
path = "/cosmwasm/wasm/v1/contract/"
|
|
105
|
+
path = "/cosmwasm/wasm/v1/contract/" + contractAddress;
|
|
106
106
|
return [4 /*yield*/, this.axios.get(path)];
|
|
107
107
|
case 1:
|
|
108
108
|
result = _a.sent();
|
|
@@ -117,7 +117,7 @@ var CosmWasmQueryClient = /** @class */ (function () {
|
|
|
117
117
|
return __generator(this, function (_a) {
|
|
118
118
|
switch (_a.label) {
|
|
119
119
|
case 0:
|
|
120
|
-
path = "/cosmwasm/wasm/v1/contract/"
|
|
120
|
+
path = "/cosmwasm/wasm/v1/contract/" + contractAddress + "/history";
|
|
121
121
|
return [4 /*yield*/, this.axios.get(path)];
|
|
122
122
|
case 1:
|
|
123
123
|
result = _a.sent();
|
|
@@ -133,7 +133,7 @@ var CosmWasmQueryClient = /** @class */ (function () {
|
|
|
133
133
|
switch (_a.label) {
|
|
134
134
|
case 0:
|
|
135
135
|
hexStringBase64 = Buffer.from(hexString, 'hex').toString('base64');
|
|
136
|
-
path = "/cosmwasm/wasm/v1/contract/"
|
|
136
|
+
path = "/cosmwasm/wasm/v1/contract/" + contractAddress + "/raw/" + hexStringBase64;
|
|
137
137
|
return [4 /*yield*/, this.axios.get(path)];
|
|
138
138
|
case 1:
|
|
139
139
|
result = _a.sent();
|
|
@@ -149,11 +149,11 @@ var CosmWasmQueryClient = /** @class */ (function () {
|
|
|
149
149
|
switch (_a.label) {
|
|
150
150
|
case 0:
|
|
151
151
|
queryBase64 = Buffer.from(query, 'binary').toString('base64');
|
|
152
|
-
path = "/cosmwasm/wasm/v1/contract/"
|
|
152
|
+
path = "/cosmwasm/wasm/v1/contract/" + contractAddress + "/smart/" + queryBase64;
|
|
153
153
|
return [4 /*yield*/, this.axios.get(path)];
|
|
154
154
|
case 1:
|
|
155
155
|
result = _a.sent();
|
|
156
|
-
return [2 /*return*/, result.data.data];
|
|
156
|
+
return [2 /*return*/, JSON.stringify(result.data.data)];
|
|
157
157
|
}
|
|
158
158
|
});
|
|
159
159
|
});
|
|
@@ -164,7 +164,7 @@ var CosmWasmQueryClient = /** @class */ (function () {
|
|
|
164
164
|
return __generator(this, function (_a) {
|
|
165
165
|
switch (_a.label) {
|
|
166
166
|
case 0:
|
|
167
|
-
path = "/cosmwasm/wasm/v1/contract/"
|
|
167
|
+
path = "/cosmwasm/wasm/v1/contract/" + contractAddress + "/state";
|
|
168
168
|
return [4 /*yield*/, this.axios.get(path)];
|
|
169
169
|
case 1:
|
|
170
170
|
result = _a.sent();
|
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
9
5
|
}) : (function(o, m, k, k2) {
|
|
10
6
|
if (k2 === undefined) k2 = k;
|
|
11
7
|
o[k2] = m[k];
|
|
@@ -57,7 +57,7 @@ var DistributionQueryClient = /** @class */ (function () {
|
|
|
57
57
|
return __generator(this, function (_a) {
|
|
58
58
|
switch (_a.label) {
|
|
59
59
|
case 0:
|
|
60
|
-
path = "/cosmos/distribution/v1beta1/delegators/"
|
|
60
|
+
path = "/cosmos/distribution/v1beta1/delegators/" + address + "/rewards/" + validatorAddress;
|
|
61
61
|
return [4 /*yield*/, this.axios.get(path)];
|
|
62
62
|
case 1:
|
|
63
63
|
result = _a.sent();
|
|
@@ -76,7 +76,7 @@ var DistributionQueryClient = /** @class */ (function () {
|
|
|
76
76
|
return __generator(this, function (_a) {
|
|
77
77
|
switch (_a.label) {
|
|
78
78
|
case 0:
|
|
79
|
-
path = "/cosmos/distribution/v1beta1/validators/"
|
|
79
|
+
path = "/cosmos/distribution/v1beta1/validators/" + address + "/outstanding_rewards";
|
|
80
80
|
return [4 /*yield*/, this.axios.get(path)];
|
|
81
81
|
case 1:
|
|
82
82
|
result = _a.sent();
|
|
@@ -91,7 +91,7 @@ var DistributionQueryClient = /** @class */ (function () {
|
|
|
91
91
|
return __generator(this, function (_a) {
|
|
92
92
|
switch (_a.label) {
|
|
93
93
|
case 0:
|
|
94
|
-
path = "/cosmos/distribution/v1beta1/validators/"
|
|
94
|
+
path = "/cosmos/distribution/v1beta1/validators/" + address + "/commission";
|
|
95
95
|
return [4 /*yield*/, this.axios.get(path)];
|
|
96
96
|
case 1:
|
|
97
97
|
result = _a.sent();
|
|
@@ -106,7 +106,7 @@ var DistributionQueryClient = /** @class */ (function () {
|
|
|
106
106
|
return __generator(this, function (_a) {
|
|
107
107
|
switch (_a.label) {
|
|
108
108
|
case 0:
|
|
109
|
-
path = "/cosmos/distribution/v1beta1/delegators/"
|
|
109
|
+
path = "/cosmos/distribution/v1beta1/delegators/" + address + "/rewards";
|
|
110
110
|
return [4 /*yield*/, this.axios.get(path)];
|
|
111
111
|
case 1:
|
|
112
112
|
result = _a.sent();
|
|
@@ -153,7 +153,7 @@ var DistributionQueryClient = /** @class */ (function () {
|
|
|
153
153
|
return __generator(this, function (_a) {
|
|
154
154
|
switch (_a.label) {
|
|
155
155
|
case 0:
|
|
156
|
-
path = "/cosmos/distribution/v1beta1/delegators/"
|
|
156
|
+
path = "/cosmos/distribution/v1beta1/delegators/" + address + "/withdraw_address";
|
|
157
157
|
return [4 /*yield*/, this.axios.get(path)];
|
|
158
158
|
case 1:
|
|
159
159
|
result = _a.sent();
|
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
9
5
|
}) : (function(o, m, k, k2) {
|
|
10
6
|
if (k2 === undefined) k2 = k;
|
|
11
7
|
o[k2] = m[k];
|
|
@@ -57,7 +57,7 @@ var FeeGrantQueryClient = /** @class */ (function () {
|
|
|
57
57
|
return __generator(this, function (_a) {
|
|
58
58
|
switch (_a.label) {
|
|
59
59
|
case 0:
|
|
60
|
-
path = "/cosmos/feegrant/v1beta1/allowance/"
|
|
60
|
+
path = "/cosmos/feegrant/v1beta1/allowance/" + granterAddress + "/" + granteeAddress;
|
|
61
61
|
return [4 /*yield*/, this.axios.get(path)];
|
|
62
62
|
case 1:
|
|
63
63
|
result = _a.sent();
|
|
@@ -72,7 +72,7 @@ var FeeGrantQueryClient = /** @class */ (function () {
|
|
|
72
72
|
return __generator(this, function (_a) {
|
|
73
73
|
switch (_a.label) {
|
|
74
74
|
case 0:
|
|
75
|
-
path = "/cosmos/feegrant/v1beta1/allowances/"
|
|
75
|
+
path = "/cosmos/feegrant/v1beta1/allowances/" + granteeAddress;
|
|
76
76
|
return [4 /*yield*/, this.axios.get(path)];
|
|
77
77
|
case 1:
|
|
78
78
|
result = _a.sent();
|
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
9
5
|
}) : (function(o, m, k, k2) {
|
|
10
6
|
if (k2 === undefined) k2 = k;
|
|
11
7
|
o[k2] = m[k];
|
|
@@ -117,7 +117,7 @@ export interface Any {
|
|
|
117
117
|
}
|
|
118
118
|
export declare const Any: {
|
|
119
119
|
encode(message: Any, writer?: Writer): Writer;
|
|
120
|
-
decode(input: Reader | Uint8Array, length?: number): Any;
|
|
120
|
+
decode(input: Reader | Uint8Array, length?: number | undefined): Any;
|
|
121
121
|
fromJSON(object: any): Any;
|
|
122
122
|
fromPartial(object: DeepPartial<Any>): Any;
|
|
123
123
|
};
|
|
@@ -802,189 +802,189 @@ export interface GeneratedCodeInfo_Annotation {
|
|
|
802
802
|
}
|
|
803
803
|
export declare const FileDescriptorSet: {
|
|
804
804
|
encode(message: FileDescriptorSet, writer?: Writer): Writer;
|
|
805
|
-
decode(input: Reader | Uint8Array, length?: number): FileDescriptorSet;
|
|
805
|
+
decode(input: Reader | Uint8Array, length?: number | undefined): FileDescriptorSet;
|
|
806
806
|
fromJSON(object: any): FileDescriptorSet;
|
|
807
807
|
toJSON(message: FileDescriptorSet): unknown;
|
|
808
808
|
fromPartial(object: DeepPartial<FileDescriptorSet>): FileDescriptorSet;
|
|
809
809
|
};
|
|
810
810
|
export declare const FileDescriptorProto: {
|
|
811
811
|
encode(message: FileDescriptorProto, writer?: Writer): Writer;
|
|
812
|
-
decode(input: Reader | Uint8Array, length?: number): FileDescriptorProto;
|
|
812
|
+
decode(input: Reader | Uint8Array, length?: number | undefined): FileDescriptorProto;
|
|
813
813
|
fromJSON(object: any): FileDescriptorProto;
|
|
814
814
|
toJSON(message: FileDescriptorProto): unknown;
|
|
815
815
|
fromPartial(object: DeepPartial<FileDescriptorProto>): FileDescriptorProto;
|
|
816
816
|
};
|
|
817
817
|
export declare const DescriptorProto: {
|
|
818
818
|
encode(message: DescriptorProto, writer?: Writer): Writer;
|
|
819
|
-
decode(input: Reader | Uint8Array, length?: number): DescriptorProto;
|
|
819
|
+
decode(input: Reader | Uint8Array, length?: number | undefined): DescriptorProto;
|
|
820
820
|
fromJSON(object: any): DescriptorProto;
|
|
821
821
|
toJSON(message: DescriptorProto): unknown;
|
|
822
822
|
fromPartial(object: DeepPartial<DescriptorProto>): DescriptorProto;
|
|
823
823
|
};
|
|
824
824
|
export declare const DescriptorProto_ExtensionRange: {
|
|
825
825
|
encode(message: DescriptorProto_ExtensionRange, writer?: Writer): Writer;
|
|
826
|
-
decode(input: Reader | Uint8Array, length?: number): DescriptorProto_ExtensionRange;
|
|
826
|
+
decode(input: Reader | Uint8Array, length?: number | undefined): DescriptorProto_ExtensionRange;
|
|
827
827
|
fromJSON(object: any): DescriptorProto_ExtensionRange;
|
|
828
828
|
toJSON(message: DescriptorProto_ExtensionRange): unknown;
|
|
829
829
|
fromPartial(object: DeepPartial<DescriptorProto_ExtensionRange>): DescriptorProto_ExtensionRange;
|
|
830
830
|
};
|
|
831
831
|
export declare const DescriptorProto_ReservedRange: {
|
|
832
832
|
encode(message: DescriptorProto_ReservedRange, writer?: Writer): Writer;
|
|
833
|
-
decode(input: Reader | Uint8Array, length?: number): DescriptorProto_ReservedRange;
|
|
833
|
+
decode(input: Reader | Uint8Array, length?: number | undefined): DescriptorProto_ReservedRange;
|
|
834
834
|
fromJSON(object: any): DescriptorProto_ReservedRange;
|
|
835
835
|
toJSON(message: DescriptorProto_ReservedRange): unknown;
|
|
836
836
|
fromPartial(object: DeepPartial<DescriptorProto_ReservedRange>): DescriptorProto_ReservedRange;
|
|
837
837
|
};
|
|
838
838
|
export declare const ExtensionRangeOptions: {
|
|
839
839
|
encode(message: ExtensionRangeOptions, writer?: Writer): Writer;
|
|
840
|
-
decode(input: Reader | Uint8Array, length?: number): ExtensionRangeOptions;
|
|
840
|
+
decode(input: Reader | Uint8Array, length?: number | undefined): ExtensionRangeOptions;
|
|
841
841
|
fromJSON(object: any): ExtensionRangeOptions;
|
|
842
842
|
toJSON(message: ExtensionRangeOptions): unknown;
|
|
843
843
|
fromPartial(object: DeepPartial<ExtensionRangeOptions>): ExtensionRangeOptions;
|
|
844
844
|
};
|
|
845
845
|
export declare const FieldDescriptorProto: {
|
|
846
846
|
encode(message: FieldDescriptorProto, writer?: Writer): Writer;
|
|
847
|
-
decode(input: Reader | Uint8Array, length?: number): FieldDescriptorProto;
|
|
847
|
+
decode(input: Reader | Uint8Array, length?: number | undefined): FieldDescriptorProto;
|
|
848
848
|
fromJSON(object: any): FieldDescriptorProto;
|
|
849
849
|
toJSON(message: FieldDescriptorProto): unknown;
|
|
850
850
|
fromPartial(object: DeepPartial<FieldDescriptorProto>): FieldDescriptorProto;
|
|
851
851
|
};
|
|
852
852
|
export declare const OneofDescriptorProto: {
|
|
853
853
|
encode(message: OneofDescriptorProto, writer?: Writer): Writer;
|
|
854
|
-
decode(input: Reader | Uint8Array, length?: number): OneofDescriptorProto;
|
|
854
|
+
decode(input: Reader | Uint8Array, length?: number | undefined): OneofDescriptorProto;
|
|
855
855
|
fromJSON(object: any): OneofDescriptorProto;
|
|
856
856
|
toJSON(message: OneofDescriptorProto): unknown;
|
|
857
857
|
fromPartial(object: DeepPartial<OneofDescriptorProto>): OneofDescriptorProto;
|
|
858
858
|
};
|
|
859
859
|
export declare const EnumDescriptorProto: {
|
|
860
860
|
encode(message: EnumDescriptorProto, writer?: Writer): Writer;
|
|
861
|
-
decode(input: Reader | Uint8Array, length?: number): EnumDescriptorProto;
|
|
861
|
+
decode(input: Reader | Uint8Array, length?: number | undefined): EnumDescriptorProto;
|
|
862
862
|
fromJSON(object: any): EnumDescriptorProto;
|
|
863
863
|
toJSON(message: EnumDescriptorProto): unknown;
|
|
864
864
|
fromPartial(object: DeepPartial<EnumDescriptorProto>): EnumDescriptorProto;
|
|
865
865
|
};
|
|
866
866
|
export declare const EnumDescriptorProto_EnumReservedRange: {
|
|
867
867
|
encode(message: EnumDescriptorProto_EnumReservedRange, writer?: Writer): Writer;
|
|
868
|
-
decode(input: Reader | Uint8Array, length?: number): EnumDescriptorProto_EnumReservedRange;
|
|
868
|
+
decode(input: Reader | Uint8Array, length?: number | undefined): EnumDescriptorProto_EnumReservedRange;
|
|
869
869
|
fromJSON(object: any): EnumDescriptorProto_EnumReservedRange;
|
|
870
870
|
toJSON(message: EnumDescriptorProto_EnumReservedRange): unknown;
|
|
871
871
|
fromPartial(object: DeepPartial<EnumDescriptorProto_EnumReservedRange>): EnumDescriptorProto_EnumReservedRange;
|
|
872
872
|
};
|
|
873
873
|
export declare const EnumValueDescriptorProto: {
|
|
874
874
|
encode(message: EnumValueDescriptorProto, writer?: Writer): Writer;
|
|
875
|
-
decode(input: Reader | Uint8Array, length?: number): EnumValueDescriptorProto;
|
|
875
|
+
decode(input: Reader | Uint8Array, length?: number | undefined): EnumValueDescriptorProto;
|
|
876
876
|
fromJSON(object: any): EnumValueDescriptorProto;
|
|
877
877
|
toJSON(message: EnumValueDescriptorProto): unknown;
|
|
878
878
|
fromPartial(object: DeepPartial<EnumValueDescriptorProto>): EnumValueDescriptorProto;
|
|
879
879
|
};
|
|
880
880
|
export declare const ServiceDescriptorProto: {
|
|
881
881
|
encode(message: ServiceDescriptorProto, writer?: Writer): Writer;
|
|
882
|
-
decode(input: Reader | Uint8Array, length?: number): ServiceDescriptorProto;
|
|
882
|
+
decode(input: Reader | Uint8Array, length?: number | undefined): ServiceDescriptorProto;
|
|
883
883
|
fromJSON(object: any): ServiceDescriptorProto;
|
|
884
884
|
toJSON(message: ServiceDescriptorProto): unknown;
|
|
885
885
|
fromPartial(object: DeepPartial<ServiceDescriptorProto>): ServiceDescriptorProto;
|
|
886
886
|
};
|
|
887
887
|
export declare const MethodDescriptorProto: {
|
|
888
888
|
encode(message: MethodDescriptorProto, writer?: Writer): Writer;
|
|
889
|
-
decode(input: Reader | Uint8Array, length?: number): MethodDescriptorProto;
|
|
889
|
+
decode(input: Reader | Uint8Array, length?: number | undefined): MethodDescriptorProto;
|
|
890
890
|
fromJSON(object: any): MethodDescriptorProto;
|
|
891
891
|
toJSON(message: MethodDescriptorProto): unknown;
|
|
892
892
|
fromPartial(object: DeepPartial<MethodDescriptorProto>): MethodDescriptorProto;
|
|
893
893
|
};
|
|
894
894
|
export declare const FileOptions: {
|
|
895
895
|
encode(message: FileOptions, writer?: Writer): Writer;
|
|
896
|
-
decode(input: Reader | Uint8Array, length?: number): FileOptions;
|
|
896
|
+
decode(input: Reader | Uint8Array, length?: number | undefined): FileOptions;
|
|
897
897
|
fromJSON(object: any): FileOptions;
|
|
898
898
|
toJSON(message: FileOptions): unknown;
|
|
899
899
|
fromPartial(object: DeepPartial<FileOptions>): FileOptions;
|
|
900
900
|
};
|
|
901
901
|
export declare const MessageOptions: {
|
|
902
902
|
encode(message: MessageOptions, writer?: Writer): Writer;
|
|
903
|
-
decode(input: Reader | Uint8Array, length?: number): MessageOptions;
|
|
903
|
+
decode(input: Reader | Uint8Array, length?: number | undefined): MessageOptions;
|
|
904
904
|
fromJSON(object: any): MessageOptions;
|
|
905
905
|
toJSON(message: MessageOptions): unknown;
|
|
906
906
|
fromPartial(object: DeepPartial<MessageOptions>): MessageOptions;
|
|
907
907
|
};
|
|
908
908
|
export declare const FieldOptions: {
|
|
909
909
|
encode(message: FieldOptions, writer?: Writer): Writer;
|
|
910
|
-
decode(input: Reader | Uint8Array, length?: number): FieldOptions;
|
|
910
|
+
decode(input: Reader | Uint8Array, length?: number | undefined): FieldOptions;
|
|
911
911
|
fromJSON(object: any): FieldOptions;
|
|
912
912
|
toJSON(message: FieldOptions): unknown;
|
|
913
913
|
fromPartial(object: DeepPartial<FieldOptions>): FieldOptions;
|
|
914
914
|
};
|
|
915
915
|
export declare const OneofOptions: {
|
|
916
916
|
encode(message: OneofOptions, writer?: Writer): Writer;
|
|
917
|
-
decode(input: Reader | Uint8Array, length?: number): OneofOptions;
|
|
917
|
+
decode(input: Reader | Uint8Array, length?: number | undefined): OneofOptions;
|
|
918
918
|
fromJSON(object: any): OneofOptions;
|
|
919
919
|
toJSON(message: OneofOptions): unknown;
|
|
920
920
|
fromPartial(object: DeepPartial<OneofOptions>): OneofOptions;
|
|
921
921
|
};
|
|
922
922
|
export declare const EnumOptions: {
|
|
923
923
|
encode(message: EnumOptions, writer?: Writer): Writer;
|
|
924
|
-
decode(input: Reader | Uint8Array, length?: number): EnumOptions;
|
|
924
|
+
decode(input: Reader | Uint8Array, length?: number | undefined): EnumOptions;
|
|
925
925
|
fromJSON(object: any): EnumOptions;
|
|
926
926
|
toJSON(message: EnumOptions): unknown;
|
|
927
927
|
fromPartial(object: DeepPartial<EnumOptions>): EnumOptions;
|
|
928
928
|
};
|
|
929
929
|
export declare const EnumValueOptions: {
|
|
930
930
|
encode(message: EnumValueOptions, writer?: Writer): Writer;
|
|
931
|
-
decode(input: Reader | Uint8Array, length?: number): EnumValueOptions;
|
|
931
|
+
decode(input: Reader | Uint8Array, length?: number | undefined): EnumValueOptions;
|
|
932
932
|
fromJSON(object: any): EnumValueOptions;
|
|
933
933
|
toJSON(message: EnumValueOptions): unknown;
|
|
934
934
|
fromPartial(object: DeepPartial<EnumValueOptions>): EnumValueOptions;
|
|
935
935
|
};
|
|
936
936
|
export declare const ServiceOptions: {
|
|
937
937
|
encode(message: ServiceOptions, writer?: Writer): Writer;
|
|
938
|
-
decode(input: Reader | Uint8Array, length?: number): ServiceOptions;
|
|
938
|
+
decode(input: Reader | Uint8Array, length?: number | undefined): ServiceOptions;
|
|
939
939
|
fromJSON(object: any): ServiceOptions;
|
|
940
940
|
toJSON(message: ServiceOptions): unknown;
|
|
941
941
|
fromPartial(object: DeepPartial<ServiceOptions>): ServiceOptions;
|
|
942
942
|
};
|
|
943
943
|
export declare const MethodOptions: {
|
|
944
944
|
encode(message: MethodOptions, writer?: Writer): Writer;
|
|
945
|
-
decode(input: Reader | Uint8Array, length?: number): MethodOptions;
|
|
945
|
+
decode(input: Reader | Uint8Array, length?: number | undefined): MethodOptions;
|
|
946
946
|
fromJSON(object: any): MethodOptions;
|
|
947
947
|
toJSON(message: MethodOptions): unknown;
|
|
948
948
|
fromPartial(object: DeepPartial<MethodOptions>): MethodOptions;
|
|
949
949
|
};
|
|
950
950
|
export declare const UninterpretedOption: {
|
|
951
951
|
encode(message: UninterpretedOption, writer?: Writer): Writer;
|
|
952
|
-
decode(input: Reader | Uint8Array, length?: number): UninterpretedOption;
|
|
952
|
+
decode(input: Reader | Uint8Array, length?: number | undefined): UninterpretedOption;
|
|
953
953
|
fromJSON(object: any): UninterpretedOption;
|
|
954
954
|
toJSON(message: UninterpretedOption): unknown;
|
|
955
955
|
fromPartial(object: DeepPartial<UninterpretedOption>): UninterpretedOption;
|
|
956
956
|
};
|
|
957
957
|
export declare const UninterpretedOption_NamePart: {
|
|
958
958
|
encode(message: UninterpretedOption_NamePart, writer?: Writer): Writer;
|
|
959
|
-
decode(input: Reader | Uint8Array, length?: number): UninterpretedOption_NamePart;
|
|
959
|
+
decode(input: Reader | Uint8Array, length?: number | undefined): UninterpretedOption_NamePart;
|
|
960
960
|
fromJSON(object: any): UninterpretedOption_NamePart;
|
|
961
961
|
toJSON(message: UninterpretedOption_NamePart): unknown;
|
|
962
962
|
fromPartial(object: DeepPartial<UninterpretedOption_NamePart>): UninterpretedOption_NamePart;
|
|
963
963
|
};
|
|
964
964
|
export declare const SourceCodeInfo: {
|
|
965
965
|
encode(message: SourceCodeInfo, writer?: Writer): Writer;
|
|
966
|
-
decode(input: Reader | Uint8Array, length?: number): SourceCodeInfo;
|
|
966
|
+
decode(input: Reader | Uint8Array, length?: number | undefined): SourceCodeInfo;
|
|
967
967
|
fromJSON(object: any): SourceCodeInfo;
|
|
968
968
|
toJSON(message: SourceCodeInfo): unknown;
|
|
969
969
|
fromPartial(object: DeepPartial<SourceCodeInfo>): SourceCodeInfo;
|
|
970
970
|
};
|
|
971
971
|
export declare const SourceCodeInfo_Location: {
|
|
972
972
|
encode(message: SourceCodeInfo_Location, writer?: Writer): Writer;
|
|
973
|
-
decode(input: Reader | Uint8Array, length?: number): SourceCodeInfo_Location;
|
|
973
|
+
decode(input: Reader | Uint8Array, length?: number | undefined): SourceCodeInfo_Location;
|
|
974
974
|
fromJSON(object: any): SourceCodeInfo_Location;
|
|
975
975
|
toJSON(message: SourceCodeInfo_Location): unknown;
|
|
976
976
|
fromPartial(object: DeepPartial<SourceCodeInfo_Location>): SourceCodeInfo_Location;
|
|
977
977
|
};
|
|
978
978
|
export declare const GeneratedCodeInfo: {
|
|
979
979
|
encode(message: GeneratedCodeInfo, writer?: Writer): Writer;
|
|
980
|
-
decode(input: Reader | Uint8Array, length?: number): GeneratedCodeInfo;
|
|
980
|
+
decode(input: Reader | Uint8Array, length?: number | undefined): GeneratedCodeInfo;
|
|
981
981
|
fromJSON(object: any): GeneratedCodeInfo;
|
|
982
982
|
toJSON(message: GeneratedCodeInfo): unknown;
|
|
983
983
|
fromPartial(object: DeepPartial<GeneratedCodeInfo>): GeneratedCodeInfo;
|
|
984
984
|
};
|
|
985
985
|
export declare const GeneratedCodeInfo_Annotation: {
|
|
986
986
|
encode(message: GeneratedCodeInfo_Annotation, writer?: Writer): Writer;
|
|
987
|
-
decode(input: Reader | Uint8Array, length?: number): GeneratedCodeInfo_Annotation;
|
|
987
|
+
decode(input: Reader | Uint8Array, length?: number | undefined): GeneratedCodeInfo_Annotation;
|
|
988
988
|
fromJSON(object: any): GeneratedCodeInfo_Annotation;
|
|
989
989
|
toJSON(message: GeneratedCodeInfo_Annotation): unknown;
|
|
990
990
|
fromPartial(object: DeepPartial<GeneratedCodeInfo_Annotation>): GeneratedCodeInfo_Annotation;
|
|
@@ -79,7 +79,7 @@ export interface Duration {
|
|
|
79
79
|
}
|
|
80
80
|
export declare const Duration: {
|
|
81
81
|
encode(message: Duration, writer?: Writer): Writer;
|
|
82
|
-
decode(input: Reader | Uint8Array, length?: number): Duration;
|
|
82
|
+
decode(input: Reader | Uint8Array, length?: number | undefined): Duration;
|
|
83
83
|
fromJSON(object: any): Duration;
|
|
84
84
|
toJSON(message: Duration): unknown;
|
|
85
85
|
fromPartial(object: DeepPartial<Duration>): Duration;
|
|
@@ -97,7 +97,7 @@ export interface Timestamp {
|
|
|
97
97
|
}
|
|
98
98
|
export declare const Timestamp: {
|
|
99
99
|
encode(message: Timestamp, writer?: Writer): Writer;
|
|
100
|
-
decode(input: Reader | Uint8Array, length?: number): Timestamp;
|
|
100
|
+
decode(input: Reader | Uint8Array, length?: number | undefined): Timestamp;
|
|
101
101
|
fromJSON(object: any): Timestamp;
|
|
102
102
|
toJSON(message: Timestamp): unknown;
|
|
103
103
|
fromPartial(object: DeepPartial<Timestamp>): Timestamp;
|