evt

package
v0.0.0-...-eb4c3ac Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Authorizer

type Authorizer struct {
	Ref    string `json:"ref"`
	Weight int    `json:"weight"`
}

type GetDomainRequest

type GetDomainRequest struct {
	Name string `json:"name"`
}

type GetDomainResult

type GetDomainResult struct {
	Name      string `json:"name"`
	Creator   string `json:"creator"`
	IssueTime string `json:"issue_time"`
	Address   string `json:"address"`
	Issue     Role   `json:"issue"`
	Transfer  Role   `json:"transfer"`
	Manage    Role   `json:"manage"`
}

type GetFungibleBalanceRequest

type GetFungibleBalanceRequest struct {
	SymId   uint   `json:"sym_id"`
	Address string `json:"address"`
}

type GetFungibleBalanceResult

type GetFungibleBalanceResult = []string

type GetFungibleRequest

type GetFungibleRequest struct {
	Id string `json:"id"`
}

type GetFungibleResult

type GetFungibleResult struct {
	Name          string                 `json:"name"`
	SymName       string                 `json:"sym_name"`
	Sym           string                 `json:"sym"`
	Creator       string                 `json:"creator"`
	CreateTime    string                 `json:"create_time"`
	Issue         evttypes.PermissionDef `json:"issue"`
	Manage        evttypes.PermissionDef `json:"manage"`
	TotalSupply   string                 `json:"total_supply"`
	Metas         []map[string]string    `json:"metas"`
	CurrentSupply string                 `json:"current_supply"`
	Address       string                 `json:"address"`
}

type GetGroupRequest

type GetGroupRequest struct {
	Name string `json:"name"`
}

type GetGroupResult

type GetGroupResult struct {
	Name string `json:"name"`
	Key  string `json:"key"`
	Root struct {
		Threshold int `json:"threshold"`
		Weight    int `json:"weight"`
		Nodes     []struct {
			Threshold int `json:"threshold,omitempty"`
			Weight    int `json:"weight"`
			Nodes     []struct {
				Key    string `json:"key"`
				Weight int    `json:"weight"`
			} `json:"nodes,omitempty"`
			Key string `json:"key,omitempty"`
		} `json:"nodes"`
	} `json:"root"`
}

type GetSuspendRequest

type GetSuspendRequest struct {
	Id string `json:"id"`
}

type GetSuspendResult

type GetSuspendResult struct {
	Name     string `json:"name"`
	Proposer string `json:"proposer"`
	Status   string `json:"status"`
	Trx      struct {
		Expiration            string                `json:"expiration"`
		RefBlockNum           int                   `json:"ref_block_num"`
		RefBlockPrefix        int                   `json:"ref_block_prefix"`
		MaxCharge             int                   `json:"max_charge"`
		Payer                 string                `json:"payer"`
		Actions               []evttypes.FullAction `json:"actions"`
		TransactionExtensions []interface{}         `json:"transaction_extensions"`
	} `json:"trx"`
	SignedKeys []string `json:"signed_keys"`
	Signatures []string `json:"signatures"`
}

type GetTokenRequest

type GetTokenRequest struct {
	Domain string `json:"domain"`
	Name   string `json:"name"`
}

type GetTokenResult

type GetTokenResult struct {
}

type GetTokensRequest

type GetTokensRequest struct {
	Domain string `json:"domain"`
	Skip   int    `json:"skip"`
	Take   int    `json:"take"`
}

type GetTokensResult

type GetTokensResult = []interface{}

type Instance

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

func New

func New(config *evtconfig.Instance, client *client.Instance) *Instance

func (*Instance) GetDomain

func (it *Instance) GetDomain(domainName string) (*GetDomainResult, *client.ApiError)

func (*Instance) GetFungible

func (it *Instance) GetFungible(id string) (*GetFungibleResult, *client.ApiError)

func (*Instance) GetFungibleBalance

func (it *Instance) GetFungibleBalance(symid uint, address string) (*GetFungibleBalanceResult, *client.ApiError)

func (*Instance) GetGroup

func (it *Instance) GetGroup(domainName string) (*GetGroupResult, *client.ApiError)

func (*Instance) GetSuspend

func (it *Instance) GetSuspend(id string) (*GetSuspendResult, *client.ApiError)

func (*Instance) GetToken

func (it *Instance) GetToken(domainName string, tokenName string) (*GetTokenResult, *client.ApiError)

func (*Instance) GetTokens

func (it *Instance) GetTokens(domainName string, skip int, take int) (*GetTokensResult, *client.ApiError)

type Role

type Role struct {
	Name        string       `json:"name"`
	Threshold   int          `json:"threshold"`
	Authorizers []Authorizer `json:"authorizers"`
}

Jump to

Keyboard shortcuts

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