repo stringlengths 6 65 | file_url stringlengths 81 311 | file_path stringlengths 6 227 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-04 15:31:58 2026-01-04 20:25:31 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
linera-io/linera-protocol | https://github.com/linera-io/linera-protocol/blob/69f159d2106f7fc70870ce70074c55850bf1303b/linera-sdk/src/base/conversions_from_wit.rs | linera-sdk/src/base/conversions_from_wit.rs | // Copyright (c) Zefchain Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
//! Conversions from types generated by [`wit-bindgen`] to types declared in [`linera-sdk`].
use linera_base::{
crypto::CryptoHash,
data_types::{Amount, BlockHeight, TimeDelta, Timestamp},
http,
identifiers::{AccountOwner, App... | rust | Apache-2.0 | 69f159d2106f7fc70870ce70074c55850bf1303b | 2026-01-04T15:33:08.660695Z | false |
linera-io/linera-protocol | https://github.com/linera-io/linera-protocol/blob/69f159d2106f7fc70870ce70074c55850bf1303b/linera-sdk/src/base/mod.rs | linera-sdk/src/base/mod.rs | // Copyright (c) Zefchain Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
//! Types and macros for the base runtime.
mod conversions_from_wit;
mod conversions_to_wit;
| rust | Apache-2.0 | 69f159d2106f7fc70870ce70074c55850bf1303b | 2026-01-04T15:33:08.660695Z | false |
linera-io/linera-protocol | https://github.com/linera-io/linera-protocol/blob/69f159d2106f7fc70870ce70074c55850bf1303b/linera-sdk/src/base/conversions_to_wit.rs | linera-sdk/src/base/conversions_to_wit.rs | // Copyright (c) Zefchain Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
//! Conversions from types declared in [`linera-sdk`] to types generated by [`wit-bindgen`].
use linera_base::{
crypto::CryptoHash,
data_types::{BlockHeight, Timestamp},
http,
identifiers::{AccountOwner, ApplicationId, ChainId... | rust | Apache-2.0 | 69f159d2106f7fc70870ce70074c55850bf1303b | 2026-01-04T15:33:08.660695Z | false |
linera-io/linera-protocol | https://github.com/linera-io/linera-protocol/blob/69f159d2106f7fc70870ce70074c55850bf1303b/linera-sdk/src/test/mock_stubs.rs | linera-sdk/src/test/mock_stubs.rs | // Copyright (c) Zefchain Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
//! Stub functions for the API exported to unit tests.
//!
//! These can be used by mistake if running unit tests targeting the host architecture, and the
//! default compiler error of missing functions isn't very helpful. Instead, these allow... | rust | Apache-2.0 | 69f159d2106f7fc70870ce70074c55850bf1303b | 2026-01-04T15:33:08.660695Z | false |
linera-io/linera-protocol | https://github.com/linera-io/linera-protocol/blob/69f159d2106f7fc70870ce70074c55850bf1303b/linera-sdk/src/test/chain.rs | linera-sdk/src/test/chain.rs | // Copyright (c) Zefchain Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
//! A reference to a single microchain inside a [`TestValidator`].
//!
//! This allows manipulating a test microchain.
use std::{
collections::HashMap,
io,
path::{Path, PathBuf},
sync::Arc,
};
use cargo_toml::Manifest;
use fu... | rust | Apache-2.0 | 69f159d2106f7fc70870ce70074c55850bf1303b | 2026-01-04T15:33:08.660695Z | false |
linera-io/linera-protocol | https://github.com/linera-io/linera-protocol/blob/69f159d2106f7fc70870ce70074c55850bf1303b/linera-sdk/src/test/block.rs | linera-sdk/src/test/block.rs | // Copyright (c) Zefchain Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
//! A builder of [`Block`]s which are then signed to become [`Certificate`]s.
//!
//! Helps with the construction of blocks, adding operations and
use linera_base::{
abi::ContractAbi,
data_types::{Amount, ApplicationPermissions, Blob,... | rust | Apache-2.0 | 69f159d2106f7fc70870ce70074c55850bf1303b | 2026-01-04T15:33:08.660695Z | false |
linera-io/linera-protocol | https://github.com/linera-io/linera-protocol/blob/69f159d2106f7fc70870ce70074c55850bf1303b/linera-sdk/src/test/mod.rs | linera-sdk/src/test/mod.rs | // Copyright (c) Zefchain Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
//! Helper types for writing integration tests for WebAssembly applications.
//!
//! Integration tests are usually written in the `tests` directory in the root of the crate's
//! directory (i.e., beside the `src` directory). Linera application... | rust | Apache-2.0 | 69f159d2106f7fc70870ce70074c55850bf1303b | 2026-01-04T15:33:08.660695Z | false |
linera-io/linera-protocol | https://github.com/linera-io/linera-protocol/blob/69f159d2106f7fc70870ce70074c55850bf1303b/linera-sdk/src/test/validator.rs | linera-sdk/src/test/validator.rs | // Copyright (c) Zefchain Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
//! A minimal validator implementation suited for tests.
//!
//! The [`TestValidator`] is a minimal validator with a single shard. Micro-chains can be added to
//! it, and blocks can be added to each microchain individually.
use std::sync::Ar... | rust | Apache-2.0 | 69f159d2106f7fc70870ce70074c55850bf1303b | 2026-01-04T15:33:08.660695Z | false |
linera-io/linera-protocol | https://github.com/linera-io/linera-protocol/blob/69f159d2106f7fc70870ce70074c55850bf1303b/linera-sdk/src/abis/evm.rs | linera-sdk/src/abis/evm.rs | // Copyright (c) Zefchain Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
//! An ABI for applications that implement an EVM runtime.
use linera_base::{
abi::{ContractAbi, ServiceAbi},
vm::EvmQuery,
};
/// An ABI for applications that implement an EVM runtime.
#[derive(PartialEq)]
pub struct EvmAbi;
impl Co... | rust | Apache-2.0 | 69f159d2106f7fc70870ce70074c55850bf1303b | 2026-01-04T15:33:08.660695Z | false |
linera-io/linera-protocol | https://github.com/linera-io/linera-protocol/blob/69f159d2106f7fc70870ce70074c55850bf1303b/linera-sdk/src/abis/controller.rs | linera-sdk/src/abis/controller.rs | // Copyright (c) Zefchain Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
use async_graphql::{scalar, Request, Response, SimpleObject};
use linera_sdk_derive::GraphQLMutationRootInCrate;
use serde::{Deserialize, Serialize};
use crate::linera_base_types::{
AccountOwner, ApplicationId, ChainId, ContractAbi, DataB... | rust | Apache-2.0 | 69f159d2106f7fc70870ce70074c55850bf1303b | 2026-01-04T15:33:08.660695Z | false |
linera-io/linera-protocol | https://github.com/linera-io/linera-protocol/blob/69f159d2106f7fc70870ce70074c55850bf1303b/linera-sdk/src/abis/mod.rs | linera-sdk/src/abis/mod.rs | // Copyright (c) Zefchain Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
//! Common ABIs that may have multiple implementations.
pub mod controller;
pub mod evm;
pub mod fungible;
| rust | Apache-2.0 | 69f159d2106f7fc70870ce70074c55850bf1303b | 2026-01-04T15:33:08.660695Z | false |
linera-io/linera-protocol | https://github.com/linera-io/linera-protocol/blob/69f159d2106f7fc70870ce70074c55850bf1303b/linera-sdk/src/abis/fungible.rs | linera-sdk/src/abis/fungible.rs | // Copyright (c) Zefchain Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
//! An ABI for applications that implement a fungible token.
use std::collections::BTreeMap;
use async_graphql::{Request, Response};
use linera_base::{
abi::{ContractAbi, ServiceAbi},
data_types::Amount,
identifiers::{Account, Ac... | rust | Apache-2.0 | 69f159d2106f7fc70870ce70074c55850bf1303b | 2026-01-04T15:33:08.660695Z | false |
linera-io/linera-protocol | https://github.com/linera-io/linera-protocol/blob/69f159d2106f7fc70870ce70074c55850bf1303b/linera-sdk/src/views/mock_key_value_store.rs | linera-sdk/src/views/mock_key_value_store.rs | // Copyright (c) Zefchain Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
//! A mock system API for interfacing with the key-value store.
use std::{
collections::BTreeMap,
sync::{
atomic::{AtomicU32, Ordering},
Mutex,
},
};
use futures::FutureExt as _;
use linera_views::{
batch::Bat... | rust | Apache-2.0 | 69f159d2106f7fc70870ce70074c55850bf1303b | 2026-01-04T15:33:08.660695Z | false |
linera-io/linera-protocol | https://github.com/linera-io/linera-protocol/blob/69f159d2106f7fc70870ce70074c55850bf1303b/linera-sdk/src/views/system_api.rs | linera-sdk/src/views/system_api.rs | // Copyright (c) Zefchain Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
//! Functions and types to interface with the system API available to application views.
#[cfg(with_testing)]
use std::sync::Arc;
use linera_base::ensure;
use linera_views::{
batch::Batch,
store::{ReadableKeyValueStore, WithError, Wr... | rust | Apache-2.0 | 69f159d2106f7fc70870ce70074c55850bf1303b | 2026-01-04T15:33:08.660695Z | false |
linera-io/linera-protocol | https://github.com/linera-io/linera-protocol/blob/69f159d2106f7fc70870ce70074c55850bf1303b/linera-sdk/src/views/mod.rs | linera-sdk/src/views/mod.rs | // Copyright (c) Zefchain Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
//! Helper types for using [`linera_views`] to store application state.
mod aliases;
#[cfg(with_testing)]
mod mock_key_value_store;
mod system_api;
pub use linera_views::{
self,
common::CustomSerialize,
views::{RootView, View},
... | rust | Apache-2.0 | 69f159d2106f7fc70870ce70074c55850bf1303b | 2026-01-04T15:33:08.660695Z | false |
linera-io/linera-protocol | https://github.com/linera-io/linera-protocol/blob/69f159d2106f7fc70870ce70074c55850bf1303b/linera-sdk/src/views/aliases.rs | linera-sdk/src/views/aliases.rs | // Copyright (c) Zefchain Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
//! Aliases for views using the [`ViewStorageContext`].
use super::ViewStorageContext;
/// An alias to [`linera_views::collection_view::ByteCollectionView`] that uses the
/// WebAssembly-specific [`ViewStorageContext`].
pub type ByteCollecti... | rust | Apache-2.0 | 69f159d2106f7fc70870ce70074c55850bf1303b | 2026-01-04T15:33:08.660695Z | false |
linera-io/linera-protocol | https://github.com/linera-io/linera-protocol/blob/69f159d2106f7fc70870ce70074c55850bf1303b/linera-sdk/src/contract/wit.rs | linera-sdk/src/contract/wit.rs | // Copyright (c) Zefchain Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
//! Internal module with code generated by [`wit-bindgen`](https://github.com/jvff/wit-bindgen).
#![allow(missing_docs)]
// Export the contract interface.
wit_bindgen::generate!({
world: "contract",
export_macro_name: "export_contrac... | rust | Apache-2.0 | 69f159d2106f7fc70870ce70074c55850bf1303b | 2026-01-04T15:33:08.660695Z | false |
linera-io/linera-protocol | https://github.com/linera-io/linera-protocol/blob/69f159d2106f7fc70870ce70074c55850bf1303b/linera-sdk/src/contract/test_runtime.rs | linera-sdk/src/contract/test_runtime.rs | // Copyright (c) Zefchain Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
//! Runtime types to simulate interfacing with the host executing the contract.
use std::{
collections::{BTreeMap, HashMap, VecDeque},
sync::{Arc, Mutex, MutexGuard},
};
use linera_base::{
abi::{ContractAbi, ServiceAbi},
data... | rust | Apache-2.0 | 69f159d2106f7fc70870ce70074c55850bf1303b | 2026-01-04T15:33:08.660695Z | true |
linera-io/linera-protocol | https://github.com/linera-io/linera-protocol/blob/69f159d2106f7fc70870ce70074c55850bf1303b/linera-sdk/src/contract/conversions_from_wit.rs | linera-sdk/src/contract/conversions_from_wit.rs | // Copyright (c) Zefchain Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
//! Conversions from types generated by [`wit-bindgen`] to types declared in [`linera-sdk`].
use linera_base::{
crypto::CryptoHash,
data_types::{Amount, StreamUpdate},
identifiers::{
AccountOwner, ApplicationId, ChainId, D... | rust | Apache-2.0 | 69f159d2106f7fc70870ce70074c55850bf1303b | 2026-01-04T15:33:08.660695Z | false |
linera-io/linera-protocol | https://github.com/linera-io/linera-protocol/blob/69f159d2106f7fc70870ce70074c55850bf1303b/linera-sdk/src/contract/runtime.rs | linera-sdk/src/contract/runtime.rs | // Copyright (c) Zefchain Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
//! Runtime types to interface with the host executing the contract.
use linera_base::{
abi::{ContractAbi, ServiceAbi},
data_types::{
Amount, ApplicationPermissions, BlockHeight, Bytecode, Resources, SendMessageRequest,
... | rust | Apache-2.0 | 69f159d2106f7fc70870ce70074c55850bf1303b | 2026-01-04T15:33:08.660695Z | false |
linera-io/linera-protocol | https://github.com/linera-io/linera-protocol/blob/69f159d2106f7fc70870ce70074c55850bf1303b/linera-sdk/src/contract/mod.rs | linera-sdk/src/contract/mod.rs | // Copyright (c) Zefchain Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
//! Types and macros useful for writing an application contract.
mod conversions_from_wit;
mod conversions_to_wit;
#[cfg(not(with_testing))]
mod runtime;
#[cfg(with_testing)]
mod test_runtime;
#[doc(hidden)]
pub mod wit;
#[cfg(not(with_testi... | rust | Apache-2.0 | 69f159d2106f7fc70870ce70074c55850bf1303b | 2026-01-04T15:33:08.660695Z | false |
linera-io/linera-protocol | https://github.com/linera-io/linera-protocol/blob/69f159d2106f7fc70870ce70074c55850bf1303b/linera-sdk/src/contract/conversions_to_wit.rs | linera-sdk/src/contract/conversions_to_wit.rs | // Copyright (c) Zefchain Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
//! Conversions from types declared in [`linera-sdk`] to types generated by [`wit-bindgen`].
use linera_base::{
crypto::CryptoHash,
data_types::{
Amount, ApplicationPermissions, Bytecode, Resources, SendMessageRequest, TimeDel... | rust | Apache-2.0 | 69f159d2106f7fc70870ce70074c55850bf1303b | 2026-01-04T15:33:08.660695Z | false |
linera-io/linera-protocol | https://github.com/linera-io/linera-protocol/blob/69f159d2106f7fc70870ce70074c55850bf1303b/linera-sdk/tests/fixtures/create-and-call/src/contract.rs | linera-sdk/tests/fixtures/create-and-call/src/contract.rs | // Copyright (c) Zefchain Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
#![cfg_attr(target_arch = "wasm32", no_main)]
mod state;
use counter_no_graphql::{CounterNoGraphQlAbi, CounterOperation, CounterRequest};
use create_and_call::{CreateAndCallAbi, CreateAndCallOperation};
use linera_sdk::{
linera_base_type... | rust | Apache-2.0 | 69f159d2106f7fc70870ce70074c55850bf1303b | 2026-01-04T15:33:08.660695Z | false |
linera-io/linera-protocol | https://github.com/linera-io/linera-protocol/blob/69f159d2106f7fc70870ce70074c55850bf1303b/linera-sdk/tests/fixtures/create-and-call/src/lib.rs | linera-sdk/tests/fixtures/create-and-call/src/lib.rs | // Copyright (c) Zefchain Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
/*! ABI of the Create and Call Example Application that does not use GraphQL */
use std::fmt::Debug;
use linera_sdk::linera_base_types::{ContractAbi, ServiceAbi};
use serde::{Deserialize, Serialize};
pub struct CreateAndCallAbi;
impl Contr... | rust | Apache-2.0 | 69f159d2106f7fc70870ce70074c55850bf1303b | 2026-01-04T15:33:08.660695Z | false |
linera-io/linera-protocol | https://github.com/linera-io/linera-protocol/blob/69f159d2106f7fc70870ce70074c55850bf1303b/linera-sdk/tests/fixtures/create-and-call/src/state.rs | linera-sdk/tests/fixtures/create-and-call/src/state.rs | // Copyright (c) Zefchain Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
use counter_no_graphql::CounterNoGraphQlAbi;
use linera_sdk::{
linera_base_types::ApplicationId,
views::{linera_views, RegisterView, RootView, ViewStorageContext},
};
/// The application state.
#[derive(RootView)]
#[view(context = Vie... | rust | Apache-2.0 | 69f159d2106f7fc70870ce70074c55850bf1303b | 2026-01-04T15:33:08.660695Z | false |
linera-io/linera-protocol | https://github.com/linera-io/linera-protocol/blob/69f159d2106f7fc70870ce70074c55850bf1303b/linera-sdk/tests/fixtures/create-and-call/src/service.rs | linera-sdk/tests/fixtures/create-and-call/src/service.rs | // Copyright (c) Zefchain Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
#![cfg_attr(target_arch = "wasm32", no_main)]
mod state;
use std::sync::Arc;
use counter_no_graphql::CounterRequest;
use create_and_call::{CreateAndCallOperation, CreateAndCallRequest};
use linera_sdk::{linera_base_types::WithServiceAbi, vi... | rust | Apache-2.0 | 69f159d2106f7fc70870ce70074c55850bf1303b | 2026-01-04T15:33:08.660695Z | false |
linera-io/linera-protocol | https://github.com/linera-io/linera-protocol/blob/69f159d2106f7fc70870ce70074c55850bf1303b/linera-sdk/tests/fixtures/create-and-call/tests/test_create_and_call.rs | linera-sdk/tests/fixtures/create-and-call/tests/test_create_and_call.rs | // Copyright (c) Zefchain Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
//! Integration tests for the Create and Call application.
#![cfg(not(target_arch = "wasm32"))]
use linera_sdk::test::{ActiveChain, TestValidator};
/// Test creating and calling a counter application dynamically.
///
/// This test publishes... | rust | Apache-2.0 | 69f159d2106f7fc70870ce70074c55850bf1303b | 2026-01-04T15:33:08.660695Z | false |
linera-io/linera-protocol | https://github.com/linera-io/linera-protocol/blob/69f159d2106f7fc70870ce70074c55850bf1303b/linera-sdk/tests/fixtures/publish-read-data-blob/src/contract.rs | linera-sdk/tests/fixtures/publish-read-data-blob/src/contract.rs | // Copyright (c) Zefchain Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
#![cfg_attr(target_arch = "wasm32", no_main)]
mod state;
use linera_sdk::{
linera_base_types::{DataBlobHash, WithContractAbi},
Contract, ContractRuntime,
};
use publish_read_data_blob::{Operation, PublishReadDataBlobAbi};
pub struct... | rust | Apache-2.0 | 69f159d2106f7fc70870ce70074c55850bf1303b | 2026-01-04T15:33:08.660695Z | false |
linera-io/linera-protocol | https://github.com/linera-io/linera-protocol/blob/69f159d2106f7fc70870ce70074c55850bf1303b/linera-sdk/tests/fixtures/publish-read-data-blob/src/lib.rs | linera-sdk/tests/fixtures/publish-read-data-blob/src/lib.rs | // Copyright (c) Zefchain Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
/*! ABI of the Publish-Read Data Blob Example Application */
use linera_sdk::linera_base_types::{ContractAbi, DataBlobHash, ServiceAbi};
use serde::{Deserialize, Serialize};
pub struct PublishReadDataBlobAbi;
#[derive(Debug, Deserialize, Se... | rust | Apache-2.0 | 69f159d2106f7fc70870ce70074c55850bf1303b | 2026-01-04T15:33:08.660695Z | false |
linera-io/linera-protocol | https://github.com/linera-io/linera-protocol/blob/69f159d2106f7fc70870ce70074c55850bf1303b/linera-sdk/tests/fixtures/publish-read-data-blob/src/state.rs | linera-sdk/tests/fixtures/publish-read-data-blob/src/state.rs | // Copyright (c) Zefchain Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
use linera_sdk::{
linera_base_types::DataBlobHash,
views::{linera_views, RegisterView, RootView, ViewStorageContext},
};
#[derive(RootView)]
#[view(context = ViewStorageContext)]
pub struct PublishReadDataBlobState {
pub hash: Reg... | rust | Apache-2.0 | 69f159d2106f7fc70870ce70074c55850bf1303b | 2026-01-04T15:33:08.660695Z | false |
linera-io/linera-protocol | https://github.com/linera-io/linera-protocol/blob/69f159d2106f7fc70870ce70074c55850bf1303b/linera-sdk/tests/fixtures/publish-read-data-blob/src/service.rs | linera-sdk/tests/fixtures/publish-read-data-blob/src/service.rs | // Copyright (c) Zefchain Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
#![cfg_attr(target_arch = "wasm32", no_main)]
mod state;
use std::sync::Arc;
use linera_sdk::{
linera_base_types::{BlobContent, CryptoHash, DataBlobHash, WithServiceAbi},
Service, ServiceRuntime,
};
use publish_read_data_blob::{Oper... | rust | Apache-2.0 | 69f159d2106f7fc70870ce70074c55850bf1303b | 2026-01-04T15:33:08.660695Z | false |
linera-io/linera-protocol | https://github.com/linera-io/linera-protocol/blob/69f159d2106f7fc70870ce70074c55850bf1303b/linera-sdk/tests/fixtures/track-instantiation/src/contract.rs | linera-sdk/tests/fixtures/track-instantiation/src/contract.rs | // Copyright (c) Zefchain Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
#![cfg_attr(target_arch = "wasm32", no_main)]
mod state;
use linera_sdk::{
linera_base_types::WithContractAbi,
views::{RootView, View},
Contract, ContractRuntime,
};
use track_instantiation::TrackInstantiationAbi;
use self::stat... | rust | Apache-2.0 | 69f159d2106f7fc70870ce70074c55850bf1303b | 2026-01-04T15:33:08.660695Z | false |
linera-io/linera-protocol | https://github.com/linera-io/linera-protocol/blob/69f159d2106f7fc70870ce70074c55850bf1303b/linera-sdk/tests/fixtures/track-instantiation/src/lib.rs | linera-sdk/tests/fixtures/track-instantiation/src/lib.rs | // Copyright (c) Zefchain Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
/*! ABI of the Track Instantiation Load Operation Application */
use linera_sdk::linera_base_types::{ContractAbi, ServiceAbi};
use serde::{Deserialize, Serialize};
pub struct TrackInstantiationAbi;
#[derive(Debug, Clone, Serialize, Deserial... | rust | Apache-2.0 | 69f159d2106f7fc70870ce70074c55850bf1303b | 2026-01-04T15:33:08.660695Z | false |
linera-io/linera-protocol | https://github.com/linera-io/linera-protocol/blob/69f159d2106f7fc70870ce70074c55850bf1303b/linera-sdk/tests/fixtures/track-instantiation/src/state.rs | linera-sdk/tests/fixtures/track-instantiation/src/state.rs | // Copyright (c) Zefchain Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
use linera_sdk::views::{linera_views, RegisterView, RootView, ViewStorageContext};
/// The application state.
#[derive(RootView)]
#[view(context = ViewStorageContext)]
pub struct TrackInstantiationState {
pub stats: RegisterView<u64>,
}
| rust | Apache-2.0 | 69f159d2106f7fc70870ce70074c55850bf1303b | 2026-01-04T15:33:08.660695Z | false |
linera-io/linera-protocol | https://github.com/linera-io/linera-protocol/blob/69f159d2106f7fc70870ce70074c55850bf1303b/linera-sdk/tests/fixtures/track-instantiation/src/service.rs | linera-sdk/tests/fixtures/track-instantiation/src/service.rs | // Copyright (c) Zefchain Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
#![cfg_attr(target_arch = "wasm32", no_main)]
mod state;
use linera_sdk::{linera_base_types::WithServiceAbi, views::View, Service, ServiceRuntime};
use track_instantiation::{Query, TrackInstantiationAbi};
use self::state::TrackInstantiation... | rust | Apache-2.0 | 69f159d2106f7fc70870ce70074c55850bf1303b | 2026-01-04T15:33:08.660695Z | false |
linera-io/linera-protocol | https://github.com/linera-io/linera-protocol/blob/69f159d2106f7fc70870ce70074c55850bf1303b/linera-sdk/tests/fixtures/track-instantiation/tests/cross_chain.rs | linera-sdk/tests/fixtures/track-instantiation/tests/cross_chain.rs | // Copyright (c) Zefchain Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
//! Integration tests for the Fungible Token application.
#![cfg(not(target_arch = "wasm32"))]
use linera_sdk::test::TestValidator;
use track_instantiation::{Query, TrackInstantiationAbi};
/// Test transferring tokens across microchains.
//... | rust | Apache-2.0 | 69f159d2106f7fc70870ce70074c55850bf1303b | 2026-01-04T15:33:08.660695Z | false |
linera-io/linera-protocol | https://github.com/linera-io/linera-protocol/blob/69f159d2106f7fc70870ce70074c55850bf1303b/linera-sdk/tests/fixtures/meta-counter/src/contract.rs | linera-sdk/tests/fixtures/meta-counter/src/contract.rs | // Copyright (c) Zefchain Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
#![cfg_attr(target_arch = "wasm32", no_main)]
use linera_sdk::{
linera_base_types::{ApplicationId, StreamName, WithContractAbi},
Contract, ContractRuntime, Resources,
};
use meta_counter::{Message, MetaCounterAbi, Operation};
pub str... | rust | Apache-2.0 | 69f159d2106f7fc70870ce70074c55850bf1303b | 2026-01-04T15:33:08.660695Z | false |
linera-io/linera-protocol | https://github.com/linera-io/linera-protocol/blob/69f159d2106f7fc70870ce70074c55850bf1303b/linera-sdk/tests/fixtures/meta-counter/src/lib.rs | linera-sdk/tests/fixtures/meta-counter/src/lib.rs | // Copyright (c) Zefchain Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
/*! ABI of the Meta-Counter Example Application */
use async_graphql::{Request, Response};
use linera_sdk::linera_base_types::{ChainId, ContractAbi, ServiceAbi};
use serde::{Deserialize, Serialize};
pub struct MetaCounterAbi;
impl ContractA... | rust | Apache-2.0 | 69f159d2106f7fc70870ce70074c55850bf1303b | 2026-01-04T15:33:08.660695Z | false |
linera-io/linera-protocol | https://github.com/linera-io/linera-protocol/blob/69f159d2106f7fc70870ce70074c55850bf1303b/linera-sdk/tests/fixtures/meta-counter/src/service.rs | linera-sdk/tests/fixtures/meta-counter/src/service.rs | // Copyright (c) Zefchain Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
#![cfg_attr(target_arch = "wasm32", no_main)]
use async_graphql::{Request, Response};
use linera_sdk::{
linera_base_types::{ApplicationId, WithServiceAbi},
Service, ServiceRuntime,
};
pub struct MetaCounterService {
runtime: Serv... | rust | Apache-2.0 | 69f159d2106f7fc70870ce70074c55850bf1303b | 2026-01-04T15:33:08.660695Z | false |
linera-io/linera-protocol | https://github.com/linera-io/linera-protocol/blob/69f159d2106f7fc70870ce70074c55850bf1303b/linera-sdk/tests/fixtures/contract-call/src/contract.rs | linera-sdk/tests/fixtures/contract-call/src/contract.rs | // Copyright (c) Zefchain Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
#![cfg_attr(target_arch = "wasm32", no_main)]
use contract_call::{ContractTransferAbi, Operation, Parameters};
use linera_sdk::{
linera_base_types::{Account, ApplicationId, WithContractAbi},
Contract, ContractRuntime,
};
pub struct C... | rust | Apache-2.0 | 69f159d2106f7fc70870ce70074c55850bf1303b | 2026-01-04T15:33:08.660695Z | false |
linera-io/linera-protocol | https://github.com/linera-io/linera-protocol/blob/69f159d2106f7fc70870ce70074c55850bf1303b/linera-sdk/tests/fixtures/contract-call/src/lib.rs | linera-sdk/tests/fixtures/contract-call/src/lib.rs | // Copyright (c) Zefchain Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
use linera_sdk::linera_base_types::{
Account, AccountOwner, Amount, ContractAbi, ModuleId, ServiceAbi,
};
use serde::{Deserialize, Serialize};
pub struct ContractTransferAbi;
impl ContractAbi for ContractTransferAbi {
type Operation ... | rust | Apache-2.0 | 69f159d2106f7fc70870ce70074c55850bf1303b | 2026-01-04T15:33:08.660695Z | false |
linera-io/linera-protocol | https://github.com/linera-io/linera-protocol/blob/69f159d2106f7fc70870ce70074c55850bf1303b/linera-sdk/tests/fixtures/contract-call/src/service.rs | linera-sdk/tests/fixtures/contract-call/src/service.rs | // Copyright (c) Zefchain Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
#![cfg_attr(target_arch = "wasm32", no_main)]
use std::sync::Arc;
use contract_call::{ContractTransferAbi, Operation, Parameters, Query};
use linera_sdk::{linera_base_types::WithServiceAbi, Service, ServiceRuntime};
pub struct ContractTrans... | rust | Apache-2.0 | 69f159d2106f7fc70870ce70074c55850bf1303b | 2026-01-04T15:33:08.660695Z | false |
linera-io/linera-protocol | https://github.com/linera-io/linera-protocol/blob/69f159d2106f7fc70870ce70074c55850bf1303b/linera-sdk/tests/fixtures/contract-call/tests/integration.rs | linera-sdk/tests/fixtures/contract-call/tests/integration.rs | // Copyright (c) Zefchain Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
//! Integration tests for the Contract Call application
#![cfg(not(target_arch = "wasm32"))]
use contract_call::{ContractTransferAbi, Parameters};
use linera_sdk::{
linera_base_types::{Account, AccountOwner, Amount},
test::TestValida... | rust | Apache-2.0 | 69f159d2106f7fc70870ce70074c55850bf1303b | 2026-01-04T15:33:08.660695Z | false |
linera-io/linera-protocol | https://github.com/linera-io/linera-protocol/blob/69f159d2106f7fc70870ce70074c55850bf1303b/linera-sdk/tests/fixtures/time-expiry/src/contract.rs | linera-sdk/tests/fixtures/time-expiry/src/contract.rs | // Copyright (c) Zefchain Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
#![cfg_attr(target_arch = "wasm32", no_main)]
mod state;
use linera_sdk::{
linera_base_types::WithContractAbi,
views::{RootView, View},
Contract, ContractRuntime,
};
use time_expiry::{TimeExpiryAbi, TimeExpiryOperation};
use sel... | rust | Apache-2.0 | 69f159d2106f7fc70870ce70074c55850bf1303b | 2026-01-04T15:33:08.660695Z | false |
linera-io/linera-protocol | https://github.com/linera-io/linera-protocol/blob/69f159d2106f7fc70870ce70074c55850bf1303b/linera-sdk/tests/fixtures/time-expiry/src/lib.rs | linera-sdk/tests/fixtures/time-expiry/src/lib.rs | // Copyright (c) Zefchain Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
/*! ABI of the Time Expiry Test Application */
use linera_sdk::linera_base_types::{ContractAbi, ServiceAbi, TimeDelta};
use serde::{Deserialize, Serialize};
pub struct TimeExpiryAbi;
#[derive(Debug, Deserialize, Serialize)]
pub enum TimeExp... | rust | Apache-2.0 | 69f159d2106f7fc70870ce70074c55850bf1303b | 2026-01-04T15:33:08.660695Z | false |
linera-io/linera-protocol | https://github.com/linera-io/linera-protocol/blob/69f159d2106f7fc70870ce70074c55850bf1303b/linera-sdk/tests/fixtures/time-expiry/src/state.rs | linera-sdk/tests/fixtures/time-expiry/src/state.rs | // Copyright (c) Zefchain Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
use linera_sdk::views::{linera_views, RegisterView, RootView, ViewStorageContext};
/// The application state (empty for this test fixture, but needs at least one field).
#[derive(RootView)]
#[view(context = ViewStorageContext)]
pub struct Tim... | rust | Apache-2.0 | 69f159d2106f7fc70870ce70074c55850bf1303b | 2026-01-04T15:33:08.660695Z | false |
linera-io/linera-protocol | https://github.com/linera-io/linera-protocol/blob/69f159d2106f7fc70870ce70074c55850bf1303b/linera-sdk/tests/fixtures/time-expiry/src/service.rs | linera-sdk/tests/fixtures/time-expiry/src/service.rs | // Copyright (c) Zefchain Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
#![cfg_attr(target_arch = "wasm32", no_main)]
mod state;
use linera_sdk::{linera_base_types::WithServiceAbi, views::View, Service, ServiceRuntime};
use time_expiry::TimeExpiryAbi;
use self::state::TimeExpiryState;
pub struct TimeExpiryServ... | rust | Apache-2.0 | 69f159d2106f7fc70870ce70074c55850bf1303b | 2026-01-04T15:33:08.660695Z | false |
linera-io/linera-protocol | https://github.com/linera-io/linera-protocol/blob/69f159d2106f7fc70870ce70074c55850bf1303b/linera-views/build.rs | linera-views/build.rs | // Copyright (c) Zefchain Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
fn main() {
cfg_aliases::cfg_aliases! {
web: { all(target_arch = "wasm32", feature = "web") },
with_testing: { any(test, feature = "test") },
with_metrics: { all(not(target_arch = "wasm32"), feature = "metrics") },
... | rust | Apache-2.0 | 69f159d2106f7fc70870ce70074c55850bf1303b | 2026-01-04T15:33:08.660695Z | false |
linera-io/linera-protocol | https://github.com/linera-io/linera-protocol/blob/69f159d2106f7fc70870ce70074c55850bf1303b/linera-views/src/random.rs | linera-views/src/random.rs | // Copyright (c) Zefchain Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
#[cfg(target_arch = "wasm32")]
use std::sync::{Mutex, MutexGuard, OnceLock};
use rand::{rngs::SmallRng, Rng, SeedableRng};
// The following seed is chosen to have equal numbers of 1s and 0s, as advised by
// https://docs.rs/rand/latest/rand/... | rust | Apache-2.0 | 69f159d2106f7fc70870ce70074c55850bf1303b | 2026-01-04T15:33:08.660695Z | false |
linera-io/linera-protocol | https://github.com/linera-io/linera-protocol/blob/69f159d2106f7fc70870ce70074c55850bf1303b/linera-views/src/lib.rs | linera-views/src/lib.rs | // Copyright (c) Zefchain Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
/*!
This module is used in the Linera protocol to map complex data structures onto a
key-value store. The central notion is a [`views::View`](https://docs.rs/linera-views/latest/linera_views/views/trait.View.html)
which can be loaded from stor... | rust | Apache-2.0 | 69f159d2106f7fc70870ce70074c55850bf1303b | 2026-01-04T15:33:08.660695Z | false |
linera-io/linera-protocol | https://github.com/linera-io/linera-protocol/blob/69f159d2106f7fc70870ce70074c55850bf1303b/linera-views/src/store.rs | linera-views/src/store.rs | // Copyright (c) Zefchain Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
//! This provides the trait definitions for the stores.
use std::{fmt::Debug, future::Future};
use serde::{de::DeserializeOwned, Serialize};
#[cfg(with_testing)]
use crate::random::generate_test_namespace;
use crate::{
batch::{Batch, Si... | rust | Apache-2.0 | 69f159d2106f7fc70870ce70074c55850bf1303b | 2026-01-04T15:33:08.660695Z | false |
linera-io/linera-protocol | https://github.com/linera-io/linera-protocol/blob/69f159d2106f7fc70870ce70074c55850bf1303b/linera-views/src/batch.rs | linera-views/src/batch.rs | // Copyright (c) Zefchain Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
//! A set of functionalities for building batches to be written into the database.
//! A batch can contain three kinds of operations on a key/value store:
//! * Insertion of a key with an associated value
//! * Deletion of a specific key
//! *... | rust | Apache-2.0 | 69f159d2106f7fc70870ce70074c55850bf1303b | 2026-01-04T15:33:08.660695Z | false |
linera-io/linera-protocol | https://github.com/linera-io/linera-protocol/blob/69f159d2106f7fc70870ce70074c55850bf1303b/linera-views/src/error.rs | linera-views/src/error.rs | // Copyright (c) Zefchain Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
/// Main error type for the crate.
#[derive(thiserror::Error, Debug)]
pub enum ViewError {
/// BCS serialization error.
#[error(transparent)]
BcsError(#[from] bcs::Error),
/// Input output error.
#[error("I/O error")]
... | rust | Apache-2.0 | 69f159d2106f7fc70870ce70074c55850bf1303b | 2026-01-04T15:33:08.660695Z | false |
linera-io/linera-protocol | https://github.com/linera-io/linera-protocol/blob/69f159d2106f7fc70870ce70074c55850bf1303b/linera-views/src/common.rs | linera-views/src/common.rs | // Copyright (c) Zefchain Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
//! This provides some common code for the linera-views.
use std::{
collections::BTreeSet,
ops::{
Bound,
Bound::{Excluded, Included, Unbounded},
},
slice::ChunksExact,
};
use allocative::Allocative;
use iterto... | rust | Apache-2.0 | 69f159d2106f7fc70870ce70074c55850bf1303b | 2026-01-04T15:33:08.660695Z | false |
linera-io/linera-protocol | https://github.com/linera-io/linera-protocol/blob/69f159d2106f7fc70870ce70074c55850bf1303b/linera-views/src/metrics.rs | linera-views/src/metrics.rs | // Copyright (c) Zefchain Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
use std::sync::LazyLock;
// Re-export for macros.
#[doc(hidden)]
pub use linera_base::prometheus_util::{self, exponential_bucket_latencies};
use prometheus::IntCounterVec;
/// Increments the metrics counter with the given name, with the stru... | rust | Apache-2.0 | 69f159d2106f7fc70870ce70074c55850bf1303b | 2026-01-04T15:33:08.660695Z | false |
linera-io/linera-protocol | https://github.com/linera-io/linera-protocol/blob/69f159d2106f7fc70870ce70074c55850bf1303b/linera-views/src/context.rs | linera-views/src/context.rs | // Copyright (c) Zefchain Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
use serde::{de::DeserializeOwned, Serialize};
use crate::{
batch::DeletePrefixExpander,
memory::MemoryStore,
store::{KeyValueStoreError, ReadableKeyValueStore, WithError, WritableKeyValueStore},
views::MIN_VIEW_TAG,
};
/// A ... | rust | Apache-2.0 | 69f159d2106f7fc70870ce70074c55850bf1303b | 2026-01-04T15:33:08.660695Z | false |
linera-io/linera-protocol | https://github.com/linera-io/linera-protocol/blob/69f159d2106f7fc70870ce70074c55850bf1303b/linera-views/src/lru_prefix_cache.rs | linera-views/src/lru_prefix_cache.rs | // Copyright (c) Zefchain Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
//! An LRU cache that supports prefix-search APIs.
use std::collections::{btree_map::Entry, hash_map::RandomState, BTreeMap, BTreeSet};
use linked_hash_map::LinkedHashMap;
use serde::{Deserialize, Serialize};
use crate::common::get_key_rang... | rust | Apache-2.0 | 69f159d2106f7fc70870ce70074c55850bf1303b | 2026-01-04T15:33:08.660695Z | true |
linera-io/linera-protocol | https://github.com/linera-io/linera-protocol/blob/69f159d2106f7fc70870ce70074c55850bf1303b/linera-views/src/graphql.rs | linera-views/src/graphql.rs | // Copyright (c) Zefchain Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
use std::borrow::Cow;
// TODO(#1858): come up with a better name-mangling scheme
/// Mangle a GraphQL type into something that can be interpolated into a GraphQL type name
pub(crate) fn mangle(type_name: impl AsRef<str>) -> String {
let m... | rust | Apache-2.0 | 69f159d2106f7fc70870ce70074c55850bf1303b | 2026-01-04T15:33:08.660695Z | false |
linera-io/linera-protocol | https://github.com/linera-io/linera-protocol/blob/69f159d2106f7fc70870ce70074c55850bf1303b/linera-views/src/views/collection_view.rs | linera-views/src/views/collection_view.rs | // Copyright (c) Zefchain Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
use std::{
borrow::Borrow,
collections::{btree_map, BTreeMap},
io::Write,
marker::PhantomData,
mem,
ops::Deref,
};
use allocative::{Allocative, Key, Visitor};
use async_lock::{RwLock, RwLockReadGuard};
#[cfg(with_metri... | rust | Apache-2.0 | 69f159d2106f7fc70870ce70074c55850bf1303b | 2026-01-04T15:33:08.660695Z | true |
linera-io/linera-protocol | https://github.com/linera-io/linera-protocol/blob/69f159d2106f7fc70870ce70074c55850bf1303b/linera-views/src/views/register_view.rs | linera-views/src/views/register_view.rs | // Copyright (c) Zefchain Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
use allocative::Allocative;
#[cfg(with_metrics)]
use linera_base::prometheus_util::MeasureLatency as _;
use serde::{de::DeserializeOwned, Serialize};
use crate::{
batch::Batch,
common::{from_bytes_option_or_default, HasherOutput},
... | rust | Apache-2.0 | 69f159d2106f7fc70870ce70074c55850bf1303b | 2026-01-04T15:33:08.660695Z | false |
linera-io/linera-protocol | https://github.com/linera-io/linera-protocol/blob/69f159d2106f7fc70870ce70074c55850bf1303b/linera-views/src/views/key_value_store_view.rs | linera-views/src/views/key_value_store_view.rs | // Copyright (c) Zefchain Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
//! We implement two types:
//! 1) The first type `KeyValueStoreView` implements View and the function of `KeyValueStore`.
//!
//! 2) The second type `ViewContainer` encapsulates `KeyValueStoreView` and provides the following functionalities:
... | rust | Apache-2.0 | 69f159d2106f7fc70870ce70074c55850bf1303b | 2026-01-04T15:33:08.660695Z | true |
linera-io/linera-protocol | https://github.com/linera-io/linera-protocol/blob/69f159d2106f7fc70870ce70074c55850bf1303b/linera-views/src/views/historical_hash_wrapper.rs | linera-views/src/views/historical_hash_wrapper.rs | // Copyright (c) Zefchain Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
use std::{
marker::PhantomData,
ops::{Deref, DerefMut},
sync::Mutex,
};
use allocative::Allocative;
#[cfg(with_metrics)]
use linera_base::prometheus_util::MeasureLatency as _;
use linera_base::visit_allocative_simple;
use crate::... | rust | Apache-2.0 | 69f159d2106f7fc70870ce70074c55850bf1303b | 2026-01-04T15:33:08.660695Z | false |
linera-io/linera-protocol | https://github.com/linera-io/linera-protocol/blob/69f159d2106f7fc70870ce70074c55850bf1303b/linera-views/src/views/mod.rs | linera-views/src/views/mod.rs | // Copyright (c) Zefchain Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
use std::{fmt::Debug, future::Future, io::Write};
use linera_base::crypto::CryptoHash;
pub use linera_views_derive::{
ClonableView, CryptoHashRootView, CryptoHashView, HashableView, RootView, View,
};
use serde::Serialize;
use crate::{ba... | rust | Apache-2.0 | 69f159d2106f7fc70870ce70074c55850bf1303b | 2026-01-04T15:33:08.660695Z | false |
linera-io/linera-protocol | https://github.com/linera-io/linera-protocol/blob/69f159d2106f7fc70870ce70074c55850bf1303b/linera-views/src/views/reentrant_collection_view.rs | linera-views/src/views/reentrant_collection_view.rs | // Copyright (c) Zefchain Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
use std::{
borrow::Borrow,
collections::{btree_map, BTreeMap},
io::Write,
marker::PhantomData,
mem,
ops::Deref,
sync::Arc,
};
use allocative::{Allocative, Key, Visitor};
use async_lock::{RwLock, RwLockReadGuardArc,... | rust | Apache-2.0 | 69f159d2106f7fc70870ce70074c55850bf1303b | 2026-01-04T15:33:08.660695Z | true |
linera-io/linera-protocol | https://github.com/linera-io/linera-protocol/blob/69f159d2106f7fc70870ce70074c55850bf1303b/linera-views/src/views/log_view.rs | linera-views/src/views/log_view.rs | // Copyright (c) Zefchain Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
use std::{
collections::BTreeMap,
ops::{Bound, Range, RangeBounds},
};
use allocative::Allocative;
#[cfg(with_metrics)]
use linera_base::prometheus_util::MeasureLatency as _;
use serde::{de::DeserializeOwned, Serialize};
use crate::{... | rust | Apache-2.0 | 69f159d2106f7fc70870ce70074c55850bf1303b | 2026-01-04T15:33:08.660695Z | false |
linera-io/linera-protocol | https://github.com/linera-io/linera-protocol/blob/69f159d2106f7fc70870ce70074c55850bf1303b/linera-views/src/views/queue_view.rs | linera-views/src/views/queue_view.rs | // Copyright (c) Zefchain Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
use std::{
collections::{vec_deque::IterMut, VecDeque},
ops::Range,
};
use allocative::Allocative;
#[cfg(with_metrics)]
use linera_base::prometheus_util::MeasureLatency as _;
use linera_base::visit_allocative_simple;
use serde::{de::D... | rust | Apache-2.0 | 69f159d2106f7fc70870ce70074c55850bf1303b | 2026-01-04T15:33:08.660695Z | false |
linera-io/linera-protocol | https://github.com/linera-io/linera-protocol/blob/69f159d2106f7fc70870ce70074c55850bf1303b/linera-views/src/views/map_view.rs | linera-views/src/views/map_view.rs | // Copyright (c) Zefchain Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
//! The `MapView` implements a map that can be modified.
//!
//! This reproduces more or less the functionalities of the `BTreeMap`.
//! There are 3 different variants:
//! * The [`ByteMapView`][class1] whose keys are the `Vec<u8>` and the val... | rust | Apache-2.0 | 69f159d2106f7fc70870ce70074c55850bf1303b | 2026-01-04T15:33:08.660695Z | true |
linera-io/linera-protocol | https://github.com/linera-io/linera-protocol/blob/69f159d2106f7fc70870ce70074c55850bf1303b/linera-views/src/views/hashable_wrapper.rs | linera-views/src/views/hashable_wrapper.rs | // Copyright (c) Zefchain Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
use std::{
marker::PhantomData,
ops::{Deref, DerefMut},
sync::Mutex,
};
use allocative::Allocative;
use linera_base::visit_allocative_simple;
use serde::{de::DeserializeOwned, Serialize};
use crate::{
batch::Batch,
common... | rust | Apache-2.0 | 69f159d2106f7fc70870ce70074c55850bf1303b | 2026-01-04T15:33:08.660695Z | false |
linera-io/linera-protocol | https://github.com/linera-io/linera-protocol/blob/69f159d2106f7fc70870ce70074c55850bf1303b/linera-views/src/views/bucket_queue_view.rs | linera-views/src/views/bucket_queue_view.rs | // Copyright (c) Zefchain Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
use std::collections::{vec_deque::IterMut, VecDeque};
use allocative::Allocative;
#[cfg(with_metrics)]
use linera_base::prometheus_util::MeasureLatency as _;
use serde::{de::DeserializeOwned, Deserialize, Serialize};
use crate::{
batch::... | rust | Apache-2.0 | 69f159d2106f7fc70870ce70074c55850bf1303b | 2026-01-04T15:33:08.660695Z | false |
linera-io/linera-protocol | https://github.com/linera-io/linera-protocol/blob/69f159d2106f7fc70870ce70074c55850bf1303b/linera-views/src/views/set_view.rs | linera-views/src/views/set_view.rs | // Copyright (c) Zefchain Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
use std::{borrow::Borrow, collections::BTreeMap, marker::PhantomData};
use allocative::Allocative;
#[cfg(with_metrics)]
use linera_base::prometheus_util::MeasureLatency as _;
use serde::{de::DeserializeOwned, Serialize};
use crate::{
bat... | rust | Apache-2.0 | 69f159d2106f7fc70870ce70074c55850bf1303b | 2026-01-04T15:33:08.660695Z | true |
linera-io/linera-protocol | https://github.com/linera-io/linera-protocol/blob/69f159d2106f7fc70870ce70074c55850bf1303b/linera-views/src/views/unit_tests/views.rs | linera-views/src/views/unit_tests/views.rs | // Copyright (c) Zefchain Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
use std::{collections::VecDeque, fmt::Debug, marker::PhantomData};
use serde::{de::DeserializeOwned, Serialize};
use test_case::test_case;
#[cfg(with_dynamodb)]
use crate::dynamo_db::DynamoDbDatabase;
#[cfg(with_rocksdb)]
use crate::rocks_db... | rust | Apache-2.0 | 69f159d2106f7fc70870ce70074c55850bf1303b | 2026-01-04T15:33:08.660695Z | false |
linera-io/linera-protocol | https://github.com/linera-io/linera-protocol/blob/69f159d2106f7fc70870ce70074c55850bf1303b/linera-views/src/backends/scylla_db.rs | linera-views/src/backends/scylla_db.rs | // Copyright (c) Zefchain Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
//! Implements [`crate::store::KeyValueStore`] for the ScyllaDB database.
//!
//! The current connection is done via a Session and a corresponding primary key called
//! "namespace". The maximum number of concurrent queries is controlled by
//... | rust | Apache-2.0 | 69f159d2106f7fc70870ce70074c55850bf1303b | 2026-01-04T15:33:08.660695Z | true |
linera-io/linera-protocol | https://github.com/linera-io/linera-protocol/blob/69f159d2106f7fc70870ce70074c55850bf1303b/linera-views/src/backends/journaling.rs | linera-views/src/backends/journaling.rs | // Copyright (c) Zefchain Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
//! Turns a `DirectKeyValueStore` into a `KeyValueStore` by adding journaling.
//!
//! Journaling aims to allow writing arbitrarily large batches of data in an atomic way.
//! This is useful for database backends that limit the number of keys ... | rust | Apache-2.0 | 69f159d2106f7fc70870ce70074c55850bf1303b | 2026-01-04T15:33:08.660695Z | false |
linera-io/linera-protocol | https://github.com/linera-io/linera-protocol/blob/69f159d2106f7fc70870ce70074c55850bf1303b/linera-views/src/backends/rocks_db.rs | linera-views/src/backends/rocks_db.rs | // Copyright (c) Zefchain Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
//! Implements [`crate::store::KeyValueStore`] for the RocksDB database.
use std::{
ffi::OsString,
fmt::Display,
path::PathBuf,
sync::{
atomic::{AtomicBool, Ordering},
Arc,
},
};
use linera_base::ensure;
u... | rust | Apache-2.0 | 69f159d2106f7fc70870ce70074c55850bf1303b | 2026-01-04T15:33:08.660695Z | false |
linera-io/linera-protocol | https://github.com/linera-io/linera-protocol/blob/69f159d2106f7fc70870ce70074c55850bf1303b/linera-views/src/backends/value_splitting.rs | linera-views/src/backends/value_splitting.rs | // Copyright (c) Zefchain Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
//! Adds support for large values to a given store by splitting them between several keys.
use linera_base::ensure;
use thiserror::Error;
use crate::{
batch::{Batch, WriteOperation},
store::{
KeyValueDatabase, KeyValueStoreEr... | rust | Apache-2.0 | 69f159d2106f7fc70870ce70074c55850bf1303b | 2026-01-04T15:33:08.660695Z | false |
linera-io/linera-protocol | https://github.com/linera-io/linera-protocol/blob/69f159d2106f7fc70870ce70074c55850bf1303b/linera-views/src/backends/memory.rs | linera-views/src/backends/memory.rs | // Copyright (c) Zefchain Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
//! Implements [`crate::store::KeyValueDatabase`] in memory.
use std::{
collections::BTreeMap,
sync::{Arc, LazyLock, Mutex, RwLock},
};
use serde::{Deserialize, Serialize};
use thiserror::Error;
#[cfg(with_testing)]
use crate::store... | rust | Apache-2.0 | 69f159d2106f7fc70870ce70074c55850bf1303b | 2026-01-04T15:33:08.660695Z | false |
linera-io/linera-protocol | https://github.com/linera-io/linera-protocol/blob/69f159d2106f7fc70870ce70074c55850bf1303b/linera-views/src/backends/mod.rs | linera-views/src/backends/mod.rs | // Copyright (c) Zefchain Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
pub mod journaling;
#[cfg(with_metrics)]
pub mod metering;
pub mod value_splitting;
pub mod memory;
pub mod lru_caching;
pub mod dual;
#[cfg(with_scylladb)]
pub mod scylla_db;
#[cfg(with_rocksdb)]
pub mod rocks_db;
#[cfg(with_dynamodb)... | rust | Apache-2.0 | 69f159d2106f7fc70870ce70074c55850bf1303b | 2026-01-04T15:33:08.660695Z | false |
linera-io/linera-protocol | https://github.com/linera-io/linera-protocol/blob/69f159d2106f7fc70870ce70074c55850bf1303b/linera-views/src/backends/lru_caching.rs | linera-views/src/backends/lru_caching.rs | // Copyright (c) Zefchain Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
//! Add LRU (least recently used) caching to a given store.
use std::sync::{Arc, Mutex};
use serde::{Deserialize, Serialize};
#[cfg(with_testing)]
use crate::memory::MemoryDatabase;
#[cfg(with_testing)]
use crate::store::TestKeyValueDatabas... | rust | Apache-2.0 | 69f159d2106f7fc70870ce70074c55850bf1303b | 2026-01-04T15:33:08.660695Z | false |
linera-io/linera-protocol | https://github.com/linera-io/linera-protocol/blob/69f159d2106f7fc70870ce70074c55850bf1303b/linera-views/src/backends/dual.rs | linera-views/src/backends/dual.rs | // Copyright (c) Zefchain Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
//! Implements [`crate::store::KeyValueStore`] by combining two existing stores.
use serde::{Deserialize, Serialize};
use thiserror::Error;
#[cfg(with_testing)]
use crate::store::TestKeyValueDatabase;
use crate::{
batch::Batch,
store... | rust | Apache-2.0 | 69f159d2106f7fc70870ce70074c55850bf1303b | 2026-01-04T15:33:08.660695Z | false |
linera-io/linera-protocol | https://github.com/linera-io/linera-protocol/blob/69f159d2106f7fc70870ce70074c55850bf1303b/linera-views/src/backends/metering.rs | linera-views/src/backends/metering.rs | // Copyright (c) Zefchain Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
//! Adds metrics to a key-value store.
use std::{
collections::{btree_map::Entry, BTreeMap},
sync::{Arc, LazyLock, Mutex},
};
use convert_case::{Case, Casing};
use linera_base::prometheus_util::{
register_histogram_vec, register_... | rust | Apache-2.0 | 69f159d2106f7fc70870ce70074c55850bf1303b | 2026-01-04T15:33:08.660695Z | false |
linera-io/linera-protocol | https://github.com/linera-io/linera-protocol/blob/69f159d2106f7fc70870ce70074c55850bf1303b/linera-views/src/backends/dynamo_db.rs | linera-views/src/backends/dynamo_db.rs | // Copyright (c) Zefchain Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
//! Implements [`crate::store::KeyValueStore`] for the DynamoDB database.
use std::{
collections::HashMap,
env,
sync::{
atomic::{AtomicBool, Ordering},
Arc,
},
};
use async_lock::{Semaphore, SemaphoreGuard};
u... | rust | Apache-2.0 | 69f159d2106f7fc70870ce70074c55850bf1303b | 2026-01-04T15:33:08.660695Z | true |
linera-io/linera-protocol | https://github.com/linera-io/linera-protocol/blob/69f159d2106f7fc70870ce70074c55850bf1303b/linera-views/src/backends/indexed_db.rs | linera-views/src/backends/indexed_db.rs | // Copyright (c) Zefchain Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
//! Implements [`crate::store::KeyValueStore`] for the IndexedDB Web database.
use std::rc::Rc;
use futures::future;
use indexed_db_futures::{js_sys, prelude::*, web_sys};
use serde::{Deserialize, Serialize};
use thiserror::Error;
use crate... | rust | Apache-2.0 | 69f159d2106f7fc70870ce70074c55850bf1303b | 2026-01-04T15:33:08.660695Z | false |
linera-io/linera-protocol | https://github.com/linera-io/linera-protocol/blob/69f159d2106f7fc70870ce70074c55850bf1303b/linera-views/src/test_utils/mod.rs | linera-views/src/test_utils/mod.rs | // Copyright (c) Zefchain Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
pub mod test_views;
/// Functions for computing the performance of stores.
#[cfg(not(target_arch = "wasm32"))]
pub mod performance;
use std::collections::{BTreeMap, BTreeSet, HashSet};
use rand::{seq::SliceRandom, Rng};
use crate::{
ba... | rust | Apache-2.0 | 69f159d2106f7fc70870ce70074c55850bf1303b | 2026-01-04T15:33:08.660695Z | true |
linera-io/linera-protocol | https://github.com/linera-io/linera-protocol/blob/69f159d2106f7fc70870ce70074c55850bf1303b/linera-views/src/test_utils/performance.rs | linera-views/src/test_utils/performance.rs | // Copyright (c) Zefchain Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
use linera_base::time::{Duration, Instant};
use crate::{
batch::Batch,
store::{
KeyValueStore, ReadableKeyValueStore as _, TestKeyValueDatabase, WritableKeyValueStore as _,
},
test_utils::{add_prefix, get_random_key_va... | rust | Apache-2.0 | 69f159d2106f7fc70870ce70074c55850bf1303b | 2026-01-04T15:33:08.660695Z | false |
linera-io/linera-protocol | https://github.com/linera-io/linera-protocol/blob/69f159d2106f7fc70870ce70074c55850bf1303b/linera-views/src/test_utils/test_views.rs | linera-views/src/test_utils/test_views.rs | // Copyright (c) Zefchain Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
//! Some [`View`][`crate::views::View`]s that are easy to use with test cases.
use std::{
collections::{HashMap, HashSet},
fmt::Debug,
};
use allocative::Allocative;
use crate::{
self as linera_views,
bucket_queue_view::Buck... | rust | Apache-2.0 | 69f159d2106f7fc70870ce70074c55850bf1303b | 2026-01-04T15:33:08.660695Z | false |
linera-io/linera-protocol | https://github.com/linera-io/linera-protocol/blob/69f159d2106f7fc70870ce70074c55850bf1303b/linera-views/tests/views_tests.rs | linera-views/tests/views_tests.rs | // Copyright (c) Zefchain Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
use std::collections::BTreeSet;
use anyhow::Result;
#[cfg(with_dynamodb)]
use linera_views::dynamo_db::DynamoDbDatabase;
#[cfg(with_rocksdb)]
use linera_views::rocks_db::RocksDbDatabase;
#[cfg(with_scylladb)]
use linera_views::scylla_db::Scyl... | rust | Apache-2.0 | 69f159d2106f7fc70870ce70074c55850bf1303b | 2026-01-04T15:33:08.660695Z | true |
linera-io/linera-protocol | https://github.com/linera-io/linera-protocol/blob/69f159d2106f7fc70870ce70074c55850bf1303b/linera-views/tests/store_tests.rs | linera-views/tests/store_tests.rs | // Copyright (c) Zefchain Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
use linera_views::{
batch::Batch,
context::{Context as _, MemoryContext},
key_value_store_view::ViewContainer,
memory::MemoryDatabase,
random::make_deterministic_rng,
store::{ReadableKeyValueStore as _, TestKeyValueData... | rust | Apache-2.0 | 69f159d2106f7fc70870ce70074c55850bf1303b | 2026-01-04T15:33:08.660695Z | false |
linera-io/linera-protocol | https://github.com/linera-io/linera-protocol/blob/69f159d2106f7fc70870ce70074c55850bf1303b/linera-views/tests/hashable_tests.rs | linera-views/tests/hashable_tests.rs | // Copyright (c) Zefchain Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
use anyhow::Result;
use linera_base::crypto::CryptoHash;
use linera_views::{
common::HasherOutput,
context::MemoryContext,
hashable_wrapper::WrappedHashableContainerView,
historical_hash_wrapper::HistoricallyHashableView,
r... | rust | Apache-2.0 | 69f159d2106f7fc70870ce70074c55850bf1303b | 2026-01-04T15:33:08.660695Z | false |
linera-io/linera-protocol | https://github.com/linera-io/linera-protocol/blob/69f159d2106f7fc70870ce70074c55850bf1303b/linera-views/tests/random_container_tests.rs | linera-views/tests/random_container_tests.rs | // Copyright (c) Zefchain Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
use std::collections::{BTreeMap, BTreeSet};
use anyhow::Result;
use linera_views::{
bucket_queue_view::HashedBucketQueueView,
collection_view::{CollectionView, HashedCollectionView},
context::{Context, MemoryContext},
key_valu... | rust | Apache-2.0 | 69f159d2106f7fc70870ce70074c55850bf1303b | 2026-01-04T15:33:08.660695Z | true |
linera-io/linera-protocol | https://github.com/linera-io/linera-protocol/blob/69f159d2106f7fc70870ce70074c55850bf1303b/linera-views/tests/admin_tests.rs | linera-views/tests/admin_tests.rs | // Copyright (c) Zefchain Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
use std::marker::PhantomData;
#[cfg(with_dynamodb)]
use linera_views::dynamo_db::DynamoDbDatabase;
#[cfg(with_rocksdb)]
use linera_views::rocks_db::RocksDbDatabase;
#[cfg(with_scylladb)]
use linera_views::scylla_db::ScyllaDbDatabase;
use line... | rust | Apache-2.0 | 69f159d2106f7fc70870ce70074c55850bf1303b | 2026-01-04T15:33:08.660695Z | false |
linera-io/linera-protocol | https://github.com/linera-io/linera-protocol/blob/69f159d2106f7fc70870ce70074c55850bf1303b/linera-views/benches/reentrant_collection_view.rs | linera-views/benches/reentrant_collection_view.rs | // Copyright (c) Zefchain Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
use criterion::{black_box, criterion_group, criterion_main, Criterion};
use linera_base::time::{Duration, Instant};
use linera_views::{
batch::Batch,
context::{Context, MemoryContext},
reentrant_collection_view::ReentrantCollection... | rust | Apache-2.0 | 69f159d2106f7fc70870ce70074c55850bf1303b | 2026-01-04T15:33:08.660695Z | false |
linera-io/linera-protocol | https://github.com/linera-io/linera-protocol/blob/69f159d2106f7fc70870ce70074c55850bf1303b/linera-views/benches/queue_view.rs | linera-views/benches/queue_view.rs | // Copyright (c) Zefchain Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
use criterion::{black_box, criterion_group, criterion_main, Criterion};
use linera_base::time::{Duration, Instant};
#[cfg(with_dynamodb)]
use linera_views::dynamo_db::DynamoDbDatabase;
#[cfg(with_rocksdb)]
use linera_views::rocks_db::RocksDbDa... | rust | Apache-2.0 | 69f159d2106f7fc70870ce70074c55850bf1303b | 2026-01-04T15:33:08.660695Z | false |
linera-io/linera-protocol | https://github.com/linera-io/linera-protocol/blob/69f159d2106f7fc70870ce70074c55850bf1303b/linera-views/benches/stores.rs | linera-views/benches/stores.rs | // Copyright (c) Zefchain Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
use criterion::{black_box, criterion_group, criterion_main, Criterion};
#[cfg(with_dynamodb)]
use linera_views::dynamo_db::DynamoDbDatabase;
#[cfg(with_rocksdb)]
use linera_views::rocks_db::RocksDbDatabase;
#[cfg(with_scylladb)]
use linera_vie... | rust | Apache-2.0 | 69f159d2106f7fc70870ce70074c55850bf1303b | 2026-01-04T15:33:08.660695Z | false |
linera-io/linera-protocol | https://github.com/linera-io/linera-protocol/blob/69f159d2106f7fc70870ce70074c55850bf1303b/linera-service/build.rs | linera-service/build.rs | // Copyright (c) Zefchain Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
fn main() -> Result<(), Box<dyn std::error::Error>> {
cfg_aliases::cfg_aliases! {
with_revm: { feature = "revm" },
with_testing: { any(test, feature = "test") },
with_metrics: { all(not(target_arch = "wasm32"), feat... | rust | Apache-2.0 | 69f159d2106f7fc70870ce70074c55850bf1303b | 2026-01-04T15:33:08.660695Z | false |
linera-io/linera-protocol | https://github.com/linera-io/linera-protocol/blob/69f159d2106f7fc70870ce70074c55850bf1303b/linera-service/src/config.rs | linera-service/src/config.rs | // Copyright (c) Zefchain Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
use std::{fmt, net::SocketAddr};
use linera_rpc::config::{ExporterServiceConfig, TlsConfig};
use serde::{
de::{Error, MapAccess, Visitor},
Deserialize, Deserializer, Serialize, Serializer,
};
/// The configuration file for the linera... | rust | Apache-2.0 | 69f159d2106f7fc70870ce70074c55850bf1303b | 2026-01-04T15:33:08.660695Z | false |
linera-io/linera-protocol | https://github.com/linera-io/linera-protocol/blob/69f159d2106f7fc70870ce70074c55850bf1303b/linera-service/src/task_processor.rs | linera-service/src/task_processor.rs | // Copyright (c) Zefchain Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
//! Task processor for executing off-chain operators on behalf of on-chain applications.
//!
//! The task processor watches specified applications for requests to execute off-chain tasks,
//! runs external operator binaries, and submits the re... | rust | Apache-2.0 | 69f159d2106f7fc70870ce70074c55850bf1303b | 2026-01-04T15:33:08.660695Z | false |
linera-io/linera-protocol | https://github.com/linera-io/linera-protocol/blob/69f159d2106f7fc70870ce70074c55850bf1303b/linera-service/src/lib.rs | linera-service/src/lib.rs | // Copyright (c) Facebook, Inc. and its affiliates.
// Copyright (c) Zefchain Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
//! This module provides the executables needed to operate a Linera service, including a placeholder wallet acting as a GraphQL service for user interfaces.
pub mod cli;
pub mod cli_wrappers... | rust | Apache-2.0 | 69f159d2106f7fc70870ce70074c55850bf1303b | 2026-01-04T15:33:08.660695Z | false |
linera-io/linera-protocol | https://github.com/linera-io/linera-protocol/blob/69f159d2106f7fc70870ce70074c55850bf1303b/linera-service/src/benchmark.rs | linera-service/src/benchmark.rs | // Copyright (c) Zefchain Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
use std::{collections::BTreeMap, path::Path, time::Duration};
use anyhow::{bail, Context as _, Result};
use clap::Parser as _;
use futures::future::{join_all, try_join_all};
use linera_base::{
async_graphql::InputType,
data_types::Amo... | rust | Apache-2.0 | 69f159d2106f7fc70870ce70074c55850bf1303b | 2026-01-04T15:33:08.660695Z | false |
linera-io/linera-protocol | https://github.com/linera-io/linera-protocol/blob/69f159d2106f7fc70870ce70074c55850bf1303b/linera-service/src/node_service.rs | linera-service/src/node_service.rs | // Copyright (c) Zefchain Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
use std::{borrow::Cow, future::IntoFuture, iter, net::SocketAddr, num::NonZeroU16, sync::Arc};
use async_graphql::{
futures_util::Stream, resolver_utils::ContainerType, Error, MergedObject, OutputType,
ScalarType, Schema, SimpleObject... | rust | Apache-2.0 | 69f159d2106f7fc70870ce70074c55850bf1303b | 2026-01-04T15:33:08.660695Z | true |
linera-io/linera-protocol | https://github.com/linera-io/linera-protocol/blob/69f159d2106f7fc70870ce70074c55850bf1303b/linera-service/src/schema_export.rs | linera-service/src/schema_export.rs | // Copyright (c) Zefchain Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
use std::sync::Arc;
use futures::lock::Mutex;
use linera_base::{
crypto::CryptoHash,
data_types::{BlobContent, BlockHeight, Epoch, NetworkDescription, Timestamp},
identifiers::{AccountOwner, BlobId, ChainId},
};
use linera_chain::... | rust | Apache-2.0 | 69f159d2106f7fc70870ce70074c55850bf1303b | 2026-01-04T15:33:08.660695Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.