nativeinstrument

package
v0.0.0-...-24a7c3f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 30, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultNativeTokenInstrumentID = "Amulet"

Variables

This section is empty.

Functions

func LookupNativeInstrumentID

func LookupNativeInstrumentID(ctx context.Context, participant canton.Participant) (splice_api_token_holding_v1.InstrumentId, error)

LookupNativeInstrumentID resolves the Canton network native token (Amulet) admin party from the participant validator scan-proxy registry metadata API.

func ResolveNativeInstrumentID

func ResolveNativeInstrumentID(
	ctx context.Context,
	participant canton.Participant,
	ds datastore.DataStore,
	chainSelector uint64,
) (splice_api_token_holding_v1.InstrumentId, error)

ResolveNativeInstrumentID returns the native fee token instrument. It prefers a Token address ref already in the datastore (Amulet registered in TAR) so lane configure and re-runs do not require validator scan-proxy access. Falls back to scan-proxy registry metadata when no ref is present (first-time bootstrap).

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL