transactionchecksplit

package
v0.0.0-...-c316231 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Blockchain

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

func NewBlockchain

func NewBlockchain(rpc string, chainId uint, privateKeyStr string) (*Blockchain, error)

func (*Blockchain) CheckTx

func (b *Blockchain) CheckTx(ctx context.Context, params Transaction) (MintResult, error)

func (*Blockchain) SendTx

func (b *Blockchain) SendTx(ctx context.Context, params Mint, nonce int) (Transaction, error)

type Mint

type Mint struct {
	Contract string
	To       string
	Quantity int
}

type MintResult

type MintResult struct {
	Hash    string
	Success bool
	TokenId uint
}

func Workflow

func Workflow(ctx workflow.Context, params Mint) (MintResult, error)

type Transaction

type Transaction struct {
	Contract string
	Hash     string
	Nonce    int64
	Retries  int
}

type TxCreationReverted

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

func (TxCreationReverted) Error

func (e TxCreationReverted) Error() string

type TxPending

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

func (TxPending) Error

func (e TxPending) Error() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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