From a0ec3a4198fb92cee3218289c0e661bb7d2e04f2 Mon Sep 17 00:00:00 2001 From: james Date: Tue, 11 Sep 2018 11:03:39 -0500 Subject: [PATCH] Pre npm release updates --- README.md | 8 ++++---- docs/api.md | 31 +++++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 607f089..9617c67 100644 --- a/README.md +++ b/README.md @@ -16,11 +16,11 @@ read-only API calls. If you need to sign transactions use - diff --git a/docs/api.md b/docs/api.md index 549087f..f8c955e 100644 --- a/docs/api.md +++ b/docs/api.md @@ -12,6 +12,8 @@
getCodeResult : object
+
getCodeHashResult : object
+
getAbiResult : object
getRawCodeAndAbiResult : object
@@ -53,6 +55,7 @@ * [.getInfo()](#eos.getInfo) ⇒ string * [.getAccount(account_name)](#eos.getAccount) ⇒ string * [.getCode(account_name, [code_as_wasm])](#eos.getCode) ⇒ [getCodeResult](#getCodeResult) + * [.getCodeHash(account_name)](#eos.getCodeHash) ⇒ [getCodeHashResult](#getCodeHashResult) * [.getAbi(account_name)](#eos.getAbi) ⇒ [getAbiResult](#getAbiResult) * [.getRawCodeAndAbi(account_name)](#eos.getRawCodeAndAbi) ⇒ [getRawCodeAndAbiResult](#getRawCodeAndAbiResult) * [.abiJsonToBin(code, action, args)](#eos.abiJsonToBin) ⇒ [abiJsonToBinResult](#abiJsonToBinResult) @@ -127,6 +130,23 @@ url_path: `/v1/chain/get_code` ```js eos.getCode(account_name, code_as_wasm) ``` + + +### eos.getCodeHash(account_name) ⇒ [getCodeHashResult](#getCodeHashResult) +**Kind**: static method of [eos](#eos) + +| Param | Type | +| --- | --- | +| account_name | name | + +**Example** +```js +url_path: `/v1/chain/get_code_hash` +``` +**Example** +```js +eos.getCodeHash(account_name) +``` ### eos.getAbi(account_name) ⇒ [getAbiResult](#getAbiResult) @@ -524,6 +544,17 @@ eos.getControlledAccounts(controlling_account) | code_hash | sha256 | | abi | optional.<abi_def> | + + +## getCodeHashResult : object +**Kind**: global typedef +**Properties** + +| Name | Type | +| --- | --- | +| account_name | name | +| code_hash | sha256 | + ## getAbiResult : object