Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Commit

Permalink
chore: update filecoin filenames to be kebab case (#684)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeseese committed Feb 5, 2021
1 parent 9f66063 commit 5ad59d6
Show file tree
Hide file tree
Showing 26 changed files with 49 additions and 49 deletions.
6 changes: 3 additions & 3 deletions src/chains/filecoin/src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@ 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";
import { SerializedMiner } from "./things/miner";
import {
SerializedRetrievalOffer,
RetrievalOffer
} from "./things/retrievaloffer";
} from "./things/retrieval-offer";

const _blockchain = Symbol("blockchain");

Expand Down
10 changes: 5 additions & 5 deletions src/chains/filecoin/src/blockchain.ts
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
4 changes: 2 additions & 2 deletions src/chains/filecoin/src/things/address.ts
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion src/chains/filecoin/src/things/balance.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { SerializableLiteral } from "./serializableliteral";
import { SerializableLiteral } from "./serializable-literal";
import BN from "bn.js";

interface BalanceConfig {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {
SerializedObject,
DeserializedObject,
Definitions
} from "./serializableobject";
} from "./serializable-object";

interface BeaconEntryConfig {
properties: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {
DeserializedObject,
Definitions,
SerializedObject
} from "./serializableobject";
} from "./serializable-object";

interface BlockSignatureConfig {
properties: {
Expand Down
14 changes: 7 additions & 7 deletions src/chains/filecoin/src/things/block.ts
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {
DeserializedObject,
Definitions,
SerializedObject
} from "./serializableobject";
} from "./serializable-object";

interface BLSAggregateConfig {
properties: {
Expand Down
2 changes: 1 addition & 1 deletion src/chains/filecoin/src/things/cid.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { SerializableLiteral } from "./serializableliteral";
import { SerializableLiteral } from "./serializable-literal";

interface CIDConfig {
type: string;
Expand Down
6 changes: 3 additions & 3 deletions src/chains/filecoin/src/things/deal.ts
Original file line number Diff line number Diff line change
@@ -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: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {
DeserializedObject,
SerializedObject,
Definitions
} from "./serializableobject";
} from "./serializable-object";

interface ElectionProofConfig {
properties: {
Expand Down
2 changes: 1 addition & 1 deletion src/chains/filecoin/src/things/miner.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { SerializableLiteral } from "./serializableliteral";
import { SerializableLiteral } from "./serializable-literal";

interface MinerConfig {
type: string;
Expand Down
Original file line number Diff line number Diff line change
@@ -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: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
DeserializedObject,
Definitions,
SerializedObject
} from "./serializableobject";
} from "./serializable-object";

interface RootCIDConfig {
properties: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Serializable } from "./serializableobject";
import { Serializable } from "./serializable-object";
import { config } from "yargs";

type BaseConfig = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { SerializableLiteral } from "./serializableliteral";
import { SerializableLiteral } from "./serializable-literal";
import deepEqual from "deep-equal";

// provides shape
Expand Down
Original file line number Diff line number Diff line change
@@ -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: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import {
StorageProposalData,
SerializedStorageProposalData
} from "./storageproposaldata";
} from "./storage-proposal-data";
import { Address, SerializedAddress } from "./address";
import { Miner, SerializedMiner } from "./miner";
import {
SerializableObject,
DeserializedObject,
Definitions,
SerializedObject
} from "./serializableobject";
} from "./serializable-object";

type StorageProposalConfig = {
properties: {
Expand Down
2 changes: 1 addition & 1 deletion src/chains/filecoin/src/things/ticket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {
DeserializedObject,
SerializedObject,
Definitions
} from "./serializableobject";
} from "./serializable-object";

interface TicketConfig {
properties: {
Expand Down
4 changes: 2 additions & 2 deletions src/chains/filecoin/src/things/tipset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {
DeserializedObject,
SerializedObject,
Definitions
} from "./serializableobject";
} from "./serializable-object";

interface WinPoStProofConfig {
properties: {
Expand Down
8 changes: 4 additions & 4 deletions src/chains/filecoin/tests/api/filecoin/filecoin.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
8 changes: 4 additions & 4 deletions src/chains/filecoin/tests/blockchain/blockchain.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down
2 changes: 1 addition & 1 deletion src/chains/filecoin/tests/things/things.test.ts
Original file line number Diff line number Diff line change
@@ -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";
Expand Down

0 comments on commit 5ad59d6

Please sign in to comment.