Skip to content

Commit

Permalink
Merge pull request #1469 from multiversx/feat/xexchange-v3
Browse files Browse the repository at this point in the history
Merge feat/xexchange-v3 into development
  • Loading branch information
claudiulataretu authored Sep 12, 2024
2 parents a784b53 + 4233d7f commit 4052699
Show file tree
Hide file tree
Showing 205 changed files with 14,113 additions and 2,270 deletions.
27 changes: 17 additions & 10 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,25 @@ REDIS_PORT=6379
REDIS_DB=0

#MongoDB
MONGODB_URL=
MONGODB_DATABASE=
MONGODB_USERNAME=
MONGODB_PASSWORD=
MONGODB_URL="mongodb://localhost:27017"
MONGODB_DATABASE="development"
MONGODB_USERNAME="admin"
MONGODB_PASSWORD="admin"

#TimescaleDB
TIMESCALEDB_URL="localhost"
TIMESCALEDB_PORT=5432
TIMESCALEDB_DATABASE="timescaledb"
TIMESCALEDB_USERNAME="timescaledb"
TIMESCALEDB_PASSWORD="password"

#Elasticsearch server to use for logging. Optional
ELASTICSEARCH_URL="https://testnet-index.multiversx.com"
ELASTICSEARCH_URL="https://devnet-index.multiversx.com"

#MultiversX resources
MX_API_URL="https://testnet-api.multiversx.com"
MX_GATEWAY_URL="https://testnet-gateway.multiversx.com"
MX_DEX_URL="https://devnet-graphql-next.maiar.exchange"
MX_API_URL="https://devnet-api.multiversx.com"
MX_GATEWAY_URL="https://devnet-gateway.multiversx.com"
MX_DEX_URL="http://localhost:3005"
MX_DATA_API_URL="https://data-api.multiversx.com"

#Enable or Disable modules
Expand All @@ -48,8 +55,8 @@ LOG_LEVEL=info
# JWT Authorization
JWT_SECRET=
NATIVE_AUTH_MAX_EXPIRY_SECONDS=86400
NATIVE_AUTH_ACCEPTED_ORIGINS=
IMPERSONATE_URL=
NATIVE_AUTH_ACCEPTED_ORIGINS=https://localhost:3000,https://devnet.xexchange.com
IMPERSONATE_URL=“https://devnet-extras-api.multiversx.com/impersonate/allowed”

# RabbitMQ
RABBITMQ_URL=
Expand Down
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,17 @@ $ npm run start:dev
$ npm run start
```

4. Disable SSL for TimescaleDB in `timescaledb.module.ts`:

```
// ssl: true,
// extra: {
// ssl: {
// rejectUnauthorized: false,
// },
// },
```

It depends on the following external systems:

- gateway:
Expand Down
11 changes: 11 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,14 @@ services:
- MONGO_INITDB_ROOT_PASSWORD=admin
ports:
- '27017:27017'
timescaledb:
image: timescale/timescaledb:latest-pg12
restart: always
shm_size: 1gb
ports:
- '5432:5432'
environment:
POSTGRES_USER: timescaledb
POSTGRES_PASSWORD: password
volumes:
- /var/lib/postgresql/data
13 changes: 12 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"@golevelup/nestjs-rabbitmq": "^4.0.0",
"@multiversx/sdk-core": "^12.8.0",
"@multiversx/sdk-data-api-client": "^0.5.8",
"@multiversx/sdk-exchange": "^0.2.19",
"@multiversx/sdk-exchange": "^0.2.20",
"@multiversx/sdk-native-auth-server": "1.0.15",
"@multiversx/sdk-nestjs-cache": "^3.7.0",
"@multiversx/sdk-nestjs-common": "^3.7.0",
Expand Down Expand Up @@ -65,6 +65,7 @@
"class-validator": "^0.14.0",
"config": "^3.3.7",
"cookie-parser": "^1.4.6",
"dataloader": "^2.2.2",
"express": "^4.18.1",
"graphql": "^16.5.0",
"graphql-redis-subscriptions": "^2.4.2",
Expand Down
Loading

0 comments on commit 4052699

Please sign in to comment.