Documentation ¶
Index ¶
- Variables
- func AppBlockNumHigherThanHeadBlockError(ctx context.Context, chosenBlockNum, headBlockNum, lastWrittenBlockNum uint64) *derr.ErrorResponse
- func AppBlockNumHigherThanLIBError(ctx context.Context, chosenBlockNum, lastWrittenBlockNum uint64) *derr.ErrorResponse
- func AppNotReadyError(ctx context.Context) *derr.ErrorResponse
- func DataABINotFoundError(ctx context.Context, account string, blockNum uint64) *derr.ErrorResponse
- func DataDecodingRowError(ctx context.Context, hexData string) *derr.ErrorResponse
- func DataPublicKeyNotFoundError(ctx context.Context, publicKey string) *derr.ErrorResponse
- func DataRowNotFoundError(ctx context.Context, account zsw.AccountName, table zsw.TableName, ...) *derr.ErrorResponse
- func DataTableNotFoundError(ctx context.Context, account zsw.AccountName, table zsw.TableName) *derr.ErrorResponse
- type AuthLinkRow
- type AuthLinkTablet
- type BlockMapper
- type ContractABIEntry
- type ContractABIOption
- type ContractABISinglet
- type ContractStatePrimaryKey
- type ContractStateRow
- type ContractStateTablet
- func (t ContractStateTablet) Collection() uint16
- func (t ContractStateTablet) Explode() (contract, table, scope string)
- func (t ContractStateTablet) Identifier() []byte
- func (t ContractStateTablet) Row(height uint64, primaryKey []byte, data []byte) (fluxdb.TabletRow, error)
- func (t ContractStateTablet) String() string
- type ContractTableScopeRow
- type ContractTableScopeTablet
- type KeyAccountRow
- type KeyAccountTablet
Constants ¶
This section is empty.
Variables ¶
View Source
var ContractABIPackedOnly = ContractABIOption(true)
Functions ¶
func AppBlockNumHigherThanHeadBlockError ¶
func AppBlockNumHigherThanHeadBlockError(ctx context.Context, chosenBlockNum, headBlockNum, lastWrittenBlockNum uint64) *derr.ErrorResponse
func AppBlockNumHigherThanLIBError ¶
func AppBlockNumHigherThanLIBError(ctx context.Context, chosenBlockNum, lastWrittenBlockNum uint64) *derr.ErrorResponse
func AppNotReadyError ¶
func AppNotReadyError(ctx context.Context) *derr.ErrorResponse
func DataABINotFoundError ¶
func DataDecodingRowError ¶
func DataDecodingRowError(ctx context.Context, hexData string) *derr.ErrorResponse
func DataPublicKeyNotFoundError ¶
func DataPublicKeyNotFoundError(ctx context.Context, publicKey string) *derr.ErrorResponse
func DataRowNotFoundError ¶
func DataRowNotFoundError(ctx context.Context, account zsw.AccountName, table zsw.TableName, scope zsw.AccountName, primaryKey string) *derr.ErrorResponse
func DataTableNotFoundError ¶
func DataTableNotFoundError(ctx context.Context, account zsw.AccountName, table zsw.TableName) *derr.ErrorResponse
Types ¶
type AuthLinkRow ¶
type AuthLinkRow struct {
fluxdb.BaseTabletRow
}
func NewDeleteAuthLinkRow ¶
func NewDeleteAuthLinkRow(blockNum uint64, actionTrace *pbcodec.ActionTrace) (*AuthLinkRow, error)
func NewInsertAuthLinkRow ¶
func NewInsertAuthLinkRow(blockNum uint64, actionTrace *pbcodec.ActionTrace) (*AuthLinkRow, error)
func (*AuthLinkRow) Explode ¶
func (r *AuthLinkRow) Explode() (contract, action string)
func (*AuthLinkRow) Permission ¶
func (r *AuthLinkRow) Permission() (out zsw.PermissionName, err error)
func (*AuthLinkRow) String ¶
func (r *AuthLinkRow) String() string
type AuthLinkTablet ¶
type AuthLinkTablet []byte
AuthLinkTablet tablet is composed
func NewAuthLinkTablet ¶
func NewAuthLinkTablet(account string) AuthLinkTablet
func (AuthLinkTablet) Collection ¶
func (t AuthLinkTablet) Collection() uint16
func (AuthLinkTablet) Identifier ¶
func (t AuthLinkTablet) Identifier() []byte
func (AuthLinkTablet) String ¶
func (t AuthLinkTablet) String() string
type BlockMapper ¶
type BlockMapper struct { }
func (*BlockMapper) Map ¶
func (m *BlockMapper) Map(rawBlk *bstream.Block) (*fluxdb.WriteRequest, error)
type ContractABIEntry ¶
type ContractABIEntry struct {
fluxdb.BaseSingletEntry
}
func NewContractABIEntry ¶
func NewContractABIEntry(blockNum uint64, actionTrace *pbcodec.ActionTrace) (entry *ContractABIEntry, err error)
func (*ContractABIEntry) ABI ¶
func (r *ContractABIEntry) ABI(options ...ContractABIOption) (abi *zsw.ABI, rawBytes []byte, err error)
func (*ContractABIEntry) Contract ¶
func (r *ContractABIEntry) Contract() string
type ContractABIOption ¶
type ContractABIOption bool
type ContractABISinglet ¶
type ContractABISinglet []byte
func NewContractABISinglet ¶
func NewContractABISinglet(contract string) ContractABISinglet
func (ContractABISinglet) Collection ¶
func (s ContractABISinglet) Collection() uint16
func (ContractABISinglet) Contract ¶
func (s ContractABISinglet) Contract() string
func (ContractABISinglet) Entry ¶
func (s ContractABISinglet) Entry(height uint64, data []byte) (fluxdb.SingletEntry, error)
func (ContractABISinglet) Identifier ¶
func (s ContractABISinglet) Identifier() []byte
func (ContractABISinglet) String ¶
func (s ContractABISinglet) String() string
type ContractStatePrimaryKey ¶
type ContractStatePrimaryKey []byte
func (ContractStatePrimaryKey) Bytes ¶
func (k ContractStatePrimaryKey) Bytes() []byte
func (ContractStatePrimaryKey) String ¶
func (k ContractStatePrimaryKey) String() string
type ContractStateRow ¶
type ContractStateRow struct {
fluxdb.BaseTabletRow
}
func NewContractStateRow ¶
func NewContractStateRow(blockNum uint64, op *pbcodec.DBOp) (row *ContractStateRow, err error)
func (*ContractStateRow) Info ¶
func (r *ContractStateRow) Info() (payer string, rowData []byte, err error)
func (*ContractStateRow) String ¶
func (r *ContractStateRow) String() string
type ContractStateTablet ¶
type ContractStateTablet []byte
func NewContractStateTablet ¶
func NewContractStateTablet(contract, table string, scope string) ContractStateTablet
func (ContractStateTablet) Collection ¶
func (t ContractStateTablet) Collection() uint16
func (ContractStateTablet) Explode ¶
func (t ContractStateTablet) Explode() (contract, table, scope string)
func (ContractStateTablet) Identifier ¶
func (t ContractStateTablet) Identifier() []byte
func (ContractStateTablet) String ¶
func (t ContractStateTablet) String() string
type ContractTableScopeRow ¶
type ContractTableScopeRow struct {
fluxdb.BaseTabletRow
}
func NewContractTableScopeRow ¶
func NewContractTableScopeRow(blockNum uint64, op *pbcodec.TableOp) (row *ContractTableScopeRow, err error)
func (*ContractTableScopeRow) Payer ¶
func (r *ContractTableScopeRow) Payer() (string, error)
func (*ContractTableScopeRow) Scope ¶
func (r *ContractTableScopeRow) Scope() string
func (*ContractTableScopeRow) String ¶
func (r *ContractTableScopeRow) String() string
type ContractTableScopeTablet ¶
type ContractTableScopeTablet []byte
func NewContractTableScopeTablet ¶
func NewContractTableScopeTablet(contract, table string) ContractTableScopeTablet
func (ContractTableScopeTablet) Collection ¶
func (t ContractTableScopeTablet) Collection() uint16
func (ContractTableScopeTablet) Identifier ¶
func (t ContractTableScopeTablet) Identifier() []byte
func (ContractTableScopeTablet) String ¶
func (t ContractTableScopeTablet) String() string
type KeyAccountRow ¶
type KeyAccountRow struct {
fluxdb.BaseTabletRow
}
func NewKeyAccountRow ¶
func NewKeyAccountRow(blockNum uint64, publicKey, account, permission string, isDeletion bool) (row *KeyAccountRow, err error)
func (*KeyAccountRow) Explode ¶
func (r *KeyAccountRow) Explode() (account, permission string)
func (*KeyAccountRow) Payer ¶
func (r *KeyAccountRow) Payer() (string, error)
func (*KeyAccountRow) Scope ¶
func (r *KeyAccountRow) Scope() string
func (*KeyAccountRow) String ¶
func (r *KeyAccountRow) String() string
type KeyAccountTablet ¶
type KeyAccountTablet []byte
func NewKeyAccountTablet ¶
func NewKeyAccountTablet(publicKey string) KeyAccountTablet
func (KeyAccountTablet) Collection ¶
func (t KeyAccountTablet) Collection() uint16
func (KeyAccountTablet) Identifier ¶
func (t KeyAccountTablet) Identifier() []byte
func (KeyAccountTablet) String ¶
func (t KeyAccountTablet) String() string
Source Files ¶
Click to show internal directories.
Click to hide internal directories.