model

package
v0.0.0-...-12b389a Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplicationConfig

type ApplicationConfig struct {
	NodeURL         string `mapstructure:"nodeURL"`
	WSURL           string `mapstructure:"wsURL"`
	ContractAddress string `mapstructure:"contractAddress"`
	NodeKeyPath     string `mapstructure:"nodeKeyPath"`
	NodeAddressPath string `mapstructure:"nodeAddressPath"`
	Key             string `mapstructure:"key"`
	Port            string `mapstructure:"port"`
}

type CallRequest

type CallRequest struct {
	From string `json:"from"`
	To   string `json:"to"`
	Gas  string `json:"gas"`
	Data string `json:"data"`
}

CallRequest to simulate JSON-RPC transaction

type Config

type Config struct {
	Application ApplicationConfig `mapstructure:"application"`
	KeyStore    KeyStoreConfig    `mapstructure:"keystore"`
	Passphrase  PassphraseConfig  `mapstructure:"passphrase"`
	Security    SecurityConfig    `mapstructure:"security"`
}

type KeyStoreConfig

type KeyStoreConfig struct {
	Agent string `mapstructure:"agent"`
}

type PassphraseConfig

type PassphraseConfig struct {
	Agent string `mapstructure:"agent"`
}

type RawTransaction

type RawTransaction struct {
	Data txdata
}

func NewContractCreation

func NewContractCreation(nonce uint64, amount *big.Int, gasLimit uint64, gasPrice *big.Int, data []byte) *RawTransaction

func NewTransaction

func NewTransaction(nonce uint64, to common.Address, amount *big.Int, gasLimit uint64, gasPrice *big.Int, data []byte) *RawTransaction

type SecurityConfig

type SecurityConfig struct {
	PermissionsEnabled     bool   `mapstructure:"permissionsEnabled"`
	AccountContractAddress string `mapstructure:"accountContractAddress"`
}

Jump to

Keyboard shortcuts

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