gasdataharness

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package gasdataharness implements the GasDataHarness contract.

Code generated by synapse abigen DO NOT EDIT.

Index

Constants

This section is empty.

Variables

View Source
var Contracts map[string]*compiler.Contract

Contracts are unmarshalled on start

View Source
var GasDataHarnessABI = GasDataHarnessMetaData.ABI

GasDataHarnessABI is the input ABI used to generate the binding from. Deprecated: Use GasDataHarnessMetaData.ABI instead.

View Source
var GasDataHarnessBin = GasDataHarnessMetaData.Bin

GasDataHarnessBin is the compiled bytecode used for deploying new contracts. Deprecated: Use GasDataHarnessMetaData.Bin instead.

View Source
var GasDataHarnessFuncSigs = GasDataHarnessMetaData.Sigs

Deprecated: Use GasDataHarnessMetaData.Sigs instead. GasDataHarnessFuncSigs maps the 4-byte function signature to its string representation.

View Source
var GasDataHarnessMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"internalType\":\"GasData\",\"name\":\"gasData_\",\"type\":\"uint96\"}],\"name\":\"amortAttCost\",\"outputs\":[{\"internalType\":\"Number\",\"name\":\"\",\"type\":\"uint16\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"GasData\",\"name\":\"gasData_\",\"type\":\"uint96\"}],\"name\":\"dataPrice\",\"outputs\":[{\"internalType\":\"Number\",\"name\":\"\",\"type\":\"uint16\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"ChainGas\",\"name\":\"chainData_\",\"type\":\"uint128\"}],\"name\":\"domain\",\"outputs\":[{\"internalType\":\"uint32\",\"name\":\"\",\"type\":\"uint32\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"GasData\",\"name\":\"gasData_\",\"type\":\"uint96\"},{\"internalType\":\"uint32\",\"name\":\"domain_\",\"type\":\"uint32\"}],\"name\":\"encodeChainGas\",\"outputs\":[{\"internalType\":\"ChainGas\",\"name\":\"\",\"type\":\"uint128\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"Number\",\"name\":\"gasPrice_\",\"type\":\"uint16\"},{\"internalType\":\"Number\",\"name\":\"dataPrice_\",\"type\":\"uint16\"},{\"internalType\":\"Number\",\"name\":\"execBuffer_\",\"type\":\"uint16\"},{\"internalType\":\"Number\",\"name\":\"amortAttCost_\",\"type\":\"uint16\"},{\"internalType\":\"Number\",\"name\":\"etherPrice_\",\"type\":\"uint16\"},{\"internalType\":\"Number\",\"name\":\"markup_\",\"type\":\"uint16\"}],\"name\":\"encodeGasData\",\"outputs\":[{\"internalType\":\"GasData\",\"name\":\"\",\"type\":\"uint96\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"GasData\",\"name\":\"gasData_\",\"type\":\"uint96\"}],\"name\":\"etherPrice\",\"outputs\":[{\"internalType\":\"Number\",\"name\":\"\",\"type\":\"uint16\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"GasData\",\"name\":\"gasData_\",\"type\":\"uint96\"}],\"name\":\"execBuffer\",\"outputs\":[{\"internalType\":\"Number\",\"name\":\"\",\"type\":\"uint16\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"ChainGas\",\"name\":\"chainData_\",\"type\":\"uint128\"}],\"name\":\"gasData\",\"outputs\":[{\"internalType\":\"GasData\",\"name\":\"\",\"type\":\"uint96\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"GasData\",\"name\":\"gasData_\",\"type\":\"uint96\"}],\"name\":\"gasPrice\",\"outputs\":[{\"internalType\":\"Number\",\"name\":\"\",\"type\":\"uint16\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"GasData\",\"name\":\"gasData_\",\"type\":\"uint96\"}],\"name\":\"markup\",\"outputs\":[{\"internalType\":\"Number\",\"name\":\"\",\"type\":\"uint16\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"ChainGas[]\",\"name\":\"snapGas\",\"type\":\"uint128[]\"}],\"name\":\"snapGasHash\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"paddedChainGas\",\"type\":\"uint256\"}],\"name\":\"wrapChainGas\",\"outputs\":[{\"internalType\":\"ChainGas\",\"name\":\"\",\"type\":\"uint128\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"paddedGasData\",\"type\":\"uint256\"}],\"name\":\"wrapGasData\",\"outputs\":[{\"internalType\":\"GasData\",\"name\":\"\",\"type\":\"uint96\"}],\"stateMutability\":\"pure\",\"type\":\"function\"}]",
	Sigs: map[string]string{
		"a1a8a01c": "amortAttCost(uint96)",
		"092d72d1": "dataPrice(uint96)",
		"5f331a83": "domain(uint128)",
		"34ec6ed4": "encodeChainGas(uint96,uint32)",
		"e0fdbe0c": "encodeGasData(uint16,uint16,uint16,uint16,uint16,uint16)",
		"76fb6439": "etherPrice(uint96)",
		"a1ae8d43": "execBuffer(uint96)",
		"56ce0ac4": "gasData(uint128)",
		"e47805cd": "gasPrice(uint96)",
		"405f3dfa": "markup(uint96)",
		"f26b8989": "snapGasHash(uint128[])",
		"13092f82": "wrapChainGas(uint256)",
		"b75c78b3": "wrapGasData(uint256)",
	},
	Bin: "0x608060405234801561001057600080fd5b50610634806100206000396000f3fe608060405234801561001057600080fd5b50600436106100df5760003560e01c806376fb64391161008c578063b75c78b311610066578063b75c78b314610217578063e0fdbe0c14610225578063e47805cd14610238578063f26b89891461024b57600080fd5b806376fb6439146101de578063a1a8a01c146101f1578063a1ae8d431461020457600080fd5b8063405f3dfa116100bd578063405f3dfa1461017357806356ce0ac4146101865780635f331a83146101b657600080fd5b8063092d72d1146100e457806313092f821461010f57806334ec6ed414610143575b600080fd5b6100f76100f23660046103bc565b61026c565b60405161ffff90911681526020015b60405180910390f35b61012261011d3660046103de565b610280565b6040516fffffffffffffffffffffffffffffffff9091168152602001610106565b6101226101513660046103f7565b63ffffffff1660209190911b6fffffffffffffffffffffffff00000000161790565b6100f76101813660046103bc565b610288565b610199610194366004610457565b61029e565b6040516bffffffffffffffffffffffff9091168152602001610106565b6101c96101c4366004610457565b6102b8565b60405163ffffffff9091168152602001610106565b6100f76101ec3660046103bc565b6102d2565b6100f76101ff3660046103bc565b6102ea565b6100f76102123660046103bc565b610300565b61019961011d3660046103de565b610199610233366004610484565b610314565b6100f76102463660046103bc565b610379565b61025e610259366004610527565b610389565b604051908152602001610106565b6000604082901c63ffffffff165b92915050565b60008161027a565b60006bffffffffffffffffffffffff821661027a565b6000602082901c6bffffffffffffffffffffffff1661027a565b60006fffffffffffffffffffffffffffffffff821661027a565b6000601082901c69ffffffffffffffffffff1661027a565b6000602082901c67ffffffffffffffff1661027a565b6000603082901c65ffffffffffff1661027a565b60008061ffff8316601085901b63ffff000016602087901b65ffff0000000016603089901b67ffff0000000000001660408b901b69ffff00000000000000001660508d901b6bffff000000000000000000001617171717175b98975050505050505050565b6000605082901c61ffff1661027a565b805160051b602082012060009061027a565b80356bffffffffffffffffffffffff811681146103b757600080fd5b919050565b6000602082840312156103ce57600080fd5b6103d78261039b565b9392505050565b6000602082840312156103f057600080fd5b5035919050565b6000806040838503121561040a57600080fd5b6104138361039b565b9150602083013563ffffffff8116811461042c57600080fd5b809150509250929050565b80356fffffffffffffffffffffffffffffffff811681146103b757600080fd5b60006020828403121561046957600080fd5b6103d782610437565b803561ffff811681146103b757600080fd5b60008060008060008060c0878903121561049d57600080fd5b6104a687610472565b95506104b460208801610472565b94506104c260408801610472565b93506104d060608801610472565b92506104de60808801610472565b91506104ec60a08801610472565b90509295509295509295565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000602080838503121561053a57600080fd5b823567ffffffffffffffff8082111561055257600080fd5b818501915085601f83011261056657600080fd5b813581811115610578576105786104f8565b8060051b6040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0603f830116810181811085821117156105bb576105bb6104f8565b6040529182528482019250838101850191888311156105d957600080fd5b938501935b8285101561036d576105ef85610437565b845293850193928501926105de56fea26469706673582212205b3c138bc3b2fe660091143b1c98a3c07ab8690d4a1c7f35c2e7bc47264b0dcd64736f6c63430008110033",
}

GasDataHarnessMetaData contains all meta data concerning the GasDataHarness contract.

View Source
var GasDataLibABI = GasDataLibMetaData.ABI

GasDataLibABI is the input ABI used to generate the binding from. Deprecated: Use GasDataLibMetaData.ABI instead.

View Source
var GasDataLibBin = GasDataLibMetaData.Bin

GasDataLibBin is the compiled bytecode used for deploying new contracts. Deprecated: Use GasDataLibMetaData.Bin instead.

View Source
var GasDataLibMetaData = &bind.MetaData{
	ABI: "[]",
	Bin: "0x60566037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220c1f14549a7e5169a415c94bfe0be5e66d517ece7b76c723181e5a27d4f2db38864736f6c63430008110033",
}

GasDataLibMetaData contains all meta data concerning the GasDataLib contract.

View Source
var NumberLibABI = NumberLibMetaData.ABI

NumberLibABI is the input ABI used to generate the binding from. Deprecated: Use NumberLibMetaData.ABI instead.

View Source
var NumberLibBin = NumberLibMetaData.Bin

NumberLibBin is the compiled bytecode used for deploying new contracts. Deprecated: Use NumberLibMetaData.Bin instead.

View Source
var NumberLibMetaData = &bind.MetaData{
	ABI: "[]",
	Bin: "0x60566037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212204e1bb6760b397fabd9933c93d87c178fd961d3161fa6d5a63af4cbcf719fa82564736f6c63430008110033",
}

NumberLibMetaData contains all meta data concerning the NumberLib contract.

Functions

This section is empty.

Types

type GasDataHarness

type GasDataHarness struct {
	GasDataHarnessCaller     // Read-only binding to the contract
	GasDataHarnessTransactor // Write-only binding to the contract
	GasDataHarnessFilterer   // Log filterer for contract events
}

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

func DeployGasDataHarness

func DeployGasDataHarness(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *GasDataHarness, error)

DeployGasDataHarness deploys a new Ethereum contract, binding an instance of GasDataHarness to it.

func NewGasDataHarness

func NewGasDataHarness(address common.Address, backend bind.ContractBackend) (*GasDataHarness, error)

NewGasDataHarness creates a new instance of GasDataHarness, bound to a specific deployed contract.

type GasDataHarnessCaller

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

GasDataHarnessCaller is an auto generated read-only Go binding around an Ethereum contract.

func NewGasDataHarnessCaller

func NewGasDataHarnessCaller(address common.Address, caller bind.ContractCaller) (*GasDataHarnessCaller, error)

NewGasDataHarnessCaller creates a new read-only instance of GasDataHarness, bound to a specific deployed contract.

func (*GasDataHarnessCaller) AmortAttCost

func (_GasDataHarness *GasDataHarnessCaller) AmortAttCost(opts *bind.CallOpts, gasData_ *big.Int) (uint16, error)

AmortAttCost is a free data retrieval call binding the contract method 0xa1a8a01c.

Solidity: function amortAttCost(uint96 gasData_) pure returns(uint16)

func (*GasDataHarnessCaller) DataPrice

func (_GasDataHarness *GasDataHarnessCaller) DataPrice(opts *bind.CallOpts, gasData_ *big.Int) (uint16, error)

DataPrice is a free data retrieval call binding the contract method 0x092d72d1.

Solidity: function dataPrice(uint96 gasData_) pure returns(uint16)

func (*GasDataHarnessCaller) Domain

func (_GasDataHarness *GasDataHarnessCaller) Domain(opts *bind.CallOpts, chainData_ *big.Int) (uint32, error)

Domain is a free data retrieval call binding the contract method 0x5f331a83.

Solidity: function domain(uint128 chainData_) pure returns(uint32)

func (*GasDataHarnessCaller) EncodeChainGas

func (_GasDataHarness *GasDataHarnessCaller) EncodeChainGas(opts *bind.CallOpts, gasData_ *big.Int, domain_ uint32) (*big.Int, error)

EncodeChainGas is a free data retrieval call binding the contract method 0x34ec6ed4.

Solidity: function encodeChainGas(uint96 gasData_, uint32 domain_) pure returns(uint128)

func (*GasDataHarnessCaller) EncodeGasData

func (_GasDataHarness *GasDataHarnessCaller) EncodeGasData(opts *bind.CallOpts, gasPrice_ uint16, dataPrice_ uint16, execBuffer_ uint16, amortAttCost_ uint16, etherPrice_ uint16, markup_ uint16) (*big.Int, error)

EncodeGasData is a free data retrieval call binding the contract method 0xe0fdbe0c.

Solidity: function encodeGasData(uint16 gasPrice_, uint16 dataPrice_, uint16 execBuffer_, uint16 amortAttCost_, uint16 etherPrice_, uint16 markup_) pure returns(uint96)

func (*GasDataHarnessCaller) EtherPrice

func (_GasDataHarness *GasDataHarnessCaller) EtherPrice(opts *bind.CallOpts, gasData_ *big.Int) (uint16, error)

EtherPrice is a free data retrieval call binding the contract method 0x76fb6439.

Solidity: function etherPrice(uint96 gasData_) pure returns(uint16)

func (*GasDataHarnessCaller) ExecBuffer

func (_GasDataHarness *GasDataHarnessCaller) ExecBuffer(opts *bind.CallOpts, gasData_ *big.Int) (uint16, error)

ExecBuffer is a free data retrieval call binding the contract method 0xa1ae8d43.

Solidity: function execBuffer(uint96 gasData_) pure returns(uint16)

func (*GasDataHarnessCaller) GasData

func (_GasDataHarness *GasDataHarnessCaller) GasData(opts *bind.CallOpts, chainData_ *big.Int) (*big.Int, error)

GasData is a free data retrieval call binding the contract method 0x56ce0ac4.

Solidity: function gasData(uint128 chainData_) pure returns(uint96)

func (*GasDataHarnessCaller) GasPrice

func (_GasDataHarness *GasDataHarnessCaller) GasPrice(opts *bind.CallOpts, gasData_ *big.Int) (uint16, error)

GasPrice is a free data retrieval call binding the contract method 0xe47805cd.

Solidity: function gasPrice(uint96 gasData_) pure returns(uint16)

func (*GasDataHarnessCaller) Markup

func (_GasDataHarness *GasDataHarnessCaller) Markup(opts *bind.CallOpts, gasData_ *big.Int) (uint16, error)

Markup is a free data retrieval call binding the contract method 0x405f3dfa.

Solidity: function markup(uint96 gasData_) pure returns(uint16)

func (*GasDataHarnessCaller) SnapGasHash

func (_GasDataHarness *GasDataHarnessCaller) SnapGasHash(opts *bind.CallOpts, snapGas []*big.Int) ([32]byte, error)

SnapGasHash is a free data retrieval call binding the contract method 0xf26b8989.

Solidity: function snapGasHash(uint128[] snapGas) pure returns(bytes32)

func (*GasDataHarnessCaller) WrapChainGas

func (_GasDataHarness *GasDataHarnessCaller) WrapChainGas(opts *bind.CallOpts, paddedChainGas *big.Int) (*big.Int, error)

WrapChainGas is a free data retrieval call binding the contract method 0x13092f82.

Solidity: function wrapChainGas(uint256 paddedChainGas) pure returns(uint128)

func (*GasDataHarnessCaller) WrapGasData

func (_GasDataHarness *GasDataHarnessCaller) WrapGasData(opts *bind.CallOpts, paddedGasData *big.Int) (*big.Int, error)

WrapGasData is a free data retrieval call binding the contract method 0xb75c78b3.

Solidity: function wrapGasData(uint256 paddedGasData) pure returns(uint96)

type GasDataHarnessCallerRaw

type GasDataHarnessCallerRaw struct {
	Contract *GasDataHarnessCaller // Generic read-only contract binding to access the raw methods on
}

GasDataHarnessCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.

func (*GasDataHarnessCallerRaw) Call

func (_GasDataHarness *GasDataHarnessCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error

Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

type GasDataHarnessCallerSession

type GasDataHarnessCallerSession struct {
	Contract *GasDataHarnessCaller // Generic contract caller binding to set the session for
	CallOpts bind.CallOpts         // Call options to use throughout this session
}

GasDataHarnessCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.

func (*GasDataHarnessCallerSession) AmortAttCost

func (_GasDataHarness *GasDataHarnessCallerSession) AmortAttCost(gasData_ *big.Int) (uint16, error)

AmortAttCost is a free data retrieval call binding the contract method 0xa1a8a01c.

Solidity: function amortAttCost(uint96 gasData_) pure returns(uint16)

func (*GasDataHarnessCallerSession) DataPrice

func (_GasDataHarness *GasDataHarnessCallerSession) DataPrice(gasData_ *big.Int) (uint16, error)

DataPrice is a free data retrieval call binding the contract method 0x092d72d1.

Solidity: function dataPrice(uint96 gasData_) pure returns(uint16)

func (*GasDataHarnessCallerSession) Domain

func (_GasDataHarness *GasDataHarnessCallerSession) Domain(chainData_ *big.Int) (uint32, error)

Domain is a free data retrieval call binding the contract method 0x5f331a83.

Solidity: function domain(uint128 chainData_) pure returns(uint32)

func (*GasDataHarnessCallerSession) EncodeChainGas

func (_GasDataHarness *GasDataHarnessCallerSession) EncodeChainGas(gasData_ *big.Int, domain_ uint32) (*big.Int, error)

EncodeChainGas is a free data retrieval call binding the contract method 0x34ec6ed4.

Solidity: function encodeChainGas(uint96 gasData_, uint32 domain_) pure returns(uint128)

func (*GasDataHarnessCallerSession) EncodeGasData

func (_GasDataHarness *GasDataHarnessCallerSession) EncodeGasData(gasPrice_ uint16, dataPrice_ uint16, execBuffer_ uint16, amortAttCost_ uint16, etherPrice_ uint16, markup_ uint16) (*big.Int, error)

EncodeGasData is a free data retrieval call binding the contract method 0xe0fdbe0c.

Solidity: function encodeGasData(uint16 gasPrice_, uint16 dataPrice_, uint16 execBuffer_, uint16 amortAttCost_, uint16 etherPrice_, uint16 markup_) pure returns(uint96)

func (*GasDataHarnessCallerSession) EtherPrice

func (_GasDataHarness *GasDataHarnessCallerSession) EtherPrice(gasData_ *big.Int) (uint16, error)

EtherPrice is a free data retrieval call binding the contract method 0x76fb6439.

Solidity: function etherPrice(uint96 gasData_) pure returns(uint16)

func (*GasDataHarnessCallerSession) ExecBuffer

func (_GasDataHarness *GasDataHarnessCallerSession) ExecBuffer(gasData_ *big.Int) (uint16, error)

ExecBuffer is a free data retrieval call binding the contract method 0xa1ae8d43.

Solidity: function execBuffer(uint96 gasData_) pure returns(uint16)

func (*GasDataHarnessCallerSession) GasData

func (_GasDataHarness *GasDataHarnessCallerSession) GasData(chainData_ *big.Int) (*big.Int, error)

GasData is a free data retrieval call binding the contract method 0x56ce0ac4.

Solidity: function gasData(uint128 chainData_) pure returns(uint96)

func (*GasDataHarnessCallerSession) GasPrice

func (_GasDataHarness *GasDataHarnessCallerSession) GasPrice(gasData_ *big.Int) (uint16, error)

GasPrice is a free data retrieval call binding the contract method 0xe47805cd.

Solidity: function gasPrice(uint96 gasData_) pure returns(uint16)

func (*GasDataHarnessCallerSession) Markup

func (_GasDataHarness *GasDataHarnessCallerSession) Markup(gasData_ *big.Int) (uint16, error)

Markup is a free data retrieval call binding the contract method 0x405f3dfa.

Solidity: function markup(uint96 gasData_) pure returns(uint16)

func (*GasDataHarnessCallerSession) SnapGasHash

func (_GasDataHarness *GasDataHarnessCallerSession) SnapGasHash(snapGas []*big.Int) ([32]byte, error)

SnapGasHash is a free data retrieval call binding the contract method 0xf26b8989.

Solidity: function snapGasHash(uint128[] snapGas) pure returns(bytes32)

func (*GasDataHarnessCallerSession) WrapChainGas

func (_GasDataHarness *GasDataHarnessCallerSession) WrapChainGas(paddedChainGas *big.Int) (*big.Int, error)

WrapChainGas is a free data retrieval call binding the contract method 0x13092f82.

Solidity: function wrapChainGas(uint256 paddedChainGas) pure returns(uint128)

func (*GasDataHarnessCallerSession) WrapGasData

func (_GasDataHarness *GasDataHarnessCallerSession) WrapGasData(paddedGasData *big.Int) (*big.Int, error)

WrapGasData is a free data retrieval call binding the contract method 0xb75c78b3.

Solidity: function wrapGasData(uint256 paddedGasData) pure returns(uint96)

type GasDataHarnessFilterer

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

GasDataHarnessFilterer is an auto generated log filtering Go binding around an Ethereum contract events.

func NewGasDataHarnessFilterer

func NewGasDataHarnessFilterer(address common.Address, filterer bind.ContractFilterer) (*GasDataHarnessFilterer, error)

NewGasDataHarnessFilterer creates a new log filterer instance of GasDataHarness, bound to a specific deployed contract.

type GasDataHarnessRaw

type GasDataHarnessRaw struct {
	Contract *GasDataHarness // Generic contract binding to access the raw methods on
}

GasDataHarnessRaw is an auto generated low-level Go binding around an Ethereum contract.

func (*GasDataHarnessRaw) Call

func (_GasDataHarness *GasDataHarnessRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error

Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

func (*GasDataHarnessRaw) Transact

func (_GasDataHarness *GasDataHarnessRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*GasDataHarnessRaw) Transfer

func (_GasDataHarness *GasDataHarnessRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type GasDataHarnessRef

type GasDataHarnessRef struct {
	*GasDataHarness
	// contains filtered or unexported fields
}

GasDataHarnessRef is a gasData harness reference.

func NewGasDataHarnessRef

func NewGasDataHarnessRef(address common.Address, backend bind.ContractBackend) (*GasDataHarnessRef, error)

NewGasDataHarnessRef creates a new gasData harness.

func (GasDataHarnessRef) Address

func (s GasDataHarnessRef) Address() common.Address

Address gets the address of the contract.

type GasDataHarnessSession

type GasDataHarnessSession struct {
	Contract     *GasDataHarness   // Generic contract binding to set the session for
	CallOpts     bind.CallOpts     // Call options to use throughout this session
	TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}

GasDataHarnessSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.

func (*GasDataHarnessSession) AmortAttCost

func (_GasDataHarness *GasDataHarnessSession) AmortAttCost(gasData_ *big.Int) (uint16, error)

AmortAttCost is a free data retrieval call binding the contract method 0xa1a8a01c.

Solidity: function amortAttCost(uint96 gasData_) pure returns(uint16)

func (*GasDataHarnessSession) DataPrice

func (_GasDataHarness *GasDataHarnessSession) DataPrice(gasData_ *big.Int) (uint16, error)

DataPrice is a free data retrieval call binding the contract method 0x092d72d1.

Solidity: function dataPrice(uint96 gasData_) pure returns(uint16)

func (*GasDataHarnessSession) Domain

func (_GasDataHarness *GasDataHarnessSession) Domain(chainData_ *big.Int) (uint32, error)

Domain is a free data retrieval call binding the contract method 0x5f331a83.

Solidity: function domain(uint128 chainData_) pure returns(uint32)

func (*GasDataHarnessSession) EncodeChainGas

func (_GasDataHarness *GasDataHarnessSession) EncodeChainGas(gasData_ *big.Int, domain_ uint32) (*big.Int, error)

EncodeChainGas is a free data retrieval call binding the contract method 0x34ec6ed4.

Solidity: function encodeChainGas(uint96 gasData_, uint32 domain_) pure returns(uint128)

func (*GasDataHarnessSession) EncodeGasData

func (_GasDataHarness *GasDataHarnessSession) EncodeGasData(gasPrice_ uint16, dataPrice_ uint16, execBuffer_ uint16, amortAttCost_ uint16, etherPrice_ uint16, markup_ uint16) (*big.Int, error)

EncodeGasData is a free data retrieval call binding the contract method 0xe0fdbe0c.

Solidity: function encodeGasData(uint16 gasPrice_, uint16 dataPrice_, uint16 execBuffer_, uint16 amortAttCost_, uint16 etherPrice_, uint16 markup_) pure returns(uint96)

func (*GasDataHarnessSession) EtherPrice

func (_GasDataHarness *GasDataHarnessSession) EtherPrice(gasData_ *big.Int) (uint16, error)

EtherPrice is a free data retrieval call binding the contract method 0x76fb6439.

Solidity: function etherPrice(uint96 gasData_) pure returns(uint16)

func (*GasDataHarnessSession) ExecBuffer

func (_GasDataHarness *GasDataHarnessSession) ExecBuffer(gasData_ *big.Int) (uint16, error)

ExecBuffer is a free data retrieval call binding the contract method 0xa1ae8d43.

Solidity: function execBuffer(uint96 gasData_) pure returns(uint16)

func (*GasDataHarnessSession) GasData

func (_GasDataHarness *GasDataHarnessSession) GasData(chainData_ *big.Int) (*big.Int, error)

GasData is a free data retrieval call binding the contract method 0x56ce0ac4.

Solidity: function gasData(uint128 chainData_) pure returns(uint96)

func (*GasDataHarnessSession) GasPrice

func (_GasDataHarness *GasDataHarnessSession) GasPrice(gasData_ *big.Int) (uint16, error)

GasPrice is a free data retrieval call binding the contract method 0xe47805cd.

Solidity: function gasPrice(uint96 gasData_) pure returns(uint16)

func (*GasDataHarnessSession) Markup

func (_GasDataHarness *GasDataHarnessSession) Markup(gasData_ *big.Int) (uint16, error)

Markup is a free data retrieval call binding the contract method 0x405f3dfa.

Solidity: function markup(uint96 gasData_) pure returns(uint16)

func (*GasDataHarnessSession) SnapGasHash

func (_GasDataHarness *GasDataHarnessSession) SnapGasHash(snapGas []*big.Int) ([32]byte, error)

SnapGasHash is a free data retrieval call binding the contract method 0xf26b8989.

Solidity: function snapGasHash(uint128[] snapGas) pure returns(bytes32)

func (*GasDataHarnessSession) WrapChainGas

func (_GasDataHarness *GasDataHarnessSession) WrapChainGas(paddedChainGas *big.Int) (*big.Int, error)

WrapChainGas is a free data retrieval call binding the contract method 0x13092f82.

Solidity: function wrapChainGas(uint256 paddedChainGas) pure returns(uint128)

func (*GasDataHarnessSession) WrapGasData

func (_GasDataHarness *GasDataHarnessSession) WrapGasData(paddedGasData *big.Int) (*big.Int, error)

WrapGasData is a free data retrieval call binding the contract method 0xb75c78b3.

Solidity: function wrapGasData(uint256 paddedGasData) pure returns(uint96)

type GasDataHarnessTransactor

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

GasDataHarnessTransactor is an auto generated write-only Go binding around an Ethereum contract.

func NewGasDataHarnessTransactor

func NewGasDataHarnessTransactor(address common.Address, transactor bind.ContractTransactor) (*GasDataHarnessTransactor, error)

NewGasDataHarnessTransactor creates a new write-only instance of GasDataHarness, bound to a specific deployed contract.

type GasDataHarnessTransactorRaw

type GasDataHarnessTransactorRaw struct {
	Contract *GasDataHarnessTransactor // Generic write-only contract binding to access the raw methods on
}

GasDataHarnessTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.

func (*GasDataHarnessTransactorRaw) Transact

func (_GasDataHarness *GasDataHarnessTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*GasDataHarnessTransactorRaw) Transfer

func (_GasDataHarness *GasDataHarnessTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type GasDataHarnessTransactorSession

type GasDataHarnessTransactorSession struct {
	Contract     *GasDataHarnessTransactor // Generic contract transactor binding to set the session for
	TransactOpts bind.TransactOpts         // Transaction auth options to use throughout this session
}

GasDataHarnessTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.

type GasDataLib

type GasDataLib struct {
	GasDataLibCaller     // Read-only binding to the contract
	GasDataLibTransactor // Write-only binding to the contract
	GasDataLibFilterer   // Log filterer for contract events
}

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

func DeployGasDataLib

func DeployGasDataLib(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *GasDataLib, error)

DeployGasDataLib deploys a new Ethereum contract, binding an instance of GasDataLib to it.

func NewGasDataLib

func NewGasDataLib(address common.Address, backend bind.ContractBackend) (*GasDataLib, error)

NewGasDataLib creates a new instance of GasDataLib, bound to a specific deployed contract.

type GasDataLibCaller

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

GasDataLibCaller is an auto generated read-only Go binding around an Ethereum contract.

func NewGasDataLibCaller

func NewGasDataLibCaller(address common.Address, caller bind.ContractCaller) (*GasDataLibCaller, error)

NewGasDataLibCaller creates a new read-only instance of GasDataLib, bound to a specific deployed contract.

type GasDataLibCallerRaw

type GasDataLibCallerRaw struct {
	Contract *GasDataLibCaller // Generic read-only contract binding to access the raw methods on
}

GasDataLibCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.

func (*GasDataLibCallerRaw) Call

func (_GasDataLib *GasDataLibCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error

Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

type GasDataLibCallerSession

type GasDataLibCallerSession struct {
	Contract *GasDataLibCaller // Generic contract caller binding to set the session for
	CallOpts bind.CallOpts     // Call options to use throughout this session
}

GasDataLibCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.

type GasDataLibFilterer

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

GasDataLibFilterer is an auto generated log filtering Go binding around an Ethereum contract events.

func NewGasDataLibFilterer

func NewGasDataLibFilterer(address common.Address, filterer bind.ContractFilterer) (*GasDataLibFilterer, error)

NewGasDataLibFilterer creates a new log filterer instance of GasDataLib, bound to a specific deployed contract.

type GasDataLibRaw

type GasDataLibRaw struct {
	Contract *GasDataLib // Generic contract binding to access the raw methods on
}

GasDataLibRaw is an auto generated low-level Go binding around an Ethereum contract.

func (*GasDataLibRaw) Call

func (_GasDataLib *GasDataLibRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error

Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

func (*GasDataLibRaw) Transact

func (_GasDataLib *GasDataLibRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*GasDataLibRaw) Transfer

func (_GasDataLib *GasDataLibRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type GasDataLibSession

type GasDataLibSession struct {
	Contract     *GasDataLib       // Generic contract binding to set the session for
	CallOpts     bind.CallOpts     // Call options to use throughout this session
	TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}

GasDataLibSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.

type GasDataLibTransactor

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

GasDataLibTransactor is an auto generated write-only Go binding around an Ethereum contract.

func NewGasDataLibTransactor

func NewGasDataLibTransactor(address common.Address, transactor bind.ContractTransactor) (*GasDataLibTransactor, error)

NewGasDataLibTransactor creates a new write-only instance of GasDataLib, bound to a specific deployed contract.

type GasDataLibTransactorRaw

type GasDataLibTransactorRaw struct {
	Contract *GasDataLibTransactor // Generic write-only contract binding to access the raw methods on
}

GasDataLibTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.

func (*GasDataLibTransactorRaw) Transact

func (_GasDataLib *GasDataLibTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*GasDataLibTransactorRaw) Transfer

func (_GasDataLib *GasDataLibTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type GasDataLibTransactorSession

type GasDataLibTransactorSession struct {
	Contract     *GasDataLibTransactor // Generic contract transactor binding to set the session for
	TransactOpts bind.TransactOpts     // Transaction auth options to use throughout this session
}

GasDataLibTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.

type NumberLib

type NumberLib struct {
	NumberLibCaller     // Read-only binding to the contract
	NumberLibTransactor // Write-only binding to the contract
	NumberLibFilterer   // Log filterer for contract events
}

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

func DeployNumberLib

func DeployNumberLib(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *NumberLib, error)

DeployNumberLib deploys a new Ethereum contract, binding an instance of NumberLib to it.

func NewNumberLib

func NewNumberLib(address common.Address, backend bind.ContractBackend) (*NumberLib, error)

NewNumberLib creates a new instance of NumberLib, bound to a specific deployed contract.

type NumberLibCaller

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

NumberLibCaller is an auto generated read-only Go binding around an Ethereum contract.

func NewNumberLibCaller

func NewNumberLibCaller(address common.Address, caller bind.ContractCaller) (*NumberLibCaller, error)

NewNumberLibCaller creates a new read-only instance of NumberLib, bound to a specific deployed contract.

type NumberLibCallerRaw

type NumberLibCallerRaw struct {
	Contract *NumberLibCaller // Generic read-only contract binding to access the raw methods on
}

NumberLibCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.

func (*NumberLibCallerRaw) Call

func (_NumberLib *NumberLibCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error

Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

type NumberLibCallerSession

type NumberLibCallerSession struct {
	Contract *NumberLibCaller // Generic contract caller binding to set the session for
	CallOpts bind.CallOpts    // Call options to use throughout this session
}

NumberLibCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.

type NumberLibFilterer

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

NumberLibFilterer is an auto generated log filtering Go binding around an Ethereum contract events.

func NewNumberLibFilterer

func NewNumberLibFilterer(address common.Address, filterer bind.ContractFilterer) (*NumberLibFilterer, error)

NewNumberLibFilterer creates a new log filterer instance of NumberLib, bound to a specific deployed contract.

type NumberLibRaw

type NumberLibRaw struct {
	Contract *NumberLib // Generic contract binding to access the raw methods on
}

NumberLibRaw is an auto generated low-level Go binding around an Ethereum contract.

func (*NumberLibRaw) Call

func (_NumberLib *NumberLibRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error

Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

func (*NumberLibRaw) Transact

func (_NumberLib *NumberLibRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*NumberLibRaw) Transfer

func (_NumberLib *NumberLibRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type NumberLibSession

type NumberLibSession struct {
	Contract     *NumberLib        // Generic contract binding to set the session for
	CallOpts     bind.CallOpts     // Call options to use throughout this session
	TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}

NumberLibSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.

type NumberLibTransactor

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

NumberLibTransactor is an auto generated write-only Go binding around an Ethereum contract.

func NewNumberLibTransactor

func NewNumberLibTransactor(address common.Address, transactor bind.ContractTransactor) (*NumberLibTransactor, error)

NewNumberLibTransactor creates a new write-only instance of NumberLib, bound to a specific deployed contract.

type NumberLibTransactorRaw

type NumberLibTransactorRaw struct {
	Contract *NumberLibTransactor // Generic write-only contract binding to access the raw methods on
}

NumberLibTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.

func (*NumberLibTransactorRaw) Transact

func (_NumberLib *NumberLibTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*NumberLibTransactorRaw) Transfer

func (_NumberLib *NumberLibTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type NumberLibTransactorSession

type NumberLibTransactorSession struct {
	Contract     *NumberLibTransactor // Generic contract transactor binding to set the session for
	TransactOpts bind.TransactOpts    // Transaction auth options to use throughout this session
}

NumberLibTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.

Jump to

Keyboard shortcuts

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