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/composer.json b/composer.json new file mode 100644 index 0000000..fe75f93 --- /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" + } + ] +} diff --git a/src/schema.json b/src/schema.json index 5f19df7..3e21b3a 100644 --- a/src/schema.json +++ b/src/schema.json @@ -2,9 +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], "eth_protocolVersion": [[], "S"], "eth_syncing": [[], "Boolean|EthSyncing"], "eth_coinbase": [[], "D20"], @@ -13,18 +16,18 @@ "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], "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], - "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], @@ -152,7 +155,7 @@ "__required": [], "fromBlock": "Q|T", "toBlock": "Q|T", - "address": "Array|Data", + "address": "Array|DATA", "topics": ["D"] }, "FilterChange": {