Skip to content

Commit 248acdb

Browse files
authored
chore: remove mock price api package and update env configuration (#194)
* chore: remove mock price api package and update env configuration Removed the mock-price-api package including all its files and updated the environment configuration to use the production price API endpoint instead of the local mock server. Also updated the documentation to reflect the removal of the mock price API setup instructions. The changes include: - Removing the mock-price-api package and all its associated files - Updating the price API base URL in .env.example to point to the production endpoint - Removing the mock price API related instructions from snapPreinstall.md - Updating the documentation to reflect the new configuration approach This change simplifies the setup process by removing the dependency on the local mock price API and standardizes the configuration to use the production price API.
1 parent be3e212 commit 248acdb

File tree

9 files changed

+9
-663
lines changed

9 files changed

+9
-663
lines changed

docs/snapPreinstall.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ The tarball will allow us to test preinstall on the public [metamask-extension b
77
1. Update the .env `SNAP_ENV=prod` in:
88
- `./packages/permissions-kernel-snap/.env`
99
- `./packages/gator-permissions-snap/.env`
10-
2. Set `PRICE_API_BASE_URL=http://localhost:8003` in `./packages/gator-permissions-snap/.env` to fetch spot prices from mock price API running locally.
11-
3. From root of repo run the following:
10+
2. From root of repo run the following:
1211

1312
```bash
1413
mkdir deps

packages/gator-permissions-snap/.env.example

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
SNAP_ENV=local
55

66
# The base URL for the price API used to fetch realtime token spot prices.
7-
PRICE_API_BASE_URL=http://localhost:8003
7+
PRICE_API_BASE_URL=https://price.dev-api.cx.metamask.io
88

99
# Set `STORE_PERMISSIONS_ENABLED=true` to enable profile sync storage features. This is needed when testing something related to storage otherwise leave `STORE_PERMISSIONS_ENABLED=false`
1010
STORE_PERMISSIONS_ENABLED=false
@@ -24,4 +24,4 @@ PRICE_API_BASE_URL=https://price.api.cx.metamask.io
2424
ACCOUNT_API_BASE_URL=https://accounts.api.cx.metamask.io
2525
TOKENS_API_BASE_URL=https://tokens.api.cx.metamask.io
2626
KERNEL_SNAP_ID=npm:@metamask/permissions-kernel-snap
27-
MESSAGE_SIGNING_SNAP_ID=npm:@metamask/message-signing-snap
27+
MESSAGE_SIGNING_SNAP_ID=npm:@metamask/message-signing-snap

packages/mock-price-api/.eslintrc.js

Lines changed: 0 additions & 8 deletions
This file was deleted.

packages/mock-price-api/CHANGELOG.md

Lines changed: 0 additions & 20 deletions
This file was deleted.

packages/mock-price-api/README.md

Lines changed: 0 additions & 3 deletions
This file was deleted.

packages/mock-price-api/package.json

Lines changed: 0 additions & 56 deletions
This file was deleted.

packages/mock-price-api/src/server.ts

Lines changed: 0 additions & 136 deletions
This file was deleted.

packages/mock-price-api/tsconfig.json

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)