Documentation ¶
Index ¶
- Constants
- Variables
- func CreateDirectoryAndPath(dirPath string, filename string) error
- func ExtractInternalFile(ctx context.Context, container testcontainers.Container, path string) (string, error)
- func GetAndCalculateProofsValues(proofs *cashu.Proofs) (uint64, []string, error)
- func GetChangeOutput(overpaidFees uint64, outputs []cashu.BlindedMessage) []cashu.BlindedMessage
- func GetLogsDirectory() (string, error)
- func ParseErrorToCashuErrorCode(proofError error) (cashu.ErrorCode, *string)
- func ReadDataFromReader(reader io.Reader) (string, error)
- func SetUpLightingNetworkTestEnviroment(ctx context.Context, names string) (testcontainers.Container, testcontainers.Container, testcontainers.Container, ...)
- type SlogRecordJSON
Constants ¶
View Source
const ( LND_HOST = "LND_GRPC_HOST" LND_TLS_CERT = "LND_TLS_CERT" LND_MACAROON = "LND_MACAROON" MINT_LNBITS_ENDPOINT = "MINT_LNBITS_ENDPOINT" MINT_LNBITS_KEY = "MINT_LNBITS_KEY" CLN_HOST = "CLN_GRPC_HOST" CLN_TLS_CERT = "CLN_TLS_CERT" CLN_MACAROON = "CLN_MACAROON" )
View Source
const ConfigDirName string = "nutmix"
View Source
const ConfigFileName string = "config.toml"
View Source
const LogExtraInfo string = "extra-info"
Variables ¶
View Source
var ( DOCKER_ENV = "DOCKER" MODE_ENV = "MODE" MINT_PRIVATE_KEY_ENV = "MINT_PRIVATE_KEY" )
Functions ¶
func CreateDirectoryAndPath ¶
func ExtractInternalFile ¶
func GetAndCalculateProofsValues ¶
Sets some values being used by the mint like seen, secretY, seen, and pending state
func GetChangeOutput ¶
func GetChangeOutput(overpaidFees uint64, outputs []cashu.BlindedMessage) []cashu.BlindedMessage
func GetLogsDirectory ¶
func SetUpLightingNetworkTestEnviroment ¶
func SetUpLightingNetworkTestEnviroment(ctx context.Context, names string) (testcontainers.Container, testcontainers.Container, testcontainers.Container, testcontainers.Container, error)
This is used for testing purpose returns alice, bob, btcNode, aliceLnBits, error
Types ¶
Click to show internal directories.
Click to hide internal directories.