dapp-client
Advanced tools
Comparing version 0.2.0 to 0.3.0
@@ -1,2 +0,2 @@ | ||
import { GetInfo, GetTableRows, GetTableByScope, Package, Accountext } from "../types"; | ||
import { GetInfo, GetTableRows, GetTableByScope, Package, Accountext, GetCurrencyStats } from "../types"; | ||
import { HttpClient, Fetch } from "./HttpClient"; | ||
@@ -155,2 +155,16 @@ /** | ||
/** | ||
* [GET /v1/chain/get_currency_stats](https://developers.eos.io/eosio-nodeos/reference#get_currency_stats) | ||
* | ||
* Retrieve the stats of for a given currency | ||
* | ||
* @param {string} code The contract that operates the currency | ||
* @param {string} symbol The symbol for the currency if the contract operates multiple currencies | ||
* @returns {Promise<GetCurrencyStats>} table rows | ||
* @example | ||
* | ||
* const response = await rpc.get_currency_stats("eosio.token", "EOS"); | ||
* console.log(response); | ||
*/ | ||
get_currency_stats(code: string, symbol: string): Promise<GetCurrencyStats>; | ||
/** | ||
* [GET /v1/chain/get_info](https://developers.eos.io/eosio-nodeos/reference#get_info) | ||
@@ -157,0 +171,0 @@ * |
@@ -176,2 +176,21 @@ "use strict"; | ||
/** | ||
* [GET /v1/chain/get_currency_stats](https://developers.eos.io/eosio-nodeos/reference#get_currency_stats) | ||
* | ||
* Retrieve the stats of for a given currency | ||
* | ||
* @param {string} code The contract that operates the currency | ||
* @param {string} symbol The symbol for the currency if the contract operates multiple currencies | ||
* @returns {Promise<GetCurrencyStats>} table rows | ||
* @example | ||
* | ||
* const response = await rpc.get_currency_stats("eosio.token", "EOS"); | ||
* console.log(response); | ||
*/ | ||
get_currency_stats(code, symbol) { | ||
return this.post(endpoints_1.V1_GET_CURRENCY_STATS, { | ||
code, | ||
symbol, | ||
}); | ||
} | ||
/** | ||
* [GET /v1/chain/get_info](https://developers.eos.io/eosio-nodeos/reference#get_info) | ||
@@ -178,0 +197,0 @@ * |
export declare const V1_GET_INFO = "/v1/chain/get_info"; | ||
export declare const V1_GET_TABLE_ROWS = "/v1/chain/get_table_rows"; | ||
export declare const V1_GET_TABLE_BY_SCOPE = "/v1/chain/get_table_by_scope"; | ||
export declare const V1_GET_CURRENCY_STATS = "/v1/chain/get_currency_stats"; |
@@ -7,2 +7,3 @@ "use strict"; | ||
exports.V1_GET_TABLE_BY_SCOPE = "/v1/chain/get_table_by_scope"; | ||
exports.V1_GET_CURRENCY_STATS = "/v1/chain/get_currency_stats"; | ||
//# sourceMappingURL=endpoints.js.map |
export { GetTableRows } from "./chain/get_table_rows"; | ||
export { GetTableByScope } from "./chain/get_table_by_scope"; | ||
export { GetInfo } from "./chain/get_info"; | ||
export { GetCurrencyStats } from "./chain/get_currency_stats"; | ||
export * from "./dappservices"; | ||
@@ -5,0 +6,0 @@ export { Action } from "./eosio/action_trace"; |
{ | ||
"name": "dapp-client", | ||
"version": "0.2.0", | ||
"version": "0.3.0", | ||
"description": "DAPP JavaScript/TypeScript Client Library", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -51,2 +51,3 @@ # DAPP JavaScript/TypeScript Client Library | ||
/v1/chain/get_table_by_scope | ||
/v1/chain/get_currency_stats | ||
``` | ||
@@ -426,4 +427,4 @@ | ||
- `provider` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** name | ||
- `pkg` | ||
- `pkg` | ||
- `signalRawData` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** std::vector<char> | ||
- `package` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** name |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
72380
1364
429
51