UNPKG

witnet-solidity-bridge

Version:

Witnet Solidity Bridge contracts for EVM-compatible chains

1,162 lines 48.1 kB
{ "contractName": "IERC20", "abi": [ { "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": "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": "totalSupply", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "account", "type": "address" } ], "name": "balanceOf", "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": "owner", "type": "address" }, { "internalType": "address", "name": "spender", "type": "address" } ], "name": "allowance", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "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": "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" } ], "metadata": "{\"compiler\":{\"version\":\"0.8.30+commit.73712a01\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"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\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Transfer\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"}],\"name\":\"allowance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"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\":\"account\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"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\":\"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\"}],\"devdoc\":{\"details\":\"Interface of the ERC-20 standard as defined in the ERC.\",\"events\":{\"Approval(address,address,uint256)\":{\"details\":\"Emitted when the allowance of a `spender` for an `owner` is set by a call to {approve}. `value` is the new allowance.\"},\"Transfer(address,address,uint256)\":{\"details\":\"Emitted when `value` tokens are moved from one account (`from`) to another (`to`). Note that `value` may be zero.\"}},\"kind\":\"dev\",\"methods\":{\"allowance(address,address)\":{\"details\":\"Returns the remaining number of tokens that `spender` will be allowed to spend on behalf of `owner` through {transferFrom}. This is zero by default. This value changes when {approve} or {transferFrom} are called.\"},\"approve(address,uint256)\":{\"details\":\"Sets a `value` amount of tokens as the allowance of `spender` over the caller's tokens. Returns a boolean value indicating whether the operation succeeded. IMPORTANT: Beware that changing an allowance with this method brings the risk that someone may use both the old and the new allowance by unfortunate transaction ordering. One possible solution to mitigate this race condition is to first reduce the spender's allowance to 0 and set the desired value afterwards: https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 Emits an {Approval} event.\"},\"balanceOf(address)\":{\"details\":\"Returns the value of tokens owned by `account`.\"},\"totalSupply()\":{\"details\":\"Returns the value of tokens in existence.\"},\"transfer(address,uint256)\":{\"details\":\"Moves a `value` amount of tokens from the caller's account to `to`. Returns a boolean value indicating whether the operation succeeded. Emits a {Transfer} event.\"},\"transferFrom(address,address,uint256)\":{\"details\":\"Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism. `value` is then deducted from the caller's allowance. Returns a boolean value indicating whether the operation succeeded. Emits a {Transfer} event.\"}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"@openzeppelin/contracts/token/ERC20/IERC20.sol\":\"IERC20\"},\"evmVersion\":\"prague\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"@openzeppelin/contracts/token/ERC20/IERC20.sol\":{\"keccak256\":\"0x74ed01eb66b923d0d0cfe3be84604ac04b76482a55f9dd655e1ef4d367f95bc2\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://5282825a626cfe924e504274b864a652b0023591fa66f06a067b25b51ba9b303\",\"dweb:/ipfs/QmeCfPykghhMc81VJTrHTC7sF6CRvaA1FXVq2pJhwYp1dV\"]}},\"version\":1}", "bytecode": "0x", "deployedBytecode": "0x", "immutableReferences": {}, "generatedSources": [], "deployedGeneratedSources": [], "sourceMap": "", "deployedSourceMap": "", "source": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Returns the remaining number of tokens that `spender` will be\n * allowed to spend on behalf of `owner` through {transferFrom}. This is\n * zero by default.\n *\n * This value changes when {approve} or {transferFrom} are called.\n */\n function allowance(address owner, address spender) external view returns (uint256);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * IMPORTANT: Beware that changing an allowance with this method brings the risk\n * that someone may use both the old and the new allowance by unfortunate\n * transaction ordering. One possible solution to mitigate this race\n * condition is to first reduce the spender's allowance to 0 and set the\n * desired value afterwards:\n * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729\n *\n * Emits an {Approval} event.\n */\n function approve(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` is then deducted from the caller's\n * allowance.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transferFrom(address from, address to, uint256 value) external returns (bool);\n}\n", "sourcePath": "@openzeppelin\\contracts\\token\\ERC20\\IERC20.sol", "ast": { "absolutePath": "@openzeppelin/contracts/token/ERC20/IERC20.sol", "exportedSymbols": { "IERC20": [ 493 ] }, "id": 494, "license": "MIT", "nodeType": "SourceUnit", "nodes": [ { "id": 417, "literals": [ "solidity", ">=", "0.4", ".16" ], "nodeType": "PragmaDirective", "src": "106:25:2" }, { "abstract": false, "baseContracts": [], "canonicalName": "IERC20", "contractDependencies": [], "contractKind": "interface", "documentation": { "id": 418, "nodeType": "StructuredDocumentation", "src": "133:71:2", "text": " @dev Interface of the ERC-20 standard as defined in the ERC." }, "fullyImplemented": false, "id": 493, "linearizedBaseContracts": [ 493 ], "name": "IERC20", "nameLocation": "215:6:2", "nodeType": "ContractDefinition", "nodes": [ { "anonymous": false, "documentation": { "id": 419, "nodeType": "StructuredDocumentation", "src": "228:158:2", "text": " @dev Emitted when `value` tokens are moved from one account (`from`) to\n another (`to`).\n Note that `value` may be zero." }, "eventSelector": "ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef", "id": 427, "name": "Transfer", "nameLocation": "397:8:2", "nodeType": "EventDefinition", "parameters": { "id": 426, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 421, "indexed": true, "mutability": "mutable", "name": "from", "nameLocation": "422:4:2", "nodeType": "VariableDeclaration", "scope": 427, "src": "406:20:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 420, "name": "address", "nodeType": "ElementaryTypeName", "src": "406:7:2", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" }, { "constant": false, "id": 423, "indexed": true, "mutability": "mutable", "name": "to", "nameLocation": "444:2:2", "nodeType": "VariableDeclaration", "scope": 427, "src": "428:18:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 422, "name": "address", "nodeType": "ElementaryTypeName", "src": "428:7:2", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" }, { "constant": false, "id": 425, "indexed": false, "mutability": "mutable", "name": "value", "nameLocation": "456:5:2", "nodeType": "VariableDeclaration", "scope": 427, "src": "448:13:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 424, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "448:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "405:57:2" }, "src": "391:72:2" }, { "anonymous": false, "documentation": { "id": 428, "nodeType": "StructuredDocumentation", "src": "469:148:2", "text": " @dev Emitted when the allowance of a `spender` for an `owner` is set by\n a call to {approve}. `value` is the new allowance." }, "eventSelector": "8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925", "id": 436, "name": "Approval", "nameLocation": "628:8:2", "nodeType": "EventDefinition", "parameters": { "id": 435, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 430, "indexed": true, "mutability": "mutable", "name": "owner", "nameLocation": "653:5:2", "nodeType": "VariableDeclaration", "scope": 436, "src": "637:21:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 429, "name": "address", "nodeType": "ElementaryTypeName", "src": "637:7:2", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" }, { "constant": false, "id": 432, "indexed": true, "mutability": "mutable", "name": "spender", "nameLocation": "676:7:2", "nodeType": "VariableDeclaration", "scope": 436, "src": "660:23:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 431, "name": "address", "nodeType": "ElementaryTypeName", "src": "660:7:2", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" }, { "constant": false, "id": 434, "indexed": false, "mutability": "mutable", "name": "value", "nameLocation": "693:5:2", "nodeType": "VariableDeclaration", "scope": 436, "src": "685:13:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 433, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "685:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "636:63:2" }, "src": "622:78:2" }, { "documentation": { "id": 437, "nodeType": "StructuredDocumentation", "src": "706:65:2", "text": " @dev Returns the value of tokens in existence." }, "functionSelector": "18160ddd", "id": 442, "implemented": false, "kind": "function", "modifiers": [], "name": "totalSupply", "nameLocation": "785:11:2", "nodeType": "FunctionDefinition", "parameters": { "id": 438, "nodeType": "ParameterList", "parameters": [], "src": "796:2:2" }, "returnParameters": { "id": 441, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 440, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", "scope": 442, "src": "822:7:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 439, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "822:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "821:9:2" }, "scope": 493, "src": "776:55:2", "stateMutability": "view", "virtual": false, "visibility": "external" }, { "documentation": { "id": 443, "nodeType": "StructuredDocumentation", "src": "837:71:2", "text": " @dev Returns the value of tokens owned by `account`." }, "functionSelector": "70a08231", "id": 450, "implemented": false, "kind": "function", "modifiers": [], "name": "balanceOf", "nameLocation": "922:9:2", "nodeType": "FunctionDefinition", "parameters": { "id": 446, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 445, "mutability": "mutable", "name": "account", "nameLocation": "940:7:2", "nodeType": "VariableDeclaration", "scope": 450, "src": "932:15:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 444, "name": "address", "nodeType": "ElementaryTypeName", "src": "932:7:2", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" } ], "src": "931:17:2" }, "returnParameters": { "id": 449, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 448, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", "scope": 450, "src": "972:7:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 447, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "972:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "971:9:2" }, "scope": 493, "src": "913:68:2", "stateMutability": "view", "virtual": false, "visibility": "external" }, { "documentation": { "id": 451, "nodeType": "StructuredDocumentation", "src": "987:213:2", "text": " @dev Moves a `value` amount of tokens from the caller's account to `to`.\n Returns a boolean value indicating whether the operation succeeded.\n Emits a {Transfer} event." }, "functionSelector": "a9059cbb", "id": 460, "implemented": false, "kind": "function", "modifiers": [], "name": "transfer", "nameLocation": "1214:8:2", "nodeType": "FunctionDefinition", "parameters": { "id": 456, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 453, "mutability": "mutable", "name": "to", "nameLocation": "1231:2:2", "nodeType": "VariableDeclaration", "scope": 460, "src": "1223:10:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 452, "name": "address", "nodeType": "ElementaryTypeName", "src": "1223:7:2", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" }, { "constant": false, "id": 455, "mutability": "mutable", "name": "value", "nameLocation": "1243:5:2", "nodeType": "VariableDeclaration", "scope": 460, "src": "1235:13:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 454, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "1235:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "1222:27:2" }, "returnParameters": { "id": 459, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 458, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", "scope": 460, "src": "1268:4:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 457, "name": "bool", "nodeType": "ElementaryTypeName", "src": "1268:4:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "visibility": "internal" } ], "src": "1267:6:2" }, "scope": 493, "src": "1205:69:2", "stateMutability": "nonpayable", "virtual": false, "visibility": "external" }, { "documentation": { "id": 461, "nodeType": "StructuredDocumentation", "src": "1280:264:2", "text": " @dev Returns the remaining number of tokens that `spender` will be\n allowed to spend on behalf of `owner` through {transferFrom}. This is\n zero by default.\n This value changes when {approve} or {transferFrom} are called." }, "functionSelector": "dd62ed3e", "id": 470, "implemented": false, "kind": "function", "modifiers": [], "name": "allowance", "nameLocation": "1558:9:2", "nodeType": "FunctionDefinition", "parameters": { "id": 466, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 463, "mutability": "mutable", "name": "owner", "nameLocation": "1576:5:2", "nodeType": "VariableDeclaration", "scope": 470, "src": "1568:13:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 462, "name": "address", "nodeType": "ElementaryTypeName", "src": "1568:7:2", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" }, { "constant": false, "id": 465, "mutability": "mutable", "name": "spender", "nameLocation": "1591:7:2", "nodeType": "VariableDeclaration", "scope": 470, "src": "1583:15:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 464, "name": "address", "nodeType": "ElementaryTypeName", "src": "1583:7:2", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" } ], "src": "1567:32:2" }, "returnParameters": { "id": 469, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 468, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", "scope": 470, "src": "1623:7:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 467, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "1623:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "1622:9:2" }, "scope": 493, "src": "1549:83:2", "stateMutability": "view", "virtual": false, "visibility": "external" }, { "documentation": { "id": 471, "nodeType": "StructuredDocumentation", "src": "1638:667:2", "text": " @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n caller's tokens.\n Returns a boolean value indicating whether the operation succeeded.\n IMPORTANT: Beware that changing an allowance with this method brings the risk\n that someone may use both the old and the new allowance by unfortunate\n transaction ordering. One possible solution to mitigate this race\n condition is to first reduce the spender's allowance to 0 and set the\n desired value afterwards:\n https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729\n Emits an {Approval} event." }, "functionSelector": "095ea7b3", "id": 480, "implemented": false, "kind": "function", "modifiers": [], "name": "approve", "nameLocation": "2319:7:2", "nodeType": "FunctionDefinition", "parameters": { "id": 476, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 473, "mutability": "mutable", "name": "spender", "nameLocation": "2335:7:2", "nodeType": "VariableDeclaration", "scope": 480, "src": "2327:15:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 472, "name": "address", "nodeType": "ElementaryTypeName", "src": "2327:7:2", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" }, { "constant": false, "id": 475, "mutability": "mutable", "name": "value", "nameLocation": "2352:5:2", "nodeType": "VariableDeclaration", "scope": 480, "src": "2344:13:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 474, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "2344:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "2326:32:2" }, "returnParameters": { "id": 479, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 478, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", "scope": 480, "src": "2377:4:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 477, "name": "bool", "nodeType": "ElementaryTypeName", "src": "2377:4:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "visibility": "internal" } ], "src": "2376:6:2" }, "scope": 493, "src": "2310:73:2", "stateMutability": "nonpayable", "virtual": false, "visibility": "external" }, { "documentation": { "id": 481, "nodeType": "StructuredDocumentation", "src": "2389:297:2", "text": " @dev Moves a `value` amount of tokens from `from` to `to` using the\n allowance mechanism. `value` is then deducted from the caller's\n allowance.\n Returns a boolean value indicating whether the operation succeeded.\n Emits a {Transfer} event." }, "functionSelector": "23b872dd", "id": 492, "implemented": false, "kind": "function", "modifiers": [], "name": "transferFrom", "nameLocation": "2700:12:2", "nodeType": "FunctionDefinition", "parameters": { "id": 488, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 483, "mutability": "mutable", "name": "from", "nameLocation": "2721:4:2", "nodeType": "VariableDeclaration", "scope": 492, "src": "2713:12:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 482, "name": "address", "nodeType": "ElementaryTypeName", "src": "2713:7:2", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" }, { "constant": false, "id": 485, "mutability": "mutable", "name": "to", "nameLocation": "2735:2:2", "nodeType": "VariableDeclaration", "scope": 492, "src": "2727:10:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 484, "name": "address", "nodeType": "ElementaryTypeName", "src": "2727:7:2", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" }, { "constant": false, "id": 487, "mutability": "mutable", "name": "value", "nameLocation": "2747:5:2", "nodeType": "VariableDeclaration", "scope": 492, "src": "2739:13:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 486, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "2739:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "2712:41:2" }, "returnParameters": { "id": 491, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 490, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", "scope": 492, "src": "2772:4:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 489, "name": "bool", "nodeType": "ElementaryTypeName", "src": "2772:4:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "visibility": "internal" } ], "src": "2771:6:2" }, "scope": 493, "src": "2691:87:2", "stateMutability": "nonpayable", "virtual": false, "visibility": "external" } ], "scope": 494, "src": "205:2575:2", "usedErrors": [], "usedEvents": [ 427, 436 ] } ], "src": "106:2675:2" }, "compiler": { "name": "solc", "version": "0.8.30+commit.73712a01.Emscripten.clang" }, "networks": {}, "schemaVersion": "3.4.16", "updatedAt": "2025-10-15T14:34:45.314Z", "devdoc": { "details": "Interface of the ERC-20 standard as defined in the ERC.", "events": { "Approval(address,address,uint256)": { "details": "Emitted when the allowance of a `spender` for an `owner` is set by a call to {approve}. `value` is the new allowance." }, "Transfer(address,address,uint256)": { "details": "Emitted when `value` tokens are moved from one account (`from`) to another (`to`). Note that `value` may be zero." } }, "kind": "dev", "methods": { "allowance(address,address)": { "details": "Returns the remaining number of tokens that `spender` will be allowed to spend on behalf of `owner` through {transferFrom}. This is zero by default. This value changes when {approve} or {transferFrom} are called." }, "approve(address,uint256)": { "details": "Sets a `value` amount of tokens as the allowance of `spender` over the caller's tokens. Returns a boolean value indicating whether the operation succeeded. IMPORTANT: Beware that changing an allowance with this method brings the risk that someone may use both the old and the new allowance by unfortunate transaction ordering. One possible solution to mitigate this race condition is to first reduce the spender's allowance to 0 and set the desired value afterwards: https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 Emits an {Approval} event." }, "balanceOf(address)": { "details": "Returns the value of tokens owned by `account`." }, "totalSupply()": { "details": "Returns the value of tokens in existence." }, "transfer(address,uint256)": { "details": "Moves a `value` amount of tokens from the caller's account to `to`. Returns a boolean value indicating whether the operation succeeded. Emits a {Transfer} event." }, "transferFrom(address,address,uint256)": { "details": "Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism. `value` is then deducted from the caller's allowance. Returns a boolean value indicating whether the operation succeeded. Emits a {Transfer} event." } }, "version": 1 }, "userdoc": { "kind": "user", "methods": {}, "version": 1 } }