storing [ 10, 11, 12, 13, 14, 15, 16, 17, 18 ]:
...
| // SPDX-License-Identifier: MIT | |
| pragma solidity 0.7.2; | |
| interface PoolInterface { | |
| function swapExactAmountIn(address, uint, address, uint, uint) external returns (uint, uint); | |
| function swapExactAmountOut(address, uint, address, uint, uint) external returns (uint, uint); | |
| } | |
| interface TokenInterface { | |
| function balanceOf(address) external returns (uint); |
A collection of links to the excellent "Composing Software" series of medium stories by Eric Elliott.
| NodeJS Chaincode Deploy and Test | |
| start Docker | |
| cd /fabric-samples/basic-network /basic network | |
| Edit docker-compose.yml change line no 72 comment and 73 uncomment. //prod to devp network | |
| Edit start.sh add ‘cli’ in 15 no. line (docker-compose -f docker-compose.yml up -d ca.example.com orderer.example.com peer0.org1.example.com couchdb cli) | |
| ./start.sh //run start script to up network | |
| docker logs -f peer0.org1.example.com //log (1 terminal) | |
| docker exec -it cli bash //peer (2 terminal) | |
| cd /fabric-samples/chaincode/hyperledger/fabric/peer/nodefiles (3 terminal) |
| /** | |
| * Sample access control list. | |
| */ | |
| rule EverybodyCanReadEverything { | |
| description: "Allow all participants read access to all resources" | |
| participant: "org.acme.sample.User" | |
| operation: READ | |
| resource: "org.acme.sample.*" | |
| action: ALLOW | |
| } |
Roll your own iPython Notebook server with Amazon Web Services (EC2) using their Free Tier.