constants

package
v1.21.2 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2025 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TRANSACTION_TYPE_INCOMING = "incoming"
	TRANSACTION_TYPE_OUTGOING = "outgoing"

	TRANSACTION_STATE_PENDING  = "PENDING"
	TRANSACTION_STATE_SETTLED  = "SETTLED"
	TRANSACTION_STATE_FAILED   = "FAILED"
	TRANSACTION_STATE_ACCEPTED = "ACCEPTED"

	SWAP_TYPE_IN  = "in"
	SWAP_TYPE_OUT = "out"

	SWAP_STATE_PENDING  = "PENDING"
	SWAP_STATE_SUCCESS  = "SUCCESS"
	SWAP_STATE_FAILED   = "FAILED"
	SWAP_STATE_REFUNDED = "REFUNDED"
)
View Source
const (
	BUDGET_RENEWAL_DAILY   = "daily"
	BUDGET_RENEWAL_WEEKLY  = "weekly"
	BUDGET_RENEWAL_MONTHLY = "monthly"
	BUDGET_RENEWAL_YEARLY  = "yearly"
	BUDGET_RENEWAL_NEVER   = "never"
)
View Source
const (
	PAY_INVOICE_SCOPE       = "pay_invoice" // also covers pay_keysend and multi_* payment methods
	GET_BALANCE_SCOPE       = "get_balance"
	GET_INFO_SCOPE          = "get_info"
	MAKE_INVOICE_SCOPE      = "make_invoice"
	LOOKUP_INVOICE_SCOPE    = "lookup_invoice"
	LIST_TRANSACTIONS_SCOPE = "list_transactions"
	SIGN_MESSAGE_SCOPE      = "sign_message"
	NOTIFICATIONS_SCOPE     = "notifications" // covers all notification types
	SUPERUSER_SCOPE         = "superuser"
)
View Source
const (
	ERROR_INTERNAL               = "INTERNAL"
	ERROR_NOT_IMPLEMENTED        = "NOT_IMPLEMENTED"
	ERROR_QUOTA_EXCEEDED         = "QUOTA_EXCEEDED"
	ERROR_INSUFFICIENT_BALANCE   = "INSUFFICIENT_BALANCE"
	ERROR_UNAUTHORIZED           = "UNAUTHORIZED"
	ERROR_EXPIRED                = "EXPIRED"
	ERROR_RESTRICTED             = "RESTRICTED"
	ERROR_BAD_REQUEST            = "BAD_REQUEST"
	ERROR_NOT_FOUND              = "NOT_FOUND"
	ERROR_UNSUPPORTED_ENCRYPTION = "UNSUPPORTED_ENCRYPTION"
	ERROR_OTHER                  = "OTHER"
)

errors used by NIP-47 and the transaction service

View Source
const (
	ENCRYPTION_TYPE_NIP04    = "nip04"
	ENCRYPTION_TYPE_NIP44_V2 = "nip44_v2"
)
View Source
const (
	BITCOIN_DISPLAY_FORMAT_SATS   = "sats"
	BITCOIN_DISPLAY_FORMAT_BIP177 = "bip177"
)
View Source
const INVOICE_METADATA_MAX_LENGTH = 4096

limit encoded metadata length, otherwise relays may have trouble listing multiple transactions given a relay limit of 512000 bytes and ideally being able to list 25 transactions, each transaction would have to have a maximum size of 20480 accounting for encryption and other metadata in the response, this is set to 4096 characters

View Source
const SUBWALLET_APPSTORE_APP_ID = "uncle-jim"

Variables

This section is empty.

Functions

func GetBudgetRenewals added in v1.15.0

func GetBudgetRenewals() []string

Types

This section is empty.

Jump to

Keyboard shortcuts

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