code.vegaprotocol.io/vega@v0.79.0/core/datasource/external/ethcall/testdata/mycontract.sol (about) 1 // SPDX-License-Identifier: MIT 2 3 pragma solidity >0.7.0 <0.9.0; 4 5 /** 6 * @title Storage 7 * @dev store or retrieve variable value 8 */ 9 10 contract MyContract { 11 function get_uint256(uint256 input) public pure returns (uint256) { 12 return input; 13 } 14 15 struct Person { 16 string name; 17 uint16 age; 18 } 19 20 function testy1( 21 int64 in1, 22 uint256 in2, 23 string calldata in3, 24 bool in4, 25 address in5 26 ) public pure returns (int64, uint256, string calldata, bool, address) { 27 return (in1, in2, in3, in4, in5); 28 } 29 30 // get stack to deep if you have too many locals 31 function testy2( 32 int[] calldata in6, 33 Person calldata in7 34 ) public pure returns (int[] calldata, Person calldata) { 35 return (in6, in7); 36 } 37 }