Giter Site home page Giter Site logo

ethpm / ethpm-go Goto Github PK

View Code? Open in Web Editor NEW
9.0 7.0 3.0 98 KB

Go packages to support ethpm. Package manifest schema is defined here https://github.com/ethpm/ethpm-spec

License: MIT License

Go 100.00%
ethereum ethpm golang ethereum-development ethereum-dapp

ethpm-go's People

Contributors

vor0220 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

ethpm-go's Issues

Add Network Utility Testing

What is it?

Add tests to network utility functions.

Problem

After network utility functions are created, they will need to be tested.

Solution

Test each of the network utility functions as outlined below

Steps to implement

  • Test manifest retrieval from github via JSON-HTTP
  • Test manifest retrieval from ipfs via HTTP
  • Test manifest posting to ipfs via HTTP
  • Test posting manifest information to a registry on the ethereum network
  • Test retrieving manifest information from a registry on the ethereum network

Add Network Utilities

What is it?

Add network utility functions to retrieve and post package manifests.

Problem

There are currently no functions that enable the tool to make calls to various networks for posting or retrieving package manifests.

Solution

Network utilities should be added to: post and retrieve manifest information to/from ethereum networks via JSON-RPC and JSON-HTTP, and post/retrieve manifests to/from ipfs via HTTP, and retrieve from github via JSON-HTTP.

Steps to implement

  • Implement manifest retrieval from github via JSON-HTTP
  • Implement manifest retrieval from ipfs via HTTP
  • Implement manifest posting to ipfs via HTTP
  • Implement posting manifest information to a registry on the ethereum network
  • Implement retrieving manifest information from a registry on the ethereum network

Add Manifest Testing

What is it?

Add tests to read and write functions

Problem

There is currently no testing implemented in the repo

Solution

After building all regex methods for the interface, tests need to be created for the read and write methods such that a malformed schema cannot be accepted nor can a bad one be generated.

Steps to implement

  • Test that the Read method will advise implementers when a bad schema is read
  • Test that the Write method will advise implementers when a bad schema is trying to be written

RegEx Checks

What is it?

Adding regex checks

Problem

Most keys and values in the package schema have regex requirements that need to be met. There are currently no regex checking functions for any of the structs.

Solution

Add regex checking methods for each of the structs used for building an ethpm package schema. The requirements can be found in the ethpm/ethpm-spec repo using both human readable docs and machine readable schema.

Steps to implement

  • Regex checking method for bytecode.go structs
  • Regex checking method for compilerinformation.go structs
  • Regex checking method for contractinstance.go structs
  • Regex checking method for contractlink.go structs
  • Regex checking method for contracttype.go structs
  • Regex checking method for packagemanifest.go struct
  • Regex checking method for packagemeta.go structs

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.