Skip to content

Commit

Permalink
Move native decimals to src/spl/token/constants
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelhly committed Jun 9, 2024
1 parent 7b35f69 commit db9574d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
5 changes: 1 addition & 4 deletions src/solana/constants.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
"""Solana constants"""

NATIVE_DECIMALS: int = 9
"""Standard number of decimals for SOL and wrapped SOL."""
"""Solana constants."""

LAMPORTS_PER_SOL: int = 1_000_000_000
"""Number of lamports per SOL, where 1 SOL equals 1 billion lamports."""
3 changes: 3 additions & 0 deletions src/spl/token/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,6 @@
other Token program token type and can be useful when being called from other programs that interact
with the Token Program's interface.
"""

NATIVE_DECIMALS: int = 9
"""Number of decimals for SOL and the Wrapped SOL mint."""

0 comments on commit db9574d

Please sign in to comment.