Commit Graph

129 Commits

Author SHA1 Message Date
Linkie Link
e3092a94e6
feat: implemented the multichain wallet-connector (#217)
* feat: implemented the multichain wallet-connector

* tidy: refactor
2023-05-23 10:41:23 +02:00
Yusuf Seyrek
3f4035222f
chore: remove package json lock file (#214) 2023-05-16 21:03:01 +03:00
Yusuf Seyrek
72bb88a9f6
chore: remove resolutions from package json (#211) 2023-05-16 15:50:03 +03:00
Yusuf Seyrek
dbb1f16d66
feat: set fixed version for jest coverage tool, disable workflow for dependabot PRs (#208) 2023-05-16 14:15:15 +03:00
Yusuf Seyrek
b24bbb3376
New architecture (#196)
* feat: move app to pages features

* feat: route changes

* Use React Router, Remove SSR

* Fix account menu

* Remove app folder

* remove old useParams

* Moved pages back to pages and refactor names

* add layout to route

* clean up

* create hooks for api fetching

* fix refetch of all data on tx complete

* formatting

* fix: fixed the wallet-connector race condition

* remove cosmjs/stargate (#202)

* remove cosmjs/stargate

* add Yusuf as code-orwner

* Singleton client (#203)

* remove cosmjs/stargate

* add Yusuf as code-orwner

* create signleton client and refactor vaults api

* update client name, add apollo apr env

* Setup validate-env and remove checking from apis

* uncomment vaults

* Resolve comments

* fix: html templating, add checks for hydration&window object, reduce bundle size (#204)

* fix: tests

* Fix routing and wallet client (#205)

* Add header to router (as layout)

* Refactor Wallet component

* Remove server fallback packages webpack

* add missing dependency for useeffect

---------

Co-authored-by: Bob van der Helm <34470358+bobthebuidlr@users.noreply.github.com>
Co-authored-by: Linkie Link <linkielink.dev@gmail.com>
2023-05-16 12:39:52 +02:00
Yusuf Seyrek
a59e880559
feat: fix code coverage workflow (#195)
* feat: create a dummy component for testing coverage workflow

* feat: add test for dummy component

* fix: delta

* fix: command

* fix: remove test file regexp

* chore: break tests

* fix: tests

* feat: add test for footer component

* fix: delete dummy component
2023-05-12 10:55:51 +03:00
Yusuf Seyrek
e555c69e07
WIP: MP 2693 create a script to ensure code coverage improvement on p rs (#194)
* feat: add coverage diff checker to test workflow

* fix: run test workflow on pull requests only
2023-05-11 15:55:03 +02:00
Linkie Link
5a71ace0d6
Mp 2354 credit account balances (#192) 2023-05-11 15:03:00 +02:00
Yusuf Seyrek
ba6df26ebd
feat: disable codecov (#193) 2023-05-11 14:02:58 +02:00
Linkie Link
d5f3232b7a
feat: connected borrowModal to the new components (#190)
* feat: connected borrowModal to the new components

* fix: fixed the introduced issues

* Update src/components/Modals/BorrowModal.tsx

as suggested

Co-authored-by: Yusuf Seyrek <yusufseyrek@users.noreply.github.com>

* Update src/components/Modals/BorrowModal.tsx

Co-authored-by: Yusuf Seyrek <yusufseyrek@users.noreply.github.com>

* Update src/components/Modals/BorrowModal.tsx

Co-authored-by: Yusuf Seyrek <yusufseyrek@users.noreply.github.com>

---------

Co-authored-by: Yusuf Seyrek <yusufseyrek@users.noreply.github.com>
2023-05-11 12:23:08 +02:00
Yusuf Seyrek
b410619bef
MP-2692 add codecov reporting (#191) 2023-05-11 11:45:19 +02:00
Linkie Link
5c01ec6872
Mp 2681 interact with credit account modal (#189)
* MP-2681: fixed and simplified fund and withdraw
;.
:

* MP-2352: created the CreditAccountComposition

* fix: adjusted according to feedback

* fix: fixed funding account max

* fix: fix portfolio
2023-05-09 17:22:11 +02:00
Yusuf Seyrek
78aa6b3089
feat: add test runner workflow (#188) 2023-05-08 17:55:18 +02:00
Yusuf Seyrek
ae1f8d481b
feat: jest testing setup, example tests (#181) 2023-05-08 16:47:19 +02:00
dependabot[bot]
93ab5efe06
Build(deps): bump next from 13.3.0 to 13.4.1 (#183)
Bumps [next](https://github.com/vercel/next.js) from 13.3.0 to 13.4.1.
- [Release notes](https://github.com/vercel/next.js/releases)
- [Changelog](https://github.com/vercel/next.js/blob/canary/release.js)
- [Commits](https://github.com/vercel/next.js/compare/v13.3.0...v13.4.1)

---
updated-dependencies:
- dependency-name: next
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-08 12:57:52 +02:00
dependabot[bot]
b5df9125f3
Build(deps): bump zustand from 4.3.7 to 4.3.8 (#184)
Bumps [zustand](https://github.com/pmndrs/zustand) from 4.3.7 to 4.3.8.
- [Release notes](https://github.com/pmndrs/zustand/releases)
- [Commits](https://github.com/pmndrs/zustand/compare/v4.3.7...v4.3.8)

---
updated-dependencies:
- dependency-name: zustand
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-08 12:57:20 +02:00
dependabot[bot]
8cb620e82b
Build(deps-dev): bump eslint from 8.38.0 to 8.40.0 (#185)
Bumps [eslint](https://github.com/eslint/eslint) from 8.38.0 to 8.40.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v8.38.0...v8.40.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-08 12:56:52 +02:00
dependabot[bot]
f546070624
Build(deps-dev): bump eslint-config-next from 13.3.0 to 13.4.1 (#182)
Bumps [eslint-config-next](https://github.com/vercel/next.js/tree/HEAD/packages/eslint-config-next) from 13.3.0 to 13.4.1.
- [Release notes](https://github.com/vercel/next.js/releases)
- [Changelog](https://github.com/vercel/next.js/blob/canary/release.js)
- [Commits](https://github.com/vercel/next.js/commits/v13.4.1/packages/eslint-config-next)

---
updated-dependencies:
- dependency-name: eslint-config-next
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-08 12:56:38 +02:00
Linkie Link
0ae70899e5
Mp 2344 fund credit account flow (#179)
* tidy: refactor text

* feat: added unstyled select

* tidy: useToggle

* tidy: useToggle

* MP-2344: first unstyled version of Select

* fix: fixed the build

* MP-2344: progress on the Select

* MP-2344: almost finished the Select

* env: update wallet-connector

* fix: relative imports

* env: started adding osmo-test-5 contracts

* refactor: rename stargate.ts to d.ts

* env: adjusted tsconfig.json

* feat: updated modals to use the dialog element

* env: added mainnet config

* env: enabled osmosis-1

* tidy: refactor

* fix: fixed decimals

* fix: fixed the NaN issue for ETH

* fix: fixed price calculations for large decimals

* feat: finished conversion to <dialog>

* fix: fixed some logic issues

* fix: layout fix

* fix: fixed token slider and input

* tidy: format

* fix: added currentAccount hook

* Mp 2345 withdraw from credit account flow (#180)

* MP-2345: created the barebone for withdraw

* MP-2351: changed the AccountHealth logic

* MP-2345: enabled withdraw function

* MP-2351: added animation to Accordion

* fix: adjusted according to feedback

* fix: reduced complexity

* tidy: format

* env: enabled osmo-test-5 support

* feat: added USDC.n

* env: updated dependencies

* fix: hotfixed react-draggable

* fix: fixed vault info
2023-05-08 12:18:33 +02:00
dependabot[bot]
212ef7c286
Build(deps-dev): bump tailwindcss from 3.3.1 to 3.3.2 (#186)
Bumps [tailwindcss](https://github.com/tailwindlabs/tailwindcss) from 3.3.1 to 3.3.2.
- [Release notes](https://github.com/tailwindlabs/tailwindcss/releases)
- [Changelog](https://github.com/tailwindlabs/tailwindcss/blob/master/CHANGELOG.md)
- [Commits](https://github.com/tailwindlabs/tailwindcss/compare/v3.3.1...v3.3.2)

---
updated-dependencies:
- dependency-name: tailwindcss
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-08 10:54:11 +02:00
Yusuf Seyrek
ce91d2a134
fix: address selector in ConnectedButton (#173) 2023-05-03 21:45:15 +02:00
dependabot[bot]
fbf5fc8adb
Build(deps-dev): bump postcss from 8.4.21 to 8.4.23 (#168)
Bumps [postcss](https://github.com/postcss/postcss) from 8.4.21 to 8.4.23.
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/postcss/compare/8.4.21...8.4.23)

---
updated-dependencies:
- dependency-name: postcss
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-02 10:20:35 +02:00
dependabot[bot]
17124734d8
Build(deps): bump graphql-request from 5.2.0 to 6.0.0 (#163)
Bumps [graphql-request](https://github.com/jasonkuhrt/graphql-request) from 5.2.0 to 6.0.0.
- [Release notes](https://github.com/jasonkuhrt/graphql-request/releases)
- [Commits](https://github.com/jasonkuhrt/graphql-request/compare/5.2.0...6.0.0)

---
updated-dependencies:
- dependency-name: graphql-request
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-02 10:20:18 +02:00
Bob van der Helm
cd5ec3ee3b
Mp 2540 farm overview (#172)
* tidy: refactor text

* tidy: refactor text

* fix display of vaults table

* feat: added unstyled select

* tidy: useToggle

* tidy: useToggle

* add vaults to types

* MP-2344: first unstyled version of Select

* fix: fixed the build

* MP-2344: progress on the Select

* MP-2344: almost finished the Select

* implement basic vault modal (no logic)

* 🍱  max + displaycur for token input

* Convert to BN for TokenInputs

* env: update wallet-connector

* fix: fixed build errors and relative imports

* fix: updated TokenInput

* tidy: format

* fix: BN instead of new BigNumber

---------

Co-authored-by: Linkie Link <linkielink.dev@gmail.com>
2023-05-02 09:55:32 +02:00
Bob van der Helm
ac09862f1f
Farm components (#158)
* add basic endpoint for vaultConfigs

* implement apy for vaults

* add tab + update routing

* fixed routing issues

* add featured vaults and vault card

* add availablevaults table

* fixed comments
2023-04-16 17:03:48 +08:00
Bob van der Helm
4af7e63c5f
Mp 2538 tab component (#157)
* add basic endpoint for vaultConfigs

* implement apy for vaults

* add tab + update routing

* fixed routing issues

* change structure tab component
2023-04-16 16:32:14 +08:00
dependabot[bot]
abb3b1a703
Build(deps-dev): bump eslint from 8.37.0 to 8.38.0 (#159)
Bumps [eslint](https://github.com/eslint/eslint) from 8.37.0 to 8.38.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v8.37.0...v8.38.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-15 04:55:31 +02:00
dependabot[bot]
159443263d
Build(deps-dev): bump typescript from 5.0.3 to 5.0.4 (#160)
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 5.0.3 to 5.0.4.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v5.0.3...v5.0.4)

---
updated-dependencies:
- dependency-name: typescript
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-15 04:49:21 +02:00
dependabot[bot]
9f7ed3af74
Build(deps-dev): bump eslint-config-next from 13.2.4 to 13.3.0 (#161)
Bumps [eslint-config-next](https://github.com/vercel/next.js/tree/HEAD/packages/eslint-config-next) from 13.2.4 to 13.3.0.
- [Release notes](https://github.com/vercel/next.js/releases)
- [Changelog](https://github.com/vercel/next.js/blob/canary/release.js)
- [Commits](https://github.com/vercel/next.js/commits/v13.3.0/packages/eslint-config-next)

---
updated-dependencies:
- dependency-name: eslint-config-next
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-15 04:48:55 +02:00
dependabot[bot]
37dc92278b
Build(deps): bump next from 13.2.4 to 13.3.0 (#162)
Bumps [next](https://github.com/vercel/next.js) from 13.2.4 to 13.3.0.
- [Release notes](https://github.com/vercel/next.js/releases)
- [Changelog](https://github.com/vercel/next.js/blob/canary/release.js)
- [Commits](https://github.com/vercel/next.js/compare/v13.2.4...v13.3.0)

---
updated-dependencies:
- dependency-name: next
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-15 04:48:28 +02:00
Bob van der Helm
0a796a3d94
Mp 2435 display currency (#155) 2023-04-14 14:52:44 +02:00
Bob van der Helm
4847121180
Mp 2539 vaults api (#156)
* add basic endpoint for vaultConfigs

* implement apy for vaults
2023-04-14 14:36:49 +02:00
dependabot[bot]
51543504f9
Build(deps-dev): bump @types/react from 18.0.28 to 18.0.33 (#153)
Bumps [@types/react](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react) from 18.0.28 to 18.0.33.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react)

---
updated-dependencies:
- dependency-name: "@types/react"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-07 10:58:21 +02:00
dependabot[bot]
b848479500
Build(deps): bump @sentry/nextjs from 7.44.2 to 7.47.0 (#154)
Bumps [@sentry/nextjs](https://github.com/getsentry/sentry-javascript) from 7.44.2 to 7.47.0.
- [Release notes](https://github.com/getsentry/sentry-javascript/releases)
- [Changelog](https://github.com/getsentry/sentry-javascript/blob/develop/CHANGELOG.md)
- [Commits](https://github.com/getsentry/sentry-javascript/compare/7.44.2...7.47.0)

---
updated-dependencies:
- dependency-name: "@sentry/nextjs"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-07 09:58:22 +02:00
dependabot[bot]
c0c7ca07a3
Build(deps): bump swr from 2.1.0 to 2.1.2 (#148)
Bumps [swr](https://github.com/vercel/swr) from 2.1.0 to 2.1.2.
- [Release notes](https://github.com/vercel/swr/releases)
- [Commits](https://github.com/vercel/swr/compare/v2.1.0...v2.1.2)

---
updated-dependencies:
- dependency-name: swr
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-06 19:21:18 +02:00
Linkie Link
eb814705f2
Mp 2344 fund credit account flow (#145)
* MP-2344: first draft for the fund account flow

* tidy: refactor

* fix: fixed the callback functions

* fix: fixed the toast message for funding

* fix: some logic fixes

* feat: enabled closing of “fund account”

* fix: z-1 to isolate

use isolate to create a stacking context

* tidy: deleted icons

* MP-2344: updated the tooltip

* MP-2344: new create and funding logic

* MP-2344: finished AccountList UI

* tidy: svg icon updates

* chore: updated dependencies

* feat: convert inputValues to amounts and amounts to inputValues

* fix: build fix

* fix: fixed imports

* fix: pr updated

* fix: fixed the SWR queries to not override themselves

* tidy: refactor

* feat: added TokenInputWithSlider

* tidy: refactor TokenInputWithSlider

* feat: preparations for the accountBalance calculations

* fix: removed formatCurrency from store

* feat: added global Coin type

* tidy: refactor delete and create credit account

* add useCallback to FundAccount

* update api + swr

* refactor naming, ssr accounts menu

* wip: added static params and href to DesktopNavigation

* fix: added TODO statement

* add middleware to get url

* feat: added scrolling to the active account

* tidy: UX improvement on the accounts list

* fix: updated the page params

* fix: fixed the navigation

* fix: fixed the getRouteParams

* fix: some logic updates

* fix: fixed the accountMenu view

* Keep page when selecting new account

* fix: fixed useParams

* fix: navigation update

* fix pr comments

* fixed build

---------

Co-authored-by: Bob van der Helm <34470358+bobthebuidlr@users.noreply.github.com>
2023-04-06 19:20:17 +02:00
Linkie Link
029780203e
feat: convert inputValues to amounts and amounts to inputValues (#152) 2023-04-04 16:11:36 +02:00
Bob van der Helm
a747a585af
Repay modal (#146)
* enable repay

* update formatters

* remove suffix from numberInput

* implement repay
2023-04-03 13:31:00 +02:00
Bob van der Helm
8e0bb97839
Account balances endpoint (#147)
* add accounts/positions to api

* strong type apis
2023-04-03 13:30:16 +02:00
Bob van der Helm
7efb7908c0
set default reviewers (#151)
* set default reviewers

* update codeowners
2023-04-03 13:23:57 +02:00
dependabot[bot]
4cb7979172
Build(deps-dev): bump prettier from 2.8.6 to 2.8.7 (#142)
Bumps [prettier](https://github.com/prettier/prettier) from 2.8.6 to 2.8.7.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/2.8.6...2.8.7)

---
updated-dependencies:
- dependency-name: prettier
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-03 10:45:26 +02:00
Bob van der Helm
77080d064a
Borrow functionality (#144)
* remove hard coded data

* add borrow message

* update deposit message

* update borrow and deposit

*  add tailwind-elements

* 🍱 add plus, shield, arrowbullish

* configuration for tw-elements

* add accordion + account summary

* remove tw-elements and update accordion

* update borrowmodal

* fixed svgs

* re-add blur for modals

* fix build errors and warnings
2023-03-28 18:25:35 +02:00
dependabot[bot]
55576427b5
Build(deps): bump webpack from 5.75.0 to 5.76.3 (#134)
Bumps [webpack](https://github.com/webpack/webpack) from 5.75.0 to 5.76.3.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.75.0...v5.76.3)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-26 10:08:58 +02:00
Linkie Link
a680f1ffde
Mp 2348 visual feedback on creating a credit account (#138)
* tidy: UI updates to the borrow tables

* feat: styled the toasts

* tidy: format

* fix: removed peer

* fix: fixed the svgs

* fix: stupid svgs

* rename: X to Cross

* tidy: wrap up the logic
2023-03-26 10:08:21 +02:00
Linkie Link
69da882fa0
feat: created the create account flow (#136)
* feat: created the create account flow

* fix: right not left

* fix: updated the styles and removed images

* tidy: refactor
2023-03-24 11:45:43 +01:00
Bob van der Helm
f1ff3e88d4
Mp 2267 rewrite mutations (#137)
* remove react-query

*   remove unused packages
2023-03-23 15:44:55 +01:00
Linkie Link
94175d6181
UI adjustments (#135)
* fix: restored sanity in fontSizes

* fix: added gap to borrow table

* env: dependency updates

* feat: added backdrop blur to clickaway overlay
2023-03-23 10:43:35 +01:00
Linkie Link
3f13dd822e
chore: updated dependencies and fixed a button error (#133) 2023-03-22 16:56:29 +01:00
Bob van der Helm
c3b1550452
Mp 2436 settings (#131)
* MP-2436: added Settings menu

* tidy: refactor

* fix: react to server side rendering

* fix: fixed the background animations

* fix: enableAnimations for bg classes

* small merge fix

* fix: fixed the animation less circular progress

---------

Co-authored-by: Linkie Link <linkielink.dev@gmail.com>
2023-03-22 15:32:52 +01:00
Bob van der Helm
740e982956
Borrow modal adjustments (#128)
*   add Draggable

* 💄 Add martian red

* 🍱 Add Slider component

* 🔒 update yarn

* 🔥 remove unused components

* 🩹 fix graphql errors

* tidy: tailwind refactor

* set default port to 3001

* 🍱 add Divider and Container

* 🍱 add NumberInput

* allow left and right icon for button

* 🍱 add TokenInput, expand borrowModal

* update borrow modal, adjust modal component, remove container

* fix value change

* update svgs

---------

Co-authored-by: Linkie Link <linkielink.dev@gmail.com>
2023-03-22 15:12:19 +01:00