From db9574d9eac36c420052b11b1778436a2805243e Mon Sep 17 00:00:00 2001 From: Michael Huang Date: Sun, 9 Jun 2024 12:44:15 -0400 Subject: [PATCH] Move native decimals to src/spl/token/constants --- src/solana/constants.py | 5 +---- src/spl/token/constants.py | 3 +++ 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/solana/constants.py b/src/solana/constants.py index 18e8c985..f99470f6 100644 --- a/src/solana/constants.py +++ b/src/solana/constants.py @@ -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.""" diff --git a/src/spl/token/constants.py b/src/spl/token/constants.py index 4b81de4c..fa2de4de 100644 --- a/src/spl/token/constants.py +++ b/src/spl/token/constants.py @@ -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."""