Versions in this module Expand all Collapse all v1 v1.1.0 Jun 19, 2022 Changes in this version + const CodecVersion + const NFTFxIndex + const PropertyFxIndex + const SECP256K1FxIndex + var Codec codec.Manager + type Backend interface + AcceptTx func(ctx stdcontext.Context, tx *avm.Tx) error + func NewBackend(ctx Context, chainID ids.ID, utxos ChainUTXOs) Backend + type Builder interface + NewBaseTx func(outputs []*djtx.TransferableOutput, options ...common.Option) (*avm.BaseTx, error) + NewCreateAssetTx func(name string, symbol string, denomination byte, ...) (*avm.CreateAssetTx, error) + NewExportTx func(chainID ids.ID, outputs []*djtx.TransferableOutput, options ...common.Option) (*avm.ExportTx, error) + NewImportTx func(chainID ids.ID, to *secp256k1fx.OutputOwners, options ...common.Option) (*avm.ImportTx, error) + NewOperationTx func(operations []*avm.Operation, options ...common.Option) (*avm.OperationTx, error) + NewOperationTxBurnProperty func(assetID ids.ID, options ...common.Option) (*avm.OperationTx, error) + NewOperationTxMintFT func(outputs map[ids.ID]*secp256k1fx.TransferOutput, options ...common.Option) (*avm.OperationTx, error) + NewOperationTxMintNFT func(assetID ids.ID, payload []byte, owners []*secp256k1fx.OutputOwners, ...) (*avm.OperationTx, error) + NewOperationTxMintProperty func(assetID ids.ID, owner *secp256k1fx.OutputOwners, options ...common.Option) (*avm.OperationTx, error) + func NewBuilder(addrs ids.ShortSet, backend BuilderBackend) Builder + type BuilderBackend interface + UTXOs func(ctx stdcontext.Context, sourceChainID ids.ID) ([]*djtx.UTXO, error) + type ChainUTXOs interface + AddUTXO func(ctx stdcontext.Context, destinationChainID ids.ID, utxo *djtx.UTXO) error + GetUTXO func(ctx stdcontext.Context, sourceChainID, utxoID ids.ID) (*djtx.UTXO, error) + RemoveUTXO func(ctx stdcontext.Context, sourceChainID, utxoID ids.ID) error + UTXOs func(ctx stdcontext.Context, sourceChainID ids.ID) ([]*djtx.UTXO, error) + type Context interface + BaseTxFee func() uint64 + BlockchainID func() ids.ID + CreateAssetTxFee func() uint64 + DJTXAssetID func() ids.ID + HRP func() string + NetworkID func() uint32 + func NewContext(networkID uint32, blockchainID ids.ID, djtxAssetID ids.ID, baseTxFee uint64, ...) Context + func NewContextFromClients(ctx stdcontext.Context, infoClient info.Client, xChainClient avm.Client) (Context, error) + func NewContextFromURI(ctx stdcontext.Context, uri string) (Context, error) + type Signer interface + Sign func(ctx stdcontext.Context, tx *avm.Tx) error + SignUnsigned func(ctx stdcontext.Context, tx avm.UnsignedTx) (*avm.Tx, error) + func NewSigner(kc *secp256k1fx.Keychain, backend SignerBackend) Signer + type SignerBackend interface + GetUTXO func(ctx stdcontext.Context, chainID, utxoID ids.ID) (*djtx.UTXO, error) + type Wallet interface + IssueBaseTx func(outputs []*djtx.TransferableOutput, options ...common.Option) (ids.ID, error) + IssueCreateAssetTx func(name string, symbol string, denomination byte, ...) (ids.ID, error) + IssueExportTx func(chainID ids.ID, outputs []*djtx.TransferableOutput, options ...common.Option) (ids.ID, error) + IssueImportTx func(chainID ids.ID, to *secp256k1fx.OutputOwners, options ...common.Option) (ids.ID, error) + IssueOperationTx func(operations []*avm.Operation, options ...common.Option) (ids.ID, error) + IssueOperationTxBurnProperty func(assetID ids.ID, options ...common.Option) (ids.ID, error) + IssueOperationTxMintFT func(outputs map[ids.ID]*secp256k1fx.TransferOutput, options ...common.Option) (ids.ID, error) + IssueOperationTxMintNFT func(assetID ids.ID, payload []byte, owners []*secp256k1fx.OutputOwners, ...) (ids.ID, error) + IssueOperationTxMintProperty func(assetID ids.ID, owner *secp256k1fx.OutputOwners, options ...common.Option) (ids.ID, error) + IssueTx func(tx *avm.Tx, options ...common.Option) (ids.ID, error) + IssueUnsignedTx func(utx avm.UnsignedTx, options ...common.Option) (ids.ID, error) + func NewWallet(builder Builder, signer Signer, client avm.Client, backend Backend) Wallet