common

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const Denomination = "ugnot"

Variables

View Source
var DefaultGasPrice = std.GasPrice{
	Gas: 1000,
	Price: std.Coin{
		Denom:  Denomination,
		Amount: 1,
	},
}

DefaultGasPrice represents the gno.land chain's default minimum gas price ratio, which is 0.001ugnot/gas

Functions

func CalculateFeeInRatio added in v1.5.0

func CalculateFeeInRatio(gasWanted int64, reference std.GasPrice) std.Fee

CalculateFeeInRatio calculates the minimum gas fee that should be specified in a transaction, given the gas wanted (of the tx) and the reference gas ratio

Types

type Batch

type Batch interface {
	// AddTxBroadcast adds the transaction broadcast to the batch
	AddTxBroadcast(tx []byte) error

	// Execute executes the batch send
	Execute() ([]interface{}, error)
}

Batch is a common transaction batch

Jump to

Keyboard shortcuts

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