Files
zeekay f480e48e39 run on the native fleet
Adds .hanzo/workflows/cicd.yml calling the canonical pipeline and drops the
GitHub-hosted workflows it replaces. Lands here because this is where the repo
is written — git.hanzo.ai is upstream and github.com is its push mirror, so the
same change made on github.com never reaches the runner fleet.
2026-08-20 20:20:25 -07:00

42 lines
1.1 KiB
Go

// Copyright (C) 2019-2026, Lux Industries Inc. All rights reserved.
// See the file LICENSE for licensing terms.
package txs
import "github.com/luxfi/zap"
// kind is the 1-byte tx discriminator at object offset 0 of every P-chain tx
// buffer. It is the whole dispatch: Unmarshal reads it and decodes the typed
// value. There is no codec, no version, no slot map.
type kind uint8
const (
kindReserved kind = iota
kindAdvanceTime
kindRewardValidator
kindBase
kindImport
kindExport
kindCreateNetwork
kindCreateChain
kindTransferChainOwnership
kindRemoveChainValidator
kindTransformChain
kindAddValidator
kindAddChainValidator
kindAddDelegator
kindAddPermissionlessValidator
kindAddPermissionlessDelegator
kindRegisterL1Validator
kindSetL1ValidatorWeight
kindIncreaseL1ValidatorBalance
kindDisableL1Validator
kindConvertNetwork
)
// offKind is the fixed wire position of the discriminator (object offset 0).
const offKind = 0
// kindOf reads the discriminator from a parsed tx buffer.
func kindOf(msg *zap.Message) kind { return kind(msg.Root().Uint8(offKind)) }