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

@0xsequence/wallet

Package Overview
Dependencies
Maintainers
5
Versions
525
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.25.1 to 0.26.0

13

CHANGELOG.md
# @0xsequence/wallet
## 0.26.0
### Minor Changes
- update relayer client bindings
provide the wallet's address for calls to SendMetaTxn
modify the semantics of Relayer.getNonce() to allow relayers to select nonce spaces for clients
### Patch Changes
- Updated dependencies [undefined]
- @0xsequence/relayer@0.26.0
## 0.25.1

@@ -4,0 +17,0 @@

10

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

@@ -363,7 +363,7 @@ 'use strict';

}];
} // geNonce returns the transaction nonce for this wallet, via the relayer
} // getNonce returns the transaction nonce for this wallet, via the relayer
async getNonce(blockTag) {
return this.relayer.getNonce(this.config, this.context, 0, blockTag);
async getNonce(blockTag, space) {
return this.relayer.getNonce(this.config, this.context, space, blockTag);
} // getTransactionCount returns the number of transactions (aka nonce)

@@ -375,3 +375,5 @@ //

async getTransactionCount(blockTag) {
return this.getNonce(blockTag);
const encodedNonce = await this.getNonce(blockTag, 0);
const [_, decodedNonce] = transactions.decodeNonce(encodedNonce);
return ethers.ethers.BigNumber.from(decodedNonce).toNumber();
} // sendTransaction will dispatch the transaction to the relayer for submission to the network.

@@ -378,0 +380,0 @@

@@ -363,7 +363,7 @@ 'use strict';

}];
} // geNonce returns the transaction nonce for this wallet, via the relayer
} // getNonce returns the transaction nonce for this wallet, via the relayer
async getNonce(blockTag) {
return this.relayer.getNonce(this.config, this.context, 0, blockTag);
async getNonce(blockTag, space) {
return this.relayer.getNonce(this.config, this.context, space, blockTag);
} // getTransactionCount returns the number of transactions (aka nonce)

@@ -375,3 +375,5 @@ //

async getTransactionCount(blockTag) {
return this.getNonce(blockTag);
const encodedNonce = await this.getNonce(blockTag, 0);
const [_, decodedNonce] = transactions.decodeNonce(encodedNonce);
return ethers.ethers.BigNumber.from(decodedNonce).toNumber();
} // sendTransaction will dispatch the transaction to the relayer for submission to the network.

@@ -378,0 +380,0 @@

12

dist/0xsequence-wallet.esm.js

@@ -7,3 +7,3 @@ import { Signer as Signer$1, ethers, BigNumber, Contract } from 'ethers';

import { walletContracts } from '@0xsequence/abi';
import { hasSequenceTransactions, toSequenceTransactions, isSequenceTransaction, makeExpirable, makeAfterNonce, readSequenceNonce, appendNonce, digestOfTransactions, sequenceTxAbiEncode } from '@0xsequence/transactions';
import { decodeNonce, hasSequenceTransactions, toSequenceTransactions, isSequenceTransaction, makeExpirable, makeAfterNonce, readSequenceNonce, appendNonce, digestOfTransactions, sequenceTxAbiEncode } from '@0xsequence/transactions';
import { encodeTypedDataDigest, subDigestOf, packMessageData } from '@0xsequence/utils';

@@ -356,7 +356,7 @@ import fetchPonyfill from 'fetch-ponyfill';

}];
} // geNonce returns the transaction nonce for this wallet, via the relayer
} // getNonce returns the transaction nonce for this wallet, via the relayer
async getNonce(blockTag) {
return this.relayer.getNonce(this.config, this.context, 0, blockTag);
async getNonce(blockTag, space) {
return this.relayer.getNonce(this.config, this.context, space, blockTag);
} // getTransactionCount returns the number of transactions (aka nonce)

@@ -368,3 +368,5 @@ //

async getTransactionCount(blockTag) {
return this.getNonce(blockTag);
const encodedNonce = await this.getNonce(blockTag, 0);
const [_, decodedNonce] = decodeNonce(encodedNonce);
return ethers.BigNumber.from(decodedNonce).toNumber();
} // sendTransaction will dispatch the transaction to the relayer for submission to the network.

@@ -371,0 +373,0 @@

import { Provider, TransactionResponse, BlockTag, JsonRpcProvider } from '@ethersproject/providers';
import { BigNumber, Signer as AbstractSigner } from 'ethers';
import { BigNumber, BigNumberish, Signer as AbstractSigner } from 'ethers';
import { TypedDataDomain, TypedDataField } from '@ethersproject/abstract-signer';

@@ -43,3 +43,3 @@ import { BytesLike } from '@ethersproject/bytes';

getNetworks(): Promise<NetworkConfig[]>;
getNonce(blockTag?: BlockTag): Promise<number>;
getNonce(blockTag?: BlockTag, space?: BigNumberish): Promise<BigNumberish>;
getTransactionCount(blockTag?: BlockTag): Promise<number>;

@@ -46,0 +46,0 @@ sendTransaction(transaction: Deferrable<Transactionish>, chainId?: ChainId, allSigners?: boolean): Promise<TransactionResponse>;

{
"name": "@0xsequence/wallet",
"version": "0.25.1",
"version": "0.26.0",
"description": "wallet sub-package for Sequence",

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

"@0xsequence/network": "^0.25.1",
"@0xsequence/relayer": "^0.25.1",
"@0xsequence/relayer": "^0.26.0",
"@0xsequence/transactions": "^0.25.1",

@@ -27,0 +27,0 @@ "@0xsequence/utils": "^0.25.1",

@@ -27,3 +27,4 @@ import {

SignedTransactions,
digestOfTransactions
digestOfTransactions,
decodeNonce
} from '@0xsequence/transactions'

@@ -270,5 +271,5 @@

// geNonce returns the transaction nonce for this wallet, via the relayer
async getNonce(blockTag?: BlockTag): Promise<number> {
return this.relayer.getNonce(this.config, this.context, 0, blockTag)
// getNonce returns the transaction nonce for this wallet, via the relayer
async getNonce(blockTag?: BlockTag, space?: BigNumberish): Promise<BigNumberish> {
return this.relayer.getNonce(this.config, this.context, space, blockTag)
}

@@ -280,3 +281,5 @@

async getTransactionCount(blockTag?: BlockTag): Promise<number> {
return this.getNonce(blockTag)
const encodedNonce = await this.getNonce(blockTag, 0)
const [_, decodedNonce] = decodeNonce(encodedNonce)
return ethers.BigNumber.from(decodedNonce).toNumber()
}

@@ -283,0 +286,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