iqwiki

package
v0.4.16 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const ActivityByWikiIdAndBlock_Operation = `` /* 366-byte string literal not displayed */

The query or mutation executed by ActivityByWikiIdAndBlock.

View Source
const Endpoint = "https://graph.everipedia.org/graphql"

Variables

View Source
var (
	AddressWiki = common.HexToAddress("0xb8aA8CabfBa7eE3ccb218a9969AEF86DFf3b9d2D")
	AddressSig  = common.HexToAddress("0x191a41c307373211d08613b68df4031977589069")

	EventPosted = contract.EventHash("Posted(address,string)")
)
View Source
var IqWikiABI = IqWikiMetaData.ABI

IqWikiABI is the input ABI used to generate the binding from. Deprecated: Use IqWikiMetaData.ABI instead.

View Source
var IqWikiMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_validator\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"DeadlineExpired\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidSignature\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"WikiNotValid\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnerUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"_from\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"_ipfs\",\"type\":\"string\"}],\"name\":\"Posted\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"DOMAIN_SEPARATOR\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"ipfs\",\"type\":\"string\"}],\"name\":\"post\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"ipfs\",\"type\":\"string\"},{\"internalType\":\"address\",\"name\":\"_user\",\"type\":\"address\"},{\"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\":\"postBySig\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"setOwner\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contractIValidator\",\"name\":\"_validator\",\"type\":\"address\"}],\"name\":\"setValidator\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
}

IqWikiMetaData contains all meta data concerning the IqWiki contract.

Functions

func NewClient

func NewClient(endpoint string) (graphql.Client, error)

Types

type ActivityByWikiIdAndBlockActivityByWikiIdAndBlockActivity

type ActivityByWikiIdAndBlockActivityByWikiIdAndBlockActivity struct {
	Id       string                                                                `json:"id"`
	WikiId   string                                                                `json:"wikiId"`
	Block    int                                                                   `json:"block"`
	Type     Status                                                                `json:"type"`
	Datetime time.Time                                                             `json:"datetime"`
	Ipfs     string                                                                `json:"ipfs"`
	User     ActivityByWikiIdAndBlockActivityByWikiIdAndBlockActivityUser          `json:"user"`
	Content  []ActivityByWikiIdAndBlockActivityByWikiIdAndBlockActivityContentWiki `json:"content"`
}

ActivityByWikiIdAndBlockActivityByWikiIdAndBlockActivity includes the requested fields of the GraphQL type Activity.

func (*ActivityByWikiIdAndBlockActivityByWikiIdAndBlockActivity) GetBlock

GetBlock returns ActivityByWikiIdAndBlockActivityByWikiIdAndBlockActivity.Block, and is useful for accessing the field via an interface.

func (*ActivityByWikiIdAndBlockActivityByWikiIdAndBlockActivity) GetContent

GetContent returns ActivityByWikiIdAndBlockActivityByWikiIdAndBlockActivity.Content, and is useful for accessing the field via an interface.

func (*ActivityByWikiIdAndBlockActivityByWikiIdAndBlockActivity) GetDatetime

GetDatetime returns ActivityByWikiIdAndBlockActivityByWikiIdAndBlockActivity.Datetime, and is useful for accessing the field via an interface.

func (*ActivityByWikiIdAndBlockActivityByWikiIdAndBlockActivity) GetId

GetId returns ActivityByWikiIdAndBlockActivityByWikiIdAndBlockActivity.Id, and is useful for accessing the field via an interface.

func (*ActivityByWikiIdAndBlockActivityByWikiIdAndBlockActivity) GetIpfs

GetIpfs returns ActivityByWikiIdAndBlockActivityByWikiIdAndBlockActivity.Ipfs, and is useful for accessing the field via an interface.

func (*ActivityByWikiIdAndBlockActivityByWikiIdAndBlockActivity) GetType

GetType returns ActivityByWikiIdAndBlockActivityByWikiIdAndBlockActivity.Type, and is useful for accessing the field via an interface.

func (*ActivityByWikiIdAndBlockActivityByWikiIdAndBlockActivity) GetUser

GetUser returns ActivityByWikiIdAndBlockActivityByWikiIdAndBlockActivity.User, and is useful for accessing the field via an interface.

func (*ActivityByWikiIdAndBlockActivityByWikiIdAndBlockActivity) GetWikiId

GetWikiId returns ActivityByWikiIdAndBlockActivityByWikiIdAndBlockActivity.WikiId, and is useful for accessing the field via an interface.

type ActivityByWikiIdAndBlockActivityByWikiIdAndBlockActivityContentWiki

type ActivityByWikiIdAndBlockActivityByWikiIdAndBlockActivityContentWiki struct {
	Id         string                                                                                  `json:"id"`
	Title      string                                                                                  `json:"title"`
	Content    string                                                                                  `json:"content"`
	Summary    string                                                                                  `json:"summary"`
	Categories []ActivityByWikiIdAndBlockActivityByWikiIdAndBlockActivityContentWikiCategoriesCategory `json:"categories"`
	Images     []ActivityByWikiIdAndBlockActivityByWikiIdAndBlockActivityContentWikiImagesImage        `json:"images"`
	Tags       []ActivityByWikiIdAndBlockActivityByWikiIdAndBlockActivityContentWikiTagsTag            `json:"tags"`
}

ActivityByWikiIdAndBlockActivityByWikiIdAndBlockActivityContentWiki includes the requested fields of the GraphQL type Wiki.

func (*ActivityByWikiIdAndBlockActivityByWikiIdAndBlockActivityContentWiki) GetCategories

GetCategories returns ActivityByWikiIdAndBlockActivityByWikiIdAndBlockActivityContentWiki.Categories, and is useful for accessing the field via an interface.

func (*ActivityByWikiIdAndBlockActivityByWikiIdAndBlockActivityContentWiki) GetContent

GetContent returns ActivityByWikiIdAndBlockActivityByWikiIdAndBlockActivityContentWiki.Content, and is useful for accessing the field via an interface.

func (*ActivityByWikiIdAndBlockActivityByWikiIdAndBlockActivityContentWiki) GetId

GetId returns ActivityByWikiIdAndBlockActivityByWikiIdAndBlockActivityContentWiki.Id, and is useful for accessing the field via an interface.

func (*ActivityByWikiIdAndBlockActivityByWikiIdAndBlockActivityContentWiki) GetImages

GetImages returns ActivityByWikiIdAndBlockActivityByWikiIdAndBlockActivityContentWiki.Images, and is useful for accessing the field via an interface.

func (*ActivityByWikiIdAndBlockActivityByWikiIdAndBlockActivityContentWiki) GetSummary

GetSummary returns ActivityByWikiIdAndBlockActivityByWikiIdAndBlockActivityContentWiki.Summary, and is useful for accessing the field via an interface.

func (*ActivityByWikiIdAndBlockActivityByWikiIdAndBlockActivityContentWiki) GetTags

GetTags returns ActivityByWikiIdAndBlockActivityByWikiIdAndBlockActivityContentWiki.Tags, and is useful for accessing the field via an interface.

func (*ActivityByWikiIdAndBlockActivityByWikiIdAndBlockActivityContentWiki) GetTitle

GetTitle returns ActivityByWikiIdAndBlockActivityByWikiIdAndBlockActivityContentWiki.Title, and is useful for accessing the field via an interface.

type ActivityByWikiIdAndBlockActivityByWikiIdAndBlockActivityContentWikiCategoriesCategory

type ActivityByWikiIdAndBlockActivityByWikiIdAndBlockActivityContentWikiCategoriesCategory struct {
	Title string `json:"title"`
}

ActivityByWikiIdAndBlockActivityByWikiIdAndBlockActivityContentWikiCategoriesCategory includes the requested fields of the GraphQL type Category.

func (*ActivityByWikiIdAndBlockActivityByWikiIdAndBlockActivityContentWikiCategoriesCategory) GetTitle

GetTitle returns ActivityByWikiIdAndBlockActivityByWikiIdAndBlockActivityContentWikiCategoriesCategory.Title, and is useful for accessing the field via an interface.

type ActivityByWikiIdAndBlockActivityByWikiIdAndBlockActivityContentWikiImagesImage

type ActivityByWikiIdAndBlockActivityByWikiIdAndBlockActivityContentWikiImagesImage struct {
	Id string `json:"id"`
}

ActivityByWikiIdAndBlockActivityByWikiIdAndBlockActivityContentWikiImagesImage includes the requested fields of the GraphQL type Image.

func (*ActivityByWikiIdAndBlockActivityByWikiIdAndBlockActivityContentWikiImagesImage) GetId

GetId returns ActivityByWikiIdAndBlockActivityByWikiIdAndBlockActivityContentWikiImagesImage.Id, and is useful for accessing the field via an interface.

type ActivityByWikiIdAndBlockActivityByWikiIdAndBlockActivityContentWikiTagsTag

type ActivityByWikiIdAndBlockActivityByWikiIdAndBlockActivityContentWikiTagsTag struct {
	Id string `json:"id"`
}

ActivityByWikiIdAndBlockActivityByWikiIdAndBlockActivityContentWikiTagsTag includes the requested fields of the GraphQL type Tag. The GraphQL type's documentation follows.

Tags for Wikis

func (*ActivityByWikiIdAndBlockActivityByWikiIdAndBlockActivityContentWikiTagsTag) GetId

GetId returns ActivityByWikiIdAndBlockActivityByWikiIdAndBlockActivityContentWikiTagsTag.Id, and is useful for accessing the field via an interface.

type ActivityByWikiIdAndBlockActivityByWikiIdAndBlockActivityUser

type ActivityByWikiIdAndBlockActivityByWikiIdAndBlockActivityUser struct {
	Id      string                                                              `json:"id"`
	Profile ActivityByWikiIdAndBlockActivityByWikiIdAndBlockActivityUserProfile `json:"profile"`
}

ActivityByWikiIdAndBlockActivityByWikiIdAndBlockActivityUser includes the requested fields of the GraphQL type User.

func (*ActivityByWikiIdAndBlockActivityByWikiIdAndBlockActivityUser) GetId

GetId returns ActivityByWikiIdAndBlockActivityByWikiIdAndBlockActivityUser.Id, and is useful for accessing the field via an interface.

func (*ActivityByWikiIdAndBlockActivityByWikiIdAndBlockActivityUser) GetProfile

GetProfile returns ActivityByWikiIdAndBlockActivityByWikiIdAndBlockActivityUser.Profile, and is useful for accessing the field via an interface.

type ActivityByWikiIdAndBlockActivityByWikiIdAndBlockActivityUserProfile

type ActivityByWikiIdAndBlockActivityByWikiIdAndBlockActivityUserProfile struct {
	Username string `json:"username"`
	Bio      string `json:"bio"`
}

ActivityByWikiIdAndBlockActivityByWikiIdAndBlockActivityUserProfile includes the requested fields of the GraphQL type UserProfile.

func (*ActivityByWikiIdAndBlockActivityByWikiIdAndBlockActivityUserProfile) GetBio

GetBio returns ActivityByWikiIdAndBlockActivityByWikiIdAndBlockActivityUserProfile.Bio, and is useful for accessing the field via an interface.

func (*ActivityByWikiIdAndBlockActivityByWikiIdAndBlockActivityUserProfile) GetUsername

GetUsername returns ActivityByWikiIdAndBlockActivityByWikiIdAndBlockActivityUserProfile.Username, and is useful for accessing the field via an interface.

type ActivityByWikiIdAndBlockResponse

type ActivityByWikiIdAndBlockResponse struct {
	ActivityByWikiIdAndBlock ActivityByWikiIdAndBlockActivityByWikiIdAndBlockActivity `json:"activityByWikiIdAndBlock"`
}

ActivityByWikiIdAndBlockResponse is returned by ActivityByWikiIdAndBlock on success.

func ActivityByWikiIdAndBlock

func ActivityByWikiIdAndBlock(
	ctx context.Context,
	client graphql.Client,
	block int,
	wikiId string,
) (*ActivityByWikiIdAndBlockResponse, error)

func (*ActivityByWikiIdAndBlockResponse) GetActivityByWikiIdAndBlock

GetActivityByWikiIdAndBlock returns ActivityByWikiIdAndBlockResponse.ActivityByWikiIdAndBlock, and is useful for accessing the field via an interface.

type IqWiki

type IqWiki struct {
	IqWikiCaller     // Read-only binding to the contract
	IqWikiTransactor // Write-only binding to the contract
	IqWikiFilterer   // Log filterer for contract events
}

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

func NewIqWiki

func NewIqWiki(address common.Address, backend bind.ContractBackend) (*IqWiki, error)

NewIqWiki creates a new instance of IqWiki, bound to a specific deployed contract.

type IqWikiCaller

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

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

func NewIqWikiCaller

func NewIqWikiCaller(address common.Address, caller bind.ContractCaller) (*IqWikiCaller, error)

NewIqWikiCaller creates a new read-only instance of IqWiki, bound to a specific deployed contract.

func (*IqWikiCaller) DOMAINSEPARATOR

func (_IqWiki *IqWikiCaller) DOMAINSEPARATOR(opts *bind.CallOpts) ([32]byte, error)

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

Solidity: function DOMAIN_SEPARATOR() view returns(bytes32)

func (*IqWikiCaller) Owner

func (_IqWiki *IqWikiCaller) 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)

type IqWikiCallerRaw

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

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

func (*IqWikiCallerRaw) Call

func (_IqWiki *IqWikiCallerRaw) 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 IqWikiCallerSession

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

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

func (*IqWikiCallerSession) DOMAINSEPARATOR

func (_IqWiki *IqWikiCallerSession) DOMAINSEPARATOR() ([32]byte, error)

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

Solidity: function DOMAIN_SEPARATOR() view returns(bytes32)

func (*IqWikiCallerSession) Owner

func (_IqWiki *IqWikiCallerSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

type IqWikiFilterer

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

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

func NewIqWikiFilterer

func NewIqWikiFilterer(address common.Address, filterer bind.ContractFilterer) (*IqWikiFilterer, error)

NewIqWikiFilterer creates a new log filterer instance of IqWiki, bound to a specific deployed contract.

func (*IqWikiFilterer) FilterOwnerUpdated

func (_IqWiki *IqWikiFilterer) FilterOwnerUpdated(opts *bind.FilterOpts, user []common.Address, newOwner []common.Address) (*IqWikiOwnerUpdatedIterator, error)

FilterOwnerUpdated is a free log retrieval operation binding the contract event 0x8292fce18fa69edf4db7b94ea2e58241df0ae57f97e0a6c9b29067028bf92d76.

Solidity: event OwnerUpdated(address indexed user, address indexed newOwner)

func (*IqWikiFilterer) FilterPosted

func (_IqWiki *IqWikiFilterer) FilterPosted(opts *bind.FilterOpts, _from []common.Address) (*IqWikiPostedIterator, error)

FilterPosted is a free log retrieval operation binding the contract event 0x0fe877471cb763db81561ce83d01be57b6699361a3febbc7a0cdfb18df66246b.

Solidity: event Posted(address indexed _from, string _ipfs)

func (*IqWikiFilterer) ParseOwnerUpdated

func (_IqWiki *IqWikiFilterer) ParseOwnerUpdated(log types.Log) (*IqWikiOwnerUpdated, error)

ParseOwnerUpdated is a log parse operation binding the contract event 0x8292fce18fa69edf4db7b94ea2e58241df0ae57f97e0a6c9b29067028bf92d76.

Solidity: event OwnerUpdated(address indexed user, address indexed newOwner)

func (*IqWikiFilterer) ParsePosted

func (_IqWiki *IqWikiFilterer) ParsePosted(log types.Log) (*IqWikiPosted, error)

ParsePosted is a log parse operation binding the contract event 0x0fe877471cb763db81561ce83d01be57b6699361a3febbc7a0cdfb18df66246b.

Solidity: event Posted(address indexed _from, string _ipfs)

func (*IqWikiFilterer) WatchOwnerUpdated

func (_IqWiki *IqWikiFilterer) WatchOwnerUpdated(opts *bind.WatchOpts, sink chan<- *IqWikiOwnerUpdated, user []common.Address, newOwner []common.Address) (event.Subscription, error)

WatchOwnerUpdated is a free log subscription operation binding the contract event 0x8292fce18fa69edf4db7b94ea2e58241df0ae57f97e0a6c9b29067028bf92d76.

Solidity: event OwnerUpdated(address indexed user, address indexed newOwner)

func (*IqWikiFilterer) WatchPosted

func (_IqWiki *IqWikiFilterer) WatchPosted(opts *bind.WatchOpts, sink chan<- *IqWikiPosted, _from []common.Address) (event.Subscription, error)

WatchPosted is a free log subscription operation binding the contract event 0x0fe877471cb763db81561ce83d01be57b6699361a3febbc7a0cdfb18df66246b.

Solidity: event Posted(address indexed _from, string _ipfs)

type IqWikiOwnerUpdated

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

IqWikiOwnerUpdated represents a OwnerUpdated event raised by the IqWiki contract.

type IqWikiOwnerUpdatedIterator

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

IqWikiOwnerUpdatedIterator is returned from FilterOwnerUpdated and is used to iterate over the raw logs and unpacked data for OwnerUpdated events raised by the IqWiki contract.

func (*IqWikiOwnerUpdatedIterator) Close

func (it *IqWikiOwnerUpdatedIterator) Close() error

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

func (*IqWikiOwnerUpdatedIterator) Error

func (it *IqWikiOwnerUpdatedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*IqWikiOwnerUpdatedIterator) Next

func (it *IqWikiOwnerUpdatedIterator) 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 IqWikiPosted

type IqWikiPosted struct {
	From common.Address
	Ipfs string
	Raw  types.Log // Blockchain specific contextual infos
}

IqWikiPosted represents a Posted event raised by the IqWiki contract.

type IqWikiPostedIterator

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

IqWikiPostedIterator is returned from FilterPosted and is used to iterate over the raw logs and unpacked data for Posted events raised by the IqWiki contract.

func (*IqWikiPostedIterator) Close

func (it *IqWikiPostedIterator) Close() error

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

func (*IqWikiPostedIterator) Error

func (it *IqWikiPostedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*IqWikiPostedIterator) Next

func (it *IqWikiPostedIterator) 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 IqWikiRaw

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

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

func (*IqWikiRaw) Call

func (_IqWiki *IqWikiRaw) 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 (*IqWikiRaw) Transact

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

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

func (*IqWikiRaw) Transfer

func (_IqWiki *IqWikiRaw) 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 IqWikiSession

type IqWikiSession struct {
	Contract     *IqWiki           // 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
}

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

func (*IqWikiSession) DOMAINSEPARATOR

func (_IqWiki *IqWikiSession) DOMAINSEPARATOR() ([32]byte, error)

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

Solidity: function DOMAIN_SEPARATOR() view returns(bytes32)

func (*IqWikiSession) Owner

func (_IqWiki *IqWikiSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*IqWikiSession) Post

func (_IqWiki *IqWikiSession) Post(ipfs string) (*types.Transaction, error)

Post is a paid mutator transaction binding the contract method 0x8ee93cf3.

Solidity: function post(string ipfs) returns()

func (*IqWikiSession) PostBySig

func (_IqWiki *IqWikiSession) PostBySig(ipfs string, _user common.Address, _deadline *big.Int, _v uint8, _r [32]byte, _s [32]byte) (*types.Transaction, error)

PostBySig is a paid mutator transaction binding the contract method 0xed53ddb9.

Solidity: function postBySig(string ipfs, address _user, uint256 _deadline, uint8 _v, bytes32 _r, bytes32 _s) returns()

func (*IqWikiSession) SetOwner

func (_IqWiki *IqWikiSession) SetOwner(newOwner common.Address) (*types.Transaction, error)

SetOwner is a paid mutator transaction binding the contract method 0x13af4035.

Solidity: function setOwner(address newOwner) returns()

func (*IqWikiSession) SetValidator

func (_IqWiki *IqWikiSession) SetValidator(_validator common.Address) (*types.Transaction, error)

SetValidator is a paid mutator transaction binding the contract method 0x1327d3d8.

Solidity: function setValidator(address _validator) returns()

type IqWikiTransactor

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

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

func NewIqWikiTransactor

func NewIqWikiTransactor(address common.Address, transactor bind.ContractTransactor) (*IqWikiTransactor, error)

NewIqWikiTransactor creates a new write-only instance of IqWiki, bound to a specific deployed contract.

func (*IqWikiTransactor) Post

func (_IqWiki *IqWikiTransactor) Post(opts *bind.TransactOpts, ipfs string) (*types.Transaction, error)

Post is a paid mutator transaction binding the contract method 0x8ee93cf3.

Solidity: function post(string ipfs) returns()

func (*IqWikiTransactor) PostBySig

func (_IqWiki *IqWikiTransactor) PostBySig(opts *bind.TransactOpts, ipfs string, _user common.Address, _deadline *big.Int, _v uint8, _r [32]byte, _s [32]byte) (*types.Transaction, error)

PostBySig is a paid mutator transaction binding the contract method 0xed53ddb9.

Solidity: function postBySig(string ipfs, address _user, uint256 _deadline, uint8 _v, bytes32 _r, bytes32 _s) returns()

func (*IqWikiTransactor) SetOwner

func (_IqWiki *IqWikiTransactor) SetOwner(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error)

SetOwner is a paid mutator transaction binding the contract method 0x13af4035.

Solidity: function setOwner(address newOwner) returns()

func (*IqWikiTransactor) SetValidator

func (_IqWiki *IqWikiTransactor) SetValidator(opts *bind.TransactOpts, _validator common.Address) (*types.Transaction, error)

SetValidator is a paid mutator transaction binding the contract method 0x1327d3d8.

Solidity: function setValidator(address _validator) returns()

type IqWikiTransactorRaw

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

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

func (*IqWikiTransactorRaw) Transact

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

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

func (*IqWikiTransactorRaw) Transfer

func (_IqWiki *IqWikiTransactorRaw) 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 IqWikiTransactorSession

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

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

func (*IqWikiTransactorSession) Post

func (_IqWiki *IqWikiTransactorSession) Post(ipfs string) (*types.Transaction, error)

Post is a paid mutator transaction binding the contract method 0x8ee93cf3.

Solidity: function post(string ipfs) returns()

func (*IqWikiTransactorSession) PostBySig

func (_IqWiki *IqWikiTransactorSession) PostBySig(ipfs string, _user common.Address, _deadline *big.Int, _v uint8, _r [32]byte, _s [32]byte) (*types.Transaction, error)

PostBySig is a paid mutator transaction binding the contract method 0xed53ddb9.

Solidity: function postBySig(string ipfs, address _user, uint256 _deadline, uint8 _v, bytes32 _r, bytes32 _s) returns()

func (*IqWikiTransactorSession) SetOwner

func (_IqWiki *IqWikiTransactorSession) SetOwner(newOwner common.Address) (*types.Transaction, error)

SetOwner is a paid mutator transaction binding the contract method 0x13af4035.

Solidity: function setOwner(address newOwner) returns()

func (*IqWikiTransactorSession) SetValidator

func (_IqWiki *IqWikiTransactorSession) SetValidator(_validator common.Address) (*types.Transaction, error)

SetValidator is a paid mutator transaction binding the contract method 0x1327d3d8.

Solidity: function setValidator(address _validator) returns()

type Status

type Status string
const (
	StatusCreated Status = "CREATED"
	StatusUpdated Status = "UPDATED"
)

Jump to

Keyboard shortcuts

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