@0xsequence/relayer
Advanced tools
Comparing version 0.30.0 to 0.31.0
# @0xsequence/relayer | ||
## 0.31.0 | ||
### Minor Changes | ||
- - upgrading to ethers v5.5 | ||
### Patch Changes | ||
- Updated dependencies | ||
- @0xsequence/abi@0.31.0 | ||
- @0xsequence/config@0.31.0 | ||
- @0xsequence/transactions@0.31.0 | ||
- @0xsequence/utils@0.31.0 | ||
## 0.30.0 | ||
@@ -4,0 +18,0 @@ |
@@ -227,3 +227,5 @@ 'use strict'; | ||
if (found) { | ||
return _extends({}, found, await this.provider.getTransaction(found.transactionHash)); | ||
return _extends({ | ||
receipt: found | ||
}, await this.provider.getTransaction(found.transactionHash)); | ||
} // Otherwise wait and try again | ||
@@ -542,3 +544,3 @@ | ||
this.service = void 0; | ||
this.service = new Relayer(options.url, fetchPonyfill__default['default']().fetch); | ||
this.service = new Relayer(options.url, fetchPonyfill__default["default"]().fetch); | ||
} | ||
@@ -545,0 +547,0 @@ |
@@ -227,3 +227,5 @@ 'use strict'; | ||
if (found) { | ||
return _extends({}, found, await this.provider.getTransaction(found.transactionHash)); | ||
return _extends({ | ||
receipt: found | ||
}, await this.provider.getTransaction(found.transactionHash)); | ||
} // Otherwise wait and try again | ||
@@ -542,3 +544,3 @@ | ||
this.service = void 0; | ||
this.service = new Relayer(options.url, fetchPonyfill__default['default']().fetch); | ||
this.service = new Relayer(options.url, fetchPonyfill__default["default"]().fetch); | ||
} | ||
@@ -545,0 +547,0 @@ |
@@ -1,2 +0,2 @@ | ||
import { providers, ethers, Signer } from 'ethers'; | ||
import { ethers, providers, Signer } from 'ethers'; | ||
import { Provider } from '@ethersproject/providers'; | ||
@@ -219,3 +219,5 @@ import { walletContracts } from '@0xsequence/abi'; | ||
if (found) { | ||
return _extends({}, found, await this.provider.getTransaction(found.transactionHash)); | ||
return _extends({ | ||
receipt: found | ||
}, await this.provider.getTransaction(found.transactionHash)); | ||
} // Otherwise wait and try again | ||
@@ -222,0 +224,0 @@ |
@@ -27,3 +27,5 @@ import { TransactionResponse, BlockTag, Provider } from '@ethersproject/providers'; | ||
getNonce(config: WalletConfig, context: WalletContext, space?: ethers.BigNumberish, blockTag?: BlockTag): Promise<ethers.BigNumberish>; | ||
wait(metaTxnId: string | SignedTransactions, timeout: number): Promise<providers.TransactionResponse & providers.TransactionReceipt>; | ||
wait(metaTxnId: string | SignedTransactions, timeout: number): Promise<providers.TransactionResponse & { | ||
receipt: providers.TransactionReceipt; | ||
}>; | ||
} |
{ | ||
"name": "@0xsequence/relayer", | ||
"version": "0.30.0", | ||
"version": "0.31.0", | ||
"description": "relayer sub-package for Sequence", | ||
@@ -20,8 +20,8 @@ "repository": "https://github.com/0xsequence/sequence.js/tree/master/packages/relayer", | ||
"dependencies": { | ||
"@0xsequence/abi": "^0.30.0", | ||
"@0xsequence/config": "^0.30.0", | ||
"@0xsequence/transactions": "^0.30.0", | ||
"@0xsequence/utils": "^0.30.0", | ||
"@ethersproject/providers": "^5.0.24", | ||
"ethers": "^5.0.32", | ||
"@0xsequence/abi": "^0.31.0", | ||
"@0xsequence/config": "^0.31.0", | ||
"@0xsequence/transactions": "^0.31.0", | ||
"@0xsequence/utils": "^0.31.0", | ||
"@ethersproject/providers": "^5.5.0", | ||
"ethers": "^5.5.1", | ||
"fetch-ponyfill": "^7.1.0" | ||
@@ -28,0 +28,0 @@ }, |
@@ -116,3 +116,3 @@ import { TransactionResponse, BlockTag, Provider } from '@ethersproject/providers' | ||
async wait(metaTxnId: string | SignedTransactions, timeout: number): Promise<providers.TransactionResponse & providers.TransactionReceipt> { | ||
async wait(metaTxnId: string | SignedTransactions, timeout: number): Promise<providers.TransactionResponse & { receipt: providers.TransactionReceipt }> { | ||
if (typeof metaTxnId !== 'string') { | ||
@@ -168,3 +168,3 @@ console.log("computing id", metaTxnId.config, metaTxnId.context, metaTxnId.chainId, ...metaTxnId.transactions) | ||
return { | ||
...found, | ||
receipt: found, | ||
...await this.provider.getTransaction(found.transactionHash) | ||
@@ -171,0 +171,0 @@ } |
142307
3188
+ Added@0xsequence/abi@0.31.0(transitive)
+ Added@0xsequence/config@0.31.0(transitive)
+ Added@0xsequence/network@0.31.0(transitive)
+ Added@0xsequence/transactions@0.31.0(transitive)
+ Added@0xsequence/utils@0.31.0(transitive)
- Removed@0xsequence/abi@0.30.0(transitive)
- Removed@0xsequence/config@0.30.0(transitive)
- Removed@0xsequence/network@0.30.0(transitive)
- Removed@0xsequence/transactions@0.30.0(transitive)
- Removed@0xsequence/utils@0.30.0(transitive)
- Removed@ethersproject/abstract-signer@5.0.14(transitive)
Updated@0xsequence/abi@^0.31.0
Updated@0xsequence/config@^0.31.0
Updated@0xsequence/utils@^0.31.0
Updatedethers@^5.5.1