first cut test environment – 首次切割测试环境区块链毕设代写

区块链毕设代写本文提供国外最新区块链项目源码下载,包括solidity,eth,fabric等blockchain区块链,first cut test environment – 首次切割测试环境区块链毕设代写 是一篇很好的国外资料

first cut test environment

Background

This was developed to evaluate the results of a programming test in a solidity programming class.

The specifications were as follows

Having had a class that showed the structure of an ERC721, they were asked to develop a single contract with the following functions

AddCarToRegistry

    function addCarToRegistry(         string memory _manufacturer,         string memory _model,         uint   _year_made,         string memory _chassis_number,         address _newOwner         ) public returns (uint256) ;

Ownership / DataAccess Functions

    function getOwner(uint256 index) public view returns(address);     function howManyCarsDoTheyOwn(address them) public view returns (uint256);     function getCarByOwnerAndIndex(address them, uint256 index) public view returns (uint256);      function transfer(uint256 index, address newOwner) public returns (bool)      function getManufacturer(uint256 index) public view returns (string memory);     function getModel(uint256 index) public view returns (string memory)     function getYear(uint256 index) public view returns (uint256);  

Events were not part of the assignment.

Operation

Solidity source files are uploaded to a web server.

The received file is compiled and deployed on a GETH simulated backend.

The test script is executed, parameter encoding is based on the data types extracted from the ABI obtained from the compilation.

If the script makes it to the end, the test has passed.

Notes

The code has been working – however since it was developed, I changed my dev machine to use solc-select which means that some of the compilation process needs to be re-worked (it also plays hell with my use of ABIGEN)

Plans

Immediate work would be

  1. Handling of different compiler versions
  2. Monitoring of events
  3. Building a decent test script system instead of current hack

first cut test environment

Background

This was developed to evaluate the results of a programming test in a solidity programming class.

The specifications were as follows

Having had a class that showed the structure of an ERC721, they were asked to develop a single contract with the following functions

AddCarToRegistry

    function addCarToRegistry(         string memory _manufacturer,         string memory _model,         uint   _year_made,         string memory _chassis_number,         address _newOwner         ) public returns (uint256) ;

Ownership / DataAccess Functions

    function getOwner(uint256 index) public view returns(address);     function howManyCarsDoTheyOwn(address them) public view returns (uint256);     function getCarByOwnerAndIndex(address them, uint256 index) public view returns (uint256);      function transfer(uint256 index, address newOwner) public returns (bool)      function getManufacturer(uint256 index) public view returns (string memory);     function getModel(uint256 index) public view returns (string memory)     function getYear(uint256 index) public view returns (uint256);  

Events were not part of the assignment.

Operation

Solidity source files are uploaded to a web server.

The received file is compiled and deployed on a GETH simulated backend.

The test script is executed, parameter encoding is based on the data types extracted from the ABI obtained from the compilation.

If the script makes it to the end, the test has passed.

Notes

The code has been working – however since it was developed, I changed my dev machine to use solc-select which means that some of the compilation process needs to be re-worked (it also plays hell with my use of ABIGEN)

Plans

Immediate work would be

  1. Handling of different compiler versions
  2. Monitoring of events
  3. Building a decent test script system instead of current hack

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

www.interchains.cc

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

区块链毕设网(www.interchains.cc)全网最靠谱的原创区块链毕设代做网站 部分资料来自网络,侵权联系删除! 最全最大的区块链源码站 !
区块链知识分享网, 以太坊dapp资源网, 区块链教程, fabric教程下载, 区块链书籍下载, 区块链资料下载, 区块链视频教程下载, 区块链基础教程, 区块链入门教程, 区块链资源 » first cut test environment – 首次切割测试环境区块链毕设代写

提供最优质的资源集合

立即查看 了解详情