tornado

package
v0.0.0-...-bd3dd7f Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TornadoLockedABI = TornadoLockedMetaData.ABI

TornadoLockedABI is the input ABI used to generate the binding from. Deprecated: Use TornadoLockedMetaData.ABI instead.

View Source
var TornadoLockedMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"stakingRewardsAddress\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"gasCompLogic\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"userVaultAddress\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"}],\"name\":\"Delegated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"proposer\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"startTime\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"endTime\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"description\",\"type\":\"string\"}],\"name\":\"ProposalCreated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"proposalId\",\"type\":\"uint256\"}],\"name\":\"ProposalExecuted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"bytes\",\"name\":\"errorData\",\"type\":\"bytes\"}],\"name\":\"RewardUpdateFailed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"RewardUpdateSuccessful\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"}],\"name\":\"Undelegated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"proposalId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"voter\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"bool\",\"name\":\"support\",\"type\":\"bool\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"votes\",\"type\":\"uint256\"}],\"name\":\"Voted\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"CLOSING_PERIOD\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"EXECUTION_DELAY\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"EXECUTION_EXPIRATION\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"PROPOSAL_THRESHOLD\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"QUORUM_VOTES\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"Staking\",\"outputs\":[{\"internalType\":\"contractTornadoStakingRewards\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"VOTE_EXTEND_TIME\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"VOTING_DELAY\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"VOTING_PERIOD\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32[]\",\"name\":\"domains\",\"type\":\"bytes32[]\"}],\"name\":\"bulkResolve\",\"outputs\":[{\"internalType\":\"address[]\",\"name\":\"result\",\"type\":\"address[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"canWithdrawAfter\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"from\",\"type\":\"address[]\"},{\"internalType\":\"uint256\",\"name\":\"proposalId\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"support\",\"type\":\"bool\"}],\"name\":\"castDelegatedVote\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"proposalId\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"support\",\"type\":\"bool\"}],\"name\":\"castVote\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"proposalId\",\"type\":\"uint256\"}],\"name\":\"checkIfQuorumReached\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"}],\"name\":\"delegate\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"delegatedTo\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"proposalId\",\"type\":\"uint256\"}],\"name\":\"execute\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"gasCompensationVault\",\"outputs\":[{\"internalType\":\"contractIGasCompensationVault\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"proposalId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"voter\",\"type\":\"address\"}],\"name\":\"getReceipt\",\"outputs\":[{\"components\":[{\"internalType\":\"bool\",\"name\":\"hasVoted\",\"type\":\"bool\"},{\"internalType\":\"bool\",\"name\":\"support\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"votes\",\"type\":\"uint256\"}],\"internalType\":\"structGovernance.Receipt\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"proposalId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"hasAccountVoted\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"_torn\",\"type\":\"bytes32\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"latestProposalIds\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"},{\"internalType\":\"uint8\",\"name\":\"v\",\"type\":\"uint8\"},{\"internalType\":\"bytes32\",\"name\":\"r\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"s\",\"type\":\"bytes32\"}],\"name\":\"lock\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"lockWithApproval\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"lockedBalance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"proposalCount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"proposals\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"proposer\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"startTime\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"endTime\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"forVotes\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"againstVotes\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"executed\",\"type\":\"bool\"},{\"internalType\":\"bool\",\"name\":\"extended\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"description\",\"type\":\"string\"}],\"name\":\"propose\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"description\",\"type\":\"string\"}],\"name\":\"proposeByDelegate\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"node\",\"type\":\"bytes32\"}],\"name\":\"resolve\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"returnMultisigAddress\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"closingPeriod\",\"type\":\"uint256\"}],\"name\":\"setClosingPeriod\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"executionDelay\",\"type\":\"uint256\"}],\"name\":\"setExecutionDelay\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"executionExpiration\",\"type\":\"uint256\"}],\"name\":\"setExecutionExpiration\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"gasCompensationsLimit\",\"type\":\"uint256\"}],\"name\":\"setGasCompensations\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"proposalThreshold\",\"type\":\"uint256\"}],\"name\":\"setProposalThreshold\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"quorumVotes\",\"type\":\"uint256\"}],\"name\":\"setQuorumVotes\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"voteExtendTime\",\"type\":\"uint256\"}],\"name\":\"setVoteExtendTime\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"votingDelay\",\"type\":\"uint256\"}],\"name\":\"setVotingDelay\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"votingPeriod\",\"type\":\"uint256\"}],\"name\":\"setVotingPeriod\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"proposalId\",\"type\":\"uint256\"}],\"name\":\"state\",\"outputs\":[{\"internalType\":\"enumGovernance.ProposalState\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"torn\",\"outputs\":[{\"internalType\":\"contractTORN\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"undelegate\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"unlock\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"userVault\",\"outputs\":[{\"internalType\":\"contractITornadoVault\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"version\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"withdrawFromHelper\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"stateMutability\":\"payable\",\"type\":\"receive\"}]",
}

TornadoLockedMetaData contains all meta data concerning the TornadoLocked contract.

View Source
var TornadoStakingABI = TornadoStakingMetaData.ABI

TornadoStakingABI is the input ABI used to generate the binding from. Deprecated: Use TornadoStakingMetaData.ABI instead.

View Source
var TornadoStakingMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"governanceAddress\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tornAddress\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"_relayerRegistry\",\"type\":\"bytes32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"rewardsClaimed\",\"type\":\"uint256\"}],\"name\":\"RewardsClaimed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"rewards\",\"type\":\"uint256\"}],\"name\":\"RewardsUpdated\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"Governance\",\"outputs\":[{\"internalType\":\"contractITornadoGovernance\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"accumulatedRewardPerTorn\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"accumulatedRewardRateOnLastUpdate\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"accumulatedRewards\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"addBurnRewards\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32[]\",\"name\":\"domains\",\"type\":\"bytes32[]\"}],\"name\":\"bulkResolve\",\"outputs\":[{\"internalType\":\"address[]\",\"name\":\"result\",\"type\":\"address[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"checkReward\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"rewards\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getReward\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"ratioConstant\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"relayerRegistry\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"node\",\"type\":\"bytes32\"}],\"name\":\"resolve\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"torn\",\"outputs\":[{\"internalType\":\"contractIERC20\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amountLockedBeforehand\",\"type\":\"uint256\"}],\"name\":\"updateRewardsOnLockedBalanceChange\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"withdrawTorn\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
}

TornadoStakingMetaData contains all meta data concerning the TornadoStaking contract.

Functions

This section is empty.

Types

type GovernanceReceipt

type GovernanceReceipt struct {
	HasVoted bool
	Support  bool
	Votes    *big.Int
}

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

type TornadoLocked

type TornadoLocked struct {
	TornadoLockedCaller     // Read-only binding to the contract
	TornadoLockedTransactor // Write-only binding to the contract
	TornadoLockedFilterer   // Log filterer for contract events
}

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

func NewTornadoLocked

func NewTornadoLocked(address common.Address, backend bind.ContractBackend) (*TornadoLocked, error)

NewTornadoLocked creates a new instance of TornadoLocked, bound to a specific deployed contract.

type TornadoLockedCaller

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

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

func NewTornadoLockedCaller

func NewTornadoLockedCaller(address common.Address, caller bind.ContractCaller) (*TornadoLockedCaller, error)

NewTornadoLockedCaller creates a new read-only instance of TornadoLocked, bound to a specific deployed contract.

func (*TornadoLockedCaller) BulkResolve

func (_TornadoLocked *TornadoLockedCaller) BulkResolve(opts *bind.CallOpts, domains [][32]byte) ([]common.Address, error)

BulkResolve is a free data retrieval call binding the contract method 0xf9e54234.

Solidity: function bulkResolve(bytes32[] domains) view returns(address[] result)

func (*TornadoLockedCaller) CLOSINGPERIOD

func (_TornadoLocked *TornadoLockedCaller) CLOSINGPERIOD(opts *bind.CallOpts) (*big.Int, error)

CLOSINGPERIOD is a free data retrieval call binding the contract method 0xce25d71c.

Solidity: function CLOSING_PERIOD() view returns(uint256)

func (*TornadoLockedCaller) CanWithdrawAfter

func (_TornadoLocked *TornadoLockedCaller) CanWithdrawAfter(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)

CanWithdrawAfter is a free data retrieval call binding the contract method 0xa72edda3.

Solidity: function canWithdrawAfter(address ) view returns(uint256)

func (*TornadoLockedCaller) CheckIfQuorumReached

func (_TornadoLocked *TornadoLockedCaller) CheckIfQuorumReached(opts *bind.CallOpts, proposalId *big.Int) (bool, error)

CheckIfQuorumReached is a free data retrieval call binding the contract method 0x32687ec1.

Solidity: function checkIfQuorumReached(uint256 proposalId) view returns(bool)

func (*TornadoLockedCaller) DelegatedTo

func (_TornadoLocked *TornadoLockedCaller) DelegatedTo(opts *bind.CallOpts, arg0 common.Address) (common.Address, error)

DelegatedTo is a free data retrieval call binding the contract method 0x65da1264.

Solidity: function delegatedTo(address ) view returns(address)

func (*TornadoLockedCaller) EXECUTIONDELAY

func (_TornadoLocked *TornadoLockedCaller) EXECUTIONDELAY(opts *bind.CallOpts) (*big.Int, error)

EXECUTIONDELAY is a free data retrieval call binding the contract method 0x37f135d7.

Solidity: function EXECUTION_DELAY() view returns(uint256)

func (*TornadoLockedCaller) EXECUTIONEXPIRATION

func (_TornadoLocked *TornadoLockedCaller) EXECUTIONEXPIRATION(opts *bind.CallOpts) (*big.Int, error)

EXECUTIONEXPIRATION is a free data retrieval call binding the contract method 0x6a661755.

Solidity: function EXECUTION_EXPIRATION() view returns(uint256)

func (*TornadoLockedCaller) GasCompensationVault

func (_TornadoLocked *TornadoLockedCaller) GasCompensationVault(opts *bind.CallOpts) (common.Address, error)

GasCompensationVault is a free data retrieval call binding the contract method 0x8b34a960.

Solidity: function gasCompensationVault() view returns(address)

func (*TornadoLockedCaller) GetReceipt

func (_TornadoLocked *TornadoLockedCaller) GetReceipt(opts *bind.CallOpts, proposalId *big.Int, voter common.Address) (GovernanceReceipt, error)

GetReceipt is a free data retrieval call binding the contract method 0xe23a9a52.

Solidity: function getReceipt(uint256 proposalId, address voter) view returns((bool,bool,uint256))

func (*TornadoLockedCaller) HasAccountVoted

func (_TornadoLocked *TornadoLockedCaller) HasAccountVoted(opts *bind.CallOpts, proposalId *big.Int, account common.Address) (bool, error)

HasAccountVoted is a free data retrieval call binding the contract method 0xe525aa08.

Solidity: function hasAccountVoted(uint256 proposalId, address account) view returns(bool)

func (*TornadoLockedCaller) LatestProposalIds

func (_TornadoLocked *TornadoLockedCaller) LatestProposalIds(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)

LatestProposalIds is a free data retrieval call binding the contract method 0x17977c61.

Solidity: function latestProposalIds(address ) view returns(uint256)

func (*TornadoLockedCaller) LockedBalance

func (_TornadoLocked *TornadoLockedCaller) LockedBalance(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)

LockedBalance is a free data retrieval call binding the contract method 0x9ae697bf.

Solidity: function lockedBalance(address ) view returns(uint256)

func (*TornadoLockedCaller) PROPOSALTHRESHOLD

func (_TornadoLocked *TornadoLockedCaller) PROPOSALTHRESHOLD(opts *bind.CallOpts) (*big.Int, error)

PROPOSALTHRESHOLD is a free data retrieval call binding the contract method 0xa6c26603.

Solidity: function PROPOSAL_THRESHOLD() view returns(uint256)

func (*TornadoLockedCaller) ProposalCount

func (_TornadoLocked *TornadoLockedCaller) ProposalCount(opts *bind.CallOpts) (*big.Int, error)

ProposalCount is a free data retrieval call binding the contract method 0xda35c664.

Solidity: function proposalCount() view returns(uint256)

func (*TornadoLockedCaller) Proposals

func (_TornadoLocked *TornadoLockedCaller) Proposals(opts *bind.CallOpts, arg0 *big.Int) (struct {
	Proposer     common.Address
	Target       common.Address
	StartTime    *big.Int
	EndTime      *big.Int
	ForVotes     *big.Int
	AgainstVotes *big.Int
	Executed     bool
	Extended     bool
}, error)

Proposals is a free data retrieval call binding the contract method 0x013cf08b.

Solidity: function proposals(uint256 ) view returns(address proposer, address target, uint256 startTime, uint256 endTime, uint256 forVotes, uint256 againstVotes, bool executed, bool extended)

func (*TornadoLockedCaller) QUORUMVOTES

func (_TornadoLocked *TornadoLockedCaller) QUORUMVOTES(opts *bind.CallOpts) (*big.Int, error)

QUORUMVOTES is a free data retrieval call binding the contract method 0x671dd275.

Solidity: function QUORUM_VOTES() view returns(uint256)

func (*TornadoLockedCaller) Resolve

func (_TornadoLocked *TornadoLockedCaller) Resolve(opts *bind.CallOpts, node [32]byte) (common.Address, error)

Resolve is a free data retrieval call binding the contract method 0x5c23bdf5.

Solidity: function resolve(bytes32 node) view returns(address)

func (*TornadoLockedCaller) ReturnMultisigAddress

func (_TornadoLocked *TornadoLockedCaller) ReturnMultisigAddress(opts *bind.CallOpts) (common.Address, error)

ReturnMultisigAddress is a free data retrieval call binding the contract method 0x24b0435f.

Solidity: function returnMultisigAddress() pure returns(address)

func (*TornadoLockedCaller) Staking

func (_TornadoLocked *TornadoLockedCaller) Staking(opts *bind.CallOpts) (common.Address, error)

Staking is a free data retrieval call binding the contract method 0xf57df22e.

Solidity: function Staking() view returns(address)

func (*TornadoLockedCaller) State

func (_TornadoLocked *TornadoLockedCaller) State(opts *bind.CallOpts, proposalId *big.Int) (uint8, error)

State is a free data retrieval call binding the contract method 0x3e4f49e6.

Solidity: function state(uint256 proposalId) view returns(uint8)

func (*TornadoLockedCaller) Torn

func (_TornadoLocked *TornadoLockedCaller) Torn(opts *bind.CallOpts) (common.Address, error)

Torn is a free data retrieval call binding the contract method 0xadf898a4.

Solidity: function torn() view returns(address)

func (*TornadoLockedCaller) UserVault

func (_TornadoLocked *TornadoLockedCaller) UserVault(opts *bind.CallOpts) (common.Address, error)

UserVault is a free data retrieval call binding the contract method 0x9daafec7.

Solidity: function userVault() view returns(address)

func (*TornadoLockedCaller) VOTEEXTENDTIME

func (_TornadoLocked *TornadoLockedCaller) VOTEEXTENDTIME(opts *bind.CallOpts) (*big.Int, error)

VOTEEXTENDTIME is a free data retrieval call binding the contract method 0x587a6ecb.

Solidity: function VOTE_EXTEND_TIME() view returns(uint256)

func (*TornadoLockedCaller) VOTINGDELAY

func (_TornadoLocked *TornadoLockedCaller) VOTINGDELAY(opts *bind.CallOpts) (*big.Int, error)

VOTINGDELAY is a free data retrieval call binding the contract method 0xd6159fe5.

Solidity: function VOTING_DELAY() view returns(uint256)

func (*TornadoLockedCaller) VOTINGPERIOD

func (_TornadoLocked *TornadoLockedCaller) VOTINGPERIOD(opts *bind.CallOpts) (*big.Int, error)

VOTINGPERIOD is a free data retrieval call binding the contract method 0xb1610d7e.

Solidity: function VOTING_PERIOD() view returns(uint256)

func (*TornadoLockedCaller) Version

func (_TornadoLocked *TornadoLockedCaller) Version(opts *bind.CallOpts) (string, error)

Version is a free data retrieval call binding the contract method 0x54fd4d50.

Solidity: function version() pure returns(string)

type TornadoLockedCallerRaw

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

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

func (*TornadoLockedCallerRaw) Call

func (_TornadoLocked *TornadoLockedCallerRaw) 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 TornadoLockedCallerSession

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

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

func (*TornadoLockedCallerSession) BulkResolve

func (_TornadoLocked *TornadoLockedCallerSession) BulkResolve(domains [][32]byte) ([]common.Address, error)

BulkResolve is a free data retrieval call binding the contract method 0xf9e54234.

Solidity: function bulkResolve(bytes32[] domains) view returns(address[] result)

func (*TornadoLockedCallerSession) CLOSINGPERIOD

func (_TornadoLocked *TornadoLockedCallerSession) CLOSINGPERIOD() (*big.Int, error)

CLOSINGPERIOD is a free data retrieval call binding the contract method 0xce25d71c.

Solidity: function CLOSING_PERIOD() view returns(uint256)

func (*TornadoLockedCallerSession) CanWithdrawAfter

func (_TornadoLocked *TornadoLockedCallerSession) CanWithdrawAfter(arg0 common.Address) (*big.Int, error)

CanWithdrawAfter is a free data retrieval call binding the contract method 0xa72edda3.

Solidity: function canWithdrawAfter(address ) view returns(uint256)

func (*TornadoLockedCallerSession) CheckIfQuorumReached

func (_TornadoLocked *TornadoLockedCallerSession) CheckIfQuorumReached(proposalId *big.Int) (bool, error)

CheckIfQuorumReached is a free data retrieval call binding the contract method 0x32687ec1.

Solidity: function checkIfQuorumReached(uint256 proposalId) view returns(bool)

func (*TornadoLockedCallerSession) DelegatedTo

func (_TornadoLocked *TornadoLockedCallerSession) DelegatedTo(arg0 common.Address) (common.Address, error)

DelegatedTo is a free data retrieval call binding the contract method 0x65da1264.

Solidity: function delegatedTo(address ) view returns(address)

func (*TornadoLockedCallerSession) EXECUTIONDELAY

func (_TornadoLocked *TornadoLockedCallerSession) EXECUTIONDELAY() (*big.Int, error)

EXECUTIONDELAY is a free data retrieval call binding the contract method 0x37f135d7.

Solidity: function EXECUTION_DELAY() view returns(uint256)

func (*TornadoLockedCallerSession) EXECUTIONEXPIRATION

func (_TornadoLocked *TornadoLockedCallerSession) EXECUTIONEXPIRATION() (*big.Int, error)

EXECUTIONEXPIRATION is a free data retrieval call binding the contract method 0x6a661755.

Solidity: function EXECUTION_EXPIRATION() view returns(uint256)

func (*TornadoLockedCallerSession) GasCompensationVault

func (_TornadoLocked *TornadoLockedCallerSession) GasCompensationVault() (common.Address, error)

GasCompensationVault is a free data retrieval call binding the contract method 0x8b34a960.

Solidity: function gasCompensationVault() view returns(address)

func (*TornadoLockedCallerSession) GetReceipt

func (_TornadoLocked *TornadoLockedCallerSession) GetReceipt(proposalId *big.Int, voter common.Address) (GovernanceReceipt, error)

GetReceipt is a free data retrieval call binding the contract method 0xe23a9a52.

Solidity: function getReceipt(uint256 proposalId, address voter) view returns((bool,bool,uint256))

func (*TornadoLockedCallerSession) HasAccountVoted

func (_TornadoLocked *TornadoLockedCallerSession) HasAccountVoted(proposalId *big.Int, account common.Address) (bool, error)

HasAccountVoted is a free data retrieval call binding the contract method 0xe525aa08.

Solidity: function hasAccountVoted(uint256 proposalId, address account) view returns(bool)

func (*TornadoLockedCallerSession) LatestProposalIds

func (_TornadoLocked *TornadoLockedCallerSession) LatestProposalIds(arg0 common.Address) (*big.Int, error)

LatestProposalIds is a free data retrieval call binding the contract method 0x17977c61.

Solidity: function latestProposalIds(address ) view returns(uint256)

func (*TornadoLockedCallerSession) LockedBalance

func (_TornadoLocked *TornadoLockedCallerSession) LockedBalance(arg0 common.Address) (*big.Int, error)

LockedBalance is a free data retrieval call binding the contract method 0x9ae697bf.

Solidity: function lockedBalance(address ) view returns(uint256)

func (*TornadoLockedCallerSession) PROPOSALTHRESHOLD

func (_TornadoLocked *TornadoLockedCallerSession) PROPOSALTHRESHOLD() (*big.Int, error)

PROPOSALTHRESHOLD is a free data retrieval call binding the contract method 0xa6c26603.

Solidity: function PROPOSAL_THRESHOLD() view returns(uint256)

func (*TornadoLockedCallerSession) ProposalCount

func (_TornadoLocked *TornadoLockedCallerSession) ProposalCount() (*big.Int, error)

ProposalCount is a free data retrieval call binding the contract method 0xda35c664.

Solidity: function proposalCount() view returns(uint256)

func (*TornadoLockedCallerSession) Proposals

func (_TornadoLocked *TornadoLockedCallerSession) Proposals(arg0 *big.Int) (struct {
	Proposer     common.Address
	Target       common.Address
	StartTime    *big.Int
	EndTime      *big.Int
	ForVotes     *big.Int
	AgainstVotes *big.Int
	Executed     bool
	Extended     bool
}, error)

Proposals is a free data retrieval call binding the contract method 0x013cf08b.

Solidity: function proposals(uint256 ) view returns(address proposer, address target, uint256 startTime, uint256 endTime, uint256 forVotes, uint256 againstVotes, bool executed, bool extended)

func (*TornadoLockedCallerSession) QUORUMVOTES

func (_TornadoLocked *TornadoLockedCallerSession) QUORUMVOTES() (*big.Int, error)

QUORUMVOTES is a free data retrieval call binding the contract method 0x671dd275.

Solidity: function QUORUM_VOTES() view returns(uint256)

func (*TornadoLockedCallerSession) Resolve

func (_TornadoLocked *TornadoLockedCallerSession) Resolve(node [32]byte) (common.Address, error)

Resolve is a free data retrieval call binding the contract method 0x5c23bdf5.

Solidity: function resolve(bytes32 node) view returns(address)

func (*TornadoLockedCallerSession) ReturnMultisigAddress

func (_TornadoLocked *TornadoLockedCallerSession) ReturnMultisigAddress() (common.Address, error)

ReturnMultisigAddress is a free data retrieval call binding the contract method 0x24b0435f.

Solidity: function returnMultisigAddress() pure returns(address)

func (*TornadoLockedCallerSession) Staking

func (_TornadoLocked *TornadoLockedCallerSession) Staking() (common.Address, error)

Staking is a free data retrieval call binding the contract method 0xf57df22e.

Solidity: function Staking() view returns(address)

func (*TornadoLockedCallerSession) State

func (_TornadoLocked *TornadoLockedCallerSession) State(proposalId *big.Int) (uint8, error)

State is a free data retrieval call binding the contract method 0x3e4f49e6.

Solidity: function state(uint256 proposalId) view returns(uint8)

func (*TornadoLockedCallerSession) Torn

func (_TornadoLocked *TornadoLockedCallerSession) Torn() (common.Address, error)

Torn is a free data retrieval call binding the contract method 0xadf898a4.

Solidity: function torn() view returns(address)

func (*TornadoLockedCallerSession) UserVault

func (_TornadoLocked *TornadoLockedCallerSession) UserVault() (common.Address, error)

UserVault is a free data retrieval call binding the contract method 0x9daafec7.

Solidity: function userVault() view returns(address)

func (*TornadoLockedCallerSession) VOTEEXTENDTIME

func (_TornadoLocked *TornadoLockedCallerSession) VOTEEXTENDTIME() (*big.Int, error)

VOTEEXTENDTIME is a free data retrieval call binding the contract method 0x587a6ecb.

Solidity: function VOTE_EXTEND_TIME() view returns(uint256)

func (*TornadoLockedCallerSession) VOTINGDELAY

func (_TornadoLocked *TornadoLockedCallerSession) VOTINGDELAY() (*big.Int, error)

VOTINGDELAY is a free data retrieval call binding the contract method 0xd6159fe5.

Solidity: function VOTING_DELAY() view returns(uint256)

func (*TornadoLockedCallerSession) VOTINGPERIOD

func (_TornadoLocked *TornadoLockedCallerSession) VOTINGPERIOD() (*big.Int, error)

VOTINGPERIOD is a free data retrieval call binding the contract method 0xb1610d7e.

Solidity: function VOTING_PERIOD() view returns(uint256)

func (*TornadoLockedCallerSession) Version

func (_TornadoLocked *TornadoLockedCallerSession) Version() (string, error)

Version is a free data retrieval call binding the contract method 0x54fd4d50.

Solidity: function version() pure returns(string)

type TornadoLockedDelegated

type TornadoLockedDelegated struct {
	Account common.Address
	To      common.Address
	Raw     types.Log // Blockchain specific contextual infos
}

TornadoLockedDelegated represents a Delegated event raised by the TornadoLocked contract.

type TornadoLockedDelegatedIterator

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

TornadoLockedDelegatedIterator is returned from FilterDelegated and is used to iterate over the raw logs and unpacked data for Delegated events raised by the TornadoLocked contract.

func (*TornadoLockedDelegatedIterator) Close

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

func (*TornadoLockedDelegatedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*TornadoLockedDelegatedIterator) Next

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 TornadoLockedFilterer

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

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

func NewTornadoLockedFilterer

func NewTornadoLockedFilterer(address common.Address, filterer bind.ContractFilterer) (*TornadoLockedFilterer, error)

NewTornadoLockedFilterer creates a new log filterer instance of TornadoLocked, bound to a specific deployed contract.

func (*TornadoLockedFilterer) FilterDelegated

func (_TornadoLocked *TornadoLockedFilterer) FilterDelegated(opts *bind.FilterOpts, account []common.Address, to []common.Address) (*TornadoLockedDelegatedIterator, error)

FilterDelegated is a free log retrieval operation binding the contract event 0x4bc154dd35d6a5cb9206482ecb473cdbf2473006d6bce728b9cc0741bcc59ea2.

Solidity: event Delegated(address indexed account, address indexed to)

func (*TornadoLockedFilterer) FilterProposalCreated

func (_TornadoLocked *TornadoLockedFilterer) FilterProposalCreated(opts *bind.FilterOpts, id []*big.Int, proposer []common.Address) (*TornadoLockedProposalCreatedIterator, error)

FilterProposalCreated is a free log retrieval operation binding the contract event 0x90ec05050aa23d54ba425e926fe646c318e85825bc400b13a46010abe86eb2f0.

Solidity: event ProposalCreated(uint256 indexed id, address indexed proposer, address target, uint256 startTime, uint256 endTime, string description)

func (*TornadoLockedFilterer) FilterProposalExecuted

func (_TornadoLocked *TornadoLockedFilterer) FilterProposalExecuted(opts *bind.FilterOpts, proposalId []*big.Int) (*TornadoLockedProposalExecutedIterator, error)

FilterProposalExecuted is a free log retrieval operation binding the contract event 0x712ae1383f79ac853f8d882153778e0260ef8f03b504e2866e0593e04d2b291f.

Solidity: event ProposalExecuted(uint256 indexed proposalId)

func (*TornadoLockedFilterer) FilterRewardUpdateFailed

func (_TornadoLocked *TornadoLockedFilterer) FilterRewardUpdateFailed(opts *bind.FilterOpts, account []common.Address, errorData [][]byte) (*TornadoLockedRewardUpdateFailedIterator, error)

FilterRewardUpdateFailed is a free log retrieval operation binding the contract event 0x5a6216e80d86159dc87dcebfe519205477a94005b7d9d6bd313606450a5344f6.

Solidity: event RewardUpdateFailed(address indexed account, bytes indexed errorData)

func (*TornadoLockedFilterer) FilterRewardUpdateSuccessful

func (_TornadoLocked *TornadoLockedFilterer) FilterRewardUpdateSuccessful(opts *bind.FilterOpts, account []common.Address) (*TornadoLockedRewardUpdateSuccessfulIterator, error)

FilterRewardUpdateSuccessful is a free log retrieval operation binding the contract event 0x9b227b0c1ae308b34f72d4fdf9a1943fa769ff4814933595e7bc5230a117698b.

Solidity: event RewardUpdateSuccessful(address indexed account)

func (*TornadoLockedFilterer) FilterUndelegated

func (_TornadoLocked *TornadoLockedFilterer) FilterUndelegated(opts *bind.FilterOpts, account []common.Address, from []common.Address) (*TornadoLockedUndelegatedIterator, error)

FilterUndelegated is a free log retrieval operation binding the contract event 0x1af5b1c85495b3618ea659a1ba256c8b8974b437297d3b914e321e086a28da72.

Solidity: event Undelegated(address indexed account, address indexed from)

func (*TornadoLockedFilterer) FilterVoted

func (_TornadoLocked *TornadoLockedFilterer) FilterVoted(opts *bind.FilterOpts, proposalId []*big.Int, voter []common.Address, support []bool) (*TornadoLockedVotedIterator, error)

FilterVoted is a free log retrieval operation binding the contract event 0x7c2de587c00d75474a0c6c6fa96fd3b45dc974cd4e8a75f712bb84c950dce1b5.

Solidity: event Voted(uint256 indexed proposalId, address indexed voter, bool indexed support, uint256 votes)

func (*TornadoLockedFilterer) ParseDelegated

func (_TornadoLocked *TornadoLockedFilterer) ParseDelegated(log types.Log) (*TornadoLockedDelegated, error)

ParseDelegated is a log parse operation binding the contract event 0x4bc154dd35d6a5cb9206482ecb473cdbf2473006d6bce728b9cc0741bcc59ea2.

Solidity: event Delegated(address indexed account, address indexed to)

func (*TornadoLockedFilterer) ParseProposalCreated

func (_TornadoLocked *TornadoLockedFilterer) ParseProposalCreated(log types.Log) (*TornadoLockedProposalCreated, error)

ParseProposalCreated is a log parse operation binding the contract event 0x90ec05050aa23d54ba425e926fe646c318e85825bc400b13a46010abe86eb2f0.

Solidity: event ProposalCreated(uint256 indexed id, address indexed proposer, address target, uint256 startTime, uint256 endTime, string description)

func (*TornadoLockedFilterer) ParseProposalExecuted

func (_TornadoLocked *TornadoLockedFilterer) ParseProposalExecuted(log types.Log) (*TornadoLockedProposalExecuted, error)

ParseProposalExecuted is a log parse operation binding the contract event 0x712ae1383f79ac853f8d882153778e0260ef8f03b504e2866e0593e04d2b291f.

Solidity: event ProposalExecuted(uint256 indexed proposalId)

func (*TornadoLockedFilterer) ParseRewardUpdateFailed

func (_TornadoLocked *TornadoLockedFilterer) ParseRewardUpdateFailed(log types.Log) (*TornadoLockedRewardUpdateFailed, error)

ParseRewardUpdateFailed is a log parse operation binding the contract event 0x5a6216e80d86159dc87dcebfe519205477a94005b7d9d6bd313606450a5344f6.

Solidity: event RewardUpdateFailed(address indexed account, bytes indexed errorData)

func (*TornadoLockedFilterer) ParseRewardUpdateSuccessful

func (_TornadoLocked *TornadoLockedFilterer) ParseRewardUpdateSuccessful(log types.Log) (*TornadoLockedRewardUpdateSuccessful, error)

ParseRewardUpdateSuccessful is a log parse operation binding the contract event 0x9b227b0c1ae308b34f72d4fdf9a1943fa769ff4814933595e7bc5230a117698b.

Solidity: event RewardUpdateSuccessful(address indexed account)

func (*TornadoLockedFilterer) ParseUndelegated

func (_TornadoLocked *TornadoLockedFilterer) ParseUndelegated(log types.Log) (*TornadoLockedUndelegated, error)

ParseUndelegated is a log parse operation binding the contract event 0x1af5b1c85495b3618ea659a1ba256c8b8974b437297d3b914e321e086a28da72.

Solidity: event Undelegated(address indexed account, address indexed from)

func (*TornadoLockedFilterer) ParseVoted

func (_TornadoLocked *TornadoLockedFilterer) ParseVoted(log types.Log) (*TornadoLockedVoted, error)

ParseVoted is a log parse operation binding the contract event 0x7c2de587c00d75474a0c6c6fa96fd3b45dc974cd4e8a75f712bb84c950dce1b5.

Solidity: event Voted(uint256 indexed proposalId, address indexed voter, bool indexed support, uint256 votes)

func (*TornadoLockedFilterer) WatchDelegated

func (_TornadoLocked *TornadoLockedFilterer) WatchDelegated(opts *bind.WatchOpts, sink chan<- *TornadoLockedDelegated, account []common.Address, to []common.Address) (event.Subscription, error)

WatchDelegated is a free log subscription operation binding the contract event 0x4bc154dd35d6a5cb9206482ecb473cdbf2473006d6bce728b9cc0741bcc59ea2.

Solidity: event Delegated(address indexed account, address indexed to)

func (*TornadoLockedFilterer) WatchProposalCreated

func (_TornadoLocked *TornadoLockedFilterer) WatchProposalCreated(opts *bind.WatchOpts, sink chan<- *TornadoLockedProposalCreated, id []*big.Int, proposer []common.Address) (event.Subscription, error)

WatchProposalCreated is a free log subscription operation binding the contract event 0x90ec05050aa23d54ba425e926fe646c318e85825bc400b13a46010abe86eb2f0.

Solidity: event ProposalCreated(uint256 indexed id, address indexed proposer, address target, uint256 startTime, uint256 endTime, string description)

func (*TornadoLockedFilterer) WatchProposalExecuted

func (_TornadoLocked *TornadoLockedFilterer) WatchProposalExecuted(opts *bind.WatchOpts, sink chan<- *TornadoLockedProposalExecuted, proposalId []*big.Int) (event.Subscription, error)

WatchProposalExecuted is a free log subscription operation binding the contract event 0x712ae1383f79ac853f8d882153778e0260ef8f03b504e2866e0593e04d2b291f.

Solidity: event ProposalExecuted(uint256 indexed proposalId)

func (*TornadoLockedFilterer) WatchRewardUpdateFailed

func (_TornadoLocked *TornadoLockedFilterer) WatchRewardUpdateFailed(opts *bind.WatchOpts, sink chan<- *TornadoLockedRewardUpdateFailed, account []common.Address, errorData [][]byte) (event.Subscription, error)

WatchRewardUpdateFailed is a free log subscription operation binding the contract event 0x5a6216e80d86159dc87dcebfe519205477a94005b7d9d6bd313606450a5344f6.

Solidity: event RewardUpdateFailed(address indexed account, bytes indexed errorData)

func (*TornadoLockedFilterer) WatchRewardUpdateSuccessful

func (_TornadoLocked *TornadoLockedFilterer) WatchRewardUpdateSuccessful(opts *bind.WatchOpts, sink chan<- *TornadoLockedRewardUpdateSuccessful, account []common.Address) (event.Subscription, error)

WatchRewardUpdateSuccessful is a free log subscription operation binding the contract event 0x9b227b0c1ae308b34f72d4fdf9a1943fa769ff4814933595e7bc5230a117698b.

Solidity: event RewardUpdateSuccessful(address indexed account)

func (*TornadoLockedFilterer) WatchUndelegated

func (_TornadoLocked *TornadoLockedFilterer) WatchUndelegated(opts *bind.WatchOpts, sink chan<- *TornadoLockedUndelegated, account []common.Address, from []common.Address) (event.Subscription, error)

WatchUndelegated is a free log subscription operation binding the contract event 0x1af5b1c85495b3618ea659a1ba256c8b8974b437297d3b914e321e086a28da72.

Solidity: event Undelegated(address indexed account, address indexed from)

func (*TornadoLockedFilterer) WatchVoted

func (_TornadoLocked *TornadoLockedFilterer) WatchVoted(opts *bind.WatchOpts, sink chan<- *TornadoLockedVoted, proposalId []*big.Int, voter []common.Address, support []bool) (event.Subscription, error)

WatchVoted is a free log subscription operation binding the contract event 0x7c2de587c00d75474a0c6c6fa96fd3b45dc974cd4e8a75f712bb84c950dce1b5.

Solidity: event Voted(uint256 indexed proposalId, address indexed voter, bool indexed support, uint256 votes)

type TornadoLockedProposalCreated

type TornadoLockedProposalCreated struct {
	Id          *big.Int
	Proposer    common.Address
	Target      common.Address
	StartTime   *big.Int
	EndTime     *big.Int
	Description string
	Raw         types.Log // Blockchain specific contextual infos
}

TornadoLockedProposalCreated represents a ProposalCreated event raised by the TornadoLocked contract.

type TornadoLockedProposalCreatedIterator

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

TornadoLockedProposalCreatedIterator is returned from FilterProposalCreated and is used to iterate over the raw logs and unpacked data for ProposalCreated events raised by the TornadoLocked contract.

func (*TornadoLockedProposalCreatedIterator) Close

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

func (*TornadoLockedProposalCreatedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*TornadoLockedProposalCreatedIterator) Next

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 TornadoLockedProposalExecuted

type TornadoLockedProposalExecuted struct {
	ProposalId *big.Int
	Raw        types.Log // Blockchain specific contextual infos
}

TornadoLockedProposalExecuted represents a ProposalExecuted event raised by the TornadoLocked contract.

type TornadoLockedProposalExecutedIterator

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

TornadoLockedProposalExecutedIterator is returned from FilterProposalExecuted and is used to iterate over the raw logs and unpacked data for ProposalExecuted events raised by the TornadoLocked contract.

func (*TornadoLockedProposalExecutedIterator) Close

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

func (*TornadoLockedProposalExecutedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*TornadoLockedProposalExecutedIterator) Next

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 TornadoLockedRaw

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

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

func (*TornadoLockedRaw) Call

func (_TornadoLocked *TornadoLockedRaw) 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 (*TornadoLockedRaw) Transact

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

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

func (*TornadoLockedRaw) Transfer

func (_TornadoLocked *TornadoLockedRaw) 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 TornadoLockedRewardUpdateFailed

type TornadoLockedRewardUpdateFailed struct {
	Account   common.Address
	ErrorData common.Hash
	Raw       types.Log // Blockchain specific contextual infos
}

TornadoLockedRewardUpdateFailed represents a RewardUpdateFailed event raised by the TornadoLocked contract.

type TornadoLockedRewardUpdateFailedIterator

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

TornadoLockedRewardUpdateFailedIterator is returned from FilterRewardUpdateFailed and is used to iterate over the raw logs and unpacked data for RewardUpdateFailed events raised by the TornadoLocked contract.

func (*TornadoLockedRewardUpdateFailedIterator) Close

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

func (*TornadoLockedRewardUpdateFailedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*TornadoLockedRewardUpdateFailedIterator) Next

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 TornadoLockedRewardUpdateSuccessful

type TornadoLockedRewardUpdateSuccessful struct {
	Account common.Address
	Raw     types.Log // Blockchain specific contextual infos
}

TornadoLockedRewardUpdateSuccessful represents a RewardUpdateSuccessful event raised by the TornadoLocked contract.

type TornadoLockedRewardUpdateSuccessfulIterator

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

TornadoLockedRewardUpdateSuccessfulIterator is returned from FilterRewardUpdateSuccessful and is used to iterate over the raw logs and unpacked data for RewardUpdateSuccessful events raised by the TornadoLocked contract.

func (*TornadoLockedRewardUpdateSuccessfulIterator) Close

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

func (*TornadoLockedRewardUpdateSuccessfulIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*TornadoLockedRewardUpdateSuccessfulIterator) Next

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 TornadoLockedSession

type TornadoLockedSession struct {
	Contract     *TornadoLocked    // 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
}

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

func (*TornadoLockedSession) BulkResolve

func (_TornadoLocked *TornadoLockedSession) BulkResolve(domains [][32]byte) ([]common.Address, error)

BulkResolve is a free data retrieval call binding the contract method 0xf9e54234.

Solidity: function bulkResolve(bytes32[] domains) view returns(address[] result)

func (*TornadoLockedSession) CLOSINGPERIOD

func (_TornadoLocked *TornadoLockedSession) CLOSINGPERIOD() (*big.Int, error)

CLOSINGPERIOD is a free data retrieval call binding the contract method 0xce25d71c.

Solidity: function CLOSING_PERIOD() view returns(uint256)

func (*TornadoLockedSession) CanWithdrawAfter

func (_TornadoLocked *TornadoLockedSession) CanWithdrawAfter(arg0 common.Address) (*big.Int, error)

CanWithdrawAfter is a free data retrieval call binding the contract method 0xa72edda3.

Solidity: function canWithdrawAfter(address ) view returns(uint256)

func (*TornadoLockedSession) CastDelegatedVote

func (_TornadoLocked *TornadoLockedSession) CastDelegatedVote(from []common.Address, proposalId *big.Int, support bool) (*types.Transaction, error)

CastDelegatedVote is a paid mutator transaction binding the contract method 0xb859f11b.

Solidity: function castDelegatedVote(address[] from, uint256 proposalId, bool support) returns()

func (*TornadoLockedSession) CastVote

func (_TornadoLocked *TornadoLockedSession) CastVote(proposalId *big.Int, support bool) (*types.Transaction, error)

CastVote is a paid mutator transaction binding the contract method 0x15373e3d.

Solidity: function castVote(uint256 proposalId, bool support) returns()

func (*TornadoLockedSession) CheckIfQuorumReached

func (_TornadoLocked *TornadoLockedSession) CheckIfQuorumReached(proposalId *big.Int) (bool, error)

CheckIfQuorumReached is a free data retrieval call binding the contract method 0x32687ec1.

Solidity: function checkIfQuorumReached(uint256 proposalId) view returns(bool)

func (*TornadoLockedSession) Delegate

func (_TornadoLocked *TornadoLockedSession) Delegate(to common.Address) (*types.Transaction, error)

Delegate is a paid mutator transaction binding the contract method 0x5c19a95c.

Solidity: function delegate(address to) returns()

func (*TornadoLockedSession) DelegatedTo

func (_TornadoLocked *TornadoLockedSession) DelegatedTo(arg0 common.Address) (common.Address, error)

DelegatedTo is a free data retrieval call binding the contract method 0x65da1264.

Solidity: function delegatedTo(address ) view returns(address)

func (*TornadoLockedSession) EXECUTIONDELAY

func (_TornadoLocked *TornadoLockedSession) EXECUTIONDELAY() (*big.Int, error)

EXECUTIONDELAY is a free data retrieval call binding the contract method 0x37f135d7.

Solidity: function EXECUTION_DELAY() view returns(uint256)

func (*TornadoLockedSession) EXECUTIONEXPIRATION

func (_TornadoLocked *TornadoLockedSession) EXECUTIONEXPIRATION() (*big.Int, error)

EXECUTIONEXPIRATION is a free data retrieval call binding the contract method 0x6a661755.

Solidity: function EXECUTION_EXPIRATION() view returns(uint256)

func (*TornadoLockedSession) Execute

func (_TornadoLocked *TornadoLockedSession) Execute(proposalId *big.Int) (*types.Transaction, error)

Execute is a paid mutator transaction binding the contract method 0xfe0d94c1.

Solidity: function execute(uint256 proposalId) payable returns()

func (*TornadoLockedSession) GasCompensationVault

func (_TornadoLocked *TornadoLockedSession) GasCompensationVault() (common.Address, error)

GasCompensationVault is a free data retrieval call binding the contract method 0x8b34a960.

Solidity: function gasCompensationVault() view returns(address)

func (*TornadoLockedSession) GetReceipt

func (_TornadoLocked *TornadoLockedSession) GetReceipt(proposalId *big.Int, voter common.Address) (GovernanceReceipt, error)

GetReceipt is a free data retrieval call binding the contract method 0xe23a9a52.

Solidity: function getReceipt(uint256 proposalId, address voter) view returns((bool,bool,uint256))

func (*TornadoLockedSession) HasAccountVoted

func (_TornadoLocked *TornadoLockedSession) HasAccountVoted(proposalId *big.Int, account common.Address) (bool, error)

HasAccountVoted is a free data retrieval call binding the contract method 0xe525aa08.

Solidity: function hasAccountVoted(uint256 proposalId, address account) view returns(bool)

func (*TornadoLockedSession) Initialize

func (_TornadoLocked *TornadoLockedSession) Initialize(_torn [32]byte) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0x9498bd71.

Solidity: function initialize(bytes32 _torn) returns()

func (*TornadoLockedSession) LatestProposalIds

func (_TornadoLocked *TornadoLockedSession) LatestProposalIds(arg0 common.Address) (*big.Int, error)

LatestProposalIds is a free data retrieval call binding the contract method 0x17977c61.

Solidity: function latestProposalIds(address ) view returns(uint256)

func (*TornadoLockedSession) Lock

func (_TornadoLocked *TornadoLockedSession) Lock(owner common.Address, amount *big.Int, deadline *big.Int, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error)

Lock is a paid mutator transaction binding the contract method 0xf0b76892.

Solidity: function lock(address owner, uint256 amount, uint256 deadline, uint8 v, bytes32 r, bytes32 s) returns()

func (*TornadoLockedSession) LockWithApproval

func (_TornadoLocked *TornadoLockedSession) LockWithApproval(amount *big.Int) (*types.Transaction, error)

LockWithApproval is a paid mutator transaction binding the contract method 0xb54426c8.

Solidity: function lockWithApproval(uint256 amount) returns()

func (*TornadoLockedSession) LockedBalance

func (_TornadoLocked *TornadoLockedSession) LockedBalance(arg0 common.Address) (*big.Int, error)

LockedBalance is a free data retrieval call binding the contract method 0x9ae697bf.

Solidity: function lockedBalance(address ) view returns(uint256)

func (*TornadoLockedSession) PROPOSALTHRESHOLD

func (_TornadoLocked *TornadoLockedSession) PROPOSALTHRESHOLD() (*big.Int, error)

PROPOSALTHRESHOLD is a free data retrieval call binding the contract method 0xa6c26603.

Solidity: function PROPOSAL_THRESHOLD() view returns(uint256)

func (*TornadoLockedSession) ProposalCount

func (_TornadoLocked *TornadoLockedSession) ProposalCount() (*big.Int, error)

ProposalCount is a free data retrieval call binding the contract method 0xda35c664.

Solidity: function proposalCount() view returns(uint256)

func (*TornadoLockedSession) Proposals

func (_TornadoLocked *TornadoLockedSession) Proposals(arg0 *big.Int) (struct {
	Proposer     common.Address
	Target       common.Address
	StartTime    *big.Int
	EndTime      *big.Int
	ForVotes     *big.Int
	AgainstVotes *big.Int
	Executed     bool
	Extended     bool
}, error)

Proposals is a free data retrieval call binding the contract method 0x013cf08b.

Solidity: function proposals(uint256 ) view returns(address proposer, address target, uint256 startTime, uint256 endTime, uint256 forVotes, uint256 againstVotes, bool executed, bool extended)

func (*TornadoLockedSession) Propose

func (_TornadoLocked *TornadoLockedSession) Propose(target common.Address, description string) (*types.Transaction, error)

Propose is a paid mutator transaction binding the contract method 0xd6f0948c.

Solidity: function propose(address target, string description) returns(uint256)

func (*TornadoLockedSession) ProposeByDelegate

func (_TornadoLocked *TornadoLockedSession) ProposeByDelegate(from common.Address, target common.Address, description string) (*types.Transaction, error)

ProposeByDelegate is a paid mutator transaction binding the contract method 0x58e9fff0.

Solidity: function proposeByDelegate(address from, address target, string description) returns(uint256)

func (*TornadoLockedSession) QUORUMVOTES

func (_TornadoLocked *TornadoLockedSession) QUORUMVOTES() (*big.Int, error)

QUORUMVOTES is a free data retrieval call binding the contract method 0x671dd275.

Solidity: function QUORUM_VOTES() view returns(uint256)

func (*TornadoLockedSession) Receive

func (_TornadoLocked *TornadoLockedSession) Receive() (*types.Transaction, error)

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

Solidity: receive() payable returns()

func (*TornadoLockedSession) Resolve

func (_TornadoLocked *TornadoLockedSession) Resolve(node [32]byte) (common.Address, error)

Resolve is a free data retrieval call binding the contract method 0x5c23bdf5.

Solidity: function resolve(bytes32 node) view returns(address)

func (*TornadoLockedSession) ReturnMultisigAddress

func (_TornadoLocked *TornadoLockedSession) ReturnMultisigAddress() (common.Address, error)

ReturnMultisigAddress is a free data retrieval call binding the contract method 0x24b0435f.

Solidity: function returnMultisigAddress() pure returns(address)

func (*TornadoLockedSession) SetClosingPeriod

func (_TornadoLocked *TornadoLockedSession) SetClosingPeriod(closingPeriod *big.Int) (*types.Transaction, error)

SetClosingPeriod is a paid mutator transaction binding the contract method 0xc0c0e820.

Solidity: function setClosingPeriod(uint256 closingPeriod) returns()

func (*TornadoLockedSession) SetExecutionDelay

func (_TornadoLocked *TornadoLockedSession) SetExecutionDelay(executionDelay *big.Int) (*types.Transaction, error)

SetExecutionDelay is a paid mutator transaction binding the contract method 0xe4917d9f.

Solidity: function setExecutionDelay(uint256 executionDelay) returns()

func (*TornadoLockedSession) SetExecutionExpiration

func (_TornadoLocked *TornadoLockedSession) SetExecutionExpiration(executionExpiration *big.Int) (*types.Transaction, error)

SetExecutionExpiration is a paid mutator transaction binding the contract method 0x9a9e3b6e.

Solidity: function setExecutionExpiration(uint256 executionExpiration) returns()

func (*TornadoLockedSession) SetGasCompensations

func (_TornadoLocked *TornadoLockedSession) SetGasCompensations(gasCompensationsLimit *big.Int) (*types.Transaction, error)

SetGasCompensations is a paid mutator transaction binding the contract method 0xef3f8bb1.

Solidity: function setGasCompensations(uint256 gasCompensationsLimit) returns()

func (*TornadoLockedSession) SetProposalThreshold

func (_TornadoLocked *TornadoLockedSession) SetProposalThreshold(proposalThreshold *big.Int) (*types.Transaction, error)

SetProposalThreshold is a paid mutator transaction binding the contract method 0xece40cc1.

Solidity: function setProposalThreshold(uint256 proposalThreshold) returns()

func (*TornadoLockedSession) SetQuorumVotes

func (_TornadoLocked *TornadoLockedSession) SetQuorumVotes(quorumVotes *big.Int) (*types.Transaction, error)

SetQuorumVotes is a paid mutator transaction binding the contract method 0x02ec8f9e.

Solidity: function setQuorumVotes(uint256 quorumVotes) returns()

func (*TornadoLockedSession) SetVoteExtendTime

func (_TornadoLocked *TornadoLockedSession) SetVoteExtendTime(voteExtendTime *big.Int) (*types.Transaction, error)

SetVoteExtendTime is a paid mutator transaction binding the contract method 0x6dc2dc6c.

Solidity: function setVoteExtendTime(uint256 voteExtendTime) returns()

func (*TornadoLockedSession) SetVotingDelay

func (_TornadoLocked *TornadoLockedSession) SetVotingDelay(votingDelay *big.Int) (*types.Transaction, error)

SetVotingDelay is a paid mutator transaction binding the contract method 0x70b0f660.

Solidity: function setVotingDelay(uint256 votingDelay) returns()

func (*TornadoLockedSession) SetVotingPeriod

func (_TornadoLocked *TornadoLockedSession) SetVotingPeriod(votingPeriod *big.Int) (*types.Transaction, error)

SetVotingPeriod is a paid mutator transaction binding the contract method 0xea0217cf.

Solidity: function setVotingPeriod(uint256 votingPeriod) returns()

func (*TornadoLockedSession) Staking

func (_TornadoLocked *TornadoLockedSession) Staking() (common.Address, error)

Staking is a free data retrieval call binding the contract method 0xf57df22e.

Solidity: function Staking() view returns(address)

func (*TornadoLockedSession) State

func (_TornadoLocked *TornadoLockedSession) State(proposalId *big.Int) (uint8, error)

State is a free data retrieval call binding the contract method 0x3e4f49e6.

Solidity: function state(uint256 proposalId) view returns(uint8)

func (*TornadoLockedSession) Torn

func (_TornadoLocked *TornadoLockedSession) Torn() (common.Address, error)

Torn is a free data retrieval call binding the contract method 0xadf898a4.

Solidity: function torn() view returns(address)

func (*TornadoLockedSession) Undelegate

func (_TornadoLocked *TornadoLockedSession) Undelegate() (*types.Transaction, error)

Undelegate is a paid mutator transaction binding the contract method 0x92ab89bb.

Solidity: function undelegate() returns()

func (*TornadoLockedSession) Unlock

func (_TornadoLocked *TornadoLockedSession) Unlock(amount *big.Int) (*types.Transaction, error)

Unlock is a paid mutator transaction binding the contract method 0x6198e339.

Solidity: function unlock(uint256 amount) returns()

func (*TornadoLockedSession) UserVault

func (_TornadoLocked *TornadoLockedSession) UserVault() (common.Address, error)

UserVault is a free data retrieval call binding the contract method 0x9daafec7.

Solidity: function userVault() view returns(address)

func (*TornadoLockedSession) VOTEEXTENDTIME

func (_TornadoLocked *TornadoLockedSession) VOTEEXTENDTIME() (*big.Int, error)

VOTEEXTENDTIME is a free data retrieval call binding the contract method 0x587a6ecb.

Solidity: function VOTE_EXTEND_TIME() view returns(uint256)

func (*TornadoLockedSession) VOTINGDELAY

func (_TornadoLocked *TornadoLockedSession) VOTINGDELAY() (*big.Int, error)

VOTINGDELAY is a free data retrieval call binding the contract method 0xd6159fe5.

Solidity: function VOTING_DELAY() view returns(uint256)

func (*TornadoLockedSession) VOTINGPERIOD

func (_TornadoLocked *TornadoLockedSession) VOTINGPERIOD() (*big.Int, error)

VOTINGPERIOD is a free data retrieval call binding the contract method 0xb1610d7e.

Solidity: function VOTING_PERIOD() view returns(uint256)

func (*TornadoLockedSession) Version

func (_TornadoLocked *TornadoLockedSession) Version() (string, error)

Version is a free data retrieval call binding the contract method 0x54fd4d50.

Solidity: function version() pure returns(string)

func (*TornadoLockedSession) WithdrawFromHelper

func (_TornadoLocked *TornadoLockedSession) WithdrawFromHelper(amount *big.Int) (*types.Transaction, error)

WithdrawFromHelper is a paid mutator transaction binding the contract method 0x932d5157.

Solidity: function withdrawFromHelper(uint256 amount) returns()

type TornadoLockedTransactor

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

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

func NewTornadoLockedTransactor

func NewTornadoLockedTransactor(address common.Address, transactor bind.ContractTransactor) (*TornadoLockedTransactor, error)

NewTornadoLockedTransactor creates a new write-only instance of TornadoLocked, bound to a specific deployed contract.

func (*TornadoLockedTransactor) CastDelegatedVote

func (_TornadoLocked *TornadoLockedTransactor) CastDelegatedVote(opts *bind.TransactOpts, from []common.Address, proposalId *big.Int, support bool) (*types.Transaction, error)

CastDelegatedVote is a paid mutator transaction binding the contract method 0xb859f11b.

Solidity: function castDelegatedVote(address[] from, uint256 proposalId, bool support) returns()

func (*TornadoLockedTransactor) CastVote

func (_TornadoLocked *TornadoLockedTransactor) CastVote(opts *bind.TransactOpts, proposalId *big.Int, support bool) (*types.Transaction, error)

CastVote is a paid mutator transaction binding the contract method 0x15373e3d.

Solidity: function castVote(uint256 proposalId, bool support) returns()

func (*TornadoLockedTransactor) Delegate

func (_TornadoLocked *TornadoLockedTransactor) Delegate(opts *bind.TransactOpts, to common.Address) (*types.Transaction, error)

Delegate is a paid mutator transaction binding the contract method 0x5c19a95c.

Solidity: function delegate(address to) returns()

func (*TornadoLockedTransactor) Execute

func (_TornadoLocked *TornadoLockedTransactor) Execute(opts *bind.TransactOpts, proposalId *big.Int) (*types.Transaction, error)

Execute is a paid mutator transaction binding the contract method 0xfe0d94c1.

Solidity: function execute(uint256 proposalId) payable returns()

func (*TornadoLockedTransactor) Initialize

func (_TornadoLocked *TornadoLockedTransactor) Initialize(opts *bind.TransactOpts, _torn [32]byte) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0x9498bd71.

Solidity: function initialize(bytes32 _torn) returns()

func (*TornadoLockedTransactor) Lock

func (_TornadoLocked *TornadoLockedTransactor) Lock(opts *bind.TransactOpts, owner common.Address, amount *big.Int, deadline *big.Int, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error)

Lock is a paid mutator transaction binding the contract method 0xf0b76892.

Solidity: function lock(address owner, uint256 amount, uint256 deadline, uint8 v, bytes32 r, bytes32 s) returns()

func (*TornadoLockedTransactor) LockWithApproval

func (_TornadoLocked *TornadoLockedTransactor) LockWithApproval(opts *bind.TransactOpts, amount *big.Int) (*types.Transaction, error)

LockWithApproval is a paid mutator transaction binding the contract method 0xb54426c8.

Solidity: function lockWithApproval(uint256 amount) returns()

func (*TornadoLockedTransactor) Propose

func (_TornadoLocked *TornadoLockedTransactor) Propose(opts *bind.TransactOpts, target common.Address, description string) (*types.Transaction, error)

Propose is a paid mutator transaction binding the contract method 0xd6f0948c.

Solidity: function propose(address target, string description) returns(uint256)

func (*TornadoLockedTransactor) ProposeByDelegate

func (_TornadoLocked *TornadoLockedTransactor) ProposeByDelegate(opts *bind.TransactOpts, from common.Address, target common.Address, description string) (*types.Transaction, error)

ProposeByDelegate is a paid mutator transaction binding the contract method 0x58e9fff0.

Solidity: function proposeByDelegate(address from, address target, string description) returns(uint256)

func (*TornadoLockedTransactor) Receive

func (_TornadoLocked *TornadoLockedTransactor) Receive(opts *bind.TransactOpts) (*types.Transaction, error)

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

Solidity: receive() payable returns()

func (*TornadoLockedTransactor) SetClosingPeriod

func (_TornadoLocked *TornadoLockedTransactor) SetClosingPeriod(opts *bind.TransactOpts, closingPeriod *big.Int) (*types.Transaction, error)

SetClosingPeriod is a paid mutator transaction binding the contract method 0xc0c0e820.

Solidity: function setClosingPeriod(uint256 closingPeriod) returns()

func (*TornadoLockedTransactor) SetExecutionDelay

func (_TornadoLocked *TornadoLockedTransactor) SetExecutionDelay(opts *bind.TransactOpts, executionDelay *big.Int) (*types.Transaction, error)

SetExecutionDelay is a paid mutator transaction binding the contract method 0xe4917d9f.

Solidity: function setExecutionDelay(uint256 executionDelay) returns()

func (*TornadoLockedTransactor) SetExecutionExpiration

func (_TornadoLocked *TornadoLockedTransactor) SetExecutionExpiration(opts *bind.TransactOpts, executionExpiration *big.Int) (*types.Transaction, error)

SetExecutionExpiration is a paid mutator transaction binding the contract method 0x9a9e3b6e.

Solidity: function setExecutionExpiration(uint256 executionExpiration) returns()

func (*TornadoLockedTransactor) SetGasCompensations

func (_TornadoLocked *TornadoLockedTransactor) SetGasCompensations(opts *bind.TransactOpts, gasCompensationsLimit *big.Int) (*types.Transaction, error)

SetGasCompensations is a paid mutator transaction binding the contract method 0xef3f8bb1.

Solidity: function setGasCompensations(uint256 gasCompensationsLimit) returns()

func (*TornadoLockedTransactor) SetProposalThreshold

func (_TornadoLocked *TornadoLockedTransactor) SetProposalThreshold(opts *bind.TransactOpts, proposalThreshold *big.Int) (*types.Transaction, error)

SetProposalThreshold is a paid mutator transaction binding the contract method 0xece40cc1.

Solidity: function setProposalThreshold(uint256 proposalThreshold) returns()

func (*TornadoLockedTransactor) SetQuorumVotes

func (_TornadoLocked *TornadoLockedTransactor) SetQuorumVotes(opts *bind.TransactOpts, quorumVotes *big.Int) (*types.Transaction, error)

SetQuorumVotes is a paid mutator transaction binding the contract method 0x02ec8f9e.

Solidity: function setQuorumVotes(uint256 quorumVotes) returns()

func (*TornadoLockedTransactor) SetVoteExtendTime

func (_TornadoLocked *TornadoLockedTransactor) SetVoteExtendTime(opts *bind.TransactOpts, voteExtendTime *big.Int) (*types.Transaction, error)

SetVoteExtendTime is a paid mutator transaction binding the contract method 0x6dc2dc6c.

Solidity: function setVoteExtendTime(uint256 voteExtendTime) returns()

func (*TornadoLockedTransactor) SetVotingDelay

func (_TornadoLocked *TornadoLockedTransactor) SetVotingDelay(opts *bind.TransactOpts, votingDelay *big.Int) (*types.Transaction, error)

SetVotingDelay is a paid mutator transaction binding the contract method 0x70b0f660.

Solidity: function setVotingDelay(uint256 votingDelay) returns()

func (*TornadoLockedTransactor) SetVotingPeriod

func (_TornadoLocked *TornadoLockedTransactor) SetVotingPeriod(opts *bind.TransactOpts, votingPeriod *big.Int) (*types.Transaction, error)

SetVotingPeriod is a paid mutator transaction binding the contract method 0xea0217cf.

Solidity: function setVotingPeriod(uint256 votingPeriod) returns()

func (*TornadoLockedTransactor) Undelegate

func (_TornadoLocked *TornadoLockedTransactor) Undelegate(opts *bind.TransactOpts) (*types.Transaction, error)

Undelegate is a paid mutator transaction binding the contract method 0x92ab89bb.

Solidity: function undelegate() returns()

func (*TornadoLockedTransactor) Unlock

func (_TornadoLocked *TornadoLockedTransactor) Unlock(opts *bind.TransactOpts, amount *big.Int) (*types.Transaction, error)

Unlock is a paid mutator transaction binding the contract method 0x6198e339.

Solidity: function unlock(uint256 amount) returns()

func (*TornadoLockedTransactor) WithdrawFromHelper

func (_TornadoLocked *TornadoLockedTransactor) WithdrawFromHelper(opts *bind.TransactOpts, amount *big.Int) (*types.Transaction, error)

WithdrawFromHelper is a paid mutator transaction binding the contract method 0x932d5157.

Solidity: function withdrawFromHelper(uint256 amount) returns()

type TornadoLockedTransactorRaw

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

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

func (*TornadoLockedTransactorRaw) Transact

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

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

func (*TornadoLockedTransactorRaw) Transfer

func (_TornadoLocked *TornadoLockedTransactorRaw) 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 TornadoLockedTransactorSession

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

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

func (*TornadoLockedTransactorSession) CastDelegatedVote

func (_TornadoLocked *TornadoLockedTransactorSession) CastDelegatedVote(from []common.Address, proposalId *big.Int, support bool) (*types.Transaction, error)

CastDelegatedVote is a paid mutator transaction binding the contract method 0xb859f11b.

Solidity: function castDelegatedVote(address[] from, uint256 proposalId, bool support) returns()

func (*TornadoLockedTransactorSession) CastVote

func (_TornadoLocked *TornadoLockedTransactorSession) CastVote(proposalId *big.Int, support bool) (*types.Transaction, error)

CastVote is a paid mutator transaction binding the contract method 0x15373e3d.

Solidity: function castVote(uint256 proposalId, bool support) returns()

func (*TornadoLockedTransactorSession) Delegate

func (_TornadoLocked *TornadoLockedTransactorSession) Delegate(to common.Address) (*types.Transaction, error)

Delegate is a paid mutator transaction binding the contract method 0x5c19a95c.

Solidity: function delegate(address to) returns()

func (*TornadoLockedTransactorSession) Execute

func (_TornadoLocked *TornadoLockedTransactorSession) Execute(proposalId *big.Int) (*types.Transaction, error)

Execute is a paid mutator transaction binding the contract method 0xfe0d94c1.

Solidity: function execute(uint256 proposalId) payable returns()

func (*TornadoLockedTransactorSession) Initialize

func (_TornadoLocked *TornadoLockedTransactorSession) Initialize(_torn [32]byte) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0x9498bd71.

Solidity: function initialize(bytes32 _torn) returns()

func (*TornadoLockedTransactorSession) Lock

func (_TornadoLocked *TornadoLockedTransactorSession) Lock(owner common.Address, amount *big.Int, deadline *big.Int, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error)

Lock is a paid mutator transaction binding the contract method 0xf0b76892.

Solidity: function lock(address owner, uint256 amount, uint256 deadline, uint8 v, bytes32 r, bytes32 s) returns()

func (*TornadoLockedTransactorSession) LockWithApproval

func (_TornadoLocked *TornadoLockedTransactorSession) LockWithApproval(amount *big.Int) (*types.Transaction, error)

LockWithApproval is a paid mutator transaction binding the contract method 0xb54426c8.

Solidity: function lockWithApproval(uint256 amount) returns()

func (*TornadoLockedTransactorSession) Propose

func (_TornadoLocked *TornadoLockedTransactorSession) Propose(target common.Address, description string) (*types.Transaction, error)

Propose is a paid mutator transaction binding the contract method 0xd6f0948c.

Solidity: function propose(address target, string description) returns(uint256)

func (*TornadoLockedTransactorSession) ProposeByDelegate

func (_TornadoLocked *TornadoLockedTransactorSession) ProposeByDelegate(from common.Address, target common.Address, description string) (*types.Transaction, error)

ProposeByDelegate is a paid mutator transaction binding the contract method 0x58e9fff0.

Solidity: function proposeByDelegate(address from, address target, string description) returns(uint256)

func (*TornadoLockedTransactorSession) Receive

func (_TornadoLocked *TornadoLockedTransactorSession) Receive() (*types.Transaction, error)

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

Solidity: receive() payable returns()

func (*TornadoLockedTransactorSession) SetClosingPeriod

func (_TornadoLocked *TornadoLockedTransactorSession) SetClosingPeriod(closingPeriod *big.Int) (*types.Transaction, error)

SetClosingPeriod is a paid mutator transaction binding the contract method 0xc0c0e820.

Solidity: function setClosingPeriod(uint256 closingPeriod) returns()

func (*TornadoLockedTransactorSession) SetExecutionDelay

func (_TornadoLocked *TornadoLockedTransactorSession) SetExecutionDelay(executionDelay *big.Int) (*types.Transaction, error)

SetExecutionDelay is a paid mutator transaction binding the contract method 0xe4917d9f.

Solidity: function setExecutionDelay(uint256 executionDelay) returns()

func (*TornadoLockedTransactorSession) SetExecutionExpiration

func (_TornadoLocked *TornadoLockedTransactorSession) SetExecutionExpiration(executionExpiration *big.Int) (*types.Transaction, error)

SetExecutionExpiration is a paid mutator transaction binding the contract method 0x9a9e3b6e.

Solidity: function setExecutionExpiration(uint256 executionExpiration) returns()

func (*TornadoLockedTransactorSession) SetGasCompensations

func (_TornadoLocked *TornadoLockedTransactorSession) SetGasCompensations(gasCompensationsLimit *big.Int) (*types.Transaction, error)

SetGasCompensations is a paid mutator transaction binding the contract method 0xef3f8bb1.

Solidity: function setGasCompensations(uint256 gasCompensationsLimit) returns()

func (*TornadoLockedTransactorSession) SetProposalThreshold

func (_TornadoLocked *TornadoLockedTransactorSession) SetProposalThreshold(proposalThreshold *big.Int) (*types.Transaction, error)

SetProposalThreshold is a paid mutator transaction binding the contract method 0xece40cc1.

Solidity: function setProposalThreshold(uint256 proposalThreshold) returns()

func (*TornadoLockedTransactorSession) SetQuorumVotes

func (_TornadoLocked *TornadoLockedTransactorSession) SetQuorumVotes(quorumVotes *big.Int) (*types.Transaction, error)

SetQuorumVotes is a paid mutator transaction binding the contract method 0x02ec8f9e.

Solidity: function setQuorumVotes(uint256 quorumVotes) returns()

func (*TornadoLockedTransactorSession) SetVoteExtendTime

func (_TornadoLocked *TornadoLockedTransactorSession) SetVoteExtendTime(voteExtendTime *big.Int) (*types.Transaction, error)

SetVoteExtendTime is a paid mutator transaction binding the contract method 0x6dc2dc6c.

Solidity: function setVoteExtendTime(uint256 voteExtendTime) returns()

func (*TornadoLockedTransactorSession) SetVotingDelay

func (_TornadoLocked *TornadoLockedTransactorSession) SetVotingDelay(votingDelay *big.Int) (*types.Transaction, error)

SetVotingDelay is a paid mutator transaction binding the contract method 0x70b0f660.

Solidity: function setVotingDelay(uint256 votingDelay) returns()

func (*TornadoLockedTransactorSession) SetVotingPeriod

func (_TornadoLocked *TornadoLockedTransactorSession) SetVotingPeriod(votingPeriod *big.Int) (*types.Transaction, error)

SetVotingPeriod is a paid mutator transaction binding the contract method 0xea0217cf.

Solidity: function setVotingPeriod(uint256 votingPeriod) returns()

func (*TornadoLockedTransactorSession) Undelegate

func (_TornadoLocked *TornadoLockedTransactorSession) Undelegate() (*types.Transaction, error)

Undelegate is a paid mutator transaction binding the contract method 0x92ab89bb.

Solidity: function undelegate() returns()

func (*TornadoLockedTransactorSession) Unlock

func (_TornadoLocked *TornadoLockedTransactorSession) Unlock(amount *big.Int) (*types.Transaction, error)

Unlock is a paid mutator transaction binding the contract method 0x6198e339.

Solidity: function unlock(uint256 amount) returns()

func (*TornadoLockedTransactorSession) WithdrawFromHelper

func (_TornadoLocked *TornadoLockedTransactorSession) WithdrawFromHelper(amount *big.Int) (*types.Transaction, error)

WithdrawFromHelper is a paid mutator transaction binding the contract method 0x932d5157.

Solidity: function withdrawFromHelper(uint256 amount) returns()

type TornadoLockedUndelegated

type TornadoLockedUndelegated struct {
	Account common.Address
	From    common.Address
	Raw     types.Log // Blockchain specific contextual infos
}

TornadoLockedUndelegated represents a Undelegated event raised by the TornadoLocked contract.

type TornadoLockedUndelegatedIterator

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

TornadoLockedUndelegatedIterator is returned from FilterUndelegated and is used to iterate over the raw logs and unpacked data for Undelegated events raised by the TornadoLocked contract.

func (*TornadoLockedUndelegatedIterator) Close

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

func (*TornadoLockedUndelegatedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*TornadoLockedUndelegatedIterator) Next

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 TornadoLockedVoted

type TornadoLockedVoted struct {
	ProposalId *big.Int
	Voter      common.Address
	Support    bool
	Votes      *big.Int
	Raw        types.Log // Blockchain specific contextual infos
}

TornadoLockedVoted represents a Voted event raised by the TornadoLocked contract.

type TornadoLockedVotedIterator

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

TornadoLockedVotedIterator is returned from FilterVoted and is used to iterate over the raw logs and unpacked data for Voted events raised by the TornadoLocked contract.

func (*TornadoLockedVotedIterator) Close

func (it *TornadoLockedVotedIterator) Close() error

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

func (*TornadoLockedVotedIterator) Error

func (it *TornadoLockedVotedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*TornadoLockedVotedIterator) Next

func (it *TornadoLockedVotedIterator) 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 TornadoStaking

type TornadoStaking struct {
	TornadoStakingCaller     // Read-only binding to the contract
	TornadoStakingTransactor // Write-only binding to the contract
	TornadoStakingFilterer   // Log filterer for contract events
}

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

func NewTornadoStaking

func NewTornadoStaking(address common.Address, backend bind.ContractBackend) (*TornadoStaking, error)

NewTornadoStaking creates a new instance of TornadoStaking, bound to a specific deployed contract.

type TornadoStakingCaller

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

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

func NewTornadoStakingCaller

func NewTornadoStakingCaller(address common.Address, caller bind.ContractCaller) (*TornadoStakingCaller, error)

NewTornadoStakingCaller creates a new read-only instance of TornadoStaking, bound to a specific deployed contract.

func (*TornadoStakingCaller) AccumulatedRewardPerTorn

func (_TornadoStaking *TornadoStakingCaller) AccumulatedRewardPerTorn(opts *bind.CallOpts) (*big.Int, error)

AccumulatedRewardPerTorn is a free data retrieval call binding the contract method 0xe0d32652.

Solidity: function accumulatedRewardPerTorn() view returns(uint256)

func (*TornadoStakingCaller) AccumulatedRewardRateOnLastUpdate

func (_TornadoStaking *TornadoStakingCaller) AccumulatedRewardRateOnLastUpdate(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)

AccumulatedRewardRateOnLastUpdate is a free data retrieval call binding the contract method 0xd7ada20d.

Solidity: function accumulatedRewardRateOnLastUpdate(address ) view returns(uint256)

func (*TornadoStakingCaller) AccumulatedRewards

func (_TornadoStaking *TornadoStakingCaller) AccumulatedRewards(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)

AccumulatedRewards is a free data retrieval call binding the contract method 0x73f273fc.

Solidity: function accumulatedRewards(address ) view returns(uint256)

func (*TornadoStakingCaller) BulkResolve

func (_TornadoStaking *TornadoStakingCaller) BulkResolve(opts *bind.CallOpts, domains [][32]byte) ([]common.Address, error)

BulkResolve is a free data retrieval call binding the contract method 0xf9e54234.

Solidity: function bulkResolve(bytes32[] domains) view returns(address[] result)

func (*TornadoStakingCaller) CheckReward

func (_TornadoStaking *TornadoStakingCaller) CheckReward(opts *bind.CallOpts, account common.Address) (*big.Int, error)

CheckReward is a free data retrieval call binding the contract method 0xc3c90e64.

Solidity: function checkReward(address account) view returns(uint256 rewards)

func (*TornadoStakingCaller) Governance

func (_TornadoStaking *TornadoStakingCaller) Governance(opts *bind.CallOpts) (common.Address, error)

Governance is a free data retrieval call binding the contract method 0x94539112.

Solidity: function Governance() view returns(address)

func (*TornadoStakingCaller) RatioConstant

func (_TornadoStaking *TornadoStakingCaller) RatioConstant(opts *bind.CallOpts) (*big.Int, error)

RatioConstant is a free data retrieval call binding the contract method 0x80a12041.

Solidity: function ratioConstant() view returns(uint256)

func (*TornadoStakingCaller) RelayerRegistry

func (_TornadoStaking *TornadoStakingCaller) RelayerRegistry(opts *bind.CallOpts) (common.Address, error)

RelayerRegistry is a free data retrieval call binding the contract method 0x47ff589d.

Solidity: function relayerRegistry() view returns(address)

func (*TornadoStakingCaller) Resolve

func (_TornadoStaking *TornadoStakingCaller) Resolve(opts *bind.CallOpts, node [32]byte) (common.Address, error)

Resolve is a free data retrieval call binding the contract method 0x5c23bdf5.

Solidity: function resolve(bytes32 node) view returns(address)

func (*TornadoStakingCaller) Torn

func (_TornadoStaking *TornadoStakingCaller) Torn(opts *bind.CallOpts) (common.Address, error)

Torn is a free data retrieval call binding the contract method 0xadf898a4.

Solidity: function torn() view returns(address)

type TornadoStakingCallerRaw

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

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

func (*TornadoStakingCallerRaw) Call

func (_TornadoStaking *TornadoStakingCallerRaw) 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 TornadoStakingCallerSession

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

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

func (*TornadoStakingCallerSession) AccumulatedRewardPerTorn

func (_TornadoStaking *TornadoStakingCallerSession) AccumulatedRewardPerTorn() (*big.Int, error)

AccumulatedRewardPerTorn is a free data retrieval call binding the contract method 0xe0d32652.

Solidity: function accumulatedRewardPerTorn() view returns(uint256)

func (*TornadoStakingCallerSession) AccumulatedRewardRateOnLastUpdate

func (_TornadoStaking *TornadoStakingCallerSession) AccumulatedRewardRateOnLastUpdate(arg0 common.Address) (*big.Int, error)

AccumulatedRewardRateOnLastUpdate is a free data retrieval call binding the contract method 0xd7ada20d.

Solidity: function accumulatedRewardRateOnLastUpdate(address ) view returns(uint256)

func (*TornadoStakingCallerSession) AccumulatedRewards

func (_TornadoStaking *TornadoStakingCallerSession) AccumulatedRewards(arg0 common.Address) (*big.Int, error)

AccumulatedRewards is a free data retrieval call binding the contract method 0x73f273fc.

Solidity: function accumulatedRewards(address ) view returns(uint256)

func (*TornadoStakingCallerSession) BulkResolve

func (_TornadoStaking *TornadoStakingCallerSession) BulkResolve(domains [][32]byte) ([]common.Address, error)

BulkResolve is a free data retrieval call binding the contract method 0xf9e54234.

Solidity: function bulkResolve(bytes32[] domains) view returns(address[] result)

func (*TornadoStakingCallerSession) CheckReward

func (_TornadoStaking *TornadoStakingCallerSession) CheckReward(account common.Address) (*big.Int, error)

CheckReward is a free data retrieval call binding the contract method 0xc3c90e64.

Solidity: function checkReward(address account) view returns(uint256 rewards)

func (*TornadoStakingCallerSession) Governance

func (_TornadoStaking *TornadoStakingCallerSession) Governance() (common.Address, error)

Governance is a free data retrieval call binding the contract method 0x94539112.

Solidity: function Governance() view returns(address)

func (*TornadoStakingCallerSession) RatioConstant

func (_TornadoStaking *TornadoStakingCallerSession) RatioConstant() (*big.Int, error)

RatioConstant is a free data retrieval call binding the contract method 0x80a12041.

Solidity: function ratioConstant() view returns(uint256)

func (*TornadoStakingCallerSession) RelayerRegistry

func (_TornadoStaking *TornadoStakingCallerSession) RelayerRegistry() (common.Address, error)

RelayerRegistry is a free data retrieval call binding the contract method 0x47ff589d.

Solidity: function relayerRegistry() view returns(address)

func (*TornadoStakingCallerSession) Resolve

func (_TornadoStaking *TornadoStakingCallerSession) Resolve(node [32]byte) (common.Address, error)

Resolve is a free data retrieval call binding the contract method 0x5c23bdf5.

Solidity: function resolve(bytes32 node) view returns(address)

func (*TornadoStakingCallerSession) Torn

func (_TornadoStaking *TornadoStakingCallerSession) Torn() (common.Address, error)

Torn is a free data retrieval call binding the contract method 0xadf898a4.

Solidity: function torn() view returns(address)

type TornadoStakingFilterer

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

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

func NewTornadoStakingFilterer

func NewTornadoStakingFilterer(address common.Address, filterer bind.ContractFilterer) (*TornadoStakingFilterer, error)

NewTornadoStakingFilterer creates a new log filterer instance of TornadoStaking, bound to a specific deployed contract.

func (*TornadoStakingFilterer) FilterRewardsClaimed

func (_TornadoStaking *TornadoStakingFilterer) FilterRewardsClaimed(opts *bind.FilterOpts, account []common.Address) (*TornadoStakingRewardsClaimedIterator, error)

FilterRewardsClaimed is a free log retrieval operation binding the contract event 0xfc30cddea38e2bf4d6ea7d3f9ed3b6ad7f176419f4963bd81318067a4aee73fe.

Solidity: event RewardsClaimed(address indexed account, uint256 rewardsClaimed)

func (*TornadoStakingFilterer) FilterRewardsUpdated

func (_TornadoStaking *TornadoStakingFilterer) FilterRewardsUpdated(opts *bind.FilterOpts, account []common.Address) (*TornadoStakingRewardsUpdatedIterator, error)

FilterRewardsUpdated is a free log retrieval operation binding the contract event 0x39fe62076cf7adf3c60e355a2da5a4f17a958ca319e8eba385a6c09a8b649016.

Solidity: event RewardsUpdated(address indexed account, uint256 rewards)

func (*TornadoStakingFilterer) ParseRewardsClaimed

func (_TornadoStaking *TornadoStakingFilterer) ParseRewardsClaimed(log types.Log) (*TornadoStakingRewardsClaimed, error)

ParseRewardsClaimed is a log parse operation binding the contract event 0xfc30cddea38e2bf4d6ea7d3f9ed3b6ad7f176419f4963bd81318067a4aee73fe.

Solidity: event RewardsClaimed(address indexed account, uint256 rewardsClaimed)

func (*TornadoStakingFilterer) ParseRewardsUpdated

func (_TornadoStaking *TornadoStakingFilterer) ParseRewardsUpdated(log types.Log) (*TornadoStakingRewardsUpdated, error)

ParseRewardsUpdated is a log parse operation binding the contract event 0x39fe62076cf7adf3c60e355a2da5a4f17a958ca319e8eba385a6c09a8b649016.

Solidity: event RewardsUpdated(address indexed account, uint256 rewards)

func (*TornadoStakingFilterer) WatchRewardsClaimed

func (_TornadoStaking *TornadoStakingFilterer) WatchRewardsClaimed(opts *bind.WatchOpts, sink chan<- *TornadoStakingRewardsClaimed, account []common.Address) (event.Subscription, error)

WatchRewardsClaimed is a free log subscription operation binding the contract event 0xfc30cddea38e2bf4d6ea7d3f9ed3b6ad7f176419f4963bd81318067a4aee73fe.

Solidity: event RewardsClaimed(address indexed account, uint256 rewardsClaimed)

func (*TornadoStakingFilterer) WatchRewardsUpdated

func (_TornadoStaking *TornadoStakingFilterer) WatchRewardsUpdated(opts *bind.WatchOpts, sink chan<- *TornadoStakingRewardsUpdated, account []common.Address) (event.Subscription, error)

WatchRewardsUpdated is a free log subscription operation binding the contract event 0x39fe62076cf7adf3c60e355a2da5a4f17a958ca319e8eba385a6c09a8b649016.

Solidity: event RewardsUpdated(address indexed account, uint256 rewards)

type TornadoStakingRaw

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

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

func (*TornadoStakingRaw) Call

func (_TornadoStaking *TornadoStakingRaw) 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 (*TornadoStakingRaw) Transact

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

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

func (*TornadoStakingRaw) Transfer

func (_TornadoStaking *TornadoStakingRaw) 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 TornadoStakingRewardsClaimed

type TornadoStakingRewardsClaimed struct {
	Account        common.Address
	RewardsClaimed *big.Int
	Raw            types.Log // Blockchain specific contextual infos
}

TornadoStakingRewardsClaimed represents a RewardsClaimed event raised by the TornadoStaking contract.

type TornadoStakingRewardsClaimedIterator

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

TornadoStakingRewardsClaimedIterator is returned from FilterRewardsClaimed and is used to iterate over the raw logs and unpacked data for RewardsClaimed events raised by the TornadoStaking contract.

func (*TornadoStakingRewardsClaimedIterator) Close

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

func (*TornadoStakingRewardsClaimedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*TornadoStakingRewardsClaimedIterator) Next

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 TornadoStakingRewardsUpdated

type TornadoStakingRewardsUpdated struct {
	Account common.Address
	Rewards *big.Int
	Raw     types.Log // Blockchain specific contextual infos
}

TornadoStakingRewardsUpdated represents a RewardsUpdated event raised by the TornadoStaking contract.

type TornadoStakingRewardsUpdatedIterator

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

TornadoStakingRewardsUpdatedIterator is returned from FilterRewardsUpdated and is used to iterate over the raw logs and unpacked data for RewardsUpdated events raised by the TornadoStaking contract.

func (*TornadoStakingRewardsUpdatedIterator) Close

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

func (*TornadoStakingRewardsUpdatedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*TornadoStakingRewardsUpdatedIterator) Next

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 TornadoStakingSession

type TornadoStakingSession struct {
	Contract     *TornadoStaking   // 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
}

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

func (*TornadoStakingSession) AccumulatedRewardPerTorn

func (_TornadoStaking *TornadoStakingSession) AccumulatedRewardPerTorn() (*big.Int, error)

AccumulatedRewardPerTorn is a free data retrieval call binding the contract method 0xe0d32652.

Solidity: function accumulatedRewardPerTorn() view returns(uint256)

func (*TornadoStakingSession) AccumulatedRewardRateOnLastUpdate

func (_TornadoStaking *TornadoStakingSession) AccumulatedRewardRateOnLastUpdate(arg0 common.Address) (*big.Int, error)

AccumulatedRewardRateOnLastUpdate is a free data retrieval call binding the contract method 0xd7ada20d.

Solidity: function accumulatedRewardRateOnLastUpdate(address ) view returns(uint256)

func (*TornadoStakingSession) AccumulatedRewards

func (_TornadoStaking *TornadoStakingSession) AccumulatedRewards(arg0 common.Address) (*big.Int, error)

AccumulatedRewards is a free data retrieval call binding the contract method 0x73f273fc.

Solidity: function accumulatedRewards(address ) view returns(uint256)

func (*TornadoStakingSession) AddBurnRewards

func (_TornadoStaking *TornadoStakingSession) AddBurnRewards(amount *big.Int) (*types.Transaction, error)

AddBurnRewards is a paid mutator transaction binding the contract method 0x338610af.

Solidity: function addBurnRewards(uint256 amount) returns()

func (*TornadoStakingSession) BulkResolve

func (_TornadoStaking *TornadoStakingSession) BulkResolve(domains [][32]byte) ([]common.Address, error)

BulkResolve is a free data retrieval call binding the contract method 0xf9e54234.

Solidity: function bulkResolve(bytes32[] domains) view returns(address[] result)

func (*TornadoStakingSession) CheckReward

func (_TornadoStaking *TornadoStakingSession) CheckReward(account common.Address) (*big.Int, error)

CheckReward is a free data retrieval call binding the contract method 0xc3c90e64.

Solidity: function checkReward(address account) view returns(uint256 rewards)

func (*TornadoStakingSession) GetReward

func (_TornadoStaking *TornadoStakingSession) GetReward() (*types.Transaction, error)

GetReward is a paid mutator transaction binding the contract method 0x3d18b912.

Solidity: function getReward() returns()

func (*TornadoStakingSession) Governance

func (_TornadoStaking *TornadoStakingSession) Governance() (common.Address, error)

Governance is a free data retrieval call binding the contract method 0x94539112.

Solidity: function Governance() view returns(address)

func (*TornadoStakingSession) RatioConstant

func (_TornadoStaking *TornadoStakingSession) RatioConstant() (*big.Int, error)

RatioConstant is a free data retrieval call binding the contract method 0x80a12041.

Solidity: function ratioConstant() view returns(uint256)

func (*TornadoStakingSession) RelayerRegistry

func (_TornadoStaking *TornadoStakingSession) RelayerRegistry() (common.Address, error)

RelayerRegistry is a free data retrieval call binding the contract method 0x47ff589d.

Solidity: function relayerRegistry() view returns(address)

func (*TornadoStakingSession) Resolve

func (_TornadoStaking *TornadoStakingSession) Resolve(node [32]byte) (common.Address, error)

Resolve is a free data retrieval call binding the contract method 0x5c23bdf5.

Solidity: function resolve(bytes32 node) view returns(address)

func (*TornadoStakingSession) Torn

func (_TornadoStaking *TornadoStakingSession) Torn() (common.Address, error)

Torn is a free data retrieval call binding the contract method 0xadf898a4.

Solidity: function torn() view returns(address)

func (*TornadoStakingSession) UpdateRewardsOnLockedBalanceChange

func (_TornadoStaking *TornadoStakingSession) UpdateRewardsOnLockedBalanceChange(account common.Address, amountLockedBeforehand *big.Int) (*types.Transaction, error)

UpdateRewardsOnLockedBalanceChange is a paid mutator transaction binding the contract method 0xe113335f.

Solidity: function updateRewardsOnLockedBalanceChange(address account, uint256 amountLockedBeforehand) returns()

func (*TornadoStakingSession) WithdrawTorn

func (_TornadoStaking *TornadoStakingSession) WithdrawTorn(amount *big.Int) (*types.Transaction, error)

WithdrawTorn is a paid mutator transaction binding the contract method 0xf58073b1.

Solidity: function withdrawTorn(uint256 amount) returns()

type TornadoStakingTransactor

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

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

func NewTornadoStakingTransactor

func NewTornadoStakingTransactor(address common.Address, transactor bind.ContractTransactor) (*TornadoStakingTransactor, error)

NewTornadoStakingTransactor creates a new write-only instance of TornadoStaking, bound to a specific deployed contract.

func (*TornadoStakingTransactor) AddBurnRewards

func (_TornadoStaking *TornadoStakingTransactor) AddBurnRewards(opts *bind.TransactOpts, amount *big.Int) (*types.Transaction, error)

AddBurnRewards is a paid mutator transaction binding the contract method 0x338610af.

Solidity: function addBurnRewards(uint256 amount) returns()

func (*TornadoStakingTransactor) GetReward

func (_TornadoStaking *TornadoStakingTransactor) GetReward(opts *bind.TransactOpts) (*types.Transaction, error)

GetReward is a paid mutator transaction binding the contract method 0x3d18b912.

Solidity: function getReward() returns()

func (*TornadoStakingTransactor) UpdateRewardsOnLockedBalanceChange

func (_TornadoStaking *TornadoStakingTransactor) UpdateRewardsOnLockedBalanceChange(opts *bind.TransactOpts, account common.Address, amountLockedBeforehand *big.Int) (*types.Transaction, error)

UpdateRewardsOnLockedBalanceChange is a paid mutator transaction binding the contract method 0xe113335f.

Solidity: function updateRewardsOnLockedBalanceChange(address account, uint256 amountLockedBeforehand) returns()

func (*TornadoStakingTransactor) WithdrawTorn

func (_TornadoStaking *TornadoStakingTransactor) WithdrawTorn(opts *bind.TransactOpts, amount *big.Int) (*types.Transaction, error)

WithdrawTorn is a paid mutator transaction binding the contract method 0xf58073b1.

Solidity: function withdrawTorn(uint256 amount) returns()

type TornadoStakingTransactorRaw

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

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

func (*TornadoStakingTransactorRaw) Transact

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

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

func (*TornadoStakingTransactorRaw) Transfer

func (_TornadoStaking *TornadoStakingTransactorRaw) 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 TornadoStakingTransactorSession

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

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

func (*TornadoStakingTransactorSession) AddBurnRewards

func (_TornadoStaking *TornadoStakingTransactorSession) AddBurnRewards(amount *big.Int) (*types.Transaction, error)

AddBurnRewards is a paid mutator transaction binding the contract method 0x338610af.

Solidity: function addBurnRewards(uint256 amount) returns()

func (*TornadoStakingTransactorSession) GetReward

func (_TornadoStaking *TornadoStakingTransactorSession) GetReward() (*types.Transaction, error)

GetReward is a paid mutator transaction binding the contract method 0x3d18b912.

Solidity: function getReward() returns()

func (*TornadoStakingTransactorSession) UpdateRewardsOnLockedBalanceChange

func (_TornadoStaking *TornadoStakingTransactorSession) UpdateRewardsOnLockedBalanceChange(account common.Address, amountLockedBeforehand *big.Int) (*types.Transaction, error)

UpdateRewardsOnLockedBalanceChange is a paid mutator transaction binding the contract method 0xe113335f.

Solidity: function updateRewardsOnLockedBalanceChange(address account, uint256 amountLockedBeforehand) returns()

func (*TornadoStakingTransactorSession) WithdrawTorn

func (_TornadoStaking *TornadoStakingTransactorSession) WithdrawTorn(amount *big.Int) (*types.Transaction, error)

WithdrawTorn is a paid mutator transaction binding the contract method 0xf58073b1.

Solidity: function withdrawTorn(uint256 amount) returns()

Jump to

Keyboard shortcuts

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