Created
March 30, 2023 14:12
-
-
Save zomglings/bc9a466d1f34e0d5abe1d5a16062b54f to your computer and use it in GitHub Desktop.
USDC ABI
This file contains hidden or 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
| [ | |
| { | |
| "inputs": [ | |
| { "internalType": "string", "name": "_name", "type": "string" }, | |
| { "internalType": "string", "name": "_symbol", "type": "string" }, | |
| { "internalType": "uint8", "name": "_decimals", "type": "uint8" }, | |
| { "internalType": "address", "name": "_underlying", "type": "address" }, | |
| { "internalType": "address", "name": "_vault", "type": "address" } | |
| ], | |
| "stateMutability": "nonpayable", | |
| "type": "constructor" | |
| }, | |
| { | |
| "anonymous": false, | |
| "inputs": [ | |
| { | |
| "indexed": true, | |
| "internalType": "address", | |
| "name": "owner", | |
| "type": "address" | |
| }, | |
| { | |
| "indexed": true, | |
| "internalType": "address", | |
| "name": "spender", | |
| "type": "address" | |
| }, | |
| { | |
| "indexed": false, | |
| "internalType": "uint256", | |
| "name": "value", | |
| "type": "uint256" | |
| } | |
| ], | |
| "name": "Approval", | |
| "type": "event" | |
| }, | |
| { | |
| "anonymous": false, | |
| "inputs": [ | |
| { | |
| "indexed": true, | |
| "internalType": "address", | |
| "name": "auth", | |
| "type": "address" | |
| }, | |
| { | |
| "indexed": false, | |
| "internalType": "uint256", | |
| "name": "timestamp", | |
| "type": "uint256" | |
| } | |
| ], | |
| "name": "LogAddAuth", | |
| "type": "event" | |
| }, | |
| { | |
| "anonymous": false, | |
| "inputs": [ | |
| { | |
| "indexed": true, | |
| "internalType": "address", | |
| "name": "oldOwner", | |
| "type": "address" | |
| }, | |
| { | |
| "indexed": true, | |
| "internalType": "address", | |
| "name": "newOwner", | |
| "type": "address" | |
| }, | |
| { | |
| "indexed": true, | |
| "internalType": "uint256", | |
| "name": "effectiveHeight", | |
| "type": "uint256" | |
| } | |
| ], | |
| "name": "LogChangeMPCOwner", | |
| "type": "event" | |
| }, | |
| { | |
| "anonymous": false, | |
| "inputs": [ | |
| { | |
| "indexed": true, | |
| "internalType": "address", | |
| "name": "oldVault", | |
| "type": "address" | |
| }, | |
| { | |
| "indexed": true, | |
| "internalType": "address", | |
| "name": "newVault", | |
| "type": "address" | |
| }, | |
| { | |
| "indexed": true, | |
| "internalType": "uint256", | |
| "name": "effectiveTime", | |
| "type": "uint256" | |
| } | |
| ], | |
| "name": "LogChangeVault", | |
| "type": "event" | |
| }, | |
| { | |
| "anonymous": false, | |
| "inputs": [ | |
| { | |
| "indexed": true, | |
| "internalType": "bytes32", | |
| "name": "txhash", | |
| "type": "bytes32" | |
| }, | |
| { | |
| "indexed": true, | |
| "internalType": "address", | |
| "name": "account", | |
| "type": "address" | |
| }, | |
| { | |
| "indexed": false, | |
| "internalType": "uint256", | |
| "name": "amount", | |
| "type": "uint256" | |
| } | |
| ], | |
| "name": "LogSwapin", | |
| "type": "event" | |
| }, | |
| { | |
| "anonymous": false, | |
| "inputs": [ | |
| { | |
| "indexed": true, | |
| "internalType": "address", | |
| "name": "account", | |
| "type": "address" | |
| }, | |
| { | |
| "indexed": true, | |
| "internalType": "address", | |
| "name": "bindaddr", | |
| "type": "address" | |
| }, | |
| { | |
| "indexed": false, | |
| "internalType": "uint256", | |
| "name": "amount", | |
| "type": "uint256" | |
| } | |
| ], | |
| "name": "LogSwapout", | |
| "type": "event" | |
| }, | |
| { | |
| "anonymous": false, | |
| "inputs": [ | |
| { | |
| "indexed": true, | |
| "internalType": "address", | |
| "name": "from", | |
| "type": "address" | |
| }, | |
| { | |
| "indexed": true, | |
| "internalType": "address", | |
| "name": "to", | |
| "type": "address" | |
| }, | |
| { | |
| "indexed": false, | |
| "internalType": "uint256", | |
| "name": "value", | |
| "type": "uint256" | |
| } | |
| ], | |
| "name": "Transfer", | |
| "type": "event" | |
| }, | |
| { | |
| "inputs": [], | |
| "name": "DOMAIN_SEPARATOR", | |
| "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], | |
| "stateMutability": "view", | |
| "type": "function" | |
| }, | |
| { | |
| "inputs": [], | |
| "name": "PERMIT_TYPEHASH", | |
| "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], | |
| "stateMutability": "view", | |
| "type": "function" | |
| }, | |
| { | |
| "inputs": [ | |
| { "internalType": "bytes32", "name": "txhash", "type": "bytes32" }, | |
| { "internalType": "address", "name": "account", "type": "address" }, | |
| { "internalType": "uint256", "name": "amount", "type": "uint256" } | |
| ], | |
| "name": "Swapin", | |
| "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], | |
| "stateMutability": "nonpayable", | |
| "type": "function" | |
| }, | |
| { | |
| "inputs": [ | |
| { "internalType": "uint256", "name": "amount", "type": "uint256" }, | |
| { "internalType": "address", "name": "bindaddr", "type": "address" } | |
| ], | |
| "name": "Swapout", | |
| "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], | |
| "stateMutability": "nonpayable", | |
| "type": "function" | |
| }, | |
| { | |
| "inputs": [], | |
| "name": "TRANSFER_TYPEHASH", | |
| "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], | |
| "stateMutability": "view", | |
| "type": "function" | |
| }, | |
| { | |
| "inputs": [ | |
| { "internalType": "address", "name": "", "type": "address" }, | |
| { "internalType": "address", "name": "", "type": "address" } | |
| ], | |
| "name": "allowance", | |
| "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], | |
| "stateMutability": "view", | |
| "type": "function" | |
| }, | |
| { | |
| "inputs": [], | |
| "name": "applyMinter", | |
| "outputs": [], | |
| "stateMutability": "nonpayable", | |
| "type": "function" | |
| }, | |
| { | |
| "inputs": [], | |
| "name": "applyVault", | |
| "outputs": [], | |
| "stateMutability": "nonpayable", | |
| "type": "function" | |
| }, | |
| { | |
| "inputs": [ | |
| { "internalType": "address", "name": "spender", "type": "address" }, | |
| { "internalType": "uint256", "name": "value", "type": "uint256" } | |
| ], | |
| "name": "approve", | |
| "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], | |
| "stateMutability": "nonpayable", | |
| "type": "function" | |
| }, | |
| { | |
| "inputs": [ | |
| { "internalType": "address", "name": "spender", "type": "address" }, | |
| { "internalType": "uint256", "name": "value", "type": "uint256" }, | |
| { "internalType": "bytes", "name": "data", "type": "bytes" } | |
| ], | |
| "name": "approveAndCall", | |
| "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": [ | |
| { "internalType": "address", "name": "from", "type": "address" }, | |
| { "internalType": "uint256", "name": "amount", "type": "uint256" } | |
| ], | |
| "name": "burn", | |
| "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], | |
| "stateMutability": "nonpayable", | |
| "type": "function" | |
| }, | |
| { | |
| "inputs": [ | |
| { "internalType": "address", "name": "newVault", "type": "address" } | |
| ], | |
| "name": "changeMPCOwner", | |
| "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], | |
| "stateMutability": "nonpayable", | |
| "type": "function" | |
| }, | |
| { | |
| "inputs": [ | |
| { "internalType": "address", "name": "newVault", "type": "address" } | |
| ], | |
| "name": "changeVault", | |
| "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], | |
| "stateMutability": "nonpayable", | |
| "type": "function" | |
| }, | |
| { | |
| "inputs": [], | |
| "name": "decimals", | |
| "outputs": [{ "internalType": "uint8", "name": "", "type": "uint8" }], | |
| "stateMutability": "view", | |
| "type": "function" | |
| }, | |
| { | |
| "inputs": [], | |
| "name": "delay", | |
| "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], | |
| "stateMutability": "view", | |
| "type": "function" | |
| }, | |
| { | |
| "inputs": [], | |
| "name": "delayDelay", | |
| "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], | |
| "stateMutability": "view", | |
| "type": "function" | |
| }, | |
| { | |
| "inputs": [], | |
| "name": "delayMinter", | |
| "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], | |
| "stateMutability": "view", | |
| "type": "function" | |
| }, | |
| { | |
| "inputs": [], | |
| "name": "delayVault", | |
| "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], | |
| "stateMutability": "view", | |
| "type": "function" | |
| }, | |
| { | |
| "inputs": [ | |
| { "internalType": "uint256", "name": "amount", "type": "uint256" }, | |
| { "internalType": "address", "name": "to", "type": "address" } | |
| ], | |
| "name": "deposit", | |
| "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], | |
| "stateMutability": "nonpayable", | |
| "type": "function" | |
| }, | |
| { | |
| "inputs": [ | |
| { "internalType": "uint256", "name": "amount", "type": "uint256" } | |
| ], | |
| "name": "deposit", | |
| "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], | |
| "stateMutability": "nonpayable", | |
| "type": "function" | |
| }, | |
| { | |
| "inputs": [], | |
| "name": "deposit", | |
| "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], | |
| "stateMutability": "nonpayable", | |
| "type": "function" | |
| }, | |
| { | |
| "inputs": [ | |
| { "internalType": "uint256", "name": "amount", "type": "uint256" }, | |
| { "internalType": "address", "name": "to", "type": "address" } | |
| ], | |
| "name": "depositVault", | |
| "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], | |
| "stateMutability": "nonpayable", | |
| "type": "function" | |
| }, | |
| { | |
| "inputs": [ | |
| { "internalType": "address", "name": "target", "type": "address" }, | |
| { "internalType": "uint256", "name": "value", "type": "uint256" }, | |
| { "internalType": "uint256", "name": "deadline", "type": "uint256" }, | |
| { "internalType": "uint8", "name": "v", "type": "uint8" }, | |
| { "internalType": "bytes32", "name": "r", "type": "bytes32" }, | |
| { "internalType": "bytes32", "name": "s", "type": "bytes32" }, | |
| { "internalType": "address", "name": "to", "type": "address" } | |
| ], | |
| "name": "depositWithPermit", | |
| "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], | |
| "stateMutability": "nonpayable", | |
| "type": "function" | |
| }, | |
| { | |
| "inputs": [ | |
| { "internalType": "address", "name": "target", "type": "address" }, | |
| { "internalType": "uint256", "name": "value", "type": "uint256" }, | |
| { "internalType": "uint256", "name": "deadline", "type": "uint256" }, | |
| { "internalType": "uint8", "name": "v", "type": "uint8" }, | |
| { "internalType": "bytes32", "name": "r", "type": "bytes32" }, | |
| { "internalType": "bytes32", "name": "s", "type": "bytes32" }, | |
| { "internalType": "address", "name": "to", "type": "address" } | |
| ], | |
| "name": "depositWithTransferPermit", | |
| "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], | |
| "stateMutability": "nonpayable", | |
| "type": "function" | |
| }, | |
| { | |
| "inputs": [], | |
| "name": "getAllMinters", | |
| "outputs": [ | |
| { "internalType": "address[]", "name": "", "type": "address[]" } | |
| ], | |
| "stateMutability": "view", | |
| "type": "function" | |
| }, | |
| { | |
| "inputs": [ | |
| { "internalType": "address", "name": "_vault", "type": "address" } | |
| ], | |
| "name": "initVault", | |
| "outputs": [], | |
| "stateMutability": "nonpayable", | |
| "type": "function" | |
| }, | |
| { | |
| "inputs": [{ "internalType": "address", "name": "", "type": "address" }], | |
| "name": "isMinter", | |
| "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], | |
| "stateMutability": "view", | |
| "type": "function" | |
| }, | |
| { | |
| "inputs": [ | |
| { "internalType": "address", "name": "to", "type": "address" }, | |
| { "internalType": "uint256", "name": "amount", "type": "uint256" } | |
| ], | |
| "name": "mint", | |
| "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], | |
| "stateMutability": "nonpayable", | |
| "type": "function" | |
| }, | |
| { | |
| "inputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], | |
| "name": "minters", | |
| "outputs": [{ "internalType": "address", "name": "", "type": "address" }], | |
| "stateMutability": "view", | |
| "type": "function" | |
| }, | |
| { | |
| "inputs": [], | |
| "name": "mpc", | |
| "outputs": [{ "internalType": "address", "name": "", "type": "address" }], | |
| "stateMutability": "view", | |
| "type": "function" | |
| }, | |
| { | |
| "inputs": [], | |
| "name": "name", | |
| "outputs": [{ "internalType": "string", "name": "", "type": "string" }], | |
| "stateMutability": "view", | |
| "type": "function" | |
| }, | |
| { | |
| "inputs": [{ "internalType": "address", "name": "", "type": "address" }], | |
| "name": "nonces", | |
| "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], | |
| "stateMutability": "view", | |
| "type": "function" | |
| }, | |
| { | |
| "inputs": [], | |
| "name": "owner", | |
| "outputs": [{ "internalType": "address", "name": "", "type": "address" }], | |
| "stateMutability": "view", | |
| "type": "function" | |
| }, | |
| { | |
| "inputs": [], | |
| "name": "pendingDelay", | |
| "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], | |
| "stateMutability": "view", | |
| "type": "function" | |
| }, | |
| { | |
| "inputs": [], | |
| "name": "pendingMinter", | |
| "outputs": [{ "internalType": "address", "name": "", "type": "address" }], | |
| "stateMutability": "view", | |
| "type": "function" | |
| }, | |
| { | |
| "inputs": [], | |
| "name": "pendingVault", | |
| "outputs": [{ "internalType": "address", "name": "", "type": "address" }], | |
| "stateMutability": "view", | |
| "type": "function" | |
| }, | |
| { | |
| "inputs": [ | |
| { "internalType": "address", "name": "target", "type": "address" }, | |
| { "internalType": "address", "name": "spender", "type": "address" }, | |
| { "internalType": "uint256", "name": "value", "type": "uint256" }, | |
| { "internalType": "uint256", "name": "deadline", "type": "uint256" }, | |
| { "internalType": "uint8", "name": "v", "type": "uint8" }, | |
| { "internalType": "bytes32", "name": "r", "type": "bytes32" }, | |
| { "internalType": "bytes32", "name": "s", "type": "bytes32" } | |
| ], | |
| "name": "permit", | |
| "outputs": [], | |
| "stateMutability": "nonpayable", | |
| "type": "function" | |
| }, | |
| { | |
| "inputs": [ | |
| { "internalType": "address", "name": "_auth", "type": "address" } | |
| ], | |
| "name": "revokeMinter", | |
| "outputs": [], | |
| "stateMutability": "nonpayable", | |
| "type": "function" | |
| }, | |
| { | |
| "inputs": [ | |
| { "internalType": "address", "name": "_auth", "type": "address" } | |
| ], | |
| "name": "setMinter", | |
| "outputs": [], | |
| "stateMutability": "nonpayable", | |
| "type": "function" | |
| }, | |
| { | |
| "inputs": [ | |
| { "internalType": "address", "name": "_vault", "type": "address" } | |
| ], | |
| "name": "setVault", | |
| "outputs": [], | |
| "stateMutability": "nonpayable", | |
| "type": "function" | |
| }, | |
| { | |
| "inputs": [{ "internalType": "bool", "name": "enabled", "type": "bool" }], | |
| "name": "setVaultOnly", | |
| "outputs": [], | |
| "stateMutability": "nonpayable", | |
| "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": "to", "type": "address" }, | |
| { "internalType": "uint256", "name": "value", "type": "uint256" } | |
| ], | |
| "name": "transfer", | |
| "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], | |
| "stateMutability": "nonpayable", | |
| "type": "function" | |
| }, | |
| { | |
| "inputs": [ | |
| { "internalType": "address", "name": "to", "type": "address" }, | |
| { "internalType": "uint256", "name": "value", "type": "uint256" }, | |
| { "internalType": "bytes", "name": "data", "type": "bytes" } | |
| ], | |
| "name": "transferAndCall", | |
| "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], | |
| "stateMutability": "nonpayable", | |
| "type": "function" | |
| }, | |
| { | |
| "inputs": [ | |
| { "internalType": "address", "name": "from", "type": "address" }, | |
| { "internalType": "address", "name": "to", "type": "address" }, | |
| { "internalType": "uint256", "name": "value", "type": "uint256" } | |
| ], | |
| "name": "transferFrom", | |
| "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], | |
| "stateMutability": "nonpayable", | |
| "type": "function" | |
| }, | |
| { | |
| "inputs": [ | |
| { "internalType": "address", "name": "target", "type": "address" }, | |
| { "internalType": "address", "name": "to", "type": "address" }, | |
| { "internalType": "uint256", "name": "value", "type": "uint256" }, | |
| { "internalType": "uint256", "name": "deadline", "type": "uint256" }, | |
| { "internalType": "uint8", "name": "v", "type": "uint8" }, | |
| { "internalType": "bytes32", "name": "r", "type": "bytes32" }, | |
| { "internalType": "bytes32", "name": "s", "type": "bytes32" } | |
| ], | |
| "name": "transferWithPermit", | |
| "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], | |
| "stateMutability": "nonpayable", | |
| "type": "function" | |
| }, | |
| { | |
| "inputs": [], | |
| "name": "underlying", | |
| "outputs": [{ "internalType": "address", "name": "", "type": "address" }], | |
| "stateMutability": "view", | |
| "type": "function" | |
| }, | |
| { | |
| "inputs": [], | |
| "name": "vault", | |
| "outputs": [{ "internalType": "address", "name": "", "type": "address" }], | |
| "stateMutability": "view", | |
| "type": "function" | |
| }, | |
| { | |
| "inputs": [ | |
| { "internalType": "uint256", "name": "amount", "type": "uint256" }, | |
| { "internalType": "address", "name": "to", "type": "address" } | |
| ], | |
| "name": "withdraw", | |
| "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], | |
| "stateMutability": "nonpayable", | |
| "type": "function" | |
| }, | |
| { | |
| "inputs": [ | |
| { "internalType": "uint256", "name": "amount", "type": "uint256" } | |
| ], | |
| "name": "withdraw", | |
| "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], | |
| "stateMutability": "nonpayable", | |
| "type": "function" | |
| }, | |
| { | |
| "inputs": [], | |
| "name": "withdraw", | |
| "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], | |
| "stateMutability": "nonpayable", | |
| "type": "function" | |
| }, | |
| { | |
| "inputs": [ | |
| { "internalType": "address", "name": "from", "type": "address" }, | |
| { "internalType": "uint256", "name": "amount", "type": "uint256" }, | |
| { "internalType": "address", "name": "to", "type": "address" } | |
| ], | |
| "name": "withdrawVault", | |
| "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], | |
| "stateMutability": "nonpayable", | |
| "type": "function" | |
| } | |
| ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment