@injectivelabs/sdk-ts 0.0.64 → 0.0.67

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 (34) hide show
  1. package/README.md +193 -106
  2. package/dist/classes/Denom.js +1 -1
  3. package/dist/classes/Denom.js.map +1 -1
  4. package/dist/client/chain/grpc/index.d.ts +0 -1
  5. package/dist/client/chain/grpc/index.d.ts.map +1 -1
  6. package/dist/client/chain/grpc/index.js +1 -3
  7. package/dist/client/chain/grpc/index.js.map +1 -1
  8. package/dist/client/{chain/grpc/ChainGrpcTransactionApi.d.ts → exchange/grpc/ExchangeGrpcTransactionApi.d.ts} +2 -2
  9. package/dist/client/exchange/grpc/ExchangeGrpcTransactionApi.d.ts.map +1 -0
  10. package/dist/client/{chain/grpc/ChainGrpcTransactionApi.js → exchange/grpc/ExchangeGrpcTransactionApi.js} +4 -4
  11. package/dist/client/exchange/grpc/ExchangeGrpcTransactionApi.js.map +1 -0
  12. package/dist/client/exchange/grpc/index.d.ts +1 -0
  13. package/dist/client/exchange/grpc/index.d.ts.map +1 -1
  14. package/dist/client/exchange/grpc/index.js +3 -1
  15. package/dist/client/exchange/grpc/index.js.map +1 -1
  16. package/dist/client/exchange/rest/ExchangeRestExplorerApi.d.ts +6 -6
  17. package/dist/client/exchange/rest/ExchangeRestExplorerApi.d.ts.map +1 -1
  18. package/dist/client/exchange/transformers/ExchangeRestExplorerTransformer.d.ts +6 -6
  19. package/dist/client/exchange/transformers/ExchangeRestExplorerTransformer.d.ts.map +1 -1
  20. package/dist/client/exchange/transformers/index.d.ts +9 -8
  21. package/dist/client/exchange/transformers/index.d.ts.map +1 -1
  22. package/dist/client/exchange/transformers/index.js +9 -8
  23. package/dist/client/exchange/transformers/index.js.map +1 -1
  24. package/dist/client/exchange/types/explorer-rest.d.ts +4 -4
  25. package/dist/client/exchange/types/explorer-rest.d.ts.map +1 -1
  26. package/dist/client/exchange/types/index.d.ts +1 -0
  27. package/dist/client/exchange/types/index.d.ts.map +1 -1
  28. package/dist/client/exchange/types/index.js +1 -0
  29. package/dist/client/exchange/types/index.js.map +1 -1
  30. package/dist/utils/transaction.js +2 -2
  31. package/dist/utils/transaction.js.map +1 -1
  32. package/package.json +3 -3
  33. package/dist/client/chain/grpc/ChainGrpcTransactionApi.d.ts.map +0 -1
  34. package/dist/client/chain/grpc/ChainGrpcTransactionApi.js.map +0 -1
package/README.md CHANGED
@@ -6,9 +6,32 @@
6
6
 
7
7
  _Accessing decentralized finance through TypeScript (for Web and Node environment)_
8
8
 
9
- ---
9
+ `@injectivelabs/sdk-ts` is a TypeScript SDK for writing applications on top of the Injective chain in both a Node.js and a browser environment.
10
+
11
+ <p align="center">
12
+ <a href="#"><strong>Documentation</strong></a>
13
+ ·
14
+ <a href="https://github.com/InjectiveLabs/sdk-ts-examples">Examples</a>
15
+ ·
16
+ <a href="#">API Reference</a>
17
+ ·
18
+ <a href="https://www.npmjs.com/package/@injectivelabs/sdk-ts">NPM Package</a>
19
+ ·
20
+ <a href="https://github.com/injectivelabs/sdk-ts">GitHub</a>
21
+ </p>
22
+
23
+ ### ✨ Features
24
+
25
+ - **Written in TypeScript**, with type definitions,
26
+ - Works in Node.js and in the browser,
27
+ - Exposes on-chain data and the exchange-api data,
28
+ - Parses responses into native JavaScript types
29
+ - much more ...
30
+
31
+ We highly suggest using the `@injectivelabs/sdk-ts` with TypeScript, or JavaScript in a code editor that has support for type declarations, so you can take advantage of the helpful type hints that are included with the package.
10
32
 
11
- ## 📚 Installation
33
+
34
+ ### 📚 Installation
12
35
 
13
36
  ```bash
14
37
  yarn add @injectivelabs/sdk-ts
@@ -18,48 +41,35 @@ yarn add @injectivelabs/sdk-ts
18
41
 
19
42
  ## 📖 Documentation
20
43
 
21
- There are couple of components within this package. This package offers clients that can be easily instantiated so you can access all functionalities easily. Also, it offer decoupled exports so you can instantiate classes that you only need so you can utilize tree-shaking in the build process and reduce the file-size of the imports.
22
-
23
- We are going to go through all of the components of the package and explain them in depth.
44
+ There are two pieces of the `sdk-ts` - **querying a data source** and **making transactions**.
24
45
 
25
- ### Classes
46
+ ### Querying a data source
26
47
 
27
- This package contains some utility classes that can enhance the developer experience.
48
+ There are 2 data sources that can be accessed through the `sdk-ts`:
28
49
 
29
- - `Address` class -> Can be used to get details about an injective address,
50
+ - The Injective chain itself through a sentry node,
51
+ - The Exchange API indexer (indexer of events from the Injective chain to a MongoDB),
30
52
 
31
- ### Client
53
+ For each of the data sources there are two ways that they can be queried:
32
54
 
33
- This package contains utility classes which ease the way we consume data from data sources.
55
+ - using the gRPC protocol,
56
+ - using REST
34
57
 
35
- There are two data sources available:
36
- - Chain -> Consuming data directly from the chain,
37
- - Exchange -> Consuming data directly from the exchange (indexer) API,
58
+ We also have a GraphQL consumer of the Peggy subgraph on Ethereum (used only for tracking deposits and withdrawals on Ethereum).
38
59
 
39
- At the moment, only the gRPC method of consuming the data is supported, we might introduce REST as well in the future.
60
+ For the 2 main data sources, there are abstraction classes that developers can use to access specific modules of the Injective Chain **or** specific modules within the Exchange API. The responses of these requests are always mapped into normal JavaScript objects (regardless of the data source type) and served to the end user.
40
61
 
41
- ### Core
62
+ ### Making Transactions
42
63
 
43
- This package contains utility message classes that can help generate messages which can be packed into a transaction and broadcasted to the chain. Messages are separated into folders that correspond to a module on the Injective chain.
64
+ To interact with Injective, the user has to issue a transaction. Each transaction that is broadcasted to Injective can hold multiple messages that can change the state of the Injective chain. Within the `core` folder, developers can find a convenient way to make these messages with methods that can convert these messages in a way that they can be used by developers in different scenarios (broadcasting using the normal cosmos way or converted to EIP712 to be signed using Ethereum wallets).
44
65
 
45
- Every message is represented as a `MsgBase` class, which has couple of mapping functionalities:
66
+ Every message extends the `MsgBase` interface, which has couple of mapping functionalities:
46
67
  - `toData` -> Converts the Message to a simple Object representation,
47
- - `toProto` -> Returns a proto representation of the message,
48
- - `toDirectSign` -> Converts the Message to a proto representation + type (ready for client side usage),
49
- - `toWeb3` -> Converts the Message to a web3 representation + type (ready for web3-gateway usage i.e browser),
50
-
51
- ### Utils
52
-
53
- This package contains some utility functions and constants.
68
+ - `toProto` -> Returns a proto representation of the Message,
69
+ - `toDirectSign` -> Converts the Message to a proto representation (ready to be used in the normal Cosmos way of handling transactions),
70
+ - `toWeb3` -> Converts the Message to a web3 representation + type (ready to be used in the Ethereum way of handling transactions using EIP712 typed data),
54
71
 
55
- ### Local
56
-
57
- This package contains some utility functions and constants for client-side usage (a local - node environment)
58
-
59
- - `Network` class -> Can be used to get a pre-defined set of endpoints (sentry, api, etc) for easier usage,
60
- - `PrivateKey` class -> Can be used to sign transactions, etc
61
- - `InjectiveTx` class -> Can be used to prepare a transaction for signing/broadcasting on the client side,
62
- - `TxService` class -> Can be used for simulating or broadcasting a transaction on the client side
72
+ There are also some utility classes and functions that are exposed from the package. There is also a `local` folder that exposes some utility classes that can be used to make developers life easier in a Node environment.
63
73
 
64
74
  ---
65
75
 
@@ -69,17 +79,48 @@ Let's go through couple of use-cases of the `sdk-ts` so developers can have a re
69
79
 
70
80
  ### Consuming data
71
81
 
72
- - Fetching user's balance from the chain
82
+ - Fetching user's inj balance from the chain
73
83
 
74
84
  ```ts
75
- // Using the client
76
- import { ChainClient, Network } from '@injectivelabs/sdk-ts'
85
+ import { getNetworkInfo, Network } from "@injectivelabs/networks";
86
+ import { ExchangeGrpcClient } from "@injectivelabs/sdk-ts/dist/client/exchange/ExchangeGrpcClient";
87
+
88
+ (async () => {
89
+ const network = getNetworkInfo(Network.TestnetK8s);
90
+ const injectiveAddress = "inj14au322k9munkmx5wrchz9q30juf5wjgz2cfqku";
91
+ const chainClient = new ExchangeGrpcClient(
92
+ network.sentryGrpcApi
93
+ );
94
+
95
+ const balances = await chainClient.bank.fetchBalances(
96
+ injectiveAddress
97
+ );
98
+ const injBalance = balances.find(balace => balance.denom === 'inj')
99
+
100
+ console.log(injBalance);
101
+ })();
77
102
 
78
- const network = Network.testnet()
79
- const injectiveAddress = 'inj1hkhdaj2a2clmq5jq6mspsggqs32vynpk228q3r'
80
- const denom = 'inj'
81
- const chainGrpcClient = new ChainClient.GrpcClient(network.sentryGrpcApi)
82
- console.log(await chainGrpcClient.bankApi.balance({ injectiveAddress, denom }))
103
+ ```
104
+
105
+ - Fetching user's subaccount balance from the exchange api
106
+
107
+ ```ts
108
+ import { getNetworkInfo, Network } from "@injectivelabs/networks";
109
+ import { ChainGrpcClient } from "@injectivelabs/sdk-ts/dist/client/chain/ChainGrpcClient";
110
+
111
+ (async () => {
112
+ const network = getNetworkInfo(Network.TestnetK8s);
113
+ const subaccountId = "0xaf79152ac5df276d9a8e1e2e22822f9713474902000000000000000000000000";
114
+ const exchangeClient = new ChainGrpcClient(
115
+ network.exchangeApi
116
+ );
117
+
118
+ const subaccountBalancesList = await exchangeClient.account.fetchSubaccountBalancesList(
119
+ subaccountId
120
+ );
121
+
122
+ console.log(subaccountBalancesList);
123
+ })();
83
124
  ```
84
125
 
85
126
  ```ts
@@ -115,91 +156,137 @@ console.log(await derivativesApi.markets())
115
156
 
116
157
  ### Broadcasting Transactions
117
158
 
118
- - Creating a spot limit order transaction and broadcasting it to the chain
159
+ - Bidding on an auction
119
160
 
120
161
  ```ts
121
- import { Network, ExchangeCore, ExchangeClient, PrivateKey, InjectiveTx, TxService } from '@injectivelabs/sdk-ts'
122
-
123
- const network = Network.testnet()
124
- const privateKey = PrivateKey.fromPrivateKey('f9db9bf330e23cb7839039e944adef6e9df447b90b503d5b4464c90bea9022f3')
125
-
126
- /** Account Details **/
127
- const injectiveAddress = "inj1ql0alrq4e4ec6rv9svqjwer0k6ewfjkaay9lne";
128
- const authApi = new ExchangeClient.AuthApi(network.sentryGrpcApi)
129
- const accountDetails = await authApi.account(injectiveAddress)
130
-
131
- /** Limit Order Details */
132
- const price = 5;
133
- const quantity = 10;
134
- const baseDecimals = 18; // INJ has 18 decimals
135
- const quoteDecimals = 6; // USDT has 6 decimals
136
- const marketId =
137
- "0xa508cb32923323679f29a032c70342c147c17d0145625922b0ef22e955c844c0"; // INJ/USDT on testnet;
138
- const subaccountId =
139
- "0x07dfdf8c15cd738d0d85830127646fb6b2e4cadd000000000000000000000000";
140
- const orderType = 1; /* Buy, 2 for Sale */
141
-
142
- /** Preparing the transaction */
143
- const msg = new ExchangeCore.MsgCreateSpotLimitOrder({
144
- marketId,
145
- subaccountId,
146
- injectiveAddress,
147
- orderType,
148
- price,
149
- quantity,
150
- triggerPrice: '0',
151
- feeRecipient: injectiveAddress
152
- })
153
- const injectiveTx = new InjectiveTx({
154
- accountDetails,
155
- tx: {
162
+ import { getNetworkInfo, Network } from "@injectivelabs/networks";
163
+ import {
164
+ AuctionCore,
165
+ ChainClient,
166
+ PrivateKey,
167
+ BaseAccount,
168
+ TxInjective,
169
+ TxService,
170
+ } from "@injectivelabs/sdk-ts";
171
+ import { BigNumberInBase } from "@injectivelabs/utils";
172
+
173
+ /** MsgBid Example */
174
+ (async () => {
175
+ const network = getNetworkInfo(Network.TestnetK8s);
176
+ const privateKey = PrivateKey.fromPrivateKey(
177
+ "f9db9bf330e23cb7839039e944adef6e9df447b90b503d5b4464c90bea9022f3"
178
+ );
179
+ const injectiveAddress = privateKey.toBech32();
180
+ console.log(injectiveAddress, privateKey.toHex());
181
+
182
+ /** Account Details **/
183
+ const accountDetails = await new ChainClient.AuthRestApi(
184
+ network.sentryHttpApi
185
+ ).account(injectiveAddress);
186
+ const baseAccount = BaseAccount.fromRestApi(accountDetails);
187
+
188
+ /** Prepare the Message */
189
+ const auctionModuleState = await new ChainClient.AuctionApi(
190
+ network.sentryGrpcApi
191
+ ).moduleState();
192
+ const latestRound = auctionModuleState.getState()?.getAuctionRound();
193
+ const round = latestRound || 1;
194
+ const bid = 1; /** 100 INJ */
195
+ const amount = {
196
+ amount: new BigNumberInBase(bid).toWei().toFixed(),
197
+ denom: "inj",
198
+ };
199
+ const msg = new AuctionCore.MsgBid({
200
+ round,
201
+ amount,
202
+ injectiveAddress,
203
+ });
204
+
205
+ /** Prepare the Transaction **/
206
+ const txInjective = new TxInjective({
207
+ baseAccount,
156
208
  msgs: [msg],
157
209
  chainId: network.chainId,
158
- address: injectiveAddress
159
- }
160
- })
161
- const signature = privateKey.sign(injectiveTx.signDoc.serializeBinary())
162
- const txRaw = injectiveTx.toTxRaw(signature)
163
- console.log(`Transaction Hash: ${InjectiveTx.getTxHash(txRaw)}`);
164
-
165
- /** Simulating and Broadcasting a transaction */
166
- const txService = new TxService({ txRaw, endpoint: network.sentryGrpcApi })
167
- const simulationResponse = await txService.simulate()
168
- console.log(
169
- `Transaction simulation response: ${JSON.stringify(simulationResponse.gasInfo)}`
170
- );
171
-
172
- const txResponse = await txService.broadcast()
173
- console.log(
174
- `Broadcasted transaction hash: ${JSON.stringify(txResponse.txhash)}`
175
- );
210
+ address: injectiveAddress,
211
+ });
212
+
213
+ /** Sign transaction */
214
+ const signature = await privateKey.sign(txInjective.signBytes);
215
+ const signedTxInjective = txInjective.withSignature(signature);
216
+
217
+ /** Calculate hash of the transaction */
218
+ console.log(`Transaction Hash: ${signedTxInjective.getTxHash()}`);
219
+
220
+ const txService = new TxService({
221
+ txInjective: signedTxInjective,
222
+ endpoint: network.sentryGrpcApi,
223
+ });
224
+
225
+ /** Simulate transaction */
226
+ const simulationResponse = await txService.simulate();
227
+ console.log(
228
+ `Transaction simulation response: ${JSON.stringify(
229
+ simulationResponse.gasInfo
230
+ )}`
231
+ );
232
+
233
+ /** Broadcast transaction */
234
+ const txResponse = await txService.broadcast();
235
+ console.log(
236
+ `Broadcasted transaction hash: ${JSON.stringify(txResponse.txhash)}`
237
+ );
238
+ })();
176
239
  ```
177
240
 
178
241
  ### Streaming Data
179
242
 
180
- ---
243
+ - Streaming users subaccount balances from the exchange API
181
244
 
182
- ## 🖱️ Examples
183
-
184
- To run an example, `cd` into the `examples` folder and execute the desired example by running:
185
-
186
- ```bash
187
- yarn ts-node pathToExample
188
-
189
- ## Example: yarn ts-node ./core/MsgBid.ts
245
+ ```ts
246
+ import { getNetworkInfo, Network } from "@injectivelabs/networks";
247
+ import { protoObjectToJson } from "@injectivelabs/sdk-ts";
248
+ import { ExchangeGrpcStreamClient } from "@injectivelabs/sdk-ts/dist/client/exchange/ExchangeGrpcStreamClient";
249
+
250
+ (async () => {
251
+ const network = getNetworkInfo(Network.TestnetK8s);
252
+
253
+ const subaccountId =
254
+ "0xaf79152ac5df276d9a8e1e2e22822f9713474902000000000000000000000000";
255
+
256
+ const exchangeClient = new ExchangeGrpcStreamClient(
257
+ network.exchangeApi
258
+ );
259
+
260
+ await exchangeClient.account.streamSubaccountBalance({
261
+ subaccountId,
262
+ callback: (subaccountBalance) => {
263
+ console.log(protoObjectToJson(subaccountBalance));
264
+ },
265
+ onEndCallback: (status) => {
266
+ console.log("Stream has ended with status: " + status);
267
+ },
268
+ });
269
+ })();
190
270
  ```
191
271
 
192
- Don't forget to do `yarn` and install dependencies before executing any example.
193
-
194
272
  ---
195
273
 
196
274
  ## ⛑ Support
197
275
 
198
276
  Reach out to us at one of the following places!
199
277
 
200
- - Website at <a href="https://injectiveprotocol.com" target="_blank">`injectiveprotocol.com`</a>
278
+ - Website at <a href="https://injective.com" target="_blank">`injective.com`</a>
201
279
  - Twitter at <a href="https://twitter.com/InjectiveLabs" target="_blank">`@InjectiveLabs`</a>
280
+ - Discord at <a href="https://discord.com/invite/NK4qdbv" target="_blank">`Discord`</a>
281
+ - Telegram at <a href="https://t.me/joininjective" target="_blank">`Telegram`</a>
202
282
 
203
283
  ---
204
284
 
205
285
  ## 🔓 License
286
+
287
+ This software is licensed under the MIT license. See [LICENSE](./LICENSE) for full disclosure.
288
+
289
+ <p>&nbsp;</p>
290
+ <div align="center">
291
+ <sub><em>Powering the future of decentralized finance.</em></sub>
292
+ </div>
@@ -24,7 +24,7 @@ const tokenMetaToToken = (tokenMeta, denom) => {
24
24
  }
25
25
  return {
26
26
  denom,
27
- logo: path_1.default.join('/', 'vendors', '@injectivelabs', 'token-metadata', tokenMeta.logo),
27
+ logo: path_1.default.join('/', 'vendor', '@injectivelabs', 'token-metadata', tokenMeta.logo),
28
28
  icon: tokenMeta.logo,
29
29
  symbol: tokenMeta.symbol,
30
30
  name: tokenMeta.name,
@@ -1 +1 @@
1
- {"version":3,"file":"Denom.js","sourceRoot":"","sources":["../../src/classes/Denom.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,0EAAsE;AACtE,kEAGsC;AAGtC,oCAAoC;AACpC,sDAAyE;AACzE,gDAAuB;AAEhB,MAAM,gBAAgB,GAAG,CAC9B,SAAgC,EAChC,KAAa,EACM,EAAE;IACrB,IAAI,CAAC,SAAS,EAAE;QACd,OAAM;KACP;IAED,OAAO;QACL,KAAK;QACL,IAAI,EAAE,cAAI,CAAC,IAAI,CACb,GAAG,EACH,SAAS,EACT,gBAAgB,EAChB,gBAAgB,EAChB,SAAS,CAAC,IAAI,CACf;QACD,IAAI,EAAE,SAAS,CAAC,IAAI;QACpB,MAAM,EAAE,SAAS,CAAC,MAAM;QACxB,IAAI,EAAE,SAAS,CAAC,IAAI;QACpB,QAAQ,EAAE,SAAS,CAAC,QAAQ;QAC5B,OAAO,EAAE,SAAS,CAAC,OAAO;QAC1B,WAAW,EAAE,SAAS,CAAC,WAAW;KACnC,CAAA;AACH,CAAC,CAAA;AAxBY,QAAA,gBAAgB,oBAwB5B;AAED,MAAa,KAAK;IAOhB,YAAY,KAAa,EAAE,UAAmB,kBAAO,CAAC,OAAO;QAC3D,IAAI,CAAC,KAAK,GAAG,KAAK,CAAA;QAElB,MAAM,SAAS,GAAG,IAAA,iCAAsB,EAAC,OAAO,CAAC,CAAA;QACjD,IAAI,CAAC,MAAM,GAAG,IAAI,iCAAe,CAAC,SAAS,CAAC,aAAa,CAAC,CAAA;QAC1D,IAAI,CAAC,cAAc,GAAG,sCAAqB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;IAC3D,CAAC;IAEK,kBAAkB;;YACtB,MAAM,EAAE,KAAK,EAAE,GAAG,IAAI,CAAA;YACtB,MAAM,SAAS,GAAG,MAAM,IAAI,CA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B,IAAI,KAAK,CAAC,WAAW,EAAE,KAAK,iBAAS,EAAE;YACrC,OAAO,cAAc,CAAC,eAAe,CAAC,KAAK,CAAC,CAAA;SAC7C;QAED,MAAM,OAAO,GAAG,KAAK,CAAC,UAAU,CAAC,OAAO,CAAC;YACvC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,OAAO,EAAE,EAAE,CAAC;YAC5B,CAAC,CAAC,KAAK,CAAA;QAET,OAAO,cAAc,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAA;IACjD,CAAC;IAEa,oBAAoB;;YAChC,MAAM,EAAE,cAAc,EAAE,GAAG,IAAI,CAAA;YAC/B,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,MAAM,IAAI,CAAC,eAAe,EAAE,CAAA;YAE1D,OAAO,cAAc,CAAC,eAAe,CAAC,MAAM,CAAC,CAAA;QAC/C,CAAC;KAAA;IAEa,iBAAiB;;YAC7B,MAAM,EAAE,KAAK,EAAE,GAAG,IAAI,CAAA;YAEtB,OAAO,KAAK,CAAC,UAAU,CAAC,MAAM,CAAC;gBAC7B,CAAC,CAAC,IAAI,CAAC,oBAAoB,EAAE;gBAC7B,CAAC,CAAC,IAAI,CAAC,sBAAsB,EAAE,CAAA;QACnC,CAAC;KAAA;CACF;AAlJD,sBAkJC"}
@@ -10,5 +10,4 @@ export { ChainGrpcMintApi } from './ChainGrpcMintApi';
10
10
  export { ChainGrpcOracleApi } from './ChainGrpcOracleApi';
11
11
  export { ChainGrpcPeggyApi } from './ChainGrpcPeggyApi';
12
12
  export { ChainGrpcStakingApi } from './ChainGrpcStakingApi';
13
- export { ChainGrpcTransactionApi } from './ChainGrpcTransactionApi';
14
13
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/client/chain/grpc/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAC3D,OAA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AACzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AACvD,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ChainGrpcTransactionApi = exports.ChainGrpcStakingApi = exports.ChainGrpcPeggyApi = exports.ChainGrpcOracleApi = exports.ChainGrpcMintApi = exports.ChainGrpcInsuranceFundApi = exports.ChainGrpcIbcApi = exports.ChainGrpcGovApi = exports.ChainGrpcExchangeApi = exports.ChainGrpcDistributionApi = exports.ChainGrpcBankApi = exports.ChainGrpcAuthApi = exports.ChainGrpcAuctionApi = void 0;
3
+ exports.ChainGrpcStakingApi = exports.ChainGrpcPeggyApi = exports.ChainGrpcOracleApi = exports.ChainGrpcMintApi = exports.ChainGrpcInsuranceFundApi = exports.ChainGrpcIbcApi = exports.ChainGrpcGovApi = exports.ChainGrpcExchangeApi = exports.ChainGrpcDistributionApi = exports.ChainGrpcBankApi = exports.ChainGrpcAuthApi = exports.ChainGrpcAuctionApi = void 0;
4
4
  var ChainGrpcAuctionApi_1 = require("./ChainGrpcAuctionApi");
5
5
  Object.defineProperty(exports, "ChainGrpcAuctionApi", { enumerable: true, get: function () { return ChainGrpcAuctionApi_1.ChainGrpcAuctionApi; } });
6
6
  var ChainGrpcAuthApi_1 = require("./ChainGrpcAuthApi");
@@ -25,6 +25,4 @@ var ChainGrpcPeggyApi_1 = require("./ChainGrpcPeggyApi");
25
25
  Object.defineProperty(exports, "ChainGrpcPeggyApi", { enumerable: true, get: function () { return ChainGrpcPeggyApi_1.ChainGrpcPeggyApi; } });
26
26
  var ChainGrpcStakingApi_1 = require("./ChainGrpcStakingApi");
27
27
  Object.defineProperty(exports, "ChainGrpcStakingApi", { enumerable: true, get: function () { return ChainGrpcStakingApi_1.ChainGrpcStakingApi; } });
28
- var ChainGrpcTransactionApi_1 = require("./ChainGrpcTransactionApi");
29
- Object.defineProperty(exports, "ChainGrpcTransactionApi", { enumerable: true, get: function () { return ChainGrpcTransactionApi_1.ChainGrpcTransactionApi; } });
30
28
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/client/chain/grpc/index.ts"],"names":[],"mappings":";;;AAAA,6DAA2D;AAAlD,0HAAA,mBAAmB,OAAA;AAC5B,uDAAqD;AAA5C,oHAAA,gBAAgB,OAAA;AACzB,uDAAqD;AAA5C,oHAAA,gBAAgB,OAAA;AACzB,uEAAqE;AAA5D,oIAAA,wBAAwB,OAAA;AACjC,+DAA6D;AAApD,4HAAA,oBAAoB,OAAA;AAC7B,qDAAmD;AAA1C,kHAAA,eAAe,OAAA;AACxB,qDAAmD;AAA1C,kHAAA,eAAe,OAAA;AACxB,yEAAuE;AAA9D,sIAAA,yBAAyB,OAAA;AAClC,uDAAqD;AAA5C,oHAAA,gBAAgB,OAAA;AACzB,2DAAyD;AAAhD,wHAAA,kBAAkB,OAAA;AAC3B,yDAAuD;AAA9C,sHAAA,iBAAiB,OAAA;AAC1B,6DAA2D;AAAlD,0HAAA,mBAAmB,OAAA;AAC5B,qEAAmE;AAA1D,kIAAA,uBAAuB,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/client/chain/grpc/index.ts"],"names":[],"mappings":";;;AAAA,6DAA2D;AAAlD,0HAAA,mBAAmB,OAAA;AAC5B,uDAAqD;AAA5C,oHAAA,gBAAgB,OAAA;AACzB,uDAAqD;AAA5C,oHAAA,gBAAgB,OAAA;AACzB,uEAAqE;AAA5D,oIAAA,wBAAwB,OAAA;AACjC,+DAA6D;AAApD,4HAAA,oBAAoB,OAAA;AAC7B,qDAAmD;AAA1C,kHAAA,eAAe,OAAA;AACxB,qDAAmD;AAA1C,kHAAA,eAAe,OAAA;AACxB,yEAAuE;AAA9D,sIAAA,yBAAyB,OAAA;AAClC,uDAAqD;AAA5C,oHAAA,gBAAgB,OAAA;AACzB,2DAAyD;AAAhD,wHAAA,kBAAkB,OAAA;AAC3B,yDAAuD;AAA9C,sHAAA,iBAAiB,OAAA;AAC1B,6DAA2D;AAAlD,0HAAA,mBAAmB,OAAA"}
@@ -1,7 +1,7 @@
1
1
  import { PrepareTxResponse, BroadcastTxResponse } from '@injectivelabs/exchange-api/injective_exchange_rpc_pb';
2
2
  import { AccountAddress, EthereumChainId } from '@injectivelabs/ts-types';
3
3
  import BaseConsumer from '../../BaseGrpcConsumer';
4
- export declare class ChainGrpcTransactionApi extends BaseConsumer {
4
+ export declare class ExchangeGrpcTransactionApi extends BaseConsumer {
5
5
  prepareTxRequest({ address, chainId, message, memo, estimateGas, gasLimit, feeDenom, feePrice, timeoutHeight, }: {
6
6
  address: AccountAddress;
7
7
  chainId: EthereumChainId;
@@ -32,4 +32,4 @@ export declare class ChainGrpcTransactionApi extends BaseConsumer {
32
32
  message: Record<string, any>;
33
33
  }): Promise<BroadcastTxResponse.AsObject>;
34
34
  }
35
- //# sourceMappingURL=ChainGrpcTransactionApi.d.ts.map
35
+ //# sourceMappingURL=ExchangeGrpcTransactionApi.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExchangeGrpcTransactionApi.d.ts","sourceRoot":"","sources":["../../../../src/client/exchange/grpc/ExchangeGrpcTransactionApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,iBAAiB,EAEjB,mBAAmB,EAGpB,MAAM,uDAAuD,CAAA;AAG9D,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAA;AAOzE,OAAO,YAAY,MAAM,wBAAwB,CAAA;AAGjD,qBAAa,0BAA2B,SAAQ,YAAY;IACpD,gBAAgB,CAAC,EACrB,OAAO,EACP,OAAO,EACP,OAAO,EACP,IAAI,EACJ,WAAkB,EAClB,QAA4B,EAC5B,QAAmC,EACnC,QAAmC,EACnC,aAAa,GACd,EAAE;QACD,OAAO,EAAE,cAAc,CAAA;QACvB,OAAO,EAAE,eAAe,CAAA;QACxB,OAAO,EAAE,GAAG,CAAA;QACZ,WAAW,CAAC,EAAE,OAAO,CAAA;QACrB,QAAQ,CAAC,EAAE,MAAM,CAAA;QACjB,IAAI,CAAC,EAAE,MAAM,CAAA;QACb,aAAa,CAAC,EAAE,MAAM,CAAA;QACtB,QAAQ,CAAC,EAAE,MAAM,CAAA;QACjB,QAAQ,CAAC,EAAE,MAAM,CAAA;KAClB;IA2CK,wBAAwB,CAAC,EAC7B,OAAO,EACP,OAAO,EACP,OAAO,EACP,IAAI,EACJ,WAAkB,EAClB,QAAiC,EACjC,QAAmC,EACnC,QAAmC,EACnC,aAAa,EACb,YAAY,GACb,EAAE;QACD,OAAO,EAAE,cAAc,CAAA;QACvB,OAAO,EAAE,eAAe,CAAA;QACxB,OAAO,EAAE,GAAG,CAAA;QACZ,WAAW,CAAC,EAAE,OAAO,CAAA;QACrB,QAAQ,CAAC,EAAE,MAAM,CAAA;QACjB,IAAI,CAAC,EAAE,MAAM,CAAA;QACb,QAAQ,CAAC,EAAE,MAAM,CAAA;QACjB,QAAQ,CAAC,EAAE,MAAM,CAAA;QACjB,aAAa,CAAC,EAAE,MAAM,CAAA;QACtB,YAAY,CAAC,EAAE,OAAO,CAAA;KACvB;IA+CK,kBAAkB,CAAC,EACvB,SAAS,EACT,OAAO,EACP,OAAO,EACP,UAAU,GACX,EAAE;QACD,SAAS,EAAE,MAAM,CAAA;QACjB,OAAO,EAAE,eAAe,CAAA;QACxB,UAAU,EAAE,iBAAiB,CAAA;QAC7B,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;KAC7B;CAuCF"}
@@ -12,14 +12,14 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
12
12
  return (mod && mod.__esModule) ? mod : { "default": mod };
13
13
  };
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.ChainGrpcTransactionApi = void 0;
15
+ exports.ExchangeGrpcTransactionApi = void 0;
16
16
  const injective_exchange_rpc_pb_1 = require("@injectivelabs/exchange-api/injective_exchange_rpc_pb");
17
17
  const injective_exchange_rpc_pb_service_1 = require("@injectivelabs/exchange-api/injective_exchange_rpc_pb_service");
18
18
  const coin_pb_1 = require("@injectivelabs/chain-api/cosmos/base/v1beta1/coin_pb");
19
19
  const utils_1 = require("@injectivelabs/utils");
20
20
  const BaseGrpcConsumer_1 = __importDefault(require("../../BaseGrpcConsumer"));
21
21
  const transaction_1 = require("../../../utils/transaction");
22
- class ChainGrpcTransactionApi extends BaseGrpcConsumer_1.default {
22
+ class ExchangeGrpcTransactionApi extends BaseGrpcConsumer_1.default {
23
23
  prepareTxRequest({ address, chainId, message, memo, estimateGas = true, gasLimit = utils_1.DEFAULT_GAS_LIMIT, feeDenom = utils_1.DEFAULT_BRIDGE_FEE_DENOM, feePrice = utils_1.DEFAULT_BRIDGE_FEE_PRICE, timeoutHeight, }) {
24
24
  return __awaiter(this, void 0, void 0, function* () {
25
25
  const txFeeAmount = new coin_pb_1.Coin();
@@ -118,5 +118,5 @@ class ChainGrpcTransactionApi extends BaseGrpcConsumer_1.default {
118
118
  });
119
119
  }
120
120
  }
121
- exports.ChainGrpcTransactionApi = ChainGrpcTransactionApi;
122
- //# sourceMappingURL=ChainGrpcTransactionApi.js.map
121
+ exports.ExchangeGrpcTransactionApi = ExchangeGrpcTransactionApi;
122
+ //# sourceMappingURL=ExchangeGrpcTransactionApi.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExchangeGrpcTransactionApi.js","sourceRoot":"","sources":["../../../../src/client/exchange/grpc/ExchangeGrpcTransactionApi.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,qGAO8D;AAC9D,qHAAoG;AACpG,kFAA2E;AAE3E,gDAK6B;AAC7B,8EAAiD;AACjD,4DAAwE;AAExE,MAAa,0BAA2B,SAAQ,0BAAY;IACpD,gBAAgB,CAAC,EACrB,OAAO,EACP,OAAO,EACP,OAAO,EACP,IAAI,EACJ,WAAW,GAAG,IAAI,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AkB,CAAC,KAAK,CACtB,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,eAAe,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC,CAC7D,CAAA;YACD,kBAAkB,CAAC,WAAW,CAAC,UAAU,CAAC,WAAW,EAAE,CAAC,CAAA;YACxD,kBAAkB,CAAC,cAAc,CAAC,UAAU,CAAC,cAAc,EAAE,CAAC,CAAA;YAE9D,MAAM,eAAe,GAAG,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAA;YACpE,MAAM,YAAY,GAAG,eAAe,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CACnD,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC,CAC7C,CAAA;YACD,kBAAkB,CAAC,WAAW,CAAC,YAAY,CAAC,CAAA;YAE5C,IAAI;gBACF,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,OAAO,CAIjC,kBAAkB,EAAE,wDAAoB,CAAC,WAAW,CAAC,CAAA;gBAEvD,OAAO,QAAQ,CAAC,QAAQ,EAAE,CAAA;aAC3B;YAAC,OAAO,CAAM,EAAE;gBACf,MAAM,IAAI,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,CAAA;aAC3B;QACH,CAAC;KAAA;CACF;AAtLD,gEAsLC"}
@@ -6,4 +6,5 @@ export { ExchangeGrpcOracleApi } from './ExchangeGrpcOracleApi';
6
6
  export { ExchangeGrpcInsuranceFundApi } from './ExchangeGrpcInsuranceFundApi';
7
7
  export { ExchangeGrpcDerivativesApi } from './ExchangeGrpcDerivativesApi';
8
8
  export { ExchangeGrpcSpotApi } from './ExchangeGrpcSpotApi';
9
+ export { ExchangeGrpcTransactionApi } from './ExchangeGrpcTransactionApi';
9
10
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/client/exchange/grpc/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAA;AACjE,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAA;AACjE,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAA;AACnE,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAC3D,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAA;AAC/D,OAAO,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAA;AAC7E,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAA;AACzE,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/client/exchange/grpc/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAA;AACjE,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAA;AACjE,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAA;AACnE,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAC3D,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAA;AAC/D,OAAO,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAA;AAC7E,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAA;AACzE,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAC3D,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAA"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ExchangeGrpcSpotApi = exports.ExchangeGrpcDerivativesApi = exports.ExchangeGrpcInsuranceFundApi = exports.ExchangeGrpcOracleApi = exports.ExchangeGrpcMetaApi = exports.ExchangeGrpcExplorerApi = exports.ExchangeGrpcAuctionApi = exports.ExchangeGrpcAccountApi = void 0;
3
+ exports.ExchangeGrpcTransactionApi = exports.ExchangeGrpcSpotApi = exports.ExchangeGrpcDerivativesApi = exports.ExchangeGrpcInsuranceFundApi = exports.ExchangeGrpcOracleApi = exports.ExchangeGrpcMetaApi = exports.ExchangeGrpcExplorerApi = exports.ExchangeGrpcAuctionApi = exports.ExchangeGrpcAccountApi = void 0;
4
4
  var ExchangeGrpcAccountApi_1 = require("./ExchangeGrpcAccountApi");
5
5
  Object.defineProperty(exports, "ExchangeGrpcAccountApi", { enumerable: true, get: function () { return ExchangeGrpcAccountApi_1.ExchangeGrpcAccountApi; } });
6
6
  var ExchangeGrpcAuctionApi_1 = require("./ExchangeGrpcAuctionApi");
@@ -17,4 +17,6 @@ var ExchangeGrpcDerivativesApi_1 = require("./ExchangeGrpcDerivativesApi");
17
17
  Object.defineProperty(exports, "ExchangeGrpcDerivativesApi", { enumerable: true, get: function () { return ExchangeGrpcDerivativesApi_1.ExchangeGrpcDerivativesApi; } });
18
18
  var ExchangeGrpcSpotApi_1 = require("./ExchangeGrpcSpotApi");
19
19
  Object.defineProperty(exports, "ExchangeGrpcSpotApi", { enumerable: true, get: function () { return ExchangeGrpcSpotApi_1.ExchangeGrpcSpotApi; } });
20
+ var ExchangeGrpcTransactionApi_1 = require("./ExchangeGrpcTransactionApi");
21
+ Object.defineProperty(exports, "ExchangeGrpcTransactionApi", { enumerable: true, get: function () { return ExchangeGrpcTransactionApi_1.ExchangeGrpcTransactionApi; } });
20
22
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/client/exchange/grpc/index.ts"],"names":[],"mappings":";;;AAAA,mEAAiE;AAAxD,gIAAA,sBAAsB,OAAA;AAC/B,mEAAiE;AAAxD,gIAAA,sBAAsB,OAAA;AAC/B,qEAAmE;AAA1D,kIAAA,uBAAuB,OAAA;AAChC,6DAA2D;AAAlD,0HAAA,mBAAmB,OAAA;AAC5B,iEAA+D;AAAtD,8HAAA,qBAAqB,OAAA;AAC9B,+EAA6E;AAApE,4IAAA,4BAA4B,OAAA;AACrC,2EAAyE;AAAhE,wIAAA,0BAA0B,OAAA;AACnC,6DAA2D;AAAlD,0HAAA,mBAAmB,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/client/exchange/grpc/index.ts"],"names":[],"mappings":";;;AAAA,mEAAiE;AAAxD,gIAAA,sBAAsB,OAAA;AAC/B,mEAAiE;AAAxD,gIAAA,sBAAsB,OAAA;AAC/B,qEAAmE;AAA1D,kIAAA,uBAAuB,OAAA;AAChC,6DAA2D;AAAlD,0HAAA,mBAAmB,OAAA;AAC5B,iEAA+D;AAAtD,8HAAA,qBAAqB,OAAA;AAC9B,+EAA6E;AAApE,4IAAA,4BAA4B,OAAA;AACrC,2EAAyE;AAAhE,wIAAA,0BAA0B,OAAA;AACnC,6DAA2D;AAAlD,0HAAA,mBAAmB,OAAA;AAC5B,2EAAyE;AAAhE,wIAAA,0BAA0B,OAAA"}
@@ -1,8 +1,8 @@
1
1
  import BaseRestConsumer from '../../BaseRestConsumer';
2
- import { BlockWithTxs, Transaction, ExplorerValidatorUptime } from '../types/explorer-rest';
2
+ import { ExplorerBlockWithTxs, ExplorerTransaction, ExplorerValidatorUptime } from '../types/explorer-rest';
3
3
  import { Block, ExplorerValidator } from '../types/explorer';
4
4
  export declare class ExchangeRestExplorerApi extends BaseRestConsumer {
5
- fetchBlock(blockHashHeight: string): Promise<BlockWithTxs>;
5
+ fetchBlock(blockHashHeight: string): Promise<ExplorerBlockWithTxs>;
6
6
  fetchBlocks(params?: {
7
7
  limit?: number;
8
8
  }): Promise<Block[]>;
@@ -11,7 +11,7 @@ export declare class ExchangeRestExplorerApi extends BaseRestConsumer {
11
11
  limit?: number;
12
12
  }): Promise<{
13
13
  total: number;
14
- blocks: BlockWithTxs[];
14
+ blocks: ExplorerBlockWithTxs[];
15
15
  }>;
16
16
  fetchTransactions(params?: {
17
17
  before?: number;
@@ -19,7 +19,7 @@ export declare class ExchangeRestExplorerApi extends BaseRestConsumer {
19
19
  skip?: number;
20
20
  }): Promise<{
21
21
  total: number;
22
- transactions: Transaction[];
22
+ transactions: ExplorerTransaction[];
23
23
  }>;
24
24
  fetchAccountTransactions({ account, before, limit, skip, }: {
25
25
  account: string;
@@ -28,9 +28,9 @@ export declare class ExchangeRestExplorerApi extends BaseRestConsumer {
28
28
  skip?: number;
29
29
  }): Promise<{
30
30
  total: number;
31
- transactions: Transaction[];
31
+ transactions: ExplorerTransaction[];
32
32
  }>;
33
- fetchTransaction(hash: string): Promise<Transaction>;
33
+ fetchTransaction(hash: string): Promise<ExplorerTransaction>;
34
34
  fetchValidators(): Promise<Partial<ExplorerValidator>[]>;
35
35
  fetchValidatorUptime(validatorConsensusAddress: string): Promise<ExplorerValidatorUptime[]>;
36
36
  }
@@ -1 +1 @@
1
- {"version":3,"file":"ExchangeRestExplorerApi.d.ts","sourceRoot":"","sources":["../../../../src/client/exchange/rest/ExchangeRestExplorerApi.ts"],"names":[],"mappings":"AAAA,OAAO,gBAAgB,MAAM,wBAAwB,CAAA;AACrD,OAAO,EAGL,YAAY,EAEZ,WAAW,EAEX,uBAAuB,EACxB,MAAM,wBAAwB,CAAA;AAQ/B,OAAO,EAAE,KAAK,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAA;AAE5D,qBAAa,uBAAwB,SAAQ,gBAAgB;IACrD,UAAU,CAAC,eAAe,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC;IAkB1D,WAAW,CAAC,MAAM,CAAC,EAAE;QAAE,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,KAAK,EAAE,CAAC;IAa1D,iBAAiB,CAAC,MAAM,CAAC,EAAE;QAC/B,MAAM,CAAC,EAAE,MAAM,CAAA;QACf,KAAK,CAAC,EA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1,13 +1,13 @@
1
1
  import { Block, ExplorerValidator } from '../types/explorer';
2
- import { BlockFromExplorerApiResponse, BlockWithTxs, BaseTransaction, Transaction, TransactionFromExplorerApiResponse, ValidatorUptimeFromExplorerApiResponse, ExplorerValidatorUptime } from '../types/explorer-rest';
2
+ import { BlockFromExplorerApiResponse, ExplorerBlockWithTxs, BaseTransaction, ExplorerTransaction, TransactionFromExplorerApiResponse, ValidatorUptimeFromExplorerApiResponse, ExplorerValidatorUptime } from '../types/explorer-rest';
3
3
  export declare class ExchangeRestExplorerTransformer {
4
4
  static blockToBlock(block: BlockFromExplorerApiResponse): Block;
5
5
  static blocksToBlocks(blocks: BlockFromExplorerApiResponse[]): Block[];
6
- static transactionToTransaction(transaction: TransactionFromExplorerApiResponse): Transaction;
7
- static transactionsToTransactions(transactions: TransactionFromExplorerApiResponse[]): Transaction[];
8
- static blockWithTxToBlockWithTx(block: BlockFromExplorerApiResponse): BlockWithTxs;
9
- static blocksWithTxsToBlocksWithTxs(blocks: BlockFromExplorerApiResponse[]): BlockWithTxs[];
10
- static baseTransactionToTransaction(transaction: BaseTransaction): Transaction;
6
+ static transactionToTransaction(transaction: TransactionFromExplorerApiResponse): ExplorerTransaction;
7
+ static transactionsToTransactions(transactions: TransactionFromExplorerApiResponse[]): ExplorerTransaction[];
8
+ static blockWithTxToBlockWithTx(block: BlockFromExplorerApiResponse): ExplorerBlockWithTxs;
9
+ static blocksWithTxsToBlocksWithTxs(blocks: BlockFromExplorerApiResponse[]): ExplorerBlockWithTxs[];
10
+ static baseTransactionToTransaction(transaction: BaseTransaction): ExplorerTransaction;
11
11
  static validatorExplorerToValidator(validators: any[]): Partial<ExplorerValidator>[];
12
12
  static validatorUptimeToExplorerValidatorUptime(validatorUptimeList: ValidatorUptimeFromExplorerApiResponse[]): ExplorerValidatorUptime[];
13
13
  }
@@ -1 +1 @@
1
- {"version":3,"file":"ExchangeRestExplorerTransformer.d.ts","sourceRoot":"","sources":["../../../../src/client/exchange/transformers/ExchangeRestExplorerTransformer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAA;AAC5D,OAAO,EACL,4BAA4B,EAC5B,YAAY,EACZ,eAAe,EACf,WAAW,EACX,kCAAkC,EAClC,sCAAsC,EACtC,uBAAuB,EACxB,MAAM,wBAAwB,CAAA;AAE/B,qBAAa,+BAA+B;IAC1C,MAAM,CAAC,YAAY,CAAC,KAAK,EAAE,4BAA4B,GAAG,KAAK;IAa/D,MAAM,CAAC,cAAc,CAAC,MAAM,EAAE,4BAA4B,EAAE,GAAG,KAAK,EAAE;IAItE,MAAM,CAAC,wBAAwB,CAC7B,WAAW,EAAE,kCAAkC,GAC9C,WAAW;IA6Bd,MAAM,CAAC,0BAA0B,CAC/B,YAAY,EAAE,kCAAkC,EAAE,GACjD,WAAW,EAAE;IAMhB,MAAM,CAAC,wBAAwB,CAC7B,KAAK,EAAE,4BAA4B,GAClC,YAAY;IAgBf,MAAM,CAAC,4BAA4B,CACjC,MAAM,EAAE,4BAA4B,EAAE,GACrC,YAAY,EAAE;IAIjB,MAAM,CAAC,4BAA4B,CACjC,WAAW,EAAE,eAAe,GAC3B,WAAW;IAWd,MAAM,CAAC,4BAA4B,CACjC,UAAU,EAAE,GAAG,EAAE,GAChB,OAAO,CAAC,iBAAiB,CAAC,EAAE;IAY/B,MAAM,CAAC,wCAAwC,CAC7C,mBAAmB,EAAE,sCAAsC,EAAE,GAC5D,uBAAuB,EAAE;CAQ7B"}
1
+ {"version":3,"file":"ExchangeRestExplorerTransformer.d.ts","sourceRoot":"","sources":["../../../../src/client/exchange/transformers/ExchangeRestExplorerTransformer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAA;AAC5D,OAAO,EACL,4BAA4B,EAC5B,oBAAoB,EACpB,eAAe,EACf,mBAAmB,EACnB,kCAAkC,EAClC,sCAAsC,EACtC,uBAAuB,EACxB,MAAM,wBAAwB,CAAA;AAE/B,qBAAa,+BAA+B;IAC1C,MAAM,CAAC,YAAY,CAAC,KAAK,EAAE,4BAA4B,GAAG,KAAK;IAa/D,MAAM,CAAC,cAAc,CAAC,MAAM,EAAE,4BAA4B,EAAE,GAAG,KAAK,EAAE;IAItE,MAAM,CAAC,wBAAwB,CAC7B,WAAW,EAAE,kCAAkC,GAC9C,mBAAmB;IA6BtB,MAAM,CAAC,0BAA0B,CAC/B,YAAY,EAAE,kCAAkC,EAAE,GACjD,mBAAmB,EAAE;IAMxB,MAAM,CAAC,wBAAwB,CAC7B,KAAK,EAAE,4BAA4B,GAClC,oBAAoB;IAgBvB,MAAM,CAAC,4BAA4B,CACjC,MAAM,EAAE,4BAA4B,EAAE,GACrC,oBAAoB,EAAE;IAIzB,MAAM,CAAC,4BAA4B,CACjC,WAAW,EAAE,eAAe,GAC3B,mBAAmB;IAWtB,MAAM,CAAC,4BAA4B,CACjC,UAAU,EAAE,GAAG,EAAE,GAChB,OAAO,CAAC,iBAAiB,CAAC,EAAE;IAY/B,MAAM,CAAC,wCAAwC,CAC7C,mBAAmB,EAAE,sCAAsC,EAAE,GAC5D,uBAAuB,EAAE;CAQ7B"}
@@ -1,14 +1,15 @@
1
- export * from './ExchangeGrpcDerivativeTransformer';
1
+ export * from './ExchangeAccountStreamTransformer';
2
+ export * from './ExchangeAuctionStreamTransformer';
2
3
  export * from './ExchangeDerivativeStreamTransformer';
3
- export * from './ExchangeGrpcSpotTransformer';
4
- export * from './ExchangeSpotStreamTransformer';
4
+ export * from './ExchangeExplorerStreamTransformer';
5
5
  export * from './ExchangeGrpcAccountTransformer';
6
- export * from './ExchangeAccountStreamTransformer';
6
+ export * from './ExchangeGrpcDerivativeTransformer';
7
+ export * from './ExchangeGrpcSpotTransformer';
8
+ export * from './ExchangeGrpcOracleTransformer';
7
9
  export * from './ExchangeGrpcAuctionTransformer';
8
- export * from './ExchangeAuctionStreamTransformer';
9
- export * from './ExchangeOracleStreamTransformer';
10
10
  export * from './ExchangeGrpcExplorerTransformer';
11
- export * from './ExchangeExplorerStreamTransformer';
12
- export * from './ExchangeRestExplorerTransformer';
13
11
  export * from './ExchangeGrpcInsuranceFundTransformer';
12
+ export * from './ExchangeOracleStreamTransformer';
13
+ export * from './ExchangeRestExplorerTransformer';
14
+ export * from './ExchangeSpotStreamTransformer';
14
15
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/client/exchange/transformers/index.ts"],"names":[],"mappings":"AAAA,cAAc,qCAAqC,CAAA;AACnD,cAAc,uCAAuC,CAAA;AACrD,cAAc,+BAA+B,CAAA;AAC7C,cAAc,iCAAiC,CAAA;AAC/C,cAAc,kCAAkC,CAAA;AAChD,cAAc,oCAAoC,CAAA;AAClD,cAAc,kCAAkC,CAAA;AAChD,cAAc,oCAAoC,CAAA;AAClD,cAAc,mCAAmC,CAAA;AACjD,cAAc,mCAAmC,CAAA;AACjD,cAAc,qCAAqC,CAAA;AACnD,cAAc,mCAAmC,CAAA;AACjD,cAAc,wCAAwC,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/client/exchange/transformers/index.ts"],"names":[],"mappings":"AAAA,cAAc,oCAAoC,CAAA;AAClD,cAAc,oCAAoC,CAAA;AAClD,cAAc,uCAAuC,CAAA;AACrD,cAAc,qCAAqC,CAAA;AACnD,cAAc,kCAAkC,CAAA;AAChD,cAAc,qCAAqC,CAAA;AACnD,cAAc,+BAA+B,CAAA;AAC7C,cAAc,iCAAiC,CAAA;AAC/C,cAAc,kCAAkC,CAAA;AAChD,cAAc,mCAAmC,CAAA;AACjD,cAAc,wCAAwC,CAAA;AACtD,cAAc,mCAAmC,CAAA;AACjD,cAAc,mCAAmC,CAAA;AACjD,cAAc,iCAAiC,CAAA"}
@@ -10,17 +10,18 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
10
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
11
  };
12
12
  Object.defineProperty(exports, "__esModule", { value: true });
13
- __exportStar(require("./ExchangeGrpcDerivativeTransformer"), exports);
13
+ __exportStar(require("./ExchangeAccountStreamTransformer"), exports);
14
+ __exportStar(require("./ExchangeAuctionStreamTransformer"), exports);
14
15
  __exportStar(require("./ExchangeDerivativeStreamTransformer"), exports);
15
- __exportStar(require("./ExchangeGrpcSpotTransformer"), exports);
16
- __exportStar(require("./ExchangeSpotStreamTransformer"), exports);
16
+ __exportStar(require("./ExchangeExplorerStreamTransformer"), exports);
17
17
  __exportStar(require("./ExchangeGrpcAccountTransformer"), exports);
18
- __exportStar(require("./ExchangeAccountStreamTransformer"), exports);
18
+ __exportStar(require("./ExchangeGrpcDerivativeTransformer"), exports);
19
+ __exportStar(require("./ExchangeGrpcSpotTransformer"), exports);
20
+ __exportStar(require("./ExchangeGrpcOracleTransformer"), exports);
19
21
  __exportStar(require("./ExchangeGrpcAuctionTransformer"), exports);
20
- __exportStar(require("./ExchangeAuctionStreamTransformer"), exports);
21
- __exportStar(require("./ExchangeOracleStreamTransformer"), exports);
22
22
  __exportStar(require("./ExchangeGrpcExplorerTransformer"), exports);
23
- __exportStar(require("./ExchangeExplorerStreamTransformer"), exports);
24
- __exportStar(require("./ExchangeRestExplorerTransformer"), exports);
25
23
  __exportStar(require("./ExchangeGrpcInsuranceFundTransformer"), exports);
24
+ __exportStar(require("./ExchangeOracleStreamTransformer"), exports);
25
+ __exportStar(require("./ExchangeRestExplorerTransformer"), exports);
26
+ __exportStar(require("./ExchangeSpotStreamTransformer"), exports);
26
27
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/client/exchange/transformers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,sEAAmD;AACnD,wEAAqD;AACrD,gEAA6C;AAC7C,kEAA+C;AAC/C,mEAAgD;AAChD,qEAAkD;AAClD,mEAAgD;AAChD,qEAAkD;AAClD,oEAAiD;AACjD,oEAAiD;AACjD,sEAAmD;AACnD,oEAAiD;AACjD,yEAAsD"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/client/exchange/transformers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qEAAkD;AAClD,qEAAkD;AAClD,wEAAqD;AACrD,sEAAmD;AACnD,mEAAgD;AAChD,sEAAmD;AACnD,gEAA6C;AAC7C,kEAA+C;AAC/C,mEAAgD;AAChD,oEAAiD;AACjD,yEAAsD;AACtD,oEAAiD;AACjD,oEAAiD;AACjD,kEAA+C"}
@@ -63,17 +63,17 @@ export interface Message {
63
63
  type: string;
64
64
  message: any;
65
65
  }
66
- export interface Transaction extends Omit<BaseTransaction, 'messages'> {
66
+ export interface ExplorerTransaction extends Omit<BaseTransaction, 'messages'> {
67
67
  memo: string;
68
68
  messages: Message[];
69
69
  parsedMessages?: Message[];
70
70
  }
71
71
  export declare type TransactionListItem = {
72
72
  key: number;
73
- list: Transaction[];
73
+ list: ExplorerTransaction[];
74
74
  };
75
- export interface BlockWithTxs extends Omit<BaseBlockWithTxs, 'txs'> {
76
- txs: Transaction[];
75
+ export interface ExplorerBlockWithTxs extends Omit<BaseBlockWithTxs, 'txs'> {
76
+ txs: ExplorerTransaction[];
77
77
  }
78
78
  export declare enum ValidatorUptimeStatus {
79
79
  Proposed = "proposed",
@@ -1 +1 @@
1
- {"version":3,"file":"explorer-rest.d.ts","sourceRoot":"","sources":["../../../../src/client/exchange/types/explorer-rest.ts"],"names":[],"mappings":"AACA,OAAO,EACL,YAAY,IAAI,gBAAgB,EAChC,WAAW,IAAI,eAAe,EAC9B,eAAe,EAChB,MAAM,YAAY,CAAA;AAEnB,MAAM,WAAW,mBAAmB,CAAC,CAAC;IACpC,IAAI,EAAE;QACJ,MAAM,EAAE,GAAG,CAAA;QACX,IAAI,EAAE,CAAC,CAAA;KACR,CAAA;CACF;AAED,MA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AA;IACjB,GAAG,EAAE,kCAAkC,EAAE,CAAA;CAC1C;AAED,MAAM,WAAW,8BAA8B;IAC7C,MAAM,EAAE,GAAG,CAAA;IACX,IAAI,EAAE,kCAAkC,EAAE,CAAA;CAC3C;AAED,MAAM,WAAW,wBAAwB;IACvC,MAAM,EAAE,GAAG,CAAA;IACX,IAAI,EAAE,4BAA4B,EAAE,CAAA;CACrC;AAED,MAAM,WAAW,OAAO;IACtB,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,GAAG,CAAA;CACb;AAED,MAAM,WAAW,WAAY,SAAQ,IAAI,CAAC,eAAe,EAAE,UAAU,CAAC;IACpE,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,OAAO,EAAE,CAAA;IACnB,cAAc,CAAC,EAAE,OAAO,EAAE,CAAA;CAC3B;AAED,oBAAY,mBAAmB,GAAG;IAChC,GAAG,EAAE,MAAM,CAAA;IACX,IAAI,EAAE,WAAW,EAAE,CAAA;CACpB,CAAA;AAED,MAAM,WAAW,YAAa,SAAQ,IAAI,CAAC,gBAAgB,EAAE,KAAK,CAAC;IACjE,GAAG,EAAE,WAAW,EAAE,CAAA;CACnB;AAED,oBAAY,qBAAqB;IAC/B,QAAQ,aAAa;IACrB,MAAM,WAAW;IACjB,MAAM,WAAW;CAClB;AAED,MAAM,WAAW,sCAAsC;IACrD,YAAY,EAAE,MAAM,CAAA;IACpB,MAAM,EAAE,qBAAqB,CAAA;CAC9B;AAED,MAAM,WAAW,uBACf,SAAQ,IAAI,CAAC,eAAe,EAAE,QAAQ,CAAC;IACvC,MAAM,EAAE,qBAAqB,CAAA;CAC9B;AAED,OAAO,EAAE,eAAe,EAAE,CAAA"}
1
+ {"version":3,"file":"explorer-rest.d.ts","sourceRoot":"","sources":["../../../../src/client/exchange/types/explorer-rest.ts"],"names":[],"mappings":"AACA,OAAO,EACL,YAAY,IAAI,gBAAgB,EAChC,WAAW,IAAI,eAAe,EAC9B,eAAe,EAChB,MAAM,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5,7 @@ export * from './spot';
5
5
  export * from './spot-rest';
6
6
  export * from './account';
7
7
  export * from './explorer';
8
+ export * from './explorer-rest';
8
9
  export * from './auction';
9
10
  export * from './oracle';
10
11
  export * from './insurance-funds';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/client/exchange/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA;AAC1B,cAAc,eAAe,CAAA;AAC7B,cAAc,oBAAoB,CAAA;AAClC,cAAc,QAAQ,CAAA;AACtB,cAAc,aAAa,CAAA;AAC3B,cAAc,WAAW,CAAA;AACzB,cAAc,YAAY,CAAA;AAC1B,cAAc,WAAW,CAAA;AACzB,cAAc,UAAU,CAAA;AACxB,cAAc,mBAAmB,CAAA;AAEjC,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,GAAG,CAAA;CACd"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/client/exchange/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA;AAC1B,cAAc,eAAe,CAAA;AAC7B,cAAc,oBAAoB,CAAA;AAClC,cAAc,QAAQ,CAAA;AACtB,cAAc,aAAa,CAAA;AAC3B,cAAc,WAAW,CAAA;AACzB,cAAc,YAAY,CAAA;AAC1B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,WAAW,CAAA;AACzB,cAAc,UAAU,CAAA;AACxB,cAAc,mBAAmB,CAAA;AAEjC,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,GAAG,CAAA;CACd"}
@@ -17,6 +17,7 @@ __exportStar(require("./spot"), exports);
17
17
  __exportStar(require("./spot-rest"), exports);
18
18
  __exportStar(require("./account"), exports);
19
19
  __exportStar(require("./explorer"), exports);
20
+ __exportStar(require("./explorer-rest"), exports);
20
21
  __exportStar(require("./auction"), exports);
21
22
  __exportStar(require("./oracle"), exports);
22
23
  __exportStar(require("./insurance-funds"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/client/exchange/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA0B;AAC1B,gDAA6B;AAC7B,qDAAkC;AAClC,yCAAsB;AACtB,8CAA2B;AAC3B,4CAAyB;AACzB,6CAA0B;AAC1B,4CAAyB;AACzB,2CAAwB;AACxB,oDAAiC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/client/exchange/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA0B;AAC1B,gDAA6B;AAC7B,qDAAkC;AAClC,yCAAsB;AACtB,8CAA2B;AAC3B,4CAAyB;AACzB,6CAA0B;AAC1B,kDAA+B;AAC/B,4CAAyB;AACzB,2CAAwB;AACxB,oDAAiC"}
@@ -3,10 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.recoverTypedSignaturePubKey = void 0;
4
4
  const ethereumjs_util_1 = require("ethereumjs-util");
5
5
  const secp256k1_1 = require("secp256k1");
6
- const eth_sig_util_1 = require("eth-sig-util");
6
+ const eth_sig_util_1 = require("@metamask/eth-sig-util");
7
7
  const recoverTypedSignaturePubKey = (data, signature) => {
8
8
  const compressedPubKeyPrefix = Buffer.from('04', 'hex');
9
- const message = eth_sig_util_1.TypedDataUtils.sign(data);
9
+ const message = eth_sig_util_1.TypedDataUtils.eip712Hash(data, eth_sig_util_1.SignTypedDataVersion.V4);
10
10
  const sigParams = (0, ethereumjs_util_1.fromRpcSig)(signature);
11
11
  const publicKey = (0, ethereumjs_util_1.ecrecover)(message, sigParams.v, sigParams.r, sigParams.s);
12
12
  const prefixedKey = Buffer.concat([compressedPubKeyPrefix, publicKey]);
@@ -1 +1 @@
1
- {"version":3,"file":"transaction.js","sourceRoot":"","sources":["../../src/utils/transaction.ts"],"names":[],"mappings":";;;AAAA,qDAAuD;AACvD,yCAA4C;AAC5C,+CAA6C;AAEtC,MAAM,2BAA2B,GAAG,CACzC,IAAS,EACT,SAAiB,EACT,EAAE;IACV,MAAM,sBAAsB,GAAG,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC,CAAA;IACvD,MAAM,OAAO,GAAG,6BAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;IACzC,MAAM,SAAS,GAAG,IAAA,4BAAU,EAAC,SAAS,CAAC,CAAA;IACvC,MAAM,SAAS,GAAG,IAAA,2BAAS,EAAC,OAAO,EAAE,SAAS,CAAC,CAAC,EAAE,SAAS,CAAC,CAAC,EAAE,SAAS,CAAC,CAAC,CAAC,CAAA;IAC3E,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,sBAAsB,EAAE,SAAS,CAAC,CAAC,CAAA;IACtE,MAAM,aAAa,GAAG,MAAM,CAAC,IAAI,CAAC,IAAA,4BAAgB,EAAC,WAAW,CAAC,CAAC,CAAA;IAEhE,OAAO,KAAK,aAAa,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAA;AAC7C,CAAC,CAAA;AAZY,QAAA,2BAA2B,+BAYvC"}
1
+ {"version":3,"file":"transaction.js","sourceRoot":"","sources":["../../src/utils/transaction.ts"],"names":[],"mappings":";;;AAAA,qDAAuD;AACvD,yCAA4C;AAC5C,yDAA6E;AAEtE,MAAM,2BAA2B,GAAG,CACzC,IAAS,EACT,SAAiB,EACT,EAAE;IACV,MAAM,sBAAsB,GAAG,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC,CAAA;IACvD,MAAM,OAAO,GAAG,6BAAc,CAAC,UAAU,CAAC,IAAI,EAAE,mCAAoB,CAAC,EAAE,CAAC,CAAA;IACxE,MAAM,SAAS,GAAG,IAAA,4BAAU,EAAC,SAAS,CAAC,CAAA;IACvC,MAAM,SAAS,GAAG,IAAA,2BAAS,EAAC,OAAO,EAAE,SAAS,CAAC,CAAC,EAAE,SAAS,CAAC,CAAC,EAAE,SAAS,CAAC,CAAC,CAAC,CAAA;IAC3E,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,sBAAsB,EAAE,SAAS,CAAC,CAAC,CAAA;IACtE,MAAM,aAAa,GAAG,MAAM,CAAC,IAAI,CAAC,IAAA,4BAAgB,EAAC,WAAW,CAAC,CAAC,CAAA;IAEhE,OAAO,KAAK,aAAa,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAA;AAC7C,CAAC,CAAA;AAZY,QAAA,2BAA2B,+BAYvC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@injectivelabs/sdk-ts",
3
3
  "description": "SDK in TypeScript for building Injective applications in a Node environment.",
4
- "version": "0.0.64",
4
+ "version": "0.0.67",
5
5
  "license": "MIT",
6
6
  "author": {
7
7
  "name": "Bojan Angjelkoski",
@@ -40,8 +40,8 @@
40
40
  "@injectivelabs/networks": "^0.5.10",
41
41
  "@injectivelabs/token-metadata": "^0.5.28",
42
42
  "@injectivelabs/ts-types": "^0.5.4",
43
- "@injectivelabs/tx-utils": "^0.5.2",
44
43
  "@injectivelabs/utils": "^0.5.7",
44
+ "@metamask/eth-sig-util": "^4.0.1",
45
45
  "@types/google-protobuf": "^3.15.5",
46
46
  "bech32": "^2.0.0",
47
47
  "bip32": "^3.0.1",
@@ -58,5 +58,5 @@
58
58
  "snakecase-keys": "^5.4.1",
59
59
  "tiny-secp256k1": "^2.2.1"
60
60
  },
61
- "gitHead": "23ae8d43e2399cf188fcc90eb6a352864defa02a"
61
+ "gitHead": "fe1050fcc442e8f8893e318cec0487ee5228c5f5"
62
62
  }
@@ -1 +0,0 @@
1
- {"version":3,"file":"ChainGrpcTransactionApi.d.ts","sourceRoot":"","sources":["../../../../src/client/chain/grpc/ChainGrpcTransactionApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,iBAAiB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