Files
zeekay 61b014165e rename: Etna → Quasar Edition
Wire-level renames in the P/X-Chain proto:

  Codec registrations (CRITICAL — these register block + tx type IDs):
    - block.RegisterEtnaTypes → block.RegisterQuasarTypes
    - txs.RegisterEtnaTypes   → txs.RegisterQuasarTypes
  Block builder:
    - packEtnaBlockTxs        → packQuasarBlockTxs
  X-Chain (XVM) config struct + JSON tag:
    - x/config.Config.EtnaTime        → QuasarTime
    - json tag "etnaTime"             → "quasarTime"
    - x/config.Config.IsEtnaActivated → IsQuasarActivated
  Errors:
    - errEtnaUpgradeNotActive     → errQuasarUpgradeNotActive
    - errTransformChainTxPostEtna → errTransformChainTxPostQuasar
  Test names:
    - TestEtnaCreateChainTxInvalidWithManagedNet → TestQuasarCreateChainTxInvalidWithManagedNet
    - TestEtnaDisabledTransactions               → TestQuasarDisabledTransactions
    - TestEtnaStandardTxExecutorAddNetValidator  → TestQuasarStandardTxExecutorAddNetValidator
    - TestGetValidatorSet_AfterEtna              → TestGetValidatorSet_AfterQuasar

All luxfi/upgrade.Config.IsEtnaActivated callsites updated to IsQuasarActivated.
Bumps luxfi/upgrade@main + luxfi/constants@main.

Pre-existing test build failures in p/block/builder (helpers_test.go
validator interface mismatch) are unrelated to this rename.

No backcompat aliases — forwards-only.
2026-06-02 23:08:09 -07:00

36 lines
1.2 KiB
Go

// Copyright (C) 2019-2025, Lux Industries, Inc. All rights reserved.
// See the file LICENSE for licensing terms.
package txs
// Allow vm to execute custom logic against the underlying transaction types.
type Visitor interface {
// Apricot Transactions:
AddValidatorTx(*AddValidatorTx) error
AddChainValidatorTx(*AddChainValidatorTx) error
AddDelegatorTx(*AddDelegatorTx) error
CreateNetworkTx(*CreateNetworkTx) error
CreateChainTx(*CreateChainTx) error
ImportTx(*ImportTx) error
ExportTx(*ExportTx) error
AdvanceTimeTx(*AdvanceTimeTx) error
RewardValidatorTx(*RewardValidatorTx) error
// Banff Transactions:
RemoveChainValidatorTx(*RemoveChainValidatorTx) error
TransformChainTx(*TransformChainTx) error
AddPermissionlessValidatorTx(*AddPermissionlessValidatorTx) error
AddPermissionlessDelegatorTx(*AddPermissionlessDelegatorTx) error
// Durango Transactions:
TransferChainOwnershipTx(*TransferChainOwnershipTx) error
BaseTx(*BaseTx) error
// Quasar Transactions:
ConvertNetworkToL1Tx(*ConvertNetworkToL1Tx) error
RegisterL1ValidatorTx(*RegisterL1ValidatorTx) error
SetL1ValidatorWeightTx(*SetL1ValidatorWeightTx) error
IncreaseL1ValidatorBalanceTx(*IncreaseL1ValidatorBalanceTx) error
DisableL1ValidatorTx(*DisableL1ValidatorTx) error
}