Skip to content

Instantly share code, notes, and snippets.

View lexer's full-sized avatar
🦀

Aleksei Zakharov lexer

🦀
View GitHub Profile
import org.junit.Test;
import org.junit.runner.JUnitCore;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;
public class Solution {
[
{
"account":{
"data":{
"parsed":{
"info":{
"meta":{
"authorized":{
"staker":"GExypwg7wmcdD3ZXKHxsqKPCoFosWk6qhKRhJRDLFBsr",
"withdrawer":"GExypwg7wmcdD3ZXKHxsqKPCoFosWk6qhKRhJRDLFBsr"
{
"inAmount":"1000000",
"outAmount":"75149375",
"priceImpactPct":0.000027078666920532513,
"marketInfos":[
{
"id":"Hme4Jnqhdz2jAPUMnS7jGE5zv6Y1ynqrUEhmUAWkXmzn",
"label":"Orca",
"inputMint":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"outputMint":"mSoLzYCxHdYgdzU16g5QSh3i5K3z3KZK7ytfqcJm7So",
{
"inAmount":1000000,
"outAmount":75129004,
"amount":1000000,
"otherAmountThreshold":75053875,
"outAmountWithSlippage":75053875,
"swapMode":"ExactIn",
"priceImpactPct":0.000027072699301688985,
"marketInfos":[
{
@lexer
lexer / connection.getParsedTransaction
Last active January 16, 2023 17:51
VersionedTransactionResponse vs ParsedTransactionWithMeta
{
"blockTime":1673563504,
"meta":{
"err":null,
"fee":10000,
"innerInstructions":[
{
"index":1,
"instructions":[
{