cosmos

package
v0.0.0-...-4334f35 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2023 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateClaims

func CreateClaims(orcAddress sdk.AccAddress, deposits []Deposit, batches []Batch, valsets []Valset) []sdk.Msg

func GetAccount

func GetAccount(mnemonic string) (sdk.AccAddress, *secp256k1.PrivKey)

func GetLastMinterNonce

func GetLastMinterNonce(address string, conn *grpc.ClientConn) uint64

func SendCosmosTx

func SendCosmosTx(msgs []sdk.Msg, address sdk.AccAddress, priv crypto.PrivKey, cosmosConn *grpc.ClientConn, logger log.Logger, retry bool)

func Setup

func Setup()

Types

type Batch

type Batch struct {
	BatchNonce uint64
	EventNonce uint64
	CoinId     uint64
	TxHash     string
	Height     uint64
}

type Deposit

type Deposit struct {
	Recipient  string
	Amount     string
	Fee        string
	EventNonce uint64
	Sender     string
	CoinID     uint64
	Type       string
	TxHash     string
	Height     uint64
}

type Valset

type Valset struct {
	ValsetNonce uint64
	EventNonce  uint64
	TxHash      string
	Height      uint64
	Members     []*mhub.ExternalSigner
}

Jump to

Keyboard shortcuts

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