From 5f4a9626a232f0930a58c438ef935741e172cb2c Mon Sep 17 00:00:00 2001 From: Thorsten Krug Date: Fri, 24 Feb 2017 01:08:04 +0400 Subject: [PATCH 1/7] Changing confusing default block parameter constant "2" into boolean (in src only). --- README.md | 4 ++-- src/schema.json | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 12d0541..3c5e146 100644 --- a/README.md +++ b/README.md @@ -56,7 +56,7 @@ The entire spec is contained in the [schema.json](src/schema.json) file. ``` methods: { - , + , } ``` @@ -65,7 +65,7 @@ The entire spec is contained in the [schema.json](src/schema.json) file. ``` { methods: { - "eth_getBalance": [["D20", "Q|T"], "Q", 1, 2], + "eth_getBalance": [["D20", "Q|T"], "Q", 1, true], ... }, ... diff --git a/src/schema.json b/src/schema.json index 5f19df7..aec364e 100644 --- a/src/schema.json +++ b/src/schema.json @@ -13,9 +13,9 @@ "eth_gasPrice": [[], "Q"], "eth_accounts": [[], ["D20"]], "eth_blockNumber": [[], "Q"], - "eth_getBalance": [["D20", "Q|T"], "Q", 1, 2], - "eth_getStorageAt": [["D20", "Q", "Q|T"], "D", 2, 2], - "eth_getTransactionCount": [["D20", "Q|T"], "Q", 1, 2], + "eth_getBalance": [["D20", "Q|T"], "Q", 1, true], + "eth_getStorageAt": [["D20", "Q", "Q|T"], "D", 2, true], + "eth_getTransactionCount": [["D20", "Q|T"], "Q", 1, true], "eth_getBlockTransactionCountByHash": [["D32"], "Q", 1], "eth_getBlockTransactionCountByNumber": [["Q|T"], "Q", 1], "eth_getUncleCountByBlockHash": [["D32"], "Q", 1], @@ -24,7 +24,7 @@ "eth_sign": [["D20", "D32"], "D", 2], "eth_sendTransaction": [["SendTransaction"], "D", 1], "eth_sendRawTransaction": [["D"], "D32", 1], - "eth_call": [["CallTransaction", "Q|T"], "D", 1, 2], + "eth_call": [["CallTransaction", "Q|T"], "D", 1, true], "eth_estimateGas": [["EstimateTransaction", "Q|T"], "Q", 1], "eth_getBlockByHash": [["D32", "B"], "Block", 2], "eth_getBlockByNumber": [["Q|T", "B"], "Block", 2], From d927d3b4cd19f2be0a3ad9c7b4237e9ffed69dec Mon Sep 17 00:00:00 2001 From: Thorsten Krug Date: Fri, 24 Feb 2017 17:49:37 +0400 Subject: [PATCH 2/7] Fix typo in identifyer. --- src/schema.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/schema.json b/src/schema.json index aec364e..5ff5945 100644 --- a/src/schema.json +++ b/src/schema.json @@ -152,7 +152,7 @@ "__required": [], "fromBlock": "Q|T", "toBlock": "Q|T", - "address": "Array|Data", + "address": "Array|DATA", "topics": ["D"] }, "FilterChange": { From 7204c796f7d4ee4088fc0a9eba81576949519e84 Mon Sep 17 00:00:00 2001 From: Thorsten Krug Date: Mon, 27 Feb 2017 17:13:20 +0400 Subject: [PATCH 3/7] Adding composer file. --- composer.json | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 composer.json diff --git a/composer.json b/composer.json new file mode 100644 index 0000000..6d1110d --- /dev/null +++ b/composer.json @@ -0,0 +1,15 @@ +{ + "name": "digitaldonkey/ethjs-schema", + "description": "Schema file for Ethereum JSON RPC API. See: https://github.com/ethereum/wiki/wiki/JSON-RPC" + "license": "MIT", + "authors": [ + { + "name": "Nick Dodson", + "email": "nick.dodson@consensys.net" + }, + { + "name": "Thorsten Krug", + "email": "thorsten.krug@consensys.net" + } + ] +} From 31f1620bd7f23d9ca9913bea325b6fbd04ba95e4 Mon Sep 17 00:00:00 2001 From: Thorsten Krug Date: Mon, 27 Feb 2017 17:17:13 +0400 Subject: [PATCH 4/7] Fix typo. --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 6d1110d..fe75f93 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "digitaldonkey/ethjs-schema", - "description": "Schema file for Ethereum JSON RPC API. See: https://github.com/ethereum/wiki/wiki/JSON-RPC" + "description": "Schema file for Ethereum JSON RPC API. See: https://github.com/ethereum/wiki/wiki/JSON-RPC", "license": "MIT", "authors": [ { From 51b6ad08260557eaa1b83e3613ba46b6433f5946 Mon Sep 17 00:00:00 2001 From: Thorsten Krug Date: Mon, 6 Mar 2017 16:46:54 +0400 Subject: [PATCH 5/7] Added missing value. --- src/schema.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/schema.json b/src/schema.json index 5ff5945..e9f61b1 100644 --- a/src/schema.json +++ b/src/schema.json @@ -20,7 +20,7 @@ "eth_getBlockTransactionCountByNumber": [["Q|T"], "Q", 1], "eth_getUncleCountByBlockHash": [["D32"], "Q", 1], "eth_getUncleCountByBlockNumber": [["Q"], "Q", 1], - "eth_getCode": [["D20", "Q|T"], "D", 1, 2], + "eth_getCode": [["D20", "Q|T"], "D", 1, true], "eth_sign": [["D20", "D32"], "D", 2], "eth_sendTransaction": [["SendTransaction"], "D", 1], "eth_sendRawTransaction": [["D"], "D32", 1], From 4fe25ccd712505306617c1e4d451a3cb4a9ca0c6 Mon Sep 17 00:00:00 2001 From: Thorsten Krug Date: Mon, 6 Mar 2017 16:54:02 +0400 Subject: [PATCH 6/7] Add personal_sign and personal_ecRecover. --- src/schema.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/schema.json b/src/schema.json index e9f61b1..37528c2 100644 --- a/src/schema.json +++ b/src/schema.json @@ -5,6 +5,8 @@ "net_version": [[], "S"], "net_peerCount": [[], "Q"], "net_listening": [[], "B"], + "personal_sign": [["D20", "D", "S"], "D", 2], + "personal_ecRecover": [["D", "D"], "D20", 2], "eth_protocolVersion": [[], "S"], "eth_syncing": [[], "Boolean|EthSyncing"], "eth_coinbase": [[], "D20"], From 59fc26879a7d806a7bcaf278e8b2fed04ea674c9 Mon Sep 17 00:00:00 2001 From: Thorsten Krug Date: Thu, 29 Jun 2017 20:55:50 +0200 Subject: [PATCH 7/7] add ecrecover definition. --- src/schema.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/schema.json b/src/schema.json index 37528c2..3e21b3a 100644 --- a/src/schema.json +++ b/src/schema.json @@ -2,11 +2,12 @@ "methods": { "web3_clientVersion": [[], "S"], "web3_sha3": [["S"], "D", 1], + "ecrecover": [["D32","Q","D32","D32"], "D20", 4], "net_version": [[], "S"], "net_peerCount": [[], "Q"], "net_listening": [[], "B"], "personal_sign": [["D20", "D", "S"], "D", 2], - "personal_ecRecover": [["D", "D"], "D20", 2], + "personal_ecRecover": [["D", "D"], "D20", 2], "eth_protocolVersion": [[], "S"], "eth_syncing": [[], "Boolean|EthSyncing"], "eth_coinbase": [[], "D20"],