switch to gm's account
This commit is contained in:
parent
05b88d0438
commit
6be66de354
|
@ -652,9 +652,9 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "bytemuck"
|
||||
version = "1.16.0"
|
||||
version = "1.16.1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "78834c15cb5d5efe3452d58b1e8ba890dd62d21907f867f383358198e56ebca5"
|
||||
checksum = "b236fc92302c97ed75b38da1f4917b5cdda4984745740f153a5d3059e48d725e"
|
||||
dependencies = [
|
||||
"bytemuck_derive",
|
||||
]
|
||||
|
@ -2047,6 +2047,7 @@ dependencies = [
|
|||
"solana-rpc-client",
|
||||
"solana-rpc-client-api",
|
||||
"solana-sdk",
|
||||
"spl-token",
|
||||
"tokio",
|
||||
"tokio-stream",
|
||||
"tracing",
|
||||
|
|
|
@ -16,6 +16,7 @@ solana-sdk = "1.17.31"
|
|||
solana-rpc-client = "1.17.31"
|
||||
solana-rpc-client-api = "1.17.31"
|
||||
solana-account-decoder = "1.17.31"
|
||||
spl-token = "4.0.0"
|
||||
websocket-tungstenite-retry = { git = "https://github.com/grooviegermanikus/websocket-tungstenite-retry.git", tag = "v0.8.0" }
|
||||
geyser-grpc-connector = { tag = "v0.10.6+yellowstone.1.13+solana.1.17.28", git = "https://github.com/blockworks-foundation/geyser-grpc-connector.git" }
|
||||
yellowstone-grpc-client = "~1.14.0"
|
||||
|
|
|
@ -233,11 +233,10 @@ async fn rpc_get_account_info(rpc_client: Arc<RpcClient>) {
|
|||
}
|
||||
|
||||
async fn rpc_get_token_accounts_by_owner(rpc_client: Arc<RpcClient>) {
|
||||
let owner_pubkey = Pubkey::from_str("whirLbMiicVdio4qvUfM5KAg6Ct8VwpYzGff3uctyCc").unwrap();
|
||||
let mint = Pubkey::from_str("EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v").unwrap();
|
||||
let owner_pubkey = Pubkey::from_str("gmgLgwHZbRxbPHuGtE2cVVAXL6yrS8SvvFkDNjmWfkj").unwrap();
|
||||
|
||||
let token_accounts = rpc_client
|
||||
.get_token_accounts_by_owner(&owner_pubkey, TokenAccountsFilter::Mint(mint))
|
||||
.get_token_accounts_by_owner(&owner_pubkey, TokenAccountsFilter::ProgramId(spl_token::id()))
|
||||
.await
|
||||
.context("rpc_get_token_accounts_by_owner")
|
||||
.unwrap();
|
||||
|
@ -249,7 +248,7 @@ async fn rpc_get_token_accounts_by_owner(rpc_client: Arc<RpcClient>) {
|
|||
}
|
||||
|
||||
async fn rpc_get_signatures_for_address(rpc_client: Arc<RpcClient>) {
|
||||
let address = Pubkey::from_str("SCbotdTZN5Vu9h4PgSAFoJozrALn2t5qMVdjyBuqu2c").unwrap();
|
||||
let address = Pubkey::from_str("gmgLgwHZbRxbPHuGtE2cVVAXL6yrS8SvvFkDNjmWfkj").unwrap();
|
||||
|
||||
let config = GetConfirmedSignaturesForAddress2Config {
|
||||
before: None,
|
||||
|
|
Loading…
Reference in New Issue