Skip to content

Commit

Permalink
feat(tooling): semantic release
Browse files Browse the repository at this point in the history
  • Loading branch information
sam committed Jan 12, 2021
1 parent 4984e6c commit 4a02572
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 34 deletions.
9 changes: 4 additions & 5 deletions .github/ISSUE_TEMPLATE/add-token-request.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
---
name: Add token request
about: Add a token to the tokenlist
title: 'Request: add {Token name}'
title: "Request: add {Token name}"
labels: add-request

---

- [ ] I understand that this is not the place to request a Uniswap token listing.
Expand All @@ -14,8 +13,8 @@ labels: add-request
**Please provide the following information for your token.**

Token Address: {0x...}
Token Symbol:
Token Name:
Decimals:
Token Symbol:
Token Name:
Decimals:
Logo: {attached or url}
Link to the official homepage:
7 changes: 3 additions & 4 deletions .github/ISSUE_TEMPLATE/remove-token-request.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
---
name: Remove token request
about: Remove a token from the tokenlist.
title: 'Request: remove {Token name}'
title: "Request: remove {Token name}"
labels: remove-request

---

- [ ] I understand that filing an issue does not guarantee removal from the tokenlist.
Expand All @@ -12,6 +11,6 @@ labels: remove-request
**Please provide the following information for your token.**

Token Address: {0x...}
Token Symbol:
Token Name:
Token Symbol:
Token Name:
Reason for removal:
9 changes: 4 additions & 5 deletions .github/ISSUE_TEMPLATE/update-token-request.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
---
name: Update token request
about: Update an existing token in the tokenlist.
title: 'Request: update {Token name}'
title: "Request: update {Token name}"
labels: update-request

---

- [ ] I understand that this is not the place to request a Uniswap token listing.
Expand All @@ -14,8 +13,8 @@ labels: update-request
**Please provide the following information for your token.**

Token Address: {0x...}
Token Symbol:
Token Name:
Decimals:
Token Symbol:
Token Name:
Decimals:
Logo: {attached or url}
Link to the official homepage:
13 changes: 6 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ Template for creating a tokenlist and validating against Uniswap token schema.

## Resources

* [Ethereum token lists](https://tokenlists.org/)
* [https://github.com/Uniswap/token-lists](https://github.com/Uniswap/token-lists)
* [Semantic versioning](https://github.com/Uniswap/token-lists/blob/master/README.md#semantic-versioning)
- [Ethereum token lists](https://tokenlists.org/)
- [https://github.com/Uniswap/token-lists](https://github.com/Uniswap/token-lists)
- [Semantic versioning](https://github.com/Uniswap/token-lists/blob/master/README.md#semantic-versioning)

## Validation

Expand Down Expand Up @@ -44,11 +44,10 @@ This tokenlist is ment to aggregate the entire ecosystem into one list
- SushiSwap
- CREAM
- COVER
- Keep3r
- Akropolis
- Keep3r
- Akropolis
- etc . . .


## License
## License

Apache-2.0
13 changes: 7 additions & 6 deletions index.mjs
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import defaultExport from '@uniswap/token-lists';
import Ajv from 'ajv';
import * as data from './tokens.json';
import defaultExport from "@uniswap/token-lists";
import Ajv from "ajv";
import * as data from "./tokens.json";

var ajv = new Ajv();
var valid = ajv.addSchema(defaultExport.schema, 'mySchema')
.validate('mySchema', data.default);
var valid = ajv
.addSchema(defaultExport.schema, "mySchema")
.validate("mySchema", data.default);
if (!valid) {
throw new Error(ajv.errorsText());
throw new Error(ajv.errorsText());
}
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"dependencies": {},
"devDependencies": {
"@uniswap/token-lists": "^1.0.0-beta.16",
"ajv": "^6.12.4"
"ajv": "^6.12.4",
"semantic-release": "^17.3.1"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
Expand Down
8 changes: 2 additions & 6 deletions tokens.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
{
"name": "Yearn Finance Token List",
"timestamp": "2020-11-26T00:00:00+00:00",
"version": {
Expand All @@ -7,11 +7,7 @@
"patch": 0
},
"logoURI": "https://yearn.finance/static/media/YFI-logo.cda8d5a4.png",
"keywords": [
"nomichef",
"default",
"list"
],
"keywords": ["nomichef", "default", "list"],
"tokens": [
{
"address": "0x6B3595068778DD592e39A122f4f5a5cF09C90fE2",
Expand Down

0 comments on commit 4a02572

Please sign in to comment.