repo_id stringclasses 563
values | file_path stringlengths 40 166 | content stringlengths 1 2.94M | __index_level_0__ int64 0 0 |
|---|---|---|---|
solana_public_repos/Lightprotocol/light-protocol/photon-api/src | solana_public_repos/Lightprotocol/light-protocol/photon-api/src/models/_get_compressed_token_accounts_by_delegate_post_request_params.rs | /*
* photon-indexer
*
* Solana indexer for general compression
*
* The version of the OpenAPI document: 0.45.0
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct GetCompressedTokenAccountsByDelegatePostRequestPa... | 0 |
solana_public_repos/Lightprotocol/light-protocol/photon-api/src | solana_public_repos/Lightprotocol/light-protocol/photon-api/src/models/_get_compressed_account_balance_post_200_response.rs | /*
* photon-indexer
*
* Solana indexer for general compression
*
* The version of the OpenAPI document: 0.45.0
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct GetCompressedAccountBalancePost200Response {
... | 0 |
solana_public_repos/Lightprotocol/light-protocol/photon-api/src | solana_public_repos/Lightprotocol/light-protocol/photon-api/src/models/data_slice.rs | /*
* photon-indexer
*
* Solana indexer for general compression
*
* The version of the OpenAPI document: 0.45.0
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct DataSlice {
#[serde(rename = "length")]
p... | 0 |
solana_public_repos/Lightprotocol/light-protocol/photon-api/src | solana_public_repos/Lightprotocol/light-protocol/photon-api/src/models/token_balance.rs | /*
* photon-indexer
*
* Solana indexer for general compression
*
* The version of the OpenAPI document: 0.45.0
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct TokenBalance {
#[serde(rename = "balance")]
... | 0 |
solana_public_repos/Lightprotocol/light-protocol/photon-api/src | solana_public_repos/Lightprotocol/light-protocol/photon-api/src/models/account_state.rs | /*
* photon-indexer
*
* Solana indexer for general compression
*
* The version of the OpenAPI document: 0.45.0
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
///
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum AccountState {
#[se... | 0 |
solana_public_repos/Lightprotocol/light-protocol/photon-api/src | solana_public_repos/Lightprotocol/light-protocol/photon-api/src/models/_get_indexer_health_post_200_response.rs | /*
* photon-indexer
*
* Solana indexer for general compression
*
* The version of the OpenAPI document: 0.45.0
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct GetIndexerHealthPost200Response {
#[serde(ren... | 0 |
solana_public_repos/Lightprotocol/light-protocol/photon-api/src | solana_public_repos/Lightprotocol/light-protocol/photon-api/src/models/_get_compressed_accounts_by_owner_post_200_response_result.rs | /*
* photon-indexer
*
* Solana indexer for general compression
*
* The version of the OpenAPI document: 0.45.0
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct GetCompressedAccountsByOwnerPost200ResponseResult... | 0 |
solana_public_repos/Lightprotocol/light-protocol/photon-api/src | solana_public_repos/Lightprotocol/light-protocol/photon-api/src/models/_get_transaction_with_compression_info_post_200_response_result_compression_info.rs | /*
* photon-indexer
*
* Solana indexer for general compression
*
* The version of the OpenAPI document: 0.45.0
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct GetTransactionWithCompressionInfoPost200ResponseR... | 0 |
solana_public_repos/Lightprotocol/light-protocol/photon-api/src | solana_public_repos/Lightprotocol/light-protocol/photon-api/src/models/merkle_proof_with_context.rs | /*
* photon-indexer
*
* Solana indexer for general compression
*
* The version of the OpenAPI document: 0.45.0
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct MerkleProofWithContext {
/// A 32-byte hash r... | 0 |
solana_public_repos/Lightprotocol/light-protocol/photon-api/src | solana_public_repos/Lightprotocol/light-protocol/photon-api/src/models/_get_compression_signatures_for_address_post_request.rs | /*
* photon-indexer
*
* Solana indexer for general compression
*
* The version of the OpenAPI document: 0.45.0
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct GetCompressionSignaturesForAddressPostRequest {
... | 0 |
solana_public_repos/Lightprotocol/light-protocol/photon-api/src | solana_public_repos/Lightprotocol/light-protocol/photon-api/src/models/_get_compression_signatures_for_token_owner_post_request.rs | /*
* photon-indexer
*
* Solana indexer for general compression
*
* The version of the OpenAPI document: 0.45.0
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct GetCompressionSignaturesForTokenOwnerPostRequest ... | 0 |
solana_public_repos/Lightprotocol/light-protocol/photon-api/src | solana_public_repos/Lightprotocol/light-protocol/photon-api/src/models/_get_compressed_account_balance_post_request.rs | /*
* photon-indexer
*
* Solana indexer for general compression
*
* The version of the OpenAPI document: 0.45.0
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct GetCompressedAccountBalancePostRequest {
/// ... | 0 |
solana_public_repos/Lightprotocol/light-protocol/photon-api/src | solana_public_repos/Lightprotocol/light-protocol/photon-api/src/models/signature_info.rs | /*
* photon-indexer
*
* Solana indexer for general compression
*
* The version of the OpenAPI document: 0.45.0
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct SignatureInfo {
/// An Unix timestamp (second... | 0 |
solana_public_repos/Lightprotocol/light-protocol/photon-api/src | solana_public_repos/Lightprotocol/light-protocol/photon-api/src/models/_get_validity_proof_post_200_response_result.rs | /*
* photon-indexer
*
* Solana indexer for general compression
*
* The version of the OpenAPI document: 0.45.0
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct GetValidityProofPost200ResponseResult {
#[ser... | 0 |
solana_public_repos/Lightprotocol/light-protocol/photon-api/src | solana_public_repos/Lightprotocol/light-protocol/photon-api/src/models/_get_latest_non_voting_signatures_post_200_response_result.rs | /*
* photon-indexer
*
* Solana indexer for general compression
*
* The version of the OpenAPI document: 0.45.0
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct GetLatestNonVotingSignaturesPost200ResponseResult... | 0 |
solana_public_repos/Lightprotocol/light-protocol/photon-api/src | solana_public_repos/Lightprotocol/light-protocol/photon-api/src/models/_get_compressed_account_proof_post_request_params.rs | /*
* photon-indexer
*
* Solana indexer for general compression
*
* The version of the OpenAPI document: 0.45.0
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct GetCompressedAccountProofPostRequestParams {
... | 0 |
solana_public_repos/Lightprotocol/light-protocol/photon-api/src | solana_public_repos/Lightprotocol/light-protocol/photon-api/src/models/_get_compression_signatures_for_account_post_request.rs | /*
* photon-indexer
*
* Solana indexer for general compression
*
* The version of the OpenAPI document: 0.45.0
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct GetCompressionSignaturesForAccountPostRequest {
... | 0 |
solana_public_repos/Lightprotocol/light-protocol/photon-api/src | solana_public_repos/Lightprotocol/light-protocol/photon-api/src/models/_get_compressed_token_accounts_by_delegate_post_200_response_result.rs | /*
* photon-indexer
*
* Solana indexer for general compression
*
* The version of the OpenAPI document: 0.45.0
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct GetCompressedTokenAccountsByDelegatePost200Respon... | 0 |
solana_public_repos/Lightprotocol/light-protocol/photon-api/src | solana_public_repos/Lightprotocol/light-protocol/photon-api/src/models/_get_compressed_token_accounts_by_delegate_post_request.rs | /*
* photon-indexer
*
* Solana indexer for general compression
*
* The version of the OpenAPI document: 0.45.0
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct GetCompressedTokenAccountsByDelegatePostRequest {... | 0 |
solana_public_repos/Lightprotocol/light-protocol/photon-api/src | solana_public_repos/Lightprotocol/light-protocol/photon-api/src/models/_get_compressed_accounts_by_owner_post_request_params.rs | /*
* photon-indexer
*
* Solana indexer for general compression
*
* The version of the OpenAPI document: 0.45.0
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct GetCompressedAccountsByOwnerPostRequestParams {
... | 0 |
solana_public_repos/Lightprotocol/light-protocol/photon-api/src | solana_public_repos/Lightprotocol/light-protocol/photon-api/src/models/_get_compressed_accounts_by_owner_post_200_response.rs | /*
* photon-indexer
*
* Solana indexer for general compression
*
* The version of the OpenAPI document: 0.45.0
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct GetCompressedAccountsByOwnerPost200Response {
... | 0 |
solana_public_repos/Lightprotocol/light-protocol/photon-api/src | solana_public_repos/Lightprotocol/light-protocol/photon-api/src/models/signature_info_list_with_error.rs | /*
* photon-indexer
*
* Solana indexer for general compression
*
* The version of the OpenAPI document: 0.45.0
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct SignatureInfoListWithError {
#[serde(rename =... | 0 |
solana_public_repos/Lightprotocol/light-protocol/photon-api/src | solana_public_repos/Lightprotocol/light-protocol/photon-api/src/models/_get_transaction_with_compression_info_post_200_response.rs | /*
* photon-indexer
*
* Solana indexer for general compression
*
* The version of the OpenAPI document: 0.45.0
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct GetTransactionWithCompressionInfoPost200Response ... | 0 |
solana_public_repos/Lightprotocol/light-protocol/photon-api/src | solana_public_repos/Lightprotocol/light-protocol/photon-api/src/models/_get_compressed_token_account_balance_post_200_response_result.rs | /*
* photon-indexer
*
* Solana indexer for general compression
*
* The version of the OpenAPI document: 0.45.0
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct GetCompressedTokenAccountBalancePost200ResponseRe... | 0 |
solana_public_repos/Lightprotocol/light-protocol/photon-api/src | solana_public_repos/Lightprotocol/light-protocol/photon-api/src/models/_get_indexer_slot_post_request.rs | /*
* photon-indexer
*
* Solana indexer for general compression
*
* The version of the OpenAPI document: 0.45.0
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct GetIndexerSlotPostRequest {
/// An ID to iden... | 0 |
solana_public_repos/Lightprotocol/light-protocol/photon-api/src | solana_public_repos/Lightprotocol/light-protocol/photon-api/src/models/_get_compression_signatures_for_owner_post_request.rs | /*
* photon-indexer
*
* Solana indexer for general compression
*
* The version of the OpenAPI document: 0.45.0
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct GetCompressionSignaturesForOwnerPostRequest {
... | 0 |
solana_public_repos/Lightprotocol/light-protocol/photon-api/src | solana_public_repos/Lightprotocol/light-protocol/photon-api/src/models/_get_compression_signatures_for_address_post_200_response_result.rs | /*
* photon-indexer
*
* Solana indexer for general compression
*
* The version of the OpenAPI document: 0.45.0
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct GetCompressionSignaturesForAddressPost200Response... | 0 |
solana_public_repos/Lightprotocol/light-protocol/photon-api/src | solana_public_repos/Lightprotocol/light-protocol/photon-api/src/models/mod.rs | pub mod account;
pub use self::account::Account;
pub mod account_data;
pub use self::account_data::AccountData;
pub mod account_list;
pub use self::account_list::AccountList;
pub mod account_state;
pub use self::account_state::AccountState;
pub mod account_with_optional_token_data;
pub use self::account_with_optional_t... | 0 |
solana_public_repos/Lightprotocol/light-protocol/photon-api/src | solana_public_repos/Lightprotocol/light-protocol/photon-api/src/models/_get_compressed_account_balance_post_200_response_result.rs | /*
* photon-indexer
*
* Solana indexer for general compression
*
* The version of the OpenAPI document: 0.45.0
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct GetCompressedAccountBalancePost200ResponseResult ... | 0 |
solana_public_repos/Lightprotocol/light-protocol/photon-api/src | solana_public_repos/Lightprotocol/light-protocol/photon-api/src/models/account.rs | /*
* photon-indexer
*
* Solana indexer for general compression
*
* The version of the OpenAPI document: 0.45.0
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct Account {
/// A Solana public key represented... | 0 |
solana_public_repos/Lightprotocol/light-protocol/photon-api/src | solana_public_repos/Lightprotocol/light-protocol/photon-api/src/models/_get_compression_signatures_for_account_post_200_response_result.rs | /*
* photon-indexer
*
* Solana indexer for general compression
*
* The version of the OpenAPI document: 0.45.0
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct GetCompressionSignaturesForAccountPost200Response... | 0 |
solana_public_repos/Lightprotocol/light-protocol/photon-api/src | solana_public_repos/Lightprotocol/light-protocol/photon-api/src/models/_get_validity_proof_post_200_response.rs | /*
* photon-indexer
*
* Solana indexer for general compression
*
* The version of the OpenAPI document: 0.45.0
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct GetValidityProofPost200Response {
#[serde(ren... | 0 |
solana_public_repos/Lightprotocol/light-protocol/photon-api/src | solana_public_repos/Lightprotocol/light-protocol/photon-api/src/models/paginated_signature_info_list.rs | /*
* photon-indexer
*
* Solana indexer for general compression
*
* The version of the OpenAPI document: 0.45.0
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct PaginatedSignatureInfoList {
#[serde(
... | 0 |
solana_public_repos/Lightprotocol/light-protocol/photon-api/src | solana_public_repos/Lightprotocol/light-protocol/photon-api/src/models/_get_compressed_balance_by_owner_post_request_params.rs | /*
* photon-indexer
*
* Solana indexer for general compression
*
* The version of the OpenAPI document: 0.45.0
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct GetCompressedBalanceByOwnerPostRequestParams {
... | 0 |
solana_public_repos/Lightprotocol/light-protocol/photon-api/src | solana_public_repos/Lightprotocol/light-protocol/photon-api/src/models/token_acccount.rs | /*
* photon-indexer
*
* Solana indexer for general compression
*
* The version of the OpenAPI document: 0.45.0
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct TokenAcccount {
#[serde(rename = "account")]
... | 0 |
solana_public_repos/Lightprotocol/light-protocol/photon-api/src | solana_public_repos/Lightprotocol/light-protocol/photon-api/src/models/_get_compressed_token_account_balance_post_200_response.rs | /*
* photon-indexer
*
* Solana indexer for general compression
*
* The version of the OpenAPI document: 0.45.0
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct GetCompressedTokenAccountBalancePost200Response {... | 0 |
solana_public_repos/Lightprotocol/light-protocol/photon-api/src | solana_public_repos/Lightprotocol/light-protocol/photon-api/src/models/_get_transaction_with_compression_info_post_200_response_result.rs | /*
* photon-indexer
*
* Solana indexer for general compression
*
* The version of the OpenAPI document: 0.45.0
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
/// GetTransactionWithCompressionInfoPost200ResponseResult : A Solana transaction with additional compression information
#[deri... | 0 |
solana_public_repos/Lightprotocol/light-protocol/photon-api/src | solana_public_repos/Lightprotocol/light-protocol/photon-api/src/models/signature_info_with_error.rs | /*
* photon-indexer
*
* Solana indexer for general compression
*
* The version of the OpenAPI document: 0.45.0
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct SignatureInfoWithError {
/// An Unix timestam... | 0 |
solana_public_repos/Lightprotocol/light-protocol/photon-api/src | solana_public_repos/Lightprotocol/light-protocol/photon-api/src/models/_get_compression_signatures_for_account_post_200_response.rs | /*
* photon-indexer
*
* Solana indexer for general compression
*
* The version of the OpenAPI document: 0.45.0
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct GetCompressionSignaturesForAccountPost200Response... | 0 |
solana_public_repos/Lightprotocol/light-protocol/photon-api/src | solana_public_repos/Lightprotocol/light-protocol/photon-api/src/models/_get_compressed_token_balances_by_owner_post_200_response.rs | /*
* photon-indexer
*
* Solana indexer for general compression
*
* The version of the OpenAPI document: 0.45.0
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct GetCompressedTokenBalancesByOwnerPost200Response ... | 0 |
solana_public_repos/Lightprotocol/light-protocol/photon-api/src | solana_public_repos/Lightprotocol/light-protocol/photon-api/src/models/merkle_context_with_new_address_proof.rs | /*
* photon-indexer
*
* Solana indexer for general compression
*
* The version of the OpenAPI document: 0.45.0
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct MerkleContextWithNewAddressProof {
/// A Sola... | 0 |
solana_public_repos/Lightprotocol/light-protocol/photon-api/src | solana_public_repos/Lightprotocol/light-protocol/photon-api/src/models/_get_latest_non_voting_signatures_post_200_response.rs | /*
* photon-indexer
*
* Solana indexer for general compression
*
* The version of the OpenAPI document: 0.45.0
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct GetLatestNonVotingSignaturesPost200Response {
... | 0 |
solana_public_repos/Lightprotocol/light-protocol/photon-api/src | solana_public_repos/Lightprotocol/light-protocol/photon-api/src/models/_get_validity_proof_post_request.rs | /*
* photon-indexer
*
* Solana indexer for general compression
*
* The version of the OpenAPI document: 0.45.0
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct GetValidityProofPostRequest {
/// An ID to id... | 0 |
solana_public_repos/Lightprotocol/light-protocol/photon-api/src | solana_public_repos/Lightprotocol/light-protocol/photon-api/src/models/_get_compressed_accounts_by_owner_post_request.rs | /*
* photon-indexer
*
* Solana indexer for general compression
*
* The version of the OpenAPI document: 0.45.0
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct GetCompressedAccountsByOwnerPostRequest {
///... | 0 |
solana_public_repos/Lightprotocol/light-protocol/photon-api/src | solana_public_repos/Lightprotocol/light-protocol/photon-api/src/models/_get_compressed_token_balances_by_owner_post_200_response_result.rs | /*
* photon-indexer
*
* Solana indexer for general compression
*
* The version of the OpenAPI document: 0.45.0
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct GetCompressedTokenBalancesByOwnerPost200ResponseR... | 0 |
solana_public_repos/Lightprotocol/light-protocol/photon-api/src | solana_public_repos/Lightprotocol/light-protocol/photon-api/src/models/signature_info_list.rs | /*
* photon-indexer
*
* Solana indexer for general compression
*
* The version of the OpenAPI document: 0.45.0
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct SignatureInfoList {
#[serde(rename = "items")... | 0 |
solana_public_repos/Lightprotocol/light-protocol/photon-api/src | solana_public_repos/Lightprotocol/light-protocol/photon-api/src/models/_get_compression_signatures_for_owner_post_request_params.rs | /*
* photon-indexer
*
* Solana indexer for general compression
*
* The version of the OpenAPI document: 0.45.0
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct GetCompressionSignaturesForOwnerPostRequestParams... | 0 |
solana_public_repos/Lightprotocol/light-protocol/photon-api/src | solana_public_repos/Lightprotocol/light-protocol/photon-api/src/models/account_list.rs | /*
* photon-indexer
*
* Solana indexer for general compression
*
* The version of the OpenAPI document: 0.45.0
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct AccountList {
#[serde(rename = "items")]
... | 0 |
solana_public_repos/Lightprotocol/light-protocol/photon-api/src | solana_public_repos/Lightprotocol/light-protocol/photon-api/src/models/_get_compressed_token_accounts_by_owner_post_request.rs | /*
* photon-indexer
*
* Solana indexer for general compression
*
* The version of the OpenAPI document: 0.45.0
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct GetCompressedTokenAccountsByOwnerPostRequest {
... | 0 |
solana_public_repos/Lightprotocol/light-protocol/photon-api/src | solana_public_repos/Lightprotocol/light-protocol/photon-api/src/models/_get_compressed_balance_by_owner_post_request.rs | /*
* photon-indexer
*
* Solana indexer for general compression
*
* The version of the OpenAPI document: 0.45.0
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct GetCompressedBalanceByOwnerPostRequest {
/// ... | 0 |
solana_public_repos/Lightprotocol/light-protocol/photon-api/src | solana_public_repos/Lightprotocol/light-protocol/photon-api/src/models/_get_compressed_token_balances_by_owner_post_request.rs | /*
* photon-indexer
*
* Solana indexer for general compression
*
* The version of the OpenAPI document: 0.45.0
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct GetCompressedTokenBalancesByOwnerPostRequest {
... | 0 |
solana_public_repos/Lightprotocol/light-protocol/photon-api/src | solana_public_repos/Lightprotocol/light-protocol/photon-api/src/models/_get_multiple_new_address_proofs_post_200_response_result.rs | /*
* photon-indexer
*
* Solana indexer for general compression
*
* The version of the OpenAPI document: 0.45.0
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct GetMultipleNewAddressProofsPost200ResponseResult ... | 0 |
solana_public_repos/Lightprotocol/light-protocol/photon-api/src | solana_public_repos/Lightprotocol/light-protocol/photon-api/src/models/account_with_optional_token_data.rs | /*
* photon-indexer
*
* Solana indexer for general compression
*
* The version of the OpenAPI document: 0.45.0
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct AccountWithOptionalTokenData {
#[serde(rename... | 0 |
solana_public_repos/Lightprotocol/light-protocol/photon-api/src | solana_public_repos/Lightprotocol/light-protocol/photon-api/src/models/_get_compressed_account_proof_post_request.rs | /*
* photon-indexer
*
* Solana indexer for general compression
*
* The version of the OpenAPI document: 0.45.0
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct GetCompressedAccountProofPostRequest {
/// An... | 0 |
solana_public_repos/Lightprotocol/light-protocol/photon-api/src | solana_public_repos/Lightprotocol/light-protocol/photon-api/src/models/_get_multiple_new_address_proofs_post_request.rs | /*
* photon-indexer
*
* Solana indexer for general compression
*
* The version of the OpenAPI document: 0.45.0
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct GetMultipleNewAddressProofsPostRequest {
/// ... | 0 |
solana_public_repos/Lightprotocol/light-protocol/photon-api/src | solana_public_repos/Lightprotocol/light-protocol/photon-api/src/models/_get_multiple_compressed_accounts_post_request_params.rs | /*
* photon-indexer
*
* Solana indexer for general compression
*
* The version of the OpenAPI document: 0.45.0
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
/// GetMultipleCompressedAccountsPostRequestParams : Request for compressed account data
#[derive(Clone, Default, Debug, Partial... | 0 |
solana_public_repos/Lightprotocol/light-protocol/photon-api/src | solana_public_repos/Lightprotocol/light-protocol/photon-api/src/models/compressed_proof_with_context.rs | /*
* photon-indexer
*
* Solana indexer for general compression
*
* The version of the OpenAPI document: 0.45.0
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct CompressedProofWithContext {
#[serde(rename =... | 0 |
solana_public_repos/Lightprotocol/light-protocol/photon-api/src | solana_public_repos/Lightprotocol/light-protocol/photon-api/src/models/context.rs | /*
* photon-indexer
*
* Solana indexer for general compression
*
* The version of the OpenAPI document: 0.45.0
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct Context {
#[serde(rename = "slot")]
pub s... | 0 |
solana_public_repos/Lightprotocol/light-protocol/photon-api/src | solana_public_repos/Lightprotocol/light-protocol/photon-api/src/models/_get_multiple_new_address_proofs_post_200_response.rs | /*
* photon-indexer
*
* Solana indexer for general compression
*
* The version of the OpenAPI document: 0.45.0
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct GetMultipleNewAddressProofsPost200Response {
... | 0 |
solana_public_repos/Lightprotocol/light-protocol/photon-api/src | solana_public_repos/Lightprotocol/light-protocol/photon-api/src/models/_get_latest_non_voting_signatures_post_request.rs | /*
* photon-indexer
*
* Solana indexer for general compression
*
* The version of the OpenAPI document: 0.45.0
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct GetLatestNonVotingSignaturesPostRequest {
///... | 0 |
solana_public_repos/Lightprotocol/light-protocol/photon-api/src | solana_public_repos/Lightprotocol/light-protocol/photon-api/src/models/_get_compressed_account_post_request.rs | /*
* photon-indexer
*
* Solana indexer for general compression
*
* The version of the OpenAPI document: 0.45.0
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct GetCompressedAccountPostRequest {
/// An ID t... | 0 |
solana_public_repos/Lightprotocol/light-protocol/photon-api/src | solana_public_repos/Lightprotocol/light-protocol/photon-api/src/models/_get_transaction_with_compression_info_post_request.rs | /*
* photon-indexer
*
* Solana indexer for general compression
*
* The version of the OpenAPI document: 0.45.0
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct GetTransactionWithCompressionInfoPostRequest {
... | 0 |
solana_public_repos/Lightprotocol/light-protocol | solana_public_repos/Lightprotocol/light-protocol/test-utils/Cargo.toml | [package]
name = "light-test-utils"
version = "1.2.1"
description = "Utilities used in Light Protocol program tests"
repository = "https://github.com/Lightprotocol/light-protocol"
license = "Apache-2.0"
edition = "2021"
[features]
default = []
devenv = []
[dependencies]
anchor-lang = { workspace = true }
anchor-spl =... | 0 |
solana_public_repos/Lightprotocol/light-protocol/test-utils | solana_public_repos/Lightprotocol/light-protocol/test-utils/src/assert_compressed_tx.rs | use account_compression::{state::QueueAccount, StateMerkleTreeAccount};
use forester_utils::indexer::{Indexer, StateMerkleTreeAccounts};
use forester_utils::{get_concurrent_merkle_tree, get_hash_set, AccountZeroCopy};
use light_client::rpc::RpcConnection;
use light_hasher::Poseidon;
use light_system_program::sdk::event... | 0 |
solana_public_repos/Lightprotocol/light-protocol/test-utils | solana_public_repos/Lightprotocol/light-protocol/test-utils/src/assert_epoch.rs | use light_client::rpc::RpcConnection;
use light_registry::{
protocol_config::state::ProtocolConfigPda,
utils::{get_epoch_pda_address, get_forester_pda, get_protocol_config_pda_address},
EpochPda, ForesterEpochPda, ForesterPda,
};
use solana_sdk::pubkey::Pubkey;
pub async fn assert_finalized_epoch_registrat... | 0 |
solana_public_repos/Lightprotocol/light-protocol/test-utils | solana_public_repos/Lightprotocol/light-protocol/test-utils/src/test_forester.rs | use account_compression::instruction::UpdateAddressMerkleTree;
use account_compression::state::QueueAccount;
use account_compression::utils::constants::{
ADDRESS_MERKLE_TREE_HEIGHT, ADDRESS_MERKLE_TREE_ROOTS,
};
use account_compression::{instruction::InsertAddresses, StateMerkleTreeAccount, ID};
use account_compres... | 0 |
solana_public_repos/Lightprotocol/light-protocol/test-utils | solana_public_repos/Lightprotocol/light-protocol/test-utils/src/lib.rs | use account_compression::initialize_address_merkle_tree::Pubkey;
use account_compression::{
AddressMerkleTreeConfig, AddressQueueConfig, QueueType, RegisteredProgram,
};
use solana_sdk::signature::{Keypair, Signature, Signer};
use solana_sdk::{instruction::InstructionError, transaction};
use std::cmp;
pub mod addr... | 0 |
solana_public_repos/Lightprotocol/light-protocol/test-utils | solana_public_repos/Lightprotocol/light-protocol/test-utils/src/assert_address_merkle_tree.rs | use forester_utils::{get_indexed_merkle_tree, AccountZeroCopy};
use light_client::rpc::RpcConnection;
use light_hasher::Poseidon;
use solana_sdk::pubkey::Pubkey;
#[allow(clippy::too_many_arguments)]
pub async fn assert_address_merkle_tree_initialized<R: RpcConnection>(
rpc: &mut R,
merkle_tree_pubkey: &Pubkey,... | 0 |
solana_public_repos/Lightprotocol/light-protocol/test-utils | solana_public_repos/Lightprotocol/light-protocol/test-utils/src/assert_merkle_tree.rs | use account_compression::StateMerkleTreeAccount;
use forester_utils::{get_concurrent_merkle_tree, AccountZeroCopy};
use light_client::rpc::RpcConnection;
use light_hasher::Poseidon;
use light_utils::fee::compute_rollover_fee;
use solana_sdk::pubkey::Pubkey;
#[allow(clippy::too_many_arguments)]
pub async fn assert_merk... | 0 |
solana_public_repos/Lightprotocol/light-protocol/test-utils | solana_public_repos/Lightprotocol/light-protocol/test-utils/src/address_tree_rollover.rs | #![allow(clippy::await_holding_refcell_ref)]
use anchor_lang::{InstructionData, Key, Lamports, ToAccountInfo, ToAccountMetas};
use solana_sdk::clock::Slot;
use solana_sdk::{
account::{AccountSharedData, WritableAccount},
account_info::AccountInfo,
instruction::Instruction,
pubkey::Pubkey,
signature... | 0 |
solana_public_repos/Lightprotocol/light-protocol/test-utils | solana_public_repos/Lightprotocol/light-protocol/test-utils/src/assert_rollover.rs | use account_compression::{MerkleTreeMetadata, QueueMetadata};
use anchor_lang::prelude::Pubkey;
use light_concurrent_merkle_tree::ConcurrentMerkleTree;
use light_hasher::Hasher;
pub fn assert_rolledover_merkle_trees<H, const HEIGHT: usize>(
old_merkle_tree: &ConcurrentMerkleTree<H, HEIGHT>,
new_merkle_tree: &C... | 0 |
solana_public_repos/Lightprotocol/light-protocol/test-utils | solana_public_repos/Lightprotocol/light-protocol/test-utils/src/spl.rs | use anchor_spl::token::{Mint, TokenAccount};
use forester_utils::create_account_instruction;
use forester_utils::indexer::{Indexer, TokenDataWithContext};
use light_compressed_token::process_compress_spl_token_account::sdk::create_compress_spl_token_account_instruction;
use light_compressed_token::{
burn::sdk::{cre... | 0 |
solana_public_repos/Lightprotocol/light-protocol/test-utils | solana_public_repos/Lightprotocol/light-protocol/test-utils/src/assert_queue.rs | use account_compression::{QueueAccount, QueueMetadata, QueueType, RolloverMetadata};
use forester_utils::{get_hash_set, AccountZeroCopy};
use light_client::rpc::RpcConnection;
use light_utils::fee::compute_rollover_fee;
use solana_sdk::pubkey::Pubkey;
#[allow(clippy::too_many_arguments)]
pub async fn assert_address_qu... | 0 |
solana_public_repos/Lightprotocol/light-protocol/test-utils | solana_public_repos/Lightprotocol/light-protocol/test-utils/src/assert_token_tx.rs | use crate::assert_compressed_tx::{
assert_merkle_tree_after_tx, assert_nullifiers_exist_in_hash_sets,
assert_public_transaction_event, MerkleTreeTestSnapShot,
};
use anchor_lang::AnchorSerialize;
use forester_utils::indexer::{Indexer, TokenDataWithContext};
use light_client::rpc::RpcConnection;
use light_compre... | 0 |
solana_public_repos/Lightprotocol/light-protocol/test-utils | solana_public_repos/Lightprotocol/light-protocol/test-utils/src/e2e_test_env.rs | // Flow:
// init indexer
// init first keypair
// init crank
// vec of public Merkle tree NF queue pairs
// vec of public address Mt and queue pairs
// for i in rounds
// randomly add new keypair
// for every keypair randomly select whether it does an action
// Architecture:
// - bundle trees, indexer etc in a E2ETe... | 0 |
solana_public_repos/Lightprotocol/light-protocol/test-utils | solana_public_repos/Lightprotocol/light-protocol/test-utils/src/state_tree_rollover.rs | #![allow(clippy::await_holding_refcell_ref)]
use crate::assert_rollover::{
assert_rolledover_merkle_trees, assert_rolledover_merkle_trees_metadata,
assert_rolledover_queues_metadata,
};
use account_compression::NullifierQueueConfig;
use account_compression::{
self, initialize_address_merkle_tree::AccountLo... | 0 |
solana_public_repos/Lightprotocol/light-protocol/test-utils | solana_public_repos/Lightprotocol/light-protocol/test-utils/src/system_program.rs | use forester_utils::indexer::Indexer;
use light_hasher::Poseidon;
use light_system_program::sdk::event::PublicTransactionEvent;
use light_system_program::{
sdk::{
address::derive_address,
compressed_account::{
CompressedAccount, CompressedAccountWithMerkleContext, MerkleContext,
... | 0 |
solana_public_repos/Lightprotocol/light-protocol/test-utils/src | solana_public_repos/Lightprotocol/light-protocol/test-utils/src/indexer/mod.rs | pub mod test_indexer;
pub use test_indexer::TestIndexer;
| 0 |
solana_public_repos/Lightprotocol/light-protocol/test-utils/src | solana_public_repos/Lightprotocol/light-protocol/test-utils/src/indexer/test_indexer.rs | use log::{debug, info, warn};
use num_bigint::BigUint;
use solana_sdk::bs58;
use std::marker::PhantomData;
use std::sync::{Arc, Mutex};
use crate::create_address_merkle_tree_and_queue_account_with_assert;
use crate::e2e_test_env::KeypairActionConfig;
use crate::spl::create_initialize_mint_instructions;
use account_com... | 0 |
solana_public_repos/Lightprotocol/light-protocol/merkle-tree | solana_public_repos/Lightprotocol/light-protocol/merkle-tree/hasher/Cargo.toml | [package]
name = "light-hasher"
version = "1.1.0"
description = "Trait for generic usage of hash functions on Solana"
repository = "https://github.com/Lightprotocol/light-protocol"
license = "Apache-2.0"
edition = "2021"
[features]
solana = []
[dependencies]
light-poseidon = "0.2.0"
solana-program = { workspace = tru... | 0 |
solana_public_repos/Lightprotocol/light-protocol/merkle-tree/hasher | solana_public_repos/Lightprotocol/light-protocol/merkle-tree/hasher/src/sha256.rs | use crate::{
errors::HasherError,
zero_bytes::{sha256::ZERO_BYTES, ZeroBytes},
zero_indexed_leaf::sha256::ZERO_INDEXED_LEAF,
Hash, Hasher,
};
#[derive(Clone, Copy)] // To allow using with zero copy Solana accounts.
pub struct Sha256;
impl Hasher for Sha256 {
fn hash(val: &[u8]) -> Result<Hash, Has... | 0 |
solana_public_repos/Lightprotocol/light-protocol/merkle-tree/hasher | solana_public_repos/Lightprotocol/light-protocol/merkle-tree/hasher/src/lib.rs | pub mod bytes;
pub mod errors;
pub mod keccak;
pub mod poseidon;
pub mod sha256;
pub mod syscalls;
pub mod zero_bytes;
pub mod zero_indexed_leaf;
pub use keccak::Keccak;
pub use poseidon::Poseidon;
pub use sha256::Sha256;
pub use crate::errors::HasherError;
use crate::zero_bytes::ZeroBytes;
pub const HASH_BYTES: usi... | 0 |
solana_public_repos/Lightprotocol/light-protocol/merkle-tree/hasher | solana_public_repos/Lightprotocol/light-protocol/merkle-tree/hasher/src/keccak.rs | use crate::{
errors::HasherError,
zero_bytes::{keccak::ZERO_BYTES, ZeroBytes},
zero_indexed_leaf::keccak::ZERO_INDEXED_LEAF,
Hash, Hasher,
};
#[derive(Clone, Copy)] // To allow using with zero copy Solana accounts.
pub struct Keccak;
impl Hasher for Keccak {
fn hash(val: &[u8]) -> Result<Hash, Has... | 0 |
solana_public_repos/Lightprotocol/light-protocol/merkle-tree/hasher | solana_public_repos/Lightprotocol/light-protocol/merkle-tree/hasher/src/errors.rs | use light_poseidon::PoseidonError;
use solana_program::poseidon::PoseidonSyscallError;
use thiserror::Error;
#[derive(Debug, Error)]
pub enum HasherError {
#[error("Integer overflow, value too large")]
IntegerOverflow,
#[error("Poseidon hasher error: {0}")]
Poseidon(#[from] PoseidonError),
#[error(... | 0 |
solana_public_repos/Lightprotocol/light-protocol/merkle-tree/hasher | solana_public_repos/Lightprotocol/light-protocol/merkle-tree/hasher/src/bytes.rs | /// A trait providing [`as_byte_vec()`](AsByteVec::as_byte_vec) method for types which
/// are used inside compressed accounts.
pub trait AsByteVec {
fn as_byte_vec(&self) -> Vec<Vec<u8>>;
}
macro_rules! impl_as_byte_vec_for_integer_type {
($int_ty:ty) => {
impl AsByteVec for $int_ty {
fn a... | 0 |
solana_public_repos/Lightprotocol/light-protocol/merkle-tree/hasher | solana_public_repos/Lightprotocol/light-protocol/merkle-tree/hasher/src/poseidon.rs | use crate::{
errors::HasherError,
zero_bytes::{poseidon::ZERO_BYTES, ZeroBytes},
zero_indexed_leaf::poseidon::ZERO_INDEXED_LEAF,
Hash, Hasher,
};
#[derive(Debug, Clone, Copy)]
pub struct Poseidon;
impl Hasher for Poseidon {
fn hash(val: &[u8]) -> Result<Hash, HasherError> {
Self::hashv(&[v... | 0 |
solana_public_repos/Lightprotocol/light-protocol/merkle-tree/hasher/src | solana_public_repos/Lightprotocol/light-protocol/merkle-tree/hasher/src/zero_indexed_leaf/sha256.rs | // This file is generated by xtask. Do not edit it manually.
pub const ZERO_INDEXED_LEAF: [u8; 32] = [
131u8, 74u8, 112u8, 155u8, 162u8, 83u8, 78u8, 190u8, 62u8, 225u8, 57u8, 127u8, 212u8, 247u8,
189u8, 40u8, 139u8, 42u8, 204u8, 29u8, 32u8, 160u8, 141u8, 108u8, 134u8, 45u8, 205u8, 153u8,
182u8, 240u8, 68u8... | 0 |
solana_public_repos/Lightprotocol/light-protocol/merkle-tree/hasher/src | solana_public_repos/Lightprotocol/light-protocol/merkle-tree/hasher/src/zero_indexed_leaf/keccak.rs | // This file is generated by xtask. Do not edit it manually.
pub const ZERO_INDEXED_LEAF: [u8; 32] = [
60u8, 172u8, 49u8, 121u8, 8u8, 198u8, 153u8, 254u8, 135u8, 58u8, 127u8, 110u8, 228u8, 232u8,
205u8, 99u8, 251u8, 233u8, 145u8, 139u8, 35u8, 21u8, 201u8, 123u8, 233u8, 21u8, 133u8, 89u8,
1u8, 104u8, 227u8,... | 0 |
solana_public_repos/Lightprotocol/light-protocol/merkle-tree/hasher/src | solana_public_repos/Lightprotocol/light-protocol/merkle-tree/hasher/src/zero_indexed_leaf/mod.rs | pub mod keccak;
pub mod poseidon;
pub mod sha256;
| 0 |
solana_public_repos/Lightprotocol/light-protocol/merkle-tree/hasher/src | solana_public_repos/Lightprotocol/light-protocol/merkle-tree/hasher/src/zero_indexed_leaf/poseidon.rs | // This file is generated by xtask. Do not edit it manually.
pub const ZERO_INDEXED_LEAF: [u8; 32] = [
11u8, 193u8, 136u8, 210u8, 125u8, 204u8, 234u8, 220u8, 29u8, 207u8, 182u8, 175u8, 10u8, 122u8,
240u8, 143u8, 226u8, 134u8, 78u8, 236u8, 236u8, 150u8, 197u8, 174u8, 124u8, 238u8, 109u8,
179u8, 27u8, 165u8,... | 0 |
solana_public_repos/Lightprotocol/light-protocol/merkle-tree/hasher/src | solana_public_repos/Lightprotocol/light-protocol/merkle-tree/hasher/src/zero_bytes/sha256.rs | // This file is generated by xtask. Do not edit it manually.
use super::ZeroBytes;
pub const ZERO_BYTES: ZeroBytes = [
[
0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8,
0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8,
],
[
... | 0 |
solana_public_repos/Lightprotocol/light-protocol/merkle-tree/hasher/src | solana_public_repos/Lightprotocol/light-protocol/merkle-tree/hasher/src/zero_bytes/keccak.rs | // This file is generated by xtask. Do not edit it manually.
use super::ZeroBytes;
pub const ZERO_BYTES: ZeroBytes = [
[
0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8,
0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8,
],
[
... | 0 |
solana_public_repos/Lightprotocol/light-protocol/merkle-tree/hasher/src | solana_public_repos/Lightprotocol/light-protocol/merkle-tree/hasher/src/zero_bytes/mod.rs | pub mod keccak;
pub mod poseidon;
pub mod sha256;
pub const MAX_HEIGHT: usize = 32;
pub type ZeroBytes = [[u8; 32]; MAX_HEIGHT + 1];
| 0 |
solana_public_repos/Lightprotocol/light-protocol/merkle-tree/hasher/src | solana_public_repos/Lightprotocol/light-protocol/merkle-tree/hasher/src/zero_bytes/poseidon.rs | // This file is generated by xtask. Do not edit it manually.
use super::ZeroBytes;
pub const ZERO_BYTES: ZeroBytes = [
[
0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8,
0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8,
],
[
... | 0 |
solana_public_repos/Lightprotocol/light-protocol/merkle-tree/hasher/src | solana_public_repos/Lightprotocol/light-protocol/merkle-tree/hasher/src/syscalls/definitions.rs | //! This module is a partial copy from
//! [solana-program](https://github.com/solana-labs/solana/blob/master/sdk/program/src/syscalls/definitions.rs),
//! which is licensed under Apache License 2.0.
#[cfg(target_feature = "static-syscalls")]
macro_rules! define_syscall {
(fn $name:ident($($arg:ident: $typ:ty),*) ... | 0 |
solana_public_repos/Lightprotocol/light-protocol/merkle-tree/hasher/src | solana_public_repos/Lightprotocol/light-protocol/merkle-tree/hasher/src/syscalls/mod.rs | //! This module is a partial copy from
//! [solana-program](https://github.com/solana-labs/solana/blob/master/sdk/program/src/syscalls/definitions.rs),
//! which is licensed under Apache License 2.0.
//!
//! The purpose of the module is to provide definition of Poseidon syscall
//! without upgrading solana-program and ... | 0 |
solana_public_repos/Lightprotocol/light-protocol/merkle-tree | solana_public_repos/Lightprotocol/light-protocol/merkle-tree/hash-set/Cargo.toml | [package]
name = "light-hash-set"
version = "1.2.0"
description = "Hash set which can be stored on a Solana account"
repository = "https://github.com/Lightprotocol/light-protocol"
license = "Apache-2.0"
edition = "2021"
[features]
solana = ["solana-program"]
[dependencies]
light-bounded-vec = { path = "../bounded-vec... | 0 |
solana_public_repos/Lightprotocol/light-protocol/merkle-tree/hash-set | solana_public_repos/Lightprotocol/light-protocol/merkle-tree/hash-set/src/zero_copy.rs | use std::{
marker::PhantomData,
mem,
ops::{Deref, DerefMut},
ptr::NonNull,
};
use crate::{HashSet, HashSetCell, HashSetError};
/// A `HashSet` wrapper which can be instantiated from Solana account bytes
/// without copying them.
#[derive(Debug)]
pub struct HashSetZeroCopy<'a> {
pub hash_set: mem::... | 0 |
solana_public_repos/Lightprotocol/light-protocol/merkle-tree/hash-set | solana_public_repos/Lightprotocol/light-protocol/merkle-tree/hash-set/src/lib.rs | use light_utils::{bigint::bigint_to_be_bytes_array, UtilsError};
use num_bigint::{BigUint, ToBigUint};
use num_traits::{FromBytes, ToPrimitive};
use std::{
alloc::{self, handle_alloc_error, Layout},
cmp::Ordering,
marker::Send,
mem,
ptr::NonNull,
};
use thiserror::Error;
pub mod zero_copy;
pub con... | 0 |
solana_public_repos/Lightprotocol/light-protocol/merkle-tree | solana_public_repos/Lightprotocol/light-protocol/merkle-tree/indexed/Cargo.toml | [package]
name = "light-indexed-merkle-tree"
version = "1.1.0"
description = "Implementation of indexed (and concurrent) Merkle tree in Rust"
repository = "https://github.com/Lightprotocol/light-protocol"
license = "Apache-2.0"
edition = "2021"
[features]
solana = [
"light-concurrent-merkle-tree/solana",
"solana-p... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.