Directories
¶
| Path | Synopsis |
|---|---|
|
Package assets embeds SunSail's static Solidity and project assets into the binary (ARCHITECTURE §1.6), so a single `sun` executable needs no satellite files at runtime.
|
Package assets embeds SunSail's static Solidity and project assets into the binary (ARCHITECTURE §1.6), so a single `sun` executable needs no satellite files at runtime. |
|
cmd
|
|
|
sun
command
Command sun is the SunSail CLI: a single static binary for TRON smart-contract development.
|
Command sun is the SunSail CLI: a single static binary for TRON smart-contract development. |
|
internal
|
|
|
abi
Package abi computes function selectors and encodes call arguments for the subset of ABI types that sun estimate and the S5 cheatcodes need.
|
Package abi computes function selectors and encodes call arguments for the subset of ABI types that sun estimate and the S5 cheatcodes need. |
|
address
Package address converts between the two representations of a TRON address: Base58Check ("T..." — 34 characters) and 21-byte hex with the 0x41 prefix.
|
Package address converts between the two representations of a TRON address: Base58Check ("T..." — 34 characters) and 21-byte hex with the 0x41 prefix. |
|
audit
Package audit runs Aderyn with controlled per-file degradation, a TVM rule post-filter, and multiple output formats.
|
Package audit runs Aderyn with controlled per-file degradation, a TVM rule post-filter, and multiple output formats. |
|
cli
Package cli renders domain results to the terminal (raw ANSI or --json) and hosts the command implementations wired by cmd/sun.
|
Package cli renders domain results to the terminal (raw ANSI or --json) and hosts the command implementations wired by cmd/sun. |
|
compiler
Package compiler drives solc-tron as the sole Solidity import resolver (ARCHITECTURE §5.2).
|
Package compiler drives solc-tron as the sole Solidity import resolver (ARCHITECTURE §5.2). |
|
config
Package config resolves the cross-platform SAIL_HOME data directory (paths.go) and decodes the project's sail.toml with strict validation: unknown keys and type mismatches are errors carrying a line number, and every declared network must expose separate FullNode and Solidity gRPC endpoints (config.go).
|
Package config resolves the cross-platform SAIL_HOME data directory (paths.go) and decodes the project's sail.toml with strict validation: unknown keys and type mismatches are errors carrying a line number, and every declared network must expose separate FullNode and Solidity gRPC endpoints (config.go). |
|
crypto
Package crypto performs secp256k1 signing and public-key recovery with the mandatory TRON format transform (ARCHITECTURE §5.1).
|
Package crypto performs secp256k1 signing and public-key recovery with the mandatory TRON format transform (ARCHITECTURE §5.1). |
|
rpc
Package rpc owns all TRON network communication: gRPC-only, one ClientConn per (network, service Wallet|WalletSolidity), transaction construction byte rules, chain-parameter sourcing, and the EstimateEnergy capability fallback (ARCHITECTURE §5.4/§5.7).
|
Package rpc owns all TRON network communication: gRPC-only, one ClientConn per (network, service Wallet|WalletSolidity), transaction construction byte rules, chain-parameter sourcing, and the EstimateEnergy capability fallback (ARCHITECTURE §5.4/§5.7). |
|
rpc/rpctest
Package rpctest provides an in-process gRPC server implementing the protocol.Wallet and protocol.WalletSolidity services with programmable responses.
|
Package rpctest provides an in-process gRPC server implementing the protocol.Wallet and protocol.WalletSolidity services with programmable responses. |
|
runner
Package runner discovers *.t.sol tests, dispatches cheatcodes, and produces deterministic output over a worker pool.
|
Package runner discovers *.t.sol tests, dispatches cheatcodes, and produces deterministic output over a worker pool. |
|
scaffold
Package scaffold materializes a new SunSail project from the embedded templates (the `sun init` command).
|
Package scaffold materializes a new SunSail project from the embedded templates (the `sun init` command). |
|
script
Package script builds a full sequential transaction plan (txid-derived CREATE addresses) and broadcasts it under a confirmation policy.
|
Package script builds a full sequential transaction plan (txid-derived CREATE addresses) and broadcasts it under a confirmation policy. |
|
state
Package state provides StateDB backends: an in-memory backend for pure tests (this file) and, from S6 on, a pinned-fork backend (lazy gRPC fetch, LRU, singleflight).
|
Package state provides StateDB backends: an in-memory backend for pure tests (this file) and, from S6 on, a pinned-fork backend (lazy gRPC fetch, LRU, singleflight). |
|
tvm
Package tvm implements the TRON Virtual Machine interpreter, exact precompiles, CREATE/CREATE2 derivation, and basic energy metering.
|
Package tvm implements the TRON Virtual Machine interpreter, exact precompiles, CREATE/CREATE2 derivation, and basic energy metering. |
|
test
|
|
|
e2e
Package e2e holds the end-to-end harness: it builds the real sun binary and drives full command flows via os/exec in a temporary directory.
|
Package e2e holds the end-to-end harness: it builds the real sun binary and drives full command flows via os/exec in a temporary directory. |
Click to show internal directories.
Click to hide internal directories.