Skip to content

Commit

Permalink
Add Monad Testnet tokens (#1425)
Browse files Browse the repository at this point in the history
* feat: added monad testnet icons

* chore: update readme
  • Loading branch information
blurpesec authored Feb 19, 2025
1 parent 6d2c6f0 commit 3b05229
Show file tree
Hide file tree
Showing 8 changed files with 28 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@ imageElForEVMToken (ethereumNetworkChainId, "0x06012c8cf97BEaD5deAe237070F9587f8
Maintaining this list is a considerable chore, and it is not our highest priority. We do not guarantee inclusion in this list on any urgent timeline. We are actively looking for fair and safe ways to maintain a list like this in a decentralized way, because maintaining it is a large and security-delicate task.
1. Fork this repository.
2. Add your logo image in `.svg` file format to the `icons` folder.
2. Add your logo image in `.svg` or `.png` file format to the `icons` folder.
3. Add your asset metadata in a json format to a `metadata/${caip19AssetId}.json` file with the CAIP-19 Asset ID as the key inside of the `metadata/` folder.
Criteria:
- The icon should be small, square, but high resolution, and a vector/svg.
- The icon should be small, square, but high resolution, and a vector/svg or a png.
- The address should be in checksum format or it will not be accepted. This is true of non-evm assets as well - since some network's addressing formats are case-sensitive.
- PR should include link to official project website referencing the suggested address.
- Project website should include explanation of project.
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"name": "Molandak",
"symbol": "DAK",
"decimals": 18,
"erc20": true,
"logo": "./icons/eip155:10143/erc20:0x0F0BDEbF0F83cD1EE3974779Bcb7315f9808c714.png"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"name": "Chog",
"symbol": "CHOG",
"decimals": 18,
"erc20": true,
"logo": "./icons/eip155:10143/erc20:0xE0590015A873bF326bd645c3E1266d4db41C4E6B.png"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"name": "Moyaki",
"symbol": "YAKI",
"decimals": 18,
"erc20": true,
"logo": "./icons/eip155:10143/erc20:0xfe140e1dCe99Be9F4F15d657CD9b7BF622270C50.png"
}
7 changes: 5 additions & 2 deletions test/caip.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,15 @@ test("logos should correspond to an included web image file", function (t) {
t.end();
});

test("logos path names should be an svg", function (t) {
test("logos path names should be an svg or a png", function (t) {
Object.keys(contractMap).forEach((caip19AssetId) => {
const contract = contractMap[caip19AssetId];
if (!contract.logo) return;
const fileName = contract.logo;
t.ok(fileName.includes(".svg"), `filename is an svg: "${fileName}"`);
t.ok(
fileName.includes(".svg") || fileName.includes(".png"),
`filename is an svg or a png: "${fileName}"`,
);
});

t.end();
Expand Down

0 comments on commit 3b05229

Please sign in to comment.