377 Commits

Author SHA1 Message Date
RcleydsonR
e10e8f89fc Fix lint issues 2023-01-24 22:28:24 -03:00
RcleydsonR
49834745a9 Improve and fix Buy Confirmed Component test 2023-01-24 22:28:02 -03:00
RcleydsonR
8fa16a22c0 Improve and fix ListingComponent test and add mocks for event and valid deposit 2023-01-24 22:26:38 -03:00
RcleydsonR
4b08b6df4b Improve Listing Component and import with alias in other components 2023-01-24 22:25:38 -03:00
RcleydsonR
6b8bbc9e6a Add vitest as test framework and remove jest and its dependencies 2023-01-24 22:23:15 -03:00
RcleydsonR
8b5ba69267 Add environment plugin to change from import meta env to process env 2023-01-24 18:48:13 -03:00
RcleydsonR
65fc11a64f Merge branch 'develop' into setup-tests 2023-01-24 17:13:00 -03:00
Ronyell Henrique
7dc8d587e2
Merge pull request #18 from liftlearning/alchemy
Alchemy Integration and change folder structure
2023-01-22 08:54:09 -03:00
RcleydsonR
242d28f0e3 Fix listing transaction by getting alchemy provider
Co-authored-by: brunoedcf <brest.dallacosta@outlook.com>
2023-01-20 19:16:52 -03:00
RcleydsonR
59538d23d0 Catch list deposit wallet address error to set empty array to wallet transactions 2023-01-20 17:56:32 -03:00
Bruno Esteves
358659efca
Update README.md 2023-01-20 16:56:43 -03:00
RcleydsonR
d7723ebf07 Clean up ether store
Co-authored-by: brunoedcf <brest.dallacosta@outlook.com>
2023-01-19 19:42:57 -03:00
RcleydsonR
2b61625e1e Remove div that show user balance on top bar
Co-authored-by: brunoedcf <brest.dallacosta@outlook.com>
2023-01-19 19:28:53 -03:00
RcleydsonR
7a080209b3 Fix unexpected behavior from listing transactions and approve tokens
Co-authored-by: brunoedcf <brest.dallacosta@outlook.com>
2023-01-19 19:24:28 -03:00
RcleydsonR
2a0c069674 Add watch to network when user is on manage bids or transaction history
Co-authored-by: brunoedcf <brest.dallacosta@outlook.com>
2023-01-19 18:43:15 -03:00
RcleydsonR
bb6be691af Add correct etherscan url
Co-authored-by: brunoedcf <brest.dallacosta@outlook.com>
2023-01-19 18:12:41 -03:00
brunoedcf
3c4a629ed7 implemented lock and release in buyer's flow 2023-01-19 18:00:35 -03:00
brunoedcf
ff9c7f83b5 fixing button enable/disable at search component 2023-01-19 10:37:02 -03:00
RcleydsonR
6ba113ba86 Add connect wallet button on seller view when wallet is not connected 2023-01-18 23:53:46 -03:00
RcleydsonR
51cf33d22b Only show connected network when the user is logged with metamask provider 2023-01-18 23:43:38 -03:00
RcleydsonR
98f6a30f35 Remove localhost network implementation and only use goerli and mumbai networks
Co-authored-by: brunoedcf <brest.dallacosta@outlook.com>
2023-01-18 23:40:52 -03:00
RcleydsonR
be90ff746b Refactor decimalCount method and add it on a file to be used in many components 2023-01-18 23:38:00 -03:00
RcleydsonR
4999f3d145 Add typing on components layer
Co-authored-by: geovanne97 <geovannessaraiva97@gmail.com>
2023-01-18 23:35:08 -03:00
RcleydsonR
846fa82f04 Add typing on views layer
Co-authored-by: geovanne97 <geovannessaraiva97@gmail.com>
2023-01-18 23:12:40 -03:00
RcleydsonR
f87434debe Add valid Deposit model and return types of blockchain methods
Co-authored-by: geovanne97 <geovannessaraiva97@gmail.com>
2023-01-18 23:02:02 -03:00
RcleydsonR
c8a3fd12b2 Improve code quality by fixing lint issues
Co-authored-by: brunoedcf <brest.dallacosta@outlook.com>
2023-01-17 19:32:29 -03:00
RcleydsonR
8338064dcd Clean up app strucutre deleting blockchain file and add methods on blockchain folder
Co-authored-by: brunoedcf <brest.dallacosta@outlook.com>
2023-01-17 19:31:25 -03:00
RcleydsonR
d78f7f1fdf Adjust search component and home view to new approaching using alchemy
Co-authored-by: brunoedcf <brest.dallacosta@outlook.com>
2023-01-17 19:27:00 -03:00
RcleydsonR
2cbf475e09 Add verify network liquidity method
Co-authored-by: brunoedcf <brest.dallacosta@outlook.com>
2023-01-17 19:25:22 -03:00
RcleydsonR
668acb5cfa Hide network menu when a network is clicked
Co-authored-by: brunoedcf <brest.dallacosta@outlook.com>
2023-01-17 17:41:53 -03:00
RcleydsonR
e0b4c81b77 Change getValidDeposits to receive a contract in param and use it on getNetworksLiquidity 2023-01-17 14:53:47 -03:00
brunoedcf
80a70a5240 getting liquidity from both networks and saving it at store. splitting methods.ts into 2 different files: buyerMethods.ts and sellerMethods.ts 2023-01-17 01:55:46 -03:00
enzoggqs
98a5959369 Create tests to Listing Component 2023-01-16 11:23:30 -03:00
enzoggqs
2c78a203b0 Create tests to BuyConfirmedComponent 2023-01-16 01:35:03 -03:00
RcleydsonR
c546778963 Remove mock token implementation
Co-authored-by: brunoedcf <brest.dallacosta@outlook.com>
2023-01-13 19:45:29 -03:00
RcleydsonR
6fd2120b63 Refactor methods from blockchain to use new code structure
Co-authored-by: brunoedcf <brest.dallacosta@outlook.com>
2023-01-13 19:35:17 -03:00
RcleydsonR
f40db935d3 Add getP2PixAddress implementation
Co-authored-by: brunoedcf <brest.dallacosta@outlook.com>
2023-01-13 19:33:54 -03:00
brunoedcf
4ef5308f36 Adding request to user change network in wallet 2023-01-13 14:12:11 -03:00
RcleydsonR
a5d5c0dde3 fix connect provider call and lint
Co-authored-by: brunoedcf <brest.dallacosta@outlook.com>
2023-01-12 19:47:11 -03:00
RcleydsonR
f8e1b888ba get alchemy provider api url from env and use it to get provider
Co-authored-by: brunoedcf <brest.dallacosta@outlook.com>
2023-01-12 19:43:02 -03:00
RcleydsonR
86131b5641 Refactor of wallet and provider methods
Co-authored-by: brunoedcf <brest.dallacosta@outlook.com>
2023-01-12 19:41:04 -03:00
RcleydsonR
8b0a212b78 Add listener to listen chain change and update store network name state, also start refactor with getProvider function
Co-authored-by: brunoedcf <brest.dallacosta@outlook.com>
2023-01-12 18:08:08 -03:00
RcleydsonR
62dd4349b2 Remove alchemy file and add localhost network to possible network to choose
Co-authored-by: brunoedcf <brest.dallacosta@outlook.com>
2023-01-12 18:07:06 -03:00
enzoggqs
411966f727 Add more tests to TopBar component 2023-01-12 16:02:09 -03:00
enzoggqs
d66459bea9 update TopBar component tests 2023-01-12 15:15:05 -03:00
enzoggqs
8716bdb064 Create first tests of TopBar component 2023-01-12 10:33:19 -03:00
RcleydsonR
aedd4bc532 Add initial alchemy structure code 2023-01-12 00:32:52 -03:00
enzoggqs
b15d1b5ced Create first custom button tests 2023-01-11 13:16:23 -03:00
enzoggqs
60e3e4462c Separates custom button into a folder inside components 2023-01-11 13:15:46 -03:00
enzoggqs
06eac3b84c Create tests setup 2023-01-11 13:13:32 -03:00