Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

dapp-client

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dapp-client - npm Package Compare versions

Comparing version 0.2.0 to 0.3.0

dist/types/chain/get_currency_stats.d.ts

16

dist/client/DappClient.d.ts

@@ -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";

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc