-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAirdropContract.json
114 lines (114 loc) · 13.9 KB
/
AirdropContract.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
{
"_format": "hh-sol-artifact-1",
"contractName": "MerkleAirdrop",
"sourceName": "contracts/MerkleAirdrop.sol",
"abi": [
{
"inputs": [
{
"internalType": "bytes32",
"name": "_merkleRoot",
"type": "bytes32"
},
{
"internalType": "address",
"name": "_tokenContractAddress",
"type": "address"
}
],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"inputs": [
{
"internalType": "bytes32[]",
"name": "_proof",
"type": "bytes32[]"
},
{
"internalType": "uint256",
"name": "_amount",
"type": "uint256"
}
],
"name": "claimTokens",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"name": "claimed",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "merkleRoot",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "tokenContract",
"outputs": [
{
"internalType": "contract IERC20",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32[]",
"name": "_proof",
"type": "bytes32[]"
},
{
"internalType": "address",
"name": "_address",
"type": "address"
}
],
"name": "verifyProof",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
}
],
"bytecode": "0x608060405234801561001057600080fd5b50604051610b80380380610b808339818101604052810190610032919061011a565b8160008190555080600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505061015a565b600080fd5b6000819050919050565b61009981610086565b81146100a457600080fd5b50565b6000815190506100b681610090565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006100e7826100bc565b9050919050565b6100f7816100dc565b811461010257600080fd5b50565b600081519050610114816100ee565b92915050565b6000806040838503121561013157610130610081565b5b600061013f858286016100a7565b925050602061015085828601610105565b9150509250929050565b610a17806101696000396000f3fe608060405234801561001057600080fd5b50600436106100575760003560e01c80632d8b9ed71461005c5780632eb4a7ab1461008c57806355a373d6146100aa578063c884ef83146100c8578063ee1462fd146100f8575b600080fd5b610076600480360381019061007191906104ea565b610114565b6040516100839190610565565b60405180910390f35b6100946101fc565b6040516100a19190610599565b60405180910390f35b6100b2610202565b6040516100bf9190610613565b60405180910390f35b6100e260048036038101906100dd919061062e565b610228565b6040516100ef9190610565565b60405180910390f35b610112600480360381019061010d9190610691565b610248565b005b600080823360405160200161012a929190610739565b604051602081830303815290604052805190602001209050600081905060005b868690508110156101eb57600087878381811061016a57610169610765565b5b905060200201359050808310156101ab57828160405160200161018e9291906107b5565b6040516020818303038152906040528051906020012092506101d7565b80836040516020016101be9291906107b5565b6040516020818303038152906040528051906020012092505b5080806101e390610810565b91505061014a565b506000548114925050509392505050565b60005481565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60026020528060005260406000206000915054906101000a900460ff1681565b600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16156102d5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102cc906108b5565b60405180910390fd5b6102e0838333610114565b61031f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161031690610921565b60405180910390fd5b6001600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33836040518363ffffffff1660e01b81526004016103d492919061095f565b6020604051808303816000875af11580156103f3573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061041791906109b4565b50505050565b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b60008083601f84011261044c5761044b610427565b5b8235905067ffffffffffffffff8111156104695761046861042c565b5b60208301915083602082028301111561048557610484610431565b5b9250929050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006104b78261048c565b9050919050565b6104c7816104ac565b81146104d257600080fd5b50565b6000813590506104e4816104be565b92915050565b6000806000604084860312156105035761050261041d565b5b600084013567ffffffffffffffff81111561052157610520610422565b5b61052d86828701610436565b93509350506020610540868287016104d5565b9150509250925092565b60008115159050919050565b61055f8161054a565b82525050565b600060208201905061057a6000830184610556565b92915050565b6000819050919050565b61059381610580565b82525050565b60006020820190506105ae600083018461058a565b92915050565b6000819050919050565b60006105d96105d46105cf8461048c565b6105b4565b61048c565b9050919050565b60006105eb826105be565b9050919050565b60006105fd826105e0565b9050919050565b61060d816105f2565b82525050565b60006020820190506106286000830184610604565b92915050565b6000602082840312156106445761064361041d565b5b6000610652848285016104d5565b91505092915050565b6000819050919050565b61066e8161065b565b811461067957600080fd5b50565b60008135905061068b81610665565b92915050565b6000806000604084860312156106aa576106a961041d565b5b600084013567ffffffffffffffff8111156106c8576106c7610422565b5b6106d486828701610436565b935093505060206106e78682870161067c565b9150509250925092565b60008160601b9050919050565b6000610709826106f1565b9050919050565b600061071b826106fe565b9050919050565b61073361072e826104ac565b610710565b82525050565b60006107458285610722565b6014820191506107558284610722565b6014820191508190509392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000819050919050565b6107af6107aa82610580565b610794565b82525050565b60006107c1828561079e565b6020820191506107d1828461079e565b6020820191508190509392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061081b8261065b565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361084d5761084c6107e1565b5b600182019050919050565b600082825260208201905092915050565b7f546f6b656e7320616c726561647920636c61696d656400000000000000000000600082015250565b600061089f601683610858565b91506108aa82610869565b602082019050919050565b600060208201905081810360008301526108ce81610892565b9050919050565b7f496e76616c69642070726f6f6600000000000000000000000000000000000000600082015250565b600061090b600d83610858565b9150610916826108d5565b602082019050919050565b6000602082019050818103600083015261093a816108fe565b9050919050565b61094a816104ac565b82525050565b6109598161065b565b82525050565b60006040820190506109746000830185610941565b6109816020830184610950565b9392505050565b6109918161054a565b811461099c57600080fd5b50565b6000815190506109ae81610988565b92915050565b6000602082840312156109ca576109c961041d565b5b60006109d88482850161099f565b9150509291505056fea2646970667358221220c99d4b812f74e907136b072d628b1f50aae64e6f1c9f50a0c7890989dec9c17864736f6c63430008110033",
"deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100575760003560e01c80632d8b9ed71461005c5780632eb4a7ab1461008c57806355a373d6146100aa578063c884ef83146100c8578063ee1462fd146100f8575b600080fd5b610076600480360381019061007191906104ea565b610114565b6040516100839190610565565b60405180910390f35b6100946101fc565b6040516100a19190610599565b60405180910390f35b6100b2610202565b6040516100bf9190610613565b60405180910390f35b6100e260048036038101906100dd919061062e565b610228565b6040516100ef9190610565565b60405180910390f35b610112600480360381019061010d9190610691565b610248565b005b600080823360405160200161012a929190610739565b604051602081830303815290604052805190602001209050600081905060005b868690508110156101eb57600087878381811061016a57610169610765565b5b905060200201359050808310156101ab57828160405160200161018e9291906107b5565b6040516020818303038152906040528051906020012092506101d7565b80836040516020016101be9291906107b5565b6040516020818303038152906040528051906020012092505b5080806101e390610810565b91505061014a565b506000548114925050509392505050565b60005481565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60026020528060005260406000206000915054906101000a900460ff1681565b600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16156102d5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102cc906108b5565b60405180910390fd5b6102e0838333610114565b61031f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161031690610921565b60405180910390fd5b6001600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33836040518363ffffffff1660e01b81526004016103d492919061095f565b6020604051808303816000875af11580156103f3573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061041791906109b4565b50505050565b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b60008083601f84011261044c5761044b610427565b5b8235905067ffffffffffffffff8111156104695761046861042c565b5b60208301915083602082028301111561048557610484610431565b5b9250929050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006104b78261048c565b9050919050565b6104c7816104ac565b81146104d257600080fd5b50565b6000813590506104e4816104be565b92915050565b6000806000604084860312156105035761050261041d565b5b600084013567ffffffffffffffff81111561052157610520610422565b5b61052d86828701610436565b93509350506020610540868287016104d5565b9150509250925092565b60008115159050919050565b61055f8161054a565b82525050565b600060208201905061057a6000830184610556565b92915050565b6000819050919050565b61059381610580565b82525050565b60006020820190506105ae600083018461058a565b92915050565b6000819050919050565b60006105d96105d46105cf8461048c565b6105b4565b61048c565b9050919050565b60006105eb826105be565b9050919050565b60006105fd826105e0565b9050919050565b61060d816105f2565b82525050565b60006020820190506106286000830184610604565b92915050565b6000602082840312156106445761064361041d565b5b6000610652848285016104d5565b91505092915050565b6000819050919050565b61066e8161065b565b811461067957600080fd5b50565b60008135905061068b81610665565b92915050565b6000806000604084860312156106aa576106a961041d565b5b600084013567ffffffffffffffff8111156106c8576106c7610422565b5b6106d486828701610436565b935093505060206106e78682870161067c565b9150509250925092565b60008160601b9050919050565b6000610709826106f1565b9050919050565b600061071b826106fe565b9050919050565b61073361072e826104ac565b610710565b82525050565b60006107458285610722565b6014820191506107558284610722565b6014820191508190509392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000819050919050565b6107af6107aa82610580565b610794565b82525050565b60006107c1828561079e565b6020820191506107d1828461079e565b6020820191508190509392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061081b8261065b565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361084d5761084c6107e1565b5b600182019050919050565b600082825260208201905092915050565b7f546f6b656e7320616c726561647920636c61696d656400000000000000000000600082015250565b600061089f601683610858565b91506108aa82610869565b602082019050919050565b600060208201905081810360008301526108ce81610892565b9050919050565b7f496e76616c69642070726f6f6600000000000000000000000000000000000000600082015250565b600061090b600d83610858565b9150610916826108d5565b602082019050919050565b6000602082019050818103600083015261093a816108fe565b9050919050565b61094a816104ac565b82525050565b6109598161065b565b82525050565b60006040820190506109746000830185610941565b6109816020830184610950565b9392505050565b6109918161054a565b811461099c57600080fd5b50565b6000815190506109ae81610988565b92915050565b6000602082840312156109ca576109c961041d565b5b60006109d88482850161099f565b9150509291505056fea2646970667358221220c99d4b812f74e907136b072d628b1f50aae64e6f1c9f50a0c7890989dec9c17864736f6c63430008110033",
"linkReferences": {},
"deployedLinkReferences": {}
}