getTokenFaucetDataJson function
Map<String, dynamic>
getTokenFaucetDataJson(
)
Implementation
Map<String, dynamic> getTokenFaucetDataJson() {
return {
"_format": "hh-sol-artifact-1",
"contractName": "TokenFaucet",
"sourceName": "contracts/TokenFaucet.sol",
"abi": [
{
"inputs": [
{"internalType": "address", "name": "_token", "type": "address"},
{
"internalType": "uint256",
"name": "_claimAllowance",
"type": "uint256"
},
{"internalType": "address", "name": "_forwarder", "type": "address"}
],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "address",
"name": "sender",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"name": "Claim",
"type": "event"
},
{
"inputs": [],
"name": "claim",
"outputs": [
{"internalType": "bool", "name": "", "type": "bool"}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "claimAllowance",
"outputs": [
{"internalType": "uint256", "name": "", "type": "uint256"}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getTrustedForwarder",
"outputs": [
{"internalType": "address", "name": "forwarder", "type": "address"}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{"internalType": "address", "name": "forwarder", "type": "address"}
],
"name": "isTrustedForwarder",
"outputs": [
{"internalType": "bool", "name": "", "type": "bool"}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "token",
"outputs": [
{"internalType": "contract IERC20", "name": "", "type": "address"}
],
"stateMutability": "view",
"type": "function"
}
],
"bytecode":
"0x60c060405234801561001057600080fd5b50604051610acc380380610acc83398181016040528101906100329190610161565b8273ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff16815250508160a0818152505061007d8161008560201b60201c565b5050506101b4565b806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006100f8826100cd565b9050919050565b610108816100ed565b811461011357600080fd5b50565b600081519050610125816100ff565b92915050565b6000819050919050565b61013e8161012b565b811461014957600080fd5b50565b60008151905061015b81610135565b92915050565b60008060006060848603121561017a576101796100c8565b5b600061018886828701610116565b93505060206101998682870161014c565b92505060406101aa86828701610116565b9150509250925092565b60805160a0516108d06101fc60003960008181610106015281816101c40152818161035401526103f80152600081816101e50152818161031701526104b901526108d06000f3fe608060405234801561001057600080fd5b50600436106100575760003560e01c80631259b4841461005c5780634e71d92d1461007a578063572b6c0514610098578063ce1b815f146100c8578063fc0c546a146100e6575b600080fd5b610064610104565b604051610071919061052b565b60405180910390f35b610082610128565b60405161008f9190610561565b60405180910390f35b6100b260048036038101906100ad91906105df565b610435565b6040516100bf9190610561565b60405180910390f35b6100d061048e565b6040516100dd919061061b565b60405180910390f35b6100ee6104b7565b6040516100fb9190610695565b60405180910390f35b7f000000000000000000000000000000000000000000000000000000000000000081565b6000806101336104db565b9050600160008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16156101c2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101b990610733565b60405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161023c919061061b565b602060405180830381865afa158015610259573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061027d919061077f565b10156102be576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102b5906107f8565b60405180910390fd5b60018060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb827f00000000000000000000000000000000000000000000000000000000000000006040518363ffffffff1660e01b8152600401610390929190610818565b6020604051808303816000875af11580156103af573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103d3919061086d565b507f47cee97cb7acd717b3c0aa1435d004cd5b3c8c57d70dbceb4e4458bbd60e39d4817f0000000000000000000000000000000000000000000000000000000000000000604051610425929190610818565b60405180910390a1600191505090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16149050919050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b7f000000000000000000000000000000000000000000000000000000000000000081565b600060146000369050101580156104f757506104f633610435565b5b1561050b57601436033560601c905061050f565b3390505b90565b6000819050919050565b61052581610512565b82525050565b6000602082019050610540600083018461051c565b92915050565b60008115159050919050565b61055b81610546565b82525050565b60006020820190506105766000830184610552565b92915050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006105ac82610581565b9050919050565b6105bc816105a1565b81146105c757600080fd5b50565b6000813590506105d9816105b3565b92915050565b6000602082840312156105f5576105f461057c565b5b6000610603848285016105ca565b91505092915050565b610615816105a1565b82525050565b6000602082019050610630600083018461060c565b92915050565b6000819050919050565b600061065b61065661065184610581565b610636565b610581565b9050919050565b600061066d82610640565b9050919050565b600061067f82610662565b9050919050565b61068f81610674565b82525050565b60006020820190506106aa6000830184610686565b92915050565b600082825260208201905092915050565b7f416464726573732068617320616c726561647920726563656976656420746f6b60008201527f656e732e00000000000000000000000000000000000000000000000000000000602082015250565b600061071d6024836106b0565b9150610728826106c1565b604082019050919050565b6000602082019050818103600083015261074c81610710565b9050919050565b61075c81610512565b811461076757600080fd5b50565b60008151905061077981610753565b92915050565b6000602082840312156107955761079461057c565b5b60006107a38482850161076a565b91505092915050565b7f496e73756666696369656e74206661756365742062616c616e63652e00000000600082015250565b60006107e2601c836106b0565b91506107ed826107ac565b602082019050919050565b60006020820190508181036000830152610811816107d5565b9050919050565b600060408201905061082d600083018561060c565b61083a602083018461051c565b9392505050565b61084a81610546565b811461085557600080fd5b50565b60008151905061086781610841565b92915050565b6000602082840312156108835761088261057c565b5b600061089184828501610858565b9150509291505056fea264697066735822122035cd06a9b508ea7afe88c876a81b5f82af007986af3db83aa61a62279c95545964736f6c63430008110033",
"deployedBytecode":
"0x608060405234801561001057600080fd5b50600436106100575760003560e01c80631259b4841461005c5780634e71d92d1461007a578063572b6c0514610098578063ce1b815f146100c8578063fc0c546a146100e6575b600080fd5b610064610104565b604051610071919061052b565b60405180910390f35b610082610128565b60405161008f9190610561565b60405180910390f35b6100b260048036038101906100ad91906105df565b610435565b6040516100bf9190610561565b60405180910390f35b6100d061048e565b6040516100dd919061061b565b60405180910390f35b6100ee6104b7565b6040516100fb9190610695565b60405180910390f35b7f000000000000000000000000000000000000000000000000000000000000000081565b6000806101336104db565b9050600160008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16156101c2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101b990610733565b60405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161023c919061061b565b602060405180830381865afa158015610259573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061027d919061077f565b10156102be576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102b5906107f8565b60405180910390fd5b60018060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb827f00000000000000000000000000000000000000000000000000000000000000006040518363ffffffff1660e01b8152600401610390929190610818565b6020604051808303816000875af11580156103af573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103d3919061086d565b507f47cee97cb7acd717b3c0aa1435d004cd5b3c8c57d70dbceb4e4458bbd60e39d4817f0000000000000000000000000000000000000000000000000000000000000000604051610425929190610818565b60405180910390a1600191505090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16149050919050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b7f000000000000000000000000000000000000000000000000000000000000000081565b600060146000369050101580156104f757506104f633610435565b5b1561050b57601436033560601c905061050f565b3390505b90565b6000819050919050565b61052581610512565b82525050565b6000602082019050610540600083018461051c565b92915050565b60008115159050919050565b61055b81610546565b82525050565b60006020820190506105766000830184610552565b92915050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006105ac82610581565b9050919050565b6105bc816105a1565b81146105c757600080fd5b50565b6000813590506105d9816105b3565b92915050565b6000602082840312156105f5576105f461057c565b5b6000610603848285016105ca565b91505092915050565b610615816105a1565b82525050565b6000602082019050610630600083018461060c565b92915050565b6000819050919050565b600061065b61065661065184610581565b610636565b610581565b9050919050565b600061066d82610640565b9050919050565b600061067f82610662565b9050919050565b61068f81610674565b82525050565b60006020820190506106aa6000830184610686565b92915050565b600082825260208201905092915050565b7f416464726573732068617320616c726561647920726563656976656420746f6b60008201527f656e732e00000000000000000000000000000000000000000000000000000000602082015250565b600061071d6024836106b0565b9150610728826106c1565b604082019050919050565b6000602082019050818103600083015261074c81610710565b9050919050565b61075c81610512565b811461076757600080fd5b50565b60008151905061077981610753565b92915050565b6000602082840312156107955761079461057c565b5b60006107a38482850161076a565b91505092915050565b7f496e73756666696369656e74206661756365742062616c616e63652e00000000600082015250565b60006107e2601c836106b0565b91506107ed826107ac565b602082019050919050565b60006020820190508181036000830152610811816107d5565b9050919050565b600060408201905061082d600083018561060c565b61083a602083018461051c565b9392505050565b61084a81610546565b811461085557600080fd5b50565b60008151905061086781610841565b92915050565b6000602082840312156108835761088261057c565b5b600061089184828501610858565b9150509291505056fea264697066735822122035cd06a9b508ea7afe88c876a81b5f82af007986af3db83aa61a62279c95545964736f6c63430008110033",
"linkReferences": {},
"deployedLinkReferences": {}
};
}