Ocean Contracts – 海运合同区块链毕设代写

区块链毕设代写本文提供国外最新区块链项目源码下载,包括solidity,eth,fabric等blockchain区块链,Ocean Contracts – 海运合同区块链毕设代写 是一篇很好的国外资料

Ocean Contracts - 海运合同

Ocean Contracts

🐙 Smart contracts for Ocean Protocol v3. https://oceanprotocol.com

Ocean Contracts - 海运合同 Ocean Contracts - 海运合同

Overview:

Ocean Contracts - 海运合同

Table of Contents

  • 🏗 Installation
  • 🏄 Quickstart
  • 🛳 Network Deployments
  • 🦑 Local Development
  • Code Style
  • 👩‍🔬 Testing
  • ⬆️ Releases
  • 🏛 License

🏗 Installation

For quick installation of the contract ABIs:

yarn add @oceanprotocol/contracts

🏄 Quickstart

The ocean.js and ocean.py libraries wrap contracts in JavaScript and Python respectively. They each have quickstart guides.

🛳 Network Deployments

You can use an existing deployment of Ocean contracts, deploy locally, or deploy to a remote network. Let’s review each.

Use existing deployments

Ocean contracts are deployed to Rinkeby, Ethereum mainnet, and more. Here are details.

Deploy Locally (Ganache)

  • In a separate terminal, start the testnet: ganache-cli
  • In your main terminal, run: yarn deploy
  • Confirm: are "development" entries updated in addresses file ./artifacts/address.json?

Deploy to Remote (e.g. Rinkeby)

  • In your main terminal:
export MNEMONIC='YOUR MNEMONIC SHOULD BE HERE'  # If you are using remote test or Etherejm mainnet using Infura export INFURA_TOKEN='GET INFURA_TOKEN FROM INFURA PLATFORM'   yarn deploy:rinkeby
  • Confirm: are "rinkeby" entries updated in addresses file ./artifacts/address.json?

🦑 Local Development

For local development of contracts, set up the development environment on your machine as follows.

As a prerequisite, you need:

  • Node.js v12+
  • yarn

Clone the project and install all dependencies:

git clone git@github.com:oceanprotocol/contracts.git cd contracts/  # install packages yarn  # to compile contracts yarn compile

Code Style

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

# to check lint issues yarn lint

👩‍🔬 Testing

In a separate console:

ganache-cli

In main console:

# for unit tests yarn test:unit  # for test coverage yarn test:cover

Code style is enforced through the CI test process. Builds will fail if there are linting errors.

⬆️ Releases

Submit contributions with this workflow.

Finally, do a release using this process.

🏛 License

Copyright 2021 Ocean Protocol Foundation  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. 

Ocean Contracts - 海运合同

Ocean Contracts

🐙 Smart contracts for Ocean Protocol v3. https://oceanprotocol.com

Ocean Contracts - 海运合同 Ocean Contracts - 海运合同

Overview:

Ocean Contracts - 海运合同

Table of Contents

  • 🏗 Installation
  • 🏄 Quickstart
  • 🛳 Network Deployments
  • 🦑 Local Development
  • Code Style
  • 👩‍🔬 Testing
  • ⬆️ Releases
  • 🏛 License

🏗 Installation

For quick installation of the contract ABIs:

yarn add @oceanprotocol/contracts

🏄 Quickstart

The ocean.js and ocean.py libraries wrap contracts in JavaScript and Python respectively. They each have quickstart guides.

🛳 Network Deployments

You can use an existing deployment of Ocean contracts, deploy locally, or deploy to a remote network. Let’s review each.

Use existing deployments

Ocean contracts are deployed to Rinkeby, Ethereum mainnet, and more. Here are details.

Deploy Locally (Ganache)

  • In a separate terminal, start the testnet: ganache-cli
  • In your main terminal, run: yarn deploy
  • Confirm: are "development" entries updated in addresses file ./artifacts/address.json?

Deploy to Remote (e.g. Rinkeby)

  • In your main terminal:
export MNEMONIC='YOUR MNEMONIC SHOULD BE HERE'  # If you are using remote test or Etherejm mainnet using Infura export INFURA_TOKEN='GET INFURA_TOKEN FROM INFURA PLATFORM'   yarn deploy:rinkeby
  • Confirm: are "rinkeby" entries updated in addresses file ./artifacts/address.json?

🦑 Local Development

For local development of contracts, set up the development environment on your machine as follows.

As a prerequisite, you need:

  • Node.js v12+
  • yarn

Clone the project and install all dependencies:

git clone git@github.com:oceanprotocol/contracts.git cd contracts/  # install packages yarn  # to compile contracts yarn compile

Code Style

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

# to check lint issues yarn lint

👩‍🔬 Testing

In a separate console:

ganache-cli

In main console:

# for unit tests yarn test:unit  # for test coverage yarn test:cover

Code style is enforced through the CI test process. Builds will fail if there are linting errors.

⬆️ Releases

Submit contributions with this workflow.

Finally, do a release using this process.

🏛 License

Copyright 2021 Ocean Protocol Foundation  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. 

部分转自网络,侵权联系删除区块链源码网

www.interchains.cc

https://www.interchains.cc/21742.html

区块链毕设网(www.interchains.cc)全网最靠谱的原创区块链毕设代做网站 部分资料来自网络,侵权联系删除! 最全最大的区块链源码站 ! QQ3039046426
区块链知识分享网, 以太坊dapp资源网, 区块链教程, fabric教程下载, 区块链书籍下载, 区块链资料下载, 区块链视频教程下载, 区块链基础教程, 区块链入门教程, 区块链资源 » Ocean Contracts – 海运合同区块链毕设代写

提供最优质的资源集合

立即查看 了解详情