Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
"root": true,
"env": {
"browser": true,
"node": true,
"es2021": true
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json",
"sourceType": "module",
"ecmaVersion": 12
},
"plugins": [
"@typescript-eslint",
"prettier",
"security",
"import"
],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:security/recommended",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:prettier/recommended"
],
"rules": {
"prettier/prettier": ["error"],
"@typescript-eslint/no-unused-vars": ["warn", { "argsIgnorePattern": "^_" }],
"@typescript-eslint/explicit-function-return-type": "off",
"import/order": [
"warn",
{
"groups": ["builtin", "external", "internal", "parent", "sibling", "index"],
"newlines-between": "always"
}
],
"security/detect-object-injection": "off",
"no-console": ["warn", { "allow": ["warn", "error"] }]
},
"ignorePatterns": [
"dist/",
"node_modules/",
"coverage/",
"*.config.js"
]
}
33 changes: 33 additions & 0 deletions .github /workflows/pr_tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Auto Logo Deploy

on:
push:
branches: [main]
workflow_dispatch:

jobs:
deploy-logo:
runs-on: self-hosted

steps:
- name: Checkout repo
uses: actions/checkout@v3

- name: Set up Git
run: |
git config --global user.name "NH/NNT Bot"
git config --global user.email "bot@nhnnt.dev"

- name: Copy logo and metadata
run: |
mkdir -p ./assets/polygon
cp ./logo/nhnnt.png ./assets/polygon/nhnnt.png
cp ./metadata/nhnnt.json ./assets/polygon/nhnnt.json

- name: Commit changes
run: |
git add ./assets/polygon/nhnnt.*
git commit -m "Auto-deploy NH/NNT logo and metadata [skip ci]" || echo "No changes to commit"

- name: Push to main
run: git push origin main
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions assets/0xf930cf4150f7cb1108b30df6107818fd794398/mapped.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"name": "NH Token",
"symbol": "NH",
"address": "0xf930cf4150f7cb1108b30df6107818fd794398",
"chainId": 137,
"decimals": 18,
"logoURI": "https://raw.githubusercontent.com/Nishantt/polygon-tokenlist/main/assets/0xf930cf4150f7cb1108b30df6107818fd794398/logo.png"
}
24 changes: 24 additions & 0 deletions logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
45 changes: 45 additions & 0 deletions mapped.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"name": "NH Token",
"symbol": "NH",
"address": "0xf930cf4150f7cb1108b30df610f07188fd794398",
"chainId": 1,
"decimals": 18,
"logoURI": "https://raw.githubusercontent.com/Nishant939/assets/master/blockchains/ethereum/assets/0xf930cf4150f7cb1108b30df610f07188fd794398/logo.png",
"extensions": {
"bridge": "polygon",
"assetContract": "0xf930cf4150f7cb1108b30df610f07188fd794398",
"destinationChainId": 137,
"destinationAddress": "0xfe895d996B2772c8BD03C17A7E1392123351b1EC"
}
}



{
"name": "NH Token",
"symbol": "NH",
"address": "0xfe895d996B2772c8BD03C17A7E1392123351b1EC",
"chainId": 137,
"decimals": 18,
"logoURI": "https://raw.githubusercontent.com/Nishant939/assets/master/blockchains/polygon/assets/0xfe895d996B2772c8BD03C17A7E1392123351b1EC/logo.png",
"extensions": {
"bridge": "polygon",
"assetContract": "0xfe895d996B2772c8BD03C17A7E1392123351b1EC",
"originChainId": 1,
"originAddress": "0xf930cf4150f7cb1108b30df610f07188fd794398"
}
}
{
"name": "NH Token",
"symbol": "NH",
"address": "0xf930cf4150f7cb1108b30df610f07188fd794398",
"chainId": 1,
"decimals": 18,
"logoURI": "https://raw.githubusercontent.com/Nishant939/assets/master/blockchains/polygon/assets/0xf930cf4150f7cb1108b30df610f07188fd794398/logo.png",
"extensions": {
"bridge": "polygon",
"assetContract": "0xf930cf4150f7cb1108b30df610f07188fd794398",
"destinationChainId": 137,
"destinationAddress": "0xfe895d996B2772c8BD03C17A7E1392123351b1EC"
}
}
Loading