This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
OrdererOrgs: | |
- Name: Orderer | |
Domain: example.com | |
Specs: | |
- Hostname: orderer | |
PeerOrgs: | |
- Name: Org1 | |
Domain: org1.example.com | |
Template: | |
Count: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
Organizations: | |
- &OrdererOrg | |
Name: OrdererOrg | |
ID: OrdererMSP | |
MSPDir: ./crypto-config/ordererOrganizations/example.com/msp | |
- &Org1 | |
Name: Org1MSP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '2' | |
services: | |
orderer: | |
image: hyperledger/fabric-orderer | |
environment: | |
- CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=deployment_fabric | |
- ORDERER_HOME=/var/hyperledger/orderer | |
- ORDERER_GENERAL_LOGLEVEL=debug |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '2' | |
networks: | |
fabric: | |
services: | |
orderer.example.com: | |
extends: | |
file: docker-compose-base.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '2' | |
networks: | |
fabric: | |
services: | |
peer0.org1.example.com: | |
extends: | |
file: docker-compose-base.yml | |
service: peer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '2' | |
networks: | |
fabric: | |
services: | |
peer0.org2.example.com: | |
extends: | |
file: docker-compose-base.yml | |
service: peer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '2' | |
networks: | |
fabric: | |
services: | |
peer0.org3.example.com: | |
extends: | |
file: docker-compose-base.yml | |
service: peer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity ^0.5.6; | |
contract Emarket { | |
struct Item { | |
string description; | |
address seller; | |
address buyer; | |
uint price; | |
bool sold; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity ^0.5.6; | |
import "ds-test/test.sol"; | |
import "./Emarket.sol"; | |
contract EmarketTest is DSTest { | |
Emarket emarket; | |
function setUp() public { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity ^0.5.6; | |
import "ds-token/token.sol"; | |
contract Emarketwithcoin { | |
struct Item { | |
string description; | |
address seller; | |
address buyer; | |
uint price; |