-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
248 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
pragma solidity ^0.8.18; | ||
|
||
struct O { | ||
uint16 n; | ||
string s; | ||
} | ||
|
||
interface Varied { | ||
function test( | ||
int8 i8, | ||
uint8 u8, | ||
int256 i, | ||
uint256 u, | ||
bool b, | ||
// not supported in go-ethereum | ||
// fixed128x18 f18, | ||
// ufixed128x18 uf18, | ||
bytes32 b32, | ||
address a, | ||
function (uint16) external returns (uint16) f, | ||
uint16[2] calldata xy, | ||
bytes calldata buf, | ||
string calldata s, | ||
uint16[] calldata l, | ||
O calldata o | ||
) external; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,142 @@ | ||
{ | ||
"deploy": { | ||
"VM:-": { | ||
"linkReferences": {}, | ||
"autoDeployLib": true | ||
}, | ||
"main:1": { | ||
"linkReferences": {}, | ||
"autoDeployLib": true | ||
}, | ||
"ropsten:3": { | ||
"linkReferences": {}, | ||
"autoDeployLib": true | ||
}, | ||
"rinkeby:4": { | ||
"linkReferences": {}, | ||
"autoDeployLib": true | ||
}, | ||
"kovan:42": { | ||
"linkReferences": {}, | ||
"autoDeployLib": true | ||
}, | ||
"goerli:5": { | ||
"linkReferences": {}, | ||
"autoDeployLib": true | ||
}, | ||
"Custom": { | ||
"linkReferences": {}, | ||
"autoDeployLib": true | ||
} | ||
}, | ||
"data": { | ||
"bytecode": { | ||
"functionDebugData": {}, | ||
"generatedSources": [], | ||
"linkReferences": {}, | ||
"object": "", | ||
"opcodes": "", | ||
"sourceMap": "" | ||
}, | ||
"deployedBytecode": { | ||
"functionDebugData": {}, | ||
"generatedSources": [], | ||
"immutableReferences": {}, | ||
"linkReferences": {}, | ||
"object": "", | ||
"opcodes": "", | ||
"sourceMap": "" | ||
}, | ||
"gasEstimates": null, | ||
"methodIdentifiers": { | ||
"test(int8,uint8,int256,uint256,bool,bytes32,address,function,uint16[2],bytes,string,uint16[],(uint16,string))": "a85acffa" | ||
} | ||
}, | ||
"abi": [ | ||
{ | ||
"inputs": [ | ||
{ | ||
"internalType": "int8", | ||
"name": "i8", | ||
"type": "int8" | ||
}, | ||
{ | ||
"internalType": "uint8", | ||
"name": "u8", | ||
"type": "uint8" | ||
}, | ||
{ | ||
"internalType": "int256", | ||
"name": "i", | ||
"type": "int256" | ||
}, | ||
{ | ||
"internalType": "uint256", | ||
"name": "u", | ||
"type": "uint256" | ||
}, | ||
{ | ||
"internalType": "bool", | ||
"name": "b", | ||
"type": "bool" | ||
}, | ||
{ | ||
"internalType": "bytes32", | ||
"name": "b32", | ||
"type": "bytes32" | ||
}, | ||
{ | ||
"internalType": "address", | ||
"name": "a", | ||
"type": "address" | ||
}, | ||
{ | ||
"internalType": "function (uint16) external returns (uint16)", | ||
"name": "f", | ||
"type": "function" | ||
}, | ||
{ | ||
"internalType": "uint16[2]", | ||
"name": "xy", | ||
"type": "uint16[2]" | ||
}, | ||
{ | ||
"internalType": "bytes", | ||
"name": "buf", | ||
"type": "bytes" | ||
}, | ||
{ | ||
"internalType": "string", | ||
"name": "s", | ||
"type": "string" | ||
}, | ||
{ | ||
"internalType": "uint16[]", | ||
"name": "l", | ||
"type": "uint16[]" | ||
}, | ||
{ | ||
"components": [ | ||
{ | ||
"internalType": "uint16", | ||
"name": "n", | ||
"type": "uint16" | ||
}, | ||
{ | ||
"internalType": "string", | ||
"name": "s", | ||
"type": "string" | ||
} | ||
], | ||
"internalType": "struct O", | ||
"name": "o", | ||
"type": "tuple" | ||
} | ||
], | ||
"name": "test", | ||
"outputs": [], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
} | ||
] | ||
} |