Documentation
¶
Overview ¶
sequence-metadata v0.4.0 3f6b0f4aa1a7b58488e9399c277fc17995d74f5a -- This file has been generated by https://github.com/webrpc/webrpc using gen/golang Do not edit by hand. Update your webrpc schema and re-generate.
Index ¶
- Constants
- Variables
- func HTTPRequestHeaders(ctx context.Context) (http.Header, bool)
- func HTTPStatusFromErrorCode(code ErrorCode) int
- func IsErrorCode(err error, code ErrorCode) bool
- func IsValidErrorCode(code ErrorCode) bool
- func WebRPCSchemaHash() string
- func WebRPCSchemaVersion() string
- func WebRPCVersion() string
- func WithHTTPRequestHeaders(ctx context.Context, h http.Header) (context.Context, error)
- type ContractIndex
- type ContractInfo
- type ContractInfoExtensions
- type ContractType
- type Error
- func ErrorInternal(format string, args ...interface{}) Error
- func ErrorInvalidArgument(argument string, validationMsg string) Error
- func ErrorNotFound(format string, args ...interface{}) Error
- func ErrorRequiredArgument(argument string) Error
- func Errorf(code ErrorCode, msgf string, args ...interface{}) Error
- func Failf(format string, args ...interface{}) Error
- func WrapError(code ErrorCode, cause error, format string, args ...interface{}) Error
- func WrapFailf(cause error, format string, args ...interface{}) Error
- type ErrorCode
- type ErrorPayload
- type GetNiftyswapUnitPricesRequest
- type HTTPClient
- type Metadata
- type Page
- type RuntimeChecks
- type RuntimeStatus
- type SortBy
- type SortOrder
- type SwapType
- type TokenIndex
- type TokenMetadata
- type Version
Constants ¶
View Source
const MetadataPathPrefix = "/rpc/Metadata/"
Variables ¶
View Source
var ( // For Client HTTPClientRequestHeadersCtxKey = &contextKey{"HTTPClientRequestHeaders"} // For Server HTTPResponseWriterCtxKey = &contextKey{"HTTPResponseWriter"} HTTPRequestCtxKey = &contextKey{"HTTPRequest"} ServiceNameCtxKey = &contextKey{"ServiceName"} MethodNameCtxKey = &contextKey{"MethodName"} )
View Source
var ContractType_name = map[uint16]string{
0: "UNKNOWN",
1: "ERC20",
2: "ERC721",
3: "ERC1155",
}
View Source
var ContractType_value = map[string]