mirror of
https://github.com/d0zingcat/solana-agent-kit.git
synced 2026-05-17 07:36:45 +00:00
fixes
This commit is contained in:
@@ -25,8 +25,9 @@ import {
|
||||
stakeWithJup,
|
||||
sendCompressedAirdrop,
|
||||
createOrcaSingleSidedWhirlpool,
|
||||
FEE_TIERS,
|
||||
fetchPrice,
|
||||
pythFetchPrice,
|
||||
FEE_TIERS,
|
||||
} from "../tools";
|
||||
import {
|
||||
CollectionDeployment,
|
||||
@@ -85,7 +86,7 @@ export class SolanaAgentKit {
|
||||
return deploy_collection(this, options);
|
||||
}
|
||||
|
||||
async getBalance(token_address?: PublicKey): Promise<number | null> {
|
||||
async getBalance(token_address?: PublicKey): Promise<number> {
|
||||
return get_balance(this, token_address);
|
||||
}
|
||||
|
||||
@@ -277,4 +278,8 @@ export class SolanaAgentKit {
|
||||
tickSize,
|
||||
);
|
||||
}
|
||||
|
||||
async pythFetchPrice(priceFeedID: string): Promise<string> {
|
||||
return pythFetchPrice(priceFeedID);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user