evernode-js-client 0.5.10 → 0.5.11
Sign up to get free protection for your applications and to get access to all the features.
- package/.eslintrc.json +14 -0
- package/LICENSE +21 -0
- package/README.md +25 -3
- package/clean-pkg.sh +4 -0
- package/npm-readme.md +4 -0
- package/package.json +10 -1
- package/remove-versions.sh +10 -0
- package/src/clients/base-evernode-client.js +609 -0
- package/src/clients/host-client.js +560 -0
- package/src/clients/registry-client.js +54 -0
- package/src/clients/tenant-client.js +276 -0
- package/src/defaults.js +21 -0
- package/src/eccrypto.js +258 -0
- package/src/encryption-helper.js +96 -0
- package/src/event-emitter.js +45 -0
- package/src/evernode-common.js +113 -0
- package/src/evernode-helpers.js +45 -0
- package/src/firestore/firestore-handler.js +309 -0
- package/src/index.js +37 -0
- package/src/state-helpers.js +396 -0
- package/src/transaction-helper.js +62 -0
- package/src/util-helpers.js +50 -0
- package/src/xfl-helpers.js +130 -0
- package/src/xrpl-account.js +515 -0
- package/src/xrpl-api.js +301 -0
- package/src/xrpl-common.js +17 -0
- package/test/package-lock.json +884 -0
- package/test/package.json +9 -0
- package/test/test.js +409 -0
- package/index.js +0 -15876
package/.eslintrc.json
ADDED
package/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
MIT License
|
2
|
+
|
3
|
+
Copyright (c) 2021 HotPocketDev
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
@@ -1,4 +1,26 @@
|
|
1
|
-
# Evernode
|
2
|
-
|
1
|
+
# Evernode js client
|
2
|
+
Javascript client library for Evernode.
|
3
|
+
(Only tested on NodeJS)
|
3
4
|
|
4
|
-
|
5
|
+
## Prerequisites
|
6
|
+
```
|
7
|
+
npm i -g @vercel/ncc
|
8
|
+
```
|
9
|
+
|
10
|
+
## Publish to npm
|
11
|
+
First, update the version in package.json.
|
12
|
+
```
|
13
|
+
npm install
|
14
|
+
npm login
|
15
|
+
npm run publish
|
16
|
+
```
|
17
|
+
|
18
|
+
## Running tests
|
19
|
+
```
|
20
|
+
cd test
|
21
|
+
npm install
|
22
|
+
node test.js
|
23
|
+
```
|
24
|
+
|
25
|
+
## NPM package
|
26
|
+
https://www.npmjs.com/package/evernode-js-client
|
package/clean-pkg.sh
ADDED
package/npm-readme.md
ADDED
package/package.json
CHANGED
@@ -6,7 +6,13 @@
|
|
6
6
|
],
|
7
7
|
"homepage": "https://github.com/HotPocketDev/evernode-js-client",
|
8
8
|
"license": "MIT",
|
9
|
-
"version": "0.5.
|
9
|
+
"version": "0.5.11",
|
10
|
+
"scripts": {
|
11
|
+
"lint": "./node_modules/.bin/eslint src/**/*.js",
|
12
|
+
"build": "npm run lint && ncc build src/index.js -e elliptic -e xrpl -e ripple-address-codec -e ripple-keypairs -o dist/",
|
13
|
+
"bundle": "npm run build && ./clean-pkg.sh",
|
14
|
+
"publish": "npm run bundle && cp npm-readme.md dist/README.md && npm publish ./dist"
|
15
|
+
},
|
10
16
|
"dependencies": {
|
11
17
|
"elliptic": "6.5.4",
|
12
18
|
"libsodium-wrappers": "0.7.10",
|
@@ -14,5 +20,8 @@
|
|
14
20
|
"ripple-keypairs": "1.1.0",
|
15
21
|
"xrpl": "2.2.1",
|
16
22
|
"xrpl-binary-codec": "1.4.2"
|
23
|
+
},
|
24
|
+
"devDependencies": {
|
25
|
+
"eslint": "8.3.0"
|
17
26
|
}
|
18
27
|
}
|