Main repository for the Linera protocol
541 matches across 9 categories. Click a row to expand file-level details.
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | spellcheck-cfg.toml | 1 | # cargo-spellcheck config |
| LOW | spellcheck-cfg.toml | 21 | # This must be in a directory in which hunspell looks for dictionaries. |
| LOW | spellcheck-cfg.toml | 41 | # Transforms words that are provided by the tokenizer |
| LOW | spellcheck-cfg.toml | 61 | [NlpRules] |
| LOW | …2e/tests/burn_completion_requires_on_chain_evidence.rs | 1 | // Copyright (c) Zefchain Labs, Inc. |
| LOW | linera-bridge/tests/e2e/tests/multi_tx_burn_chunking.rs | 1 | // Copyright (c) Zefchain Labs, Inc. |
| LOW | …e/tests/multiple_burns_same_recipient_across_blocks.rs | 1 | // Copyright (c) Zefchain Labs, Inc. |
| LOW | linera-bridge/tests/e2e/tests/burns_per_evm_tx.rs | 41 | const MAX_SEARCH_N: u32 = 1000; |
| LOW | linera-bridge/tests/e2e/tests/auto_deposit_scan.rs | 1 | // Copyright (c) Zefchain Labs, Inc. |
| LOW | …ra-bridge/tests/e2e/tests/multiple_burns_same_block.rs | 1 | // Copyright (c) Zefchain Labs, Inc. |
| LOW | linera-bridge/src/main.rs | 81 | /// evm-bridge Linera ApplicationId (hex). |
| LOW | linera-bridge/src/abi.rs | 1 | // Copyright (c) Zefchain Labs, Inc. |
| LOW | linera-bridge/src/abi.rs | 41 | /// |
| LOW | linera-bridge/src/proof/gen.rs | 1 | // Copyright (c) Zefchain Labs, Inc. |
| LOW | linera-bridge/src/proof/gen.rs | 41 | /// All data needed to submit a `ProcessDeposit` operation to the evm-bridge app. |
| LOW | linera-bridge/src/proof/mod.rs | 1 | // Copyright (c) Zefchain Labs, Inc. |
| LOW | linera-bridge/src/proof/mod.rs | 21 | //! 3. **`decode_receipt_logs`** — Decode the receipt's RLP to extract its event logs. |
| LOW | linera-bridge/src/proof/mod.rs | 41 | //! // 1. Decode the block header to get the receipts root. |
| LOW | linera-bridge/src/monitor/db.rs | 1 | // Copyright (c) Zefchain Labs, Inc. |
| LOW | linera-bridge/src/monitor/mod.rs | 61 | /// |
| LOW | linera-bridge/src/monitor/mod.rs | 121 | /// `Ord` is keyed solely on `height`, so a `BTreeSet<PendingBurnsAtHeight>` |
| LOW | linera-bridge/src/relay/mod.rs | 1 | // Copyright (c) Zefchain Labs, Inc. |
| LOW | docker/docker-compose.bridge-mainnet.yml | 1 | # Long-running linera-bridge relayer. |
| LOW | docker/docker-compose.bridge-mainnet.yml | 21 | # 4. Ensure the tmpfs cache dir exists, owned root and mode 0700: |
| LOW | docker/docker-compose.alloy.yml | 1 | # Docker Compose override file to enable Grafana Alloy for central observability |
| LOW | linera-base/src/data_types.rs | 41 | }; |
| LOW | linera-base/src/data_types.rs | 161 | |
| LOW | linera-base/src/data_types.rs | 181 | |
| LOW | linera-base/src/data_types.rs | 581 | /// A number of blobs to publish. |
| LOW | linera-base/src/data_types.rs | 601 | #[derive(Clone, Debug, Deserialize, Serialize, WitLoad, WitType)] |
| LOW | linera-base/src/data_types.rs | 1221 | pub mandatory_applications: Vec<ApplicationId>, |
| LOW | linera-base/src/data_types.rs | 1881 | /// A collection of applications: If `Some`, only bundles with at least one message by any |
| LOW | linera-base/src/identifiers.rs | 261 | Data, |
| LOW | linera-base/src/identifiers.rs | 521 | #[derive(Debug, WitLoad, WitStore, WitType, Allocative)] |
| LOW | linera-base/src/identifiers.rs | 1461 | } |
| LOW | linera-base/src/identifiers.rs | 1481 | // * BCS body (32 raw bytes for [u8; 32]) |
| LOW | linera-base/src/lib.rs | 61 | /// |
| LOW | linera-base/src/lib.rs | 81 | /// Formats a byte sequence as a hexadecimal string, and elides bytes in the middle if it is longer |
| LOW | linera-base/src/lib.rs | 101 | /// }; |
| LOW | linera-base/src/lib.rs | 121 | f, |
| LOW | linera-base/src/lib.rs | 141 | /// byte_vecs: Vec<Vec<u8>>, |
| LOW | linera-base/src/task.rs | 21 | /// |
| LOW | linera-base/src/unit_tests.rs | 21 | #[test_case(&AccountPublicKey::test_key(255); "of_public_key")] |
| LOW | linera-base/src/task_processor.rs | 1 | // Copyright (c) Facebook, Inc. and its affiliates. |
| LOW | linera-base/src/task_processor.rs | 21 | /// processTaskOutcome(outcome: TaskOutcome!) |
| LOW | linera-base/src/crypto/mod.rs | 81 | /// Ed25519 signature. |
| LOW | web/@linera/client/src/client.rs | 21 | /// The full client API, exposed to the wallet implementation. Calls |
| LOW | web/@linera/client/src/client.rs | 101 | /// nothing. |
| LOW | web/@linera/client/src/client.rs | 141 | } |
| LOW | web/@linera/client/src/faucet.rs | 21 | |
| LOW | web/@linera/client/src/lock.rs | 1 | // Copyright (c) Zefchain Labs, Inc. |
| LOW | web/@linera/client/src/lock.rs | 41 | /// An exclusive lock on a named resource, backed by the Web Locks API. |
| LOW | web/@linera/client/src/lock.rs | 61 | /// This uses the Web Locks API with the `ifAvailable` option, meaning it will |
| LOW | web/@linera/client/src/chain/mod.rs | 101 | /// # Errors |
| LOW | web/@linera/client/src/chain/application.rs | 21 | pub struct QueryOptions { |
| LOW | linera-indexer/graphql-client/src/indexer.rs | 1 | // Copyright (c) Zefchain Labs, Inc. |
| LOW | linera-indexer/graphql-client/src/operations.rs | 1 | // Copyright (c) Zefchain Labs, Inc. |
| LOW | linera-indexer/lib/src/rocks_db.rs | 21 | #[derive(clap::Parser, Clone, Debug)] |
| LOW | linera-storage-service/src/client.rs | 41 | RequestWriteBatchExtended, Statement, |
| LOW | linera-storage-service/src/lib.rs | 1 | // Copyright (c) Zefchain Labs, Inc. |
| 414 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | linera-faucet/server/src/tests.rs | 684 | // Step 1: Daily claim should fail before initial claim. |
| LOW | linera-faucet/server/src/tests.rs | 691 | // Step 2: Do the initial claim to create a chain. |
| LOW | linera-faucet/server/src/tests.rs | 699 | // Step 3: Daily claim should fail in period 0 (same period as initial claim). |
| LOW | linera-faucet/server/src/tests.rs | 706 | // Step 4: Advance clock by 25 hours to enter period 1. |
| LOW | linera-faucet/server/src/tests.rs | 710 | // Step 5: Daily claim should now succeed. |
| LOW | linera-faucet/server/src/tests.rs | 719 | // Step 6: Second daily claim in the same period should fail. |
| LOW | linera-faucet/server/src/tests.rs | 726 | // Step 7: Advance clock by another 24 hours to enter period 2. |
| LOW | examples/bridge-demo/index.html | 550 | // Step 1: Approve + Deposit on EVM |
| LOW | examples/bridge-demo/index.html | 562 | // Step 3: Wait for relay to auto-detect and process the deposit |
| LOW | examples/bridge-demo/index.html | 596 | // Step 1: Transfer wrapped tokens to bridge chain with Address20 owner |
| LOW | examples/bridge-demo/index.html | 612 | // Step 2: Wait for relay to forward block |
| LOW | examples/bridge-demo/index.html | 615 | // Step 3: Poll EVM balance |
| LOW | linera-core/src/unit_tests/worker_tests.rs | 4575 | // Step 1: Create two transfer certificates from chain_1 to chain_2. |
| LOW | linera-core/src/unit_tests/worker_tests.rs | 4597 | // Step 2: Process both certs on chain_1 (adds heights 0, 1 to outbox for chain_2). |
| LOW | linera-core/src/unit_tests/worker_tests.rs | 4605 | // Step 3: Deliver height 0 to chain_2 and confirm it on chain_1. |
| LOW | linera-core/src/unit_tests/worker_tests.rs | 4616 | // Step 4: Send a spurious ConfirmUpdatedRecipient that claims chain_2 already |
| LOW | linera-core/src/unit_tests/worker_tests.rs | 4637 | // Step 5: Create cert_2 from chain_1 (height 2), process it on chain_1, and |
| LOW | linera-core/src/unit_tests/worker_tests.rs | 4682 | // Step 7: Verify recovery — chain_2 received all three heights. |
| LOW | linera-core/src/unit_tests/worker_tests.rs | 4733 | // Step 1: Create and fully process block 0 (transfer from chain to target). |
| LOW | linera-core/src/unit_tests/worker_tests.rs | 4757 | // Step 2: Plant a confirmed vote in the chain manager. After the reset, it must |
| LOW | linera-core/src/unit_tests/worker_tests.rs | 4768 | // Step 3: Corrupt `previous_message_blocks` in storage. This directly affects |
| LOW | linera-core/src/unit_tests/worker_tests.rs | 4783 | // Step 3: Create block 1 certificate. |
| LOW | linera-core/src/unit_tests/worker_tests.rs | 4795 | // Step 4: Verify that WITHOUT recovery, processing fails with CorruptedChainState. |
| LOW | linera-core/src/unit_tests/worker_tests.rs | 4855 | // Step 5: Now create a worker WITH recovery enabled and a whitelist that |
| LOW | linera-core/src/unit_tests/worker_tests.rs | 4899 | // Step 6: Verify recovery — chain should be at height 2 with correct state. |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | linera-bridge/tests/e2e/tests/auto_deposit_scan.rs | 356 | // ══════════════════════════════════════════════════════════════════ |
| MEDIUM | linera-bridge/tests/e2e/tests/auto_deposit_scan.rs | 358 | // ══════════════════════════════════════════════════════════════════ |
| MEDIUM | linera-bridge/tests/e2e/tests/auto_deposit_scan.rs | 447 | // ══════════════════════════════════════════════════════════════════ |
| MEDIUM | linera-bridge/tests/e2e/tests/auto_deposit_scan.rs | 449 | // ══════════════════════════════════════════════════════════════════ |
| MEDIUM | linera-bridge/tests/e2e/tests/evm_to_linera_bridge.rs | 43 | // ── Solidity interfaces for EVM calls ─────────────────────────────────────── |
| MEDIUM | scripts/deploy-validator.sh | 52 | # ----------------------------------------------------------------------------- |
| MEDIUM | scripts/deploy-validator.sh | 54 | # ----------------------------------------------------------------------------- |
| MEDIUM | scripts/deploy-validator.sh | 80 | # ----------------------------------------------------------------------------- |
| MEDIUM | scripts/deploy-validator.sh | 82 | # ----------------------------------------------------------------------------- |
| MEDIUM | scripts/deploy-validator.sh | 745 | # ----------------------------------------------------------------------------- |
| MEDIUM | scripts/deploy-validator.sh | 747 | # ----------------------------------------------------------------------------- |
| MEDIUM | .github/scripts/format-bench-results.sh | 28 | # ── Formatting helpers ─────────────────────────────────────────────────────── |
| MEDIUM | .github/scripts/format-bench-results.sh | 86 | # ── Read benchmark data from JSON files ────────────────────────────────────── |
| MEDIUM | .github/scripts/format-bench-results.sh | 159 | # ── Markdown output ────────────────────────────────────────────────────────── |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | docker/compose-scylla-setup.sh | 25 | # Check if running with sufficient privileges |
| LOW | docker/compose-scylla-setup.sh | 243 | # Check if config already exists |
| LOW | scripts/deploy-validator.sh | 217 | # Check if a command exists |
| LOW | scripts/deploy-validator.sh | 222 | # Check if Docker Compose plugin is installed |
| LOW | scripts/deploy-validator.sh | 394 | # Check if we should skip genesis download |
| LOW | scripts/deploy-validator.sh | 431 | # Check if wget is available |
| LOW | scripts/deploy-validator.sh | 459 | # Check if genesis configuration already exists |
| LOW | scripts/deploy-validator.sh | 637 | # Check if path exists |
| LOW | scripts/deploy-validator.sh | 644 | # Check if path is mounted |
| LOW | scripts/deploy-validator.sh | 912 | # Check if XFS is configured (optional - just for information) |
| LOW | scripts/check_chain_loads.sh | 3 | # Check if there aren't any unexpected chain load operations |
| LOW | scripts/backup-validator-keys.sh | 29 | # Check if container exists and is running |
| LOW | scripts/backup-validator-keys.sh | 40 | # Check if path exists in container |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | docker/compose-scylla-setup.sh | 69 | # Based on ScyllaDB documentation and best practices |
| MEDIUM | linera-service/src/cli/validator_benchmark/tip_lag.rs | 52 | // chain, so this is the robust source. NOTE: it is the genesis committee; |
| MEDIUM | linera-core/src/chain_worker/state.rs | 670 | // Verify the certificate. Returns a catch-all error to make client code more robust. |
| MEDIUM | linera-core/src/chain_worker/state.rs | 764 | // Verify the certificate. Returns a catch-all error to make client code more robust. |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | docker/compose-scylla-setup.sh | 304 | # Create a flag file to indicate setup is complete |
| MEDIUM | scripts/deploy-validator.sh | 1065 | # This file is the source of truth for Docker Compose configuration |
| MEDIUM | scripts/fix-validator-env.sh | 61 | # This file is now the source of truth for Docker Compose configuration |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | docker/docker-compose.alloy.yml | 3 | # Usage: |
| LOW | examples/bridge-demo/setup.sh | 8 | # Usage: |
| LOW | examples/bridge-demo/spawn-relayer.sh | 9 | # Usage: |
| LOW | scripts/test_publish.sh | 10 | # Usage: |
| LOW | scripts/memleak_translate.sh | 9 | # Usage: |
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | linera-views/src/batch.rs | 37 | /// A write operation as requested by a view when it needs to persist staged changes. |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | linera-execution/build.rs | 17 | // If you change this, don't forget to update `WasmRuntime` and |
| MEDIUM | examples/counter-no-graphql/src/service.rs | 44 | // Check that they are equal (for demonstration purposes) |