hive-keychain-commons 1.2.0 → 1.2.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.
|
@@ -2,6 +2,7 @@ import { Operation, Transaction } from '@hiveio/dhive';
|
|
|
2
2
|
export declare enum KeychainRequestTypes {
|
|
3
3
|
decode = "decode",
|
|
4
4
|
encode = "encode",
|
|
5
|
+
encodeMultisig = "encodeMultisig",
|
|
5
6
|
signBuffer = "signBuffer",
|
|
6
7
|
broadcast = "broadcast",
|
|
7
8
|
addAccountAuthority = "addAccountAuthority",
|
|
@@ -56,6 +57,13 @@ export declare type RequestEncode = CommonRequestParams & {
|
|
|
56
57
|
message: string;
|
|
57
58
|
method: KeychainKeyTypes;
|
|
58
59
|
};
|
|
60
|
+
export declare type RequestEncodeMultisig = CommonRequestParams & {
|
|
61
|
+
type: KeychainRequestTypes.encodeMultisig;
|
|
62
|
+
username: string;
|
|
63
|
+
publicKeys: string[];
|
|
64
|
+
message: string;
|
|
65
|
+
method: KeychainKeyTypes;
|
|
66
|
+
};
|
|
59
67
|
export declare type ExcludeCommonParams<T> = Omit<T, 'rpc' | 'type' | 'key' | 'domain'>;
|
|
60
68
|
export declare type RequestSignBuffer = CommonRequestParams & {
|
|
61
69
|
type: KeychainRequestTypes.signBuffer;
|
|
@@ -240,7 +248,7 @@ export declare type RequestRecurrentTransfer = CommonRequestParams & {
|
|
|
240
248
|
recurrence: number;
|
|
241
249
|
executions: number;
|
|
242
250
|
};
|
|
243
|
-
export declare type KeychainRequestData = (RequestDecode | 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) & {
|
|
251
|
+
export declare type KeychainRequestData = (RequestDecode | RequestEncodeMultisig | 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) & {
|
|
244
252
|
redirect_uri?: string;
|
|
245
253
|
};
|
|
246
254
|
export declare type RequestId = {
|
|
@@ -5,6 +5,7 @@ var KeychainRequestTypes;
|
|
|
5
5
|
(function (KeychainRequestTypes) {
|
|
6
6
|
KeychainRequestTypes["decode"] = "decode";
|
|
7
7
|
KeychainRequestTypes["encode"] = "encode";
|
|
8
|
+
KeychainRequestTypes["encodeMultisig"] = "encodeMultisig";
|
|
8
9
|
KeychainRequestTypes["signBuffer"] = "signBuffer";
|
|
9
10
|
KeychainRequestTypes["broadcast"] = "broadcast";
|
|
10
11
|
KeychainRequestTypes["addAccountAuthority"] = "addAccountAuthority";
|