migrator

package
v0.9.0-beta9 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2021 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Overview

Code generated by rice embed-go; DO NOT EDIT.

Index

Constants

This section is empty.

Variables

View Source
var AN = eos.AN
View Source
var ActN = eos.ActN
View Source
var PN = eos.PN

Functions

func NewExporter

func NewExporter(snapshotPath, dataDir string, opts ...Option) (*exporter, error)

func SN

func SN(in string) eos.ScopeName

func TN

func TN(in string) eos.TableName

Types

type Account

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

func (*Account) SetLogger

func (a *Account) SetLogger(logger *zap.Logger)

type AccountInfo

type AccountInfo struct {
	Permissions []*PermissionObject `json:"permissions"`
	LinkAuths   []*LinkAuth         `json:"link_auths"`
	// contains filtered or unexported fields
}

type Contract

type Contract struct {
	RawABI []byte
	Code   []byte
}

func NewContract

func NewContract(abi []byte, code []byte) *Contract

type Eject

type Eject struct {
	Account eos.AccountName `json:"account"`
	Table   eos.TableName   `json:"table"`
	Scope   eos.ScopeName   `json:"scope"`
	Key     eos.Name        `json:"id"`
}

Delete represents the `Delete` struct on `migration` contract.

type Idxc

type Idxc struct {
	Table     eos.TableName   `json:"table"`
	Scope     eos.ScopeName   `json:"scope"`
	Payer     eos.Name        `json:"payer"`
	Key       eos.Name        `json:"id"`
	Secondary eos.Checksum256 `json:"secondary"`
}

Idxc represents the `Idxc` struct on `migration` contract.

type Idxdbl

type Idxdbl struct {
	Table     eos.TableName `json:"table"`
	Scope     eos.ScopeName `json:"scope"`
	Payer     eos.Name      `json:"payer"`
	Key       eos.Name      `json:"id"`
	Secondary float64       `json:"secondary"`
}

Idxdbl represents the `Idxdbl` struct on `migration` contract.

type Idxi

type Idxi struct {
	Table     eos.TableName `json:"table"`
	Scope     eos.ScopeName `json:"scope"`
	Payer     eos.Name      `json:"payer"`
	Key       eos.Name      `json:"id"`
	Secondary eos.Name      `json:"secondary"`
}

Idxi represents the `Idxi` struct on `migration` contract.

type Idxii

type Idxii struct {
	Table     eos.TableName `json:"table"`
	Scope     eos.ScopeName `json:"scope"`
	Payer     eos.Name      `json:"payer"`
	Key       eos.Name      `json:"id"`
	Secondary eos.Uint128   `json:"secondary"`
}

Idxii represents the `Idxii` struct on `migration` contract.

type Idxldbl

type Idxldbl struct {
	Table     eos.TableName `json:"table"`
	Scope     eos.ScopeName `json:"scope"`
	Payer     eos.Name      `json:"payer"`
	Key       eos.Name      `json:"id"`
	Secondary eos.Float128  `json:"secondary"`
}

Idxldbl represents the `Idxldbl` struct on `migration` contract.

type Inject

type Inject struct {
	Table eos.TableName `json:"table"`
	Scope eos.ScopeName `json:"scope"`
	Payer eos.Name      `json:"payer"`
	Key   eos.Name      `json:"id"`
	Data  eos.HexBytes  `json:"data"`
}

Inject represents the `inject` struct on `migration` contract.

type LinkAuth

type LinkAuth struct {
	Permission string `json:"permission"`
	Contract   string `json:"contract"`
	Action     string `json:"action"`
}

type OpMigration

type OpMigration struct {
	DataDir string `json:"data_dir"`
}

func (*OpMigration) Actions

func (op *OpMigration) Actions(opPubkey ecc.PublicKey, c *config.OpConfig, in chan interface{}) error

func (*OpMigration) RequireValidation

func (op *OpMigration) RequireValidation() bool

type Option

type Option func(e *exporter) *exporter

func WithLogger

func WithLogger(logger *zap.Logger) Option

type PermissionObject

type PermissionObject struct {
	// Parent of this permission object
	Parent eos.PermissionName `json:"parent,omitempty"`
	// Owner is the account for which this permission belongs to
	Owner eos.AccountName `json:"owner,omitempty"`
	// Name is the permission's name this permission object is known as (human-readable name for the permission)
	Name eos.PermissionName `json:"name,omitempty"`
	// Authority required to execute this permission
	Authority *eos.Authority `json:"authority,omitempty"`
}

Jump to

Keyboard shortcuts

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