@atomiqlabs/chain-evm 1.0.0-dev.39 → 1.0.0-dev.41
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.
|
@@ -78,7 +78,7 @@ function initializeBotanix(options, bitcoinRpc, network) {
|
|
|
78
78
|
options.rpcUrl;
|
|
79
79
|
const Fees = options.fees ?? new EVMFees_1.EVMFees(provider, 2n * 1000000000n, 1000000n);
|
|
80
80
|
const chainInterface = new EVMChainInterface_1.EVMChainInterface("BOTANIX", chainId, provider, {
|
|
81
|
-
safeBlockTag: "
|
|
81
|
+
safeBlockTag: "finalized",
|
|
82
82
|
maxLogsBlockRange: options.maxLogsBlockRange ?? 500
|
|
83
83
|
}, options.retryPolicy, Fees);
|
|
84
84
|
const btcRelay = new EVMBtcRelay_1.EVMBtcRelay(chainInterface, bitcoinRpc, network, options.btcRelayContract ?? defaultContractAddresses.btcRelayContract, options.btcRelayDeploymentHeight ?? defaultContractAddresses.btcRelayDeploymentHeight);
|
|
@@ -117,7 +117,7 @@ class EVMTransactions extends EVMModule_1.EVMModule {
|
|
|
117
117
|
const txIds = [];
|
|
118
118
|
if (parallel) {
|
|
119
119
|
const promises = [];
|
|
120
|
-
for (let i = 0; i <
|
|
120
|
+
for (let i = 0; i < txs.length; i++) {
|
|
121
121
|
let tx;
|
|
122
122
|
if (signer.isBrowserWallet) {
|
|
123
123
|
tx = await signer.account.sendTransaction(txs[i]);
|
|
@@ -136,7 +136,7 @@ class EVMTransactions extends EVMModule_1.EVMModule {
|
|
|
136
136
|
await Promise.all(promises);
|
|
137
137
|
}
|
|
138
138
|
else {
|
|
139
|
-
for (let i = 0; i <
|
|
139
|
+
for (let i = 0; i < txs.length; i++) {
|
|
140
140
|
let tx;
|
|
141
141
|
if (signer.isBrowserWallet) {
|
|
142
142
|
tx = await signer.account.sendTransaction(txs[i]);
|
package/package.json
CHANGED
|
@@ -112,7 +112,7 @@ export function initializeBotanix(
|
|
|
112
112
|
const Fees = options.fees ?? new EVMFees(provider, 2n * 1_000_000_000n, 1_000_000n);
|
|
113
113
|
|
|
114
114
|
const chainInterface = new EVMChainInterface("BOTANIX", chainId, provider, {
|
|
115
|
-
safeBlockTag: "
|
|
115
|
+
safeBlockTag: "finalized",
|
|
116
116
|
maxLogsBlockRange: options.maxLogsBlockRange ?? 500
|
|
117
117
|
}, options.retryPolicy, Fees);
|
|
118
118
|
|
|
@@ -141,7 +141,7 @@ export class EVMTransactions extends EVMModule<any> {
|
|
|
141
141
|
const txIds: string[] = [];
|
|
142
142
|
if(parallel) {
|
|
143
143
|
const promises: Promise<void>[] = [];
|
|
144
|
-
for(let i=0;i<
|
|
144
|
+
for(let i=0;i<txs.length;i++) {
|
|
145
145
|
let tx: {nonce: number, from: string, hash: string};
|
|
146
146
|
if(signer.isBrowserWallet) {
|
|
147
147
|
tx = await signer.account.sendTransaction(txs[i]);
|
|
@@ -156,7 +156,7 @@ export class EVMTransactions extends EVMModule<any> {
|
|
|
156
156
|
}
|
|
157
157
|
if(promises.length>0) await Promise.all(promises);
|
|
158
158
|
} else {
|
|
159
|
-
for(let i=0;i<
|
|
159
|
+
for(let i=0;i<txs.length;i++) {
|
|
160
160
|
let tx: {nonce: number, from: string, hash: string};
|
|
161
161
|
if(signer.isBrowserWallet) {
|
|
162
162
|
tx = await signer.account.sendTransaction(txs[i]);
|