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

@nimiq/hub-api

Package Overview
Dependencies
Maintainers
8
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nimiq/hub-api - npm Package Compare versions

Comparing version 1.7.4 to 1.8.0

2

dist/HubApi.es.js

@@ -140,3 +140,3 @@ import { PostMessageRpcClient, RedirectRpcClient } from '@nimiq/rpc';

} while (this.shouldRetryRequest);
// the code below should never be executed, unless unexpected things happend
// the code below should never be executed, unless unexpected things happened
if (this.popup)

@@ -143,0 +143,0 @@ this.popup.close();

@@ -143,3 +143,3 @@ (function (global, factory) {

} while (this.shouldRetryRequest);
// the code below should never be executed, unless unexpected things happend
// the code below should never be executed, unless unexpected things happened
if (this.popup)

@@ -146,0 +146,0 @@ this.popup.close();

@@ -147,3 +147,3 @@ import type { RelayRequest } from '@opengsn/common/dist/EIP712/RelayRequest';

/**
* The data to be included in the transaction. Ignored for `Currenct.BTC` and `Currency.ETH`.
* The data to be included in the transaction. Ignored for `Currency.BTC` and `Currency.ETH`.
* @deprecated use NimiqDirectPaymentOptions.protocolSpecific.extraData instead.

@@ -227,8 +227,8 @@ */

export interface PolygonHtlcCreationInstructions extends RelayRequest {
type: 'USDC';
type: 'USDC_MATIC';
/**
* The sender's nonce in the token contract, required when calling the
* contract function `openWithApproval`.
* contract function `openWithPermit`.
*/
approval?: {
permit?: {
tokenNonce: number;

@@ -262,3 +262,3 @@ };

export interface PolygonHtlcSettlementInstructions extends RelayRequest {
type: 'USDC';
type: 'USDC_MATIC';
amount: number;

@@ -307,3 +307,3 @@ }

export interface PolygonHtlcRefundInstructions extends RelayRequest {
type: 'USDC';
type: 'USDC_MATIC' | 'USDC';
amount: number;

@@ -509,3 +509,3 @@ }

* The sender's nonce in the token contract, required when calling the
* contract function `transferWithApproval` for bridged USDC.e.
* contract function `swapWithApproval` for bridged USDC.e.
*/

@@ -522,2 +522,12 @@ approval?: {

};
/**
* The amount of USDC to transfer. Required when calling the contract
* methods 'redeem' and 'redeemWithSecretInData' for HTLCs.
*/
amount?: number;
/**
* The label of the sending address. Required when calling the contract
* methods 'redeem' and 'redeemWithSecretInData' for HTLCs.
*/
senderLabel?: string;
}

@@ -524,0 +534,0 @@ export interface SignedPolygonTransaction {

{
"name": "@nimiq/hub-api",
"version": "1.7.4",
"version": "1.8.0",
"main": "dist/HubApi.umd.js",

@@ -13,3 +13,3 @@ "module": "dist/HubApi.es.js",

"@nimiq/core-web": "^1.6.1",
"@nimiq/fastspot-api": "^1.7.0",
"@nimiq/fastspot-api": "^1.8.0",
"@nimiq/rpc": "^0.4.0",

@@ -16,0 +16,0 @@ "@nimiq/utils": "^0.5.0",

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