@typesol/cli 0.45.0 → 0.46.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +227 -0
- package/README.md +64 -17
- package/SECURITY.md +9 -7
- package/dist/bin.d.ts +2 -0
- package/dist/bin.js +9 -0
- package/dist/cli.js +33 -15
- package/dist/compiler/analyze.js +57 -6
- package/dist/compiler/diagnostics.d.ts +4 -3
- package/dist/compiler/diagnostics.js +10 -6
- package/dist/compiler/emit/base.d.ts +1 -1
- package/dist/compiler/emit/calls.js +18 -5
- package/dist/compiler/emit/cpi-core.d.ts +3 -1
- package/dist/compiler/emit/cpi-core.js +8 -4
- package/dist/compiler/emit/expressions.d.ts +14 -0
- package/dist/compiler/emit/expressions.js +52 -4
- package/dist/compiler/emit/shared.d.ts +8 -1
- package/dist/compiler/emit/shared.js +8 -1
- package/dist/compiler/emit/statements.d.ts +8 -3
- package/dist/compiler/emit/statements.js +68 -3
- package/dist/compiler/emit/storage.js +5 -1
- package/dist/compiler/hints.d.ts +7 -0
- package/dist/compiler/hints.js +58 -9
- package/dist/compiler/index.d.ts +5 -0
- package/dist/compiler/index.js +10 -1
- package/dist/compiler/model.js +3 -2
- package/dist/compiler/toolchain.d.ts +50 -2
- package/dist/compiler/toolchain.js +96 -11
- package/dist/node-version.d.ts +4 -0
- package/dist/node-version.js +12 -0
- package/dist/tools/doctor.d.ts +41 -0
- package/dist/tools/doctor.js +96 -14
- package/dist/workspace.d.ts +9 -2
- package/dist/workspace.js +13 -3
- package/docker/deps/0.46.0.lock.json +1206 -0
- package/docs/ai.md +2 -1
- package/docs/architecture.md +7 -3
- package/docs/audit.md +6 -6
- package/docs/case-study-phoenix.md +1 -1
- package/docs/case-study-raydium-amm.md +1 -1
- package/docs/case-study-spl-stake-pool.md +1 -1
- package/docs/cli.md +42 -4
- package/docs/errors.md +22 -8
- package/docs/glossary.md +210 -0
- package/docs/language-accounts.md +499 -0
- package/docs/language-basics.md +389 -0
- package/docs/language-builtins.md +411 -0
- package/docs/language-chain.md +198 -0
- package/docs/language-cpi.md +470 -0
- package/docs/language-errors-events.md +184 -0
- package/docs/language-native.md +493 -0
- package/docs/language-pdas.md +198 -0
- package/docs/language-statements.md +620 -0
- package/docs/language-types.md +601 -0
- package/docs/language.md +190 -467
- package/docs/mainnet.md +18 -3
- package/docs/migrate-from-anchor.md +7 -6
- package/docs/security-model.md +3 -3
- package/docs/stability.md +3 -1
- package/docs/test-your-program.md +52 -15
- package/docs/troubleshooting.md +222 -100
- package/lib/typesol.d.ts +67 -22
- package/llms-full.txt +4915 -634
- package/llms.txt +12 -1
- package/package.json +2 -2
- package/releases/0.45.0.json +732 -0
- package/ts-plugin/index.js +16 -5
package/llms.txt
CHANGED
|
@@ -8,7 +8,18 @@ The rules and the whole reference in one file: https://typesol.com/llms-full.txt
|
|
|
8
8
|
|
|
9
9
|
## Docs
|
|
10
10
|
|
|
11
|
-
- [language](https://typesol.com/docs/language/):
|
|
11
|
+
- [language](https://typesol.com/docs/language/): the language guide: an overview, its pages and where each construct is described
|
|
12
|
+
- [language-basics](https://typesol.com/docs/language-basics/): what a program is: instructions, account data, helpers, constants, files
|
|
13
|
+
- [language-types](https://typesol.com/docs/language-types/): integers, strings, enums, structs, options and lists, with their bytes and limits
|
|
14
|
+
- [language-statements](https://typesol.com/docs/language-statements/): which TypeScript is TypeSOL, functions and closures, and what is refused
|
|
15
|
+
- [language-accounts](https://typesol.com/docs/language-accounts/): account parameters, the checks they emit, constraints and account layouts
|
|
16
|
+
- [language-pdas](https://typesol.com/docs/language-pdas/): seeds, bumps, signing as a PDA, PDAs in the IDL
|
|
17
|
+
- [language-errors-events](https://typesol.com/docs/language-errors-events/): require, error codes, logs, events and return values
|
|
18
|
+
- [language-cpi](https://typesol.com/docs/language-cpi/): calling other programs: System, tokens, Metaplex, Stake, invoke, transfer hooks
|
|
19
|
+
- [language-chain](https://typesol.com/docs/language-chain/): sysvars, hashes, signatures, introspection, oracles and randomness
|
|
20
|
+
- [language-native](https://typesol.com/docs/language-native/): advanced: porting native programs (raw views, Borsh accounts, panics)
|
|
21
|
+
- [language-builtins](https://typesol.com/docs/language-builtins/): every name typesol exports, one line each
|
|
22
|
+
- [glossary](https://typesol.com/docs/glossary/): the Solana and TypeSOL terms the guide uses, one paragraph each
|
|
12
23
|
- [errors](https://typesol.com/docs/errors/): the error codes a program fails with
|
|
13
24
|
- [test-your-program](https://typesol.com/docs/test-your-program/): tests with typesol/testing in LiteSVM
|
|
14
25
|
- [cli](https://typesol.com/docs/cli/): the typesol commands
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@typesol/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.46.0",
|
|
4
4
|
"description": "Compile a TypeScript-syntax language directly to Solana SBF programs.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"bin": {
|
|
8
|
-
"typesol": "dist/
|
|
8
|
+
"typesol": "dist/bin.js"
|
|
9
9
|
},
|
|
10
10
|
"types": "./lib/typesol.d.ts",
|
|
11
11
|
"exports": {
|