Documentation ¶
Index ¶
- type Account
- type Block
- type CreateAccountParams
- type CreateBlockParams
- type CreateProcessParams
- type CreateTokenFeeParams
- type CreateTokenTransferParams
- type CreateTransactionParams
- type CreateVoteParams
- type DBTX
- type GetLastTransactionsParams
- type GetListAccountsParams
- type GetTokenFeesByFromAccountParams
- type GetTokenFeesByReferenceParams
- type GetTokenFeesByTxTypeParams
- type GetTokenFeesParams
- type GetTokenTransfersByFromAccountParams
- type GetTokenTransfersByToAccountParams
- type GetTxReferenceByBlockHeightAndBlockIndexParams
- type GetVoteRow
- type Process
- type Queries
- func (q *Queries) Close() error
- func (q *Queries) CountAccounts(ctx context.Context) (int64, error)
- func (q *Queries) CountTokenTransfersByAccount(ctx context.Context, account types.AccountID) (int64, error)
- func (q *Queries) CountTransactions(ctx context.Context) (int64, error)
- func (q *Queries) CountVotes(ctx context.Context) (int64, error)
- func (q *Queries) CountVotesByProcessID(ctx context.Context, processID types.ProcessID) (int64, error)
- func (q *Queries) CreateAccount(ctx context.Context, arg CreateAccountParams) (sql.Result, error)
- func (q *Queries) CreateBlock(ctx context.Context, arg CreateBlockParams) (sql.Result, error)
- func (q *Queries) CreateProcess(ctx context.Context, arg CreateProcessParams) (sql.Result, error)
- func (q *Queries) CreateTokenFee(ctx context.Context, arg CreateTokenFeeParams) (sql.Result, error)
- func (q *Queries) CreateTokenTransfer(ctx context.Context, arg CreateTokenTransferParams) (sql.Result, error)
- func (q *Queries) CreateTransaction(ctx context.Context, arg CreateTransactionParams) (sql.Result, error)
- func (q *Queries) CreateVote(ctx context.Context, arg CreateVoteParams) (sql.Result, error)
- func (q *Queries) GetBlock(ctx context.Context, height int64) (Block, error)
- func (q *Queries) GetEntityCount(ctx context.Context) (int64, error)
- func (q *Queries) GetLastTransactions(ctx context.Context, arg GetLastTransactionsParams) ([]Transaction, error)
- func (q *Queries) GetListAccounts(ctx context.Context, arg GetListAccountsParams) ([]Account, error)
- func (q *Queries) GetProcess(ctx context.Context, id types.ProcessID) (Process, error)
- func (q *Queries) GetProcessCount(ctx context.Context) (int64, error)
- func (q *Queries) GetProcessIDsByFinalResults(ctx context.Context, finalResults bool) ([]types.ProcessID, error)
- func (q *Queries) GetProcessStatus(ctx context.Context, id types.ProcessID) (int64, error)
- func (q *Queries) GetTokenFees(ctx context.Context, arg GetTokenFeesParams) ([]TokenFee, error)
- func (q *Queries) GetTokenFeesByFromAccount(ctx context.Context, arg GetTokenFeesByFromAccountParams) ([]TokenFee, error)
- func (q *Queries) GetTokenFeesByReference(ctx context.Context, arg GetTokenFeesByReferenceParams) ([]TokenFee, error)
- func (q *Queries) GetTokenFeesByTxType(ctx context.Context, arg GetTokenFeesByTxTypeParams) ([]TokenFee, error)
- func (q *Queries) GetTokenTransfer(ctx context.Context, txHash types.Hash) (TokenTransfer, error)
- func (q *Queries) GetTokenTransfersByFromAccount(ctx context.Context, arg GetTokenTransfersByFromAccountParams) ([]TokenTransfer, error)
- func (q *Queries) GetTokenTransfersByToAccount(ctx context.Context, arg GetTokenTransfersByToAccountParams) ([]TokenTransfer, error)
- func (q *Queries) GetTransaction(ctx context.Context, id int64) (Transaction, error)
- func (q *Queries) GetTransactionByHash(ctx context.Context, hash types.Hash) (Transaction, error)
- func (q *Queries) GetTxReferenceByBlockHeightAndBlockIndex(ctx context.Context, arg GetTxReferenceByBlockHeightAndBlockIndexParams) (Transaction, error)
- func (q *Queries) GetVote(ctx context.Context, nullifier types.Nullifier) (GetVoteRow, error)
- func (q *Queries) SearchEntities(ctx context.Context, arg SearchEntitiesParams) ([]SearchEntitiesRow, error)
- func (q *Queries) SearchProcesses(ctx context.Context, arg SearchProcessesParams) ([]types.ProcessID, error)
- func (q *Queries) SearchVotes(ctx context.Context, arg SearchVotesParams) ([]SearchVotesRow, error)
- func (q *Queries) SetProcessResultsCancelled(ctx context.Context, arg SetProcessResultsCancelledParams) (sql.Result, error)
- func (q *Queries) SetProcessResultsReady(ctx context.Context, arg SetProcessResultsReadyParams) (sql.Result, error)
- func (q *Queries) SetProcessVoteCount(ctx context.Context, arg SetProcessVoteCountParams) (sql.Result, error)
- func (q *Queries) UpdateProcessEndBlock(ctx context.Context, arg UpdateProcessEndBlockParams) (sql.Result, error)
- func (q *Queries) UpdateProcessFromState(ctx context.Context, arg UpdateProcessFromStateParams) (sql.Result, error)
- func (q *Queries) UpdateProcessResultByID(ctx context.Context, arg UpdateProcessResultByIDParams) (sql.Result, error)
- func (q *Queries) UpdateProcessResults(ctx context.Context, arg UpdateProcessResultsParams) (sql.Result, error)
- func (q *Queries) WithTx(tx *sql.Tx) *Queries
- type SearchEntitiesParams
- type SearchEntitiesRow
- type SearchProcessesParams
- type SearchVotesParams
- type SearchVotesRow
- type SetProcessResultsCancelledParams
- type SetProcessResultsReadyParams
- type SetProcessVoteCountParams
- type TokenFee
- type TokenTransfer
- type Transaction
- type UpdateProcessEndBlockParams
- type UpdateProcessFromStateParams
- type UpdateProcessResultByIDParams
- type UpdateProcessResultsParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateAccountParams ¶ added in v1.10.0
type CreateBlockParams ¶ added in v1.9.0
type CreateProcessParams ¶
type CreateProcessParams struct { ID types.ProcessID EntityID types.EntityID StartBlock int64 EndBlock int64 StartDate time.Time EndDate time.Time BlockCount int64 VoteCount int64 HaveResults bool FinalResults bool CensusRoot types.CensusRoot MaxCensusSize int64 CensusUri string Metadata string CensusOrigin int64 Status int64 Namespace int64 Envelope string Mode string VoteOpts string PrivateKeys string PublicKeys string QuestionIndex int64 CreationTime time.Time SourceBlockHeight int64 SourceNetworkID int64 FromArchive bool ChainID string ResultsVotes string }
type CreateTokenFeeParams ¶ added in v1.9.0
type CreateTransactionParams ¶ added in v1.8.0
type CreateVoteParams ¶ added in v1.8.0
type GetLastTransactionsParams ¶ added in v1.8.0
type GetListAccountsParams ¶ added in v1.10.0
type GetTokenFeesByFromAccountParams ¶ added in v1.9.0
type GetTokenFeesByReferenceParams ¶ added in v1.9.0
type GetTokenFeesByTxTypeParams ¶ added in v1.9.0
type GetTokenFeesParams ¶ added in v1.9.0
type GetTokenTransfersByToAccountParams ¶ added in v1.10.0
type GetTxReferenceByBlockHeightAndBlockIndexParams ¶ added in v1.8.0
type GetVoteRow ¶ added in v1.8.0
type Process ¶
type Process struct { ID types.ProcessID EntityID types.EntityID StartBlock int64 EndBlock int64 StartDate time.Time EndDate time.Time BlockCount int64 VoteCount int64 ChainID string HaveResults bool FinalResults bool ResultsVotes string ResultsWeight string ResultsBlockHeight int64 CensusRoot types.CensusRoot MaxCensusSize int64 CensusUri string Metadata string CensusOrigin int64 Status int64 Namespace int64 Envelope string Mode string VoteOpts string PrivateKeys string PublicKeys string QuestionIndex int64 CreationTime time.Time SourceBlockHeight int64 SourceNetworkID int64 FromArchive bool }
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) CountAccounts ¶ added in v1.10.0
func (*Queries) CountTokenTransfersByAccount ¶ added in v1.10.0
func (*Queries) CountTransactions ¶ added in v1.8.0
func (*Queries) CountVotes ¶ added in v1.9.0
func (*Queries) CountVotesByProcessID ¶ added in v1.9.0
func (*Queries) CreateAccount ¶ added in v1.10.0
func (*Queries) CreateBlock ¶ added in v1.9.0
func (*Queries) CreateProcess ¶
func (*Queries) CreateTokenFee ¶ added in v1.9.0
func (*Queries) CreateTokenTransfer ¶
func (*Queries) CreateTransaction ¶ added in v1.8.0
func (*Queries) CreateVote ¶ added in v1.8.0
func (*Queries) GetEntityCount ¶
func (*Queries) GetLastTransactions ¶ added in v1.8.0
func (q *Queries) GetLastTransactions(ctx context.Context, arg GetLastTransactionsParams) ([]Transaction, error)
func (*Queries) GetListAccounts ¶ added in v1.10.0
func (*Queries) GetProcess ¶
func (*Queries) GetProcessCount ¶
func (*Queries) GetProcessIDsByFinalResults ¶
func (*Queries) GetProcessStatus ¶
func (*Queries) GetTokenFees ¶ added in v1.9.0
func (*Queries) GetTokenFeesByFromAccount ¶ added in v1.9.0
func (*Queries) GetTokenFeesByReference ¶ added in v1.9.0
func (*Queries) GetTokenFeesByTxType ¶ added in v1.9.0
func (*Queries) GetTokenTransfer ¶
func (*Queries) GetTokenTransfersByFromAccount ¶
func (q *Queries) GetTokenTransfersByFromAccount(ctx context.Context, arg GetTokenTransfersByFromAccountParams) ([]TokenTransfer, error)
func (*Queries) GetTokenTransfersByToAccount ¶ added in v1.10.0
func (q *Queries) GetTokenTransfersByToAccount(ctx context.Context, arg GetTokenTransfersByToAccountParams) ([]TokenTransfer, error)
func (*Queries) GetTransaction ¶ added in v1.8.0
func (*Queries) GetTransactionByHash ¶ added in v1.8.0
func (*Queries) GetTxReferenceByBlockHeightAndBlockIndex ¶ added in v1.8.0
func (q *Queries) GetTxReferenceByBlockHeightAndBlockIndex(ctx context.Context, arg GetTxReferenceByBlockHeightAndBlockIndexParams) (Transaction, error)
func (*Queries) SearchEntities ¶
func (q *Queries) SearchEntities(ctx context.Context, arg SearchEntitiesParams) ([]SearchEntitiesRow, error)
func (*Queries) SearchProcesses ¶
func (*Queries) SearchVotes ¶ added in v1.8.0
func (q *Queries) SearchVotes(ctx context.Context, arg SearchVotesParams) ([]SearchVotesRow, error)
func (*Queries) SetProcessResultsCancelled ¶
func (*Queries) SetProcessResultsReady ¶
func (*Queries) SetProcessVoteCount ¶ added in v1.10.0
func (*Queries) UpdateProcessEndBlock ¶ added in v1.9.0
func (*Queries) UpdateProcessFromState ¶
func (*Queries) UpdateProcessResultByID ¶
func (*Queries) UpdateProcessResults ¶
type SearchEntitiesParams ¶
type SearchEntitiesRow ¶ added in v1.9.0
type SearchProcessesParams ¶
type SearchVotesParams ¶ added in v1.8.0
type SearchVotesRow ¶ added in v1.8.0
type SetProcessResultsCancelledParams ¶ added in v1.10.0
type SetProcessVoteCountParams ¶ added in v1.10.0
type TokenTransfer ¶
type Transaction ¶ added in v1.8.0
type UpdateProcessEndBlockParams ¶ added in v1.9.0
Click to show internal directories.
Click to hide internal directories.