Nevermined Smart Contracts – 永不终止的智能合约区块链毕设代写
区块链毕设代写本文提供国外最新区块链项目源码下载,包括solidity,eth,fabric等blockchain区块链,Nevermined Smart Contracts – 永不终止的智能合约区块链毕设代写 是一篇很好的国外资料
Nevermined Smart Contracts
💧 Smart Contracts implementation of Nevermined in Solidity nevermined.io
Table of Contents
- Nevermined Smart Contracts
- Table of Contents
- Get Started
- Docker
- Local development
- Testing
- Code Linting
- Networks
- Testnets
- Integration Testnet
- Staging Testnet
- Mainnets
- Production Mainnet
- Testnets
- Packages
- Documentation
- Prior Art
- Attribution
- License
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.
Local development
As a pre-requisite, you need:
- Node.js
- yarn
Note: For MacOS, make sure to have node@10
installed.
Clone the project and install all dependencies:
git clone git@github.com:nevermined-io/contracts.git cd nevermined-contracts/ Install dependencies: ```bash yarn
Compile the solidity contracts:
yarn compile
In a new terminal, launch an Ethereum RPC client, e.g. ganache-cli:
npx ganache-cli@~6.9.1 > ganache-cli.log &
Switch back to your other terminal and deploy the contracts:
yarn test:fast
For redeployment run this instead
yarn clean yarn compile yarn test:fast
Upgrade contracts [optional]:
yarn upgrade
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
Testnets
Rinkeby Testnet
The contract addresses deployed on Nevermined Rinkeby
Test Network:
Contract | Version | Address |
---|---|---|
AccessSecretStoreCondition | v0.5.0 | 0x8154110e87a1fe2c7C1C308980D1f506c36E7afB |
AgreementStoreManager | v0.5.0 | 0x4893ef3800636833fA106E6AeB4F70f3df89B159 |
ComputeExecutionCondition | v0.5.0 | 0xF52767F67dC382412F4b528865DC9C2cCDc3A00A |
ConditionStoreManager | v0.5.0 | 0x774271bFA1a48363A5c006DB1BE389a60DD1f743 |
DIDRegistry | v0.5.0 | 0xD24b1ef9a638A9B65C1EDA2Ffb9802DBCB3A3DD0 |
DIDRegistryLibrary | v0.5.0 | 0x395C16f56EC85b29CF7Fa23bb1C7Ac2C5fd63B35 |
EpochLibrary | v0.5.0 | 0xab7c9Fd2e67E52Ad64347a42b64aAFF4ED950a8b |
EscrowAccessSecretStoreTemplate | v0.5.0 | 0xdF4A669D40cc3058e10E290A10569c14b6E857CC |
EscrowComputeExecutionTemplate | v0.5.0 | 0x8F0B30A82524635D4b35A42aE2dF86684c3360A3 |
EscrowReward | v0.5.0 | 0x3b3804F5F1C652df1270452f30A4F566Df938B2d |
HashLockCondition | v0.5.0 | 0x274d809c5B0b2DA51fF9716AFeEE1b763C737a9C |
LockRewardCondition | v0.5.0 | 0x5CAD23D3E6b341ddA48F61E15c39BA88706E9B7F |
ProvenanceRegistry | v0.5.0 | 0xec3b7A08206c5f5062503cee1DAE83beea2Bd5AA |
ProvenanceRegistryLibrary | v0.5.0 | 0xF38176FfD1ee5Af8DaCA0521323e660C49573178 |
SignCondition | v0.5.0 | 0xE383A2e66EE61bAD6Bd0bA3C906423df9Ef40b72 |
TemplateStoreManager | v0.5.0 | 0xAE89fDDbF32e61ED1D5E5822C1E87F9e440564b1 |
ThresholdCondition | v0.5.0 | 0x116B27A89841253e4b690729f755474670667668 |
WhitelistingCondition | v0.5.0 | 0xf2CaF3D479C584c83504467238C140E330dEC257 |
Token | v0.5.0 | 0xc778417e063141139fce010982780140aa0cd5ab |
Integration Testnet
The contract addresses deployed on Nevermined Integration
Test Network:
Contract | Version | Address |
---|---|---|
– | – | – |
Staging Testnet
The contract addresses deployed on Nevermined Staging
Test Network:
Contract | Version | Address |
---|---|---|
– | – | – |
Mainnets
Production Mainnet
The contract addresses deployed on Production
Mainnet:
Contract | Version | Address |
---|---|---|
– | – | – |
Packages
To facilitate the integration of nevermined-contracts
there are Python
, JavaScript
and Java
packages ready to be integrated. Those libraries include the Smart Contract ABI’s. Using these packages helps to avoid compiling the Smart Contracts and copying the ABI’s manually to your project. In that way the integration is cleaner and easier. The packages provided currently are:
- JavaScript
NPM
package – As part of the @nevermined-io npm organization, the npm nevermined-contracts package provides the ABI’s to be imported from yourJavaScript
code. - Python
Pypi
package – The Pypi nevermined-contracts package provides the same ABI’s to be used fromPython
. - Java
Maven
package – The Maven nevermined-contracts package provides the same ABI’s to be used fromJava
.
The packages contains all the content from the doc/
and artifacts/
folders.
In JavaScript
they can be used like this:
Install the nevermined-contracts
npm
package.
npm install @nevermined-io/contracts
Load the ABI of the NeverminedToken
contract on the staging
network:
const NeverminedToken = require('@nevermined-io/contracts/artifacts/NeverminedToken.staging.json')
The structure of the artifacts
is:
{ "abi": "...", "bytecode": "0x60806040523...", "address": "0x45DE141F8Efc355F1451a102FB6225F1EDd2921d", "version": "v0.9.1" }
Documentation
- Contracts Documentation
- Release process
- Packaging of libraries
- Upgrading of contracts
- Template lifecycle
Prior Art
This project builds on top of the work done in open source projects:
- zeppelinos/zos
- OpenZeppelin/openzeppelin-eth
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 2020 Keyko GmbH 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.
We use optional third-party analytics cookies to understand how you use GitHub.com so we can build better products. Learn more.
We use optional third-party analytics cookies to understand how you use GitHub.com so we can build better products.
You can always update your selection by clicking Cookie Preferences at the bottom of the page. For more information, see our Privacy Statement.
Essential cookies
We use essential cookies to perform essential website functions, e.g. they’re used to log you in. Learn more
Always active
Analytics cookies
We use analytics cookies to understand how you use our websites so we can make them better, e.g. they’re used to gather information about the pages you visit and how many clicks you need to accomplish a task. Learn more
无权限智能合约
💧 智能合约的实现永不终止.io
<><
><
><
><
><
><
>
对于无终止合同的本地开发,您可以使用Docker,也可以在您的计算机上设置开发环境。
最简单的入门方法是使用Nevermined Tools,一个docker compose应用程序来运行所有Nevermined堆栈。
作为先决条件,您需要:
注意:对于MacOS,请确保节点@10安装。
克隆项目并安装所有依赖项:
编译solidity合同:
在新终端中,启动以太坊ethRPC客户端,e、 g.ganache cli:
切换回您的另一个终端并部署契约:
对于重新部署,请运行此操作,
升级合同[可选]:
使用yarn test运行测试,例如:
为JavaScript和Ethlint的Solidity设置Linting。
代码样式是通过CI测试过程强制执行的,如果出现任何linting错误,构建将失败。
部署在无终端Rinkeby测试网络上的合同地址:
部署在无终端集成测试网络上的合同地址:
部署在无终端分段测试网络上的合同地址:
部署在生产主网上的合同地址:
便于集成没有终止的合同有Python、JavaScript和Java包可以集成。这些库包括智能合约ABI。使用这些软件包有助于避免编译智能合约和手动将ABI复制到项目中。更干净更容易整合。当前提供的包是:
这些包包含doc/和artifacts/文件夹中的所有内容。
在JavaScript中,它们可以这样使用:
安装nevermined contracts npm包。
在登台网络上加载NeverminedToken契约的ABI:
工件的结构是:
这个项目建立在开源项目中所做工作的基础之上:
这个项目基于海洋协议维护者合同。它保留了相同的apachev2许可证,并添加了一些改进。参见通知文件。
我们使用可选的第三方分析cookies来了解您如何使用GitHub.com网站所以我们可以制造更好的产品。了解更多。
我们使用可选的第三方分析cookies来了解您如何使用GitHub.com网站所以我们可以制造更好的产品。
您可以随时通过单击页面底部的Cookie首选项来更新您的选择。有关更多信息,请参阅我们的隐私声明。
我们使用基本Cookie来执行基本的网站功能,例如,它们用于让您登录。了解更多
我们使用analytics Cookie来了解您如何使用我们的网站,以便我们能够使其变得更好,例如,它们用于收集有关您访问的页面以及完成一项任务需要多少次单击的信息。了解更多
无权限智能合约
目录
集成测试
主网
生产主网
包
文档
现有技术
主网
生产主网
包
文档
现有技术
归属
许可证
基本cookies
始终激活
分析cookies
>0x4893EF3800636833FA106AEBF7F7F3DF89B159 DF89B159
>条件仓库经理
<0.0.5.0
>0x77774271BFA1A4836363A500607777742774271BFA1483636363A48363A52006年,经DB1BE389A60DD1F743
>0xAE89FDFDDf32E61edD5D582C1E87FE4444444464B1
>本年3>本.5.5/td>
>代币
>0xC778417E063141139FCE01098278080808140AA0AA0C5AB
–
–
>
–
–
–
目录
集成测试
主网
生产主网
包
文档
现有技术
主网
生产主网
包
文档
现有技术
归属
许可证
基本cookies
始终激活
分析cookies
>0x4893EF3800636833FA106AEBF7F7F3DF89B159 DF89B159
>条件仓库经理
<0.0.5.0
>0x77774271BFA1A4836363A500607777742774271BFA1483636363A48363A52006年,经DB1BE389A60DD1F743
>0xAE89FDFDDf32E61edD5D582C1E87FE4444444464B1
>本年3>本.5.5/td>
>代币
>0xC778417E063141139FCE01098278080808140AA0AA0C5AB
–
–
>
–
–
–
- 无权限智能合约目录开始Docker本地开发测试代码Linting Networks Testnets Integration Testnet Staging Testnet Mainnets Production Mainnet包文档现有技术归属许可证
集成测试
主网
生产主网
包
文档
现有技术
归属
许可证
基本cookies
始终激活
分析cookies
>0x4893EF3800636833FA106AEBF7F7F3DF89B159 DF89B159
>条件仓库经理
<0.0.5.0
>0x77774271BFA1A4836363A500607777742774271BFA1483636363A48363A52006年,经DB1BE389A60DD1F743
>0xAE89FDFDDf32E61edD5D582C1E87FE4444444464B1
>本年3>本.5.5/td>
>代币
>0xC778417E063141139FCE01098278080808140AA0AA0C5AB
–
–
>
–
–
–
对于无终止合同的本地开发,您可以使用Docker,也可以在您的计算机上设置开发环境。
主网
最简单的入门方法是使用Nevermined Tools,一个docker compose应用程序来运行所有Nevermined堆栈。
生产主网
作为先决条件,您需要:
- 模板生命周期
- 齐柏林飞艇/zos
注意:对于MacOS,请确保节点@10安装。
克隆项目并安装所有依赖项:
git clone git@github.com:nevermined-io/contracts.git cd nevermined-contracts/ Install dependencies: ```bash yarn
编译solidity合同:
yarn compile
在新终端中,启动以太坊ethRPC客户端,e、 g.ganache cli:
npx ganache-cli@~6.9.1 > ganache-cli.log &
切换回您的另一个终端并部署契约:
yarn test:fast
对于重新部署,请运行此操作,
yarn clean yarn compile yarn test:fast
升级合同[可选]:
yarn upgrade
包
使用yarn test运行测试,例如:
yarn test test/unit/agreements/AgreementStoreManager.Test.js
文档
为JavaScript和Ethlint的Solidity设置Linting。
代码样式是通过CI测试过程强制执行的,如果出现任何linting错误,构建将失败。
yarn lint
现有技术
许可证
基本cookies
部署在无终端Rinkeby测试网络上的合同地址:
Contract | Version | Address |
---|---|---|
AccessSecretStoreCondition | v0.5.0 | 0x8154110e87a1fe2c7c1c308908980d1f506e7afb |
协议仓库经理 | 协议仓库管理人 | v0.5.0 |
电脑执行执行条件 | 版本0.5.0 | 0xf522767F67F67F67DC3824242424242424242424242828288865DCC2CCDC3A0A |
ConditionStoreManager | v0.5.0 | v0.5.0 |
v0.5.0 | 0xd24b1ef9a638a9b65c16c1eda2ffb9802dbbcbA3add0 | 该地注册库 |
DIDRegistryLibrary | v0.5.0 | 0x395C16f56EC85b29CF7Fa23bb1C7Ac2C5fd63B35 |
0x395c16f56ec85b29f7f23bb1c7ac2c2c5fd63b35的35 | v0.5.0 | 0xab7c9Fd2e67E52Ad64347a42b64aAFF4ED950a8b |
v0.5.0>0.5.0 | 0xab7c7c9f2e67e52a644447a42b64aa42b64aa64aa64aa29ff4ed950a8b | 托管访问secretstoretemplate |
v0.5.0 | 0xDF4A669D40C3058E10E290A1059C14B6E857CC | 统划统统执行执行执行模板 |
文统>v0.5.0 | v0.5.0 | v0.5.0 |
HashLockCondition | 0x8F0B30A82524635D4B35A42AE2dF8666684C3360A3 | 托管奖励 |
v0.5.0 | td>0x3B3804FFF52DF1270452F30A4F66DF938B28B2DF66DF938B2Df938B2Df29292929 | 哈希锁条件 |
v0.5.0 | 0x274D809C5B0B2DA51FF9716AFEEB763C737A9C | 锁水条件 |
LockRewardCondition | v0.5.0 | 0x5Cad23D3E6B331DDA48F61E15C39Ba8870E9B7F五五五五的第39BA88706EB7F |
ProvinceRegistry | v0.5.0 | 0xEC3B7A08206C5FF50622503年被评为BD5AA的第二个AA |
普天青注册库库库 | v0.5.0 | 0xAE89fDDbF32e61ED1D5E5822C1E87F9e440564b1 |
ThresholdCondition | 天青地地地地>0.5.0版 | 0xF38176FFD1EE5AF8DACA08DACA051323E60C49573178 |
签字条件 | v0.5.0 | v0.5.0 |
0xe3832A2E66E61BaD0Ba3C906423DF9EF40B72 | 模板库管理人 | 0xc778417e063141139fce010982780140aa0cd5ab |
始终激活
部署在无终端集成测试网络上的合同地址:
Contract | Version | Address |
---|---|---|
v0.5.0 | 阈值条件 | – |
分析cookies
部署在无终端分段测试网络上的合同地址:
Contract | Version | Address |
---|---|---|
– | v0.5.0.0 | 075474670667668 |
Mainnets
Production Mainnet
部署在生产主网上的合同地址:
Contract | Version | Address |
---|---|---|
– | 白名单白名单条件 | 白名单条件 |
Packages
便于集成没有终止的合同有Python、JavaScript和Java包可以集成。这些库包括智能合约ABI。使用这些软件包有助于避免编译智能合约和手动将ABI复制到项目中。更干净更容易整合。当前提供的包是:
- 开放齐柏林飞艇/OpenZeppelin eth
- Python
Pypi
package – The Pypi nevermined-contracts package provides the same ABI’s to be used fromPython
. - Java
Maven
package – The Maven nevermined-contracts package provides the same ABI’s to be used fromJava
.
这些包包含doc/和artifacts/文件夹中的所有内容。
在JavaScript中,它们可以这样使用:
安装nevermined contracts npm包。
npm install @nevermined-io/contracts
在登台网络上加载NeverminedToken契约的ABI:
const NeverminedToken = require('@nevermined-io/contracts/artifacts/NeverminedToken.staging.json')
工件的结构是:
{ "abi": "...", "bytecode": "0x60806040523...", "address": "0x45DE141F8Efc355F1451a102FB6225F1EDd2921d", "version": "v0.9.1" }
Documentation
- Contracts Documentation
- Release process
- Packaging of libraries
- Upgrading of contracts
- Template lifecycle
Prior Art
这个项目建立在开源项目中所做工作的基础之上:
- zeppelinos/zos
- OpenZeppelin/openzeppelin-eth
Attribution
这个项目基于海洋协议维护者合同。它保留了相同的apachev2许可证,并添加了一些改进。参见通知文件。
License
Copyright 2020 Keyko GmbH 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.
我们使用可选的第三方分析cookies来了解您如何使用GitHub.com网站所以我们可以制造更好的产品。了解更多。
我们使用可选的第三方分析cookies来了解您如何使用GitHub.com网站所以我们可以制造更好的产品。
您可以随时通过单击页面底部的Cookie首选项来更新您的选择。有关更多信息,请参阅我们的隐私声明。
Essential cookies
我们使用基本Cookie来执行基本的网站功能,例如,它们用于让您登录。了解更多
Always active
Analytics cookies
我们使用analytics Cookie来了解您如何使用我们的网站,以便我们能够使其变得更好,例如,它们用于收集有关您访问的页面以及完成一项任务需要多少次单击的信息。了解更多
部分转自网络,侵权联系删除区块链源码网
区块链知识分享网, 以太坊dapp资源网, 区块链教程, fabric教程下载, 区块链书籍下载, 区块链资料下载, 区块链视频教程下载, 区块链基础教程, 区块链入门教程, 区块链资源 » Nevermined Smart Contracts – 永不终止的智能合约区块链毕设代写