26 Commits

Author SHA1 Message Date
brunoedcf
d5553823bc first blockchain functions tests - addresses.ts type testing 2023-01-26 12:23:06 -03:00
RcleydsonR
7efb10bfde Fix sonar issues 2023-01-25 23:28:32 -03:00
RcleydsonR
e10e8f89fc Fix lint issues 2023-01-24 22:28:24 -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
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
d7723ebf07 Clean up ether store
Co-authored-by: brunoedcf <brest.dallacosta@outlook.com>
2023-01-19 19:42:57 -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
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
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
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
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
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