assets

package
v0.0.0-...-80b2b3e Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProcessAssetOperations

func ProcessAssetOperations(ctx context.Context, unit UnitOfWork, provider AssetProvider) (err error)

Types

type AssetProvider

type AssetProvider interface {
	Operation(ctx context.Context, blockHash, transactionHash string) (op rpc_client.Operation, err error)
	Script(ctx context.Context, contractHash string) (bm michelson.BigMap, err error)
}

type AssetRepo

type AssetRepo interface {
	GetUnprocessedAssetTxs(tokenID string) ([]models.Operation, error)
}

type Transfer

type Transfer struct {
	Transfer interface{} `json:"transfer"`
	From     string      `json:"from"`
	To       string      `json:"to"`
	Value    string      `json:"value"`

	//	Mint
	Mint []string `json:"mint"`
}

type UnitOfWork

type UnitOfWork interface {
	GetAssets() assets.Repo
	GetOperation() operation.Repo
}

Jump to

Keyboard shortcuts

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