@injectivelabs/sdk-ts 1.0.354 → 1.0.355

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.
@@ -3,7 +3,6 @@ import { DirectSignResponse } from '@cosmjs/proto-signing';
3
3
  import { TxRaw } from '@injectivelabs/chain-api/cosmos/tx/v1beta1/tx_pb';
4
4
  export * from './exchange';
5
5
  export * from './pagination';
6
- export * from './provider';
7
6
  export interface Coin {
8
7
  denom: string;
9
8
  amount: string;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,IAAI,QAAQ,EAAE,MAAM,sDAAsD,CAAA;AACvF,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAA;AAC1D,OAAO,EAAE,KAAK,EAAE,MAAM,kDAAkD,CAAA;AAExE,cAAc,YAAY,CAAA;AAC1B,cAAc,cAAc,CAAA;AAC5B,cAAc,YAAY,CAAA;AAE1B,MAAM,WAAW,IAAI;IACnB,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;CACf;AAED,oBAAY,eAAe;IACzB,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,UAAU,eAAe;CAC1B;AAED,OAAO,EAAE,QAAQ,EAAE,kBAAkB,EAAE,KAAK,EAAE,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,IAAI,QAAQ,EAAE,MAAM,sDAAsD,CAAA;AACvF,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAA;AAC1D,OAAO,EAAE,KAAK,EAAE,MAAM,kDAAkD,CAAA;AAExE,cAAc,YAAY,CAAA;AAC1B,cAAc,cAAc,CAAA;AAE5B,MAAM,WAAW,IAAI;IACnB,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;CACf;AAED,oBAAY,eAAe;IACzB,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,UAAU,eAAe;CAC1B;AAED,OAAO,EAAE,QAAQ,EAAE,kBAAkB,EAAE,KAAK,EAAE,CAAA"}
@@ -21,7 +21,6 @@ const tx_pb_1 = require("@injectivelabs/chain-api/cosmos/tx/v1beta1/tx_pb");
21
21
  Object.defineProperty(exports, "TxRaw", { enumerable: true, get: function () { return tx_pb_1.TxRaw; } });
22
22
  __exportStar(require("./exchange"), exports);
23
23
  __exportStar(require("./pagination"), exports);
24
- __exportStar(require("./provider"), exports);
25
24
  var StreamOperation;
26
25
  (function (StreamOperation) {
27
26
  StreamOperation["Insert"] = "insert";
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,kFAAuF;AAqB9E,yFArBQ,cAAQ,OAqBR;AAnBjB,4EAAwE;AAmBjC,sFAnB9B,aAAK,OAmB8B;AAjB5C,6CAA0B;AAC1B,+CAA4B;AAC5B,6CAA0B;AAO1B,IAAY,eAMX;AAND,WAAY,eAAe;IACzB,oCAAiB,CAAA;IACjB,oCAAiB,CAAA;IACjB,sCAAmB,CAAA;IACnB,oCAAiB,CAAA;IACjB,4CAAyB,CAAA;AAC3B,CAAC,EANW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAM1B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,kFAAuF;AAoB9E,yFApBQ,cAAQ,OAoBR;AAlBjB,4EAAwE;AAkBjC,sFAlB9B,aAAK,OAkB8B;AAhB5C,6CAA0B;AAC1B,+CAA4B;AAO5B,IAAY,eAMX;AAND,WAAY,eAAe;IACzB,oCAAiB,CAAA;IACjB,oCAAiB,CAAA;IACjB,sCAAmB,CAAA;IACnB,oCAAiB,CAAA;IACjB,4CAAyB,CAAA;AAC3B,CAAC,EANW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAM1B"}
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 browser, node, and react native environment.",
4
- "version": "1.0.354",
4
+ "version": "1.0.355",
5
5
  "license": "Apache-2.0",
6
6
  "author": {
7
7
  "name": "Bojan Angjelkoski",
@@ -41,13 +41,13 @@
41
41
  "@improbable-eng/grpc-web-node-http-transport": "^0.15.0",
42
42
  "@improbable-eng/grpc-web-react-native-transport": "^0.15.0",
43
43
  "@injectivelabs/chain-api": "1.9.1",
44
- "@injectivelabs/exceptions": "^1.0.42",
44
+ "@injectivelabs/exceptions": "^1.0.43",
45
45
  "@injectivelabs/indexer-api": "1.0.32-rc",
46
- "@injectivelabs/networks": "^1.0.68",
46
+ "@injectivelabs/networks": "^1.0.69",
47
47
  "@injectivelabs/ninja-api": "^1.0.11",
48
- "@injectivelabs/token-metadata": "^1.0.105",
49
- "@injectivelabs/ts-types": "^1.0.27",
50
- "@injectivelabs/utils": "^1.0.59",
48
+ "@injectivelabs/token-metadata": "^1.0.106",
49
+ "@injectivelabs/ts-types": "^1.0.28",
50
+ "@injectivelabs/utils": "^1.0.60",
51
51
  "@metamask/eth-sig-util": "^4.0.0",
52
52
  "@types/google-protobuf": "^3.15.5",
53
53
  "axios": "^0.27.2",
@@ -68,7 +68,7 @@
68
68
  "shx": "^0.3.2",
69
69
  "snakecase-keys": "^5.4.1"
70
70
  },
71
- "gitHead": "34d5cb0f00b1ddc79afbfb08fae7f6cfbb9b3122",
71
+ "gitHead": "ecce6f88a5090ca1b67a261bf10183121710c5f5",
72
72
  "typedoc": {
73
73
  "entryPoint": "./src/index.ts",
74
74
  "readmeFile": "./README.md",
@@ -1,52 +0,0 @@
1
- import { DirectSignResponse } from '@cosmjs/proto-signing';
2
- import { TxRaw } from '@injectivelabs/chain-api/cosmos/tx/v1beta1/tx_pb';
3
- import { ChainId, EthereumChainId } from '@injectivelabs/ts-types';
4
- import { TxResponse } from './../core';
5
- export interface InjectiveWalletProvider {
6
- /**
7
- * The the accounts from the wallet (addresses)
8
- */
9
- getAddresses(): Promise<string[]>;
10
- /**
11
- * Get the PubKey from the wallet
12
- * in base64 for Cosmos native wallets
13
- */
14
- getPubKey(): Promise<string>;
15
- /**
16
- * Sends Ethereum transaction. Returns a transaction hash
17
- * @param transaction should implement TransactionConfig
18
- * @param options
19
- */
20
- sendEthereumTransaction(transaction: unknown, options: {
21
- address: string;
22
- ethereumChainId: EthereumChainId;
23
- }): Promise<string>;
24
- /**
25
- * Sends Cosmos transaction. Returns a transaction hash
26
- * @param transaction should implement TransactionConfig
27
- * @param options
28
- */
29
- sendTransaction(transaction: DirectSignResponse | TxRaw, options: {
30
- address: string;
31
- chainId: ChainId;
32
- }): Promise<TxResponse>;
33
- /**
34
- * Sign a cosmos transaction using the wallet provider
35
- *
36
- * @param transaction
37
- * @param address - injective address
38
- */
39
- signCosmosTransaction(transaction: {
40
- txRaw: TxRaw;
41
- accountNumber: number;
42
- chainId: string;
43
- address: string;
44
- }): Promise<DirectSignResponse>;
45
- /**
46
- * Sign EIP712 TypedData using the wallet provider
47
- * @param eip712TypedData
48
- * @param address - ethereum address
49
- */
50
- signEip712TypedData(eip712TypedData: string, address: string): Promise<string>;
51
- }
52
- //# sourceMappingURL=provider.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../../src/types/provider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAA;AAC1D,OAAO,EAAE,KAAK,EAAE,MAAM,kDAAkD,CAAA;AACxE,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAA;AAClE,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAA;AAEtC,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,YAAY,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC,CAAA;IAEjC;;;OAGG;IACH,SAAS,IAAI,OAAO,CAAC,MAAM,CAAC,CAAA;IAE5B;;;;OAIG;IACH,uBAAuB,CACrB,WAAW,EAAE,OAAO,EACpB,OAAO,EAAE;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,eAAe,EAAE,eAAe,CAAA;KAAE,GAC7D,OAAO,CAAC,MAAM,CAAC,CAAA;IAElB;;;;OAIG;IACH,eAAe,CACb,WAAW,EAAE,kBAAkB,GAAG,KAAK,EACvC,OAAO,EAAE;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,OAAO,CAAA;KAAE,GAC7C,OAAO,CAAC,UAAU,CAAC,CAAA;IAEtB;;;;;OAKG;IACH,qBAAqB,CAAC,WAAW,EAAE;QACjC,KAAK,EAAE,KAAK,CAAA;QACZ,aAAa,EAAE,MAAM,CAAA;QACrB,OAAO,EAAE,MAAM,CAAA;QACf,OAAO,EAAE,MAAM,CAAA;KAChB,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAAA;IAE/B;;;;OAIG;IACH,mBAAmB,CAAC,eAAe,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAA;CAC/E"}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=provider.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"provider.js","sourceRoot":"","sources":["../../src/types/provider.ts"],"names":[],"mappings":""}