Skip to content

Commit

Permalink
Feature/liquidations (#1003)
Browse files Browse the repository at this point in the history
* liquidations wip

* update deps and fix compile issues

* basic liquidation table working

* liquidations page

* dedupe

* deps

---------

Co-authored-by: jmzwar <[email protected]>
  • Loading branch information
jmzwar and jmzwar authored Nov 2, 2023
1 parent 3b8b406 commit 7bd2911
Show file tree
Hide file tree
Showing 31 changed files with 509 additions and 37 deletions.
Binary file not shown.
Binary file not shown.
Binary file removed .yarn/cache/ws-npm-8.13.0-26ffa3016a-53e991bbf9.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
8 changes: 6 additions & 2 deletions v2/perps-v2/ui/codegen.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
require('dotenv').config({ path: '.env.local', override: true });

import { CodegenConfig } from '@graphql-codegen/cli';
import { PERPS_V2_DASHBOARD_GRAPH_GOERLI_URL, PERPS_V2_DASHBOARD_GRAPH_URL } from './src/utils';
import { isStaging } from './src/utils/isStaging';
import {
PERPS_V2_DASHBOARD_GRAPH_GOERLI_URL,
PERPS_V2_DASHBOARD_GRAPH_URL,
} from './src/utils/constants';

const config: CodegenConfig = {
schema: isStaging ? PERPS_V2_DASHBOARD_GRAPH_GOERLI_URL : PERPS_V2_DASHBOARD_GRAPH_URL,
documents: ['src/**/*.ts'],
documents: ['src/queries/**/*.ts'],
generates: {
'./src/__generated__/': {
preset: 'client',
Expand Down
2 changes: 1 addition & 1 deletion v2/perps-v2/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"scripts": {
"start": "webpack-cli serve",
"build": "NODE_ENV=production webpack-cli",
"compile": "graphql-codegen",
"compile": "graphql-codegen ",
"test": "NODE_ENV=test jest",
"typecheck": "tsc --noEmit",
"standalone-install": "yarn workspaces focus '@synthetixio/perps-v2-dashboard'",
Expand Down
5 changes: 5 additions & 0 deletions v2/perps-v2/ui/src/__generated__/gql.ts

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

Loading

1 comment on commit 7bd2911

@vercel
Copy link

@vercel vercel bot commented on 7bd2911 Nov 2, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

v2-storybook – ./v2/ui

v2-storybook-git-master-synthetixio.vercel.app
staking-storybook.vercel.app
v2-storybook-synthetixio.vercel.app

Please sign in to comment.