Removed forbidden fields in artifact

This commit is contained in:
Alex Towle 2019-12-19 11:40:49 -08:00
parent 3310310d8c
commit 6dccc37143
2 changed files with 1091 additions and 2477 deletions

File diff suppressed because one or more lines are too long

View File

@ -6,26 +6,10 @@
{
"constant": false,
"inputs": [
{
"internalType": "address",
"name": "tokenAddress",
"type": "address"
},
{
"internalType": "uint256[]",
"name": "tokenIds",
"type": "uint256[]"
},
{
"internalType": "uint256[]",
"name": "values",
"type": "uint256[]"
},
{
"internalType": "bytes",
"name": "callbackData",
"type": "bytes"
}
{ "internalType": "address", "name": "tokenAddress", "type": "address" },
{ "internalType": "uint256[]", "name": "tokenIds", "type": "uint256[]" },
{ "internalType": "uint256[]", "name": "values", "type": "uint256[]" },
{ "internalType": "bytes", "name": "callbackData", "type": "bytes" }
],
"name": "ERC1155Assets",
"outputs": [],
@ -36,21 +20,9 @@
{
"constant": false,
"inputs": [
{
"internalType": "address",
"name": "tokenAddress",
"type": "address"
},
{
"internalType": "address",
"name": "bridgeAddress",
"type": "address"
},
{
"internalType": "bytes",
"name": "bridgeData",
"type": "bytes"
}
{ "internalType": "address", "name": "tokenAddress", "type": "address" },
{ "internalType": "address", "name": "bridgeAddress", "type": "address" },
{ "internalType": "bytes", "name": "bridgeData", "type": "bytes" }
],
"name": "ERC20Bridge",
"outputs": [],
@ -60,13 +32,7 @@
},
{
"constant": false,
"inputs": [
{
"internalType": "address",
"name": "tokenAddress",
"type": "address"
}
],
"inputs": [{ "internalType": "address", "name": "tokenAddress", "type": "address" }],
"name": "ERC20Token",
"outputs": [],
"payable": false,
@ -76,16 +42,8 @@
{
"constant": false,
"inputs": [
{
"internalType": "address",
"name": "tokenAddress",
"type": "address"
},
{
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
}
{ "internalType": "address", "name": "tokenAddress", "type": "address" },
{ "internalType": "uint256", "name": "tokenId", "type": "uint256" }
],
"name": "ERC721Token",
"outputs": [],
@ -96,16 +54,8 @@
{
"constant": false,
"inputs": [
{
"internalType": "uint256[]",
"name": "values",
"type": "uint256[]"
},
{
"internalType": "bytes[]",
"name": "nestedAssetData",
"type": "bytes[]"
}
{ "internalType": "uint256[]", "name": "values", "type": "uint256[]" },
{ "internalType": "bytes[]", "name": "nestedAssetData", "type": "bytes[]" }
],
"name": "MultiAsset",
"outputs": [],
@ -116,21 +66,9 @@
{
"constant": false,
"inputs": [
{
"internalType": "address",
"name": "staticCallTargetAddress",
"type": "address"
},
{
"internalType": "bytes",
"name": "staticCallData",
"type": "bytes"
},
{
"internalType": "bytes32",
"name": "expectedReturnDataHash",
"type": "bytes32"
}
{ "internalType": "address", "name": "staticCallTargetAddress", "type": "address" },
{ "internalType": "bytes", "name": "staticCallData", "type": "bytes" },
{ "internalType": "bytes32", "name": "expectedReturnDataHash", "type": "bytes32" }
],
"name": "StaticCall",
"outputs": [],
@ -160,9 +98,7 @@
},
"ERC20Token(address)": {
"details": "Function signature for encoding ERC20 assetData.",
"params": {
"tokenAddress": "Address of ERC20Token contract."
}
"params": { "tokenAddress": "Address of ERC20Token contract." }
},
"ERC721Token(address,uint256)": {
"details": "Function signature for encoding ERC721 assetData.",
@ -188,30 +124,8 @@
}
}
},
"evm": {
"bytecode": {
"linkReferences": {},
"object": "0x",
"opcodes": "",
"sourceMap": ""
},
"deployedBytecode": {
"linkReferences": {},
"object": "0x",
"opcodes": "",
"sourceMap": ""
}
}
"evm": { "bytecode": { "object": "0x" }, "deployedBytecode": { "object": "0x" } }
},
"sources": {
"src/interfaces/IAssetData.sol": {
"id": 11
}
},
"sourceCodes": {
"src/interfaces/IAssetData.sol": "/*\n\n Copyright 2019 ZeroEx Intl.\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\n// solhint-disable\npragma solidity ^0.5.9;\npragma experimental ABIEncoderV2;\n\n\n// @dev Interface of the asset proxy's assetData.\n// The asset proxies take an ABI encoded `bytes assetData` as argument.\n// This argument is ABI encoded as one of the methods of this interface.\ninterface IAssetData {\n\n /// @dev Function signature for encoding ERC20 assetData.\n /// @param tokenAddress Address of ERC20Token contract.\n function ERC20Token(address tokenAddress)\n external;\n\n /// @dev Function signature for encoding ERC721 assetData.\n /// @param tokenAddress Address of ERC721 token contract.\n /// @param tokenId Id of ERC721 token to be transferred.\n function ERC721Token(\n address tokenAddress,\n uint256 tokenId\n )\n external;\n\n /// @dev Function signature for encoding ERC1155 assetData.\n /// @param tokenAddress Address of ERC1155 token contract.\n /// @param tokenIds Array of ids of tokens to be transferred.\n /// @param values Array of values that correspond to each token id to be transferred.\n /// Note that each value will be multiplied by the amount being filled in the order before transferring.\n /// @param callbackData Extra data to be passed to receiver's `onERC1155Received` callback function.\n function ERC1155Assets(\n address tokenAddress,\n uint256[] calldata tokenIds,\n uint256[] calldata values,\n bytes calldata callbackData\n )\n external;\n\n /// @dev Function signature for encoding MultiAsset assetData.\n /// @param values Array of amounts that correspond to each asset to be transferred.\n /// Note that each value will be multiplied by the amount being filled in the order before transferring.\n /// @param nestedAssetData Array of assetData fields that will be be dispatched to their correspnding AssetProxy contract.\n function MultiAsset(\n uint256[] calldata values,\n bytes[] calldata nestedAssetData\n )\n external;\n\n /// @dev Function signature for encoding StaticCall assetData.\n /// @param staticCallTargetAddress Address that will execute the staticcall.\n /// @param staticCallData Data that will be executed via staticcall on the staticCallTargetAddress.\n /// @param expectedReturnDataHash Keccak-256 hash of the expected staticcall return data.\n function StaticCall(\n address staticCallTargetAddress,\n bytes calldata staticCallData,\n bytes32 expectedReturnDataHash\n )\n external;\n\n /// @dev Function signature for encoding ERC20Bridge assetData.\n /// @param tokenAddress Address of token to transfer.\n /// @param bridgeAddress Address of the bridge contract.\n /// @param bridgeData Arbitrary data to be passed to the bridge contract.\n function ERC20Bridge(\n address tokenAddress,\n address bridgeAddress,\n bytes calldata bridgeData\n )\n external;\n}\n"
},
"sourceTreeHashHex": "0x3ceff1522c201d446ee98d9ecd912ad2ca6adc6fae9fc10d458ff557d570decc",
"compiler": {
"name": "solc",
"version": "soljson-v0.5.13+commit.5b0b510c.js",
@ -219,12 +133,7 @@
"optimizer": {
"enabled": true,
"runs": 1000000,
"details": {
"yul": true,
"deduplicate": true,
"cse": true,
"constantOptimizer": true
}
"details": { "yul": true, "deduplicate": true, "cse": true, "constantOptimizer": true }
},
"outputSelection": {
"*": {
@ -238,13 +147,7 @@
]
}
},
"evmVersion": "constantinople",
"remappings": [
"@0x/contracts-utils=/Users/xianny/src/copy-0x-monorepo/contracts/asset-proxy/node_modules/@0x/contracts-utils",
"@0x/contracts-erc1155=/Users/xianny/src/copy-0x-monorepo/contracts/asset-proxy/node_modules/@0x/contracts-erc1155",
"@0x/contracts-erc20=/Users/xianny/src/copy-0x-monorepo/contracts/asset-proxy/node_modules/@0x/contracts-erc20",
"@0x/contracts-exchange-libs=/Users/xianny/src/copy-0x-monorepo/node_modules/@0x/contracts-exchange-libs"
]
"evmVersion": "constantinople"
}
},
"chains": {}