model

package
v0.0.0-...-0264a13 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2023 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

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

func NewAccount

func NewAccount(privateKeyHex string, chainId *big.Int) (*Account, error)

func (Account) Address

func (a Account) Address() common.Address

func (Account) ChainId

func (a Account) ChainId() *big.Int

func (Account) PrivateKey

func (a Account) PrivateKey() *ecdsa.PrivateKey

type ContractInfo

type ContractInfo struct {
	Name           string         `yaml:"name"`
	ShortName      string         `yaml:"short_name"`
	Address        common.Address `yaml:"address"`
	Version        string         `yaml:"version"`
	GasLimit       uint32         `yaml:"gas_limit"`
	ExecutionLimit uint64         `yaml:"execution_limit"`
}

type Upkeep

type Upkeep struct {
	Name           string
	EncryptedEmail []byte
	UpkeepContract ContractInfo
	GasLimit       uint32
	AdminAddress   common.Address
	CheckData      []byte
	Limit          uint64
	Offset         uint64
	OffchainConfig []byte
	Amount         *big.Int
	Sender         common.Address
}

type UpkeepTopup

type UpkeepTopup struct {
	UpkeepId big.Int
	Amount   big.Int
}

Jump to

Keyboard shortcuts

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