ABI of contract 0x50327c6c5a14dcade707abad2e27eb517df87ab5 on Ethereum Mainnet
- Chain: Ethereum Mainnet (1)
- Contract Address: 0x50327c6c5a14dcade707abad2e27eb517df87ab5
- Source: https://etherscan.io/address/0x50327c6c5a14dcade707abad2e27eb517df87ab5#code
Importing Packages By URL
npm install https://evm-abis.xyz/1/0x50327c6c5a14dcade707abad2e27eb517df87ab5
This generates an entry in package.json:
"dependencies": {
"@evm-abis/1-0x50327c6c5a14dcade707abad2e27eb517df87ab5": "https://evm-abis.xyz/1/0x50327c6c5a14dcade707abad2e27eb517df87ab5"
}
You can also rename the package entry after adding it:
"dependencies": {
"@evm-abis/mainnet-aave": "https://evm-abis.xyz/1/0x50327c6c5a14dcade707abad2e27eb517df87ab5"
}
Importing Packages By Package Name
To import by package name, first, obtain/create the package name using the POST https://evm-abis.xyz/:chainId/:contractAddress
route:
curl -X POST 'https://evm-abis.xyz/1/0x50327c6c5a14dcade707abad2e27eb517df87ab5'
Receive:
{
"name": "@evm-abis/1-0x50327c6c5a14dcade707abad2e27eb517df87ab5@1.0.6",
"url": "https://registry.npmjs.org/@evm-abis/1-0x50327c6c5a14dcade707abad2e27eb517df87ab5/-/1-0x50327c6c5a14dcade707abad2e27eb517df87ab5-1.0.6.tgz"
}
Then install the package:
npm install @evm-abis/1-0x50327c6c5a14dcade707abad2e27eb517df87ab5@1.0.6
This solution ensures dependency only on the npmjs registry, allowing for optimal use of caching systems.
ABI Code
[
{
"type": "constructor",
"inputs": [
{
"name": "name_",
"internalType": "string",
"type": "string"
},
{
"name": "symbol_",
"internalType": "string",
"type": "string"
}
],
"stateMutability": "nonpayable"
},
{
"type": "event",
"anonymous": false,
"inputs": [
{
"name": "owner",
"internalType": "address",
"type": "address",
"indexed": true
},
{
"name": "spender",
"internalType": "address",
"type": "address",
"indexed": true
},
{
"name": "value",
"internalType": "uint256",
"type": "uint256",
"indexed": false
}
],
"name": "Approval"
},
{
"type": "event",
"anonymous": false,
"inputs": [
{
"name": "userAddress",
"internalType": "address",
"type": "address",
"indexed": false
},
{
"name": "relayerAddress",
"internalType": "address payable",
"type": "address",
"indexed": false
},
{
"name": "functionSignature",
"internalType": "bytes",
"type": "bytes",
"indexed": false
}
],
"name": "MetaTransactionExecuted"
},
{
"type": "event",
"anonymous": false,
"inputs": [
{
"name": "role",
"internalType": "bytes32",
"type": "bytes32",
"indexed": true
},
{
"name": "previousAdminRole",
"internalType": "bytes32",
"type": "bytes32",
"indexed": true
},
{
"name": "newAdminRole",
"internalType": "bytes32",
"type": "bytes32",
"indexed": true
}
],
"name": "RoleAdminChanged"
},
{
"type": "event",
"anonymous": false,
"inputs": [
{
"name": "role",
"internalType": "bytes32",
"type": "bytes32",
"indexed": true
},
{
"name": "account",
"internalType": "address",
"type": "address",
"indexed": true
},
{
"name": "sender",
"internalType": "address",
"type": "address",
"indexed": true
}
],
"name": "RoleGranted"
},
{
"type": "event",
"anonymous": false,
"inputs": [
{
"name": "role",
"internalType": "bytes32",
"type": "bytes32",
"indexed": true
},
{
"name": "account",
"internalType": "address",
"type": "address",
"indexed": true
},
{
"name": "sender",
"internalType": "address",
"type": "address",
"indexed": true
}
],
"name": "RoleRevoked"
},
{
"type": "event",
"anonymous": false,
"inputs": [
{
"name": "from",
"internalType": "address",
"type": "address",
"indexed": true
},
{
"name": "to",
"internalType": "address",
"type": "address",
"indexed": true
},
{
"name": "value",
"internalType": "uint256",
"type": "uint256",
"indexed": false
}
],
"name": "Transfer"
},
{
"type": "function",
"inputs": [],
"name": "DEFAULT_ADMIN_ROLE",
"outputs": [
{
"name": "",
"internalType": "bytes32",
"type": "bytes32"
}
],
"stateMutability": "view"
},
{
"type": "function",
"inputs": [],
"name": "ERC712_VERSION",
"outputs": [
{
"name": "",
"internalType": "string",
"type": "string"
}
],
"stateMutability": "view"
},
{
"type": "function",
"inputs": [],
"name": "PREDICATE_ROLE",
"outputs": [
{
"name": "",
"internalType": "bytes32",
"type": "bytes32"
}
],
"stateMutability": "view"
},
{
"type": "function",
"inputs": [
{
"name": "owner",
"internalType": "address",
"type": "address"
},
{
"name": "spender",
"internalType": "address",
"type": "address"
}
],
"name": "allowance",
"outputs": [
{
"name": "",
"internalType": "uint256",
"type": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"inputs": [
{
"name": "spender",
"internalType": "address",
"type": "address"
},
{
"name": "amount",
"internalType": "uint256",
"type": "uint256"
}
],
"name": "approve",
"outputs": [
{
"name": "",
"internalType": "bool",
"type": "bool"
}
],
"stateMutability": "nonpayable"
},
{
"type": "function",
"inputs": [
{
"name": "account",
"internalType": "address",
"type": "address"
}
],
"name": "balanceOf",
"outputs": [
{
"name": "",
"internalType": "uint256",
"type": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"inputs": [],
"name": "decimals",
"outputs": [
{
"name": "",
"internalType": "uint8",
"type": "uint8"
}
],
"stateMutability": "view"
},
{
"type": "function",
"inputs": [
{
"name": "spender",
"internalType": "address",
"type": "address"
},
{
"name": "subtractedValue",
"internalType": "uint256",
"type": "uint256"
}
],
"name": "decreaseAllowance",
"outputs": [
{
"name": "",
"internalType": "bool",
"type": "bool"
}
],
"stateMutability": "nonpayable"
},
{
"type": "function",
"inputs": [
{
"name": "userAddress",
"internalType": "address",
"type": "address"
},
{
"name": "functionSignature",
"internalType": "bytes",
"type": "bytes"
},
{
"name": "sigR",
"internalType": "bytes32",
"type": "bytes32"
},
{
"name": "sigS",
"internalType": "bytes32",
"type": "bytes32"
},
{
"name": "sigV",
"internalType": "uint8",
"type": "uint8"
}
],
"name": "executeMetaTransaction",
"outputs": [
{
"name": "",
"internalType": "bytes",
"type": "bytes"
}
],
"stateMutability": "payable"
},
{
"type": "function",
"inputs": [],
"name": "getChainId",
"outputs": [
{
"name": "",
"internalType": "uint256",
"type": "uint256"
}
],
"stateMutability": "pure"
},
{
"type": "function",
"inputs": [],
"name": "getDomainSeperator",
"outputs": [
{
"name": "",
"internalType": "bytes32",
"type": "bytes32"
}
],
"stateMutability": "view"
},
{
"type": "function",
"inputs": [
{
"name": "user",
"internalType": "address",
"type": "address"
}
],
"name": "getNonce",
"outputs": [
{
"name": "nonce",
"internalType": "uint256",
"type": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"inputs": [
{
"name": "role",
"internalType": "bytes32",
"type": "bytes32"
}
],
"name": "getRoleAdmin",
"outputs": [
{
"name": "",
"internalType": "bytes32",
"type": "bytes32"
}
],
"stateMutability": "view"
},
{
"type": "function",
"inputs": [
{
"name": "role",
"internalType": "bytes32",
"type": "bytes32"
},
{
"name": "index",
"internalType": "uint256",
"type": "uint256"
}
],
"name": "getRoleMember",
"outputs": [
{
"name": "",
"internalType": "address",
"type": "address"
}
],
"stateMutability": "view"
},
{
"type": "function",
"inputs": [
{
"name": "role",
"internalType": "bytes32",
"type": "bytes32"
}
],
"name": "getRoleMemberCount",
"outputs": [
{
"name": "",
"internalType": "uint256",
"type": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"inputs": [
{
"name": "role",
"internalType": "bytes32",
"type": "bytes32"
},
{
"name": "account",
"internalType": "address",
"type": "address"
}
],
"name": "grantRole",
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"inputs": [
{
"name": "role",
"internalType": "bytes32",
"type": "bytes32"
},
{
"name": "account",
"internalType": "address",
"type": "address"
}
],
"name": "hasRole",
"outputs": [
{
"name": "",
"internalType": "bool",
"type": "bool"
}
],
"stateMutability": "view"
},
{
"type": "function",
"inputs": [
{
"name": "spender",
"internalType": "address",
"type": "address"
},
{
"name": "addedValue",
"internalType": "uint256",
"type": "uint256"
}
],
"name": "increaseAllowance",
"outputs": [
{
"name": "",
"internalType": "bool",
"type": "bool"
}
],
"stateMutability": "nonpayable"
},
{
"type": "function",
"inputs": [
{
"name": "user",
"internalType": "address",
"type": "address"
},
{
"name": "amount",
"internalType": "uint256",
"type": "uint256"
}
],
"name": "mint",
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"inputs": [],
"name": "name",
"outputs": [
{
"name": "",
"internalType": "string",
"type": "string"
}
],
"stateMutability": "view"
},
{
"type": "function",
"inputs": [
{
"name": "role",
"internalType": "bytes32",
"type": "bytes32"
},
{
"name": "account",
"internalType": "address",
"type": "address"
}
],
"name": "renounceRole",
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"inputs": [
{
"name": "role",
"internalType": "bytes32",
"type": "bytes32"
},
{
"name": "account",
"internalType": "address",
"type": "address"
}
],
"name": "revokeRole",
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"inputs": [],
"name": "symbol",
"outputs": [
{
"name": "",
"internalType": "string",
"type": "string"
}
],
"stateMutability": "view"
},
{
"type": "function",
"inputs": [],
"name": "totalSupply",
"outputs": [
{
"name": "",
"internalType": "uint256",
"type": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"inputs": [
{
"name": "recipient",
"internalType": "address",
"type": "address"
},
{
"name": "amount",
"internalType": "uint256",
"type": "uint256"
}
],
"name": "transfer",
"outputs": [
{
"name": "",
"internalType": "bool",
"type": "bool"
}
],
"stateMutability": "nonpayable"
},
{
"type": "function",
"inputs": [
{
"name": "sender",
"internalType": "address",
"type": "address"
},
{
"name": "recipient",
"internalType": "address",
"type": "address"
},
{
"name": "amount",
"internalType": "uint256",
"type": "uint256"
}
],
"name": "transferFrom",
"outputs": [
{
"name": "",
"internalType": "bool",
"type": "bool"
}
],
"stateMutability": "nonpayable"
}
]