@firmachain/firma-js 0.2.33 → 0.2.36
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 +5 -1
- package/dist/sdk/FirmaAuthzService.js +5 -5
- package/dist/sdk/FirmaBankService.js +1 -1
- package/dist/sdk/FirmaContractService.d.ts +1 -0
- package/dist/sdk/FirmaContractService.js +31 -8
- 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/FirmaIpfsService.js +1 -1
- package/dist/sdk/FirmaNftService.js +3 -3
- package/dist/sdk/FirmaStakingService.js +5 -5
- package/dist/sdk/FirmaTokenService.js +4 -4
- package/dist/sdk/FirmaUtil.d.ts +4 -2
- package/dist/sdk/FirmaUtil.js +19 -14
- package/dist/sdk/FirmaWalletService.js +3 -3
- package/dist/sdk/firmachain/amino/addresses.js +11 -11
- package/dist/sdk/firmachain/amino/aminotypes.js +36 -32
- package/dist/sdk/firmachain/amino/encoding.js +30 -26
- 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 +14 -10
- package/dist/sdk/firmachain/authz/AuthzQueryClient.js +3 -3
- package/dist/sdk/firmachain/authz/index.js +5 -1
- package/dist/sdk/firmachain/bank/BankQueryClient.js +4 -4
- package/dist/sdk/firmachain/bank/index.js +5 -1
- package/dist/sdk/firmachain/common/CommonTxClient.d.ts +7 -0
- package/dist/sdk/firmachain/common/CommonTxClient.js +79 -0
- package/dist/sdk/firmachain/common/LedgerSigningStargateClient.js +2 -2
- package/dist/sdk/firmachain/common/LedgerWallet.js +14 -10
- package/dist/sdk/firmachain/common/accounts.js +2 -2
- package/dist/sdk/firmachain/common/index.js +5 -1
- package/dist/sdk/firmachain/common/signing.js +9 -5
- package/dist/sdk/firmachain/common/signingaminostargateclient.js +16 -16
- package/dist/sdk/firmachain/common/signingstargateclient.js +18 -14
- 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 +5 -1
- package/dist/sdk/firmachain/cosmwasm/CosmWasmQueryClient.js +7 -7
- package/dist/sdk/firmachain/cosmwasm/index.js +5 -1
- package/dist/sdk/firmachain/distribution/DistributionQueryClient.js +5 -5
- package/dist/sdk/firmachain/distribution/index.js +5 -1
- package/dist/sdk/firmachain/feegrant/FeeGrantQueryClient.js +2 -2
- package/dist/sdk/firmachain/feegrant/index.js +5 -1
- 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 +5 -1
- package/dist/sdk/firmachain/ibc/IbcQueryClient.js +1 -1
- package/dist/sdk/firmachain/ibc/index.js +5 -1
- package/dist/sdk/firmachain/nft/NftTxTypes.d.ts +6 -6
- package/dist/sdk/firmachain/nft/index.js +5 -1
- package/dist/sdk/firmachain/slashing/index.js +5 -1
- package/dist/sdk/firmachain/staking/StakingQueryClient.js +8 -8
- package/dist/sdk/firmachain/staking/index.js +5 -1
- package/dist/sdk/firmachain/token/TokenTxTypes.d.ts +8 -8
- package/dist/sdk/firmachain/token/index.js +5 -1
- package/package.json +1 -1
|
@@ -57,7 +57,7 @@ var StakingQueryClient = /** @class */ (function () {
|
|
|
57
57
|
return __generator(this, function (_a) {
|
|
58
58
|
switch (_a.label) {
|
|
59
59
|
case 0:
|
|
60
|
-
path = "/cosmos/staking/v1beta1/validators/"
|
|
60
|
+
path = "/cosmos/staking/v1beta1/validators/".concat(validatorAddress, "/delegations/").concat(address, "/unbonding_delegation");
|
|
61
61
|
return [4 /*yield*/, this.axios.get(path)];
|
|
62
62
|
case 1:
|
|
63
63
|
result = _a.sent();
|
|
@@ -74,7 +74,7 @@ var StakingQueryClient = /** @class */ (function () {
|
|
|
74
74
|
return __generator(this, function (_a) {
|
|
75
75
|
switch (_a.label) {
|
|
76
76
|
case 0:
|
|
77
|
-
path = "/cosmos/staking/v1beta1/validators/"
|
|
77
|
+
path = "/cosmos/staking/v1beta1/validators/".concat(validatorAddress, "/delegations/").concat(address);
|
|
78
78
|
return [4 /*yield*/, this.axios.get(path)];
|
|
79
79
|
case 1:
|
|
80
80
|
result = _a.sent();
|
|
@@ -89,7 +89,7 @@ var StakingQueryClient = /** @class */ (function () {
|
|
|
89
89
|
return __generator(this, function (_a) {
|
|
90
90
|
switch (_a.label) {
|
|
91
91
|
case 0:
|
|
92
|
-
path = "/cosmos/staking/v1beta1/delegators/"
|
|
92
|
+
path = "/cosmos/staking/v1beta1/delegators/".concat(address, "/unbonding_delegations");
|
|
93
93
|
return [4 /*yield*/, this.axios.get(path)];
|
|
94
94
|
case 1:
|
|
95
95
|
result = _a.sent();
|
|
@@ -104,7 +104,7 @@ var StakingQueryClient = /** @class */ (function () {
|
|
|
104
104
|
return __generator(this, function (_a) {
|
|
105
105
|
switch (_a.label) {
|
|
106
106
|
case 0:
|
|
107
|
-
path = "/cosmos/staking/v1beta1/delegators/"
|
|
107
|
+
path = "/cosmos/staking/v1beta1/delegators/".concat(address, "/redelegations");
|
|
108
108
|
return [4 /*yield*/, this.axios.get(path)];
|
|
109
109
|
case 1:
|
|
110
110
|
result = _a.sent();
|
|
@@ -120,7 +120,7 @@ var StakingQueryClient = /** @class */ (function () {
|
|
|
120
120
|
return __generator(this, function (_a) {
|
|
121
121
|
switch (_a.label) {
|
|
122
122
|
case 0:
|
|
123
|
-
path = "/cosmos/staking/v1beta1/validators/"
|
|
123
|
+
path = "/cosmos/staking/v1beta1/validators/".concat(valoperAddress, "/unbonding_delegations");
|
|
124
124
|
return [4 /*yield*/, this.axios.get(path, { params: { "pagination.key": paginationKey } })];
|
|
125
125
|
case 1:
|
|
126
126
|
result = _a.sent();
|
|
@@ -140,7 +140,7 @@ var StakingQueryClient = /** @class */ (function () {
|
|
|
140
140
|
return __generator(this, function (_a) {
|
|
141
141
|
switch (_a.label) {
|
|
142
142
|
case 0:
|
|
143
|
-
path = "/cosmos/staking/v1beta1/validators/"
|
|
143
|
+
path = "/cosmos/staking/v1beta1/validators/".concat(valoperAddress, "/delegations");
|
|
144
144
|
return [4 /*yield*/, this.axios.get(path, { params: { "pagination.key": paginationKey } })];
|
|
145
145
|
case 1:
|
|
146
146
|
result = _a.sent();
|
|
@@ -160,7 +160,7 @@ var StakingQueryClient = /** @class */ (function () {
|
|
|
160
160
|
return __generator(this, function (_a) {
|
|
161
161
|
switch (_a.label) {
|
|
162
162
|
case 0:
|
|
163
|
-
path = "/cosmos/staking/v1beta1/delegations/"
|
|
163
|
+
path = "/cosmos/staking/v1beta1/delegations/".concat(address);
|
|
164
164
|
return [4 /*yield*/, this.axios.get(path, { params: { "pagination.key": paginationKey } })];
|
|
165
165
|
case 1:
|
|
166
166
|
result = _a.sent();
|
|
@@ -209,7 +209,7 @@ var StakingQueryClient = /** @class */ (function () {
|
|
|
209
209
|
return __generator(this, function (_a) {
|
|
210
210
|
switch (_a.label) {
|
|
211
211
|
case 0:
|
|
212
|
-
path = "/cosmos/staking/v1beta1/validators/"
|
|
212
|
+
path = "/cosmos/staking/v1beta1/validators/".concat(valoperAddress);
|
|
213
213
|
return [4 /*yield*/, this.axios.get(path)];
|
|
214
214
|
case 1:
|
|
215
215
|
result = _a.sent();
|
|
@@ -1,7 +1,11 @@
|
|
|
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
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
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);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
|
@@ -36,56 +36,56 @@ export interface MsgUpdateTokenURIResponse {
|
|
|
36
36
|
}
|
|
37
37
|
export declare const MsgCreateToken: {
|
|
38
38
|
encode(message: MsgCreateToken, writer?: Writer): Writer;
|
|
39
|
-
decode(input: Reader | Uint8Array, length?: number
|
|
39
|
+
decode(input: Reader | Uint8Array, length?: number): MsgCreateToken;
|
|
40
40
|
fromJSON(object: any): MsgCreateToken;
|
|
41
41
|
toJSON(message: MsgCreateToken): unknown;
|
|
42
42
|
fromPartial(object: DeepPartial<MsgCreateToken>): MsgCreateToken;
|
|
43
43
|
};
|
|
44
44
|
export declare const MsgCreateTokenResponse: {
|
|
45
45
|
encode(_: MsgCreateTokenResponse, writer?: Writer): Writer;
|
|
46
|
-
decode(input: Reader | Uint8Array, length?: number
|
|
46
|
+
decode(input: Reader | Uint8Array, length?: number): MsgCreateTokenResponse;
|
|
47
47
|
fromJSON(_: any): MsgCreateTokenResponse;
|
|
48
48
|
toJSON(_: MsgCreateTokenResponse): unknown;
|
|
49
49
|
fromPartial(_: DeepPartial<MsgCreateTokenResponse>): MsgCreateTokenResponse;
|
|
50
50
|
};
|
|
51
51
|
export declare const MsgMint: {
|
|
52
52
|
encode(message: MsgMint, writer?: Writer): Writer;
|
|
53
|
-
decode(input: Reader | Uint8Array, length?: number
|
|
53
|
+
decode(input: Reader | Uint8Array, length?: number): MsgMint;
|
|
54
54
|
fromJSON(object: any): MsgMint;
|
|
55
55
|
toJSON(message: MsgMint): unknown;
|
|
56
56
|
fromPartial(object: DeepPartial<MsgMint>): MsgMint;
|
|
57
57
|
};
|
|
58
58
|
export declare const MsgMintResponse: {
|
|
59
59
|
encode(_: MsgMintResponse, writer?: Writer): Writer;
|
|
60
|
-
decode(input: Reader | Uint8Array, length?: number
|
|
60
|
+
decode(input: Reader | Uint8Array, length?: number): MsgMintResponse;
|
|
61
61
|
fromJSON(_: any): MsgMintResponse;
|
|
62
62
|
toJSON(_: MsgMintResponse): unknown;
|
|
63
63
|
fromPartial(_: DeepPartial<MsgMintResponse>): MsgMintResponse;
|
|
64
64
|
};
|
|
65
65
|
export declare const MsgBurn: {
|
|
66
66
|
encode(message: MsgBurn, writer?: Writer): Writer;
|
|
67
|
-
decode(input: Reader | Uint8Array, length?: number
|
|
67
|
+
decode(input: Reader | Uint8Array, length?: number): MsgBurn;
|
|
68
68
|
fromJSON(object: any): MsgBurn;
|
|
69
69
|
toJSON(message: MsgBurn): unknown;
|
|
70
70
|
fromPartial(object: DeepPartial<MsgBurn>): MsgBurn;
|
|
71
71
|
};
|
|
72
72
|
export declare const MsgBurnResponse: {
|
|
73
73
|
encode(_: MsgBurnResponse, writer?: Writer): Writer;
|
|
74
|
-
decode(input: Reader | Uint8Array, length?: number
|
|
74
|
+
decode(input: Reader | Uint8Array, length?: number): MsgBurnResponse;
|
|
75
75
|
fromJSON(_: any): MsgBurnResponse;
|
|
76
76
|
toJSON(_: MsgBurnResponse): unknown;
|
|
77
77
|
fromPartial(_: DeepPartial<MsgBurnResponse>): MsgBurnResponse;
|
|
78
78
|
};
|
|
79
79
|
export declare const MsgUpdateTokenURI: {
|
|
80
80
|
encode(message: MsgUpdateTokenURI, writer?: Writer): Writer;
|
|
81
|
-
decode(input: Reader | Uint8Array, length?: number
|
|
81
|
+
decode(input: Reader | Uint8Array, length?: number): MsgUpdateTokenURI;
|
|
82
82
|
fromJSON(object: any): MsgUpdateTokenURI;
|
|
83
83
|
toJSON(message: MsgUpdateTokenURI): unknown;
|
|
84
84
|
fromPartial(object: DeepPartial<MsgUpdateTokenURI>): MsgUpdateTokenURI;
|
|
85
85
|
};
|
|
86
86
|
export declare const MsgUpdateTokenURIResponse: {
|
|
87
87
|
encode(_: MsgUpdateTokenURIResponse, writer?: Writer): Writer;
|
|
88
|
-
decode(input: Reader | Uint8Array, length?: number
|
|
88
|
+
decode(input: Reader | Uint8Array, length?: number): MsgUpdateTokenURIResponse;
|
|
89
89
|
fromJSON(_: any): MsgUpdateTokenURIResponse;
|
|
90
90
|
toJSON(_: MsgUpdateTokenURIResponse): unknown;
|
|
91
91
|
fromPartial(_: DeepPartial<MsgUpdateTokenURIResponse>): MsgUpdateTokenURIResponse;
|
|
@@ -1,7 +1,11 @@
|
|
|
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
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
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);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|