Skip to content

Commit

Permalink
Add DEFAULT_DECIMALS & LAMPORTS_PER_SOL constants
Browse files Browse the repository at this point in the history
  • Loading branch information
n3tn1nja authored Jun 4, 2024
1 parent ff9af68 commit 9232431
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/spl/token/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@
MULTISIG_LEN: int = 355
"""Data length of a multisig token account."""

DEFAULT_DECIMALS: int = 9
"""Standard number of decimals for SOL and wrapped SOL."""

LAMPORTS_PER_SOL: int = 1_000_000_000
"""Number of lamports per SOL, where 1 SOL equals 1 billion lamports."""

ASSOCIATED_TOKEN_PROGRAM_ID = Pubkey.from_string("ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL")
"""Program ID for the associated token account program."""

Expand Down

0 comments on commit 9232431

Please sign in to comment.