Skip to content

Commit

Permalink
Merge pull request solana-labs#94 from jarry-xiao/solita
Browse files Browse the repository at this point in the history
Solita: Bubblegum, Gumball Machine
  • Loading branch information
ngundotra authored Jun 7, 2022
2 parents a7c983a + 9cc4c16 commit 3e095e4
Show file tree
Hide file tree
Showing 54 changed files with 5,114 additions and 484 deletions.
1 change: 1 addition & 0 deletions contracts/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"dependencies": {
"@metaplex-foundation/amman": "^0.0.12",
"@metaplex-foundation/beet": "^0.2.0",
"@metaplex-foundation/mpl-core": "^0.0.4",
"@metaplex-foundation/mpl-token-metadata": "^2.1.1",
"@project-serum/anchor": "^0.21.0",
Expand Down
14 changes: 14 additions & 0 deletions contracts/sdk/bubblegum/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Bubblegum

This SDK uses MPL's `Solita` to generate typescript SDK for `anchor` smart-contract.

Solita is particularly helpful:
- Enums: (i.e. TokenProgramVersion)
- Complex types: (ie MetadataArgs support)
- Using typed system to identify issues with smart contract args

### Install

1. `yarn`
2. `node solita.js`
3. `import { ... } from '../sdk/bubblegum'`
Loading

0 comments on commit 3e095e4

Please sign in to comment.