Code Monkey home page Code Monkey logo

go-ibax-sdk's Introduction

IBAX Golang SDK

Go Reference

It includes the following core components:

  • config package is the config

  • example package is the test cases

  • client package encapsulates the functions of various requests, such as getuid, login uses the functions in auth

  • modus package is an interface

  • rpc AND api package is the implementation of various interfaces, rpc is a JSON-RPC interface, api is a restful api interface, both of which use the http protocol.including Interfaces for query, authentication, and transaction sending, etc

  • pkg contains core cryptographic, smart contracts and other useful functions

  • wallet package is contains account creation, including HD wallet, mnemonic generation, private key generation, etc.

Test

Configure the address and private key information in init_test.go in example directory, initApiTest is the configuration of restful api interface, initJsonTest is the configuration of JSON-RPC interface, errAccountTest is wrong account configuration

Execute The Test

go test -v -cover -coverpkg="./..." "./packages/example" -coverprofile="coverage.data"

If there are use cases that fail the test, you can view them in the console

View Test Report

go tool cover -html="coverage.data" -o coverage.html

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.