Skip to content

Commit

Permalink
Testing passed
Browse files Browse the repository at this point in the history
  • Loading branch information
panditdhamdhere committed Sep 10, 2024
1 parent 324d987 commit d39a8b9
Show file tree
Hide file tree
Showing 3 changed files with 73 additions and 5 deletions.
4 changes: 2 additions & 2 deletions script/MakeMerkle.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ import {ScriptHelper} from "murky/script/common/ScriptHelper.sol";

/**
* @title MakeMerkle
* @author Ciara Nightingale
* @author Cyfrin
* @author pandit
* @author pandit
*
* Original Work by:
* @author kootsZhin
Expand Down
50 changes: 50 additions & 0 deletions script/target/output.json
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"
}
]
24 changes: 21 additions & 3 deletions test/MerkleAirdropTest.t.sol
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);
}
}

0 comments on commit d39a8b9

Please sign in to comment.