1
1
package net.avianlabs.solana.methods
2
2
3
3
import io.ktor.util.*
4
- import kotlinx.serialization.Contextual
5
4
import kotlinx.serialization.Serializable
6
5
import kotlinx.serialization.json.*
7
6
import net.avianlabs.solana.SolanaClient
@@ -62,7 +61,7 @@ public data class SimulateTransactionResponse(
62
61
/* *
63
62
* Error if transaction failed, null if transaction succeeded.
64
63
*/
65
- @Contextual val err : Any ? ,
64
+ val err : JsonElement ? ,
66
65
/* *
67
66
* Array of log messages the transaction instructions output during execution, null if simulation
68
67
* failed before the transaction was able to execute (for example due to an invalid blockhash or
@@ -84,7 +83,7 @@ public data class SimulateTransactionResponse(
84
83
/* *
85
84
* Defined only if innerInstructions was set to true
86
85
*/
87
- @Contextual val innerInstructions : Any ? ,
86
+ val innerInstructions : JsonElement ? ,
88
87
) {
89
88
@Serializable
90
89
public data class AccountInfo (
@@ -99,7 +98,7 @@ public data class SimulateTransactionResponse(
99
98
/* *
100
99
* Data associated with the account, either as encoded binary data or JSON format
101
100
*/
102
- @Contextual val data : Any ,
101
+ val data : JsonElement ,
103
102
/* *
104
103
* Boolean indicating if the account contains a program (and is strictly read-only)
105
104
*/
@@ -119,6 +118,6 @@ public data class SimulateTransactionResponse(
119
118
/* *
120
119
* The return data itself, as base-64 encoded binary data
121
120
*/
122
- @Contextual val data : Any ,
121
+ val data : String ,
123
122
)
124
123
}
0 commit comments