Skip to content

Feat: Add support for ENS names in whitelist #14

@youngancient

Description

@youngancient

Currently, the CSV uploaded by the airdrop creator must have 2 columns: address and amount.
e.g Note the token is question has a decimal 18

Address Amount
0x1234AbCd5678Ef9012Gh3456Ij7890Kl1234Mn 100000000000000000000
0x5678Ef90AbCd1234Ij9012GhKl3456Mn7890Op 250000000000000000000
0x9012Gh34Ij56Kl78Mn90AbCd1234Ef5678OpQr 300000000000000000000
0xAbCd9012EfGh3456IjKl5678Mn9012OpQr3456 50000000000000000000
0xEf9012Gh3456AbCd7890IjKlMn5678OpQr1234 75000000000000000000

It works perfectly. But suppose we have :

Address Amount
0x1234AbCd5678Ef9012Gh3456Ij7890Kl1234Mn 100000000000000000000
0x5678Ef90AbCd1234Ij9012GhKl3456Mn7890Op 250000000000000000000
0x9012Gh34Ij56Kl78Mn90AbCd1234Ef5678OpQr 300000000000000000000
0xAbCd9012EfGh3456IjKl5678Mn9012OpQr3456 50000000000000000000
0xEf9012Gh3456AbCd7890IjKlMn5678OpQr1234 75000000000000000000
youngancient.eth 93000000000000000000

This CSV won't work because currently there's no support for ENS names.
Add support for ENS names based on the chain. When the user uploads the CSV, the ENS name should be resolved to the actual address, which could then be parsed as the rest.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions