@pioneer-platform/cosmos-network 8.30.0 → 8.32.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/.turbo/turbo-build.log +1 -1
- package/CHANGELOG.md +22 -0
- package/lib/index.js +6 -8
- package/package.json +2 -3
- package/tsconfig.json +10 -3
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
-
> @pioneer-platform/cosmos-network@8.
|
|
3
|
+
> @pioneer-platform/cosmos-network@8.32.0 build /Users/highlander/WebstormProjects/keepkey-stack/projects/pioneer/modules/coins/cosmos/cosmos-network
|
|
4
4
|
> tsc -p .
|
|
5
5
|
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# @pioneer-platform/cosmos-network
|
|
2
2
|
|
|
3
|
+
## 8.32.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- chore: feat(e2e): add --blue and --production flags to pioneer-sdk test
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies
|
|
12
|
+
- @pioneer-platform/pioneer-nodes@8.33.0
|
|
13
|
+
|
|
14
|
+
## 8.31.0
|
|
15
|
+
|
|
16
|
+
### Minor Changes
|
|
17
|
+
|
|
18
|
+
- feat(e2e): add --blue and --production flags to pioneer-sdk test
|
|
19
|
+
|
|
20
|
+
### Patch Changes
|
|
21
|
+
|
|
22
|
+
- Updated dependencies
|
|
23
|
+
- @pioneer-platform/pioneer-nodes@8.32.0
|
|
24
|
+
|
|
3
25
|
## 8.30.0
|
|
4
26
|
|
|
5
27
|
### Minor Changes
|
package/lib/index.js
CHANGED
|
@@ -121,13 +121,12 @@ var axios = Axios.create({
|
|
|
121
121
|
}),
|
|
122
122
|
headers: {
|
|
123
123
|
'api-key': process.env['NOW_NODES_API'],
|
|
124
|
+
'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36'
|
|
124
125
|
},
|
|
125
126
|
});
|
|
126
127
|
var log = require('@pioneer-platform/loggerdog')();
|
|
127
128
|
var wait = require('wait-promise');
|
|
128
129
|
var sleep = wait.sleep;
|
|
129
|
-
//encoder
|
|
130
|
-
var txEncoder = require('@pioneer-platform/cosmos-tx-encoder');
|
|
131
130
|
var ASSET = "ATOM";
|
|
132
131
|
// Helper function to format errors as single-line strings
|
|
133
132
|
var formatError = function (e) {
|
|
@@ -143,16 +142,15 @@ var formatError = function (e) {
|
|
|
143
142
|
// Import node configuration from pioneer-nodes (centralized architecture)
|
|
144
143
|
var TIER_ONE_SEED = require('@pioneer-platform/pioneer-nodes').TIER_ONE_SEED;
|
|
145
144
|
var ATOM_BASE = 1000000;
|
|
146
|
-
// Get Cosmos node from pioneer-nodes
|
|
145
|
+
// Get Cosmos node from pioneer-nodes (no API key needed for cosmos.directory)
|
|
147
146
|
var getCosmosNode = function () {
|
|
148
147
|
var _a;
|
|
149
|
-
if ((_a = TIER_ONE_SEED.COSMOS) === null || _a === void 0 ? void 0 : _a.GAIAD) {
|
|
150
|
-
|
|
148
|
+
if (!((_a = TIER_ONE_SEED.COSMOS) === null || _a === void 0 ? void 0 : _a.GAIAD)) {
|
|
149
|
+
throw new Error('COSMOS.GAIAD not configured in pioneer-nodes');
|
|
151
150
|
}
|
|
152
|
-
|
|
153
|
-
return 'https://lcd-cosmoshub.keplr.app';
|
|
151
|
+
return TIER_ONE_SEED.COSMOS.GAIAD;
|
|
154
152
|
};
|
|
155
|
-
var URL_GAIAD =
|
|
153
|
+
var URL_GAIAD = getCosmosNode();
|
|
156
154
|
log.debug("URL_GAIAD (from pioneer-nodes):", URL_GAIAD);
|
|
157
155
|
// Fallback endpoints for transaction queries (some endpoints don't support all query types)
|
|
158
156
|
var COSMOS_API_FALLBACKS = [
|
package/package.json
CHANGED
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pioneer-platform/cosmos-network",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.32.0",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"axios": "^1.6.0",
|
|
6
6
|
"dotenv": "^8.2.0",
|
|
7
7
|
"https": "^1.0.0",
|
|
8
8
|
"typescript": "^5.0.4",
|
|
9
9
|
"wait-promise": "^0.4.1",
|
|
10
|
-
"@pioneer-platform/cosmos-tx-encoder": "0.12.0",
|
|
11
10
|
"@pioneer-platform/loggerdog": "8.11.0",
|
|
12
|
-
"@pioneer-platform/pioneer-nodes": "8.
|
|
11
|
+
"@pioneer-platform/pioneer-nodes": "8.33.0"
|
|
13
12
|
},
|
|
14
13
|
"description": "Cosmos events to redis pub/sub",
|
|
15
14
|
"main": "./lib/index.js",
|
package/tsconfig.json
CHANGED
|
@@ -2,12 +2,19 @@
|
|
|
2
2
|
"compilerOptions": {
|
|
3
3
|
"target": "es5",
|
|
4
4
|
"module": "commonjs",
|
|
5
|
-
"lib": [
|
|
5
|
+
"lib": [
|
|
6
|
+
"es6",
|
|
7
|
+
"es2015",
|
|
8
|
+
"dom"
|
|
9
|
+
],
|
|
6
10
|
"declaration": true,
|
|
7
11
|
"outDir": "lib",
|
|
8
12
|
"rootDir": "src",
|
|
9
13
|
"strict": true,
|
|
10
|
-
"types": [
|
|
11
|
-
|
|
14
|
+
"types": [
|
|
15
|
+
"node"
|
|
16
|
+
],
|
|
17
|
+
"esModuleInterop": true,
|
|
18
|
+
"skipLibCheck": true
|
|
12
19
|
}
|
|
13
20
|
}
|