hive-keychain-commons 1.3.1 → 1.4.0
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.
|
@@ -30,7 +30,8 @@ export declare enum KeychainRequestTypes {
|
|
|
30
30
|
convert = "convert",
|
|
31
31
|
recurrentTransfer = "recurrentTransfer",
|
|
32
32
|
swap = "swap",
|
|
33
|
-
vscCallContract = "vscCallContract"
|
|
33
|
+
vscCallContract = "vscCallContract",
|
|
34
|
+
vscDeposit = "vscDeposit"
|
|
34
35
|
}
|
|
35
36
|
export declare enum KeychainKeyTypes {
|
|
36
37
|
posting = "Posting",
|
|
@@ -270,7 +271,14 @@ export type RequestVscCallContract = CommonRequestParams & {
|
|
|
270
271
|
payload: object;
|
|
271
272
|
method: KeychainKeyTypes.posting | KeychainKeyTypes.active;
|
|
272
273
|
};
|
|
273
|
-
export type
|
|
274
|
+
export type RequestVscCDeposit = CommonRequestParams & {
|
|
275
|
+
type: KeychainRequestTypes.vscDeposit;
|
|
276
|
+
username?: string;
|
|
277
|
+
address: string;
|
|
278
|
+
amount: string;
|
|
279
|
+
currency: string;
|
|
280
|
+
};
|
|
281
|
+
export type KeychainRequestData = (RequestDecode | RequestEncodeWithKeys | RequestEncode | RequestSignBuffer | RequestBroadcast | RequestAddAccountAuthority | RequestRemoveAccountAuthority | RequestAddKeyAuthority | RequestRemoveKeyAuthority | RequestSignTx | RequestPost | RequestVote | RequestCustomJSON | RequestSignedCall | RequestTransfer | RequestSendToken | RequestDelegation | RequestWitnessVote | RequestProxy | RequestPowerUp | RequestPowerDown | RequestCreateClaimedAccount | RequestUpdateProposalVote | RequestCreateProposal | RequestRemoveProposal | RequestAddAccount | RequestConvert | RequestRecurrentTransfer | RequestSwap | RequestVscCallContract | RequestVscCDeposit) & {
|
|
274
282
|
redirect_uri?: string;
|
|
275
283
|
};
|
|
276
284
|
export type RequestId = {
|
|
@@ -33,6 +33,7 @@ var KeychainRequestTypes;
|
|
|
33
33
|
KeychainRequestTypes["recurrentTransfer"] = "recurrentTransfer";
|
|
34
34
|
KeychainRequestTypes["swap"] = "swap";
|
|
35
35
|
KeychainRequestTypes["vscCallContract"] = "vscCallContract";
|
|
36
|
+
KeychainRequestTypes["vscDeposit"] = "vscDeposit";
|
|
36
37
|
})(KeychainRequestTypes = exports.KeychainRequestTypes || (exports.KeychainRequestTypes = {}));
|
|
37
38
|
var KeychainKeyTypes;
|
|
38
39
|
(function (KeychainKeyTypes) {
|
|
@@ -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 = {}));
|