Skip to content

Commit

Permalink
Merge pull request #192 from 1Hive/v6.0.1
Browse files Browse the repository at this point in the history
fix: fix 40 char limit
  • Loading branch information
kamikazebr authored Apr 27, 2023
2 parents 6738849 + f064320 commit 85c0dfe
Show file tree
Hide file tree
Showing 4 changed files with 128 additions and 3 deletions.
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@1hive/default-token-list",
"version": "6.0.0",
"version": "6.0.1",
"description": "◦ The Honeyswap default token list",
"main": "build/index.json",
"scripts": {
Expand Down Expand Up @@ -37,5 +37,8 @@
"node-fetch": "^2.6.1",
"rimraf": "^3.0.2",
"web3-utils": "^1.3.0"
},
"dependencies": {
"jsonpath": "^1.1.1"
}
}
110 changes: 110 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/tokens/gnosis.json
Original file line number Diff line number Diff line change
Expand Up @@ -752,7 +752,7 @@
"logoURI": "https://etherscan.io/token/images/bao_32.png"
},
{
"name": "Decentralized Insurance Protocol on Gnosis",
"name": "Decentralized Insurance Protoc on Gnosis",
"address": "0x48b1B0d077b4919b65b4E4114806dD803901E1D9",
"symbol": "DIP",
"decimals": 18,
Expand Down
14 changes: 13 additions & 1 deletion test/uniswap-default.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ const { expect } = require("chai");
const { getAddress } = require("@ethersproject/address");
const Ajv = require("ajv");
const buildList = require("../src/buildList");
const jp = require("jsonpath");

const ajv = new Ajv({ allErrors: true, format: "full" });
const validate = ajv.compile(schema);
Expand All @@ -13,7 +14,18 @@ describe("buildList", () => {

it("validates", () => {
if (!validate(defaultTokenList)) {
console.log(validate.errors)
// for errors
for (i = 0; i < validate.errors.length; i++) {
const error = validate.errors[i];
console.log(error);
if (error.dataPath) {
const resultWithProblem = jp.query(
defaultTokenList,
`$${error.dataPath}`
);
console.log("resultWithProblem", resultWithProblem);
}
}
}
expect(validate(defaultTokenList)).to.equal(true);
});
Expand Down

1 comment on commit 85c0dfe

@vercel
Copy link

@vercel vercel bot commented on 85c0dfe Apr 27, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.