dapp-client
Advanced tools
Comparing version 0.3.0 to 0.4.0
/** | ||
* claimrewards | ||
* ACTION | ||
* | ||
* `dappservices::claimrewards` | ||
* | ||
* @param {string} provider name | ||
* @example | ||
* | ||
* claimrewards("<DSP Provider>"); | ||
*/ | ||
@@ -10,6 +15,12 @@ export declare function claimrewards(provider: string): { | ||
/** | ||
* close | ||
* ACTION | ||
* | ||
* `dappservices::close` | ||
* | ||
* @private | ||
* @param {string} owner name | ||
* @param {string} symbol symbol_code | ||
* @example | ||
* | ||
* close("dappservices", "DAPP") | ||
*/ | ||
@@ -21,7 +32,12 @@ export declare function close(owner: string, symbol: string): { | ||
/** | ||
* closeprv | ||
* ACTION | ||
* | ||
* `dappservices::closeprv` | ||
* | ||
* @param {string} owner name | ||
* @param {string} service name | ||
* @param {string} provider name | ||
* @example | ||
* | ||
* closeprv("<Account>", "ipfsservice1", "<DSP Provider>") | ||
*/ | ||
@@ -34,7 +50,13 @@ export declare function closeprv(owner: string, service: string, provider: string): { | ||
/** | ||
* create | ||
* ACTION | ||
* | ||
* `dappservices::create` | ||
* | ||
* @private | ||
* @param {string} maximum_supply_amount uint64_t | ||
* @param {number} inflation_per_block double | ||
* @param {string} inflation_starts_at uint64_t | ||
* @example | ||
* | ||
* create("20000000000.0000 DAPP", 0.00000000042394888, 1551196800000) | ||
*/ | ||
@@ -47,9 +69,13 @@ export declare function create(maximum_supply_amount: string, inflation_per_block: number, inflation_starts_at: string): { | ||
/** | ||
* @private | ||
* ACTION | ||
* | ||
* disablepkg | ||
* `dappservices::disablepkg` | ||
* | ||
* @private | ||
* @param {string} service name | ||
* @param {string} provider name | ||
* @param {string} package_id name | ||
* @example | ||
* | ||
* disablepkg("ipfsservice1", "<DSP Provider>", "package1") | ||
*/ | ||
@@ -62,9 +88,13 @@ export declare function disablepkg(service: string, provider: string, package_id: string): { | ||
/** | ||
* @private | ||
* ACTION | ||
* | ||
* enablepkg | ||
* `dappservices::enablepkg` | ||
* | ||
* @private | ||
* @param {string} service name | ||
* @param {string} provider name | ||
* @param {string} package_id name | ||
* @example | ||
* | ||
* enablepkg("ipfsservice1", "<DSP Provider>", "package1") | ||
*/ | ||
@@ -77,7 +107,13 @@ export declare function enablepkg(service: string, provider: string, package_id: string): { | ||
/** | ||
* issue | ||
* ACTION | ||
* | ||
* `dappservices::issue` | ||
* | ||
* @private | ||
* @param {string} to name | ||
* @param {string} quantity asset | ||
* @param {string} memo string | ||
* @example | ||
* | ||
* issue("<Account>", "1.0000 DAPP", "init") | ||
*/ | ||
@@ -90,4 +126,6 @@ export declare function issue(to: string, quantity: string, memo: string): { | ||
/** | ||
* modifypkg | ||
* ACTION | ||
* | ||
* `dappservices::modifypkg` | ||
* | ||
* @param {string} provider name | ||
@@ -107,7 +145,13 @@ * @param {string} package_id name | ||
/** | ||
* open | ||
* ACTION | ||
* | ||
* `dappservices::open` | ||
* | ||
* @private | ||
* @param {string} owner name | ||
* @param {string} symbol symbol_code | ||
* @param {string} ram_payer name | ||
* @example | ||
* | ||
* open("dappservices", "DAPP", "dappservices") | ||
*/ | ||
@@ -120,4 +164,6 @@ export declare function open(owner: string, symbol: string, ram_payer: string): { | ||
/** | ||
* refund | ||
* ACTION | ||
* | ||
* `dappservices::refund` | ||
* | ||
* @param {string} to name | ||
@@ -127,2 +173,5 @@ * @param {string} provider name | ||
* @param {string} symcode symbol_code | ||
* @example | ||
* | ||
* refund("<Account>", "<DSP Provider>", "ipfsserver1", "DAPP") | ||
*/ | ||
@@ -136,4 +185,6 @@ export declare function refund(to: string, provider: string, service: string, symcode: string): { | ||
/** | ||
* regpkg | ||
* ACTION | ||
* | ||
* `dappservices::regpkg` | ||
* | ||
* @param {string} newpackage package | ||
@@ -145,4 +196,7 @@ */ | ||
/** | ||
* retire | ||
* ACTION | ||
* | ||
* `dappservices::retire` | ||
* | ||
* @private | ||
* @param {string} quantity asset | ||
@@ -156,4 +210,6 @@ * @param {string} memo string | ||
/** | ||
* selectpkg | ||
* ACTION | ||
* | ||
* `dappservices::selectpkg` | ||
* | ||
* @param {string} owner name | ||
@@ -171,4 +227,6 @@ * @param {string} provider name | ||
/** | ||
* stake | ||
* ACTION | ||
* | ||
* `dappservices::stake` | ||
* | ||
* @param {string} from name | ||
@@ -186,4 +244,6 @@ * @param {string} provider name | ||
/** | ||
* transfer | ||
* ACTION | ||
* | ||
* `dappservices::transfer` | ||
* | ||
* @param {string} from name | ||
@@ -201,4 +261,6 @@ * @param {string} to name | ||
/** | ||
* unstake | ||
* ACTION | ||
* | ||
* `dappservices::unstake` | ||
* | ||
* @param {string} to name | ||
@@ -216,5 +278,18 @@ * @param {string} provider name | ||
/** | ||
* usage | ||
* ACTION | ||
* | ||
* `dappservices::usage` | ||
* | ||
* @private | ||
* @param {string} usage_report usage_t | ||
* @example | ||
* | ||
* usage(JSON.stringify({ | ||
* package: "package1", | ||
* payer: "eosndappdapp", | ||
* provider: "eosnationdsp", | ||
* quantity: "0.0001 QUOTA", | ||
* service: "ipfsservice1", | ||
* success: 0 | ||
* })); | ||
*/ | ||
@@ -225,4 +300,7 @@ export declare function usage(usage_report: string): { | ||
/** | ||
* xsignal | ||
* ACTION | ||
* | ||
* `dappservices::xsignal` | ||
* | ||
* @private | ||
* @param {string} service name | ||
@@ -229,0 +307,0 @@ * @param {string} action name |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
/** | ||
* claimrewards | ||
* ACTION | ||
* | ||
* `dappservices::claimrewards` | ||
* | ||
* @param {string} provider name | ||
* @example | ||
* | ||
* claimrewards("<DSP Provider>"); | ||
*/ | ||
@@ -15,6 +20,12 @@ function claimrewards(provider) { | ||
/** | ||
* close | ||
* ACTION | ||
* | ||
* `dappservices::close` | ||
* | ||
* @private | ||
* @param {string} owner name | ||
* @param {string} symbol symbol_code | ||
* @example | ||
* | ||
* close("dappservices", "DAPP") | ||
*/ | ||
@@ -29,7 +40,12 @@ function close(owner, symbol) { | ||
/** | ||
* closeprv | ||
* ACTION | ||
* | ||
* `dappservices::closeprv` | ||
* | ||
* @param {string} owner name | ||
* @param {string} service name | ||
* @param {string} provider name | ||
* @example | ||
* | ||
* closeprv("<Account>", "ipfsservice1", "<DSP Provider>") | ||
*/ | ||
@@ -45,7 +61,13 @@ function closeprv(owner, service, provider) { | ||
/** | ||
* create | ||
* ACTION | ||
* | ||
* `dappservices::create` | ||
* | ||
* @private | ||
* @param {string} maximum_supply_amount uint64_t | ||
* @param {number} inflation_per_block double | ||
* @param {string} inflation_starts_at uint64_t | ||
* @example | ||
* | ||
* create("20000000000.0000 DAPP", 0.00000000042394888, 1551196800000) | ||
*/ | ||
@@ -61,9 +83,13 @@ function create(maximum_supply_amount, inflation_per_block, inflation_starts_at) { | ||
/** | ||
* @private | ||
* ACTION | ||
* | ||
* disablepkg | ||
* `dappservices::disablepkg` | ||
* | ||
* @private | ||
* @param {string} service name | ||
* @param {string} provider name | ||
* @param {string} package_id name | ||
* @example | ||
* | ||
* disablepkg("ipfsservice1", "<DSP Provider>", "package1") | ||
*/ | ||
@@ -79,9 +105,13 @@ function disablepkg(service, provider, package_id) { | ||
/** | ||
* @private | ||
* ACTION | ||
* | ||
* enablepkg | ||
* `dappservices::enablepkg` | ||
* | ||
* @private | ||
* @param {string} service name | ||
* @param {string} provider name | ||
* @param {string} package_id name | ||
* @example | ||
* | ||
* enablepkg("ipfsservice1", "<DSP Provider>", "package1") | ||
*/ | ||
@@ -97,7 +127,13 @@ function enablepkg(service, provider, package_id) { | ||
/** | ||
* issue | ||
* ACTION | ||
* | ||
* `dappservices::issue` | ||
* | ||
* @private | ||
* @param {string} to name | ||
* @param {string} quantity asset | ||
* @param {string} memo string | ||
* @example | ||
* | ||
* issue("<Account>", "1.0000 DAPP", "init") | ||
*/ | ||
@@ -113,4 +149,6 @@ function issue(to, quantity, memo) { | ||
/** | ||
* modifypkg | ||
* ACTION | ||
* | ||
* `dappservices::modifypkg` | ||
* | ||
* @param {string} provider name | ||
@@ -133,7 +171,13 @@ * @param {string} package_id name | ||
/** | ||
* open | ||
* ACTION | ||
* | ||
* `dappservices::open` | ||
* | ||
* @private | ||
* @param {string} owner name | ||
* @param {string} symbol symbol_code | ||
* @param {string} ram_payer name | ||
* @example | ||
* | ||
* open("dappservices", "DAPP", "dappservices") | ||
*/ | ||
@@ -149,4 +193,6 @@ function open(owner, symbol, ram_payer) { | ||
/** | ||
* refund | ||
* ACTION | ||
* | ||
* `dappservices::refund` | ||
* | ||
* @param {string} to name | ||
@@ -156,2 +202,5 @@ * @param {string} provider name | ||
* @param {string} symcode symbol_code | ||
* @example | ||
* | ||
* refund("<Account>", "<DSP Provider>", "ipfsserver1", "DAPP") | ||
*/ | ||
@@ -168,4 +217,6 @@ function refund(to, provider, service, symcode) { | ||
/** | ||
* regpkg | ||
* ACTION | ||
* | ||
* `dappservices::regpkg` | ||
* | ||
* @param {string} newpackage package | ||
@@ -180,4 +231,7 @@ */ | ||
/** | ||
* retire | ||
* ACTION | ||
* | ||
* `dappservices::retire` | ||
* | ||
* @private | ||
* @param {string} quantity asset | ||
@@ -194,4 +248,6 @@ * @param {string} memo string | ||
/** | ||
* selectpkg | ||
* ACTION | ||
* | ||
* `dappservices::selectpkg` | ||
* | ||
* @param {string} owner name | ||
@@ -212,4 +268,6 @@ * @param {string} provider name | ||
/** | ||
* stake | ||
* ACTION | ||
* | ||
* `dappservices::stake` | ||
* | ||
* @param {string} from name | ||
@@ -230,4 +288,6 @@ * @param {string} provider name | ||
/** | ||
* transfer | ||
* ACTION | ||
* | ||
* `dappservices::transfer` | ||
* | ||
* @param {string} from name | ||
@@ -248,4 +308,6 @@ * @param {string} to name | ||
/** | ||
* unstake | ||
* ACTION | ||
* | ||
* `dappservices::unstake` | ||
* | ||
* @param {string} to name | ||
@@ -266,5 +328,18 @@ * @param {string} provider name | ||
/** | ||
* usage | ||
* ACTION | ||
* | ||
* `dappservices::usage` | ||
* | ||
* @private | ||
* @param {string} usage_report usage_t | ||
* @example | ||
* | ||
* usage(JSON.stringify({ | ||
* package: "package1", | ||
* payer: "eosndappdapp", | ||
* provider: "eosnationdsp", | ||
* quantity: "0.0001 QUOTA", | ||
* service: "ipfsservice1", | ||
* success: 0 | ||
* })); | ||
*/ | ||
@@ -278,4 +353,7 @@ function usage(usage_report) { | ||
/** | ||
* xsignal | ||
* ACTION | ||
* | ||
* `dappservices::xsignal` | ||
* | ||
* @private | ||
* @param {string} service name | ||
@@ -282,0 +360,0 @@ * @param {string} action name |
@@ -1,1 +0,2 @@ | ||
export * from "./dappservices"; | ||
import * as dappservices from "./dappservices"; | ||
export { dappservices }; |
"use strict"; | ||
function __export(m) { | ||
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; | ||
} | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; | ||
result["default"] = mod; | ||
return result; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
__export(require("./dappservices")); | ||
const dappservices = __importStar(require("./dappservices")); | ||
exports.dappservices = dappservices; | ||
//# sourceMappingURL=index.js.map |
@@ -155,2 +155,17 @@ import { GetInfo, GetTableRows, GetTableByScope, Package, Accountext, GetCurrencyStats } from "../types"; | ||
/** | ||
* [GET /v1/chain/get_currency_balance](https://developers.eos.io/eosio-nodeos/reference#get_currency_balance) | ||
* | ||
* Retrieve the stats of for a given currency | ||
* | ||
* @param {string} code The contract that operates the currency | ||
* @param {string} account The account to query balances for | ||
* @param {string} symbol The symbol for the currency if the contract operates multiple currencies | ||
* @returns {Promise<GetCurrencyBalance>} table rows | ||
* @example | ||
* | ||
* const response = await rpc.get_currency_balance("eosio.token", "eosio.null", "EOS"); | ||
* console.log(response); | ||
*/ | ||
get_currency_balance(code: string, account: string, symbol: string): Promise<string[]>; | ||
/** | ||
* [GET /v1/chain/get_currency_stats](https://developers.eos.io/eosio-nodeos/reference#get_currency_stats) | ||
@@ -157,0 +172,0 @@ * |
@@ -176,2 +176,23 @@ "use strict"; | ||
/** | ||
* [GET /v1/chain/get_currency_balance](https://developers.eos.io/eosio-nodeos/reference#get_currency_balance) | ||
* | ||
* Retrieve the stats of for a given currency | ||
* | ||
* @param {string} code The contract that operates the currency | ||
* @param {string} account The account to query balances for | ||
* @param {string} symbol The symbol for the currency if the contract operates multiple currencies | ||
* @returns {Promise<GetCurrencyBalance>} table rows | ||
* @example | ||
* | ||
* const response = await rpc.get_currency_balance("eosio.token", "eosio.null", "EOS"); | ||
* console.log(response); | ||
*/ | ||
get_currency_balance(code, account, symbol) { | ||
return this.post(endpoints_1.V1_GET_CURRENCY_BALANCE, { | ||
code, | ||
account, | ||
symbol, | ||
}); | ||
} | ||
/** | ||
* [GET /v1/chain/get_currency_stats](https://developers.eos.io/eosio-nodeos/reference#get_currency_stats) | ||
@@ -178,0 +199,0 @@ * |
@@ -18,4 +18,5 @@ "use strict"; | ||
exports.DappClient = DappClient_1.DappClient; | ||
// commonly used DAPP actions used to perform EOSIO actions | ||
const actions = __importStar(require("./actions/index")); | ||
exports.actions = actions; | ||
//# sourceMappingURL=index.js.map |
@@ -5,1 +5,2 @@ export declare const V1_GET_INFO = "/v1/chain/get_info"; | ||
export declare const V1_GET_CURRENCY_STATS = "/v1/chain/get_currency_stats"; | ||
export declare const V1_GET_CURRENCY_BALANCE = "/v1/chain/get_currency_balance"; |
@@ -8,2 +8,3 @@ "use strict"; | ||
exports.V1_GET_CURRENCY_STATS = "/v1/chain/get_currency_stats"; | ||
exports.V1_GET_CURRENCY_BALANCE = "/v1/chain/get_currency_balance"; | ||
//# sourceMappingURL=endpoints.js.map |
@@ -5,2 +5,3 @@ export { GetTableRows } from "./chain/get_table_rows"; | ||
export { GetCurrencyStats } from "./chain/get_currency_stats"; | ||
export { GetCurrencyBalance } from "./chain/get_currency_balance"; | ||
export * from "./dappservices"; | ||
@@ -7,0 +8,0 @@ export { Action } from "./eosio/action_trace"; |
{ | ||
"name": "dapp-client", | ||
"version": "0.3.0", | ||
"version": "0.4.0", | ||
"description": "DAPP JavaScript/TypeScript Client Library", | ||
@@ -20,6 +20,6 @@ "main": "dist/index.js", | ||
], | ||
"homepage": "https://github.com/EOS-Nation/dapp-network-js", | ||
"homepage": "https://github.com/EOS-Nation/dapp-client-js", | ||
"license": "MIT", | ||
"devDependencies": { | ||
"@types/debug": "^4.1.4", | ||
"@types/debug": "*", | ||
"@types/isomorphic-fetch": "*", | ||
@@ -29,3 +29,2 @@ "@types/jest": "*", | ||
"documentation": "*", | ||
"eosjs": "^20.0.0", | ||
"isomorphic-fetch": "*", | ||
@@ -39,14 +38,7 @@ "jest": "*", | ||
"dependencies": { | ||
"debug": "^4.1.1" | ||
"debug": "*" | ||
}, | ||
"directories": { | ||
"example": "examples" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/EOS-Nation/dapp-network-js.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/EOS-Nation/dapp-network-js/issues" | ||
} | ||
} |
217
README.md
@@ -17,8 +17,2 @@ # DAPP JavaScript/TypeScript Client Library | ||
or using latest: | ||
```bash | ||
npm install --save git+ssh://git@github.com:EOS-Nation/dapp-client-js.git | ||
``` | ||
## Quick Start | ||
@@ -50,5 +44,6 @@ | ||
# Chain | ||
/v1/chain/get_currency_stats | ||
/v1/chain/get_info | ||
/v1/chain/get_table_by_scope | ||
/v1/chain/get_table_rows | ||
/v1/chain/get_table_by_scope | ||
/v1/chain/get_currency_stats | ||
``` | ||
@@ -79,34 +74,31 @@ | ||
- [Examples](#examples-5) | ||
- [get_currency_balance](#get_currency_balance) | ||
- [Parameters](#parameters-5) | ||
- [Examples](#examples-6) | ||
- [get_currency_stats](#get_currency_stats) | ||
- [Parameters](#parameters-6) | ||
- [Examples](#examples-7) | ||
- [get_info](#get_info) | ||
- [Examples](#examples-8) | ||
- [claimrewards](#claimrewards) | ||
- [Parameters](#parameters-5) | ||
- [close](#close) | ||
- [Parameters](#parameters-6) | ||
- [Parameters](#parameters-7) | ||
- [Examples](#examples-9) | ||
- [closeprv](#closeprv) | ||
- [Parameters](#parameters-7) | ||
- [create](#create) | ||
- [Parameters](#parameters-8) | ||
- [issue](#issue) | ||
- [Examples](#examples-10) | ||
- [modifypkg](#modifypkg) | ||
- [Parameters](#parameters-9) | ||
- [modifypkg](#modifypkg) | ||
- [refund](#refund) | ||
- [Parameters](#parameters-10) | ||
- [open](#open) | ||
- [Examples](#examples-11) | ||
- [regpkg](#regpkg) | ||
- [Parameters](#parameters-11) | ||
- [refund](#refund) | ||
- [selectpkg](#selectpkg) | ||
- [Parameters](#parameters-12) | ||
- [regpkg](#regpkg) | ||
- [stake](#stake) | ||
- [Parameters](#parameters-13) | ||
- [retire](#retire) | ||
- [transfer](#transfer) | ||
- [Parameters](#parameters-14) | ||
- [selectpkg](#selectpkg) | ||
- [unstake](#unstake) | ||
- [Parameters](#parameters-15) | ||
- [stake](#stake) | ||
- [Parameters](#parameters-16) | ||
- [transfer](#transfer) | ||
- [Parameters](#parameters-17) | ||
- [unstake](#unstake) | ||
- [Parameters](#parameters-18) | ||
- [usage](#usage) | ||
- [Parameters](#parameters-19) | ||
- [xsignal](#xsignal) | ||
- [Parameters](#parameters-20) | ||
@@ -271,53 +263,98 @@ ### DAPP | ||
### claimrewards | ||
#### get_currency_balance | ||
claimrewards | ||
[GET /v1/chain/get_currency_balance](https://developers.eos.io/eosio-nodeos/reference#get_currency_balance) | ||
#### Parameters | ||
Retrieve the stats of for a given currency | ||
- `provider` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** name | ||
##### Parameters | ||
### close | ||
- `code` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** The contract that operates the currency | ||
- `account` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** The account to query balances for | ||
- `symbol` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** The symbol for the currency if the contract operates multiple currencies | ||
close | ||
##### Examples | ||
#### Parameters | ||
```javascript | ||
const response = await rpc.get_currency_balance("eosio.token", "eosio.null", "EOS"); | ||
console.log(response); | ||
``` | ||
- `owner` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** name | ||
- `symbol` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** symbol_code | ||
Returns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)<GetCurrencyBalance>** table rows | ||
### closeprv | ||
#### get_currency_stats | ||
closeprv | ||
[GET /v1/chain/get_currency_stats](https://developers.eos.io/eosio-nodeos/reference#get_currency_stats) | ||
Retrieve the stats of for a given currency | ||
##### Parameters | ||
- `code` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** The contract that operates the currency | ||
- `symbol` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** The symbol for the currency if the contract operates multiple currencies | ||
##### Examples | ||
```javascript | ||
const response = await rpc.get_currency_stats("eosio.token", "EOS"); | ||
console.log(response); | ||
``` | ||
Returns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)<GetCurrencyStats>** table rows | ||
#### get_info | ||
[GET /v1/chain/get_info](https://developers.eos.io/eosio-nodeos/reference#get_info) | ||
Returns an object containing various details about the blockchain. | ||
##### Examples | ||
```javascript | ||
const response = await rpc.get_info(); | ||
console.log(response); | ||
``` | ||
Returns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)<GetInfo>** table rows | ||
### claimrewards | ||
ACTION | ||
`dappservices::claimrewards` | ||
#### Parameters | ||
- `owner` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** name | ||
- `service` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** name | ||
- `provider` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** name | ||
### create | ||
#### Examples | ||
create | ||
```javascript | ||
claimrewards("<DSP Provider>"); | ||
``` | ||
#### Parameters | ||
### closeprv | ||
- `maximum_supply_amount` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** uint64_t | ||
- `inflation_per_block` **[number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)** double | ||
- `inflation_starts_at` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** uint64_t | ||
ACTION | ||
### issue | ||
`dappservices::closeprv` | ||
issue | ||
#### Parameters | ||
- `to` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** name | ||
- `quantity` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** asset | ||
- `memo` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** string | ||
- `owner` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** name | ||
- `service` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** name | ||
- `provider` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** name | ||
#### Examples | ||
```javascript | ||
closeprv("<Account>", "ipfsservice1", "<DSP Provider>") | ||
``` | ||
### modifypkg | ||
modifypkg | ||
ACTION | ||
`dappservices::modifypkg` | ||
#### Parameters | ||
@@ -331,16 +368,8 @@ | ||
### open | ||
### refund | ||
open | ||
ACTION | ||
#### Parameters | ||
`dappservices::refund` | ||
- `owner` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** name | ||
- `symbol` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** symbol_code | ||
- `ram_payer` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** name | ||
### refund | ||
refund | ||
#### Parameters | ||
@@ -353,23 +382,24 @@ | ||
### regpkg | ||
#### Examples | ||
regpkg | ||
```javascript | ||
refund("<Account>", "<DSP Provider>", "ipfsserver1", "DAPP") | ||
``` | ||
#### Parameters | ||
### regpkg | ||
- `newpackage` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** package | ||
ACTION | ||
### retire | ||
`dappservices::regpkg` | ||
retire | ||
#### Parameters | ||
- `quantity` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** asset | ||
- `memo` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** string | ||
- `newpackage` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** package | ||
### selectpkg | ||
selectpkg | ||
ACTION | ||
`dappservices::selectpkg` | ||
#### Parameters | ||
@@ -384,4 +414,6 @@ | ||
stake | ||
ACTION | ||
`dappservices::stake` | ||
#### Parameters | ||
@@ -396,4 +428,6 @@ | ||
transfer | ||
ACTION | ||
`dappservices::transfer` | ||
#### Parameters | ||
@@ -408,4 +442,6 @@ | ||
unstake | ||
ACTION | ||
`dappservices::unstake` | ||
#### Parameters | ||
@@ -417,22 +453,1 @@ | ||
- `quantity` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** asset | ||
### usage | ||
usage | ||
#### Parameters | ||
- `usage_report` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** usage_t | ||
### xsignal | ||
xsignal | ||
#### Parameters | ||
- `service` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** name | ||
- `action` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** name | ||
- `provider` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** name | ||
- `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
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
Wildcard dependency
QualityPackage has a dependency with a floating version range. This can cause issues if the dependency publishes a new major version.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
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
77741
11
54
1569
444
2
2
1
Updateddebug@*