Loadtest use ETH and ERC20
@@ -24,16 +24,24 @@ async function main() {
// await wallet.updateState();
// console.log(wallet.franklinState);
- console.log(await wallet.depositOnchain(wallet.supportedTokens['0'], 20));
+ console.log(await wallet.depositOnchain(wallet.supportedTokens['0'], 10));
+ console.log(await wallet.depositOnchain(wallet.supportedTokens['1'], 20));
await sleep(5000);
- console.log(await wallet.depositOffchain(wallet.supportedTokens['0'], 18, 2));
+ console.log(await wallet.depositOffchain(wallet.supportedTokens['0'], 10, 0));
await wallet.waitPendingTxsExecuted();
- console.log(await wallet.transfer(wallet2.address, wallet.supportedTokens['0'], 15,3));
+ console.log(await wallet.depositOffchain(wallet.supportedTokens['1'], 18, 2));
await wallet.waitPendingTxsExecuted();
- console.log(await wallet2.widthdrawOffchain(wallet2.supportedTokens['0'], 10, 5));
- // console.log(await wallet2.widthdrawOnchain(wallet2.supportedTokens['0'],bigNumberify(1));
+
+ console.log(await wallet.transfer(wallet2.address, wallet.supportedTokens['0'], 9,1));
+ await wallet.waitPendingTxsExecuted();
+ console.log(await wallet.transfer(wallet2.address, wallet.supportedTokens['1'], 15,3));
await wallet.waitPendingTxsExecuted();
+ console.log(await wallet2.widthdrawOffchain(wallet2.supportedTokens['0'], 9, 0));
+ await wallet2.waitPendingTxsExecuted();
+ console.log(await wallet2.widthdrawOffchain(wallet2.supportedTokens['1'], 10, 5));
+ await wallet2.waitPendingTxsExecuted();
+
await wallet2.updateState();
console.log("offchain 2", wallet2.franklinState);
console.log("onchain 2", wallet2.ethState);
