@typesol/cli 0.48.0 → 0.49.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 +159 -1
- package/NOTICE +8 -1
- package/README.md +103 -41
- package/SECURITY.md +5 -0
- package/dist/compiler/emit/base.d.ts +6 -4
- package/dist/compiler/emit/base.js +11 -5
- package/dist/compiler/emit/calls.js +41 -1
- package/dist/compiler/emit/expressions.js +3 -1
- package/dist/compiler/emit/program.js +4 -4
- package/dist/compiler/emit/storage.js +8 -3
- package/dist/compiler/hints.js +3 -0
- package/docker/deps/0.49.0.lock.json +1206 -0
- package/docs/architecture.md +2 -2
- package/docs/audit.md +30 -14
- package/docs/case-study-escrow.md +7 -5
- package/docs/case-study-marginfi.md +15 -2
- package/docs/case-study-multisig.md +2 -1
- package/docs/case-study-raydium-amm.md +2 -1
- package/docs/case-study-spl-stake-pool.md +4 -3
- package/docs/language-accounts.md +5 -6
- package/docs/language-builtins.md +3 -1
- package/docs/language-errors-events.md +1 -1
- package/docs/language-native.md +23 -3
- package/docs/language-statements.md +3 -2
- package/docs/language.md +2 -2
- package/docs/mainnet.md +1 -1
- package/docs/runtime.md +7 -0
- package/docs/security-model.md +11 -4
- package/docs/stability.md +9 -4
- package/docs/testing.md +16 -4
- package/docs/troubleshooting.md +1 -1
- package/lib/typesol.d.ts +19 -1
- package/llms-full.txt +62 -28
- package/llms.txt +2 -1
- package/package.json +3 -3
- package/releases/0.48.0.json +847 -0
- package/runtime/typesol_rt.h +2 -1
package/runtime/typesol_rt.h
CHANGED
|
@@ -77,7 +77,8 @@ static __attribute__((noinline)) uint64_t ts_fail(uint64_t code, const char *msg
|
|
|
77
77
|
#ifdef TS_PANIC_ON_OVERFLOW
|
|
78
78
|
/* PANIC_ON_OVERFLOW: arithmetic fails as a Rust `checked_*().unwrap()` does, with a panic (ProgramFailedToComplete). */
|
|
79
79
|
#ifdef TS_PANIC_ABORT
|
|
80
|
-
/* PANIC_STYLE "solana-1.14": a panic ends in the abort syscall ("SBF
|
|
80
|
+
/* PANIC_STYLE "solana-1.14" or "solana-1.18" (with PANIC_ON_OVERFLOW): a panic ends in the abort syscall ("SBF
|
|
81
|
+
* program panicked"), as those solana_program panic handlers' do. */
|
|
81
82
|
if (code == TS_ERR_OVERFLOW || code == TS_ERR_DIV_ZERO) abort();
|
|
82
83
|
#else
|
|
83
84
|
if (code == TS_ERR_OVERFLOW || code == TS_ERR_DIV_ZERO) sol_panic_("", 0, 0, 0);
|