Hello, solidity developers!
Who know the airdrop smart contract which users can claim the token.
If possible, please let me know the etherscan or bscscan or any links.
Or if you have the sol file, please send me.
Any help is welcome.
Mar 4, 2022, 10:41 AM
I have 25k wallets list that I should do airdrop to them.
And if I send tokens from my side, I should pay so much fee. So I want to make users can claim the token themselves. understand?
And if I send tokens from my side, I should pay so much fee. So I want to make users can claim the token themselves. understand?
Mar 4, 2022, 10:50 AM
2 options:
whitelist with a mapping
or
merkle tree
whitelist with a mapping
or
merkle tree
Mar 4, 2022, 10:51 AM
How can I get 25k addresses in the mapping? The list is in the database
What is merkle tree?
Is there any guide of is there any such airdrop contract already existed?
Mar 4, 2022, 10:52 AM
Merkle three is something like binary tree in data structure that stores your data
Mar 4, 2022, 10:52 AM
Is there any guide link how to use it?
Mar 4, 2022, 10:53 AM
for merkletree you must use a dapp take in mind
Mar 4, 2022, 10:53 AM
Thank you mate! big help!
Mar 4, 2022, 10:54 AM
if you are not "expert" I would not advice to use it
the easier way is the mapping but will be expensive to store 25k addresses
the easier way is the mapping but will be expensive to store 25k addresses
Mar 4, 2022, 10:54 AM
I don't want to spend my funds to send tokens to 25k users. I want users claim themselves
Mar 4, 2022, 10:55 AM
I didn't say this
I said that you will spend a bit to store 25k addresses in a mapping
Mar 4, 2022, 10:55 AM
manually?
Mar 4, 2022, 10:55 AM
yes
you can batch them
you can batch them
I don't know the max number per time
maybe 1/2k
Mar 4, 2022, 10:56 AM
I am interested in merkle tree now
I will research about it
Thanks for your help mates!
Mar 4, 2022, 10:56 AM
https://github.com/a16z/zkp-merkle-airdrop-contracts
Mar 4, 2022, 10:57 AM
great! Thanks!
🤝
Mar 4, 2022, 10:58 AM
🤙🤙
Mar 4, 2022, 10:58 AM
cheapest for users gas will be to used signed coupons
Mar 4, 2022, 2:49 PM
Would you like to explain in more detail? Or any other samples or reference smart contract?
Mar 4, 2022, 2:51 PM
I don't have an example handy at the moment, but for 25k addresses, this signature method will be a good amount cheaper for the users than a merkle tree approach.. Essentially you use a wallet to sign all 25k coupons, and the contract is written to verify those signatures and only then release tokens to those addresses
assuming you don't want to pay a bunch of gas to just hydrate a huge mapping
Mar 4, 2022, 2:54 PM
If you can show me any smart contract like this, it would be amazing
Mar 4, 2022, 2:54 PM
(that would be cheapest for users)
Mar 4, 2022, 2:54 PM
I am curious too
btw why merkletree should be expensive? for users is just a claim button
Mar 4, 2022, 2:57 PM
It's not expensive per se, but for larger tree sizes, the signed coupon approach is cheaper to some degree
Since to verify a merkle proof, it has to calculate a bunch of hashes, the larger the tree, the more hashes to calculate when verifying
Compared to a signed coupon approach, where the contract just has to do one ecrecover no matter how large the set of addresses
Mar 4, 2022, 3:02 PM
if you can provide examples/sources about would be appreciate
Mar 4, 2022, 3:07 PM
Sure one sec
ah...almost forgot, I made a gist about this a few weeks ago...lol
https://gist.github.com/coffee-converter/e9ea05d73f5a857d55c90c4926e4c0b3
Mar 4, 2022, 3:10 PM
thanks will check soon
Mar 4, 2022, 3:12 PM
@wonderdarkhorse
Mar 4, 2022, 3:12 PM
yes, I got it
I will check it. Thanks!
Mar 4, 2022, 3:12 PM
found this too
https://github.com/bonedaddy/Postables-Payment-Channel
https://github.com/bonedaddy/Postables-Payment-Channel
https://gitlab.com/jsanjuas/spacedrop/-/tree/master/
More info here
https://medium.com/@jsanjuas/spacedrop-an-airdrop-that-recipients-pay-for-87e4b87a0f83
More info here
https://medium.com/@jsanjuas/spacedrop-an-airdrop-that-recipients-pay-for-87e4b87a0f83
https://medium.com/donkeverse/hardcore-gas-savings-in-nft-minting-part-2-signatures-vs-merkle-trees-917c43c59b07
Mar 4, 2022, 3:51 PM
This one
Mar 11, 2022, 4:20 PM
nice this channel is really useful haha, thanks!
Mar 11, 2022, 4:24 PM
Oh, I already posted a while back
Mar 29, 2022, 11:46 PM