Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@0xsequence/wallet

Package Overview
Dependencies
Maintainers
6
Versions
521
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@0xsequence/wallet - npm Package Compare versions

Comparing version 0.0.0-20241114193556 to 0.0.0-20241216114019

28

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

@@ -59,9 +59,14 @@ 'use strict';

function _extends() {
return _extends = Object.assign ? Object.assign.bind() : function (n) {
for (var e = 1; e < arguments.length; e++) {
var t = arguments[e];
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
_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 n;
}, _extends.apply(null, arguments);
return target;
};
return _extends.apply(this, arguments);
}

@@ -106,5 +111,7 @@

const suffixed = ethers.ethers.solidityPacked(['bytes', 'bytes'], [value.signature, suffix]);
const validationSignature = value.validationSignature ? ethers.ethers.hexlify(value.validationSignature) : undefined;
parts.set(signer, {
signature: suffixed,
isDynamic: suffix.length !== 1 || suffix[0] !== 2
isDynamic: suffix.length !== 1 || suffix[0] !== 2,
validationSignature
});

@@ -216,4 +223,2 @@ }

}
console.trace('chainId', this.chainId);
console.trace('skale-nebula', network.ChainId.SKALE_NEBULA);
const bundle = Wallet.buildDeployTransaction(this.context, imageHash, gasLimit);

@@ -246,3 +251,2 @@ if (metadata != null && metadata.includeChildren) {

const factoryInterface = new ethers.ethers.Interface(abi.walletContracts.factory.abi);
console.trace('deploy gas limit', gasLimit);
return {

@@ -425,6 +429,6 @@ entrypoint: context.guestModule,

async fillGasLimits(txs) {
const relayer = this.relayer;
if (!relayer) throw new Error('Wallet fillGasLimits requires a relayer');
const transaction = await resolveArrayProperties(txs);
const transactions = core.commons.transaction.fromTransactionish(this.address, transaction);
const relayer = this.relayer;
if (!relayer) throw new Error('Wallet fillGasLimits requires a relayer');
const simulations = await relayer.simulate(this.address, ...transactions);

@@ -431,0 +435,0 @@ return transactions.map((tx, i) => {

@@ -59,9 +59,14 @@ 'use strict';

function _extends() {
return _extends = Object.assign ? Object.assign.bind() : function (n) {
for (var e = 1; e < arguments.length; e++) {
var t = arguments[e];
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
_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 n;
}, _extends.apply(null, arguments);
return target;
};
return _extends.apply(this, arguments);
}

@@ -106,5 +111,7 @@

const suffixed = ethers.ethers.solidityPacked(['bytes', 'bytes'], [value.signature, suffix]);
const validationSignature = value.validationSignature ? ethers.ethers.hexlify(value.validationSignature) : undefined;
parts.set(signer, {
signature: suffixed,
isDynamic: suffix.length !== 1 || suffix[0] !== 2
isDynamic: suffix.length !== 1 || suffix[0] !== 2,
validationSignature
});

@@ -216,4 +223,2 @@ }

}
console.trace('chainId', this.chainId);
console.trace('skale-nebula', network.ChainId.SKALE_NEBULA);
const bundle = Wallet.buildDeployTransaction(this.context, imageHash, gasLimit);

@@ -246,3 +251,2 @@ if (metadata != null && metadata.includeChildren) {

const factoryInterface = new ethers.ethers.Interface(abi.walletContracts.factory.abi);
console.trace('deploy gas limit', gasLimit);
return {

@@ -425,6 +429,6 @@ entrypoint: context.guestModule,

async fillGasLimits(txs) {
const relayer = this.relayer;
if (!relayer) throw new Error('Wallet fillGasLimits requires a relayer');
const transaction = await resolveArrayProperties(txs);
const transactions = core.commons.transaction.fromTransactionish(this.address, transaction);
const relayer = this.relayer;
if (!relayer) throw new Error('Wallet fillGasLimits requires a relayer');
const simulations = await relayer.simulate(this.address, ...transactions);

@@ -431,0 +435,0 @@ return transactions.map((tx, i) => {

@@ -55,9 +55,14 @@ import { ethers } from 'ethers';

function _extends() {
return _extends = Object.assign ? Object.assign.bind() : function (n) {
for (var e = 1; e < arguments.length; e++) {
var t = arguments[e];
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
_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 n;
}, _extends.apply(null, arguments);
return target;
};
return _extends.apply(this, arguments);
}

@@ -102,5 +107,7 @@

const suffixed = ethers.solidityPacked(['bytes', 'bytes'], [value.signature, suffix]);
const validationSignature = value.validationSignature ? ethers.hexlify(value.validationSignature) : undefined;
parts.set(signer, {
signature: suffixed,
isDynamic: suffix.length !== 1 || suffix[0] !== 2
isDynamic: suffix.length !== 1 || suffix[0] !== 2,
validationSignature
});

@@ -212,4 +219,2 @@ }

}
console.trace('chainId', this.chainId);
console.trace('skale-nebula', ChainId.SKALE_NEBULA);
const bundle = Wallet.buildDeployTransaction(this.context, imageHash, gasLimit);

@@ -242,3 +247,2 @@ if (metadata != null && metadata.includeChildren) {

const factoryInterface = new ethers.Interface(walletContracts.factory.abi);
console.trace('deploy gas limit', gasLimit);
return {

@@ -421,6 +425,6 @@ entrypoint: context.guestModule,

async fillGasLimits(txs) {
const relayer = this.relayer;
if (!relayer) throw new Error('Wallet fillGasLimits requires a relayer');
const transaction = await resolveArrayProperties(txs);
const transactions = commons.transaction.fromTransactionish(this.address, transaction);
const relayer = this.relayer;
if (!relayer) throw new Error('Wallet fillGasLimits requires a relayer');
const simulations = await relayer.simulate(this.address, ...transactions);

@@ -427,0 +431,0 @@ return transactions.map((tx, i) => {

{
"name": "@0xsequence/wallet",
"version": "0.0.0-20241114193556",
"version": "0.0.0-20241216114019",
"description": "wallet sub-package for Sequence",

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

"dependencies": {
"@0xsequence/abi": "0.0.0-20241114193556",
"@0xsequence/core": "0.0.0-20241114193556",
"@0xsequence/network": "0.0.0-20241114193556",
"@0xsequence/signhub": "0.0.0-20241114193556",
"@0xsequence/relayer": "0.0.0-20241114193556",
"@0xsequence/utils": "0.0.0-20241114193556"
"@0xsequence/network": "0.0.0-20241216114019",
"@0xsequence/signhub": "0.0.0-20241216114019",
"@0xsequence/relayer": "0.0.0-20241216114019",
"@0xsequence/core": "0.0.0-20241216114019",
"@0xsequence/abi": "0.0.0-20241216114019",
"@0xsequence/utils": "0.0.0-20241216114019"
},

@@ -29,3 +29,3 @@ "devDependencies": {

"web3": "^1.8.1",
"@0xsequence/tests": "0.0.0-20241114193556"
"@0xsequence/tests": "0.0.0-20241216114019"
},

@@ -32,0 +32,0 @@ "files": [

@@ -43,4 +43,9 @@ import { ethers } from 'ethers'

const suffixed = ethers.solidityPacked(['bytes', 'bytes'], [value.signature, suffix])
const validationSignature = value.validationSignature ? ethers.hexlify(value.validationSignature) : undefined
parts.set(signer, { signature: suffixed, isDynamic: suffix.length !== 1 || suffix[0] !== 2 })
parts.set(signer, {
signature: suffixed,
isDynamic: suffix.length !== 1 || suffix[0] !== 2,
validationSignature
})
}

@@ -193,5 +198,2 @@ }

console.trace('chainId', this.chainId)
console.trace('skale-nebula', ChainId.SKALE_NEBULA)
const bundle = Wallet.buildDeployTransaction(this.context, imageHash, gasLimit)

@@ -232,4 +234,2 @@ if (metadata?.includeChildren) {

console.trace('deploy gas limit', gasLimit)
return {

@@ -444,7 +444,8 @@ entrypoint: context.guestModule,

async fillGasLimits(txs: commons.transaction.Transactionish): Promise<commons.transaction.SimulatedTransaction[]> {
const transaction = await resolveArrayProperties<commons.transaction.Transactionish>(txs)
const transactions = commons.transaction.fromTransactionish(this.address, transaction)
const relayer = this.relayer
if (!relayer) throw new Error('Wallet fillGasLimits requires a relayer')
const transaction = await resolveArrayProperties<commons.transaction.Transactionish>(txs)
const transactions = commons.transaction.fromTransactionish(this.address, transaction)
const simulations = await relayer.simulate(this.address, ...transactions)

@@ -451,0 +452,0 @@ return transactions.map((tx, i) => {

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