@requestnetwork/ethereum-storage
Advanced tools
Comparing version 0.37.0 to 0.38.0
@@ -20,2 +20,7 @@ import { BigNumber, ContractTransaction, providers, Signer } from 'ethers'; | ||
gasPriceMultiplier?: number; | ||
/** | ||
* If set, the gas limit will be used when submitting transactions. | ||
* If not, the gas limit will be estimated on each submission. | ||
*/ | ||
gasLimit?: BigNumber; | ||
network: CurrencyTypes.EvmChainName; | ||
@@ -34,3 +39,4 @@ logger?: LogTypes.ILogger; | ||
private readonly gasFeeDefiner; | ||
constructor({ network, signer, logger, gasPriceMin, gasPriceMax, gasPriceMultiplier, debugProvider, }: SubmitterProps); | ||
private readonly gasLimit; | ||
constructor({ network, signer, logger, gasPriceMin, gasPriceMax, gasPriceMultiplier, gasLimit, debugProvider, }: SubmitterProps); | ||
get hashSubmitterAddress(): string; | ||
@@ -37,0 +43,0 @@ initialize(): Promise<void>; |
@@ -13,3 +13,3 @@ "use strict"; | ||
class EthereumTransactionSubmitter { | ||
constructor({ network, signer, logger, gasPriceMin, gasPriceMax, gasPriceMultiplier, debugProvider, }) { | ||
constructor({ network, signer, logger, gasPriceMin, gasPriceMax, gasPriceMultiplier, gasLimit, debugProvider, }) { | ||
this.enableEip1559 = true; | ||
@@ -27,2 +27,3 @@ this.logger = logger || new utils_1.SimpleLogger(); | ||
}); | ||
this.gasLimit = gasLimit; | ||
if (debugProvider) { | ||
@@ -62,3 +63,3 @@ this.provider.on('debug', (event) => { | ||
]); | ||
return Object.assign({ to: this.hashSubmitter.address, data: tx, value: fee }, gasFees); | ||
return Object.assign({ to: this.hashSubmitter.address, data: tx, value: fee, gasLimit: this.gasLimit }, gasFees); | ||
}); | ||
@@ -65,0 +66,0 @@ } |
{ | ||
"name": "@requestnetwork/ethereum-storage", | ||
"version": "0.37.0", | ||
"version": "0.38.0", | ||
"publishConfig": { | ||
@@ -44,5 +44,5 @@ "access": "public" | ||
"@rainbow-me/fee-suggestions": "2.1.0", | ||
"@requestnetwork/smart-contracts": "0.40.0", | ||
"@requestnetwork/types": "0.46.0", | ||
"@requestnetwork/utils": "0.46.0", | ||
"@requestnetwork/smart-contracts": "0.41.0", | ||
"@requestnetwork/types": "0.47.0", | ||
"@requestnetwork/utils": "0.47.0", | ||
"ethers": "5.7.2", | ||
@@ -68,3 +68,3 @@ "form-data": "3.0.0", | ||
}, | ||
"gitHead": "7884e8d54136ca26aae9be637d1d632a9f803487" | ||
"gitHead": "c16bcd97afc61eea7c07a44cd7593f668bef3d4c" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
259647
933
1
+ Added@requestnetwork/smart-contracts@0.41.0(transitive)
+ Added@requestnetwork/types@0.47.0(transitive)
+ Added@requestnetwork/utils@0.47.0(transitive)
- Removed@requestnetwork/smart-contracts@0.40.0(transitive)
- Removed@requestnetwork/types@0.46.0(transitive)
- Removed@requestnetwork/utils@0.46.0(transitive)
Updated@requestnetwork/types@0.47.0
Updated@requestnetwork/utils@0.47.0