converter

package
v1.3.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Converter

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

Converter converts Flow Events into Rosetta Operations.

func New

func New(gen Generator) (*Converter, error)

New instantiates and returns a new converter using the given Generator.

func (*Converter) EventToOperation

func (c *Converter) EventToOperation(event flow.Event) (operation *object.Operation, err error)

EventToOperation converts a flow.Event into a Rosetta Operation.

type Generator

type Generator interface {
	TokensDeposited(symbol string) (string, error)
	TokensWithdrawn(symbol string) (string, error)
}

Generator represents something that can generate scripts for retrieving the amounts deposited and withdrawn for a given token.

Jump to

Keyboard shortcuts

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