@firmachain/firma-js 0.2.32 → 0.2.35

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.
Files changed (87) hide show
  1. package/dist/index.js +5 -1
  2. package/dist/sdk/FirmaAuthzService.js +20 -20
  3. package/dist/sdk/FirmaBankService.js +2 -2
  4. package/dist/sdk/FirmaContractService.js +14 -16
  5. package/dist/sdk/FirmaCosmWasmService.js +27 -29
  6. package/dist/sdk/FirmaDistributionService.js +10 -10
  7. package/dist/sdk/FirmaFeeGrantService.js +6 -6
  8. package/dist/sdk/FirmaGovService.js +26 -26
  9. package/dist/sdk/FirmaIbcService.js +4 -4
  10. package/dist/sdk/FirmaIpfsService.js +1 -1
  11. package/dist/sdk/FirmaNftService.js +9 -9
  12. package/dist/sdk/FirmaStakingService.js +10 -10
  13. package/dist/sdk/FirmaTokenService.js +16 -16
  14. package/dist/sdk/FirmaUtil.d.ts +13 -1
  15. package/dist/sdk/FirmaUtil.js +145 -14
  16. package/dist/sdk/FirmaWalletService.js +3 -3
  17. package/dist/sdk/firmachain/amino/addresses.js +11 -11
  18. package/dist/sdk/firmachain/amino/aminotypes.js +36 -32
  19. package/dist/sdk/firmachain/amino/encoding.js +30 -26
  20. package/dist/sdk/firmachain/amino/multisig.js +5 -5
  21. package/dist/sdk/firmachain/amino/signature.js +4 -4
  22. package/dist/sdk/firmachain/amino/signdoc.js +1 -1
  23. package/dist/sdk/firmachain/amino/wallet.js +14 -10
  24. package/dist/sdk/firmachain/authz/AuthzQueryClient.js +3 -3
  25. package/dist/sdk/firmachain/authz/AuthzTxClient.d.ts +5 -4
  26. package/dist/sdk/firmachain/authz/AuthzTxClient.js +6 -3
  27. package/dist/sdk/firmachain/authz/index.js +5 -1
  28. package/dist/sdk/firmachain/bank/BankQueryClient.js +4 -4
  29. package/dist/sdk/firmachain/bank/BankTxClient.d.ts +4 -3
  30. package/dist/sdk/firmachain/bank/BankTxClient.js +5 -2
  31. package/dist/sdk/firmachain/bank/index.js +5 -1
  32. package/dist/sdk/firmachain/common/CommonTxClient.d.ts +7 -0
  33. package/dist/sdk/firmachain/common/CommonTxClient.js +79 -0
  34. package/dist/sdk/firmachain/common/ITxClient.d.ts +3 -3
  35. package/dist/sdk/firmachain/common/ITxClient.js +14 -8
  36. package/dist/sdk/firmachain/common/LedgerSigningStargateClient.js +2 -2
  37. package/dist/sdk/firmachain/common/LedgerWallet.js +14 -10
  38. package/dist/sdk/firmachain/common/accounts.js +2 -2
  39. package/dist/sdk/firmachain/common/index.js +5 -1
  40. package/dist/sdk/firmachain/common/signing.js +9 -5
  41. package/dist/sdk/firmachain/common/signingaminostargateclient.js +16 -16
  42. package/dist/sdk/firmachain/common/signingstargateclient.d.ts +15 -8
  43. package/dist/sdk/firmachain/common/signingstargateclient.js +82 -19
  44. package/dist/sdk/firmachain/common/stargateclient.js +6 -6
  45. package/dist/sdk/firmachain/contract/ContractQueryClient.js +2 -2
  46. package/dist/sdk/firmachain/contract/ContractTxClient.d.ts +4 -3
  47. package/dist/sdk/firmachain/contract/ContractTxClient.js +5 -2
  48. package/dist/sdk/firmachain/contract/ContractTxTypes.d.ts +4 -4
  49. package/dist/sdk/firmachain/contract/index.js +5 -1
  50. package/dist/sdk/firmachain/cosmwasm/CosmWasmQueryClient.js +7 -7
  51. package/dist/sdk/firmachain/cosmwasm/CosmWasmTxClient.d.ts +8 -7
  52. package/dist/sdk/firmachain/cosmwasm/CosmWasmTxClient.js +9 -6
  53. package/dist/sdk/firmachain/cosmwasm/index.js +5 -1
  54. package/dist/sdk/firmachain/distribution/DistributionQueryClient.js +5 -5
  55. package/dist/sdk/firmachain/distribution/DistributionTxClient.d.ts +6 -5
  56. package/dist/sdk/firmachain/distribution/DistributionTxClient.js +7 -4
  57. package/dist/sdk/firmachain/distribution/index.js +5 -1
  58. package/dist/sdk/firmachain/feegrant/FeeGrantQueryClient.js +2 -2
  59. package/dist/sdk/firmachain/feegrant/FeeGrantTxClient.d.ts +4 -3
  60. package/dist/sdk/firmachain/feegrant/FeeGrantTxClient.js +5 -2
  61. package/dist/sdk/firmachain/feegrant/index.js +5 -1
  62. package/dist/sdk/firmachain/google/protobuf/any.d.ts +1 -1
  63. package/dist/sdk/firmachain/google/protobuf/descriptor.d.ts +27 -27
  64. package/dist/sdk/firmachain/google/protobuf/duration.d.ts +1 -1
  65. package/dist/sdk/firmachain/google/protobuf/timestamp.d.ts +1 -1
  66. package/dist/sdk/firmachain/gov/GovQueryClient.js +2 -2
  67. package/dist/sdk/firmachain/gov/GovTxClient.d.ts +5 -4
  68. package/dist/sdk/firmachain/gov/GovTxClient.js +6 -3
  69. package/dist/sdk/firmachain/gov/index.js +5 -1
  70. package/dist/sdk/firmachain/ibc/IbcQueryClient.js +1 -1
  71. package/dist/sdk/firmachain/ibc/IbcTxClient.d.ts +3 -2
  72. package/dist/sdk/firmachain/ibc/IbcTxClient.js +4 -1
  73. package/dist/sdk/firmachain/ibc/index.js +5 -1
  74. package/dist/sdk/firmachain/nft/NftTxClient.d.ts +5 -4
  75. package/dist/sdk/firmachain/nft/NftTxClient.js +6 -3
  76. package/dist/sdk/firmachain/nft/NftTxTypes.d.ts +6 -6
  77. package/dist/sdk/firmachain/nft/index.js +5 -1
  78. package/dist/sdk/firmachain/slashing/index.js +5 -1
  79. package/dist/sdk/firmachain/staking/StakingQueryClient.js +8 -8
  80. package/dist/sdk/firmachain/staking/StakingTxClient.d.ts +7 -6
  81. package/dist/sdk/firmachain/staking/StakingTxClient.js +8 -5
  82. package/dist/sdk/firmachain/staking/index.js +5 -1
  83. package/dist/sdk/firmachain/token/TokenTxClient.d.ts +6 -5
  84. package/dist/sdk/firmachain/token/TokenTxClient.js +7 -4
  85. package/dist/sdk/firmachain/token/TokenTxTypes.d.ts +8 -8
  86. package/dist/sdk/firmachain/token/index.js +5 -1
  87. package/package.json +2 -4
@@ -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/" + address + "/rewards/" + validatorAddress;
60
+ path = "/cosmos/distribution/v1beta1/delegators/".concat(address, "/rewards/").concat(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/" + address + "/outstanding_rewards";
79
+ path = "/cosmos/distribution/v1beta1/validators/".concat(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/" + address + "/commission";
94
+ path = "/cosmos/distribution/v1beta1/validators/".concat(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/" + address + "/rewards";
109
+ path = "/cosmos/distribution/v1beta1/delegators/".concat(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/" + address + "/withdraw_address";
156
+ path = "/cosmos/distribution/v1beta1/delegators/".concat(address, "/withdraw_address");
157
157
  return [4 /*yield*/, this.axios.get(path)];
158
158
  case 1:
159
159
  result = _a.sent();
@@ -1,4 +1,4 @@
1
- import { EncodeObject } from "@cosmjs/proto-signing";
1
+ import { Registry, EncodeObject } from "@cosmjs/proto-signing";
2
2
  import { MsgFundCommunityPool, MsgSetWithdrawAddress, MsgWithdrawDelegatorReward, MsgWithdrawValidatorCommission } from "cosmjs-types/cosmos/distribution/v1beta1/tx";
3
3
  import { FirmaWalletService } from "../../FirmaWalletService";
4
4
  import { ITxClient } from "../common/ITxClient";
@@ -20,8 +20,9 @@ export interface MsgWithdrawValidatorCommissionEncodeObject extends EncodeObject
20
20
  }
21
21
  export declare class DistributionTxClient extends ITxClient {
22
22
  constructor(wallet: FirmaWalletService, serverUrl: string);
23
- msgFundCommunityPool(data: MsgFundCommunityPool): MsgFundCommunityPoolEncodeObject;
24
- msgSetWithdrawAddress(data: MsgSetWithdrawAddress): MsgSetWithdrawAddressEncodeObject;
25
- msgWithdrawDelegatorReward(data: MsgWithdrawDelegatorReward): MsgWithdrawDelegatorRewardEncodeObject;
26
- msgWithdrawValidatorCommission(data: MsgWithdrawValidatorCommission): MsgWithdrawValidatorCommissionEncodeObject;
23
+ static getRegistry(): Registry;
24
+ static msgFundCommunityPool(data: MsgFundCommunityPool): MsgFundCommunityPoolEncodeObject;
25
+ static msgSetWithdrawAddress(data: MsgSetWithdrawAddress): MsgSetWithdrawAddressEncodeObject;
26
+ static msgWithdrawDelegatorReward(data: MsgWithdrawDelegatorReward): MsgWithdrawDelegatorRewardEncodeObject;
27
+ static msgWithdrawValidatorCommission(data: MsgWithdrawValidatorCommission): MsgWithdrawValidatorCommissionEncodeObject;
27
28
  }
@@ -31,16 +31,19 @@ var DistributionTxClient = /** @class */ (function (_super) {
31
31
  function DistributionTxClient(wallet, serverUrl) {
32
32
  return _super.call(this, wallet, serverUrl, registry) || this;
33
33
  }
34
- DistributionTxClient.prototype.msgFundCommunityPool = function (data) {
34
+ DistributionTxClient.getRegistry = function () {
35
+ return registry;
36
+ };
37
+ DistributionTxClient.msgFundCommunityPool = function (data) {
35
38
  return { typeUrl: "/cosmos.distribution.v1beta1.MsgFundCommunityPool", value: data };
36
39
  };
37
- DistributionTxClient.prototype.msgSetWithdrawAddress = function (data) {
40
+ DistributionTxClient.msgSetWithdrawAddress = function (data) {
38
41
  return { typeUrl: "/cosmos.distribution.v1beta1.MsgSetWithdrawAddress", value: data };
39
42
  };
40
- DistributionTxClient.prototype.msgWithdrawDelegatorReward = function (data) {
43
+ DistributionTxClient.msgWithdrawDelegatorReward = function (data) {
41
44
  return { typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward", value: data };
42
45
  };
43
- DistributionTxClient.prototype.msgWithdrawValidatorCommission = function (data) {
46
+ DistributionTxClient.msgWithdrawValidatorCommission = function (data) {
44
47
  return { typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission", value: data };
45
48
  };
46
49
  return DistributionTxClient;
@@ -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.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
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];
@@ -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/" + granterAddress + "/" + granteeAddress;
60
+ path = "/cosmos/feegrant/v1beta1/allowance/".concat(granterAddress, "/").concat(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/" + granteeAddress;
75
+ path = "/cosmos/feegrant/v1beta1/allowances/".concat(granteeAddress);
76
76
  return [4 /*yield*/, this.axios.get(path)];
77
77
  case 1:
78
78
  result = _a.sent();
@@ -1,4 +1,4 @@
1
- import { EncodeObject } from "@cosmjs/proto-signing";
1
+ import { Registry, EncodeObject } from "@cosmjs/proto-signing";
2
2
  import { MsgGrantAllowance, MsgRevokeAllowance } from "./FeeGrantTxTypes";
3
3
  import { ITxClient } from "../common/ITxClient";
4
4
  import { FirmaWalletService } from "../../FirmaWalletService";
@@ -12,6 +12,7 @@ export interface MsgRevokeAllowanceEncodeObject extends EncodeObject {
12
12
  }
13
13
  export declare class FeeGrantTxClient extends ITxClient {
14
14
  constructor(wallet: FirmaWalletService, serverUrl: string);
15
- msgGrantAllowance(data: MsgGrantAllowance): MsgGrantAllowanceEncodeObject;
16
- msgRevokeAllowance(data: MsgRevokeAllowance): MsgRevokeAllowanceEncodeObject;
15
+ static getRegistry(): Registry;
16
+ static msgGrantAllowance(data: MsgGrantAllowance): MsgGrantAllowanceEncodeObject;
17
+ static msgRevokeAllowance(data: MsgRevokeAllowance): MsgRevokeAllowanceEncodeObject;
17
18
  }
@@ -29,10 +29,13 @@ var FeeGrantTxClient = /** @class */ (function (_super) {
29
29
  function FeeGrantTxClient(wallet, serverUrl) {
30
30
  return _super.call(this, wallet, serverUrl, registry) || this;
31
31
  }
32
- FeeGrantTxClient.prototype.msgGrantAllowance = function (data) {
32
+ FeeGrantTxClient.getRegistry = function () {
33
+ return registry;
34
+ };
35
+ FeeGrantTxClient.msgGrantAllowance = function (data) {
33
36
  return { typeUrl: "/cosmos.feegrant.v1beta1.MsgGrantAllowance", value: data };
34
37
  };
35
- FeeGrantTxClient.prototype.msgRevokeAllowance = function (data) {
38
+ FeeGrantTxClient.msgRevokeAllowance = function (data) {
36
39
  return { typeUrl: "/cosmos.feegrant.v1beta1.MsgRevokeAllowance", value: data };
37
40
  };
38
41
  return FeeGrantTxClient;
@@ -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.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
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];
@@ -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 | undefined): Any;
120
+ decode(input: Reader | Uint8Array, length?: number): 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 | undefined): FileDescriptorSet;
805
+ decode(input: Reader | Uint8Array, length?: number): 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 | undefined): FileDescriptorProto;
812
+ decode(input: Reader | Uint8Array, length?: number): 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 | undefined): DescriptorProto;
819
+ decode(input: Reader | Uint8Array, length?: number): 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 | undefined): DescriptorProto_ExtensionRange;
826
+ decode(input: Reader | Uint8Array, length?: number): 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 | undefined): DescriptorProto_ReservedRange;
833
+ decode(input: Reader | Uint8Array, length?: number): 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 | undefined): ExtensionRangeOptions;
840
+ decode(input: Reader | Uint8Array, length?: number): 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 | undefined): FieldDescriptorProto;
847
+ decode(input: Reader | Uint8Array, length?: number): 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 | undefined): OneofDescriptorProto;
854
+ decode(input: Reader | Uint8Array, length?: number): 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 | undefined): EnumDescriptorProto;
861
+ decode(input: Reader | Uint8Array, length?: number): 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 | undefined): EnumDescriptorProto_EnumReservedRange;
868
+ decode(input: Reader | Uint8Array, length?: number): 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 | undefined): EnumValueDescriptorProto;
875
+ decode(input: Reader | Uint8Array, length?: number): 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 | undefined): ServiceDescriptorProto;
882
+ decode(input: Reader | Uint8Array, length?: number): 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 | undefined): MethodDescriptorProto;
889
+ decode(input: Reader | Uint8Array, length?: number): 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 | undefined): FileOptions;
896
+ decode(input: Reader | Uint8Array, length?: number): 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 | undefined): MessageOptions;
903
+ decode(input: Reader | Uint8Array, length?: number): 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 | undefined): FieldOptions;
910
+ decode(input: Reader | Uint8Array, length?: number): 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 | undefined): OneofOptions;
917
+ decode(input: Reader | Uint8Array, length?: number): 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 | undefined): EnumOptions;
924
+ decode(input: Reader | Uint8Array, length?: number): 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 | undefined): EnumValueOptions;
931
+ decode(input: Reader | Uint8Array, length?: number): 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 | undefined): ServiceOptions;
938
+ decode(input: Reader | Uint8Array, length?: number): 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 | undefined): MethodOptions;
945
+ decode(input: Reader | Uint8Array, length?: number): 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 | undefined): UninterpretedOption;
952
+ decode(input: Reader | Uint8Array, length?: number): 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 | undefined): UninterpretedOption_NamePart;
959
+ decode(input: Reader | Uint8Array, length?: number): 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 | undefined): SourceCodeInfo;
966
+ decode(input: Reader | Uint8Array, length?: number): 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 | undefined): SourceCodeInfo_Location;
973
+ decode(input: Reader | Uint8Array, length?: number): 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 | undefined): GeneratedCodeInfo;
980
+ decode(input: Reader | Uint8Array, length?: number): 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 | undefined): GeneratedCodeInfo_Annotation;
987
+ decode(input: Reader | Uint8Array, length?: number): 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 | undefined): Duration;
82
+ decode(input: Reader | Uint8Array, length?: number): 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 | undefined): Timestamp;
100
+ decode(input: Reader | Uint8Array, length?: number): Timestamp;
101
101
  fromJSON(object: any): Timestamp;
102
102
  toJSON(message: Timestamp): unknown;
103
103
  fromPartial(object: DeepPartial<Timestamp>): Timestamp;
@@ -66,7 +66,7 @@ var GovQueryClient = /** @class */ (function () {
66
66
  return __generator(this, function (_a) {
67
67
  switch (_a.label) {
68
68
  case 0:
69
- path = "/cosmos/gov/v1beta1/proposals/" + id + "/tally";
69
+ path = "/cosmos/gov/v1beta1/proposals/".concat(id, "/tally");
70
70
  return [4 /*yield*/, this.axios.get(path)];
71
71
  case 1:
72
72
  result = _a.sent();
@@ -108,7 +108,7 @@ var GovQueryClient = /** @class */ (function () {
108
108
  return __generator(this, function (_a) {
109
109
  switch (_a.label) {
110
110
  case 0:
111
- path = "/cosmos/gov/v1beta1/proposals/" + id;
111
+ path = "/cosmos/gov/v1beta1/proposals/".concat(id);
112
112
  return [4 /*yield*/, this.axios.get(path)];
113
113
  case 1:
114
114
  result = _a.sent();
@@ -1,4 +1,4 @@
1
- import { EncodeObject } from "@cosmjs/proto-signing";
1
+ import { Registry, EncodeObject } from "@cosmjs/proto-signing";
2
2
  import { MsgDeposit, MsgSubmitProposal, MsgVote } from "cosmjs-types/cosmos/gov/v1beta1/tx";
3
3
  import { FirmaWalletService } from "../../FirmaWalletService";
4
4
  import { ITxClient } from "../common/ITxClient";
@@ -16,7 +16,8 @@ export interface MsgVoteEncodeObject extends EncodeObject {
16
16
  }
17
17
  export declare class GovTxClient extends ITxClient {
18
18
  constructor(wallet: FirmaWalletService, serverUrl: string);
19
- msgDeposit(data: MsgDeposit): MsgDepositEncodeObject;
20
- msgSubmitProposal(data: MsgSubmitProposal): MsgSubmitProposalEncodeObject;
21
- msgVote(data: MsgVote): MsgVoteEncodeObject;
19
+ static getRegistry(): Registry;
20
+ static msgDeposit(data: MsgDeposit): MsgDepositEncodeObject;
21
+ static msgSubmitProposal(data: MsgSubmitProposal): MsgSubmitProposalEncodeObject;
22
+ static msgVote(data: MsgVote): MsgVoteEncodeObject;
22
23
  }
@@ -30,13 +30,16 @@ var GovTxClient = /** @class */ (function (_super) {
30
30
  function GovTxClient(wallet, serverUrl) {
31
31
  return _super.call(this, wallet, serverUrl, registry) || this;
32
32
  }
33
- GovTxClient.prototype.msgDeposit = function (data) {
33
+ GovTxClient.getRegistry = function () {
34
+ return registry;
35
+ };
36
+ GovTxClient.msgDeposit = function (data) {
34
37
  return { typeUrl: "/cosmos.gov.v1beta1.MsgDeposit", value: data };
35
38
  };
36
- GovTxClient.prototype.msgSubmitProposal = function (data) {
39
+ GovTxClient.msgSubmitProposal = function (data) {
37
40
  return { typeUrl: "/cosmos.gov.v1beta1.MsgSubmitProposal", value: data };
38
41
  };
39
- GovTxClient.prototype.msgVote = function (data) {
42
+ GovTxClient.msgVote = function (data) {
40
43
  return { typeUrl: "/cosmos.gov.v1beta1.MsgVote", value: data };
41
44
  };
42
45
  return GovTxClient;
@@ -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.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
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];
@@ -57,7 +57,7 @@ var IbcQueryClient = /** @class */ (function () {
57
57
  return __generator(this, function (_a) {
58
58
  switch (_a.label) {
59
59
  case 0:
60
- path = "/ibc/core/channel/v1/channels/" + sourceChannel + "/ports/" + sourcePort + "/client_state";
60
+ path = "/ibc/core/channel/v1/channels/".concat(sourceChannel, "/ports/").concat(sourcePort, "/client_state");
61
61
  return [4 /*yield*/, this.axios.get(path)];
62
62
  case 1:
63
63
  result = _a.sent();
@@ -1,4 +1,4 @@
1
- import { EncodeObject } from "@cosmjs/proto-signing";
1
+ import { Registry, EncodeObject } from "@cosmjs/proto-signing";
2
2
  import { FirmaWalletService } from "../../FirmaWalletService";
3
3
  import { ITxClient } from "../common/ITxClient";
4
4
  import { MsgTransfer } from "cosmjs-types/ibc/applications/transfer/v1/tx";
@@ -8,5 +8,6 @@ export interface MsgTransferEncodeObject extends EncodeObject {
8
8
  }
9
9
  export declare class IbcTxClient extends ITxClient {
10
10
  constructor(wallet: FirmaWalletService, address: string);
11
- msgTransfer(data: MsgTransfer): MsgTransferEncodeObject;
11
+ static getRegistry(): Registry;
12
+ static msgTransfer(data: MsgTransfer): MsgTransferEncodeObject;
12
13
  }
@@ -28,7 +28,10 @@ var IbcTxClient = /** @class */ (function (_super) {
28
28
  function IbcTxClient(wallet, address) {
29
29
  return _super.call(this, wallet, address, registry) || this;
30
30
  }
31
- IbcTxClient.prototype.msgTransfer = function (data) {
31
+ IbcTxClient.getRegistry = function () {
32
+ return registry;
33
+ };
34
+ IbcTxClient.msgTransfer = function (data) {
32
35
  return { typeUrl: "/ibc.applications.transfer.v1.MsgTransfer", value: data };
33
36
  };
34
37
  return IbcTxClient;
@@ -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.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
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];
@@ -1,4 +1,4 @@
1
- import { EncodeObject } from "@cosmjs/proto-signing";
1
+ import { Registry, EncodeObject } from "@cosmjs/proto-signing";
2
2
  import { MsgTransfer, MsgMint, MsgBurn } from "./NftTxTypes";
3
3
  import { ITxClient } from "../common/ITxClient";
4
4
  import { FirmaWalletService } from "../../FirmaWalletService";
@@ -16,7 +16,8 @@ export interface MsgBurnEncodeObject extends EncodeObject {
16
16
  }
17
17
  export declare class NftTxClient extends ITxClient {
18
18
  constructor(wallet: FirmaWalletService, serverUrl: string);
19
- msgTransfer(data: MsgTransfer): MsgTransferEncodeObject;
20
- msgMint(data: MsgMint): MsgMintEncodeObject;
21
- msgBurn(data: MsgBurn): MsgBurnEncodeObject;
19
+ static getRegistry(): Registry;
20
+ static msgTransfer(data: MsgTransfer): MsgTransferEncodeObject;
21
+ static msgMint(data: MsgMint): MsgMintEncodeObject;
22
+ static msgBurn(data: MsgBurn): MsgBurnEncodeObject;
22
23
  }
@@ -30,13 +30,16 @@ var NftTxClient = /** @class */ (function (_super) {
30
30
  function NftTxClient(wallet, serverUrl) {
31
31
  return _super.call(this, wallet, serverUrl, registry) || this;
32
32
  }
33
- NftTxClient.prototype.msgTransfer = function (data) {
33
+ NftTxClient.getRegistry = function () {
34
+ return registry;
35
+ };
36
+ NftTxClient.msgTransfer = function (data) {
34
37
  return { typeUrl: "/firmachain.firmachain.nft.MsgTransfer", value: data };
35
38
  };
36
- NftTxClient.prototype.msgMint = function (data) {
39
+ NftTxClient.msgMint = function (data) {
37
40
  return { typeUrl: "/firmachain.firmachain.nft.MsgMint", value: data };
38
41
  };
39
- NftTxClient.prototype.msgBurn = function (data) {
42
+ NftTxClient.msgBurn = function (data) {
40
43
  return { typeUrl: "/firmachain.firmachain.nft.MsgBurn", value: data };
41
44
  };
42
45
  return NftTxClient;