@0xsequence/account
Advanced tools
Comparing version 2.0.26 to 2.1.0
@@ -852,5 +852,5 @@ 'use strict'; | ||
} | ||
async sendSignedTransactions(signedBundle, chainId, quote, pstatus, callback) { | ||
async sendSignedTransactions(signedBundle, chainId, quote, pstatus, callback, projectAccessKey) { | ||
if (!Array.isArray(signedBundle)) { | ||
return this.sendSignedTransactions([signedBundle], chainId, quote, pstatus, callback); | ||
return this.sendSignedTransactions([signedBundle], chainId, quote, pstatus, callback, projectAccessKey); | ||
} | ||
@@ -861,3 +861,3 @@ const status = pstatus || (await this.status(chainId)); | ||
callback == null || callback(decoratedBundle); | ||
return this.relayer(chainId).relay(decoratedBundle, quote); | ||
return this.relayer(chainId).relay(decoratedBundle, quote, undefined, projectAccessKey); | ||
} | ||
@@ -903,3 +903,4 @@ async fillGasLimits(txs, chainId, status) { | ||
const gasRefundQuote = await this.gasRefundQuotes(transactions, args.chainId, args.stubSignatureOverrides, status, { | ||
simulate: args.simulateForFeeOptions | ||
simulate: args.simulateForFeeOptions, | ||
projectAccessKey: args.projectAccessKey | ||
}); | ||
@@ -927,3 +928,3 @@ const flatDecorated = core.commons.transaction.unwind(this.address, gasRefundQuote.decorated.transactions); | ||
bundles.push(...childBundles.filter(b => b.transactions.length > 0)); | ||
return this.sendSignedTransactions(bundles, chainId, quote, undefined, callback); | ||
return this.sendSignedTransactions(bundles, chainId, quote, undefined, callback, options == null ? void 0 : options.projectAccessKey); | ||
} | ||
@@ -930,0 +931,0 @@ async signTypedData(domain, types, message, chainId, cantValidateBehavior = 'ignore') { |
@@ -852,5 +852,5 @@ 'use strict'; | ||
} | ||
async sendSignedTransactions(signedBundle, chainId, quote, pstatus, callback) { | ||
async sendSignedTransactions(signedBundle, chainId, quote, pstatus, callback, projectAccessKey) { | ||
if (!Array.isArray(signedBundle)) { | ||
return this.sendSignedTransactions([signedBundle], chainId, quote, pstatus, callback); | ||
return this.sendSignedTransactions([signedBundle], chainId, quote, pstatus, callback, projectAccessKey); | ||
} | ||
@@ -861,3 +861,3 @@ const status = pstatus || (await this.status(chainId)); | ||
callback == null || callback(decoratedBundle); | ||
return this.relayer(chainId).relay(decoratedBundle, quote); | ||
return this.relayer(chainId).relay(decoratedBundle, quote, undefined, projectAccessKey); | ||
} | ||
@@ -903,3 +903,4 @@ async fillGasLimits(txs, chainId, status) { | ||
const gasRefundQuote = await this.gasRefundQuotes(transactions, args.chainId, args.stubSignatureOverrides, status, { | ||
simulate: args.simulateForFeeOptions | ||
simulate: args.simulateForFeeOptions, | ||
projectAccessKey: args.projectAccessKey | ||
}); | ||
@@ -927,3 +928,3 @@ const flatDecorated = core.commons.transaction.unwind(this.address, gasRefundQuote.decorated.transactions); | ||
bundles.push(...childBundles.filter(b => b.transactions.length > 0)); | ||
return this.sendSignedTransactions(bundles, chainId, quote, undefined, callback); | ||
return this.sendSignedTransactions(bundles, chainId, quote, undefined, callback, options == null ? void 0 : options.projectAccessKey); | ||
} | ||
@@ -930,0 +931,0 @@ async signTypedData(domain, types, message, chainId, cantValidateBehavior = 'ignore') { |
@@ -848,5 +848,5 @@ import { walletContracts } from '@0xsequence/abi'; | ||
} | ||
async sendSignedTransactions(signedBundle, chainId, quote, pstatus, callback) { | ||
async sendSignedTransactions(signedBundle, chainId, quote, pstatus, callback, projectAccessKey) { | ||
if (!Array.isArray(signedBundle)) { | ||
return this.sendSignedTransactions([signedBundle], chainId, quote, pstatus, callback); | ||
return this.sendSignedTransactions([signedBundle], chainId, quote, pstatus, callback, projectAccessKey); | ||
} | ||
@@ -857,3 +857,3 @@ const status = pstatus || (await this.status(chainId)); | ||
callback == null || callback(decoratedBundle); | ||
return this.relayer(chainId).relay(decoratedBundle, quote); | ||
return this.relayer(chainId).relay(decoratedBundle, quote, undefined, projectAccessKey); | ||
} | ||
@@ -899,3 +899,4 @@ async fillGasLimits(txs, chainId, status) { | ||
const gasRefundQuote = await this.gasRefundQuotes(transactions, args.chainId, args.stubSignatureOverrides, status, { | ||
simulate: args.simulateForFeeOptions | ||
simulate: args.simulateForFeeOptions, | ||
projectAccessKey: args.projectAccessKey | ||
}); | ||
@@ -923,3 +924,3 @@ const flatDecorated = commons.transaction.unwind(this.address, gasRefundQuote.decorated.transactions); | ||
bundles.push(...childBundles.filter(b => b.transactions.length > 0)); | ||
return this.sendSignedTransactions(bundles, chainId, quote, undefined, callback); | ||
return this.sendSignedTransactions(bundles, chainId, quote, undefined, callback, options == null ? void 0 : options.projectAccessKey); | ||
} | ||
@@ -926,0 +927,0 @@ async signTypedData(domain, types, message, chainId, cantValidateBehavior = 'ignore') { |
@@ -131,6 +131,7 @@ import { commons } from '@0xsequence/core'; | ||
}>; | ||
sendSignedTransactions(signedBundle: commons.transaction.IntendedTransactionBundle | commons.transaction.IntendedTransactionBundle[], chainId: ethers.BigNumberish, quote?: FeeQuote, pstatus?: AccountStatus, callback?: (bundle: commons.transaction.IntendedTransactionBundle) => void): Promise<ethers.TransactionResponse>; | ||
sendSignedTransactions(signedBundle: commons.transaction.IntendedTransactionBundle | commons.transaction.IntendedTransactionBundle[], chainId: ethers.BigNumberish, quote?: FeeQuote, pstatus?: AccountStatus, callback?: (bundle: commons.transaction.IntendedTransactionBundle) => void, projectAccessKey?: string): Promise<ethers.TransactionResponse>; | ||
fillGasLimits(txs: commons.transaction.Transactionish, chainId: ethers.BigNumberish, status?: AccountStatus): Promise<commons.transaction.SimulatedTransaction[]>; | ||
gasRefundQuotes(txs: commons.transaction.Transactionish, chainId: ethers.BigNumberish, stubSignatureOverrides: Map<string, string>, status?: AccountStatus, options?: { | ||
simulate?: boolean; | ||
projectAccessKey?: string; | ||
}): Promise<{ | ||
@@ -146,2 +147,3 @@ options: FeeOption[]; | ||
simulateForFeeOptions?: boolean; | ||
projectAccessKey?: string; | ||
}): Promise<PreparedTransactions>; | ||
@@ -151,2 +153,3 @@ sendTransaction(txs: commons.transaction.Transactionish, chainId: ethers.BigNumberish, quote?: FeeQuote, skipPreDecorate?: boolean, callback?: (bundle: commons.transaction.IntendedTransactionBundle) => void, options?: { | ||
serial?: boolean; | ||
projectAccessKey?: string; | ||
}): Promise<ethers.TransactionResponse | undefined>; | ||
@@ -153,0 +156,0 @@ signTypedData(domain: ethers.TypedDataDomain, types: Record<string, Array<ethers.TypedDataField>>, message: Record<string, any>, chainId: ethers.BigNumberish, cantValidateBehavior?: 'ignore' | 'eip6492' | 'throw'): Promise<string>; |
{ | ||
"name": "@0xsequence/account", | ||
"version": "2.0.26", | ||
"version": "2.1.0", | ||
"description": "tools for migrating sequence wallets to new versions", | ||
@@ -15,10 +15,10 @@ "repository": "https://github.com/0xsequence/sequence.js/tree/master/packages/account", | ||
"dependencies": { | ||
"@0xsequence/abi": "2.0.26", | ||
"@0xsequence/core": "2.0.26", | ||
"@0xsequence/migration": "2.0.26", | ||
"@0xsequence/network": "2.0.26", | ||
"@0xsequence/relayer": "2.0.26", | ||
"@0xsequence/sessions": "2.0.26", | ||
"@0xsequence/utils": "2.0.26", | ||
"@0xsequence/wallet": "2.0.26" | ||
"@0xsequence/abi": "2.1.0", | ||
"@0xsequence/core": "2.1.0", | ||
"@0xsequence/migration": "2.1.0", | ||
"@0xsequence/network": "2.1.0", | ||
"@0xsequence/relayer": "2.1.0", | ||
"@0xsequence/sessions": "2.1.0", | ||
"@0xsequence/utils": "2.1.0", | ||
"@0xsequence/wallet": "2.1.0" | ||
}, | ||
@@ -29,4 +29,4 @@ "devDependencies": { | ||
"nyc": "^15.1.0", | ||
"@0xsequence/signhub": "2.0.26", | ||
"@0xsequence/tests": "2.0.26" | ||
"@0xsequence/signhub": "2.1.0", | ||
"@0xsequence/tests": "2.1.0" | ||
}, | ||
@@ -33,0 +33,0 @@ "files": [ |
@@ -883,6 +883,7 @@ import { walletContracts } from '@0xsequence/abi' | ||
pstatus?: AccountStatus, | ||
callback?: (bundle: commons.transaction.IntendedTransactionBundle) => void | ||
callback?: (bundle: commons.transaction.IntendedTransactionBundle) => void, | ||
projectAccessKey?: string | ||
): Promise<ethers.TransactionResponse> { | ||
if (!Array.isArray(signedBundle)) { | ||
return this.sendSignedTransactions([signedBundle], chainId, quote, pstatus, callback) | ||
return this.sendSignedTransactions([signedBundle], chainId, quote, pstatus, callback, projectAccessKey) | ||
} | ||
@@ -895,3 +896,3 @@ const status = pstatus || (await this.status(chainId)) | ||
return this.relayer(chainId).relay(decoratedBundle, quote) | ||
return this.relayer(chainId).relay(decoratedBundle, quote, undefined, projectAccessKey) | ||
} | ||
@@ -915,2 +916,3 @@ | ||
simulate?: boolean | ||
projectAccessKey?: string | ||
} | ||
@@ -958,2 +960,3 @@ ): Promise<{ | ||
simulateForFeeOptions?: boolean | ||
projectAccessKey?: string | ||
}): Promise<PreparedTransactions> { | ||
@@ -964,3 +967,4 @@ const status = await this.status(args.chainId) | ||
const gasRefundQuote = await this.gasRefundQuotes(transactions, args.chainId, args.stubSignatureOverrides, status, { | ||
simulate: args.simulateForFeeOptions | ||
simulate: args.simulateForFeeOptions, | ||
projectAccessKey: args.projectAccessKey | ||
}) | ||
@@ -986,2 +990,3 @@ const flatDecorated = commons.transaction.unwind(this.address, gasRefundQuote.decorated.transactions) | ||
serial?: boolean | ||
projectAccessKey?: string | ||
} | ||
@@ -1003,3 +1008,3 @@ ): Promise<ethers.TransactionResponse | undefined> { | ||
return this.sendSignedTransactions(bundles, chainId, quote, undefined, callback) | ||
return this.sendSignedTransactions(bundles, chainId, quote, undefined, callback, options?.projectAccessKey) | ||
} | ||
@@ -1006,0 +1011,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
197143
4385
+ Added@0xsequence/abi@2.1.0(transitive)
+ Added@0xsequence/core@2.1.0(transitive)
+ Added@0xsequence/indexer@2.1.0(transitive)
+ Added@0xsequence/migration@2.1.0(transitive)
+ Added@0xsequence/network@2.1.0(transitive)
+ Added@0xsequence/relayer@2.1.0(transitive)
+ Added@0xsequence/replacer@2.1.0(transitive)
+ Added@0xsequence/sessions@2.1.0(transitive)
+ Added@0xsequence/signhub@2.1.0(transitive)
+ Added@0xsequence/utils@2.1.0(transitive)
+ Added@0xsequence/wallet@2.1.0(transitive)
- Removed@0xsequence/abi@2.0.26(transitive)
- Removed@0xsequence/core@2.0.26(transitive)
- Removed@0xsequence/indexer@2.0.26(transitive)
- Removed@0xsequence/migration@2.0.26(transitive)
- Removed@0xsequence/network@2.0.26(transitive)
- Removed@0xsequence/relayer@2.0.26(transitive)
- Removed@0xsequence/replacer@2.0.26(transitive)
- Removed@0xsequence/sessions@2.0.26(transitive)
- Removed@0xsequence/signhub@2.0.26(transitive)
- Removed@0xsequence/utils@2.0.26(transitive)
- Removed@0xsequence/wallet@2.0.26(transitive)
Updated@0xsequence/abi@2.1.0
Updated@0xsequence/core@2.1.0
Updated@0xsequence/migration@2.1.0
Updated@0xsequence/network@2.1.0
Updated@0xsequence/relayer@2.1.0
Updated@0xsequence/sessions@2.1.0
Updated@0xsequence/utils@2.1.0
Updated@0xsequence/wallet@2.1.0