refactor(zap): rename InitializeRequest.LuxAssetID -> UTXOAssetID (canonical)

Decomplect step: the primary-network fee asset is canonically UTXOAssetID (named for the function, not the chain), matching runtime.Runtime.UTXOAssetID (runtime v1.1.0). Wire layout is unchanged (positional encoding), so this is source-only and wire-compatible; vm/node consumers switch from req.LuxAssetID to req.UTXOAssetID when they bump to the released api carrying this rename. Kept separate from the ReadCount safety commit.

Co-authored-by: Hanzo Dev <[email protected]>
This commit is contained in:
zooqueen
2026-06-06 20:46:47 -07:00
co-authored by Hanzo Dev
parent 62ac3e0ae1
commit 4dc949bb8c
+3 -3
View File
@@ -39,7 +39,7 @@ type InitializeRequest struct {
PublicKey []byte
XChainID []byte
CChainID []byte
LuxAssetID []byte
UTXOAssetID []byte
ChainDataDir string
GenesisBytes []byte
UpgradeBytes []byte
@@ -56,7 +56,7 @@ func (m *InitializeRequest) Encode(buf *Buffer) {
buf.WriteBytes(m.PublicKey)
buf.WriteBytes(m.XChainID)
buf.WriteBytes(m.CChainID)
buf.WriteBytes(m.LuxAssetID)
buf.WriteBytes(m.UTXOAssetID)
buf.WriteString(m.ChainDataDir)
buf.WriteBytes(m.GenesisBytes)
buf.WriteBytes(m.UpgradeBytes)
@@ -86,7 +86,7 @@ func (m *InitializeRequest) Decode(r *Reader) error {
if m.CChainID, err = r.ReadBytes(); err != nil {
return err
}
if m.LuxAssetID, err = r.ReadBytes(); err != nil {
if m.UTXOAssetID, err = r.ReadBytes(); err != nil {
return err
}
if m.ChainDataDir, err = r.ReadString(); err != nil {