eos

package
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 11, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	BaseURL string
}

Client - EOS client

type GetABIResp

type GetABIResp struct {
	AccountName string      `json:"account_name"`
	ABI         interface{} `json:"abi"`
}

GetABIResp - response of get abi

type GetAccountResp

type GetAccountResp struct {
	AccountName string `json:"account_name"`
}

GetAccountResp - response of get account

type Validator

type Validator struct {
	// contains filtered or unexported fields
}

Validator - EOS address validator

func New

func New(baseURL string, contractWhitelist []string) *Validator

New - Create a new EOS address validator

func (*Validator) ValidateAddress

func (e *Validator) ValidateAddress(addr string, isTestnet bool) (isValid bool, msg string)

ValidateAddress ...

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL