Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoShardsAvailable = errors.New("No shards available")
View Source
var ErrUnknownTx = errors.New("unknown tx")
View Source
var NearHooks = figure.Hooks{ "*nearclient.Client": func(raw interface{}) (reflect.Value, error) { v, err := cast.ToStringE(raw) if err != nil { return reflect.Value{}, errors.Wrap(err, "expected string") } client, err := nearclient.New(v) if err != nil { return reflect.Value{}, errors.Wrap(err, "failed to create near rpc client") } return reflect.ValueOf(client), nil }, }
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider interface { ListBlocks(ctx context.Context, limit uint64, fromBlock common.BlockHeight) ([]common.BlockHeight, error) GetMessage(ctx context.Context, height common.BlockHeight) (*Message, error) GetTransaction(ctx context.Context, hash common.Hash, sender common.AccountID) (*common.FinalExecutionOutcomeWithReceiptView, error) GetLastKnownBlockHeight(ctx context.Context) (*common.BlockHeight, error) GetNFTMetadata(ctx context.Context, token common.AccountID, tokenID string) (*common.NftMetadataView, error) }
type RPCs ¶
type RPCs struct { Main *nearclient.Client `fig:"main,required"` History *nearclient.Client `fig:"history,required"` }
Click to show internal directories.
Click to hide internal directories.