sapientmock

package
v0.64.3 Latest Latest
Warning

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

Go to latest
Published: May 19, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SapientMockABI = SapientMockMetaData.ABI

SapientMockABI is the input ABI used to generate the binding from. Deprecated: Use SapientMockMetaData.ABI instead.

View Source
var SapientMockBin = SapientMockMetaData.Bin

SapientMockBin is the compiled bytecode used for deploying new contracts. Deprecated: Use SapientMockMetaData.Bin instead.

View Source
var SapientMockMetaData = &bind.MetaData{
	ABI: "[{\"type\":\"function\",\"name\":\"recoverSapientSignature\",\"inputs\":[{\"name\":\"\",\"type\":\"tuple\",\"internalType\":\"structPayload.Decoded\",\"components\":[{\"name\":\"kind\",\"type\":\"uint8\",\"internalType\":\"uint8\"},{\"name\":\"noChainId\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"calls\",\"type\":\"tuple[]\",\"internalType\":\"structPayload.Call[]\",\"components\":[{\"name\":\"to\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"value\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"gasLimit\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"delegateCall\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"onlyFallback\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"behaviorOnError\",\"type\":\"uint256\",\"internalType\":\"uint256\"}]},{\"name\":\"space\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"nonce\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"message\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"imageHash\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"digest\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"parentWallets\",\"type\":\"address[]\",\"internalType\":\"address[]\"}]},{\"name\":\"signature\",\"type\":\"bytes\",\"internalType\":\"bytes\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"stateMutability\":\"pure\"},{\"type\":\"function\",\"name\":\"recoverSapientSignatureCompact\",\"inputs\":[{\"name\":\"\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"signature\",\"type\":\"bytes\",\"internalType\":\"bytes\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"stateMutability\":\"pure\"},{\"type\":\"error\",\"name\":\"InvalidSignatureLength\",\"inputs\":[]}]",
	Bin: "0x608080604052346015576101f9908161001b8239f35b600080fdfe6080604052600436101561001257600080fd5b60003560e01c806313792a4a146100995763898bd9211461003257600080fd5b346100945760407ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126100945760243567ffffffffffffffff81116100945761008c6100866020923690600401610128565b90610156565b604051908152f35b600080fd5b346100945760407ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126100945760043567ffffffffffffffff8111610094577ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc61012091360301126100945760243567ffffffffffffffff81116100945761008c61008660209236906004015b9181601f840112156100945782359167ffffffffffffffff8311610094576020838186019501011161009457565b602082036101995735906020811061016c575090565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff9060200360031b1b1690565b7f4be6321b0000000000000000000000000000000000000000000000000000000060005260046000fdfea2646970667358221220eee95114dd28e7a8bc9444b8b58c282669afd11f4b40776539458a6435bcbd4b64736f6c634300081c0033",
}

SapientMockMetaData contains all meta data concerning the SapientMock contract.

Functions

This section is empty.

Types

type PayloadCall

type PayloadCall struct {
	To              common.Address
	Value           *big.Int
	Data            []byte
	GasLimit        *big.Int
	DelegateCall    bool
	OnlyFallback    bool
	BehaviorOnError *big.Int
}

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

type PayloadDecoded

type PayloadDecoded struct {
	Kind          uint8
	NoChainId     bool
	Calls         []PayloadCall
	Space         *big.Int
	Nonce         *big.Int
	Message       []byte
	ImageHash     [32]byte
	Digest        [32]byte
	ParentWallets []common.Address
}

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

type SapientMock

type SapientMock struct {
	SapientMockCaller     // Read-only binding to the contract
	SapientMockTransactor // Write-only binding to the contract
	SapientMockFilterer   // Log filterer for contract events
}

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

func DeploySapientMock

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

DeploySapientMock deploys a new Ethereum contract, binding an instance of SapientMock to it.

func NewSapientMock

func NewSapientMock(address common.Address, backend bind.ContractBackend) (*SapientMock, error)

NewSapientMock creates a new instance of SapientMock, bound to a specific deployed contract.

type SapientMockCaller

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

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

func NewSapientMockCaller

func NewSapientMockCaller(address common.Address, caller bind.ContractCaller) (*SapientMockCaller, error)

NewSapientMockCaller creates a new read-only instance of SapientMock, bound to a specific deployed contract.

func (*SapientMockCaller) RecoverSapientSignature

func (_SapientMock *SapientMockCaller) RecoverSapientSignature(opts *bind.CallOpts, arg0 PayloadDecoded, signature []byte) ([32]byte, error)

RecoverSapientSignature is a free data retrieval call binding the contract method 0x13792a4a.

Solidity: function recoverSapientSignature((uint8,bool,(address,uint256,bytes,uint256,bool,bool,uint256)[],uint256,uint256,bytes,bytes32,bytes32,address[]) , bytes signature) pure returns(bytes32)

func (*SapientMockCaller) RecoverSapientSignatureCompact

func (_SapientMock *SapientMockCaller) RecoverSapientSignatureCompact(opts *bind.CallOpts, arg0 [32]byte, signature []byte) ([32]byte, error)

RecoverSapientSignatureCompact is a free data retrieval call binding the contract method 0x898bd921.

Solidity: function recoverSapientSignatureCompact(bytes32 , bytes signature) pure returns(bytes32)

type SapientMockCallerRaw

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

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

func (*SapientMockCallerRaw) Call

func (_SapientMock *SapientMockCallerRaw) 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 SapientMockCallerSession

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

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

func (*SapientMockCallerSession) RecoverSapientSignature

func (_SapientMock *SapientMockCallerSession) RecoverSapientSignature(arg0 PayloadDecoded, signature []byte) ([32]byte, error)

RecoverSapientSignature is a free data retrieval call binding the contract method 0x13792a4a.

Solidity: function recoverSapientSignature((uint8,bool,(address,uint256,bytes,uint256,bool,bool,uint256)[],uint256,uint256,bytes,bytes32,bytes32,address[]) , bytes signature) pure returns(bytes32)

func (*SapientMockCallerSession) RecoverSapientSignatureCompact

func (_SapientMock *SapientMockCallerSession) RecoverSapientSignatureCompact(arg0 [32]byte, signature []byte) ([32]byte, error)

RecoverSapientSignatureCompact is a free data retrieval call binding the contract method 0x898bd921.

Solidity: function recoverSapientSignatureCompact(bytes32 , bytes signature) pure returns(bytes32)

type SapientMockFilterer

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

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

func NewSapientMockFilterer

func NewSapientMockFilterer(address common.Address, filterer bind.ContractFilterer) (*SapientMockFilterer, error)

NewSapientMockFilterer creates a new log filterer instance of SapientMock, bound to a specific deployed contract.

type SapientMockRaw

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

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

func (*SapientMockRaw) Call

func (_SapientMock *SapientMockRaw) 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 (*SapientMockRaw) Transact

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

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

func (*SapientMockRaw) Transfer

func (_SapientMock *SapientMockRaw) 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 SapientMockSession

type SapientMockSession struct {
	Contract     *SapientMock      // 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
}

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

func (*SapientMockSession) RecoverSapientSignature

func (_SapientMock *SapientMockSession) RecoverSapientSignature(arg0 PayloadDecoded, signature []byte) ([32]byte, error)

RecoverSapientSignature is a free data retrieval call binding the contract method 0x13792a4a.

Solidity: function recoverSapientSignature((uint8,bool,(address,uint256,bytes,uint256,bool,bool,uint256)[],uint256,uint256,bytes,bytes32,bytes32,address[]) , bytes signature) pure returns(bytes32)

func (*SapientMockSession) RecoverSapientSignatureCompact

func (_SapientMock *SapientMockSession) RecoverSapientSignatureCompact(arg0 [32]byte, signature []byte) ([32]byte, error)

RecoverSapientSignatureCompact is a free data retrieval call binding the contract method 0x898bd921.

Solidity: function recoverSapientSignatureCompact(bytes32 , bytes signature) pure returns(bytes32)

type SapientMockTransactor

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

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

func NewSapientMockTransactor

func NewSapientMockTransactor(address common.Address, transactor bind.ContractTransactor) (*SapientMockTransactor, error)

NewSapientMockTransactor creates a new write-only instance of SapientMock, bound to a specific deployed contract.

type SapientMockTransactorRaw

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

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

func (*SapientMockTransactorRaw) Transact

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

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

func (*SapientMockTransactorRaw) Transfer

func (_SapientMock *SapientMockTransactorRaw) 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 SapientMockTransactorSession

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

SapientMockTransactorSession 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