Skip to content

Commit

Permalink
chore: rename check file
Browse files Browse the repository at this point in the history
  • Loading branch information
ipapandinas committed Mar 14, 2024
1 parent 3588355 commit 01cd1f9
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/commands/clear/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { FileError } from "../../lib/errors.js";
import fs from "fs-extra";
import path from "node:path";
import { Args, Flags } from "@oclif/core";
import { ensureContractNameOrAllFlagIsSet } from "../../lib/ensureChecks.js";
import { ensureContractNameOrAllFlagIsSet } from "../../lib/checks.js";

interface Folder {
name: string,
Expand Down
2 changes: 1 addition & 1 deletion src/commands/contract/compile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
import { InputError, ProcessError } from "../../lib/errors.js";
import { BuildMode, SwankyConfig } from "../../index.js";
import { ConfigBuilder } from "../../lib/config-builder.js";
import { ensureContractNameOrAllFlagIsSet, ensureContractPathExists } from "../../lib/ensureChecks.js";
import { ensureContractNameOrAllFlagIsSet, ensureContractPathExists } from "../../lib/checks.js";

export class CompileContract extends SwankyCommand<typeof CompileContract> {
static description = "Compile the smart contract(s) in your contracts directory";
Expand Down
2 changes: 1 addition & 1 deletion src/commands/contract/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import chalk from "chalk";
import { SwankyCommand } from "../../lib/swankyCommand.js";
import { ApiError, ProcessError } from "../../lib/errors.js";
import { ConfigBuilder } from "../../lib/config-builder.js";
import { contractFromRecord, ensureArtifactsExist, ensureDevAccountNotInProduction } from "../../lib/ensureChecks.js";
import { contractFromRecord, ensureArtifactsExist, ensureDevAccountNotInProduction } from "../../lib/checks.js";

export class DeployContract extends SwankyCommand<typeof DeployContract> {
static description = "Deploy contract to a running node";
Expand Down
2 changes: 1 addition & 1 deletion src/commands/contract/explain.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { SwankyCommand } from "../../lib/swankyCommand.js";
import { Args } from "@oclif/core";
import { findContractRecord } from "../../lib/index.js";
import { contractFromRecord, ensureArtifactsExist } from "../../lib/ensureChecks.js";
import { contractFromRecord, ensureArtifactsExist } from "../../lib/checks.js";

export class ExplainContract extends SwankyCommand<typeof ExplainContract> {
static description = "Explain contract messages based on the contracts' metadata";
Expand Down
2 changes: 1 addition & 1 deletion src/commands/contract/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
ensureArtifactsExist,
ensureContractNameOrAllFlagIsSet,
ensureTypedContractExists,
} from "../../lib/ensureChecks.js";
} from "../../lib/checks.js";

declare global {
var contractTypesPath: string; // eslint-disable-line no-var
Expand Down
2 changes: 1 addition & 1 deletion src/commands/contract/verify.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { InputError, ProcessError } from "../../lib/errors.js";
import { spawn } from "node:child_process";
import { ConfigBuilder } from "../../lib/config-builder.js";
import { BuildData, SwankyConfig } from "../../index.js";
import { ensureContractNameOrAllFlagIsSet, ensureContractPathExists } from "../../lib/ensureChecks.js";
import { ensureContractNameOrAllFlagIsSet, ensureContractPathExists } from "../../lib/checks.js";

export class VerifyContract extends SwankyCommand<typeof VerifyContract> {
static description = "Verify the smart contract(s) in your contracts directory";
Expand Down
2 changes: 1 addition & 1 deletion src/commands/generate/tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { existsSync } from "node:fs";
import inquirer from "inquirer";
import { kebabCase, pascalCase } from "change-case";
import { TestType } from "../../index.js";
import { contractFromRecord, ensureArtifactsExist } from "../../lib/ensureChecks.js";
import { contractFromRecord, ensureArtifactsExist } from "../../lib/checks.js";

export class GenerateTests extends SwankyCommand<typeof GenerateTests> {
static description = "Generate test files for the specified contract";
Expand Down
2 changes: 1 addition & 1 deletion src/commands/generate/types.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Args } from "@oclif/core";
import { findContractRecord, generateTypes } from "../../lib/index.js";
import { SwankyCommand } from "../../lib/swankyCommand.js";
import { contractFromRecord, ensureArtifactsExist } from "../../lib/ensureChecks.js";
import { contractFromRecord, ensureArtifactsExist } from "../../lib/checks.js";

export class GenerateTypes extends SwankyCommand<typeof GenerateTypes> {
static description = "Generate types from compiled contract metadata";
Expand Down
File renamed without changes.
5 changes: 2 additions & 3 deletions src/lib/contractCall.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,8 @@ import inquirer from "inquirer";
import chalk from "chalk";
import { SwankyCommand } from "./swankyCommand.js";
import { cryptoWaitReady } from "@polkadot/util-crypto/crypto";
import { Contract } from "./contract.js";
import { ConfigError, FileError, NetworkError } from "./errors.js";
import { contractFromRecord, ensureArtifactsExist, ensureDevAccountNotInProduction } from "./ensureChecks.js";
import { NetworkError } from "./errors.js";
import { contractFromRecord, ensureArtifactsExist, ensureDevAccountNotInProduction } from "./checks.js";

export type JoinedFlagsType<T extends typeof Command> = Interfaces.InferredFlags<
(typeof ContractCall)["baseFlags"] & T["flags"]
Expand Down

0 comments on commit 01cd1f9

Please sign in to comment.