pendulum-chain / vortex

https://app.vortexfinance.co/
1 stars 1 forks source link

Add USDC and USDC.e support to the vortex pmf #72

Closed ebma closed 3 months ago

ebma commented 4 months ago

We replace jest with vitest, because jest was repeatedly causing issues due to the expected browser environment and the effort to configure it probably is too high. Vitest works out of the box and requires no extra configuration at all since we are already using vite in our project. However, our existing test for the NumericInput is somehow incompatible with the new environment. It's possible to configure vitest to run tests in a browser environment but somehow this still causes issues. Since the test for the NumericInput is not important, and we already have the same test in the portal, we delete it from this repository.

Closes #67.

netlify[bot] commented 4 months ago

Deploy Preview for pendulum-pay ready!

Name Link
Latest commit ca6e58f6f8e07b3eb3c8385763b95a0ef94e58a9
Latest deploy log https://app.netlify.com/sites/pendulum-pay/deploys/66accc7e199cd20008a6bb6e
Deploy Preview https://deploy-preview-72--pendulum-pay.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

prayagd commented 3 months ago

@ebma is this blocked by any ticket? asking because no development in last 2 weeks

ebma commented 3 months ago

Yes, the change itself is very simple but it doesn't make sense to merge this now before the continuable flow is merged because then we need to change it again.

github-actions[bot] commented 3 months ago

yarn.lock changes

Summary

Status Count
ADDED 63
UPDATED 21
DOWNGRADED 5
REMOVED 156
Click to toggle table visibility
| Name | Status | Previous | Current | | :- | :-: | :-: | :-: | | `@adobe/css-tools` | [UPDATED](#) | 4.2.0 | 4.4.0 | | `@ampproject/remapping` | [UPDATED](#) | 2.2.1 | 2.3.0 | | `@babel/plugin-syntax-bigint` | [REMOVED](#) | 7.8.3 | - | | `@bcoe/v8-coverage` | [REMOVED](#) | 0.2.3 | - | | `@esbuild/aix-ppc64` | [ADDED](#) | - | 0.21.5 | | `@esbuild/android-arm` | [UPDATED](#) | 0.15.18 | 0.21.5 | | `@esbuild/android-arm64` | [ADDED](#) | - | 0.21.5 | | `@esbuild/android-x64` | [ADDED](#) | - | 0.21.5 | | `@esbuild/darwin-arm64` | [ADDED](#) | - | 0.21.5 | | `@esbuild/darwin-x64` | [ADDED](#) | - | 0.21.5 | | `@esbuild/freebsd-arm64` | [ADDED](#) | - | 0.21.5 | | `@esbuild/freebsd-x64` | [ADDED](#) | - | 0.21.5 | | `@esbuild/linux-arm` | [ADDED](#) | - | 0.21.5 | | `@esbuild/linux-arm64` | [ADDED](#) | - | 0.21.5 | | `@esbuild/linux-ia32` | [ADDED](#) | - | 0.21.5 | | `@esbuild/linux-loong64` | [UPDATED](#) | 0.15.18 | 0.21.5 | | `@esbuild/linux-mips64el` | [ADDED](#) | - | 0.21.5 | | `@esbuild/linux-ppc64` | [ADDED](#) | - | 0.21.5 | | `@esbuild/linux-riscv64` | [ADDED](#) | - | 0.21.5 | | `@esbuild/linux-s390x` | [ADDED](#) | - | 0.21.5 | | `@esbuild/linux-x64` | [ADDED](#) | - | 0.21.5 | | `@esbuild/netbsd-x64` | [ADDED](#) | - | 0.21.5 | | `@esbuild/openbsd-x64` | [ADDED](#) | - | 0.21.5 | | `@esbuild/sunos-x64` | [ADDED](#) | - | 0.21.5 | | `@esbuild/win32-arm64` | [ADDED](#) | - | 0.21.5 | | `@esbuild/win32-ia32` | [ADDED](#) | - | 0.21.5 | | `@esbuild/win32-x64` | [ADDED](#) | - | 0.21.5 | | `@istanbuljs/load-nyc-config` | [REMOVED](#) | 1.1.0 | - | | `@istanbuljs/schema` | [REMOVED](#) | 0.1.3 | - | | `@jest/console` | [REMOVED](#) | 29.5.0 | - | | `@jest/core` | [REMOVED](#) | 29.5.0 | - | | `@jest/environment` | [REMOVED](#) | 29.5.0 | - | | `@jest/expect` | [REMOVED](#) | 29.5.0 | - | | `@jest/expect-utils` | [REMOVED](#) | 29.5.0 | - | | `@jest/fake-timers` | [REMOVED](#) | 29.5.0 | - | | `@jest/globals` | [REMOVED](#) | 29.5.0 | - | | `@jest/reporters` | [REMOVED](#) | 29.5.0 | - | | `@jest/schemas` | [REMOVED](#) | 29.4.3 | - | | `@jest/source-map` | [REMOVED](#) | 29.4.3 | - | | `@jest/test-result` | [REMOVED](#) | 29.5.0 | - | | `@jest/test-sequencer` | [REMOVED](#) | 29.5.0 | - | | `@jest/transform` | [REMOVED](#) | 29.5.0 | - | | `@jest/types` | [REMOVED](#) | 29.5.0 | - | | `@jridgewell/gen-mapping` | [UPDATED](#) | 0.3.3 | 0.3.5 | | `@jridgewell/resolve-uri` | [UPDATED](#) | 3.1.0 | 3.1.2 | | `@jridgewell/set-array` | [UPDATED](#) | 1.1.2 | 1.2.1 | | `@jridgewell/sourcemap-codec` | [UPDATED](#) | 1.4.14 | 1.5.0 | | `@jridgewell/trace-mapping` | [UPDATED](#) | 0.3.18 | 0.3.25 | | `@rollup/rollup-android-arm-eabi` | [ADDED](#) | - | 4.19.2 | | `@rollup/rollup-android-arm64` | [ADDED](#) | - | 4.19.2 | | `@rollup/rollup-darwin-arm64` | [ADDED](#) | - | 4.19.2 | | `@rollup/rollup-darwin-x64` | [ADDED](#) | - | 4.19.2 | | `@rollup/rollup-linux-arm-gnueabihf` | [ADDED](#) | - | 4.19.2 | | `@rollup/rollup-linux-arm-musleabihf` | [ADDED](#) | - | 4.19.2 | | `@rollup/rollup-linux-arm64-gnu` | [ADDED](#) | - | 4.19.2 | | `@rollup/rollup-linux-arm64-musl` | [ADDED](#) | - | 4.19.2 | | `@rollup/rollup-linux-powerpc64le-gnu` | [ADDED](#) | - | 4.19.2 | | `@rollup/rollup-linux-riscv64-gnu` | [ADDED](#) | - | 4.19.2 | | `@rollup/rollup-linux-s390x-gnu` | [ADDED](#) | - | 4.19.2 | | `@rollup/rollup-linux-x64-gnu` | [ADDED](#) | - | 4.19.2 | | `@rollup/rollup-linux-x64-musl` | [ADDED](#) | - | 4.19.2 | | `@rollup/rollup-win32-arm64-msvc` | [ADDED](#) | - | 4.19.2 | | `@rollup/rollup-win32-ia32-msvc` | [ADDED](#) | - | 4.19.2 | | `@rollup/rollup-win32-x64-msvc` | [ADDED](#) | - | 4.19.2 | | `@sinclair/typebox` | [REMOVED](#) | 0.25.24 | - | | `@sinonjs/commons` | [REMOVED](#) | 2.0.0 | - | | `@sinonjs/fake-timers` | [REMOVED](#) | 10.0.2 | - | | `@testing-library/jest-dom` | [UPDATED](#) | 5.16.5 | 6.4.8 | | `@types/babel__core` | [UPDATED](#) | 7.20.0 | 7.20.5 | | `@types/estree` | [ADDED](#) | - | 1.0.5 | | `@types/graceful-fs` | [REMOVED](#) | 4.1.6 | - | | `@types/istanbul-lib-coverage` | [REMOVED](#) | 2.0.4 | - | | `@types/istanbul-lib-report` | [REMOVED](#) | 3.0.0 | - | | `@types/istanbul-reports` | [REMOVED](#) | 3.0.1 | - | | `@types/jest` | [REMOVED](#) | 29.5.1 | - | | `@types/jsdom` | [REMOVED](#) | 20.0.1 | - | | `@types/prettier` | [REMOVED](#) | 2.7.2 | - | | `@types/stack-utils` | [REMOVED](#) | 2.0.1 | - | | `@types/testing-library__jest-dom` | [REMOVED](#) | 5.14.5 | - | | `@types/tough-cookie` | [REMOVED](#) | 4.0.2 | - | | `@types/yargs` | [REMOVED](#) | 17.0.24 | - | | `@types/yargs-parser` | [REMOVED](#) | 21.0.0 | - | | `@vitest/expect` | [ADDED](#) | - | 2.0.5 | | `@vitest/pretty-format` | [ADDED](#) | - | 2.0.5 | | `@vitest/runner` | [ADDED](#) | - | 2.0.5 | | `@vitest/snapshot` | [ADDED](#) | - | 2.0.5 | | `@vitest/spy` | [ADDED](#) | - | 2.0.5 | | `@vitest/utils` | [ADDED](#) | - | 2.0.5 | | `abab` | [REMOVED](#) | 2.0.6 | - | | `acorn-globals` | [REMOVED](#) | 7.0.1 | - | | `assertion-error` | [ADDED](#) | - | 2.0.1 | | `babel-jest` | [REMOVED](#) | 29.5.0 | - | | `babel-plugin-istanbul` | [REMOVED](#) | 6.1.1 | - | | `babel-plugin-jest-hoist` | [REMOVED](#) | 29.5.0 | - | | `babel-preset-current-node-syntax` | [REMOVED](#) | 1.0.1 | - | | `babel-preset-jest` | [REMOVED](#) | 29.5.0 | - | | `bser` | [REMOVED](#) | 2.1.1 | - | | `buffer-from` | [REMOVED](#) | 1.1.2 | - | | `cac` | [ADDED](#) | - | 6.7.14 | | `camelcase` | [UPDATED](#) | 6.3.0 | 7.0.1 | | `chai` | [ADDED](#) | - | 5.1.1 | | `char-regex` | [REMOVED](#) | 1.0.2 | - | | `check-error` | [ADDED](#) | - | 2.1.1 | | `ci-info` | [REMOVED](#) | 3.8.0 | - | | `cjs-module-lexer` | [REMOVED](#) | 1.2.2 | - | | `co` | [REMOVED](#) | 4.6.0 | - | | `collect-v8-coverage` | [REMOVED](#) | 1.0.1 | - | | `convert-source-map` | [DOWNGRADED](#) | 2.0.0 | 1.9.0 | | `cssom` | [REMOVED](#) | 0.5.0 | - | | `cssstyle` | [REMOVED](#) | 2.3.0 | - | | `data-urls` | [REMOVED](#) | 3.0.2 | - | | `debug` | [UPDATED](#) | 4.3.4 | 4.3.6 | | `decimal.js` | [REMOVED](#) | 10.4.3 | - | | `dedent` | [REMOVED](#) | 0.7.0 | - | | `deep-eql` | [ADDED](#) | - | 5.0.2 | | `detect-newline` | [REMOVED](#) | 3.1.0 | - | | `diff-sequences` | [REMOVED](#) | 29.4.3 | - | | `dom-accessibility-api` | [UPDATED](#) | 0.5.16 | 0.6.3 | | `domexception` | [REMOVED](#) | 4.0.0 | - | | `emittery` | [REMOVED](#) | 0.13.1 | - | | `esbuild` | [UPDATED](#) | 0.15.18 | 0.21.5 | | `esbuild-android-64` | [REMOVED](#) | 0.15.18 | - | | `esbuild-android-arm64` | [REMOVED](#) | 0.15.18 | - | | `esbuild-darwin-64` | [REMOVED](#) | 0.15.18 | - | | `esbuild-darwin-arm64` | [REMOVED](#) | 0.15.18 | - | | `esbuild-freebsd-64` | [REMOVED](#) | 0.15.18 | - | | `esbuild-freebsd-arm64` | [REMOVED](#) | 0.15.18 | - | | `esbuild-linux-32` | [REMOVED](#) | 0.15.18 | - | | `esbuild-linux-64` | [REMOVED](#) | 0.15.18 | - | | `esbuild-linux-arm` | [REMOVED](#) | 0.15.18 | - | | `esbuild-linux-arm64` | [REMOVED](#) | 0.15.18 | - | | `esbuild-linux-mips64le` | [REMOVED](#) | 0.15.18 | - | | `esbuild-linux-ppc64le` | [REMOVED](#) | 0.15.18 | - | | `esbuild-linux-riscv64` | [REMOVED](#) | 0.15.18 | - | | `esbuild-linux-s390x` | [REMOVED](#) | 0.15.18 | - | | `esbuild-netbsd-64` | [REMOVED](#) | 0.15.18 | - | | `esbuild-openbsd-64` | [REMOVED](#) | 0.15.18 | - | | `esbuild-sunos-64` | [REMOVED](#) | 0.15.18 | - | | `esbuild-windows-32` | [REMOVED](#) | 0.15.18 | - | | `esbuild-windows-64` | [REMOVED](#) | 0.15.18 | - | | `esbuild-windows-arm64` | [REMOVED](#) | 0.15.18 | - | | `escodegen` | [REMOVED](#) | 2.0.0 | - | | `eslint-plugin-jest` | [REMOVED](#) | 27.2.1 | - | | `esprima` | [REMOVED](#) | 4.0.1 | - | | `estree-walker` | [UPDATED](#) | 2.0.2 | 3.0.3 | | `exit` | [REMOVED](#) | 0.1.2 | - | | `expect` | [REMOVED](#) | 29.5.0 | - | | `fb-watchman` | [REMOVED](#) | 2.0.2 | - | | `fsevents` | [UPDATED](#) | 2.3.2 | 2.3.3 | | `get-func-name` | [ADDED](#) | - | 2.0.2 | | `get-package-type` | [REMOVED](#) | 0.1.0 | - | | `happy-dom` | [ADDED](#) | - | 14.12.3 | | `html-encoding-sniffer` | [REMOVED](#) | 3.0.0 | - | | `html-escaper` | [REMOVED](#) | 2.0.2 | - | | `import-local` | [REMOVED](#) | 3.1.0 | - | | `is-generator-fn` | [REMOVED](#) | 2.1.0 | - | | `is-potential-custom-element-name` | [REMOVED](#) | 1.0.1 | - | | `istanbul-lib-coverage` | [REMOVED](#) | 3.2.0 | - | | `istanbul-lib-instrument` | [REMOVED](#) | 5.2.1 | - | | `istanbul-lib-report` | [REMOVED](#) | 3.0.0 | - | | `istanbul-lib-source-maps` | [REMOVED](#) | 4.0.1 | - | | `istanbul-reports` | [REMOVED](#) | 3.1.5 | - | | `jest` | [REMOVED](#) | 29.5.0 | - | | `jest-changed-files` | [REMOVED](#) | 29.5.0 | - | | `jest-circus` | [REMOVED](#) | 29.5.0 | - | | `jest-cli` | [REMOVED](#) | 29.5.0 | - | | `jest-config` | [REMOVED](#) | 29.5.0 | - | | `jest-diff` | [REMOVED](#) | 29.5.0 | - | | `jest-docblock` | [REMOVED](#) | 29.4.3 | - | | `jest-each` | [REMOVED](#) | 29.5.0 | - | | `jest-environment-jsdom` | [REMOVED](#) | 29.5.0 | - | | `jest-environment-node` | [REMOVED](#) | 29.5.0 | - | | `jest-get-type` | [REMOVED](#) | 29.4.3 | - | | `jest-haste-map` | [REMOVED](#) | 29.5.0 | - | | `jest-leak-detector` | [REMOVED](#) | 29.5.0 | - | | `jest-matcher-utils` | [REMOVED](#) | 29.5.0 | - | | `jest-message-util` | [REMOVED](#) | 29.5.0 | - | | `jest-mock` | [REMOVED](#) | 29.5.0 | - | | `jest-pnp-resolver` | [REMOVED](#) | 1.2.3 | - | | `jest-regex-util` | [REMOVED](#) | 29.4.3 | - | | `jest-resolve` | [REMOVED](#) | 29.5.0 | - | | `jest-resolve-dependencies` | [REMOVED](#) | 29.5.0 | - | | `jest-runner` | [REMOVED](#) | 29.5.0 | - | | `jest-runtime` | [REMOVED](#) | 29.5.0 | - | | `jest-snapshot` | [REMOVED](#) | 29.5.0 | - | | `jest-util` | [REMOVED](#) | 29.5.0 | - | | `jest-validate` | [REMOVED](#) | 29.5.0 | - | | `jest-watcher` | [REMOVED](#) | 29.5.0 | - | | `jest-worker` | [REMOVED](#) | 29.5.0 | - | | `jsdom` | [REMOVED](#) | 20.0.3 | - | | `kleur` | [REMOVED](#) | 3.0.3 | - | | `leven` | [REMOVED](#) | 3.1.0 | - | | `loupe` | [ADDED](#) | - | 3.1.1 | | `magic-string` | [ADDED](#) | - | 0.30.11 | | `make-dir` | [REMOVED](#) | 3.1.0 | - | | `makeerror` | [REMOVED](#) | 1.0.12 | - | | `node-int64` | [REMOVED](#) | 0.4.0 | - | | `nwsapi` | [REMOVED](#) | 2.2.4 | - | | `parse5` | [REMOVED](#) | 7.1.2 | - | | `pathval` | [ADDED](#) | - | 2.0.0 | | `pirates` | [UPDATED](#) | 4.0.5 | 4.0.6 | | `pkg-dir` | [REMOVED](#) | 4.2.0 | - | | `postcss` | [UPDATED](#) | 8.4.38 | 8.4.40 | | `pretty-format` | [DOWNGRADED](#) | 29.5.0 | 27.5.1 | | `prompts` | [REMOVED](#) | 2.4.2 | - | | `psl` | [REMOVED](#) | 1.9.0 | - | | `pure-rand` | [REMOVED](#) | 6.0.2 | - | | `querystringify` | [REMOVED](#) | 2.2.0 | - | | `requires-port` | [REMOVED](#) | 1.0.0 | - | | `resolve-cwd` | [REMOVED](#) | 3.0.0 | - | | `resolve.exports` | [REMOVED](#) | 2.0.2 | - | | `rollup` | [UPDATED](#) | 2.79.1 | 4.19.2 | | `saxes` | [REMOVED](#) | 6.0.0 | - | | `siginfo` | [ADDED](#) | - | 2.0.0 | | `sisteransi` | [REMOVED](#) | 1.0.5 | - | | `source-map-support` | [REMOVED](#) | 0.5.13 | - | | `sprintf-js` | [REMOVED](#) | 1.0.3 | - | | `stack-utils` | [REMOVED](#) | 2.0.6 | - | | `stackback` | [ADDED](#) | - | 0.0.2 | | `string-length` | [REMOVED](#) | 4.0.2 | - | | `strip-bom` | [REMOVED](#) | 4.0.0 | - | | `supports-color` | [DOWNGRADED](#) | 8.1.1 | 7.2.0 | | `symbol-tree` | [REMOVED](#) | 3.2.4 | - | | `test-exclude` | [REMOVED](#) | 6.0.0 | - | | `tinybench` | [ADDED](#) | - | 2.8.0 | | `tinypool` | [ADDED](#) | - | 1.0.0 | | `tinyrainbow` | [ADDED](#) | - | 1.2.0 | | `tinyspy` | [ADDED](#) | - | 3.0.0 | | `tmpl` | [REMOVED](#) | 1.0.5 | - | | `tough-cookie` | [REMOVED](#) | 4.1.2 | - | | `tr46` | [DOWNGRADED](#) | 3.0.0 | 0.0.3 | | `type-detect` | [REMOVED](#) | 4.0.8 | - | | `url-parse` | [REMOVED](#) | 1.5.10 | - | | `v8-to-istanbul` | [REMOVED](#) | 9.1.0 | - | | `vite` | [UPDATED](#) | 3.2.6 | 5.3.5 | | `vite-node` | [ADDED](#) | - | 2.0.5 | | `vitest` | [ADDED](#) | - | 2.0.5 | | `w3c-xmlserializer` | [REMOVED](#) | 4.0.0 | - | | `walker` | [REMOVED](#) | 1.0.8 | - | | `whatwg-encoding` | [REMOVED](#) | 2.0.0 | - | | `whatwg-url` | [DOWNGRADED](#) | 11.0.0 | 5.0.0 | | `why-is-node-running` | [ADDED](#) | - | 2.3.0 | | `write-file-atomic` | [REMOVED](#) | 4.0.2 | - | | `xml-name-validator` | [REMOVED](#) | 4.0.0 | - | | `xmlchars` | [REMOVED](#) | 2.2.0 | - |
ebma commented 3 months ago

Exactly, the tests are used to show that the squidrouter endpoint returns data for both currencies. If it didn't return a route for one of them, the token wouldn't be supported.