Files
2026-08-21 09:33:15 -07:00

36 lines
647 B
Go

// Copyright (C) 2019-2025, Lux Industries, Inc. All rights reserved.
// See the file LICENSE for licensing terms.
package builder
import (
"github.com/luxfi/proto/x/block"
"github.com/luxfi/proto/x/fxs"
"github.com/luxfi/utxo/nftfx"
"github.com/luxfi/utxo/propertyfx"
"github.com/luxfi/utxo/secp256k1fx"
)
const (
SECP256K1FxIndex = 0
NFTFxIndex = 1
PropertyFxIndex = 2
)
// Parser to support serialization and deserialization
var Parser block.Parser
func init() {
var err error
Parser, err = block.NewParser(
[]fxs.Fx{
&secp256k1fx.Fx{},
&nftfx.Fx{},
&propertyfx.Fx{},
},
)
if err != nil {
panic(err)
}
}