简体   繁体   中英

How to deploy a Daml smart contract to Hyperledger Fabric or Sawtooth?

I have a smart contract in DAML and i want to deploy this smart contract to Hyperledger Fabric or Sawtooth. I can't find any tutorial about this purpose. Also, i don't find any example on the Daml documentation which tool is used to deploy the smart contract to other platform.

The open source DAML on Sawtooth and DAML on Fabric integrations built by partners BTP and HACERA can be found here in github, and instructions on how to run the respective network locally for the purposes of development and evaluation are included in the readmes

Hyperledger Sawtooth https://github.com/blockchaintp/daml-on-sawtooth

Hyperledger Fabric https://github.com/hacera/daml-on-fabric

For a fully supported production usage of DAML on Sawtooth, please see the BTP Sextant offering via AWS Marketplace https://aws.amazon.com/marketplace/pp/B07Z8HPN96

Once you have spun up the network, you can allocate parties and upload your DAR files using the DAML assistant tool that is part of the DAML SDK, which I assume you have already installed if you have already built smart contracts in DAML https://docs.daml.com/getting-started/installation.html

The daml ledger upload-dar and daml ledger allocate-parties commands will be the ones you want to use to initialize the ledger with the specific of your application, and ensure you specific the correct --host and --port for the running ledger.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM