common

package
v0.0.0-...-a3a194d Latest Latest
Warning

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

Go to latest
Published: May 30, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PushActions

func PushActions(api *API, actions ...*eos.Action) (*eos.PushTransactionFullResp, error)

PushActions push action to chain

Types

type API

type API struct {
	*eos.API
	Cfg config.Config
}

API client api to forceio chain

func NewAPI

func NewAPI(cfg *config.Config) (*API, error)

NewAPI create api to apiURL

type ConfigSigner

type ConfigSigner struct {
	Keys []*ecc.PrivateKey `json:"keys"`
	// contains filtered or unexported fields
}

ConfigSigner singer with use config keys

func NewConfigSigner

func NewConfigSigner(api *API) *ConfigSigner

NewConfigSigner create config signer with keys in config in api

func (*ConfigSigner) AvailableKeys

func (c *ConfigSigner) AvailableKeys() (out []ecc.PublicKey, err error)

AvailableKeys imp Signer interface

func (*ConfigSigner) ImportPrivateKey

func (c *ConfigSigner) ImportPrivateKey(wifPrivKey string) (err error)

ImportPrivateKey imp Signer interface

func (*ConfigSigner) Sign

func (c *ConfigSigner) Sign(tx *eos.SignedTransaction, chainID []byte, requiredKeys ...ecc.PublicKey) (*eos.SignedTransaction, error)

Sign imp Signer interface

Jump to

Keyboard shortcuts

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