Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
22 changes: 11 additions & 11 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,20 @@ clippy-%:
--deny=clippy::manual_let_else \
--deny=clippy::used_underscore_binding $(ARGS)

format-check-js-%:
cd $(call make-path,$*) && pnpm install && pnpm format $(ARGS)

format-check-%:
cargo $(nightly) fmt --check --manifest-path $(call make-path,$*)/Cargo.toml $(ARGS)

lint-js-%:
cd $(call make-path,$*) && pnpm install && pnpm lint $(ARGS)

test-js-%:
make restart-test-validator
cd $(call make-path,$*) && pnpm install && pnpm build && pnpm test $(ARGS)
make stop-test-validator

powerset-%:
cargo $(nightly) hack check --feature-powerset --all-targets --manifest-path $(call make-path,$*)/Cargo.toml $(ARGS)

Expand Down Expand Up @@ -80,17 +91,6 @@ test-doc-%:
test-%:
SBF_OUT_DIR=$(PWD)/target/deploy cargo $(nightly) test --manifest-path $(call make-path,$*)/Cargo.toml $(ARGS)

format-check-js-%:
cd $(call make-path,$*) && pnpm install && pnpm format $(ARGS)

lint-js-%:
cd $(call make-path,$*) && pnpm install && pnpm lint $(ARGS)

test-js-%:
make restart-test-validator
cd $(call make-path,$*) && pnpm install && pnpm build && pnpm test $(ARGS)
make stop-test-validator

restart-test-validator:
./scripts/restart-test-validator.sh

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ different token standards. If you are building an app with a mint/token and find
advantage of some of the latest features of a specific token program, this might be for you!

- **Program ID:** `TwRapQCDhWkZRrDaHfZGuHxkZ91gHDRkyuzNqeU5MgR`
- **IDL:** [`./program/idl.json`](./program/idl.json)
- **IDL:** [`./idl.json`](./idl.json)
- **Docs & SDK Guide:** https://www.solana-program.com/docs/token-wrap

## Features
Expand Down
15 changes: 0 additions & 15 deletions codama.json

This file was deleted.

10 changes: 10 additions & 0 deletions codama.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
export default {
idl: 'idl.json',
before: [],
scripts: {
js: {
from: '@codama/renderers-js',
args: ['clients/js', { syncPackageJson: true }],
},
},
};
File renamed without changes.
2 changes: 1 addition & 1 deletion program/idl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -659,4 +659,4 @@ const codama = createFromRoot(
),
);

writeFileSync("program/idl.json", JSON.stringify(codama.getRoot(), null, 2));
writeFileSync("idl.json", JSON.stringify(codama.getRoot(), null, 2));
Loading