Commit Graph

243 Commits

Author SHA1 Message Date
tjs ab30010284 increase tx timeout to accomodate blockheight timeouts in client 2022-06-05 21:28:45 -04:00
saml33 341d4aa99a change chart colors, add loading 2022-05-18 12:09:52 +10:00
saml33 cf0fa5fbd0 Merge branch 'mobile-tweaks' of github.com:blockworks-foundation/mango-ui-v3 into mobile-tweaks 2022-05-18 10:09:36 +10:00
saml33 2fd67f8cb6 mobile market card styling 2022-05-18 10:08:48 +10:00
tjshipe f31425582e
Merge branch 'main' into mobile-tweaks 2022-05-17 13:37:07 -04:00
tjs f2967dfc6b move fns from @nfteyez/sol-rayz into app 2022-05-17 13:16:26 -04:00
saml33 87a9abe9d3 fix conflicts 2022-05-17 22:11:04 +10:00
saml33 d75e716fc1 add price charts to markets page 2022-05-17 22:03:20 +10:00
saml33 af4f9206c5 remove commented code 2022-05-17 07:59:12 +10:00
saml33 ff7ccca78e implement feedback 2022-05-16 11:24:48 +10:00
saml33 050790d284 fix conflicts 2022-05-16 08:08:51 +10:00
saml33 2aeff1032e support nfts as profile pics 2022-05-11 13:29:35 +10:00
joshgolden-dev 2f189fb3e3
Mango <> Notifi integration (#192)
* Use notifi SDK and make UI edits for notifi flow

* Upgrade Notifi SDK

The new SDK includes a different usage pattern for Alerts.

Handle wallet signature rejection case

Refactor sollet adapter to use @solana/wallet-adapter-wallets

Fixed undefined signature

Use groupName to separate account notifications

Mango allows a single user to have multiple accounts, which all manage alerts separately.

We'll log in to Notifi with the program ID and the wallet ID, and then filter
alerts on the client-side with groupName on the alert

Bump to SDK 0.6.1

Save notifi alert id to mango db

require login before deleting alert

Update SDK

The SDK exposes a new option for filterFrequency.

One shot alerts will be marked inside FilterOptions with a
`delayProcessingUntil` field. When the client recognizes these, it
should feel comfortable deleting them, since they should have triggered
already.

Clients can use the `isAlertObsolete` utility function to identify
these.

Clean up notifi alerts when out of sync

Add phone number note

* Ignore signMessage type warning

* Use useWallet hook

* Clean up

* Add telegram support

* Support international phone number

Co-authored-by: juni-notifi <hyungjoon.kim@notifi.network>
2022-04-25 12:16:42 -04:00
tjs 808f35ca72 notification timeout should match client timeout 2022-04-12 10:56:28 -04:00
tjs 94fbca60ee notification timeout should match client timeout 2022-04-12 10:53:50 -04:00
tjs e09e165a54 check status on market stats api 2022-04-08 16:49:36 -04:00
tjs de3943c723 handle error response from markets info api 2022-04-08 11:57:44 -04:00
tjs eb2cfff9b4 use latest mango client; longer max timeout 2022-04-06 15:14:30 -04:00
tjs 0f6944614d add try catch around market info api call 2022-04-05 16:39:26 -04:00
tjs b79f156ece pass in wallet to store actions when needed 2022-04-04 16:28:32 -04:00
tjs 813cd3c1c9 use finalized blockhashes; remove saving old blockhashes 2022-04-03 17:04:15 -04:00
tjs 7368325bdc update trade history api 2022-04-01 21:35:38 -04:00
Kieran Gillen 764ea28cb4 Adds more null checking 2022-03-30 19:10:15 +02:00
Kieran Gillen b9b4541ed6 Adds more null checks 2022-03-30 14:42:33 +02:00
Kieran Gillen 39e4a6def5 Adds more null checks 2022-03-30 13:08:05 +02:00
saml33 36bd258c15 filter trade history 2022-03-29 10:43:42 +11:00
Kieran Gillen 17c6dd784c Refactors wallet in store 2022-03-23 13:18:34 +01:00
Kieran Gillen 1a40a98af0 Removes calls to Wallet and Connected through MangoStore hook 2022-03-23 11:42:04 +01:00
Kieran Gillen cd8549b1dc Reverts revert wallet adapter 2022-03-22 10:18:58 +01:00
tjs 6ef483f306 fix trade history loading 2022-03-20 22:28:43 -04:00
tjshipe e841d7e0b9
Merge pull request #197 from blockworks-foundation/ts/performance-refactor
Ts/performance refactor
2022-03-20 21:53:30 -04:00
tjshipe d3d8ab85f4
Merge pull request #190 from blockworks-foundation/show-referral-balance-history
Show referral fees history and total
2022-03-20 20:27:59 -04:00
tjs 32fc5052e9 store order lines in mango store and show preferences in local storage 2022-03-20 18:50:05 -04:00
tjs 4c0eb2114e refactor trade history to use the mango store
reduces rerenders
update usePerpPosition with tradeHistory
2022-03-20 04:06:30 -04:00
saml33 e9550fddda
Markets Page (#182)
* update api endpoint

* update to new api
2022-03-19 17:57:54 +01:00
Luc Succes 37b2cc0c02 Merges main 2022-03-18 14:43:14 -04:00
tjs 9ce177ca3d Revert solana wallet adapter 2022-03-18 14:41:23 -04:00
Luc Succes c15969482d Add DateDisplay component 2022-03-18 14:41:19 -04:00
tjs 0b700a7fbe store 3 blockhashes 2022-03-18 14:25:36 -04:00
tjs 45127eb8c0 use latest mango client 2022-03-18 10:34:46 -04:00
tjs 4edd362ec2 use latest mango-client 2022-03-17 20:54:06 -04:00
Luc Succes 562d45677e Merges main 2022-03-17 12:53:33 -04:00
Kieran Gillen b921b7ed2d Updates fetch all accounts null check 2022-03-17 13:07:51 +01:00
tjs 7306523c00 Merge branch 'main' into show-referral-balance-history 2022-03-16 17:34:55 -04:00
tjs f8a0849c40 update zustand store types to work with zustand 3.7 2022-03-16 17:27:26 -04:00
Luc Succes 35d7b63479 Merges main 2022-03-16 11:01:11 -04:00
Luc Succes 1c6b4fb950 Adds referral fees history and total 2022-03-15 18:48:26 -04:00
tjs 68bf9ba5e4 remove console logs 2022-03-14 23:28:42 -04:00
tjs 597c930b98 use blockhash that expires with timeout 2022-03-13 19:26:30 -04:00
tjs 59978a9973 fix bug with returning the correct market to decode bookside 2022-03-09 17:46:10 -05:00