Open arthurgousset opened 4 months ago
I noticed the Github repo publishes a Github Page at https://celo-org.github.io/celo-token-list. I assume that's to make the celo.tokenlist.json accessible via HTTP requests to https://celo-org.github.io/celo-token-list/celo.tokenlist.json.
https://celo-org.github.io/celo-token-list
celo.tokenlist.json
https://celo-org.github.io/celo-token-list/celo.tokenlist.json
To start I added the URL in the repo description
You can make an API call to retrieve the latest OFAC sanctions list from https://celo-org.github.io/compliance/ofac.sanctions.json For example: export async function getSanctionedAddresses(): Promise<string[]> { return await fetch("https://celo-org.github.io/compliance/ofac.sanctions.json") .then((response) => { return response.json(); }) .catch((err) => { console.log(err); }); } [!TIP] No changes to your code will be necessary when the list is updated as this API will always return the latest version.
You can make an API call to retrieve the latest OFAC sanctions list from
https://celo-org.github.io/compliance/ofac.sanctions.json
For example:
export async function getSanctionedAddresses(): Promise<string[]> { return await fetch("https://celo-org.github.io/compliance/ofac.sanctions.json") .then((response) => { return response.json(); }) .catch((err) => { console.log(err); }); }
[!TIP] No changes to your code will be necessary when the list is updated as this API will always return the latest version.
Source: celo-org/compliance > README.md
I think we are intentionally not publishing this to NPM, but just double-checking.
I noticed the Github repo publishes a Github Page at
https://celo-org.github.io/celo-token-list
. I assume that's to make thecelo.tokenlist.json
accessible via HTTP requests tohttps://celo-org.github.io/celo-token-list/celo.tokenlist.json
.To start I added the URL in the repo description
Source: celo-org/compliance > README.md
I think we are intentionally not publishing this to NPM, but just double-checking.