injectivejs 1.6.4 → 1.6.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +230 -24
- package/binary.d.ts +1 -1
- package/binary.js +1 -1
- package/esm/binary.js +1 -1
- package/esm/extern.js +1 -1
- package/esm/helper-func-types.js +1 -1
- package/esm/helpers.js +1 -1
- package/esm/registry.js +1 -1
- package/esm/types.js +1 -1
- package/esm/utf8.js +1 -1
- package/esm/varint.js +1 -1
- package/extern.d.ts +1 -1
- package/extern.js +1 -1
- package/helper-func-types.d.ts +1 -1
- package/helper-func-types.js +1 -1
- package/helpers.d.ts +1 -1
- package/helpers.js +1 -1
- package/package.json +2 -2
- package/registry.d.ts +1 -1
- package/registry.js +1 -1
- package/types.d.ts +1 -1
- package/types.js +1 -1
- package/utf8.d.ts +1 -1
- package/utf8.js +1 -1
- package/varint.d.ts +1 -1
- package/varint.js +1 -1
- package/cosmos/client.d.ts +0 -13
- package/cosmos/client.js +0 -59
- package/cosmwasm/client.d.ts +0 -16
- package/cosmwasm/client.js +0 -53
- package/esm/cosmos/client.js +0 -31
- package/esm/cosmwasm/client.js +0 -25
- package/esm/ibc/client.js +0 -28
- package/esm/injective/client.js +0 -33
- package/ibc/client.d.ts +0 -16
- package/ibc/client.js +0 -56
- package/injective/client.d.ts +0 -16
- package/injective/client.js +0 -61
package/README.md
CHANGED
|
@@ -22,29 +22,41 @@ npm install injectivejs
|
|
|
22
22
|
## Table of contents
|
|
23
23
|
|
|
24
24
|
- [InjectiveJS](#injectivejs)
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
- [Install](#install)
|
|
26
|
+
- [Table of contents](#table-of-contents)
|
|
27
27
|
- [Usage](#usage)
|
|
28
28
|
- [RPC Clients](#rpc-clients)
|
|
29
29
|
- [Tx Helpers](#tx-helpers)
|
|
30
|
-
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
- [
|
|
42
|
-
|
|
30
|
+
- [Auction](#auction)
|
|
31
|
+
- [Exchange](#exchange)
|
|
32
|
+
- [Insurance](#insurance)
|
|
33
|
+
- [OCR](#ocr)
|
|
34
|
+
- [Oracle](#oracle)
|
|
35
|
+
- [Peggy](#peggy)
|
|
36
|
+
- [CosmWasm](#cosmwasm)
|
|
37
|
+
- [IBC](#ibc)
|
|
38
|
+
- [Cosmos](#cosmos)
|
|
39
|
+
- [Composing Messages](#composing-messages)
|
|
40
|
+
- [Auction Messages](#auction-messages)
|
|
41
|
+
- [Exchange Messages](#exchange-messages)
|
|
42
|
+
- [Insurance Messages](#insurance-messages)
|
|
43
|
+
- [OCR Messages](#ocr-messages)
|
|
44
|
+
- [Oracle Messages](#oracle-messages)
|
|
45
|
+
- [Peggy Messages](#peggy-messages)
|
|
46
|
+
- [CosmWasm Messages](#cosmwasm-messages)
|
|
47
|
+
- [IBC Messages](#ibc-messages)
|
|
48
|
+
- [Cosmos Messages](#cosmos-messages)
|
|
49
|
+
- [Connecting with Wallets and Signing Messages](#connecting-with-wallets-and-signing-messages)
|
|
50
|
+
- [Initializing the Stargate Client](#initializing-the-stargate-client)
|
|
43
51
|
- [Creating Signers](#creating-signers)
|
|
44
52
|
- [Broadcasting Messages](#broadcasting-messages)
|
|
53
|
+
- [All In One Example](#all-in-one-example)
|
|
45
54
|
- [Advanced Usage](#advanced-usage)
|
|
46
55
|
- [Developing](#developing)
|
|
56
|
+
- [Codegen](#codegen)
|
|
57
|
+
- [Publishing](#publishing)
|
|
47
58
|
- [Credits](#credits)
|
|
59
|
+
- [License](#license)
|
|
48
60
|
|
|
49
61
|
## Usage
|
|
50
62
|
|
|
@@ -77,6 +89,10 @@ const exchangeBalance = await getExchangeBalances({});
|
|
|
77
89
|
|
|
78
90
|
For tx messages, there're helper functions to sign and broadcast messages:
|
|
79
91
|
|
|
92
|
+
For more detailed usage on how to use these functions, please see the starship tests in the [networks/injective repo](https://github.com/cosmology-tech/interchainjs/tree/main/networks/injective/starship/__tests__)
|
|
93
|
+
|
|
94
|
+
There're also react and vue hooks for helper functions. Please see [injective-react](https://github.com/cosmology-tech/interchainjs/tree/main/libs/injective-react) and [injective-vue](https://github.com/cosmology-tech/interchainjs/tree/main/libs/injective-vue) repos for more information.
|
|
95
|
+
|
|
80
96
|
```js
|
|
81
97
|
import {
|
|
82
98
|
createDeposit,
|
|
@@ -85,13 +101,13 @@ import {
|
|
|
85
101
|
} from "injectivejs/injective/exchange/v1beta1/tx.rpc.func";
|
|
86
102
|
```
|
|
87
103
|
|
|
88
|
-
#### Auction
|
|
104
|
+
#### Auction
|
|
89
105
|
|
|
90
106
|
```js
|
|
91
107
|
import { createBid } from "injectivejs/injective/auction/v1beta1/tx.rpc.func";
|
|
92
108
|
```
|
|
93
109
|
|
|
94
|
-
#### Exchange
|
|
110
|
+
#### Exchange
|
|
95
111
|
|
|
96
112
|
```js
|
|
97
113
|
import {
|
|
@@ -133,7 +149,7 @@ import {
|
|
|
133
149
|
} from "injectivejs/injective/exchange/v1beta1/tx.rpc.func";
|
|
134
150
|
```
|
|
135
151
|
|
|
136
|
-
#### Insurance
|
|
152
|
+
#### Insurance
|
|
137
153
|
|
|
138
154
|
```js
|
|
139
155
|
import {
|
|
@@ -143,7 +159,7 @@ import {
|
|
|
143
159
|
} from "injectivejs/injective/insurance/v1beta1/tx.rpc.func";
|
|
144
160
|
```
|
|
145
161
|
|
|
146
|
-
#### OCR
|
|
162
|
+
#### OCR
|
|
147
163
|
|
|
148
164
|
```js
|
|
149
165
|
import {
|
|
@@ -158,7 +174,7 @@ import {
|
|
|
158
174
|
} from "injectivejs/injective/ocr/v1beta1/tx.rpc.func";
|
|
159
175
|
```
|
|
160
176
|
|
|
161
|
-
#### Oracle
|
|
177
|
+
#### Oracle
|
|
162
178
|
|
|
163
179
|
```js
|
|
164
180
|
import {
|
|
@@ -172,7 +188,7 @@ import {
|
|
|
172
188
|
} from "injectivejs/injective/oracle/v1beta1/tx.rpc.func";
|
|
173
189
|
```
|
|
174
190
|
|
|
175
|
-
#### Peggy
|
|
191
|
+
#### Peggy
|
|
176
192
|
|
|
177
193
|
```js
|
|
178
194
|
import {
|
|
@@ -192,7 +208,7 @@ import {
|
|
|
192
208
|
} from "injectivejs/injective/peggy/v1/msgs.rpc.func";
|
|
193
209
|
```
|
|
194
210
|
|
|
195
|
-
#### CosmWasm
|
|
211
|
+
#### CosmWasm
|
|
196
212
|
|
|
197
213
|
```js
|
|
198
214
|
import {
|
|
@@ -215,13 +231,13 @@ import {
|
|
|
215
231
|
} from "injectivejs/cosmwasm/wasm/v1/tx.rpc.func";
|
|
216
232
|
```
|
|
217
233
|
|
|
218
|
-
#### IBC
|
|
234
|
+
#### IBC
|
|
219
235
|
|
|
220
236
|
```js
|
|
221
237
|
import { createTransfer } from "injectivejs/ibc/applications/transfer/v1/tx.rpc.func";
|
|
222
238
|
```
|
|
223
239
|
|
|
224
|
-
#### Cosmos
|
|
240
|
+
#### Cosmos
|
|
225
241
|
|
|
226
242
|
```js
|
|
227
243
|
import {
|
|
@@ -250,6 +266,183 @@ import {
|
|
|
250
266
|
} from "injectivejs/cosmos/gov/v1beta1/tx.rpc.func";
|
|
251
267
|
```
|
|
252
268
|
|
|
269
|
+
### Composing Messages
|
|
270
|
+
|
|
271
|
+
Import the `injective` object from `injectivejs`.
|
|
272
|
+
|
|
273
|
+
```js
|
|
274
|
+
import { MessageComposer } from "injectivejs/injective/exchange/v1beta1/tx.registry";
|
|
275
|
+
|
|
276
|
+
const { createSpotLimitOrder, createSpotMarketOrder, deposit } =
|
|
277
|
+
MessageComposer.withTypeUrl;
|
|
278
|
+
```
|
|
279
|
+
|
|
280
|
+
#### Auction Messages
|
|
281
|
+
|
|
282
|
+
```js
|
|
283
|
+
import { MessageComposer } from "injectivejs/injective/auction/v1beta1/tx.registry";
|
|
284
|
+
|
|
285
|
+
const { bid } = MessageComposer.withTypeUrl;
|
|
286
|
+
```
|
|
287
|
+
|
|
288
|
+
#### Exchange Messages
|
|
289
|
+
|
|
290
|
+
```js
|
|
291
|
+
import { MessageComposer } from "injectivejs/injective/exchange/v1beta1/tx.registry";
|
|
292
|
+
|
|
293
|
+
const {
|
|
294
|
+
adminUpdateBinaryOptionsMarket,
|
|
295
|
+
batchCancelBinaryOptionsOrders,
|
|
296
|
+
batchCancelDerivativeOrders,
|
|
297
|
+
batchCancelSpotOrders,
|
|
298
|
+
batchCreateDerivativeLimitOrders,
|
|
299
|
+
batchCreateSpotLimitOrders,
|
|
300
|
+
batchUpdateOrders,
|
|
301
|
+
cancelBinaryOptionsOrder,
|
|
302
|
+
cancelDerivativeOrder,
|
|
303
|
+
cancelSpotOrder,
|
|
304
|
+
createBinaryOptionsLimitOrder,
|
|
305
|
+
createBinaryOptionsMarketOrder,
|
|
306
|
+
createDerivativeLimitOrder,
|
|
307
|
+
createDerivativeMarketOrder,
|
|
308
|
+
createSpotLimitOrder,
|
|
309
|
+
createSpotMarketOrder,
|
|
310
|
+
deposit,
|
|
311
|
+
exec,
|
|
312
|
+
externalTransfer,
|
|
313
|
+
increasePositionMargin,
|
|
314
|
+
instantBinaryOptionsMarketLaunch,
|
|
315
|
+
instantExpiryFuturesMarketLaunch,
|
|
316
|
+
instantPerpetualMarketLaunch,
|
|
317
|
+
instantSpotMarketLaunch,
|
|
318
|
+
liquidatePosition,
|
|
319
|
+
rewardsOptOut,
|
|
320
|
+
subaccountTransfer,
|
|
321
|
+
withdraw,
|
|
322
|
+
} = MessageComposer.withTypeUrl;
|
|
323
|
+
```
|
|
324
|
+
|
|
325
|
+
#### Insurance Messages
|
|
326
|
+
|
|
327
|
+
```js
|
|
328
|
+
import { MessageComposer } from "injectivejs/injective/insurance/v1beta1/tx.registry";
|
|
329
|
+
|
|
330
|
+
const { createInsuranceFund, requestRedemption, underwrite } =
|
|
331
|
+
MessageComposer.withTypeUrl;
|
|
332
|
+
```
|
|
333
|
+
|
|
334
|
+
#### OCR Messages
|
|
335
|
+
|
|
336
|
+
```js
|
|
337
|
+
import { MessageComposer } from "injectivejs/injective/ocr/v1beta1/tx.registry";
|
|
338
|
+
|
|
339
|
+
const {
|
|
340
|
+
acceptPayeeship,
|
|
341
|
+
createFeed,
|
|
342
|
+
fundFeedRewardPool,
|
|
343
|
+
setPayees,
|
|
344
|
+
transferPayeeship,
|
|
345
|
+
transmit,
|
|
346
|
+
updateFeed,
|
|
347
|
+
withdrawFeedRewardPool,
|
|
348
|
+
} = MessageComposer.withTypeUrl;
|
|
349
|
+
```
|
|
350
|
+
|
|
351
|
+
#### Oracle Messages
|
|
352
|
+
|
|
353
|
+
```js
|
|
354
|
+
import { MessageComposer } from "injectivejs/injective/oracle/v1beta1/tx.registry";
|
|
355
|
+
|
|
356
|
+
const {
|
|
357
|
+
relayBandRates,
|
|
358
|
+
relayCoinbaseMessages,
|
|
359
|
+
relayPriceFeedPrice,
|
|
360
|
+
relayProviderPrices,
|
|
361
|
+
requestBandIBCRates,
|
|
362
|
+
} = MessageComposer.withTypeUrl;
|
|
363
|
+
```
|
|
364
|
+
|
|
365
|
+
#### Peggy Messages
|
|
366
|
+
|
|
367
|
+
```js
|
|
368
|
+
import { MessageComposer } from "injectivejs/injective/peggy/v1/tx.registry";
|
|
369
|
+
|
|
370
|
+
const {
|
|
371
|
+
cancelSendToEth,
|
|
372
|
+
confirmBatch,
|
|
373
|
+
depositClaim,
|
|
374
|
+
eRC20DeployedClaim,
|
|
375
|
+
requestBatch,
|
|
376
|
+
sendToEth,
|
|
377
|
+
setOrchestratorAddresses,
|
|
378
|
+
submitBadSignatureEvidence,
|
|
379
|
+
valsetConfirm,
|
|
380
|
+
valsetUpdateClaim,
|
|
381
|
+
withdrawClaim,
|
|
382
|
+
} = MessageComposer.withTypeUrl;
|
|
383
|
+
```
|
|
384
|
+
|
|
385
|
+
#### CosmWasm Messages
|
|
386
|
+
|
|
387
|
+
```js
|
|
388
|
+
import { MessageComposer } from "injectivejs/cosmwasm/wasm/v1/tx.registry";
|
|
389
|
+
|
|
390
|
+
const {
|
|
391
|
+
clearAdmin,
|
|
392
|
+
executeContract,
|
|
393
|
+
instantiateContract,
|
|
394
|
+
migrateContract,
|
|
395
|
+
storeCode,
|
|
396
|
+
updateAdmin,
|
|
397
|
+
} = MessageComposer.withTypeUrl;
|
|
398
|
+
```
|
|
399
|
+
|
|
400
|
+
#### IBC Messages
|
|
401
|
+
|
|
402
|
+
```js
|
|
403
|
+
import { MessageComposer } from "injectivejs/ibc/applications/transfer/v1/tx.registry";
|
|
404
|
+
|
|
405
|
+
const { transfer } = MessageComposer.withTypeUrl;
|
|
406
|
+
```
|
|
407
|
+
|
|
408
|
+
#### Cosmos Messages
|
|
409
|
+
|
|
410
|
+
```js
|
|
411
|
+
import { MessageComposer } from "injectivejs/cosmos/distribution/v1beta1/tx.registry";
|
|
412
|
+
|
|
413
|
+
const {
|
|
414
|
+
fundCommunityPool,
|
|
415
|
+
setWithdrawAddress,
|
|
416
|
+
withdrawDelegatorReward,
|
|
417
|
+
withdrawValidatorCommission,
|
|
418
|
+
} = MessageComposer.fromPartial;
|
|
419
|
+
```
|
|
420
|
+
|
|
421
|
+
```js
|
|
422
|
+
import { MessageComposer } from "injectivejs/cosmos/bank/v1beta1/tx.registry";
|
|
423
|
+
|
|
424
|
+
const { multiSend, send } = MessageComposer.fromPartial;
|
|
425
|
+
```
|
|
426
|
+
|
|
427
|
+
```js
|
|
428
|
+
import { MessageComposer } from "injectivejs/cosmos/staking/v1beta1/tx.registry";
|
|
429
|
+
|
|
430
|
+
const {
|
|
431
|
+
beginRedelegate,
|
|
432
|
+
createValidator,
|
|
433
|
+
delegate,
|
|
434
|
+
editValidator,
|
|
435
|
+
undelegate,
|
|
436
|
+
} = MessageComposer.fromPartial;
|
|
437
|
+
```
|
|
438
|
+
|
|
439
|
+
```js
|
|
440
|
+
import { MessageComposer } from "injectivejs/cosmos/gov/v1beta1/tx.registry";
|
|
441
|
+
|
|
442
|
+
const { deposit, submitProposal, vote, voteWeighted } =
|
|
443
|
+
cosmos.gov.v1beta1.MessageComposer.fromPartial;
|
|
444
|
+
```
|
|
445
|
+
|
|
253
446
|
## Connecting with Wallets and Signing Messages
|
|
254
447
|
|
|
255
448
|
⚡️ For web interfaces, we recommend using [interchain-kit](https://github.com/cosmology-tech/interchain-kit/). Continue below to see how to manually construct signers and clients.
|
|
@@ -308,6 +501,19 @@ const fee: StdFee = {
|
|
|
308
501
|
const response = await stargateClient.signAndBroadcast(address, [msg], fee);
|
|
309
502
|
```
|
|
310
503
|
|
|
504
|
+
### All In One Example
|
|
505
|
+
|
|
506
|
+
For a comprehensive example of how to use InjectiveJS to send messages, please see the example [here](https://github.com/cosmology-tech/create-cosmos-app/blob/main/examples/injective/components/SendMsg.tsx). This example demonstrates how to:
|
|
507
|
+
|
|
508
|
+
- Initialize the client.
|
|
509
|
+
- Create and sign messages.
|
|
510
|
+
- Broadcast transactions.
|
|
511
|
+
- Handle responses and errors.
|
|
512
|
+
|
|
513
|
+
The example provides a complete walkthrough of setting up the client, creating a message for sending tokens, and broadcasting the transaction to the Injective blockchain.
|
|
514
|
+
|
|
515
|
+
Follow the [instructions](https://github.com/cosmology-tech/create-cosmos-app/tree/main/examples/injective) in the example to set up your InjectiveJS client and start sending messages to the Injective blockchain.
|
|
516
|
+
|
|
311
517
|
## Advanced Usage
|
|
312
518
|
|
|
313
519
|
If you want to manually construct a stargate client
|
package/binary.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.
|
|
2
|
+
* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.3
|
|
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
|
*/
|
package/binary.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.
|
|
3
|
+
* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.3
|
|
4
4
|
* DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain
|
|
5
5
|
* and run the transpile command or npm scripts command that is used to regenerate this bundle.
|
|
6
6
|
*/
|
package/esm/binary.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.
|
|
2
|
+
* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.3
|
|
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
|
*/
|
package/esm/extern.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.
|
|
2
|
+
* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.3
|
|
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
|
*/
|
package/esm/helper-func-types.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.
|
|
2
|
+
* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.3
|
|
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
|
*/
|
package/esm/helpers.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.
|
|
2
|
+
* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.3
|
|
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
|
*/
|
package/esm/registry.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.
|
|
2
|
+
* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.3
|
|
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
|
*/
|
package/esm/types.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.
|
|
2
|
+
* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.3
|
|
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
|
*/
|
package/esm/utf8.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.
|
|
2
|
+
* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.3
|
|
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
|
*/
|
package/esm/varint.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.
|
|
2
|
+
* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.3
|
|
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
|
*/
|
package/extern.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.
|
|
2
|
+
* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.3
|
|
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
|
*/
|
package/extern.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.
|
|
3
|
+
* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.3
|
|
4
4
|
* DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain
|
|
5
5
|
* and run the transpile command or npm scripts command that is used to regenerate this bundle.
|
|
6
6
|
*/
|
package/helper-func-types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.
|
|
2
|
+
* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.3
|
|
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
|
*/
|
package/helper-func-types.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.
|
|
3
|
+
* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.3
|
|
4
4
|
* DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain
|
|
5
5
|
* and run the transpile command or npm scripts command that is used to regenerate this bundle.
|
|
6
6
|
*/
|
package/helpers.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.
|
|
2
|
+
* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.3
|
|
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
|
*/
|
package/helpers.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.
|
|
3
|
+
* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.3
|
|
4
4
|
* DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain
|
|
5
5
|
* and run the transpile command or npm scripts command that is used to regenerate this bundle.
|
|
6
6
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "injectivejs",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.5",
|
|
4
4
|
"description": "Injectivejs is a JavaScript library for interacting with injective sdk.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "esm/index.js",
|
|
@@ -45,5 +45,5 @@
|
|
|
45
45
|
"cosmjs",
|
|
46
46
|
"wallet"
|
|
47
47
|
],
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "8be8d5064fc1927acd4a724d9cadf0453f06db72"
|
|
49
49
|
}
|
package/registry.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.
|
|
2
|
+
* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.3
|
|
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
|
*/
|
package/registry.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.
|
|
3
|
+
* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.3
|
|
4
4
|
* DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain
|
|
5
5
|
* and run the transpile command or npm scripts command that is used to regenerate this bundle.
|
|
6
6
|
*/
|
package/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.
|
|
2
|
+
* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.3
|
|
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
|
*/
|
package/types.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.
|
|
3
|
+
* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.3
|
|
4
4
|
* DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain
|
|
5
5
|
* and run the transpile command or npm scripts command that is used to regenerate this bundle.
|
|
6
6
|
*/
|
package/utf8.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.
|
|
2
|
+
* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.3
|
|
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
|
*/
|
package/utf8.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.
|
|
2
|
+
* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.3
|
|
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
|
*/
|
package/varint.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.
|
|
2
|
+
* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.3
|
|
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
|
*/
|
package/varint.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.
|
|
3
|
+
* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.3
|
|
4
4
|
* DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain
|
|
5
5
|
* and run the transpile command or npm scripts command that is used to regenerate this bundle.
|
|
6
6
|
*/
|
package/cosmos/client.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
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 cosmosAminoConverters: {};
|
|
5
|
-
export declare const cosmosProtoRegistry: ReadonlyArray<[string, GeneratedType]>;
|
|
6
|
-
export declare const getSigningCosmosClientOptions: () => {
|
|
7
|
-
registry: Registry;
|
|
8
|
-
aminoTypes: AminoTypes;
|
|
9
|
-
};
|
|
10
|
-
export declare const getSigningCosmosClient: ({ rpcEndpoint, signer }: {
|
|
11
|
-
rpcEndpoint: string | HttpEndpoint;
|
|
12
|
-
signer: OfflineSigner;
|
|
13
|
-
}) => Promise<SigningStargateClient>;
|
package/cosmos/client.js
DELETED
|
@@ -1,59 +0,0 @@
|
|
|
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.getSigningCosmosClient = exports.getSigningCosmosClientOptions = exports.cosmosProtoRegistry = exports.cosmosAminoConverters = void 0;
|
|
27
|
-
const proto_signing_1 = require("@cosmjs/proto-signing");
|
|
28
|
-
const stargate_1 = require("@cosmjs/stargate");
|
|
29
|
-
const cosmosAuthzV1beta1TxRegistry = __importStar(require("./authz/v1beta1/tx.registry"));
|
|
30
|
-
const cosmosBankV1beta1TxRegistry = __importStar(require("./bank/v1beta1/tx.registry"));
|
|
31
|
-
const cosmosDistributionV1beta1TxRegistry = __importStar(require("./distribution/v1beta1/tx.registry"));
|
|
32
|
-
const cosmosFeegrantV1beta1TxRegistry = __importStar(require("./feegrant/v1beta1/tx.registry"));
|
|
33
|
-
const cosmosGovV1TxRegistry = __importStar(require("./gov/v1/tx.registry"));
|
|
34
|
-
const cosmosGovV1beta1TxRegistry = __importStar(require("./gov/v1beta1/tx.registry"));
|
|
35
|
-
const cosmosGroupV1TxRegistry = __importStar(require("./group/v1/tx.registry"));
|
|
36
|
-
const cosmosStakingV1beta1TxRegistry = __importStar(require("./staking/v1beta1/tx.registry"));
|
|
37
|
-
const cosmosVestingV1beta1TxRegistry = __importStar(require("./vesting/v1beta1/tx.registry"));
|
|
38
|
-
exports.cosmosAminoConverters = {};
|
|
39
|
-
exports.cosmosProtoRegistry = [...cosmosAuthzV1beta1TxRegistry.registry, ...cosmosBankV1beta1TxRegistry.registry, ...cosmosDistributionV1beta1TxRegistry.registry, ...cosmosFeegrantV1beta1TxRegistry.registry, ...cosmosGovV1TxRegistry.registry, ...cosmosGovV1beta1TxRegistry.registry, ...cosmosGroupV1TxRegistry.registry, ...cosmosStakingV1beta1TxRegistry.registry, ...cosmosVestingV1beta1TxRegistry.registry];
|
|
40
|
-
const getSigningCosmosClientOptions = () => {
|
|
41
|
-
const registry = new proto_signing_1.Registry([...exports.cosmosProtoRegistry]);
|
|
42
|
-
const aminoTypes = new stargate_1.AminoTypes({
|
|
43
|
-
...exports.cosmosAminoConverters
|
|
44
|
-
});
|
|
45
|
-
return {
|
|
46
|
-
registry,
|
|
47
|
-
aminoTypes
|
|
48
|
-
};
|
|
49
|
-
};
|
|
50
|
-
exports.getSigningCosmosClientOptions = getSigningCosmosClientOptions;
|
|
51
|
-
const getSigningCosmosClient = async ({ rpcEndpoint, signer }) => {
|
|
52
|
-
const { registry, aminoTypes } = (0, exports.getSigningCosmosClientOptions)();
|
|
53
|
-
const client = await stargate_1.SigningStargateClient.connectWithSigner(rpcEndpoint, signer, {
|
|
54
|
-
registry: registry,
|
|
55
|
-
aminoTypes
|
|
56
|
-
});
|
|
57
|
-
return client;
|
|
58
|
-
};
|
|
59
|
-
exports.getSigningCosmosClient = getSigningCosmosClient;
|
package/cosmwasm/client.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
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 cosmwasmAminoConverters: {};
|
|
5
|
-
export declare const cosmwasmProtoRegistry: ReadonlyArray<[string, GeneratedType]>;
|
|
6
|
-
export declare const getSigningCosmwasmClientOptions: ({ defaultTypes }?: {
|
|
7
|
-
defaultTypes?: ReadonlyArray<[string, GeneratedType]>;
|
|
8
|
-
}) => {
|
|
9
|
-
registry: Registry;
|
|
10
|
-
aminoTypes: AminoTypes;
|
|
11
|
-
};
|
|
12
|
-
export declare const getSigningCosmwasmClient: ({ rpcEndpoint, signer, defaultTypes }: {
|
|
13
|
-
rpcEndpoint: string | HttpEndpoint;
|
|
14
|
-
signer: OfflineSigner;
|
|
15
|
-
defaultTypes?: ReadonlyArray<[string, GeneratedType]>;
|
|
16
|
-
}) => Promise<SigningStargateClient>;
|
package/cosmwasm/client.js
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
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.getSigningCosmwasmClient = exports.getSigningCosmwasmClientOptions = exports.cosmwasmProtoRegistry = exports.cosmwasmAminoConverters = void 0;
|
|
27
|
-
const proto_signing_1 = require("@cosmjs/proto-signing");
|
|
28
|
-
const stargate_1 = require("@cosmjs/stargate");
|
|
29
|
-
const cosmwasmWasmV1TxRegistry = __importStar(require("./wasm/v1/tx.registry"));
|
|
30
|
-
exports.cosmwasmAminoConverters = {};
|
|
31
|
-
exports.cosmwasmProtoRegistry = [...cosmwasmWasmV1TxRegistry.registry];
|
|
32
|
-
const getSigningCosmwasmClientOptions = ({ defaultTypes = stargate_1.defaultRegistryTypes } = {}) => {
|
|
33
|
-
const registry = new proto_signing_1.Registry([...defaultTypes, ...exports.cosmwasmProtoRegistry]);
|
|
34
|
-
const aminoTypes = new stargate_1.AminoTypes({
|
|
35
|
-
...exports.cosmwasmAminoConverters
|
|
36
|
-
});
|
|
37
|
-
return {
|
|
38
|
-
registry,
|
|
39
|
-
aminoTypes
|
|
40
|
-
};
|
|
41
|
-
};
|
|
42
|
-
exports.getSigningCosmwasmClientOptions = getSigningCosmwasmClientOptions;
|
|
43
|
-
const getSigningCosmwasmClient = async ({ rpcEndpoint, signer, defaultTypes = stargate_1.defaultRegistryTypes }) => {
|
|
44
|
-
const { registry, aminoTypes } = (0, exports.getSigningCosmwasmClientOptions)({
|
|
45
|
-
defaultTypes
|
|
46
|
-
});
|
|
47
|
-
const client = await stargate_1.SigningStargateClient.connectWithSigner(rpcEndpoint, signer, {
|
|
48
|
-
registry: registry,
|
|
49
|
-
aminoTypes
|
|
50
|
-
});
|
|
51
|
-
return client;
|
|
52
|
-
};
|
|
53
|
-
exports.getSigningCosmwasmClient = getSigningCosmwasmClient;
|
package/esm/cosmos/client.js
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { Registry } from "@cosmjs/proto-signing";
|
|
2
|
-
import { AminoTypes, SigningStargateClient } from "@cosmjs/stargate";
|
|
3
|
-
import * as cosmosAuthzV1beta1TxRegistry from "./authz/v1beta1/tx.registry";
|
|
4
|
-
import * as cosmosBankV1beta1TxRegistry from "./bank/v1beta1/tx.registry";
|
|
5
|
-
import * as cosmosDistributionV1beta1TxRegistry from "./distribution/v1beta1/tx.registry";
|
|
6
|
-
import * as cosmosFeegrantV1beta1TxRegistry from "./feegrant/v1beta1/tx.registry";
|
|
7
|
-
import * as cosmosGovV1TxRegistry from "./gov/v1/tx.registry";
|
|
8
|
-
import * as cosmosGovV1beta1TxRegistry from "./gov/v1beta1/tx.registry";
|
|
9
|
-
import * as cosmosGroupV1TxRegistry from "./group/v1/tx.registry";
|
|
10
|
-
import * as cosmosStakingV1beta1TxRegistry from "./staking/v1beta1/tx.registry";
|
|
11
|
-
import * as cosmosVestingV1beta1TxRegistry from "./vesting/v1beta1/tx.registry";
|
|
12
|
-
export const cosmosAminoConverters = {};
|
|
13
|
-
export const cosmosProtoRegistry = [...cosmosAuthzV1beta1TxRegistry.registry, ...cosmosBankV1beta1TxRegistry.registry, ...cosmosDistributionV1beta1TxRegistry.registry, ...cosmosFeegrantV1beta1TxRegistry.registry, ...cosmosGovV1TxRegistry.registry, ...cosmosGovV1beta1TxRegistry.registry, ...cosmosGroupV1TxRegistry.registry, ...cosmosStakingV1beta1TxRegistry.registry, ...cosmosVestingV1beta1TxRegistry.registry];
|
|
14
|
-
export const getSigningCosmosClientOptions = () => {
|
|
15
|
-
const registry = new Registry([...cosmosProtoRegistry]);
|
|
16
|
-
const aminoTypes = new AminoTypes({
|
|
17
|
-
...cosmosAminoConverters
|
|
18
|
-
});
|
|
19
|
-
return {
|
|
20
|
-
registry,
|
|
21
|
-
aminoTypes
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
export const getSigningCosmosClient = async ({ rpcEndpoint, signer }) => {
|
|
25
|
-
const { registry, aminoTypes } = getSigningCosmosClientOptions();
|
|
26
|
-
const client = await SigningStargateClient.connectWithSigner(rpcEndpoint, signer, {
|
|
27
|
-
registry: registry,
|
|
28
|
-
aminoTypes
|
|
29
|
-
});
|
|
30
|
-
return client;
|
|
31
|
-
};
|
package/esm/cosmwasm/client.js
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { Registry } from "@cosmjs/proto-signing";
|
|
2
|
-
import { defaultRegistryTypes, AminoTypes, SigningStargateClient } from "@cosmjs/stargate";
|
|
3
|
-
import * as cosmwasmWasmV1TxRegistry from "./wasm/v1/tx.registry";
|
|
4
|
-
export const cosmwasmAminoConverters = {};
|
|
5
|
-
export const cosmwasmProtoRegistry = [...cosmwasmWasmV1TxRegistry.registry];
|
|
6
|
-
export const getSigningCosmwasmClientOptions = ({ defaultTypes = defaultRegistryTypes } = {}) => {
|
|
7
|
-
const registry = new Registry([...defaultTypes, ...cosmwasmProtoRegistry]);
|
|
8
|
-
const aminoTypes = new AminoTypes({
|
|
9
|
-
...cosmwasmAminoConverters
|
|
10
|
-
});
|
|
11
|
-
return {
|
|
12
|
-
registry,
|
|
13
|
-
aminoTypes
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
export const getSigningCosmwasmClient = async ({ rpcEndpoint, signer, defaultTypes = defaultRegistryTypes }) => {
|
|
17
|
-
const { registry, aminoTypes } = getSigningCosmwasmClientOptions({
|
|
18
|
-
defaultTypes
|
|
19
|
-
});
|
|
20
|
-
const client = await SigningStargateClient.connectWithSigner(rpcEndpoint, signer, {
|
|
21
|
-
registry: registry,
|
|
22
|
-
aminoTypes
|
|
23
|
-
});
|
|
24
|
-
return client;
|
|
25
|
-
};
|
package/esm/ibc/client.js
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { Registry } from "@cosmjs/proto-signing";
|
|
2
|
-
import { defaultRegistryTypes, AminoTypes, SigningStargateClient } from "@cosmjs/stargate";
|
|
3
|
-
import * as ibcApplicationsTransferV1TxRegistry from "./applications/transfer/v1/tx.registry";
|
|
4
|
-
import * as ibcCoreChannelV1TxRegistry from "./core/channel/v1/tx.registry";
|
|
5
|
-
import * as ibcCoreClientV1TxRegistry from "./core/client/v1/tx.registry";
|
|
6
|
-
import * as ibcCoreConnectionV1TxRegistry from "./core/connection/v1/tx.registry";
|
|
7
|
-
export const ibcAminoConverters = {};
|
|
8
|
-
export const ibcProtoRegistry = [...ibcApplicationsTransferV1TxRegistry.registry, ...ibcCoreChannelV1TxRegistry.registry, ...ibcCoreClientV1TxRegistry.registry, ...ibcCoreConnectionV1TxRegistry.registry];
|
|
9
|
-
export const getSigningIbcClientOptions = ({ defaultTypes = defaultRegistryTypes } = {}) => {
|
|
10
|
-
const registry = new Registry([...defaultTypes, ...ibcProtoRegistry]);
|
|
11
|
-
const aminoTypes = new AminoTypes({
|
|
12
|
-
...ibcAminoConverters
|
|
13
|
-
});
|
|
14
|
-
return {
|
|
15
|
-
registry,
|
|
16
|
-
aminoTypes
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
|
-
export const getSigningIbcClient = async ({ rpcEndpoint, signer, defaultTypes = defaultRegistryTypes }) => {
|
|
20
|
-
const { registry, aminoTypes } = getSigningIbcClientOptions({
|
|
21
|
-
defaultTypes
|
|
22
|
-
});
|
|
23
|
-
const client = await SigningStargateClient.connectWithSigner(rpcEndpoint, signer, {
|
|
24
|
-
registry: registry,
|
|
25
|
-
aminoTypes
|
|
26
|
-
});
|
|
27
|
-
return client;
|
|
28
|
-
};
|
package/esm/injective/client.js
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { Registry } from "@cosmjs/proto-signing";
|
|
2
|
-
import { defaultRegistryTypes, AminoTypes, SigningStargateClient } from "@cosmjs/stargate";
|
|
3
|
-
import * as injectiveAuctionV1beta1TxRegistry from "./auction/v1beta1/tx.registry";
|
|
4
|
-
import * as injectiveExchangeV1beta1TxRegistry from "./exchange/v1beta1/tx.registry";
|
|
5
|
-
import * as injectiveInsuranceV1beta1TxRegistry from "./insurance/v1beta1/tx.registry";
|
|
6
|
-
import * as injectiveOcrV1beta1TxRegistry from "./ocr/v1beta1/tx.registry";
|
|
7
|
-
import * as injectiveOracleV1beta1TxRegistry from "./oracle/v1beta1/tx.registry";
|
|
8
|
-
import * as injectivePeggyV1MsgsRegistry from "./peggy/v1/msgs.registry";
|
|
9
|
-
import * as injectivePermissionsV1beta1TxRegistry from "./permissions/v1beta1/tx.registry";
|
|
10
|
-
import * as injectiveTokenfactoryV1beta1TxRegistry from "./tokenfactory/v1beta1/tx.registry";
|
|
11
|
-
import * as injectiveWasmxV1TxRegistry from "./wasmx/v1/tx.registry";
|
|
12
|
-
export const injectiveAminoConverters = {};
|
|
13
|
-
export const injectiveProtoRegistry = [...injectiveAuctionV1beta1TxRegistry.registry, ...injectiveExchangeV1beta1TxRegistry.registry, ...injectiveInsuranceV1beta1TxRegistry.registry, ...injectiveOcrV1beta1TxRegistry.registry, ...injectiveOracleV1beta1TxRegistry.registry, ...injectivePeggyV1MsgsRegistry.registry, ...injectivePermissionsV1beta1TxRegistry.registry, ...injectiveTokenfactoryV1beta1TxRegistry.registry, ...injectiveWasmxV1TxRegistry.registry];
|
|
14
|
-
export const getSigningInjectiveClientOptions = ({ defaultTypes = defaultRegistryTypes } = {}) => {
|
|
15
|
-
const registry = new Registry([...defaultTypes, ...injectiveProtoRegistry]);
|
|
16
|
-
const aminoTypes = new AminoTypes({
|
|
17
|
-
...injectiveAminoConverters
|
|
18
|
-
});
|
|
19
|
-
return {
|
|
20
|
-
registry,
|
|
21
|
-
aminoTypes
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
export const getSigningInjectiveClient = async ({ rpcEndpoint, signer, defaultTypes = defaultRegistryTypes }) => {
|
|
25
|
-
const { registry, aminoTypes } = getSigningInjectiveClientOptions({
|
|
26
|
-
defaultTypes
|
|
27
|
-
});
|
|
28
|
-
const client = await SigningStargateClient.connectWithSigner(rpcEndpoint, signer, {
|
|
29
|
-
registry: registry,
|
|
30
|
-
aminoTypes
|
|
31
|
-
});
|
|
32
|
-
return client;
|
|
33
|
-
};
|
package/ibc/client.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
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 ibcAminoConverters: {};
|
|
5
|
-
export declare const ibcProtoRegistry: ReadonlyArray<[string, GeneratedType]>;
|
|
6
|
-
export declare const getSigningIbcClientOptions: ({ defaultTypes }?: {
|
|
7
|
-
defaultTypes?: ReadonlyArray<[string, GeneratedType]>;
|
|
8
|
-
}) => {
|
|
9
|
-
registry: Registry;
|
|
10
|
-
aminoTypes: AminoTypes;
|
|
11
|
-
};
|
|
12
|
-
export declare const getSigningIbcClient: ({ rpcEndpoint, signer, defaultTypes }: {
|
|
13
|
-
rpcEndpoint: string | HttpEndpoint;
|
|
14
|
-
signer: OfflineSigner;
|
|
15
|
-
defaultTypes?: ReadonlyArray<[string, GeneratedType]>;
|
|
16
|
-
}) => Promise<SigningStargateClient>;
|
package/ibc/client.js
DELETED
|
@@ -1,56 +0,0 @@
|
|
|
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.getSigningIbcClient = exports.getSigningIbcClientOptions = exports.ibcProtoRegistry = exports.ibcAminoConverters = void 0;
|
|
27
|
-
const proto_signing_1 = require("@cosmjs/proto-signing");
|
|
28
|
-
const stargate_1 = require("@cosmjs/stargate");
|
|
29
|
-
const ibcApplicationsTransferV1TxRegistry = __importStar(require("./applications/transfer/v1/tx.registry"));
|
|
30
|
-
const ibcCoreChannelV1TxRegistry = __importStar(require("./core/channel/v1/tx.registry"));
|
|
31
|
-
const ibcCoreClientV1TxRegistry = __importStar(require("./core/client/v1/tx.registry"));
|
|
32
|
-
const ibcCoreConnectionV1TxRegistry = __importStar(require("./core/connection/v1/tx.registry"));
|
|
33
|
-
exports.ibcAminoConverters = {};
|
|
34
|
-
exports.ibcProtoRegistry = [...ibcApplicationsTransferV1TxRegistry.registry, ...ibcCoreChannelV1TxRegistry.registry, ...ibcCoreClientV1TxRegistry.registry, ...ibcCoreConnectionV1TxRegistry.registry];
|
|
35
|
-
const getSigningIbcClientOptions = ({ defaultTypes = stargate_1.defaultRegistryTypes } = {}) => {
|
|
36
|
-
const registry = new proto_signing_1.Registry([...defaultTypes, ...exports.ibcProtoRegistry]);
|
|
37
|
-
const aminoTypes = new stargate_1.AminoTypes({
|
|
38
|
-
...exports.ibcAminoConverters
|
|
39
|
-
});
|
|
40
|
-
return {
|
|
41
|
-
registry,
|
|
42
|
-
aminoTypes
|
|
43
|
-
};
|
|
44
|
-
};
|
|
45
|
-
exports.getSigningIbcClientOptions = getSigningIbcClientOptions;
|
|
46
|
-
const getSigningIbcClient = async ({ rpcEndpoint, signer, defaultTypes = stargate_1.defaultRegistryTypes }) => {
|
|
47
|
-
const { registry, aminoTypes } = (0, exports.getSigningIbcClientOptions)({
|
|
48
|
-
defaultTypes
|
|
49
|
-
});
|
|
50
|
-
const client = await stargate_1.SigningStargateClient.connectWithSigner(rpcEndpoint, signer, {
|
|
51
|
-
registry: registry,
|
|
52
|
-
aminoTypes
|
|
53
|
-
});
|
|
54
|
-
return client;
|
|
55
|
-
};
|
|
56
|
-
exports.getSigningIbcClient = getSigningIbcClient;
|
package/injective/client.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
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>;
|
package/injective/client.js
DELETED
|
@@ -1,61 +0,0 @@
|
|
|
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;
|