dAppControl

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DAppControlABI = DAppControlMetaData.ABI

DAppControlABI is the input ABI used to generate the binding from. Deprecated: Use DAppControlMetaData.ABI instead.

View Source
var DAppControlMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"gas\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxFeePerGas\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"nonce\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"dapp\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"control\",\"type\":\"address\"},{\"internalType\":\"uint32\",\"name\":\"callConfig\",\"type\":\"uint32\"},{\"internalType\":\"address\",\"name\":\"sessionKey\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"}],\"internalType\":\"structUserOperation\",\"name\":\"userOp\",\"type\":\"tuple\"}],\"name\":\"getDAppConfig\",\"outputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint32\",\"name\":\"callConfig\",\"type\":\"uint32\"},{\"internalType\":\"address\",\"name\":\"bidToken\",\"type\":\"address\"},{\"internalType\":\"uint32\",\"name\":\"solverGasLimit\",\"type\":\"uint32\"}],\"internalType\":\"structDAppConfig\",\"name\":\"dConfig\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getDAppSignatory\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getSolverGasLimit\",\"outputs\":[{\"internalType\":\"uint32\",\"name\":\"\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"gas\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxFeePerGas\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"nonce\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"dapp\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"control\",\"type\":\"address\"},{\"internalType\":\"uint32\",\"name\":\"callConfig\",\"type\":\"uint32\"},{\"internalType\":\"address\",\"name\":\"sessionKey\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"}],\"internalType\":\"structUserOperation\",\"name\":\"\",\"type\":\"tuple\"}],\"name\":\"getBidFormat\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"bidToken\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"gas\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxFeePerGas\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"nonce\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"dapp\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"control\",\"type\":\"address\"},{\"internalType\":\"uint32\",\"name\":\"callConfig\",\"type\":\"uint32\"},{\"internalType\":\"address\",\"name\":\"sessionKey\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"}],\"internalType\":\"structUserOperation\",\"name\":\"userOp\",\"type\":\"tuple\"}],\"name\":\"preOpsCall\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"CALL_CONFIG\",\"outputs\":[{\"internalType\":\"uint32\",\"name\":\"\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]",
}

DAppControlMetaData contains all meta data concerning the DAppControl contract.

Functions

This section is empty.

Types

type DAppConfig

type DAppConfig struct {
	To             common.Address
	CallConfig     uint32
	BidToken       common.Address
	SolverGasLimit uint32
}

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

type DAppControl

type DAppControl struct {
	DAppControlCaller     // Read-only binding to the contract
	DAppControlTransactor // Write-only binding to the contract
	DAppControlFilterer   // Log filterer for contract events
}

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

func NewDAppControl

func NewDAppControl(address common.Address, backend bind.ContractBackend) (*DAppControl, error)

NewDAppControl creates a new instance of DAppControl, bound to a specific deployed contract.

type DAppControlCaller

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

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

func NewDAppControlCaller

func NewDAppControlCaller(address common.Address, caller bind.ContractCaller) (*DAppControlCaller, error)

NewDAppControlCaller creates a new read-only instance of DAppControl, bound to a specific deployed contract.

func (*DAppControlCaller) CALLCONFIG

func (_DAppControl *DAppControlCaller) CALLCONFIG(opts *bind.CallOpts) (uint32, error)

CALLCONFIG is a free data retrieval call binding the contract method 0x8d212978.

Solidity: function CALL_CONFIG() view returns(uint32)

func (*DAppControlCaller) GetBidFormat

func (_DAppControl *DAppControlCaller) GetBidFormat(opts *bind.CallOpts, arg0 UserOperation) (common.Address, error)

GetBidFormat is a free data retrieval call binding the contract method 0x8831b924.

Solidity: function getBidFormat((address,address,uint256,uint256,uint256,uint256,uint256,address,address,uint32,address,bytes,bytes) ) view returns(address bidToken)

func (*DAppControlCaller) GetDAppConfig

func (_DAppControl *DAppControlCaller) GetDAppConfig(opts *bind.CallOpts, userOp UserOperation) (DAppConfig, error)

GetDAppConfig is a free data retrieval call binding the contract method 0x44912b6e.

Solidity: function getDAppConfig((address,address,uint256,uint256,uint256,uint256,uint256,address,address,uint32,address,bytes,bytes) userOp) view returns((address,uint32,address,uint32) dConfig)

func (*DAppControlCaller) GetDAppSignatory

func (_DAppControl *DAppControlCaller) GetDAppSignatory(opts *bind.CallOpts) (common.Address, error)

GetDAppSignatory is a free data retrieval call binding the contract method 0xee418488.

Solidity: function getDAppSignatory() view returns(address)

func (*DAppControlCaller) GetSolverGasLimit

func (_DAppControl *DAppControlCaller) GetSolverGasLimit(opts *bind.CallOpts) (uint32, error)

GetSolverGasLimit is a free data retrieval call binding the contract method 0x99218be5.

Solidity: function getSolverGasLimit() view returns(uint32)

type DAppControlCallerRaw

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

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

func (*DAppControlCallerRaw) Call

func (_DAppControl *DAppControlCallerRaw) 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 DAppControlCallerSession

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

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

func (*DAppControlCallerSession) CALLCONFIG

func (_DAppControl *DAppControlCallerSession) CALLCONFIG() (uint32, error)

CALLCONFIG is a free data retrieval call binding the contract method 0x8d212978.

Solidity: function CALL_CONFIG() view returns(uint32)

func (*DAppControlCallerSession) GetBidFormat

func (_DAppControl *DAppControlCallerSession) GetBidFormat(arg0 UserOperation) (common.Address, error)

GetBidFormat is a free data retrieval call binding the contract method 0x8831b924.

Solidity: function getBidFormat((address,address,uint256,uint256,uint256,uint256,uint256,address,address,uint32,address,bytes,bytes) ) view returns(address bidToken)

func (*DAppControlCallerSession) GetDAppConfig

func (_DAppControl *DAppControlCallerSession) GetDAppConfig(userOp UserOperation) (DAppConfig, error)

GetDAppConfig is a free data retrieval call binding the contract method 0x44912b6e.

Solidity: function getDAppConfig((address,address,uint256,uint256,uint256,uint256,uint256,address,address,uint32,address,bytes,bytes) userOp) view returns((address,uint32,address,uint32) dConfig)

func (*DAppControlCallerSession) GetDAppSignatory

func (_DAppControl *DAppControlCallerSession) GetDAppSignatory() (common.Address, error)

GetDAppSignatory is a free data retrieval call binding the contract method 0xee418488.

Solidity: function getDAppSignatory() view returns(address)

func (*DAppControlCallerSession) GetSolverGasLimit

func (_DAppControl *DAppControlCallerSession) GetSolverGasLimit() (uint32, error)

GetSolverGasLimit is a free data retrieval call binding the contract method 0x99218be5.

Solidity: function getSolverGasLimit() view returns(uint32)

type DAppControlFilterer

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

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

func NewDAppControlFilterer

func NewDAppControlFilterer(address common.Address, filterer bind.ContractFilterer) (*DAppControlFilterer, error)

NewDAppControlFilterer creates a new log filterer instance of DAppControl, bound to a specific deployed contract.

type DAppControlRaw

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

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

func (*DAppControlRaw) Call

func (_DAppControl *DAppControlRaw) 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 (*DAppControlRaw) Transact

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

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

func (*DAppControlRaw) Transfer

func (_DAppControl *DAppControlRaw) 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 DAppControlSession

type DAppControlSession struct {
	Contract     *DAppControl      // 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
}

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

func (*DAppControlSession) CALLCONFIG

func (_DAppControl *DAppControlSession) CALLCONFIG() (uint32, error)

CALLCONFIG is a free data retrieval call binding the contract method 0x8d212978.

Solidity: function CALL_CONFIG() view returns(uint32)

func (*DAppControlSession) GetBidFormat

func (_DAppControl *DAppControlSession) GetBidFormat(arg0 UserOperation) (common.Address, error)

GetBidFormat is a free data retrieval call binding the contract method 0x8831b924.

Solidity: function getBidFormat((address,address,uint256,uint256,uint256,uint256,uint256,address,address,uint32,address,bytes,bytes) ) view returns(address bidToken)

func (*DAppControlSession) GetDAppConfig

func (_DAppControl *DAppControlSession) GetDAppConfig(userOp UserOperation) (DAppConfig, error)

GetDAppConfig is a free data retrieval call binding the contract method 0x44912b6e.

Solidity: function getDAppConfig((address,address,uint256,uint256,uint256,uint256,uint256,address,address,uint32,address,bytes,bytes) userOp) view returns((address,uint32,address,uint32) dConfig)

func (*DAppControlSession) GetDAppSignatory

func (_DAppControl *DAppControlSession) GetDAppSignatory() (common.Address, error)

GetDAppSignatory is a free data retrieval call binding the contract method 0xee418488.

Solidity: function getDAppSignatory() view returns(address)

func (*DAppControlSession) GetSolverGasLimit

func (_DAppControl *DAppControlSession) GetSolverGasLimit() (uint32, error)

GetSolverGasLimit is a free data retrieval call binding the contract method 0x99218be5.

Solidity: function getSolverGasLimit() view returns(uint32)

func (*DAppControlSession) PreOpsCall

func (_DAppControl *DAppControlSession) PreOpsCall(userOp UserOperation) (*types.Transaction, error)

PreOpsCall is a paid mutator transaction binding the contract method 0x77bceb1b.

Solidity: function preOpsCall((address,address,uint256,uint256,uint256,uint256,uint256,address,address,uint32,address,bytes,bytes) userOp) payable returns(bytes)

type DAppControlTransactor

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

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

func NewDAppControlTransactor

func NewDAppControlTransactor(address common.Address, transactor bind.ContractTransactor) (*DAppControlTransactor, error)

NewDAppControlTransactor creates a new write-only instance of DAppControl, bound to a specific deployed contract.

func (*DAppControlTransactor) PreOpsCall

func (_DAppControl *DAppControlTransactor) PreOpsCall(opts *bind.TransactOpts, userOp UserOperation) (*types.Transaction, error)

PreOpsCall is a paid mutator transaction binding the contract method 0x77bceb1b.

Solidity: function preOpsCall((address,address,uint256,uint256,uint256,uint256,uint256,address,address,uint32,address,bytes,bytes) userOp) payable returns(bytes)

type DAppControlTransactorRaw

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

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

func (*DAppControlTransactorRaw) Transact

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

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

func (*DAppControlTransactorRaw) Transfer

func (_DAppControl *DAppControlTransactorRaw) 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 DAppControlTransactorSession

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

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

func (*DAppControlTransactorSession) PreOpsCall

func (_DAppControl *DAppControlTransactorSession) PreOpsCall(userOp UserOperation) (*types.Transaction, error)

PreOpsCall is a paid mutator transaction binding the contract method 0x77bceb1b.

Solidity: function preOpsCall((address,address,uint256,uint256,uint256,uint256,uint256,address,address,uint32,address,bytes,bytes) userOp) payable returns(bytes)

type UserOperation

type UserOperation struct {
	From         common.Address
	To           common.Address
	Value        *big.Int
	Gas          *big.Int
	MaxFeePerGas *big.Int
	Nonce        *big.Int
	Deadline     *big.Int
	Dapp         common.Address
	Control      common.Address
	CallConfig   uint32
	SessionKey   common.Address
	Data         []byte
	Signature    []byte
}

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

Jump to

Keyboard shortcuts

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