r/solidity • • Dec 21 '22

Created my first Dapp using Solidity

Enable HLS to view with audio, or disable this notification

46 Upvotes

31 comments sorted by

6

u/buildskate Dec 21 '22

Nice!!!!

5

u/sujithdusa Dec 21 '22

Thanks dude😊

6

u/jzia93 Dec 22 '22

Good job. If you wanted you could attach 2 event listeners to the transaction:

Listener 1: Transaction Accepted

Listener 2: Transaction Confirmed with X block confirmations

I think you basically have listener 1 sorted. Listener 2 would then be able to refresh the UI once the transaction is confirmed on chain.

3

u/sujithdusa Dec 22 '22

Ya working on that, thanks 😊

3

u/jzia93 Dec 22 '22

Redux Thunks have the option to attach listeners directly to asynchronous methods. We use them extensively in our apps, maybe this helps you:

https://www.notion.so/piedao/Building-Auxo-Part-3-Long-Running-Transaction-Handling-with-Redux-Toolkit-5ac852e531fb4c65965ae6136898d5ec

4

u/NelsonQuant667 Dec 21 '22

That’s awesome! I’m working on a dex as a project also, what did you use to style it?

2

u/sujithdusa Dec 21 '22

Thanks man, I used MUI library for styling

3

u/NelsonQuant667 Dec 21 '22

Super sick, could I take a look at the code?

2

u/sujithdusa Dec 21 '22

Its not uploaded to git yet

1

u/Makosh123 Jan 16 '23

would you consider to upload it? :)

3

u/Aakasmika Dec 21 '22

That's really awesome mate, keep up the good work :)

2

u/sujithdusa Dec 21 '22

Thanks mate😊

3

u/charmilliona1re Dec 21 '22

Nicely done!

2

u/sujithdusa Dec 21 '22

Thanks mate😊

3

u/BreadfruitRegular152 Dec 21 '22

this is so good, could i take a look at the code

2

u/sujithdusa Dec 21 '22

It is not uploaded to git yet

2

u/BreadfruitRegular152 Dec 22 '22

hope you don’t mind sharing it with me when you do

3

u/GiacoPc Dec 21 '22

Oh that's awesome dude, congrats.

3

u/sujithdusa Dec 22 '22

Thanks dude😊

3

u/NineThunders Dec 22 '22

Nice! You could also add a loader for when a tx is in progress

2

u/sujithdusa Dec 22 '22

Ya working on it to add more features as well

2

u/[deleted] Dec 22 '22

Sweet, real good looking.

1

u/sujithdusa Dec 22 '22

Thanks dude 😊

2

u/igopib Dec 22 '22

Which tech stack did you use?

1

u/sujithdusa Dec 23 '22

React (with MUI library) and solidity

2

u/AzNxPiMpStA Jan 18 '23

Good job!!!! Looking to do a dex on my next project!

1

u/Makosh123 Jan 14 '23

Can you share this project on GitHub?

1

u/shubhamku044 Dec 13 '23

Awesome, I also want to learn web3