Skip to content

XDCFoundation/XDC3Go

Repository files navigation

XDC3Go

Installation

Install all below require Dependencies before install this SDK.

  • There are two options to run this project.
  1. Run this command go get github.com/XDCFoundation/XDC3Go
  2. For step 2 follow all below steps.
  • Step1: Clone git repo (XDC3Go) in any folder and copy it.
  • Step2: go to that directory where your golang save. (go to your go folder).
  • Step3: Find SRC in your go folder .
  • Step4: Open SRC Folder and find github.com folder.
  • Step5: Open github.com folder and create new folder that would be XDCFoundation.
  • Step6: Open XDCFoundation Folder and pasted your XDC3Go git repo in it.

Note - Please Install all below require Dependencies first.

Requirements

  • Import this SDK in your Project like this...
import(
	"github.com/XDCFoundation/XDC3Go/XRC20"
)

Note - Only for XRC20 Tokens.

  • Import this SDK in your Project like this...
import(
	"github.com/XDCFoundation/XDC3Go/XRC721"
)

Note - Only for XRC721 Tokens.

Dependencies

Before run this SDK first you need to install all below Dependencies.

  • go get github.com/gorilla/websocket

  • go get github.com/deckarep/golang-set

  • go get github.com/go-ole/go-ole

  • go get github.com/go-ole/go-ole/oleutil

  • go get github.com/go-stack/stack

  • go get github.com/shirou/gopsutil/cpu

  • go get github.com/StackExchange/wmi

  • go get github.com/gorilla/mux

  • go get golang.org/x/crypto/hkdf

  • go get golang.org/x/crypto/pbkdf2

  • go get golang.org/x/crypto/ripemd160

  • go get golang.org/x/crypto/scrypt

  • go get golang.org/x/crypto/sha3

  • go get golang.org/x/sync/errgroup

  • go get golang.org/x/sys/cpu

  • go get golang.org/x/sys/windows

  • go get golang.org/x/text/unicode/norm

  • go get gopkg.in/natefinch/npipe.v2