@chain-registry/keplr 1.27.0 → 1.29.0
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/CHANGELOG.md +16 -0
- package/main/index.js +5 -5
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,22 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [1.29.0](https://github.com/cosmology-tech/chain-registry/compare/@chain-registry/keplr@1.28.0...@chain-registry/keplr@1.29.0) (2023-12-15)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @chain-registry/keplr
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [1.28.0](https://github.com/cosmology-tech/chain-registry/compare/@chain-registry/keplr@1.27.0...@chain-registry/keplr@1.28.0) (2023-12-15)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @chain-registry/keplr
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
6
22
|
# [1.27.0](https://github.com/cosmology-tech/chain-registry/compare/@chain-registry/keplr@1.26.0...@chain-registry/keplr@1.27.0) (2023-12-15)
|
|
7
23
|
|
|
8
24
|
**Note:** Version bump only for package @chain-registry/keplr
|
package/main/index.js
CHANGED
|
@@ -29,7 +29,6 @@ var cleanVer = function cleanVer(ver) {
|
|
|
29
29
|
if (_semver["default"].valid(ver)) return ver;
|
|
30
30
|
var spaces = ver.split('.').length;
|
|
31
31
|
switch (spaces) {
|
|
32
|
-
case 0:
|
|
33
32
|
case 1:
|
|
34
33
|
return ver + '.0.0';
|
|
35
34
|
case 2:
|
|
@@ -41,7 +40,7 @@ var cleanVer = function cleanVer(ver) {
|
|
|
41
40
|
}
|
|
42
41
|
};
|
|
43
42
|
var chainRegistryChainToKeplr = function chainRegistryChainToKeplr(chain, assets) {
|
|
44
|
-
var _chain$codebase
|
|
43
|
+
var _chain$codebase, _chain$codebase2, _chain$codebase3, _assets$find, _chain$fees, _chain$fees2, _chain$fees2$fee_toke, _chain$staking, _currencies$find;
|
|
45
44
|
var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {
|
|
46
45
|
getRpcEndpoint: getRpc,
|
|
47
46
|
getRestEndpoint: getRest,
|
|
@@ -52,9 +51,10 @@ var chainRegistryChainToKeplr = function chainRegistryChainToKeplr(chain, assets
|
|
|
52
51
|
if (!options.getExplorer) options.getExplorer = getExplr;
|
|
53
52
|
var features = [];
|
|
54
53
|
// if NOT specified, we assume stargate, sorry not sorry
|
|
55
|
-
var sdkVer =
|
|
54
|
+
var sdkVer = (_chain$codebase = chain.codebase) !== null && _chain$codebase !== void 0 && _chain$codebase.cosmos_sdk_version ? cleanVer((_chain$codebase2 = chain.codebase) === null || _chain$codebase2 === void 0 ? void 0 : _chain$codebase2.cosmos_sdk_version) : '0.40';
|
|
55
|
+
|
|
56
56
|
// stargate
|
|
57
|
-
if (_semver["default"].satisfies(sdkVer, '>=0.
|
|
57
|
+
if (_semver["default"].satisfies(sdkVer, '>=0.40')) features.push('stargate');
|
|
58
58
|
// no-legacy-stdTx
|
|
59
59
|
if (_semver["default"].satisfies(sdkVer, '>=0.43')) features.push('no-legacy-stdTx');
|
|
60
60
|
// until further notice, assume 'ibc-transfer'
|
|
@@ -62,7 +62,7 @@ var chainRegistryChainToKeplr = function chainRegistryChainToKeplr(chain, assets
|
|
|
62
62
|
|
|
63
63
|
// ibc-go
|
|
64
64
|
if (_semver["default"].satisfies(sdkVer, '>=0.45')) features.push('ibc-go');
|
|
65
|
-
if ((_chain$
|
|
65
|
+
if ((_chain$codebase3 = chain.codebase) !== null && _chain$codebase3 !== void 0 && _chain$codebase3.cosmwasm_enabled) {
|
|
66
66
|
var _chain$codebase$cosmw;
|
|
67
67
|
features.push('cosmwasm');
|
|
68
68
|
var wasmVer = cleanVer((_chain$codebase$cosmw = chain.codebase.cosmwasm_version) !== null && _chain$codebase$cosmw !== void 0 ? _chain$codebase$cosmw : '0.24');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chain-registry/keplr",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.29.0",
|
|
4
4
|
"description": "Chain Registry to Keplr",
|
|
5
5
|
"author": "Dan Lynch <pyramation@gmail.com>",
|
|
6
6
|
"homepage": "https://github.com/cosmology-tech/chain-registry",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"babel-core": "7.0.0-bridge.0",
|
|
58
58
|
"babel-jest": "29.5.0",
|
|
59
59
|
"babel-watch": "^7.7.2",
|
|
60
|
-
"chain-registry": "^1.
|
|
60
|
+
"chain-registry": "^1.24.0",
|
|
61
61
|
"cross-env": "^7.0.2",
|
|
62
62
|
"eslint": "8.38.0",
|
|
63
63
|
"eslint-config-prettier": "^8.8.0",
|
|
@@ -78,5 +78,5 @@
|
|
|
78
78
|
"@keplr-wallet/crypto": "0.12.28",
|
|
79
79
|
"semver": "^7.5.0"
|
|
80
80
|
},
|
|
81
|
-
"gitHead": "
|
|
81
|
+
"gitHead": "1fe81f4f767d431be5b8f870d9bea98e9cef6bab"
|
|
82
82
|
}
|