Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
yarn format and lint
  • Loading branch information
zees-dev committed May 24, 2024
commit 2c8e26e2b79f98a89923bb63f570a0303dce8c3c
2 changes: 1 addition & 1 deletion e2e/hardhat.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import "@nomicfoundation/hardhat-toolbox";
import * as dotenv from "dotenv";
import { utils } from "ethers";
import { HardhatUserConfig, task } from "hardhat/config";
import { HardhatUserConfig } from "hardhat/config";

import { ALITH_PRIVATE_KEY, BOB_PRIVATE_KEY } from "./common";

Expand Down
6 changes: 4 additions & 2 deletions e2e/test/Crowdsale.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,9 @@ describe("Crowdsale pallet", () => {

const txs = [
// fund participants - 50 ROOT per participant to participate
...participants.map((user) => api.tx.sudo.sudo(api.tx.balances.setBalanceDeprecated(user.address, 50_000_000, 0))),
...participants.map((user) =>
api.tx.sudo.sudo(api.tx.balances.setBalanceDeprecated(user.address, 50_000_000, 0)),
),

// fund participants - 2 XRP (GAS) per participant
...participants.map((user) => api.tx.assets.mint(GAS_TOKEN_ID, user.address, 2_000_000)),
Expand Down Expand Up @@ -389,7 +391,7 @@ describe("Crowdsale pallet", () => {
})
.catch((err) => reject(err));
});
expect((dispatchError.toJSON() as any).token).to.equal("FundsUnavailable" );
expect((dispatchError.toJSON() as any).token).to.equal("FundsUnavailable");

// transfer vouchers from one user to another (to make whole)
await finalizeTx(
Expand Down
11 changes: 10 additions & 1 deletion e2e/test/Dex/DexRPC.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,16 @@ import axios from "axios";
import { expect } from "chai";
import { utils } from "ethers";

import { ALITH_PRIVATE_KEY, GAS_TOKEN_ID, NodeProcess, finalizeTx, getNextAssetId, rpcs, startNode, typedefs } from "../../common";
import {
ALITH_PRIVATE_KEY,
GAS_TOKEN_ID,
NodeProcess,
finalizeTx,
getNextAssetId,
rpcs,
startNode,
typedefs,
} from "../../common";

describe("DexRPC", () => {
let node: NodeProcess;
Expand Down
12 changes: 11 additions & 1 deletion e2e/test/XRPL.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,17 @@ import { deriveAddress, sign } from "ripple-keypairs";
import Web3 from "web3";
import * as AccountLib from "xrpl-accountlib";

import { ALITH_PRIVATE_KEY, GAS_TOKEN_ID, NodeProcess, finalizeTx, getNextAssetId, poolAddress, startNode, stringToHex, typedefs } from "../common";
import {
ALITH_PRIVATE_KEY,
GAS_TOKEN_ID,
NodeProcess,
finalizeTx,
getNextAssetId,
poolAddress,
startNode,
stringToHex,
typedefs,
} from "../common";

describe("XRPL pallet", () => {
let node: NodeProcess;
Expand Down