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

@0xsequence/signhub

Package Overview
Dependencies
Maintainers
6
Versions
303
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@0xsequence/signhub - npm Package Compare versions

Comparing version 0.0.0-20241216114019 to 0.0.0-20241218203257

36

dist/0xsequence-signhub.cjs.dev.js

@@ -44,17 +44,2 @@ 'use strict';

function _extends() {
_extends = Object.assign ? Object.assign.bind() : function (target) {
for (var i = 1; i < arguments.length; i++) {
var source = arguments[i];
for (var key in source) {
if (Object.prototype.hasOwnProperty.call(source, key)) {
target[key] = source[key];
}
}
}
return target;
};
return _extends.apply(this, arguments);
}
let SignerState = /*#__PURE__*/function (SignerState) {

@@ -190,20 +175,9 @@ SignerState[SignerState["INITIAL"] = 0] = "INITIAL";

state: SignerState.SIGNING,
request: s.sign(message, metadata != null ? metadata : {}).then(async function (signature) {
request: s.sign(message, metadata != null ? metadata : {}).then(signature => {
const suffix = s.suffix();
let validationSignature;
if (s.buildEIP6492Signature) {
try {
validationSignature = await s.buildEIP6492Signature(signature);
} catch (e) {
// Log and ignore
console.warn(`signer ${saddr} failed to build validation signature: ${e}`);
}
}
status.signers[saddr] = _extends({
status.signers[saddr] = {
state: SignerState.SIGNED,
suffix,
signature
}, validationSignature && {
validationSignature
});
signature,
suffix
};
onStatusUpdate();

@@ -210,0 +184,0 @@ return signature;

@@ -44,17 +44,2 @@ 'use strict';

function _extends() {
_extends = Object.assign ? Object.assign.bind() : function (target) {
for (var i = 1; i < arguments.length; i++) {
var source = arguments[i];
for (var key in source) {
if (Object.prototype.hasOwnProperty.call(source, key)) {
target[key] = source[key];
}
}
}
return target;
};
return _extends.apply(this, arguments);
}
let SignerState = /*#__PURE__*/function (SignerState) {

@@ -190,20 +175,9 @@ SignerState[SignerState["INITIAL"] = 0] = "INITIAL";

state: SignerState.SIGNING,
request: s.sign(message, metadata != null ? metadata : {}).then(async function (signature) {
request: s.sign(message, metadata != null ? metadata : {}).then(signature => {
const suffix = s.suffix();
let validationSignature;
if (s.buildEIP6492Signature) {
try {
validationSignature = await s.buildEIP6492Signature(signature);
} catch (e) {
// Log and ignore
console.warn(`signer ${saddr} failed to build validation signature: ${e}`);
}
}
status.signers[saddr] = _extends({
status.signers[saddr] = {
state: SignerState.SIGNED,
suffix,
signature
}, validationSignature && {
validationSignature
});
signature,
suffix
};
onStatusUpdate();

@@ -210,0 +184,0 @@ return signature;

@@ -40,17 +40,2 @@ import { ethers } from 'ethers';

function _extends() {
_extends = Object.assign ? Object.assign.bind() : function (target) {
for (var i = 1; i < arguments.length; i++) {
var source = arguments[i];
for (var key in source) {
if (Object.prototype.hasOwnProperty.call(source, key)) {
target[key] = source[key];
}
}
}
return target;
};
return _extends.apply(this, arguments);
}
let SignerState = /*#__PURE__*/function (SignerState) {

@@ -186,20 +171,9 @@ SignerState[SignerState["INITIAL"] = 0] = "INITIAL";

state: SignerState.SIGNING,
request: s.sign(message, metadata != null ? metadata : {}).then(async function (signature) {
request: s.sign(message, metadata != null ? metadata : {}).then(signature => {
const suffix = s.suffix();
let validationSignature;
if (s.buildEIP6492Signature) {
try {
validationSignature = await s.buildEIP6492Signature(signature);
} catch (e) {
// Log and ignore
console.warn(`signer ${saddr} failed to build validation signature: ${e}`);
}
}
status.signers[saddr] = _extends({
status.signers[saddr] = {
state: SignerState.SIGNED,
suffix,
signature
}, validationSignature && {
validationSignature
});
signature,
suffix
};
onStatusUpdate();

@@ -206,0 +180,0 @@ return signature;

@@ -26,3 +26,2 @@ import { ethers } from 'ethers';

suffix: ethers.BytesLike;
validationSignature?: ethers.BytesLike;
} | {

@@ -29,0 +28,0 @@ state: SignerState.ERROR;

@@ -20,6 +20,2 @@ import { ethers } from 'ethers';

/**
* Build a validation signature for an undeployed contract signer.
*/
buildEIP6492Signature?(signature: ethers.BytesLike): Promise<ethers.BytesLike | undefined>;
/**
* Notify the signer of a status change.

@@ -26,0 +22,0 @@ */

4

package.json
{
"name": "@0xsequence/signhub",
"version": "0.0.0-20241216114019",
"version": "0.0.0-20241218203257",
"description": "orchestrates a series of signers, provides visibility into the signing process, and to the signers themselves",

@@ -15,3 +15,3 @@ "repository": "https://github.com/0xsequence/sequence.js/tree/master/packages/signhub",

"dependencies": {
"@0xsequence/core": "0.0.0-20241216114019"
"@0xsequence/core": "0.0.0-20241218203257"
},

@@ -18,0 +18,0 @@ "devDependencies": {

@@ -22,3 +22,3 @@ import { ethers } from 'ethers'

| { state: SignerState.SIGNING; request: Promise<ethers.BytesLike> }
| { state: SignerState.SIGNED; signature: ethers.BytesLike; suffix: ethers.BytesLike; validationSignature?: ethers.BytesLike }
| { state: SignerState.SIGNED; signature: ethers.BytesLike; suffix: ethers.BytesLike }
| { state: SignerState.ERROR; error: any }

@@ -187,19 +187,5 @@

.sign(message, metadata ?? {})
.then(async signature => {
.then(signature => {
const suffix = s.suffix()
let validationSignature
if (s.buildEIP6492Signature) {
try {
validationSignature = await s.buildEIP6492Signature(signature)
} catch (e) {
// Log and ignore
console.warn(`signer ${saddr} failed to build validation signature: ${e}`)
}
}
status.signers[saddr] = {
state: SignerState.SIGNED,
suffix,
signature,
...(validationSignature && { validationSignature })
}
status.signers[saddr] = { state: SignerState.SIGNED, signature, suffix }
onStatusUpdate()

@@ -206,0 +192,0 @@ return signature

@@ -29,7 +29,2 @@ import { ethers } from 'ethers'

/**
* Build a validation signature for an undeployed contract signer.
*/
buildEIP6492Signature?(signature: ethers.BytesLike): Promise<ethers.BytesLike | undefined>;
/**
* Notify the signer of a status change.

@@ -36,0 +31,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