contract_tests

package
v0.2.7 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EthGovernanceABI = EthGovernanceMetaData.ABI

EthGovernanceABI is the input ABI used to generate the binding from. Deprecated: Use EthGovernanceMetaData.ABI instead.

View Source
var EthGovernanceBin = EthGovernanceMetaData.Bin

EthGovernanceBin is the compiled bytecode used for deploying new contracts. Deprecated: Use EthGovernanceMetaData.Bin instead.

View Source
var EthGovernanceFuncSigs = EthGovernanceMetaData.Sigs

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

View Source
var EthGovernanceMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_period\",\"type\":\"uint256\"},{\"internalType\":\"address[]\",\"name\":\"_voters\",\"type\":\"address[]\"}],\"name\":\"getBridgeOperatorVotingSignatures\",\"outputs\":[{\"components\":[{\"internalType\":\"uint8\",\"name\":\"v\",\"type\":\"uint8\"},{\"internalType\":\"bytes32\",\"name\":\"r\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"s\",\"type\":\"bytes32\"}],\"internalType\":\"structEthGovernance.Signature[]\",\"name\":\"\",\"type\":\"tuple[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_period\",\"type\":\"uint256\"},{\"internalType\":\"address[]\",\"name\":\"_operators\",\"type\":\"address[]\"},{\"components\":[{\"internalType\":\"uint8\",\"name\":\"v\",\"type\":\"uint8\"},{\"internalType\":\"bytes32\",\"name\":\"r\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"s\",\"type\":\"bytes32\"}],\"internalType\":\"structEthGovernance.Signature[]\",\"name\":\"_signatures\",\"type\":\"tuple[]\"}],\"name\":\"relayBridgeOperators\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
	Sigs: map[string]string{
		"332635be": "getBridgeOperatorVotingSignatures(uint256,address[])",
		"d5918e61": "relayBridgeOperators(uint256,address[],(uint8,bytes32,bytes32)[])",
	},
	Bin: "0x608060405234801561001057600080fd5b50610573806100206000396000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c8063332635be1461003b578063d5918e6114610064575b600080fd5b61004e6100493660046102a4565b610079565b60405161005b91906102f0565b60405180910390f35b6100776100723660046103bc565b61019f565b005b606060008267ffffffffffffffff8111156100965761009661034c565b6040519080825280602002602001820160405280156100e157816020015b60408051606081018252600080825260208083018290529282015282526000199092019101816100b45790505b50905060005b8381101561019657600086815260208190526040812090868684818110610110576101106104d0565b905060200201602081019061012591906104e6565b6001600160a01b0316815260208082019290925260409081016000208151606081018352815460ff16815260018201549381019390935260020154908201528251839083908110610178576101786104d0565b6020026020010181905250808061018e90610516565b9150506100e7565b50949350505050565b60005b82811015610251578181815181106101bc576101bc6104d0565b602002602001015160008087815260200190815260200160002060008686858181106101ea576101ea6104d0565b90506020020160208101906101ff91906104e6565b6001600160a01b0316815260208082019290925260409081016000208351815460ff191660ff90911617815591830151600183015591909101516002909101558061024981610516565b9150506101a2565b5050505050565b60008083601f84011261026a57600080fd5b50813567ffffffffffffffff81111561028257600080fd5b6020830191508360208260051b850101111561029d57600080fd5b9250929050565b6000806000604084860312156102b957600080fd5b83359250602084013567ffffffffffffffff8111156102d757600080fd5b6102e386828701610258565b9497909650939450505050565b602080825282518282018190526000919060409081850190868401855b8281101561033f578151805160ff1685528681015187860152850151858501526060909301929085019060010161030d565b5091979650505050505050565b634e487b7160e01b600052604160045260246000fd5b6040516060810167ffffffffffffffff811182821017156103855761038561034c565b60405290565b604051601f8201601f1916810167ffffffffffffffff811182821017156103b4576103b461034c565b604052919050565b60008060008060608086880312156103d357600080fd5b8535945060208087013567ffffffffffffffff808211156103f357600080fd5b6103ff8a838b01610258565b909750955060409150888201358181111561041957600080fd5b8901601f81018b1361042a57600080fd5b80358281111561043c5761043c61034c565b61044a858260051b0161038b565b818152858101935090860282018501908c82111561046757600080fd5b918501915b818310156104bf5786838e0312156104845760008081fd5b61048c610362565b833560ff8116811461049e5760008081fd5b8152838701358782015285840135868201528452928501929186019161046c565b999c989b5096995050505050505050565b634e487b7160e01b600052603260045260246000fd5b6000602082840312156104f857600080fd5b81356001600160a01b038116811461050f57600080fd5b9392505050565b60006001820161053657634e487b7160e01b600052601160045260246000fd5b506001019056fea2646970667358221220b55919f75ff0f17fb796cba140c7187904cbb503d0daedac9005abddf05d26ec64736f6c63430008110033",
}

EthGovernanceMetaData contains all meta data concerning the EthGovernance contract.

View Source
var RoninGovernanceABI = RoninGovernanceMetaData.ABI

RoninGovernanceABI is the input ABI used to generate the binding from. Deprecated: Use RoninGovernanceMetaData.ABI instead.

View Source
var RoninGovernanceBin = RoninGovernanceMetaData.Bin

RoninGovernanceBin is the compiled bytecode used for deploying new contracts. Deprecated: Use RoninGovernanceMetaData.Bin instead.

View Source
var RoninGovernanceFuncSigs = RoninGovernanceMetaData.Sigs

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

View Source
var RoninGovernanceMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_period\",\"type\":\"uint256\"},{\"internalType\":\"address[]\",\"name\":\"_voters\",\"type\":\"address[]\"}],\"name\":\"getBridgeOperatorVotingSignatures\",\"outputs\":[{\"components\":[{\"internalType\":\"uint8\",\"name\":\"v\",\"type\":\"uint8\"},{\"internalType\":\"bytes32\",\"name\":\"r\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"s\",\"type\":\"bytes32\"}],\"internalType\":\"structRoninGovernance.Signature[]\",\"name\":\"\",\"type\":\"tuple[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_period\",\"type\":\"uint256\"},{\"internalType\":\"address[]\",\"name\":\"_operators\",\"type\":\"address[]\"},{\"components\":[{\"internalType\":\"uint8\",\"name\":\"v\",\"type\":\"uint8\"},{\"internalType\":\"bytes32\",\"name\":\"r\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"s\",\"type\":\"bytes32\"}],\"internalType\":\"structRoninGovernance.Signature[]\",\"name\":\"_signatures\",\"type\":\"tuple[]\"}],\"name\":\"voteBridgeOperatorsBySignatures\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
	Sigs: map[string]string{
		"332635be": "getBridgeOperatorVotingSignatures(uint256,address[])",
		"56e237e8": "voteBridgeOperatorsBySignatures(uint256,address[],(uint8,bytes32,bytes32)[])",
	},
	Bin: "0x608060405234801561001057600080fd5b5061057a806100206000396000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c8063332635be1461003b57806356e237e814610064575b600080fd5b61004e6100493660046102ab565b610079565b60405161005b91906102f7565b60405180910390f35b6100776100723660046103c3565b6101a5565b005b606060008267ffffffffffffffff81111561009657610096610353565b6040519080825280602002602001820160405280156100e157816020015b60408051606081018252600080825260208083018290529282015282526000199092019101816100b45790505b50905060005b8381101561019c57600086815260208190526040812081878785818110610110576101106104d7565b905060200201602081019061012591906104ed565b6001600160a01b0316815260208082019290925260409081016000208151606081018352815460ff16815260018201549381019390935260020154908201528351909150819084908490811061017d5761017d6104d7565b60200260200101819052505080806101949061051d565b9150506100e7565b50949350505050565b60005b8281101561025857816000815181106101c3576101c36104d7565b602002602001015160008087815260200190815260200160002060008686858181106101f1576101f16104d7565b905060200201602081019061020691906104ed565b6001600160a01b0316815260208082019290925260409081016000208351815460ff191660ff9091161781559183015160018301559190910151600290910155806102508161051d565b9150506101a8565b5050505050565b60008083601f84011261027157600080fd5b50813567ffffffffffffffff81111561028957600080fd5b6020830191508360208260051b85010111156102a457600080fd5b9250929050565b6000806000604084860312156102c057600080fd5b83359250602084013567ffffffffffffffff8111156102de57600080fd5b6102ea8682870161025f565b9497909650939450505050565b602080825282518282018190526000919060409081850190868401855b82811015610346578151805160ff16855286810151878601528501518585015260609093019290850190600101610314565b5091979650505050505050565b634e487b7160e01b600052604160045260246000fd5b6040516060810167ffffffffffffffff8111828210171561038c5761038c610353565b60405290565b604051601f8201601f1916810167ffffffffffffffff811182821017156103bb576103bb610353565b604052919050565b60008060008060608086880312156103da57600080fd5b8535945060208087013567ffffffffffffffff808211156103fa57600080fd5b6104068a838b0161025f565b909750955060409150888201358181111561042057600080fd5b8901601f81018b1361043157600080fd5b80358281111561044357610443610353565b610451858260051b01610392565b818152858101935090860282018501908c82111561046e57600080fd5b918501915b818310156104c65786838e03121561048b5760008081fd5b610493610369565b833560ff811681146104a55760008081fd5b81528387013587820152858401358682015284529285019291860191610473565b999c989b5096995050505050505050565b634e487b7160e01b600052603260045260246000fd5b6000602082840312156104ff57600080fd5b81356001600160a01b038116811461051657600080fd5b9392505050565b60006001820161053d57634e487b7160e01b600052601160045260246000fd5b506001019056fea2646970667358221220b955bb832bc91e2eb7b466597b548cb85c2373fee7471579b6a6b782c6348ff664736f6c63430008110033",
}

RoninGovernanceMetaData contains all meta data concerning the RoninGovernance contract.

View Source
var RoninTrustedOrganizationABI = RoninTrustedOrganizationMetaData.ABI

RoninTrustedOrganizationABI is the input ABI used to generate the binding from. Deprecated: Use RoninTrustedOrganizationMetaData.ABI instead.

View Source
var RoninTrustedOrganizationBin = RoninTrustedOrganizationMetaData.Bin

RoninTrustedOrganizationBin is the compiled bytecode used for deploying new contracts. Deprecated: Use RoninTrustedOrganizationMetaData.Bin instead.

View Source
var RoninTrustedOrganizationFuncSigs = RoninTrustedOrganizationMetaData.Sigs

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

View Source
var RoninTrustedOrganizationMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[],\"name\":\"getAllTrustedOrganizations\",\"outputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"bridgeVoter\",\"type\":\"address\"}],\"internalType\":\"structRoninTrustedOrganization.TrustedOrganization[]\",\"name\":\"_trustedOrganizations\",\"type\":\"tuple[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"trusted\",\"type\":\"address[]\"}],\"name\":\"setTrustedOrganizations\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
	Sigs: map[string]string{
		"15074005": "getAllTrustedOrganizations()",
		"856bd9d8": "setTrustedOrganizations(address[])",
	},
	Bin: "0x608060405234801561001057600080fd5b50610331806100206000396000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c8063150740051461003b578063856bd9d814610059575b600080fd5b61004361006e565b6040516100509190610179565b60405180910390f35b61006c6100673660046101f9565b6100d5565b005b60606000805480602002602001604051908101604052809291908181526020016000905b828210156100cc57600084815260209081902060408051808401909152908401546001600160a01b03168152825260019092019101610092565b50505050905090565b60005b81518110156101755760006040518060200160405280848481518110610100576101006102be565b60209081029190910101516001600160a01b039081169091526000805460018101825590805291517f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e56390920180546001600160a01b03191692909116919091179055508061016d816102d4565b9150506100d8565b5050565b6020808252825182820181905260009190848201906040850190845b818110156101bb578351516001600160a01b031683529284019291840191600101610195565b50909695505050505050565b634e487b7160e01b600052604160045260246000fd5b80356001600160a01b03811681146101f457600080fd5b919050565b6000602080838503121561020c57600080fd5b823567ffffffffffffffff8082111561022457600080fd5b818501915085601f83011261023857600080fd5b81358181111561024a5761024a6101c7565b8060051b604051601f19603f8301168101818110858211171561026f5761026f6101c7565b60405291825284820192508381018501918883111561028d57600080fd5b938501935b828510156102b2576102a3856101dd565b84529385019392850192610292565b98975050505050505050565b634e487b7160e01b600052603260045260246000fd5b6000600182016102f457634e487b7160e01b600052601160045260246000fd5b506001019056fea26469706673582212202134d86653305a16183265c9cda1f1cac7d87633db35b40ba63b9cc7249d390b64736f6c63430008110033",
}

RoninTrustedOrganizationMetaData contains all meta data concerning the RoninTrustedOrganization contract.

Functions

This section is empty.

Types

type EthGovernance

type EthGovernance struct {
	EthGovernanceCaller     // Read-only binding to the contract
	EthGovernanceTransactor // Write-only binding to the contract
	EthGovernanceFilterer   // Log filterer for contract events
}

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

func DeployEthGovernance

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

DeployEthGovernance deploys a new Ethereum contract, binding an instance of EthGovernance to it.

func NewEthGovernance

func NewEthGovernance(address common.Address, backend bind.ContractBackend) (*EthGovernance, error)

NewEthGovernance creates a new instance of EthGovernance, bound to a specific deployed contract.

type EthGovernanceCaller

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

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

func NewEthGovernanceCaller

func NewEthGovernanceCaller(address common.Address, caller bind.ContractCaller) (*EthGovernanceCaller, error)

NewEthGovernanceCaller creates a new read-only instance of EthGovernance, bound to a specific deployed contract.

func (*EthGovernanceCaller) GetBridgeOperatorVotingSignatures

func (_EthGovernance *EthGovernanceCaller) GetBridgeOperatorVotingSignatures(opts *bind.CallOpts, _period *big.Int, _voters []common.Address) ([]EthGovernanceSignature, error)

GetBridgeOperatorVotingSignatures is a free data retrieval call binding the contract method 0x332635be.

Solidity: function getBridgeOperatorVotingSignatures(uint256 _period, address[] _voters) view returns((uint8,bytes32,bytes32)[])

type EthGovernanceCallerRaw

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

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

func (*EthGovernanceCallerRaw) Call

func (_EthGovernance *EthGovernanceCallerRaw) 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 EthGovernanceCallerSession

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

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

func (*EthGovernanceCallerSession) GetBridgeOperatorVotingSignatures

func (_EthGovernance *EthGovernanceCallerSession) GetBridgeOperatorVotingSignatures(_period *big.Int, _voters []common.Address) ([]EthGovernanceSignature, error)

GetBridgeOperatorVotingSignatures is a free data retrieval call binding the contract method 0x332635be.

Solidity: function getBridgeOperatorVotingSignatures(uint256 _period, address[] _voters) view returns((uint8,bytes32,bytes32)[])

type EthGovernanceFilterer

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

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

func NewEthGovernanceFilterer

func NewEthGovernanceFilterer(address common.Address, filterer bind.ContractFilterer) (*EthGovernanceFilterer, error)

NewEthGovernanceFilterer creates a new log filterer instance of EthGovernance, bound to a specific deployed contract.

type EthGovernanceRaw

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

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

func (*EthGovernanceRaw) Call

func (_EthGovernance *EthGovernanceRaw) 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 (*EthGovernanceRaw) Transact

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

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

func (*EthGovernanceRaw) Transfer

func (_EthGovernance *EthGovernanceRaw) 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 EthGovernanceSession

type EthGovernanceSession struct {
	Contract     *EthGovernance    // 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
}

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

func (*EthGovernanceSession) GetBridgeOperatorVotingSignatures

func (_EthGovernance *EthGovernanceSession) GetBridgeOperatorVotingSignatures(_period *big.Int, _voters []common.Address) ([]EthGovernanceSignature, error)

GetBridgeOperatorVotingSignatures is a free data retrieval call binding the contract method 0x332635be.

Solidity: function getBridgeOperatorVotingSignatures(uint256 _period, address[] _voters) view returns((uint8,bytes32,bytes32)[])

func (*EthGovernanceSession) RelayBridgeOperators

func (_EthGovernance *EthGovernanceSession) RelayBridgeOperators(_period *big.Int, _operators []common.Address, _signatures []EthGovernanceSignature) (*types.Transaction, error)

RelayBridgeOperators is a paid mutator transaction binding the contract method 0xd5918e61.

Solidity: function relayBridgeOperators(uint256 _period, address[] _operators, (uint8,bytes32,bytes32)[] _signatures) returns()

type EthGovernanceSignature

type EthGovernanceSignature struct {
	V uint8
	R [32]byte
	S [32]byte
}

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

type EthGovernanceTransactor

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

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

func NewEthGovernanceTransactor

func NewEthGovernanceTransactor(address common.Address, transactor bind.ContractTransactor) (*EthGovernanceTransactor, error)

NewEthGovernanceTransactor creates a new write-only instance of EthGovernance, bound to a specific deployed contract.

func (*EthGovernanceTransactor) RelayBridgeOperators

func (_EthGovernance *EthGovernanceTransactor) RelayBridgeOperators(opts *bind.TransactOpts, _period *big.Int, _operators []common.Address, _signatures []EthGovernanceSignature) (*types.Transaction, error)

RelayBridgeOperators is a paid mutator transaction binding the contract method 0xd5918e61.

Solidity: function relayBridgeOperators(uint256 _period, address[] _operators, (uint8,bytes32,bytes32)[] _signatures) returns()

type EthGovernanceTransactorRaw

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

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

func (*EthGovernanceTransactorRaw) Transact

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

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

func (*EthGovernanceTransactorRaw) Transfer

func (_EthGovernance *EthGovernanceTransactorRaw) 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 EthGovernanceTransactorSession

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

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

func (*EthGovernanceTransactorSession) RelayBridgeOperators

func (_EthGovernance *EthGovernanceTransactorSession) RelayBridgeOperators(_period *big.Int, _operators []common.Address, _signatures []EthGovernanceSignature) (*types.Transaction, error)

RelayBridgeOperators is a paid mutator transaction binding the contract method 0xd5918e61.

Solidity: function relayBridgeOperators(uint256 _period, address[] _operators, (uint8,bytes32,bytes32)[] _signatures) returns()

type RoninGovernance

type RoninGovernance struct {
	RoninGovernanceCaller     // Read-only binding to the contract
	RoninGovernanceTransactor // Write-only binding to the contract
	RoninGovernanceFilterer   // Log filterer for contract events
}

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

func DeployRoninGovernance

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

DeployRoninGovernance deploys a new Ethereum contract, binding an instance of RoninGovernance to it.

func NewRoninGovernance

func NewRoninGovernance(address common.Address, backend bind.ContractBackend) (*RoninGovernance, error)

NewRoninGovernance creates a new instance of RoninGovernance, bound to a specific deployed contract.

type RoninGovernanceCaller

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

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

func NewRoninGovernanceCaller

func NewRoninGovernanceCaller(address common.Address, caller bind.ContractCaller) (*RoninGovernanceCaller, error)

NewRoninGovernanceCaller creates a new read-only instance of RoninGovernance, bound to a specific deployed contract.

func (*RoninGovernanceCaller) GetBridgeOperatorVotingSignatures

func (_RoninGovernance *RoninGovernanceCaller) GetBridgeOperatorVotingSignatures(opts *bind.CallOpts, _period *big.Int, _voters []common.Address) ([]RoninGovernanceSignature, error)

GetBridgeOperatorVotingSignatures is a free data retrieval call binding the contract method 0x332635be.

Solidity: function getBridgeOperatorVotingSignatures(uint256 _period, address[] _voters) view returns((uint8,bytes32,bytes32)[])

type RoninGovernanceCallerRaw

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

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

func (*RoninGovernanceCallerRaw) Call

func (_RoninGovernance *RoninGovernanceCallerRaw) 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 RoninGovernanceCallerSession

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

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

func (*RoninGovernanceCallerSession) GetBridgeOperatorVotingSignatures

func (_RoninGovernance *RoninGovernanceCallerSession) GetBridgeOperatorVotingSignatures(_period *big.Int, _voters []common.Address) ([]RoninGovernanceSignature, error)

GetBridgeOperatorVotingSignatures is a free data retrieval call binding the contract method 0x332635be.

Solidity: function getBridgeOperatorVotingSignatures(uint256 _period, address[] _voters) view returns((uint8,bytes32,bytes32)[])

type RoninGovernanceFilterer

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

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

func NewRoninGovernanceFilterer

func NewRoninGovernanceFilterer(address common.Address, filterer bind.ContractFilterer) (*RoninGovernanceFilterer, error)

NewRoninGovernanceFilterer creates a new log filterer instance of RoninGovernance, bound to a specific deployed contract.

type RoninGovernanceRaw

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

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

func (*RoninGovernanceRaw) Call

func (_RoninGovernance *RoninGovernanceRaw) 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 (*RoninGovernanceRaw) Transact

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

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

func (*RoninGovernanceRaw) Transfer

func (_RoninGovernance *RoninGovernanceRaw) 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 RoninGovernanceSession

type RoninGovernanceSession struct {
	Contract     *RoninGovernance  // 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
}

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

func (*RoninGovernanceSession) GetBridgeOperatorVotingSignatures

func (_RoninGovernance *RoninGovernanceSession) GetBridgeOperatorVotingSignatures(_period *big.Int, _voters []common.Address) ([]RoninGovernanceSignature, error)

GetBridgeOperatorVotingSignatures is a free data retrieval call binding the contract method 0x332635be.

Solidity: function getBridgeOperatorVotingSignatures(uint256 _period, address[] _voters) view returns((uint8,bytes32,bytes32)[])

func (*RoninGovernanceSession) VoteBridgeOperatorsBySignatures

func (_RoninGovernance *RoninGovernanceSession) VoteBridgeOperatorsBySignatures(_period *big.Int, _operators []common.Address, _signatures []RoninGovernanceSignature) (*types.Transaction, error)

VoteBridgeOperatorsBySignatures is a paid mutator transaction binding the contract method 0x56e237e8.

Solidity: function voteBridgeOperatorsBySignatures(uint256 _period, address[] _operators, (uint8,bytes32,bytes32)[] _signatures) returns()

type RoninGovernanceSignature

type RoninGovernanceSignature struct {
	V uint8
	R [32]byte
	S [32]byte
}

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

type RoninGovernanceTransactor

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

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

func NewRoninGovernanceTransactor

func NewRoninGovernanceTransactor(address common.Address, transactor bind.ContractTransactor) (*RoninGovernanceTransactor, error)

NewRoninGovernanceTransactor creates a new write-only instance of RoninGovernance, bound to a specific deployed contract.

func (*RoninGovernanceTransactor) VoteBridgeOperatorsBySignatures

func (_RoninGovernance *RoninGovernanceTransactor) VoteBridgeOperatorsBySignatures(opts *bind.TransactOpts, _period *big.Int, _operators []common.Address, _signatures []RoninGovernanceSignature) (*types.Transaction, error)

VoteBridgeOperatorsBySignatures is a paid mutator transaction binding the contract method 0x56e237e8.

Solidity: function voteBridgeOperatorsBySignatures(uint256 _period, address[] _operators, (uint8,bytes32,bytes32)[] _signatures) returns()

type RoninGovernanceTransactorRaw

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

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

func (*RoninGovernanceTransactorRaw) Transact

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

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

func (*RoninGovernanceTransactorRaw) Transfer

func (_RoninGovernance *RoninGovernanceTransactorRaw) 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 RoninGovernanceTransactorSession

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

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

func (*RoninGovernanceTransactorSession) VoteBridgeOperatorsBySignatures

func (_RoninGovernance *RoninGovernanceTransactorSession) VoteBridgeOperatorsBySignatures(_period *big.Int, _operators []common.Address, _signatures []RoninGovernanceSignature) (*types.Transaction, error)

VoteBridgeOperatorsBySignatures is a paid mutator transaction binding the contract method 0x56e237e8.

Solidity: function voteBridgeOperatorsBySignatures(uint256 _period, address[] _operators, (uint8,bytes32,bytes32)[] _signatures) returns()

type RoninTrustedOrganization

type RoninTrustedOrganization struct {
	RoninTrustedOrganizationCaller     // Read-only binding to the contract
	RoninTrustedOrganizationTransactor // Write-only binding to the contract
	RoninTrustedOrganizationFilterer   // Log filterer for contract events
}

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

func DeployRoninTrustedOrganization

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

DeployRoninTrustedOrganization deploys a new Ethereum contract, binding an instance of RoninTrustedOrganization to it.

func NewRoninTrustedOrganization

func NewRoninTrustedOrganization(address common.Address, backend bind.ContractBackend) (*RoninTrustedOrganization, error)

NewRoninTrustedOrganization creates a new instance of RoninTrustedOrganization, bound to a specific deployed contract.

type RoninTrustedOrganizationCaller

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

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

func NewRoninTrustedOrganizationCaller

func NewRoninTrustedOrganizationCaller(address common.Address, caller bind.ContractCaller) (*RoninTrustedOrganizationCaller, error)

NewRoninTrustedOrganizationCaller creates a new read-only instance of RoninTrustedOrganization, bound to a specific deployed contract.

func (*RoninTrustedOrganizationCaller) GetAllTrustedOrganizations

func (_RoninTrustedOrganization *RoninTrustedOrganizationCaller) GetAllTrustedOrganizations(opts *bind.CallOpts) ([]RoninTrustedOrganizationTrustedOrganization, error)

GetAllTrustedOrganizations is a free data retrieval call binding the contract method 0x15074005.

Solidity: function getAllTrustedOrganizations() view returns((address)[] _trustedOrganizations)

type RoninTrustedOrganizationCallerRaw

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

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

func (*RoninTrustedOrganizationCallerRaw) Call

func (_RoninTrustedOrganization *RoninTrustedOrganizationCallerRaw) 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 RoninTrustedOrganizationCallerSession

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

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

func (*RoninTrustedOrganizationCallerSession) GetAllTrustedOrganizations

func (_RoninTrustedOrganization *RoninTrustedOrganizationCallerSession) GetAllTrustedOrganizations() ([]RoninTrustedOrganizationTrustedOrganization, error)

GetAllTrustedOrganizations is a free data retrieval call binding the contract method 0x15074005.

Solidity: function getAllTrustedOrganizations() view returns((address)[] _trustedOrganizations)

type RoninTrustedOrganizationFilterer

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

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

func NewRoninTrustedOrganizationFilterer

func NewRoninTrustedOrganizationFilterer(address common.Address, filterer bind.ContractFilterer) (*RoninTrustedOrganizationFilterer, error)

NewRoninTrustedOrganizationFilterer creates a new log filterer instance of RoninTrustedOrganization, bound to a specific deployed contract.

type RoninTrustedOrganizationRaw

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

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

func (*RoninTrustedOrganizationRaw) Call

func (_RoninTrustedOrganization *RoninTrustedOrganizationRaw) 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 (*RoninTrustedOrganizationRaw) Transact

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

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

func (*RoninTrustedOrganizationRaw) Transfer

func (_RoninTrustedOrganization *RoninTrustedOrganizationRaw) 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 RoninTrustedOrganizationSession

type RoninTrustedOrganizationSession struct {
	Contract     *RoninTrustedOrganization // 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
}

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

func (*RoninTrustedOrganizationSession) GetAllTrustedOrganizations

func (_RoninTrustedOrganization *RoninTrustedOrganizationSession) GetAllTrustedOrganizations() ([]RoninTrustedOrganizationTrustedOrganization, error)

GetAllTrustedOrganizations is a free data retrieval call binding the contract method 0x15074005.

Solidity: function getAllTrustedOrganizations() view returns((address)[] _trustedOrganizations)

func (*RoninTrustedOrganizationSession) SetTrustedOrganizations

func (_RoninTrustedOrganization *RoninTrustedOrganizationSession) SetTrustedOrganizations(trusted []common.Address) (*types.Transaction, error)

SetTrustedOrganizations is a paid mutator transaction binding the contract method 0x856bd9d8.

Solidity: function setTrustedOrganizations(address[] trusted) returns()

type RoninTrustedOrganizationTransactor

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

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

func NewRoninTrustedOrganizationTransactor

func NewRoninTrustedOrganizationTransactor(address common.Address, transactor bind.ContractTransactor) (*RoninTrustedOrganizationTransactor, error)

NewRoninTrustedOrganizationTransactor creates a new write-only instance of RoninTrustedOrganization, bound to a specific deployed contract.

func (*RoninTrustedOrganizationTransactor) SetTrustedOrganizations

func (_RoninTrustedOrganization *RoninTrustedOrganizationTransactor) SetTrustedOrganizations(opts *bind.TransactOpts, trusted []common.Address) (*types.Transaction, error)

SetTrustedOrganizations is a paid mutator transaction binding the contract method 0x856bd9d8.

Solidity: function setTrustedOrganizations(address[] trusted) returns()

type RoninTrustedOrganizationTransactorRaw

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

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

func (*RoninTrustedOrganizationTransactorRaw) Transact

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

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

func (*RoninTrustedOrganizationTransactorRaw) Transfer

func (_RoninTrustedOrganization *RoninTrustedOrganizationTransactorRaw) 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 RoninTrustedOrganizationTransactorSession

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

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

func (*RoninTrustedOrganizationTransactorSession) SetTrustedOrganizations

func (_RoninTrustedOrganization *RoninTrustedOrganizationTransactorSession) SetTrustedOrganizations(trusted []common.Address) (*types.Transaction, error)

SetTrustedOrganizations is a paid mutator transaction binding the contract method 0x856bd9d8.

Solidity: function setTrustedOrganizations(address[] trusted) returns()

type RoninTrustedOrganizationTrustedOrganization

type RoninTrustedOrganizationTrustedOrganization struct {
	BridgeVoter common.Address
}

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

Jump to

Keyboard shortcuts

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