Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
merge: bring reward page in sync with master (#355)
* remove banner (#275) Signed-off-by: Tulun <[email protected]> Signed-off-by: Tulun <[email protected]> * improve(storybook): add global styles to all preview tabs (#268) * improve: add global styles to all preview tabs * fix: pool removal crashing with small amounts (#274) * improve: Remove debug level logs from API (#271) These logs print every time API is requested, please comment if there are any logs worth keeping * feat: Disable Bridge when REACT_APP_DISABLE_BRIDGE is set to 1 (truthy). (#272) * error shows. Signed-off-by: Tulun <[email protected]> * disable send tx and show disabled button. Signed-off-by: Tulun <[email protected]> * documentation Signed-off-by: Tulun <[email protected]> * slightly better message. Signed-off-by: Tulun <[email protected]> * change only in useSendAction Signed-off-by: Tulun <[email protected]> * early casting of disableBridge; EOL Signed-off-by: Tulun <[email protected]> * force check for 'true' on env Signed-off-by: Tulun <[email protected]> * === true Signed-off-by: Tulun <[email protected]> Signed-off-by: Tulun <[email protected]> * feat: additional delay calc logic configurable by REACT_APP_DEPOSIT_DELAY (#278) * Give time estimate for eth2 Signed-off-by: Tulun <[email protected]> * 6-7 mins Signed-off-by: Tulun <[email protected]> * fromChain added Signed-off-by: Tulun <[email protected]> * env example Signed-off-by: Tulun <[email protected]> * start to build func Signed-off-by: Tulun <[email protected]> * time range calc. Signed-off-by: Tulun <[email protected]> * Add comment. Signed-off-by: Tulun <[email protected]> * define calc once. Signed-off-by: Tulun <[email protected]> * refactor; adjusted incorrect times Signed-off-by: Tulun <[email protected]> * fix wrong key Signed-off-by: Tulun <[email protected]> * remove log Signed-off-by: Tulun <[email protected]> * Refactor * Update bridge.ts * test log Signed-off-by: Tulun <[email protected]> * temp log Signed-off-by: Tulun <[email protected]> * seperate logs Signed-off-by: Tulun <[email protected]> * refactor * Remove console.logs Signed-off-by: Tulun <[email protected]> Co-authored-by: nicholaspai <[email protected]> * fix: Disable all routes in API (#270) * fix: Disable all routes in API To prepare for merge, disable all API routes * Revert "fix: Disable all routes in API" This reverts commit 00c08fe. * Refactor * Revert "Refactor" This reverts commit 096fd52. * Refactor * Revert "fix: Disable all routes in API (#270)" (#279) This reverts commit 95f0034. * chore(package): Use Across SDK-v2 v0.1.25 (#276) This changes the behaviour of the Coingecko class, which should be primarily visible in the backend/API coingecko endpoint. * fix: port relayer fee logic to API (#256) * feat: add start of api utility to call endpoints * refactor: add fromChain to API calls * feat: add start of api utility to call endpoints * refactor: add fromChain to API calls * feat: replace sdk call with api reference * debug: add temp logging * fix: update fixed point division * feat(api): expose three new fields from response The total fees from the relayFeeCalculator are also dependent on the current price of the token. In most cases, this is a non-issue because ETH is the base price. However, in the singular case of MATIC, the total amount must also be multiplied by the price of MATIC/ETH. To prevent needing this value to be calculated on the FE, this value can be exposed in the JSON payload of /suggested-fees * feat: resolve new data fields from the API * improve: add too low data from api * fix(api): remove errant price cache Before this commit, the cached CG price was being used as a overrided value to the getRelayerfeeDetails. This works for all the chains whose basis currency is ETH. However, this will fail for MATIC, because the price in the PolygonQueries is determined by a basis currency of MATIC. * docs: add relevant comments * fix(test): Add env to mock serverless API * feat: add mock and prod api function designation * chore(across-v2): Bump SDK -> 0.1.26 (#280) - Less logging, and longer timeout on CoinGecko price lookups. * ci: 🧑💻 chromatic publish on specific label (#281) * feat: speed up modal (#260) * feat: speed up modal * chore: bump sdk to version with speed up support * ui tweaks * improve: hover on data row * fix: zap style tweaks * feat: add basic success content * fix: mobile friendly speed up * refactor: adjust min and max inputs * refactor: tweak input validation * fix: notify speed up on different chain * fix: stats box * fixup * fix: notify singleton usage * fix: replace notify with wait * improve: code quality - usage of closures for formatter - usage of `Boolean` instead of `!!` - usage of `else if` instead of `if` - usage of `weiSafe` * feat: add useNotify hook * fixup * refactor: improve intention fo formatWeiPct * improve: file structure * build: fix from merge commit * feat: Add Header + Footer to storybook; Include solution for react-context. (#288) * Footer story works; Header WIP. Signed-off-by: Tulun <[email protected]> * footer only. Signed-off-by: Tulun <[email protected]> * Header story works. Signed-off-by: Tulun <[email protected]> * wired up controls. Signed-off-by: Tulun <[email protected]> * improve: Abstracted useConnection into own hook as it has no ref to redux anymore. Signed-off-by: Tulun <[email protected]> * remove ref Signed-off-by: Tulun <[email protected]> Signed-off-by: Tulun <[email protected]> * fix: remove max relayer fee button (#289) Remove button for now, until better suited function is found. * feat(api): Exit early from debug level logs if boolean is switched on (#291) * feat(api): Exit early from debug level logs if boolean is switched on Vercel logging can be expensive and we're not in control of when clients trigger the API that log. We should be able to turn off non-critical logs with a boolean flip easily * Update _utils.ts * Update _utils.ts * Add lazy loading routes (#259) * fix: change typing of bouncetype (#295) * Close sidebar on click outside (#262) * improve: deleted unused logos (#346) * removed a couple unused logos Signed-off-by: Tulun <[email protected]> * more unused icons Signed-off-by: Tulun <[email protected]> * more unnec logos Signed-off-by: Tulun <[email protected]> Signed-off-by: Tulun <[email protected]> * fix: Start separating functions for unit testing (#350) * toWeiSafe works Signed-off-by: Tulun <[email protected]> * Addresses can be checked independently; odd import is screwing up other test. Signed-off-by: Tulun <[email protected]> * save wip Signed-off-by: Tulun <[email protected]> * address.test.ts Signed-off-by: Tulun <[email protected]> * update imports Signed-off-by: Tulun <[email protected]> * Fixed import issue Signed-off-by: Tulun <[email protected]> * test env Signed-off-by: Tulun <[email protected]> * removed unnec jest config stuff Signed-off-by: Tulun <[email protected]> * add to GH actions Signed-off-by: Tulun <[email protected]> * syntax Signed-off-by: Tulun <[email protected]> Signed-off-by: Tulun <[email protected]> * test: Adding tests for generic hooks (#351) * window size hook Signed-off-by: Tulun <[email protected]> * usePrevious test Signed-off-by: Tulun <[email protected]> * useScrollPosition Signed-off-by: Tulun <[email protected]> * split test Signed-off-by: Tulun <[email protected]> Signed-off-by: Tulun <[email protected]> * feat: add a way to specify an override provider for the API (#352) * improve: allow canonical linking in deep-link (#336) * feat: ✨ crate a mapping of string to numeric chain id * feat: ✨ add fns to resolve canonical name * improve: enable canonical name linking in from/to * fix: remove typecast * improve: hoist undefined logic into calling fn * improve: add conditional * improve: add doc comment * fix: resolve build conflict * fix: change useConnection location Signed-off-by: Tulun <[email protected]> Co-authored-by: Jason Kiraly <[email protected]> Co-authored-by: David A <[email protected]> Co-authored-by: nicholaspai <[email protected]> Co-authored-by: nicholaspai <[email protected]> Co-authored-by: Paul <[email protected]> Co-authored-by: Dong-Ha Kim <[email protected]> Co-authored-by: Anastasios <[email protected]> Co-authored-by: Matt Rice <[email protected]>
- Loading branch information