tables

package
v1.0.1-beta-2 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2023 License: MIT, Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TableID

type TableID big.Int

TableID is the ID of a Table.

func NewTableID

func NewTableID(strID string) (TableID, error)

NewTableID creates a TableID from a string representation of the uint256.

func NewTableIDFromInt64

func NewTableIDFromInt64(intID int64) (TableID, error)

NewTableIDFromInt64 returns a TableID from a int64.

func (TableID) String

func (tid TableID) String() string

String returns a string representation of the TableID.

func (TableID) ToBigInt

func (tid TableID) ToBigInt() *big.Int

ToBigInt returns a *big.Int representation of the TableID.

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) (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

type Transaction interface {
	Hash() common.Hash
}

Transaction represents a Smart Contract transaction.

Jump to

Keyboard shortcuts

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