dao

package
v0.17.2 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DaoABI = DaoMetaData.ABI

DaoABI is the input ABI used to generate the binding from. Deprecated: Use DaoMetaData.ABI instead.

View Source
var DaoMetaData = &bind.MetaData{
	ABI: "[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"num\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"hash\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"}],\"name\":\"BlockAdded\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint8\",\"name\":\"version\",\"type\":\"uint8\"}],\"name\":\"Initialized\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"blocks\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"hash\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"genesis\",\"type\":\"bytes32\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"hash\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"}],\"name\":\"mint\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"tip\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
}

DaoMetaData contains all meta data concerning the Dao contract.

Functions

This section is empty.

Types

type Dao

type Dao struct {
	DaoCaller     // Read-only binding to the contract
	DaoTransactor // Write-only binding to the contract
	DaoFilterer   // Log filterer for contract events
}

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

func NewDao

func NewDao(address common.Address, backend bind.ContractBackend) (*Dao, error)

NewDao creates a new instance of Dao, bound to a specific deployed contract.

type DaoBlockAdded

type DaoBlockAdded struct {
	Num       *big.Int
	Hash      [32]byte
	Timestamp *big.Int
	Raw       types.Log // Blockchain specific contextual infos
}

DaoBlockAdded represents a BlockAdded event raised by the Dao contract.

type DaoBlockAddedIterator

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

DaoBlockAddedIterator is returned from FilterBlockAdded and is used to iterate over the raw logs and unpacked data for BlockAdded events raised by the Dao contract.

func (*DaoBlockAddedIterator) Close

func (it *DaoBlockAddedIterator) Close() error

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

func (*DaoBlockAddedIterator) Error

func (it *DaoBlockAddedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*DaoBlockAddedIterator) Next

func (it *DaoBlockAddedIterator) 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 DaoCaller

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

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

func NewDaoCaller

func NewDaoCaller(address common.Address, caller bind.ContractCaller) (*DaoCaller, error)

NewDaoCaller creates a new read-only instance of Dao, bound to a specific deployed contract.

func (*DaoCaller) Blocks

func (_Dao *DaoCaller) Blocks(opts *bind.CallOpts, arg0 *big.Int) (struct {
	Hash      [32]byte
	Timestamp *big.Int
}, error)

Blocks is a free data retrieval call binding the contract method 0xf25b3f99.

Solidity: function blocks(uint256 ) view returns(bytes32 hash, uint256 timestamp)

func (*DaoCaller) Owner

func (_Dao *DaoCaller) Owner(opts *bind.CallOpts) (common.Address, error)

Owner is a free data retrieval call binding the contract method 0x8da5cb5b.

Solidity: function owner() view returns(address)

func (*DaoCaller) Tip

func (_Dao *DaoCaller) Tip(opts *bind.CallOpts) (*big.Int, [32]byte, *big.Int, error)

Tip is a free data retrieval call binding the contract method 0x2755cd2d.

Solidity: function tip() view returns(uint256, bytes32, uint256)

type DaoCallerRaw

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

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

func (*DaoCallerRaw) Call

func (_Dao *DaoCallerRaw) 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 DaoCallerSession

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

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

func (*DaoCallerSession) Blocks

func (_Dao *DaoCallerSession) Blocks(arg0 *big.Int) (struct {
	Hash      [32]byte
	Timestamp *big.Int
}, error)

Blocks is a free data retrieval call binding the contract method 0xf25b3f99.

Solidity: function blocks(uint256 ) view returns(bytes32 hash, uint256 timestamp)

func (*DaoCallerSession) Owner

func (_Dao *DaoCallerSession) Owner() (common.Address, error)

Owner is a free data retrieval call binding the contract method 0x8da5cb5b.

Solidity: function owner() view returns(address)

func (*DaoCallerSession) Tip

func (_Dao *DaoCallerSession) Tip() (*big.Int, [32]byte, *big.Int, error)

Tip is a free data retrieval call binding the contract method 0x2755cd2d.

Solidity: function tip() view returns(uint256, bytes32, uint256)

type DaoFilterer

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

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

func NewDaoFilterer

func NewDaoFilterer(address common.Address, filterer bind.ContractFilterer) (*DaoFilterer, error)

NewDaoFilterer creates a new log filterer instance of Dao, bound to a specific deployed contract.

func (*DaoFilterer) FilterBlockAdded

func (_Dao *DaoFilterer) FilterBlockAdded(opts *bind.FilterOpts, num []*big.Int) (*DaoBlockAddedIterator, error)

FilterBlockAdded is a free log retrieval operation binding the contract event 0x706b507f20f95b6f483ddbb8f8a800372f4fb66f49c5e9785553b8f90f592f31.

Solidity: event BlockAdded(uint256 indexed num, bytes32 hash, uint256 timestamp)

func (*DaoFilterer) FilterInitialized

func (_Dao *DaoFilterer) FilterInitialized(opts *bind.FilterOpts) (*DaoInitializedIterator, error)

FilterInitialized is a free log retrieval operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498.

Solidity: event Initialized(uint8 version)

func (*DaoFilterer) FilterOwnershipTransferred

func (_Dao *DaoFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*DaoOwnershipTransferredIterator, error)

FilterOwnershipTransferred is a free log retrieval operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.

Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

func (*DaoFilterer) ParseBlockAdded

func (_Dao *DaoFilterer) ParseBlockAdded(log types.Log) (*DaoBlockAdded, error)

ParseBlockAdded is a log parse operation binding the contract event 0x706b507f20f95b6f483ddbb8f8a800372f4fb66f49c5e9785553b8f90f592f31.

Solidity: event BlockAdded(uint256 indexed num, bytes32 hash, uint256 timestamp)

func (*DaoFilterer) ParseInitialized

func (_Dao *DaoFilterer) ParseInitialized(log types.Log) (*DaoInitialized, error)

ParseInitialized is a log parse operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498.

Solidity: event Initialized(uint8 version)

func (*DaoFilterer) ParseOwnershipTransferred

func (_Dao *DaoFilterer) ParseOwnershipTransferred(log types.Log) (*DaoOwnershipTransferred, error)

ParseOwnershipTransferred is a log parse operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.

Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

func (*DaoFilterer) WatchBlockAdded

func (_Dao *DaoFilterer) WatchBlockAdded(opts *bind.WatchOpts, sink chan<- *DaoBlockAdded, num []*big.Int) (event.Subscription, error)

WatchBlockAdded is a free log subscription operation binding the contract event 0x706b507f20f95b6f483ddbb8f8a800372f4fb66f49c5e9785553b8f90f592f31.

Solidity: event BlockAdded(uint256 indexed num, bytes32 hash, uint256 timestamp)

func (*DaoFilterer) WatchInitialized

func (_Dao *DaoFilterer) WatchInitialized(opts *bind.WatchOpts, sink chan<- *DaoInitialized) (event.Subscription, error)

WatchInitialized is a free log subscription operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498.

Solidity: event Initialized(uint8 version)

func (*DaoFilterer) WatchOwnershipTransferred

func (_Dao *DaoFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *DaoOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error)

WatchOwnershipTransferred is a free log subscription operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.

Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

type DaoInitialized

type DaoInitialized struct {
	Version uint8
	Raw     types.Log // Blockchain specific contextual infos
}

DaoInitialized represents a Initialized event raised by the Dao contract.

type DaoInitializedIterator

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

DaoInitializedIterator is returned from FilterInitialized and is used to iterate over the raw logs and unpacked data for Initialized events raised by the Dao contract.

func (*DaoInitializedIterator) Close

func (it *DaoInitializedIterator) Close() error

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

func (*DaoInitializedIterator) Error

func (it *DaoInitializedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*DaoInitializedIterator) Next

func (it *DaoInitializedIterator) 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 DaoOwnershipTransferred

type DaoOwnershipTransferred struct {
	PreviousOwner common.Address
	NewOwner      common.Address
	Raw           types.Log // Blockchain specific contextual infos
}

DaoOwnershipTransferred represents a OwnershipTransferred event raised by the Dao contract.

type DaoOwnershipTransferredIterator

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

DaoOwnershipTransferredIterator is returned from FilterOwnershipTransferred and is used to iterate over the raw logs and unpacked data for OwnershipTransferred events raised by the Dao contract.

func (*DaoOwnershipTransferredIterator) Close

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

func (*DaoOwnershipTransferredIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*DaoOwnershipTransferredIterator) 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 DaoRaw

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

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

func (*DaoRaw) Call

func (_Dao *DaoRaw) 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 (*DaoRaw) Transact

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

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

func (*DaoRaw) Transfer

func (_Dao *DaoRaw) 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 DaoSession

type DaoSession struct {
	Contract     *Dao              // 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
}

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

func (*DaoSession) Blocks

func (_Dao *DaoSession) Blocks(arg0 *big.Int) (struct {
	Hash      [32]byte
	Timestamp *big.Int
}, error)

Blocks is a free data retrieval call binding the contract method 0xf25b3f99.

Solidity: function blocks(uint256 ) view returns(bytes32 hash, uint256 timestamp)

func (*DaoSession) Initialize

func (_Dao *DaoSession) Initialize(genesis [32]byte) (*types.Transaction, error)

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

Solidity: function initialize(bytes32 genesis) returns()

func (*DaoSession) Mint

func (_Dao *DaoSession) Mint(hash [32]byte, timestamp *big.Int) (*types.Transaction, error)

Mint is a paid mutator transaction binding the contract method 0xe1856ff4.

Solidity: function mint(bytes32 hash, uint256 timestamp) returns()

func (*DaoSession) Owner

func (_Dao *DaoSession) Owner() (common.Address, error)

Owner is a free data retrieval call binding the contract method 0x8da5cb5b.

Solidity: function owner() view returns(address)

func (*DaoSession) RenounceOwnership

func (_Dao *DaoSession) RenounceOwnership() (*types.Transaction, error)

RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.

Solidity: function renounceOwnership() returns()

func (*DaoSession) Tip

func (_Dao *DaoSession) Tip() (*big.Int, [32]byte, *big.Int, error)

Tip is a free data retrieval call binding the contract method 0x2755cd2d.

Solidity: function tip() view returns(uint256, bytes32, uint256)

func (*DaoSession) TransferOwnership

func (_Dao *DaoSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)

TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.

Solidity: function transferOwnership(address newOwner) returns()

type DaoTransactor

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

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

func NewDaoTransactor

func NewDaoTransactor(address common.Address, transactor bind.ContractTransactor) (*DaoTransactor, error)

NewDaoTransactor creates a new write-only instance of Dao, bound to a specific deployed contract.

func (*DaoTransactor) Initialize

func (_Dao *DaoTransactor) Initialize(opts *bind.TransactOpts, genesis [32]byte) (*types.Transaction, error)

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

Solidity: function initialize(bytes32 genesis) returns()

func (*DaoTransactor) Mint

func (_Dao *DaoTransactor) Mint(opts *bind.TransactOpts, hash [32]byte, timestamp *big.Int) (*types.Transaction, error)

Mint is a paid mutator transaction binding the contract method 0xe1856ff4.

Solidity: function mint(bytes32 hash, uint256 timestamp) returns()

func (*DaoTransactor) RenounceOwnership

func (_Dao *DaoTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)

RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.

Solidity: function renounceOwnership() returns()

func (*DaoTransactor) TransferOwnership

func (_Dao *DaoTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error)

TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.

Solidity: function transferOwnership(address newOwner) returns()

type DaoTransactorRaw

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

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

func (*DaoTransactorRaw) Transact

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

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

func (*DaoTransactorRaw) Transfer

func (_Dao *DaoTransactorRaw) 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 DaoTransactorSession

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

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

func (*DaoTransactorSession) Initialize

func (_Dao *DaoTransactorSession) Initialize(genesis [32]byte) (*types.Transaction, error)

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

Solidity: function initialize(bytes32 genesis) returns()

func (*DaoTransactorSession) Mint

func (_Dao *DaoTransactorSession) Mint(hash [32]byte, timestamp *big.Int) (*types.Transaction, error)

Mint is a paid mutator transaction binding the contract method 0xe1856ff4.

Solidity: function mint(bytes32 hash, uint256 timestamp) returns()

func (*DaoTransactorSession) RenounceOwnership

func (_Dao *DaoTransactorSession) RenounceOwnership() (*types.Transaction, error)

RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.

Solidity: function renounceOwnership() returns()

func (*DaoTransactorSession) TransferOwnership

func (_Dao *DaoTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)

TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.

Solidity: function transferOwnership(address newOwner) returns()

Jump to

Keyboard shortcuts

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