@xpla/xpla-react 1.8.0-rc.1 → 1.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (93) hide show
  1. package/binary.js +1 -1
  2. package/cosmos/auth/v1beta1/tx.registry.d.ts +1 -1
  3. package/cosmos/auth/v1beta1/tx.rpc.func.d.ts +1 -1
  4. package/cosmos/authz/v1beta1/tx.registry.d.ts +3 -3
  5. package/cosmos/authz/v1beta1/tx.rpc.func.d.ts +3 -3
  6. package/cosmos/bank/v1beta1/tx.registry.d.ts +4 -4
  7. package/cosmos/bank/v1beta1/tx.rpc.func.d.ts +4 -4
  8. package/cosmos/consensus/v1/tx.registry.d.ts +1 -1
  9. package/cosmos/consensus/v1/tx.rpc.func.d.ts +1 -1
  10. package/cosmos/distribution/v1beta1/tx.registry.d.ts +7 -7
  11. package/cosmos/distribution/v1beta1/tx.rpc.func.d.ts +7 -7
  12. package/cosmos/evidence/v1beta1/tx.registry.d.ts +1 -1
  13. package/cosmos/evidence/v1beta1/tx.rpc.func.d.ts +1 -1
  14. package/cosmos/evm/feemarket/v1/tx.registry.d.ts +1 -1
  15. package/cosmos/evm/feemarket/v1/tx.rpc.func.d.ts +1 -1
  16. package/cosmos/evm/vm/v1/evm.js +4 -4
  17. package/cosmos/evm/vm/v1/tx.registry.d.ts +2 -2
  18. package/cosmos/evm/vm/v1/tx.rpc.func.d.ts +2 -2
  19. package/cosmos/feegrant/v1beta1/tx.registry.d.ts +3 -3
  20. package/cosmos/feegrant/v1beta1/tx.rpc.func.d.ts +3 -3
  21. package/cosmos/gov/v1/gov.js +7 -7
  22. package/cosmos/gov/v1/tx.registry.d.ts +7 -7
  23. package/cosmos/gov/v1/tx.rpc.func.d.ts +7 -7
  24. package/cosmos/gov/v1beta1/gov.js +7 -7
  25. package/cosmos/gov/v1beta1/tx.registry.d.ts +4 -4
  26. package/cosmos/gov/v1beta1/tx.rpc.func.d.ts +4 -4
  27. package/cosmos/ics23/v1/proofs.js +7 -7
  28. package/cosmos/mint/v1beta1/tx.registry.d.ts +1 -1
  29. package/cosmos/mint/v1beta1/tx.rpc.func.d.ts +1 -1
  30. package/cosmos/slashing/v1beta1/tx.registry.d.ts +2 -2
  31. package/cosmos/slashing/v1beta1/tx.rpc.func.d.ts +2 -2
  32. package/cosmos/staking/v1beta1/authz.js +4 -4
  33. package/cosmos/staking/v1beta1/staking.js +7 -7
  34. package/cosmos/staking/v1beta1/tx.registry.d.ts +7 -7
  35. package/cosmos/staking/v1beta1/tx.rpc.func.d.ts +7 -7
  36. package/cosmos/tx/signing/v1beta1/signing.js +4 -4
  37. package/cosmos/tx/v1beta1/service.js +7 -7
  38. package/cosmos/upgrade/v1beta1/tx.registry.d.ts +2 -2
  39. package/cosmos/upgrade/v1beta1/tx.rpc.func.d.ts +2 -2
  40. package/cosmos_proto/cosmos.js +4 -4
  41. package/cosmwasm/wasm/v1/tx.registry.d.ts +17 -17
  42. package/cosmwasm/wasm/v1/tx.rpc.func.d.ts +17 -17
  43. package/cosmwasm/wasm/v1/types.js +7 -7
  44. package/esm/helpers.js +1 -1
  45. package/ethermint/evm/v1/tx.registry.d.ts +2 -2
  46. package/ethermint/evm/v1/tx.rpc.func.d.ts +2 -2
  47. package/ethermint/feemarket/v1/tx.registry.d.ts +1 -1
  48. package/ethermint/feemarket/v1/tx.rpc.func.d.ts +1 -1
  49. package/google/protobuf/descriptor.js +62 -63
  50. package/google/protobuf/duration.d.ts +1 -1
  51. package/google/protobuf/timestamp.d.ts +1 -1
  52. package/helper-func-types.d.ts +1 -1
  53. package/helper-func-types.js +2 -3
  54. package/helpers.js +13 -13
  55. package/ibc/applications/interchain_accounts/controller/v1/tx.registry.d.ts +3 -3
  56. package/ibc/applications/interchain_accounts/controller/v1/tx.rpc.func.d.ts +3 -3
  57. package/ibc/applications/interchain_accounts/host/v1/tx.registry.d.ts +2 -2
  58. package/ibc/applications/interchain_accounts/host/v1/tx.rpc.func.d.ts +2 -2
  59. package/ibc/applications/interchain_accounts/v1/packet.js +4 -4
  60. package/ibc/applications/transfer/v1/tx.registry.d.ts +2 -2
  61. package/ibc/applications/transfer/v1/tx.rpc.func.d.ts +2 -2
  62. package/ibc/core/channel/v1/channel.js +7 -7
  63. package/ibc/core/channel/v1/tx.js +4 -4
  64. package/ibc/core/channel/v1/tx.registry.d.ts +10 -10
  65. package/ibc/core/channel/v1/tx.rpc.func.d.ts +10 -10
  66. package/ibc/core/channel/v2/packet.js +4 -4
  67. package/ibc/core/channel/v2/tx.js +4 -4
  68. package/ibc/core/channel/v2/tx.registry.d.ts +4 -4
  69. package/ibc/core/channel/v2/tx.rpc.func.d.ts +4 -4
  70. package/ibc/core/client/v1/tx.registry.d.ts +8 -8
  71. package/ibc/core/client/v1/tx.rpc.func.d.ts +8 -8
  72. package/ibc/core/client/v2/tx.registry.d.ts +2 -2
  73. package/ibc/core/client/v2/tx.rpc.func.d.ts +2 -2
  74. package/ibc/core/connection/v1/connection.js +4 -4
  75. package/ibc/core/connection/v1/tx.registry.d.ts +5 -5
  76. package/ibc/core/connection/v1/tx.rpc.func.d.ts +5 -5
  77. package/ibc/lightclients/solomachine/v2/solomachine.js +4 -4
  78. package/ibc/lightclients/wasm/v1/tx.registry.d.ts +3 -3
  79. package/ibc/lightclients/wasm/v1/tx.rpc.func.d.ts +3 -3
  80. package/package.json +7 -7
  81. package/react-query.d.ts +1 -2
  82. package/react-query.js +4 -4
  83. package/tendermint/abci/types.js +20 -20
  84. package/tendermint/types/types.js +4 -4
  85. package/tendermint/types/validator.js +4 -4
  86. package/utf8.js +3 -4
  87. package/varint.js +16 -17
  88. package/xpla/burn/v1beta1/tx.registry.d.ts +1 -1
  89. package/xpla/burn/v1beta1/tx.rpc.func.d.ts +1 -1
  90. package/xpla/reward/v1beta1/tx.registry.d.ts +2 -2
  91. package/xpla/reward/v1beta1/tx.rpc.func.d.ts +2 -2
  92. package/xpla/volunteer/v1beta1/tx.registry.d.ts +2 -2
  93. package/xpla/volunteer/v1beta1/tx.rpc.func.d.ts +2 -2
@@ -5,35 +5,35 @@ export declare const MessageComposer: {
5
5
  encoded: {
6
6
  createClient(value: MsgCreateClient): {
7
7
  typeUrl: string;
8
- value: Uint8Array;
8
+ value: Uint8Array<ArrayBufferLike>;
9
9
  };
10
10
  updateClient(value: MsgUpdateClient): {
11
11
  typeUrl: string;
12
- value: Uint8Array;
12
+ value: Uint8Array<ArrayBufferLike>;
13
13
  };
14
14
  upgradeClient(value: MsgUpgradeClient): {
15
15
  typeUrl: string;
16
- value: Uint8Array;
16
+ value: Uint8Array<ArrayBufferLike>;
17
17
  };
18
18
  submitMisbehaviour(value: MsgSubmitMisbehaviour): {
19
19
  typeUrl: string;
20
- value: Uint8Array;
20
+ value: Uint8Array<ArrayBufferLike>;
21
21
  };
22
22
  recoverClient(value: MsgRecoverClient): {
23
23
  typeUrl: string;
24
- value: Uint8Array;
24
+ value: Uint8Array<ArrayBufferLike>;
25
25
  };
26
26
  iBCSoftwareUpgrade(value: MsgIBCSoftwareUpgrade): {
27
27
  typeUrl: string;
28
- value: Uint8Array;
28
+ value: Uint8Array<ArrayBufferLike>;
29
29
  };
30
30
  updateClientParams(value: MsgUpdateParams): {
31
31
  typeUrl: string;
32
- value: Uint8Array;
32
+ value: Uint8Array<ArrayBufferLike>;
33
33
  };
34
34
  deleteClientCreator(value: MsgDeleteClientCreator): {
35
35
  typeUrl: string;
36
- value: Uint8Array;
36
+ value: Uint8Array<ArrayBufferLike>;
37
37
  };
38
38
  };
39
39
  withTypeUrl: {
@@ -5,53 +5,53 @@ import { MsgCreateClient, MsgUpdateClient, MsgUpgradeClient, MsgSubmitMisbehavio
5
5
  * @package ibc.core.client.v1
6
6
  * @see proto service: ibc.core.client.v1.CreateClient
7
7
  */
8
- export declare const createClient: (client: import("@interchainjs/cosmos/types/signing-client").ISigningClient, signerAddress: string, message: MsgCreateClient | MsgCreateClient[], fee: import("../../../..").StdFee | "auto", memo: string) => Promise<import("@interchainjs/types").DeliverTxResponse>;
8
+ export declare const createClient: (client: import("@interchainjs/cosmos").ISigningClient, signerAddress: string, message: MsgCreateClient | MsgCreateClient[], fee: import("../../../..").StdFee | "auto", memo: string) => Promise<import("@interchainjs/types").DeliverTxResponse>;
9
9
  /**
10
10
  * UpdateClient defines a rpc handler method for MsgUpdateClient.
11
11
  * @name updateClient
12
12
  * @package ibc.core.client.v1
13
13
  * @see proto service: ibc.core.client.v1.UpdateClient
14
14
  */
15
- export declare const updateClient: (client: import("@interchainjs/cosmos/types/signing-client").ISigningClient, signerAddress: string, message: MsgUpdateClient | MsgUpdateClient[], fee: import("../../../..").StdFee | "auto", memo: string) => Promise<import("@interchainjs/types").DeliverTxResponse>;
15
+ export declare const updateClient: (client: import("@interchainjs/cosmos").ISigningClient, signerAddress: string, message: MsgUpdateClient | MsgUpdateClient[], fee: import("../../../..").StdFee | "auto", memo: string) => Promise<import("@interchainjs/types").DeliverTxResponse>;
16
16
  /**
17
17
  * UpgradeClient defines a rpc handler method for MsgUpgradeClient.
18
18
  * @name upgradeClient
19
19
  * @package ibc.core.client.v1
20
20
  * @see proto service: ibc.core.client.v1.UpgradeClient
21
21
  */
22
- export declare const upgradeClient: (client: import("@interchainjs/cosmos/types/signing-client").ISigningClient, signerAddress: string, message: MsgUpgradeClient | MsgUpgradeClient[], fee: import("../../../..").StdFee | "auto", memo: string) => Promise<import("@interchainjs/types").DeliverTxResponse>;
22
+ export declare const upgradeClient: (client: import("@interchainjs/cosmos").ISigningClient, signerAddress: string, message: MsgUpgradeClient | MsgUpgradeClient[], fee: import("../../../..").StdFee | "auto", memo: string) => Promise<import("@interchainjs/types").DeliverTxResponse>;
23
23
  /**
24
24
  * SubmitMisbehaviour defines a rpc handler method for MsgSubmitMisbehaviour.
25
25
  * @name submitMisbehaviour
26
26
  * @package ibc.core.client.v1
27
27
  * @see proto service: ibc.core.client.v1.SubmitMisbehaviour
28
28
  */
29
- export declare const submitMisbehaviour: (client: import("@interchainjs/cosmos/types/signing-client").ISigningClient, signerAddress: string, message: MsgSubmitMisbehaviour | MsgSubmitMisbehaviour[], fee: import("../../../..").StdFee | "auto", memo: string) => Promise<import("@interchainjs/types").DeliverTxResponse>;
29
+ export declare const submitMisbehaviour: (client: import("@interchainjs/cosmos").ISigningClient, signerAddress: string, message: MsgSubmitMisbehaviour | MsgSubmitMisbehaviour[], fee: import("../../../..").StdFee | "auto", memo: string) => Promise<import("@interchainjs/types").DeliverTxResponse>;
30
30
  /**
31
31
  * RecoverClient defines a rpc handler method for MsgRecoverClient.
32
32
  * @name recoverClient
33
33
  * @package ibc.core.client.v1
34
34
  * @see proto service: ibc.core.client.v1.RecoverClient
35
35
  */
36
- export declare const recoverClient: (client: import("@interchainjs/cosmos/types/signing-client").ISigningClient, signerAddress: string, message: MsgRecoverClient | MsgRecoverClient[], fee: import("../../../..").StdFee | "auto", memo: string) => Promise<import("@interchainjs/types").DeliverTxResponse>;
36
+ export declare const recoverClient: (client: import("@interchainjs/cosmos").ISigningClient, signerAddress: string, message: MsgRecoverClient | MsgRecoverClient[], fee: import("../../../..").StdFee | "auto", memo: string) => Promise<import("@interchainjs/types").DeliverTxResponse>;
37
37
  /**
38
38
  * IBCSoftwareUpgrade defines a rpc handler method for MsgIBCSoftwareUpgrade.
39
39
  * @name iBCSoftwareUpgrade
40
40
  * @package ibc.core.client.v1
41
41
  * @see proto service: ibc.core.client.v1.IBCSoftwareUpgrade
42
42
  */
43
- export declare const iBCSoftwareUpgrade: (client: import("@interchainjs/cosmos/types/signing-client").ISigningClient, signerAddress: string, message: MsgIBCSoftwareUpgrade | MsgIBCSoftwareUpgrade[], fee: import("../../../..").StdFee | "auto", memo: string) => Promise<import("@interchainjs/types").DeliverTxResponse>;
43
+ export declare const iBCSoftwareUpgrade: (client: import("@interchainjs/cosmos").ISigningClient, signerAddress: string, message: MsgIBCSoftwareUpgrade | MsgIBCSoftwareUpgrade[], fee: import("../../../..").StdFee | "auto", memo: string) => Promise<import("@interchainjs/types").DeliverTxResponse>;
44
44
  /**
45
45
  * UpdateClientParams defines a rpc handler method for MsgUpdateParams.
46
46
  * @name updateClientParams
47
47
  * @package ibc.core.client.v1
48
48
  * @see proto service: ibc.core.client.v1.UpdateClientParams
49
49
  */
50
- export declare const updateClientParams: (client: import("@interchainjs/cosmos/types/signing-client").ISigningClient, signerAddress: string, message: MsgUpdateParams | MsgUpdateParams[], fee: import("../../../..").StdFee | "auto", memo: string) => Promise<import("@interchainjs/types").DeliverTxResponse>;
50
+ export declare const updateClientParams: (client: import("@interchainjs/cosmos").ISigningClient, signerAddress: string, message: MsgUpdateParams | MsgUpdateParams[], fee: import("../../../..").StdFee | "auto", memo: string) => Promise<import("@interchainjs/types").DeliverTxResponse>;
51
51
  /**
52
52
  * DeleteClientCreator defines a rpc handler method for MsgDeleteClientCreator.
53
53
  * @name deleteClientCreator
54
54
  * @package ibc.core.client.v1
55
55
  * @see proto service: ibc.core.client.v1.DeleteClientCreator
56
56
  */
57
- export declare const deleteClientCreator: (client: import("@interchainjs/cosmos/types/signing-client").ISigningClient, signerAddress: string, message: MsgDeleteClientCreator | MsgDeleteClientCreator[], fee: import("../../../..").StdFee | "auto", memo: string) => Promise<import("@interchainjs/types").DeliverTxResponse>;
57
+ export declare const deleteClientCreator: (client: import("@interchainjs/cosmos").ISigningClient, signerAddress: string, message: MsgDeleteClientCreator | MsgDeleteClientCreator[], fee: import("../../../..").StdFee | "auto", memo: string) => Promise<import("@interchainjs/types").DeliverTxResponse>;
@@ -5,11 +5,11 @@ export declare const MessageComposer: {
5
5
  encoded: {
6
6
  registerCounterparty(value: MsgRegisterCounterparty): {
7
7
  typeUrl: string;
8
- value: Uint8Array;
8
+ value: Uint8Array<ArrayBufferLike>;
9
9
  };
10
10
  updateClientConfig(value: MsgUpdateClientConfig): {
11
11
  typeUrl: string;
12
- value: Uint8Array;
12
+ value: Uint8Array<ArrayBufferLike>;
13
13
  };
14
14
  };
15
15
  withTypeUrl: {
@@ -5,11 +5,11 @@ import { MsgRegisterCounterparty, MsgUpdateClientConfig } from "./tx";
5
5
  * @package ibc.core.client.v2
6
6
  * @see proto service: ibc.core.client.v2.RegisterCounterparty
7
7
  */
8
- export declare const registerCounterparty: (client: import("@interchainjs/cosmos/types/signing-client").ISigningClient, signerAddress: string, message: MsgRegisterCounterparty | MsgRegisterCounterparty[], fee: import("../../../..").StdFee | "auto", memo: string) => Promise<import("@interchainjs/types").DeliverTxResponse>;
8
+ export declare const registerCounterparty: (client: import("@interchainjs/cosmos").ISigningClient, signerAddress: string, message: MsgRegisterCounterparty | MsgRegisterCounterparty[], fee: import("../../../..").StdFee | "auto", memo: string) => Promise<import("@interchainjs/types").DeliverTxResponse>;
9
9
  /**
10
10
  * UpdateClientConfig defines a rpc handler method for MsgUpdateClientConfig.
11
11
  * @name updateClientConfig
12
12
  * @package ibc.core.client.v2
13
13
  * @see proto service: ibc.core.client.v2.UpdateClientConfig
14
14
  */
15
- export declare const updateClientConfig: (client: import("@interchainjs/cosmos/types/signing-client").ISigningClient, signerAddress: string, message: MsgUpdateClientConfig | MsgUpdateClientConfig[], fee: import("../../../..").StdFee | "auto", memo: string) => Promise<import("@interchainjs/types").DeliverTxResponse>;
15
+ export declare const updateClientConfig: (client: import("@interchainjs/cosmos").ISigningClient, signerAddress: string, message: MsgUpdateClientConfig | MsgUpdateClientConfig[], fee: import("../../../..").StdFee | "auto", memo: string) => Promise<import("@interchainjs/types").DeliverTxResponse>;
@@ -1,6 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Params = exports.Version = exports.ConnectionPaths = exports.ClientPaths = exports.Counterparty = exports.IdentifiedConnection = exports.ConnectionEnd = exports.stateToJSON = exports.stateFromJSON = exports.StateAmino = exports.State = void 0;
3
+ exports.Params = exports.Version = exports.ConnectionPaths = exports.ClientPaths = exports.Counterparty = exports.IdentifiedConnection = exports.ConnectionEnd = exports.StateAmino = exports.State = void 0;
4
+ exports.stateFromJSON = stateFromJSON;
5
+ exports.stateToJSON = stateToJSON;
4
6
  const commitment_1 = require("../../commitment/v1/commitment");
5
7
  const helpers_1 = require("../../../../helpers");
6
8
  const binary_1 = require("../../../../binary");
@@ -23,7 +25,7 @@ var State;
23
25
  /** STATE_OPEN - A connection end has completed the handshake. */
24
26
  State[State["STATE_OPEN"] = 3] = "STATE_OPEN";
25
27
  State[State["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
26
- })(State = exports.State || (exports.State = {}));
28
+ })(State || (exports.State = State = {}));
27
29
  exports.StateAmino = State;
28
30
  function stateFromJSON(object) {
29
31
  switch (object) {
@@ -45,7 +47,6 @@ function stateFromJSON(object) {
45
47
  return State.UNRECOGNIZED;
46
48
  }
47
49
  }
48
- exports.stateFromJSON = stateFromJSON;
49
50
  function stateToJSON(object) {
50
51
  switch (object) {
51
52
  case State.STATE_UNINITIALIZED_UNSPECIFIED:
@@ -61,7 +62,6 @@ function stateToJSON(object) {
61
62
  return "UNRECOGNIZED";
62
63
  }
63
64
  }
64
- exports.stateToJSON = stateToJSON;
65
65
  function createBaseConnectionEnd() {
66
66
  return {
67
67
  clientId: "",
@@ -5,23 +5,23 @@ export declare const MessageComposer: {
5
5
  encoded: {
6
6
  connectionOpenInit(value: MsgConnectionOpenInit): {
7
7
  typeUrl: string;
8
- value: Uint8Array;
8
+ value: Uint8Array<ArrayBufferLike>;
9
9
  };
10
10
  connectionOpenTry(value: MsgConnectionOpenTry): {
11
11
  typeUrl: string;
12
- value: Uint8Array;
12
+ value: Uint8Array<ArrayBufferLike>;
13
13
  };
14
14
  connectionOpenAck(value: MsgConnectionOpenAck): {
15
15
  typeUrl: string;
16
- value: Uint8Array;
16
+ value: Uint8Array<ArrayBufferLike>;
17
17
  };
18
18
  connectionOpenConfirm(value: MsgConnectionOpenConfirm): {
19
19
  typeUrl: string;
20
- value: Uint8Array;
20
+ value: Uint8Array<ArrayBufferLike>;
21
21
  };
22
22
  updateConnectionParams(value: MsgUpdateParams): {
23
23
  typeUrl: string;
24
- value: Uint8Array;
24
+ value: Uint8Array<ArrayBufferLike>;
25
25
  };
26
26
  };
27
27
  withTypeUrl: {
@@ -5,21 +5,21 @@ import { MsgConnectionOpenInit, MsgConnectionOpenTry, MsgConnectionOpenAck, MsgC
5
5
  * @package ibc.core.connection.v1
6
6
  * @see proto service: ibc.core.connection.v1.ConnectionOpenInit
7
7
  */
8
- export declare const connectionOpenInit: (client: import("@interchainjs/cosmos/types/signing-client").ISigningClient, signerAddress: string, message: MsgConnectionOpenInit | MsgConnectionOpenInit[], fee: import("../../../..").StdFee | "auto", memo: string) => Promise<import("@interchainjs/types").DeliverTxResponse>;
8
+ export declare const connectionOpenInit: (client: import("@interchainjs/cosmos").ISigningClient, signerAddress: string, message: MsgConnectionOpenInit | MsgConnectionOpenInit[], fee: import("../../../..").StdFee | "auto", memo: string) => Promise<import("@interchainjs/types").DeliverTxResponse>;
9
9
  /**
10
10
  * ConnectionOpenTry defines a rpc handler method for MsgConnectionOpenTry.
11
11
  * @name connectionOpenTry
12
12
  * @package ibc.core.connection.v1
13
13
  * @see proto service: ibc.core.connection.v1.ConnectionOpenTry
14
14
  */
15
- export declare const connectionOpenTry: (client: import("@interchainjs/cosmos/types/signing-client").ISigningClient, signerAddress: string, message: MsgConnectionOpenTry | MsgConnectionOpenTry[], fee: import("../../../..").StdFee | "auto", memo: string) => Promise<import("@interchainjs/types").DeliverTxResponse>;
15
+ export declare const connectionOpenTry: (client: import("@interchainjs/cosmos").ISigningClient, signerAddress: string, message: MsgConnectionOpenTry | MsgConnectionOpenTry[], fee: import("../../../..").StdFee | "auto", memo: string) => Promise<import("@interchainjs/types").DeliverTxResponse>;
16
16
  /**
17
17
  * ConnectionOpenAck defines a rpc handler method for MsgConnectionOpenAck.
18
18
  * @name connectionOpenAck
19
19
  * @package ibc.core.connection.v1
20
20
  * @see proto service: ibc.core.connection.v1.ConnectionOpenAck
21
21
  */
22
- export declare const connectionOpenAck: (client: import("@interchainjs/cosmos/types/signing-client").ISigningClient, signerAddress: string, message: MsgConnectionOpenAck | MsgConnectionOpenAck[], fee: import("../../../..").StdFee | "auto", memo: string) => Promise<import("@interchainjs/types").DeliverTxResponse>;
22
+ export declare const connectionOpenAck: (client: import("@interchainjs/cosmos").ISigningClient, signerAddress: string, message: MsgConnectionOpenAck | MsgConnectionOpenAck[], fee: import("../../../..").StdFee | "auto", memo: string) => Promise<import("@interchainjs/types").DeliverTxResponse>;
23
23
  /**
24
24
  * ConnectionOpenConfirm defines a rpc handler method for
25
25
  * MsgConnectionOpenConfirm.
@@ -27,7 +27,7 @@ export declare const connectionOpenAck: (client: import("@interchainjs/cosmos/ty
27
27
  * @package ibc.core.connection.v1
28
28
  * @see proto service: ibc.core.connection.v1.ConnectionOpenConfirm
29
29
  */
30
- export declare const connectionOpenConfirm: (client: import("@interchainjs/cosmos/types/signing-client").ISigningClient, signerAddress: string, message: MsgConnectionOpenConfirm | MsgConnectionOpenConfirm[], fee: import("../../../..").StdFee | "auto", memo: string) => Promise<import("@interchainjs/types").DeliverTxResponse>;
30
+ export declare const connectionOpenConfirm: (client: import("@interchainjs/cosmos").ISigningClient, signerAddress: string, message: MsgConnectionOpenConfirm | MsgConnectionOpenConfirm[], fee: import("../../../..").StdFee | "auto", memo: string) => Promise<import("@interchainjs/types").DeliverTxResponse>;
31
31
  /**
32
32
  * UpdateConnectionParams defines a rpc handler method for
33
33
  * MsgUpdateParams.
@@ -35,4 +35,4 @@ export declare const connectionOpenConfirm: (client: import("@interchainjs/cosmo
35
35
  * @package ibc.core.connection.v1
36
36
  * @see proto service: ibc.core.connection.v1.UpdateConnectionParams
37
37
  */
38
- export declare const updateConnectionParams: (client: import("@interchainjs/cosmos/types/signing-client").ISigningClient, signerAddress: string, message: MsgUpdateParams | MsgUpdateParams[], fee: import("../../../..").StdFee | "auto", memo: string) => Promise<import("@interchainjs/types").DeliverTxResponse>;
38
+ export declare const updateConnectionParams: (client: import("@interchainjs/cosmos").ISigningClient, signerAddress: string, message: MsgUpdateParams | MsgUpdateParams[], fee: import("../../../..").StdFee | "auto", memo: string) => Promise<import("@interchainjs/types").DeliverTxResponse>;
@@ -1,6 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.NextSequenceRecvData = exports.PacketReceiptAbsenceData = exports.PacketAcknowledgementData = exports.PacketCommitmentData = exports.ChannelStateData = exports.ConnectionStateData = exports.ConsensusStateData = exports.ClientStateData = exports.HeaderData = exports.SignBytes = exports.TimestampedSignatureData = exports.SignatureAndData = exports.Misbehaviour = exports.Header = exports.ConsensusState = exports.ClientState = exports.dataTypeToJSON = exports.dataTypeFromJSON = exports.DataTypeAmino = exports.DataType = void 0;
3
+ exports.NextSequenceRecvData = exports.PacketReceiptAbsenceData = exports.PacketAcknowledgementData = exports.PacketCommitmentData = exports.ChannelStateData = exports.ConnectionStateData = exports.ConsensusStateData = exports.ClientStateData = exports.HeaderData = exports.SignBytes = exports.TimestampedSignatureData = exports.SignatureAndData = exports.Misbehaviour = exports.Header = exports.ConsensusState = exports.ClientState = exports.DataTypeAmino = exports.DataType = void 0;
4
+ exports.dataTypeFromJSON = dataTypeFromJSON;
5
+ exports.dataTypeToJSON = dataTypeToJSON;
4
6
  const any_1 = require("../../../../google/protobuf/any");
5
7
  const connection_1 = require("../../../core/connection/v1/connection");
6
8
  const channel_1 = require("../../../core/channel/v1/channel");
@@ -34,7 +36,7 @@ var DataType;
34
36
  /** DATA_TYPE_HEADER - Data type for header verification */
35
37
  DataType[DataType["DATA_TYPE_HEADER"] = 9] = "DATA_TYPE_HEADER";
36
38
  DataType[DataType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
37
- })(DataType = exports.DataType || (exports.DataType = {}));
39
+ })(DataType || (exports.DataType = DataType = {}));
38
40
  exports.DataTypeAmino = DataType;
39
41
  function dataTypeFromJSON(object) {
40
42
  switch (object) {
@@ -74,7 +76,6 @@ function dataTypeFromJSON(object) {
74
76
  return DataType.UNRECOGNIZED;
75
77
  }
76
78
  }
77
- exports.dataTypeFromJSON = dataTypeFromJSON;
78
79
  function dataTypeToJSON(object) {
79
80
  switch (object) {
80
81
  case DataType.DATA_TYPE_UNINITIALIZED_UNSPECIFIED:
@@ -102,7 +103,6 @@ function dataTypeToJSON(object) {
102
103
  return "UNRECOGNIZED";
103
104
  }
104
105
  }
105
- exports.dataTypeToJSON = dataTypeToJSON;
106
106
  function createBaseClientState() {
107
107
  return {
108
108
  sequence: BigInt(0),
@@ -5,15 +5,15 @@ export declare const MessageComposer: {
5
5
  encoded: {
6
6
  storeCode(value: MsgStoreCode): {
7
7
  typeUrl: string;
8
- value: Uint8Array;
8
+ value: Uint8Array<ArrayBufferLike>;
9
9
  };
10
10
  removeChecksum(value: MsgRemoveChecksum): {
11
11
  typeUrl: string;
12
- value: Uint8Array;
12
+ value: Uint8Array<ArrayBufferLike>;
13
13
  };
14
14
  migrateContract(value: MsgMigrateContract): {
15
15
  typeUrl: string;
16
- value: Uint8Array;
16
+ value: Uint8Array<ArrayBufferLike>;
17
17
  };
18
18
  };
19
19
  withTypeUrl: {
@@ -5,18 +5,18 @@ import { MsgStoreCode, MsgRemoveChecksum, MsgMigrateContract } from "./tx";
5
5
  * @package ibc.lightclients.wasm.v1
6
6
  * @see proto service: ibc.lightclients.wasm.v1.StoreCode
7
7
  */
8
- export declare const storeCode: (client: import("@interchainjs/cosmos/types/signing-client").ISigningClient, signerAddress: string, message: MsgStoreCode | MsgStoreCode[], fee: import("../../../..").StdFee | "auto", memo: string) => Promise<import("@interchainjs/types").DeliverTxResponse>;
8
+ export declare const storeCode: (client: import("@interchainjs/cosmos").ISigningClient, signerAddress: string, message: MsgStoreCode | MsgStoreCode[], fee: import("../../../..").StdFee | "auto", memo: string) => Promise<import("@interchainjs/types").DeliverTxResponse>;
9
9
  /**
10
10
  * RemoveChecksum defines a rpc handler method for MsgRemoveChecksum.
11
11
  * @name removeChecksum
12
12
  * @package ibc.lightclients.wasm.v1
13
13
  * @see proto service: ibc.lightclients.wasm.v1.RemoveChecksum
14
14
  */
15
- export declare const removeChecksum: (client: import("@interchainjs/cosmos/types/signing-client").ISigningClient, signerAddress: string, message: MsgRemoveChecksum | MsgRemoveChecksum[], fee: import("../../../..").StdFee | "auto", memo: string) => Promise<import("@interchainjs/types").DeliverTxResponse>;
15
+ export declare const removeChecksum: (client: import("@interchainjs/cosmos").ISigningClient, signerAddress: string, message: MsgRemoveChecksum | MsgRemoveChecksum[], fee: import("../../../..").StdFee | "auto", memo: string) => Promise<import("@interchainjs/types").DeliverTxResponse>;
16
16
  /**
17
17
  * MigrateContract defines a rpc handler method for MsgMigrateContract.
18
18
  * @name migrateContract
19
19
  * @package ibc.lightclients.wasm.v1
20
20
  * @see proto service: ibc.lightclients.wasm.v1.MigrateContract
21
21
  */
22
- export declare const migrateContract: (client: import("@interchainjs/cosmos/types/signing-client").ISigningClient, signerAddress: string, message: MsgMigrateContract | MsgMigrateContract[], fee: import("../../../..").StdFee | "auto", memo: string) => Promise<import("@interchainjs/types").DeliverTxResponse>;
22
+ export declare const migrateContract: (client: import("@interchainjs/cosmos").ISigningClient, signerAddress: string, message: MsgMigrateContract | MsgMigrateContract[], fee: import("../../../..").StdFee | "auto", memo: string) => Promise<import("@interchainjs/types").DeliverTxResponse>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xpla/xpla-react",
3
- "version": "1.8.0-rc.1",
3
+ "version": "1.8.0",
4
4
  "description": "xpla-react is a JavaScript library providing react query hooks for interacting with xpla sdk.",
5
5
  "main": "index.js",
6
6
  "module": "esm/index.js",
@@ -24,12 +24,12 @@
24
24
  "lint": "eslint . --fix"
25
25
  },
26
26
  "dependencies": {
27
- "@interchainjs/cosmos": "1.16.1",
28
- "@interchainjs/cosmos-types": "1.16.1",
29
- "@interchainjs/encoding": "1.16.1",
30
- "@interchainjs/pubkey": "1.16.1",
31
- "@interchainjs/types": "1.16.1",
32
- "@interchainjs/utils": "1.16.1",
27
+ "@interchainjs/cosmos": "^1.17.4",
28
+ "@interchainjs/cosmos-types": "^1.17.4",
29
+ "@interchainjs/encoding": "^1.17.4",
30
+ "@interchainjs/pubkey": "^1.17.4",
31
+ "@interchainjs/types": "^1.17.4",
32
+ "@interchainjs/utils": "^1.17.4",
33
33
  "@noble/hashes": "^1.3.1",
34
34
  "decimal.js": "^10.4.3"
35
35
  },
package/react-query.d.ts CHANGED
@@ -3,7 +3,6 @@
3
3
  * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain
4
4
  * and run the transpile command or npm scripts command that is used to regenerate this bundle.
5
5
  */
6
- import { Rpc } from './helpers';
7
6
  import { ITxArgs, EndpointOrRpc } from './helper-func-types';
8
7
  import { ISigningClient } from "@interchainjs/cosmos/types/signing-client";
9
8
  import { StdFee, DeliverTxResponse } from './types';
@@ -29,7 +28,7 @@ export interface UseRpcEndpointQuery<TData> extends ReactQueryParams<string | Ht
29
28
  rpcEndPointKey?: string;
30
29
  }
31
30
  export declare const useRpcEndpoint: <TData = string | HttpEndpoint>({ getter, options, rpcEndPointKey, }: UseRpcEndpointQuery<TData>) => import("@tanstack/react-query").UseQueryResult<TData, Error>;
32
- export declare const useRpcClient: <TData = Rpc>({ options, clientResolver }: UseRpcClientQuery<TData>) => import("@tanstack/react-query").UseQueryResult<TData, Error>;
31
+ export declare const useRpcClient: <TData = ProtobufRpcClient>({ options, clientResolver }: UseRpcClientQuery<TData>) => import("@tanstack/react-query").UseQueryResult<TData, Error>;
33
32
  export interface UseQueryBuilderOptions<TReq, TRes> {
34
33
  builderQueryFn: (client: EndpointOrRpc, request: TReq) => Promise<TRes>;
35
34
  queryKeyPrefix: string;
package/react-query.js CHANGED
@@ -5,7 +5,10 @@
5
5
  * and run the transpile command or npm scripts command that is used to regenerate this bundle.
6
6
  */
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
- exports.buildUseMutation = exports.buildUseQuery = exports.useRpcClient = exports.useRpcEndpoint = exports.isCacheResolver = exports.DEFAULT_SIGNING_CLIENT_QUERY_KEY = exports.DEFAULT_RPC_ENDPOINT_QUERY_KEY = exports.DEFAULT_RPC_CLIENT_QUERY_KEY = void 0;
8
+ exports.useRpcClient = exports.useRpcEndpoint = exports.DEFAULT_SIGNING_CLIENT_QUERY_KEY = exports.DEFAULT_RPC_ENDPOINT_QUERY_KEY = exports.DEFAULT_RPC_CLIENT_QUERY_KEY = void 0;
9
+ exports.isCacheResolver = isCacheResolver;
10
+ exports.buildUseQuery = buildUseQuery;
11
+ exports.buildUseMutation = buildUseMutation;
9
12
  const extern_1 = require("./extern");
10
13
  const helpers_1 = require("./helpers");
11
14
  const signing_client_1 = require("@interchainjs/cosmos/types/signing-client");
@@ -16,7 +19,6 @@ exports.DEFAULT_SIGNING_CLIENT_QUERY_KEY = 'signingClient';
16
19
  function isCacheResolver(resolver) {
17
20
  return resolver !== null && resolver !== undefined && resolver.rpcEndpoint !== undefined && resolver.clientQueryKey !== undefined;
18
21
  }
19
- exports.isCacheResolver = isCacheResolver;
20
22
  const useRpcEndpoint = ({ getter, options, rpcEndPointKey, }) => {
21
23
  const key = rpcEndPointKey || exports.DEFAULT_RPC_ENDPOINT_QUERY_KEY;
22
24
  return (0, react_query_1.useQuery)([key, getter], async () => {
@@ -69,7 +71,6 @@ function buildUseQuery(opts) {
69
71
  return (0, react_query_1.useQuery)(customizedQueryKey || [opts.queryKeyPrefix, request], () => opts.builderQueryFn(rpcResolver, request), options);
70
72
  };
71
73
  }
72
- exports.buildUseQuery = buildUseQuery;
73
74
  const getSigningClientFromCache = (queryClient, key, rpcEndpoint) => {
74
75
  const queryKey = rpcEndpoint ? [key, rpcEndpoint] : [key];
75
76
  return queryClient.getQueryData(queryKey);
@@ -95,4 +96,3 @@ function buildUseMutation(opts) {
95
96
  return (0, react_query_1.useMutation)((reqData) => opts.builderMutationFn(signingClientResolver, reqData.signerAddress, reqData.message, reqData.fee, reqData.memo), options);
96
97
  };
97
98
  }
98
- exports.buildUseMutation = buildUseMutation;
@@ -1,7 +1,19 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ResponseCommit = exports.ResponseCheckTx = exports.ResponseQuery = exports.ResponseInitChain = exports.ResponseInfo = exports.ResponseFlush = exports.ResponseEcho = exports.ResponseException = exports.Response = exports.RequestFinalizeBlock = exports.RequestVerifyVoteExtension = exports.RequestExtendVote = exports.RequestProcessProposal = exports.RequestPrepareProposal = exports.RequestApplySnapshotChunk = exports.RequestLoadSnapshotChunk = exports.RequestOfferSnapshot = exports.RequestListSnapshots = exports.RequestCommit = exports.RequestCheckTx = exports.RequestQuery = exports.RequestInitChain = exports.RequestInfo = exports.RequestFlush = exports.RequestEcho = exports.Request = exports.misbehaviorTypeToJSON = exports.misbehaviorTypeFromJSON = exports.MisbehaviorTypeAmino = exports.MisbehaviorType = exports.responseVerifyVoteExtension_VerifyStatusToJSON = exports.responseVerifyVoteExtension_VerifyStatusFromJSON = exports.ResponseVerifyVoteExtension_VerifyStatusAmino = exports.ResponseVerifyVoteExtension_VerifyStatus = exports.responseProcessProposal_ProposalStatusToJSON = exports.responseProcessProposal_ProposalStatusFromJSON = exports.ResponseProcessProposal_ProposalStatusAmino = exports.ResponseProcessProposal_ProposalStatus = exports.responseApplySnapshotChunk_ResultToJSON = exports.responseApplySnapshotChunk_ResultFromJSON = exports.ResponseApplySnapshotChunk_ResultAmino = exports.ResponseApplySnapshotChunk_Result = exports.responseOfferSnapshot_ResultToJSON = exports.responseOfferSnapshot_ResultFromJSON = exports.ResponseOfferSnapshot_ResultAmino = exports.ResponseOfferSnapshot_Result = exports.checkTxTypeToJSON = exports.checkTxTypeFromJSON = exports.CheckTxTypeAmino = exports.CheckTxType = void 0;
4
- exports.Snapshot = exports.Misbehavior = exports.ExtendedVoteInfo = exports.VoteInfo = exports.ValidatorUpdate = exports.Validator = exports.TxResult = exports.ExecTxResult = exports.EventAttribute = exports.Event = exports.ExtendedCommitInfo = exports.CommitInfo = exports.ResponseFinalizeBlock = exports.ResponseVerifyVoteExtension = exports.ResponseExtendVote = exports.ResponseProcessProposal = exports.ResponsePrepareProposal = exports.ResponseApplySnapshotChunk = exports.ResponseLoadSnapshotChunk = exports.ResponseOfferSnapshot = exports.ResponseListSnapshots = void 0;
3
+ exports.Event = exports.ExtendedCommitInfo = exports.CommitInfo = exports.ResponseFinalizeBlock = exports.ResponseVerifyVoteExtension = exports.ResponseExtendVote = exports.ResponseProcessProposal = exports.ResponsePrepareProposal = exports.ResponseApplySnapshotChunk = exports.ResponseLoadSnapshotChunk = exports.ResponseOfferSnapshot = exports.ResponseListSnapshots = exports.ResponseCommit = exports.ResponseCheckTx = exports.ResponseQuery = exports.ResponseInitChain = exports.ResponseInfo = exports.ResponseFlush = exports.ResponseEcho = exports.ResponseException = exports.Response = exports.RequestFinalizeBlock = exports.RequestVerifyVoteExtension = exports.RequestExtendVote = exports.RequestProcessProposal = exports.RequestPrepareProposal = exports.RequestApplySnapshotChunk = exports.RequestLoadSnapshotChunk = exports.RequestOfferSnapshot = exports.RequestListSnapshots = exports.RequestCommit = exports.RequestCheckTx = exports.RequestQuery = exports.RequestInitChain = exports.RequestInfo = exports.RequestFlush = exports.RequestEcho = exports.Request = exports.MisbehaviorTypeAmino = exports.MisbehaviorType = exports.ResponseVerifyVoteExtension_VerifyStatusAmino = exports.ResponseVerifyVoteExtension_VerifyStatus = exports.ResponseProcessProposal_ProposalStatusAmino = exports.ResponseProcessProposal_ProposalStatus = exports.ResponseApplySnapshotChunk_ResultAmino = exports.ResponseApplySnapshotChunk_Result = exports.ResponseOfferSnapshot_ResultAmino = exports.ResponseOfferSnapshot_Result = exports.CheckTxTypeAmino = exports.CheckTxType = void 0;
4
+ exports.Snapshot = exports.Misbehavior = exports.ExtendedVoteInfo = exports.VoteInfo = exports.ValidatorUpdate = exports.Validator = exports.TxResult = exports.ExecTxResult = exports.EventAttribute = void 0;
5
+ exports.checkTxTypeFromJSON = checkTxTypeFromJSON;
6
+ exports.checkTxTypeToJSON = checkTxTypeToJSON;
7
+ exports.responseOfferSnapshot_ResultFromJSON = responseOfferSnapshot_ResultFromJSON;
8
+ exports.responseOfferSnapshot_ResultToJSON = responseOfferSnapshot_ResultToJSON;
9
+ exports.responseApplySnapshotChunk_ResultFromJSON = responseApplySnapshotChunk_ResultFromJSON;
10
+ exports.responseApplySnapshotChunk_ResultToJSON = responseApplySnapshotChunk_ResultToJSON;
11
+ exports.responseProcessProposal_ProposalStatusFromJSON = responseProcessProposal_ProposalStatusFromJSON;
12
+ exports.responseProcessProposal_ProposalStatusToJSON = responseProcessProposal_ProposalStatusToJSON;
13
+ exports.responseVerifyVoteExtension_VerifyStatusFromJSON = responseVerifyVoteExtension_VerifyStatusFromJSON;
14
+ exports.responseVerifyVoteExtension_VerifyStatusToJSON = responseVerifyVoteExtension_VerifyStatusToJSON;
15
+ exports.misbehaviorTypeFromJSON = misbehaviorTypeFromJSON;
16
+ exports.misbehaviorTypeToJSON = misbehaviorTypeToJSON;
5
17
  const timestamp_1 = require("../../google/protobuf/timestamp");
6
18
  const params_1 = require("../types/params");
7
19
  const proof_1 = require("../crypto/proof");
@@ -14,7 +26,7 @@ var CheckTxType;
14
26
  CheckTxType[CheckTxType["NEW"] = 0] = "NEW";
15
27
  CheckTxType[CheckTxType["RECHECK"] = 1] = "RECHECK";
16
28
  CheckTxType[CheckTxType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
17
- })(CheckTxType = exports.CheckTxType || (exports.CheckTxType = {}));
29
+ })(CheckTxType || (exports.CheckTxType = CheckTxType = {}));
18
30
  exports.CheckTxTypeAmino = CheckTxType;
19
31
  function checkTxTypeFromJSON(object) {
20
32
  switch (object) {
@@ -30,7 +42,6 @@ function checkTxTypeFromJSON(object) {
30
42
  return CheckTxType.UNRECOGNIZED;
31
43
  }
32
44
  }
33
- exports.checkTxTypeFromJSON = checkTxTypeFromJSON;
34
45
  function checkTxTypeToJSON(object) {
35
46
  switch (object) {
36
47
  case CheckTxType.NEW:
@@ -42,7 +53,6 @@ function checkTxTypeToJSON(object) {
42
53
  return "UNRECOGNIZED";
43
54
  }
44
55
  }
45
- exports.checkTxTypeToJSON = checkTxTypeToJSON;
46
56
  var ResponseOfferSnapshot_Result;
47
57
  (function (ResponseOfferSnapshot_Result) {
48
58
  /** UNKNOWN - Unknown result, abort all snapshot restoration */
@@ -58,7 +68,7 @@ var ResponseOfferSnapshot_Result;
58
68
  /** REJECT_SENDER - Reject all snapshots from the sender(s), try others */
59
69
  ResponseOfferSnapshot_Result[ResponseOfferSnapshot_Result["REJECT_SENDER"] = 5] = "REJECT_SENDER";
60
70
  ResponseOfferSnapshot_Result[ResponseOfferSnapshot_Result["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
61
- })(ResponseOfferSnapshot_Result = exports.ResponseOfferSnapshot_Result || (exports.ResponseOfferSnapshot_Result = {}));
71
+ })(ResponseOfferSnapshot_Result || (exports.ResponseOfferSnapshot_Result = ResponseOfferSnapshot_Result = {}));
62
72
  exports.ResponseOfferSnapshot_ResultAmino = ResponseOfferSnapshot_Result;
63
73
  function responseOfferSnapshot_ResultFromJSON(object) {
64
74
  switch (object) {
@@ -86,7 +96,6 @@ function responseOfferSnapshot_ResultFromJSON(object) {
86
96
  return ResponseOfferSnapshot_Result.UNRECOGNIZED;
87
97
  }
88
98
  }
89
- exports.responseOfferSnapshot_ResultFromJSON = responseOfferSnapshot_ResultFromJSON;
90
99
  function responseOfferSnapshot_ResultToJSON(object) {
91
100
  switch (object) {
92
101
  case ResponseOfferSnapshot_Result.UNKNOWN:
@@ -106,7 +115,6 @@ function responseOfferSnapshot_ResultToJSON(object) {
106
115
  return "UNRECOGNIZED";
107
116
  }
108
117
  }
109
- exports.responseOfferSnapshot_ResultToJSON = responseOfferSnapshot_ResultToJSON;
110
118
  var ResponseApplySnapshotChunk_Result;
111
119
  (function (ResponseApplySnapshotChunk_Result) {
112
120
  /** UNKNOWN - Unknown result, abort all snapshot restoration */
@@ -122,7 +130,7 @@ var ResponseApplySnapshotChunk_Result;
122
130
  /** REJECT_SNAPSHOT - Reject this snapshot, try others */
123
131
  ResponseApplySnapshotChunk_Result[ResponseApplySnapshotChunk_Result["REJECT_SNAPSHOT"] = 5] = "REJECT_SNAPSHOT";
124
132
  ResponseApplySnapshotChunk_Result[ResponseApplySnapshotChunk_Result["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
125
- })(ResponseApplySnapshotChunk_Result = exports.ResponseApplySnapshotChunk_Result || (exports.ResponseApplySnapshotChunk_Result = {}));
133
+ })(ResponseApplySnapshotChunk_Result || (exports.ResponseApplySnapshotChunk_Result = ResponseApplySnapshotChunk_Result = {}));
126
134
  exports.ResponseApplySnapshotChunk_ResultAmino = ResponseApplySnapshotChunk_Result;
127
135
  function responseApplySnapshotChunk_ResultFromJSON(object) {
128
136
  switch (object) {
@@ -150,7 +158,6 @@ function responseApplySnapshotChunk_ResultFromJSON(object) {
150
158
  return ResponseApplySnapshotChunk_Result.UNRECOGNIZED;
151
159
  }
152
160
  }
153
- exports.responseApplySnapshotChunk_ResultFromJSON = responseApplySnapshotChunk_ResultFromJSON;
154
161
  function responseApplySnapshotChunk_ResultToJSON(object) {
155
162
  switch (object) {
156
163
  case ResponseApplySnapshotChunk_Result.UNKNOWN:
@@ -170,14 +177,13 @@ function responseApplySnapshotChunk_ResultToJSON(object) {
170
177
  return "UNRECOGNIZED";
171
178
  }
172
179
  }
173
- exports.responseApplySnapshotChunk_ResultToJSON = responseApplySnapshotChunk_ResultToJSON;
174
180
  var ResponseProcessProposal_ProposalStatus;
175
181
  (function (ResponseProcessProposal_ProposalStatus) {
176
182
  ResponseProcessProposal_ProposalStatus[ResponseProcessProposal_ProposalStatus["UNKNOWN"] = 0] = "UNKNOWN";
177
183
  ResponseProcessProposal_ProposalStatus[ResponseProcessProposal_ProposalStatus["ACCEPT"] = 1] = "ACCEPT";
178
184
  ResponseProcessProposal_ProposalStatus[ResponseProcessProposal_ProposalStatus["REJECT"] = 2] = "REJECT";
179
185
  ResponseProcessProposal_ProposalStatus[ResponseProcessProposal_ProposalStatus["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
180
- })(ResponseProcessProposal_ProposalStatus = exports.ResponseProcessProposal_ProposalStatus || (exports.ResponseProcessProposal_ProposalStatus = {}));
186
+ })(ResponseProcessProposal_ProposalStatus || (exports.ResponseProcessProposal_ProposalStatus = ResponseProcessProposal_ProposalStatus = {}));
181
187
  exports.ResponseProcessProposal_ProposalStatusAmino = ResponseProcessProposal_ProposalStatus;
182
188
  function responseProcessProposal_ProposalStatusFromJSON(object) {
183
189
  switch (object) {
@@ -196,7 +202,6 @@ function responseProcessProposal_ProposalStatusFromJSON(object) {
196
202
  return ResponseProcessProposal_ProposalStatus.UNRECOGNIZED;
197
203
  }
198
204
  }
199
- exports.responseProcessProposal_ProposalStatusFromJSON = responseProcessProposal_ProposalStatusFromJSON;
200
205
  function responseProcessProposal_ProposalStatusToJSON(object) {
201
206
  switch (object) {
202
207
  case ResponseProcessProposal_ProposalStatus.UNKNOWN:
@@ -210,7 +215,6 @@ function responseProcessProposal_ProposalStatusToJSON(object) {
210
215
  return "UNRECOGNIZED";
211
216
  }
212
217
  }
213
- exports.responseProcessProposal_ProposalStatusToJSON = responseProcessProposal_ProposalStatusToJSON;
214
218
  var ResponseVerifyVoteExtension_VerifyStatus;
215
219
  (function (ResponseVerifyVoteExtension_VerifyStatus) {
216
220
  ResponseVerifyVoteExtension_VerifyStatus[ResponseVerifyVoteExtension_VerifyStatus["UNKNOWN"] = 0] = "UNKNOWN";
@@ -223,7 +227,7 @@ var ResponseVerifyVoteExtension_VerifyStatus;
223
227
  */
224
228
  ResponseVerifyVoteExtension_VerifyStatus[ResponseVerifyVoteExtension_VerifyStatus["REJECT"] = 2] = "REJECT";
225
229
  ResponseVerifyVoteExtension_VerifyStatus[ResponseVerifyVoteExtension_VerifyStatus["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
226
- })(ResponseVerifyVoteExtension_VerifyStatus = exports.ResponseVerifyVoteExtension_VerifyStatus || (exports.ResponseVerifyVoteExtension_VerifyStatus = {}));
230
+ })(ResponseVerifyVoteExtension_VerifyStatus || (exports.ResponseVerifyVoteExtension_VerifyStatus = ResponseVerifyVoteExtension_VerifyStatus = {}));
227
231
  exports.ResponseVerifyVoteExtension_VerifyStatusAmino = ResponseVerifyVoteExtension_VerifyStatus;
228
232
  function responseVerifyVoteExtension_VerifyStatusFromJSON(object) {
229
233
  switch (object) {
@@ -242,7 +246,6 @@ function responseVerifyVoteExtension_VerifyStatusFromJSON(object) {
242
246
  return ResponseVerifyVoteExtension_VerifyStatus.UNRECOGNIZED;
243
247
  }
244
248
  }
245
- exports.responseVerifyVoteExtension_VerifyStatusFromJSON = responseVerifyVoteExtension_VerifyStatusFromJSON;
246
249
  function responseVerifyVoteExtension_VerifyStatusToJSON(object) {
247
250
  switch (object) {
248
251
  case ResponseVerifyVoteExtension_VerifyStatus.UNKNOWN:
@@ -256,14 +259,13 @@ function responseVerifyVoteExtension_VerifyStatusToJSON(object) {
256
259
  return "UNRECOGNIZED";
257
260
  }
258
261
  }
259
- exports.responseVerifyVoteExtension_VerifyStatusToJSON = responseVerifyVoteExtension_VerifyStatusToJSON;
260
262
  var MisbehaviorType;
261
263
  (function (MisbehaviorType) {
262
264
  MisbehaviorType[MisbehaviorType["UNKNOWN"] = 0] = "UNKNOWN";
263
265
  MisbehaviorType[MisbehaviorType["DUPLICATE_VOTE"] = 1] = "DUPLICATE_VOTE";
264
266
  MisbehaviorType[MisbehaviorType["LIGHT_CLIENT_ATTACK"] = 2] = "LIGHT_CLIENT_ATTACK";
265
267
  MisbehaviorType[MisbehaviorType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
266
- })(MisbehaviorType = exports.MisbehaviorType || (exports.MisbehaviorType = {}));
268
+ })(MisbehaviorType || (exports.MisbehaviorType = MisbehaviorType = {}));
267
269
  exports.MisbehaviorTypeAmino = MisbehaviorType;
268
270
  function misbehaviorTypeFromJSON(object) {
269
271
  switch (object) {
@@ -282,7 +284,6 @@ function misbehaviorTypeFromJSON(object) {
282
284
  return MisbehaviorType.UNRECOGNIZED;
283
285
  }
284
286
  }
285
- exports.misbehaviorTypeFromJSON = misbehaviorTypeFromJSON;
286
287
  function misbehaviorTypeToJSON(object) {
287
288
  switch (object) {
288
289
  case MisbehaviorType.UNKNOWN:
@@ -296,7 +297,6 @@ function misbehaviorTypeToJSON(object) {
296
297
  return "UNRECOGNIZED";
297
298
  }
298
299
  }
299
- exports.misbehaviorTypeToJSON = misbehaviorTypeToJSON;
300
300
  function createBaseRequest() {
301
301
  return {
302
302
  echo: undefined,
@@ -1,6 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TxProof = exports.BlockMeta = exports.LightBlock = exports.SignedHeader = exports.Proposal = exports.ExtendedCommitSig = exports.ExtendedCommit = exports.CommitSig = exports.Commit = exports.Vote = exports.Data = exports.Header = exports.BlockID = exports.Part = exports.PartSetHeader = exports.signedMsgTypeToJSON = exports.signedMsgTypeFromJSON = exports.SignedMsgTypeAmino = exports.SignedMsgType = void 0;
3
+ exports.TxProof = exports.BlockMeta = exports.LightBlock = exports.SignedHeader = exports.Proposal = exports.ExtendedCommitSig = exports.ExtendedCommit = exports.CommitSig = exports.Commit = exports.Vote = exports.Data = exports.Header = exports.BlockID = exports.Part = exports.PartSetHeader = exports.SignedMsgTypeAmino = exports.SignedMsgType = void 0;
4
+ exports.signedMsgTypeFromJSON = signedMsgTypeFromJSON;
5
+ exports.signedMsgTypeToJSON = signedMsgTypeToJSON;
4
6
  const proof_1 = require("../crypto/proof");
5
7
  const types_1 = require("../version/types");
6
8
  const timestamp_1 = require("../../google/protobuf/timestamp");
@@ -18,7 +20,7 @@ var SignedMsgType;
18
20
  /** SIGNED_MSG_TYPE_PROPOSAL - Proposals */
19
21
  SignedMsgType[SignedMsgType["SIGNED_MSG_TYPE_PROPOSAL"] = 32] = "SIGNED_MSG_TYPE_PROPOSAL";
20
22
  SignedMsgType[SignedMsgType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
21
- })(SignedMsgType = exports.SignedMsgType || (exports.SignedMsgType = {}));
23
+ })(SignedMsgType || (exports.SignedMsgType = SignedMsgType = {}));
22
24
  exports.SignedMsgTypeAmino = SignedMsgType;
23
25
  function signedMsgTypeFromJSON(object) {
24
26
  switch (object) {
@@ -40,7 +42,6 @@ function signedMsgTypeFromJSON(object) {
40
42
  return SignedMsgType.UNRECOGNIZED;
41
43
  }
42
44
  }
43
- exports.signedMsgTypeFromJSON = signedMsgTypeFromJSON;
44
45
  function signedMsgTypeToJSON(object) {
45
46
  switch (object) {
46
47
  case SignedMsgType.SIGNED_MSG_TYPE_UNKNOWN:
@@ -56,7 +57,6 @@ function signedMsgTypeToJSON(object) {
56
57
  return "UNRECOGNIZED";
57
58
  }
58
59
  }
59
- exports.signedMsgTypeToJSON = signedMsgTypeToJSON;
60
60
  function createBasePartSetHeader() {
61
61
  return {
62
62
  total: 0,