Skip to content

Commit

Permalink
[utils] Rename files to camelCase
Browse files Browse the repository at this point in the history
  • Loading branch information
gregnazario committed Oct 11, 2023
1 parent bea410e commit 8bc7a08
Show file tree
Hide file tree
Showing 13 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/api/aptos_config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// SPDX-License-Identifier: Apache-2.0

import { AptosSettings, ClientConfig } from "../types";
import { NetworkToNodeAPI, NetworkToFaucetAPI, NetworkToIndexerAPI, Network } from "../utils/api-endpoints";
import { NetworkToNodeAPI, NetworkToFaucetAPI, NetworkToIndexerAPI, Network } from "../utils/apiEndpoints";
import { AptosApiType, DEFAULT_NETWORK } from "../utils/const";

/**
Expand Down
2 changes: 1 addition & 1 deletion src/core/account.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { AccountAddress } from "./account_address";
import { Hex } from "./hex";
import { HexInput, SigningScheme } from "../types";
import { PrivateKey, PublicKey, Signature } from "../crypto/asymmetric_crypto";
import { derivePath } from "../utils/hd-key";
import { derivePath } from "../utils/hdKey";
import { AuthenticationKey } from "../crypto/authentication_key";
import { Ed25519PrivateKey, Ed25519PublicKey } from "../crypto/ed25519";
import { Secp256k1PrivateKey, Secp256k1PublicKey } from "../crypto/secp256k1";
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@

export * from "./api";
export * from "./client";
export * from "./utils/api-endpoints";
export * from "./utils/apiEndpoints";
export * from "./bcs";
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import { getInfo } from "../../internal/account";
import { getLedgerInfo } from "../../internal/general";
import { getGasPriceEstimation } from "../../internal/transaction";
import { HexInput, SigningScheme } from "../../types";
import { NetworkToChainId } from "../../utils/api-endpoints";
import { NetworkToChainId } from "../../utils/apiEndpoints";
import { DEFAULT_MAX_GAS_AMOUNT, DEFAULT_TXN_EXP_SEC_FROM_NOW } from "../../utils/const";
import {
AccountAuthenticator,
Expand Down
2 changes: 1 addition & 1 deletion src/types/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright © Aptos Foundation
// SPDX-License-Identifier: Apache-2.0

import { Network } from "../utils/api-endpoints";
import { Network } from "../utils/apiEndpoints";

export * from "./indexer";

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/utils/const.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright © Aptos Foundation
// SPDX-License-Identifier: Apache-2.0

import { Network } from "./api-endpoints";
import { Network } from "./apiEndpoints";

export const DEFAULT_NETWORK = Network.DEVNET;
export const DEFAULT_TXN_TIMEOUT_SEC = 20;
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion tests/e2e/api/account.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// SPDX-License-Identifier: Apache-2.0

import { Aptos, AptosConfig } from "../../../src";
import { Network } from "../../../src/utils/api-endpoints";
import { Network } from "../../../src/utils/apiEndpoints";

// TODO
// add account getTransactions tests once sdk v2 supports faucet (which needs transaction operation support)
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/api/general.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

import { AptosConfig, Aptos } from "../../../src";
import { GraphqlQuery, ViewRequest } from "../../../src/types";
import { Network } from "../../../src/utils/api-endpoints";
import { Network } from "../../../src/utils/apiEndpoints";

describe("general api", () => {
test("it fetches ledger info", async () => {
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/api/transaction.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// SPDX-License-Identifier: Apache-2.0

import { AptosConfig, Aptos } from "../../../src";
import { Network } from "../../../src/utils/api-endpoints";
import { Network } from "../../../src/utils/apiEndpoints";

describe("transaction api", () => {
test("it queries for the network estimated gas price", async () => {
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/aptos_config.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

import { AptosConfig } from "../../src";
import { AptosSettings } from "../../src/types";
import { Network, NetworkToFaucetAPI, NetworkToNodeAPI, NetworkToIndexerAPI } from "../../src/utils/api-endpoints";
import { Network, NetworkToFaucetAPI, NetworkToNodeAPI, NetworkToIndexerAPI } from "../../src/utils/apiEndpoints";
import { AptosApiType } from "../../src/utils/const";

describe("aptos config", () => {
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/transaction_builder.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import {
signTransaction,
} from "../../src/transactions/transaction_builder/transaction_builder";
import { SigningScheme } from "../../src/types";
import { Network } from "../../src/utils/api-endpoints";
import { Network } from "../../src/utils/apiEndpoints";
import { SignedTransaction } from "../../src/transactions/instances/signedTransaction";
import { U64 } from "../../src/bcs/serializable/move-primitives";
import { MoveObject } from "../../src/bcs/serializable/move-structs";
Expand Down

0 comments on commit 8bc7a08

Please sign in to comment.