Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: paritytech/substrate
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: rs-ipfs/substrate
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: offchain_ipfs
Choose a head ref
  • 4 commits
  • 19 files changed
  • 2 contributors

Commits on Oct 21, 2020

  1. Copy the full SHA
    2f565db View commit details

Commits on Nov 11, 2021

  1. doc(README): link forks, prep for archiving

    Joonas Koivunen committed Nov 11, 2021
    Copy the full SHA
    0816580 View commit details
  2. doc(README): add fork branches to links

    Joonas Koivunen committed Nov 11, 2021
    Copy the full SHA
    c411577 View commit details

Commits on Dec 6, 2021

  1. Merge pull request #6 from rs-ipfs/readme_update

    doc(README): link forks, prep for archiving
    Joonas Koivunen authored Dec 6, 2021

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    3d0f293 View commit details
37 changes: 9 additions & 28 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,31 +1,12 @@
# Substrate · [![GitHub license](https://img.shields.io/badge/license-GPL3%2FApache2-blue)](LICENSE) [![GitLab Status](https://gitlab.parity.io/parity/substrate/badges/master/pipeline.svg)](https://gitlab.parity.io/parity/substrate/pipelines) [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](docs/CONTRIBUTING.adoc)
# offchain-ipfs fork of substrate

<p align="center">
<img src="/docs/media/sub.gif">
</p>
See commit [2f565db0441] for the offchain-ipfs work and the [documentation][book] ([repository][book-repo]).
The work in this repository has stalled (see [comment on #5]) but continued on at least the following forks:

- [uggugteam/substrate](https://github.com/uddugteam/substrate/tree/offchain_ipfs)
- [iridium-labs/substrate](https://github.com/iridium-labs/substrate/tree/offchain_ipfs_v3)

Substrate is a next-generation framework for blockchain innovation 🚀.

## Trying it out

Simply go to [substrate.dev](https://substrate.dev) and follow the
[installation](https://substrate.dev/docs/en/knowledgebase/getting-started/) instructions. You can
also try out one of the [tutorials](https://substrate.dev/en/tutorials).

## Contributions & Code of Conduct

Please follow the contributions guidelines as outlined in [`docs/CONTRIBUTING.adoc`](docs/CONTRIBUTING.adoc). In all communications and contributions, this project follows the [Contributor Covenant Code of Conduct](docs/CODE_OF_CONDUCT.md).

## Security

The security policy and procedures can be found in [`docs/SECURITY.md`](docs/SECURITY.md).

## License

- Substrate Primitives (`sp-*`), Frame (`frame-*`) and the pallets (`pallets-*`), binaries (`/bin`) and all other utilities are licensed under [Apache 2.0](LICENSE-APACHE2).
- Substrate Client (`/client/*` / `sc-*`) is licensed under [GPL v3.0 with a classpath linking exception](LICENSE-GPL3).

The reason for the split-licensing is to ensure that for the vast majority of teams using Substrate to create feature-chains, then all changes can be made entirely in Apache2-licensed code, allowing teams full freedom over what and how they release and giving licensing clarity to commercial teams.

In the interests of the community, we require any deeper improvements made to Substrate's core logic (e.g. Substrate's internal consensus, crypto or database code) to be contributed back so everyone can benefit.
[2f565db0441]: https://github.com/rs-ipfs/substrate/commit/2f565db044133cacfdfc166ca9b96594644e34e9
[book]: https://rs-ipfs.github.io/offchain-ipfs-manual/
[book-repo]: https://github.com/rs-ipfs/offchain-ipfs-manual
[comment on #5]: https://github.com/rs-ipfs/substrate/pull/5#issuecomment-956168803
1 change: 1 addition & 0 deletions bin/node-template/node/Cargo.toml
Original file line number Diff line number Diff line change
@@ -16,6 +16,7 @@ targets = ["x86_64-unknown-linux-gnu"]
name = "node-template"

[dependencies]
ipfs = { git = "https://github.com/rs-ipfs/rust-ipfs" }
structopt = "0.3.8"

sc-cli = { version = "0.8.0", path = "../../../client/cli", features = ["wasmtime"] }
2 changes: 2 additions & 0 deletions bin/node-template/node/src/service.rs
Original file line number Diff line number Diff line change
@@ -106,6 +106,7 @@ pub fn new_full(config: Configuration) -> Result<TaskManager, ServiceError> {
if config.offchain_worker.enabled {
sc_service::build_offchain_workers(
&config, backend.clone(), task_manager.spawn_handle(), client.clone(), network.clone(),
task_manager.ipfs_rt.clone(),
);
}

@@ -274,6 +275,7 @@ pub fn new_light(config: Configuration) -> Result<TaskManager, ServiceError> {
if config.offchain_worker.enabled {
sc_service::build_offchain_workers(
&config, backend.clone(), task_manager.spawn_handle(), client.clone(), network.clone(),
task_manager.ipfs_rt.clone(),
);
}

14 changes: 10 additions & 4 deletions bin/node-template/pallets/template/Cargo.toml
Original file line number Diff line number Diff line change
@@ -25,26 +25,32 @@ default-features = false
version = "2.0.0"
path = "../../../../frame/system"

[dev-dependencies.sp-core]
[dependencies.sp-core]
default-features = false
version = "2.0.0"
path = "../../../../primitives/core"

[dev-dependencies.sp-io]
[dependencies.sp-io]
default-features = false
version = "2.0.0"
path = "../../../../primitives/io"

[dev-dependencies.sp-runtime]
[dependencies.sp-runtime]
default-features = false
version = "2.0.0"
path = "../../../../primitives/runtime"

[dependencies.sp-std]
default-features = false
version = "2.0.0-rc6"
path = "../../../../primitives/std"

[features]
default = ['std']
std = [
'codec/std',
'frame-support/std',
'frame-system/std'
'frame-system/std',
'sp-io/std',
'sp-std/std',
]
Loading