Skip to content

Commit

Permalink
[ASSET-5] Add asset images (#10)
Browse files Browse the repository at this point in the history
* [ASSET-5] Refactor the scripts (#8)

* ASSET-5 Upgrade python version to 3.12

Signed-off-by: jormal <[email protected]>

* ASSET-5 Substitute typing_extensions to typing

Signed-off-by: jormal <[email protected]>

* ASSET-5 Remove asynchrony

Signed-off-by: jormal <[email protected]>

* ASSET-5 Add models and refactor scripts

Signed-off-by: jormal <[email protected]>

* ASSET-5 Add enum ID preprocess

Signed-off-by: jormal <[email protected]>

* ASSET-5 Add tag test

Signed-off-by: jormal <[email protected]>

* ASSET-5 Add address checksum test

Signed-off-by: jormal <[email protected]>

* ASSET-5 Fix the info to pass the test

Signed-off-by: jormal <[email protected]>

---------

Signed-off-by: jormal <[email protected]>

* [ASSET-5] �Add asset images (#9)

* ASSET-5 Add exists assets' images

Signed-off-by: jormal <[email protected]>

* ASSET-5 Add images and info

Signed-off-by: jormal <[email protected]>

* ASSET-5 Update enums

Signed-off-by: jormal <[email protected]>

---------

Signed-off-by: jormal <[email protected]>

---------

Signed-off-by: jormal <[email protected]>
  • Loading branch information
jormal authored Jan 19, 2024
1 parent bdd21e7 commit 698a63a
Show file tree
Hide file tree
Showing 573 changed files with 7,016 additions and 186 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Set up Python 3.10
- name: Set up Python 3.12
uses: actions/setup-python@v2
with:
python-version: "3.10"
python-version: "3.12"

- name: Set up requirements
run: pip install -r requirements.txt
Expand Down
2 changes: 1 addition & 1 deletion .run/Preprocess.run.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<env name="PYTHONUNBUFFERED" value="1" />
</envs>
<option name="SDK_HOME" value="" />
<option name="SDK_NAME" value="Python 3.10 (asset-info-v2)" />
<option name="SDK_NAME" value="Python 3.12 (asset-info-v2)" />
<option name="WORKING_DIRECTORY" value="" />
<option name="IS_MODULE_SDK" value="false" />
<option name="ADD_CONTENT_ROOTS" value="true" />
Expand Down
3 changes: 1 addition & 2 deletions app.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from argparse import ArgumentParser
from asyncio import run

from libraries.preprocess import run_preprocess

Expand All @@ -16,4 +15,4 @@
help="The operation to run.",
)
args = parser.parse_args()
run(OPERATION_DICT[args.operation]())
OPERATION_DICT[args.operation]()
Binary file added assets/aave-0/image-128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/aave-0/image-256.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/aave-0/image-32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/aave-0/image-64.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions assets/aave-0/image.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
84 changes: 84 additions & 0 deletions assets/aave-0/info.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
{
"contracts": [
{
"address": "0x7Fc66500c84A76Ad7e9c93437bFc5Ac33E2DDaE9",
"decimals": 18,
"name": "Aave Token",
"network": "evm-1",
"symbol": "AAVE",
"tags": [
"mainnet"
]
},
{
"address": "0x76FB31fb4af56892A25e32cFC43De717950c9278",
"decimals": 18,
"name": "Aave Token",
"network": "evm-10",
"symbol": "AAVE",
"tags": [
"mainnet"
]
},
{
"address": "0xD6DF932A45C0f255f85145f286eA0b292B21C90B",
"decimals": 18,
"name": "Aave (PoS)",
"network": "evm-137",
"symbol": "AAVE",
"tags": [
"mainnet"
]
},
{
"address": "0x63a72806098Bd3D9520cC43356dD78afe5D386D9",
"decimals": 18,
"name": "Aave Token",
"network": "evm-43114",
"symbol": "AAVE.e",
"tags": [
"mainnet"
]
},
{
"address": "0x8cE2Dee54bB9921a2AE0A63dBb2DF8eD88B91dD9",
"decimals": 18,
"name": "Aave Token",
"network": "evm-43114",
"symbol": "AAVE",
"tags": [
"mainnet"
]
},
{
"address": "0xfb6115445Bff7b52FeB98650C87f44907E58f802",
"decimals": 18,
"name": "Aave Token",
"network": "evm-56",
"symbol": "AAVE",
"tags": [
"mainnet"
]
}
],
"id": "aave-0",
"images": {
"png128": true,
"png256": true,
"png32": true,
"png64": true,
"svg": true
},
"name": "Aave Token",
"references": [
{
"id": "coingecko",
"url": "https://www.coingecko.com/en/coins/aave"
},
{
"id": "coinmarketcap",
"url": "https://coinmarketcap.com/currencies/aave"
}
],
"tags": []
}
Binary file added assets/ada-0/image-128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/ada-0/image-256.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/ada-0/image-32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/ada-0/image-64.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
23 changes: 23 additions & 0 deletions assets/ada-0/image.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 34 additions & 0 deletions assets/ada-0/info.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"contracts": [
{
"address": "0x3EE2200Efb3400fAbB9AacF31297cBdD1d435D47",
"decimals": 18,
"name": "Cardano Token",
"network": "evm-56",
"symbol": "ADA",
"tags": [
"mainnet"
]
}
],
"id": "ada-0",
"images": {
"png128": true,
"png256": true,
"png32": true,
"png64": true,
"svg": true
},
"name": "Cardano Token",
"references": [
{
"id": "coingecko",
"url": "https://www.coingecko.com/en/coins/cardano"
},
{
"id": "coinmarketcap",
"url": "https://coinmarketcap.com/currencies/cardano"
}
],
"tags": []
}
Binary file added assets/algo-0/image-128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/algo-0/image-256.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/algo-0/image-32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/algo-0/image-64.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions assets/algo-0/image.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
23 changes: 23 additions & 0 deletions assets/algo-0/info.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"contracts": [],
"id": "algo-0",
"images": {
"png128": true,
"png256": true,
"png32": true,
"png64": true,
"svg": true
},
"name": "Algorand",
"references": [
{
"id": "coingecko",
"url": "https://www.coingecko.com/en/coins/algorand"
},
{
"id": "coinmarketcap",
"url": "https://coinmarketcap.com/currencies/algorand"
}
],
"tags": []
}
Binary file added assets/apt-0/image-128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/apt-0/image-256.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/apt-0/image-32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/apt-0/image-64.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 698a63a

Please sign in to comment.