diff --git a/examples/meta_test.go b/examples/meta_test.go new file mode 100644 index 0000000..d3142b2 --- /dev/null +++ b/examples/meta_test.go @@ -0,0 +1,103 @@ +package examples + +import ( + "testing" + + "github.com/joho/godotenv" + "github.com/sonirico/go-hyperliquid" +) + +func TestMetaAndAssetCtxs(t *testing.T) { + godotenv.Overload() + info := hyperliquid.NewInfo(hyperliquid.MainnetAPIURL, true, nil, nil) + meta, err := info.MetaAndAssetCtxs() + if err != nil { + t.Fatalf("Failed to get meta: %v", err) + } + + if meta.Meta.Universe == nil { + t.Error("Expected non-nil universe") + } + + if meta.Meta.MarginTables == nil { + t.Error("Expected non-nil margin tables") + } + + if meta.Ctxs == nil { + t.Error("Expected non-nil contexts") + } + + if len(meta.Meta.Universe) == 0 { + t.Error("Expected at least one asset in universe") + } + + if meta.Meta.Universe[0].Name == "" { + t.Error("Expected name to be non-empty") + } + + if len(meta.Meta.MarginTables) == 0 { + t.Error("Expected at least one margin table") + } + + if meta.Meta.MarginTables[0].ID < 0 { + t.Error("Expected ID to be non-negative") + } + + if len(meta.Meta.MarginTables[0].MarginTiers) == 0 { + t.Error("Expected at least one margin tier") + } + + if len(meta.Ctxs) == 0 { + t.Error("Expected at least one context") + } + + if meta.Ctxs[0].MarkPx == "" { + t.Error("Expected mark price to be non-empty") + } +} + +func TestSpotMetaAndAssetCtxs(t *testing.T) { + godotenv.Overload() + + info := hyperliquid.NewInfo(hyperliquid.MainnetAPIURL, true, nil, nil) + spotMeta, err := info.SpotMetaAndAssetCtxs() + if err != nil { + t.Fatalf("Failed to get spot meta: %v", err) + } + + if spotMeta.Meta.Universe == nil { + t.Error("Expected non-nil universe") + } + + if spotMeta.Meta.Tokens == nil { + t.Error("Expected non-nil tokens") + } + + if spotMeta.Ctxs == nil { + t.Error("Expected non-nil contexts") + } + + if len(spotMeta.Meta.Universe) == 0 { + t.Error("Expected at least one asset in universe") + } + + if spotMeta.Meta.Universe[0].Name == "" { + t.Error("Expected name to be non-empty") + } + + if len(spotMeta.Meta.Tokens) == 0 { + t.Error("Expected at least one token") + } + + if spotMeta.Meta.Tokens[0].Name == "" { + t.Error("Expected name to be non-empty") + } + + if len(spotMeta.Ctxs) == 0 { + t.Error("Expected at least one context") + } + + if spotMeta.Ctxs[0].Coin == "" { + t.Error("Expected coin to be non-empty") + } +} diff --git a/info.go b/info.go index f2ac259..dfb8966 100644 --- a/info.go +++ b/info.go @@ -87,6 +87,58 @@ func NewInfo(baseURL string, skipWS bool, meta *Meta, spotMeta *SpotMeta) *Info return info } +func parseMetaResponse(resp []byte) (*Meta, error) { + var meta map[string]json.RawMessage + if err := json.Unmarshal(resp, &meta); err != nil { + return nil, fmt.Errorf("failed to unmarshal meta response: %w", err) + } + + var universe []AssetInfo + if err := json.Unmarshal(meta["universe"], &universe); err != nil { + return nil, fmt.Errorf("failed to unmarshal universe: %w", err) + } + + var marginTables [][]any + if err := json.Unmarshal(meta["marginTables"], &marginTables); err != nil { + return nil, fmt.Errorf("failed to unmarshal margin tables: %w", err) + } + + marginTablesResult := make([]MarginTable, len(marginTables)) + for i, marginTable := range marginTables { + id := marginTable[0].(float64) + tableBytes, err := json.Marshal(marginTable[1]) + if err != nil { + return nil, fmt.Errorf("failed to marshal margin table data: %w", err) + } + + var marginTableData map[string]any + if err := json.Unmarshal(tableBytes, &marginTableData); err != nil { + return nil, fmt.Errorf("failed to unmarshal margin table data: %w", err) + } + + marginTiersBytes, err := json.Marshal(marginTableData["marginTiers"]) + if err != nil { + return nil, fmt.Errorf("failed to marshal margin tiers: %w", err) + } + + var marginTiers []MarginTier + if err := json.Unmarshal(marginTiersBytes, &marginTiers); err != nil { + return nil, fmt.Errorf("failed to unmarshal margin tiers: %w", err) + } + + marginTablesResult[i] = MarginTable{ + ID: int(id), + Description: marginTableData["description"].(string), + MarginTiers: marginTiers, + } + } + + return &Meta{ + Universe: universe, + MarginTables: marginTablesResult, + }, nil +} + func (i *Info) Meta() (*Meta, error) { resp, err := i.client.post("/info", map[string]any{ "type": "meta", @@ -95,12 +147,7 @@ func (i *Info) Meta() (*Meta, error) { return nil, fmt.Errorf("failed to fetch meta: %w", err) } - var meta Meta - if err := json.Unmarshal(resp, &meta); err != nil { - return nil, fmt.Errorf("failed to unmarshal meta response: %w", err) - } - - return &meta, nil + return parseMetaResponse(resp) } func (i *Info) SpotMeta() (*SpotMeta, error) { @@ -232,7 +279,7 @@ func (i *Info) UserFillsByTime(address string, startTime int64, endTime *int64) return result, nil } -func (i *Info) MetaAndAssetCtxs() (map[string]any, error) { +func (i *Info) MetaAndAssetCtxs() (*MetaAndAssetCtxs, error) { resp, err := i.client.post("/info", map[string]any{ "type": "metaAndAssetCtxs", }) @@ -240,14 +287,44 @@ func (i *Info) MetaAndAssetCtxs() (map[string]any, error) { return nil, fmt.Errorf("failed to fetch meta and asset contexts: %w", err) } - var result map[string]any + var result []any if err := json.Unmarshal(resp, &result); err != nil { return nil, fmt.Errorf("failed to unmarshal meta and asset contexts: %w", err) } - return result, nil + + if len(result) < 2 { + return nil, fmt.Errorf("expected at least 2 elements in response, got %d", len(result)) + } + + metaBytes, err := json.Marshal(result[0]) + if err != nil { + return nil, fmt.Errorf("failed to marshal meta data: %w", err) + } + + meta, err := parseMetaResponse(metaBytes) + if err != nil { + return nil, fmt.Errorf("failed to parse meta: %w", err) + } + + ctxsBytes, err := json.Marshal(result[1]) + if err != nil { + return nil, fmt.Errorf("failed to marshal ctxs data: %w", err) + } + + var ctxs []AssetCtx + if err := json.Unmarshal(ctxsBytes, &ctxs); err != nil { + return nil, fmt.Errorf("failed to unmarshal ctxs: %w", err) + } + + metaAndAssetCtxs := &MetaAndAssetCtxs{ + Meta: *meta, + Ctxs: ctxs, + } + + return metaAndAssetCtxs, nil } -func (i *Info) SpotMetaAndAssetCtxs() (map[string]any, error) { +func (i *Info) SpotMetaAndAssetCtxs() (*SpotMetaAndAssetCtxs, error) { resp, err := i.client.post("/info", map[string]any{ "type": "spotMetaAndAssetCtxs", }) @@ -255,11 +332,41 @@ func (i *Info) SpotMetaAndAssetCtxs() (map[string]any, error) { return nil, fmt.Errorf("failed to fetch spot meta and asset contexts: %w", err) } - var result map[string]any + var result []any if err := json.Unmarshal(resp, &result); err != nil { return nil, fmt.Errorf("failed to unmarshal spot meta and asset contexts: %w", err) } - return result, nil + + if len(result) < 2 { + return nil, fmt.Errorf("expected at least 2 elements in response, got %d", len(result)) + } + + // Unmarshal the first element (SpotMeta) + metaBytes, err := json.Marshal(result[0]) + if err != nil { + return nil, fmt.Errorf("failed to marshal meta data: %w", err) + } + + var meta SpotMeta + if err := json.Unmarshal(metaBytes, &meta); err != nil { + return nil, fmt.Errorf("failed to unmarshal meta: %w", err) + } + + // Unmarshal the second element ([]SpotAssetCtx) + ctxsBytes, err := json.Marshal(result[1]) + if err != nil { + return nil, fmt.Errorf("failed to marshal ctxs data: %w", err) + } + + var ctxs []SpotAssetCtx + if err := json.Unmarshal(ctxsBytes, &ctxs); err != nil { + return nil, fmt.Errorf("failed to unmarshal ctxs: %w", err) + } + + return &SpotMetaAndAssetCtxs{ + Meta: meta, + Ctxs: ctxs, + }, nil } func (i *Info) FundingHistory( diff --git a/types.go b/types.go index 137119b..a1cf64b 100644 --- a/types.go +++ b/types.go @@ -34,8 +34,39 @@ type AssetInfo struct { SzDecimals int `json:"szDecimals"` } +type MarginTier struct { + LowerBound string `json:"lowerBound"` + MaxLeverage int `json:"maxLeverage"` +} + +type MarginTable struct { + ID int + Description string `json:"description"` + MarginTiers []MarginTier `json:"marginTiers"` +} + type Meta struct { - Universe []AssetInfo `json:"universe"` + Universe []AssetInfo `json:"universe"` + MarginTables []MarginTable `json:"marginTables"` +} + +type AssetCtx struct { + Funding string `json:"funding"` + OpenInterest string `json:"openInterest"` + PrevDayPx string `json:"prevDayPx"` + DayNtlVlm string `json:"dayNtlVlm"` + Premium string `json:"premium"` + OraclePx string `json:"oraclePx"` + MarkPx string `json:"markPx"` + MidPx string `json:"midPx,omitempty"` + ImpactPxs []string `json:"impactPxs"` + DayBaseVlm string `json:"dayBaseVlm,omitempty"` +} + +// This type has no JSON annotation because it cannot be directly unmarshalled from the response +type MetaAndAssetCtxs struct { + Meta + Ctxs []AssetCtx } type SpotAssetInfo struct { @@ -75,6 +106,12 @@ type SpotAssetCtx struct { Coin string `json:"coin"` } +// This type has no JSON annotation because it cannot be directly unmarshalled from the response +type SpotMetaAndAssetCtxs struct { + Meta SpotMeta + Ctxs []SpotAssetCtx +} + // WsMsg represents a WebSocket message with a channel and data payload. type WsMsg struct { Channel string `json:"channel"` diff --git a/types_easyjson.go b/types_easyjson.go index e484267..f248e21 100644 --- a/types_easyjson.go +++ b/types_easyjson.go @@ -1740,7 +1740,112 @@ func (v *SpotTokenInfo) UnmarshalJSON(data []byte) error { func (v *SpotTokenInfo) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid16(l, v) } -func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid17(in *jlexer.Lexer, out *SpotMeta) { +func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid17(in *jlexer.Lexer, out *SpotMetaAndAssetCtxs) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "Meta": + (out.Meta).UnmarshalEasyJSON(in) + case "Ctxs": + if in.IsNull() { + in.Skip() + out.Ctxs = nil + } else { + in.Delim('[') + if out.Ctxs == nil { + if !in.IsDelim(']') { + out.Ctxs = make([]SpotAssetCtx, 0, 0) + } else { + out.Ctxs = []SpotAssetCtx{} + } + } else { + out.Ctxs = (out.Ctxs)[:0] + } + for !in.IsDelim(']') { + var v21 SpotAssetCtx + (v21).UnmarshalEasyJSON(in) + out.Ctxs = append(out.Ctxs, v21) + in.WantComma() + } + in.Delim(']') + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid17(out *jwriter.Writer, in SpotMetaAndAssetCtxs) { + out.RawByte('{') + first := true + _ = first + { + const prefix string = ",\"Meta\":" + out.RawString(prefix[1:]) + (in.Meta).MarshalEasyJSON(out) + } + { + const prefix string = ",\"Ctxs\":" + out.RawString(prefix) + if in.Ctxs == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v22, v23 := range in.Ctxs { + if v22 > 0 { + out.RawByte(',') + } + (v23).MarshalEasyJSON(out) + } + out.RawByte(']') + } + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v SpotMetaAndAssetCtxs) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid17(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v SpotMetaAndAssetCtxs) MarshalEasyJSON(w *jwriter.Writer) { + easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid17(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *SpotMetaAndAssetCtxs) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid17(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *SpotMetaAndAssetCtxs) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid17(l, v) +} +func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid18(in *jlexer.Lexer, out *SpotMeta) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -1775,9 +1880,9 @@ func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid17(in *jlexer.Lexer, ou out.Universe = (out.Universe)[:0] } for !in.IsDelim(']') { - var v21 SpotAssetInfo - (v21).UnmarshalEasyJSON(in) - out.Universe = append(out.Universe, v21) + var v24 SpotAssetInfo + (v24).UnmarshalEasyJSON(in) + out.Universe = append(out.Universe, v24) in.WantComma() } in.Delim(']') @@ -1798,9 +1903,9 @@ func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid17(in *jlexer.Lexer, ou out.Tokens = (out.Tokens)[:0] } for !in.IsDelim(']') { - var v22 SpotTokenInfo - (v22).UnmarshalEasyJSON(in) - out.Tokens = append(out.Tokens, v22) + var v25 SpotTokenInfo + (v25).UnmarshalEasyJSON(in) + out.Tokens = append(out.Tokens, v25) in.WantComma() } in.Delim(']') @@ -1815,7 +1920,7 @@ func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid17(in *jlexer.Lexer, ou in.Consumed() } } -func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid17(out *jwriter.Writer, in SpotMeta) { +func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid18(out *jwriter.Writer, in SpotMeta) { out.RawByte('{') first := true _ = first @@ -1826,11 +1931,11 @@ func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid17(out *jwriter.Writer, out.RawString("null") } else { out.RawByte('[') - for v23, v24 := range in.Universe { - if v23 > 0 { + for v26, v27 := range in.Universe { + if v26 > 0 { out.RawByte(',') } - (v24).MarshalEasyJSON(out) + (v27).MarshalEasyJSON(out) } out.RawByte(']') } @@ -1842,11 +1947,11 @@ func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid17(out *jwriter.Writer, out.RawString("null") } else { out.RawByte('[') - for v25, v26 := range in.Tokens { - if v25 > 0 { + for v28, v29 := range in.Tokens { + if v28 > 0 { out.RawByte(',') } - (v26).MarshalEasyJSON(out) + (v29).MarshalEasyJSON(out) } out.RawByte(']') } @@ -1857,27 +1962,27 @@ func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid17(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v SpotMeta) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid17(&w, v) + easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid18(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v SpotMeta) MarshalEasyJSON(w *jwriter.Writer) { - easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid17(w, v) + easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid18(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *SpotMeta) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid17(&r, v) + easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid18(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *SpotMeta) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid17(l, v) + easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid18(l, v) } -func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid18(in *jlexer.Lexer, out *SpotDeployResponse) { +func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid19(in *jlexer.Lexer, out *SpotDeployResponse) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -1912,7 +2017,7 @@ func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid18(in *jlexer.Lexer, ou in.Consumed() } } -func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid18(out *jwriter.Writer, in SpotDeployResponse) { +func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid19(out *jwriter.Writer, in SpotDeployResponse) { out.RawByte('{') first := true _ = first @@ -1937,27 +2042,27 @@ func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid18(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v SpotDeployResponse) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid18(&w, v) + easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid19(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v SpotDeployResponse) MarshalEasyJSON(w *jwriter.Writer) { - easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid18(w, v) + easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid19(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *SpotDeployResponse) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid18(&r, v) + easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid19(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *SpotDeployResponse) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid18(l, v) + easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid19(l, v) } -func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid19(in *jlexer.Lexer, out *SpotAssetInfo) { +func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid20(in *jlexer.Lexer, out *SpotAssetInfo) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -1994,9 +2099,9 @@ func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid19(in *jlexer.Lexer, ou out.Tokens = (out.Tokens)[:0] } for !in.IsDelim(']') { - var v27 int - v27 = int(in.Int()) - out.Tokens = append(out.Tokens, v27) + var v30 int + v30 = int(in.Int()) + out.Tokens = append(out.Tokens, v30) in.WantComma() } in.Delim(']') @@ -2015,7 +2120,7 @@ func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid19(in *jlexer.Lexer, ou in.Consumed() } } -func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid19(out *jwriter.Writer, in SpotAssetInfo) { +func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid20(out *jwriter.Writer, in SpotAssetInfo) { out.RawByte('{') first := true _ = first @@ -2031,11 +2136,11 @@ func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid19(out *jwriter.Writer, out.RawString("null") } else { out.RawByte('[') - for v28, v29 := range in.Tokens { - if v28 > 0 { + for v31, v32 := range in.Tokens { + if v31 > 0 { out.RawByte(',') } - out.Int(int(v29)) + out.Int(int(v32)) } out.RawByte(']') } @@ -2056,27 +2161,27 @@ func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid19(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v SpotAssetInfo) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid19(&w, v) + easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid20(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v SpotAssetInfo) MarshalEasyJSON(w *jwriter.Writer) { - easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid19(w, v) + easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid20(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *SpotAssetInfo) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid19(&r, v) + easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid20(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *SpotAssetInfo) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid19(l, v) + easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid20(l, v) } -func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid20(in *jlexer.Lexer, out *SpotAssetCtx) { +func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid21(in *jlexer.Lexer, out *SpotAssetCtx) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -2125,7 +2230,7 @@ func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid20(in *jlexer.Lexer, ou in.Consumed() } } -func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid20(out *jwriter.Writer, in SpotAssetCtx) { +func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid21(out *jwriter.Writer, in SpotAssetCtx) { out.RawByte('{') first := true _ = first @@ -2169,27 +2274,27 @@ func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid20(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v SpotAssetCtx) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid20(&w, v) + easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid21(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v SpotAssetCtx) MarshalEasyJSON(w *jwriter.Writer) { - easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid20(w, v) + easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid21(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *SpotAssetCtx) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid20(&r, v) + easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid21(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *SpotAssetCtx) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid20(l, v) + easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid21(l, v) } -func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid21(in *jlexer.Lexer, out *SetReferrerResponse) { +func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid22(in *jlexer.Lexer, out *SetReferrerResponse) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -2222,7 +2327,7 @@ func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid21(in *jlexer.Lexer, ou in.Consumed() } } -func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid21(out *jwriter.Writer, in SetReferrerResponse) { +func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid22(out *jwriter.Writer, in SetReferrerResponse) { out.RawByte('{') first := true _ = first @@ -2242,27 +2347,27 @@ func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid21(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v SetReferrerResponse) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid21(&w, v) + easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid22(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v SetReferrerResponse) MarshalEasyJSON(w *jwriter.Writer) { - easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid21(w, v) + easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid22(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *SetReferrerResponse) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid21(&r, v) + easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid22(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *SetReferrerResponse) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid21(l, v) + easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid22(l, v) } -func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid22(in *jlexer.Lexer, out *ScheduleCancelResponse) { +func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid23(in *jlexer.Lexer, out *ScheduleCancelResponse) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -2295,7 +2400,7 @@ func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid22(in *jlexer.Lexer, ou in.Consumed() } } -func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid22(out *jwriter.Writer, in ScheduleCancelResponse) { +func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid23(out *jwriter.Writer, in ScheduleCancelResponse) { out.RawByte('{') first := true _ = first @@ -2315,27 +2420,27 @@ func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid22(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v ScheduleCancelResponse) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid22(&w, v) + easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid23(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v ScheduleCancelResponse) MarshalEasyJSON(w *jwriter.Writer) { - easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid22(w, v) + easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid23(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *ScheduleCancelResponse) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid22(&r, v) + easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid23(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *ScheduleCancelResponse) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid22(l, v) + easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid23(l, v) } -func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid23(in *jlexer.Lexer, out *ReferralState) { +func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid24(in *jlexer.Lexer, out *ReferralState) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -2374,9 +2479,9 @@ func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid23(in *jlexer.Lexer, ou out.Referred = (out.Referred)[:0] } for !in.IsDelim(']') { - var v30 string - v30 = string(in.String()) - out.Referred = append(out.Referred, v30) + var v33 string + v33 = string(in.String()) + out.Referred = append(out.Referred, v33) in.WantComma() } in.Delim(']') @@ -2391,7 +2496,7 @@ func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid23(in *jlexer.Lexer, ou in.Consumed() } } -func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid23(out *jwriter.Writer, in ReferralState) { +func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid24(out *jwriter.Writer, in ReferralState) { out.RawByte('{') first := true _ = first @@ -2412,11 +2517,11 @@ func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid23(out *jwriter.Writer, out.RawString("null") } else { out.RawByte('[') - for v31, v32 := range in.Referred { - if v31 > 0 { + for v34, v35 := range in.Referred { + if v34 > 0 { out.RawByte(',') } - out.String(string(v32)) + out.String(string(v35)) } out.RawByte(']') } @@ -2427,27 +2532,27 @@ func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid23(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v ReferralState) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid23(&w, v) + easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid24(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v ReferralState) MarshalEasyJSON(w *jwriter.Writer) { - easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid23(w, v) + easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid24(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *ReferralState) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid23(&r, v) + easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid24(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *ReferralState) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid23(l, v) + easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid24(l, v) } -func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid24(in *jlexer.Lexer, out *Position) { +func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid25(in *jlexer.Lexer, out *Position) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -2510,7 +2615,7 @@ func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid24(in *jlexer.Lexer, ou in.Consumed() } } -func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid24(out *jwriter.Writer, in Position) { +func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid25(out *jwriter.Writer, in Position) { out.RawByte('{') first := true _ = first @@ -2573,27 +2678,27 @@ func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid24(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v Position) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid24(&w, v) + easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid25(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v Position) MarshalEasyJSON(w *jwriter.Writer) { - easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid24(w, v) + easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid25(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *Position) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid24(&r, v) + easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid25(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *Position) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid24(l, v) + easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid25(l, v) } -func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid25(in *jlexer.Lexer, out *PerpDexSchemaInput) { +func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid26(in *jlexer.Lexer, out *PerpDexSchemaInput) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -2636,7 +2741,7 @@ func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid25(in *jlexer.Lexer, ou in.Consumed() } } -func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid25(out *jwriter.Writer, in PerpDexSchemaInput) { +func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid26(out *jwriter.Writer, in PerpDexSchemaInput) { out.RawByte('{') first := true _ = first @@ -2665,27 +2770,27 @@ func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid25(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v PerpDexSchemaInput) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid25(&w, v) + easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid26(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v PerpDexSchemaInput) MarshalEasyJSON(w *jwriter.Writer) { - easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid25(w, v) + easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid26(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *PerpDexSchemaInput) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid25(&r, v) + easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid26(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *PerpDexSchemaInput) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid25(l, v) + easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid26(l, v) } -func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid26(in *jlexer.Lexer, out *PerpDeployResponse) { +func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid27(in *jlexer.Lexer, out *PerpDeployResponse) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -2718,7 +2823,7 @@ func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid26(in *jlexer.Lexer, ou in.Consumed() } } -func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid26(out *jwriter.Writer, in PerpDeployResponse) { +func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid27(out *jwriter.Writer, in PerpDeployResponse) { out.RawByte('{') first := true _ = first @@ -2738,25 +2843,25 @@ func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid26(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v PerpDeployResponse) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid26(&w, v) + easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid27(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v PerpDeployResponse) MarshalEasyJSON(w *jwriter.Writer) { - easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid26(w, v) + easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid27(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *PerpDeployResponse) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid26(&r, v) + easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid27(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *PerpDeployResponse) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid26(l, v) + easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid27(l, v) } func easyjson6601e8cdDecode(in *jlexer.Lexer, out *struct { Statuses []TxStatus `json:"statuses"` @@ -2795,9 +2900,9 @@ func easyjson6601e8cdDecode(in *jlexer.Lexer, out *struct { out.Statuses = (out.Statuses)[:0] } for !in.IsDelim(']') { - var v33 TxStatus - (v33).UnmarshalEasyJSON(in) - out.Statuses = append(out.Statuses, v33) + var v36 TxStatus + (v36).UnmarshalEasyJSON(in) + out.Statuses = append(out.Statuses, v36) in.WantComma() } in.Delim(']') @@ -2825,18 +2930,18 @@ func easyjson6601e8cdEncode(out *jwriter.Writer, in struct { out.RawString("null") } else { out.RawByte('[') - for v34, v35 := range in.Statuses { - if v34 > 0 { + for v37, v38 := range in.Statuses { + if v37 > 0 { out.RawByte(',') } - (v35).MarshalEasyJSON(out) + (v38).MarshalEasyJSON(out) } out.RawByte(']') } } out.RawByte('}') } -func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid27(in *jlexer.Lexer, out *OrderType) { +func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid28(in *jlexer.Lexer, out *OrderType) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -2885,7 +2990,7 @@ func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid27(in *jlexer.Lexer, ou in.Consumed() } } -func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid27(out *jwriter.Writer, in OrderType) { +func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid28(out *jwriter.Writer, in OrderType) { out.RawByte('{') first := true _ = first @@ -2911,27 +3016,27 @@ func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid27(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v OrderType) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid27(&w, v) + easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid28(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v OrderType) MarshalEasyJSON(w *jwriter.Writer) { - easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid27(w, v) + easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid28(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *OrderType) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid27(&r, v) + easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid28(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *OrderType) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid27(l, v) + easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid28(l, v) } -func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid28(in *jlexer.Lexer, out *OpenOrder) { +func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid29(in *jlexer.Lexer, out *OpenOrder) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -2972,7 +3077,7 @@ func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid28(in *jlexer.Lexer, ou in.Consumed() } } -func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid28(out *jwriter.Writer, in OpenOrder) { +func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid29(out *jwriter.Writer, in OpenOrder) { out.RawByte('{') first := true _ = first @@ -3012,27 +3117,27 @@ func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid28(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v OpenOrder) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid28(&w, v) + easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid29(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v OpenOrder) MarshalEasyJSON(w *jwriter.Writer) { - easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid28(w, v) + easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid29(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *OpenOrder) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid28(&r, v) + easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid29(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *OpenOrder) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid28(l, v) + easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid29(l, v) } -func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid29(in *jlexer.Lexer, out *MultiSigSigner) { +func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid30(in *jlexer.Lexer, out *MultiSigSigner) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -3065,7 +3170,7 @@ func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid29(in *jlexer.Lexer, ou in.Consumed() } } -func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid29(out *jwriter.Writer, in MultiSigSigner) { +func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid30(out *jwriter.Writer, in MultiSigSigner) { out.RawByte('{') first := true _ = first @@ -3085,27 +3190,27 @@ func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid29(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v MultiSigSigner) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid29(&w, v) + easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid30(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v MultiSigSigner) MarshalEasyJSON(w *jwriter.Writer) { - easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid29(w, v) + easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid30(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *MultiSigSigner) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid29(&r, v) + easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid30(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *MultiSigSigner) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid29(l, v) + easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid30(l, v) } -func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid30(in *jlexer.Lexer, out *MultiSigResponse) { +func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid31(in *jlexer.Lexer, out *MultiSigResponse) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -3140,7 +3245,7 @@ func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid30(in *jlexer.Lexer, ou in.Consumed() } } -func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid30(out *jwriter.Writer, in MultiSigResponse) { +func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid31(out *jwriter.Writer, in MultiSigResponse) { out.RawByte('{') first := true _ = first @@ -3165,27 +3270,27 @@ func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid30(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v MultiSigResponse) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid30(&w, v) + easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid31(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v MultiSigResponse) MarshalEasyJSON(w *jwriter.Writer) { - easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid30(w, v) + easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid31(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *MultiSigResponse) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid30(&r, v) + easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid31(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *MultiSigResponse) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid30(l, v) + easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid31(l, v) } -func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid31(in *jlexer.Lexer, out *MultiSigConversionResponse) { +func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid32(in *jlexer.Lexer, out *MultiSigConversionResponse) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -3220,7 +3325,7 @@ func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid31(in *jlexer.Lexer, ou in.Consumed() } } -func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid31(out *jwriter.Writer, in MultiSigConversionResponse) { +func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid32(out *jwriter.Writer, in MultiSigConversionResponse) { out.RawByte('{') first := true _ = first @@ -3245,27 +3350,27 @@ func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid31(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v MultiSigConversionResponse) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid31(&w, v) + easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid32(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v MultiSigConversionResponse) MarshalEasyJSON(w *jwriter.Writer) { - easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid31(w, v) + easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid32(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *MultiSigConversionResponse) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid31(&r, v) + easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid32(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *MultiSigConversionResponse) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid31(l, v) + easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid32(l, v) } -func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid32(in *jlexer.Lexer, out *ModifyResponse) { +func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid33(in *jlexer.Lexer, out *ModifyResponse) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -3302,9 +3407,9 @@ func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid32(in *jlexer.Lexer, ou out.Data = (out.Data)[:0] } for !in.IsDelim(']') { - var v36 OrderStatus - easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid33(in, &v36) - out.Data = append(out.Data, v36) + var v39 OrderStatus + easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid34(in, &v39) + out.Data = append(out.Data, v39) in.WantComma() } in.Delim(']') @@ -3321,7 +3426,7 @@ func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid32(in *jlexer.Lexer, ou in.Consumed() } } -func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid32(out *jwriter.Writer, in ModifyResponse) { +func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid33(out *jwriter.Writer, in ModifyResponse) { out.RawByte('{') first := true _ = first @@ -3335,11 +3440,11 @@ func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid32(out *jwriter.Writer, out.RawString(prefix) { out.RawByte('[') - for v37, v38 := range in.Data { - if v37 > 0 { + for v40, v41 := range in.Data { + if v40 > 0 { out.RawByte(',') } - easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid33(out, v38) + easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid34(out, v41) } out.RawByte(']') } @@ -3355,27 +3460,27 @@ func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid32(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v ModifyResponse) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid32(&w, v) + easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid33(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v ModifyResponse) MarshalEasyJSON(w *jwriter.Writer) { - easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid32(w, v) + easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid33(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *ModifyResponse) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid32(&r, v) + easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid33(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *ModifyResponse) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid32(l, v) + easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid33(l, v) } -func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid33(in *jlexer.Lexer, out *OrderStatus) { +func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid34(in *jlexer.Lexer, out *OrderStatus) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -3402,7 +3507,7 @@ func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid33(in *jlexer.Lexer, ou if out.Resting == nil { out.Resting = new(OrderStatusResting) } - easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid34(in, out.Resting) + easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid35(in, out.Resting) } case "filled": if in.IsNull() { @@ -3412,7 +3517,7 @@ func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid33(in *jlexer.Lexer, ou if out.Filled == nil { out.Filled = new(OrderStatusFilled) } - easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid35(in, out.Filled) + easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid36(in, out.Filled) } case "error": if in.IsNull() { @@ -3434,7 +3539,7 @@ func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid33(in *jlexer.Lexer, ou in.Consumed() } } -func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid33(out *jwriter.Writer, in OrderStatus) { +func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid34(out *jwriter.Writer, in OrderStatus) { out.RawByte('{') first := true _ = first @@ -3442,7 +3547,7 @@ func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid33(out *jwriter.Writer, const prefix string = ",\"resting\":" first = false out.RawString(prefix[1:]) - easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid34(out, *in.Resting) + easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid35(out, *in.Resting) } if in.Filled != nil { const prefix string = ",\"filled\":" @@ -3452,7 +3557,7 @@ func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid33(out *jwriter.Writer, } else { out.RawString(prefix) } - easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid35(out, *in.Filled) + easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid36(out, *in.Filled) } if in.Error != nil { const prefix string = ",\"error\":" @@ -3466,7 +3571,7 @@ func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid33(out *jwriter.Writer, } out.RawByte('}') } -func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid35(in *jlexer.Lexer, out *OrderStatusFilled) { +func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid36(in *jlexer.Lexer, out *OrderStatusFilled) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -3501,7 +3606,7 @@ func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid35(in *jlexer.Lexer, ou in.Consumed() } } -func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid35(out *jwriter.Writer, in OrderStatusFilled) { +func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid36(out *jwriter.Writer, in OrderStatusFilled) { out.RawByte('{') first := true _ = first @@ -3522,7 +3627,7 @@ func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid35(out *jwriter.Writer, } out.RawByte('}') } -func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid34(in *jlexer.Lexer, out *OrderStatusResting) { +func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid35(in *jlexer.Lexer, out *OrderStatusResting) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -3565,7 +3670,7 @@ func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid34(in *jlexer.Lexer, ou in.Consumed() } } -func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid34(out *jwriter.Writer, in OrderStatusResting) { +func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid35(out *jwriter.Writer, in OrderStatusResting) { out.RawByte('{') first := true _ = first @@ -3590,7 +3695,7 @@ func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid34(out *jwriter.Writer, } out.RawByte('}') } -func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid36(in *jlexer.Lexer, out *Meta) { +func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid37(in *jlexer.Lexer, out *MetaAndAssetCtxs) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -3609,6 +3714,29 @@ func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid36(in *jlexer.Lexer, ou continue } switch key { + case "Ctxs": + if in.IsNull() { + in.Skip() + out.Ctxs = nil + } else { + in.Delim('[') + if out.Ctxs == nil { + if !in.IsDelim(']') { + out.Ctxs = make([]AssetCtx, 0, 0) + } else { + out.Ctxs = []AssetCtx{} + } + } else { + out.Ctxs = (out.Ctxs)[:0] + } + for !in.IsDelim(']') { + var v42 AssetCtx + (v42).UnmarshalEasyJSON(in) + out.Ctxs = append(out.Ctxs, v42) + in.WantComma() + } + in.Delim(']') + } case "universe": if in.IsNull() { in.Skip() @@ -3625,9 +3753,32 @@ func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid36(in *jlexer.Lexer, ou out.Universe = (out.Universe)[:0] } for !in.IsDelim(']') { - var v39 AssetInfo - (v39).UnmarshalEasyJSON(in) - out.Universe = append(out.Universe, v39) + var v43 AssetInfo + (v43).UnmarshalEasyJSON(in) + out.Universe = append(out.Universe, v43) + in.WantComma() + } + in.Delim(']') + } + case "marginTables": + if in.IsNull() { + in.Skip() + out.MarginTables = nil + } else { + in.Delim('[') + if out.MarginTables == nil { + if !in.IsDelim(']') { + out.MarginTables = make([]MarginTable, 0, 1) + } else { + out.MarginTables = []MarginTable{} + } + } else { + out.MarginTables = (out.MarginTables)[:0] + } + for !in.IsDelim(']') { + var v44 MarginTable + (v44).UnmarshalEasyJSON(in) + out.MarginTables = append(out.MarginTables, v44) in.WantComma() } in.Delim(']') @@ -3642,53 +3793,407 @@ func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid36(in *jlexer.Lexer, ou in.Consumed() } } -func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid36(out *jwriter.Writer, in Meta) { +func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid37(out *jwriter.Writer, in MetaAndAssetCtxs) { out.RawByte('{') first := true _ = first { - const prefix string = ",\"universe\":" + const prefix string = ",\"Ctxs\":" out.RawString(prefix[1:]) - if in.Universe == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + if in.Ctxs == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { out.RawString("null") } else { out.RawByte('[') - for v40, v41 := range in.Universe { - if v40 > 0 { + for v45, v46 := range in.Ctxs { + if v45 > 0 { out.RawByte(',') } - (v41).MarshalEasyJSON(out) + (v46).MarshalEasyJSON(out) } out.RawByte(']') } } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v Meta) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid36(&w, v) - return w.Buffer.BuildBytes(), w.Error + { + const prefix string = ",\"universe\":" + out.RawString(prefix) + if in.Universe == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v47, v48 := range in.Universe { + if v47 > 0 { + out.RawByte(',') + } + (v48).MarshalEasyJSON(out) + } + out.RawByte(']') + } + } + { + const prefix string = ",\"marginTables\":" + out.RawString(prefix) + if in.MarginTables == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v49, v50 := range in.MarginTables { + if v49 > 0 { + out.RawByte(',') + } + (v50).MarshalEasyJSON(out) + } + out.RawByte(']') + } + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v MetaAndAssetCtxs) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid37(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v MetaAndAssetCtxs) MarshalEasyJSON(w *jwriter.Writer) { + easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid37(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *MetaAndAssetCtxs) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid37(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *MetaAndAssetCtxs) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid37(l, v) +} +func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid38(in *jlexer.Lexer, out *Meta) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "universe": + if in.IsNull() { + in.Skip() + out.Universe = nil + } else { + in.Delim('[') + if out.Universe == nil { + if !in.IsDelim(']') { + out.Universe = make([]AssetInfo, 0, 2) + } else { + out.Universe = []AssetInfo{} + } + } else { + out.Universe = (out.Universe)[:0] + } + for !in.IsDelim(']') { + var v51 AssetInfo + (v51).UnmarshalEasyJSON(in) + out.Universe = append(out.Universe, v51) + in.WantComma() + } + in.Delim(']') + } + case "marginTables": + if in.IsNull() { + in.Skip() + out.MarginTables = nil + } else { + in.Delim('[') + if out.MarginTables == nil { + if !in.IsDelim(']') { + out.MarginTables = make([]MarginTable, 0, 1) + } else { + out.MarginTables = []MarginTable{} + } + } else { + out.MarginTables = (out.MarginTables)[:0] + } + for !in.IsDelim(']') { + var v52 MarginTable + (v52).UnmarshalEasyJSON(in) + out.MarginTables = append(out.MarginTables, v52) + in.WantComma() + } + in.Delim(']') + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid38(out *jwriter.Writer, in Meta) { + out.RawByte('{') + first := true + _ = first + { + const prefix string = ",\"universe\":" + out.RawString(prefix[1:]) + if in.Universe == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v53, v54 := range in.Universe { + if v53 > 0 { + out.RawByte(',') + } + (v54).MarshalEasyJSON(out) + } + out.RawByte(']') + } + } + { + const prefix string = ",\"marginTables\":" + out.RawString(prefix) + if in.MarginTables == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v55, v56 := range in.MarginTables { + if v55 > 0 { + out.RawByte(',') + } + (v56).MarshalEasyJSON(out) + } + out.RawByte(']') + } + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v Meta) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid38(&w, v) + return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v Meta) MarshalEasyJSON(w *jwriter.Writer) { - easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid36(w, v) + easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid38(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *Meta) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid36(&r, v) + easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid38(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *Meta) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid36(l, v) + easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid38(l, v) +} +func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid39(in *jlexer.Lexer, out *MarginTier) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "lowerBound": + out.LowerBound = string(in.String()) + case "maxLeverage": + out.MaxLeverage = int(in.Int()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid39(out *jwriter.Writer, in MarginTier) { + out.RawByte('{') + first := true + _ = first + { + const prefix string = ",\"lowerBound\":" + out.RawString(prefix[1:]) + out.String(string(in.LowerBound)) + } + { + const prefix string = ",\"maxLeverage\":" + out.RawString(prefix) + out.Int(int(in.MaxLeverage)) + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v MarginTier) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid39(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v MarginTier) MarshalEasyJSON(w *jwriter.Writer) { + easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid39(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *MarginTier) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid39(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *MarginTier) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid39(l, v) } -func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid37(in *jlexer.Lexer, out *MarginSummary) { +func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid40(in *jlexer.Lexer, out *MarginTable) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "ID": + out.ID = int(in.Int()) + case "description": + out.Description = string(in.String()) + case "marginTiers": + if in.IsNull() { + in.Skip() + out.MarginTiers = nil + } else { + in.Delim('[') + if out.MarginTiers == nil { + if !in.IsDelim(']') { + out.MarginTiers = make([]MarginTier, 0, 2) + } else { + out.MarginTiers = []MarginTier{} + } + } else { + out.MarginTiers = (out.MarginTiers)[:0] + } + for !in.IsDelim(']') { + var v57 MarginTier + (v57).UnmarshalEasyJSON(in) + out.MarginTiers = append(out.MarginTiers, v57) + in.WantComma() + } + in.Delim(']') + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid40(out *jwriter.Writer, in MarginTable) { + out.RawByte('{') + first := true + _ = first + { + const prefix string = ",\"ID\":" + out.RawString(prefix[1:]) + out.Int(int(in.ID)) + } + { + const prefix string = ",\"description\":" + out.RawString(prefix) + out.String(string(in.Description)) + } + { + const prefix string = ",\"marginTiers\":" + out.RawString(prefix) + if in.MarginTiers == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v58, v59 := range in.MarginTiers { + if v58 > 0 { + out.RawByte(',') + } + (v59).MarshalEasyJSON(out) + } + out.RawByte(']') + } + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v MarginTable) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid40(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v MarginTable) MarshalEasyJSON(w *jwriter.Writer) { + easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid40(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *MarginTable) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid40(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *MarginTable) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid40(l, v) +} +func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid41(in *jlexer.Lexer, out *MarginSummary) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -3725,7 +4230,7 @@ func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid37(in *jlexer.Lexer, ou in.Consumed() } } -func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid37(out *jwriter.Writer, in MarginSummary) { +func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid41(out *jwriter.Writer, in MarginSummary) { out.RawByte('{') first := true _ = first @@ -3755,27 +4260,27 @@ func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid37(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v MarginSummary) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid37(&w, v) + easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid41(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v MarginSummary) MarshalEasyJSON(w *jwriter.Writer) { - easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid37(w, v) + easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid41(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *MarginSummary) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid37(&r, v) + easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid41(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *MarginSummary) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid37(l, v) + easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid41(l, v) } -func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid38(in *jlexer.Lexer, out *MMTier) { +func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid42(in *jlexer.Lexer, out *MMTier) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -3808,7 +4313,7 @@ func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid38(in *jlexer.Lexer, ou in.Consumed() } } -func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid38(out *jwriter.Writer, in MMTier) { +func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid42(out *jwriter.Writer, in MMTier) { out.RawByte('{') first := true _ = first @@ -3828,27 +4333,27 @@ func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid38(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v MMTier) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid38(&w, v) + easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid42(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v MMTier) MarshalEasyJSON(w *jwriter.Writer) { - easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid38(w, v) + easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid42(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *MMTier) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid38(&r, v) + easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid42(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *MMTier) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid38(l, v) + easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid42(l, v) } -func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid39(in *jlexer.Lexer, out *LimitOrderType) { +func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid43(in *jlexer.Lexer, out *LimitOrderType) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -3879,7 +4384,7 @@ func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid39(in *jlexer.Lexer, ou in.Consumed() } } -func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid39(out *jwriter.Writer, in LimitOrderType) { +func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid43(out *jwriter.Writer, in LimitOrderType) { out.RawByte('{') first := true _ = first @@ -3894,27 +4399,27 @@ func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid39(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v LimitOrderType) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid39(&w, v) + easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid43(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v LimitOrderType) MarshalEasyJSON(w *jwriter.Writer) { - easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid39(w, v) + easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid43(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *LimitOrderType) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid39(&r, v) + easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid43(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *LimitOrderType) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid39(l, v) + easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid43(l, v) } -func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid40(in *jlexer.Lexer, out *Leverage) { +func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid44(in *jlexer.Lexer, out *Leverage) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -3957,7 +4462,7 @@ func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid40(in *jlexer.Lexer, ou in.Consumed() } } -func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid40(out *jwriter.Writer, in Leverage) { +func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid44(out *jwriter.Writer, in Leverage) { out.RawByte('{') first := true _ = first @@ -3982,27 +4487,27 @@ func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid40(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v Leverage) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid40(&w, v) + easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid44(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v Leverage) MarshalEasyJSON(w *jwriter.Writer) { - easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid40(w, v) + easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid44(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *Leverage) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid40(&r, v) + easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid44(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *Leverage) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid40(l, v) + easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid44(l, v) } -func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid41(in *jlexer.Lexer, out *Level) { +func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid45(in *jlexer.Lexer, out *Level) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -4037,7 +4542,7 @@ func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid41(in *jlexer.Lexer, ou in.Consumed() } } -func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid41(out *jwriter.Writer, in Level) { +func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid45(out *jwriter.Writer, in Level) { out.RawByte('{') first := true _ = first @@ -4062,27 +4567,27 @@ func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid41(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v Level) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid41(&w, v) + easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid45(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v Level) MarshalEasyJSON(w *jwriter.Writer) { - easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid41(w, v) + easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid45(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *Level) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid41(&r, v) + easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid45(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *Level) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid41(l, v) + easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid45(l, v) } -func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid42(in *jlexer.Lexer, out *L2Book) { +func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid46(in *jlexer.Lexer, out *L2Book) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -4119,30 +4624,30 @@ func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid42(in *jlexer.Lexer, ou out.Levels = (out.Levels)[:0] } for !in.IsDelim(']') { - var v42 []Level + var v60 []Level if in.IsNull() { in.Skip() - v42 = nil + v60 = nil } else { in.Delim('[') - if v42 == nil { + if v60 == nil { if !in.IsDelim(']') { - v42 = make([]Level, 0, 2) + v60 = make([]Level, 0, 2) } else { - v42 = []Level{} + v60 = []Level{} } } else { - v42 = (v42)[:0] + v60 = (v60)[:0] } for !in.IsDelim(']') { - var v43 Level - (v43).UnmarshalEasyJSON(in) - v42 = append(v42, v43) + var v61 Level + (v61).UnmarshalEasyJSON(in) + v60 = append(v60, v61) in.WantComma() } in.Delim(']') } - out.Levels = append(out.Levels, v42) + out.Levels = append(out.Levels, v60) in.WantComma() } in.Delim(']') @@ -4159,7 +4664,7 @@ func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid42(in *jlexer.Lexer, ou in.Consumed() } } -func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid42(out *jwriter.Writer, in L2Book) { +func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid46(out *jwriter.Writer, in L2Book) { out.RawByte('{') first := true _ = first @@ -4175,19 +4680,19 @@ func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid42(out *jwriter.Writer, out.RawString("null") } else { out.RawByte('[') - for v44, v45 := range in.Levels { - if v44 > 0 { + for v62, v63 := range in.Levels { + if v62 > 0 { out.RawByte(',') } - if v45 == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + if v63 == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { out.RawString("null") } else { out.RawByte('[') - for v46, v47 := range v45 { - if v46 > 0 { + for v64, v65 := range v63 { + if v64 > 0 { out.RawByte(',') } - (v47).MarshalEasyJSON(out) + (v65).MarshalEasyJSON(out) } out.RawByte(']') } @@ -4206,27 +4711,27 @@ func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid42(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v L2Book) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid42(&w, v) + easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid46(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v L2Book) MarshalEasyJSON(w *jwriter.Writer) { - easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid42(w, v) + easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid46(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *L2Book) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid42(&r, v) + easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid46(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *L2Book) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid42(l, v) + easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid46(l, v) } -func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid43(in *jlexer.Lexer, out *FundingHistory) { +func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid47(in *jlexer.Lexer, out *FundingHistory) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -4263,7 +4768,7 @@ func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid43(in *jlexer.Lexer, ou in.Consumed() } } -func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid43(out *jwriter.Writer, in FundingHistory) { +func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid47(out *jwriter.Writer, in FundingHistory) { out.RawByte('{') first := true _ = first @@ -4293,27 +4798,27 @@ func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid43(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v FundingHistory) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid43(&w, v) + easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid47(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v FundingHistory) MarshalEasyJSON(w *jwriter.Writer) { - easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid43(w, v) + easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid47(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *FundingHistory) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid43(&r, v) + easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid47(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *FundingHistory) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid43(l, v) + easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid47(l, v) } -func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid44(in *jlexer.Lexer, out *Fill) { +func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid48(in *jlexer.Lexer, out *Fill) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -4364,7 +4869,7 @@ func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid44(in *jlexer.Lexer, ou in.Consumed() } } -func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid44(out *jwriter.Writer, in Fill) { +func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid48(out *jwriter.Writer, in Fill) { out.RawByte('{') first := true _ = first @@ -4429,27 +4934,27 @@ func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid44(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v Fill) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid44(&w, v) + easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid48(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v Fill) MarshalEasyJSON(w *jwriter.Writer) { - easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid44(w, v) + easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid48(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *Fill) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid44(&r, v) + easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid48(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *Fill) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid44(l, v) + easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid48(l, v) } -func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid45(in *jlexer.Lexer, out *FeeSchedule) { +func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid49(in *jlexer.Lexer, out *FeeSchedule) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -4486,7 +4991,7 @@ func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid45(in *jlexer.Lexer, ou in.Consumed() } } -func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid45(out *jwriter.Writer, in FeeSchedule) { +func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid49(out *jwriter.Writer, in FeeSchedule) { out.RawByte('{') first := true _ = first @@ -4516,27 +5021,27 @@ func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid45(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v FeeSchedule) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid45(&w, v) + easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid49(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v FeeSchedule) MarshalEasyJSON(w *jwriter.Writer) { - easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid45(w, v) + easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid49(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *FeeSchedule) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid45(&r, v) + easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid49(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *FeeSchedule) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid45(l, v) + easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid49(l, v) } -func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid46(in *jlexer.Lexer, out *EvmContract) { +func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid50(in *jlexer.Lexer, out *EvmContract) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -4569,7 +5074,7 @@ func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid46(in *jlexer.Lexer, ou in.Consumed() } } -func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid46(out *jwriter.Writer, in EvmContract) { +func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid50(out *jwriter.Writer, in EvmContract) { out.RawByte('{') first := true _ = first @@ -4589,27 +5094,27 @@ func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid46(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v EvmContract) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid46(&w, v) + easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid50(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EvmContract) MarshalEasyJSON(w *jwriter.Writer) { - easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid46(w, v) + easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid50(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EvmContract) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid46(&r, v) + easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid50(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EvmContract) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid46(l, v) + easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid50(l, v) } -func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid47(in *jlexer.Lexer, out *CreateVaultResponse) { +func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid51(in *jlexer.Lexer, out *CreateVaultResponse) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -4644,7 +5149,7 @@ func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid47(in *jlexer.Lexer, ou in.Consumed() } } -func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid47(out *jwriter.Writer, in CreateVaultResponse) { +func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid51(out *jwriter.Writer, in CreateVaultResponse) { out.RawByte('{') first := true _ = first @@ -4669,27 +5174,27 @@ func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid47(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v CreateVaultResponse) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid47(&w, v) + easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid51(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v CreateVaultResponse) MarshalEasyJSON(w *jwriter.Writer) { - easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid47(w, v) + easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid51(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *CreateVaultResponse) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid47(&r, v) + easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid51(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *CreateVaultResponse) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid47(l, v) + easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid51(l, v) } -func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid48(in *jlexer.Lexer, out *CreateSubAccountResponse) { +func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid52(in *jlexer.Lexer, out *CreateSubAccountResponse) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -4732,7 +5237,7 @@ func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid48(in *jlexer.Lexer, ou in.Consumed() } } -func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid48(out *jwriter.Writer, in CreateSubAccountResponse) { +func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid52(out *jwriter.Writer, in CreateSubAccountResponse) { out.RawByte('{') first := true _ = first @@ -4757,27 +5262,27 @@ func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid48(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v CreateSubAccountResponse) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid48(&w, v) + easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid52(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v CreateSubAccountResponse) MarshalEasyJSON(w *jwriter.Writer) { - easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid48(w, v) + easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid52(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *CreateSubAccountResponse) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid48(&r, v) + easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid52(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *CreateSubAccountResponse) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid48(l, v) + easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid52(l, v) } -func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid49(in *jlexer.Lexer, out *Cloid) { +func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid53(in *jlexer.Lexer, out *Cloid) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -4808,7 +5313,7 @@ func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid49(in *jlexer.Lexer, ou in.Consumed() } } -func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid49(out *jwriter.Writer, in Cloid) { +func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid53(out *jwriter.Writer, in Cloid) { out.RawByte('{') first := true _ = first @@ -4823,27 +5328,27 @@ func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid49(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v Cloid) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid49(&w, v) + easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid53(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v Cloid) MarshalEasyJSON(w *jwriter.Writer) { - easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid49(w, v) + easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid53(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *Cloid) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid49(&r, v) + easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid53(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *Cloid) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid49(l, v) + easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid53(l, v) } -func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid50(in *jlexer.Lexer, out *Candle) { +func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid54(in *jlexer.Lexer, out *Candle) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -4892,7 +5397,7 @@ func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid50(in *jlexer.Lexer, ou in.Consumed() } } -func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid50(out *jwriter.Writer, in Candle) { +func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid54(out *jwriter.Writer, in Candle) { out.RawByte('{') first := true _ = first @@ -4952,27 +5457,27 @@ func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid50(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v Candle) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid50(&w, v) + easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid54(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v Candle) MarshalEasyJSON(w *jwriter.Writer) { - easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid50(w, v) + easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid54(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *Candle) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid50(&r, v) + easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid54(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *Candle) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid50(l, v) + easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid54(l, v) } -func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid51(in *jlexer.Lexer, out *CancelResponse) { +func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid55(in *jlexer.Lexer, out *CancelResponse) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -5015,7 +5520,7 @@ func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid51(in *jlexer.Lexer, ou in.Consumed() } } -func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid51(out *jwriter.Writer, in CancelResponse) { +func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid55(out *jwriter.Writer, in CancelResponse) { out.RawByte('{') first := true _ = first @@ -5040,27 +5545,27 @@ func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid51(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v CancelResponse) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid51(&w, v) + easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid55(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v CancelResponse) MarshalEasyJSON(w *jwriter.Writer) { - easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid51(w, v) + easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid55(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *CancelResponse) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid51(&r, v) + easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid55(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *CancelResponse) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid51(l, v) + easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid55(l, v) } -func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid52(in *jlexer.Lexer, out *CancelRequest) { +func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid56(in *jlexer.Lexer, out *CancelRequest) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -5093,7 +5598,7 @@ func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid52(in *jlexer.Lexer, ou in.Consumed() } } -func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid52(out *jwriter.Writer, in CancelRequest) { +func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid56(out *jwriter.Writer, in CancelRequest) { out.RawByte('{') first := true _ = first @@ -5113,27 +5618,27 @@ func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid52(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v CancelRequest) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid52(&w, v) + easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid56(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v CancelRequest) MarshalEasyJSON(w *jwriter.Writer) { - easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid52(w, v) + easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid56(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *CancelRequest) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid52(&r, v) + easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid56(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *CancelRequest) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid52(l, v) + easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid56(l, v) } -func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid53(in *jlexer.Lexer, out *CancelByCloidRequest) { +func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid57(in *jlexer.Lexer, out *CancelByCloidRequest) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -5166,7 +5671,7 @@ func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid53(in *jlexer.Lexer, ou in.Consumed() } } -func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid53(out *jwriter.Writer, in CancelByCloidRequest) { +func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid57(out *jwriter.Writer, in CancelByCloidRequest) { out.RawByte('{') first := true _ = first @@ -5186,27 +5691,27 @@ func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid53(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v CancelByCloidRequest) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid53(&w, v) + easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid57(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v CancelByCloidRequest) MarshalEasyJSON(w *jwriter.Writer) { - easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid53(w, v) + easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid57(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *CancelByCloidRequest) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid53(&r, v) + easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid57(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *CancelByCloidRequest) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid53(l, v) + easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid57(l, v) } -func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid54(in *jlexer.Lexer, out *BulkOrderResponse) { +func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid58(in *jlexer.Lexer, out *BulkOrderResponse) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -5243,9 +5748,9 @@ func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid54(in *jlexer.Lexer, ou out.Data = (out.Data)[:0] } for !in.IsDelim(']') { - var v48 OrderStatus - easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid33(in, &v48) - out.Data = append(out.Data, v48) + var v66 OrderStatus + easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid34(in, &v66) + out.Data = append(out.Data, v66) in.WantComma() } in.Delim(']') @@ -5262,7 +5767,7 @@ func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid54(in *jlexer.Lexer, ou in.Consumed() } } -func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid54(out *jwriter.Writer, in BulkOrderResponse) { +func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid58(out *jwriter.Writer, in BulkOrderResponse) { out.RawByte('{') first := true _ = first @@ -5276,11 +5781,11 @@ func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid54(out *jwriter.Writer, out.RawString(prefix) { out.RawByte('[') - for v49, v50 := range in.Data { - if v49 > 0 { + for v67, v68 := range in.Data { + if v67 > 0 { out.RawByte(',') } - easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid33(out, v50) + easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid34(out, v68) } out.RawByte(']') } @@ -5296,27 +5801,27 @@ func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid54(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v BulkOrderResponse) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid54(&w, v) + easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid58(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v BulkOrderResponse) MarshalEasyJSON(w *jwriter.Writer) { - easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid54(w, v) + easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid58(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *BulkOrderResponse) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid54(&r, v) + easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid58(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *BulkOrderResponse) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid54(l, v) + easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid58(l, v) } -func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid55(in *jlexer.Lexer, out *BulkCancelResponse) { +func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid59(in *jlexer.Lexer, out *BulkCancelResponse) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -5353,9 +5858,9 @@ func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid55(in *jlexer.Lexer, ou out.Data = (out.Data)[:0] } for !in.IsDelim(']') { - var v51 OpenOrder - (v51).UnmarshalEasyJSON(in) - out.Data = append(out.Data, v51) + var v69 OpenOrder + (v69).UnmarshalEasyJSON(in) + out.Data = append(out.Data, v69) in.WantComma() } in.Delim(']') @@ -5372,7 +5877,7 @@ func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid55(in *jlexer.Lexer, ou in.Consumed() } } -func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid55(out *jwriter.Writer, in BulkCancelResponse) { +func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid59(out *jwriter.Writer, in BulkCancelResponse) { out.RawByte('{') first := true _ = first @@ -5386,11 +5891,11 @@ func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid55(out *jwriter.Writer, out.RawString(prefix) { out.RawByte('[') - for v52, v53 := range in.Data { - if v52 > 0 { + for v70, v71 := range in.Data { + if v70 > 0 { out.RawByte(',') } - (v53).MarshalEasyJSON(out) + (v71).MarshalEasyJSON(out) } out.RawByte(']') } @@ -5406,27 +5911,27 @@ func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid55(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v BulkCancelResponse) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid55(&w, v) + easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid59(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v BulkCancelResponse) MarshalEasyJSON(w *jwriter.Writer) { - easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid55(w, v) + easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid59(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *BulkCancelResponse) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid55(&r, v) + easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid59(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *BulkCancelResponse) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid55(l, v) + easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid59(l, v) } -func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid56(in *jlexer.Lexer, out *BuilderInfo) { +func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid60(in *jlexer.Lexer, out *BuilderInfo) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -5459,7 +5964,7 @@ func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid56(in *jlexer.Lexer, ou in.Consumed() } } -func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid56(out *jwriter.Writer, in BuilderInfo) { +func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid60(out *jwriter.Writer, in BuilderInfo) { out.RawByte('{') first := true _ = first @@ -5479,27 +5984,27 @@ func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid56(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v BuilderInfo) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid56(&w, v) + easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid60(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v BuilderInfo) MarshalEasyJSON(w *jwriter.Writer) { - easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid56(w, v) + easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid60(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *BuilderInfo) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid56(&r, v) + easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid60(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *BuilderInfo) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid56(l, v) + easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid60(l, v) } -func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid57(in *jlexer.Lexer, out *AssetPosition) { +func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid61(in *jlexer.Lexer, out *AssetPosition) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -5532,7 +6037,7 @@ func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid57(in *jlexer.Lexer, ou in.Consumed() } } -func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid57(out *jwriter.Writer, in AssetPosition) { +func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid61(out *jwriter.Writer, in AssetPosition) { out.RawByte('{') first := true _ = first @@ -5552,27 +6057,27 @@ func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid57(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v AssetPosition) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid57(&w, v) + easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid61(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v AssetPosition) MarshalEasyJSON(w *jwriter.Writer) { - easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid57(w, v) + easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid61(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *AssetPosition) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid57(&r, v) + easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid61(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *AssetPosition) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid57(l, v) + easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid61(l, v) } -func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid58(in *jlexer.Lexer, out *AssetInfo) { +func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid62(in *jlexer.Lexer, out *AssetInfo) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -5605,7 +6110,7 @@ func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid58(in *jlexer.Lexer, ou in.Consumed() } } -func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid58(out *jwriter.Writer, in AssetInfo) { +func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid62(out *jwriter.Writer, in AssetInfo) { out.RawByte('{') first := true _ = first @@ -5625,27 +6130,188 @@ func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid58(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v AssetInfo) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid58(&w, v) + easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid62(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v AssetInfo) MarshalEasyJSON(w *jwriter.Writer) { - easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid58(w, v) + easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid62(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *AssetInfo) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid58(&r, v) + easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid62(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *AssetInfo) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid58(l, v) + easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid62(l, v) +} +func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid63(in *jlexer.Lexer, out *AssetCtx) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "funding": + out.Funding = string(in.String()) + case "openInterest": + out.OpenInterest = string(in.String()) + case "prevDayPx": + out.PrevDayPx = string(in.String()) + case "dayNtlVlm": + out.DayNtlVlm = string(in.String()) + case "premium": + out.Premium = string(in.String()) + case "oraclePx": + out.OraclePx = string(in.String()) + case "markPx": + out.MarkPx = string(in.String()) + case "midPx": + out.MidPx = string(in.String()) + case "impactPxs": + if in.IsNull() { + in.Skip() + out.ImpactPxs = nil + } else { + in.Delim('[') + if out.ImpactPxs == nil { + if !in.IsDelim(']') { + out.ImpactPxs = make([]string, 0, 4) + } else { + out.ImpactPxs = []string{} + } + } else { + out.ImpactPxs = (out.ImpactPxs)[:0] + } + for !in.IsDelim(']') { + var v72 string + v72 = string(in.String()) + out.ImpactPxs = append(out.ImpactPxs, v72) + in.WantComma() + } + in.Delim(']') + } + case "dayBaseVlm": + out.DayBaseVlm = string(in.String()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid63(out *jwriter.Writer, in AssetCtx) { + out.RawByte('{') + first := true + _ = first + { + const prefix string = ",\"funding\":" + out.RawString(prefix[1:]) + out.String(string(in.Funding)) + } + { + const prefix string = ",\"openInterest\":" + out.RawString(prefix) + out.String(string(in.OpenInterest)) + } + { + const prefix string = ",\"prevDayPx\":" + out.RawString(prefix) + out.String(string(in.PrevDayPx)) + } + { + const prefix string = ",\"dayNtlVlm\":" + out.RawString(prefix) + out.String(string(in.DayNtlVlm)) + } + { + const prefix string = ",\"premium\":" + out.RawString(prefix) + out.String(string(in.Premium)) + } + { + const prefix string = ",\"oraclePx\":" + out.RawString(prefix) + out.String(string(in.OraclePx)) + } + { + const prefix string = ",\"markPx\":" + out.RawString(prefix) + out.String(string(in.MarkPx)) + } + if in.MidPx != "" { + const prefix string = ",\"midPx\":" + out.RawString(prefix) + out.String(string(in.MidPx)) + } + { + const prefix string = ",\"impactPxs\":" + out.RawString(prefix) + if in.ImpactPxs == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v73, v74 := range in.ImpactPxs { + if v73 > 0 { + out.RawByte(',') + } + out.String(string(v74)) + } + out.RawByte(']') + } + } + if in.DayBaseVlm != "" { + const prefix string = ",\"dayBaseVlm\":" + out.RawString(prefix) + out.String(string(in.DayBaseVlm)) + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v AssetCtx) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid63(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v AssetCtx) MarshalEasyJSON(w *jwriter.Writer) { + easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid63(w, v) } -func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid59(in *jlexer.Lexer, out *ApprovalResponse) { + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *AssetCtx) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid63(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *AssetCtx) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid63(l, v) +} +func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid64(in *jlexer.Lexer, out *ApprovalResponse) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -5680,7 +6346,7 @@ func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid59(in *jlexer.Lexer, ou in.Consumed() } } -func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid59(out *jwriter.Writer, in ApprovalResponse) { +func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid64(out *jwriter.Writer, in ApprovalResponse) { out.RawByte('{') first := true _ = first @@ -5705,27 +6371,27 @@ func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid59(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v ApprovalResponse) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid59(&w, v) + easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid64(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v ApprovalResponse) MarshalEasyJSON(w *jwriter.Writer) { - easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid59(w, v) + easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid64(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *ApprovalResponse) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid59(&r, v) + easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid64(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *ApprovalResponse) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid59(l, v) + easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid64(l, v) } -func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid60(in *jlexer.Lexer, out *AgentApprovalResponse) { +func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid65(in *jlexer.Lexer, out *AgentApprovalResponse) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -5760,7 +6426,7 @@ func easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid60(in *jlexer.Lexer, ou in.Consumed() } } -func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid60(out *jwriter.Writer, in AgentApprovalResponse) { +func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid65(out *jwriter.Writer, in AgentApprovalResponse) { out.RawByte('{') first := true _ = first @@ -5785,23 +6451,23 @@ func easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid60(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v AgentApprovalResponse) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid60(&w, v) + easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid65(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v AgentApprovalResponse) MarshalEasyJSON(w *jwriter.Writer) { - easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid60(w, v) + easyjson6601e8cdEncodeGithubComSoniricoGoHyperliquid65(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *AgentApprovalResponse) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid60(&r, v) + easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid65(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *AgentApprovalResponse) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid60(l, v) + easyjson6601e8cdDecodeGithubComSoniricoGoHyperliquid65(l, v) }