Skip to content

Commit 884b8c5

Browse files
Merge branch 'master' into master
2 parents 1e105fb + 1850223 commit 884b8c5

File tree

1,790 files changed

+136750
-6961
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,790 files changed

+136750
-6961
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"type": "object",
3+
"properties": {
4+
"name": {
5+
"type": "string"
6+
}
7+
},
8+
"required": [
9+
"name"
10+
],
11+
"additionalProperties": true
12+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"type": "object",
3+
"additionalProperties": true
4+
}

schema.json renamed to .github/schemas/tokens-schema.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
}
3131
},
3232
"required": [
33-
"website",
3433
"description",
3534
"status"
3635
],

.github/workflows/auto-merge.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: automerge
2+
on:
3+
pull_request:
4+
types:
5+
- labeled
6+
- unlabeled
7+
- synchronize
8+
- opened
9+
- edited
10+
- ready_for_review
11+
- reopened
12+
- unlocked
13+
pull_request_review:
14+
types:
15+
- submitted
16+
check_suite:
17+
types:
18+
- completed
19+
status: {}
20+
jobs:
21+
automerge:
22+
runs-on: ubuntu-latest
23+
permissions:
24+
contents: write
25+
pull-requests: write
26+
steps:
27+
- id: automerge
28+
name: automerge
29+
uses: "pascalgn/[email protected]"
30+
env:
31+
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"

.github/workflows/validate.yml

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,14 @@ jobs:
1717
sudo apt install imagemagick-6.q16
1818
- name: Collecting file paths
1919
run: |
20-
echo "FILE_PATHS=$(find ./tokens -type f -name '*info.json' -printf '%p,'| sed 's/,$//' )" >> $GITHUB_ENV
20+
# Collect all JSON files in 'tokens' directories
21+
echo "TOKENS_FILE_PATHS=$(find . -type f -path '*/tokens/*.json' ! -name 'ranks.json' -printf '%p,' | sed 's/,$//')" >> $GITHUB_ENV
22+
23+
# Collect all JSON files in 'accounts' directories
24+
echo "ACCOUNTS_FILE_PATHS=$(find . -type f -path '*/accounts/*.json' -printf '%p,' | sed 's/,$//')" >> $GITHUB_ENV
25+
26+
# Collect all JSON files in 'identities' directories
27+
echo "IDENTITIES_FILE_PATHS=$(find . -type f -path '*/identities/*.json' -printf '%p,' | sed 's/,$//')" >> $GITHUB_ENV
2128
- id: files
2229
uses: jitterbit/get-changed-files@v1
2330
- name: Validate file size
@@ -35,8 +42,18 @@ jobs:
3542
- name: Validate token existence
3643
run: |
3744
source .github/snippet.sh; validate_token_existence
38-
- name: Validate JSON
45+
- name: Validate tokens JSON
46+
uses: docker://orrosenblatt/validate-json-action:latest
47+
env:
48+
INPUT_SCHEMA: ./.github/schemas/tokens-schema.json
49+
INPUT_JSONS: ${{ env.TOKENS_FILE_PATHS }}
50+
- name: Validate accounts JSON
51+
uses: docker://orrosenblatt/validate-json-action:latest
52+
env:
53+
INPUT_SCHEMA: ./.github/schemas/accounts-schema.json
54+
INPUT_JSONS: ${{ env.ACCOUNTS_FILE_PATHS }}
55+
- name: Validate identities JSON
3956
uses: docker://orrosenblatt/validate-json-action:latest
4057
env:
41-
INPUT_SCHEMA: ./schema.json
42-
INPUT_JSONS: ${{ env.FILE_PATHS }}
58+
INPUT_SCHEMA: ./.github/schemas/identities-schema.json
59+
INPUT_JSONS: ${{ env.IDENTITIES_FILE_PATHS }}

README.md

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,3 +178,49 @@ This is done via a message signature verification, where the message is the late
178178
To do so, on the PR page, go to the `Commits` tab of the Pull Request and copy the latest commit hash (should look similar to `9c6164f1b195ce96bc5b65d6878ebe813e852550`). Then sign
179179
that string by using the owner of the asset you are branding. The easiest way is to use our [Utils Dapp](https://utils.multiversx.com) where you should log in with the owner wallet
180180
and then go to the 'Sign Message' tab and sign the commit hash previously copied. After that, leave a comment inside the Pull Request with the obtained signature.
181+
182+
# Custom token price fetching
183+
184+
By default, tokens issued on MultiversX will have their price displayed on frontend products (such as Explorer, Web Wallet, and so on) only if they have a pair listed on xExchange.
185+
186+
However, there is the possibility for tokens to provide a custom price source for tokens. Here's how:
187+
188+
Inside the `info.json` file corresponding to the token, add the following property:
189+
190+
```
191+
"priceSource": {
192+
"type": "customUrl",
193+
"url": "https://your-api.com/your-token-price-endpoint",
194+
"path": "0.usdPrice"
195+
},
196+
```
197+
198+
Using the above settings, your endpoint must return a response that follows this definition:
199+
200+
```json
201+
[
202+
{
203+
"usdPrice": 0.05
204+
}
205+
]
206+
```
207+
208+
The default `path`, also used when nothing is set (`0.usdPrice`), will assume that the object containing the `usdPrice` is the first entry of an array.
209+
210+
If you want to expose something different on your endpoint, such as:
211+
212+
```json
213+
{
214+
"myCustomPriceField": 0.05
215+
}
216+
```
217+
218+
you'll need to update the `path` field accordingly:
219+
220+
```
221+
"priceSource": {
222+
"type": "customUrl",
223+
"url": "https://your-api.com/your-token-price-endpoint",
224+
"path": "myCustomPriceField"
225+
},
226+
```

accounts/bodcoin.png

23.1 KB
Loading

accounts/bodcoin.svg

Lines changed: 68 additions & 0 deletions
Loading
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"name": "Kwak - Team Wallet",
3+
"description": "",
4+
"social": {
5+
"website": "https://kwak.lol",
6+
"telegram": "https://t.me/dakwakklub",
7+
"twitter": "https://x.com/kwakdotlol"
8+
},
9+
"tags": ["kwak"],
10+
"icon": "kwak"
11+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"name": "Kwak - IRL Stuff",
3+
"description": "",
4+
"social": {
5+
"website": "https://kwak.lol",
6+
"telegram": "https://t.me/dakwakklub",
7+
"twitter": "https://x.com/kwakdotlol"
8+
},
9+
"tags": ["kwak"],
10+
"icon": "kwak"
11+
}

0 commit comments

Comments
 (0)