Skip to content

Commit

Permalink
update: release v0.2.4
Browse files Browse the repository at this point in the history
  • Loading branch information
POPPIN-FUMI committed Nov 23, 2023
1 parent 545b9fa commit 8a45398
Show file tree
Hide file tree
Showing 42 changed files with 81 additions and 55 deletions.
36 changes: 18 additions & 18 deletions dist/index.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export { getNftsByWalletAddressAndCollectionMint } from './lib/getNftsByWalletAd
export { getStakeAccounts } from './lib/getStakeAccounts';
export { delegateStake } from './lib/delegateStake';
export { getAllStakeRewardsByPubkey } from './lib/getAllStakeRewardsByPubkey';
export { getCurrentEpoch } from './lib/getCurrentEpoch';
export type * from './solanaUtilsTypes';
export { MAGIC_EDEN_ADDRESS } from './lib/getMagicEdenOwner';
export type { DigitalAsset } from '@metaplex-foundation/mpl-token-metadata';
1 change: 1 addition & 0 deletions dist/src/lib/getCurrentEpoch.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export declare const getCurrentEpoch: (endpoint: string) => Promise<number>;
22 changes: 22 additions & 0 deletions dist/src/lib/getTimestampFromSlot.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/**
* Retrieves the date and time corresponding to a given Solana slot number.
*
* @param {string} endpoint - The Solana network endpoint to connect to.
* @param {number} slot - The Solana slot number for which to retrieve the timestamp.
* @returns {Promise<Date>} - A promise that resolves to a Date object representing the timestamp for the given slot.
* @throws {Error} - Throws an error if unable to fetch the block time for the given slot.
*
* @example
* ```
* const endpoint = 'https://api.mainnet-beta.solana.com';
* const slot = 123456789; // Example slot number
*
* try {
* const timestamp = await getTimestampFromSlot(endpoint, slot);
* console.log('Date for slot:', timestamp);
* } catch (error) {
* console.error('Error getting date for slot:', error);
* }
* ```
*/
export declare function getTimestampFromSlot(endpoint: string, slot: number): Promise<Date>;
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.3";
export declare const VERSION = "0.2.4";
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.

2 changes: 1 addition & 1 deletion docs/functions/delegateStake.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/getAllStakeRewardsByPubkey.html

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/functions/getCurrentEpoch.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/getLastStakingReward.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/getMagicEdenOwner.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/getNftAttributes.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/getNftOwnerByTokenMint.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/getNftsByWalletAddress.html

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/getSPLTokenBalance.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/getSolBalance.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/getStakeAccounts.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/isValidatorActive.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/solanaTransfer.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/index.html

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion docs/modules.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/types/Attribute.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/types/Creator.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/types/DigitalAsset.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/types/File.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/types/NftMetadata.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/types/ParsedStakeAccount.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/types/Properties.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/types/RewardDataResponse.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/types/StakeAuthorized.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/types/StakeDelegation.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/types/StakeDetails.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/types/StakeInfo.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/types/StakeLockup.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/types/StakeMeta.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/types/StakeRewardParams.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/types/ValidatorStatusParams.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/variables/MAGIC_EDEN_ADDRESS.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@skeet-framework/solana-utils",
"version": "0.2.3",
"version": "0.2.4",
"description": "Skeet Framework Plugin - Solana Utils",
"main": "dist/index.js",
"types": "dist/src/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion src/lib/version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const VERSION = '0.2.3'
export const VERSION = '0.2.4'

0 comments on commit 8a45398

Please sign in to comment.