@beblurt/blurt-nodes-checker 1.0.1 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +70 -83
- package/dist/blurt-nodes-checker.min.js +79 -5
- package/lib/helpers/index.d.ts +27 -19
- package/lib/helpers/index.js +20 -0
- package/lib/helpers/index.js.map +1 -1
- package/lib/index.d.ts +6 -5
- package/lib/index.js +116 -113
- package/lib/index.js.map +1 -1
- package/lib/test.d.ts +3 -1
- package/lib/test.js +86 -13
- package/lib/test.js.map +1 -1
- package/package.json +12 -12
- package/lib/helpers/BLOCK_API/GET_BLOCK.d.ts +0 -26
- package/lib/helpers/BLOCK_API/GET_BLOCK.js +0 -2
- package/lib/helpers/BLOCK_API/GET_BLOCK.js.map +0 -1
- package/lib/helpers/CONDENSER_API/DYNAMIC_GLOBAL_PROPERTIES.d.ts +0 -67
- package/lib/helpers/CONDENSER_API/DYNAMIC_GLOBAL_PROPERTIES.js +0 -2
- package/lib/helpers/CONDENSER_API/DYNAMIC_GLOBAL_PROPERTIES.js.map +0 -1
- package/lib/helpers/CONDENSER_API/GET_ACCOUNT.d.ts +0 -73
- package/lib/helpers/CONDENSER_API/GET_ACCOUNT.js +0 -2
- package/lib/helpers/CONDENSER_API/GET_ACCOUNT.js.map +0 -1
- package/lib/helpers/CONDENSER_API/GET_BLOG_ENTRY.d.ts +0 -7
- package/lib/helpers/CONDENSER_API/GET_BLOG_ENTRY.js +0 -2
- package/lib/helpers/CONDENSER_API/GET_BLOG_ENTRY.js.map +0 -1
- package/lib/helpers/CONDENSER_API/GET_CONFIG.d.ts +0 -174
- package/lib/helpers/CONDENSER_API/GET_CONFIG.js +0 -2
- package/lib/helpers/CONDENSER_API/GET_CONFIG.js.map +0 -1
- package/lib/helpers/CONDENSER_API/GET_CONTENT.d.ts +0 -54
- package/lib/helpers/CONDENSER_API/GET_CONTENT.js +0 -2
- package/lib/helpers/CONDENSER_API/GET_CONTENT.js.map +0 -1
- package/lib/helpers/CONDENSER_API/GET_DISCUSSION.d.ts +0 -39
- package/lib/helpers/CONDENSER_API/GET_DISCUSSION.js +0 -2
- package/lib/helpers/CONDENSER_API/GET_DISCUSSION.js.map +0 -1
package/lib/test.js
CHANGED
|
@@ -1,31 +1,102 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @project @beblurt/blurt-nodes-checker
|
|
3
|
+
* @file Full tests
|
|
4
|
+
* @description Testing the different RPC nodes of the Blurt blockchain
|
|
5
|
+
* @author BeBlurt <https://beblurt.com/@beblurt>
|
|
6
|
+
* @license
|
|
7
|
+
* Copyright (C) 2022 IMT ASE Co., LTD
|
|
8
|
+
*
|
|
9
|
+
* This program is free software: you can redistribute it and/or modify
|
|
10
|
+
* it under the terms of the GNU General Public License as published by
|
|
11
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
12
|
+
* (at your option) any later version.
|
|
13
|
+
*
|
|
14
|
+
* This program is distributed in the hope that it will be useful,
|
|
15
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
16
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
17
|
+
* GNU General Public License for more details.
|
|
18
|
+
*
|
|
19
|
+
* You should have received a copy of the GNU General Public License
|
|
20
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
21
|
+
*/
|
|
1
22
|
export const testList = (block, account, permlink) => {
|
|
2
23
|
return [
|
|
3
24
|
{
|
|
4
|
-
name: "
|
|
5
|
-
description: "
|
|
6
|
-
|
|
7
|
-
|
|
25
|
+
name: "Bridge | account_notifications ",
|
|
26
|
+
description: "Account notifications",
|
|
27
|
+
nexus: true,
|
|
28
|
+
method: "bridge.account_notifications",
|
|
29
|
+
params: { account, min_score: 25, last_id: null, limit: 10 },
|
|
30
|
+
validator: (result) => Array.isArray(result) && result.length > 0 ? true : false
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
name: "Bridge | get_payout_stats ",
|
|
34
|
+
description: "Get payout stats",
|
|
35
|
+
nexus: true,
|
|
36
|
+
method: "bridge.get_payout_stats",
|
|
37
|
+
params: { limit: 10 },
|
|
8
38
|
validator: (result) => {
|
|
9
|
-
return result.
|
|
39
|
+
return result.items ? true : false;
|
|
10
40
|
}
|
|
11
41
|
},
|
|
12
42
|
{
|
|
13
|
-
name: "
|
|
43
|
+
name: "Bridge | get_post ",
|
|
44
|
+
description: "Fetch a single post",
|
|
45
|
+
nexus: true,
|
|
46
|
+
method: "bridge.get_post",
|
|
47
|
+
params: { author: account, permlink, observer: null },
|
|
48
|
+
validator: (result) => {
|
|
49
|
+
return result.title ? true : false;
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
name: "Bridge | get_profile ",
|
|
54
|
+
description: "Resume of a profile",
|
|
55
|
+
nexus: true,
|
|
56
|
+
method: "bridge.get_profile",
|
|
57
|
+
params: { account, observer: null },
|
|
58
|
+
validator: (result) => {
|
|
59
|
+
return result.created ? true : false;
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
name: "Bridge | list_communities ",
|
|
64
|
+
description: "List of communities",
|
|
65
|
+
nexus: true,
|
|
66
|
+
method: "bridge.list_communities",
|
|
67
|
+
params: { last: null, limit: 10, query: null, sort: 'rank', observer: account },
|
|
68
|
+
validator: (result) => Array.isArray(result) && result.length > 0 ? true : false
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
name: "Condenser | Get Account",
|
|
14
72
|
description: "Retrieve an account details",
|
|
73
|
+
nexus: false,
|
|
15
74
|
method: "condenser_api.get_accounts",
|
|
16
75
|
params: [[account]],
|
|
17
76
|
validator: (result) => Array.isArray(result) && result.length > 0 ? true : false
|
|
18
77
|
},
|
|
19
78
|
{
|
|
20
|
-
name: "
|
|
21
|
-
description: "
|
|
79
|
+
name: "Condenser | Get Block",
|
|
80
|
+
description: "Get Block",
|
|
81
|
+
nexus: false,
|
|
82
|
+
method: "condenser_api.get_block",
|
|
83
|
+
params: [block],
|
|
84
|
+
validator: (result) => {
|
|
85
|
+
return result.witness ? true : false;
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
name: "Condenser | Get Blog Entries",
|
|
90
|
+
description: "Retrieve the list of blog entries for an account",
|
|
91
|
+
nexus: false,
|
|
22
92
|
method: "condenser_api.get_blog_entries",
|
|
23
93
|
params: [account, 0, 25],
|
|
24
94
|
validator: (result) => Array.isArray(result) && result.length > 0 ? true : false
|
|
25
95
|
},
|
|
26
96
|
{
|
|
27
|
-
name: "
|
|
28
|
-
description: "Retrieve the content (post or comment)
|
|
97
|
+
name: "Condenser | Get Content",
|
|
98
|
+
description: "Retrieve the content (post or comment)",
|
|
99
|
+
nexus: false,
|
|
29
100
|
method: "condenser_api.get_content",
|
|
30
101
|
params: [account, permlink],
|
|
31
102
|
validator: (result) => {
|
|
@@ -33,8 +104,9 @@ export const testList = (block, account, permlink) => {
|
|
|
33
104
|
}
|
|
34
105
|
},
|
|
35
106
|
{
|
|
36
|
-
name: "
|
|
107
|
+
name: "Condenser | Get Dynamic Global Propertie",
|
|
37
108
|
description: "Check chain global properties",
|
|
109
|
+
nexus: false,
|
|
38
110
|
method: "condenser_api.get_dynamic_global_properties",
|
|
39
111
|
params: [],
|
|
40
112
|
validator: (result) => {
|
|
@@ -42,8 +114,9 @@ export const testList = (block, account, permlink) => {
|
|
|
42
114
|
}
|
|
43
115
|
},
|
|
44
116
|
{
|
|
45
|
-
name: "
|
|
46
|
-
description: "Retrieve a list of discussions by blog
|
|
117
|
+
name: "Condenser | Get Disccusion By Blog",
|
|
118
|
+
description: "Retrieve a list of discussions by blog",
|
|
119
|
+
nexus: false,
|
|
47
120
|
method: "condenser_api.get_discussions_by_blog",
|
|
48
121
|
params: [{ tag: account, limit: 5, truncate_body: 1 }],
|
|
49
122
|
validator: (result) => Array.isArray(result) && result.length > 0 ? true : false
|
package/lib/test.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"test.js","sourceRoot":"","sources":["../src/test.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"test.js","sourceRoot":"","sources":["../src/test.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAkBH,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,KAAa,EAAE,OAAe,EAAE,QAAgB,EAAe,EAAE;IACxF,OAAO;QACL;YACE,IAAI,EAAE,iCAAiC;YACvC,WAAW,EAAE,uBAAuB;YACpC,KAAK,EAAE,IAAI;YACX,MAAM,EAAE,8BAA8B;YACtC,MAAM,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,EAAE;YAC5D,SAAS,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,MAAqC,CAAC,IAAK,MAAsC,CAAC,MAAM,GAAG,CAAC,CAAE,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK;SAClJ;QACD;YACE,IAAI,EAAE,4BAA4B;YAClC,WAAW,EAAE,kBAAkB;YAC/B,KAAK,EAAE,IAAI;YACX,MAAM,EAAE,yBAAyB;YACjC,MAAM,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE;YACrB,SAAS,EAAE,CAAC,MAAM,EAAE,EAAE;gBACpB,OAAQ,MAA2B,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAA;YAC1D,CAAC;SACF;QACD;YACE,IAAI,EAAE,oBAAoB;YAC1B,WAAW,EAAE,qBAAqB;YAClC,KAAK,EAAE,IAAI;YACX,MAAM,EAAE,iBAAiB;YACzB,MAAM,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE;YACrD,SAAS,EAAE,CAAC,MAAM,EAAE,EAAE;gBACpB,OAAQ,MAAoB,C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wC;YACrD,KAAK,EAAE,KAAK;YACZ,MAAM,EAAE,uCAAuC;YAC/C,MAAM,EAAE,CAAC,EAAE,GAAG,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,EAAE,aAAa,EAAE,CAAC,EAAC,CAAC;YACrD,SAAS,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,MAAsB,CAAC,IAAK,MAAuB,CAAC,MAAM,GAAG,CAAC,CAAE,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK;SACpH;KACF,CAAA;AACH,CAAC,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@beblurt/blurt-nodes-checker",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"description": "BLURT blockchain RPC nodes servers checker (latency, availability, methods)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"node": ">=14.16",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"commit": "git-cz",
|
|
15
15
|
"release": "standard-version",
|
|
16
16
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
17
|
-
"build": "tsc --declaration",
|
|
17
|
+
"build": "tsc -p tsconfig.json --declaration",
|
|
18
18
|
"build-browser": "node ./build.js"
|
|
19
19
|
},
|
|
20
20
|
"repository": {
|
|
@@ -29,26 +29,26 @@
|
|
|
29
29
|
"blurt rpc",
|
|
30
30
|
"blurt blockchain"
|
|
31
31
|
],
|
|
32
|
-
"author": "@beblurt (https://
|
|
32
|
+
"author": "@beblurt (https://beblurt.com/@beblurt)",
|
|
33
33
|
"license": "GPL-3.0-or-later",
|
|
34
34
|
"bugs": {
|
|
35
35
|
"url": "https://gitlab.com/beblurt/blurt-nodes-checker/issues"
|
|
36
36
|
},
|
|
37
37
|
"homepage": "https://gitlab.com/beblurt/blurt-nodes-checker#readme",
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@types/node": "^
|
|
40
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
41
|
-
"@typescript-eslint/parser": "^5.
|
|
39
|
+
"@types/node": "^18.11.9",
|
|
40
|
+
"@typescript-eslint/eslint-plugin": "^5.45.0",
|
|
41
|
+
"@typescript-eslint/parser": "^5.45.0",
|
|
42
42
|
"commitizen": "^4.2.5",
|
|
43
|
-
"esbuild": "^0.15.
|
|
44
|
-
"eslint": "^8.
|
|
45
|
-
"prettier": "^2.
|
|
43
|
+
"esbuild": "^0.15.16",
|
|
44
|
+
"eslint": "^8.28.0",
|
|
45
|
+
"prettier": "^2.8.0",
|
|
46
46
|
"standard-version": "^9.5.0",
|
|
47
|
-
"typescript": "^4.
|
|
47
|
+
"typescript": "^4.9.3"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"
|
|
51
|
-
"rxjs": "^7.5.
|
|
50
|
+
"@beblurt/dblurt": "^0.9.5",
|
|
51
|
+
"rxjs": "^7.5.7"
|
|
52
52
|
},
|
|
53
53
|
"contributors": [
|
|
54
54
|
"@beblurt (https://blurt.blog/@beblurt)"
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
export declare type FEE_INFO = 3 | {
|
|
2
|
-
operation_flat_fee: number;
|
|
3
|
-
bandwidth_kbytes_fee: number;
|
|
4
|
-
};
|
|
5
|
-
export declare type TRANSACTION = {
|
|
6
|
-
ref_block_num: number;
|
|
7
|
-
ref_block_prefix: number;
|
|
8
|
-
expiration: string;
|
|
9
|
-
operations: unknown[];
|
|
10
|
-
extensions: unknown[];
|
|
11
|
-
signatures: string[];
|
|
12
|
-
};
|
|
13
|
-
export declare type BLOCK_GET_BLOCK = {
|
|
14
|
-
block: {
|
|
15
|
-
previous: string;
|
|
16
|
-
timestamp: string;
|
|
17
|
-
witness: string;
|
|
18
|
-
transaction_merkle_root: string;
|
|
19
|
-
extensions: FEE_INFO[];
|
|
20
|
-
witness_signature: string;
|
|
21
|
-
transactions: TRANSACTION[];
|
|
22
|
-
block_id: string;
|
|
23
|
-
signing_key: string;
|
|
24
|
-
transaction_ids: string[];
|
|
25
|
-
};
|
|
26
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GET_BLOCK.js","sourceRoot":"","sources":["../../../src/helpers/BLOCK_API/GET_BLOCK.ts"],"names":[],"mappings":""}
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Large number that may be unsafe to represent natively in JavaScript.
|
|
3
|
-
*/
|
|
4
|
-
export declare type Bignum = string;
|
|
5
|
-
export declare type DYNAMIC_GLOBAL_PROPERTIES = {
|
|
6
|
-
id: number;
|
|
7
|
-
/**
|
|
8
|
-
* Current block height.
|
|
9
|
-
*/
|
|
10
|
-
head_block_number: number;
|
|
11
|
-
head_block_id: string;
|
|
12
|
-
/**
|
|
13
|
-
* UTC Server time, e.g. 2020-01-15T00:42:00
|
|
14
|
-
*/
|
|
15
|
-
time: string;
|
|
16
|
-
/**
|
|
17
|
-
* Currently elected witness.
|
|
18
|
-
*/
|
|
19
|
-
current_witness: string;
|
|
20
|
-
/**
|
|
21
|
-
* Current Supply
|
|
22
|
-
*/
|
|
23
|
-
current_supply: string;
|
|
24
|
-
/**
|
|
25
|
-
* Total asset held.
|
|
26
|
-
*/
|
|
27
|
-
total_vesting_fund_blurt: string;
|
|
28
|
-
total_vesting_shares: string;
|
|
29
|
-
total_reward_fund_blurt: string;
|
|
30
|
-
/**
|
|
31
|
-
* The running total of REWARD^2.
|
|
32
|
-
*/
|
|
33
|
-
total_reward_shares2: string;
|
|
34
|
-
pending_rewarded_vesting_shares: string;
|
|
35
|
-
pending_rewarded_vesting_blurt: string;
|
|
36
|
-
/**
|
|
37
|
-
* Maximum block size is decided by the set of active witnesses which change every round.
|
|
38
|
-
* Each witness posts what they think the maximum size should be as part of their witness
|
|
39
|
-
* properties, the median size is chosen to be the maximum block size for the round.
|
|
40
|
-
*
|
|
41
|
-
* @note the minimum value for maximum_block_size is defined by the protocol to prevent the
|
|
42
|
-
* network from getting stuck by witnesses attempting to set this too low.
|
|
43
|
-
*/
|
|
44
|
-
maximum_block_size: number;
|
|
45
|
-
/**
|
|
46
|
-
* The current absolute slot number. Equal to the total
|
|
47
|
-
* number of slots since genesis. Also equal to the total
|
|
48
|
-
* number of missed slots plus head_block_number.
|
|
49
|
-
*/
|
|
50
|
-
current_aslot: number;
|
|
51
|
-
/**
|
|
52
|
-
* Used to compute witness participation.
|
|
53
|
-
*/
|
|
54
|
-
recent_slots_filled: Bignum;
|
|
55
|
-
participation_count: number;
|
|
56
|
-
last_irreversible_block_num: number;
|
|
57
|
-
vote_power_reserve_rate: number;
|
|
58
|
-
delegation_return_period: number;
|
|
59
|
-
reverse_auction_seconds: number;
|
|
60
|
-
available_account_subsidies: number;
|
|
61
|
-
next_maintenance_time: string;
|
|
62
|
-
last_budget_time: string;
|
|
63
|
-
content_reward_percent: number;
|
|
64
|
-
vesting_reward_percent: number;
|
|
65
|
-
sps_fund_percent: number;
|
|
66
|
-
sps_interval_ledger: string;
|
|
67
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DYNAMIC_GLOBAL_PROPERTIES.js","sourceRoot":"","sources":["../../../src/helpers/CONDENSER_API/DYNAMIC_GLOBAL_PROPERTIES.ts"],"names":[],"mappings":""}
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
export declare type GET_ACCOUNT = {
|
|
2
|
-
id: number;
|
|
3
|
-
name: string;
|
|
4
|
-
owner: {
|
|
5
|
-
weight_threshold: number;
|
|
6
|
-
account_auths: Array<[string, number]>;
|
|
7
|
-
key_auths: Array<[string, number]>;
|
|
8
|
-
};
|
|
9
|
-
active: {
|
|
10
|
-
weight_threshold: number;
|
|
11
|
-
account_auths: Array<[string, number]>;
|
|
12
|
-
key_auths: Array<[string, number]>;
|
|
13
|
-
};
|
|
14
|
-
posting: {
|
|
15
|
-
weight_threshold: number;
|
|
16
|
-
account_auths: Array<[string, number]>;
|
|
17
|
-
key_auths: Array<[string, number]>;
|
|
18
|
-
};
|
|
19
|
-
memo_key: string;
|
|
20
|
-
json_metadata: string;
|
|
21
|
-
posting_json_metadata: string;
|
|
22
|
-
proxy: string;
|
|
23
|
-
last_owner_update: string;
|
|
24
|
-
last_account_update: string;
|
|
25
|
-
created: string;
|
|
26
|
-
mined: boolean;
|
|
27
|
-
recovery_account: string;
|
|
28
|
-
last_account_recovery: string;
|
|
29
|
-
reset_account: string;
|
|
30
|
-
comment_count: number;
|
|
31
|
-
lifetime_vote_count: number;
|
|
32
|
-
post_count: number;
|
|
33
|
-
can_vote: boolean;
|
|
34
|
-
voting_manabar: {
|
|
35
|
-
current_mana: string;
|
|
36
|
-
last_update_time: number;
|
|
37
|
-
};
|
|
38
|
-
voting_power: number;
|
|
39
|
-
balance: string;
|
|
40
|
-
savings_balance: string;
|
|
41
|
-
savings_withdraw_requests: number;
|
|
42
|
-
reward_blurt_balance: string;
|
|
43
|
-
reward_vesting_balance: string;
|
|
44
|
-
reward_vesting_blurt: string;
|
|
45
|
-
vesting_shares: string;
|
|
46
|
-
delegated_vesting_shares: string;
|
|
47
|
-
received_vesting_shares: string;
|
|
48
|
-
vesting_withdraw_rate: string;
|
|
49
|
-
post_voting_power: string;
|
|
50
|
-
next_vesting_withdrawal: string;
|
|
51
|
-
withdrawn: number;
|
|
52
|
-
to_withdraw: number;
|
|
53
|
-
withdraw_routes: number;
|
|
54
|
-
curation_rewards: number;
|
|
55
|
-
posting_rewards: number;
|
|
56
|
-
proxied_vsf_votes: Array<number>;
|
|
57
|
-
witnesses_voted_for: number;
|
|
58
|
-
last_post: string;
|
|
59
|
-
last_root_post: string;
|
|
60
|
-
last_vote_time: string;
|
|
61
|
-
post_bandwidth: number;
|
|
62
|
-
pending_claimed_accounts: number;
|
|
63
|
-
vesting_balance: string;
|
|
64
|
-
transfer_history: Array<unknown>;
|
|
65
|
-
market_history: Array<unknown>;
|
|
66
|
-
post_history: Array<unknown>;
|
|
67
|
-
vote_history: Array<unknown>;
|
|
68
|
-
other_history: Array<unknown>;
|
|
69
|
-
witness_votes: Array<string>;
|
|
70
|
-
tags_usage: Array<unknown>;
|
|
71
|
-
guest_bloggers: Array<unknown>;
|
|
72
|
-
governance_vote_expiration_ts: string;
|
|
73
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GET_ACCOUNT.js","sourceRoot":"","sources":["../../../src/helpers/CONDENSER_API/GET_ACCOUNT.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GET_BLOG_ENTRY.js","sourceRoot":"","sources":["../../../src/helpers/CONDENSER_API/GET_BLOG_ENTRY.ts"],"names":[],"mappings":""}
|
|
@@ -1,174 +0,0 @@
|
|
|
1
|
-
export declare type GET_CONFIG = {
|
|
2
|
-
IS_TEST_NET: false;
|
|
3
|
-
BLURT_REDUCED_VOTE_POWER_RATE: number;
|
|
4
|
-
BLURT_100_PERCENT: number;
|
|
5
|
-
BLURT_1_PERCENT: number;
|
|
6
|
-
BLURT_ACCOUNT_RECOVERY_REQUEST_EXPIRATION_PERIOD: string;
|
|
7
|
-
BLURT_ACTIVE_CHALLENGE_COOLDOWN: string;
|
|
8
|
-
BLURT_ACTIVE_CHALLENGE_FEE: {
|
|
9
|
-
amount: string;
|
|
10
|
-
precision: number;
|
|
11
|
-
nai: string;
|
|
12
|
-
};
|
|
13
|
-
BLURT_ADDRESS_PREFIX: string;
|
|
14
|
-
BLURT_APR_PERCENT_MULTIPLY_PER_BLOCK: string;
|
|
15
|
-
BLURT_APR_PERCENT_MULTIPLY_PER_HOUR: string;
|
|
16
|
-
BLURT_APR_PERCENT_MULTIPLY_PER_ROUND: string;
|
|
17
|
-
BLURT_APR_PERCENT_SHIFT_PER_BLOCK: number;
|
|
18
|
-
BLURT_APR_PERCENT_SHIFT_PER_HOUR: number;
|
|
19
|
-
BLURT_APR_PERCENT_SHIFT_PER_ROUND: number;
|
|
20
|
-
BLURT_BANDWIDTH_AVERAGE_WINDOW_SECONDS: number;
|
|
21
|
-
BLURT_BANDWIDTH_PRECISION: number;
|
|
22
|
-
BLURT_BENEFICIARY_LIMIT: number;
|
|
23
|
-
BLURT_BLOCKCHAIN_PRECISION: number;
|
|
24
|
-
BLURT_BLOCKCHAIN_PRECISION_DIGITS: number;
|
|
25
|
-
BLURT_BLOCKCHAIN_HARDFORK_VERSION: string;
|
|
26
|
-
BLURT_BLOCKCHAIN_VERSION: string;
|
|
27
|
-
BLURT_BLOCK_INTERVAL: number;
|
|
28
|
-
BLURT_BLOCKS_PER_DAY: number;
|
|
29
|
-
BLURT_BLOCKS_PER_HOUR: number;
|
|
30
|
-
BLURT_BLOCKS_PER_YEAR: number;
|
|
31
|
-
BLURT_CASHOUT_WINDOW_SECONDS: number;
|
|
32
|
-
BLURT_CHAIN_ID: string;
|
|
33
|
-
BLURT_COMMENT_TITLE_LIMIT: number;
|
|
34
|
-
BLURT_REWARD_CONSTANT: string;
|
|
35
|
-
BLURT_CONTENT_REWARD_PERCENT_HF21: number;
|
|
36
|
-
BLURT_CUSTOM_OP_DATA_MAX_LENGTH: number;
|
|
37
|
-
BLURT_CUSTOM_OP_ID_MAX_LENGTH: number;
|
|
38
|
-
BLURT_GENESIS_TIME: string;
|
|
39
|
-
BLURT_HARDFORK_REQUIRED_WITNESSES: number;
|
|
40
|
-
BLURT_HF21_CONVERGENT_LINEAR_RECENT_CLAIMS: string;
|
|
41
|
-
BLURT_INFLATION_NARROWING_PERIOD: number;
|
|
42
|
-
BLURT_INFLATION_RATE_START_PERCENT: number;
|
|
43
|
-
BLURT_INFLATION_RATE_STOP_PERCENT: number;
|
|
44
|
-
BLURT_INIT_MINER_NAME: string;
|
|
45
|
-
BLURT_INIT_PUBLIC_KEY_STR: string;
|
|
46
|
-
BLURT_INIT_SUPPLY: string;
|
|
47
|
-
BLURT_IRREVERSIBLE_THRESHOLD: number;
|
|
48
|
-
BLURT_MAX_ACCOUNT_CREATION_FEE: number;
|
|
49
|
-
BLURT_MAX_ACCOUNT_NAME_LENGTH: number;
|
|
50
|
-
BLURT_MAX_ACCOUNT_WITNESS_VOTES: number;
|
|
51
|
-
BLURT_MAX_ASSET_WHITELIST_AUTHORITIES: number;
|
|
52
|
-
BLURT_MAX_AUTHORITY_MEMBERSHIP: number;
|
|
53
|
-
BLURT_MAX_BLOCK_SIZE: number;
|
|
54
|
-
BLURT_SOFT_MAX_BLOCK_SIZE: number;
|
|
55
|
-
BLURT_MAX_CASHOUT_WINDOW_SECONDS: number;
|
|
56
|
-
BLURT_MAX_COMMENT_DEPTH: number;
|
|
57
|
-
BLURT_MAX_INSTANCE_ID: string;
|
|
58
|
-
BLURT_MAX_MEMO_SIZE: number;
|
|
59
|
-
BLURT_MAX_WITNESSES: number;
|
|
60
|
-
BLURT_MAX_PERMLINK_LENGTH: number;
|
|
61
|
-
BLURT_MAX_PROXY_RECURSION_DEPTH: number;
|
|
62
|
-
BLURT_MAX_RUNNER_WITNESSES_HF17: number;
|
|
63
|
-
BLURT_MAX_SATOSHIS: string;
|
|
64
|
-
BLURT_MAX_SHARE_SUPPLY: string;
|
|
65
|
-
BLURT_MAX_SIG_CHECK_DEPTH: number;
|
|
66
|
-
BLURT_MAX_SIG_CHECK_ACCOUNTS: number;
|
|
67
|
-
BLURT_MAX_TIME_UNTIL_EXPIRATION: number;
|
|
68
|
-
BLURT_MAX_TRANSACTION_SIZE: number;
|
|
69
|
-
BLURT_MAX_UNDO_HISTORY: number;
|
|
70
|
-
BLURT_MAX_URL_LENGTH: number;
|
|
71
|
-
BLURT_MAX_VOTE_CHANGES: number;
|
|
72
|
-
BLURT_MAX_VOTED_WITNESSES_HF17: number;
|
|
73
|
-
BLURT_MAX_WITHDRAW_ROUTES: number;
|
|
74
|
-
BLURT_MAX_WITNESS_URL_LENGTH: number;
|
|
75
|
-
BLURT_MIN_ACCOUNT_CREATION_FEE: number;
|
|
76
|
-
BLURT_MIN_ACCOUNT_NAME_LENGTH: number;
|
|
77
|
-
BLURT_MIN_BLOCK_SIZE_LIMIT: number;
|
|
78
|
-
BLURT_MIN_BLOCK_SIZE: number;
|
|
79
|
-
BLURT_MIN_CONTENT_REWARD: {
|
|
80
|
-
amount: string;
|
|
81
|
-
precision: number;
|
|
82
|
-
nai: string;
|
|
83
|
-
};
|
|
84
|
-
BLURT_MIN_CURATE_REWARD: {
|
|
85
|
-
amount: string;
|
|
86
|
-
precision: number;
|
|
87
|
-
nai: string;
|
|
88
|
-
};
|
|
89
|
-
BLURT_MIN_PERMLINK_LENGTH: number;
|
|
90
|
-
BLURT_MIN_REPLY_INTERVAL_HF20: number;
|
|
91
|
-
BLURT_MIN_ROOT_COMMENT_INTERVAL: number;
|
|
92
|
-
BLURT_MIN_COMMENT_EDIT_INTERVAL: number;
|
|
93
|
-
BLURT_MIN_VOTE_INTERVAL_SEC: number;
|
|
94
|
-
BLURT_MINER_ACCOUNT: string;
|
|
95
|
-
BLURT_MIN_PAYOUT: {
|
|
96
|
-
amount: string;
|
|
97
|
-
precision: number;
|
|
98
|
-
nai: string;
|
|
99
|
-
};
|
|
100
|
-
BLURT_MIN_PRODUCER_REWARD: {
|
|
101
|
-
amount: string;
|
|
102
|
-
precision: number;
|
|
103
|
-
nai: string;
|
|
104
|
-
};
|
|
105
|
-
BLURT_MIN_TRANSACTION_EXPIRATION_LIMIT: number;
|
|
106
|
-
BLURT_MIN_TRANSACTION_SIZE_LIMIT: number;
|
|
107
|
-
BLURT_MIN_UNDO_HISTORY: number;
|
|
108
|
-
BLURT_NULL_ACCOUNT: string;
|
|
109
|
-
BLURT_OWNER_AUTH_RECOVERY_PERIOD: string;
|
|
110
|
-
BLURT_OWNER_CHALLENGE_COOLDOWN: string;
|
|
111
|
-
BLURT_OWNER_CHALLENGE_FEE: {
|
|
112
|
-
amount: string;
|
|
113
|
-
precision: number;
|
|
114
|
-
nai: string;
|
|
115
|
-
};
|
|
116
|
-
BLURT_OWNER_UPDATE_LIMIT: number;
|
|
117
|
-
BLURT_POST_REWARD_FUND_NAME: string;
|
|
118
|
-
BLURT_PROXY_TO_SELF_ACCOUNT: string;
|
|
119
|
-
BLURT_SECONDS_PER_YEAR: number;
|
|
120
|
-
BLURT_PROPOSAL_FUND_PERCENT_HF21: number;
|
|
121
|
-
BLURT_RECENT_RSHARES_DECAY_TIME_HF19: string;
|
|
122
|
-
BLURT_REVERSE_AUCTION_WINDOW_SECONDS_HF21: number;
|
|
123
|
-
BLURT_ROOT_POST_PARENT: string;
|
|
124
|
-
BLURT_SAVINGS_WITHDRAW_REQUEST_LIMIT: number;
|
|
125
|
-
BLURT_SAVINGS_WITHDRAW_TIME: string;
|
|
126
|
-
BLURT_SOFT_MAX_COMMENT_DEPTH: number;
|
|
127
|
-
BLURT_TEMP_ACCOUNT: string;
|
|
128
|
-
BLURT_UPVOTE_LOCKOUT_HF17: string;
|
|
129
|
-
BLURT_UPVOTE_LOCKOUT_SECONDS: number;
|
|
130
|
-
BLURT_VESTING_FUND_PERCENT_HF16: number;
|
|
131
|
-
BLURT_VESTING_WITHDRAW_INTERVALS: number;
|
|
132
|
-
BLURT_VESTING_WITHDRAW_INTERVALS_HF5: number;
|
|
133
|
-
BLURT_VESTING_WITHDRAW_INTERVAL_SECONDS: number;
|
|
134
|
-
BLURT_VOTE_DUST_THRESHOLD: number;
|
|
135
|
-
BLURT_VOTING_MANA_REGENERATION_SECONDS: number;
|
|
136
|
-
BLURT_SYMBOL: {
|
|
137
|
-
nai: string;
|
|
138
|
-
decimals: number;
|
|
139
|
-
};
|
|
140
|
-
VESTS_SYMBOL: {
|
|
141
|
-
nai: string;
|
|
142
|
-
decimals: number;
|
|
143
|
-
};
|
|
144
|
-
BLURT_VIRTUAL_SCHEDULE_LAP_LENGTH2: string;
|
|
145
|
-
BLURT_DELEGATION_RETURN_PERIOD_HF20: number;
|
|
146
|
-
BLURT_RD_MIN_DECAY_BITS: number;
|
|
147
|
-
BLURT_RD_MAX_DECAY_BITS: number;
|
|
148
|
-
BLURT_RD_DECAY_DENOM_SHIFT: number;
|
|
149
|
-
BLURT_RD_MAX_POOL_BITS: number;
|
|
150
|
-
BLURT_RD_MAX_BUDGET_1: string;
|
|
151
|
-
BLURT_RD_MAX_BUDGET_2: number;
|
|
152
|
-
BLURT_RD_MAX_BUDGET_3: number;
|
|
153
|
-
BLURT_RD_MAX_BUDGET: number;
|
|
154
|
-
BLURT_RD_MIN_DECAY: number;
|
|
155
|
-
BLURT_RD_MIN_BUDGET: number;
|
|
156
|
-
BLURT_RD_MAX_DECAY: number;
|
|
157
|
-
BLURT_ACCOUNT_SUBSIDY_PRECISION: number;
|
|
158
|
-
BLURT_WITNESS_SUBSIDY_BUDGET_PERCENT: number;
|
|
159
|
-
BLURT_WITNESS_SUBSIDY_DECAY_PERCENT: number;
|
|
160
|
-
BLURT_DEFAULT_ACCOUNT_SUBSIDY_DECAY: number;
|
|
161
|
-
BLURT_DEFAULT_ACCOUNT_SUBSIDY_BUDGET: number;
|
|
162
|
-
BLURT_DECAY_BACKSTOP_PERCENT: number;
|
|
163
|
-
BLURT_BLOCK_GENERATION_POSTPONED_TX_LIMIT: number;
|
|
164
|
-
BLURT_PENDING_TRANSACTION_EXECUTION_LIMIT: number;
|
|
165
|
-
BLURT_TREASURY_ACCOUNT: string;
|
|
166
|
-
BLURT_TREASURY_FEE: number;
|
|
167
|
-
BLURT_PROPOSAL_MAINTENANCE_PERIOD: number;
|
|
168
|
-
BLURT_PROPOSAL_MAINTENANCE_CLEANUP: number;
|
|
169
|
-
BLURT_PROPOSAL_SUBJECT_MAX_LENGTH: number;
|
|
170
|
-
BLURT_PROPOSAL_MAX_IDS_NUMBER: number;
|
|
171
|
-
BLURT_PROPOSAL_MAX_END_DATE: number;
|
|
172
|
-
BLURT_PROPOSAL_EXPIRATION_UNFUNDED: number;
|
|
173
|
-
BLURT_INIT_POST_REWARD_BALANCE: number;
|
|
174
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GET_CONFIG.js","sourceRoot":"","sources":["../../../src/helpers/CONDENSER_API/GET_CONFIG.ts"],"names":[],"mappings":""}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
export declare type GET_CONTENT = {
|
|
2
|
-
id: number;
|
|
3
|
-
author: string;
|
|
4
|
-
permlink: string;
|
|
5
|
-
category: string;
|
|
6
|
-
parent_author: string | '';
|
|
7
|
-
parent_permlink: string | '';
|
|
8
|
-
title: string | '';
|
|
9
|
-
body: string;
|
|
10
|
-
json_metadata: string;
|
|
11
|
-
last_update: string;
|
|
12
|
-
created: string;
|
|
13
|
-
active: string;
|
|
14
|
-
last_payout: string;
|
|
15
|
-
depth: number;
|
|
16
|
-
children: number;
|
|
17
|
-
net_rshares: string;
|
|
18
|
-
abs_rshares: string;
|
|
19
|
-
vote_rshares: string;
|
|
20
|
-
children_abs_rshares: string;
|
|
21
|
-
cashout_time: string;
|
|
22
|
-
max_cashout_time: string;
|
|
23
|
-
total_vote_weight: number;
|
|
24
|
-
reward_weight: number;
|
|
25
|
-
total_payout_value: string;
|
|
26
|
-
curator_payout_value: string;
|
|
27
|
-
author_rewards: number;
|
|
28
|
-
net_votes: number;
|
|
29
|
-
root_author: string;
|
|
30
|
-
root_permlink: string;
|
|
31
|
-
max_accepted_payout: string;
|
|
32
|
-
percent_blurt: number;
|
|
33
|
-
allow_replies: boolean;
|
|
34
|
-
allow_votes: boolean;
|
|
35
|
-
allow_curation_rewards: boolean;
|
|
36
|
-
beneficiaries: [[string, number]];
|
|
37
|
-
url: string;
|
|
38
|
-
root_title: string;
|
|
39
|
-
pending_payout_value: string;
|
|
40
|
-
total_pending_payout_value: string;
|
|
41
|
-
active_votes: [
|
|
42
|
-
{
|
|
43
|
-
voter: string;
|
|
44
|
-
weight: number;
|
|
45
|
-
rshares: number;
|
|
46
|
-
percent: number;
|
|
47
|
-
time: string;
|
|
48
|
-
}
|
|
49
|
-
];
|
|
50
|
-
replies: Array<unknown>;
|
|
51
|
-
promoted: "0.000 BLURT";
|
|
52
|
-
body_length: 0;
|
|
53
|
-
reblogged_by: Array<unknown>;
|
|
54
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GET_CONTENT.js","sourceRoot":"","sources":["../../../src/helpers/CONDENSER_API/GET_CONTENT.ts"],"names":[],"mappings":""}
|