@ledgerhq/cryptoassets 13.14.1-nightly.0 → 13.15.0-nightly.2
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/.turbo/turbo-build.log +1 -1
- package/CHANGELOG.md +12 -0
- package/lib/crypto-assets-importer/importers/apt/aptos.test.d.ts +2 -0
- package/lib/crypto-assets-importer/importers/apt/aptos.test.d.ts.map +1 -0
- package/lib/crypto-assets-importer/importers/apt/aptos.test.js +69 -0
- package/lib/crypto-assets-importer/importers/apt/aptos.test.js.map +1 -0
- package/lib/crypto-assets-importer/importers/apt/index.d.ts +2 -0
- package/lib/crypto-assets-importer/importers/apt/index.d.ts.map +1 -0
- package/lib/crypto-assets-importer/importers/apt/index.js +50 -0
- package/lib/crypto-assets-importer/importers/apt/index.js.map +1 -0
- package/lib/crypto-assets-importer/index.js +3 -0
- package/lib/crypto-assets-importer/index.js.map +1 -1
- package/lib/currencies.d.ts.map +1 -1
- package/lib/currencies.js +38 -180
- package/lib/currencies.js.map +1 -1
- package/lib/data/apt_coin-hash.json +1 -0
- package/lib/data/apt_coin.d.ts +12 -0
- package/lib/data/apt_coin.d.ts.map +1 -0
- package/lib/data/apt_coin.js +11 -0
- package/lib/data/apt_coin.js.map +1 -0
- package/lib/data/apt_coin.json +1 -0
- package/lib/data/apt_fungible_asset-hash.json +1 -0
- package/lib/data/apt_fungible_asset.d.ts +12 -0
- package/lib/data/apt_fungible_asset.d.ts.map +1 -0
- package/lib/data/apt_fungible_asset.js +11 -0
- package/lib/data/apt_fungible_asset.js.map +1 -0
- package/lib/data/apt_fungible_asset.json +1 -0
- package/lib/tokens.d.ts.map +1 -1
- package/lib/tokens.js +33 -1
- package/lib/tokens.js.map +1 -1
- package/lib-es/crypto-assets-importer/importers/apt/aptos.test.d.ts +2 -0
- package/lib-es/crypto-assets-importer/importers/apt/aptos.test.d.ts.map +1 -0
- package/lib-es/crypto-assets-importer/importers/apt/aptos.test.js +64 -0
- package/lib-es/crypto-assets-importer/importers/apt/aptos.test.js.map +1 -0
- package/lib-es/crypto-assets-importer/importers/apt/index.d.ts +2 -0
- package/lib-es/crypto-assets-importer/importers/apt/index.d.ts.map +1 -0
- package/lib-es/crypto-assets-importer/importers/apt/index.js +43 -0
- package/lib-es/crypto-assets-importer/importers/apt/index.js.map +1 -0
- package/lib-es/crypto-assets-importer/index.js +3 -0
- package/lib-es/crypto-assets-importer/index.js.map +1 -1
- package/lib-es/currencies.d.ts.map +1 -1
- package/lib-es/currencies.js +39 -181
- package/lib-es/currencies.js.map +1 -1
- package/lib-es/data/apt_coin-hash.json +1 -0
- package/lib-es/data/apt_coin.d.ts +12 -0
- package/lib-es/data/apt_coin.d.ts.map +1 -0
- package/lib-es/data/apt_coin.js +4 -0
- package/lib-es/data/apt_coin.js.map +1 -0
- package/lib-es/data/apt_coin.json +1 -0
- package/lib-es/data/apt_fungible_asset-hash.json +1 -0
- package/lib-es/data/apt_fungible_asset.d.ts +12 -0
- package/lib-es/data/apt_fungible_asset.d.ts.map +1 -0
- package/lib-es/data/apt_fungible_asset.js +4 -0
- package/lib-es/data/apt_fungible_asset.js.map +1 -0
- package/lib-es/data/apt_fungible_asset.json +1 -0
- package/lib-es/tokens.d.ts.map +1 -1
- package/lib-es/tokens.js +33 -1
- package/lib-es/tokens.js.map +1 -1
- package/package.json +1 -1
- package/src/__snapshots__/currencies.test.ts.snap +1 -0
- package/src/crypto-assets-importer/importers/apt/aptos.test.ts +80 -0
- package/src/crypto-assets-importer/importers/apt/index.ts +61 -0
- package/src/crypto-assets-importer/index.ts +3 -0
- package/src/currencies.ts +46 -181
- package/src/data/apt_coin-hash.json +1 -0
- package/src/data/apt_coin.json +1 -0
- package/src/data/apt_coin.ts +14 -0
- package/src/data/apt_fungible_asset-hash.json +1 -0
- package/src/data/apt_fungible_asset.json +1 -0
- package/src/data/apt_fungible_asset.ts +14 -0
- package/src/tokens.ts +38 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
|
|
2
|
-
> @ledgerhq/cryptoassets@13.
|
|
2
|
+
> @ledgerhq/cryptoassets@13.15.0-nightly.1 build /home/runner/work/ledger-live/ledger-live/libs/ledgerjs/packages/cryptoassets
|
|
3
3
|
> tsc && tsc -m esnext --moduleResolution bundler --outDir lib-es
|
|
4
4
|
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @ledgerhq/cryptoassets
|
|
2
2
|
|
|
3
|
+
## 13.15.0-nightly.2
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#9451](https://github.com/LedgerHQ/ledger-live/pull/9451) [`c6cb1bd`](https://github.com/LedgerHQ/ledger-live/commit/c6cb1bd2a0768ccbeeee96342dc8b872a620f3ac) Thanks [@may01](https://github.com/may01)! - Add aptos tokens to cryptoassets
|
|
8
|
+
|
|
9
|
+
## 13.15.0-nightly.1
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [#9649](https://github.com/LedgerHQ/ledger-live/pull/9649) [`1e56618`](https://github.com/LedgerHQ/ledger-live/commit/1e56618a3c31e7980074072e0aae9422c145f4b3) Thanks [@palra](https://github.com/palra)! - change explorer URLs to Blockscout for a variety of EVM coins
|
|
14
|
+
|
|
3
15
|
## 13.14.1-nightly.0
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"aptos.test.d.ts","sourceRoot":"","sources":["../../../../src/crypto-assets-importer/importers/apt/aptos.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const axios_1 = __importDefault(require("axios"));
|
|
7
|
+
const _1 = require(".");
|
|
8
|
+
const fs_1 = __importDefault(require("fs"));
|
|
9
|
+
const aptosTokens = [
|
|
10
|
+
{
|
|
11
|
+
id: "aptos/coin/aptos_coin_0x1::aptos_coin::aptoscoin",
|
|
12
|
+
ticker: "APT",
|
|
13
|
+
name: "Aptos Coin",
|
|
14
|
+
contract_address: "0x1::aptos_coin::AptosCoin",
|
|
15
|
+
decimals: 8,
|
|
16
|
+
delisted: false,
|
|
17
|
+
},
|
|
18
|
+
];
|
|
19
|
+
const mockedAxios = jest.spyOn(axios_1.default, "get");
|
|
20
|
+
describe("import APT tokens", () => {
|
|
21
|
+
beforeEach(() => {
|
|
22
|
+
mockedAxios.mockImplementation(() => Promise.resolve({
|
|
23
|
+
data: aptosTokens,
|
|
24
|
+
headers: { ["etag"]: "commitHash" },
|
|
25
|
+
}));
|
|
26
|
+
});
|
|
27
|
+
afterEach(() => {
|
|
28
|
+
jest.clearAllMocks();
|
|
29
|
+
});
|
|
30
|
+
it("should output the file in the correct format", async () => {
|
|
31
|
+
const expectedFile = `export type AptosToken = [
|
|
32
|
+
string, // id
|
|
33
|
+
string, // ticker
|
|
34
|
+
string, // name
|
|
35
|
+
string, // contractAddress
|
|
36
|
+
number, // decimals
|
|
37
|
+
boolean?, // delisted
|
|
38
|
+
];
|
|
39
|
+
|
|
40
|
+
import tokens from "./apt_coin.json";
|
|
41
|
+
|
|
42
|
+
export { default as hash } from "./apt_coin-hash.json";
|
|
43
|
+
|
|
44
|
+
export default tokens as AptosToken[];
|
|
45
|
+
`;
|
|
46
|
+
const mockedFs = (fs_1.default.writeFileSync = jest.fn());
|
|
47
|
+
await (0, _1.importAptosTokens)(".", "coin");
|
|
48
|
+
expect(mockedAxios).toHaveBeenCalledWith("https://crypto-assets-service.api.ledger.com/v1/tokens", {
|
|
49
|
+
params: {
|
|
50
|
+
blockchain_name: "aptos",
|
|
51
|
+
standard: "coin",
|
|
52
|
+
output: "id,ticker,name,contract_address,decimals,delisted",
|
|
53
|
+
},
|
|
54
|
+
});
|
|
55
|
+
expect(mockedFs).toHaveBeenNthCalledWith(1, "apt_coin.json", JSON.stringify([
|
|
56
|
+
[
|
|
57
|
+
"aptos/coin/aptos_coin_0x1::aptos_coin::aptoscoin",
|
|
58
|
+
"APT",
|
|
59
|
+
"Aptos Coin",
|
|
60
|
+
"0x1::aptos_coin::AptosCoin",
|
|
61
|
+
8,
|
|
62
|
+
false,
|
|
63
|
+
],
|
|
64
|
+
]));
|
|
65
|
+
expect(mockedFs).toHaveBeenNthCalledWith(2, "apt_coin-hash.json", JSON.stringify("commitHash"));
|
|
66
|
+
expect(mockedFs).toHaveBeenNthCalledWith(3, "apt_coin.ts", expectedFile);
|
|
67
|
+
});
|
|
68
|
+
});
|
|
69
|
+
//# sourceMappingURL=aptos.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"aptos.test.js","sourceRoot":"","sources":["../../../../src/crypto-assets-importer/importers/apt/aptos.test.ts"],"names":[],"mappings":";;;;;AAAA,kDAA0B;AAC1B,wBAAsC;AACtC,4CAAoB;AAEpB,MAAM,WAAW,GAAG;IAClB;QACE,EAAE,EAAE,kDAAkD;QACtD,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,YAAY;QAClB,gBAAgB,EAAE,4BAA4B;QAC9C,QAAQ,EAAE,CAAC;QACX,QAAQ,EAAE,KAAK;KAChB;CACF,CAAC;AAEF,MAAM,WAAW,GAAG,IAAI,CAAC,KAAK,CAAC,eAAK,EAAE,KAAK,CAAC,CAAC;AAE7C,QAAQ,CAAC,mBAAmB,EAAE,GAAG,EAAE;IACjC,UAAU,CAAC,GAAG,EAAE;QACd,WAAW,CAAC,kBAAkB,CAAC,GAAG,EAAE,CAClC,OAAO,CAAC,OAAO,CAAC;YACd,IAAI,EAAE,WAAW;YACjB,OAAO,EAAE,EAAE,CAAC,MAAM,CAAC,EAAE,YAAY,EAAE;SACpC,CAAC,CACH,CAAC;IACJ,CAAC,CAAC,CAAC;IAEH,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,CAAC,aAAa,EAAE,CAAC;IACvB,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,8CAA8C,EAAE,KAAK,IAAI,EAAE;QAC5D,MAAM,YAAY,GAAG;;;;;;;;;;;;;;CAcxB,CAAC;QAEE,MAAM,QAAQ,GAAG,CAAC,YAAE,CAAC,aAAa,GAAG,IAAI,CAAC,EAAE,EAAE,CAAC,CAAC;QAEhD,MAAM,IAAA,oBAAiB,EAAC,GAAG,EAAE,MAAM,CAAC,CAAC;QAErC,MAAM,CAAC,WAAW,CAAC,CAAC,oBAAoB,CACtC,wDAAwD,EACxD;YACE,MAAM,EAAE;gBACN,eAAe,EAAE,OAAO;gBACxB,QAAQ,EAAE,MAAM;gBAChB,MAAM,EAAE,mDAAmD;aAC5D;SACF,CACF,CAAC;QACF,MAAM,CAAC,QAAQ,CAAC,CAAC,uBAAuB,CACtC,CAAC,EACD,eAAe,EACf,IAAI,CAAC,SAAS,CAAC;YACb;gBACE,kDAAkD;gBAClD,KAAK;gBACL,YAAY;gBACZ,4BAA4B;gBAC5B,CAAC;gBACD,KAAK;aACN;SACF,CAAC,CACH,CAAC;QACF,MAAM,CAAC,QAAQ,CAAC,CAAC,uBAAuB,CAAC,CAAC,EAAE,oBAAoB,EAAE,IAAI,CAAC,SAAS,CAAC,YAAY,CAAC,CAAC,CAAC;QAChG,MAAM,CAAC,QAAQ,CAAC,CAAC,uBAAuB,CAAC,CAAC,EAAE,aAAa,EAAE,YAAY,CAAC,CAAC;IAC3E,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/crypto-assets-importer/importers/apt/index.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,iBAAiB,cAAqB,MAAM,YAAY,MAAM,kBA+C1E,CAAC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.importAptosTokens = void 0;
|
|
7
|
+
const fs_1 = __importDefault(require("fs"));
|
|
8
|
+
const path_1 = __importDefault(require("path"));
|
|
9
|
+
const fetch_1 = require("../../fetch");
|
|
10
|
+
const importAptosTokens = async (outputDir, standard) => {
|
|
11
|
+
try {
|
|
12
|
+
console.log(`importing aptos ${standard} tokens...`);
|
|
13
|
+
const { tokens, hash } = await (0, fetch_1.fetchTokensFromCALService)({ blockchain_name: "aptos", standard: standard }, ["id", "ticker", "name", "contract_address", "decimals", "delisted"]);
|
|
14
|
+
const aptosTokens = tokens.map(token => [
|
|
15
|
+
token.id,
|
|
16
|
+
token.ticker,
|
|
17
|
+
token.name,
|
|
18
|
+
token.contract_address,
|
|
19
|
+
token.decimals,
|
|
20
|
+
token.delisted,
|
|
21
|
+
]);
|
|
22
|
+
const filePath = path_1.default.join(outputDir, `apt_${standard}`);
|
|
23
|
+
const aptosTypeStringified = `export type AptosToken = [
|
|
24
|
+
string, // id
|
|
25
|
+
string, // ticker
|
|
26
|
+
string, // name
|
|
27
|
+
string, // contractAddress
|
|
28
|
+
number, // decimals
|
|
29
|
+
boolean?, // delisted
|
|
30
|
+
];`;
|
|
31
|
+
fs_1.default.writeFileSync(`${filePath}.json`, JSON.stringify(aptosTokens));
|
|
32
|
+
if (hash) {
|
|
33
|
+
fs_1.default.writeFileSync(`${filePath}-hash.json`, JSON.stringify(hash));
|
|
34
|
+
}
|
|
35
|
+
fs_1.default.writeFileSync(`${filePath}.ts`, `${aptosTypeStringified}
|
|
36
|
+
|
|
37
|
+
import tokens from "./apt_${standard}.json";
|
|
38
|
+
|
|
39
|
+
${hash ? `export { default as hash } from "./apt_${standard}-hash.json";` : ""}
|
|
40
|
+
|
|
41
|
+
export default tokens as AptosToken[];
|
|
42
|
+
`);
|
|
43
|
+
console.log(`importing aptos ${standard} tokens success`);
|
|
44
|
+
}
|
|
45
|
+
catch (err) {
|
|
46
|
+
console.error(err);
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
exports.importAptosTokens = importAptosTokens;
|
|
50
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/crypto-assets-importer/importers/apt/index.ts"],"names":[],"mappings":";;;;;;AAAA,4CAAoB;AACpB,gDAAwB;AACxB,uCAAwD;AAWjD,MAAM,iBAAiB,GAAG,KAAK,EAAE,SAAiB,EAAE,QAAgB,EAAE,EAAE;IAC7E,IAAI,CAAC;QACH,OAAO,CAAC,GAAG,CAAC,mBAAmB,QAAQ,YAAY,CAAC,CAAC;QACrD,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,IAAA,iCAAyB,EACtD,EAAE,eAAe,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAChD,CAAC,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,kBAAkB,EAAE,UAAU,EAAE,UAAU,CAAC,CACrE,CAAC;QACF,MAAM,WAAW,GAAiB,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC;YACpD,KAAK,CAAC,EAAE;YACR,KAAK,CAAC,MAAM;YACZ,KAAK,CAAC,IAAI;YACV,KAAK,CAAC,gBAAgB;YACtB,KAAK,CAAC,QAAQ;YACd,KAAK,CAAC,QAAQ;SACf,CAAC,CAAC;QAEH,MAAM,QAAQ,GAAG,cAAI,CAAC,IAAI,CAAC,SAAS,EAAE,OAAO,QAAQ,EAAE,CAAC,CAAC;QACzD,MAAM,oBAAoB,GAAG;;;;;;;GAO9B,CAAC;QAEA,YAAE,CAAC,aAAa,CAAC,GAAG,QAAQ,OAAO,EAAE,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC,CAAC;QAClE,IAAI,IAAI,EAAE,CAAC;YACT,YAAE,CAAC,aAAa,CAAC,GAAG,QAAQ,YAAY,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC;QAClE,CAAC;QAED,YAAE,CAAC,aAAa,CACd,GAAG,QAAQ,KAAK,EAChB,GAAG,oBAAoB;;4BAED,QAAQ;;EAElC,IAAI,CAAC,CAAC,CAAC,0CAA0C,QAAQ,cAAc,CAAC,CAAC,CAAC,EAAE;;;CAG7E,CACI,CAAC;QAEF,OAAO,CAAC,GAAG,CAAC,mBAAmB,QAAQ,iBAAiB,CAAC,CAAC;IAC5D,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IACrB,CAAC;AACH,CAAC,CAAC;AA/CW,QAAA,iBAAiB,qBA+C5B"}
|
|
@@ -16,6 +16,7 @@ const ton_1 = require("./importers/ton");
|
|
|
16
16
|
const trc10_1 = require("./importers/trc10");
|
|
17
17
|
const trc20_1 = require("./importers/trc20");
|
|
18
18
|
const vip180_1 = require("./importers/vip180");
|
|
19
|
+
const apt_1 = require("./importers/apt");
|
|
19
20
|
const bep20_1 = require("./exchange/bep20");
|
|
20
21
|
const coins_1 = require("./exchange/coins");
|
|
21
22
|
const erc20_1 = require("./exchange/erc20");
|
|
@@ -37,6 +38,8 @@ const importTokens = async () => {
|
|
|
37
38
|
(0, filecoin_1.importFilecoinERC20Tokens)(outputFolder),
|
|
38
39
|
(0, ton_1.importTonJettonTokens)(outputFolder),
|
|
39
40
|
(0, vip180_1.importVip180Tokens)(outputFolder),
|
|
41
|
+
(0, apt_1.importAptosTokens)(outputFolder, "coin"),
|
|
42
|
+
(0, apt_1.importAptosTokens)(outputFolder, "fungible_asset"),
|
|
40
43
|
];
|
|
41
44
|
await Promise.allSettled(promises);
|
|
42
45
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/crypto-assets-importer/index.ts"],"names":[],"mappings":";;;;;AAAA,gDAAwB;AAExB,yCAAkD;AAClD,6DAAsE;AACtE,+CAAkE;AAClE,2CAAoD;AACpD,yCAAkD;AAClD,mDAAiE;AACjE,yCAAkD;AAClD,iDAA0D;AAC1D,yCAAwD;AACxD,6CAAsD;AACtD,6CAAsD;AACtD,+CAAwD;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/crypto-assets-importer/index.ts"],"names":[],"mappings":";;;;;AAAA,gDAAwB;AAExB,yCAAkD;AAClD,6DAAsE;AACtE,+CAAkE;AAClE,2CAAoD;AACpD,yCAAkD;AAClD,mDAAiE;AACjE,yCAAkD;AAClD,iDAA0D;AAC1D,yCAAwD;AACxD,6CAAsD;AACtD,6CAAsD;AACtD,+CAAwD;AACxD,yCAAoD;AAEpD,4CAAuD;AACvD,4CAAuD;AACvD,4CAAuD;AACvD,4DAAsE;AACtE,4CAAuD;AAEvD,MAAM,YAAY,GAAG,cAAI,CAAC,IAAI,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;AAErD,MAAM,YAAY,GAAG,KAAK,IAAI,EAAE;IAC9B,MAAM,QAAQ,GAAG;QACf,IAAA,qBAAY,EAAC,YAAY,CAAC;QAC1B,IAAA,uBAAc,EAAC,YAAY,CAAC;QAC5B,IAAA,qBAAe,EAAC,YAAY,CAAC;QAC7B,IAAA,qBAAe,EAAC,YAAY,CAAC;QAC7B,IAAA,yCAAyB,EAAC,YAAY,CAAC;QACvC,IAAA,uBAAgB,EAAC,YAAY,CAAC;QAC9B,IAAA,qBAAe,EAAC,YAAY,CAAC;QAC7B,IAAA,6BAAmB,EAAC,YAAY,CAAC;QACjC,IAAA,yBAAiB,EAAC,YAAY,CAAC;QAC/B,IAAA,yBAAiB,EAAC,YAAY,CAAC;QAC/B,IAAA,oCAAyB,EAAC,YAAY,CAAC;QACvC,IAAA,2BAAqB,EAAC,YAAY,CAAC;QACnC,IAAA,2BAAkB,EAAC,YAAY,CAAC;QAChC,IAAA,uBAAiB,EAAC,YAAY,EAAE,MAAM,CAAC;QACvC,IAAA,uBAAiB,EAAC,YAAY,EAAE,gBAAgB,CAAC;KAClD,CAAC;IAEF,MAAM,OAAO,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC;AACrC,CAAC,CAAC;AAEF,MAAM,oBAAoB,GAAG,KAAK,IAAI,EAAE;IACtC,MAAM,QAAQ,GAAG;QACf,IAAA,2BAAmB,EAAC,YAAY,CAAC;QACjC,IAAA,2BAAmB,EAAC,YAAY,CAAC;QACjC,IAAA,0CAA0B,EAAC,YAAY,CAAC;QACxC,IAAA,2BAAmB,EAAC,YAAY,CAAC;QACjC,IAAA,2BAAmB,EAAC,YAAY,CAAC;KAClC,CAAC;IAEF,MAAM,OAAO,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC;AACrC,CAAC,CAAC;AAEF,MAAM,IAAI,GAAG,KAAK,IAAI,EAAE;IACtB,OAAO,CAAC,GAAG,CAAC,6CAA6C,CAAC,CAAC;IAE3D,MAAM,YAAY,EAAE,CAAC;IACrB,MAAM,oBAAoB,EAAE,CAAC;IAE7B,OAAO,CAAC,GAAG,CAAC,8CAA8C,CAAC,CAAC;AAC9D,CAAC,CAAC;AAEF,IAAI,EAAE,CAAC"}
|
package/lib/currencies.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"currencies.d.ts","sourceRoot":"","sources":["../src/currencies.ts"],"names":[],"mappings":"AAuBA,OAAO,
|
|
1
|
+
{"version":3,"file":"currencies.d.ts","sourceRoot":"","sources":["../src/currencies.ts"],"names":[],"mappings":"AAuBA,OAAO,EAEL,cAAc,EACd,gBAAgB,EAGjB,MAAM,8BAA8B,CAAC;AAuEtC,eAAO,MAAM,oBAAoB,EAAE,MAAM,CAAC,gBAAgB,EAAE,cAAc,CAwsIzE,CAAC;AAaF;;;;GAIG;AACH,wBAAgB,sBAAsB,CAAC,QAAQ,EAAE,cAAc,GAAG,IAAI,CA2BrE;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAClC,aAAa,UAAQ,EACrB,cAAc,UAAQ,GACrB,cAAc,EAAE,CAQlB;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,CAChC,CAAC,EAAE,CAAC,IAAI,EAAE,cAAc,KAAK,OAAO,GACnC,cAAc,GAAG,IAAI,GAAG,SAAS,CAEnC;AAED;;;GAGG;AACH,wBAAgB,0BAA0B,CAAC,MAAM,EAAE,MAAM,GAAG,cAAc,GAAG,IAAI,GAAG,SAAS,CAE5F;AAED;;;GAGG;AACH,wBAAgB,0BAA0B,CAAC,MAAM,EAAE,MAAM,GAAG,cAAc,GAAG,IAAI,GAAG,SAAS,CAE5F;AAED,wBAAgB,sBAAsB,CAAC,EAAE,EAAE,MAAM,GAAG,cAAc,GAAG,SAAS,CAE7E;AAaD;;;GAGG;AACH,eAAO,MAAM,2BAA2B,YAC7B,MAAM,uBAEd,cAAc,GAAG,IAAI,GAAG,SAc1B,CAAC;AAEF,eAAO,MAAM,kCAAkC,mBAC7B,MAAM,KACrB,cAAc,GAAG,IAAI,GAAG,SAS1B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,mBAAmB,OAAQ,MAAM,KAAG,OAAqC,CAAC;AAEvF,wBAAgB,qBAAqB,CAAC,EAAE,EAAE,MAAM,GAAG,cAAc,CAQhE"}
|
package/lib/currencies.js
CHANGED
|
@@ -24,6 +24,18 @@
|
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
25
|
exports.getCryptoCurrencyById = exports.hasCryptoCurrencyId = exports.findCryptoCurrencyByManagerAppName = exports.findCryptoCurrencyByKeyword = exports.findCryptoCurrencyById = exports.findCryptoCurrencyByTicker = exports.findCryptoCurrencyByScheme = exports.findCryptoCurrency = exports.listCryptoCurrencies = exports.registerCryptoCurrency = exports.cryptocurrenciesById = void 0;
|
|
26
26
|
const types_cryptoassets_1 = require("@ledgerhq/types-cryptoassets");
|
|
27
|
+
/**
|
|
28
|
+
* Make an ExplorerView for a Blockscout based explorer
|
|
29
|
+
* @private
|
|
30
|
+
* @param baseURL The explorer base URL. It MUST be properly formatted with no trailing slash. No checks are performed.
|
|
31
|
+
*/
|
|
32
|
+
function blockscoutExplorerView(baseURL) {
|
|
33
|
+
return {
|
|
34
|
+
tx: `${baseURL}/tx/$hash`,
|
|
35
|
+
address: `${baseURL}/address/$address`,
|
|
36
|
+
token: `${baseURL}/address/$address?tab=token_transfer&token=$contractAddress`,
|
|
37
|
+
};
|
|
38
|
+
}
|
|
27
39
|
const makeTestnetUnit = u => ({ ...u, code: `𝚝${u.code}` });
|
|
28
40
|
const bitcoinUnits = [
|
|
29
41
|
{
|
|
@@ -3592,13 +3604,7 @@ exports.cryptocurrenciesById = {
|
|
|
3592
3604
|
ethereumLikeInfo: {
|
|
3593
3605
|
chainId: 42161,
|
|
3594
3606
|
},
|
|
3595
|
-
explorerViews: [
|
|
3596
|
-
{
|
|
3597
|
-
tx: "https://arbiscan.io/tx/$hash",
|
|
3598
|
-
address: "https://arbiscan.io/address/$address",
|
|
3599
|
-
token: "https://arbiscan.io/token/$contractAddress?a=$address",
|
|
3600
|
-
},
|
|
3601
|
-
],
|
|
3607
|
+
explorerViews: [blockscoutExplorerView("https://arbitrum.blockscout.com")],
|
|
3602
3608
|
},
|
|
3603
3609
|
arbitrum_sepolia: {
|
|
3604
3610
|
type: "CryptoCurrency",
|
|
@@ -3617,13 +3623,7 @@ exports.cryptocurrenciesById = {
|
|
|
3617
3623
|
ethereumLikeInfo: {
|
|
3618
3624
|
chainId: 421614,
|
|
3619
3625
|
},
|
|
3620
|
-
explorerViews: [
|
|
3621
|
-
{
|
|
3622
|
-
tx: "https://sepolia.arbiscan.io/tx/$hash",
|
|
3623
|
-
address: "https://sepolia.arbiscan.io/address/$address",
|
|
3624
|
-
token: "https://sepolia.arbiscan.io/token/$contractAddress?a=$address",
|
|
3625
|
-
},
|
|
3626
|
-
],
|
|
3626
|
+
explorerViews: [blockscoutExplorerView("https://arbitrum-sepolia.blockscout.com")],
|
|
3627
3627
|
},
|
|
3628
3628
|
// Cronos EVM blockchain
|
|
3629
3629
|
cronos: {
|
|
@@ -3646,13 +3646,7 @@ exports.cryptocurrenciesById = {
|
|
|
3646
3646
|
magnitude: 18,
|
|
3647
3647
|
},
|
|
3648
3648
|
],
|
|
3649
|
-
explorerViews: [
|
|
3650
|
-
{
|
|
3651
|
-
tx: "https://cronoscan.com/tx/$hash",
|
|
3652
|
-
address: "https://cronoscan.com/address/$address",
|
|
3653
|
-
token: "https://cronoscan.com/token/$contractAddress?a=$address",
|
|
3654
|
-
},
|
|
3655
|
-
],
|
|
3649
|
+
explorerViews: [blockscoutExplorerView("https://cronos.org/explorer")],
|
|
3656
3650
|
},
|
|
3657
3651
|
fantom: {
|
|
3658
3652
|
type: "CryptoCurrency",
|
|
@@ -3690,12 +3684,7 @@ exports.cryptocurrenciesById = {
|
|
|
3690
3684
|
chainId: 14,
|
|
3691
3685
|
},
|
|
3692
3686
|
units: ethereumUnits("FLR", "FLR"),
|
|
3693
|
-
explorerViews: [
|
|
3694
|
-
{
|
|
3695
|
-
tx: "https://flare-explorer.flare.network/tx/$hash/internal-transactions",
|
|
3696
|
-
address: "https://flare-explorer.flare.network/address/$address/transactions",
|
|
3697
|
-
},
|
|
3698
|
-
],
|
|
3687
|
+
explorerViews: [blockscoutExplorerView("https://flare-explorer.flare.network")],
|
|
3699
3688
|
},
|
|
3700
3689
|
songbird: {
|
|
3701
3690
|
type: "CryptoCurrency",
|
|
@@ -3711,12 +3700,7 @@ exports.cryptocurrenciesById = {
|
|
|
3711
3700
|
chainId: 19,
|
|
3712
3701
|
},
|
|
3713
3702
|
units: ethereumUnits("SGB", "SGB"),
|
|
3714
|
-
explorerViews: [
|
|
3715
|
-
{
|
|
3716
|
-
tx: "https://songbird-explorer.flare.network/tx/$hash/internal-transactions",
|
|
3717
|
-
address: "https://songbird-explorer.flare.network/address/$address/transactions",
|
|
3718
|
-
},
|
|
3719
|
-
],
|
|
3703
|
+
explorerViews: [blockscoutExplorerView("https://songbird-explorer.flare.network")],
|
|
3720
3704
|
},
|
|
3721
3705
|
moonbeam: {
|
|
3722
3706
|
type: "CryptoCurrency",
|
|
@@ -3760,13 +3744,7 @@ exports.cryptocurrenciesById = {
|
|
|
3760
3744
|
ethereumLikeInfo: {
|
|
3761
3745
|
chainId: 30,
|
|
3762
3746
|
},
|
|
3763
|
-
explorerViews: [
|
|
3764
|
-
{
|
|
3765
|
-
tx: "https://explorer.rootstock.io/tx/$hash",
|
|
3766
|
-
address: "https://explorer.rootstock.io/address/$address",
|
|
3767
|
-
token: "https://explorer.rootstock.io/address/$address",
|
|
3768
|
-
},
|
|
3769
|
-
],
|
|
3747
|
+
explorerViews: [blockscoutExplorerView("https://rootstock.blockscout.com")],
|
|
3770
3748
|
},
|
|
3771
3749
|
bittorrent: {
|
|
3772
3750
|
type: "CryptoCurrency",
|
|
@@ -3804,13 +3782,7 @@ exports.cryptocurrenciesById = {
|
|
|
3804
3782
|
ethereumLikeInfo: {
|
|
3805
3783
|
chainId: 10,
|
|
3806
3784
|
},
|
|
3807
|
-
explorerViews: [
|
|
3808
|
-
{
|
|
3809
|
-
tx: "https://optimistic.etherscan.io/tx/$hash",
|
|
3810
|
-
address: "https://optimistic.etherscan.io/address/$address",
|
|
3811
|
-
token: "https://optimistic.etherscan.io/token/$contractAddress?a=$address",
|
|
3812
|
-
},
|
|
3813
|
-
],
|
|
3785
|
+
explorerViews: [blockscoutExplorerView("https://optimism.blockscout.com")],
|
|
3814
3786
|
keywords: ["optimism"],
|
|
3815
3787
|
},
|
|
3816
3788
|
optimism_sepolia: {
|
|
@@ -3828,13 +3800,7 @@ exports.cryptocurrenciesById = {
|
|
|
3828
3800
|
ethereumLikeInfo: {
|
|
3829
3801
|
chainId: 11155420,
|
|
3830
3802
|
},
|
|
3831
|
-
explorerViews: [
|
|
3832
|
-
{
|
|
3833
|
-
tx: "https://sepolia-optimism.etherscan.io/tx/$hash",
|
|
3834
|
-
address: "https://sepolia-optimism.etherscan.io/address/$address",
|
|
3835
|
-
token: "https://sepolia-optimism.etherscan.io/token/$contractAddress?a=$address",
|
|
3836
|
-
},
|
|
3837
|
-
],
|
|
3803
|
+
explorerViews: [blockscoutExplorerView("https://optimism-sepolia.blockscout.com")],
|
|
3838
3804
|
},
|
|
3839
3805
|
energy_web: {
|
|
3840
3806
|
type: "CryptoCurrency",
|
|
@@ -3850,13 +3816,7 @@ exports.cryptocurrenciesById = {
|
|
|
3850
3816
|
ethereumLikeInfo: {
|
|
3851
3817
|
chainId: 246,
|
|
3852
3818
|
},
|
|
3853
|
-
explorerViews: [
|
|
3854
|
-
{
|
|
3855
|
-
tx: "https://explorer.energyweb.org/tx/$hash",
|
|
3856
|
-
address: "https://explorer.energyweb.org/address/$address",
|
|
3857
|
-
token: "https://explorer.energyweb.org/token/$contractAddress?a=$address",
|
|
3858
|
-
},
|
|
3859
|
-
],
|
|
3819
|
+
explorerViews: [blockscoutExplorerView("https://explorer.energyweb.org")],
|
|
3860
3820
|
},
|
|
3861
3821
|
astar: {
|
|
3862
3822
|
type: "CryptoCurrency",
|
|
@@ -3872,13 +3832,7 @@ exports.cryptocurrenciesById = {
|
|
|
3872
3832
|
ethereumLikeInfo: {
|
|
3873
3833
|
chainId: 592,
|
|
3874
3834
|
},
|
|
3875
|
-
explorerViews: [
|
|
3876
|
-
{
|
|
3877
|
-
tx: "https://blockscout.com/astar/tx/$hash",
|
|
3878
|
-
address: "https://blockscout.com/astar/address/$address",
|
|
3879
|
-
token: "https://blockscout.com/astar/token/$contractAddress?a=$address",
|
|
3880
|
-
},
|
|
3881
|
-
],
|
|
3835
|
+
explorerViews: [blockscoutExplorerView("https://astar.blockscout.com")],
|
|
3882
3836
|
},
|
|
3883
3837
|
metis: {
|
|
3884
3838
|
type: "CryptoCurrency",
|
|
@@ -3894,13 +3848,7 @@ exports.cryptocurrenciesById = {
|
|
|
3894
3848
|
ethereumLikeInfo: {
|
|
3895
3849
|
chainId: 1088,
|
|
3896
3850
|
},
|
|
3897
|
-
explorerViews: [
|
|
3898
|
-
{
|
|
3899
|
-
tx: "https://andromeda-explorer.metis.io/tx/$hash",
|
|
3900
|
-
address: "https://andromeda-explorer.metis.io/address/$address",
|
|
3901
|
-
token: "https://andromeda-explorer.metis.io/token/$contractAddress?a=$address",
|
|
3902
|
-
},
|
|
3903
|
-
],
|
|
3851
|
+
explorerViews: [blockscoutExplorerView("https://andromeda-explorer.metis.io")],
|
|
3904
3852
|
},
|
|
3905
3853
|
boba: {
|
|
3906
3854
|
type: "CryptoCurrency",
|
|
@@ -3960,13 +3908,7 @@ exports.cryptocurrenciesById = {
|
|
|
3960
3908
|
ethereumLikeInfo: {
|
|
3961
3909
|
chainId: 106,
|
|
3962
3910
|
},
|
|
3963
|
-
explorerViews: [
|
|
3964
|
-
{
|
|
3965
|
-
tx: "https://evmexplorer.velas.com/tx/$hash",
|
|
3966
|
-
address: "https://evmexplorer.velas.com/address/$address",
|
|
3967
|
-
token: "https://evmexplorer.velas.com/token/$contractAddress?a=$address",
|
|
3968
|
-
},
|
|
3969
|
-
],
|
|
3911
|
+
explorerViews: [blockscoutExplorerView("https://evmexplorer.velas.com")],
|
|
3970
3912
|
},
|
|
3971
3913
|
syscoin: {
|
|
3972
3914
|
type: "CryptoCurrency",
|
|
@@ -3982,13 +3924,7 @@ exports.cryptocurrenciesById = {
|
|
|
3982
3924
|
ethereumLikeInfo: {
|
|
3983
3925
|
chainId: 57,
|
|
3984
3926
|
},
|
|
3985
|
-
explorerViews: [
|
|
3986
|
-
{
|
|
3987
|
-
tx: "https://explorer.syscoin.org/tx/$hash",
|
|
3988
|
-
address: "https://explorer.syscoin.org/address/$address",
|
|
3989
|
-
token: "https://explorer.syscoin.org/token/$contractAddress?a=$address",
|
|
3990
|
-
},
|
|
3991
|
-
],
|
|
3927
|
+
explorerViews: [blockscoutExplorerView("https://explorer.syscoin.org")],
|
|
3992
3928
|
},
|
|
3993
3929
|
telos_evm: {
|
|
3994
3930
|
type: "CryptoCurrency",
|
|
@@ -4026,13 +3962,7 @@ exports.cryptocurrenciesById = {
|
|
|
4026
3962
|
ethereumLikeInfo: {
|
|
4027
3963
|
chainId: 1101,
|
|
4028
3964
|
},
|
|
4029
|
-
explorerViews: [
|
|
4030
|
-
{
|
|
4031
|
-
tx: "https://zkevm.polygonscan.com/tx/$hash",
|
|
4032
|
-
address: "https://zkevm.polygonscan.com/address/$address",
|
|
4033
|
-
token: "https://zkevm.polygonscan.com/token/$contractAddress?a=$address",
|
|
4034
|
-
},
|
|
4035
|
-
],
|
|
3965
|
+
explorerViews: [blockscoutExplorerView("https://zkevm.blockscout.com")],
|
|
4036
3966
|
},
|
|
4037
3967
|
polygon_zk_evm_testnet: {
|
|
4038
3968
|
type: "CryptoCurrency",
|
|
@@ -4051,13 +3981,7 @@ exports.cryptocurrenciesById = {
|
|
|
4051
3981
|
ethereumLikeInfo: {
|
|
4052
3982
|
chainId: 1442,
|
|
4053
3983
|
},
|
|
4054
|
-
explorerViews: [
|
|
4055
|
-
{
|
|
4056
|
-
tx: "https://testnet-zkevm.polygonscan.com/tx/$hash",
|
|
4057
|
-
address: "https://testnet-zkevm.polygonscan.com/address/$address",
|
|
4058
|
-
token: "https://testnet-zkevm.polygonscan.com/token/$contractAddress?a=$address",
|
|
4059
|
-
},
|
|
4060
|
-
],
|
|
3984
|
+
explorerViews: [blockscoutExplorerView("https://explorer-ui.cardona.zkevm-rpc.com")],
|
|
4061
3985
|
},
|
|
4062
3986
|
base: {
|
|
4063
3987
|
type: "CryptoCurrency",
|
|
@@ -4073,13 +3997,7 @@ exports.cryptocurrenciesById = {
|
|
|
4073
3997
|
ethereumLikeInfo: {
|
|
4074
3998
|
chainId: 8453,
|
|
4075
3999
|
},
|
|
4076
|
-
explorerViews: [
|
|
4077
|
-
{
|
|
4078
|
-
tx: "https://basescan.org/tx/$hash",
|
|
4079
|
-
address: "https://basescan.org/address/$address",
|
|
4080
|
-
token: "https://basescan.org/token/$contractAddress?a=$address",
|
|
4081
|
-
},
|
|
4082
|
-
],
|
|
4000
|
+
explorerViews: [blockscoutExplorerView("https://base.blockscout.com")],
|
|
4083
4001
|
},
|
|
4084
4002
|
base_sepolia: {
|
|
4085
4003
|
type: "CryptoCurrency",
|
|
@@ -4098,13 +4016,7 @@ exports.cryptocurrenciesById = {
|
|
|
4098
4016
|
ethereumLikeInfo: {
|
|
4099
4017
|
chainId: 84532,
|
|
4100
4018
|
},
|
|
4101
|
-
explorerViews: [
|
|
4102
|
-
{
|
|
4103
|
-
tx: "https://sepolia.basescan.org/tx/$hash",
|
|
4104
|
-
address: "https://sepolia.basescan.org/address/$address",
|
|
4105
|
-
token: "https://sepolia.basescan.org/token/$contractAddress?a=$address",
|
|
4106
|
-
},
|
|
4107
|
-
],
|
|
4019
|
+
explorerViews: [blockscoutExplorerView("https://base-sepolia.blockscout.com")],
|
|
4108
4020
|
},
|
|
4109
4021
|
klaytn: {
|
|
4110
4022
|
type: "CryptoCurrency",
|
|
@@ -4142,13 +4054,7 @@ exports.cryptocurrenciesById = {
|
|
|
4142
4054
|
ethereumLikeInfo: {
|
|
4143
4055
|
chainId: 245022934,
|
|
4144
4056
|
},
|
|
4145
|
-
explorerViews: [
|
|
4146
|
-
{
|
|
4147
|
-
tx: "https://neonscan.org/tx/$hash",
|
|
4148
|
-
address: "https://neonscan.org/address/$address",
|
|
4149
|
-
token: "https://neonscan.org/token/$address",
|
|
4150
|
-
},
|
|
4151
|
-
],
|
|
4057
|
+
explorerViews: [blockscoutExplorerView("https://neon.blockscout.com")],
|
|
4152
4058
|
},
|
|
4153
4059
|
lukso: {
|
|
4154
4060
|
type: "CryptoCurrency",
|
|
@@ -4165,13 +4071,7 @@ exports.cryptocurrenciesById = {
|
|
|
4165
4071
|
ethereumLikeInfo: {
|
|
4166
4072
|
chainId: 42,
|
|
4167
4073
|
},
|
|
4168
|
-
explorerViews: [
|
|
4169
|
-
{
|
|
4170
|
-
tx: "https://explorer.execution.mainnet.lukso.network/tx/$hash",
|
|
4171
|
-
address: "https://explorer.execution.mainnet.lukso.network/address/$address",
|
|
4172
|
-
token: "https://explorer.execution.mainnet.lukso.network/token/$address",
|
|
4173
|
-
},
|
|
4174
|
-
],
|
|
4074
|
+
explorerViews: [blockscoutExplorerView("https://explorer.execution.mainnet.lukso.network")],
|
|
4175
4075
|
},
|
|
4176
4076
|
linea: {
|
|
4177
4077
|
type: "CryptoCurrency",
|
|
@@ -4235,13 +4135,7 @@ exports.cryptocurrenciesById = {
|
|
|
4235
4135
|
ethereumLikeInfo: {
|
|
4236
4136
|
chainId: 81457,
|
|
4237
4137
|
},
|
|
4238
|
-
explorerViews: [
|
|
4239
|
-
{
|
|
4240
|
-
tx: "https://blastscan.io/tx/$hash",
|
|
4241
|
-
address: "https://blastscan.io/address/$address",
|
|
4242
|
-
token: "https://blastscan.io/token/$address",
|
|
4243
|
-
},
|
|
4244
|
-
],
|
|
4138
|
+
explorerViews: [blockscoutExplorerView("https://blast.blockscout.com")],
|
|
4245
4139
|
},
|
|
4246
4140
|
blast_sepolia: {
|
|
4247
4141
|
type: "CryptoCurrency",
|
|
@@ -4259,13 +4153,7 @@ exports.cryptocurrenciesById = {
|
|
|
4259
4153
|
ethereumLikeInfo: {
|
|
4260
4154
|
chainId: 168587773,
|
|
4261
4155
|
},
|
|
4262
|
-
explorerViews: [
|
|
4263
|
-
{
|
|
4264
|
-
tx: "https://testnet.blastscan.io/tx/$hash",
|
|
4265
|
-
address: "https://testnet.blastscan.io/address/$address",
|
|
4266
|
-
token: "https://testnet.blastscan.io/token/$address",
|
|
4267
|
-
},
|
|
4268
|
-
],
|
|
4156
|
+
explorerViews: [blockscoutExplorerView("https://blast-testnet.blockscout.com")],
|
|
4269
4157
|
},
|
|
4270
4158
|
scroll: {
|
|
4271
4159
|
type: "CryptoCurrency",
|
|
@@ -4282,13 +4170,7 @@ exports.cryptocurrenciesById = {
|
|
|
4282
4170
|
ethereumLikeInfo: {
|
|
4283
4171
|
chainId: 534352,
|
|
4284
4172
|
},
|
|
4285
|
-
explorerViews: [
|
|
4286
|
-
{
|
|
4287
|
-
tx: "https://scrollscan.com/tx/$hash",
|
|
4288
|
-
address: "https://scrollscan.com/address/$address",
|
|
4289
|
-
token: "https://scrollscan.com/token/$address",
|
|
4290
|
-
},
|
|
4291
|
-
],
|
|
4173
|
+
explorerViews: [blockscoutExplorerView("https://scroll.blockscout.com")],
|
|
4292
4174
|
},
|
|
4293
4175
|
scroll_sepolia: {
|
|
4294
4176
|
type: "CryptoCurrency",
|
|
@@ -4306,13 +4188,7 @@ exports.cryptocurrenciesById = {
|
|
|
4306
4188
|
ethereumLikeInfo: {
|
|
4307
4189
|
chainId: 534351,
|
|
4308
4190
|
},
|
|
4309
|
-
explorerViews: [
|
|
4310
|
-
{
|
|
4311
|
-
tx: "https://sepolia.scrollscan.dev/tx/$hash",
|
|
4312
|
-
address: "https://sepolia.scrollscan.dev/address/$address",
|
|
4313
|
-
token: "https://sepolia.scrollscan.dev/token/$address",
|
|
4314
|
-
},
|
|
4315
|
-
],
|
|
4191
|
+
explorerViews: [blockscoutExplorerView("https://scroll-sepolia.blockscout.com")],
|
|
4316
4192
|
},
|
|
4317
4193
|
etherlink: {
|
|
4318
4194
|
type: "CryptoCurrency",
|
|
@@ -4328,13 +4204,7 @@ exports.cryptocurrenciesById = {
|
|
|
4328
4204
|
ethereumLikeInfo: {
|
|
4329
4205
|
chainId: 42793,
|
|
4330
4206
|
},
|
|
4331
|
-
explorerViews: [
|
|
4332
|
-
{
|
|
4333
|
-
tx: "https://explorer.etherlink.com/tx/$hash",
|
|
4334
|
-
address: "https://explorer.etherlink.com/address/$address",
|
|
4335
|
-
token: "https://explorer.etherlink.com/token/$contractAddress?a=$address",
|
|
4336
|
-
},
|
|
4337
|
-
],
|
|
4207
|
+
explorerViews: [blockscoutExplorerView("https://explorer.etherlink.com")],
|
|
4338
4208
|
},
|
|
4339
4209
|
zksync: {
|
|
4340
4210
|
type: "CryptoCurrency",
|
|
@@ -4350,13 +4220,7 @@ exports.cryptocurrenciesById = {
|
|
|
4350
4220
|
ethereumLikeInfo: {
|
|
4351
4221
|
chainId: 324,
|
|
4352
4222
|
},
|
|
4353
|
-
explorerViews: [
|
|
4354
|
-
{
|
|
4355
|
-
tx: "https://explorer.zksync.io/tx/$hash",
|
|
4356
|
-
address: "https://explorer.zksync.io/address/$address",
|
|
4357
|
-
token: "https://explorer.zksync.io/token/$contractAddress?a=$address",
|
|
4358
|
-
},
|
|
4359
|
-
],
|
|
4223
|
+
explorerViews: [blockscoutExplorerView("https://zksync.blockscout.com")],
|
|
4360
4224
|
},
|
|
4361
4225
|
zksync_sepolia: {
|
|
4362
4226
|
type: "CryptoCurrency",
|
|
@@ -4372,13 +4236,7 @@ exports.cryptocurrenciesById = {
|
|
|
4372
4236
|
ethereumLikeInfo: {
|
|
4373
4237
|
chainId: 300,
|
|
4374
4238
|
},
|
|
4375
|
-
explorerViews: [
|
|
4376
|
-
{
|
|
4377
|
-
tx: "https://sepolia-era.zksync.network/tx/$hash",
|
|
4378
|
-
address: "https://sepolia-era.zksync.network/address/$address",
|
|
4379
|
-
token: "https://sepolia-era.zksync.network/token/$contractAddress?a=$address",
|
|
4380
|
-
},
|
|
4381
|
-
],
|
|
4239
|
+
explorerViews: [blockscoutExplorerView("https://zksync-sepolia.blockscout.com")],
|
|
4382
4240
|
},
|
|
4383
4241
|
// Keep it at the bottom
|
|
4384
4242
|
// Tickers dup
|