injectivejs 1.6.3 → 1.6.4

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 (106) hide show
  1. package/binary.d.ts +1 -1
  2. package/binary.js +1 -1
  3. package/cosmos/authz/v1beta1/tx.registry.d.ts +47 -0
  4. package/cosmos/authz/v1beta1/tx.registry.js +67 -0
  5. package/cosmos/bank/v1beta1/tx.registry.d.ts +59 -0
  6. package/cosmos/bank/v1beta1/tx.registry.js +85 -0
  7. package/cosmos/client.d.ts +13 -0
  8. package/cosmos/client.js +59 -0
  9. package/cosmos/distribution/v1beta1/tx.registry.d.ts +95 -0
  10. package/cosmos/distribution/v1beta1/tx.registry.js +139 -0
  11. package/cosmos/feegrant/v1beta1/tx.registry.d.ts +47 -0
  12. package/cosmos/feegrant/v1beta1/tx.registry.js +67 -0
  13. package/cosmos/gov/v1/tx.registry.d.ts +95 -0
  14. package/cosmos/gov/v1/tx.registry.js +139 -0
  15. package/cosmos/gov/v1beta1/tx.registry.d.ts +59 -0
  16. package/cosmos/gov/v1beta1/tx.registry.js +85 -0
  17. package/cosmos/group/v1/tx.registry.d.ts +179 -0
  18. package/cosmos/group/v1/tx.registry.js +265 -0
  19. package/cosmos/staking/v1beta1/tx.registry.d.ts +95 -0
  20. package/cosmos/staking/v1beta1/tx.registry.js +139 -0
  21. package/cosmos/vesting/v1beta1/tx.registry.d.ts +47 -0
  22. package/cosmos/vesting/v1beta1/tx.registry.js +67 -0
  23. package/cosmwasm/client.d.ts +16 -0
  24. package/cosmwasm/client.js +53 -0
  25. package/cosmwasm/wasm/v1/tx.registry.d.ts +215 -0
  26. package/cosmwasm/wasm/v1/tx.registry.js +319 -0
  27. package/esm/binary.js +1 -1
  28. package/esm/cosmos/authz/v1beta1/tx.registry.js +64 -0
  29. package/esm/cosmos/bank/v1beta1/tx.registry.js +82 -0
  30. package/esm/cosmos/client.js +31 -0
  31. package/esm/cosmos/distribution/v1beta1/tx.registry.js +136 -0
  32. package/esm/cosmos/feegrant/v1beta1/tx.registry.js +64 -0
  33. package/esm/cosmos/gov/v1/tx.registry.js +136 -0
  34. package/esm/cosmos/gov/v1beta1/tx.registry.js +82 -0
  35. package/esm/cosmos/group/v1/tx.registry.js +262 -0
  36. package/esm/cosmos/staking/v1beta1/tx.registry.js +136 -0
  37. package/esm/cosmos/vesting/v1beta1/tx.registry.js +64 -0
  38. package/esm/cosmwasm/client.js +25 -0
  39. package/esm/cosmwasm/wasm/v1/tx.registry.js +316 -0
  40. package/esm/extern.js +1 -1
  41. package/esm/helper-func-types.js +1 -1
  42. package/esm/helpers.js +1 -1
  43. package/esm/ibc/applications/transfer/v1/tx.registry.js +46 -0
  44. package/esm/ibc/client.js +28 -0
  45. package/esm/ibc/core/channel/v1/tx.registry.js +352 -0
  46. package/esm/ibc/core/client/v1/tx.registry.js +136 -0
  47. package/esm/ibc/core/connection/v1/tx.registry.js +100 -0
  48. package/esm/injective/auction/v1beta1/tx.registry.js +46 -0
  49. package/esm/injective/client.js +33 -0
  50. package/esm/injective/exchange/v1beta1/tx.registry.js +640 -0
  51. package/esm/injective/insurance/v1beta1/tx.registry.js +82 -0
  52. package/esm/injective/ocr/v1beta1/tx.registry.js +172 -0
  53. package/esm/injective/oracle/v1beta1/tx.registry.js +154 -0
  54. package/esm/injective/peggy/v1/msgs.registry.js +262 -0
  55. package/esm/injective/permissions/v1beta1/tx.registry.js +136 -0
  56. package/esm/injective/tokenfactory/v1beta1/tx.registry.js +118 -0
  57. package/esm/injective/wasmx/v1/tx.registry.js +118 -0
  58. package/esm/registry.js +1 -1
  59. package/esm/types.js +1 -1
  60. package/esm/utf8.js +1 -1
  61. package/esm/varint.js +1 -1
  62. package/extern.d.ts +1 -1
  63. package/extern.js +1 -1
  64. package/helper-func-types.d.ts +1 -1
  65. package/helper-func-types.js +1 -1
  66. package/helpers.d.ts +1 -1
  67. package/helpers.js +1 -1
  68. package/ibc/applications/transfer/v1/tx.registry.d.ts +35 -0
  69. package/ibc/applications/transfer/v1/tx.registry.js +49 -0
  70. package/ibc/client.d.ts +16 -0
  71. package/ibc/client.js +56 -0
  72. package/ibc/core/channel/v1/tx.registry.d.ts +239 -0
  73. package/ibc/core/channel/v1/tx.registry.js +355 -0
  74. package/ibc/core/client/v1/tx.registry.d.ts +95 -0
  75. package/ibc/core/client/v1/tx.registry.js +139 -0
  76. package/ibc/core/connection/v1/tx.registry.d.ts +71 -0
  77. package/ibc/core/connection/v1/tx.registry.js +103 -0
  78. package/injective/auction/v1beta1/tx.registry.d.ts +35 -0
  79. package/injective/auction/v1beta1/tx.registry.js +49 -0
  80. package/injective/client.d.ts +16 -0
  81. package/injective/client.js +61 -0
  82. package/injective/exchange/v1beta1/tx.registry.d.ts +431 -0
  83. package/injective/exchange/v1beta1/tx.registry.js +643 -0
  84. package/injective/insurance/v1beta1/tx.registry.d.ts +59 -0
  85. package/injective/insurance/v1beta1/tx.registry.js +85 -0
  86. package/injective/ocr/v1beta1/tx.registry.d.ts +119 -0
  87. package/injective/ocr/v1beta1/tx.registry.js +175 -0
  88. package/injective/oracle/v1beta1/tx.registry.d.ts +107 -0
  89. package/injective/oracle/v1beta1/tx.registry.js +157 -0
  90. package/injective/peggy/v1/msgs.registry.d.ts +179 -0
  91. package/injective/peggy/v1/msgs.registry.js +265 -0
  92. package/injective/permissions/v1beta1/tx.registry.d.ts +95 -0
  93. package/injective/permissions/v1beta1/tx.registry.js +139 -0
  94. package/injective/tokenfactory/v1beta1/tx.registry.d.ts +83 -0
  95. package/injective/tokenfactory/v1beta1/tx.registry.js +121 -0
  96. package/injective/wasmx/v1/tx.registry.d.ts +83 -0
  97. package/injective/wasmx/v1/tx.registry.js +121 -0
  98. package/package.json +2 -2
  99. package/registry.d.ts +1 -1
  100. package/registry.js +1 -1
  101. package/types.d.ts +1 -1
  102. package/types.js +1 -1
  103. package/utf8.d.ts +1 -1
  104. package/utf8.js +1 -1
  105. package/varint.d.ts +1 -1
  106. package/varint.js +1 -1
@@ -0,0 +1,139 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MessageComposer = exports.registry = void 0;
4
+ const tx_1 = require("./tx");
5
+ exports.registry = [["/ibc.core.client.v1.MsgCreateClient", tx_1.MsgCreateClient], ["/ibc.core.client.v1.MsgUpdateClient", tx_1.MsgUpdateClient], ["/ibc.core.client.v1.MsgUpgradeClient", tx_1.MsgUpgradeClient], ["/ibc.core.client.v1.MsgSubmitMisbehaviour", tx_1.MsgSubmitMisbehaviour], ["/ibc.core.client.v1.MsgRecoverClient", tx_1.MsgRecoverClient], ["/ibc.core.client.v1.MsgIBCSoftwareUpgrade", tx_1.MsgIBCSoftwareUpgrade], ["/ibc.core.client.v1.MsgUpdateParams", tx_1.MsgUpdateParams]];
6
+ exports.MessageComposer = {
7
+ encoded: {
8
+ createClient(value) {
9
+ return {
10
+ typeUrl: "/ibc.core.client.v1.MsgCreateClient",
11
+ value: tx_1.MsgCreateClient.encode(value).finish()
12
+ };
13
+ },
14
+ updateClient(value) {
15
+ return {
16
+ typeUrl: "/ibc.core.client.v1.MsgUpdateClient",
17
+ value: tx_1.MsgUpdateClient.encode(value).finish()
18
+ };
19
+ },
20
+ upgradeClient(value) {
21
+ return {
22
+ typeUrl: "/ibc.core.client.v1.MsgUpgradeClient",
23
+ value: tx_1.MsgUpgradeClient.encode(value).finish()
24
+ };
25
+ },
26
+ submitMisbehaviour(value) {
27
+ return {
28
+ typeUrl: "/ibc.core.client.v1.MsgSubmitMisbehaviour",
29
+ value: tx_1.MsgSubmitMisbehaviour.encode(value).finish()
30
+ };
31
+ },
32
+ recoverClient(value) {
33
+ return {
34
+ typeUrl: "/ibc.core.client.v1.MsgRecoverClient",
35
+ value: tx_1.MsgRecoverClient.encode(value).finish()
36
+ };
37
+ },
38
+ iBCSoftwareUpgrade(value) {
39
+ return {
40
+ typeUrl: "/ibc.core.client.v1.MsgIBCSoftwareUpgrade",
41
+ value: tx_1.MsgIBCSoftwareUpgrade.encode(value).finish()
42
+ };
43
+ },
44
+ updateClientParams(value) {
45
+ return {
46
+ typeUrl: "/ibc.core.client.v1.MsgUpdateParams",
47
+ value: tx_1.MsgUpdateParams.encode(value).finish()
48
+ };
49
+ }
50
+ },
51
+ withTypeUrl: {
52
+ createClient(value) {
53
+ return {
54
+ typeUrl: "/ibc.core.client.v1.MsgCreateClient",
55
+ value
56
+ };
57
+ },
58
+ updateClient(value) {
59
+ return {
60
+ typeUrl: "/ibc.core.client.v1.MsgUpdateClient",
61
+ value
62
+ };
63
+ },
64
+ upgradeClient(value) {
65
+ return {
66
+ typeUrl: "/ibc.core.client.v1.MsgUpgradeClient",
67
+ value
68
+ };
69
+ },
70
+ submitMisbehaviour(value) {
71
+ return {
72
+ typeUrl: "/ibc.core.client.v1.MsgSubmitMisbehaviour",
73
+ value
74
+ };
75
+ },
76
+ recoverClient(value) {
77
+ return {
78
+ typeUrl: "/ibc.core.client.v1.MsgRecoverClient",
79
+ value
80
+ };
81
+ },
82
+ iBCSoftwareUpgrade(value) {
83
+ return {
84
+ typeUrl: "/ibc.core.client.v1.MsgIBCSoftwareUpgrade",
85
+ value
86
+ };
87
+ },
88
+ updateClientParams(value) {
89
+ return {
90
+ typeUrl: "/ibc.core.client.v1.MsgUpdateParams",
91
+ value
92
+ };
93
+ }
94
+ },
95
+ fromPartial: {
96
+ createClient(value) {
97
+ return {
98
+ typeUrl: "/ibc.core.client.v1.MsgCreateClient",
99
+ value: tx_1.MsgCreateClient.fromPartial(value)
100
+ };
101
+ },
102
+ updateClient(value) {
103
+ return {
104
+ typeUrl: "/ibc.core.client.v1.MsgUpdateClient",
105
+ value: tx_1.MsgUpdateClient.fromPartial(value)
106
+ };
107
+ },
108
+ upgradeClient(value) {
109
+ return {
110
+ typeUrl: "/ibc.core.client.v1.MsgUpgradeClient",
111
+ value: tx_1.MsgUpgradeClient.fromPartial(value)
112
+ };
113
+ },
114
+ submitMisbehaviour(value) {
115
+ return {
116
+ typeUrl: "/ibc.core.client.v1.MsgSubmitMisbehaviour",
117
+ value: tx_1.MsgSubmitMisbehaviour.fromPartial(value)
118
+ };
119
+ },
120
+ recoverClient(value) {
121
+ return {
122
+ typeUrl: "/ibc.core.client.v1.MsgRecoverClient",
123
+ value: tx_1.MsgRecoverClient.fromPartial(value)
124
+ };
125
+ },
126
+ iBCSoftwareUpgrade(value) {
127
+ return {
128
+ typeUrl: "/ibc.core.client.v1.MsgIBCSoftwareUpgrade",
129
+ value: tx_1.MsgIBCSoftwareUpgrade.fromPartial(value)
130
+ };
131
+ },
132
+ updateClientParams(value) {
133
+ return {
134
+ typeUrl: "/ibc.core.client.v1.MsgUpdateParams",
135
+ value: tx_1.MsgUpdateParams.fromPartial(value)
136
+ };
137
+ }
138
+ }
139
+ };
@@ -0,0 +1,71 @@
1
+ import { TelescopeGeneratedType } from "../../../../types";
2
+ import { MsgConnectionOpenInit, MsgConnectionOpenTry, MsgConnectionOpenAck, MsgConnectionOpenConfirm, MsgUpdateParams } from "./tx";
3
+ export declare const registry: ReadonlyArray<[string, TelescopeGeneratedType<any, any, any>]>;
4
+ export declare const MessageComposer: {
5
+ encoded: {
6
+ connectionOpenInit(value: MsgConnectionOpenInit): {
7
+ typeUrl: string;
8
+ value: Uint8Array;
9
+ };
10
+ connectionOpenTry(value: MsgConnectionOpenTry): {
11
+ typeUrl: string;
12
+ value: Uint8Array;
13
+ };
14
+ connectionOpenAck(value: MsgConnectionOpenAck): {
15
+ typeUrl: string;
16
+ value: Uint8Array;
17
+ };
18
+ connectionOpenConfirm(value: MsgConnectionOpenConfirm): {
19
+ typeUrl: string;
20
+ value: Uint8Array;
21
+ };
22
+ updateConnectionParams(value: MsgUpdateParams): {
23
+ typeUrl: string;
24
+ value: Uint8Array;
25
+ };
26
+ };
27
+ withTypeUrl: {
28
+ connectionOpenInit(value: MsgConnectionOpenInit): {
29
+ typeUrl: string;
30
+ value: MsgConnectionOpenInit;
31
+ };
32
+ connectionOpenTry(value: MsgConnectionOpenTry): {
33
+ typeUrl: string;
34
+ value: MsgConnectionOpenTry;
35
+ };
36
+ connectionOpenAck(value: MsgConnectionOpenAck): {
37
+ typeUrl: string;
38
+ value: MsgConnectionOpenAck;
39
+ };
40
+ connectionOpenConfirm(value: MsgConnectionOpenConfirm): {
41
+ typeUrl: string;
42
+ value: MsgConnectionOpenConfirm;
43
+ };
44
+ updateConnectionParams(value: MsgUpdateParams): {
45
+ typeUrl: string;
46
+ value: MsgUpdateParams;
47
+ };
48
+ };
49
+ fromPartial: {
50
+ connectionOpenInit(value: MsgConnectionOpenInit): {
51
+ typeUrl: string;
52
+ value: MsgConnectionOpenInit;
53
+ };
54
+ connectionOpenTry(value: MsgConnectionOpenTry): {
55
+ typeUrl: string;
56
+ value: MsgConnectionOpenTry;
57
+ };
58
+ connectionOpenAck(value: MsgConnectionOpenAck): {
59
+ typeUrl: string;
60
+ value: MsgConnectionOpenAck;
61
+ };
62
+ connectionOpenConfirm(value: MsgConnectionOpenConfirm): {
63
+ typeUrl: string;
64
+ value: MsgConnectionOpenConfirm;
65
+ };
66
+ updateConnectionParams(value: MsgUpdateParams): {
67
+ typeUrl: string;
68
+ value: MsgUpdateParams;
69
+ };
70
+ };
71
+ };
@@ -0,0 +1,103 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MessageComposer = exports.registry = void 0;
4
+ const tx_1 = require("./tx");
5
+ exports.registry = [["/ibc.core.connection.v1.MsgConnectionOpenInit", tx_1.MsgConnectionOpenInit], ["/ibc.core.connection.v1.MsgConnectionOpenTry", tx_1.MsgConnectionOpenTry], ["/ibc.core.connection.v1.MsgConnectionOpenAck", tx_1.MsgConnectionOpenAck], ["/ibc.core.connection.v1.MsgConnectionOpenConfirm", tx_1.MsgConnectionOpenConfirm], ["/ibc.core.connection.v1.MsgUpdateParams", tx_1.MsgUpdateParams]];
6
+ exports.MessageComposer = {
7
+ encoded: {
8
+ connectionOpenInit(value) {
9
+ return {
10
+ typeUrl: "/ibc.core.connection.v1.MsgConnectionOpenInit",
11
+ value: tx_1.MsgConnectionOpenInit.encode(value).finish()
12
+ };
13
+ },
14
+ connectionOpenTry(value) {
15
+ return {
16
+ typeUrl: "/ibc.core.connection.v1.MsgConnectionOpenTry",
17
+ value: tx_1.MsgConnectionOpenTry.encode(value).finish()
18
+ };
19
+ },
20
+ connectionOpenAck(value) {
21
+ return {
22
+ typeUrl: "/ibc.core.connection.v1.MsgConnectionOpenAck",
23
+ value: tx_1.MsgConnectionOpenAck.encode(value).finish()
24
+ };
25
+ },
26
+ connectionOpenConfirm(value) {
27
+ return {
28
+ typeUrl: "/ibc.core.connection.v1.MsgConnectionOpenConfirm",
29
+ value: tx_1.MsgConnectionOpenConfirm.encode(value).finish()
30
+ };
31
+ },
32
+ updateConnectionParams(value) {
33
+ return {
34
+ typeUrl: "/ibc.core.connection.v1.MsgUpdateParams",
35
+ value: tx_1.MsgUpdateParams.encode(value).finish()
36
+ };
37
+ }
38
+ },
39
+ withTypeUrl: {
40
+ connectionOpenInit(value) {
41
+ return {
42
+ typeUrl: "/ibc.core.connection.v1.MsgConnectionOpenInit",
43
+ value
44
+ };
45
+ },
46
+ connectionOpenTry(value) {
47
+ return {
48
+ typeUrl: "/ibc.core.connection.v1.MsgConnectionOpenTry",
49
+ value
50
+ };
51
+ },
52
+ connectionOpenAck(value) {
53
+ return {
54
+ typeUrl: "/ibc.core.connection.v1.MsgConnectionOpenAck",
55
+ value
56
+ };
57
+ },
58
+ connectionOpenConfirm(value) {
59
+ return {
60
+ typeUrl: "/ibc.core.connection.v1.MsgConnectionOpenConfirm",
61
+ value
62
+ };
63
+ },
64
+ updateConnectionParams(value) {
65
+ return {
66
+ typeUrl: "/ibc.core.connection.v1.MsgUpdateParams",
67
+ value
68
+ };
69
+ }
70
+ },
71
+ fromPartial: {
72
+ connectionOpenInit(value) {
73
+ return {
74
+ typeUrl: "/ibc.core.connection.v1.MsgConnectionOpenInit",
75
+ value: tx_1.MsgConnectionOpenInit.fromPartial(value)
76
+ };
77
+ },
78
+ connectionOpenTry(value) {
79
+ return {
80
+ typeUrl: "/ibc.core.connection.v1.MsgConnectionOpenTry",
81
+ value: tx_1.MsgConnectionOpenTry.fromPartial(value)
82
+ };
83
+ },
84
+ connectionOpenAck(value) {
85
+ return {
86
+ typeUrl: "/ibc.core.connection.v1.MsgConnectionOpenAck",
87
+ value: tx_1.MsgConnectionOpenAck.fromPartial(value)
88
+ };
89
+ },
90
+ connectionOpenConfirm(value) {
91
+ return {
92
+ typeUrl: "/ibc.core.connection.v1.MsgConnectionOpenConfirm",
93
+ value: tx_1.MsgConnectionOpenConfirm.fromPartial(value)
94
+ };
95
+ },
96
+ updateConnectionParams(value) {
97
+ return {
98
+ typeUrl: "/ibc.core.connection.v1.MsgUpdateParams",
99
+ value: tx_1.MsgUpdateParams.fromPartial(value)
100
+ };
101
+ }
102
+ }
103
+ };
@@ -0,0 +1,35 @@
1
+ import { TelescopeGeneratedType } from "../../../types";
2
+ import { MsgBid, MsgUpdateParams } from "./tx";
3
+ export declare const registry: ReadonlyArray<[string, TelescopeGeneratedType<any, any, any>]>;
4
+ export declare const MessageComposer: {
5
+ encoded: {
6
+ bid(value: MsgBid): {
7
+ typeUrl: string;
8
+ value: Uint8Array;
9
+ };
10
+ updateParams(value: MsgUpdateParams): {
11
+ typeUrl: string;
12
+ value: Uint8Array;
13
+ };
14
+ };
15
+ withTypeUrl: {
16
+ bid(value: MsgBid): {
17
+ typeUrl: string;
18
+ value: MsgBid;
19
+ };
20
+ updateParams(value: MsgUpdateParams): {
21
+ typeUrl: string;
22
+ value: MsgUpdateParams;
23
+ };
24
+ };
25
+ fromPartial: {
26
+ bid(value: MsgBid): {
27
+ typeUrl: string;
28
+ value: MsgBid;
29
+ };
30
+ updateParams(value: MsgUpdateParams): {
31
+ typeUrl: string;
32
+ value: MsgUpdateParams;
33
+ };
34
+ };
35
+ };
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MessageComposer = exports.registry = void 0;
4
+ const tx_1 = require("./tx");
5
+ exports.registry = [["/injective.auction.v1beta1.MsgBid", tx_1.MsgBid], ["/injective.auction.v1beta1.MsgUpdateParams", tx_1.MsgUpdateParams]];
6
+ exports.MessageComposer = {
7
+ encoded: {
8
+ bid(value) {
9
+ return {
10
+ typeUrl: "/injective.auction.v1beta1.MsgBid",
11
+ value: tx_1.MsgBid.encode(value).finish()
12
+ };
13
+ },
14
+ updateParams(value) {
15
+ return {
16
+ typeUrl: "/injective.auction.v1beta1.MsgUpdateParams",
17
+ value: tx_1.MsgUpdateParams.encode(value).finish()
18
+ };
19
+ }
20
+ },
21
+ withTypeUrl: {
22
+ bid(value) {
23
+ return {
24
+ typeUrl: "/injective.auction.v1beta1.MsgBid",
25
+ value
26
+ };
27
+ },
28
+ updateParams(value) {
29
+ return {
30
+ typeUrl: "/injective.auction.v1beta1.MsgUpdateParams",
31
+ value
32
+ };
33
+ }
34
+ },
35
+ fromPartial: {
36
+ bid(value) {
37
+ return {
38
+ typeUrl: "/injective.auction.v1beta1.MsgBid",
39
+ value: tx_1.MsgBid.fromPartial(value)
40
+ };
41
+ },
42
+ updateParams(value) {
43
+ return {
44
+ typeUrl: "/injective.auction.v1beta1.MsgUpdateParams",
45
+ value: tx_1.MsgUpdateParams.fromPartial(value)
46
+ };
47
+ }
48
+ }
49
+ };
@@ -0,0 +1,16 @@
1
+ import { GeneratedType, Registry, OfflineSigner } from "@cosmjs/proto-signing";
2
+ import { AminoTypes, SigningStargateClient } from "@cosmjs/stargate";
3
+ import { HttpEndpoint } from "@cosmjs/tendermint-rpc";
4
+ export declare const injectiveAminoConverters: {};
5
+ export declare const injectiveProtoRegistry: ReadonlyArray<[string, GeneratedType]>;
6
+ export declare const getSigningInjectiveClientOptions: ({ defaultTypes }?: {
7
+ defaultTypes?: ReadonlyArray<[string, GeneratedType]>;
8
+ }) => {
9
+ registry: Registry;
10
+ aminoTypes: AminoTypes;
11
+ };
12
+ export declare const getSigningInjectiveClient: ({ rpcEndpoint, signer, defaultTypes }: {
13
+ rpcEndpoint: string | HttpEndpoint;
14
+ signer: OfflineSigner;
15
+ defaultTypes?: ReadonlyArray<[string, GeneratedType]>;
16
+ }) => Promise<SigningStargateClient>;
@@ -0,0 +1,61 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = 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);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.getSigningInjectiveClient = exports.getSigningInjectiveClientOptions = exports.injectiveProtoRegistry = exports.injectiveAminoConverters = void 0;
27
+ const proto_signing_1 = require("@cosmjs/proto-signing");
28
+ const stargate_1 = require("@cosmjs/stargate");
29
+ const injectiveAuctionV1beta1TxRegistry = __importStar(require("./auction/v1beta1/tx.registry"));
30
+ const injectiveExchangeV1beta1TxRegistry = __importStar(require("./exchange/v1beta1/tx.registry"));
31
+ const injectiveInsuranceV1beta1TxRegistry = __importStar(require("./insurance/v1beta1/tx.registry"));
32
+ const injectiveOcrV1beta1TxRegistry = __importStar(require("./ocr/v1beta1/tx.registry"));
33
+ const injectiveOracleV1beta1TxRegistry = __importStar(require("./oracle/v1beta1/tx.registry"));
34
+ const injectivePeggyV1MsgsRegistry = __importStar(require("./peggy/v1/msgs.registry"));
35
+ const injectivePermissionsV1beta1TxRegistry = __importStar(require("./permissions/v1beta1/tx.registry"));
36
+ const injectiveTokenfactoryV1beta1TxRegistry = __importStar(require("./tokenfactory/v1beta1/tx.registry"));
37
+ const injectiveWasmxV1TxRegistry = __importStar(require("./wasmx/v1/tx.registry"));
38
+ exports.injectiveAminoConverters = {};
39
+ exports.injectiveProtoRegistry = [...injectiveAuctionV1beta1TxRegistry.registry, ...injectiveExchangeV1beta1TxRegistry.registry, ...injectiveInsuranceV1beta1TxRegistry.registry, ...injectiveOcrV1beta1TxRegistry.registry, ...injectiveOracleV1beta1TxRegistry.registry, ...injectivePeggyV1MsgsRegistry.registry, ...injectivePermissionsV1beta1TxRegistry.registry, ...injectiveTokenfactoryV1beta1TxRegistry.registry, ...injectiveWasmxV1TxRegistry.registry];
40
+ const getSigningInjectiveClientOptions = ({ defaultTypes = stargate_1.defaultRegistryTypes } = {}) => {
41
+ const registry = new proto_signing_1.Registry([...defaultTypes, ...exports.injectiveProtoRegistry]);
42
+ const aminoTypes = new stargate_1.AminoTypes({
43
+ ...exports.injectiveAminoConverters
44
+ });
45
+ return {
46
+ registry,
47
+ aminoTypes
48
+ };
49
+ };
50
+ exports.getSigningInjectiveClientOptions = getSigningInjectiveClientOptions;
51
+ const getSigningInjectiveClient = async ({ rpcEndpoint, signer, defaultTypes = stargate_1.defaultRegistryTypes }) => {
52
+ const { registry, aminoTypes } = (0, exports.getSigningInjectiveClientOptions)({
53
+ defaultTypes
54
+ });
55
+ const client = await stargate_1.SigningStargateClient.connectWithSigner(rpcEndpoint, signer, {
56
+ registry: registry,
57
+ aminoTypes
58
+ });
59
+ return client;
60
+ };
61
+ exports.getSigningInjectiveClient = getSigningInjectiveClient;