repo_id
stringclasses
563 values
file_path
stringlengths
40
166
content
stringlengths
1
2.94M
__index_level_0__
int64
0
0
solana_public_repos/anza-xyz/wallet-adapter/packages/wallets
solana_public_repos/anza-xyz/wallet-adapter/packages/wallets/phantom/package.json
{ "name": "@solana/wallet-adapter-phantom", "version": "0.9.24", "author": "Solana Maintainers <maintainers@solana.foundation>", "repository": "https://github.com/anza-xyz/wallet-adapter", "license": "Apache-2.0", "publishConfig": { "access": "public" }, "files": [ "lib",...
0
solana_public_repos/anza-xyz/wallet-adapter/packages/wallets
solana_public_repos/anza-xyz/wallet-adapter/packages/wallets/phantom/tsconfig.cjs.json
{ "extends": "../../../tsconfig.cjs.json", "include": ["src"], "compilerOptions": { "outDir": "lib/cjs" } }
0
solana_public_repos/anza-xyz/wallet-adapter/packages/wallets
solana_public_repos/anza-xyz/wallet-adapter/packages/wallets/phantom/tsconfig.json
{ "extends": "../../../tsconfig.root.json", "references": [ { "path": "./tsconfig.cjs.json" }, { "path": "./tsconfig.esm.json" } ] }
0
solana_public_repos/anza-xyz/wallet-adapter/packages/wallets/phantom
solana_public_repos/anza-xyz/wallet-adapter/packages/wallets/phantom/src/adapter.ts
import type { EventEmitter, SendTransactionOptions, WalletName } from '@solana/wallet-adapter-base'; import { BaseMessageSignerWalletAdapter, isIosAndRedirectable, isVersionedTransaction, scopePollingDetectionStrategy, WalletAccountError, WalletConnectionError, WalletDisconnectedError, W...
0
solana_public_repos/anza-xyz/wallet-adapter/packages/wallets/phantom
solana_public_repos/anza-xyz/wallet-adapter/packages/wallets/phantom/src/index.ts
export * from './adapter.js';
0
solana_public_repos/anza-xyz/wallet-adapter/packages/wallets
solana_public_repos/anza-xyz/wallet-adapter/packages/wallets/salmon/LICENSE
Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, ...
0
solana_public_repos/anza-xyz/wallet-adapter/packages/wallets
solana_public_repos/anza-xyz/wallet-adapter/packages/wallets/salmon/tsconfig.esm.json
{ "extends": "../../../tsconfig.esm.json", "include": ["src"], "compilerOptions": { "outDir": "lib/esm", "declarationDir": "lib/types" } }
0
solana_public_repos/anza-xyz/wallet-adapter/packages/wallets
solana_public_repos/anza-xyz/wallet-adapter/packages/wallets/salmon/package.json
{ "name": "@solana/wallet-adapter-salmon", "version": "0.1.14", "author": "Solana Maintainers <maintainers@solana.foundation>", "repository": "https://github.com/anza-xyz/wallet-adapter", "license": "Apache-2.0", "publishConfig": { "access": "public" }, "files": [ "lib", ...
0
solana_public_repos/anza-xyz/wallet-adapter/packages/wallets
solana_public_repos/anza-xyz/wallet-adapter/packages/wallets/salmon/tsconfig.cjs.json
{ "extends": "../../../tsconfig.cjs.json", "include": ["src"], "compilerOptions": { "outDir": "lib/cjs" } }
0
solana_public_repos/anza-xyz/wallet-adapter/packages/wallets
solana_public_repos/anza-xyz/wallet-adapter/packages/wallets/salmon/tsconfig.json
{ "extends": "../../../tsconfig.root.json", "references": [ { "path": "./tsconfig.cjs.json" }, { "path": "./tsconfig.esm.json" } ] }
0
solana_public_repos/anza-xyz/wallet-adapter/packages/wallets/salmon
solana_public_repos/anza-xyz/wallet-adapter/packages/wallets/salmon/src/adapter.ts
import type { WalletName } from '@solana/wallet-adapter-base'; import { BaseMessageSignerWalletAdapter, scopePollingDetectionStrategy, WalletAccountError, WalletAdapterNetwork, WalletConfigError, WalletConnectionError, WalletDisconnectedError, WalletDisconnectionError, WalletLoadErro...
0
solana_public_repos/anza-xyz/wallet-adapter/packages/wallets/salmon
solana_public_repos/anza-xyz/wallet-adapter/packages/wallets/salmon/src/index.ts
export * from './adapter.js';
0
solana_public_repos/anza-xyz/wallet-adapter/packages/wallets
solana_public_repos/anza-xyz/wallet-adapter/packages/wallets/spot/LICENSE
Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, ...
0
solana_public_repos/anza-xyz/wallet-adapter/packages/wallets
solana_public_repos/anza-xyz/wallet-adapter/packages/wallets/spot/tsconfig.esm.json
{ "extends": "../../../tsconfig.esm.json", "include": ["src"], "compilerOptions": { "outDir": "lib/esm", "declarationDir": "lib/types" } }
0
solana_public_repos/anza-xyz/wallet-adapter/packages/wallets
solana_public_repos/anza-xyz/wallet-adapter/packages/wallets/spot/package.json
{ "name": "@solana/wallet-adapter-spot", "version": "0.1.15", "author": "Solana Maintainers <maintainers@solana.foundation>", "repository": "https://github.com/anza-xyz/wallet-adapter", "license": "Apache-2.0", "publishConfig": { "access": "public" }, "files": [ "lib", ...
0
solana_public_repos/anza-xyz/wallet-adapter/packages/wallets
solana_public_repos/anza-xyz/wallet-adapter/packages/wallets/spot/tsconfig.cjs.json
{ "extends": "../../../tsconfig.cjs.json", "include": ["src"], "compilerOptions": { "outDir": "lib/cjs" } }
0
solana_public_repos/anza-xyz/wallet-adapter/packages/wallets
solana_public_repos/anza-xyz/wallet-adapter/packages/wallets/spot/tsconfig.json
{ "extends": "../../../tsconfig.root.json", "references": [ { "path": "./tsconfig.cjs.json" }, { "path": "./tsconfig.esm.json" } ] }
0
solana_public_repos/anza-xyz/wallet-adapter/packages/wallets/spot
solana_public_repos/anza-xyz/wallet-adapter/packages/wallets/spot/src/adapter.ts
import type { EventEmitter, WalletName } from '@solana/wallet-adapter-base'; import { BaseMessageSignerWalletAdapter, scopePollingDetectionStrategy, WalletAccountError, WalletConnectionError, WalletDisconnectedError, WalletDisconnectionError, WalletNotConnectedError, WalletNotReadyError,...
0
solana_public_repos/anza-xyz/wallet-adapter/packages/wallets/spot
solana_public_repos/anza-xyz/wallet-adapter/packages/wallets/spot/src/index.ts
export * from './adapter.js';
0
solana_public_repos/solana-playground
solana_public_repos/solana-playground/solana-playground/LICENSE-APACHE
Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, and d...
0
solana_public_repos/solana-playground
solana_public_repos/solana-playground/solana-playground/LICENSE-GPL
GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/> Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Pream...
0
solana_public_repos/solana-playground
solana_public_repos/solana-playground/solana-playground/supported-packages.json
{ "global": { "@coral-xyz/anchor": { "as": "anchor" }, "@solana/buffer-layout": { "as": "BufferLayout" }, "@solana/web3.js": { "as": "web3" }, "assert": { "default": "assert" }, "bn.js": { "default": "BN" }, "borsh": { "as": "borsh" }, "buffer": { "named": "Buffer" }, "mocha": { "as": ...
0
solana_public_repos/solana-playground
solana_public_repos/solana-playground/solana-playground/supported-crates.json
{ "anchor-lang": "0.29.0", "anchor-spl": "0.29.0", "arrayref": "0.3.7", "borsh": "0.10.3", "borsh-derive": "0.10.3", "bytemuck": "1.14.0", "bytemuck_derive": "1.5.0", "mpl-bubblegum": "1.0.0", "mpl-token-auth-rules": "1.4.3", "mpl-token-metadata": "3.2.3", "num-derive": "0.4.0", "num-traits": "0...
0
solana_public_repos/solana-playground/solana-playground
solana_public_repos/solana-playground/solana-playground/wasm/Cargo.toml
[workspace] members = [ "anchor-cli", "seahorse-compile", "solana-cli", "solana-client", "spl-token-cli", "sugar-cli", "utils/*", ] exclude = ["playnet", "rust-analyzer"] resolver = "2"
0
solana_public_repos/solana-playground/solana-playground
solana_public_repos/solana-playground/solana-playground/wasm/Cargo.lock
# This file is automatically @generated by Cargo. # It is not intended for manual editing. version = 3 [[package]] name = "adler" version = "1.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f26201604c87b1e01bd3d98f8d5d9a8fcbb815e8cedb41ffccbeb4bf593a35fe" [[package]] name = "ahash" ...
0
solana_public_repos/solana-playground/solana-playground
solana_public_repos/solana-playground/solana-playground/wasm/build.sh
#!/usr/bin/env bash # Build package(s) # Exit on any failure set -e help() { echo "Usage: build.sh [OPTIONS] <PACKAGE> <PACKAGE>: Optional WASM package name. Builds all packages if not specified. OPTIONS: -h, --help: Print help information -u, --update: Update client dependency " exit 0 } if [ "$...
0
solana_public_repos/solana-playground/solana-playground
solana_public_repos/solana-playground/solana-playground/wasm/rust-toolchain.toml
[toolchain] channel = "1.75.0" targets = ["wasm32-unknown-unknown"] components = ["rustfmt"]
0
solana_public_repos/solana-playground/solana-playground/wasm
solana_public_repos/solana-playground/solana-playground/wasm/spl-token-cli/Cargo.toml
[package] name = "spl-token-cli-wasm" version = "2.0.15" description = "SPL-Token CLI for Solana Playground with WASM." authors = ["Acheron <acheroncrypto@gmail.com>"] repository = "https://github.com/solana-playground/solana-playground" license = "GPL-3.0" homepage = "https://beta.solpg.io" edition = "2021" keywords =...
0
solana_public_repos/solana-playground/solana-playground/wasm/spl-token-cli
solana_public_repos/solana-playground/solana-playground/wasm/spl-token-cli/src/sort.rs
use std::{ collections::{btree_map::Entry, BTreeMap}, str::FromStr, }; use serde::{Deserialize, Serialize}; use solana_client_wasm::utils::rpc_config::RpcKeyedAccount; use solana_extra_wasm::{ account_decoder::{parse_token::TokenAccountType, UiAccountData}, program::spl_associated_token_account, }; use...
0
solana_public_repos/solana-playground/solana-playground/wasm/spl-token-cli
solana_public_repos/solana-playground/solana-playground/wasm/spl-token-cli/src/constants.rs
pub const COMMAND_NAME: &str = "spl-token-cli-wasm"; pub const COMMAND_DESC: &str = "SPL-Token Command-line Utility"; pub const COMMAND_VERSION: &str = "2.0.15";
0
solana_public_repos/solana-playground/solana-playground/wasm/spl-token-cli
solana_public_repos/solana-playground/solana-playground/wasm/spl-token-cli/src/config.rs
use std::{rc::Rc, sync::Arc}; use clap::ArgMatches; use solana_clap_v3_utils_wasm::{ input_parsers::{pubkey_of, pubkey_of_signer}, input_validators::normalize_to_url_if_moniker, keypair::signer_from_path, offline::SIGN_ONLY_ARG, }; use solana_cli_config_wasm::{Config as CliConfig, ConfigInput}; use sol...
0
solana_public_repos/solana-playground/solana-playground/wasm/spl-token-cli
solana_public_repos/solana-playground/solana-playground/wasm/spl-token-cli/src/lib.rs
#![allow(clippy::arithmetic_side_effects)] #![allow(dead_code)] mod clap; mod cli; mod config; mod constants; mod output; mod sort; mod utils; mod wasm;
0
solana_public_repos/solana-playground/solana-playground/wasm/spl-token-cli
solana_public_repos/solana-playground/solana-playground/wasm/spl-token-cli/src/clap.rs
use std::str::FromStr; use clap::{Arg, Command}; use solana_clap_v3_utils_wasm::{ input_validators::{ is_amount, is_amount_or_all, is_parsable, is_url_or_moniker, is_valid_pubkey, is_valid_signer, }, memo::memo_arg, nonce::NonceArgs, offline, offline::{OfflineArgs, BLOCKHASH_ARG...
0
solana_public_repos/solana-playground/solana-playground/wasm/spl-token-cli
solana_public_repos/solana-playground/solana-playground/wasm/spl-token-cli/src/output.rs
use std::fmt::{self, Display}; use console::Emoji; use serde::{Deserialize, Serialize, Serializer}; use solana_cli_output_wasm::cli_output::{ writeln_name_value, OutputFormat, QuietDisplay, VerboseDisplay, }; use solana_extra_wasm::account_decoder::parse_token::{ UiAccountState, UiTokenAccount, UiTokenAmount, ...
0
solana_public_repos/solana-playground/solana-playground/wasm/spl-token-cli
solana_public_repos/solana-playground/solana-playground/wasm/spl-token-cli/src/wasm.rs
use std::{panic, str::FromStr}; use solana_extra_wasm::program::spl_token; use solana_playground_utils_wasm::js::{PgSettings, PgTerminal, PgWallet}; use wasm_bindgen::prelude::*; use crate::{ clap::get_clap, cli::{process_command, BulkSigners, CommandName}, config::get_config, constants::*, }; #[wasm...
0
solana_public_repos/solana-playground/solana-playground/wasm/spl-token-cli
solana_public_repos/solana-playground/solana-playground/wasm/spl-token-cli/src/utils.rs
use clap::ArgMatches; use solana_clap_v3_utils_wasm::{ input_parsers::{pubkey_of, value_of}, nonce::NONCE_ARG, offline::{BLOCKHASH_ARG, SIGN_ONLY_ARG}, }; use solana_client_wasm::utils::rpc_config::BlockhashQuery; pub fn blockhash_query_from_matches(matches: &ArgMatches) -> BlockhashQuery { let blockha...
0
solana_public_repos/solana-playground/solana-playground/wasm/spl-token-cli
solana_public_repos/solana-playground/solana-playground/wasm/spl-token-cli/src/cli.rs
use std::{collections::HashMap, rc::Rc, str::FromStr, string::ToString}; use clap::ArgMatches; use solana_clap_v3_utils_wasm::{ input_parsers::{pubkey_of_signer, pubkeys_of_multiple_signers, value_of}, keypair::CliSignerInfo, }; use solana_cli_output_wasm::cli_output::{ return_signers_data, CliSignOnlyData...
0
solana_public_repos/solana-playground/solana-playground/wasm
solana_public_repos/solana-playground/solana-playground/wasm/solana-client/Cargo.toml
[package] name = "solana-client-wasm" version = "1.18.0" # mirror solana-sdk version description = "Solana non-blocking WASM RPC client." authors = ["Acheron <acheroncrypto@gmail.com>"] repository = "https://github.com/solana-playground/solana-playground" license = "Apache-2.0" homepage = "https://beta.solpg.io" editio...
0
solana_public_repos/solana-playground/solana-playground/wasm/solana-client
solana_public_repos/solana-playground/solana-playground/wasm/solana-client/src/response.rs
use serde::Deserialize; #[derive(Debug, Deserialize)] pub struct ClientResponse<T> { pub id: u32, pub jsonrpc: String, pub result: T, }
0
solana_public_repos/solana-playground/solana-playground/wasm/solana-client
solana_public_repos/solana-playground/solana-playground/wasm/solana-client/src/request.rs
use serde::Serialize; use serde_json::Value; use serde_with::serde_as; #[serde_as] #[derive(Debug, Serialize)] pub struct ClientRequest { id: u32, jsonrpc: &'static str, method: String, #[serde(skip_serializing_if = "is_null")] params: Value, } impl ClientRequest { pub fn new(method: impl ToSt...
0
solana_public_repos/solana-playground/solana-playground/wasm/solana-client
solana_public_repos/solana-playground/solana-playground/wasm/solana-client/src/constants.rs
pub const MAX_RETRIES: usize = 5; pub const SLEEP_MS: u64 = 2000;
0
solana_public_repos/solana-playground/solana-playground/wasm/solana-client
solana_public_repos/solana-playground/solana-playground/wasm/solana-client/src/client.rs
use serde::de::DeserializeOwned; use solana_extra_wasm::{ account_decoder::{ parse_token::UiTokenAccount, parse_token::{TokenAccountType, UiTokenAmount}, UiAccountData, UiAccountEncoding, }, transaction_status::{ EncodedConfirmedTransactionWithStatusMeta, TransactionConfirmat...
0
solana_public_repos/solana-playground/solana-playground/wasm/solana-client
solana_public_repos/solana-playground/solana-playground/wasm/solana-client/src/error.rs
use http::StatusCode; use std::fmt; #[derive(Debug, Serialize, Deserialize)] struct Error { code: u16, message: String, } impl Default for Error { fn default() -> Self { Self { code: StatusCode::INTERNAL_SERVER_ERROR.as_u16(), message: StatusCode::INTERNAL_SERVER_ERROR.as_s...
0
solana_public_repos/solana-playground/solana-playground/wasm/solana-client
solana_public_repos/solana-playground/solana-playground/wasm/solana-client/src/lib.rs
#![allow(dead_code, deprecated)] #[macro_use] extern crate serde_derive; mod client; mod constants; mod error; mod methods; mod provider; mod request; mod response; #[cfg(feature = "pubsub")] mod pubsub; pub mod utils; // Export sdk for stand-alone use of wasm client without specifying sdk as dependency pub use so...
0
solana_public_repos/solana-playground/solana-playground/wasm/solana-client
solana_public_repos/solana-playground/solana-playground/wasm/solana-client/src/provider.rs
use std::pin::pin; use futures::future::{select, Either}; use gloo_net::http::{Method as HttpMethod, RequestBuilder}; use gloo_timers::future::TimeoutFuture; use http::StatusCode; use serde::de::DeserializeOwned; use web_sys::{wasm_bindgen::UnwrapThrowExt, AbortController}; use crate::{methods::Method, ClientError, C...
0
solana_public_repos/solana-playground/solana-playground/wasm/solana-client
solana_public_repos/solana-playground/solana-playground/wasm/solana-client/src/pubsub.rs
use std::{collections::HashMap, sync::Arc}; use futures::lock::Mutex; use serde::de; use serde_json::{json, Value}; use solana_extra_wasm::{transaction_status::UiTransactionEncoding, utils::sleep}; use solana_sdk::{pubkey::Pubkey, signature::Signature}; use wasm_bindgen::{prelude::Closure, JsCast}; use wasm_bindgen_fu...
0
solana_public_repos/solana-playground/solana-playground/wasm/solana-client/src
solana_public_repos/solana-playground/solana-playground/wasm/solana-client/src/methods/stake_activation.rs
use serde_tuple::Serialize_tuple; use serde_with::{serde_as, skip_serializing_none, DisplayFromStr}; use solana_sdk::pubkey::Pubkey; use crate::{ impl_method, utils::{rpc_config::RpcEpochConfig, rpc_response::RpcStakeActivation}, ClientRequest, ClientResponse, }; #[serde_as] #[skip_serializing_none] #[der...
0
solana_public_repos/solana-playground/solana-playground/wasm/solana-client/src
solana_public_repos/solana-playground/solana-playground/wasm/solana-client/src/methods/max_shred_insert_slot.rs
use crate::impl_method; #[derive(Debug, Serialize)] pub struct GetMaxShredInsertSlotRequest; impl_method!(GetMaxShredInsertSlotRequest, "getMaxShredInsertSlot"); #[derive(Debug, Deserialize)] pub struct GetMaxShredInsertSlotResponse(u64); #[cfg(test)] mod tests { use serde_json::Value; use crate::{methods:...
0
solana_public_repos/solana-playground/solana-playground/wasm/solana-client/src
solana_public_repos/solana-playground/solana-playground/wasm/solana-client/src/methods/slot.rs
use serde_tuple::Serialize_tuple; use serde_with::skip_serializing_none; use solana_sdk::{clock::Slot, commitment_config::CommitmentConfig}; use crate::{impl_method, ClientRequest, ClientResponse}; #[skip_serializing_none] #[derive(Debug, Default, Serialize_tuple)] pub struct GetSlotRequest { config: Option<Commi...
0
solana_public_repos/solana-playground/solana-playground/wasm/solana-client/src
solana_public_repos/solana-playground/solana-playground/wasm/solana-client/src/methods/block_production.rs
use serde::Deserialize; use serde_tuple::Serialize_tuple; use serde_with::skip_serializing_none; use super::Context; use crate::{ impl_method, utils::{rpc_config::RpcBlockProductionConfig, rpc_response::RpcBlockProduction}, ClientRequest, ClientResponse, }; #[skip_serializing_none] #[derive(Debug, Seriali...
0
solana_public_repos/solana-playground/solana-playground/wasm/solana-client/src
solana_public_repos/solana-playground/solana-playground/wasm/solana-client/src/methods/request_airdrop.rs
use serde_tuple::Serialize_tuple; use serde_with::{serde_as, skip_serializing_none, DisplayFromStr}; use solana_sdk::{ commitment_config::CommitmentConfig, {pubkey::Pubkey, signature::Signature}, }; use std::str::FromStr; use crate::{impl_method, ClientRequest, ClientResponse}; #[serde_as] #[skip_serializing_...
0
solana_public_repos/solana-playground/solana-playground/wasm/solana-client/src
solana_public_repos/solana-playground/solana-playground/wasm/solana-client/src/methods/transaction_count.rs
use serde_tuple::Serialize_tuple; use serde_with::skip_serializing_none; use crate::{impl_method, utils::rpc_config::RpcContextConfig, ClientRequest, ClientResponse}; #[skip_serializing_none] #[derive(Debug, Default, Serialize_tuple)] pub struct GetTransactionCountRequest { pub config: Option<RpcContextConfig>, ...
0
solana_public_repos/solana-playground/solana-playground/wasm/solana-client/src
solana_public_repos/solana-playground/solana-playground/wasm/solana-client/src/methods/max_retransmit_slot.rs
use crate::{impl_method, ClientRequest, ClientResponse}; #[derive(Debug, Serialize)] pub struct GetMaxRetransmitSlotRequest; impl_method!(GetMaxRetransmitSlotRequest, "getMaxRetransmitSlot"); #[derive(Debug, Deserialize)] pub struct GetMaxRetransmitSlotResponse(u64); #[cfg(test)] mod tests { use serde_json::Val...
0
solana_public_repos/solana-playground/solana-playground/wasm/solana-client/src
solana_public_repos/solana-playground/solana-playground/wasm/solana-client/src/methods/largest_accounts.rs
use serde_tuple::Serialize_tuple; use serde_with::skip_serializing_none; use super::Context; use crate::{ impl_method, utils::{rpc_config::RpcLargestAccountsConfig, rpc_response::RpcAccountBalance}, ClientRequest, ClientResponse, }; #[skip_serializing_none] #[derive(Debug, Default, Serialize_tuple)] pub s...
0
solana_public_repos/solana-playground/solana-playground/wasm/solana-client/src
solana_public_repos/solana-playground/solana-playground/wasm/solana-client/src/methods/transaction.rs
use serde_tuple::Serialize_tuple; use serde_with::{serde_as, skip_serializing_none, DisplayFromStr}; use solana_extra_wasm::transaction_status::EncodedConfirmedTransactionWithStatusMeta; use solana_sdk::signature::Signature; use crate::{impl_method, utils::rpc_config::RpcTransactionConfig, ClientRequest, ClientRespons...
0
solana_public_repos/solana-playground/solana-playground/wasm/solana-client/src
solana_public_repos/solana-playground/solana-playground/wasm/solana-client/src/methods/account_info.rs
use serde::Deserialize; use serde_tuple::Serialize_tuple; use serde_with::{serde_as, skip_serializing_none, DisplayFromStr}; use solana_extra_wasm::account_decoder::{UiAccount, UiAccountEncoding}; use solana_sdk::pubkey::Pubkey; use super::Context; use crate::{impl_method, utils::rpc_config::RpcAccountInfoConfig, Clie...
0
solana_public_repos/solana-playground/solana-playground/wasm/solana-client/src
solana_public_repos/solana-playground/solana-playground/wasm/solana-client/src/methods/inflation_reward.rs
use serde_tuple::Serialize_tuple; use serde_with::{serde_as, skip_serializing_none, DisplayFromStr}; use solana_sdk::pubkey::Pubkey; use crate::{ impl_method, utils::{rpc_config::RpcEpochConfig, rpc_response::RpcInflationReward}, ClientRequest, ClientResponse, }; #[serde_as] #[skip_serializing_none] #[der...
0
solana_public_repos/solana-playground/solana-playground/wasm/solana-client/src
solana_public_repos/solana-playground/solana-playground/wasm/solana-client/src/methods/health.rs
use crate::{impl_method, ClientRequest, ClientResponse}; #[derive(Debug, Serialize)] pub struct GetHealthRequest; impl_method!(GetHealthRequest, "getHealth"); #[derive(Debug, Deserialize)] pub struct ErrorValue { pub code: i32, pub message: String, pub data: serde_json::Value, } #[derive(Debug, Deserial...
0
solana_public_repos/solana-playground/solana-playground/wasm/solana-client/src
solana_public_repos/solana-playground/solana-playground/wasm/solana-client/src/methods/signatures_for_address.rs
use serde_tuple::Serialize_tuple; use serde_with::{serde_as, skip_serializing_none, DisplayFromStr}; use solana_sdk::pubkey::Pubkey; use crate::{ impl_method, utils::{ rpc_config::RpcSignaturesForAddressConfig, rpc_response::RpcConfirmedTransactionStatusWithSignature, }, ClientRequest, ...
0
solana_public_repos/solana-playground/solana-playground/wasm/solana-client/src
solana_public_repos/solana-playground/solana-playground/wasm/solana-client/src/methods/first_available_block.rs
use solana_sdk::clock::Slot; use crate::{impl_method, ClientRequest, ClientResponse}; #[derive(Debug, Serialize)] pub struct GetFirstAvailableBlockRequest; impl_method!(GetFirstAvailableBlockRequest, "getFirstAvailableBlock"); #[derive(Debug, Deserialize)] pub struct GetFirstAvailableBlockResponse(Slot); impl From...
0
solana_public_repos/solana-playground/solana-playground/wasm/solana-client/src
solana_public_repos/solana-playground/solana-playground/wasm/solana-client/src/methods/minimum_balance_for_rent_exemption.rs
use serde_tuple::Serialize_tuple; use serde_with::skip_serializing_none; use solana_sdk::commitment_config::CommitmentConfig; use crate::{impl_method, ClientResponse}; #[skip_serializing_none] #[derive(Debug, Serialize_tuple)] pub struct GetMinimumBalanceForRentExemptionRequest { pub data_length: usize, pub c...
0
solana_public_repos/solana-playground/solana-playground/wasm/solana-client/src
solana_public_repos/solana-playground/solana-playground/wasm/solana-client/src/methods/token_account_balance.rs
use serde_tuple::Serialize_tuple; use serde_with::{serde_as, skip_serializing_none, DisplayFromStr}; use solana_extra_wasm::account_decoder::parse_token::UiTokenAmount; use solana_sdk::{commitment_config::CommitmentConfig, pubkey::Pubkey}; use super::Context; use crate::{impl_method, ClientRequest, ClientResponse}; #...
0
solana_public_repos/solana-playground/solana-playground/wasm/solana-client/src
solana_public_repos/solana-playground/solana-playground/wasm/solana-client/src/methods/slot_leader.rs
use serde_tuple::Serialize_tuple; use serde_with::{serde_as, DisplayFromStr}; use solana_sdk::{commitment_config::CommitmentConfig, pubkey::Pubkey}; use std::str::FromStr; use crate::{impl_method, ClientRequest, ClientResponse}; #[derive(Debug, Default, Serialize_tuple)] pub struct GetSlotLeaderRequest { #[serde(...
0
solana_public_repos/solana-playground/solana-playground/wasm/solana-client/src
solana_public_repos/solana-playground/solana-playground/wasm/solana-client/src/methods/program_accounts.rs
use serde_tuple::Serialize_tuple; use serde_with::{serde_as, skip_serializing_none, DisplayFromStr}; use solana_sdk::pubkey::Pubkey; use crate::{ impl_method, utils::rpc_config::{RpcKeyedAccount, RpcProgramAccountsConfig}, ClientRequest, ClientResponse, }; #[serde_as] #[skip_serializing_none] #[derive(Deb...
0
solana_public_repos/solana-playground/solana-playground/wasm/solana-client/src
solana_public_repos/solana-playground/solana-playground/wasm/solana-client/src/methods/version.rs
use crate::{impl_method, utils::rpc_response::RpcVersionInfo, ClientRequest, ClientResponse}; #[derive(Debug, Serialize)] pub struct GetVersionRequest; impl_method!(GetVersionRequest, "getVersion"); #[derive(Debug, Deserialize)] pub struct GetVersionResponse(RpcVersionInfo); impl From<GetVersionResponse> for RpcVer...
0
solana_public_repos/solana-playground/solana-playground/wasm/solana-client/src
solana_public_repos/solana-playground/solana-playground/wasm/solana-client/src/methods/epoch_info.rs
use serde_tuple::Serialize_tuple; use serde_with::skip_serializing_none; use solana_sdk::{commitment_config::CommitmentConfig, epoch_info::EpochInfo}; use crate::{impl_method, ClientRequest, ClientResponse}; #[skip_serializing_none] #[derive(Debug, Serialize_tuple, Default)] pub struct GetEpochInfoRequest { pub c...
0
solana_public_repos/solana-playground/solana-playground/wasm/solana-client/src
solana_public_repos/solana-playground/solana-playground/wasm/solana-client/src/methods/highest_snapshot_slot.rs
use crate::{impl_method, ClientRequest, ClientResponse}; #[derive(Debug, Serialize)] pub struct GetHighestSnapshotSlotRequest; impl_method!(GetHighestSnapshotSlotRequest, "getHighestSnapshotSlot"); #[derive(Debug, Deserialize)] pub struct GetHighestSnapshotSlotResponse { pub full: u64, pub incremental: Optio...
0
solana_public_repos/solana-playground/solana-playground/wasm/solana-client/src
solana_public_repos/solana-playground/solana-playground/wasm/solana-client/src/methods/inflation_governor.rs
use serde_tuple::Serialize_tuple; use serde_with::skip_serializing_none; use solana_sdk::commitment_config::CommitmentConfig; use crate::{ impl_method, utils::rpc_response::RpcInflationGovernor, ClientRequest, ClientResponse, }; #[skip_serializing_none] #[derive(Debug, Default, Serialize_tuple)] pub struct GetInf...
0
solana_public_repos/solana-playground/solana-playground/wasm/solana-client/src
solana_public_repos/solana-playground/solana-playground/wasm/solana-client/src/methods/stake_minimum_delegation.rs
use serde_tuple::Serialize_tuple; use serde_with::skip_serializing_none; use solana_sdk::commitment_config::CommitmentConfig; use crate::impl_method; use super::Context; #[skip_serializing_none] #[derive(Debug, Serialize_tuple)] pub struct GetStakeMinimumDelegationRequest { config: Option<CommitmentConfig>, } i...
0
solana_public_repos/solana-playground/solana-playground/wasm/solana-client/src
solana_public_repos/solana-playground/solana-playground/wasm/solana-client/src/methods/signature_statuses.rs
use serde_tuple::Serialize_tuple; use serde_with::{serde_as, skip_serializing_none, DisplayFromStr}; use solana_extra_wasm::transaction_status::TransactionConfirmationStatus; use solana_sdk::{signature::Signature, transaction::TransactionError}; use super::Context; use crate::{ impl_method, utils::rpc_config::RpcS...
0
solana_public_repos/solana-playground/solana-playground/wasm/solana-client/src
solana_public_repos/solana-playground/solana-playground/wasm/solana-client/src/methods/token_accounts_by_owner.rs
use serde_tuple::Serialize_tuple; use serde_with::{serde_as, DisplayFromStr}; use solana_sdk::pubkey::Pubkey; use super::Context; use crate::{ impl_method, utils::{ rpc_config::{RpcAccountInfoConfig, RpcKeyedAccount}, rpc_filter::RpcTokenAccountsFilter, }, ClientRequest, ClientResponse,...
0
solana_public_repos/solana-playground/solana-playground/wasm/solana-client/src
solana_public_repos/solana-playground/solana-playground/wasm/solana-client/src/methods/block_height.rs
use serde::Serialize; use serde_tuple::Serialize_tuple; use serde_with::skip_serializing_none; use solana_sdk::commitment_config::CommitmentConfig; use crate::{impl_method, ClientRequest, ClientResponse}; #[skip_serializing_none] #[derive(Debug, Serialize_tuple, Default)] pub struct GetBlockHeightRequest { pub co...
0
solana_public_repos/solana-playground/solana-playground/wasm/solana-client/src
solana_public_repos/solana-playground/solana-playground/wasm/solana-client/src/methods/block_time.rs
use serde_tuple::Serialize_tuple; use serde_with::skip_serializing_none; use solana_sdk::clock::UnixTimestamp; use crate::{impl_method, ClientRequest, ClientResponse}; #[derive(Debug, Serialize_tuple)] pub struct GetBlockTimeRequest { pub slot: u64, } impl_method!(GetBlockTimeRequest, "getBlockTime"); impl GetB...
0
solana_public_repos/solana-playground/solana-playground/wasm/solana-client/src
solana_public_repos/solana-playground/solana-playground/wasm/solana-client/src/methods/blockhash_valid.rs
use serde_tuple::Serialize_tuple; use serde_with::{serde_as, skip_serializing_none, DisplayFromStr}; use solana_sdk::hash::Hash; use super::Context; use crate::{impl_method, utils::rpc_config::RpcContextConfig, ClientRequest, ClientResponse}; #[serde_as] #[skip_serializing_none] #[derive(Debug, Serialize_tuple, Defau...
0
solana_public_repos/solana-playground/solana-playground/wasm/solana-client/src
solana_public_repos/solana-playground/solana-playground/wasm/solana-client/src/methods/block_commitment.rs
use serde::Deserialize; use serde_tuple::Serialize_tuple; use solana_extra_wasm::program::vote::vote_state::MAX_LOCKOUT_HISTORY; use crate::{impl_method, ClientRequest, ClientResponse}; #[derive(Debug, Serialize_tuple)] pub struct GetBlockCommitmentRequest { pub slot: u64, } impl_method!(GetBlockCommitmentReques...
0
solana_public_repos/solana-playground/solana-playground/wasm/solana-client/src
solana_public_repos/solana-playground/solana-playground/wasm/solana-client/src/methods/balance.rs
use serde_tuple::Serialize_tuple; use serde_with::{serde_as, skip_serializing_none, DisplayFromStr}; use solana_sdk::{commitment_config::CommitmentConfig, pubkey::Pubkey}; use super::Context; use crate::{impl_method, ClientRequest, ClientResponse}; #[serde_as] #[skip_serializing_none] #[derive(Debug, Serialize_tuple)...
0
solana_public_repos/solana-playground/solana-playground/wasm/solana-client/src
solana_public_repos/solana-playground/solana-playground/wasm/solana-client/src/methods/identity.rs
use serde_with::{serde_as, DisplayFromStr}; use solana_sdk::pubkey::Pubkey; use crate::{impl_method, ClientRequest, ClientResponse}; #[derive(Debug, Serialize)] pub struct GetIdentityRequest; impl_method!(GetIdentityRequest, "getIdentity"); #[serde_as] #[derive(Debug, Deserialize)] pub struct GetIdentityResponse { ...
0
solana_public_repos/solana-playground/solana-playground/wasm/solana-client/src
solana_public_repos/solana-playground/solana-playground/wasm/solana-client/src/methods/mod.rs
#![allow(unused_imports)] mod account_info; mod balance; mod block; mod block_commitment; mod block_height; mod block_production; mod block_time; mod blockhash_valid; mod blocks; mod blocks_with_limit; mod cluster_nodes; mod epoch_info; mod epoch_schedule; mod fee_for_message; mod first_available_block; mod genesis_ha...
0
solana_public_repos/solana-playground/solana-playground/wasm/solana-client/src
solana_public_repos/solana-playground/solana-playground/wasm/solana-client/src/methods/token_supply.rs
use serde_tuple::Serialize_tuple; use serde_with::{serde_as, skip_serializing_none, DisplayFromStr}; use solana_extra_wasm::account_decoder::parse_token::UiTokenAmount; use solana_sdk::{commitment_config::CommitmentConfig, pubkey::Pubkey}; use super::Context; use crate::{impl_method, ClientRequest, ClientResponse}; #...
0
solana_public_repos/solana-playground/solana-playground/wasm/solana-client/src
solana_public_repos/solana-playground/solana-playground/wasm/solana-client/src/methods/block.rs
use serde_tuple::Serialize_tuple; use serde_with::skip_serializing_none; use solana_extra_wasm::transaction_status::UiConfirmedBlock; use solana_sdk::clock::Slot; use crate::{impl_method, utils::rpc_config::RpcBlockConfig, ClientRequest, ClientResponse}; #[skip_serializing_none] #[derive(Debug, Serialize_tuple)] pub ...
0
solana_public_repos/solana-playground/solana-playground/wasm/solana-client/src
solana_public_repos/solana-playground/solana-playground/wasm/solana-client/src/methods/genesis_hash.rs
use crate::{impl_method, ClientRequest, ClientResponse}; #[derive(Debug, Serialize)] pub struct GetGenesisHashRequest; impl_method!(GetGenesisHashRequest, "getGenesisHash"); #[derive(Debug, Deserialize)] pub struct GetGenesisHashResponse(String); impl From<GetGenesisHashResponse> for String { fn from(val: GetGe...
0
solana_public_repos/solana-playground/solana-playground/wasm/solana-client/src
solana_public_repos/solana-playground/solana-playground/wasm/solana-client/src/methods/slot_leaders.rs
use serde_tuple::Serialize_tuple; use serde_with::{serde_as, skip_serializing_none, DisplayFromStr}; use solana_sdk::pubkey::Pubkey; use std::str::FromStr; use crate::{impl_method, ClientRequest, ClientResponse}; #[skip_serializing_none] #[derive(Debug, Default, Serialize_tuple)] pub struct GetSlotLeadersRequest { ...
0
solana_public_repos/solana-playground/solana-playground/wasm/solana-client/src
solana_public_repos/solana-playground/solana-playground/wasm/solana-client/src/methods/simulate_transaction.rs
use serde::{ser::SerializeTuple, Serialize}; use solana_extra_wasm::{account_decoder::UiAccount, transaction_status::UiTransactionEncoding}; use solana_sdk::transaction::{Transaction, TransactionError}; use crate::{ impl_method, utils::rpc_config::{serialize_and_encode, RpcSimulateTransactionConfig}, Clien...
0
solana_public_repos/solana-playground/solana-playground/wasm/solana-client/src
solana_public_repos/solana-playground/solana-playground/wasm/solana-client/src/methods/leader_schedule.rs
use serde_tuple::Serialize_tuple; use serde_with::skip_serializing_none; use solana_sdk::clock::Slot; use crate::{ impl_method, utils::{rpc_config::RpcLeaderScheduleConfig, rpc_response::RpcLeaderSchedule}, ClientRequest, ClientResponse, }; #[skip_serializing_none] #[derive(Debug, Default, Serialize_tuple...
0
solana_public_repos/solana-playground/solana-playground/wasm/solana-client/src
solana_public_repos/solana-playground/solana-playground/wasm/solana-client/src/methods/epoch_schedule.rs
use solana_sdk::epoch_schedule::EpochSchedule; use crate::{impl_method, ClientResponse}; #[derive(Debug, Serialize)] pub struct GetEpochScheduleRequest; impl_method!(GetEpochScheduleRequest, "getEpochSchedule"); #[derive(Debug, Deserialize)] pub struct GetEpochScheduleResponse(EpochSchedule); impl From<GetEpochSch...
0
solana_public_repos/solana-playground/solana-playground/wasm/solana-client/src
solana_public_repos/solana-playground/solana-playground/wasm/solana-client/src/methods/send_transaction.rs
use std::str::FromStr; use serde::ser::SerializeTuple; use serde::Serialize; use serde_with::{serde_as, skip_serializing_none, DisplayFromStr}; use solana_extra_wasm::transaction_status::UiTransactionEncoding; use solana_sdk::{signature::Signature, transaction::Transaction}; use crate::utils::rpc_config::{serialize_a...
0
solana_public_repos/solana-playground/solana-playground/wasm/solana-client/src
solana_public_repos/solana-playground/solana-playground/wasm/solana-client/src/methods/inflation_rate.rs
use crate::{impl_method, utils::rpc_response::RpcInflationRate, ClientRequest, ClientResponse}; #[derive(Debug, Serialize)] pub struct GetInflationRateRequest; impl_method!(GetInflationRateRequest, "getInflationRate"); #[derive(Debug, Deserialize)] pub struct GetInflationRateResponse(RpcInflationRate); impl From<Ge...
0
solana_public_repos/solana-playground/solana-playground/wasm/solana-client/src
solana_public_repos/solana-playground/solana-playground/wasm/solana-client/src/methods/cluster_nodes.rs
use serde_tuple::Serialize_tuple; use crate::{impl_method, ClientRequest, ClientResponse}; #[derive(Debug, Serialize)] pub struct GetClusterNodesRequest; impl_method!(GetClusterNodesRequest, "getClusterNodes"); #[derive(Debug, Deserialize)] #[serde(rename_all = "camelCase")] pub struct RpcContactInfoWasm { pub ...
0
solana_public_repos/solana-playground/solana-playground/wasm/solana-client/src
solana_public_repos/solana-playground/solana-playground/wasm/solana-client/src/methods/blocks.rs
use serde::Deserialize; use serde_tuple::Serialize_tuple; use serde_with::skip_serializing_none; use solana_sdk::{clock::Slot, commitment_config::CommitmentConfig}; use crate::{impl_method, ClientRequest, ClientResponse}; #[skip_serializing_none] #[derive(Debug, Serialize_tuple)] #[serde(rename_all = "camelCase")] pu...
0
solana_public_repos/solana-playground/solana-playground/wasm/solana-client/src
solana_public_repos/solana-playground/solana-playground/wasm/solana-client/src/methods/fee_for_message.rs
use serde::Serializer; use serde_tuple::Serialize_tuple; use serde_with::skip_serializing_none; use solana_extra_wasm::transaction_status::UiTransactionEncoding; use solana_sdk::{commitment_config::CommitmentConfig, message::Message}; use super::Context; use crate::{impl_method, utils::rpc_config::serialize_and_encode...
0
solana_public_repos/solana-playground/solana-playground/wasm/solana-client/src
solana_public_repos/solana-playground/solana-playground/wasm/solana-client/src/methods/multiple_accounts.rs
use serde_tuple::Serialize_tuple; use serde_with::{serde_as, skip_serializing_none, DisplayFromStr}; use solana_extra_wasm::account_decoder::UiAccount; use solana_sdk::pubkey::Pubkey; use super::Context; use crate::{impl_method, utils::rpc_config::RpcAccountInfoConfig, ClientRequest, ClientResponse}; #[serde_as] #[sk...
0
solana_public_repos/solana-playground/solana-playground/wasm/solana-client/src
solana_public_repos/solana-playground/solana-playground/wasm/solana-client/src/methods/recent_prioritization_fees.rs
use serde_tuple::Serialize_tuple; use serde_with::{serde_as, DisplayFromStr}; use solana_sdk::pubkey::Pubkey; use crate::{impl_method, utils::rpc_response::RpcPrioritizationFee}; #[serde_as] #[derive(Debug, Serialize_tuple)] pub struct GetRecentPrioritizationFeesRequest { #[serde_as(as = "Option<Vec<DisplayFromSt...
0
solana_public_repos/solana-playground/solana-playground/wasm/solana-client/src
solana_public_repos/solana-playground/solana-playground/wasm/solana-client/src/methods/minimum_ledger_slot.rs
use solana_sdk::clock::Slot; use crate::{impl_method, ClientRequest, ClientResponse}; #[derive(Debug, Serialize)] pub struct MinimumLedgerSlotRequest; impl_method!(MinimumLedgerSlotRequest, "minimumLedgerSlot"); #[derive(Debug, Deserialize)] pub struct MinimumLedgerSlotResponse(Slot); impl From<MinimumLedgerSlotRe...
0
solana_public_repos/solana-playground/solana-playground/wasm/solana-client/src
solana_public_repos/solana-playground/solana-playground/wasm/solana-client/src/methods/token_accounts_by_delegate.rs
use serde_tuple::Serialize_tuple; use serde_with::{serde_as, skip_serializing_none, DisplayFromStr}; use solana_extra_wasm::transaction_status::UiTransactionEncoding; use solana_sdk::pubkey::Pubkey; use super::Context; use crate::{ impl_method, utils::{ rpc_config::{RpcAccountInfoConfig, RpcKeyedAccoun...
0
solana_public_repos/solana-playground/solana-playground/wasm/solana-client/src
solana_public_repos/solana-playground/solana-playground/wasm/solana-client/src/methods/latest_blockhash.rs
use serde_tuple::Serialize_tuple; use serde_with::skip_serializing_none; use solana_sdk::commitment_config::CommitmentConfig; use super::Context; use crate::{impl_method, utils::rpc_response::RpcBlockhash, ClientRequest, ClientResponse}; #[skip_serializing_none] #[derive(Debug, Default, Serialize_tuple)] pub struct G...
0
solana_public_repos/solana-playground/solana-playground/wasm/solana-client/src
solana_public_repos/solana-playground/solana-playground/wasm/solana-client/src/methods/supply.rs
use serde_tuple::Serialize_tuple; use serde_with::skip_serializing_none; use super::Context; use crate::{ impl_method, utils::{rpc_config::RpcSupplyConfig, rpc_response::RpcSupply}, ClientRequest, ClientResponse, }; #[skip_serializing_none] #[derive(Debug, Serialize_tuple, Default)] pub struct GetSupplyRe...
0
solana_public_repos/solana-playground/solana-playground/wasm/solana-client/src
solana_public_repos/solana-playground/solana-playground/wasm/solana-client/src/methods/blocks_with_limit.rs
use serde::Deserialize; use serde_tuple::Serialize_tuple; use serde_with::skip_serializing_none; use solana_sdk::{clock::Slot, commitment_config::CommitmentConfig}; use crate::{impl_method, ClientRequest, ClientResponse}; #[skip_serializing_none] #[derive(Debug, Serialize_tuple)] #[serde(rename_all = "camelCase")] pu...
0
solana_public_repos/solana-playground/solana-playground/wasm/solana-client/src
solana_public_repos/solana-playground/solana-playground/wasm/solana-client/src/methods/vote_accounts.rs
use serde_tuple::Serialize_tuple; use serde_with::skip_serializing_none; use crate::{ impl_method, utils::{rpc_config::RpcGetVoteAccountsConfig, rpc_response::RpcVoteAccountStatus}, ClientRequest, ClientResponse, }; #[skip_serializing_none] #[derive(Debug, Default, Serialize_tuple)] pub struct GetVoteAcco...
0
solana_public_repos/solana-playground/solana-playground/wasm/solana-client/src
solana_public_repos/solana-playground/solana-playground/wasm/solana-client/src/methods/recent_performance_samples.rs
use serde_tuple::Serialize_tuple; use serde_with::skip_serializing_none; use crate::{impl_method, utils::rpc_response::RpcPerfSample, ClientRequest, ClientResponse}; #[skip_serializing_none] #[derive(Debug, Default, Serialize_tuple)] pub struct GetRecentPerformanceSamplesRequest { pub limit: Option<usize>, } imp...
0
solana_public_repos/solana-playground/solana-playground/wasm/solana-client/src
solana_public_repos/solana-playground/solana-playground/wasm/solana-client/src/methods/token_largest_accounts.rs
use serde_tuple::Serialize_tuple; use serde_with::{serde_as, skip_serializing_none, DisplayFromStr}; use solana_sdk::{commitment_config::CommitmentConfig, pubkey::Pubkey}; use super::Context; use crate::{impl_method, ClientRequest, ClientResponse}; #[serde_as] #[skip_serializing_none] #[derive(Debug, Serialize_tuple)...
0