Skip to content

Commit

Permalink
Initialize codespace-sturdy-meme-69vqgv45xv54c4xqr
Browse files Browse the repository at this point in the history
  • Loading branch information
GIgako19929 committed Aug 21, 2024
0 parents commit 1ffab9d
Show file tree
Hide file tree
Showing 26,614 changed files with 1,509,448 additions and 0 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
14 changes: 14 additions & 0 deletions .github/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Number of days of inactivity before an issue becomes stale
daysUntilStale: 90
# Number of days of inactivity before a stale issue is closed
daysUntilClose: 10
# Label to use when marking an issue as stale
staleLabel: stale
# Comment to post when marking an issue as stale. Set to `false` to disable
markComment: >
This issue has been automatically marked as stale because it has not had
recent activity. It will be closed within 10 days if no further activity occurs. Thank you
for your contributions.
# Comment to post when closing a stale issue. Set to `false` to disable
closeComment: >
Closing because of inactivity
44 changes: 44 additions & 0 deletions .github/workflows/deno.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
run-name: giga

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

# This workflow will install Deno then run `deno lint` and `deno test`.
# For more information see: https://github.com/denoland/setup-deno

name: Deno

on:
push:
branches: ["master"]
pull_request:
branches: ["master"]

permissions:
contents: read

jobs:
test:
runs-on: ubuntu-latest

steps:
- name: Setup repo
uses: actions/checkout@v4

- name: Setup Deno
# uses: denoland/setup-deno@v1
uses: denoland/setup-deno@61fe2df320078202e33d7d5ad347e7dcfa0e8f31 # v1.1.2
with:
deno-version: v1.x

# Uncomment this step to verify the use of 'deno fmt' on each commit.
# - name: Verify formatting
# run: deno fmt --check

- name: Run linter
run: deno lint

- name: Run tests
run: deno test -A
44 changes: 44 additions & 0 deletions .github/workflows/generate-dist.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: generate dist

on:
push:
branches-ignore:
- '**'

jobs:
generate-dist:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: install packages
run: npm install

- name: check formatting issues
run: npm run compile

- name: check for lint issues
run: npm run lint

- name: check master-file
run: npm run test:checkMasterFile

- name: check token issue
run: npm run test:checkToken

- name: check contract issue
run: npm run test:checkContract

- name: check nft issues
run: npm run test:checkNft

- name: commit files
run: |
git config --local user.email "[email protected]";
git config --local user.name "mewbot";
git commit -am "Recompile";
- name: push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{secrets.MEW_BOT_TOKEN}}
branch: master
33 changes: 33 additions & 0 deletions .github/workflows/pr-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: pr check

on:
pull_request:
branches:
- master

jobs:
pr-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: install packages
run: npm install

- name: check formatting issues
run: npm run compile

- name: check for lint issues
run: npm run lint

- name: check master-file
run: npm run test:checkMasterFile

- name: check token issue
run: npm run test:checkToken

- name: check contract issue
run: npm run test:checkContract

- name: check nft issues
run: npm run test:checkNft
16 changes: 16 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
.DS_Store
node_modules/
npm-debug.log*
yarn-debug.log*
yarn-error.log*
/test/unit/coverage/
/test/e2e/reports/
selenium-debug.log

# Editor directories and files
.idea
.vscode
*.suo
*.ntvs*
*.njsproj
*.sln
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
**/*.min.json
./node_modules
13 changes: 13 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"semi": true,
"singleQuote": true,
"trailingComma": "none",
"overrides": [
{
"files": "*.json",
"options": {
"parser": "json"
}
}
]
}
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2020 MyEtherWallet

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
179 changes: 179 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,179 @@
# Ethereum-lists

[![Travis (.org)](https://img.shields.io/travis/MyEtherWallet/ethereum-lists.svg)](https://travis-ci.org/MyEtherWallet/ethereum-lists)
[![GitHub](https://img.shields.io/github/license/MyEtherWallet/ethereum-lists.svg)](https://github.com/MyEtherWallet/ethereum-lists/)
[![GitHub contributors](https://img.shields.io/github/contributors/MyEtherWallet/ethereum-lists.svg)](https://github.com/MyEtherWallet/ethereum-lists)

A repository for maintaining lists of things like malicious URLs, fake token addresses, and so forth. We love lists.

## Found a Phishing URL? See a fake ICO address?

Everyone is encouraged to make a PR or issue to add an address or URL to the list. This process is far easier than you might imagine!

1. If you do not already have a Github account, sign up. (it's free and easy!)

2. Navigate to the `src` folder and pick which one you'd like to add:

- `addresses` folder is for the darklisting or whitelisting ethereum addresses
- `contracts` folder is for the different network contracts
- `tokens` folder is for the different network tokens
- `urls` folder is for the darklisting or whitelisting ethereum urls

1. For urls or addresses:

- Click on the file you wish to update:
- If you would like to make an addition:
**a.** Copy the top most item starting with the first `{` and ending with the `},`
**b.** Paste it right above the first item
**c.** Replace that information with the new information
**d.** Some add'l notes on specific files are below. Please skim if you don't know what the fields are.
- If you would like to make a correction or remove an item:

**a.** Scroll to the item in question
**b.** Edit the item or remove the item by selecting the top `{` and ending with the `},` and deleting that chunk.
**c.** Some add'l notes on specific files are below. Please skim if you don't know what the fields are.

- Scroll to the bottom. under "Commit changes" enter a reason you are making this change.
- Example: _"Adding myetherscam.com to darklist. See [link to tweet / reddit post / screenshot]."_
- You can also provide more details in the box below. Please provide as much detail / evidence as reasonable so reviewers can verify quickly.


- Click the green "Propose File change" button.

- This next page is a review of what you did. Proofread and stuff.

- Click the "Create Pull Request" button.....twice.

- That's it. You successfully made a new pull request!

2. For tokens or contracts:
- Click on the network where you would like to implement a change.
- If you would like to make an addition:

**a.** Click create new file on the upper right side of the screen.

**b.** Name your file with the ethereum address with a `.json` extension. e.g: `0xDECAF9CD2367cdbb726E904cD6397eDFcAe6068D.json`

**c.** Some add'l notes on specific files are below. Please skim if you don't know what the fields are.
- If you would like to make a correction or remove an item:

**a.** Navigate to the file.
**b.** Click the pencil to edit or the trash can to delete.
- When editing, update the relevant information.
- Scroll to the bottom. under "Commit changes" enter a reason you are making this change.
- Example: _"Adding myetherscam.com to darklist. See [link to tweet / reddit post / screenshot]."_
- You can also provide more details in the box below. Please provide as much detail / evidence as reasonable so reviewers can verify quickly.


- Click the green "Propose File change" button.

- This next page is a review of what you did. Proofread and stuff.

- Click the "Create Pull Request" button.....twice.

- That's it. You successfully made a new pull request!

## Address Darklist

`src/addresses/addresses-darklist.json`

- **Purpose**: A list of addresses that deserve to be accompanied by a warning.
- **Example**:
- Fake twitter handle ShiftShape is DMing telling people to send ETH to `0x1234...` for discount.
- VitalikBooty DMs you a link telling you to enter your private key in order to 2FA your wallet.
- **Not for:**
- Tracking addresses of phishers or scammers.
- Reporting where stolen funds were sent to.

## Address Lightlist

`src/addresses/addresses-lightlist.json`

- **Purpose**:

- A list of addresses that are the "legitimate" addresses.
- Optionally accompanied by a recommended gas price for sending to (for token contributions mostly)

- **Example**:
- Upcoming token sale wants to ensure people sending to their address know to use a gas price of 200000.

_Best if you use github account that is part of token team or tweet or email us or something to verify. We should all get in the habit of cross-referencing provided information._

## URL Darklist

`src/addresses/urls-darklist.json`

- **Purpose**:
- A list of URLs known to be fake, malicious, phishing.
- **Example**:
- `myetherphish[.]com`
- **Not for:**
- Opinions on whether a project / token sale is a bad project.

## URL Lightlist

`src/addresses/urls-lightlist.json`

- **Purpose**:
- A list URLs that are caught by the Levenshtein algorithm above or are known to be the "legitimate" URLs.
- Usually are added if a URL is added to the above.
- **Example**:
- `myetherwallet.com`
- **Not for:**
- Promoting your social media shit.

## Contract ABIs

ABIs associated with contract addresses.

##### Information (all optional except for name, symbol, address, decimals):

- `name`: Contract name
- `address`: Ethereum (or other chain) address of a contract.
- `comment`: Any notes or comment about the contract
- `abi`: The contract abi

Please make sure that you name the files by their address. You can see examples [here](https://github.com/MyEtherWallet/ethereum-lists/tree/master/src/contracts): https://github.com/MyEtherWallet/ethereum-lists/tree/master/src/tokens

## Tokens

Information related to tokens. ERC-20 compliant only (For now).

##### Information (all optional except for name, symbol, address, decimals):

- `symbol`: Short ticker style symbol of token.
- `name`: Token name.
- `address`: Ethereum (or other chain) address of ERC-20 token.
- `decimal`: The decimals of the token.
- `logo`: An optional logo of your token. Must be a **square** (recommended: 128x128) PNG w/ transparent background. Please compress using https://tinypng.com/
- `support`: A support email, support URL, or other way people can get assistance regarding the token.
- `social`: Where details about the token are.

Please make sure that you name the files by their address. You can see examples [here](https://github.com/MyEtherWallet/ethereum-lists/tree/master/src/tokens): https://github.com/MyEtherWallet/ethereum-lists/tree/master/src/tokens

#### Development

on terminal, run: `git clone [email protected]:MyEtherWallet/ethereum-lists.git; cd ethereum-lists`
and then run: `npm run compile; npm run test:checkToken; npm run test:checkContract; npm run lint` to compile

#### Importing new Icons

1. unzip icons into root
2. `renameIcons.js` - set var icons to path of extracted folder
3. `node renameIcons`
4. move files into src/icons
5. `node generateMissingTokenListFromIcons`
6. `node createTokens`
7. delete files/folders
- maticTokens.json
- bscTokens.json
- ethTokens.json
- notinlist.json
- extracted folder from step 1
8. `npm run test`
9. `npm run compile`
10. `npm run lint`

#### A last note

This list is maintained by volunteers in the cryptocurrency community & people like you around the internet. It may not always be up to date, and it may occasionally get it wrong. If you find an error or omission, please open an issue or make a PR with any corrections.
21 changes: 21 additions & 0 deletions SECURITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Security Policy

## Supported Versions

Use this section to tell people about which versions of your project are
currently being supported with security updates.

| Version | Supported |
| ------- | ------------------ |
| 5.1.x | :white_check_mark: |
| 5.0.x | :x: |
| 4.0.x | :white_check_mark: |
| < 4.0 | :x: |

## Reporting a Vulnerability

Use this section to tell people how to report a vulnerability.

Tell them where to go, how often they can expect to get an update on a
reported vulnerability, what to expect if the vulnerability is accepted or
declined, etc.
Loading

0 comments on commit 1ffab9d

Please sign in to comment.