question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support IPFS imports in solidity

See original GitHub issue

Outline

Embark supports special solidity imports as outlined in the documentation here. The goal of this task is to support solidity file imports with ipfs URIs just like it’s currently support for HTTP and git, for e.g

import "ipfs://QmXoypizjW3WknFiJnKLwHCnL72vedxjQkDDP1mXWo6uco/some_folder/test.sol"

Acceptance Criteria

  • It should support any valid IPFS URI
  • it should not use an external webservice, it should be able to access the file using ipfs directly (e.g through the configure ipfs node and or ipfs-js-api)
  • If the imported sol file, has other imports, those should automatically be taken care of (existing behaviour for current http imports)

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:24 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
StatusSceptrecommented, Nov 7, 2018

Great thanks for all the hard work and meticulous cherrypicking! 💯

1reaction
rmsheacommented, Oct 15, 2018

Hey @iurimatias, Ryan from Gitcoin here. Looks like @PumpkingWok submitted a PR for you to review. Do you think you could take a look? As always, feel free to ping me with any questions 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Importing & Loading Source Files in Solidity — Remix
Importing & Loading Source Files in Solidity¶. There are two main reasons for loading external files into Remix: to import a library or...
Read more >
How to use IPFS in your Dapp? - Solidity developer
import IPFS from "ipfs"; async function initIpfs() { node = await IPFS.create(); const version = await node.version(); console.log("IPFS ...
Read more >
How to integrate IPFS with Ethereum explained - QuickNode
1. It can be costly to store massive files on a blockchain mainnet, and this is where decentralized file... 2. The web that...
Read more >
Storage DApp using Solidity and IPFS | by Marcos Carlomagno
Storage DApp using Solidity and IPFS. Imagine a decentralized storage application where we share our disks to each other without any server in...
Read more >
Import Path Resolution — Solidity 0.8.17 documentation
Paths used in imports must work the same way everywhere while the command-line interface must be able to work with platform-specific paths to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found