@xelis/sdk 0.5.16 → 0.5.18
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/LICENSE +21 -0
- package/daemon/types.d.ts +6 -0
- package/daemon/types.js +7 -0
- package/package.json +2 -2
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 XELIS
|
|
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/daemon/types.d.ts
CHANGED
|
@@ -210,6 +210,12 @@ export interface IsTxExecutedInBlockParams {
|
|
|
210
210
|
export interface GetAssetParams {
|
|
211
211
|
asset: string;
|
|
212
212
|
}
|
|
213
|
+
export declare enum BlockType {
|
|
214
|
+
Sync = "Sync",
|
|
215
|
+
Normal = "Normal",
|
|
216
|
+
Side = "Side",
|
|
217
|
+
Orphaned = "Orphaned"
|
|
218
|
+
}
|
|
213
219
|
export declare enum RPCMethod {
|
|
214
220
|
GetVersion = "get_version",
|
|
215
221
|
GetInfo = "get_info",
|
package/daemon/types.js
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
export var BlockType;
|
|
2
|
+
(function (BlockType) {
|
|
3
|
+
BlockType["Sync"] = "Sync";
|
|
4
|
+
BlockType["Normal"] = "Normal";
|
|
5
|
+
BlockType["Side"] = "Side";
|
|
6
|
+
BlockType["Orphaned"] = "Orphaned";
|
|
7
|
+
})(BlockType || (BlockType = {}));
|
|
1
8
|
export var RPCMethod;
|
|
2
9
|
(function (RPCMethod) {
|
|
3
10
|
RPCMethod["GetVersion"] = "get_version";
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.5.
|
|
2
|
+
"version": "0.5.18",
|
|
3
3
|
"name": "@xelis/sdk",
|
|
4
4
|
"description": "Xelis software development kit for JS",
|
|
5
5
|
"repository": {
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"homepage": "https://github.com/xelis-project/xelis-js-sdk#readme",
|
|
10
10
|
"scripts": {
|
|
11
11
|
"test": "jest",
|
|
12
|
-
"build": "rm -rf ./dist && npx tsc --declaration && cp package.json
|
|
12
|
+
"build": "rm -rf ./dist && npx tsc --declaration && cp package.json README.md LICENSE ./dist",
|
|
13
13
|
"publish-npm": "npm run build && cd ./dist && npm publish"
|
|
14
14
|
},
|
|
15
15
|
"devDependencies": {
|