package db

import "github.com/ethereum/go-ethereum/accounts/abi/bind/v2/internal/contracts/db"

Index

Constants

const DBInsertEventName = "Insert"
const DBKeyedInsertEventName = "KeyedInsert"

Variables

var DBMetaData = bind.MetaData{
	ABI: "" /* 2371 byte string literal not displayed */,
	ID:  "253cc2574e2f8b5e909644530e4934f6ac",
	Bin: "" /* 3240 byte string literal not displayed */,
}

DBMetaData contains all meta data concerning the DB contract.

Types

type DB

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

DB is an auto generated Go binding around an Ethereum contract.

func NewDB

func NewDB() *DB

NewDB creates a new instance of DB.

func (*DB) Instance

func (c *DB) Instance(backend bind.ContractBackend, addr common.Address) *bind.BoundContract

Instance creates a wrapper for a deployed contract instance at the given address. Use this to create the instance object passed to abigen v2 library functions Call, Transact, etc.

func (*DB) PackGet

func (dB *DB) PackGet(k *big.Int) []byte

PackGet is the Go binding used to pack the parameters required for calling the contract method with ID 0x9507d39a. This method will panic if any invalid/nil inputs are passed.

Solidity: function get(uint256 k) returns(uint256)

func (*DB) PackGetNamedStatParams

func (dB *DB) PackGetNamedStatParams() []byte

PackGetNamedStatParams is the Go binding used to pack the parameters required for calling the contract method with ID 0xe369ba3b. This method will panic if any invalid/nil inputs are passed.

Solidity: function getNamedStatParams() view returns(uint256 gets, uint256 inserts, uint256 mods)

func (*DB) PackGetStatParams

func (dB *DB) PackGetStatParams() []byte

PackGetStatParams is the Go binding used to pack the parameters required for calling the contract method with ID 0x6fcb9c70. This method will panic if any invalid/nil inputs are passed.

Solidity: function getStatParams() view returns(uint256, uint256, uint256)

func (*DB) PackGetStatsStruct

func (dB *DB) PackGetStatsStruct() []byte

PackGetStatsStruct is the Go binding used to pack the parameters required for calling the contract method with ID 0xee8161e0. This method will panic if any invalid/nil inputs are passed.

Solidity: function getStatsStruct() view returns((uint256,uint256,uint256))

func (*DB) PackInsert

func (dB *DB) PackInsert(k *big.Int, v *big.Int) []byte

PackInsert is the Go binding used to pack the parameters required for calling the contract method with ID 0x1d834a1b. This method will panic if any invalid/nil inputs are passed.

Solidity: function insert(uint256 k, uint256 v) returns(uint256)

func (*DB) TryPackGet

func (dB *DB) TryPackGet(k *big.Int) ([]byte, error)

TryPackGet is the Go binding used to pack the parameters required for calling the contract method with ID 0x9507d39a. This method will return an error if any inputs are invalid/nil.

Solidity: function get(uint256 k) returns(uint256)

func (*DB) TryPackGetNamedStatParams

func (dB *DB) TryPackGetNamedStatParams() ([]byte, error)

TryPackGetNamedStatParams is the Go binding used to pack the parameters required for calling the contract method with ID 0xe369ba3b. This method will return an error if any inputs are invalid/nil.

Solidity: function getNamedStatParams() view returns(uint256 gets, uint256 inserts, uint256 mods)

func (*DB) TryPackGetStatParams

func (dB *DB) TryPackGetStatParams() ([]byte, error)

TryPackGetStatParams is the Go binding used to pack the parameters required for calling the contract method with ID 0x6fcb9c70. This method will return an error if any inputs are invalid/nil.

Solidity: function getStatParams() view returns(uint256, uint256, uint256)

func (*DB) TryPackGetStatsStruct

func (dB *DB) TryPackGetStatsStruct() ([]byte, error)

TryPackGetStatsStruct is the Go binding used to pack the parameters required for calling the contract method with ID 0xee8161e0. This method will return an error if any inputs are invalid/nil.

Solidity: function getStatsStruct() view returns((uint256,uint256,uint256))

func (*DB) TryPackInsert

func (dB *DB) TryPackInsert(k *big.Int, v *big.Int) ([]byte, error)

TryPackInsert is the Go binding used to pack the parameters required for calling the contract method with ID 0x1d834a1b. This method will return an error if any inputs are invalid/nil.

Solidity: function insert(uint256 k, uint256 v) returns(uint256)

func (*DB) UnpackGet

func (dB *DB) UnpackGet(data []byte) (*big.Int, error)

UnpackGet is the Go binding that unpacks the parameters returned from invoking the contract method with ID 0x9507d39a.

Solidity: function get(uint256 k) returns(uint256)

func (*DB) UnpackGetNamedStatParams

func (dB *DB) UnpackGetNamedStatParams(data []byte) (GetNamedStatParamsOutput, error)

UnpackGetNamedStatParams is the Go binding that unpacks the parameters returned from invoking the contract method with ID 0xe369ba3b.

Solidity: function getNamedStatParams() view returns(uint256 gets, uint256 inserts, uint256 mods)

func (*DB) UnpackGetStatParams

func (dB *DB) UnpackGetStatParams(data []byte) (GetStatParamsOutput, error)

UnpackGetStatParams is the Go binding that unpacks the parameters returned from invoking the contract method with ID 0x6fcb9c70.

Solidity: function getStatParams() view returns(uint256, uint256, uint256)

func (*DB) UnpackGetStatsStruct

func (dB *DB) UnpackGetStatsStruct(data []byte) (DBStats, error)

UnpackGetStatsStruct is the Go binding that unpacks the parameters returned from invoking the contract method with ID 0xee8161e0.

Solidity: function getStatsStruct() view returns((uint256,uint256,uint256))

func (*DB) UnpackInsert

func (dB *DB) UnpackInsert(data []byte) (*big.Int, error)

UnpackInsert is the Go binding that unpacks the parameters returned from invoking the contract method with ID 0x1d834a1b.

Solidity: function insert(uint256 k, uint256 v) returns(uint256)

func (*DB) UnpackInsertEvent

func (dB *DB) UnpackInsertEvent(log *types.Log) (*DBInsert, error)

UnpackInsertEvent is the Go binding that unpacks the event data emitted by contract.

Solidity: event Insert(uint256 key, uint256 value, uint256 length)

func (*DB) UnpackKeyedInsertEvent

func (dB *DB) UnpackKeyedInsertEvent(log *types.Log) (*DBKeyedInsert, error)

UnpackKeyedInsertEvent is the Go binding that unpacks the event data emitted by contract.

Solidity: event KeyedInsert(uint256 indexed key, uint256 value)

type DBInsert

type DBInsert struct {
	Key    *big.Int
	Value  *big.Int
	Length *big.Int
	Raw    *types.Log // Blockchain specific contextual infos
}

DBInsert represents a Insert event raised by the DB contract.

func (DBInsert) ContractEventName

func (DBInsert) ContractEventName() string

ContractEventName returns the user-defined event name.

type DBKeyedInsert

type DBKeyedInsert struct {
	Key   *big.Int
	Value *big.Int
	Raw   *types.Log // Blockchain specific contextual infos
}

DBKeyedInsert represents a KeyedInsert event raised by the DB contract.

func (DBKeyedInsert) ContractEventName

func (DBKeyedInsert) ContractEventName() string

ContractEventName returns the user-defined event name.

type DBStats

type DBStats struct {
	Gets    *big.Int
	Inserts *big.Int
	Mods    *big.Int
}

DBStats is an auto generated low-level Go binding around an user-defined struct.

type GetNamedStatParamsOutput

type GetNamedStatParamsOutput struct {
	Gets    *big.Int
	Inserts *big.Int
	Mods    *big.Int
}

GetNamedStatParamsOutput serves as a container for the return parameters of contract method GetNamedStatParams.

type GetStatParamsOutput

type GetStatParamsOutput struct {
	Arg0 *big.Int
	Arg1 *big.Int
	Arg2 *big.Int
}

GetStatParamsOutput serves as a container for the return parameters of contract method GetStatParams.

Source Files

bindings.go

Version
v1.16.1 (latest)
Published
Jul 2, 2025
Platform
linux/amd64
Imports
7 packages
Last checked
18 hours ago

Tools for package owners.