Skip to main content

banner

Nevermined Smart Contracts

💧 Smart Contracts implementation of Nevermined in Solidity nevermined.io

Docker Build Status Build and Tests

Table of Contents


Get Started

For local development of nevermined-contracts you can either use Docker, or setup the development environment on your machine.

Docker

The simplest way to get started with is using the Nevermined Tools, a docker compose application to run all the Nevermined stack.

Public Network development

For deploying in a public network check ReleaseProcess.md first.

Local development

As a pre-requisite, you need:

  • Node.js
  • yarn

Clone the project and install all dependencies:

git clone git@github.com:nevermined-io/contracts.git
cd contracts/

Install dependencies:

yarn

Compile the solidity contracts:

yarn compile

In a new terminal, launch an Ethereum RPC client, e.g. hardhat:

npx hardhat node --port 18545

Switch back to your other terminal and deploy the contracts:

yarn deploy:external

For redeployment run this instead

yarn clean
yarn compile
yarn deploy:external

Upgrade contracts [optional]:

yarn upgrade:external

Testing

Run tests with yarn test, e.g.:

yarn test test/unit/agreements/AgreementStoreManager.Test.js

Code Linting

Linting is setup for JavaScript with ESLint & Solidity with Ethlint.

Code style is enforced through the CI test process, builds will fail if there're any linting errors.

yarn lint

Networks

When Nevermined contracts are deployed into different networks, the ABIs referring to the specific version deployed are copied into the Artifacts repository.

You can find more information about the this into the Release Process documentation.

For contracts older to v3.x please see the Legacy Artifacts Repository.

Documentation

Prior Art

This project builds on top of the work done in open source projects:

Attribution

This project is based in the Ocean Protocol Keeper Contracts. It keeps the same Apache v2 License and adds some improvements. See NOTICE file.

License

Copyright 2023 Nevermined AG
This product includes software developed at
BigchainDB GmbH and Ocean Protocol (https://www.oceanprotocol.com/)

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Metadata

Release files for nevermined-contracts 3.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nevermined-contracts 3.5.0
File Size Uploaded Provenance
nevermined-contracts-3.5.0.tar.gz 7.6 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for nevermined-contracts 3.5.0
File Interpreter ABI Platform
nevermined_contracts-3.5.0-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 15.9 kB

Release files / nevermined-contracts-3.5.0.tar.gz

Download URL nevermined-contracts-3.5.0.tar.gz
Size 7.6 kB
Tags Source
SHA-256 checksum
How to use checksums
293c558ede5e312af5cd11b13ca423717cc648ccdcf30b1ffe4b06e3826f6764
BLAKE2b-256 checksum
How to use checksums
c83a4dc7669f11fd674f4e2464fa661138ae12f9a20ea296e3ebb08ab4ae89c7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.5

Release files / nevermined_contracts-3.5.0-py2.py3-none-any.whl

Download URL nevermined_contracts-3.5.0-py2.py3-none-any.whl
Size 8.3 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
5f68c89945b475cfcdd4736ab0fffd51e5e4b68473d6b0f92e3fc5ed910b8e59
BLAKE2b-256 checksum
How to use checksums
b35aa62600b82a7ccca1a86f97365ea7933c39953872f52159a04b53d8b564c1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.5

Security for nevermined-contracts 3.5.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

3.5.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page