From 3a29c60d2749b5023f5dc44f26a3132e7da25b2c Mon Sep 17 00:00:00 2001 From: Spoorthi <9302666+spoo-bar@users.noreply.github.com> Date: Tue, 26 Dec 2023 16:43:11 +0000 Subject: [PATCH] chore: cleanup filesnames (#85) * updating refs * Rename Account.ts to account.ts * Rename Contract.ts to contract.ts * Rename AccountDataProvider.ts to accountDataProvider.ts * Rename ContractDataProvider.ts to contractDataProvider.ts * Rename CosmwasmHistoryView.ts to cosmwasmHistoryView.ts * Rename CosmwasmTerminal.ts to cosmwasmTerminal.ts * Rename InitializeViewProvider.ts to initializeViewProvider.ts * Rename MigrateViewProvider.ts to migrateViewProvider.ts * Rename QueryProvider.ts to queryProvider.ts * Rename SignProvider.ts to signProvider.ts * Rename TestExplorer.ts to testExplorer.ts * Rename TxProvider.ts to txProvider.ts * Rename WasmVmPanel.ts to wasmVmPanel.ts * Rename API.ts to api.ts * Rename Executer.ts to executer.ts * Rename SmartExecutor.ts to smartExecutor.ts * Rename ExtData.ts to extData.ts * Rename HistoryHandler.ts to historyHandler.ts * Rename ResponseHandler.ts to responseHandler.ts * Rename Workspace.ts to workspace.ts * Rename api.ts to api.ts * Rename executer.ts to executer.ts * Rename smartExecutor.ts to smartExecutor.ts * Rename ethsecp256k1hdwallet.d.ts to ethsecp256k1hdwallet.d.ts * Rename ethsecp256k1hdwallet.js to ethsecp256k1hdwallet.js * Rename wrapwallet.ts to wrapwallet.ts * Rename extData.ts to extData.ts * Rename historyHandler.ts to historyHandler.ts --- src/commands/account.ts | 2 +- src/commands/contract.ts | 2 +- src/commands/cosmwasm.ts | 2 +- src/helpers/{Cosmwasm/API.ts => cosmwasm/api.ts} | 4 ++-- src/helpers/{Cosmwasm/Executer.ts => cosmwasm/executer.ts} | 0 .../{Cosmwasm/SmartExecutor.ts => cosmwasm/smartExecutor.ts} | 2 +- .../{ExtensionData/ExtData.ts => extensionData/extData.ts} | 0 .../HistoryHandler.ts => extensionData/historyHandler.ts} | 2 +- src/helpers/{ResponseHandler.ts => responseHandler.ts} | 2 +- src/helpers/{Sign => sign}/ethsecp256k1hdwallet.d.ts | 0 src/helpers/{Sign => sign}/ethsecp256k1hdwallet.js | 2 +- src/helpers/{Sign => sign}/wrapwallet.ts | 0 src/helpers/{Workspace.ts => workspace.ts} | 2 +- src/models/{Account.ts => account.ts} | 2 +- src/models/{Contract.ts => contract.ts} | 0 src/views/{AccountDataProvider.ts => accountDataProvider.ts} | 0 .../{ContractDataProvider.ts => contractDataProvider.ts} | 0 src/views/{CosmwasmHistoryView.ts => cosmwasmHistoryView.ts} | 2 +- src/views/{CosmwasmTerminal.ts => cosmwasmTerminal.ts} | 2 +- .../{InitializeViewProvider.ts => initializeViewProvider.ts} | 2 +- src/views/{MigrateViewProvider.ts => migrateViewProvider.ts} | 2 +- src/views/{QueryProvider.ts => queryProvider.ts} | 2 +- src/views/{SignProvider.ts => signProvider.ts} | 4 ++-- src/views/{TestExplorer.ts => testExplorer.ts} | 2 +- src/views/{TxProvider.ts => txProvider.ts} | 2 +- src/views/utils.ts | 2 +- src/views/{WasmVmPanel.ts => wasmVmPanel.ts} | 2 +- 27 files changed, 22 insertions(+), 22 deletions(-) rename src/helpers/{Cosmwasm/API.ts => cosmwasm/api.ts} (99%) rename src/helpers/{Cosmwasm/Executer.ts => cosmwasm/executer.ts} (100%) rename src/helpers/{Cosmwasm/SmartExecutor.ts => cosmwasm/smartExecutor.ts} (98%) rename src/helpers/{ExtensionData/ExtData.ts => extensionData/extData.ts} (100%) rename src/helpers/{ExtensionData/HistoryHandler.ts => extensionData/historyHandler.ts} (99%) rename src/helpers/{ResponseHandler.ts => responseHandler.ts} (99%) rename src/helpers/{Sign => sign}/ethsecp256k1hdwallet.d.ts (100%) rename src/helpers/{Sign => sign}/ethsecp256k1hdwallet.js (98%) rename src/helpers/{Sign => sign}/wrapwallet.ts (100%) rename src/helpers/{Workspace.ts => workspace.ts} (99%) rename src/models/{Account.ts => account.ts} (97%) rename src/models/{Contract.ts => contract.ts} (100%) rename src/views/{AccountDataProvider.ts => accountDataProvider.ts} (100%) rename src/views/{ContractDataProvider.ts => contractDataProvider.ts} (100%) rename src/views/{CosmwasmHistoryView.ts => cosmwasmHistoryView.ts} (99%) rename src/views/{CosmwasmTerminal.ts => cosmwasmTerminal.ts} (99%) rename src/views/{InitializeViewProvider.ts => initializeViewProvider.ts} (99%) rename src/views/{MigrateViewProvider.ts => migrateViewProvider.ts} (99%) rename src/views/{QueryProvider.ts => queryProvider.ts} (99%) rename src/views/{SignProvider.ts => signProvider.ts} (98%) rename src/views/{TestExplorer.ts => testExplorer.ts} (99%) rename src/views/{TxProvider.ts => txProvider.ts} (99%) rename src/views/{WasmVmPanel.ts => wasmVmPanel.ts} (99%) diff --git a/src/commands/account.ts b/src/commands/account.ts index 82ef3a3..c7668fa 100644 --- a/src/commands/account.ts +++ b/src/commands/account.ts @@ -1,5 +1,5 @@ import * as vscode from 'vscode'; -import { WrapWallet } from '../helpers/Sign/wrapwallet'; +import { WrapWallet } from '../helpers/sign/wrapwallet'; import { Constants } from '../constants'; import { Cosmwasm, CosmwasmAPI } from '../helpers/cosmwasm/api'; import { Workspace } from '../helpers/workspace'; diff --git a/src/commands/contract.ts b/src/commands/contract.ts index 005fb2a..d8683cb 100644 --- a/src/commands/contract.ts +++ b/src/commands/contract.ts @@ -5,7 +5,7 @@ import { Workspace } from '../helpers/workspace'; import { Contract } from '../models/contract'; import { ContractDataProvider } from '../views/contractDataProvider'; import { CosmwasmTerminal } from '../views/cosmwasmTerminal'; -import { WasmVmPanel } from '../views/WasmVmPanel'; +import { WasmVmPanel } from '../views/wasmVmPanel'; export class ContractCmds { public static async Register(context: vscode.ExtensionContext) { diff --git a/src/commands/cosmwasm.ts b/src/commands/cosmwasm.ts index 7ee31de..4478720 100644 --- a/src/commands/cosmwasm.ts +++ b/src/commands/cosmwasm.ts @@ -2,7 +2,7 @@ import * as vscode from 'vscode'; import { Constants } from '../constants'; import { Executer } from '../helpers/cosmwasm/executer'; import { Workspace } from '../helpers/workspace'; -import { CosmwasmHistoryView } from '../views/CosmwasmHistoryView'; +import { CosmwasmHistoryView } from '../views/cosmwasmHistoryView'; export class CosmwasmCmds { public static async Register(context: vscode.ExtensionContext) { diff --git a/src/helpers/Cosmwasm/API.ts b/src/helpers/cosmwasm/api.ts similarity index 99% rename from src/helpers/Cosmwasm/API.ts rename to src/helpers/cosmwasm/api.ts index ac55fd6..6e44b89 100644 --- a/src/helpers/Cosmwasm/API.ts +++ b/src/helpers/cosmwasm/api.ts @@ -1,6 +1,6 @@ import { CodeDetails, CosmWasmClient } from "@cosmjs/cosmwasm-stargate"; import { SigningCosmWasmClient } from "@cosmjs/cosmwasm-stargate"; -import { WrapWallet } from '../Sign/wrapwallet'; +import { WrapWallet } from '../sign/wrapwallet'; import { GasPrice } from '@cosmjs/stargate'; import { FaucetClient } from "@cosmjs/faucet-client"; import { Contract } from '../../models/contract'; @@ -194,4 +194,4 @@ export class Cosmwasm { }; } } -} \ No newline at end of file +} diff --git a/src/helpers/Cosmwasm/Executer.ts b/src/helpers/cosmwasm/executer.ts similarity index 100% rename from src/helpers/Cosmwasm/Executer.ts rename to src/helpers/cosmwasm/executer.ts diff --git a/src/helpers/Cosmwasm/SmartExecutor.ts b/src/helpers/cosmwasm/smartExecutor.ts similarity index 98% rename from src/helpers/Cosmwasm/SmartExecutor.ts rename to src/helpers/cosmwasm/smartExecutor.ts index 5e453e9..6dac581 100644 --- a/src/helpers/Cosmwasm/SmartExecutor.ts +++ b/src/helpers/cosmwasm/smartExecutor.ts @@ -1,6 +1,6 @@ import { SigningCosmWasmClient } from '@cosmjs/cosmwasm-stargate'; import { GasPrice } from '@cosmjs/stargate'; -import { WrapWallet } from '../Sign/wrapwallet'; +import { WrapWallet } from '../sign/wrapwallet'; import { TextDecoder } from 'util'; import * as vscode from 'vscode'; diff --git a/src/helpers/ExtensionData/ExtData.ts b/src/helpers/extensionData/extData.ts similarity index 100% rename from src/helpers/ExtensionData/ExtData.ts rename to src/helpers/extensionData/extData.ts diff --git a/src/helpers/ExtensionData/HistoryHandler.ts b/src/helpers/extensionData/historyHandler.ts similarity index 99% rename from src/helpers/ExtensionData/HistoryHandler.ts rename to src/helpers/extensionData/historyHandler.ts index eba6526..fb759d5 100644 --- a/src/helpers/ExtensionData/HistoryHandler.ts +++ b/src/helpers/extensionData/historyHandler.ts @@ -50,4 +50,4 @@ export enum Action { Migrate, Initialize, Invalid -} \ No newline at end of file +} diff --git a/src/helpers/ResponseHandler.ts b/src/helpers/responseHandler.ts similarity index 99% rename from src/helpers/ResponseHandler.ts rename to src/helpers/responseHandler.ts index 94b31b7..f3a7e8b 100644 --- a/src/helpers/ResponseHandler.ts +++ b/src/helpers/responseHandler.ts @@ -45,4 +45,4 @@ export class ResponseHandler { private static outputToTerminal(outputText: string) { CosmwasmTerminal.output("\n\n"+ outputText); } -} \ No newline at end of file +} diff --git a/src/helpers/Sign/ethsecp256k1hdwallet.d.ts b/src/helpers/sign/ethsecp256k1hdwallet.d.ts similarity index 100% rename from src/helpers/Sign/ethsecp256k1hdwallet.d.ts rename to src/helpers/sign/ethsecp256k1hdwallet.d.ts diff --git a/src/helpers/Sign/ethsecp256k1hdwallet.js b/src/helpers/sign/ethsecp256k1hdwallet.js similarity index 98% rename from src/helpers/Sign/ethsecp256k1hdwallet.js rename to src/helpers/sign/ethsecp256k1hdwallet.js index e379964..23e8574 100644 --- a/src/helpers/Sign/ethsecp256k1hdwallet.js +++ b/src/helpers/sign/ethsecp256k1hdwallet.js @@ -95,4 +95,4 @@ class EthSecp256k1HdWallet { })); } } -exports.EthSecp256k1HdWallet = EthSecp256k1HdWallet; \ No newline at end of file +exports.EthSecp256k1HdWallet = EthSecp256k1HdWallet; diff --git a/src/helpers/Sign/wrapwallet.ts b/src/helpers/sign/wrapwallet.ts similarity index 100% rename from src/helpers/Sign/wrapwallet.ts rename to src/helpers/sign/wrapwallet.ts diff --git a/src/helpers/Workspace.ts b/src/helpers/workspace.ts similarity index 99% rename from src/helpers/Workspace.ts rename to src/helpers/workspace.ts index 2cb4cc6..70207ca 100644 --- a/src/helpers/Workspace.ts +++ b/src/helpers/workspace.ts @@ -166,4 +166,4 @@ export class ChainConfig { return; } -} \ No newline at end of file +} diff --git a/src/models/Account.ts b/src/models/account.ts similarity index 97% rename from src/models/Account.ts rename to src/models/account.ts index 1e89042..f07af68 100644 --- a/src/models/Account.ts +++ b/src/models/account.ts @@ -1,5 +1,5 @@ import * as vscode from 'vscode'; -import { WrapWallet } from '../helpers/Sign/wrapwallet'; +import { WrapWallet } from '../helpers/sign/wrapwallet'; import { ExtData } from '../helpers/extensionData/extData'; import { CosmwasmAPI } from '../helpers/cosmwasm/api'; diff --git a/src/models/Contract.ts b/src/models/contract.ts similarity index 100% rename from src/models/Contract.ts rename to src/models/contract.ts diff --git a/src/views/AccountDataProvider.ts b/src/views/accountDataProvider.ts similarity index 100% rename from src/views/AccountDataProvider.ts rename to src/views/accountDataProvider.ts diff --git a/src/views/ContractDataProvider.ts b/src/views/contractDataProvider.ts similarity index 100% rename from src/views/ContractDataProvider.ts rename to src/views/contractDataProvider.ts diff --git a/src/views/CosmwasmHistoryView.ts b/src/views/cosmwasmHistoryView.ts similarity index 99% rename from src/views/CosmwasmHistoryView.ts rename to src/views/cosmwasmHistoryView.ts index 55cdf80..4f858ba 100644 --- a/src/views/CosmwasmHistoryView.ts +++ b/src/views/cosmwasmHistoryView.ts @@ -194,4 +194,4 @@ export class CosmwasmHistoryView { } } -// run; codiId + contract label; contract addr; queryType; input data; \ No newline at end of file +// run; codiId + contract label; contract addr; queryType; input data; diff --git a/src/views/CosmwasmTerminal.ts b/src/views/cosmwasmTerminal.ts similarity index 99% rename from src/views/CosmwasmTerminal.ts rename to src/views/cosmwasmTerminal.ts index 3ff4855..bf6b12f 100644 --- a/src/views/CosmwasmTerminal.ts +++ b/src/views/cosmwasmTerminal.ts @@ -76,4 +76,4 @@ export class CosmwasmTerminal { this.terminal.sendText(text, true); } -} \ No newline at end of file +} diff --git a/src/views/InitializeViewProvider.ts b/src/views/initializeViewProvider.ts similarity index 99% rename from src/views/InitializeViewProvider.ts rename to src/views/initializeViewProvider.ts index d0ca8e5..de4a4b9 100644 --- a/src/views/InitializeViewProvider.ts +++ b/src/views/initializeViewProvider.ts @@ -171,4 +171,4 @@ export class InitializeViewProvider implements vscode.WebviewViewProvider { `; } -} \ No newline at end of file +} diff --git a/src/views/MigrateViewProvider.ts b/src/views/migrateViewProvider.ts similarity index 99% rename from src/views/MigrateViewProvider.ts rename to src/views/migrateViewProvider.ts index d607167..372662a 100644 --- a/src/views/MigrateViewProvider.ts +++ b/src/views/migrateViewProvider.ts @@ -121,4 +121,4 @@ export class MigrateViewProvider implements vscode.WebviewViewProvider { `; } -} \ No newline at end of file +} diff --git a/src/views/QueryProvider.ts b/src/views/queryProvider.ts similarity index 99% rename from src/views/QueryProvider.ts rename to src/views/queryProvider.ts index dcc089e..53011d8 100644 --- a/src/views/QueryProvider.ts +++ b/src/views/queryProvider.ts @@ -67,4 +67,4 @@ export class QueryProvider implements vscode.WebviewViewProvider { `; } -} \ No newline at end of file +} diff --git a/src/views/SignProvider.ts b/src/views/signProvider.ts similarity index 98% rename from src/views/SignProvider.ts rename to src/views/signProvider.ts index 5422b39..04dbf21 100644 --- a/src/views/SignProvider.ts +++ b/src/views/signProvider.ts @@ -1,5 +1,5 @@ import * as vscode from 'vscode'; -import { WrapWallet } from '../helpers/Sign/wrapwallet'; +import { WrapWallet } from '../helpers/sign/wrapwallet'; import { StdSignDoc } from "@cosmjs/amino"; import { Workspace } from '../helpers/workspace'; import { ResponseHandler } from '../helpers/responseHandler'; @@ -107,4 +107,4 @@ export class SignProvider implements vscode.WebviewViewProvider { `; } -} \ No newline at end of file +} diff --git a/src/views/TestExplorer.ts b/src/views/testExplorer.ts similarity index 99% rename from src/views/TestExplorer.ts rename to src/views/testExplorer.ts index 908ea33..06509b7 100644 --- a/src/views/TestExplorer.ts +++ b/src/views/testExplorer.ts @@ -137,4 +137,4 @@ export class TestExplorer { run.end(); } -} \ No newline at end of file +} diff --git a/src/views/TxProvider.ts b/src/views/txProvider.ts similarity index 99% rename from src/views/TxProvider.ts rename to src/views/txProvider.ts index 84d0c40..0be3fb9 100644 --- a/src/views/TxProvider.ts +++ b/src/views/txProvider.ts @@ -72,4 +72,4 @@ export class TxProvider implements vscode.WebviewViewProvider { `; } -} \ No newline at end of file +} diff --git a/src/views/utils.ts b/src/views/utils.ts index e1df935..76631c7 100644 --- a/src/views/utils.ts +++ b/src/views/utils.ts @@ -9,7 +9,7 @@ import { SignProvider } from './signProvider'; import { TxProvider } from './txProvider'; import { TextDecoder } from 'util'; import { Account } from '../models/account'; -import { TestExplorer } from './TestExplorer'; +import { TestExplorer } from './testExplorer'; import { CwSimulateKernel } from '../notebook/cwSimulateKernel'; import { Coin } from '@cosmjs/amino'; var toml = require('toml'); diff --git a/src/views/WasmVmPanel.ts b/src/views/wasmVmPanel.ts similarity index 99% rename from src/views/WasmVmPanel.ts rename to src/views/wasmVmPanel.ts index 94fef01..7b09e5a 100644 --- a/src/views/WasmVmPanel.ts +++ b/src/views/wasmVmPanel.ts @@ -279,4 +279,4 @@ class Input { this.id = id; this.data = data; } -} \ No newline at end of file +}