Skip to content

Commit

Permalink
chore: adds testnet tokens to listing script
Browse files Browse the repository at this point in the history
  • Loading branch information
kenodressel committed Jul 11, 2024
1 parent 46bc63f commit cd2d80f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version: '3.1'
services:

db:
image: postgres
image: postgres:15
restart: always
environment:
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
Expand Down
11 changes: 8 additions & 3 deletions script/listTokens.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,20 @@ async function main() {
'ct_xtk8rSz9suPb6D6VLquyfVji25FcnFRDjn3dnn5mmvHsPiESt',
];

const testnetTokens = [
'ct_b7FZHQzBcAW4r43ECWpV3qQJMQJp5BxkZUGNKrqqLyjVRN3SC',
'ct_7tTzPfvv3Vx8pCEcuk1kmgtn4sFsYCQDzLi1LvFs8T5PJqgsC',
'ct_28w7VyXS6UDNbyWZxZLtxpDKJorfpYyBQM4f9quseFEByUeDpb',
'ct_JDp175ruWd7mQggeHewSLS1PFXt9AzThCDaFedxon8mF8xTRF',
];

const MAINNET_DEX_BACKEND_URL =
'https://dex-backend-mainnet.prd.service.aepps.com';
const TESTNET_DEX_BACKEND_URL =
'https://dex-backend-testnet.prd.service.aepps.com';

const path = '/tokens/listed/';

for (const token of mainnetTokens) {
await fetch(`${MAINNET_DEX_BACKEND_URL}${path}${token}`, {
await fetch(`${MAINNET_DEX_BACKEND_URL}/tokens/listed/${token}`, {
method: 'POST',
headers: {
'Content-Type': 'application/json',
Expand Down

0 comments on commit cd2d80f

Please sign in to comment.