@bifrostwallet/assets 1.0.0 → 1.1.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/README.md CHANGED
@@ -20,7 +20,7 @@ yarn add @bifrostwallet/assets@<version> --exact
20
20
 
21
21
  `https://cdn.jsdelivr.net/gh/bifrostwallet/assets@<version>/data/`
22
22
 
23
- `<version>` is the package version and the git tag (`1.0.0`). That tag is written into the package at build time. Returned `logoURL` values are absolute. A missing record is still `null`.
23
+ `<version>` is the package version and the git tag (`1.1.0`). That tag is written into the package at build time. Returned `logoURL` values are absolute. A missing record is still `null`.
24
24
 
25
25
  An exact version tag is immutable on jsDelivr. Cache headers last one year, and the file is stored permanently, so this pinned URL does not go stale ([Caching](https://www.jsdelivr.com/documentation#id-caching)). Self-host when you want a copy you control: `npx @bifrostwallet/assets@<version> fetch-logos ./logos` checks each file against the hash in that package. Pin the exact version and run it again on every bump.
26
26
 
@@ -247,7 +247,7 @@ await verifyTypedData(entry); // true
247
247
 
248
248
  Fetch provider `all.json` from jsDelivr on `@main` when you are not installing the package. `logoURL` in that file is already absolute and uses the same `@main` snapshot. There is no token `all.json`. Token lists are not published that way; use `createAssets`.
249
249
 
250
- `@main` is the moving catalog, not a release tag. Provider `all.json` logo URLs in this repository use that unpinned branch. Updates there can take up to 12 hours to appear because jsDelivr caches branch URLs for up to 12 hours ([Caching](https://www.jsdelivr.com/documentation#id-caching)). The npm package pins `@<version>` (`@1.0.0` for this release) so its logos match the installed snapshot.
250
+ `@main` is the moving catalog, not a release tag. Provider `all.json` logo URLs in this repository use that unpinned branch. Updates there can take up to 12 hours to appear because jsDelivr caches branch URLs for up to 12 hours ([Caching](https://www.jsdelivr.com/documentation#id-caching)). The npm package pins `@<version>` (`@1.1.0` for this release) so its logos match the installed snapshot.
251
251
 
252
252
  Compared with the package and logos you host:
253
253
 
package/fetch-logos.js CHANGED
@@ -9,7 +9,7 @@ const fs = require("node:fs");
9
9
  const path = require("node:path");
10
10
  const { fetchLogo, verifyLogoHash } = require("./verify-logo-hash.js");
11
11
 
12
- const DEFAULT_LOGO_BASE_URL = "https://cdn.jsdelivr.net/gh/bifrostwallet/assets@1.0.0/data/";
12
+ const DEFAULT_LOGO_BASE_URL = "https://cdn.jsdelivr.net/gh/bifrostwallet/assets@1.1.0/data/";
13
13
  const USAGE = [
14
14
  "Usage: fetch-logos <dir>",
15
15
  "",
@@ -21,7 +21,7 @@ const USAGE = [
21
21
  "",
22
22
  "Upload <dir> to any static host. createAssets baseURL is optional.",
23
23
  "Omit it to use jsDelivr at this release tag:",
24
- "https://cdn.jsdelivr.net/gh/bifrostwallet/assets@1.0.0/data/",
24
+ "https://cdn.jsdelivr.net/gh/bifrostwallet/assets@1.1.0/data/",
25
25
  "Or set baseURL to the public URL where you uploaded that directory.",
26
26
  "Example: https://assets.example.com/",
27
27
  "Run fetch-logos again when you bump the package version.",
@@ -149,12 +149,13 @@ async function fetchLogos(options) {
149
149
  }
150
150
 
151
151
  async function runCli(argv, deps) {
152
- const args = Array.isArray(argv) ? argv : [];
152
+ const args = Array.isArray(argv) ? argv.slice() : [];
153
153
  const extra = deps || {};
154
154
  if (args.includes("--help") || args.includes("-h")) {
155
155
  console.info(USAGE);
156
156
  return 0;
157
157
  }
158
+ if (args[0] === "fetch-logos") args.shift();
158
159
  if (args.length !== 1) {
159
160
  console.error(USAGE);
160
161
  return 1;
package/index.js CHANGED
@@ -45,7 +45,7 @@ const CONTRACT_CATEGORIES = ["dex","aggregator","bridge","lending","staking","yi
45
45
  const CONTRACT_CATEGORY_LABELS = {"dex":"DEX","aggregator":"Aggregator","bridge":"Bridge","lending":"Lending","staking":"Staking","yield":"Yield","perpetuals":"Perpetuals","predictions":"Predictions","nft-marketplace":"NFT Marketplace","governance":"Governance","fassets":"FAssets","rewards":"Rewards","other":"Other"};
46
46
  const DAPP_CATEGORIES = ["featured","dex","lending","yield","staking","bridges","marketplaces","social","games","other"];
47
47
  const DAPP_CATEGORY_LABELS = {"featured":"Featured","dex":"DEX","lending":"Lending","yield":"Yield","staking":"Staking","bridges":"Bridges","marketplaces":"Marketplaces","social":"Social","games":"Games","other":"Other"};
48
- const DEFAULT_LOGO_BASE_URL = "https://cdn.jsdelivr.net/gh/bifrostwallet/assets@1.0.0/data/";
48
+ const DEFAULT_LOGO_BASE_URL = "https://cdn.jsdelivr.net/gh/bifrostwallet/assets@1.1.0/data/";
49
49
 
50
50
  const EIP712_DOMAIN_SALT = "0xffc5336f20c2026b0f53d269def3cdffa3ca99b07e238af05f263a89517104f7";
51
51
  const PROVIDER_LISTING_PRIMARY_TYPE = "ProviderListing";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bifrostwallet/assets",
3
- "version": "1.0.0",
3
+ "version": "1.1.0",
4
4
  "description": "Curated catalog of FTSO providers, validators, tokens, contracts and dapps for Bifrost Wallet.",
5
5
  "repository": "https://github.com/bifrostwallet/assets.git",
6
6
  "author": "Bifrost Software Ltd",