Skip to content

Commit

Permalink
Fix imports
Browse files Browse the repository at this point in the history
  • Loading branch information
danielailie committed Nov 13, 2024
1 parent 3525c79 commit 681ae55
Show file tree
Hide file tree
Showing 10 changed files with 33 additions and 33 deletions.
14 changes: 7 additions & 7 deletions src/abi/interaction.local.net.spec.ts
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
import BigNumber from "bignumber.js";
import { assert } from "chai";
import { promises } from "fs";
import { QueryRunnerAdapter } from "../adapters/queryRunnerAdapter";
import { SmartContractQueriesController } from "../smartContractQueriesController";
import { loadAbiRegistry, loadTestWallets, prepareDeployment, TestWallet } from "../testutils";
import { ContractController } from "../testutils/contractController";
import { createLocalnetProvider } from "../testutils/networkProviders";
import { Transaction } from "../transaction";
import { TransactionComputer } from "../transactionComputer";
import { TransactionsFactoryConfig } from "../transactionsFactories";
import { SmartContractTransactionsFactory } from "../transactionsFactories/smartContractTransactionsFactory";
import { TransactionWatcher } from "../transactionWatcher";
import { Interaction } from "./interaction";
import { ResultsParser } from "./resultsParser";
import { ReturnCode } from "./returnCode";
import { SmartContract } from "./smartContract";
import { TransactionsFactoryConfig } from "../transactionsFactories/transactionsFactoryConfig";
import { SmartContractTransactionsFactory } from "../transactionsFactories/smartContractTransactionsFactory";
import { promises } from "fs";
import { ResultsParser } from "./resultsParser";
import { TransactionWatcher } from "../transactionWatcher";
import { SmartContractQueriesController } from "../smartContractQueriesController";
import { QueryRunnerAdapter } from "../adapters/queryRunnerAdapter";
import { ManagedDecimalSignedValue, ManagedDecimalValue } from "./typesystem";

describe("test smart contract interactor", function () {
Expand Down
5 changes: 2 additions & 3 deletions src/abi/interaction.spec.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ContractQueryResponse } from "../networkProviders";
import BigNumber from "bignumber.js";
import { assert } from "chai";
import { Address } from "../address";
import { ContractQueryResponse } from "../networkProviders";
import {
loadAbiRegistry,
loadTestWallets,
Expand All @@ -16,8 +16,7 @@ import { ContractFunction } from "./function";
import { Interaction } from "./interaction";
import { ReturnCode } from "./returnCode";
import { SmartContract } from "./smartContract";
import { BigUIntValue, OptionalValue, OptionValue, TokenIdentifierValue, U32Value } from "./typesystem";
import { BytesValue } from "./typesystem/bytes";
import { BigUIntValue, BytesValue, OptionalValue, OptionValue, TokenIdentifierValue, U32Value } from "./typesystem";

describe("test smart contract interactor", function () {
let dummyAddress = new Address("erd1qqqqqqqqqqqqqpgqak8zt22wl2ph4tswtyc39namqx6ysa2sd8ss4xmlj3");
Expand Down
2 changes: 1 addition & 1 deletion src/abi/interactionChecker.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ import { SmartContract } from "./smartContract";
import {
BigUIntType,
BigUIntValue,
BytesValue,
OptionalType,
OptionalValue,
OptionValue,
TokenIdentifierValue,
U32Value,
} from "./typesystem";
import { BytesValue } from "./typesystem/bytes";

describe("integration tests: test checker within interactor", function () {
let dummyAddress = new Address("erd1qqqqqqqqqqqqqpgqak8zt22wl2ph4tswtyc39namqx6ysa2sd8ss4xmlj3");
Expand Down
13 changes: 10 additions & 3 deletions src/abi/smartContract.local.net.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,22 @@ import { prepareDeployment } from "../testutils";
import { createLocalnetProvider } from "../testutils/networkProviders";
import { loadTestWallets, TestWallet } from "../testutils/wallets";
import { TransactionComputer } from "../transactionComputer";
import { TransactionsFactoryConfig } from "../transactionsFactories";
import { SmartContractTransactionsFactory } from "../transactionsFactories/smartContractTransactionsFactory";
import { TransactionsFactoryConfig } from "../transactionsFactories/transactionsFactoryConfig";
import { TransactionWatcher } from "../transactionWatcher";
import { decodeUnsignedNumber } from "./codec";
import { ContractFunction } from "./function";
import { ResultsParser } from "./resultsParser";
import { SmartContract } from "./smartContract";
import { AddressValue, BigUIntValue, OptionalValue, OptionValue, TokenIdentifierValue, U32Value } from "./typesystem";
import { BytesValue } from "./typesystem/bytes";
import {
AddressValue,
BigUIntValue,
BytesValue,
OptionalValue,
OptionValue,
TokenIdentifierValue,
U32Value,
} from "./typesystem";

describe("test on local testnet", function () {
let alice: TestWallet, bob: TestWallet, carol: TestWallet;
Expand Down
6 changes: 3 additions & 3 deletions src/smartContractQueriesController.spec.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { ContractQueryResponse } from "./networkProviders";
import BigNumber from "bignumber.js";
import { assert } from "chai";
import { AbiRegistry, BigUIntValue, BooleanValue, BytesValue, Tuple, U16Value, U64Value } from "./abi";
import { QueryRunnerAdapter } from "./adapters/queryRunnerAdapter";
import { ContractQueryResponse } from "./networkProviders";
import { SmartContractQueriesController } from "./smartContractQueriesController";
import { SmartContractQueryResponse } from "./smartContractQuery";
import { AbiRegistry, BigUIntValue, BooleanValue, BytesValue, Tuple, U16Value, U64Value } from "./smartcontracts";
import { bigIntToBuffer } from "./smartcontracts/codec/utils";
import { MockNetworkProvider, loadAbiRegistry } from "./testutils";
import { bigIntToBuffer } from "./tokenOperations/codec";

describe("test smart contract queries controller", () => {
describe("createQuery", () => {
Expand Down
4 changes: 1 addition & 3 deletions src/testutils/contractController.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import { Interaction, ResultsParser, TypedOutcomeBundle, UntypedOutcomeBundle } from "../abi";
import { ITransactionOnNetwork } from "../interfaceOfNetwork";
import { Logger } from "../logger";
import { Interaction } from "../smartcontracts/interaction";
import { TypedOutcomeBundle, UntypedOutcomeBundle } from "../smartcontracts/interface";
import { ResultsParser } from "../smartcontracts/resultsParser";
import { Transaction } from "../transaction";
import { TransactionWatcher } from "../transactionWatcher";
import { INetworkProvider } from "./networkProviders";
Expand Down
4 changes: 2 additions & 2 deletions src/testutils/mockNetworkProvider.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ContractResultItem, ContractResults, TransactionOnNetwork, TransactionStatus } from "../networkProviders";
import { Query } from "../abi/query";
import { Address } from "../address";
import { AsyncTimer } from "../asyncTimer";
import * as errors from "../errors";
Expand All @@ -11,7 +11,7 @@ import {
ITransactionOnNetwork,
ITransactionStatus,
} from "../interfaceOfNetwork";
import { Query } from "../smartcontracts/query";
import { ContractResultItem, ContractResults, TransactionOnNetwork, TransactionStatus } from "../networkProviders";
import { Transaction, TransactionHash } from "../transaction";
import { createAccountBalance } from "./utils";

Expand Down
4 changes: 1 addition & 3 deletions src/testutils/utils.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
import BigNumber from "bignumber.js";
import * as fs from "fs";
import { PathLike } from "fs";
import { AbiRegistry, Code, SmartContract, TypedValue } from "../abi";
import { IChainID, IGasLimit } from "../interface";
import { Code } from "../smartcontracts/code";
import { SmartContract } from "../smartcontracts/smartContract";
import { AbiRegistry, TypedValue } from "../smartcontracts/typesystem";
import { Transaction } from "../transaction";
import { TransactionWatcher } from "../transactionWatcher";
import { getAxios } from "../utils";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import { assert } from "chai";
import { AbiRegistry, Code, U32Value } from "../abi";
import { Address } from "../address";
import { Err } from "../errors";
import { U32Value } from "../smartcontracts";
import { Code } from "../smartcontracts/code";
import { AbiRegistry } from "../smartcontracts/typesystem/abiRegistry";
import { loadAbiRegistry, loadContractCode } from "../testutils/utils";
import { Token, TokenTransfer } from "../tokens";
import { SmartContractTransactionsFactory } from "./smartContractTransactionsFactory";
Expand Down
10 changes: 5 additions & 5 deletions src/transactionsOutcomeParsers/transactionEventsParser.spec.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
import BigNumber from "bignumber.js";
import { assert } from "chai";
import { AbiRegistry } from "../abi";
import { Address } from "../address";
import { TransactionsConverter } from "../converters/transactionsConverter";
import {
ContractResultItem,
ContractResults,
Expand All @@ -7,11 +12,6 @@ import {
TransactionLogsOnNetwork,
TransactionOnNetwork,
} from "../networkProviders";
import BigNumber from "bignumber.js";
import { assert } from "chai";
import { Address } from "../address";
import { TransactionsConverter } from "../converters/transactionsConverter";
import { AbiRegistry } from "../smartcontracts";
import { loadAbiRegistry } from "../testutils";
import { TransactionEvent, findEventsByFirstTopic } from "./resources";
import { TransactionEventsParser } from "./transactionEventsParser";
Expand Down

0 comments on commit 681ae55

Please sign in to comment.