296 lines
14 KiB
JSON
296 lines
14 KiB
JSON
{
|
|
"_format": "hh-sol-artifact-1",
|
|
"contractName": "WETH",
|
|
"sourceName": "contracts/tokens/WETH.sol",
|
|
"abi": [
|
|
{
|
|
"anonymous": false,
|
|
"inputs": [
|
|
{
|
|
"indexed": true,
|
|
"internalType": "address",
|
|
"name": "src",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"indexed": true,
|
|
"internalType": "address",
|
|
"name": "guy",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"indexed": false,
|
|
"internalType": "uint256",
|
|
"name": "wad",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"name": "Approval",
|
|
"type": "event"
|
|
},
|
|
{
|
|
"anonymous": false,
|
|
"inputs": [
|
|
{
|
|
"indexed": true,
|
|
"internalType": "address",
|
|
"name": "dst",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"indexed": false,
|
|
"internalType": "uint256",
|
|
"name": "wad",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"name": "Deposit",
|
|
"type": "event"
|
|
},
|
|
{
|
|
"anonymous": false,
|
|
"inputs": [
|
|
{
|
|
"indexed": true,
|
|
"internalType": "address",
|
|
"name": "src",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"indexed": true,
|
|
"internalType": "address",
|
|
"name": "dst",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"indexed": false,
|
|
"internalType": "uint256",
|
|
"name": "wad",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"name": "Transfer",
|
|
"type": "event"
|
|
},
|
|
{
|
|
"anonymous": false,
|
|
"inputs": [
|
|
{
|
|
"indexed": true,
|
|
"internalType": "address",
|
|
"name": "src",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"indexed": false,
|
|
"internalType": "uint256",
|
|
"name": "wad",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"name": "Withdrawal",
|
|
"type": "event"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "address",
|
|
"name": "",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"name": "allowance",
|
|
"outputs": [
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "guy",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "wad",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"name": "approve",
|
|
"outputs": [
|
|
{
|
|
"internalType": "bool",
|
|
"name": "",
|
|
"type": "bool"
|
|
}
|
|
],
|
|
"stateMutability": "nonpayable",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"name": "balanceOf",
|
|
"outputs": [
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [],
|
|
"name": "decimals",
|
|
"outputs": [
|
|
{
|
|
"internalType": "uint8",
|
|
"name": "",
|
|
"type": "uint8"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [],
|
|
"name": "deposit",
|
|
"outputs": [],
|
|
"stateMutability": "payable",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [],
|
|
"name": "name",
|
|
"outputs": [
|
|
{
|
|
"internalType": "string",
|
|
"name": "",
|
|
"type": "string"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [],
|
|
"name": "symbol",
|
|
"outputs": [
|
|
{
|
|
"internalType": "string",
|
|
"name": "",
|
|
"type": "string"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [],
|
|
"name": "totalSupply",
|
|
"outputs": [
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "dst",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "wad",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"name": "transfer",
|
|
"outputs": [
|
|
{
|
|
"internalType": "bool",
|
|
"name": "",
|
|
"type": "bool"
|
|
}
|
|
],
|
|
"stateMutability": "nonpayable",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "src",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "address",
|
|
"name": "dst",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "wad",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"name": "transferFrom",
|
|
"outputs": [
|
|
{
|
|
"internalType": "bool",
|
|
"name": "",
|
|
"type": "bool"
|
|
}
|
|
],
|
|
"stateMutability": "nonpayable",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "wad",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"name": "withdraw",
|
|
"outputs": [],
|
|
"stateMutability": "nonpayable",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"stateMutability": "payable",
|
|
"type": "receive"
|
|
}
|
|
],
|
|
"bytecode": "0x6080604052346100cb57600061001581546100d0565b601f81116100a1575b50601a6c2bb930b83832b21022ba3432b960991b0181556001906100436001546100d0565b90601f8211610077575b6008630ae8aa8960e31b016001556002805460ff191660121790556040516107ef908161010b8239f35b60018152601f60208220920160051c8201915b828110610097575061004d565b818155830161008a565b818052601f60208320910160051c8101905b8181106100c0575061001e565b8281556001016100b3565b600080fd5b90600182811c92168015610100575b60208310146100ea57565b634e487b7160e01b600052602260045260246000fd5b91607f16916100df56fe60806040818152600480361015610029575b505050361561001f57600080fd5b610027610770565b005b600092833560e01c90816306fdde031461041d57508063095ea7b3146103af57806318160ddd1461039457806323b872dd146103625780632e1a7d4d146102c5578063313ce567146102a357806370a082311461026b57806395d89b4114610147578063a9059cbb14610110578063d0e30db0146100f65763dd62ed3e0361001157346100f257816003193601126100f25760209282916100c861055b565b6100d0610576565b6001600160a01b03918216845291865283832091168252845220549051908152f35b8280fd5b838060031936011261010d5761010a610770565b80f35b80fd5b50503461014357806003193601126101435760209061013a61013061055b565b6024359033610608565b90519015158152f35b5080fd5b509190346101435781600319360112610143578051908260018054908160011c9060018316928315610261575b602093848410811461024e5783885290811561023257506001146101dc575b505050829003601f01601f191682019267ffffffffffffffff8411838510176101c957508291826101c5925282610512565b0390f35b634e487b7160e01b815260418552602490fd5b600187529192508591837fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf65b83851061021e5750505050830101388080610193565b805488860183015293019284908201610208565b60ff1916878501525050151560051b8401019050388080610193565b634e487b7160e01b895260228a52602489fd5b91607f1691610174565b5050346101435760203660031901126101435760209181906001600160a01b0361029361055b565b1681526003845220549051908152f35b50503461014357816003193601126101435760209060ff600254169051908152f35b50346100f25760203660031901126100f257359033835260036020526102f08282852054101561058c565b33835260036020528083206103068382546105d8565b90558280838015610358575b8280929181923390f11561034d57519081527f7fcf532c15f0a6db0bd6d0e038bea71d30d808c7d98cb3bf7268a95bf5081b6560203392a280f35b51913d9150823e3d90fd5b6108fc9150610312565b5050346101435760603660031901126101435760209061013a61038361055b565b61038b610576565b60443591610608565b50503461014357816003193601126101435751478152602090f35b50346100f257816003193601126100f2576020926103cb61055b565b918360243592839233825287528181209460018060a01b0316948582528752205582519081527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925843392a35160018152f35b84915083346100f257826003193601126100f25782835460018160011c9060018316928315610508575b602093848410811461024e578388529081156104ec575060011461049757505050829003601f01601f191682019267ffffffffffffffff8411838510176101c957508291826101c5925282610512565b8680529192508591837f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e5635b8385106104d85750505050830101858080610193565b8054888601830152930192849082016104c2565b60ff1916878501525050151560051b8401019050858080610193565b91607f1691610447565b6020808252825181830181905290939260005b82811061054757505060409293506000838284010152601f8019910116010190565b818101860151848201604001528501610525565b600435906001600160a01b038216820361057157565b600080fd5b602435906001600160a01b038216820361057157565b1561059357565b60405162461bcd60e51b815260206004820152601a60248201527f574554483a20696e73756666696369656e742062616c616e63650000000000006044820152606490fd5b919082039182116105e557565b634e487b7160e01b600052601160045260246000fd5b919082018092116105e557565b91909160018060a01b0380911691600093838552602092600384526040916106358484892054101561058c565b3386141580610752575b6106a3575b9180917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef959493878952600386528289206106808682546105d8565b9055169687815260038552206106978382546105fb565b905551908152a3600190565b85875260048552828720338852855283838820541061070e579180917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef95949387895260048652828920338a5286528289206107008682546105d8565b905591509192939450610644565b825162461bcd60e51b815260048101869052601c60248201527f574554483a20696e73756666696369656e7420616c6c6f77616e6365000000006044820152606490fd5b5085875260048552828720338852855282872054600019141561063f565b33600052600360205260406000206107893482546105fb565b90556040513481527fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c60203392a256fea2646970667358221220f6ff606d75f2ee297cef66e782af6105beb1e4a3398ad657ad013dc5b308326764736f6c63430008160033",
|
|
"deployedBytecode": "0x60806040818152600480361015610029575b505050361561001f57600080fd5b610027610770565b005b600092833560e01c90816306fdde031461041d57508063095ea7b3146103af57806318160ddd1461039457806323b872dd146103625780632e1a7d4d146102c5578063313ce567146102a357806370a082311461026b57806395d89b4114610147578063a9059cbb14610110578063d0e30db0146100f65763dd62ed3e0361001157346100f257816003193601126100f25760209282916100c861055b565b6100d0610576565b6001600160a01b03918216845291865283832091168252845220549051908152f35b8280fd5b838060031936011261010d5761010a610770565b80f35b80fd5b50503461014357806003193601126101435760209061013a61013061055b565b6024359033610608565b90519015158152f35b5080fd5b509190346101435781600319360112610143578051908260018054908160011c9060018316928315610261575b602093848410811461024e5783885290811561023257506001146101dc575b505050829003601f01601f191682019267ffffffffffffffff8411838510176101c957508291826101c5925282610512565b0390f35b634e487b7160e01b815260418552602490fd5b600187529192508591837fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf65b83851061021e5750505050830101388080610193565b805488860183015293019284908201610208565b60ff1916878501525050151560051b8401019050388080610193565b634e487b7160e01b895260228a52602489fd5b91607f1691610174565b5050346101435760203660031901126101435760209181906001600160a01b0361029361055b565b1681526003845220549051908152f35b50503461014357816003193601126101435760209060ff600254169051908152f35b50346100f25760203660031901126100f257359033835260036020526102f08282852054101561058c565b33835260036020528083206103068382546105d8565b90558280838015610358575b8280929181923390f11561034d57519081527f7fcf532c15f0a6db0bd6d0e038bea71d30d808c7d98cb3bf7268a95bf5081b6560203392a280f35b51913d9150823e3d90fd5b6108fc9150610312565b5050346101435760603660031901126101435760209061013a61038361055b565b61038b610576565b60443591610608565b50503461014357816003193601126101435751478152602090f35b50346100f257816003193601126100f2576020926103cb61055b565b918360243592839233825287528181209460018060a01b0316948582528752205582519081527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925843392a35160018152f35b84915083346100f257826003193601126100f25782835460018160011c9060018316928315610508575b602093848410811461024e578388529081156104ec575060011461049757505050829003601f01601f191682019267ffffffffffffffff8411838510176101c957508291826101c5925282610512565b8680529192508591837f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e5635b8385106104d85750505050830101858080610193565b8054888601830152930192849082016104c2565b60ff1916878501525050151560051b8401019050858080610193565b91607f1691610447565b6020808252825181830181905290939260005b82811061054757505060409293506000838284010152601f8019910116010190565b818101860151848201604001528501610525565b600435906001600160a01b038216820361057157565b600080fd5b602435906001600160a01b038216820361057157565b1561059357565b60405162461bcd60e51b815260206004820152601a60248201527f574554483a20696e73756666696369656e742062616c616e63650000000000006044820152606490fd5b919082039182116105e557565b634e487b7160e01b600052601160045260246000fd5b919082018092116105e557565b91909160018060a01b0380911691600093838552602092600384526040916106358484892054101561058c565b3386141580610752575b6106a3575b9180917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef959493878952600386528289206106808682546105d8565b9055169687815260038552206106978382546105fb565b905551908152a3600190565b85875260048552828720338852855283838820541061070e579180917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef95949387895260048652828920338a5286528289206107008682546105d8565b905591509192939450610644565b825162461bcd60e51b815260048101869052601c60248201527f574554483a20696e73756666696369656e7420616c6c6f77616e6365000000006044820152606490fd5b5085875260048552828720338852855282872054600019141561063f565b33600052600360205260406000206107893482546105fb565b90556040513481527fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c60203392a256fea2646970667358221220f6ff606d75f2ee297cef66e782af6105beb1e4a3398ad657ad013dc5b308326764736f6c63430008160033",
|
|
"linkReferences": {},
|
|
"deployedLinkReferences": {}
|
|
}
|