indexer: Corona → Corona identifier rename + fix stale xvm→aivm test refs

Two unrelated cleanups bundled:
1. quantum/* Corona* → Corona* identifier rename (audit consistency).
2. ai/adapter_test.go expected "xvm.getVertex"/"xvm.getRecentVertices"
   methods but ai/adapter.go was updated to emit "aivm.*" — stale test
   expectations fixed to match the live implementation.

Tests: indexer/ai PASS 0.363s, indexer/quantum PASS.
This commit is contained in:
2026-05-15 02:45:52 -07:00
parent 5fe889d78b
commit 97fcfd256e
+4 -4
View File
@@ -325,8 +325,8 @@ func TestGetRecentVerticesRequestValidation(t *testing.T) {
if req["jsonrpc"] != "2.0" {
t.Errorf("expected jsonrpc 2.0, got %v", req["jsonrpc"])
}
if req["method"] != "xvm.getRecentVertices" {
t.Errorf("expected method xvm.getRecentVertices, got %v", req["method"])
if req["method"] != "aivm.getRecentVertices" {
t.Errorf("expected method aivm.getRecentVertices, got %v", req["method"])
}
params := req["params"].(map[string]interface{})
@@ -383,8 +383,8 @@ func TestGetVertexByID(t *testing.T) {
var req map[string]interface{}
json.NewDecoder(r.Body).Decode(&req)
if req["method"] != "xvm.getVertex" {
t.Errorf("expected method xvm.getVertex, got %v", req["method"])
if req["method"] != "aivm.getVertex" {
t.Errorf("expected method aivm.getVertex, got %v", req["method"])
}
params := req["params"].(map[string]interface{})