@0xsequence/provider 1.1.1 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2096,7 +2096,7 @@ class MuxMessageProvider {
2096
2096
 
2097
2097
  function toExtended(transactions) {
2098
2098
  if (transactions.length === 0) {
2099
- throw new Error("No transaction provided");
2099
+ throw new Error('No transaction provided');
2100
2100
  }
2101
2101
  const [first, ...rest] = transactions;
2102
2102
  return _extends({}, first, {
@@ -2656,7 +2656,7 @@ class WalletRequestHandler {
2656
2656
  const chainId = (_this$prompter$getDef2 = (_this$prompter4 = this.prompter) == null ? void 0 : _this$prompter4.getDefaultChainId()) != null ? _this$prompter$getDef2 : 1;
2657
2657
  const connectDetails = {
2658
2658
  connected: true,
2659
- chainId: ethers.ethers.BigNumber.from(chainId).toHexString()
2659
+ chainId: ethers.ethers.utils.hexValue(chainId)
2660
2660
  };
2661
2661
  if (options && options.authorize) {
2662
2662
  // Perform ethauth eip712 request and construct the ConnectDetails response
@@ -2870,7 +2870,7 @@ class SequenceSigner {
2870
2870
  // it exists to maintain compatibility with ethers.Signer
2871
2871
  connect(provider) {
2872
2872
  if (!SequenceProvider.is(provider)) {
2873
- throw new Error("SequenceSigner can only be connected to a SequenceProvider");
2873
+ throw new Error('SequenceSigner can only be connected to a SequenceProvider');
2874
2874
  }
2875
2875
  return new SequenceSigner(this.client, provider);
2876
2876
  }
@@ -2984,35 +2984,35 @@ class SequenceSigner {
2984
2984
  // We always have a provider, so this is a noop
2985
2985
  }
2986
2986
  populateTransaction(_transaction) {
2987
- throw new Error("SequenceSigner does not support populateTransaction");
2987
+ throw new Error('SequenceSigner does not support populateTransaction');
2988
2988
  }
2989
2989
  checkTransaction(_transaction) {
2990
- throw new Error("SequenceSigner does not support checkTransaction");
2990
+ throw new Error('SequenceSigner does not support checkTransaction');
2991
2991
  }
2992
2992
  getTransactionCount(_blockTag) {
2993
2993
  // We could try returning the sequence nonce here
2994
2994
  // but we aren't sure how ethers will use this nonce
2995
- throw new Error("SequenceSigner does not support getTransactionCount");
2995
+ throw new Error('SequenceSigner does not support getTransactionCount');
2996
2996
  }
2997
2997
  signTransaction(_transaction) {
2998
2998
  // We could implement signTransaction/sendTransaction here
2999
2999
  // but first we need a way of serializing these signed transactions
3000
3000
  // and it could lead to more trouble, because the dapp could try to send this transaction
3001
3001
  // using a different provider, which would fail.
3002
- throw new Error("SequenceWallet does not support signTransaction, use sendTransaction instead.");
3002
+ throw new Error('SequenceWallet does not support signTransaction, use sendTransaction instead.');
3003
3003
  }
3004
3004
  static is(cand) {
3005
- return cand && typeof cand === "object" && cand._isSequenceSigner === true;
3005
+ return cand && typeof cand === 'object' && cand._isSequenceSigner === true;
3006
3006
  }
3007
3007
  }
3008
3008
 
3009
3009
  /**
3010
3010
  * This is the same provider, but it only allows a single network at a time.
3011
3011
  * the network defined by the constructor is the only one that can be used.
3012
- *
3012
+ *
3013
3013
  * Attempting to call any method with a different network will throw an error.
3014
3014
  * Attempting to change the network of this provider will throw an error.
3015
- *
3015
+ *
3016
3016
  * NOTICE: These networks won't support ENS unless they are the mainnet.
3017
3017
  */
3018
3018
  class SingleNetworkSequenceSigner extends SequenceSigner {
@@ -3050,7 +3050,7 @@ class SingleNetworkSequenceSigner extends SequenceSigner {
3050
3050
  return this;
3051
3051
  }
3052
3052
  static is(cand) {
3053
- return cand && typeof cand === "object" && cand._isSingleNetworkSequenceSigner === true;
3053
+ return cand && typeof cand === 'object' && cand._isSingleNetworkSequenceSigner === true;
3054
3054
  }
3055
3055
  }
3056
3056
 
@@ -3275,7 +3275,7 @@ class SequenceProvider extends ethers.ethers.providers.BaseProvider {
3275
3275
  var _provider$prepareRequ;
3276
3276
  // First we check if the method should be handled by the client
3277
3277
  if (method === 'eth_chainId') {
3278
- return this.useChainId();
3278
+ return ethers.ethers.utils.hexValue(await this.useChainId());
3279
3279
  }
3280
3280
  if (method === 'eth_accounts') {
3281
3281
  return [this.client.getAddress()];
@@ -3433,10 +3433,10 @@ function normalizeChainId(chainId) {
3433
3433
  /**
3434
3434
  * This is the same provider, but it only allows a single network at a time.
3435
3435
  * the network defined by the constructor is the only one that can be used.
3436
- *
3436
+ *
3437
3437
  * Attempting to call any method with a different network will throw an error.
3438
3438
  * Attempting to change the network of this provider will throw an error.
3439
- *
3439
+ *
3440
3440
  * NOTICE: These networks won't support ENS unless they are the mainnet.
3441
3441
  */
3442
3442
  class SingleNetworkSequenceProvider extends SequenceProvider {
@@ -3569,7 +3569,7 @@ class DefaultChainIdTracker {
3569
3569
  /**
3570
3570
  * This is a wallet client for sequence wallet-webapp. It connects using *some* transport
3571
3571
  * and it allows to perform all sequence specific (or write) operations related to the wallet.
3572
- *
3572
+ *
3573
3573
  * It doesn't implement a full ethereum Provider, it doesn't include read-only methods.
3574
3574
  */
3575
3575
  DefaultChainIdTracker.SESSION_CHAIN_ID_KEY = '@sequence.session.defaultChainId';
@@ -3594,7 +3594,7 @@ class SequenceClient {
3594
3594
  });
3595
3595
  this.transport.on('connect', response => {
3596
3596
  var _this$callbacks$conne;
3597
- const chainIdHex = ethers.ethers.BigNumber.from(this.getChainId()).toHexString();
3597
+ const chainIdHex = ethers.ethers.utils.hexValue(this.getChainId());
3598
3598
  (_this$callbacks$conne = this.callbacks.connect) == null ? void 0 : _this$callbacks$conne.forEach(cb => cb(_extends({}, response, {
3599
3599
  // Ignore the full connect response
3600
3600
  // use the chainId defined locally
@@ -3626,7 +3626,7 @@ class SequenceClient {
3626
3626
  // instead we handle it locally, so we listen for changes in the store
3627
3627
  this.defaultChainId.onDefaultChainIdChanged(chainId => {
3628
3628
  var _this$callbacks$chain;
3629
- const chainIdHex = ethers.ethers.BigNumber.from(chainId).toHexString();
3629
+ const chainIdHex = ethers.ethers.utils.hexValue(chainId);
3630
3630
  (_this$callbacks$chain = this.callbacks.chainChanged) == null ? void 0 : _this$callbacks$chain.forEach(cb => cb(chainIdHex));
3631
3631
  });
3632
3632
  }
@@ -2096,7 +2096,7 @@ class MuxMessageProvider {
2096
2096
 
2097
2097
  function toExtended(transactions) {
2098
2098
  if (transactions.length === 0) {
2099
- throw new Error("No transaction provided");
2099
+ throw new Error('No transaction provided');
2100
2100
  }
2101
2101
  const [first, ...rest] = transactions;
2102
2102
  return _extends({}, first, {
@@ -2656,7 +2656,7 @@ class WalletRequestHandler {
2656
2656
  const chainId = (_this$prompter$getDef2 = (_this$prompter4 = this.prompter) == null ? void 0 : _this$prompter4.getDefaultChainId()) != null ? _this$prompter$getDef2 : 1;
2657
2657
  const connectDetails = {
2658
2658
  connected: true,
2659
- chainId: ethers.ethers.BigNumber.from(chainId).toHexString()
2659
+ chainId: ethers.ethers.utils.hexValue(chainId)
2660
2660
  };
2661
2661
  if (options && options.authorize) {
2662
2662
  // Perform ethauth eip712 request and construct the ConnectDetails response
@@ -2870,7 +2870,7 @@ class SequenceSigner {
2870
2870
  // it exists to maintain compatibility with ethers.Signer
2871
2871
  connect(provider) {
2872
2872
  if (!SequenceProvider.is(provider)) {
2873
- throw new Error("SequenceSigner can only be connected to a SequenceProvider");
2873
+ throw new Error('SequenceSigner can only be connected to a SequenceProvider');
2874
2874
  }
2875
2875
  return new SequenceSigner(this.client, provider);
2876
2876
  }
@@ -2984,35 +2984,35 @@ class SequenceSigner {
2984
2984
  // We always have a provider, so this is a noop
2985
2985
  }
2986
2986
  populateTransaction(_transaction) {
2987
- throw new Error("SequenceSigner does not support populateTransaction");
2987
+ throw new Error('SequenceSigner does not support populateTransaction');
2988
2988
  }
2989
2989
  checkTransaction(_transaction) {
2990
- throw new Error("SequenceSigner does not support checkTransaction");
2990
+ throw new Error('SequenceSigner does not support checkTransaction');
2991
2991
  }
2992
2992
  getTransactionCount(_blockTag) {
2993
2993
  // We could try returning the sequence nonce here
2994
2994
  // but we aren't sure how ethers will use this nonce
2995
- throw new Error("SequenceSigner does not support getTransactionCount");
2995
+ throw new Error('SequenceSigner does not support getTransactionCount');
2996
2996
  }
2997
2997
  signTransaction(_transaction) {
2998
2998
  // We could implement signTransaction/sendTransaction here
2999
2999
  // but first we need a way of serializing these signed transactions
3000
3000
  // and it could lead to more trouble, because the dapp could try to send this transaction
3001
3001
  // using a different provider, which would fail.
3002
- throw new Error("SequenceWallet does not support signTransaction, use sendTransaction instead.");
3002
+ throw new Error('SequenceWallet does not support signTransaction, use sendTransaction instead.');
3003
3003
  }
3004
3004
  static is(cand) {
3005
- return cand && typeof cand === "object" && cand._isSequenceSigner === true;
3005
+ return cand && typeof cand === 'object' && cand._isSequenceSigner === true;
3006
3006
  }
3007
3007
  }
3008
3008
 
3009
3009
  /**
3010
3010
  * This is the same provider, but it only allows a single network at a time.
3011
3011
  * the network defined by the constructor is the only one that can be used.
3012
- *
3012
+ *
3013
3013
  * Attempting to call any method with a different network will throw an error.
3014
3014
  * Attempting to change the network of this provider will throw an error.
3015
- *
3015
+ *
3016
3016
  * NOTICE: These networks won't support ENS unless they are the mainnet.
3017
3017
  */
3018
3018
  class SingleNetworkSequenceSigner extends SequenceSigner {
@@ -3050,7 +3050,7 @@ class SingleNetworkSequenceSigner extends SequenceSigner {
3050
3050
  return this;
3051
3051
  }
3052
3052
  static is(cand) {
3053
- return cand && typeof cand === "object" && cand._isSingleNetworkSequenceSigner === true;
3053
+ return cand && typeof cand === 'object' && cand._isSingleNetworkSequenceSigner === true;
3054
3054
  }
3055
3055
  }
3056
3056
 
@@ -3275,7 +3275,7 @@ class SequenceProvider extends ethers.ethers.providers.BaseProvider {
3275
3275
  var _provider$prepareRequ;
3276
3276
  // First we check if the method should be handled by the client
3277
3277
  if (method === 'eth_chainId') {
3278
- return this.useChainId();
3278
+ return ethers.ethers.utils.hexValue(await this.useChainId());
3279
3279
  }
3280
3280
  if (method === 'eth_accounts') {
3281
3281
  return [this.client.getAddress()];
@@ -3433,10 +3433,10 @@ function normalizeChainId(chainId) {
3433
3433
  /**
3434
3434
  * This is the same provider, but it only allows a single network at a time.
3435
3435
  * the network defined by the constructor is the only one that can be used.
3436
- *
3436
+ *
3437
3437
  * Attempting to call any method with a different network will throw an error.
3438
3438
  * Attempting to change the network of this provider will throw an error.
3439
- *
3439
+ *
3440
3440
  * NOTICE: These networks won't support ENS unless they are the mainnet.
3441
3441
  */
3442
3442
  class SingleNetworkSequenceProvider extends SequenceProvider {
@@ -3569,7 +3569,7 @@ class DefaultChainIdTracker {
3569
3569
  /**
3570
3570
  * This is a wallet client for sequence wallet-webapp. It connects using *some* transport
3571
3571
  * and it allows to perform all sequence specific (or write) operations related to the wallet.
3572
- *
3572
+ *
3573
3573
  * It doesn't implement a full ethereum Provider, it doesn't include read-only methods.
3574
3574
  */
3575
3575
  DefaultChainIdTracker.SESSION_CHAIN_ID_KEY = '@sequence.session.defaultChainId';
@@ -3594,7 +3594,7 @@ class SequenceClient {
3594
3594
  });
3595
3595
  this.transport.on('connect', response => {
3596
3596
  var _this$callbacks$conne;
3597
- const chainIdHex = ethers.ethers.BigNumber.from(this.getChainId()).toHexString();
3597
+ const chainIdHex = ethers.ethers.utils.hexValue(this.getChainId());
3598
3598
  (_this$callbacks$conne = this.callbacks.connect) == null ? void 0 : _this$callbacks$conne.forEach(cb => cb(_extends({}, response, {
3599
3599
  // Ignore the full connect response
3600
3600
  // use the chainId defined locally
@@ -3626,7 +3626,7 @@ class SequenceClient {
3626
3626
  // instead we handle it locally, so we listen for changes in the store
3627
3627
  this.defaultChainId.onDefaultChainIdChanged(chainId => {
3628
3628
  var _this$callbacks$chain;
3629
- const chainIdHex = ethers.ethers.BigNumber.from(chainId).toHexString();
3629
+ const chainIdHex = ethers.ethers.utils.hexValue(chainId);
3630
3630
  (_this$callbacks$chain = this.callbacks.chainChanged) == null ? void 0 : _this$callbacks$chain.forEach(cb => cb(chainIdHex));
3631
3631
  });
3632
3632
  }
@@ -2092,7 +2092,7 @@ class MuxMessageProvider {
2092
2092
 
2093
2093
  function toExtended(transactions) {
2094
2094
  if (transactions.length === 0) {
2095
- throw new Error("No transaction provided");
2095
+ throw new Error('No transaction provided');
2096
2096
  }
2097
2097
  const [first, ...rest] = transactions;
2098
2098
  return _extends({}, first, {
@@ -2652,7 +2652,7 @@ class WalletRequestHandler {
2652
2652
  const chainId = (_this$prompter$getDef2 = (_this$prompter4 = this.prompter) == null ? void 0 : _this$prompter4.getDefaultChainId()) != null ? _this$prompter$getDef2 : 1;
2653
2653
  const connectDetails = {
2654
2654
  connected: true,
2655
- chainId: ethers.BigNumber.from(chainId).toHexString()
2655
+ chainId: ethers.utils.hexValue(chainId)
2656
2656
  };
2657
2657
  if (options && options.authorize) {
2658
2658
  // Perform ethauth eip712 request and construct the ConnectDetails response
@@ -2866,7 +2866,7 @@ class SequenceSigner {
2866
2866
  // it exists to maintain compatibility with ethers.Signer
2867
2867
  connect(provider) {
2868
2868
  if (!SequenceProvider.is(provider)) {
2869
- throw new Error("SequenceSigner can only be connected to a SequenceProvider");
2869
+ throw new Error('SequenceSigner can only be connected to a SequenceProvider');
2870
2870
  }
2871
2871
  return new SequenceSigner(this.client, provider);
2872
2872
  }
@@ -2980,35 +2980,35 @@ class SequenceSigner {
2980
2980
  // We always have a provider, so this is a noop
2981
2981
  }
2982
2982
  populateTransaction(_transaction) {
2983
- throw new Error("SequenceSigner does not support populateTransaction");
2983
+ throw new Error('SequenceSigner does not support populateTransaction');
2984
2984
  }
2985
2985
  checkTransaction(_transaction) {
2986
- throw new Error("SequenceSigner does not support checkTransaction");
2986
+ throw new Error('SequenceSigner does not support checkTransaction');
2987
2987
  }
2988
2988
  getTransactionCount(_blockTag) {
2989
2989
  // We could try returning the sequence nonce here
2990
2990
  // but we aren't sure how ethers will use this nonce
2991
- throw new Error("SequenceSigner does not support getTransactionCount");
2991
+ throw new Error('SequenceSigner does not support getTransactionCount');
2992
2992
  }
2993
2993
  signTransaction(_transaction) {
2994
2994
  // We could implement signTransaction/sendTransaction here
2995
2995
  // but first we need a way of serializing these signed transactions
2996
2996
  // and it could lead to more trouble, because the dapp could try to send this transaction
2997
2997
  // using a different provider, which would fail.
2998
- throw new Error("SequenceWallet does not support signTransaction, use sendTransaction instead.");
2998
+ throw new Error('SequenceWallet does not support signTransaction, use sendTransaction instead.');
2999
2999
  }
3000
3000
  static is(cand) {
3001
- return cand && typeof cand === "object" && cand._isSequenceSigner === true;
3001
+ return cand && typeof cand === 'object' && cand._isSequenceSigner === true;
3002
3002
  }
3003
3003
  }
3004
3004
 
3005
3005
  /**
3006
3006
  * This is the same provider, but it only allows a single network at a time.
3007
3007
  * the network defined by the constructor is the only one that can be used.
3008
- *
3008
+ *
3009
3009
  * Attempting to call any method with a different network will throw an error.
3010
3010
  * Attempting to change the network of this provider will throw an error.
3011
- *
3011
+ *
3012
3012
  * NOTICE: These networks won't support ENS unless they are the mainnet.
3013
3013
  */
3014
3014
  class SingleNetworkSequenceSigner extends SequenceSigner {
@@ -3046,7 +3046,7 @@ class SingleNetworkSequenceSigner extends SequenceSigner {
3046
3046
  return this;
3047
3047
  }
3048
3048
  static is(cand) {
3049
- return cand && typeof cand === "object" && cand._isSingleNetworkSequenceSigner === true;
3049
+ return cand && typeof cand === 'object' && cand._isSingleNetworkSequenceSigner === true;
3050
3050
  }
3051
3051
  }
3052
3052
 
@@ -3271,7 +3271,7 @@ class SequenceProvider extends ethers.providers.BaseProvider {
3271
3271
  var _provider$prepareRequ;
3272
3272
  // First we check if the method should be handled by the client
3273
3273
  if (method === 'eth_chainId') {
3274
- return this.useChainId();
3274
+ return ethers.utils.hexValue(await this.useChainId());
3275
3275
  }
3276
3276
  if (method === 'eth_accounts') {
3277
3277
  return [this.client.getAddress()];
@@ -3429,10 +3429,10 @@ function normalizeChainId(chainId) {
3429
3429
  /**
3430
3430
  * This is the same provider, but it only allows a single network at a time.
3431
3431
  * the network defined by the constructor is the only one that can be used.
3432
- *
3432
+ *
3433
3433
  * Attempting to call any method with a different network will throw an error.
3434
3434
  * Attempting to change the network of this provider will throw an error.
3435
- *
3435
+ *
3436
3436
  * NOTICE: These networks won't support ENS unless they are the mainnet.
3437
3437
  */
3438
3438
  class SingleNetworkSequenceProvider extends SequenceProvider {
@@ -3565,7 +3565,7 @@ class DefaultChainIdTracker {
3565
3565
  /**
3566
3566
  * This is a wallet client for sequence wallet-webapp. It connects using *some* transport
3567
3567
  * and it allows to perform all sequence specific (or write) operations related to the wallet.
3568
- *
3568
+ *
3569
3569
  * It doesn't implement a full ethereum Provider, it doesn't include read-only methods.
3570
3570
  */
3571
3571
  DefaultChainIdTracker.SESSION_CHAIN_ID_KEY = '@sequence.session.defaultChainId';
@@ -3590,7 +3590,7 @@ class SequenceClient {
3590
3590
  });
3591
3591
  this.transport.on('connect', response => {
3592
3592
  var _this$callbacks$conne;
3593
- const chainIdHex = ethers.BigNumber.from(this.getChainId()).toHexString();
3593
+ const chainIdHex = ethers.utils.hexValue(this.getChainId());
3594
3594
  (_this$callbacks$conne = this.callbacks.connect) == null ? void 0 : _this$callbacks$conne.forEach(cb => cb(_extends({}, response, {
3595
3595
  // Ignore the full connect response
3596
3596
  // use the chainId defined locally
@@ -3622,7 +3622,7 @@ class SequenceClient {
3622
3622
  // instead we handle it locally, so we listen for changes in the store
3623
3623
  this.defaultChainId.onDefaultChainIdChanged(chainId => {
3624
3624
  var _this$callbacks$chain;
3625
- const chainIdHex = ethers.BigNumber.from(chainId).toHexString();
3625
+ const chainIdHex = ethers.utils.hexValue(chainId);
3626
3626
  (_this$callbacks$chain = this.callbacks.chainChanged) == null ? void 0 : _this$callbacks$chain.forEach(cb => cb(chainIdHex));
3627
3627
  });
3628
3628
  }
@@ -1,8 +1,8 @@
1
- import { JsonRpcRequest, NetworkConfig } from "@0xsequence/network";
1
+ import { JsonRpcRequest, NetworkConfig } from '@0xsequence/network';
2
2
  import { ConnectDetails, ConnectOptions, ItemStore, MuxTransportTemplate, OpenWalletIntent, OptionalChainId, OptionalEIP6492, ProviderTransport, WalletEventTypes, WalletSession } from "./index.js";
3
- import { commons } from "@0xsequence/core";
4
- import { TypedData } from "@0xsequence/utils";
5
- import { ethers } from "ethers";
3
+ import { commons } from '@0xsequence/core';
4
+ import { TypedData } from '@0xsequence/utils';
5
+ import { ethers } from 'ethers';
6
6
  /**
7
7
  * This session class is meant to persist the state of the wallet connection
8
8
  * whitin the dapp. This enables the client to retain the wallet address (and some more)
@@ -68,7 +68,7 @@ export declare class SequenceClient {
68
68
  getNetworks(pull?: boolean): Promise<NetworkConfig[]>;
69
69
  signMessage(message: ethers.BytesLike, options?: OptionalEIP6492 & OptionalChainId): Promise<string>;
70
70
  signTypedData(typedData: TypedData, options?: OptionalEIP6492 & OptionalChainId): Promise<string>;
71
- sendTransaction(tx: (ethers.providers.TransactionRequest[] | ethers.providers.TransactionRequest), options?: OptionalChainId): Promise<string>;
71
+ sendTransaction(tx: ethers.providers.TransactionRequest[] | ethers.providers.TransactionRequest, options?: OptionalChainId): Promise<string>;
72
72
  getWalletContext(): Promise<commons.context.VersionedContext>;
73
73
  getOnchainWalletConfig(options?: OptionalChainId): Promise<commons.config.Config>;
74
74
  }
@@ -1,4 +1,4 @@
1
- import { ChainIdLike, NetworkConfig } from "@0xsequence/network";
1
+ import { ChainIdLike, NetworkConfig } from '@0xsequence/network';
2
2
  import { MuxTransportTemplate } from "./transports/index.js";
3
3
  import { ItemStore } from "./utils.js";
4
4
  import { SequenceProvider } from "./provider.js";
@@ -1,8 +1,8 @@
1
- import { ethers } from "ethers";
1
+ import { ethers } from 'ethers';
2
2
  import { SequenceClient } from "./client.js";
3
- import { ChainIdLike, NetworkConfig } from "@0xsequence/network";
3
+ import { ChainIdLike, NetworkConfig } from '@0xsequence/network';
4
4
  import { ConnectDetails, ConnectOptions, EIP1193Provider, OpenWalletIntent, OptionalChainIdLike, WalletSession } from "./types.js";
5
- import { commons } from "@0xsequence/core";
5
+ import { commons } from '@0xsequence/core';
6
6
  import { WalletUtils } from "./utils/index.js";
7
7
  import { SequenceSigner, SingleNetworkSequenceSigner } from "./signer.js";
8
8
  export interface ISequenceProvider {
@@ -1,8 +1,8 @@
1
- import { ethers } from "ethers";
1
+ import { ethers } from 'ethers';
2
2
  import { SequenceProvider, SingleNetworkSequenceProvider } from "./provider.js";
3
3
  import { SequenceClient } from "./client.js";
4
- import { commons } from "@0xsequence/core";
5
- import { ChainIdLike, NetworkConfig } from "@0xsequence/network";
4
+ import { commons } from '@0xsequence/core';
5
+ import { ChainIdLike, NetworkConfig } from '@0xsequence/network';
6
6
  import { WalletUtils } from "./utils/index.js";
7
7
  import { OptionalChainIdLike, OptionalEIP6492 } from "./types.js";
8
8
  export interface ISequenceSigner extends ethers.Signer {
@@ -16,7 +16,7 @@ export interface ISequenceSigner extends ethers.Signer {
16
16
  getNetworks(): Promise<NetworkConfig[]>;
17
17
  signMessage(message: ethers.BytesLike, options?: OptionalChainIdLike & OptionalEIP6492): Promise<string>;
18
18
  signTypedData(domain: ethers.TypedDataDomain, types: Record<string, Array<ethers.TypedDataField>>, message: Record<string, any>, options?: OptionalChainIdLike & OptionalEIP6492): Promise<string>;
19
- sendTransaction(transaction: (ethers.utils.Deferrable<ethers.providers.TransactionRequest>[] | ethers.utils.Deferrable<ethers.providers.TransactionRequest>), options?: OptionalChainIdLike): Promise<commons.transaction.TransactionResponse>;
19
+ sendTransaction(transaction: ethers.utils.Deferrable<ethers.providers.TransactionRequest>[] | ethers.utils.Deferrable<ethers.providers.TransactionRequest>, options?: OptionalChainIdLike): Promise<commons.transaction.TransactionResponse>;
20
20
  utils: WalletUtils;
21
21
  }
22
22
  export declare class SequenceSigner implements ISequenceSigner {
@@ -43,7 +43,7 @@ export declare class SequenceSigner implements ISequenceSigner {
43
43
  getProvider(): SequenceProvider;
44
44
  getProvider(chainId: ChainIdLike): SingleNetworkSequenceProvider;
45
45
  getProvider(chainId?: ChainIdLike): SingleNetworkSequenceProvider | SequenceProvider;
46
- sendTransaction(transaction: (ethers.utils.Deferrable<ethers.providers.TransactionRequest>[] | ethers.utils.Deferrable<ethers.providers.TransactionRequest>), options?: OptionalChainIdLike): Promise<ethers.providers.TransactionResponse>;
46
+ sendTransaction(transaction: ethers.utils.Deferrable<ethers.providers.TransactionRequest>[] | ethers.utils.Deferrable<ethers.providers.TransactionRequest>, options?: OptionalChainIdLike): Promise<ethers.providers.TransactionResponse>;
47
47
  getWalletConfig(chainId?: ChainIdLike | undefined): Promise<commons.config.Config>;
48
48
  getNetworks(): Promise<NetworkConfig[]>;
49
49
  getBalance(blockTag?: ethers.providers.BlockTag | undefined, optionals?: OptionalChainIdLike): Promise<ethers.BigNumber>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@0xsequence/provider",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "description": "provider sub-package for Sequence",
5
5
  "repository": "https://github.com/0xsequence/sequence.js/tree/master/packages/provider",
6
6
  "source": "src/index.ts",
@@ -11,15 +11,15 @@
11
11
  "dependencies": {
12
12
  "eventemitter2": "^6.4.5",
13
13
  "webextension-polyfill": "^0.10.0",
14
- "@0xsequence/account": "1.1.1",
15
- "@0xsequence/abi": "1.1.1",
16
- "@0xsequence/auth": "1.1.1",
17
- "@0xsequence/core": "1.1.1",
18
- "@0xsequence/migration": "1.1.1",
19
- "@0xsequence/network": "1.1.1",
20
- "@0xsequence/relayer": "1.1.1",
21
- "@0xsequence/utils": "1.1.1",
22
- "@0xsequence/wallet": "1.1.1"
14
+ "@0xsequence/abi": "1.1.2",
15
+ "@0xsequence/account": "1.1.2",
16
+ "@0xsequence/auth": "1.1.2",
17
+ "@0xsequence/migration": "1.1.2",
18
+ "@0xsequence/core": "1.1.2",
19
+ "@0xsequence/network": "1.1.2",
20
+ "@0xsequence/relayer": "1.1.2",
21
+ "@0xsequence/utils": "1.1.2",
22
+ "@0xsequence/wallet": "1.1.2"
23
23
  },
24
24
  "peerDependencies": {
25
25
  "ethers": ">=5.5 < 6"