aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/interface/ABI.h
diff options
context:
space:
mode:
authorchriseth <c@ethdev.com>2017-01-24 19:44:49 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2017-09-16 19:12:43 +0800
commit2e72bd163a149183c119ca9664b98b0c5473da41 (patch)
treec21a611b03f2ba123b9b86604ee31558d9454df7 /libsolidity/interface/ABI.h
parenta0d171722a211720773aae0ded8a80991d44ba9d (diff)
downloaddexon-solidity-2e72bd163a149183c119ca9664b98b0c5473da41.tar.gz
dexon-solidity-2e72bd163a149183c119ca9664b98b0c5473da41.tar.zst
dexon-solidity-2e72bd163a149183c119ca9664b98b0c5473da41.zip
Allow structs as part of function interfaces.
Diffstat (limited to 'libsolidity/interface/ABI.h')
-rw-r--r--libsolidity/interface/ABI.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libsolidity/interface/ABI.h b/libsolidity/interface/ABI.h
index 95b162a9..7e42909b 100644
--- a/libsolidity/interface/ABI.h
+++ b/libsolidity/interface/ABI.h
@@ -50,6 +50,10 @@ private:
std::vector<TypePointer> const& _types,
bool _forLibrary
);
+ /// @returns a Json object with "name", "type" and potentially "subtype" keys, according
+ /// to the ABI specification.
+ /// If it is possible to express the type as a single string, it is allowed to return a single string.
+ static Json::Value formatType(std::string const& _name, Type const& _type, bool _forLibrary);
};
}