secure-transac-contracts 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/contracts/AccessControl.json +4579 -0
- package/build/contracts/Context.json +356 -0
- package/build/contracts/CreditSystem.json +6037 -0
- package/build/contracts/ECDSA.json +4734 -0
- package/build/contracts/EIP712.json +3021 -0
- package/build/contracts/ERC165.json +352 -0
- package/build/contracts/ERC20.json +6816 -0
- package/build/contracts/ERC20Permit.json +2658 -0
- package/build/contracts/ERC721.json +12779 -0
- package/build/contracts/ERC721Utils.json +1058 -0
- package/build/contracts/Groth16Verifier.json +6298 -0
- package/build/contracts/Guardian.json +1116 -0
- package/build/contracts/IERC1155Errors.json +1687 -0
- package/build/contracts/IERC165.json +197 -0
- package/build/contracts/IERC20.json +1162 -0
- package/build/contracts/IERC20Errors.json +1662 -0
- package/build/contracts/IERC20Metadata.json +574 -0
- package/build/contracts/IERC20Permit.json +546 -0
- package/build/contracts/IERC5267.json +392 -0
- package/build/contracts/IERC721.json +1729 -0
- package/build/contracts/IERC721Errors.json +1694 -0
- package/build/contracts/IERC721Metadata.json +728 -0
- package/build/contracts/IERC721Receiver.json +296 -0
- package/build/contracts/IGuardian.json +215 -0
- package/build/contracts/ITrustRegistry.json +6767 -0
- package/build/contracts/IdentityVault.json +11584 -0
- package/build/contracts/Math.json +23115 -0
- package/build/contracts/MessageHashUtils.json +1668 -0
- package/build/contracts/Nonces.json +865 -0
- package/build/contracts/Ownable.json +1859 -0
- package/build/contracts/Panic.json +798 -0
- package/build/contracts/ReportingSystem.json +2787 -0
- package/build/contracts/SafeCast.json +21592 -0
- package/build/contracts/ScoringSystem.json +11245 -0
- package/build/contracts/SecureTransacSBT.json +18823 -0
- package/build/contracts/SecureTransacToken.json +19225 -0
- package/build/contracts/SecureVault.json +12890 -0
- package/build/contracts/ShortStrings.json +2852 -0
- package/build/contracts/SignedMath.json +1915 -0
- package/build/contracts/StorageSlot.json +1773 -0
- package/build/contracts/Strings.json +19001 -0
- package/build/contracts/TransactionLogger.json +5325 -0
- package/build/contracts/TrustDAO.json +23850 -0
- package/build/contracts/TrustRegistry.json +10948 -0
- package/build/contracts/VerificationRegistry.json +12811 -0
- package/build/contracts/ZKIdentityVerifier.json +13979 -0
- package/contracts/AccessControl.sol +34 -0
- package/contracts/CreditSystem.sol +48 -0
- package/contracts/Guardian.sol +33 -0
- package/contracts/IGuardian.sol +7 -0
- package/contracts/IdentityVault.sol +57 -0
- package/contracts/ReportingSystem.sol +14 -0
- package/contracts/ScoringSystem.sol +71 -0
- package/contracts/SecureTransacSBT.sol +72 -0
- package/contracts/SecureTransacToken.sol +20 -0
- package/contracts/SecureVault.sol +24 -0
- package/contracts/TransactionLogger.sol +12 -0
- package/contracts/TrustDAO.sol +158 -0
- package/contracts/TrustRegistry.sol +23 -0
- package/contracts/VerificationRegistry.sol +51 -0
- package/contracts/ZKIdentityVerifier.sol +38 -0
- package/contracts/ZKScoreVerifier.sol +175 -0
- package/package.json +32 -0
|
@@ -0,0 +1,1162 @@
|
|
|
1
|
+
{
|
|
2
|
+
"contractName": "IERC20",
|
|
3
|
+
"abi": [
|
|
4
|
+
{
|
|
5
|
+
"anonymous": false,
|
|
6
|
+
"inputs": [
|
|
7
|
+
{
|
|
8
|
+
"indexed": true,
|
|
9
|
+
"internalType": "address",
|
|
10
|
+
"name": "owner",
|
|
11
|
+
"type": "address"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"indexed": true,
|
|
15
|
+
"internalType": "address",
|
|
16
|
+
"name": "spender",
|
|
17
|
+
"type": "address"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"indexed": false,
|
|
21
|
+
"internalType": "uint256",
|
|
22
|
+
"name": "value",
|
|
23
|
+
"type": "uint256"
|
|
24
|
+
}
|
|
25
|
+
],
|
|
26
|
+
"name": "Approval",
|
|
27
|
+
"type": "event"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"anonymous": false,
|
|
31
|
+
"inputs": [
|
|
32
|
+
{
|
|
33
|
+
"indexed": true,
|
|
34
|
+
"internalType": "address",
|
|
35
|
+
"name": "from",
|
|
36
|
+
"type": "address"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"indexed": true,
|
|
40
|
+
"internalType": "address",
|
|
41
|
+
"name": "to",
|
|
42
|
+
"type": "address"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"indexed": false,
|
|
46
|
+
"internalType": "uint256",
|
|
47
|
+
"name": "value",
|
|
48
|
+
"type": "uint256"
|
|
49
|
+
}
|
|
50
|
+
],
|
|
51
|
+
"name": "Transfer",
|
|
52
|
+
"type": "event"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"inputs": [],
|
|
56
|
+
"name": "totalSupply",
|
|
57
|
+
"outputs": [
|
|
58
|
+
{
|
|
59
|
+
"internalType": "uint256",
|
|
60
|
+
"name": "",
|
|
61
|
+
"type": "uint256"
|
|
62
|
+
}
|
|
63
|
+
],
|
|
64
|
+
"stateMutability": "view",
|
|
65
|
+
"type": "function"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"inputs": [
|
|
69
|
+
{
|
|
70
|
+
"internalType": "address",
|
|
71
|
+
"name": "account",
|
|
72
|
+
"type": "address"
|
|
73
|
+
}
|
|
74
|
+
],
|
|
75
|
+
"name": "balanceOf",
|
|
76
|
+
"outputs": [
|
|
77
|
+
{
|
|
78
|
+
"internalType": "uint256",
|
|
79
|
+
"name": "",
|
|
80
|
+
"type": "uint256"
|
|
81
|
+
}
|
|
82
|
+
],
|
|
83
|
+
"stateMutability": "view",
|
|
84
|
+
"type": "function"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"inputs": [
|
|
88
|
+
{
|
|
89
|
+
"internalType": "address",
|
|
90
|
+
"name": "to",
|
|
91
|
+
"type": "address"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"internalType": "uint256",
|
|
95
|
+
"name": "value",
|
|
96
|
+
"type": "uint256"
|
|
97
|
+
}
|
|
98
|
+
],
|
|
99
|
+
"name": "transfer",
|
|
100
|
+
"outputs": [
|
|
101
|
+
{
|
|
102
|
+
"internalType": "bool",
|
|
103
|
+
"name": "",
|
|
104
|
+
"type": "bool"
|
|
105
|
+
}
|
|
106
|
+
],
|
|
107
|
+
"stateMutability": "nonpayable",
|
|
108
|
+
"type": "function"
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"inputs": [
|
|
112
|
+
{
|
|
113
|
+
"internalType": "address",
|
|
114
|
+
"name": "owner",
|
|
115
|
+
"type": "address"
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"internalType": "address",
|
|
119
|
+
"name": "spender",
|
|
120
|
+
"type": "address"
|
|
121
|
+
}
|
|
122
|
+
],
|
|
123
|
+
"name": "allowance",
|
|
124
|
+
"outputs": [
|
|
125
|
+
{
|
|
126
|
+
"internalType": "uint256",
|
|
127
|
+
"name": "",
|
|
128
|
+
"type": "uint256"
|
|
129
|
+
}
|
|
130
|
+
],
|
|
131
|
+
"stateMutability": "view",
|
|
132
|
+
"type": "function"
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"inputs": [
|
|
136
|
+
{
|
|
137
|
+
"internalType": "address",
|
|
138
|
+
"name": "spender",
|
|
139
|
+
"type": "address"
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"internalType": "uint256",
|
|
143
|
+
"name": "value",
|
|
144
|
+
"type": "uint256"
|
|
145
|
+
}
|
|
146
|
+
],
|
|
147
|
+
"name": "approve",
|
|
148
|
+
"outputs": [
|
|
149
|
+
{
|
|
150
|
+
"internalType": "bool",
|
|
151
|
+
"name": "",
|
|
152
|
+
"type": "bool"
|
|
153
|
+
}
|
|
154
|
+
],
|
|
155
|
+
"stateMutability": "nonpayable",
|
|
156
|
+
"type": "function"
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
"inputs": [
|
|
160
|
+
{
|
|
161
|
+
"internalType": "address",
|
|
162
|
+
"name": "from",
|
|
163
|
+
"type": "address"
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
"internalType": "address",
|
|
167
|
+
"name": "to",
|
|
168
|
+
"type": "address"
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"internalType": "uint256",
|
|
172
|
+
"name": "value",
|
|
173
|
+
"type": "uint256"
|
|
174
|
+
}
|
|
175
|
+
],
|
|
176
|
+
"name": "transferFrom",
|
|
177
|
+
"outputs": [
|
|
178
|
+
{
|
|
179
|
+
"internalType": "bool",
|
|
180
|
+
"name": "",
|
|
181
|
+
"type": "bool"
|
|
182
|
+
}
|
|
183
|
+
],
|
|
184
|
+
"stateMutability": "nonpayable",
|
|
185
|
+
"type": "function"
|
|
186
|
+
}
|
|
187
|
+
],
|
|
188
|
+
"metadata": "{\"compiler\":{\"version\":\"0.8.21+commit.d9974bed\"},\"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\":\"shanghai\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\"@openzeppelin/contracts/token/ERC20/IERC20.sol\":{\"keccak256\":\"0x74ed01eb66b923d0d0cfe3be84604ac04b76482a55f9dd655e1ef4d367f95bc2\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://5282825a626cfe924e504274b864a652b0023591fa66f06a067b25b51ba9b303\",\"dweb:/ipfs/QmeCfPykghhMc81VJTrHTC7sF6CRvaA1FXVq2pJhwYp1dV\"]}},\"version\":1}",
|
|
189
|
+
"bytecode": "0x",
|
|
190
|
+
"deployedBytecode": "0x",
|
|
191
|
+
"immutableReferences": {},
|
|
192
|
+
"generatedSources": [],
|
|
193
|
+
"deployedGeneratedSources": [],
|
|
194
|
+
"sourceMap": "",
|
|
195
|
+
"deployedSourceMap": "",
|
|
196
|
+
"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",
|
|
197
|
+
"sourcePath": "@openzeppelin\\contracts\\token\\ERC20\\IERC20.sol",
|
|
198
|
+
"ast": {
|
|
199
|
+
"absolutePath": "@openzeppelin/contracts/token/ERC20/IERC20.sol",
|
|
200
|
+
"exportedSymbols": {
|
|
201
|
+
"IERC20": [
|
|
202
|
+
902
|
|
203
|
+
]
|
|
204
|
+
},
|
|
205
|
+
"id": 903,
|
|
206
|
+
"license": "MIT",
|
|
207
|
+
"nodeType": "SourceUnit",
|
|
208
|
+
"nodes": [
|
|
209
|
+
{
|
|
210
|
+
"id": 826,
|
|
211
|
+
"literals": [
|
|
212
|
+
"solidity",
|
|
213
|
+
">=",
|
|
214
|
+
"0.4",
|
|
215
|
+
".16"
|
|
216
|
+
],
|
|
217
|
+
"nodeType": "PragmaDirective",
|
|
218
|
+
"src": "106:25:4"
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
"abstract": false,
|
|
222
|
+
"baseContracts": [],
|
|
223
|
+
"canonicalName": "IERC20",
|
|
224
|
+
"contractDependencies": [],
|
|
225
|
+
"contractKind": "interface",
|
|
226
|
+
"documentation": {
|
|
227
|
+
"id": 827,
|
|
228
|
+
"nodeType": "StructuredDocumentation",
|
|
229
|
+
"src": "133:71:4",
|
|
230
|
+
"text": " @dev Interface of the ERC-20 standard as defined in the ERC."
|
|
231
|
+
},
|
|
232
|
+
"fullyImplemented": false,
|
|
233
|
+
"id": 902,
|
|
234
|
+
"linearizedBaseContracts": [
|
|
235
|
+
902
|
|
236
|
+
],
|
|
237
|
+
"name": "IERC20",
|
|
238
|
+
"nameLocation": "215:6:4",
|
|
239
|
+
"nodeType": "ContractDefinition",
|
|
240
|
+
"nodes": [
|
|
241
|
+
{
|
|
242
|
+
"anonymous": false,
|
|
243
|
+
"documentation": {
|
|
244
|
+
"id": 828,
|
|
245
|
+
"nodeType": "StructuredDocumentation",
|
|
246
|
+
"src": "228:158:4",
|
|
247
|
+
"text": " @dev Emitted when `value` tokens are moved from one account (`from`) to\n another (`to`).\n Note that `value` may be zero."
|
|
248
|
+
},
|
|
249
|
+
"eventSelector": "ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
|
|
250
|
+
"id": 836,
|
|
251
|
+
"name": "Transfer",
|
|
252
|
+
"nameLocation": "397:8:4",
|
|
253
|
+
"nodeType": "EventDefinition",
|
|
254
|
+
"parameters": {
|
|
255
|
+
"id": 835,
|
|
256
|
+
"nodeType": "ParameterList",
|
|
257
|
+
"parameters": [
|
|
258
|
+
{
|
|
259
|
+
"constant": false,
|
|
260
|
+
"id": 830,
|
|
261
|
+
"indexed": true,
|
|
262
|
+
"mutability": "mutable",
|
|
263
|
+
"name": "from",
|
|
264
|
+
"nameLocation": "422:4:4",
|
|
265
|
+
"nodeType": "VariableDeclaration",
|
|
266
|
+
"scope": 836,
|
|
267
|
+
"src": "406:20:4",
|
|
268
|
+
"stateVariable": false,
|
|
269
|
+
"storageLocation": "default",
|
|
270
|
+
"typeDescriptions": {
|
|
271
|
+
"typeIdentifier": "t_address",
|
|
272
|
+
"typeString": "address"
|
|
273
|
+
},
|
|
274
|
+
"typeName": {
|
|
275
|
+
"id": 829,
|
|
276
|
+
"name": "address",
|
|
277
|
+
"nodeType": "ElementaryTypeName",
|
|
278
|
+
"src": "406:7:4",
|
|
279
|
+
"stateMutability": "nonpayable",
|
|
280
|
+
"typeDescriptions": {
|
|
281
|
+
"typeIdentifier": "t_address",
|
|
282
|
+
"typeString": "address"
|
|
283
|
+
}
|
|
284
|
+
},
|
|
285
|
+
"visibility": "internal"
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
"constant": false,
|
|
289
|
+
"id": 832,
|
|
290
|
+
"indexed": true,
|
|
291
|
+
"mutability": "mutable",
|
|
292
|
+
"name": "to",
|
|
293
|
+
"nameLocation": "444:2:4",
|
|
294
|
+
"nodeType": "VariableDeclaration",
|
|
295
|
+
"scope": 836,
|
|
296
|
+
"src": "428:18:4",
|
|
297
|
+
"stateVariable": false,
|
|
298
|
+
"storageLocation": "default",
|
|
299
|
+
"typeDescriptions": {
|
|
300
|
+
"typeIdentifier": "t_address",
|
|
301
|
+
"typeString": "address"
|
|
302
|
+
},
|
|
303
|
+
"typeName": {
|
|
304
|
+
"id": 831,
|
|
305
|
+
"name": "address",
|
|
306
|
+
"nodeType": "ElementaryTypeName",
|
|
307
|
+
"src": "428:7:4",
|
|
308
|
+
"stateMutability": "nonpayable",
|
|
309
|
+
"typeDescriptions": {
|
|
310
|
+
"typeIdentifier": "t_address",
|
|
311
|
+
"typeString": "address"
|
|
312
|
+
}
|
|
313
|
+
},
|
|
314
|
+
"visibility": "internal"
|
|
315
|
+
},
|
|
316
|
+
{
|
|
317
|
+
"constant": false,
|
|
318
|
+
"id": 834,
|
|
319
|
+
"indexed": false,
|
|
320
|
+
"mutability": "mutable",
|
|
321
|
+
"name": "value",
|
|
322
|
+
"nameLocation": "456:5:4",
|
|
323
|
+
"nodeType": "VariableDeclaration",
|
|
324
|
+
"scope": 836,
|
|
325
|
+
"src": "448:13:4",
|
|
326
|
+
"stateVariable": false,
|
|
327
|
+
"storageLocation": "default",
|
|
328
|
+
"typeDescriptions": {
|
|
329
|
+
"typeIdentifier": "t_uint256",
|
|
330
|
+
"typeString": "uint256"
|
|
331
|
+
},
|
|
332
|
+
"typeName": {
|
|
333
|
+
"id": 833,
|
|
334
|
+
"name": "uint256",
|
|
335
|
+
"nodeType": "ElementaryTypeName",
|
|
336
|
+
"src": "448:7:4",
|
|
337
|
+
"typeDescriptions": {
|
|
338
|
+
"typeIdentifier": "t_uint256",
|
|
339
|
+
"typeString": "uint256"
|
|
340
|
+
}
|
|
341
|
+
},
|
|
342
|
+
"visibility": "internal"
|
|
343
|
+
}
|
|
344
|
+
],
|
|
345
|
+
"src": "405:57:4"
|
|
346
|
+
},
|
|
347
|
+
"src": "391:72:4"
|
|
348
|
+
},
|
|
349
|
+
{
|
|
350
|
+
"anonymous": false,
|
|
351
|
+
"documentation": {
|
|
352
|
+
"id": 837,
|
|
353
|
+
"nodeType": "StructuredDocumentation",
|
|
354
|
+
"src": "469:148:4",
|
|
355
|
+
"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."
|
|
356
|
+
},
|
|
357
|
+
"eventSelector": "8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925",
|
|
358
|
+
"id": 845,
|
|
359
|
+
"name": "Approval",
|
|
360
|
+
"nameLocation": "628:8:4",
|
|
361
|
+
"nodeType": "EventDefinition",
|
|
362
|
+
"parameters": {
|
|
363
|
+
"id": 844,
|
|
364
|
+
"nodeType": "ParameterList",
|
|
365
|
+
"parameters": [
|
|
366
|
+
{
|
|
367
|
+
"constant": false,
|
|
368
|
+
"id": 839,
|
|
369
|
+
"indexed": true,
|
|
370
|
+
"mutability": "mutable",
|
|
371
|
+
"name": "owner",
|
|
372
|
+
"nameLocation": "653:5:4",
|
|
373
|
+
"nodeType": "VariableDeclaration",
|
|
374
|
+
"scope": 845,
|
|
375
|
+
"src": "637:21:4",
|
|
376
|
+
"stateVariable": false,
|
|
377
|
+
"storageLocation": "default",
|
|
378
|
+
"typeDescriptions": {
|
|
379
|
+
"typeIdentifier": "t_address",
|
|
380
|
+
"typeString": "address"
|
|
381
|
+
},
|
|
382
|
+
"typeName": {
|
|
383
|
+
"id": 838,
|
|
384
|
+
"name": "address",
|
|
385
|
+
"nodeType": "ElementaryTypeName",
|
|
386
|
+
"src": "637:7:4",
|
|
387
|
+
"stateMutability": "nonpayable",
|
|
388
|
+
"typeDescriptions": {
|
|
389
|
+
"typeIdentifier": "t_address",
|
|
390
|
+
"typeString": "address"
|
|
391
|
+
}
|
|
392
|
+
},
|
|
393
|
+
"visibility": "internal"
|
|
394
|
+
},
|
|
395
|
+
{
|
|
396
|
+
"constant": false,
|
|
397
|
+
"id": 841,
|
|
398
|
+
"indexed": true,
|
|
399
|
+
"mutability": "mutable",
|
|
400
|
+
"name": "spender",
|
|
401
|
+
"nameLocation": "676:7:4",
|
|
402
|
+
"nodeType": "VariableDeclaration",
|
|
403
|
+
"scope": 845,
|
|
404
|
+
"src": "660:23:4",
|
|
405
|
+
"stateVariable": false,
|
|
406
|
+
"storageLocation": "default",
|
|
407
|
+
"typeDescriptions": {
|
|
408
|
+
"typeIdentifier": "t_address",
|
|
409
|
+
"typeString": "address"
|
|
410
|
+
},
|
|
411
|
+
"typeName": {
|
|
412
|
+
"id": 840,
|
|
413
|
+
"name": "address",
|
|
414
|
+
"nodeType": "ElementaryTypeName",
|
|
415
|
+
"src": "660:7:4",
|
|
416
|
+
"stateMutability": "nonpayable",
|
|
417
|
+
"typeDescriptions": {
|
|
418
|
+
"typeIdentifier": "t_address",
|
|
419
|
+
"typeString": "address"
|
|
420
|
+
}
|
|
421
|
+
},
|
|
422
|
+
"visibility": "internal"
|
|
423
|
+
},
|
|
424
|
+
{
|
|
425
|
+
"constant": false,
|
|
426
|
+
"id": 843,
|
|
427
|
+
"indexed": false,
|
|
428
|
+
"mutability": "mutable",
|
|
429
|
+
"name": "value",
|
|
430
|
+
"nameLocation": "693:5:4",
|
|
431
|
+
"nodeType": "VariableDeclaration",
|
|
432
|
+
"scope": 845,
|
|
433
|
+
"src": "685:13:4",
|
|
434
|
+
"stateVariable": false,
|
|
435
|
+
"storageLocation": "default",
|
|
436
|
+
"typeDescriptions": {
|
|
437
|
+
"typeIdentifier": "t_uint256",
|
|
438
|
+
"typeString": "uint256"
|
|
439
|
+
},
|
|
440
|
+
"typeName": {
|
|
441
|
+
"id": 842,
|
|
442
|
+
"name": "uint256",
|
|
443
|
+
"nodeType": "ElementaryTypeName",
|
|
444
|
+
"src": "685:7:4",
|
|
445
|
+
"typeDescriptions": {
|
|
446
|
+
"typeIdentifier": "t_uint256",
|
|
447
|
+
"typeString": "uint256"
|
|
448
|
+
}
|
|
449
|
+
},
|
|
450
|
+
"visibility": "internal"
|
|
451
|
+
}
|
|
452
|
+
],
|
|
453
|
+
"src": "636:63:4"
|
|
454
|
+
},
|
|
455
|
+
"src": "622:78:4"
|
|
456
|
+
},
|
|
457
|
+
{
|
|
458
|
+
"documentation": {
|
|
459
|
+
"id": 846,
|
|
460
|
+
"nodeType": "StructuredDocumentation",
|
|
461
|
+
"src": "706:65:4",
|
|
462
|
+
"text": " @dev Returns the value of tokens in existence."
|
|
463
|
+
},
|
|
464
|
+
"functionSelector": "18160ddd",
|
|
465
|
+
"id": 851,
|
|
466
|
+
"implemented": false,
|
|
467
|
+
"kind": "function",
|
|
468
|
+
"modifiers": [],
|
|
469
|
+
"name": "totalSupply",
|
|
470
|
+
"nameLocation": "785:11:4",
|
|
471
|
+
"nodeType": "FunctionDefinition",
|
|
472
|
+
"parameters": {
|
|
473
|
+
"id": 847,
|
|
474
|
+
"nodeType": "ParameterList",
|
|
475
|
+
"parameters": [],
|
|
476
|
+
"src": "796:2:4"
|
|
477
|
+
},
|
|
478
|
+
"returnParameters": {
|
|
479
|
+
"id": 850,
|
|
480
|
+
"nodeType": "ParameterList",
|
|
481
|
+
"parameters": [
|
|
482
|
+
{
|
|
483
|
+
"constant": false,
|
|
484
|
+
"id": 849,
|
|
485
|
+
"mutability": "mutable",
|
|
486
|
+
"name": "",
|
|
487
|
+
"nameLocation": "-1:-1:-1",
|
|
488
|
+
"nodeType": "VariableDeclaration",
|
|
489
|
+
"scope": 851,
|
|
490
|
+
"src": "822:7:4",
|
|
491
|
+
"stateVariable": false,
|
|
492
|
+
"storageLocation": "default",
|
|
493
|
+
"typeDescriptions": {
|
|
494
|
+
"typeIdentifier": "t_uint256",
|
|
495
|
+
"typeString": "uint256"
|
|
496
|
+
},
|
|
497
|
+
"typeName": {
|
|
498
|
+
"id": 848,
|
|
499
|
+
"name": "uint256",
|
|
500
|
+
"nodeType": "ElementaryTypeName",
|
|
501
|
+
"src": "822:7:4",
|
|
502
|
+
"typeDescriptions": {
|
|
503
|
+
"typeIdentifier": "t_uint256",
|
|
504
|
+
"typeString": "uint256"
|
|
505
|
+
}
|
|
506
|
+
},
|
|
507
|
+
"visibility": "internal"
|
|
508
|
+
}
|
|
509
|
+
],
|
|
510
|
+
"src": "821:9:4"
|
|
511
|
+
},
|
|
512
|
+
"scope": 902,
|
|
513
|
+
"src": "776:55:4",
|
|
514
|
+
"stateMutability": "view",
|
|
515
|
+
"virtual": false,
|
|
516
|
+
"visibility": "external"
|
|
517
|
+
},
|
|
518
|
+
{
|
|
519
|
+
"documentation": {
|
|
520
|
+
"id": 852,
|
|
521
|
+
"nodeType": "StructuredDocumentation",
|
|
522
|
+
"src": "837:71:4",
|
|
523
|
+
"text": " @dev Returns the value of tokens owned by `account`."
|
|
524
|
+
},
|
|
525
|
+
"functionSelector": "70a08231",
|
|
526
|
+
"id": 859,
|
|
527
|
+
"implemented": false,
|
|
528
|
+
"kind": "function",
|
|
529
|
+
"modifiers": [],
|
|
530
|
+
"name": "balanceOf",
|
|
531
|
+
"nameLocation": "922:9:4",
|
|
532
|
+
"nodeType": "FunctionDefinition",
|
|
533
|
+
"parameters": {
|
|
534
|
+
"id": 855,
|
|
535
|
+
"nodeType": "ParameterList",
|
|
536
|
+
"parameters": [
|
|
537
|
+
{
|
|
538
|
+
"constant": false,
|
|
539
|
+
"id": 854,
|
|
540
|
+
"mutability": "mutable",
|
|
541
|
+
"name": "account",
|
|
542
|
+
"nameLocation": "940:7:4",
|
|
543
|
+
"nodeType": "VariableDeclaration",
|
|
544
|
+
"scope": 859,
|
|
545
|
+
"src": "932:15:4",
|
|
546
|
+
"stateVariable": false,
|
|
547
|
+
"storageLocation": "default",
|
|
548
|
+
"typeDescriptions": {
|
|
549
|
+
"typeIdentifier": "t_address",
|
|
550
|
+
"typeString": "address"
|
|
551
|
+
},
|
|
552
|
+
"typeName": {
|
|
553
|
+
"id": 853,
|
|
554
|
+
"name": "address",
|
|
555
|
+
"nodeType": "ElementaryTypeName",
|
|
556
|
+
"src": "932:7:4",
|
|
557
|
+
"stateMutability": "nonpayable",
|
|
558
|
+
"typeDescriptions": {
|
|
559
|
+
"typeIdentifier": "t_address",
|
|
560
|
+
"typeString": "address"
|
|
561
|
+
}
|
|
562
|
+
},
|
|
563
|
+
"visibility": "internal"
|
|
564
|
+
}
|
|
565
|
+
],
|
|
566
|
+
"src": "931:17:4"
|
|
567
|
+
},
|
|
568
|
+
"returnParameters": {
|
|
569
|
+
"id": 858,
|
|
570
|
+
"nodeType": "ParameterList",
|
|
571
|
+
"parameters": [
|
|
572
|
+
{
|
|
573
|
+
"constant": false,
|
|
574
|
+
"id": 857,
|
|
575
|
+
"mutability": "mutable",
|
|
576
|
+
"name": "",
|
|
577
|
+
"nameLocation": "-1:-1:-1",
|
|
578
|
+
"nodeType": "VariableDeclaration",
|
|
579
|
+
"scope": 859,
|
|
580
|
+
"src": "972:7:4",
|
|
581
|
+
"stateVariable": false,
|
|
582
|
+
"storageLocation": "default",
|
|
583
|
+
"typeDescriptions": {
|
|
584
|
+
"typeIdentifier": "t_uint256",
|
|
585
|
+
"typeString": "uint256"
|
|
586
|
+
},
|
|
587
|
+
"typeName": {
|
|
588
|
+
"id": 856,
|
|
589
|
+
"name": "uint256",
|
|
590
|
+
"nodeType": "ElementaryTypeName",
|
|
591
|
+
"src": "972:7:4",
|
|
592
|
+
"typeDescriptions": {
|
|
593
|
+
"typeIdentifier": "t_uint256",
|
|
594
|
+
"typeString": "uint256"
|
|
595
|
+
}
|
|
596
|
+
},
|
|
597
|
+
"visibility": "internal"
|
|
598
|
+
}
|
|
599
|
+
],
|
|
600
|
+
"src": "971:9:4"
|
|
601
|
+
},
|
|
602
|
+
"scope": 902,
|
|
603
|
+
"src": "913:68:4",
|
|
604
|
+
"stateMutability": "view",
|
|
605
|
+
"virtual": false,
|
|
606
|
+
"visibility": "external"
|
|
607
|
+
},
|
|
608
|
+
{
|
|
609
|
+
"documentation": {
|
|
610
|
+
"id": 860,
|
|
611
|
+
"nodeType": "StructuredDocumentation",
|
|
612
|
+
"src": "987:213:4",
|
|
613
|
+
"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."
|
|
614
|
+
},
|
|
615
|
+
"functionSelector": "a9059cbb",
|
|
616
|
+
"id": 869,
|
|
617
|
+
"implemented": false,
|
|
618
|
+
"kind": "function",
|
|
619
|
+
"modifiers": [],
|
|
620
|
+
"name": "transfer",
|
|
621
|
+
"nameLocation": "1214:8:4",
|
|
622
|
+
"nodeType": "FunctionDefinition",
|
|
623
|
+
"parameters": {
|
|
624
|
+
"id": 865,
|
|
625
|
+
"nodeType": "ParameterList",
|
|
626
|
+
"parameters": [
|
|
627
|
+
{
|
|
628
|
+
"constant": false,
|
|
629
|
+
"id": 862,
|
|
630
|
+
"mutability": "mutable",
|
|
631
|
+
"name": "to",
|
|
632
|
+
"nameLocation": "1231:2:4",
|
|
633
|
+
"nodeType": "VariableDeclaration",
|
|
634
|
+
"scope": 869,
|
|
635
|
+
"src": "1223:10:4",
|
|
636
|
+
"stateVariable": false,
|
|
637
|
+
"storageLocation": "default",
|
|
638
|
+
"typeDescriptions": {
|
|
639
|
+
"typeIdentifier": "t_address",
|
|
640
|
+
"typeString": "address"
|
|
641
|
+
},
|
|
642
|
+
"typeName": {
|
|
643
|
+
"id": 861,
|
|
644
|
+
"name": "address",
|
|
645
|
+
"nodeType": "ElementaryTypeName",
|
|
646
|
+
"src": "1223:7:4",
|
|
647
|
+
"stateMutability": "nonpayable",
|
|
648
|
+
"typeDescriptions": {
|
|
649
|
+
"typeIdentifier": "t_address",
|
|
650
|
+
"typeString": "address"
|
|
651
|
+
}
|
|
652
|
+
},
|
|
653
|
+
"visibility": "internal"
|
|
654
|
+
},
|
|
655
|
+
{
|
|
656
|
+
"constant": false,
|
|
657
|
+
"id": 864,
|
|
658
|
+
"mutability": "mutable",
|
|
659
|
+
"name": "value",
|
|
660
|
+
"nameLocation": "1243:5:4",
|
|
661
|
+
"nodeType": "VariableDeclaration",
|
|
662
|
+
"scope": 869,
|
|
663
|
+
"src": "1235:13:4",
|
|
664
|
+
"stateVariable": false,
|
|
665
|
+
"storageLocation": "default",
|
|
666
|
+
"typeDescriptions": {
|
|
667
|
+
"typeIdentifier": "t_uint256",
|
|
668
|
+
"typeString": "uint256"
|
|
669
|
+
},
|
|
670
|
+
"typeName": {
|
|
671
|
+
"id": 863,
|
|
672
|
+
"name": "uint256",
|
|
673
|
+
"nodeType": "ElementaryTypeName",
|
|
674
|
+
"src": "1235:7:4",
|
|
675
|
+
"typeDescriptions": {
|
|
676
|
+
"typeIdentifier": "t_uint256",
|
|
677
|
+
"typeString": "uint256"
|
|
678
|
+
}
|
|
679
|
+
},
|
|
680
|
+
"visibility": "internal"
|
|
681
|
+
}
|
|
682
|
+
],
|
|
683
|
+
"src": "1222:27:4"
|
|
684
|
+
},
|
|
685
|
+
"returnParameters": {
|
|
686
|
+
"id": 868,
|
|
687
|
+
"nodeType": "ParameterList",
|
|
688
|
+
"parameters": [
|
|
689
|
+
{
|
|
690
|
+
"constant": false,
|
|
691
|
+
"id": 867,
|
|
692
|
+
"mutability": "mutable",
|
|
693
|
+
"name": "",
|
|
694
|
+
"nameLocation": "-1:-1:-1",
|
|
695
|
+
"nodeType": "VariableDeclaration",
|
|
696
|
+
"scope": 869,
|
|
697
|
+
"src": "1268:4:4",
|
|
698
|
+
"stateVariable": false,
|
|
699
|
+
"storageLocation": "default",
|
|
700
|
+
"typeDescriptions": {
|
|
701
|
+
"typeIdentifier": "t_bool",
|
|
702
|
+
"typeString": "bool"
|
|
703
|
+
},
|
|
704
|
+
"typeName": {
|
|
705
|
+
"id": 866,
|
|
706
|
+
"name": "bool",
|
|
707
|
+
"nodeType": "ElementaryTypeName",
|
|
708
|
+
"src": "1268:4:4",
|
|
709
|
+
"typeDescriptions": {
|
|
710
|
+
"typeIdentifier": "t_bool",
|
|
711
|
+
"typeString": "bool"
|
|
712
|
+
}
|
|
713
|
+
},
|
|
714
|
+
"visibility": "internal"
|
|
715
|
+
}
|
|
716
|
+
],
|
|
717
|
+
"src": "1267:6:4"
|
|
718
|
+
},
|
|
719
|
+
"scope": 902,
|
|
720
|
+
"src": "1205:69:4",
|
|
721
|
+
"stateMutability": "nonpayable",
|
|
722
|
+
"virtual": false,
|
|
723
|
+
"visibility": "external"
|
|
724
|
+
},
|
|
725
|
+
{
|
|
726
|
+
"documentation": {
|
|
727
|
+
"id": 870,
|
|
728
|
+
"nodeType": "StructuredDocumentation",
|
|
729
|
+
"src": "1280:264:4",
|
|
730
|
+
"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."
|
|
731
|
+
},
|
|
732
|
+
"functionSelector": "dd62ed3e",
|
|
733
|
+
"id": 879,
|
|
734
|
+
"implemented": false,
|
|
735
|
+
"kind": "function",
|
|
736
|
+
"modifiers": [],
|
|
737
|
+
"name": "allowance",
|
|
738
|
+
"nameLocation": "1558:9:4",
|
|
739
|
+
"nodeType": "FunctionDefinition",
|
|
740
|
+
"parameters": {
|
|
741
|
+
"id": 875,
|
|
742
|
+
"nodeType": "ParameterList",
|
|
743
|
+
"parameters": [
|
|
744
|
+
{
|
|
745
|
+
"constant": false,
|
|
746
|
+
"id": 872,
|
|
747
|
+
"mutability": "mutable",
|
|
748
|
+
"name": "owner",
|
|
749
|
+
"nameLocation": "1576:5:4",
|
|
750
|
+
"nodeType": "VariableDeclaration",
|
|
751
|
+
"scope": 879,
|
|
752
|
+
"src": "1568:13:4",
|
|
753
|
+
"stateVariable": false,
|
|
754
|
+
"storageLocation": "default",
|
|
755
|
+
"typeDescriptions": {
|
|
756
|
+
"typeIdentifier": "t_address",
|
|
757
|
+
"typeString": "address"
|
|
758
|
+
},
|
|
759
|
+
"typeName": {
|
|
760
|
+
"id": 871,
|
|
761
|
+
"name": "address",
|
|
762
|
+
"nodeType": "ElementaryTypeName",
|
|
763
|
+
"src": "1568:7:4",
|
|
764
|
+
"stateMutability": "nonpayable",
|
|
765
|
+
"typeDescriptions": {
|
|
766
|
+
"typeIdentifier": "t_address",
|
|
767
|
+
"typeString": "address"
|
|
768
|
+
}
|
|
769
|
+
},
|
|
770
|
+
"visibility": "internal"
|
|
771
|
+
},
|
|
772
|
+
{
|
|
773
|
+
"constant": false,
|
|
774
|
+
"id": 874,
|
|
775
|
+
"mutability": "mutable",
|
|
776
|
+
"name": "spender",
|
|
777
|
+
"nameLocation": "1591:7:4",
|
|
778
|
+
"nodeType": "VariableDeclaration",
|
|
779
|
+
"scope": 879,
|
|
780
|
+
"src": "1583:15:4",
|
|
781
|
+
"stateVariable": false,
|
|
782
|
+
"storageLocation": "default",
|
|
783
|
+
"typeDescriptions": {
|
|
784
|
+
"typeIdentifier": "t_address",
|
|
785
|
+
"typeString": "address"
|
|
786
|
+
},
|
|
787
|
+
"typeName": {
|
|
788
|
+
"id": 873,
|
|
789
|
+
"name": "address",
|
|
790
|
+
"nodeType": "ElementaryTypeName",
|
|
791
|
+
"src": "1583:7:4",
|
|
792
|
+
"stateMutability": "nonpayable",
|
|
793
|
+
"typeDescriptions": {
|
|
794
|
+
"typeIdentifier": "t_address",
|
|
795
|
+
"typeString": "address"
|
|
796
|
+
}
|
|
797
|
+
},
|
|
798
|
+
"visibility": "internal"
|
|
799
|
+
}
|
|
800
|
+
],
|
|
801
|
+
"src": "1567:32:4"
|
|
802
|
+
},
|
|
803
|
+
"returnParameters": {
|
|
804
|
+
"id": 878,
|
|
805
|
+
"nodeType": "ParameterList",
|
|
806
|
+
"parameters": [
|
|
807
|
+
{
|
|
808
|
+
"constant": false,
|
|
809
|
+
"id": 877,
|
|
810
|
+
"mutability": "mutable",
|
|
811
|
+
"name": "",
|
|
812
|
+
"nameLocation": "-1:-1:-1",
|
|
813
|
+
"nodeType": "VariableDeclaration",
|
|
814
|
+
"scope": 879,
|
|
815
|
+
"src": "1623:7:4",
|
|
816
|
+
"stateVariable": false,
|
|
817
|
+
"storageLocation": "default",
|
|
818
|
+
"typeDescriptions": {
|
|
819
|
+
"typeIdentifier": "t_uint256",
|
|
820
|
+
"typeString": "uint256"
|
|
821
|
+
},
|
|
822
|
+
"typeName": {
|
|
823
|
+
"id": 876,
|
|
824
|
+
"name": "uint256",
|
|
825
|
+
"nodeType": "ElementaryTypeName",
|
|
826
|
+
"src": "1623:7:4",
|
|
827
|
+
"typeDescriptions": {
|
|
828
|
+
"typeIdentifier": "t_uint256",
|
|
829
|
+
"typeString": "uint256"
|
|
830
|
+
}
|
|
831
|
+
},
|
|
832
|
+
"visibility": "internal"
|
|
833
|
+
}
|
|
834
|
+
],
|
|
835
|
+
"src": "1622:9:4"
|
|
836
|
+
},
|
|
837
|
+
"scope": 902,
|
|
838
|
+
"src": "1549:83:4",
|
|
839
|
+
"stateMutability": "view",
|
|
840
|
+
"virtual": false,
|
|
841
|
+
"visibility": "external"
|
|
842
|
+
},
|
|
843
|
+
{
|
|
844
|
+
"documentation": {
|
|
845
|
+
"id": 880,
|
|
846
|
+
"nodeType": "StructuredDocumentation",
|
|
847
|
+
"src": "1638:667:4",
|
|
848
|
+
"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."
|
|
849
|
+
},
|
|
850
|
+
"functionSelector": "095ea7b3",
|
|
851
|
+
"id": 889,
|
|
852
|
+
"implemented": false,
|
|
853
|
+
"kind": "function",
|
|
854
|
+
"modifiers": [],
|
|
855
|
+
"name": "approve",
|
|
856
|
+
"nameLocation": "2319:7:4",
|
|
857
|
+
"nodeType": "FunctionDefinition",
|
|
858
|
+
"parameters": {
|
|
859
|
+
"id": 885,
|
|
860
|
+
"nodeType": "ParameterList",
|
|
861
|
+
"parameters": [
|
|
862
|
+
{
|
|
863
|
+
"constant": false,
|
|
864
|
+
"id": 882,
|
|
865
|
+
"mutability": "mutable",
|
|
866
|
+
"name": "spender",
|
|
867
|
+
"nameLocation": "2335:7:4",
|
|
868
|
+
"nodeType": "VariableDeclaration",
|
|
869
|
+
"scope": 889,
|
|
870
|
+
"src": "2327:15:4",
|
|
871
|
+
"stateVariable": false,
|
|
872
|
+
"storageLocation": "default",
|
|
873
|
+
"typeDescriptions": {
|
|
874
|
+
"typeIdentifier": "t_address",
|
|
875
|
+
"typeString": "address"
|
|
876
|
+
},
|
|
877
|
+
"typeName": {
|
|
878
|
+
"id": 881,
|
|
879
|
+
"name": "address",
|
|
880
|
+
"nodeType": "ElementaryTypeName",
|
|
881
|
+
"src": "2327:7:4",
|
|
882
|
+
"stateMutability": "nonpayable",
|
|
883
|
+
"typeDescriptions": {
|
|
884
|
+
"typeIdentifier": "t_address",
|
|
885
|
+
"typeString": "address"
|
|
886
|
+
}
|
|
887
|
+
},
|
|
888
|
+
"visibility": "internal"
|
|
889
|
+
},
|
|
890
|
+
{
|
|
891
|
+
"constant": false,
|
|
892
|
+
"id": 884,
|
|
893
|
+
"mutability": "mutable",
|
|
894
|
+
"name": "value",
|
|
895
|
+
"nameLocation": "2352:5:4",
|
|
896
|
+
"nodeType": "VariableDeclaration",
|
|
897
|
+
"scope": 889,
|
|
898
|
+
"src": "2344:13:4",
|
|
899
|
+
"stateVariable": false,
|
|
900
|
+
"storageLocation": "default",
|
|
901
|
+
"typeDescriptions": {
|
|
902
|
+
"typeIdentifier": "t_uint256",
|
|
903
|
+
"typeString": "uint256"
|
|
904
|
+
},
|
|
905
|
+
"typeName": {
|
|
906
|
+
"id": 883,
|
|
907
|
+
"name": "uint256",
|
|
908
|
+
"nodeType": "ElementaryTypeName",
|
|
909
|
+
"src": "2344:7:4",
|
|
910
|
+
"typeDescriptions": {
|
|
911
|
+
"typeIdentifier": "t_uint256",
|
|
912
|
+
"typeString": "uint256"
|
|
913
|
+
}
|
|
914
|
+
},
|
|
915
|
+
"visibility": "internal"
|
|
916
|
+
}
|
|
917
|
+
],
|
|
918
|
+
"src": "2326:32:4"
|
|
919
|
+
},
|
|
920
|
+
"returnParameters": {
|
|
921
|
+
"id": 888,
|
|
922
|
+
"nodeType": "ParameterList",
|
|
923
|
+
"parameters": [
|
|
924
|
+
{
|
|
925
|
+
"constant": false,
|
|
926
|
+
"id": 887,
|
|
927
|
+
"mutability": "mutable",
|
|
928
|
+
"name": "",
|
|
929
|
+
"nameLocation": "-1:-1:-1",
|
|
930
|
+
"nodeType": "VariableDeclaration",
|
|
931
|
+
"scope": 889,
|
|
932
|
+
"src": "2377:4:4",
|
|
933
|
+
"stateVariable": false,
|
|
934
|
+
"storageLocation": "default",
|
|
935
|
+
"typeDescriptions": {
|
|
936
|
+
"typeIdentifier": "t_bool",
|
|
937
|
+
"typeString": "bool"
|
|
938
|
+
},
|
|
939
|
+
"typeName": {
|
|
940
|
+
"id": 886,
|
|
941
|
+
"name": "bool",
|
|
942
|
+
"nodeType": "ElementaryTypeName",
|
|
943
|
+
"src": "2377:4:4",
|
|
944
|
+
"typeDescriptions": {
|
|
945
|
+
"typeIdentifier": "t_bool",
|
|
946
|
+
"typeString": "bool"
|
|
947
|
+
}
|
|
948
|
+
},
|
|
949
|
+
"visibility": "internal"
|
|
950
|
+
}
|
|
951
|
+
],
|
|
952
|
+
"src": "2376:6:4"
|
|
953
|
+
},
|
|
954
|
+
"scope": 902,
|
|
955
|
+
"src": "2310:73:4",
|
|
956
|
+
"stateMutability": "nonpayable",
|
|
957
|
+
"virtual": false,
|
|
958
|
+
"visibility": "external"
|
|
959
|
+
},
|
|
960
|
+
{
|
|
961
|
+
"documentation": {
|
|
962
|
+
"id": 890,
|
|
963
|
+
"nodeType": "StructuredDocumentation",
|
|
964
|
+
"src": "2389:297:4",
|
|
965
|
+
"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."
|
|
966
|
+
},
|
|
967
|
+
"functionSelector": "23b872dd",
|
|
968
|
+
"id": 901,
|
|
969
|
+
"implemented": false,
|
|
970
|
+
"kind": "function",
|
|
971
|
+
"modifiers": [],
|
|
972
|
+
"name": "transferFrom",
|
|
973
|
+
"nameLocation": "2700:12:4",
|
|
974
|
+
"nodeType": "FunctionDefinition",
|
|
975
|
+
"parameters": {
|
|
976
|
+
"id": 897,
|
|
977
|
+
"nodeType": "ParameterList",
|
|
978
|
+
"parameters": [
|
|
979
|
+
{
|
|
980
|
+
"constant": false,
|
|
981
|
+
"id": 892,
|
|
982
|
+
"mutability": "mutable",
|
|
983
|
+
"name": "from",
|
|
984
|
+
"nameLocation": "2721:4:4",
|
|
985
|
+
"nodeType": "VariableDeclaration",
|
|
986
|
+
"scope": 901,
|
|
987
|
+
"src": "2713:12:4",
|
|
988
|
+
"stateVariable": false,
|
|
989
|
+
"storageLocation": "default",
|
|
990
|
+
"typeDescriptions": {
|
|
991
|
+
"typeIdentifier": "t_address",
|
|
992
|
+
"typeString": "address"
|
|
993
|
+
},
|
|
994
|
+
"typeName": {
|
|
995
|
+
"id": 891,
|
|
996
|
+
"name": "address",
|
|
997
|
+
"nodeType": "ElementaryTypeName",
|
|
998
|
+
"src": "2713:7:4",
|
|
999
|
+
"stateMutability": "nonpayable",
|
|
1000
|
+
"typeDescriptions": {
|
|
1001
|
+
"typeIdentifier": "t_address",
|
|
1002
|
+
"typeString": "address"
|
|
1003
|
+
}
|
|
1004
|
+
},
|
|
1005
|
+
"visibility": "internal"
|
|
1006
|
+
},
|
|
1007
|
+
{
|
|
1008
|
+
"constant": false,
|
|
1009
|
+
"id": 894,
|
|
1010
|
+
"mutability": "mutable",
|
|
1011
|
+
"name": "to",
|
|
1012
|
+
"nameLocation": "2735:2:4",
|
|
1013
|
+
"nodeType": "VariableDeclaration",
|
|
1014
|
+
"scope": 901,
|
|
1015
|
+
"src": "2727:10:4",
|
|
1016
|
+
"stateVariable": false,
|
|
1017
|
+
"storageLocation": "default",
|
|
1018
|
+
"typeDescriptions": {
|
|
1019
|
+
"typeIdentifier": "t_address",
|
|
1020
|
+
"typeString": "address"
|
|
1021
|
+
},
|
|
1022
|
+
"typeName": {
|
|
1023
|
+
"id": 893,
|
|
1024
|
+
"name": "address",
|
|
1025
|
+
"nodeType": "ElementaryTypeName",
|
|
1026
|
+
"src": "2727:7:4",
|
|
1027
|
+
"stateMutability": "nonpayable",
|
|
1028
|
+
"typeDescriptions": {
|
|
1029
|
+
"typeIdentifier": "t_address",
|
|
1030
|
+
"typeString": "address"
|
|
1031
|
+
}
|
|
1032
|
+
},
|
|
1033
|
+
"visibility": "internal"
|
|
1034
|
+
},
|
|
1035
|
+
{
|
|
1036
|
+
"constant": false,
|
|
1037
|
+
"id": 896,
|
|
1038
|
+
"mutability": "mutable",
|
|
1039
|
+
"name": "value",
|
|
1040
|
+
"nameLocation": "2747:5:4",
|
|
1041
|
+
"nodeType": "VariableDeclaration",
|
|
1042
|
+
"scope": 901,
|
|
1043
|
+
"src": "2739:13:4",
|
|
1044
|
+
"stateVariable": false,
|
|
1045
|
+
"storageLocation": "default",
|
|
1046
|
+
"typeDescriptions": {
|
|
1047
|
+
"typeIdentifier": "t_uint256",
|
|
1048
|
+
"typeString": "uint256"
|
|
1049
|
+
},
|
|
1050
|
+
"typeName": {
|
|
1051
|
+
"id": 895,
|
|
1052
|
+
"name": "uint256",
|
|
1053
|
+
"nodeType": "ElementaryTypeName",
|
|
1054
|
+
"src": "2739:7:4",
|
|
1055
|
+
"typeDescriptions": {
|
|
1056
|
+
"typeIdentifier": "t_uint256",
|
|
1057
|
+
"typeString": "uint256"
|
|
1058
|
+
}
|
|
1059
|
+
},
|
|
1060
|
+
"visibility": "internal"
|
|
1061
|
+
}
|
|
1062
|
+
],
|
|
1063
|
+
"src": "2712:41:4"
|
|
1064
|
+
},
|
|
1065
|
+
"returnParameters": {
|
|
1066
|
+
"id": 900,
|
|
1067
|
+
"nodeType": "ParameterList",
|
|
1068
|
+
"parameters": [
|
|
1069
|
+
{
|
|
1070
|
+
"constant": false,
|
|
1071
|
+
"id": 899,
|
|
1072
|
+
"mutability": "mutable",
|
|
1073
|
+
"name": "",
|
|
1074
|
+
"nameLocation": "-1:-1:-1",
|
|
1075
|
+
"nodeType": "VariableDeclaration",
|
|
1076
|
+
"scope": 901,
|
|
1077
|
+
"src": "2772:4:4",
|
|
1078
|
+
"stateVariable": false,
|
|
1079
|
+
"storageLocation": "default",
|
|
1080
|
+
"typeDescriptions": {
|
|
1081
|
+
"typeIdentifier": "t_bool",
|
|
1082
|
+
"typeString": "bool"
|
|
1083
|
+
},
|
|
1084
|
+
"typeName": {
|
|
1085
|
+
"id": 898,
|
|
1086
|
+
"name": "bool",
|
|
1087
|
+
"nodeType": "ElementaryTypeName",
|
|
1088
|
+
"src": "2772:4:4",
|
|
1089
|
+
"typeDescriptions": {
|
|
1090
|
+
"typeIdentifier": "t_bool",
|
|
1091
|
+
"typeString": "bool"
|
|
1092
|
+
}
|
|
1093
|
+
},
|
|
1094
|
+
"visibility": "internal"
|
|
1095
|
+
}
|
|
1096
|
+
],
|
|
1097
|
+
"src": "2771:6:4"
|
|
1098
|
+
},
|
|
1099
|
+
"scope": 902,
|
|
1100
|
+
"src": "2691:87:4",
|
|
1101
|
+
"stateMutability": "nonpayable",
|
|
1102
|
+
"virtual": false,
|
|
1103
|
+
"visibility": "external"
|
|
1104
|
+
}
|
|
1105
|
+
],
|
|
1106
|
+
"scope": 903,
|
|
1107
|
+
"src": "205:2575:4",
|
|
1108
|
+
"usedErrors": [],
|
|
1109
|
+
"usedEvents": [
|
|
1110
|
+
836,
|
|
1111
|
+
845
|
|
1112
|
+
]
|
|
1113
|
+
}
|
|
1114
|
+
],
|
|
1115
|
+
"src": "106:2675:4"
|
|
1116
|
+
},
|
|
1117
|
+
"compiler": {
|
|
1118
|
+
"name": "solc",
|
|
1119
|
+
"version": "0.8.21+commit.d9974bed.Emscripten.clang"
|
|
1120
|
+
},
|
|
1121
|
+
"networks": {},
|
|
1122
|
+
"schemaVersion": "3.4.16",
|
|
1123
|
+
"updatedAt": "2026-01-24T20:23:03.846Z",
|
|
1124
|
+
"devdoc": {
|
|
1125
|
+
"details": "Interface of the ERC-20 standard as defined in the ERC.",
|
|
1126
|
+
"events": {
|
|
1127
|
+
"Approval(address,address,uint256)": {
|
|
1128
|
+
"details": "Emitted when the allowance of a `spender` for an `owner` is set by a call to {approve}. `value` is the new allowance."
|
|
1129
|
+
},
|
|
1130
|
+
"Transfer(address,address,uint256)": {
|
|
1131
|
+
"details": "Emitted when `value` tokens are moved from one account (`from`) to another (`to`). Note that `value` may be zero."
|
|
1132
|
+
}
|
|
1133
|
+
},
|
|
1134
|
+
"kind": "dev",
|
|
1135
|
+
"methods": {
|
|
1136
|
+
"allowance(address,address)": {
|
|
1137
|
+
"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."
|
|
1138
|
+
},
|
|
1139
|
+
"approve(address,uint256)": {
|
|
1140
|
+
"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."
|
|
1141
|
+
},
|
|
1142
|
+
"balanceOf(address)": {
|
|
1143
|
+
"details": "Returns the value of tokens owned by `account`."
|
|
1144
|
+
},
|
|
1145
|
+
"totalSupply()": {
|
|
1146
|
+
"details": "Returns the value of tokens in existence."
|
|
1147
|
+
},
|
|
1148
|
+
"transfer(address,uint256)": {
|
|
1149
|
+
"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."
|
|
1150
|
+
},
|
|
1151
|
+
"transferFrom(address,address,uint256)": {
|
|
1152
|
+
"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."
|
|
1153
|
+
}
|
|
1154
|
+
},
|
|
1155
|
+
"version": 1
|
|
1156
|
+
},
|
|
1157
|
+
"userdoc": {
|
|
1158
|
+
"kind": "user",
|
|
1159
|
+
"methods": {},
|
|
1160
|
+
"version": 1
|
|
1161
|
+
}
|
|
1162
|
+
}
|