act

package
v0.5.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// EventCreateTemplate defines the event type for the x/act CreateTemplate transaction.
	EventCreateTemplate = "CreateTemplate"
	// EventUpdateTemplate defines the event type for the x/act UpdateTemplate transaction.
	EventUpdateTemplate = "UpdateTemplate"
	// EventActionVoted defines the event type for the x/act VoteForAction transaction.
	EventActionVoted = "ActionVoted"
	// EventCreateAction defines the event type for the x/act NewAction transaction.
	EventCreateAction = "CreateAction"
	// EventActionStateChange defines the event type for the x/act action status change.
	EventActionStateChange = "ActionStateChange"
)
View Source
const (
	ActionsQuery          = "actions"
	ActionByIdQuery       = "actionById"
	ActionsByAddressQuery = "actionsByAddress"
	TemplatesQuery        = "templates"
	TemplateByIdQuery     = "templateById"
)
View Source
const (
	CheckActionMethod    = "checkAction"
	NewTemplateMethod    = "newTemplate"
	RevokeActionMethod   = "revokeAction"
	UpdateTemplateMethod = "updateTemplate"
	VoteForActionMethod  = "voteForAction"
)
View Source
const PrecompileAddress = "0x0000000000000000000000000000000000000901"

Variables

View Source
var IActABI = IActMetaData.ABI

IActABI is the input ABI used to generate the binding from. Deprecated: Use IActMetaData.ABI instead.

View Source
var IActMetaData = &bind.MetaData{
	ABI: "[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"author\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint64\",\"name\":\"actionId\",\"type\":\"uint64\"},{\"indexed\":false,\"internalType\":\"enumActionStatus\",\"name\":\"previousStatus\",\"type\":\"uint8\"},{\"indexed\":false,\"internalType\":\"enumActionStatus\",\"name\":\"newStatus\",\"type\":\"uint8\"}],\"name\":\"ActionStateChange\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"participant\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint64\",\"name\":\"actionId\",\"type\":\"uint64\"},{\"indexed\":false,\"internalType\":\"enumVoteType\",\"name\":\"voteType\",\"type\":\"uint8\"}],\"name\":\"ActionVoted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"creator\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint64\",\"name\":\"actionId\",\"type\":\"uint64\"}],\"name\":\"CreateAction\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"creator\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint64\",\"name\":\"templateId\",\"type\":\"uint64\"}],\"name\":\"CreateTemplate\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"author\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint64\",\"name\":\"templateId\",\"type\":\"uint64\"}],\"name\":\"UpdateTemplate\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"uint64\",\"name\":\"actionId\",\"type\":\"uint64\"}],\"name\":\"actionById\",\"outputs\":[{\"components\":[{\"components\":[{\"internalType\":\"uint64\",\"name\":\"id\",\"type\":\"uint64\"},{\"internalType\":\"enumActionStatus\",\"name\":\"status\",\"type\":\"uint8\"},{\"components\":[{\"internalType\":\"string\",\"name\":\"typeUrl\",\"type\":\"string\"},{\"internalType\":\"bytes\",\"name\":\"value\",\"type\":\"bytes\"}],\"internalType\":\"structTypes.AnyType\",\"name\":\"msg\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"string\",\"name\":\"typeUrl\",\"type\":\"string\"},{\"internalType\":\"bytes\",\"name\":\"value\",\"type\":\"bytes\"}],\"internalType\":\"structTypes.AnyType\",\"name\":\"result\",\"type\":\"tuple\"},{\"internalType\":\"address\",\"name\":\"creator\",\"type\":\"address\"},{\"internalType\":\"uint64\",\"name\":\"timeoutHeight\",\"type\":\"uint64\"},{\"components\":[{\"internalType\":\"uint64\",\"name\":\"secs\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"nanos\",\"type\":\"uint64\"}],\"internalType\":\"structTypes.Timestamp\",\"name\":\"createdAt\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint64\",\"name\":\"secs\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"nanos\",\"type\":\"uint64\"}],\"internalType\":\"structTypes.Timestamp\",\"name\":\"updatedAt\",\"type\":\"tuple\"},{\"internalType\":\"string\",\"name\":\"approveExpression\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"rejectExpression\",\"type\":\"string\"},{\"internalType\":\"address[]\",\"name\":\"mentions\",\"type\":\"address[]\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"participant\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"uint64\",\"name\":\"secs\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"nanos\",\"type\":\"uint64\"}],\"internalType\":\"structTypes.Timestamp\",\"name\":\"votedAt\",\"type\":\"tuple\"},{\"internalType\":\"enumVoteType\",\"name\":\"voteType\",\"type\":\"uint8\"}],\"internalType\":\"structActionVote[]\",\"name\":\"votes\",\"type\":\"tuple[]\"}],\"internalType\":\"structAction\",\"name\":\"action\",\"type\":\"tuple\"}],\"internalType\":\"structActionByIdResponse\",\"name\":\"response\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"bytes\",\"name\":\"key\",\"type\":\"bytes\"},{\"internalType\":\"uint64\",\"name\":\"offset\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"limit\",\"type\":\"uint64\"},{\"internalType\":\"bool\",\"name\":\"countTotal\",\"type\":\"bool\"},{\"internalType\":\"bool\",\"name\":\"reverse\",\"type\":\"bool\"}],\"internalType\":\"structTypes.PageRequest\",\"name\":\"pagination\",\"type\":\"tuple\"}],\"name\":\"actions\",\"outputs\":[{\"components\":[{\"components\":[{\"internalType\":\"bytes\",\"name\":\"nextKey\",\"type\":\"bytes\"},{\"internalType\":\"uint64\",\"name\":\"total\",\"type\":\"uint64\"}],\"internalType\":\"structTypes.PageResponse\",\"name\":\"pagination\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint64\",\"name\":\"id\",\"type\":\"uint64\"},{\"internalType\":\"enumActionStatus\",\"name\":\"status\",\"type\":\"uint8\"},{\"components\":[{\"internalType\":\"string\",\"name\":\"typeUrl\",\"type\":\"string\"},{\"internalType\":\"bytes\",\"name\":\"value\",\"type\":\"bytes\"}],\"internalType\":\"structTypes.AnyType\",\"name\":\"msg\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"string\",\"name\":\"typeUrl\",\"type\":\"string\"},{\"internalType\":\"bytes\",\"name\":\"value\",\"type\":\"bytes\"}],\"internalType\":\"structTypes.AnyType\",\"name\":\"result\",\"type\":\"tuple\"},{\"internalType\":\"address\",\"name\":\"creator\",\"type\":\"address\"},{\"internalType\":\"uint64\",\"name\":\"timeoutHeight\",\"type\":\"uint64\"},{\"components\":[{\"internalType\":\"uint64\",\"name\":\"secs\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"nanos\",\"type\":\"uint64\"}],\"internalType\":\"structTypes.Timestamp\",\"name\":\"createdAt\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint64\",\"name\":\"secs\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"nanos\",\"type\":\"uint64\"}],\"internalType\":\"structTypes.Timestamp\",\"name\":\"updatedAt\",\"type\":\"tuple\"},{\"internalType\":\"string\",\"name\":\"approveExpression\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"rejectExpression\",\"type\":\"string\"},{\"internalType\":\"address[]\",\"name\":\"mentions\",\"type\":\"address[]\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"participant\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"uint64\",\"name\":\"secs\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"nanos\",\"type\":\"uint64\"}],\"internalType\":\"structTypes.Timestamp\",\"name\":\"votedAt\",\"type\":\"tuple\"},{\"internalType\":\"enumVoteType\",\"name\":\"voteType\",\"type\":\"uint8\"}],\"internalType\":\"structActionVote[]\",\"name\":\"votes\",\"type\":\"tuple[]\"}],\"internalType\":\"structAction[]\",\"name\":\"actions\",\"type\":\"tuple[]\"}],\"internalType\":\"structActionsResponse\",\"name\":\"response\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"bytes\",\"name\":\"key\",\"type\":\"bytes\"},{\"internalType\":\"uint64\",\"name\":\"offset\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"limit\",\"type\":\"uint64\"},{\"internalType\":\"bool\",\"name\":\"countTotal\",\"type\":\"bool\"},{\"internalType\":\"bool\",\"name\":\"reverse\",\"type\":\"bool\"}],\"internalType\":\"structTypes.PageRequest\",\"name\":\"pagination\",\"type\":\"tuple\"},{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"},{\"internalType\":\"enumActionStatus\",\"name\":\"status\",\"type\":\"uint8\"}],\"name\":\"actionsByAddress\",\"outputs\":[{\"components\":[{\"components\":[{\"internalType\":\"bytes\",\"name\":\"nextKey\",\"type\":\"bytes\"},{\"internalType\":\"uint64\",\"name\":\"total\",\"type\":\"uint64\"}],\"internalType\":\"structTypes.PageResponse\",\"name\":\"pagination\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint64\",\"name\":\"id\",\"type\":\"uint64\"},{\"internalType\":\"enumActionStatus\",\"name\":\"status\",\"type\":\"uint8\"},{\"components\":[{\"internalType\":\"string\",\"name\":\"typeUrl\",\"type\":\"string\"},{\"internalType\":\"bytes\",\"name\":\"value\",\"type\":\"bytes\"}],\"internalType\":\"structTypes.AnyType\",\"name\":\"msg\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"string\",\"name\":\"typeUrl\",\"type\":\"string\"},{\"internalType\":\"bytes\",\"name\":\"value\",\"type\":\"bytes\"}],\"internalType\":\"structTypes.AnyType\",\"name\":\"result\",\"type\":\"tuple\"},{\"internalType\":\"address\",\"name\":\"creator\",\"type\":\"address\"},{\"internalType\":\"uint64\",\"name\":\"timeoutHeight\",\"type\":\"uint64\"},{\"components\":[{\"internalType\":\"uint64\",\"name\":\"secs\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"nanos\",\"type\":\"uint64\"}],\"internalType\":\"structTypes.Timestamp\",\"name\":\"createdAt\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint64\",\"name\":\"secs\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"nanos\",\"type\":\"uint64\"}],\"internalType\":\"structTypes.Timestamp\",\"name\":\"updatedAt\",\"type\":\"tuple\"},{\"internalType\":\"string\",\"name\":\"approveExpression\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"rejectExpression\",\"type\":\"string\"},{\"internalType\":\"address[]\",\"name\":\"mentions\",\"type\":\"address[]\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"participant\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"uint64\",\"name\":\"secs\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"nanos\",\"type\":\"uint64\"}],\"internalType\":\"structTypes.Timestamp\",\"name\":\"votedAt\",\"type\":\"tuple\"},{\"internalType\":\"enumVoteType\",\"name\":\"voteType\",\"type\":\"uint8\"}],\"internalType\":\"structActionVote[]\",\"name\":\"votes\",\"type\":\"tuple[]\"}],\"internalType\":\"structAction[]\",\"name\":\"actions\",\"type\":\"tuple[]\"}],\"internalType\":\"structActionsByAddressResponse\",\"name\":\"response\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint64\",\"name\":\"actionId\",\"type\":\"uint64\"}],\"name\":\"checkAction\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"definition\",\"type\":\"string\"}],\"name\":\"newTemplate\",\"outputs\":[{\"internalType\":\"uint64\",\"name\":\"\",\"type\":\"uint64\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint64\",\"name\":\"actionId\",\"type\":\"uint64\"}],\"name\":\"revokeAction\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint64\",\"name\":\"templateId\",\"type\":\"uint64\"}],\"name\":\"templateById\",\"outputs\":[{\"components\":[{\"components\":[{\"internalType\":\"uint64\",\"name\":\"id\",\"type\":\"uint64\"},{\"internalType\":\"address\",\"name\":\"creator\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"expression\",\"type\":\"string\"}],\"internalType\":\"structTemplate\",\"name\":\"template\",\"type\":\"tuple\"}],\"internalType\":\"structTemplateByIdResponse\",\"name\":\"response\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"bytes\",\"name\":\"key\",\"type\":\"bytes\"},{\"internalType\":\"uint64\",\"name\":\"offset\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"limit\",\"type\":\"uint64\"},{\"internalType\":\"bool\",\"name\":\"countTotal\",\"type\":\"bool\"},{\"internalType\":\"bool\",\"name\":\"reverse\",\"type\":\"bool\"}],\"internalType\":\"structTypes.PageRequest\",\"name\":\"pagination\",\"type\":\"tuple\"},{\"internalType\":\"address\",\"name\":\"creator\",\"type\":\"address\"}],\"name\":\"templates\",\"outputs\":[{\"components\":[{\"components\":[{\"internalType\":\"bytes\",\"name\":\"nextKey\",\"type\":\"bytes\"},{\"internalType\":\"uint64\",\"name\":\"total\",\"type\":\"uint64\"}],\"internalType\":\"structTypes.PageResponse\",\"name\":\"pagination\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint64\",\"name\":\"id\",\"type\":\"uint64\"},{\"internalType\":\"address\",\"name\":\"creator\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"expression\",\"type\":\"string\"}],\"internalType\":\"structTemplate[]\",\"name\":\"templates\",\"type\":\"tuple[]\"}],\"internalType\":\"structTemplatesResponse\",\"name\":\"response\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint64\",\"name\":\"templateId\",\"type\":\"uint64\"},{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"definition\",\"type\":\"string\"}],\"name\":\"updateTemplate\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint64\",\"name\":\"actionId\",\"type\":\"uint64\"},{\"internalType\":\"enumVoteType\",\"name\":\"voteType\",\"type\":\"uint8\"}],\"name\":\"voteForAction\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
}

IActMetaData contains all meta data concerning the IAct contract.

Functions

func LoadABI

func LoadABI() (abi.ABI, error)

LoadABI loads the x/act ABI from the embedded abi.json file for the x/act precompile.

Types

type Action

type Action struct {
	Id                uint64
	Status            uint8
	Msg               TypesAnyType
	Result            TypesAnyType
	Creator           common.Address
	TimeoutHeight     uint64
	CreatedAt         TypesTimestamp
	UpdatedAt         TypesTimestamp
	ApproveExpression string
	RejectExpression  string
	Mentions          []common.Address
	Votes             []ActionVote
}

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

type ActionByIdResponse

type ActionByIdResponse struct {
	Action Action
}

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

func (*ActionByIdResponse) FromResponse

FromResponse needed to map QueryActionByIdResponse to ActionByIdResponse

type ActionVote

type ActionVote struct {
	Participant common.Address
	VotedAt     TypesTimestamp
	VoteType    uint8
}

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

type ActionsByAddressInput

type ActionsByAddressInput struct {
	Pagination query.PageRequest `abi:"pagination"`
	Address    common.Address    `abi:"addr"`
	Status     uint8             `abi:"status"`
}

ActionsByAddressInput needed to unmarshal Pagination field and pass it to types.QueryActionsByAddressRequest

type ActionsByAddressResponse

type ActionsByAddressResponse struct {
	Pagination TypesPageResponse
	Actions    []Action
}

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

func (*ActionsByAddressResponse) FromResponse

FromResponse needed to map QueryActionsByAddressResponse to ActionsByAddressResponse

type ActionsInput

type ActionsInput struct {
	Pagination query.PageRequest `abi:"pagination"`
}

ActionsInput needed to unmarshal Pagination field and pass it to types.QueryActionsRequest

type ActionsResponse

type ActionsResponse struct {
	Pagination TypesPageResponse
	Actions    []Action
}

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

func (*ActionsResponse) FromResponse

FromResponse needed to map QueryActionsResponse to ActionsResponse

type IAct

type IAct struct {
	IActCaller     // Read-only binding to the contract
	IActTransactor // Write-only binding to the contract
	IActFilterer   // Log filterer for contract events
}

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

func NewIAct

func NewIAct(address common.Address, backend bind.ContractBackend) (*IAct, error)

NewIAct creates a new instance of IAct, bound to a specific deployed contract.

type IActActionStateChange

type IActActionStateChange struct {
	Author         common.Address
	ActionId       uint64
	PreviousStatus uint8
	NewStatus      uint8
	Raw            types.Log // Blockchain specific contextual infos
}

IActActionStateChange represents a ActionStateChange event raised by the IAct contract.

type IActActionStateChangeIterator

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

IActActionStateChangeIterator is returned from FilterActionStateChange and is used to iterate over the raw logs and unpacked data for ActionStateChange events raised by the IAct contract.

func (*IActActionStateChangeIterator) Close

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

func (*IActActionStateChangeIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*IActActionStateChangeIterator) 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 IActActionVoted

type IActActionVoted struct {
	Participant common.Address
	ActionId    uint64
	VoteType    uint8
	Raw         types.Log // Blockchain specific contextual infos
}

IActActionVoted represents a ActionVoted event raised by the IAct contract.

type IActActionVotedIterator

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

IActActionVotedIterator is returned from FilterActionVoted and is used to iterate over the raw logs and unpacked data for ActionVoted events raised by the IAct contract.

func (*IActActionVotedIterator) Close

func (it *IActActionVotedIterator) Close() error

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

func (*IActActionVotedIterator) Error

func (it *IActActionVotedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*IActActionVotedIterator) Next

func (it *IActActionVotedIterator) 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 IActCaller

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

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

func NewIActCaller

func NewIActCaller(address common.Address, caller bind.ContractCaller) (*IActCaller, error)

NewIActCaller creates a new read-only instance of IAct, bound to a specific deployed contract.

func (*IActCaller) ActionById

func (_IAct *IActCaller) ActionById(opts *bind.CallOpts, actionId uint64) (ActionByIdResponse, error)

ActionById is a free data retrieval call binding the contract method 0x51619ef0.

Solidity: function actionById(uint64 actionId) view returns(((uint64,uint8,(string,bytes),(string,bytes),address,uint64,(uint64,uint64),(uint64,uint64),string,string,address[],(address,(uint64,uint64),uint8)[])) response)

func (*IActCaller) Actions

func (_IAct *IActCaller) Actions(opts *bind.CallOpts, pagination TypesPageRequest) (ActionsResponse, error)

Actions is a free data retrieval call binding the contract method 0x9e9d1e27.

Solidity: function actions((bytes,uint64,uint64,bool,bool) pagination) view returns(((bytes,uint64),(uint64,uint8,(string,bytes),(string,bytes),address,uint64,(uint64,uint64),(uint64,uint64),string,string,address[],(address,(uint64,uint64),uint8)[])[]) response)

func (*IActCaller) ActionsByAddress

func (_IAct *IActCaller) ActionsByAddress(opts *bind.CallOpts, pagination TypesPageRequest, addr common.Address, status uint8) (ActionsByAddressResponse, error)

ActionsByAddress is a free data retrieval call binding the contract method 0x589d42b6.

Solidity: function actionsByAddress((bytes,uint64,uint64,bool,bool) pagination, address addr, uint8 status) view returns(((bytes,uint64),(uint64,uint8,(string,bytes),(string,bytes),address,uint64,(uint64,uint64),(uint64,uint64),string,string,address[],(address,(uint64,uint64),uint8)[])[]) response)

func (*IActCaller) TemplateById

func (_IAct *IActCaller) TemplateById(opts *bind.CallOpts, templateId uint64) (TemplateByIdResponse, error)

TemplateById is a free data retrieval call binding the contract method 0x161f1e48.

Solidity: function templateById(uint64 templateId) view returns(((uint64,address,string,string)) response)

func (*IActCaller) Templates

func (_IAct *IActCaller) Templates(opts *bind.CallOpts, pagination TypesPageRequest, creator common.Address) (TemplatesResponse, error)

Templates is a free data retrieval call binding the contract method 0x236d0b9f.

Solidity: function templates((bytes,uint64,uint64,bool,bool) pagination, address creator) view returns(((bytes,uint64),(uint64,address,string,string)[]) response)

type IActCallerRaw

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

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

func (*IActCallerRaw) Call

func (_IAct *IActCallerRaw) 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 IActCallerSession

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

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

func (*IActCallerSession) ActionById

func (_IAct *IActCallerSession) ActionById(actionId uint64) (ActionByIdResponse, error)

ActionById is a free data retrieval call binding the contract method 0x51619ef0.

Solidity: function actionById(uint64 actionId) view returns(((uint64,uint8,(string,bytes),(string,bytes),address,uint64,(uint64,uint64),(uint64,uint64),string,string,address[],(address,(uint64,uint64),uint8)[])) response)

func (*IActCallerSession) Actions

func (_IAct *IActCallerSession) Actions(pagination TypesPageRequest) (ActionsResponse, error)

Actions is a free data retrieval call binding the contract method 0x9e9d1e27.

Solidity: function actions((bytes,uint64,uint64,bool,bool) pagination) view returns(((bytes,uint64),(uint64,uint8,(string,bytes),(string,bytes),address,uint64,(uint64,uint64),(uint64,uint64),string,string,address[],(address,(uint64,uint64),uint8)[])[]) response)

func (*IActCallerSession) ActionsByAddress

func (_IAct *IActCallerSession) ActionsByAddress(pagination TypesPageRequest, addr common.Address, status uint8) (ActionsByAddressResponse, error)

ActionsByAddress is a free data retrieval call binding the contract method 0x589d42b6.

Solidity: function actionsByAddress((bytes,uint64,uint64,bool,bool) pagination, address addr, uint8 status) view returns(((bytes,uint64),(uint64,uint8,(string,bytes),(string,bytes),address,uint64,(uint64,uint64),(uint64,uint64),string,string,address[],(address,(uint64,uint64),uint8)[])[]) response)

func (*IActCallerSession) TemplateById

func (_IAct *IActCallerSession) TemplateById(templateId uint64) (TemplateByIdResponse, error)

TemplateById is a free data retrieval call binding the contract method 0x161f1e48.

Solidity: function templateById(uint64 templateId) view returns(((uint64,address,string,string)) response)

func (*IActCallerSession) Templates

func (_IAct *IActCallerSession) Templates(pagination TypesPageRequest, creator common.Address) (TemplatesResponse, error)

Templates is a free data retrieval call binding the contract method 0x236d0b9f.

Solidity: function templates((bytes,uint64,uint64,bool,bool) pagination, address creator) view returns(((bytes,uint64),(uint64,address,string,string)[]) response)

type IActCreateAction

type IActCreateAction struct {
	Creator  common.Address
	ActionId uint64
	Raw      types.Log // Blockchain specific contextual infos
}

IActCreateAction represents a CreateAction event raised by the IAct contract.

type IActCreateActionIterator

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

IActCreateActionIterator is returned from FilterCreateAction and is used to iterate over the raw logs and unpacked data for CreateAction events raised by the IAct contract.

func (*IActCreateActionIterator) Close

func (it *IActCreateActionIterator) Close() error

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

func (*IActCreateActionIterator) Error

func (it *IActCreateActionIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*IActCreateActionIterator) Next

func (it *IActCreateActionIterator) 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 IActCreateTemplate

type IActCreateTemplate struct {
	Creator    common.Address
	TemplateId uint64
	Raw        types.Log // Blockchain specific contextual infos
}

IActCreateTemplate represents a CreateTemplate event raised by the IAct contract.

type IActCreateTemplateIterator

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

IActCreateTemplateIterator is returned from FilterCreateTemplate and is used to iterate over the raw logs and unpacked data for CreateTemplate events raised by the IAct contract.

func (*IActCreateTemplateIterator) Close

func (it *IActCreateTemplateIterator) Close() error

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

func (*IActCreateTemplateIterator) Error

func (it *IActCreateTemplateIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*IActCreateTemplateIterator) Next

func (it *IActCreateTemplateIterator) 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 IActFilterer

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

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

func NewIActFilterer

func NewIActFilterer(address common.Address, filterer bind.ContractFilterer) (*IActFilterer, error)

NewIActFilterer creates a new log filterer instance of IAct, bound to a specific deployed contract.

func (*IActFilterer) FilterActionStateChange

func (_IAct *IActFilterer) FilterActionStateChange(opts *bind.FilterOpts, author []common.Address) (*IActActionStateChangeIterator, error)

FilterActionStateChange is a free log retrieval operation binding the contract event 0x4ec265596164182b2025b3bd681450aef02c2b9487924e1b6ac3785f9c4636dc.

Solidity: event ActionStateChange(address indexed author, uint64 actionId, uint8 previousStatus, uint8 newStatus)

func (*IActFilterer) FilterActionVoted

func (_IAct *IActFilterer) FilterActionVoted(opts *bind.FilterOpts, participant []common.Address) (*IActActionVotedIterator, error)

FilterActionVoted is a free log retrieval operation binding the contract event 0x39db7e0304bfea692e054bba473c1d34175e298180e0c64dc10db63bd6449ae3.

Solidity: event ActionVoted(address indexed participant, uint64 actionId, uint8 voteType)

func (*IActFilterer) FilterCreateAction

func (_IAct *IActFilterer) FilterCreateAction(opts *bind.FilterOpts, creator []common.Address) (*IActCreateActionIterator, error)

FilterCreateAction is a free log retrieval operation binding the contract event 0xadae3ff0cdd6a7009cbfd8df0000b91dfa31585868d4afda8b0aff24c0e6c075.

Solidity: event CreateAction(address indexed creator, uint64 actionId)

func (*IActFilterer) FilterCreateTemplate

func (_IAct *IActFilterer) FilterCreateTemplate(opts *bind.FilterOpts, creator []common.Address) (*IActCreateTemplateIterator, error)

FilterCreateTemplate is a free log retrieval operation binding the contract event 0x1c8026eaa08d75eaeabd1b3a5f4b53660b24c2ccd983f1300121ce50f9755ead.

Solidity: event CreateTemplate(address indexed creator, uint64 templateId)

func (*IActFilterer) FilterUpdateTemplate

func (_IAct *IActFilterer) FilterUpdateTemplate(opts *bind.FilterOpts, author []common.Address) (*IActUpdateTemplateIterator, error)

FilterUpdateTemplate is a free log retrieval operation binding the contract event 0x208e43824ec2e0ac2f091a72bb6aaf6f69aa0f522624bef02e403b80a29d1acd.

Solidity: event UpdateTemplate(address indexed author, uint64 templateId)

func (*IActFilterer) ParseActionStateChange

func (_IAct *IActFilterer) ParseActionStateChange(log types.Log) (*IActActionStateChange, error)

ParseActionStateChange is a log parse operation binding the contract event 0x4ec265596164182b2025b3bd681450aef02c2b9487924e1b6ac3785f9c4636dc.

Solidity: event ActionStateChange(address indexed author, uint64 actionId, uint8 previousStatus, uint8 newStatus)

func (*IActFilterer) ParseActionVoted

func (_IAct *IActFilterer) ParseActionVoted(log types.Log) (*IActActionVoted, error)

ParseActionVoted is a log parse operation binding the contract event 0x39db7e0304bfea692e054bba473c1d34175e298180e0c64dc10db63bd6449ae3.

Solidity: event ActionVoted(address indexed participant, uint64 actionId, uint8 voteType)

func (*IActFilterer) ParseCreateAction

func (_IAct *IActFilterer) ParseCreateAction(log types.Log) (*IActCreateAction, error)

ParseCreateAction is a log parse operation binding the contract event 0xadae3ff0cdd6a7009cbfd8df0000b91dfa31585868d4afda8b0aff24c0e6c075.

Solidity: event CreateAction(address indexed creator, uint64 actionId)

func (*IActFilterer) ParseCreateTemplate

func (_IAct *IActFilterer) ParseCreateTemplate(log types.Log) (*IActCreateTemplate, error)

ParseCreateTemplate is a log parse operation binding the contract event 0x1c8026eaa08d75eaeabd1b3a5f4b53660b24c2ccd983f1300121ce50f9755ead.

Solidity: event CreateTemplate(address indexed creator, uint64 templateId)

func (*IActFilterer) ParseUpdateTemplate

func (_IAct *IActFilterer) ParseUpdateTemplate(log types.Log) (*IActUpdateTemplate, error)

ParseUpdateTemplate is a log parse operation binding the contract event 0x208e43824ec2e0ac2f091a72bb6aaf6f69aa0f522624bef02e403b80a29d1acd.

Solidity: event UpdateTemplate(address indexed author, uint64 templateId)

func (*IActFilterer) WatchActionStateChange

func (_IAct *IActFilterer) WatchActionStateChange(opts *bind.WatchOpts, sink chan<- *IActActionStateChange, author []common.Address) (event.Subscription, error)

WatchActionStateChange is a free log subscription operation binding the contract event 0x4ec265596164182b2025b3bd681450aef02c2b9487924e1b6ac3785f9c4636dc.

Solidity: event ActionStateChange(address indexed author, uint64 actionId, uint8 previousStatus, uint8 newStatus)

func (*IActFilterer) WatchActionVoted

func (_IAct *IActFilterer) WatchActionVoted(opts *bind.WatchOpts, sink chan<- *IActActionVoted, participant []common.Address) (event.Subscription, error)

WatchActionVoted is a free log subscription operation binding the contract event 0x39db7e0304bfea692e054bba473c1d34175e298180e0c64dc10db63bd6449ae3.

Solidity: event ActionVoted(address indexed participant, uint64 actionId, uint8 voteType)

func (*IActFilterer) WatchCreateAction

func (_IAct *IActFilterer) WatchCreateAction(opts *bind.WatchOpts, sink chan<- *IActCreateAction, creator []common.Address) (event.Subscription, error)

WatchCreateAction is a free log subscription operation binding the contract event 0xadae3ff0cdd6a7009cbfd8df0000b91dfa31585868d4afda8b0aff24c0e6c075.

Solidity: event CreateAction(address indexed creator, uint64 actionId)

func (*IActFilterer) WatchCreateTemplate

func (_IAct *IActFilterer) WatchCreateTemplate(opts *bind.WatchOpts, sink chan<- *IActCreateTemplate, creator []common.Address) (event.Subscription, error)

WatchCreateTemplate is a free log subscription operation binding the contract event 0x1c8026eaa08d75eaeabd1b3a5f4b53660b24c2ccd983f1300121ce50f9755ead.

Solidity: event CreateTemplate(address indexed creator, uint64 templateId)

func (*IActFilterer) WatchUpdateTemplate

func (_IAct *IActFilterer) WatchUpdateTemplate(opts *bind.WatchOpts, sink chan<- *IActUpdateTemplate, author []common.Address) (event.Subscription, error)

WatchUpdateTemplate is a free log subscription operation binding the contract event 0x208e43824ec2e0ac2f091a72bb6aaf6f69aa0f522624bef02e403b80a29d1acd.

Solidity: event UpdateTemplate(address indexed author, uint64 templateId)

type IActRaw

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

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

func (*IActRaw) Call

func (_IAct *IActRaw) 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 (*IActRaw) Transact

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

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

func (*IActRaw) Transfer

func (_IAct *IActRaw) 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 IActSession

type IActSession struct {
	Contract     *IAct             // 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
}

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

func (*IActSession) ActionById

func (_IAct *IActSession) ActionById(actionId uint64) (ActionByIdResponse, error)

ActionById is a free data retrieval call binding the contract method 0x51619ef0.

Solidity: function actionById(uint64 actionId) view returns(((uint64,uint8,(string,bytes),(string,bytes),address,uint64,(uint64,uint64),(uint64,uint64),string,string,address[],(address,(uint64,uint64),uint8)[])) response)

func (*IActSession) Actions

func (_IAct *IActSession) Actions(pagination TypesPageRequest) (ActionsResponse, error)

Actions is a free data retrieval call binding the contract method 0x9e9d1e27.

Solidity: function actions((bytes,uint64,uint64,bool,bool) pagination) view returns(((bytes,uint64),(uint64,uint8,(string,bytes),(string,bytes),address,uint64,(uint64,uint64),(uint64,uint64),string,string,address[],(address,(uint64,uint64),uint8)[])[]) response)

func (*IActSession) ActionsByAddress

func (_IAct *IActSession) ActionsByAddress(pagination TypesPageRequest, addr common.Address, status uint8) (ActionsByAddressResponse, error)

ActionsByAddress is a free data retrieval call binding the contract method 0x589d42b6.

Solidity: function actionsByAddress((bytes,uint64,uint64,bool,bool) pagination, address addr, uint8 status) view returns(((bytes,uint64),(uint64,uint8,(string,bytes),(string,bytes),address,uint64,(uint64,uint64),(uint64,uint64),string,string,address[],(address,(uint64,uint64),uint8)[])[]) response)

func (*IActSession) CheckAction

func (_IAct *IActSession) CheckAction(actionId uint64) (*types.Transaction, error)

CheckAction is a paid mutator transaction binding the contract method 0x737c52b5.

Solidity: function checkAction(uint64 actionId) returns(string)

func (*IActSession) NewTemplate

func (_IAct *IActSession) NewTemplate(name string, definition string) (*types.Transaction, error)

NewTemplate is a paid mutator transaction binding the contract method 0x20748349.

Solidity: function newTemplate(string name, string definition) returns(uint64)

func (*IActSession) RevokeAction

func (_IAct *IActSession) RevokeAction(actionId uint64) (*types.Transaction, error)

RevokeAction is a paid mutator transaction binding the contract method 0xb8fcbfef.

Solidity: function revokeAction(uint64 actionId) returns(bool)

func (*IActSession) TemplateById

func (_IAct *IActSession) TemplateById(templateId uint64) (TemplateByIdResponse, error)

TemplateById is a free data retrieval call binding the contract method 0x161f1e48.

Solidity: function templateById(uint64 templateId) view returns(((uint64,address,string,string)) response)

func (*IActSession) Templates

func (_IAct *IActSession) Templates(pagination TypesPageRequest, creator common.Address) (TemplatesResponse, error)

Templates is a free data retrieval call binding the contract method 0x236d0b9f.

Solidity: function templates((bytes,uint64,uint64,bool,bool) pagination, address creator) view returns(((bytes,uint64),(uint64,address,string,string)[]) response)

func (*IActSession) UpdateTemplate

func (_IAct *IActSession) UpdateTemplate(templateId uint64, name string, definition string) (*types.Transaction, error)

UpdateTemplate is a paid mutator transaction binding the contract method 0xcb7391d5.

Solidity: function updateTemplate(uint64 templateId, string name, string definition) returns(bool)

func (*IActSession) VoteForAction

func (_IAct *IActSession) VoteForAction(actionId uint64, voteType uint8) (*types.Transaction, error)

VoteForAction is a paid mutator transaction binding the contract method 0xaa9b484b.

Solidity: function voteForAction(uint64 actionId, uint8 voteType) returns(string)

type IActTransactor

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

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

func NewIActTransactor

func NewIActTransactor(address common.Address, transactor bind.ContractTransactor) (*IActTransactor, error)

NewIActTransactor creates a new write-only instance of IAct, bound to a specific deployed contract.

func (*IActTransactor) CheckAction

func (_IAct *IActTransactor) CheckAction(opts *bind.TransactOpts, actionId uint64) (*types.Transaction, error)

CheckAction is a paid mutator transaction binding the contract method 0x737c52b5.

Solidity: function checkAction(uint64 actionId) returns(string)

func (*IActTransactor) NewTemplate

func (_IAct *IActTransactor) NewTemplate(opts *bind.TransactOpts, name string, definition string) (*types.Transaction, error)

NewTemplate is a paid mutator transaction binding the contract method 0x20748349.

Solidity: function newTemplate(string name, string definition) returns(uint64)

func (*IActTransactor) RevokeAction

func (_IAct *IActTransactor) RevokeAction(opts *bind.TransactOpts, actionId uint64) (*types.Transaction, error)

RevokeAction is a paid mutator transaction binding the contract method 0xb8fcbfef.

Solidity: function revokeAction(uint64 actionId) returns(bool)

func (*IActTransactor) UpdateTemplate

func (_IAct *IActTransactor) UpdateTemplate(opts *bind.TransactOpts, templateId uint64, name string, definition string) (*types.Transaction, error)

UpdateTemplate is a paid mutator transaction binding the contract method 0xcb7391d5.

Solidity: function updateTemplate(uint64 templateId, string name, string definition) returns(bool)

func (*IActTransactor) VoteForAction

func (_IAct *IActTransactor) VoteForAction(opts *bind.TransactOpts, actionId uint64, voteType uint8) (*types.Transaction, error)

VoteForAction is a paid mutator transaction binding the contract method 0xaa9b484b.

Solidity: function voteForAction(uint64 actionId, uint8 voteType) returns(string)

type IActTransactorRaw

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

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

func (*IActTransactorRaw) Transact

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

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

func (*IActTransactorRaw) Transfer

func (_IAct *IActTransactorRaw) 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 IActTransactorSession

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

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

func (*IActTransactorSession) CheckAction

func (_IAct *IActTransactorSession) CheckAction(actionId uint64) (*types.Transaction, error)

CheckAction is a paid mutator transaction binding the contract method 0x737c52b5.

Solidity: function checkAction(uint64 actionId) returns(string)

func (*IActTransactorSession) NewTemplate

func (_IAct *IActTransactorSession) NewTemplate(name string, definition string) (*types.Transaction, error)

NewTemplate is a paid mutator transaction binding the contract method 0x20748349.

Solidity: function newTemplate(string name, string definition) returns(uint64)

func (*IActTransactorSession) RevokeAction

func (_IAct *IActTransactorSession) RevokeAction(actionId uint64) (*types.Transaction, error)

RevokeAction is a paid mutator transaction binding the contract method 0xb8fcbfef.

Solidity: function revokeAction(uint64 actionId) returns(bool)

func (*IActTransactorSession) UpdateTemplate

func (_IAct *IActTransactorSession) UpdateTemplate(templateId uint64, name string, definition string) (*types.Transaction, error)

UpdateTemplate is a paid mutator transaction binding the contract method 0xcb7391d5.

Solidity: function updateTemplate(uint64 templateId, string name, string definition) returns(bool)

func (*IActTransactorSession) VoteForAction

func (_IAct *IActTransactorSession) VoteForAction(actionId uint64, voteType uint8) (*types.Transaction, error)

VoteForAction is a paid mutator transaction binding the contract method 0xaa9b484b.

Solidity: function voteForAction(uint64 actionId, uint8 voteType) returns(string)

type IActUpdateTemplate

type IActUpdateTemplate struct {
	Author     common.Address
	TemplateId uint64
	Raw        types.Log // Blockchain specific contextual infos
}

IActUpdateTemplate represents a UpdateTemplate event raised by the IAct contract.

type IActUpdateTemplateIterator

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

IActUpdateTemplateIterator is returned from FilterUpdateTemplate and is used to iterate over the raw logs and unpacked data for UpdateTemplate events raised by the IAct contract.

func (*IActUpdateTemplateIterator) Close

func (it *IActUpdateTemplateIterator) Close() error

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

func (*IActUpdateTemplateIterator) Error

func (it *IActUpdateTemplateIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*IActUpdateTemplateIterator) Next

func (it *IActUpdateTemplateIterator) 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 Precompile

type Precompile struct {
	evmoscmn.Precompile
	// contains filtered or unexported fields
}

Precompile defines the precompiled contract for x/act.

func NewPrecompile

func NewPrecompile(actkeeper actmodulekeeper.Keeper, er *common.EthEventsRegistry) (*Precompile, error)

func (*Precompile) ActionByIdQuery

func (p *Precompile) ActionByIdQuery(
	ctx sdk.Context,
	_ *vm.Contract,
	method *abi.Method,
	args []interface{},
) ([]byte, error)

ActionByIdQuery is actionById query implementation, constructs QueryActionByIdRequest from args, passes it to query server and packs response into corresponding abi output.

func (*Precompile) ActionsByAddressQuery

func (p *Precompile) ActionsByAddressQuery(
	ctx sdk.Context,
	_ *vm.Contract,
	method *abi.Method,
	args []interface{},
) ([]byte, error)

ActionsByAddressQuery is actionsByAddress query implementation, Constructs QueryActionsByAddressRequest from args, passes it to query server and packs response into corresponding abi output.

func (*Precompile) ActionsQuery

func (p *Precompile) ActionsQuery(
	ctx sdk.Context,
	_ *vm.Contract,
	method *abi.Method,
	args []interface{},
) ([]byte, error)

ActionsQuery actions query implementation, constructs QueryActionsRequest from args, passes it to query server and packs response into corresponding abi output.

func (*Precompile) Address

func (p *Precompile) Address() ethcmn.Address

Address implements vm.PrecompiledContract.

func (*Precompile) CheckActionMethod

func (p *Precompile) CheckActionMethod(
	ctx sdk.Context,
	origin common.Address,
	stateDB vm.StateDB,
	method *abi.Method,
	args []interface{},
) ([]byte, error)

CheckActionMethod constructs MsgCheckAction from args, passes it to msg server and packs corresponding abi output

func (*Precompile) GetActionStateChangeEvent

func (p *Precompile) GetActionStateChangeEvent(ctx sdk.Context, writerAddress *ethcmn.Address, sdkEvent sdk.Event) (*ethtypes.Log, error)

Map EventActionStateChange to eth ActionStateChange event and write to eth log

func (*Precompile) GetActionVotedEvent

func (p *Precompile) GetActionVotedEvent(ctx sdk.Context, writerAddress *ethcmn.Address, sdkEvent sdk.Event) (*ethtypes.Log, error)

Map EventActionVoted to eth ActionVoted event and write to eth log

func (*Precompile) GetCreateActionEvent

func (p *Precompile) GetCreateActionEvent(ctx sdk.Context, writerAddress *ethcmn.Address, sdkEvent sdk.Event) (*ethtypes.Log, error)

Map EventCreateAction to eth CreateAction event and write to eth log

func (*Precompile) GetCreateTemplateEvent

func (p *Precompile) GetCreateTemplateEvent(ctx sdk.Context, writerAddress *ethcmn.Address, sdkEvent sdk.Event) (*ethtypes.Log, error)

Map EventCreateTemplate to eth CreateTemplate event and write to eth log

func (*Precompile) GetUpdateTemplateEvent

func (p *Precompile) GetUpdateTemplateEvent(ctx sdk.Context, writerAddress *ethcmn.Address, sdkEvent sdk.Event) (*ethtypes.Log, error)

Map EventUpdateTemplate to eth UpdateTemplate event and write to eth log

func (*Precompile) IsTransaction

func (p *Precompile) IsTransaction(method string) bool

func (*Precompile) Logger

func (p *Precompile) Logger(ctx sdk.Context) log.Logger

Logger returns a precompile-specific logger.

func (*Precompile) NewTemplateMethod

func (p *Precompile) NewTemplateMethod(
	ctx sdk.Context,
	origin common.Address,
	stateDB vm.StateDB,
	method *abi.Method,
	args []interface{},
) ([]byte, error)

NewTemplateMethod constructs MsgNewTemplate from args, passes it to msg server and packs corresponding abi output.

func (*Precompile) RequiredGas

func (p *Precompile) RequiredGas(input []byte) uint64

RequiredGas implements vm.PrecompiledContract. Subtle: this method shadows the method (Precompile).RequiredGas of Precompile.Precompile.

func (*Precompile) RevokeActionMethod

func (p *Precompile) RevokeActionMethod(
	ctx sdk.Context,
	origin common.Address,
	stateDB vm.StateDB,
	method *abi.Method,
	args []interface{},
) ([]byte, error)

RevokeActionMethod constructs MsgRevokeAction from args, passes it to msg server and packs corresponding abi output.

func (*Precompile) Run

func (p *Precompile) Run(evm *vm.EVM, contract *vm.Contract, readonly bool) (bz []byte, err error)

Run implements vm.PrecompiledContract.

func (*Precompile) TemplateByIdQuery

func (p *Precompile) TemplateByIdQuery(
	ctx sdk.Context,
	_ *vm.Contract,
	method *abi.Method,
	args []interface{},
) ([]byte, error)

TemplateByIdQuery is templateById query implementation, constructs QueryTemplateByIdRequest from args, passes it to query server and packs response into corresponding abi output.

func (*Precompile) TemplatesQuery

func (p *Precompile) TemplatesQuery(
	ctx sdk.Context,
	_ *vm.Contract,
	method *abi.Method,
	args []interface{},
) ([]byte, error)

TemplatesQuery is templates query implementation, constructs QueryTemplatesRequest from args, passes it to query server and packs response into corresponding abi output.

func (*Precompile) UpdateTemplateMethod

func (p *Precompile) UpdateTemplateMethod(
	ctx sdk.Context,
	origin common.Address,
	stateDB vm.StateDB,
	method *abi.Method,
	args []interface{},
) ([]byte, error)

UpdateTemplateMethod constructs MsgUpdateTemplate from args, passes it to msg server and packs corresponding abi output.

func (*Precompile) VoteForActionMethod

func (p *Precompile) VoteForActionMethod(
	ctx sdk.Context,
	origin common.Address,
	stateDB vm.StateDB,
	method *abi.Method,
	args []interface{},
) ([]byte, error)

VoteForActionMethod constructs MsgVoteForAction from args, passes it to msg server and packs corresponding abi output.

type Template

type Template struct {
	Id         uint64
	Creator    common.Address
	Name       string
	Expression string
}

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

type TemplateByIdResponse

type TemplateByIdResponse struct {
	Template Template
}

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

func (*TemplateByIdResponse) FromResponse

FromResponse needed to map QueryTemplateByIdResponse to TemplateByIdResponse

type TemplatesInput

type TemplatesInput struct {
	Pagination query.PageRequest `abi:"pagination"`
	Creator    common.Address    `abi:"creator"`
}

TemplatesInput needed to unmarshal Pagination field and pass it to types.QueryTemplatesRequest

type TemplatesResponse

type TemplatesResponse struct {
	Pagination TypesPageResponse
	Templates  []Template
}

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

func (*TemplatesResponse) FromResponse

FromResponse needed to map QueryTemplatesResponse to TemplatesResponse

type TypesAnyType

type TypesAnyType struct {
	TypeUrl string
	Value   []byte
}

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

type TypesPageRequest

type TypesPageRequest struct {
	Key        []byte
	Offset     uint64
	Limit      uint64
	CountTotal bool
	Reverse    bool
}

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

type TypesPageResponse

type TypesPageResponse struct {
	NextKey []byte
	Total   uint64
}

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

type TypesTimestamp

type TypesTimestamp struct {
	Secs  uint64
	Nanos uint64
}

TypesTimestamp 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