botond
836c232a1c
Feat/675: Git info ( #683 )
...
* feat: add network-switcher lib
* feat: add env variables for some deployed app urls
* feat: add network processing to environment hoook
* refactor: network handling
* refactor: remove dialog from provider and add env setter
* feat: add network switcher dialog to the trading app
* refactor: add network redirect to dialog connect callback
* fix: lint
* feat: add network configuration files to static app
* feat: update environments to use config file instead of static node url
* refactor: split out network switcher utils
* refactor: split up environment hook
* fix: jsonify env variable for possible networks
* fix: add formatter file
* feat: add network loader component
* feat: add network loader to the trading app
* fix: assign correct global state to network swicther
* feat: add status modal
* feat: add network-switcher lib
* feat: add env variables for some deployed app urls
* feat: add network processing to environment hoook
* refactor: network handling
* refactor: remove dialog from provider and add env setter
* feat: add network switcher dialog to the trading app
* refactor: add network redirect to dialog connect callback
* fix: lint
* fix: jsonify env variable for possible networks
* fix: add formatter file
* fix: assign correct global state to network swicther
* fix: failing tests from UI changes
* feat: add environment validation
* feat: add runtime validation for network configs
* fix: readd node urls to envs to avoid breaking the apps for now
* chore: rename network swicther lib to environmnet
* fix: lint
* feat: add tests for config hook
* feat: add environment hook tests
* fix: lint
* fix: lint
* feat: add environment hook tests
* feat: add storage tests
* fix: formet
* feat: improve loading states
* fix: format
* fix: use router instead of window location
* fix: rearrange network loader props and components
* fix: remove FC type
* fix: env validation
* fix: untangle returns in network loader
* fix: add teardown for env and localstorage
* fix: add custom to env networks
* fix: lint
* fix: format
* fix: lint
* fix: remove env provider from simple trading app
* fix: remove failing promise hacks
* fix: some leftover format files
* fix: remove network switcher from tsconf
* fix: move Networks to libs/environment
* fix: add defaults for ether env vars
* feat: add tests for default ether env vars
* fix: remove chain id env var from web3 container
* fix: remove chain id from the environment
* fix: format
* fix: lint token
* fix: lint env
* fix: add comment to callout hack
* fix: lint token again
* fix: remove skip
* fix: move addresses to token app
* fix: improve schema validation errors and fix token app
* fix: lint
* fix: format
* fix: format
* fix: add network loaders to apps
* fix: format
* fix: remove logs
* fix: cypress process errors
* fix: change network loader hierarchy in token
* fix: remove stray console.log
* fix: revert test changes in simple trading app
* fix: prefix env vars with NX
Co-authored-by: Dexter Edwards <dexter.edwards93@gmail.com>
* fix: improve schema validation errors and fix token app
* fix: format
* fix: disable lint rules for catch block any types
* fix: format again
* fix: remove redundant process.platform injections
* fix: format
* feat: add explorer footer
* fix: format
* feat: add custom executor for next
* feat: adjust footer links and add custom executors
* fix: lint and format
* fix: format again
* fix: add explicit github feedback url
* fix: create footer lib
* feat: add footer to token app
* fix: add compiled file to ignore
* fix: make lozenge styling more flexible when no variant specified
* fix: remove schema duplication for third party executors
* fix: add missing intent variant for the lozenge
* fix: move commit hash in footer down two positions
* fix: revert breaking schema removals
* fix: format
* chore: rename footer to network-info
* fix: format
Co-authored-by: Joe <joe@vega.xyz>
Co-authored-by: Matthew Russell <mattrussell36@gmail.com>
Co-authored-by: Dexter Edwards <dexter.edwards93@gmail.com>
2022-07-06 15:53:35 +00:00
botond
69b19e4b7b
feat( #507 ): Node Discovery
...
* feat: add network-switcher lib
* feat: add env variables for some deployed app urls
* feat: add network processing to environment hoook
* refactor: network handling
* refactor: remove dialog from provider and add env setter
* feat: add network switcher dialog to the trading app
* refactor: add network redirect to dialog connect callback
* fix: lint
* feat: add network configuration files to static app
* feat: update environments to use config file instead of static node url
* refactor: split out network switcher utils
* refactor: split up environment hook
* fix: jsonify env variable for possible networks
* fix: add formatter file
* feat: add network loader component
* feat: add network loader to the trading app
* fix: assign correct global state to network swicther
* feat: add status modal
* feat: add network-switcher lib
* feat: add env variables for some deployed app urls
* feat: add network processing to environment hoook
* refactor: network handling
* refactor: remove dialog from provider and add env setter
* feat: add network switcher dialog to the trading app
* refactor: add network redirect to dialog connect callback
* fix: lint
* fix: jsonify env variable for possible networks
* fix: add formatter file
* fix: assign correct global state to network swicther
* fix: failing tests from UI changes
* feat: add environment validation
* feat: add runtime validation for network configs
* fix: readd node urls to envs to avoid breaking the apps for now
* chore: rename network swicther lib to environmnet
* fix: lint
* feat: add tests for config hook
* feat: add environment hook tests
* fix: lint
* fix: lint
* feat: add environment hook tests
* feat: add storage tests
* fix: formet
* feat: improve loading states
* fix: format
* fix: use router instead of window location
* fix: rearrange network loader props and components
* fix: remove FC type
* fix: env validation
* fix: untangle returns in network loader
* fix: add teardown for env and localstorage
* fix: add custom to env networks
* fix: lint
* fix: format
* fix: lint
* fix: remove env provider from simple trading app
* fix: remove failing promise hacks
* fix: some leftover format files
* fix: remove network switcher from tsconf
* fix: move Networks to libs/environment
* fix: add defaults for ether env vars
* feat: add tests for default ether env vars
* fix: remove chain id env var from web3 container
* fix: remove chain id from the environment
* fix: format
* fix: lint token
* fix: lint env
* fix: add comment to callout hack
* fix: lint token again
* fix: remove skip
* fix: move addresses to token app
* fix: improve schema validation errors and fix token app
* fix: lint
* fix: format
* fix: format
* fix: add network loaders to apps
* fix: format
* fix: remove logs
* fix: cypress process errors
* fix: change network loader hierarchy in token
* fix: remove stray console.log
* fix: revert test changes in simple trading app
* fix: prefix env vars with NX
Co-authored-by: Dexter Edwards <dexter.edwards93@gmail.com>
* fix: improve schema validation errors and fix token app
* fix: format
* fix: disable lint rules for catch block any types
* fix: format again
* fix: remove redundant process.platform injections
* fix: format
Co-authored-by: Joe <joe@vega.xyz>
Co-authored-by: Matthew Russell <mattrussell36@gmail.com>
Co-authored-by: Dexter Edwards <dexter.edwards93@gmail.com>
2022-06-21 16:20:53 -07:00
Dexter Edwards
bcaab22891
Feat/dockerize frontends ( #388 )
...
* feat: unhardcode contract addresses
* fix: linting and tests
* feat: switch contract usage in token app to use unhardcoded addresses
* chore: remove other usage of hard coded contract addresses
* feat: convert contracts to classes, update claim contract to fix circular dependency
* feat: add hard coded contract addresses to contracts page
* fix: misc tidy up
* chore: rename ethers big num conversion func
* fix: remove pending transactions modal
* chore: add single toBigNum function that can accept number string or EthersBignNumber
* chore: delete unused tranche helpers and decimals functions from smart contracts lib
* feat: add faucetable token class
* fix: reset tx state after early exit from approve tx
* feat: re add transaction modal using zustand store
* fix: loader colors for eth wallet
* fix: pass ethereum config to gurantee existence before tx execution
* add docker image for building explorer
* add arg
* env file changes
* add docker file to build env file
* add requirement for env file in explorer
* fix env file syntax
* containers functional
* default to testnet
* make env flag logic consistent in all places
* pre populate env file
* ensure working for all projects
* address PR comment
* generalising env for token
* invert config dependency from ui toolkit
* fix: merge issues
* docs: running containers documentation
* style: lint
* fix: env varibales not being added properly
* chore: fix merge issues
* chore: fix docker file to support new exectutors
* chore: set address on all contracts as a property
* feat: pull token from contract rather than relying on env var
* chore: fix typing
* chore: remove duplicated prop
* chore: don't use chainId
* style: lint
* style: lint
* Merge branch 'master' into feat/dockerize-frontends
* Merge remote-tracking branch 'origin/master' into feat/dockerize-frontends
* test: revert changes to explorer e2e file
* fix: creating client without base causing token to error
* test: fix tests erroring in before hook due to file not being found
* chore: remove node env from configurable flags
Co-authored-by: Matthew Russell <mattrussell36@gmail.com>
2022-06-13 15:39:17 +01:00
Matthew Russell
ff8990c257
Fix/411 asset dropdown style ( #535 )
...
* fix: arrow missing from select box
* fix: select box styles on firefox
2022-06-10 16:12:51 -07:00
botond
ecda46caa5
Feat/6 Network Switcher ( #502 )
...
* feat: add network-switcher lib
* feat: add env variables for some deployed app urls
* feat: add network processing to environment hoook
* refactor: network handling
* refactor: remove dialog from provider and add env setter
* feat: add network switcher dialog to the trading app
* refactor: add network redirect to dialog connect callback
* fix: lint
* fix: jsonify env variable for possible networks
* fix: add formatter file
* fix: assign correct global state to network swicther
* feat: add network-switcher lib
* feat: add env variables for some deployed app urls
* feat: add network processing to environment hoook
* refactor: network handling
* refactor: remove dialog from provider and add env setter
* feat: add network switcher dialog to the trading app
* refactor: add network redirect to dialog connect callback
* fix: lint
* fix: jsonify env variable for possible networks
* fix: add formatter file
* fix: assign correct global state to network swicther
* fix: failing tests from UI changes
* fix: lint
* fix: lint
Co-authored-by: Joe <joe@vega.xyz>
Co-authored-by: Dexter <dexter.edwards93@gmail.com>
2022-06-10 10:15:38 +01:00
botond
3a27172e04
feat( #175 ): ui-toolkit links ( #453 )
...
* feat: add enviromnemt provider to the ui-toolkit
* chore: replace etherscan links
* chore: wrap trading app into environment provider
* chore: move env provider to react-helpers and wrap every app
* chore: remove more env variables from libs and replace them with the env hook
* fix: lint
* fix: update readme with correct formatting command
* fix: warnings for web3 hook
* fix: wrap warning in conditional, print message only when env keys are missing
* fix: incorrect condition on deposit manager fauceting param
Co-authored-by: Matthew Russell <mattrussell36@gmail.com>
* fix: cleanup token app ethereum config
* chore: add better error handling to the useEnvironment hook
* fix: lint
* fix: formatting
* fix: more lint
* fix: throw error if required env variables are missing
* fix: remove default eth chain id
* fix: add back etherscan testid to withdrawals links
* fix: imports
* fix: try using babel jest for smart contracts test transpilation
* fix: uniform ts syntax
* chore: set resolveJsonModule in base tsconfig
* fix: add missing data-ids for etherscan links
Co-authored-by: Matthew Russell <mattrussell36@gmail.com>
2022-05-31 17:30:02 -07:00
botond
a6a21bed46
Feat/427: Serve explicit environments ( #433 )
...
* feat: add env specific serve commands where appropriate for apps
* fix: typo in command call
* feat: add custom executor for serving apps
* chore: clean up project files and use the custom executor
* chore: patch readmes
* chore: split out logs into their own function
* fix: prevent overriding env when no flag passed in
* fix: add tsc to postinstall to take care of compiling the custom executors
* fix: remove the custom serve executor from trading
2022-05-23 10:56:11 +01:00
Edd
431ea1bc80
Remove baseHref from stats page
...
This was breaking the result served via some IPFS urls (status was fine, subdirectory based gateways less so)
2022-05-04 12:45:11 +00:00
Edd
987cdb9d68
Disable SRI for stats ( #334 )
2022-05-04 09:02:54 +01:00
Dexter Edwards
9e82935658
Chore/more docs ( #331 )
...
* chore renable prettier md files
* remove duplicated information, add instructions on running formatting
* add more docs for other apps a libraries
* correct numbering
* Missing applications
* correction for serving
* more docs
2022-05-03 16:32:31 +01:00
Edd
463bb2e360
Add fleek file for stats, and script to run it if affected
2022-04-11 12:12:40 +01:00
Edd
d10b26b041
Add license to stats readme
2022-04-07 11:54:12 +01:00
Edd
b95f6dc40f
Add readme to stats
2022-04-07 11:51:16 +01:00
Bartłomiej Głownia
6cbc701384
[ #168 ] Use static resources from static.vega.xyz ( #205 )
2022-04-06 11:36:36 +01:00
Edd
f5b2056385
Remove redundant baseHref
2022-04-01 15:02:13 +01:00
Edd
75856975ca
Try to make stats default to mainnet using NX env
2022-04-01 14:57:30 +01:00
sam-keen
b6df83ede8
Resolved merge conflicts with master, reduced warnings
2022-03-31 14:20:36 +01:00
sam-keen
80902e3c30
Added custom module for classes that aren't in Tailwind - allows us to use contextual alternates for Alpha Lyrae
2022-03-30 16:56:48 +01:00
Bartłomiej Głownia
7af0efa8d8
Enable @typescript-eslint/consistent-type-imports eslint rule
2022-03-30 13:05:41 +02:00
sam-keen
1d2db41e92
Added new shared theme switcher into stats project
2022-03-25 16:47:28 +00:00
sam-keen
13387e4ed4
Uppercase env names in env vars
2022-03-25 10:37:16 +00:00
sam-keen
e2a61d26ad
Proper way to get environment variables, and hoisted obtaining the env vars to the consumer of the stats manager
2022-03-24 14:58:24 +00:00
sam-keen
af5832fa9e
Merge remote-tracking branch 'origin/master' into feat/127-generalised-stats-page
...
# Conflicts:
# apps/stats/jest.config.js
# libs/network-stats/src/config/types.ts
# tsconfig.base.json
# workspace.json
2022-03-24 12:21:44 +00:00
sam-keen
5d6147ec7e
frontend-monorepo-127 Generalize stats page to work for all environments
2022-03-24 12:04:01 +00:00