Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: ✨ add export csv history and trades #4

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
7 changes: 7 additions & 0 deletions .github/workflows/validate-other-market-data.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,13 @@ jobs:
make build
echo "Starting localnet..."
DOCKER_BUILDKIT=1 make localnet-startd

- name: Get diff of otherMarketData.json
run: |
git fetch origin
git diff remotes/origin/main -- public/configs/otherMarketData.json > otherMarketDiff.txt

- name: Validate other market data
env:
DIFF: otherMarketDiff.txt
run: pnpx tsx scripts/validate-other-market-data.ts
31 changes: 31 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,37 @@ Then run `pnpm install`

**Remember to revert to remote abacus before making a PR.**

# Local Localization (l10n) Development

## Directory structure

Our tooling assumes that the [v4-localization repo](https://github.com/dydxprotocol/v4-localization) is checked out alongside v4-web:

```
--- parent folder
|___ v4-web
|___ v4-localization
```

## Using your local v4-localization repo

When you want to begin developing in v4-localization:
**kill your dev server first** then use the following command:

```
pnpm run install-local-l10n
```

## Reverting to remote localization

You'll need to unlink your local localization package with the following command:

```
pnpm run remove-local-l10n
```

Unlike with abacus, you will need to **restart your dev server** to see the revert take effect.

# Deployments

## Deploying with Vercel
Expand Down
12 changes: 9 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
"clean-install": "rm -rf node_modules/ && pnpm i",
"preview": "vite preview",
"install-local-abacus": "node scripts/install-local-abacus",
"install-local-l10n": "pnpm link ../v4-localization && echo Linking... please remember to restart your dev server",
"remove-local-l10n": "pnpm unlink ../v4-localization && echo Unlinking... please remember to restart your dev server",
"ladle": "ladle serve",
"ladle-b": "ladle build",
"ladle-p": "ladle preview",
Expand All @@ -47,9 +49,9 @@
"@cosmjs/proto-signing": "^0.32.1",
"@cosmjs/stargate": "^0.32.1",
"@cosmjs/tendermint-rpc": "^0.32.1",
"@dydxprotocol/v4-abacus": "1.7.85",
"@dydxprotocol/v4-client-js": "^1.1.20",
"@dydxprotocol/v4-localization": "^1.1.127",
"@dydxprotocol/v4-abacus": "1.8.6",
"@dydxprotocol/v4-client-js": "^1.1.24",
"@dydxprotocol/v4-localization": "^1.1.138",
"@ethersproject/providers": "^5.7.2",
"@hugocxl/react-to-image": "^0.0.9",
"@js-joda/core": "^5.5.3",
Expand Down Expand Up @@ -84,6 +86,7 @@
"@reduxjs/toolkit": "^2.2.5",
"@scure/bip32": "^1.3.0",
"@scure/bip39": "^1.2.0",
"@skip-router/core": "^5.1.0",
"@tanstack/react-query": "^5.37.1",
"@types/lodash": "^4.14.195",
"@types/styled-components": "^5.1.26",
Expand All @@ -108,7 +111,9 @@
"cosmjs-types": "^0.9.0",
"crypto-js": "^4.1.1",
"ethers": "^6.6.1",
"export-to-csv": "^1.2.3",
"graz": "^0.0.43",
"jsdom": "^24.1.0",
"lodash": "^4.17.21",
"long": "^5.2.3",
"luxon": "^3.3.0",
Expand All @@ -124,6 +129,7 @@
"react-stately": "^3.23.0",
"reselect": "^5.1.0",
"styled-components": "^5.3.11",
"unionize": "^3.1.0",
"use-latest": "^1.2.1",
"viem": "^1.20.0",
"wagmi": "^1.4.12"
Expand Down
Loading
Loading