Skip to content

Commit

Permalink
Merge branch 'master' into PELVIS-6e3b49-assets-1726730482455
Browse files Browse the repository at this point in the history
  • Loading branch information
dragos-rebegea authored Sep 19, 2024
2 parents e02cf00 + 3616310 commit 26b27b1
Show file tree
Hide file tree
Showing 1,628 changed files with 66,400 additions and 53,663 deletions.
12 changes: 12 additions & 0 deletions .github/schemas/accounts-schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"type": "object",
"properties": {
"name": {
"type": "string"
}
},
"required": [
"name"
],
"additionalProperties": true
}
4 changes: 4 additions & 0 deletions .github/schemas/identities-schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"type": "object",
"additionalProperties": true
}
File renamed without changes.
24 changes: 13 additions & 11 deletions .github/snippet.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
DIR=""

validate_filenames() {
ADDED_FILES=$@
for file in $ADDED_FILES; do
for file in "$@"; do
echo "Checking filename for $file"
if [[ ${file} != *"/info.json"* && ${file} != *"/logo.png"* && ${file} != *"/logo.svg"* && ${file} != *"accounts/"* && ${file} != *".github/"* && ${file} != *"/ranks.json"* && ${file} != *"README.md"* ]]; then
echo "Filename ${file} isn't expected!"
exit 1
Expand All @@ -13,9 +13,9 @@ validate_filenames() {
}

validate_file_size() {
ADDED_FILES=$@
SIZE_LIMIT=100
for file in $ADDED_FILES; do
for file in "$@"; do
echo "Checking file size for $file"
if [[ ${file} == *"/logo.svg"* || ${file} == *"/logo.svg"* ]]; then
file_size_blocks=$(ls -sh ${file} | grep -o -E '^[0-9]+')
file_size_kb=$(expr ${file_size_blocks} / 2)
Expand All @@ -29,9 +29,8 @@ validate_file_size() {
}

validate_svg_square() {
ADDED_FILES=$@

for file in $ADDED_FILES; do
for file in "$@"; do
echo "Checking if SVG is square for $file"
if [[ ${file} == *"/logo.svg"* ]]; then
view_box=$(cat $file | grep -E " viewBox" | grep -E -o "(([0-9]*\.[0-9]+|[0-9]+) ){3,3}([0-9]*\.[0-9]+|[0-9]+)" | head -1)

Expand All @@ -56,11 +55,14 @@ validate_svg_square() {
}

validate_png_dimensions() {
ADDED_FILES=$@
EXPECTED_PNG_DIMENSIONS="200 x 200"
for file in "$@"; do
echo "Checking PNG dimensions for $file"
logo_in_tokens="*tokens/*/logo.png"
logo_in_identities="*identities/*/logo.png"
png_in_accounts="*accounts/*/*.png"

for file in $ADDED_FILES; do
if [[ ${file} == *"/logo.png"* && (${file} == *"identities/"* || ${file} == *"tokens/"*) ]]; then
if [[ ${file} == ${logo_in_tokens} || ${file} == ${logo_in_identities} || ${file} == ${png_in_accounts} ]]; then
png_dimensions=$(file $file | grep -E -o "[0-9]+ x [0-9]+" | head -1)

echo "PNG dimensions: $png_dimensions"
Expand All @@ -76,7 +78,7 @@ validate_png_dimensions() {
}

validate_token_existence() {
urls=( "https://api.elrond.com/" "https://testnet-api.elrond.com/" "https://devnet-api.elrond.com/")
urls=( "https://api.multiversx.com/" "https://testnet-api.multiversx.com/" "https://devnet-api.multiversx.com/")
for url in ${urls[@]}; do
API_TOKEN_URL="$url"
API_TOKEN_URL+="tokens/"
Expand Down
40 changes: 30 additions & 10 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,27 +13,47 @@ jobs:
- uses: actions/checkout@v1
- name: Install Dependencies
run: |
sudo apt-get update
sudo apt install imagemagick-6.q16
shell: bash
- name: Collecting file paths
run: |
echo "FILE_PATHS=$(find ./tokens -type f -name '*info.json' -printf '%p,'| sed 's/,$//' )" >> $GITHUB_ENV
shell: bash
# Collect all JSON files in 'tokens' directories
echo "TOKENS_FILE_PATHS=$(find . -type f -path '*/tokens/*.json' ! -name 'ranks.json' -printf '%p,' | sed 's/,$//')" >> $GITHUB_ENV
# Collect all JSON files in 'accounts' directories
echo "ACCOUNTS_FILE_PATHS=$(find . -type f -path '*/accounts/*.json' -printf '%p,' | sed 's/,$//')" >> $GITHUB_ENV
# Collect all JSON files in 'identities' directories
echo "IDENTITIES_FILE_PATHS=$(find . -type f -path '*/identities/*.json' -printf '%p,' | sed 's/,$//')" >> $GITHUB_ENV
- id: files
name: Validate files
uses: jitterbit/get-changed-files@v1
- run: |
- name: Validate file size
run: |
source .github/snippet.sh ; validate_file_size ${{ steps.files.outputs.added_modified }}
- name: Validate filenames
run: |
source .github/snippet.sh ; validate_filenames ${{ steps.files.outputs.added_modified }}
- name: Validate png dimensions
run: |
source .github/snippet.sh ; validate_png_dimensions ${{ steps.files.outputs.added_modified }}
- name: Validate svg square
run: |
source .github/snippet.sh ; validate_svg_square ${{ steps.files.outputs.added_modified }}
shell: bash
- name: Validate token existence
run: |
source .github/snippet.sh; validate_token_existence
shell: bash
- name: Validate JSON
- name: Validate tokens JSON
uses: docker://orrosenblatt/validate-json-action:latest
env:
INPUT_SCHEMA: ./.github/schemas/tokens-schema.json
INPUT_JSONS: ${{ env.TOKENS_FILE_PATHS }}
- name: Validate accounts JSON
uses: docker://orrosenblatt/validate-json-action:latest
env:
INPUT_SCHEMA: ./.github/schemas/accounts-schema.json
INPUT_JSONS: ${{ env.ACCOUNTS_FILE_PATHS }}
- name: Validate identities JSON
uses: docker://orrosenblatt/validate-json-action:latest
env:
INPUT_SCHEMA: ./schema.json
INPUT_JSONS: ${{ env.FILE_PATHS }}
INPUT_SCHEMA: ./.github/schemas/identities-schema.json
INPUT_JSONS: ${{ env.IDENTITIES_FILE_PATHS }}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"name": "PLΛTΛ",
"description": "Project Cold Wallet",
"social": {
"website": "https://plata.network",
"twitter": "https://twitter.com/plataNetwork"
},
"tags": [
"plata",
"drivers"
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"name": "ShibaX Gang Bank",
"description": "ShibaX Gang Bank",
"social": {
"website": "https://www.shibaxnft.com/",
"twitter": "https://twitter.com/ShibaXSHIB"
},
"tags": [
"shibax",
"xshib",
"gang",
"bank"
],
"icon": "xshib"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"name": "PLΛTΛ",
"description": "Legacy BOT Wallet",
"social": {
"website": "https://plata.network",
"twitter": "https://twitter.com/plataNetwork"
},
"tags": [
"plata",
"drivers"
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"name": "ShibaX Airdrop",
"description": "ShibaX Airdrop",
"social": {
"website": "https://www.shibaxnft.com/",
"twitter": "https://twitter.com/ShibaXSHIB"
},
"tags": [
"shibax",
"xshib",
"airdrop"
],
"icon": "xshib"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"name": "ShibaX Staking",
"description": "ShibaX Staking",
"social": {
"website": "https://www.shibaxnft.com/",
"twitter": "https://twitter.com/ShibaXSHIB"
},
"tags": [
"shibax",
"xshib",
"staking"
],
"icon": "xshib"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"name": "🚀 EDGE Sniper 🚀",
"description": "A Project X Telegram bot. Snipe a token faster than anyone else!",
"social": {
"website": "https://projectx.mx/",
"twitter": "https://twitter.com/ProjectX_DAO",
"discord": "https://discord.gg/projectx-dao",
"whitepaper": "https://docs.projectx.mx/",
"medium": "https://medium.com/@ProjectX_dao"
},
"tags": [
"projectx",
"bot"
],
"icon": "projectx-edge-sniper"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"name": "Quasar DV: Development Vault",
"description": " The development wallet serves as a crucial entity within our ecosystem, acting as a central hub for managing the resources required for the continuous development and enhancement of our project.",
"social": {
"website": "https://quasar-mvx.com/",
"whitepaper": "https://docs.quasar-mvx.com/",
"twitter": "https://twitter.com/quasar_mvx",
"telegram": "https://t.me/+vufLg36aeSE0Mzg8",
"github": "https://github.com/QuasarMvX"
},
"tags": [
"development",
"vault"
],
"icon": "quasar"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"name": "XOXNO: Fiat Relayer Executor",
"description": "Fiat relayer executor triggers different automated actions for the $XOXNO ecosystem.",
"social": {
"email": "[email protected]",
"website": "https://xoxno.com",
"discord": "https://discord.gg/xoxno",
"twitter": "https://x.com/XoxnoNetwork",
"telegram": "https://xoxno.t.me",
"instagram": "https://instagram.com/xoxnoNFTs",
"github": "https://github.com/XOXNO",
"whitepaper": "https://xoxno.com/whitepaper",
"linkedin": "https://linkedin.com/company/xoxno",
"youtube": "https://www.youtube.com/channel/UCeknNkwBJZhrHcPPEMHAYrg",
"coinmarketcap": "https://coinmarketcap.com/currencies/xoxno/"
},
"tags": [
"XOXNO",
"Marketplace",
"Launchpad",
"Liquid Staking",
"Finance",
"DeFi",
"Ticketing",
"L2",
"Web2",
"Real Yield"
],
"icon": "xoxno"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"name": "ShibaX Partner Forge",
"description": "ShibaX Partner Forge",
"social": {
"website": "https://www.shibaxnft.com/",
"twitter": "https://twitter.com/ShibaXSHIB"
},
"tags": [
"shibax",
"xshib",
"partner"
],
"icon": "xshib"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"name": "Ofero: VIP Cashback",
"description": "The Ofero Network's VIP Cashback Wallet",
"social": {
"website": "https://www.ofero.network",
"email": "[email protected]",
"twitter": "https://twitter.com/oferonetwork",
"whitepaper": "https://ofero.network/documents/whitepaper.pdf",
"coinmarketcap": "https://coinmarketcap.com/currencies/ofero-network",
"coingecko": "https://www.coingecko.com/en/coins/ofero",
"telegram": "https://t.me/oferonetwork",
"youtube": "https://www.youtube.com/@oferonetwork",
"facebook": "https://www.facebook.com/oferonetwork",
"instagram": "http://instagram.com/oferonetwork",
"linkedin": "https://www.linkedin.com/company/oferonetwork",
"linktree": "https://linktr.ee/oferonetwork",
"discord": "https://discord.gg/PrKZpqbwk4",
"blog": "https://medium.com/@oferonetwork",
"reddit": "https://www.reddit.com/r/ofero_network"
},
"tags": [
"ofero",
"ofero network",
"vip",
"cashback",
"secure",
"community"
],
"icon": "oferonetwork"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"name": "Boogas",
"description": "A storytelling brand about the Boogas: fun-loving, prehistoric characters that unexpectedly end up in modern times.",
"social": {
"website": "https://boogasofficial.com",
"twitter": "https://x.com/BoogasOfficial",
"whitepaper": "https://x.com/boogasofficial/status/1801132954913038429"
},
"tags": [
"community"
],
"icon": "boogasofficial"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"name": "El Pulpo 🐙",
"description": "It's obviously El Pulpo's wallet",
"social": {
"website": "https://octools.app",
"twitter": "https://twitter.com/Elpulpo_0"
},
"tags": ["elpulpo", "el pulpo"],
"icon": "elpulpo"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"name": "PLΛTΛ",
"description": "Driver One",
"social": {
"website": "https://linktr.ee/plataLinks",
"twitter": "https://x.com/plataNetwork"
},
"tags": [
"plata",
"drivers"
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"name": "ShibaX Pyro Vault",
"description": "ShibaX Pyro Vault",
"social": {
"website": "https://www.shibaxnft.com/",
"twitter": "https://twitter.com/ShibaXSHIB"
},
"tags": [
"shibax",
"xshib"
],
"icon": "xshib"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"name": "ShibaX Marketing",
"description": "ShibaX Marketing",
"social": {
"website": "https://www.shibaxnft.com/",
"twitter": "https://twitter.com/ShibaXSHIB"
},
"tags": [
"shibax",
"xshib",
"marketing"
],
"icon": "xshib"
}
Loading

0 comments on commit 26b27b1

Please sign in to comment.