Looking for someone to help me with wallet connect in my dapp,
my dapp doesnt use any framework

need someone who can implement it in vanilla js with ethers js code without frameworks

Feb 9, 2023, 12:21 PM
Left you a message
Feb 9, 2023, 12:32 PM
i can do this
sort algorithm
Feb 9, 2023, 1:08 PM
I can make it or send you a boilerplate
Feb 9, 2023, 1:35 PM
Ah yes, nested for loop. Gas go brrrr
Feb 9, 2023, 2:01 PM
It's a sort algorithm bro, that's bubble sort
You know what write yours to sort an array in ascending order without using a nested loop
And lets compare the gas usage
Or if possible just implement a sort algorithm and lets compare gas
Feb 9, 2023, 2:37 PM
Take look on this article https://codingwithmanny.medium.com/use-vanillajs-to-connect-to-metamask-read-from-a-contract-write-to-a-contract-7a3d213ac438
Feb 9, 2023, 2:42 PM
Quicksort? Merge sort?
Bubble sort is good only for smaller data sets
Anyway I didn't wanna undermine your work. Writing all that up in assembly takes effort
If possible, avoid sorting at all in solidity
Feb 9, 2023, 2:52 PM
Not agree. Sorting in a certain place of code could allow to reduce computation in other point of code.
Feb 9, 2023, 3:03 PM
sorting in general is not the best choice onchain
Is it restyle session?

https://twitter.com/TenderlyApp/status/1623679228884447234?s=20
Feb 9, 2023, 3:15 PM
I think this cannot be considered an axiom, depends on the needs
Feb 9, 2023, 3:18 PM
Agreed, sorting on chain will cost gas, but its inevitable
Quick sort has a better time case than bubble sort
Was just messing around
Feb 9, 2023, 3:33 PM

© 2024 Draquery.com All rights reserved.