-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
324d987
commit d39a8b9
Showing
3 changed files
with
73 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
[ | ||
{ | ||
"inputs": [ | ||
"0x6CA6d1e2D5347Bfab1d91e883F1915560e09129D", | ||
"25000000000000000000" | ||
], | ||
"proof": [ | ||
"0x0fd7c981d39bece61f7499702bf59b3114a90e66b51ba2c53abdf7b62986c00a", | ||
"0xe5ebd1e1b5a5478a944ecab36a9a954ac3b6b8216875f6524caa7a1d87096576" | ||
], | ||
"root": "0xaa5d581231e596618465a56aa0f5870ba6e20785fe436d5bfb82b08662ccc7c4", | ||
"leaf": "0xd1445c931158119b00449ffcac3c947d028c0c359c34a6646d95962b3b55c6ad" | ||
}, | ||
{ | ||
"inputs": [ | ||
"0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266", | ||
"25000000000000000000" | ||
], | ||
"proof": [ | ||
"0xd1445c931158119b00449ffcac3c947d028c0c359c34a6646d95962b3b55c6ad", | ||
"0xe5ebd1e1b5a5478a944ecab36a9a954ac3b6b8216875f6524caa7a1d87096576" | ||
], | ||
"root": "0xaa5d581231e596618465a56aa0f5870ba6e20785fe436d5bfb82b08662ccc7c4", | ||
"leaf": "0x0fd7c981d39bece61f7499702bf59b3114a90e66b51ba2c53abdf7b62986c00a" | ||
}, | ||
{ | ||
"inputs": [ | ||
"0x2ea3970Ed82D5b30be821FAAD4a731D35964F7dd", | ||
"25000000000000000000" | ||
], | ||
"proof": [ | ||
"0x4fd31fee0e75780cd67704fbc43caee70fddcaa43631e2e1bc9fb233fada2394", | ||
"0x81f0e530b56872b6fc3e10f8873804230663f8407e21cef901b8aeb06a25e5e2" | ||
], | ||
"root": "0xaa5d581231e596618465a56aa0f5870ba6e20785fe436d5bfb82b08662ccc7c4", | ||
"leaf": "0x0c7ef881bb675a5858617babe0eb12b538067e289d35d5b044ee76b79d335191" | ||
}, | ||
{ | ||
"inputs": [ | ||
"0xf6dBa02C01AF48Cf926579F77C9f874Ca640D91D", | ||
"25000000000000000000" | ||
], | ||
"proof": [ | ||
"0x0c7ef881bb675a5858617babe0eb12b538067e289d35d5b044ee76b79d335191", | ||
"0x81f0e530b56872b6fc3e10f8873804230663f8407e21cef901b8aeb06a25e5e2" | ||
], | ||
"root": "0xaa5d581231e596618465a56aa0f5870ba6e20785fe436d5bfb82b08662ccc7c4", | ||
"leaf": "0x4fd31fee0e75780cd67704fbc43caee70fddcaa43631e2e1bc9fb233fada2394" | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,26 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.24; | ||
|
||
import {Test} from "forge-std/Test.sol" | ||
import {Test, console} from "forge-std/Test.sol"; | ||
import {MerkleAirdrop} from "../src/MerkleAirdrop.sol"; | ||
import {MisalToken} from "../src/MisalToken.sol"; | ||
|
||
contract MerkleAirdropTest is Test { | ||
|
||
} | ||
MerkleAirdrop public airdrop; | ||
MisalToken public token; | ||
|
||
bytes32 public ROOT = | ||
0xaa5d581231e596618465a56aa0f5870ba6e20785fe436d5bfb82b08662ccc7c4; | ||
address user; | ||
uint256 userPrivKey; | ||
|
||
function setUp() public { | ||
token = new MisalToken(); | ||
airdrop = new MerkleAirdrop(ROOT, token); | ||
(user, userPrivKey) = makeAddrAndKey("user"); | ||
} | ||
|
||
function testUsersCanClaim() public { | ||
console.log("user address:", user); | ||
} | ||
} |