Skip to content

Commit

Permalink
update: release v0.2.6
Browse files Browse the repository at this point in the history
  • Loading branch information
POPPIN-FUMI committed Dec 5, 2023
1 parent 17ae2d7 commit dbbeff3
Show file tree
Hide file tree
Showing 57 changed files with 98 additions and 60 deletions.
4 changes: 2 additions & 2 deletions dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export { delegateStake } from './lib/delegateStake';
export { getAllStakeRewardsByPubkey } from './lib/getAllStakeRewardsByPubkey';
export { getCurrentEpoch } from './lib/getCurrentEpoch';
export { createStakeAccount } from './lib/createStakeAccount';
export { getTokenTransferDetails } from './lib/getTokenTransferDetails';
export { getSolTransferDetails } from './lib/getSolTransferDetails';
export { getSPLTransferHistory } from './lib/getSPLTransferHistory';
export type * from './solanaUtilsTypes';
export { MAGIC_EDEN_ADDRESS } from './lib/getMagicEdenOwner';
Expand Down
19 changes: 19 additions & 0 deletions dist/src/lib/getSolTransferDetails.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import { TransactionSignature } from '@solana/web3.js';
import { SolTransferDetailsResponse } from '..';
/**
* Fetches the details of a transaction, specifically the token transfer details.
*
* @param rpcUrl - The URL of the Solana RPC endpoint.
* @param signature - The transaction signature.
* @returns {Promise<SolTransferDetailsResponse>} - A promise that resolves with the token transfer details.
*
* @example
* ```typescript
* const rpcUrl = 'https://api.mainnet-beta.solana.com';
* const signature = '5verv...'; // Example transaction signature
*
* const transferDetails = await getTokenTransferDetails(rpcUrl, signature);
* console.log(transferDetails);
* ```
*/
export declare const getSolTransferDetails: (rpcUrl: string, signature: TransactionSignature) => Promise<SolTransferDetailsResponse>;
2 changes: 1 addition & 1 deletion dist/src/lib/version.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export declare const VERSION = "0.2.5";
export declare const VERSION = "0.2.6";
13 changes: 13 additions & 0 deletions dist/src/solanaUtilsTypes.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -246,3 +246,16 @@ export type TokenExchange = {
token2: string;
token2Amount: number;
};
export type SPLTransferHistoryResponse = {
blockTime: number;
confirmationStatus: string;
err: null | any;
memo: null | string;
signature: string;
slot: number;
};
export type SolTransferDetailsResponse = {
destination: string;
lamports: number;
source: string;
};
2 changes: 1 addition & 1 deletion docs/assets/navigation.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/assets/search.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit dbbeff3

Please sign in to comment.