carbon-js-sdk 0.1.64 → 0.1.65
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/lib/index.d.ts +1 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +1 -2
- package/lib/index.js.map +1 -1
- package/lib/provider/index.d.ts +1 -1
- package/lib/provider/index.d.ts.map +1 -1
- package/lib/provider/index.js +1 -2
- package/lib/provider/index.js.map +1 -1
- package/lib/provider/keplr/KeplrStore.d.ts +0 -4
- package/lib/provider/keplr/KeplrStore.d.ts.map +1 -1
- package/lib/provider/keplr/KeplrStore.js +24 -12
- package/lib/provider/keplr/KeplrStore.js.map +1 -1
- package/lib/provider/keplr/index.d.ts +0 -1
- package/lib/provider/keplr/index.d.ts.map +1 -1
- package/lib/provider/keplr/index.js +2 -3
- package/lib/provider/keplr/index.js.map +1 -1
- package/lib/util/token.d.ts +0 -1
- package/lib/util/token.d.ts.map +1 -1
- package/lib/util/token.js +12 -13
- package/lib/util/token.js.map +1 -1
- package/package.json +1 -2
package/lib/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export * as Models from "./codec";
|
|
|
4
4
|
export * from "./util";
|
|
5
5
|
export { Blockchain } from "./util/blockchain";
|
|
6
6
|
export * from "./websocket";
|
|
7
|
-
export { AminoTypesMap, SDKProvider, KeplrAccount, KeplrWindow, CosmosLedger, Keplr, ChainInfo, EVMChain, MetaMaskChangeNetworkParam, CallContractArgs, MetaMaskSyncResult, MetaMask, EthLedgerAccount, EthLedgerSigner, NeoLedgerAccount, Zilpay, ZilPayChangeNetworkParam, O3Types, O3Wallet, RootStore, createRootStore
|
|
7
|
+
export { AminoTypesMap, SDKProvider, KeplrAccount, KeplrWindow, CosmosLedger, Keplr, ChainInfo, EVMChain, MetaMaskChangeNetworkParam, CallContractArgs, MetaMaskSyncResult, MetaMask, EthLedgerAccount, EthLedgerSigner, NeoLedgerAccount, Zilpay, ZilPayChangeNetworkParam, O3Types, O3Wallet, RootStore, createRootStore } from "./provider";
|
|
8
8
|
export { default as CarbonSDK } from "./CarbonSDK";
|
|
9
9
|
export { ProviderAgent } from "./constant";
|
|
10
10
|
export * as Insights from "./insights";
|
package/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,OAAO,KAAK,MAAM,MAAM,SAAS,CAAC;AAClC,cAAc,QAAQ,CAAC;AACvB,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,cAAc,aAAa,CAAC;AAC5B,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,YAAY,EAAE,WAAW,EAAE,YAAY,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,0BAA0B,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,QAAQ,EAAE,gBAAgB,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,EAAE,wBAAwB,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,eAAe,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,OAAO,KAAK,MAAM,MAAM,SAAS,CAAC;AAClC,cAAc,QAAQ,CAAC;AACvB,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,cAAc,aAAa,CAAC;AAC5B,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,YAAY,EAAE,WAAW,EAAE,YAAY,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,0BAA0B,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,QAAQ,EAAE,gBAAgB,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,EAAE,wBAAwB,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAC/U,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,KAAK,QAAQ,MAAM,YAAY,CAAC;AACvC,OAAO,KAAK,QAAQ,MAAM,YAAY,CAAC;AACvC,OAAO,EAAE,YAAY,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC"}
|
package/lib/index.js
CHANGED
|
@@ -25,7 +25,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
25
25
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
26
26
|
};
|
|
27
27
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
-
exports.CarbonNonSigner = exports.CarbonPrivateKeySigner = exports.CarbonLedgerSigner = exports.Hydrogen = exports.Insights = exports.ProviderAgent = exports.CarbonSDK = exports.
|
|
28
|
+
exports.CarbonNonSigner = exports.CarbonPrivateKeySigner = exports.CarbonLedgerSigner = exports.Hydrogen = exports.Insights = exports.ProviderAgent = exports.CarbonSDK = exports.createRootStore = exports.RootStore = exports.O3Wallet = exports.O3Types = exports.Zilpay = exports.NeoLedgerAccount = exports.EthLedgerSigner = exports.EthLedgerAccount = exports.MetaMask = exports.CosmosLedger = exports.KeplrAccount = exports.AminoTypesMap = exports.Blockchain = exports.Models = void 0;
|
|
29
29
|
__exportStar(require("./CarbonSDK"), exports);
|
|
30
30
|
__exportStar(require("./modules"), exports);
|
|
31
31
|
exports.Models = __importStar(require("./codec"));
|
|
@@ -46,7 +46,6 @@ Object.defineProperty(exports, "O3Types", { enumerable: true, get: function () {
|
|
|
46
46
|
Object.defineProperty(exports, "O3Wallet", { enumerable: true, get: function () { return provider_1.O3Wallet; } });
|
|
47
47
|
Object.defineProperty(exports, "RootStore", { enumerable: true, get: function () { return provider_1.RootStore; } });
|
|
48
48
|
Object.defineProperty(exports, "createRootStore", { enumerable: true, get: function () { return provider_1.createRootStore; } });
|
|
49
|
-
Object.defineProperty(exports, "CoinPretty", { enumerable: true, get: function () { return provider_1.CoinPretty; } });
|
|
50
49
|
var CarbonSDK_1 = require("./CarbonSDK");
|
|
51
50
|
Object.defineProperty(exports, "CarbonSDK", { enumerable: true, get: function () { return __importDefault(CarbonSDK_1).default; } });
|
|
52
51
|
var constant_1 = require("./constant");
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,4CAA0B;AAC1B,kDAAkC;AAClC,yCAAuB;AACvB,gDAA+C;AAAtC,wGAAA,UAAU,OAAA;AACnB,8CAA4B;AAC5B,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,4CAA0B;AAC1B,kDAAkC;AAClC,yCAAuB;AACvB,gDAA+C;AAAtC,wGAAA,UAAU,OAAA;AACnB,8CAA4B;AAC5B,uCAA+U;AAAtU,yGAAA,aAAa,OAAA;AAAe,wGAAA,YAAY,OAAA;AAAe,wGAAA,YAAY,OAAA;AAAgG,oGAAA,QAAQ,OAAA;AAAE,4GAAA,gBAAgB,OAAA;AAAE,2GAAA,eAAe,OAAA;AAAE,4GAAA,gBAAgB,OAAA;AAAE,kGAAA,MAAM,OAAA;AAA4B,mGAAA,OAAO,OAAA;AAAE,oGAAA,QAAQ,OAAA;AAAE,qGAAA,SAAS,OAAA;AAAE,2GAAA,eAAe,OAAA;AAC1T,yCAAmD;AAA1C,uHAAA,OAAO,OAAa;AAC7B,uCAA2C;AAAlC,yGAAA,aAAa,OAAA;AACtB,uDAAuC;AACvC,uDAAuC;AACvC,mCAA4I;AAA9E,4GAAA,kBAAkB,OAAA;AAAE,gHAAA,sBAAsB,OAAA;AAAE,yGAAA,eAAe,OAAA"}
|
package/lib/provider/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { EthLedgerAccount, EthLedgerSigner, NeoLedgerAccount } from "./account";
|
|
2
2
|
export { AminoTypesMap } from "./amino";
|
|
3
|
-
export { ChainInfo,
|
|
3
|
+
export { ChainInfo, default as KeplrAccount, Keplr, KeplrWindow, RootStore, createRootStore } from "./keplr";
|
|
4
4
|
export { default as CosmosLedger } from "./ledger";
|
|
5
5
|
export { CallContractArgs, EVMChain, MetaMask, MetaMaskChangeNetworkParam, MetaMaskSyncResult } from "./metamask";
|
|
6
6
|
export { O3Types, O3Wallet } from "./o3";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/provider/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAChF,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/provider/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAChF,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,OAAO,IAAI,YAAY,EAAE,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAC7G,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,UAAU,CAAC;AACnD,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,QAAQ,EAAE,0BAA0B,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAClH,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AACzC,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,OAAO,CAAC;AAC/C,OAAO,EAAE,MAAM,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAC"}
|
package/lib/provider/index.js
CHANGED
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.Zilpay = exports.O3Wallet = exports.O3Types = exports.MetaMask = exports.CosmosLedger = exports.createRootStore = exports.RootStore = exports.KeplrAccount = exports.
|
|
6
|
+
exports.Zilpay = exports.O3Wallet = exports.O3Types = exports.MetaMask = exports.CosmosLedger = exports.createRootStore = exports.RootStore = exports.KeplrAccount = exports.AminoTypesMap = exports.NeoLedgerAccount = exports.EthLedgerSigner = exports.EthLedgerAccount = void 0;
|
|
7
7
|
var account_1 = require("./account");
|
|
8
8
|
Object.defineProperty(exports, "EthLedgerAccount", { enumerable: true, get: function () { return account_1.EthLedgerAccount; } });
|
|
9
9
|
Object.defineProperty(exports, "EthLedgerSigner", { enumerable: true, get: function () { return account_1.EthLedgerSigner; } });
|
|
@@ -11,7 +11,6 @@ Object.defineProperty(exports, "NeoLedgerAccount", { enumerable: true, get: func
|
|
|
11
11
|
var amino_1 = require("./amino");
|
|
12
12
|
Object.defineProperty(exports, "AminoTypesMap", { enumerable: true, get: function () { return amino_1.AminoTypesMap; } });
|
|
13
13
|
var keplr_1 = require("./keplr");
|
|
14
|
-
Object.defineProperty(exports, "CoinPretty", { enumerable: true, get: function () { return keplr_1.CoinPretty; } });
|
|
15
14
|
Object.defineProperty(exports, "KeplrAccount", { enumerable: true, get: function () { return __importDefault(keplr_1).default; } });
|
|
16
15
|
Object.defineProperty(exports, "RootStore", { enumerable: true, get: function () { return keplr_1.RootStore; } });
|
|
17
16
|
Object.defineProperty(exports, "createRootStore", { enumerable: true, get: function () { return keplr_1.createRootStore; } });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/provider/index.ts"],"names":[],"mappings":";;;;;;AAAA,qCAAgF;AAAvE,2GAAA,gBAAgB,OAAA;AAAE,0GAAA,eAAe,OAAA;AAAE,2GAAA,gBAAgB,OAAA;AAC5D,iCAAwC;AAA/B,sGAAA,aAAa,OAAA;AACtB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/provider/index.ts"],"names":[],"mappings":";;;;;;AAAA,qCAAgF;AAAvE,2GAAA,gBAAgB,OAAA;AAAE,0GAAA,eAAe,OAAA;AAAE,2GAAA,gBAAgB,OAAA;AAC5D,iCAAwC;AAA/B,sGAAA,aAAa,OAAA;AACtB,iCAA6G;AAAzF,sHAAA,OAAO,OAAgB;AAAsB,kGAAA,SAAS,OAAA;AAAE,wGAAA,eAAe,OAAA;AAC3F,mCAAmD;AAA1C,uHAAA,OAAO,OAAgB;AAChC,uCAAkH;AAA7E,oGAAA,QAAQ,OAAA;AAC7C,2BAAyC;AAAhC,6FAAA,OAAO,OAAA;AAAE,8FAAA,QAAQ,OAAA;AAE1B,mCAA4D;AAAnD,gGAAA,MAAM,OAAA"}
|
|
@@ -1,9 +1,5 @@
|
|
|
1
|
-
import { AccountStore, ChainStore, QueriesStore, AccountWithCosmos, QueriesWithCosmos } from "@keplr-wallet/stores";
|
|
2
1
|
import { ChainInfo } from "@keplr-wallet/types";
|
|
3
2
|
export declare class RootStore {
|
|
4
|
-
readonly chainStore: ChainStore;
|
|
5
|
-
readonly queriesStore: QueriesStore<QueriesWithCosmos>;
|
|
6
|
-
readonly accountStore: AccountStore<AccountWithCosmos>;
|
|
7
3
|
constructor(getKeplr: () => Promise<any>, additionalChains?: ChainInfo[]);
|
|
8
4
|
}
|
|
9
5
|
export declare function createRootStore(getKeplr: () => Promise<any>, additionalChains?: ChainInfo[]): RootStore;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KeplrStore.d.ts","sourceRoot":"","sources":["../../../src/provider/keplr/KeplrStore.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"KeplrStore.d.ts","sourceRoot":"","sources":["../../../src/provider/keplr/KeplrStore.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAGhD,qBAAa,SAAS;gBAMR,QAAQ,EAAE,MAAM,OAAO,CAAC,GAAG,CAAC,EAAE,gBAAgB,CAAC,EAAE,SAAS,EAAE;CAkCzE;AAED,wBAAgB,eAAe,CAAC,QAAQ,EAAE,MAAM,OAAO,CAAC,GAAG,CAAC,EAAE,gBAAgB,CAAC,EAAE,SAAS,EAAE,aAE3F"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.createRootStore = exports.RootStore = void 0;
|
|
4
|
-
const stores_1 = require("@keplr-wallet/stores");
|
|
5
|
-
const common_1 = require("@keplr-wallet/common");
|
|
6
4
|
const token_1 = require("../../util/token");
|
|
7
5
|
class RootStore {
|
|
6
|
+
// public readonly chainStore: ChainStore;
|
|
7
|
+
// public readonly queriesStore: QueriesStore<QueriesWithCosmos>;
|
|
8
|
+
// public readonly accountStore: AccountStore<AccountWithCosmos>;
|
|
8
9
|
constructor(getKeplr, additionalChains) {
|
|
9
10
|
const embedChainInfos = Object.values(token_1.EmbedChainInfos).map((chainInfo) => {
|
|
10
11
|
const newChainInfo = chainInfo;
|
|
@@ -17,16 +18,27 @@ class RootStore {
|
|
|
17
18
|
if (additionalChains && (additionalChains === null || additionalChains === void 0 ? void 0 : additionalChains.length) > 0) {
|
|
18
19
|
embedChainInfos.push(...additionalChains);
|
|
19
20
|
}
|
|
20
|
-
this.chainStore = new
|
|
21
|
-
this.queriesStore = new
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
21
|
+
// this.chainStore = new ChainStore<ChainInfo>(embedChainInfos);
|
|
22
|
+
// this.queriesStore = new QueriesStore(
|
|
23
|
+
// new IndexedDBKVStore("store_queries"),
|
|
24
|
+
// this.chainStore,
|
|
25
|
+
// getKeplr,
|
|
26
|
+
// QueriesWithCosmos,
|
|
27
|
+
// );
|
|
28
|
+
// this.accountStore = new AccountStore(
|
|
29
|
+
// window,
|
|
30
|
+
// AccountWithCosmos,
|
|
31
|
+
// this.chainStore,
|
|
32
|
+
// this.queriesStore,
|
|
33
|
+
// {
|
|
34
|
+
// defaultOpts: {
|
|
35
|
+
// prefetching: false,
|
|
36
|
+
// suggestChain: true,
|
|
37
|
+
// autoInit: true,
|
|
38
|
+
// getKeplr,
|
|
39
|
+
// },
|
|
40
|
+
// }
|
|
41
|
+
// );
|
|
30
42
|
}
|
|
31
43
|
}
|
|
32
44
|
exports.RootStore = RootStore;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KeplrStore.js","sourceRoot":"","sources":["../../../src/provider/keplr/KeplrStore.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"KeplrStore.js","sourceRoot":"","sources":["../../../src/provider/keplr/KeplrStore.ts"],"names":[],"mappings":";;;AAUA,kDAAyD;AAEzD,MAAa,SAAS;IACpB,0CAA0C;IAE1C,iEAAiE;IACjE,iEAAiE;IAEjE,YAAY,QAA4B,EAAE,gBAA8B;QACtE,MAAM,eAAe,GAAG,MAAM,CAAC,MAAM,CAAC,uBAAe,CAAC,CAAC,GAAG,CAAC,CAAC,SAAiC,EAAE,EAAE;YAC/F,MAAM,YAAY,GAAQ,SAAS,CAAC;YACpC,IAAI,YAAY,CAAC,KAAK;gBAAE,OAAO,YAAY,CAAC,KAAK,CAAC;YAClD,IAAI,YAAY,CAAC,eAAe;gBAAE,OAAO,YAAY,CAAC,eAAe,CAAC;YACtE,OAAO,YAAyB,CAAA;QAClC,CAAC,CAAgB,CAAC;QAClB,IAAI,gBAAgB,IAAI,CAAA,gBAAgB,aAAhB,gBAAgB,uBAAhB,gBAAgB,CAAE,MAAM,IAAG,CAAC,EAAE;YACpD,eAAe,CAAC,IAAI,CAAC,GAAG,gBAAgB,CAAC,CAAA;SAC1C;QACD,gEAAgE;QAEhE,wCAAwC;QACxC,2CAA2C;QAC3C,qBAAqB;QACrB,cAAc;QACd,uBAAuB;QACvB,KAAK;QAEL,wCAAwC;QACxC,YAAY;QACZ,uBAAuB;QACvB,qBAAqB;QACrB,uBAAuB;QACvB,MAAM;QACN,qBAAqB;QACrB,4BAA4B;QAC5B,4BAA4B;QAC5B,wBAAwB;QACxB,kBAAkB;QAClB,SAAS;QACT,MAAM;QACN,KAAK;IACP,CAAC;CACF;AAxCD,8BAwCC;AAED,SAAgB,eAAe,CAAC,QAA4B,EAAE,gBAA8B;IAC1F,OAAO,IAAI,SAAS,CAAC,QAAQ,EAAE,gBAAgB,CAAC,CAAC;AACnD,CAAC;AAFD,0CAEC"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
export { default } from "./KeplrAccount";
|
|
2
2
|
export { KeplrWindow } from "./window";
|
|
3
3
|
export { Keplr, ChainInfo } from "@keplr-wallet/types";
|
|
4
|
-
export { CoinPretty } from "@keplr-wallet/unit";
|
|
5
4
|
export { RootStore, createRootStore } from "./KeplrStore";
|
|
6
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/provider/keplr/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/provider/keplr/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAEvD,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC"}
|
|
@@ -3,11 +3,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.createRootStore = exports.RootStore = exports.
|
|
6
|
+
exports.createRootStore = exports.RootStore = exports.default = void 0;
|
|
7
7
|
var KeplrAccount_1 = require("./KeplrAccount");
|
|
8
8
|
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(KeplrAccount_1).default; } });
|
|
9
|
-
|
|
10
|
-
Object.defineProperty(exports, "CoinPretty", { enumerable: true, get: function () { return unit_1.CoinPretty; } });
|
|
9
|
+
// export { CoinPretty } from "@keplr-wallet/unit";
|
|
11
10
|
var KeplrStore_1 = require("./KeplrStore");
|
|
12
11
|
Object.defineProperty(exports, "RootStore", { enumerable: true, get: function () { return KeplrStore_1.RootStore; } });
|
|
13
12
|
Object.defineProperty(exports, "createRootStore", { enumerable: true, get: function () { return KeplrStore_1.createRootStore; } });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/provider/keplr/index.ts"],"names":[],"mappings":";;;;;;AAAA,+CAAyC;AAAhC,wHAAA,OAAO,OAAA;AAGhB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/provider/keplr/index.ts"],"names":[],"mappings":";;;;;;AAAA,+CAAyC;AAAhC,wHAAA,OAAO,OAAA;AAGhB,mDAAmD;AACnD,2CAA0D;AAAjD,uGAAA,SAAS,OAAA;AAAE,6GAAA,eAAe,OAAA"}
|
package/lib/util/token.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ChainInfoExplorerTmRpc } from "../constant";
|
|
2
2
|
import { SimpleMap } from "./type";
|
|
3
3
|
export declare const FuturesDenomOverride: SimpleMap<string>;
|
|
4
|
-
export declare function makeIBCMinimalDenom(sourceChannelId: string, coinMinimalDenom: string): string;
|
|
5
4
|
export declare const EmbedChainInfos: SimpleMap<ChainInfoExplorerTmRpc>;
|
|
6
5
|
//# sourceMappingURL=token.d.ts.map
|
package/lib/util/token.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"token.d.ts","sourceRoot":"","sources":["../../src/util/token.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,
|
|
1
|
+
{"version":3,"file":"token.d.ts","sourceRoot":"","sources":["../../src/util/token.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAqC,MAAM,sBAAsB,CAAC;AAIjG,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AAEnC,eAAO,MAAM,oBAAoB,EAAE,SAAS,CAAC,MAAM,CAIlD,CAAC;AAaF,eAAO,MAAM,eAAe,mCAStB,CAAC"}
|
package/lib/util/token.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.EmbedChainInfos = exports.
|
|
3
|
+
exports.EmbedChainInfos = exports.FuturesDenomOverride = void 0;
|
|
4
4
|
const constant_1 = require("../constant");
|
|
5
|
-
|
|
5
|
+
// import { Hash } from "@keplr-wallet/crypto";
|
|
6
6
|
const provider_1 = require("../provider");
|
|
7
7
|
exports.FuturesDenomOverride = {
|
|
8
8
|
WBTC: 'BTC',
|
|
@@ -10,19 +10,18 @@ exports.FuturesDenomOverride = {
|
|
|
10
10
|
iusd: 'USD',
|
|
11
11
|
};
|
|
12
12
|
// Create IBC minimal denom
|
|
13
|
-
function makeIBCMinimalDenom(sourceChannelId, coinMinimalDenom) {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
;
|
|
21
|
-
const swthIbc =
|
|
13
|
+
// export function makeIBCMinimalDenom(sourceChannelId: string, coinMinimalDenom: string): string {
|
|
14
|
+
// return (
|
|
15
|
+
// 'ibc/' +
|
|
16
|
+
// Buffer.from(Hash.sha256(Buffer.from(`transfer/${sourceChannelId}/${coinMinimalDenom}`)))
|
|
17
|
+
// .toString('hex')
|
|
18
|
+
// .toUpperCase()
|
|
19
|
+
// );
|
|
20
|
+
// };
|
|
21
|
+
// const swthIbc = ibcAssetObj.assets[ibcDisplayOverride['swth']];
|
|
22
22
|
exports.EmbedChainInfos = Object.values(constant_1.EmbedChainInfosInit).reduce((prev, chainInfo) => {
|
|
23
|
-
var _a, _b;
|
|
24
23
|
if (constant_1.ibcWhitelist.includes(chainInfo.chainId)) {
|
|
25
|
-
chainInfo.currencies.push(Object.assign(
|
|
24
|
+
chainInfo.currencies.push(Object.assign({}, provider_1.KeplrAccount.SWTH_CURRENCY));
|
|
26
25
|
}
|
|
27
26
|
prev[chainInfo.chainId] = chainInfo;
|
|
28
27
|
return prev;
|
package/lib/util/token.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"token.js","sourceRoot":"","sources":["../../src/util/token.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"token.js","sourceRoot":"","sources":["../../src/util/token.ts"],"names":[],"mappings":";;;AAAA,mDAAiG;AACjG,+CAA+C;AAC/C,mDAAoD;AAIvC,QAAA,oBAAoB,GAAsB;IACrD,IAAI,EAAE,KAAK;IACX,IAAI,EAAE,KAAK;IACX,IAAI,EAAE,KAAK;CACZ,CAAC;AAEF,2BAA2B;AAC3B,mGAAmG;AACnG,YAAY;AACZ,aAAa;AACb,6FAA6F;AAC7F,sBAAsB;AACtB,oBAAoB;AACpB,MAAM;AACN,KAAK;AAEL,kEAAkE;AACrD,QAAA,eAAe,GAAG,MAAM,CAAC,MAAM,CAAC,8BAAmB,CAAC,CAAC,MAAM,CAAC,CAAC,IAAuC,EAAE,SAAiC,EAAE,EAAE;IACvJ,IAAI,uBAAY,CAAC,QAAQ,CAAC,SAAS,CAAC,OAAO,CAAC,EAAE;QAC7C,SAAS,CAAC,UAAU,CAAC,IAAI,mBACrB,uBAAY,CAAC,aAAa,EAE5B,CAAA;KACF;IACD,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,GAAG,SAAS,CAAC;IACpC,OAAO,IAAI,CAAC;AACb,CAAC,EAAE,EAAE,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "carbon-js-sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.65",
|
|
4
4
|
"description": "TypeScript SDK for Carbon blockchain",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -43,7 +43,6 @@
|
|
|
43
43
|
"@cosmjs/proto-signing": "^0.26.6",
|
|
44
44
|
"@cosmjs/stargate": "^0.26.6",
|
|
45
45
|
"@grpc/grpc-js": "^1.3.2",
|
|
46
|
-
"@keplr-wallet/stores": "~0.9.0-alpha.10",
|
|
47
46
|
"@keplr-wallet/types": "~0.8.13",
|
|
48
47
|
"@ledgerhq/hw-app-eth": "^6.11.2",
|
|
49
48
|
"@ledgerhq/hw-transport": "^6.3.0",
|