@shapeshiftoss/caip 1.2.2 → 1.4.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.
|
@@ -26,7 +26,7 @@ const generatedCAIP19ToCoingeckoMap = Object.values(adapters).reduce((acc, cur)
|
|
|
26
26
|
...acc,
|
|
27
27
|
...cur
|
|
28
28
|
}));
|
|
29
|
-
const invert = (data) => Object.entries(data).reduce((acc, [k, v]) => (
|
|
29
|
+
const invert = (data) => Object.entries(data).reduce((acc, [k, v]) => ((acc[v] = k), acc), {});
|
|
30
30
|
const generatedCoingeckoToCAIP19Map = invert(generatedCAIP19ToCoingeckoMap);
|
|
31
31
|
const coingeckoToCAIP19 = (id) => {
|
|
32
32
|
const generated = generatedCoingeckoToCAIP19Map[id];
|
package/dist/caip19/caip19.d.ts
CHANGED
package/dist/caip19/caip19.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
// https://github.com/ChainAgnostic/CAIPs/blob/master/CAIPs/caip-19.md
|
|
2
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
4
|
exports.fromCAIP19 = exports.toCAIP19 = exports.AssetReference = exports.AssetNamespace = void 0;
|
|
4
|
-
// https://github.com/ChainAgnostic/CAIPs/blob/master/CAIPs/caip-19.md
|
|
5
5
|
const types_1 = require("@shapeshiftoss/types");
|
|
6
6
|
const caip2_1 = require("./../caip2/caip2");
|
|
7
7
|
var AssetNamespace;
|
package/dist/caip2/caip2.d.ts
CHANGED
package/dist/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shapeshiftoss/caip",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.2",
|
|
4
4
|
"description": "CAIP Implementation",
|
|
5
5
|
"homepage": "",
|
|
6
6
|
"license": "MIT",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"type-check": "tsc --project ./tsconfig.json --noEmit"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@shapeshiftoss/types": "^1.11.
|
|
28
|
+
"@shapeshiftoss/types": "^1.11.4"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"axios": "^0.24.0"
|