mirror of
https://github.com/luxfi/sdk.git
synced 2026-10-30 15:19:23 +00:00
34 lines
629 B
Go
34 lines
629 B
Go
// Copyright (C) 2019-2025, Lux Industries Inc All rights reserved.
|
|
// See the file LICENSE for licensing terms.
|
|
|
|
package x
|
|
|
|
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)
|
|
}
|
|
}
|