@dolomite-exchange/dolomite-margin
Version:
Ethereum Smart Contracts and TypeScript library used for the DolomiteMargin trading protocol
1,260 lines • 50 kB
JSON
{
"contractName": "ITransferProxy",
"abi": [
{
"constant": false,
"inputs": [
{
"internalType": "uint256",
"name": "_fromAccountNumber",
"type": "uint256"
},
{
"internalType": "address",
"name": "_to",
"type": "address"
},
{
"internalType": "uint256",
"name": "_toAccountNumber",
"type": "uint256"
},
{
"internalType": "address",
"name": "_token",
"type": "address"
},
{
"internalType": "uint256",
"name": "_amountWei",
"type": "uint256"
}
],
"name": "transfer",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"internalType": "uint256",
"name": "_fromAccountNumber",
"type": "uint256"
},
{
"internalType": "address",
"name": "_to",
"type": "address"
},
{
"internalType": "uint256",
"name": "_toAccountNumber",
"type": "uint256"
},
{
"internalType": "address[]",
"name": "_tokens",
"type": "address[]"
},
{
"internalType": "uint256[]",
"name": "_amountsWei",
"type": "uint256[]"
}
],
"name": "transferMultiple",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"internalType": "uint256",
"name": "_fromAccountNumber",
"type": "uint256"
},
{
"internalType": "address",
"name": "_to",
"type": "address"
},
{
"internalType": "uint256",
"name": "_toAccountNumber",
"type": "uint256"
},
{
"internalType": "uint256[]",
"name": "_markets",
"type": "uint256[]"
},
{
"internalType": "uint256[]",
"name": "_amountsWei",
"type": "uint256[]"
}
],
"name": "transferMultipleWithMarkets",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
}
],
"metadata": "{\"compiler\":{\"version\":\"0.5.16+commit.9c3226ce\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"constant\":false,\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_fromAccountNumber\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"_to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_toAccountNumber\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"_token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_amountWei\",\"type\":\"uint256\"}],\"name\":\"transfer\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_fromAccountNumber\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"_to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_toAccountNumber\",\"type\":\"uint256\"},{\"internalType\":\"address[]\",\"name\":\"_tokens\",\"type\":\"address[]\"},{\"internalType\":\"uint256[]\",\"name\":\"_amountsWei\",\"type\":\"uint256[]\"}],\"name\":\"transferMultiple\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_fromAccountNumber\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"_to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_toAccountNumber\",\"type\":\"uint256\"},{\"internalType\":\"uint256[]\",\"name\":\"_markets\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256[]\",\"name\":\"_amountsWei\",\"type\":\"uint256[]\"}],\"name\":\"transferMultipleWithMarkets\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"methods\":{}},\"userdoc\":{\"methods\":{\"transfer(uint256,address,uint256,address,uint256)\":{\"notice\":\"Transfers `_token` `_amountWei` from `msg.sender` to `to`. Throws if the caller is not authorized.\"},\"transferMultiple(uint256,address,uint256,address[],uint256[])\":{\"notice\":\"Transfers `_tokens` `_amountWei` from `msg.sender` to `to`. Throws if the caller is not authorized. Throws if the length of `_tokens` and `_amountsWei` are not equal.\"},\"transferMultipleWithMarkets(uint256,address,uint256,uint256[],uint256[])\":{\"notice\":\"Transfers `_markets` `_amountsWei` from `msg.sender` to `to`. Throws is the caller is not authorized. Throws if the length of `_markets` and `_amountsWei` are not equal.\"}}}},\"settings\":{\"compilationTarget\":{\"/home/cdc218/projects/dolomite-protocol-v2/contracts/external/interfaces/ITransferProxy.sol\":\"ITransferProxy\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"optimizer\":{\"enabled\":true,\"runs\":10000},\"remappings\":[]},\"sources\":{\"/home/cdc218/projects/dolomite-protocol-v2/contracts/external/interfaces/ITransferProxy.sol\":{\"keccak256\":\"0x34149934cbf9b5b17bb68e6c2e96978fce320c49fb9206d4a3a511cd7fbac2d5\",\"urls\":[\"bzz-raw://7f90f63f52914f1e914da31c991be56e73381d0cff3a79edc8f902aacbec45a1\",\"dweb:/ipfs/QmZYXXytDyyTxMVVGKreYwu96Wo9oiGGosj127KfS5qkV5\"]}},\"version\":1}",
"bytecode": "0x",
"deployedBytecode": "0x",
"sourceMap": "",
"deployedSourceMap": "",
"source": "/*\n\n Copyright 2021 Dolomite.\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n\n*/\n\npragma solidity ^0.5.7;\n\n\ninterface ITransferProxy {\n\n /**\n * @notice Transfers `_token` `_amountWei` from `msg.sender` to `to`. Throws if the caller is not authorized.\n */\n function transfer(\n uint256 _fromAccountNumber,\n address _to,\n uint256 _toAccountNumber,\n address _token,\n uint256 _amountWei\n ) external;\n\n /**\n * @notice Transfers `_tokens` `_amountWei` from `msg.sender` to `to`. Throws if the caller is not authorized.\n * Throws if the length of `_tokens` and `_amountsWei` are not equal.\n */\n function transferMultiple(\n uint256 _fromAccountNumber,\n address _to,\n uint256 _toAccountNumber,\n address[] calldata _tokens,\n uint256[] calldata _amountsWei\n ) external;\n\n /**\n * @notice Transfers `_markets` `_amountsWei` from `msg.sender` to `to`. Throws is the caller is not authorized.\n * Throws if the length of `_markets` and `_amountsWei` are not equal.\n */\n function transferMultipleWithMarkets(\n uint256 _fromAccountNumber,\n address _to,\n uint256 _toAccountNumber,\n uint256[] calldata _markets,\n uint256[] calldata _amountsWei\n ) external;\n}\n",
"sourcePath": "/home/cdc218/projects/dolomite-protocol-v2/contracts/external/interfaces/ITransferProxy.sol",
"ast": {
"absolutePath": "/home/cdc218/projects/dolomite-protocol-v2/contracts/external/interfaces/ITransferProxy.sol",
"exportedSymbols": {
"ITransferProxy": [
4928
]
},
"id": 4929,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 4884,
"literals": [
"solidity",
"^",
"0.5",
".7"
],
"nodeType": "PragmaDirective",
"src": "595:23:32"
},
{
"baseContracts": [],
"contractDependencies": [],
"contractKind": "interface",
"documentation": null,
"fullyImplemented": false,
"id": 4928,
"linearizedBaseContracts": [
4928
],
"name": "ITransferProxy",
"nodeType": "ContractDefinition",
"nodes": [
{
"body": null,
"documentation": "@notice Transfers `_token` `_amountWei` from `msg.sender` to `to`. Throws if the caller is not authorized.",
"id": 4897,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "transfer",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 4895,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 4886,
"name": "_fromAccountNumber",
"nodeType": "VariableDeclaration",
"scope": 4897,
"src": "810:26:32",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 4885,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "810:7:32",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 4888,
"name": "_to",
"nodeType": "VariableDeclaration",
"scope": 4897,
"src": "846:11:32",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 4887,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "846:7:32",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 4890,
"name": "_toAccountNumber",
"nodeType": "VariableDeclaration",
"scope": 4897,
"src": "867:24:32",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 4889,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "867:7:32",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 4892,
"name": "_token",
"nodeType": "VariableDeclaration",
"scope": 4897,
"src": "901:14:32",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 4891,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "901:7:32",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 4894,
"name": "_amountWei",
"nodeType": "VariableDeclaration",
"scope": 4897,
"src": "925:18:32",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 4893,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "925:7:32",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "800:149:32"
},
"returnParameters": {
"id": 4896,
"nodeType": "ParameterList",
"parameters": [],
"src": "958:0:32"
},
"scope": 4928,
"src": "783:176:32",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": "@notice Transfers `_tokens` `_amountWei` from `msg.sender` to `to`. Throws if the caller is not authorized.\n Throws if the length of `_tokens` and `_amountsWei` are not equal.",
"id": 4912,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "transferMultiple",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 4910,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 4899,
"name": "_fromAccountNumber",
"nodeType": "VariableDeclaration",
"scope": 4912,
"src": "1215:26:32",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 4898,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1215:7:32",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 4901,
"name": "_to",
"nodeType": "VariableDeclaration",
"scope": 4912,
"src": "1251:11:32",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 4900,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "1251:7:32",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 4903,
"name": "_toAccountNumber",
"nodeType": "VariableDeclaration",
"scope": 4912,
"src": "1272:24:32",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 4902,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1272:7:32",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 4906,
"name": "_tokens",
"nodeType": "VariableDeclaration",
"scope": 4912,
"src": "1306:26:32",
"stateVariable": false,
"storageLocation": "calldata",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_address_$dyn_calldata_ptr",
"typeString": "address[]"
},
"typeName": {
"baseType": {
"id": 4904,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "1306:7:32",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"id": 4905,
"length": null,
"nodeType": "ArrayTypeName",
"src": "1306:9:32",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_address_$dyn_storage_ptr",
"typeString": "address[]"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 4909,
"name": "_amountsWei",
"nodeType": "VariableDeclaration",
"scope": 4912,
"src": "1342:30:32",
"stateVariable": false,
"storageLocation": "calldata",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_uint256_$dyn_calldata_ptr",
"typeString": "uint256[]"
},
"typeName": {
"baseType": {
"id": 4907,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1342:7:32",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 4908,
"length": null,
"nodeType": "ArrayTypeName",
"src": "1342:9:32",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
"typeString": "uint256[]"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1205:173:32"
},
"returnParameters": {
"id": 4911,
"nodeType": "ParameterList",
"parameters": [],
"src": "1387:0:32"
},
"scope": 4928,
"src": "1180:208:32",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": "@notice Transfers `_markets` `_amountsWei` from `msg.sender` to `to`. Throws is the caller is not authorized.\n Throws if the length of `_markets` and `_amountsWei` are not equal.",
"id": 4927,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "transferMultipleWithMarkets",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 4925,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 4914,
"name": "_fromAccountNumber",
"nodeType": "VariableDeclaration",
"scope": 4927,
"src": "1658:26:32",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 4913,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1658:7:32",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 4916,
"name": "_to",
"nodeType": "VariableDeclaration",
"scope": 4927,
"src": "1694:11:32",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 4915,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "1694:7:32",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 4918,
"name": "_toAccountNumber",
"nodeType": "VariableDeclaration",
"scope": 4927,
"src": "1715:24:32",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 4917,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1715:7:32",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 4921,
"name": "_markets",
"nodeType": "VariableDeclaration",
"scope": 4927,
"src": "1749:27:32",
"stateVariable": false,
"storageLocation": "calldata",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_uint256_$dyn_calldata_ptr",
"typeString": "uint256[]"
},
"typeName": {
"baseType": {
"id": 4919,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1749:7:32",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 4920,
"length": null,
"nodeType": "ArrayTypeName",
"src": "1749:9:32",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
"typeString": "uint256[]"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 4924,
"name": "_amountsWei",
"nodeType": "VariableDeclaration",
"scope": 4927,
"src": "1786:30:32",
"stateVariable": false,
"storageLocation": "calldata",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_uint256_$dyn_calldata_ptr",
"typeString": "uint256[]"
},
"typeName": {
"baseType": {
"id": 4922,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1786:7:32",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 4923,
"length": null,
"nodeType": "ArrayTypeName",
"src": "1786:9:32",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
"typeString": "uint256[]"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1648:174:32"
},
"returnParameters": {
"id": 4926,
"nodeType": "ParameterList",
"parameters": [],
"src": "1831:0:32"
},
"scope": 4928,
"src": "1612:220:32",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "external"
}
],
"scope": 4929,
"src": "621:1213:32"
}
],
"src": "595:1240:32"
},
"legacyAST": {
"absolutePath": "/home/cdc218/projects/dolomite-protocol-v2/contracts/external/interfaces/ITransferProxy.sol",
"exportedSymbols": {
"ITransferProxy": [
4928
]
},
"id": 4929,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 4884,
"literals": [
"solidity",
"^",
"0.5",
".7"
],
"nodeType": "PragmaDirective",
"src": "595:23:32"
},
{
"baseContracts": [],
"contractDependencies": [],
"contractKind": "interface",
"documentation": null,
"fullyImplemented": false,
"id": 4928,
"linearizedBaseContracts": [
4928
],
"name": "ITransferProxy",
"nodeType": "ContractDefinition",
"nodes": [
{
"body": null,
"documentation": "@notice Transfers `_token` `_amountWei` from `msg.sender` to `to`. Throws if the caller is not authorized.",
"id": 4897,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "transfer",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 4895,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 4886,
"name": "_fromAccountNumber",
"nodeType": "VariableDeclaration",
"scope": 4897,
"src": "810:26:32",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 4885,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "810:7:32",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 4888,
"name": "_to",
"nodeType": "VariableDeclaration",
"scope": 4897,
"src": "846:11:32",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 4887,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "846:7:32",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 4890,
"name": "_toAccountNumber",
"nodeType": "VariableDeclaration",
"scope": 4897,
"src": "867:24:32",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 4889,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "867:7:32",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 4892,
"name": "_token",
"nodeType": "VariableDeclaration",
"scope": 4897,
"src": "901:14:32",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 4891,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "901:7:32",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 4894,
"name": "_amountWei",
"nodeType": "VariableDeclaration",
"scope": 4897,
"src": "925:18:32",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 4893,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "925:7:32",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "800:149:32"
},
"returnParameters": {
"id": 4896,
"nodeType": "ParameterList",
"parameters": [],
"src": "958:0:32"
},
"scope": 4928,
"src": "783:176:32",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": "@notice Transfers `_tokens` `_amountWei` from `msg.sender` to `to`. Throws if the caller is not authorized.\n Throws if the length of `_tokens` and `_amountsWei` are not equal.",
"id": 4912,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "transferMultiple",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 4910,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 4899,
"name": "_fromAccountNumber",
"nodeType": "VariableDeclaration",
"scope": 4912,
"src": "1215:26:32",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 4898,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1215:7:32",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 4901,
"name": "_to",
"nodeType": "VariableDeclaration",
"scope": 4912,
"src": "1251:11:32",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 4900,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "1251:7:32",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 4903,
"name": "_toAccountNumber",
"nodeType": "VariableDeclaration",
"scope": 4912,
"src": "1272:24:32",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 4902,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1272:7:32",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 4906,
"name": "_tokens",
"nodeType": "VariableDeclaration",
"scope": 4912,
"src": "1306:26:32",
"stateVariable": false,
"storageLocation": "calldata",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_address_$dyn_calldata_ptr",
"typeString": "address[]"
},
"typeName": {
"baseType": {
"id": 4904,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "1306:7:32",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"id": 4905,
"length": null,
"nodeType": "ArrayTypeName",
"src": "1306:9:32",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_address_$dyn_storage_ptr",
"typeString": "address[]"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 4909,
"name": "_amountsWei",
"nodeType": "VariableDeclaration",
"scope": 4912,
"src": "1342:30:32",
"stateVariable": false,
"storageLocation": "calldata",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_uint256_$dyn_calldata_ptr",
"typeString": "uint256[]"
},
"typeName": {
"baseType": {
"id": 4907,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1342:7:32",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 4908,
"length": null,
"nodeType": "ArrayTypeName",
"src": "1342:9:32",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
"typeString": "uint256[]"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1205:173:32"
},
"returnParameters": {
"id": 4911,
"nodeType": "ParameterList",
"parameters": [],
"src": "1387:0:32"
},
"scope": 4928,
"src": "1180:208:32",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": "@notice Transfers `_markets` `_amountsWei` from `msg.sender` to `to`. Throws is the caller is not authorized.\n Throws if the length of `_markets` and `_amountsWei` are not equal.",
"id": 4927,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "transferMultipleWithMarkets",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 4925,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 4914,
"name": "_fromAccountNumber",
"nodeType": "VariableDeclaration",
"scope": 4927,
"src": "1658:26:32",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 4913,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1658:7:32",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 4916,
"name": "_to",
"nodeType": "VariableDeclaration",
"scope": 4927,
"src": "1694:11:32",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 4915,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "1694:7:32",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 4918,
"name": "_toAccountNumber",
"nodeType": "VariableDeclaration",
"scope": 4927,
"src": "1715:24:32",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 4917,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1715:7:32",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 4921,
"name": "_markets",
"nodeType": "VariableDeclaration",
"scope": 4927,
"src": "1749:27:32",
"stateVariable": false,
"storageLocation": "calldata",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_uint256_$dyn_calldata_ptr",
"typeString": "uint256[]"
},
"typeName": {
"baseType": {
"id": 4919,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1749:7:32",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 4920,
"length": null,
"nodeType": "ArrayTypeName",
"src": "1749:9:32",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
"typeString": "uint256[]"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 4924,
"name": "_amountsWei",
"nodeType": "VariableDeclaration",
"scope": 4927,
"src": "1786:30:32",
"stateVariable": false,
"storageLocation": "calldata",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_uint256_$dyn_calldata_ptr",
"typeString": "uint256[]"
},
"typeName": {
"baseType": {
"id": 4922,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1786:7:32",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 4923,
"length": null,
"nodeType": "ArrayTypeName",
"src": "1786:9:32",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
"typeString": "uint256[]"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1648:174:32"
},
"returnParameters": {
"id": 4926,
"nodeType": "ParameterList",
"parameters": [],
"src": "1831:0:32"
},
"scope": 4928,
"src": "1612:220:32",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "external"
}
],
"scope": 4929,
"src": "621:1213:32"
}
],
"src": "595:1240:32"
},
"compiler": {
"name": "solc",
"version": "0.5.16+commit.9c3226ce.Emscripten.clang"
},
"networks": {},
"schemaVersion": "3.0.23",
"updatedAt": "2025-06-22T04:01:53.533Z",
"devdoc": {
"methods": {}
},
"userdoc": {
"methods": {
"transfer(uint256,address,uint256,address,uint256)": {
"notice": "Transfers `_token` `_amountWei` from `msg.sender` to `to`. Throws if the caller is not authorized."
},
"transferMultiple(uint256,address,uint256,address[],uint256[])": {
"notice": "Transfers `_tokens` `_amountWei` from `msg.sender` to `to`. Throws if the caller is not authorized. Throws if the length of `_tokens` and `_amountsWei` are not equal."
},
"transferMultipleWithMarkets(uint256,address,uint256,uint256[],uint256[])": {
"notice": "Transfers `_markets` `_amountsWei` from `msg.sender` to `to`. Throws is the caller is not authorized. Throws if the length of `_markets` and `_amountsWei` are not equal."
}
}
}
}