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

Commit

Permalink
feat: add filecoin chain
Browse files Browse the repository at this point in the history
  • Loading branch information
tcoulter authored and mikeseese committed Feb 5, 2021
1 parent 094f02b commit 9f66063
Show file tree
Hide file tree
Showing 52 changed files with 12,289 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/chains/ethereum/ethereum/src/connector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ export type ProviderOptions = EthereumProviderOptions | EthereumLegacyOptions;
export type Provider = EthereumProvider;
export const Provider = EthereumProvider;

export type ProviderOptions = EthereumProviderOptions | EthereumLegacyOptions;
export type Provider = EthereumProvider;
export const Provider = EthereumProvider;
export const FlavorName = "ethereum" as const;

function isHttp(
connection: HttpRequest | WebSocket
): connection is HttpRequest {
Expand Down
3 changes: 3 additions & 0 deletions src/chains/filecoin/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# @ganache/filecoin

> TODO: description
14 changes: 14 additions & 0 deletions src/chains/filecoin/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
version: "3"
services:
ipfs:
image: ipfs/go-ipfs:latest
environment:
- IPFS_PROFILE=server
- IPFS_PATH=/ipfsdata
volumes:
- ./data/ipfs:/ipfsdata
ports:
- "4001:4001"
- "127.0.0.1:8080:8080"
- "127.0.0.1:8081:8081"
- "127.0.0.1:5001:5001"
9 changes: 9 additions & 0 deletions src/chains/filecoin/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/*!
* @ganache/filecoin
*
* @copyright 2019-2020 Truffle Blockchain Group
* @author Tim Coulter
* @license MIT
*/

export * from "./src/connector";
Loading

0 comments on commit 9f66063

Please sign in to comment.