@pioneer-platform/osmosis-network 8.11.3 → 9.0.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 +6 -0
- package/lib/index.js +12 -8
- package/package.json +7 -1
- package/tsconfig.json +10 -3
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
-
> @pioneer-platform/osmosis-network@
|
|
3
|
+
> @pioneer-platform/osmosis-network@9.0.0 build /Users/highlander/WebstormProjects/keepkey-stack/projects/pioneer/modules/coins/osmosis/osmosis-network
|
|
4
4
|
> tsc -p .
|
|
5
5
|
|
package/CHANGELOG.md
CHANGED
package/lib/index.js
CHANGED
|
@@ -93,12 +93,16 @@ var axios = Axios.create({
|
|
|
93
93
|
// import { Dec, DecUtils, Int, IntPretty } from "@keplr-wallet/unit";
|
|
94
94
|
var request = require("request-promise");
|
|
95
95
|
var log = require('@pioneer-platform/loggerdog')();
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
if (!
|
|
101
|
-
|
|
96
|
+
// Use public Osmosis endpoints as defaults
|
|
97
|
+
var URL_OSMO_RPC = process.env['URL_OSMO_RPC'] || 'https://rpc-osmosis.keplr.app';
|
|
98
|
+
var URL_OSMO_LCD = process.env['URL_OSMO_LCD'] || 'https://lcd-osmosis.keplr.app';
|
|
99
|
+
// Log which endpoints are being used
|
|
100
|
+
if (!process.env['URL_OSMO_RPC']) {
|
|
101
|
+
log.info(TAG, 'Using default Osmosis RPC:', URL_OSMO_RPC);
|
|
102
|
+
}
|
|
103
|
+
if (!process.env['URL_OSMO_LCD']) {
|
|
104
|
+
log.info(TAG, 'Using default Osmosis LCD:', URL_OSMO_LCD);
|
|
105
|
+
}
|
|
102
106
|
var URL_OSMO_POOLS = process.env['URL_OSMO_POOLS'] || "https://api-osmosis.imperator.co";
|
|
103
107
|
var BASE_OSMO = 1000000;
|
|
104
108
|
/**********************************
|
|
@@ -1228,7 +1232,7 @@ var get_staking_positions = function (address) {
|
|
|
1228
1232
|
ticker: 'OSMO',
|
|
1229
1233
|
symbol: 'OSMO',
|
|
1230
1234
|
name: 'Osmosis Delegation',
|
|
1231
|
-
icon: 'https://
|
|
1235
|
+
icon: 'https://api.keepkey.info/coins/osmosis.png',
|
|
1232
1236
|
status: 'active',
|
|
1233
1237
|
updated: new Date().getTime(),
|
|
1234
1238
|
valueUsd: 0 // Will be calculated by chart processor
|
|
@@ -1272,7 +1276,7 @@ var get_staking_positions = function (address) {
|
|
|
1272
1276
|
ticker: 'OSMO',
|
|
1273
1277
|
symbol: 'OSMO',
|
|
1274
1278
|
name: 'Osmosis Rewards',
|
|
1275
|
-
icon: 'https://
|
|
1279
|
+
icon: 'https://api.keepkey.info/coins/osmosis.png',
|
|
1276
1280
|
status: 'claimable',
|
|
1277
1281
|
updated: new Date().getTime(),
|
|
1278
1282
|
valueUsd: 0 // Will be calculated by chart processor
|
package/package.json
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pioneer-platform/osmosis-network",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "9.0.0",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"types": "./lib/index.d.ts",
|
|
6
6
|
"dependencies": {
|
|
7
|
+
"axios": "^1.6.0",
|
|
7
8
|
"bech32": "^1.1.4",
|
|
8
9
|
"dotenv": "^8.2.0",
|
|
10
|
+
"lodash": "^4.17.21",
|
|
9
11
|
"prettyjson": "^1.2.1",
|
|
10
12
|
"request-promise": "^4.2.6",
|
|
11
13
|
"ts-node": "^8.10.2",
|
|
@@ -13,6 +15,10 @@
|
|
|
13
15
|
"@pioneer-platform/loggerdog": "8.11.0"
|
|
14
16
|
},
|
|
15
17
|
"gitHead": "a76012f6693a12181c4744e53e977a9eaeef0ed3",
|
|
18
|
+
"devDependencies": {
|
|
19
|
+
"@types/node": "^18.16.0",
|
|
20
|
+
"typescript": "^5.0.4"
|
|
21
|
+
},
|
|
16
22
|
"scripts": {
|
|
17
23
|
"create": "pnpm run build && pnpm run test",
|
|
18
24
|
"build": "tsc -p .",
|
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
|
}
|