Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
241 changes: 239 additions & 2 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ cargo-nightly:
cargo $(nightly) $(ARGS)

generate-clients:
@echo "No JavaScript clients to generate"
cargo $(nightly) run -p pinocchio-associated-token-account-interface --features codama --bin generate-idl

audit:
cargo audit \
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# associated-token-account
The SPL Associated Token Account program and its clients
The SPL Associated Token Account program
11 changes: 11 additions & 0 deletions pinocchio/interface/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,18 @@ edition = "2021"
[lib]
crate-type = ["rlib"]

[[bin]]
name = "generate-idl"
path = "src/bin/generate-idl.rs"
required-features = ["codama"]

[features]
codama = ["dep:codama", "dep:codama-macros", "dep:serde_json"]

[dependencies]
codama = { version = "0.7.3", optional = true }
codama-macros = { version = "0.7.3", optional = true }
serde_json = { version = "1.0.149", optional = true }
solana-address = { version = "2.2.0", features = ["decode"] }

[package.metadata.solana]
Expand Down
16 changes: 16 additions & 0 deletions pinocchio/interface/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
# `pinocchio-associated-token-account-interface`

Pinocchio instructions and types for interacting with the Associated Token Account program.

## Codama

This crate includes Codama macros and an IDL generator binary.

Generate the IDL from repo root:

```bash
cargo run -p pinocchio-associated-token-account-interface --features codama --bin generate-idl
```

This writes:

```text
pinocchio/interface/idl.json
```
Loading