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.7.2 to 0.8.0

dist/types/dappairhodl1.d.ts

32

dist/DappClient.d.ts
import { Package, Accountext, Staking, Refunds } from "./types/dappservices";
import { DapphdlAccounts } from "./types/dappairhodl1";
import { GetTableRow } from "./types";

@@ -25,2 +26,3 @@ import { Fetch } from "./HttpClient";

dappservices: string;
dappairhodl1: string;
ipfsservice1: string;

@@ -32,2 +34,3 @@ oracleservic: string;

dappservices?: string;
dappairhodl1?: string;
ipfsservice1?: string;

@@ -170,2 +173,31 @@ oracleservic?: string;

/**
* Get TABLE accounts from dappairhodl1 contract
*
* @param {string} scope user account
* @param {object} [options={}] optional params
* @param {string} [options.lower_bound] Filters results to return the first element that is not less than provided value in set
* @param {string} [options.upper_bound] Filters results to return the first element that is greater than provided value in set
* @param {number} [options.limit=10] Limit the result amount
* @param {boolean} [options.show_payer=false] Show Payer
* @example
*
* const response = await client.get_dapphdl_accounts('eosnationdsp', {limit: 500});
*
* for (const row of response.rows) {
* console.log(row);
* // {
* // balance: '0.0000 DAPPHDL',
* // allocation: '0.0000 DAPPHDL',
* // staked: '0.0000 DAPPHDL',
* // claimed: false
* // }
* }
*/
get_dapphdl_accounts(scope: string, options?: {
lower_bound?: string;
upper_bound?: string;
limit?: number;
show_payer?: boolean;
}): Promise<import("./types").GetTableRows<DapphdlAccounts>>;
/**
* [GET /v1/dsp/ipfsservice1/get_table_row](https://docs.liquidapps.io)

@@ -172,0 +204,0 @@ *

@@ -35,2 +35,3 @@ "use strict";

this.dappservices = "dappservices";
this.dappairhodl1 = "dappairhodl1";
this.ipfsservice1 = "ipfsservice1";

@@ -40,2 +41,3 @@ this.oracleservic = "oracleservic";

this.dappservices = options.dappservices || this.dappservices;
this.dappairhodl1 = options.dappairhodl1 || this.dappairhodl1;
this.ipfsservice1 = options.ipfsservice1 || this.ipfsservice1;

@@ -166,2 +168,28 @@ this.oracleservic = options.oracleservic || this.oracleservic;

/**
* Get TABLE accounts from dappairhodl1 contract
*
* @param {string} scope user account
* @param {object} [options={}] optional params
* @param {string} [options.lower_bound] Filters results to return the first element that is not less than provided value in set
* @param {string} [options.upper_bound] Filters results to return the first element that is greater than provided value in set
* @param {number} [options.limit=10] Limit the result amount
* @param {boolean} [options.show_payer=false] Show Payer
* @example
*
* const response = await client.get_dapphdl_accounts('eosnationdsp', {limit: 500});
*
* for (const row of response.rows) {
* console.log(row);
* // {
* // balance: '0.0000 DAPPHDL',
* // allocation: '0.0000 DAPPHDL',
* // staked: '0.0000 DAPPHDL',
* // claimed: false
* // }
* }
*/
get_dapphdl_accounts(scope, options = {}) {
return this.get_table_rows(this.dappairhodl1, scope, "accounts", options);
}
/**
* [GET /v1/dsp/ipfsservice1/get_table_row](https://docs.liquidapps.io)

@@ -168,0 +196,0 @@ *

@@ -21,1 +21,6 @@ /**

export declare const DAPPHDL = ".1a4cm2ke1.o4";
export declare const dappservices = "dappservices";
export declare const dappairhodl1 = "dappairhodl1";
export declare const ipfsservice1 = "ipfsservice1";
export declare const oracleservic = "oracleservic";
export declare const cronservices = "cronservices";

@@ -23,2 +23,8 @@ "use strict";

exports.DAPPHDL = ".1a4cm2ke1.o4";
// Contract names
exports.dappservices = "dappservices";
exports.dappairhodl1 = "dappairhodl1";
exports.ipfsservice1 = "ipfsservice1";
exports.oracleservic = "oracleservic";
exports.cronservices = "cronservices";
//# sourceMappingURL=names.js.map

4

package.json
{
"name": "dapp-client",
"version": "0.7.2",
"version": "0.8.0",
"description": "DAPP JavaScript/TypeScript Client Library",

@@ -20,3 +20,3 @@ "license": "MIT",

"Denis Carriere <denis@eosnation.io>",
"Jan Langheimer <jan@eosindex.io>"
"Jan Langheimer <jan@langheimer.com>"
],

@@ -23,0 +23,0 @@ "directories": {

@@ -75,32 +75,35 @@ # DAPP JavaScript/TypeScript Client Library

- [Examples](#examples-4)
- [dsp_ipfs_get_table_row](#dsp_ipfs_get_table_row)
- [get_dapphdl_accounts](#get_dapphdl_accounts)
- [Parameters](#parameters-5)
- [Examples](#examples-5)
- [dsp_ipfs_get_table_row](#dsp_ipfs_get_table_row)
- [Parameters](#parameters-6)
- [Examples](#examples-6)
- [DAPP](#dapp)
- [Examples](#examples-6)
- [Examples](#examples-7)
- [DAPPHDL](#dapphdl)
- [Examples](#examples-7)
- [Examples](#examples-8)
- [EosioClient](#eosioclient)
- [Parameters](#parameters-6)
- [Examples](#examples-8)
- [Parameters](#parameters-7)
- [Examples](#examples-9)
- [get_table_rows](#get_table_rows)
- [Parameters](#parameters-7)
- [Examples](#examples-9)
- [get_all_table_rows](#get_all_table_rows)
- [Parameters](#parameters-8)
- [Examples](#examples-10)
- [get_table_by_scope](#get_table_by_scope)
- [get_all_table_rows](#get_all_table_rows)
- [Parameters](#parameters-9)
- [Examples](#examples-11)
- [get_currency_balance](#get_currency_balance)
- [get_table_by_scope](#get_table_by_scope)
- [Parameters](#parameters-10)
- [Examples](#examples-12)
- [get_currency_stats](#get_currency_stats)
- [get_currency_balance](#get_currency_balance)
- [Parameters](#parameters-11)
- [Examples](#examples-13)
- [get_currency_stats](#get_currency_stats)
- [Parameters](#parameters-12)
- [Examples](#examples-14)
- [get_info](#get_info)
- [Examples](#examples-14)
- [Examples](#examples-15)
- [delay](#delay)
- [Parameters](#parameters-12)
- [Examples](#examples-15)
- [Parameters](#parameters-13)
- [Examples](#examples-16)

@@ -262,2 +265,31 @@ ### DappClient

#### get_dapphdl_accounts
Get TABLE accounts from dappairhodl1 contract
##### Parameters
- `scope` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** user account
- `options` **[object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** optional params (optional, default `{}`)
- `options.lower_bound` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?** Filters results to return the first element that is not less than provided value in set
- `options.upper_bound` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?** Filters results to return the first element that is greater than provided value in set
- `options.limit` **[number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)** Limit the result amount (optional, default `10`)
- `options.show_payer` **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** Show Payer (optional, default `false`)
##### Examples
```javascript
const response = await client.get_dapphdl_accounts('eosnationdsp', {limit: 500});
for (const row of response.rows) {
console.log(row);
// {
// balance: '0.0000 DAPPHDL',
// allocation: '0.0000 DAPPHDL',
// staked: '0.0000 DAPPHDL',
// claimed: false
// }
}
```
#### dsp_ipfs_get_table_row

@@ -264,0 +296,0 @@

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