Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var DefaultRunSQLConfig = RunSQLConfig{
SuggestedGasPriceMultiplier: 1.0,
}
DefaultRunSQLConfig is the default configuration for RunSQL if no options are passed.
Functions ¶
This section is empty.
Types ¶
type RunSQLConfig ¶ added in v1.0.1
type RunSQLConfig struct {
SuggestedGasPriceMultiplier float64
}
RunSQLConfig contains configuration attributes to call Write.
type RunSQLOption ¶ added in v1.0.1
type RunSQLOption func(*RunSQLConfig) error
RunSQLOption changes the behavior of the Write method.
func WithSuggestedPriceMultiplier ¶ added in v1.0.1
func WithSuggestedPriceMultiplier(m float64) RunSQLOption
WithSuggestedPriceMultiplier allows to modify the gas priced to be used with respect with the suggested gas price. For example, if `m=1.2` then the gas price to be used will be `suggestedGasPrice * 1.2`.
type TableID ¶
TableID is the ID of a Table.
func NewTableID ¶
NewTableID creates a TableID from a string representation of the uint256.
func NewTableIDFromInt64 ¶
NewTableIDFromInt64 returns a TableID from a int64.
type TablelandTables ¶
type TablelandTables interface { // CreateTable mints a new table NFT. CreateTable(context.Context, common.Address, string) (Transaction, error) // IsOwner checks if the provided address is the owner of the provided table. IsOwner(context.Context, common.Address, *big.Int) (bool, error) // RunSQL sends a transaction with a SQL statement to the Tabeland Smart Contract. RunSQL(context.Context, common.Address, TableID, string, ...RunSQLOption) (Transaction, error) // SetController sends a transaction that sets the controller for a token id in Smart Contract. SetController(context.Context, common.Address, TableID, common.Address) (Transaction, error) }
TablelandTables defines the interface for interaction with the TablelandTables smart contract.
type Transaction ¶
Transaction represents a Smart Contract transaction.