Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: accounts sdk #1

Merged
merged 29 commits into from
Aug 21, 2023
Merged

feat: accounts sdk #1

merged 29 commits into from
Aug 21, 2023

Conversation

thlorenz
Copy link
Contributor

@thlorenz thlorenz commented Aug 20, 2023

Summary

Add accounts SDK.

Details

Exporting a top level SDK object which requires an API key to be provided.

That object provides access to the accounts SDK via an accounts property.

Added tests (happy paths) and CI for the current implementation.

Sample Usage

const sdk = new PlatformSdk(API_KEY)
const { result, status } = await sdk.accounts.filterByType({
    accountType: 'CandyMachine',
    query: { filter: { 'data.data.price': 250 } },
    cluster: 'devnet',
    program: 'cndy3Z4yapfJBmL3ShUp5exZKqR3z33thTzeNMm2gRZ',
    limit: 2,
    offset: 0,
  })

@socket-security
Copy link

socket-security bot commented Aug 20, 2023

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Packages Version New capabilities Transitives Size Publisher
spok 1.5.5 environment +11 378 kB thlorenz

🚮 Removed packages: [email protected]

@thlorenz thlorenz marked this pull request as draft August 20, 2023 13:29
@thlorenz thlorenz marked this pull request as ready for review August 20, 2023 15:31
@thlorenz thlorenz merged commit 3e05ccd into master Aug 21, 2023
2 checks passed
@thlorenz thlorenz deleted the thlorenz/accounts branch August 21, 2023 11:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant