hive-keychain-commons 1.3.2 → 1.4.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/lib/index.d.ts +1 -0
- package/lib/index.js +1 -0
- package/lib/interfaces/vsc.d.ts +54 -0
- package/lib/interfaces/vsc.js +24 -0
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export * from './interfaces/keychain';
|
|
2
|
+
export * from './interfaces/vsc';
|
|
2
3
|
export { LeaseKeys } from './lease-market/lease-keys';
|
|
3
4
|
export { AcceptRequestJSON, CancelDelegationJSON, CancelRequestJSON, PaymentJSON, ReimbursmentJSON, RequestCancelRequestJSON, RequestJSON, } from './lease-market/lease-market.interface';
|
|
4
5
|
export * from './swaps/config.interface';
|
package/lib/index.js
CHANGED
|
@@ -16,6 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
exports.LeaseKeys = void 0;
|
|
18
18
|
__exportStar(require("./interfaces/keychain"), exports);
|
|
19
|
+
__exportStar(require("./interfaces/vsc"), exports);
|
|
19
20
|
var lease_keys_1 = require("./lease-market/lease-keys");
|
|
20
21
|
Object.defineProperty(exports, "LeaseKeys", { enumerable: true, get: function () { return lease_keys_1.LeaseKeys; } });
|
|
21
22
|
__exportStar(require("./swaps/config.interface"), exports);
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
export declare enum VscStatus {
|
|
2
|
+
UNCONFIRMED = "UNCONFIRMED",
|
|
3
|
+
CONFIRMED = "CONFIRMED",
|
|
4
|
+
INCLUDED = "INCLUDED"
|
|
5
|
+
}
|
|
6
|
+
export declare enum VscHistoryType {
|
|
7
|
+
CONTRACT_CALL = "CONTRACT_CALL",
|
|
8
|
+
TRANSFER = "TRANSFER"
|
|
9
|
+
}
|
|
10
|
+
export declare enum VscLedgerType {
|
|
11
|
+
WITHDRAW = "withdraw",
|
|
12
|
+
DEPOSIT = "deposit"
|
|
13
|
+
}
|
|
14
|
+
export declare enum VscToken {
|
|
15
|
+
HIVE = "HIVE",
|
|
16
|
+
HBD = "HBD"
|
|
17
|
+
}
|
|
18
|
+
export type VscHistoryResponse = {
|
|
19
|
+
findLedgerTXs: {
|
|
20
|
+
txs: VscTransfer[];
|
|
21
|
+
};
|
|
22
|
+
findTransaction: {
|
|
23
|
+
txs: VscCall[];
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
export type VscTransfer = {
|
|
27
|
+
type?: VscHistoryType.TRANSFER;
|
|
28
|
+
amount: number;
|
|
29
|
+
block_height: number;
|
|
30
|
+
from: string;
|
|
31
|
+
id: string;
|
|
32
|
+
memo: string | null;
|
|
33
|
+
owner: string;
|
|
34
|
+
t: VscLedgerType;
|
|
35
|
+
tk: VscToken;
|
|
36
|
+
timestamp: Date;
|
|
37
|
+
status: VscStatus;
|
|
38
|
+
};
|
|
39
|
+
export type VscCall = {
|
|
40
|
+
type?: VscHistoryType.CONTRACT_CALL;
|
|
41
|
+
status: VscStatus;
|
|
42
|
+
id: string;
|
|
43
|
+
anchored_height: number;
|
|
44
|
+
timestamp: Date;
|
|
45
|
+
data: {
|
|
46
|
+
action: string;
|
|
47
|
+
contract_id: string;
|
|
48
|
+
op: string;
|
|
49
|
+
payload: object;
|
|
50
|
+
};
|
|
51
|
+
required_auths: {
|
|
52
|
+
value: string;
|
|
53
|
+
}[];
|
|
54
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VscToken = exports.VscLedgerType = exports.VscHistoryType = exports.VscStatus = void 0;
|
|
4
|
+
var VscStatus;
|
|
5
|
+
(function (VscStatus) {
|
|
6
|
+
VscStatus["UNCONFIRMED"] = "UNCONFIRMED";
|
|
7
|
+
VscStatus["CONFIRMED"] = "CONFIRMED";
|
|
8
|
+
VscStatus["INCLUDED"] = "INCLUDED";
|
|
9
|
+
})(VscStatus = exports.VscStatus || (exports.VscStatus = {}));
|
|
10
|
+
var VscHistoryType;
|
|
11
|
+
(function (VscHistoryType) {
|
|
12
|
+
VscHistoryType["CONTRACT_CALL"] = "CONTRACT_CALL";
|
|
13
|
+
VscHistoryType["TRANSFER"] = "TRANSFER";
|
|
14
|
+
})(VscHistoryType = exports.VscHistoryType || (exports.VscHistoryType = {}));
|
|
15
|
+
var VscLedgerType;
|
|
16
|
+
(function (VscLedgerType) {
|
|
17
|
+
VscLedgerType["WITHDRAW"] = "withdraw";
|
|
18
|
+
VscLedgerType["DEPOSIT"] = "deposit";
|
|
19
|
+
})(VscLedgerType = exports.VscLedgerType || (exports.VscLedgerType = {}));
|
|
20
|
+
var VscToken;
|
|
21
|
+
(function (VscToken) {
|
|
22
|
+
VscToken["HIVE"] = "HIVE";
|
|
23
|
+
VscToken["HBD"] = "HBD";
|
|
24
|
+
})(VscToken = exports.VscToken || (exports.VscToken = {}));
|