diff --git a/src/chains/filecoin/src/api.ts b/src/chains/filecoin/src/api.ts index 7df9f14176..741964c5c9 100644 --- a/src/chains/filecoin/src/api.ts +++ b/src/chains/filecoin/src/api.ts @@ -4,8 +4,8 @@ import Blockchain from "./blockchain"; import { StorageProposal, SerializedStorageProposal -} from "./things/storageproposal"; -import { SerializedRootCID, RootCID } from "./things/rootcid"; +} from "./things/storage-proposal"; +import { SerializedRootCID, RootCID } from "./things/root-cid"; import { SerializedDeal } from "./things/deal"; import { SerializedTipset } from "./things/tipset"; import { SerializedAddress } from "./things/address"; @@ -13,7 +13,7 @@ import { SerializedMiner } from "./things/miner"; import { SerializedRetrievalOffer, RetrievalOffer -} from "./things/retrievaloffer"; +} from "./things/retrieval-offer"; const _blockchain = Symbol("blockchain"); diff --git a/src/chains/filecoin/src/blockchain.ts b/src/chains/filecoin/src/blockchain.ts index efaea60f37..699d89eaab 100644 --- a/src/chains/filecoin/src/blockchain.ts +++ b/src/chains/filecoin/src/blockchain.ts @@ -1,18 +1,18 @@ import { Tipset } from "./things/tipset"; import { Block } from "./things/block"; import { CID } from "./things/cid"; -import { RootCID } from "./things/rootcid"; +import { RootCID } from "./things/root-cid"; import { utils } from "@ganache/utils"; import Emittery from "emittery"; import { Miner } from "./things/miner"; import { Address } from "./things/address"; import { Deal } from "./things/deal"; import Balance from "./things/balance"; -import { StorageProposal } from "./things/storageproposal"; -import { DealState } from "./dealstates"; -import IPFSServer, { IPFSNode } from "./ipfsserver"; +import { StorageProposal } from "./things/storage-proposal"; +import { DealState } from "./deal-state"; +import IPFSServer, { IPFSNode } from "./ipfs-server"; import dagCBOR from "ipld-dag-cbor"; -import { RetrievalOffer } from "./things/retrievaloffer"; +import { RetrievalOffer } from "./things/retrieval-offer"; import seedrandom from "seedrandom"; import BN from "bn.js"; import { FilecoinInternalOptions } from "./options"; diff --git a/src/chains/filecoin/src/dealstates.ts b/src/chains/filecoin/src/deal-state.ts similarity index 100% rename from src/chains/filecoin/src/dealstates.ts rename to src/chains/filecoin/src/deal-state.ts diff --git a/src/chains/filecoin/src/ipfsserver.ts b/src/chains/filecoin/src/ipfs-server.ts similarity index 100% rename from src/chains/filecoin/src/ipfsserver.ts rename to src/chains/filecoin/src/ipfs-server.ts diff --git a/src/chains/filecoin/src/things/address.ts b/src/chains/filecoin/src/things/address.ts index 7ec858ed0d..3c86387b3c 100644 --- a/src/chains/filecoin/src/things/address.ts +++ b/src/chains/filecoin/src/things/address.ts @@ -1,8 +1,8 @@ -import { SerializableLiteral } from "./serializableliteral"; +import { SerializableLiteral } from "./serializable-literal"; import blake from "blakejs"; import * as bls from "noble-bls12-381"; import base32 from "base32-encoding"; -import { StorageProposal } from "./storageproposal"; +import { StorageProposal } from "./storage-proposal"; import cbor from "borc"; interface AddressConfig { diff --git a/src/chains/filecoin/src/things/balance.ts b/src/chains/filecoin/src/things/balance.ts index 0d82030337..f3580ac13c 100644 --- a/src/chains/filecoin/src/things/balance.ts +++ b/src/chains/filecoin/src/things/balance.ts @@ -1,4 +1,4 @@ -import { SerializableLiteral } from "./serializableliteral"; +import { SerializableLiteral } from "./serializable-literal"; import BN from "bn.js"; interface BalanceConfig { diff --git a/src/chains/filecoin/src/things/beaconentry.ts b/src/chains/filecoin/src/things/beacon-entry.ts similarity index 96% rename from src/chains/filecoin/src/things/beaconentry.ts rename to src/chains/filecoin/src/things/beacon-entry.ts index e6b2440a0f..4181c0054f 100644 --- a/src/chains/filecoin/src/things/beaconentry.ts +++ b/src/chains/filecoin/src/things/beacon-entry.ts @@ -3,7 +3,7 @@ import { SerializedObject, DeserializedObject, Definitions -} from "./serializableobject"; +} from "./serializable-object"; interface BeaconEntryConfig { properties: { diff --git a/src/chains/filecoin/src/things/blocksignature.ts b/src/chains/filecoin/src/things/block-signature.ts similarity index 96% rename from src/chains/filecoin/src/things/blocksignature.ts rename to src/chains/filecoin/src/things/block-signature.ts index 0ac20f0348..4f9c2de567 100644 --- a/src/chains/filecoin/src/things/blocksignature.ts +++ b/src/chains/filecoin/src/things/block-signature.ts @@ -3,7 +3,7 @@ import { DeserializedObject, Definitions, SerializedObject -} from "./serializableobject"; +} from "./serializable-object"; interface BlockSignatureConfig { properties: { diff --git a/src/chains/filecoin/src/things/block.ts b/src/chains/filecoin/src/things/block.ts index 0f05792027..558b987851 100644 --- a/src/chains/filecoin/src/things/block.ts +++ b/src/chains/filecoin/src/things/block.ts @@ -1,16 +1,16 @@ import { Ticket, SerializedTicket } from "./ticket"; -import { ElectionProof, SerializedElectionProof } from "./electionproof"; -import { BeaconEntry, SerializedBeaconEntry } from "./beaconentry"; -import { BLSAggregate, SerializedBLSAggregate } from "./blsaggregate"; -import { BlockSignature, SerializedBlockSignature } from "./blocksignature"; +import { ElectionProof, SerializedElectionProof } from "./election-proof"; +import { BeaconEntry, SerializedBeaconEntry } from "./beacon-entry"; +import { BLSAggregate, SerializedBLSAggregate } from "./bls-aggregate"; +import { BlockSignature, SerializedBlockSignature } from "./block-signature"; import { SerializableObject, DeserializedObject, Definitions, SerializedObject -} from "./serializableobject"; -import { WinPoStProof, SerializedWinPoStProof } from "./winpostproof"; -import { RootCID, SerializedRootCID } from "./rootcid"; +} from "./serializable-object"; +import { WinPoStProof, SerializedWinPoStProof } from "./win-post-proof"; +import { RootCID, SerializedRootCID } from "./root-cid"; import { Miner } from "./miner"; import { CID } from "./cid"; import cbor from "borc"; diff --git a/src/chains/filecoin/src/things/blsaggregate.ts b/src/chains/filecoin/src/things/bls-aggregate.ts similarity index 96% rename from src/chains/filecoin/src/things/blsaggregate.ts rename to src/chains/filecoin/src/things/bls-aggregate.ts index 902a353d62..d8a62a024d 100644 --- a/src/chains/filecoin/src/things/blsaggregate.ts +++ b/src/chains/filecoin/src/things/bls-aggregate.ts @@ -3,7 +3,7 @@ import { DeserializedObject, Definitions, SerializedObject -} from "./serializableobject"; +} from "./serializable-object"; interface BLSAggregateConfig { properties: { diff --git a/src/chains/filecoin/src/things/cid.ts b/src/chains/filecoin/src/things/cid.ts index 44d2db5e17..d3fe62bb53 100644 --- a/src/chains/filecoin/src/things/cid.ts +++ b/src/chains/filecoin/src/things/cid.ts @@ -1,4 +1,4 @@ -import { SerializableLiteral } from "./serializableliteral"; +import { SerializableLiteral } from "./serializable-literal"; interface CIDConfig { type: string; diff --git a/src/chains/filecoin/src/things/deal.ts b/src/chains/filecoin/src/things/deal.ts index 9b73e454db..ad9cb095be 100644 --- a/src/chains/filecoin/src/things/deal.ts +++ b/src/chains/filecoin/src/things/deal.ts @@ -1,12 +1,12 @@ -import { RootCID, SerializedRootCID } from "./rootcid"; -import { DealState, nextSuccessfulState } from "../dealstates"; +import { RootCID, SerializedRootCID } from "./root-cid"; +import { DealState, nextSuccessfulState } from "../deal-state"; import { Miner, SerializedMiner } from "./miner"; import { SerializableObject, DeserializedObject, Definitions, SerializedObject -} from "./serializableobject"; +} from "./serializable-object"; type DealConfig = { properties: { diff --git a/src/chains/filecoin/src/things/electionproof.ts b/src/chains/filecoin/src/things/election-proof.ts similarity index 96% rename from src/chains/filecoin/src/things/electionproof.ts rename to src/chains/filecoin/src/things/election-proof.ts index 52721b1c53..517d5416de 100644 --- a/src/chains/filecoin/src/things/electionproof.ts +++ b/src/chains/filecoin/src/things/election-proof.ts @@ -3,7 +3,7 @@ import { DeserializedObject, SerializedObject, Definitions -} from "./serializableobject"; +} from "./serializable-object"; interface ElectionProofConfig { properties: { diff --git a/src/chains/filecoin/src/things/miner.ts b/src/chains/filecoin/src/things/miner.ts index d2a5cec765..b1598e7535 100644 --- a/src/chains/filecoin/src/things/miner.ts +++ b/src/chains/filecoin/src/things/miner.ts @@ -1,4 +1,4 @@ -import { SerializableLiteral } from "./serializableliteral"; +import { SerializableLiteral } from "./serializable-literal"; interface MinerConfig { type: string; diff --git a/src/chains/filecoin/src/things/retrievaloffer.ts b/src/chains/filecoin/src/things/retrieval-offer.ts similarity index 96% rename from src/chains/filecoin/src/things/retrievaloffer.ts rename to src/chains/filecoin/src/things/retrieval-offer.ts index a547d3fbdc..4867652952 100644 --- a/src/chains/filecoin/src/things/retrievaloffer.ts +++ b/src/chains/filecoin/src/things/retrieval-offer.ts @@ -1,11 +1,11 @@ -import { RootCID, SerializedRootCID } from "./rootcid"; +import { RootCID, SerializedRootCID } from "./root-cid"; import { Miner, SerializedMiner } from "./miner"; import { SerializableObject, SerializedObject, DeserializedObject, Definitions -} from "./serializableobject"; +} from "./serializable-object"; type RetrievalOfferConfig = { properties: { diff --git a/src/chains/filecoin/src/things/rootcid.ts b/src/chains/filecoin/src/things/root-cid.ts similarity index 95% rename from src/chains/filecoin/src/things/rootcid.ts rename to src/chains/filecoin/src/things/root-cid.ts index 56bf1379d2..3b8309bb19 100644 --- a/src/chains/filecoin/src/things/rootcid.ts +++ b/src/chains/filecoin/src/things/root-cid.ts @@ -4,7 +4,7 @@ import { DeserializedObject, Definitions, SerializedObject -} from "./serializableobject"; +} from "./serializable-object"; interface RootCIDConfig { properties: { diff --git a/src/chains/filecoin/src/things/serializableliteral.ts b/src/chains/filecoin/src/things/serializable-literal.ts similarity index 96% rename from src/chains/filecoin/src/things/serializableliteral.ts rename to src/chains/filecoin/src/things/serializable-literal.ts index 788b8487f6..08aa5b0129 100644 --- a/src/chains/filecoin/src/things/serializableliteral.ts +++ b/src/chains/filecoin/src/things/serializable-literal.ts @@ -1,4 +1,4 @@ -import { Serializable } from "./serializableobject"; +import { Serializable } from "./serializable-object"; import { config } from "yargs"; type BaseConfig = { diff --git a/src/chains/filecoin/src/things/serializableobject.ts b/src/chains/filecoin/src/things/serializable-object.ts similarity index 98% rename from src/chains/filecoin/src/things/serializableobject.ts rename to src/chains/filecoin/src/things/serializable-object.ts index 1345b49194..88567c44bf 100644 --- a/src/chains/filecoin/src/things/serializableobject.ts +++ b/src/chains/filecoin/src/things/serializable-object.ts @@ -1,4 +1,4 @@ -import { SerializableLiteral } from "./serializableliteral"; +import { SerializableLiteral } from "./serializable-literal"; import deepEqual from "deep-equal"; // provides shape diff --git a/src/chains/filecoin/src/things/storageproposaldata.ts b/src/chains/filecoin/src/things/storage-proposal-data.ts similarity index 94% rename from src/chains/filecoin/src/things/storageproposaldata.ts rename to src/chains/filecoin/src/things/storage-proposal-data.ts index 80e8a3f9c5..84561d3768 100644 --- a/src/chains/filecoin/src/things/storageproposaldata.ts +++ b/src/chains/filecoin/src/things/storage-proposal-data.ts @@ -1,10 +1,10 @@ -import { RootCID, SerializedRootCID } from "./rootcid"; +import { RootCID, SerializedRootCID } from "./root-cid"; import { SerializableObject, SerializedObject, DeserializedObject, Definitions -} from "./serializableobject"; +} from "./serializable-object"; type StorageProposalDataConfig = { properties: { diff --git a/src/chains/filecoin/src/things/storageproposal.ts b/src/chains/filecoin/src/things/storage-proposal.ts similarity index 96% rename from src/chains/filecoin/src/things/storageproposal.ts rename to src/chains/filecoin/src/things/storage-proposal.ts index 8158fedf50..a98ce66104 100644 --- a/src/chains/filecoin/src/things/storageproposal.ts +++ b/src/chains/filecoin/src/things/storage-proposal.ts @@ -1,7 +1,7 @@ import { StorageProposalData, SerializedStorageProposalData -} from "./storageproposaldata"; +} from "./storage-proposal-data"; import { Address, SerializedAddress } from "./address"; import { Miner, SerializedMiner } from "./miner"; import { @@ -9,7 +9,7 @@ import { DeserializedObject, Definitions, SerializedObject -} from "./serializableobject"; +} from "./serializable-object"; type StorageProposalConfig = { properties: { diff --git a/src/chains/filecoin/src/things/ticket.ts b/src/chains/filecoin/src/things/ticket.ts index 2942a36eeb..9a5ca947a6 100644 --- a/src/chains/filecoin/src/things/ticket.ts +++ b/src/chains/filecoin/src/things/ticket.ts @@ -3,7 +3,7 @@ import { DeserializedObject, SerializedObject, Definitions -} from "./serializableobject"; +} from "./serializable-object"; interface TicketConfig { properties: { diff --git a/src/chains/filecoin/src/things/tipset.ts b/src/chains/filecoin/src/things/tipset.ts index 4a5d8e8c67..b50d5bf60b 100644 --- a/src/chains/filecoin/src/things/tipset.ts +++ b/src/chains/filecoin/src/things/tipset.ts @@ -4,8 +4,8 @@ import { DeserializedObject, Definitions, SerializedObject -} from "./serializableobject"; -import { RootCID, SerializedRootCID } from "./rootcid"; +} from "./serializable-object"; +import { RootCID, SerializedRootCID } from "./root-cid"; interface TipsetConfig { properties: { diff --git a/src/chains/filecoin/src/things/winpostproof.ts b/src/chains/filecoin/src/things/win-post-proof.ts similarity index 96% rename from src/chains/filecoin/src/things/winpostproof.ts rename to src/chains/filecoin/src/things/win-post-proof.ts index 8bc1f9a0db..4916e8d601 100644 --- a/src/chains/filecoin/src/things/winpostproof.ts +++ b/src/chains/filecoin/src/things/win-post-proof.ts @@ -3,7 +3,7 @@ import { DeserializedObject, SerializedObject, Definitions -} from "./serializableobject"; +} from "./serializable-object"; interface WinPoStProofConfig { properties: { diff --git a/src/chains/filecoin/tests/api/filecoin/filecoin.test.ts b/src/chains/filecoin/tests/api/filecoin/filecoin.test.ts index 30c25e48cd..cdcc0813e4 100644 --- a/src/chains/filecoin/tests/api/filecoin/filecoin.test.ts +++ b/src/chains/filecoin/tests/api/filecoin/filecoin.test.ts @@ -5,11 +5,11 @@ import getIpfsClient from "../../helpers/getIpfsClient"; import { IPFSClient } from "ipfs-http-client"; import { CID } from "../../../src/things/cid"; import { Address } from "../../../src/things/address"; -import { StorageProposal } from "../../../src/things/storageproposal"; -import { RootCID } from "../../../src/things/rootcid"; -import { StorageProposalData } from "../../../src/things/storageproposaldata"; +import { StorageProposal } from "../../../src/things/storage-proposal"; +import { RootCID } from "../../../src/things/root-cid"; +import { StorageProposalData } from "../../../src/things/storage-proposal-data"; import { SerializedDeal } from "../../../src/things/deal"; -import { SerializedRetrievalOffer } from "../../../src/things/retrievaloffer"; +import { SerializedRetrievalOffer } from "../../../src/things/retrieval-offer"; import BN from "bn.js"; const LotusRPC = require("@filecoin-shipyard/lotus-client-rpc").LotusRPC; diff --git a/src/chains/filecoin/tests/blockchain/blockchain.test.ts b/src/chains/filecoin/tests/blockchain/blockchain.test.ts index 927001dd67..3481d736db 100644 --- a/src/chains/filecoin/tests/blockchain/blockchain.test.ts +++ b/src/chains/filecoin/tests/blockchain/blockchain.test.ts @@ -2,10 +2,10 @@ import assert from "assert"; import Blockchain from "../../src/blockchain"; import { Tipset } from "../../src/things/tipset"; import IpfsHttpClient from "ipfs-http-client"; -import { StorageProposal } from "../../src/things/storageproposal"; -import { StorageProposalData } from "../../src/things/storageproposaldata"; -import { RootCID } from "../../src/things/rootcid"; -import { DealState } from "../../src/dealstates"; +import { StorageProposal } from "../../src/things/storage-proposal"; +import { StorageProposalData } from "../../src/things/storage-proposal-data"; +import { RootCID } from "../../src/things/root-cid"; +import { DealState } from "../../src/deal-state"; import { FilecoinOptionsConfig } from "../../src/options/index"; diff --git a/src/chains/filecoin/tests/things/things.test.ts b/src/chains/filecoin/tests/things/things.test.ts index 1a675b60c9..75a3207142 100644 --- a/src/chains/filecoin/tests/things/things.test.ts +++ b/src/chains/filecoin/tests/things/things.test.ts @@ -1,5 +1,5 @@ import assert from "assert"; -import { RootCID } from "../../src/things/rootcid"; +import { RootCID } from "../../src/things/root-cid"; import { CID } from "../../src/things/cid"; import { Tipset } from "../../src/things/tipset"; import { Block } from "../../src/things/block";