File tree Expand file tree Collapse file tree 4 files changed +9
-4
lines changed
test/Solana.Unity.Dex.Test/Orca/Integration/TxApi Expand file tree Collapse file tree 4 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -45,5 +45,10 @@ public class TokenData
4545 /// If token is whitelisted
4646 /// </summary>
4747 public bool Whitelisted { get ; set ; }
48+
49+ /// <summary>
50+ /// If token is a pool token
51+ /// </summary>
52+ public bool PoolToken { get ; set ; }
4853
4954}
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ namespace Orca
2020 /// mainnet url: https://api.mainnet.orca.so/v1/token/list
2121 /// not supported for localnet or testnet
2222 /// </summary>
23- public static class Tokens
23+ public static class OrcaTokens
2424 {
2525 private const string MainnetUrl = "https://api.mainnet.orca.so/v1/token/list" ;
2626 private const string DevnetUrl = "https://api.devnet.orca.so/v1/token/list" ;
Original file line number Diff line number Diff line change @@ -299,7 +299,7 @@ Commitment commitment
299299 /// <inheritdoc />
300300 public async Task < IList < TokenData > > GetTokens ( )
301301 {
302- return await Tokens . GetTokens ( _context . RpcClient . NodeAddress . ToString ( ) . Contains ( "devnet" ) ?
302+ return await OrcaTokens . GetTokens ( _context . RpcClient . NodeAddress . ToString ( ) . Contains ( "devnet" ) ?
303303 Cluster . DevNet : Cluster . MainNet ) ;
304304 }
305305
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ public static void Setup()
2323 [ Test ]
2424 public static async Task GetTokensList ( )
2525 {
26- IList < TokenData > tokens = await Tokens . GetTokens ( ) ;
26+ IList < TokenData > tokens = await OrcaTokens . GetTokens ( ) ;
2727
2828 Assert . That ( tokens . Count , Is . GreaterThan ( 0 ) ) ;
2929 Assert . That ( tokens . Count ( t => t . Symbol == "ORCA" ) , Is . GreaterThan ( 0 ) ) ;
@@ -32,7 +32,7 @@ public static async Task GetTokensList()
3232 [ Test ]
3333 public static async Task GetTokenBySymbol ( )
3434 {
35- TokenData token = await Tokens . GetTokenBySymbol ( "ORCA" ) ;
35+ TokenData token = await OrcaTokens . GetTokenBySymbol ( "ORCA" ) ;
3636
3737 Assert . IsNotNull ( token ) ;
3838 Assert . IsNotNull ( token . Mint ) ;
You can’t perform that action at this time.
0 commit comments