Skip to content

Commit 0a20393

Browse files
authored
Move the IDL to the repository root (#531)
1 parent 243e1c9 commit 0a20393

6 files changed

Lines changed: 23 additions & 28 deletions

File tree

Makefile

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,20 @@ clippy-%:
4444
--deny=clippy::manual_let_else \
4545
--deny=clippy::used_underscore_binding $(ARGS)
4646

47+
format-check-js-%:
48+
cd $(call make-path,$*) && pnpm install && pnpm format $(ARGS)
49+
4750
format-check-%:
4851
cargo $(nightly) fmt --check --manifest-path $(call make-path,$*)/Cargo.toml $(ARGS)
4952

53+
lint-js-%:
54+
cd $(call make-path,$*) && pnpm install && pnpm lint $(ARGS)
55+
56+
test-js-%:
57+
make restart-test-validator
58+
cd $(call make-path,$*) && pnpm install && pnpm build && pnpm test $(ARGS)
59+
make stop-test-validator
60+
5061
powerset-%:
5162
cargo $(nightly) hack check --feature-powerset --all-targets --manifest-path $(call make-path,$*)/Cargo.toml $(ARGS)
5263

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

83-
format-check-js-%:
84-
cd $(call make-path,$*) && pnpm install && pnpm format $(ARGS)
85-
86-
lint-js-%:
87-
cd $(call make-path,$*) && pnpm install && pnpm lint $(ARGS)
88-
89-
test-js-%:
90-
make restart-test-validator
91-
cd $(call make-path,$*) && pnpm install && pnpm build && pnpm test $(ARGS)
92-
make stop-test-validator
93-
9494
restart-test-validator:
9595
./scripts/restart-test-validator.sh
9696

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ different token standards. If you are building an app with a mint/token and find
99
advantage of some of the latest features of a specific token program, this might be for you!
1010

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

1515
## Features

codama.json

Lines changed: 0 additions & 15 deletions
This file was deleted.

codama.mjs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
export default {
2+
idl: 'idl.json',
3+
before: [],
4+
scripts: {
5+
js: {
6+
from: '@codama/renderers-js',
7+
args: ['clients/js', { syncPackageJson: true }],
8+
},
9+
},
10+
};
File renamed without changes.

program/idl.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -659,4 +659,4 @@ const codama = createFromRoot(
659659
),
660660
);
661661

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

0 commit comments

Comments
 (0)