From 2b93e7a5d46073aa7260be627fc1bc69c0f31282 Mon Sep 17 00:00:00 2001 From: samlior Date: Mon, 30 Mar 2026 11:54:34 +0800 Subject: [PATCH] chore: upgrade term buy --- cmd/txparse/main.go | 2 +- pkg/shreder/program_term.go | 2 +- pkg/shreder/txparser_test.go | 14 +++++++------- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/cmd/txparse/main.go b/cmd/txparse/main.go index 93eabe3..2765b07 100644 --- a/cmd/txparse/main.go +++ b/cmd/txparse/main.go @@ -15,7 +15,7 @@ import ( const ( rpcURL = "https://staked.helius-rpc.com?api-key=5adcf1f9-5719-43d1-bf3f-c2d4e1e5f94d" - txSignature = "2erxUsE92LdrxhWy6HryUJpvBpVUociu2UY6AGoX7E6orrqm6AYxDzhmub3J9PDPa5CPNwWZBG8rCxKCdquVo2Lc" + txSignature = "PDynKmdiRG61ZZQoTSmdoTvra2Q8MG91YRdce7vo7EhpoYwr5WjJLbEuJbocPunk2zb4ZCZjXSGNU5bXwJRL7Gu" labelFilter = "" ) diff --git a/pkg/shreder/program_term.go b/pkg/shreder/program_term.go index 180120f..2d40e13 100644 --- a/pkg/shreder/program_term.go +++ b/pkg/shreder/program_term.go @@ -10,7 +10,7 @@ import ( var terminalProgramID = solana.MustPublicKeyFromBase58("term9YPb9mzAsABaqN71A4xdbxHmpBNZavpBiQKZzN3") var ( - terminalBuyTokensIX = []byte{0xa6, 0x54, 0x14, 0x96, 0x9f, 0x77, 0x59, 0xca} + terminalBuyTokensIX = []byte{0x14, 0xfe, 0x38, 0xc9, 0x3d, 0x37, 0x17, 0x27} terminalSellTokensIX = []byte{0xbe, 0x84, 0xa2, 0x96, 0x93, 0x7c, 0xf8, 0x6b} terminalAmmSellTokensIX = []byte{0x40, 0x64, 0x97, 0xb9, 0x16, 0xfa, 0xec, 0xb1} ) diff --git a/pkg/shreder/txparser_test.go b/pkg/shreder/txparser_test.go index c4b00d5..039cf7f 100644 --- a/pkg/shreder/txparser_test.go +++ b/pkg/shreder/txparser_test.go @@ -154,7 +154,7 @@ func TestParseTermBuy(t *testing.T) { go func() { ParseTransactionForSubscribe( context.Background(), - getTransaction(t, client, "5Gz1fa4Qhb35bkg9QCMXpxCX5uuNr7WcjcmrwajGZA7kXsvNS9pDnYe12ggWeSqf1nwZbVPob6DkX6fcwbE9ofBR"), + getTransaction(t, client, "4rm1UFvWqTrBvcCfEzeXEPCeNsXRNhMHRx7AXrEiBwpFMJXNzXPt9zhrpQc1JrUnuBACeo7uRM8W8vKx56TQT7vs"), nil, ch, closed, @@ -179,16 +179,16 @@ func TestParseTermBuy(t *testing.T) { if signal.Event != "buy" { t.Fatalf("expected buy event, got %s", signal.Event) } - if signal.Maker != "BaLxyjXzATAnfm7cc5AFhWBpiwnsb71THcnofDLTWAPK" { - t.Fatalf("expected maker BaLxyjXzATAnfm7cc5AFhWBpiwnsb71THcnofDLTWAPK, got %s", signal.Maker) + if signal.Maker != "ATEruR96FhZWpZGkKvgzGG3gRL3Cdj6GttHtBsUFeAPE" { + t.Fatalf("expected maker ATEruR96FhZWpZGkKvgzGG3gRL3Cdj6GttHtBsUFeAPE, got %s", signal.Maker) } - if signal.Token0Address != "5Wgv54peXRKDHYHapAELzgNKEPEh9E5Bf3hUR3sTpump" { - t.Fatalf("expected token0 address 5Wgv54peXRKDHYHapAELzgNKEPEh9E5Bf3hUR3sTpump, got %s", signal.Token0Address) + if signal.Token0Address != "7nHYtqhR4qq7LHVmC5Pnz7p6Se64i39TfnyM6ZC2pump" { + t.Fatalf("expected token0 address 7nHYtqhR4qq7LHVmC5Pnz7p6Se64i39TfnyM6ZC2pump, got %s", signal.Token0Address) } - if signal.Token0AmountUint64 != 6952026214256 { + if signal.Token0AmountUint64 != 4473828190746 { t.Fatalf("expected token0 amount 6952026214256, got %d", signal.Token0AmountUint64) } - if signal.Token1AmountUint64 != 653333333 { + if signal.Token1AmountUint64 != 250000000 { t.Fatalf("expected token1 amount 653333333, got %d", signal.Token1AmountUint64) } }