New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

bitmask-core

Package Overview
Dependencies
Maintainers
2
Versions
153
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bitmask-core - npm Package Compare versions

Comparing version 0.7.0-beta.14 to 0.7.0-beta.15

2

package.json

@@ -10,3 +10,3 @@ {

"description": "Core functionality for the BitMask wallet",
"version": "0.7.0-beta.14",
"version": "0.7.0-beta.15",
"license": "MIT",

@@ -13,0 +13,0 @@ "repository": {

@@ -51,3 +51,5 @@ "use strict";

exports.createTransfer = createTransfer;
const createAndPublishTransfer = (nostrHexSk, request, secrets) => __awaiter(void 0, void 0, void 0, function* () { return JSON.parse(yield BMC.create_and_publish_rgb_transfer(nostrHexSk, request, secrets)); });
const createAndPublishTransfer = (nostrHexSk, request, secrets) => __awaiter(void 0, void 0, void 0, function* () {
return JSON.parse(yield BMC.create_and_publish_rgb_transfer(nostrHexSk, request, secrets));
});
exports.createAndPublishTransfer = createAndPublishTransfer;

@@ -62,3 +64,3 @@ const acceptTransfer = (nostrHexSk, request) => __awaiter(void 0, void 0, void 0, function* () { return JSON.parse(yield BMC.accept_transfer(nostrHexSk, request)); });

exports.nextAddress = nextAddress;
const nextUtxo = (nostrHexSk, request) => __awaiter(void 0, void 0, void 0, function* () { return JSON.parse(yield BMC.create_watcher(nostrHexSk, request)); });
const nextUtxo = (nostrHexSk, request) => __awaiter(void 0, void 0, void 0, function* () { return JSON.parse(yield BMC.watcher_next_utxo(nostrHexSk, request)); });
exports.nextUtxo = nextUtxo;

@@ -65,0 +67,0 @@ const psbtSignFile = (nostrHexSk, request) => __awaiter(void 0, void 0, void 0, function* () { return JSON.parse(yield BMC.psbt_sign_file(nostrHexSk, request)); });

@@ -47,3 +47,5 @@ // Methods meant to work with RGB contracts defined within the web::rgb module from bitmask-core:

): Promise<RgbTransferLocalResponse> =>
JSON.parse(await BMC.create_and_publish_rgb_transfer(nostrHexSk, request, secrets));
JSON.parse(
await BMC.create_and_publish_rgb_transfer(nostrHexSk, request, secrets)
);

@@ -57,7 +59,6 @@ export const acceptTransfer = async (

export const verifyTransfers = async (
nostrHexSk: string,
nostrHexSk: string
): Promise<ListTransfersResponse> =>
JSON.parse(await BMC.verify_transfers(nostrHexSk));
export const createWatcher = async (

@@ -79,3 +80,3 @@ nostrHexSk: string,

): Promise<NextUtxoResponse> =>
JSON.parse(await BMC.create_watcher(nostrHexSk, request));
JSON.parse(await BMC.watcher_next_utxo(nostrHexSk, request));

@@ -102,18 +103,15 @@ export const psbtSignFile = async (

invoice: string
): Promise<RgbInvoiceDecoded> =>
JSON.parse(await BMC.decode_invoice(invoice));
): Promise<RgbInvoiceDecoded> => JSON.parse(await BMC.decode_invoice(invoice));
// Core type interfaces based on structs defined within the bitmask-core Rust crate:
// https://github.com/diba-io/bitmask-core/blob/development/src/structs.rs
export interface LocalResponse<T> {
data: T,
carbonado: RgbContainer
data: T;
carbonado: RgbContainer;
}
export interface RgbContainer {
rgbStock?: string,
rgbAccount?: string,
rgbTransfers?: string,
rgbStock?: string;
rgbAccount?: string;
rgbTransfers?: string;
}

@@ -142,3 +140,3 @@

/// Chain Fee
chainFee: ChainFee,
chainFee: ChainFee;
/// contract metadata (only RGB21/UDA)

@@ -182,3 +180,3 @@ meta?: IssueMedia;

/// The Issue Method
issueMethod: string,
issueMethod: string;
/// The Issue Utxo

@@ -191,3 +189,3 @@ issueUtxo: string;

/// creation date (timestamp)
created: bigint,
created: bigint;
/// Description of the asset

@@ -263,3 +261,3 @@ description: string;

/// Invoice Experation Date
expireAt?: number
expireAt?: number;
}

@@ -271,3 +269,3 @@

// Allocation representation
uda?: Allocation
uda?: Allocation;
}

@@ -332,9 +330,9 @@

export interface RgbTransferItem {
contractId: String,
transferId: String,
iface: String,
status: TxStatus,
isAccept: boolean,
isMine: boolean,
txid: String,
contractId: String;
transferId: String;
iface: String;
status: TxStatus;
isAccept: boolean;
isMine: boolean;
txid: String;
}

@@ -381,3 +379,3 @@

/// migrate?
migrate: boolean,
migrate: boolean;
}

@@ -400,3 +398,2 @@

export interface TxStatus {

@@ -410,4 +407,4 @@ notFound?: any;

export interface RgbInvoiceDecoded {
contractId: string,
amount: RgbInvoiceValue
contractId: string;
amount: RgbInvoiceValue;
}

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc