Learn

Truffle and Ganache, Now Filecoin Flavored

img-ads

Filecoin was created by Protocol Labs, the same organization who created and maintains IPFS. Filecoin extends the IPFS vision by creating an open-source decentralized storage network that provides incentives to keep data stored and pinned on IPFS. Filecoin is powerful because it provides a decentralized storage solution without having to rely on larger centralized solutions. Additionally when it comes to building dapps on other decentralized networks, like Ethereum, it provides the groundwork for a much needed storage and authenticity solution to full decentralization. 

We’re excited about Filecoin because it allows developers to build applications with 100% uptime. Today we are introducing two new integrations that support Filecoin and IPFS capabilities within Truffle and Ganache. 

Truffle Preserve to Buckets

Back in July, we announced a first look at using the truffle preserve command in an experimental release. Today, we are releasing truffle preserve as part of the main, stable version of Truffle! To use truffle preserve, simply specify the files you want to preserve on the command line, and choose between the --filecoin, --ipfs, or --buckets recipes. The filecoin recipe uses the ipfs recipe under the hood, but if you need to, you can choose to use the ipfs recipe without filecoin. You can learn more about truffle preserve in this blog post

In addition, we’re also introducing a new recipe for truffle preserve which allows developers to save data to Textile Buckets: truffle preserve --buckets

Try out any of these three recipes today by downloading the latest version of Truffle!

Filecoin-flavored Ganache

Ganache has helped many developers create Ethereum dapps by providing a “one-click” experience; Ganache automates the difficult parts of running a decentralized network to give the developer a personal environment to tinker with and develop applications. It speeds up development by not having to wait for decentralized test networks to confirm transactions, and it provides a controlled, configurable environment to reproduce different test scenarios.

Prior to Ganache, if you wanted to run a development network for Filecoin you would need to run the lotus-devnet, which requires compiling native resources or running a public Docker image. This is still a great resource to emulate the Filecoin network as close as possible as it includes a real Lotus node, but Ganache now provides a lightweight alternative for getting started with Filecoin app development.

With the Filecoin flavor, Ganache now provides you both an IPFS server (used to store files) as well as a Lotus simulator (used to maintain file storage, simulate a storage provider, and availability) to add the necessary Filecoin methods to get started with Filecoin development. Like the Ethereum flavor of Ganache, we’ve made the process as simple as possible for you to get started with Filecoin quickly.

What can I do with Filecoin-flavored Ganache?

With Filecoin-flavored Ganache, you can do most of the development tasks for building a Filecoin application:

  • Store and retrieve files from a personal IPFS node that Ganache starts for you
  • Create a storage deal and see it progress through different states
  • Test how your application handles storage deal expiration
  • Transfer Filecoin’s token FIL between accounts
  • Interact with the various Filecoin wallet methods

You can find a full list of supported RPC methods on GitHub.

How do I get started?

If you’re looking to get started with Ganache, head over to the documentation to see Get Started guides whether you’re using the NodeJS library, CLI, or graphical UI version.

Need an example on how to build a Filecoin application? Check out the Filecoin Truffle Box to see an example to mint NFTs and provide a decentralized art gallery application.

We’re finalizing the Truffle documentation in the coming days, so stay tuned for those! When they’re live, you’ll be able to find them at our main documentation page and click on the Filecoin link.

Where can I get help?

We’re extremely excited to be working with the Filecoin community to add support for Filecoin into Truffle Suite’s tooling. If you have questions about our Filecoin integration or our plan for the future, join Truffle’s Discord community & the Filecoin community slack to get your questions answered. We’re happy to help!

img-ads

Leave a Comment

Your email address will not be published.

You may also like

Bitcoin Markets

Canada’s Purpose Bitcoin ETF may be cutting into Grayscale’s market share

For the first time, shares in Grayscale’s Bitcoin Trust traded at a discount compared to spot BTC for an entire month.

Rafael Schultze-Kraft, the CTO of on-chain analytics provider Glassnode, shared the observation to Twitter on April 1, noting shares in the institutional fund manager’s Bitcoin Trust had traded at a notional discount of -6% on average during March.

He noted the discount in Grayscale’s BTC shares has coincided with the launch of the Purpose Bitcoin ETF in Canada — which has accumulated 16,000 BTC worth roughly $940 million since launching in late February.

View More Article
Bitcoin Investment Tech

Mark Cuban owns 30% ETH because it’s ‘closest to a true currency’

Billionaire Mark Cuban believes Ethereum is the closest thing we have to being a true currency and views Bitcoin as a better alternative to gold.

The Shark Tank and Dallas Mavericks co-owner made the comments as a guest on a recent episode of the Delphi Podcast, where he noted that the growth of DeFi and NFTs had made him excited about crypto. He explained that “smart contracts and the fact that they’re decentralized” means “there’s no one in charge right there, the governance is completely different. That’s what changed the game.”

In fact he compared the development of Ethereum’s smart contracts to the internet boom in the late ’90s and early 2000s:

“When the Internet started to happen, you started seeing all these applications that could disrupt things that happened in the analog world, like when we looked at streaming because I wanted to listen to Indiana University…

View More Article
Blockchain Tech

Our Man in Shanghai: Filecoin the talk of the town, Polkadot and NFTs gain attention

Distributed storage network project Filecoin is the talk of the town as FIL was the most highly traded token on Huobi, OKEx and Gate on Thursday. These three exchanges have a predominantly Chinese user base and represent a large part of the Tier One trading volume for major pairs. On Thursday afternoon, Huobi trading volumes of FIL were more than three times that of BTC as the price reached a 7-day increase of 170%.

Filecoin has had strong success in capturing the attention of Chinese investors, including large investment groups such as Fenbushi Capital, SNZ Capital and Neo’s EcoFund. These three were part of a group that backed the $23 million Filecoin Ecosystem Fund, announced on March 25. The Filecoin Ecosystem Fund is intended to support projects and help development on the network. It could also give backers early access to new projects, which is a…

View More Article
Bitcoin

Digital asset manager behind Canada’s first BTC fund hopes to launch Bitcoin ETF

Investment fund manager 3iQ has partnered with Coinshares to launch a Bitcoin exchange-traded fund in Canada. 

According to an announcement from 3iQ, the firm has filed a final prospectus for a Bitcoin (BTC) exchange-traded fund, or ETF, with the securities regulatory authorities in each of the 10 provinces and 3 territories of Canada. Pending regulatory approval, trading for the ETF is expected to begin in early April on the Toronto Stock Exchange.

CoinShares CEO Jean-Marie Mognetti said the joint effort was aimed at “making digital assets more accessible to investors of all types.” The fund’s units will likely trade in U.S. dollars under the ticker “BTCQ.U” and Canadian dollars under the ticker “BTCQ.”

Canadian investment firms have largely taken the lead on launching crypto ETFs in North America given the U.S. Securities and Exchange Commission’s, or SEC’s, seeming reticence in approving a fund….

View More Article
Bitcoin Blockchain Business Markets Tech

Filecoin market cap hits $450B after FIL price rallies above $230

The fully diluted valuation of Filecoin (FIL), a digital payment and cryptocurrency system built on top of the InterPlanetary File System (IPFS), has reached $450 billion.

Filecoin is a blockchain that enables users to rent unused hard drive space to store and retrieve data. Its model is similar to Snowflake, which completed the biggest software IPO in history in September 2020.

A combination of three factors likely led the price of FIL to surge in recent weeks: technical momentum, rising demand from China, and its uniqueness compared to Ethereum.

Analysts say big demand is coming from China

According to Wu Blockchain, a crypto-journalist based in China, the demand for FIL has been heating up in China.

The daily volume of FIL on Huobi, which ranks as China’s…

View More Article
Bitcoin Blockchain Markets Opinion

Altcoins move to new all-time highs while Bitcoin struggles below $60K

According to data from, Bitcoin’s (BTC) Q1 2021 performance was the best since 2013. With strong tailwinds, Bitcoin now enters Q2 which historically has been a good period for BTC price.

Data shows that BTC has only closed Q2 in the red twice and both times the decline was less than 10%. If history repeats itself, Bitcoin investors may witness sharp gains in the next six months. 

Crypto market data daily view. Source: Coin360

Altcoins have also participated in the current bull run and this has propelled the total crypto market capitalization to $1.99 trillion which is just short of the $2 trillion milestone.

Let’s take a look at some of the top-performing tokens to see which may continue to rally higher in the short term.

RUNE/USDT

The decentralized finance boom has attracted numerous new players. However, one of the problems facing investors is that the protocols are…

View More Article
%d bloggers like this: