aboutsummaryrefslogtreecommitdiffstats
path: root/ABITests
diff options
context:
space:
mode:
authorVitalik Buterin <v@buterin.com>2015-05-11 10:02:05 +0800
committerVitalik Buterin <v@buterin.com>2015-05-11 10:02:05 +0800
commitd333514fe5f9637a07cfda91e75886cf44c300eb (patch)
tree123881fe1303f0fc17d25a734f9b175e38f2c32a /ABITests
parentc7b090c60808410c71f603aae81d4dfde93144e3 (diff)
downloaddexon-tests-d333514fe5f9637a07cfda91e75886cf44c300eb.tar.gz
dexon-tests-d333514fe5f9637a07cfda91e75886cf44c300eb.tar.zst
dexon-tests-d333514fe5f9637a07cfda91e75886cf44c300eb.zip
Added abi tests
Diffstat (limited to 'ABITests')
-rw-r--r--ABITests/basic_abi_tests.json40
1 files changed, 40 insertions, 0 deletions
diff --git a/ABITests/basic_abi_tests.json b/ABITests/basic_abi_tests.json
new file mode 100644
index 000000000..52f16c01a
--- /dev/null
+++ b/ABITests/basic_abi_tests.json
@@ -0,0 +1,40 @@
+{
+ 'GithubWikiTest': {
+ "args": [
+ 291,
+ [
+ 1110,
+ 1929
+ ],
+ "1234567890",
+ "Hello, world!"
+ ],
+ "result": "00000000000000000000000000000000000000000000000000000000000001230000000000000000000000000000000000000000000000000000000000000080313233343536373839300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000004560000000000000000000000000000000000000000000000000000000000000789000000000000000000000000000000000000000000000000000000000000000d48656c6c6f2c20776f726c642100000000000000000000000000000000000000",
+ "types": [
+ "uint256",
+ "uint32[]",
+ "bytes10",
+ "bytes"
+ ]
+ },
+ 'SingleInteger': {
+ "args": [
+ 98127491
+ ],
+ "result": "0000000000000000000000000000000000000000000000000000000005d94e83",
+ "types": [
+ "uint256"
+ ]
+ },
+ 'IntegerAndAddress': {
+ "args": [
+ 324124,
+ "cd2a3d9f938e13cd947ec05abc7fe734df8dd826"
+ ],
+ "result": "000000000000000000000000000000000000000000000000000000000004f21c000000000000000000000000cd2a3d9f938e13cd947ec05abc7fe734df8dd826",
+ "types": [
+ "uint256",
+ "address"
+ ]
+ }
+}