hive-keychain-commons 1.2.6 → 1.3.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.
@@ -29,7 +29,8 @@ export declare enum KeychainRequestTypes {
29
29
  addAccount = "addAccount",
30
30
  convert = "convert",
31
31
  recurrentTransfer = "recurrentTransfer",
32
- swap = "swap"
32
+ swap = "swap",
33
+ vscCallContract = "vscCallContract"
33
34
  }
34
35
  export declare enum KeychainKeyTypes {
35
36
  posting = "Posting",
@@ -261,7 +262,14 @@ export type RequestSwap = CommonRequestParams & {
261
262
  partnerUsername?: string;
262
263
  partnerFee?: number;
263
264
  };
264
- 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) & {
265
+ export type RequestVscCallContract = CommonRequestParams & {
266
+ type: KeychainRequestTypes.vscCallContract;
267
+ username?: string;
268
+ contractId: string;
269
+ action: string;
270
+ payload: object;
271
+ };
272
+ 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) & {
265
273
  redirect_uri?: string;
266
274
  };
267
275
  export type RequestId = {
@@ -32,6 +32,7 @@ var KeychainRequestTypes;
32
32
  KeychainRequestTypes["convert"] = "convert";
33
33
  KeychainRequestTypes["recurrentTransfer"] = "recurrentTransfer";
34
34
  KeychainRequestTypes["swap"] = "swap";
35
+ KeychainRequestTypes["vscCallContract"] = "vscCallContract";
35
36
  })(KeychainRequestTypes = exports.KeychainRequestTypes || (exports.KeychainRequestTypes = {}));
36
37
  var KeychainKeyTypes;
37
38
  (function (KeychainKeyTypes) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hive-keychain-commons",
3
- "version": "1.2.6",
3
+ "version": "1.3.0",
4
4
  "description": "Platform-agnostic functions used in Hive Keychain mobile and extensions",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",