@pioneer-platform/pioneer-discovery 8.15.16 → 8.15.25

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.
@@ -1,2 +1 @@
1
-
2
- $ tsc -p .
1
+ $ tsc -p .
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @pioneer-platform/pioneer-discovery
2
2
 
3
+ ## 8.15.25
4
+
5
+ ### Patch Changes
6
+
7
+ - zcash working!
8
+ - Updated dependencies
9
+ - @pioneer-platform/pioneer-caip@9.10.3
10
+
11
+ ## 8.15.17
12
+
13
+ ### Patch Changes
14
+
15
+ - chore: chore: refactor pioneer-sdk
16
+
3
17
  ## 8.15.16
4
18
 
5
19
  ### Patch Changes
package/lib/data.js CHANGED
@@ -11,7 +11,6 @@ exports.coingeckoMapping = exports.dapps = exports.relatedAssets = exports.asset
11
11
 
12
12
  */
13
13
  var TAG = ' | pioneer-discovery | ';
14
- var log = require('@pioneer-platform/loggerdog')();
15
14
  // let router = require("@pioneer-platform/pioneer-router")
16
15
  // router.init()
17
16
  //dataByCaip
@@ -135,6 +135,28 @@
135
135
  "type": "native",
136
136
  "color": "#579A89"
137
137
  },
138
+ "bip122:00040fe8ec8471911baa1db1266ea15d/slip44:133": {
139
+ "symbol": "ZEC",
140
+ "name": "Zcash",
141
+ "chainId": "bip122:00040fe8ec8471911baa1db1266ea15d",
142
+ "icon": "https://pioneers.dev/coins/zcash.png",
143
+ "assetId": "bip122:00040fe8ec8471911baa1db1266ea15d/slip44:133",
144
+ "decimals": 8,
145
+ "isNative": true,
146
+ "type": "native",
147
+ "color": "#F4B728"
148
+ },
149
+ "solana:5eykt4usfv8p8njdtrepy1vzqkqzkvdp/solana:so11111111111111111111111111111111111111112": {
150
+ "symbol": "SOL",
151
+ "name": "Solana",
152
+ "chainId": "solana:5eykt4usfv8p8njdtrepy1vzqkqzkvdp",
153
+ "icon": "https://pioneers.dev/coins/solana.png",
154
+ "assetId": "solana:5eykt4usfv8p8njdtrepy1vzqkqzkvdp/solana:so11111111111111111111111111111111111111112",
155
+ "decimals": 9,
156
+ "isNative": true,
157
+ "type": "native",
158
+ "color": "#14F195"
159
+ },
138
160
  "eip155:43114/slip44:60": {
139
161
  "symbol": "AVAX",
140
162
  "name": "Avalanche",
@@ -0,0 +1,6 @@
1
+ export declare const logger: {
2
+ info: (tag: string, ...args: any[]) => void;
3
+ debug: (tag: string, ...args: any[]) => void;
4
+ warn: (tag: string, ...args: any[]) => void;
5
+ error: (tag: string, ...args: any[]) => void;
6
+ };
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ // Simple client-side logger for Pioneer SDK
3
+ // Replaces server-side loggerdog dependency
4
+ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
5
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
6
+ if (ar || !(i in from)) {
7
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
8
+ ar[i] = from[i];
9
+ }
10
+ }
11
+ return to.concat(ar || Array.prototype.slice.call(from));
12
+ };
13
+ Object.defineProperty(exports, "__esModule", { value: true });
14
+ exports.logger = void 0;
15
+ var DEBUG = process.env.DEBUG === 'true' || typeof window !== 'undefined' && window.DEBUG;
16
+ exports.logger = {
17
+ info: function (tag) {
18
+ var args = [];
19
+ for (var _i = 1; _i < arguments.length; _i++) {
20
+ args[_i - 1] = arguments[_i];
21
+ }
22
+ console.log.apply(console, __spreadArray(["[INFO] ".concat(tag)], args, false));
23
+ },
24
+ debug: function (tag) {
25
+ var args = [];
26
+ for (var _i = 1; _i < arguments.length; _i++) {
27
+ args[_i - 1] = arguments[_i];
28
+ }
29
+ if (DEBUG) {
30
+ console.log.apply(console, __spreadArray(["[DEBUG] ".concat(tag)], args, false));
31
+ }
32
+ },
33
+ warn: function (tag) {
34
+ var args = [];
35
+ for (var _i = 1; _i < arguments.length; _i++) {
36
+ args[_i - 1] = arguments[_i];
37
+ }
38
+ console.warn.apply(console, __spreadArray(["[WARN] ".concat(tag)], args, false));
39
+ },
40
+ error: function (tag) {
41
+ var args = [];
42
+ for (var _i = 1; _i < arguments.length; _i++) {
43
+ args[_i - 1] = arguments[_i];
44
+ }
45
+ console.error.apply(console, __spreadArray(["[ERROR] ".concat(tag)], args, false));
46
+ },
47
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pioneer-platform/pioneer-discovery",
3
- "version": "8.15.16",
3
+ "version": "8.15.25",
4
4
  "main": "./lib/index.js",
5
5
  "types": "./lib/main.d.ts",
6
6
  "_moduleAliases": {
@@ -28,8 +28,7 @@
28
28
  },
29
29
  "gitHead": "a76012f6693a12181c4744e53e977a9eaeef0ed3",
30
30
  "dependencies": {
31
- "@pioneer-platform/loggerdog": "^8.11.0",
32
- "@pioneer-platform/pioneer-caip": "^9.10.2",
31
+ "@pioneer-platform/pioneer-caip": "^9.10.3",
33
32
  "ethers": "5.7.2"
34
33
  }
35
34
  }
@@ -13,7 +13,7 @@
13
13
  */
14
14
 
15
15
  // Native gas assets configuration
16
- // Format: { symbol, name, chainId (CAIP), icon URL, decimals }
16
+ // Format: { symbol, name, chainId (CAIP), icon URL, decimals, explorer URLs }
17
17
  const NATIVE_GAS_ASSETS = [
18
18
  {
19
19
  symbol: 'BTC',
@@ -21,6 +21,9 @@ const NATIVE_GAS_ASSETS = [
21
21
  chainId: 'bip122:000000000019d6689c085ae165831e93',
22
22
  icon: 'https://assets.coingecko.com/coins/images/1/small/bitcoin.png?1547033579',
23
23
  decimals: 8,
24
+ explorer: 'https://blockstream.info',
25
+ explorerAddressLink: 'https://blockstream.info/address/{{address}}',
26
+ explorerTxLink: 'https://blockstream.info/tx/{{txid}}',
24
27
  },
25
28
  {
26
29
  symbol: 'ETH',
@@ -28,6 +31,9 @@ const NATIVE_GAS_ASSETS = [
28
31
  chainId: 'eip155:1',
29
32
  icon: 'https://assets.coingecko.com/coins/images/279/large/ethereum.png?1595348880',
30
33
  decimals: 18,
34
+ explorer: 'https://etherscan.io',
35
+ explorerAddressLink: 'https://etherscan.io/address/{{address}}',
36
+ explorerTxLink: 'https://etherscan.io/tx/{{txid}}',
31
37
  },
32
38
  {
33
39
  symbol: 'ATOM',
@@ -35,6 +41,9 @@ const NATIVE_GAS_ASSETS = [
35
41
  chainId: 'cosmos:cosmoshub-4',
36
42
  icon: 'https://assets.coingecko.com/coins/images/16724/thumb/atom.png',
37
43
  decimals: 6,
44
+ explorer: 'https://www.mintscan.io/cosmos',
45
+ explorerAddressLink: 'https://www.mintscan.io/cosmos/address/{{address}}',
46
+ explorerTxLink: 'https://www.mintscan.io/cosmos/tx/{{txid}}',
38
47
  },
39
48
  {
40
49
  symbol: 'OSMO',
@@ -42,6 +51,9 @@ const NATIVE_GAS_ASSETS = [
42
51
  chainId: 'cosmos:osmosis-1',
43
52
  icon: 'https://assets.coingecko.com/coins/images/16724/thumb/osmo.png',
44
53
  decimals: 6,
54
+ explorer: 'https://www.mintscan.io/osmosis',
55
+ explorerAddressLink: 'https://www.mintscan.io/osmosis/address/{{address}}',
56
+ explorerTxLink: 'https://www.mintscan.io/osmosis/tx/{{txid}}',
45
57
  },
46
58
  {
47
59
  symbol: 'RUNE',
@@ -49,6 +61,9 @@ const NATIVE_GAS_ASSETS = [
49
61
  chainId: 'cosmos:thorchain-mainnet-v1',
50
62
  icon: 'https://assets.coingecko.com/coins/images/6595/thumb/RUNE.png',
51
63
  decimals: 8,
64
+ explorer: 'https://thorchain.net',
65
+ explorerAddressLink: 'https://thorchain.net/address/{{address}}',
66
+ explorerTxLink: 'https://thorchain.net/tx/{{txid}}',
52
67
  },
53
68
  {
54
69
  symbol: 'CACAO',
@@ -56,6 +71,9 @@ const NATIVE_GAS_ASSETS = [
56
71
  chainId: 'cosmos:mayachain-mainnet-v1',
57
72
  icon: 'https://assets.coingecko.com/coins/images/25662/small/cacao.png',
58
73
  decimals: 10,
74
+ explorer: 'https://explorer.mayachain.info',
75
+ explorerAddressLink: 'https://explorer.mayachain.info/address/{{address}}',
76
+ explorerTxLink: 'https://explorer.mayachain.info/tx/{{txid}}',
59
77
  },
60
78
  {
61
79
  symbol: 'LTC',
@@ -63,6 +81,9 @@ const NATIVE_GAS_ASSETS = [
63
81
  chainId: 'bip122:12a765e31ffd4059bada1e25190f6e98',
64
82
  icon: 'https://assets.coingecko.com/coins/images/16724/thumb/ltc.png',
65
83
  decimals: 8,
84
+ explorer: 'https://blockchair.com/litecoin',
85
+ explorerAddressLink: 'https://blockchair.com/litecoin/address/{{address}}',
86
+ explorerTxLink: 'https://blockchair.com/litecoin/transaction/{{txid}}',
66
87
  },
67
88
  {
68
89
  symbol: 'BCH',
@@ -70,6 +91,9 @@ const NATIVE_GAS_ASSETS = [
70
91
  chainId: 'bip122:000000000000000000651ef99cb9fcbe',
71
92
  icon: 'https://assets.coingecko.com/coins/images/780/thumb/bitcoin-cash-circle.png?1594689492',
72
93
  decimals: 8,
94
+ explorer: 'https://blockchair.com/bitcoin-cash',
95
+ explorerAddressLink: 'https://blockchair.com/bitcoin-cash/address/{{address}}',
96
+ explorerTxLink: 'https://blockchair.com/bitcoin-cash/transaction/{{txid}}',
73
97
  },
74
98
  {
75
99
  symbol: 'DOGE',
@@ -77,6 +101,9 @@ const NATIVE_GAS_ASSETS = [
77
101
  chainId: 'bip122:00000000001a91e3dace36e2be3bf030',
78
102
  icon: 'https://assets.coingecko.com/coins/images/5/small/dogecoin.png?1547792256',
79
103
  decimals: 8,
104
+ explorer: 'https://blockchair.com/dogecoin',
105
+ explorerAddressLink: 'https://blockchair.com/dogecoin/address/{{address}}',
106
+ explorerTxLink: 'https://blockchair.com/dogecoin/transaction/{{txid}}',
80
107
  },
81
108
  {
82
109
  symbol: 'DASH',
@@ -84,6 +111,9 @@ const NATIVE_GAS_ASSETS = [
84
111
  chainId: 'bip122:000007d91d1254d60e2dd1ae58038307',
85
112
  icon: 'https://assets.coingecko.com/coins/images/19/small/dash-logo.png?1548385930',
86
113
  decimals: 8,
114
+ explorer: 'https://blockchair.com/dash',
115
+ explorerAddressLink: 'https://blockchair.com/dash/address/{{address}}',
116
+ explorerTxLink: 'https://blockchair.com/dash/transaction/{{txid}}',
87
117
  },
88
118
  {
89
119
  symbol: 'BNB',
@@ -91,6 +121,9 @@ const NATIVE_GAS_ASSETS = [
91
121
  chainId: 'binance:bnb-beacon-chain',
92
122
  icon: 'https://assets.coingecko.com/coins/images/825/thumb/binance-coin-logo.png?1547034615',
93
123
  decimals: 8,
124
+ explorer: 'https://explorer.bnbchain.org',
125
+ explorerAddressLink: 'https://explorer.bnbchain.org/address/{{address}}',
126
+ explorerTxLink: 'https://explorer.bnbchain.org/tx/{{txid}}',
94
127
  },
95
128
  {
96
129
  symbol: 'AVAX',
@@ -98,6 +131,9 @@ const NATIVE_GAS_ASSETS = [
98
131
  chainId: 'eip155:43114',
99
132
  icon: 'https://assets.coingecko.com/coins/images/12559/small/coin-round-red.png?1604021818',
100
133
  decimals: 18,
134
+ explorer: 'https://snowtrace.io',
135
+ explorerAddressLink: 'https://snowtrace.io/address/{{address}}',
136
+ explorerTxLink: 'https://snowtrace.io/tx/{{txid}}',
101
137
  },
102
138
  {
103
139
  symbol: 'MATIC',
@@ -105,6 +141,9 @@ const NATIVE_GAS_ASSETS = [
105
141
  chainId: 'eip155:137',
106
142
  icon: 'https://assets.coingecko.com/coins/images/4713/small/matic-token-icon.png?1624446912',
107
143
  decimals: 18,
144
+ explorer: 'https://polygonscan.com',
145
+ explorerAddressLink: 'https://polygonscan.com/address/{{address}}',
146
+ explorerTxLink: 'https://polygonscan.com/tx/{{txid}}',
108
147
  },
109
148
  {
110
149
  symbol: 'ARB',
@@ -112,6 +151,9 @@ const NATIVE_GAS_ASSETS = [
112
151
  chainId: 'eip155:42161',
113
152
  icon: 'https://assets.coingecko.com/coins/images/16547/small/photo_2023-03-29_21.47.00.jpeg?1680097630',
114
153
  decimals: 18,
154
+ explorer: 'https://arbiscan.io',
155
+ explorerAddressLink: 'https://arbiscan.io/address/{{address}}',
156
+ explorerTxLink: 'https://arbiscan.io/tx/{{txid}}',
115
157
  },
116
158
  {
117
159
  symbol: 'OP',
@@ -119,6 +161,9 @@ const NATIVE_GAS_ASSETS = [
119
161
  chainId: 'eip155:10',
120
162
  icon: 'https://assets.coingecko.com/coins/images/25244/small/Optimism.png?1660904599',
121
163
  decimals: 18,
164
+ explorer: 'https://optimistic.etherscan.io',
165
+ explorerAddressLink: 'https://optimistic.etherscan.io/address/{{address}}',
166
+ explorerTxLink: 'https://optimistic.etherscan.io/tx/{{txid}}',
122
167
  },
123
168
  {
124
169
  symbol: 'BASE',
@@ -126,6 +171,9 @@ const NATIVE_GAS_ASSETS = [
126
171
  chainId: 'eip155:8453',
127
172
  icon: 'https://assets.coingecko.com/coins/images/279/large/ethereum.png?1595348880', // Using ETH icon as Base uses ETH
128
173
  decimals: 18,
174
+ explorer: 'https://basescan.org',
175
+ explorerAddressLink: 'https://basescan.org/address/{{address}}',
176
+ explorerTxLink: 'https://basescan.org/tx/{{txid}}',
129
177
  },
130
178
  ];
131
179
 
@@ -166,6 +214,9 @@ function generateNativeAssetData() {
166
214
  decimals: asset.decimals,
167
215
  isNative: true, // Mark as native gas asset for easy filtering
168
216
  type: 'native',
217
+ explorer: asset.explorer,
218
+ explorerAddressLink: asset.explorerAddressLink,
219
+ explorerTxLink: asset.explorerTxLink,
169
220
  };
170
221
  }
171
222