package db
import "github.com/ethereum/go-ethereum/accounts/abi/bind/v2/internal/contracts/db"
Index ¶
- Constants
- Variables
- type DB
- func NewDB() *DB
- func (c *DB) Instance(backend bind.ContractBackend, addr common.Address) *bind.BoundContract
- func (dB *DB) PackGet(k *big.Int) []byte
- func (dB *DB) PackGetNamedStatParams() []byte
- func (dB *DB) PackGetStatParams() []byte
- func (dB *DB) PackGetStatsStruct() []byte
- func (dB *DB) PackInsert(k *big.Int, v *big.Int) []byte
- func (dB *DB) TryPackGet(k *big.Int) ([]byte, error)
- func (dB *DB) TryPackGetNamedStatParams() ([]byte, error)
- func (dB *DB) TryPackGetStatParams() ([]byte, error)
- func (dB *DB) TryPackGetStatsStruct() ([]byte, error)
- func (dB *DB) TryPackInsert(k *big.Int, v *big.Int) ([]byte, error)
- func (dB *DB) UnpackGet(data []byte) (*big.Int, error)
- func (dB *DB) UnpackGetNamedStatParams(data []byte) (GetNamedStatParamsOutput, error)
- func (dB *DB) UnpackGetStatParams(data []byte) (GetStatParamsOutput, error)
- func (dB *DB) UnpackGetStatsStruct(data []byte) (DBStats, error)
- func (dB *DB) UnpackInsert(data []byte) (*big.Int, error)
- func (dB *DB) UnpackInsertEvent(log *types.Log) (*DBInsert, error)
- func (dB *DB) UnpackKeyedInsertEvent(log *types.Log) (*DBKeyedInsert, error)
- type DBInsert
- type DBKeyedInsert
- type DBStats
- type GetNamedStatParamsOutput
- type GetStatParamsOutput
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
DBStats is an auto generated low-level Go binding around an user-defined struct.
type GetNamedStatParamsOutput ¶
GetNamedStatParamsOutput serves as a container for the return parameters of contract method GetNamedStatParams.
type GetStatParamsOutput ¶
GetStatParamsOutput serves as a container for the return parameters of contract method GetStatParams.
Source Files ¶
- Version
- v1.16.1 (latest)
- Published
- Jul 2, 2025
- Platform
- linux/amd64
- Imports
- 7 packages
- Last checked
- 18 hours ago –
Tools for package owners.