WSTEth

package
v0.0.0-...-a05b099 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const WSTETHABI = "" /* 6322-byte string literal not displayed */

WSTETHABI is the input ABI used to generate the binding from.

Variables

View Source
var File_WSTEth_WSTEth_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Approval

type Approval struct {
	Ts      *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=ts,proto3" json:"ts,omitempty"`
	Owner   []byte                 `protobuf:"bytes,2,opt,name=Owner,proto3" json:"Owner,omitempty"`     //	address
	Spender []byte                 `protobuf:"bytes,3,opt,name=Spender,proto3" json:"Spender,omitempty"` //	address
	Value   []byte                 `protobuf:"bytes,4,opt,name=Value,proto3" json:"Value,omitempty"`     //	uint256
	// contains filtered or unexported fields
}

func (*Approval) Descriptor deprecated

func (*Approval) Descriptor() ([]byte, []int)

Deprecated: Use Approval.ProtoReflect.Descriptor instead.

func (*Approval) GetOwner

func (x *Approval) GetOwner() []byte

func (*Approval) GetSpender

func (x *Approval) GetSpender() []byte

func (*Approval) GetTs

func (x *Approval) GetTs() *timestamppb.Timestamp

func (*Approval) GetValue

func (x *Approval) GetValue() []byte

func (*Approval) ProtoMessage

func (*Approval) ProtoMessage()

func (*Approval) ProtoReflect

func (x *Approval) ProtoReflect() protoreflect.Message

func (*Approval) Reset

func (x *Approval) Reset()

func (*Approval) String

func (x *Approval) String() string

type SmartContract

type SmartContract struct{}

func (*SmartContract) Message

func (sc *SmartContract) Message(eventName string, contractAbi *abi.ABI, vLog types.Log, timestamp *timestamppb.Timestamp) protoreflect.ProtoMessage

type Transfer

type Transfer struct {
	Ts    *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=ts,proto3" json:"ts,omitempty"`
	From  []byte                 `protobuf:"bytes,2,opt,name=From,proto3" json:"From,omitempty"`   //	address
	To    []byte                 `protobuf:"bytes,3,opt,name=To,proto3" json:"To,omitempty"`       //	address
	Value []byte                 `protobuf:"bytes,4,opt,name=Value,proto3" json:"Value,omitempty"` //	uint256
	// contains filtered or unexported fields
}

func (*Transfer) Descriptor deprecated

func (*Transfer) Descriptor() ([]byte, []int)

Deprecated: Use Transfer.ProtoReflect.Descriptor instead.

func (*Transfer) GetFrom

func (x *Transfer) GetFrom() []byte

func (*Transfer) GetTo

func (x *Transfer) GetTo() []byte

func (*Transfer) GetTs

func (x *Transfer) GetTs() *timestamppb.Timestamp

func (*Transfer) GetValue

func (x *Transfer) GetValue() []byte

func (*Transfer) ProtoMessage

func (*Transfer) ProtoMessage()

func (*Transfer) ProtoReflect

func (x *Transfer) ProtoReflect() protoreflect.Message

func (*Transfer) Reset

func (x *Transfer) Reset()

func (*Transfer) String

func (x *Transfer) String() string

type WSTETH

type WSTETH struct {
	WSTETHCaller     // Read-only binding to the contract
	WSTETHTransactor // Write-only binding to the contract
	WSTETHFilterer   // Log filterer for contract events
}

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

func NewWSTETH

func NewWSTETH(address common.Address, backend bind.ContractBackend) (*WSTETH, error)

NewWSTETH creates a new instance of WSTETH, bound to a specific deployed contract.

type WSTETHApproval

type WSTETHApproval struct {
	Owner   common.Address
	Spender common.Address
	Value   *big.Int
	Raw     types.Log // Blockchain specific contextual infos
}

WSTETHApproval represents a Approval event raised by the WSTETH contract.

type WSTETHApprovalIterator

type WSTETHApprovalIterator struct {
	Event *WSTETHApproval // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

WSTETHApprovalIterator is returned from FilterApproval and is used to iterate over the raw logs and unpacked data for Approval events raised by the WSTETH contract.

func (*WSTETHApprovalIterator) Close

func (it *WSTETHApprovalIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*WSTETHApprovalIterator) Error

func (it *WSTETHApprovalIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*WSTETHApprovalIterator) Next

func (it *WSTETHApprovalIterator) Next() bool

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type WSTETHCaller

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

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

func NewWSTETHCaller

func NewWSTETHCaller(address common.Address, caller bind.ContractCaller) (*WSTETHCaller, error)

NewWSTETHCaller creates a new read-only instance of WSTETH, bound to a specific deployed contract.

func (*WSTETHCaller) Allowance

func (_WSTETH *WSTETHCaller) Allowance(opts *bind.CallOpts, owner common.Address, spender common.Address) (*big.Int, error)

Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.

Solidity: function allowance(address owner, address spender) view returns(uint256)

func (*WSTETHCaller) BalanceOf

func (_WSTETH *WSTETHCaller) BalanceOf(opts *bind.CallOpts, account common.Address) (*big.Int, error)

BalanceOf is a free data retrieval call binding the contract method 0x70a08231.

Solidity: function balanceOf(address account) view returns(uint256)

func (*WSTETHCaller) DOMAINSEPARATOR

func (_WSTETH *WSTETHCaller) DOMAINSEPARATOR(opts *bind.CallOpts) ([32]byte, error)

DOMAINSEPARATOR is a free data retrieval call binding the contract method 0x3644e515.

Solidity: function DOMAIN_SEPARATOR() view returns(bytes32)

func (*WSTETHCaller) Decimals

func (_WSTETH *WSTETHCaller) Decimals(opts *bind.CallOpts) (uint8, error)

Decimals is a free data retrieval call binding the contract method 0x313ce567.

Solidity: function decimals() view returns(uint8)

func (*WSTETHCaller) GetStETHByWstETH

func (_WSTETH *WSTETHCaller) GetStETHByWstETH(opts *bind.CallOpts, _wstETHAmount *big.Int) (*big.Int, error)

GetStETHByWstETH is a free data retrieval call binding the contract method 0xbb2952fc.

Solidity: function getStETHByWstETH(uint256 _wstETHAmount) view returns(uint256)

func (*WSTETHCaller) GetWstETHByStETH

func (_WSTETH *WSTETHCaller) GetWstETHByStETH(opts *bind.CallOpts, _stETHAmount *big.Int) (*big.Int, error)

GetWstETHByStETH is a free data retrieval call binding the contract method 0xb0e38900.

Solidity: function getWstETHByStETH(uint256 _stETHAmount) view returns(uint256)

func (*WSTETHCaller) Name

func (_WSTETH *WSTETHCaller) Name(opts *bind.CallOpts) (string, error)

Name is a free data retrieval call binding the contract method 0x06fdde03.

Solidity: function name() view returns(string)

func (*WSTETHCaller) Nonces

func (_WSTETH *WSTETHCaller) Nonces(opts *bind.CallOpts, owner common.Address) (*big.Int, error)

Nonces is a free data retrieval call binding the contract method 0x7ecebe00.

Solidity: function nonces(address owner) view returns(uint256)

func (*WSTETHCaller) StETH

func (_WSTETH *WSTETHCaller) StETH(opts *bind.CallOpts) (common.Address, error)

StETH is a free data retrieval call binding the contract method 0xc1fe3e48.

Solidity: function stETH() view returns(address)

func (*WSTETHCaller) StEthPerToken

func (_WSTETH *WSTETHCaller) StEthPerToken(opts *bind.CallOpts) (*big.Int, error)

StEthPerToken is a free data retrieval call binding the contract method 0x035faf82.

Solidity: function stEthPerToken() view returns(uint256)

func (*WSTETHCaller) Symbol

func (_WSTETH *WSTETHCaller) Symbol(opts *bind.CallOpts) (string, error)

Symbol is a free data retrieval call binding the contract method 0x95d89b41.

Solidity: function symbol() view returns(string)

func (*WSTETHCaller) TokensPerStEth

func (_WSTETH *WSTETHCaller) TokensPerStEth(opts *bind.CallOpts) (*big.Int, error)

TokensPerStEth is a free data retrieval call binding the contract method 0x9576a0c8.

Solidity: function tokensPerStEth() view returns(uint256)

func (*WSTETHCaller) TotalSupply

func (_WSTETH *WSTETHCaller) TotalSupply(opts *bind.CallOpts) (*big.Int, error)

TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.

Solidity: function totalSupply() view returns(uint256)

type WSTETHCallerRaw

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

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

func (*WSTETHCallerRaw) Call

func (_WSTETH *WSTETHCallerRaw) 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 WSTETHCallerSession

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

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

func (*WSTETHCallerSession) Allowance

func (_WSTETH *WSTETHCallerSession) Allowance(owner common.Address, spender common.Address) (*big.Int, error)

Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.

Solidity: function allowance(address owner, address spender) view returns(uint256)

func (*WSTETHCallerSession) BalanceOf

func (_WSTETH *WSTETHCallerSession) BalanceOf(account common.Address) (*big.Int, error)

BalanceOf is a free data retrieval call binding the contract method 0x70a08231.

Solidity: function balanceOf(address account) view returns(uint256)

func (*WSTETHCallerSession) DOMAINSEPARATOR

func (_WSTETH *WSTETHCallerSession) DOMAINSEPARATOR() ([32]byte, error)

DOMAINSEPARATOR is a free data retrieval call binding the contract method 0x3644e515.

Solidity: function DOMAIN_SEPARATOR() view returns(bytes32)

func (*WSTETHCallerSession) Decimals

func (_WSTETH *WSTETHCallerSession) Decimals() (uint8, error)

Decimals is a free data retrieval call binding the contract method 0x313ce567.

Solidity: function decimals() view returns(uint8)

func (*WSTETHCallerSession) GetStETHByWstETH

func (_WSTETH *WSTETHCallerSession) GetStETHByWstETH(_wstETHAmount *big.Int) (*big.Int, error)

GetStETHByWstETH is a free data retrieval call binding the contract method 0xbb2952fc.

Solidity: function getStETHByWstETH(uint256 _wstETHAmount) view returns(uint256)

func (*WSTETHCallerSession) GetWstETHByStETH

func (_WSTETH *WSTETHCallerSession) GetWstETHByStETH(_stETHAmount *big.Int) (*big.Int, error)

GetWstETHByStETH is a free data retrieval call binding the contract method 0xb0e38900.

Solidity: function getWstETHByStETH(uint256 _stETHAmount) view returns(uint256)

func (*WSTETHCallerSession) Name

func (_WSTETH *WSTETHCallerSession) Name() (string, error)

Name is a free data retrieval call binding the contract method 0x06fdde03.

Solidity: function name() view returns(string)

func (*WSTETHCallerSession) Nonces

func (_WSTETH *WSTETHCallerSession) Nonces(owner common.Address) (*big.Int, error)

Nonces is a free data retrieval call binding the contract method 0x7ecebe00.

Solidity: function nonces(address owner) view returns(uint256)

func (*WSTETHCallerSession) StETH

func (_WSTETH *WSTETHCallerSession) StETH() (common.Address, error)

StETH is a free data retrieval call binding the contract method 0xc1fe3e48.

Solidity: function stETH() view returns(address)

func (*WSTETHCallerSession) StEthPerToken

func (_WSTETH *WSTETHCallerSession) StEthPerToken() (*big.Int, error)

StEthPerToken is a free data retrieval call binding the contract method 0x035faf82.

Solidity: function stEthPerToken() view returns(uint256)

func (*WSTETHCallerSession) Symbol

func (_WSTETH *WSTETHCallerSession) Symbol() (string, error)

Symbol is a free data retrieval call binding the contract method 0x95d89b41.

Solidity: function symbol() view returns(string)

func (*WSTETHCallerSession) TokensPerStEth

func (_WSTETH *WSTETHCallerSession) TokensPerStEth() (*big.Int, error)

TokensPerStEth is a free data retrieval call binding the contract method 0x9576a0c8.

Solidity: function tokensPerStEth() view returns(uint256)

func (*WSTETHCallerSession) TotalSupply

func (_WSTETH *WSTETHCallerSession) TotalSupply() (*big.Int, error)

TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.

Solidity: function totalSupply() view returns(uint256)

type WSTETHFilterer

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

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

func NewWSTETHFilterer

func NewWSTETHFilterer(address common.Address, filterer bind.ContractFilterer) (*WSTETHFilterer, error)

NewWSTETHFilterer creates a new log filterer instance of WSTETH, bound to a specific deployed contract.

func (*WSTETHFilterer) FilterApproval

func (_WSTETH *WSTETHFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*WSTETHApprovalIterator, error)

FilterApproval is a free log retrieval operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.

Solidity: event Approval(address indexed owner, address indexed spender, uint256 value)

func (*WSTETHFilterer) FilterTransfer

func (_WSTETH *WSTETHFilterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*WSTETHTransferIterator, error)

FilterTransfer is a free log retrieval operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.

Solidity: event Transfer(address indexed from, address indexed to, uint256 value)

func (*WSTETHFilterer) ParseApproval

func (_WSTETH *WSTETHFilterer) ParseApproval(log types.Log) (*WSTETHApproval, error)

ParseApproval is a log parse operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.

Solidity: event Approval(address indexed owner, address indexed spender, uint256 value)

func (*WSTETHFilterer) ParseTransfer

func (_WSTETH *WSTETHFilterer) ParseTransfer(log types.Log) (*WSTETHTransfer, error)

ParseTransfer is a log parse operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.

Solidity: event Transfer(address indexed from, address indexed to, uint256 value)

func (*WSTETHFilterer) WatchApproval

func (_WSTETH *WSTETHFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *WSTETHApproval, owner []common.Address, spender []common.Address) (event.Subscription, error)

WatchApproval is a free log subscription operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.

Solidity: event Approval(address indexed owner, address indexed spender, uint256 value)

func (*WSTETHFilterer) WatchTransfer

func (_WSTETH *WSTETHFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *WSTETHTransfer, from []common.Address, to []common.Address) (event.Subscription, error)

WatchTransfer is a free log subscription operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.

Solidity: event Transfer(address indexed from, address indexed to, uint256 value)

type WSTETHRaw

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

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

func (*WSTETHRaw) Call

func (_WSTETH *WSTETHRaw) 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 (*WSTETHRaw) Transact

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

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

func (*WSTETHRaw) Transfer

func (_WSTETH *WSTETHRaw) 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 WSTETHSession

type WSTETHSession struct {
	Contract     *WSTETH           // 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
}

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

func (*WSTETHSession) Allowance

func (_WSTETH *WSTETHSession) Allowance(owner common.Address, spender common.Address) (*big.Int, error)

Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.

Solidity: function allowance(address owner, address spender) view returns(uint256)

func (*WSTETHSession) Approve

func (_WSTETH *WSTETHSession) Approve(spender common.Address, amount *big.Int) (*types.Transaction, error)

Approve is a paid mutator transaction binding the contract method 0x095ea7b3.

Solidity: function approve(address spender, uint256 amount) returns(bool)

func (*WSTETHSession) BalanceOf

func (_WSTETH *WSTETHSession) BalanceOf(account common.Address) (*big.Int, error)

BalanceOf is a free data retrieval call binding the contract method 0x70a08231.

Solidity: function balanceOf(address account) view returns(uint256)

func (*WSTETHSession) DOMAINSEPARATOR

func (_WSTETH *WSTETHSession) DOMAINSEPARATOR() ([32]byte, error)

DOMAINSEPARATOR is a free data retrieval call binding the contract method 0x3644e515.

Solidity: function DOMAIN_SEPARATOR() view returns(bytes32)

func (*WSTETHSession) Decimals

func (_WSTETH *WSTETHSession) Decimals() (uint8, error)

Decimals is a free data retrieval call binding the contract method 0x313ce567.

Solidity: function decimals() view returns(uint8)

func (*WSTETHSession) DecreaseAllowance

func (_WSTETH *WSTETHSession) DecreaseAllowance(spender common.Address, subtractedValue *big.Int) (*types.Transaction, error)

DecreaseAllowance is a paid mutator transaction binding the contract method 0xa457c2d7.

Solidity: function decreaseAllowance(address spender, uint256 subtractedValue) returns(bool)

func (*WSTETHSession) GetStETHByWstETH

func (_WSTETH *WSTETHSession) GetStETHByWstETH(_wstETHAmount *big.Int) (*big.Int, error)

GetStETHByWstETH is a free data retrieval call binding the contract method 0xbb2952fc.

Solidity: function getStETHByWstETH(uint256 _wstETHAmount) view returns(uint256)

func (*WSTETHSession) GetWstETHByStETH

func (_WSTETH *WSTETHSession) GetWstETHByStETH(_stETHAmount *big.Int) (*big.Int, error)

GetWstETHByStETH is a free data retrieval call binding the contract method 0xb0e38900.

Solidity: function getWstETHByStETH(uint256 _stETHAmount) view returns(uint256)

func (*WSTETHSession) IncreaseAllowance

func (_WSTETH *WSTETHSession) IncreaseAllowance(spender common.Address, addedValue *big.Int) (*types.Transaction, error)

IncreaseAllowance is a paid mutator transaction binding the contract method 0x39509351.

Solidity: function increaseAllowance(address spender, uint256 addedValue) returns(bool)

func (*WSTETHSession) Name

func (_WSTETH *WSTETHSession) Name() (string, error)

Name is a free data retrieval call binding the contract method 0x06fdde03.

Solidity: function name() view returns(string)

func (*WSTETHSession) Nonces

func (_WSTETH *WSTETHSession) Nonces(owner common.Address) (*big.Int, error)

Nonces is a free data retrieval call binding the contract method 0x7ecebe00.

Solidity: function nonces(address owner) view returns(uint256)

func (*WSTETHSession) Permit

func (_WSTETH *WSTETHSession) Permit(owner common.Address, spender common.Address, value *big.Int, deadline *big.Int, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error)

Permit is a paid mutator transaction binding the contract method 0xd505accf.

Solidity: function permit(address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) returns()

func (*WSTETHSession) Receive

func (_WSTETH *WSTETHSession) Receive() (*types.Transaction, error)

Receive is a paid mutator transaction binding the contract receive function.

Solidity: receive() payable returns()

func (*WSTETHSession) StETH

func (_WSTETH *WSTETHSession) StETH() (common.Address, error)

StETH is a free data retrieval call binding the contract method 0xc1fe3e48.

Solidity: function stETH() view returns(address)

func (*WSTETHSession) StEthPerToken

func (_WSTETH *WSTETHSession) StEthPerToken() (*big.Int, error)

StEthPerToken is a free data retrieval call binding the contract method 0x035faf82.

Solidity: function stEthPerToken() view returns(uint256)

func (*WSTETHSession) Symbol

func (_WSTETH *WSTETHSession) Symbol() (string, error)

Symbol is a free data retrieval call binding the contract method 0x95d89b41.

Solidity: function symbol() view returns(string)

func (*WSTETHSession) TokensPerStEth

func (_WSTETH *WSTETHSession) TokensPerStEth() (*big.Int, error)

TokensPerStEth is a free data retrieval call binding the contract method 0x9576a0c8.

Solidity: function tokensPerStEth() view returns(uint256)

func (*WSTETHSession) TotalSupply

func (_WSTETH *WSTETHSession) TotalSupply() (*big.Int, error)

TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.

Solidity: function totalSupply() view returns(uint256)

func (*WSTETHSession) Transfer

func (_WSTETH *WSTETHSession) Transfer(recipient common.Address, amount *big.Int) (*types.Transaction, error)

Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.

Solidity: function transfer(address recipient, uint256 amount) returns(bool)

func (*WSTETHSession) TransferFrom

func (_WSTETH *WSTETHSession) TransferFrom(sender common.Address, recipient common.Address, amount *big.Int) (*types.Transaction, error)

TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.

Solidity: function transferFrom(address sender, address recipient, uint256 amount) returns(bool)

func (*WSTETHSession) Unwrap

func (_WSTETH *WSTETHSession) Unwrap(_wstETHAmount *big.Int) (*types.Transaction, error)

Unwrap is a paid mutator transaction binding the contract method 0xde0e9a3e.

Solidity: function unwrap(uint256 _wstETHAmount) returns(uint256)

func (*WSTETHSession) Wrap

func (_WSTETH *WSTETHSession) Wrap(_stETHAmount *big.Int) (*types.Transaction, error)

Wrap is a paid mutator transaction binding the contract method 0xea598cb0.

Solidity: function wrap(uint256 _stETHAmount) returns(uint256)

type WSTETHTransactor

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

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

func NewWSTETHTransactor

func NewWSTETHTransactor(address common.Address, transactor bind.ContractTransactor) (*WSTETHTransactor, error)

NewWSTETHTransactor creates a new write-only instance of WSTETH, bound to a specific deployed contract.

func (*WSTETHTransactor) Approve

func (_WSTETH *WSTETHTransactor) Approve(opts *bind.TransactOpts, spender common.Address, amount *big.Int) (*types.Transaction, error)

Approve is a paid mutator transaction binding the contract method 0x095ea7b3.

Solidity: function approve(address spender, uint256 amount) returns(bool)

func (*WSTETHTransactor) DecreaseAllowance

func (_WSTETH *WSTETHTransactor) DecreaseAllowance(opts *bind.TransactOpts, spender common.Address, subtractedValue *big.Int) (*types.Transaction, error)

DecreaseAllowance is a paid mutator transaction binding the contract method 0xa457c2d7.

Solidity: function decreaseAllowance(address spender, uint256 subtractedValue) returns(bool)

func (*WSTETHTransactor) IncreaseAllowance

func (_WSTETH *WSTETHTransactor) IncreaseAllowance(opts *bind.TransactOpts, spender common.Address, addedValue *big.Int) (*types.Transaction, error)

IncreaseAllowance is a paid mutator transaction binding the contract method 0x39509351.

Solidity: function increaseAllowance(address spender, uint256 addedValue) returns(bool)

func (*WSTETHTransactor) Permit

func (_WSTETH *WSTETHTransactor) Permit(opts *bind.TransactOpts, owner common.Address, spender common.Address, value *big.Int, deadline *big.Int, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error)

Permit is a paid mutator transaction binding the contract method 0xd505accf.

Solidity: function permit(address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) returns()

func (*WSTETHTransactor) Receive

func (_WSTETH *WSTETHTransactor) Receive(opts *bind.TransactOpts) (*types.Transaction, error)

Receive is a paid mutator transaction binding the contract receive function.

Solidity: receive() payable returns()

func (*WSTETHTransactor) Transfer

func (_WSTETH *WSTETHTransactor) Transfer(opts *bind.TransactOpts, recipient common.Address, amount *big.Int) (*types.Transaction, error)

Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.

Solidity: function transfer(address recipient, uint256 amount) returns(bool)

func (*WSTETHTransactor) TransferFrom

func (_WSTETH *WSTETHTransactor) TransferFrom(opts *bind.TransactOpts, sender common.Address, recipient common.Address, amount *big.Int) (*types.Transaction, error)

TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.

Solidity: function transferFrom(address sender, address recipient, uint256 amount) returns(bool)

func (*WSTETHTransactor) Unwrap

func (_WSTETH *WSTETHTransactor) Unwrap(opts *bind.TransactOpts, _wstETHAmount *big.Int) (*types.Transaction, error)

Unwrap is a paid mutator transaction binding the contract method 0xde0e9a3e.

Solidity: function unwrap(uint256 _wstETHAmount) returns(uint256)

func (*WSTETHTransactor) Wrap

func (_WSTETH *WSTETHTransactor) Wrap(opts *bind.TransactOpts, _stETHAmount *big.Int) (*types.Transaction, error)

Wrap is a paid mutator transaction binding the contract method 0xea598cb0.

Solidity: function wrap(uint256 _stETHAmount) returns(uint256)

type WSTETHTransactorRaw

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

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

func (*WSTETHTransactorRaw) Transact

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

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

func (*WSTETHTransactorRaw) Transfer

func (_WSTETH *WSTETHTransactorRaw) 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 WSTETHTransactorSession

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

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

func (*WSTETHTransactorSession) Approve

func (_WSTETH *WSTETHTransactorSession) Approve(spender common.Address, amount *big.Int) (*types.Transaction, error)

Approve is a paid mutator transaction binding the contract method 0x095ea7b3.

Solidity: function approve(address spender, uint256 amount) returns(bool)

func (*WSTETHTransactorSession) DecreaseAllowance

func (_WSTETH *WSTETHTransactorSession) DecreaseAllowance(spender common.Address, subtractedValue *big.Int) (*types.Transaction, error)

DecreaseAllowance is a paid mutator transaction binding the contract method 0xa457c2d7.

Solidity: function decreaseAllowance(address spender, uint256 subtractedValue) returns(bool)

func (*WSTETHTransactorSession) IncreaseAllowance

func (_WSTETH *WSTETHTransactorSession) IncreaseAllowance(spender common.Address, addedValue *big.Int) (*types.Transaction, error)

IncreaseAllowance is a paid mutator transaction binding the contract method 0x39509351.

Solidity: function increaseAllowance(address spender, uint256 addedValue) returns(bool)

func (*WSTETHTransactorSession) Permit

func (_WSTETH *WSTETHTransactorSession) Permit(owner common.Address, spender common.Address, value *big.Int, deadline *big.Int, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error)

Permit is a paid mutator transaction binding the contract method 0xd505accf.

Solidity: function permit(address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) returns()

func (*WSTETHTransactorSession) Receive

func (_WSTETH *WSTETHTransactorSession) Receive() (*types.Transaction, error)

Receive is a paid mutator transaction binding the contract receive function.

Solidity: receive() payable returns()

func (*WSTETHTransactorSession) Transfer

func (_WSTETH *WSTETHTransactorSession) Transfer(recipient common.Address, amount *big.Int) (*types.Transaction, error)

Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.

Solidity: function transfer(address recipient, uint256 amount) returns(bool)

func (*WSTETHTransactorSession) TransferFrom

func (_WSTETH *WSTETHTransactorSession) TransferFrom(sender common.Address, recipient common.Address, amount *big.Int) (*types.Transaction, error)

TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.

Solidity: function transferFrom(address sender, address recipient, uint256 amount) returns(bool)

func (*WSTETHTransactorSession) Unwrap

func (_WSTETH *WSTETHTransactorSession) Unwrap(_wstETHAmount *big.Int) (*types.Transaction, error)

Unwrap is a paid mutator transaction binding the contract method 0xde0e9a3e.

Solidity: function unwrap(uint256 _wstETHAmount) returns(uint256)

func (*WSTETHTransactorSession) Wrap

func (_WSTETH *WSTETHTransactorSession) Wrap(_stETHAmount *big.Int) (*types.Transaction, error)

Wrap is a paid mutator transaction binding the contract method 0xea598cb0.

Solidity: function wrap(uint256 _stETHAmount) returns(uint256)

type WSTETHTransfer

type WSTETHTransfer struct {
	From  common.Address
	To    common.Address
	Value *big.Int
	Raw   types.Log // Blockchain specific contextual infos
}

WSTETHTransfer represents a Transfer event raised by the WSTETH contract.

type WSTETHTransferIterator

type WSTETHTransferIterator struct {
	Event *WSTETHTransfer // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

WSTETHTransferIterator is returned from FilterTransfer and is used to iterate over the raw logs and unpacked data for Transfer events raised by the WSTETH contract.

func (*WSTETHTransferIterator) Close

func (it *WSTETHTransferIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*WSTETHTransferIterator) Error

func (it *WSTETHTransferIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*WSTETHTransferIterator) Next

func (it *WSTETHTransferIterator) Next() bool

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

Jump to

Keyboard shortcuts

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