fix: test
This commit is contained in:
@@ -96,7 +96,7 @@ func parseRaydiumLaunchLabCreate(tx VersionedTransaction, instruction Instructio
|
|||||||
}
|
}
|
||||||
|
|
||||||
func parseRaydiumLaunchLabSwap(tx VersionedTransaction, instruction Instructions, isBuy bool, exactIn bool) (*TxSignal, error) {
|
func parseRaydiumLaunchLabSwap(tx VersionedTransaction, instruction Instructions, isBuy bool, exactIn bool) (*TxSignal, error) {
|
||||||
if len(instruction.Accounts) < 10 {
|
if len(instruction.Accounts) < 11 {
|
||||||
return nil, fmt.Errorf("accounts too short")
|
return nil, fmt.Errorf("accounts too short")
|
||||||
}
|
}
|
||||||
if len(instruction.Data) < 24 {
|
if len(instruction.Data) < 24 {
|
||||||
|
|||||||
@@ -577,13 +577,14 @@ func TestParseRaydiumLaunchLabSellExactIn(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
client := rpc.New(rpcUrl)
|
client := rpc.New(rpcUrl)
|
||||||
|
loader := manuallyLoadAddressTable(t, client, solana.MustPublicKeyFromBase58("4xBW5fcrR1eityayfv6mrxC7zfQNy89YpqoVmqiTbfRh"))
|
||||||
ch := make(chan TxSignal)
|
ch := make(chan TxSignal)
|
||||||
closed := make(chan struct{})
|
closed := make(chan struct{})
|
||||||
go func() {
|
go func() {
|
||||||
ParseTransactionForSubscribe(
|
ParseTransactionForSubscribe(
|
||||||
context.Background(),
|
context.Background(),
|
||||||
getTransaction(t, client, "37LGuUiTnBpagELdwVWtffkbJaLsucbRimnFueKS23EaFdYsjHC42SS3XjyC5tyRaokj5tdwiKYfBqNFAmMbTUgv"),
|
getTransaction(t, client, "37LGuUiTnBpagELdwVWtffkbJaLsucbRimnFueKS23EaFdYsjHC42SS3XjyC5tyRaokj5tdwiKYfBqNFAmMbTUgv"),
|
||||||
nil,
|
loader,
|
||||||
ch,
|
ch,
|
||||||
closed,
|
closed,
|
||||||
)
|
)
|
||||||
@@ -632,13 +633,14 @@ func TestParseRaydiumLaunchLabSellExactOut(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
client := rpc.New(rpcUrl)
|
client := rpc.New(rpcUrl)
|
||||||
|
loader := manuallyLoadAddressTable(t, client, solana.MustPublicKeyFromBase58("DSaHkhDp17UexbZsg2VUnWjEuTwKNCJrnG4LW122ANfd"))
|
||||||
ch := make(chan TxSignal)
|
ch := make(chan TxSignal)
|
||||||
closed := make(chan struct{})
|
closed := make(chan struct{})
|
||||||
go func() {
|
go func() {
|
||||||
ParseTransactionForSubscribe(
|
ParseTransactionForSubscribe(
|
||||||
context.Background(),
|
context.Background(),
|
||||||
getTransaction(t, client, "3z8iC9zDLeQzjcLtUnwDT1j9Z5p5rFWXyCcRUhvUCVDTrPJSoZbbULkMTZk2mUUeAX1qaMBZUsPCd59B4KaGooSk"),
|
getTransaction(t, client, "3z8iC9zDLeQzjcLtUnwDT1j9Z5p5rFWXyCcRUhvUCVDTrPJSoZbbULkMTZk2mUUeAX1qaMBZUsPCd59B4KaGooSk"),
|
||||||
nil,
|
loader,
|
||||||
ch,
|
ch,
|
||||||
closed,
|
closed,
|
||||||
)
|
)
|
||||||
@@ -687,13 +689,14 @@ func TestParseRaydiumLaunchLabCreate(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
client := rpc.New(rpcUrl)
|
client := rpc.New(rpcUrl)
|
||||||
|
loader := manuallyLoadAddressTable(t, client, solana.MustPublicKeyFromBase58("J7aYNVkReYKUSEvS79sg2YubtMQMxUetByAFrNw7qZ3G"))
|
||||||
ch := make(chan TxSignal)
|
ch := make(chan TxSignal)
|
||||||
closed := make(chan struct{})
|
closed := make(chan struct{})
|
||||||
go func() {
|
go func() {
|
||||||
ParseTransactionForSubscribe(
|
ParseTransactionForSubscribe(
|
||||||
context.Background(),
|
context.Background(),
|
||||||
getTransaction(t, client, "2qi4STgj33b1DydMKvtpqeSVwkcTJHww8ViX9ADMu2TaRz2uSGcVjgDyd9AELnn2N1ojSGy2qnM6uiXJc2vEcLmw"),
|
getTransaction(t, client, "2qi4STgj33b1DydMKvtpqeSVwkcTJHww8ViX9ADMu2TaRz2uSGcVjgDyd9AELnn2N1ojSGy2qnM6uiXJc2vEcLmw"),
|
||||||
nil,
|
loader,
|
||||||
ch,
|
ch,
|
||||||
closed,
|
closed,
|
||||||
)
|
)
|
||||||
@@ -736,13 +739,14 @@ func TestParseRaydiumLaunchLabCreate2(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
client := rpc.New(rpcUrl)
|
client := rpc.New(rpcUrl)
|
||||||
|
loader := manuallyLoadAddressTable(t, client, solana.MustPublicKeyFromBase58("5Sq6FRoQkRbupnZM1iq9AFeLaSZPbVHgPheVqHD4GzVr"))
|
||||||
ch := make(chan TxSignal)
|
ch := make(chan TxSignal)
|
||||||
closed := make(chan struct{})
|
closed := make(chan struct{})
|
||||||
go func() {
|
go func() {
|
||||||
ParseTransactionForSubscribe(
|
ParseTransactionForSubscribe(
|
||||||
context.Background(),
|
context.Background(),
|
||||||
getTransaction(t, client, "3ZofgvJ3vrNRnyGfAFwENSrDAHxVuXhqrL4svwctHuxZHnAengj5SHeEwPJiJFPXYaBcnfrUAk2V4368LVVSEP2W"),
|
getTransaction(t, client, "3ZofgvJ3vrNRnyGfAFwENSrDAHxVuXhqrL4svwctHuxZHnAengj5SHeEwPJiJFPXYaBcnfrUAk2V4368LVVSEP2W"),
|
||||||
nil,
|
loader,
|
||||||
ch,
|
ch,
|
||||||
closed,
|
closed,
|
||||||
)
|
)
|
||||||
@@ -960,13 +964,14 @@ func TestParseFlasBonkSell(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
client := rpc.New(rpcUrl)
|
client := rpc.New(rpcUrl)
|
||||||
|
loader := manuallyLoadAddressTable(t, client, solana.MustPublicKeyFromBase58("7RKtfATWCe98ChuwecNq8XCzAzfoK3DtZTprFsPMGtio"))
|
||||||
ch := make(chan TxSignal)
|
ch := make(chan TxSignal)
|
||||||
closed := make(chan struct{})
|
closed := make(chan struct{})
|
||||||
go func() {
|
go func() {
|
||||||
ParseTransactionForSubscribe(
|
ParseTransactionForSubscribe(
|
||||||
context.Background(),
|
context.Background(),
|
||||||
getTransaction(t, client, "2v3qLsnrJ5KqUDqtzXyc3S9vT6cLvXbaVR6vwfhp4ufC4Sg1vmR5xMdxzrtvErq8kiC8g7d5wLAbEMe8NwXJE5MS"),
|
getTransaction(t, client, "2v3qLsnrJ5KqUDqtzXyc3S9vT6cLvXbaVR6vwfhp4ufC4Sg1vmR5xMdxzrtvErq8kiC8g7d5wLAbEMe8NwXJE5MS"),
|
||||||
nil,
|
loader,
|
||||||
ch,
|
ch,
|
||||||
closed,
|
closed,
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user