@thru/thru-sdk 0.1.28 → 0.1.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,7 @@
1
- import { BytesLike, Pubkey as Pubkey$1 } from '@thru/helpers';
2
- import { Message } from '@bufbuild/protobuf';
3
1
  import { Timestamp } from '@bufbuild/protobuf/wkt';
4
- import { createClient } from '@connectrpc/connect';
5
- import { createGrpcWebTransport } from '@connectrpc/connect-web';
2
+ import { Message } from '@bufbuild/protobuf';
3
+ import { Transport, createClient, CallOptions, Interceptor } from '@connectrpc/connect';
4
+ import { GrpcWebTransportOptions } from '@connectrpc/connect-web';
6
5
  import { GenMessage } from '@bufbuild/protobuf/codegenv2';
7
6
 
8
7
  /**
@@ -49,6 +48,15 @@ type VersionContext = Message<"thru.common.v1.VersionContext"> & {
49
48
  */
50
49
  value: Timestamp;
51
50
  case: "timestamp";
51
+ } | {
52
+ /**
53
+ * Request the version for a specific seq number.
54
+ * Relevant only for GetAccount and GetRawAccount requests.
55
+ *
56
+ * @generated from field: uint64 seq = 5;
57
+ */
58
+ value: bigint;
59
+ case: "seq";
52
60
  } | {
53
61
  case: undefined;
54
62
  value?: undefined;
@@ -118,9 +126,9 @@ declare enum ConsensusStatus {
118
126
  /**
119
127
  * Pubkey represents a 32-byte public key value.
120
128
  *
121
- * @generated from message thru.core.v1.Pubkey
129
+ * @generated from message thru.common.v1.Pubkey
122
130
  */
123
- type Pubkey = Message<"thru.core.v1.Pubkey"> & {
131
+ type Pubkey$1 = Message<"thru.common.v1.Pubkey"> & {
124
132
  /**
125
133
  * 32-byte public key buffer.
126
134
  *
@@ -129,30 +137,43 @@ type Pubkey = Message<"thru.core.v1.Pubkey"> & {
129
137
  value: Uint8Array;
130
138
  };
131
139
  /**
132
- * BlockHash represents a 64-byte hash for block identifiers.
140
+ * Signature represents a 64-byte signature value.
133
141
  *
134
- * @generated from message thru.core.v1.BlockHash
142
+ * @generated from message thru.common.v1.Signature
135
143
  */
136
- type BlockHash = Message<"thru.core.v1.BlockHash"> & {
144
+ type Signature$1 = Message<"thru.common.v1.Signature"> & {
137
145
  /**
138
- * 64-byte block hash buffer.
146
+ * 64-byte signature buffer.
139
147
  *
140
148
  * @generated from field: bytes value = 1;
141
149
  */
142
150
  value: Uint8Array;
143
151
  };
144
152
  /**
145
- * Signature represents a 64-byte signature value.
153
+ * TaPubkey represents a ta-encoded public key string (46 characters).
146
154
  *
147
- * @generated from message thru.core.v1.Signature
155
+ * @generated from message thru.common.v1.TaPubkey
148
156
  */
149
- type Signature = Message<"thru.core.v1.Signature"> & {
157
+ type TaPubkey = Message<"thru.common.v1.TaPubkey"> & {
150
158
  /**
151
- * 64-byte signature buffer.
159
+ * 46-character ta-encoded public key string.
152
160
  *
153
- * @generated from field: bytes value = 1;
161
+ * @generated from field: string value = 1;
154
162
  */
155
- value: Uint8Array;
163
+ value: string;
164
+ };
165
+ /**
166
+ * TsSignature represents a ts-encoded signature string (90 characters).
167
+ *
168
+ * @generated from message thru.common.v1.TsSignature
169
+ */
170
+ type TsSignature = Message<"thru.common.v1.TsSignature"> & {
171
+ /**
172
+ * 90-character ts-encoded signature string.
173
+ *
174
+ * @generated from field: string value = 1;
175
+ */
176
+ value: string;
156
177
  };
157
178
 
158
179
  /**
@@ -162,9 +183,9 @@ type Signature = Message<"thru.core.v1.Signature"> & {
162
183
  */
163
184
  type TransactionHeader = Message<"thru.core.v1.TransactionHeader"> & {
164
185
  /**
165
- * @generated from field: thru.core.v1.Signature fee_payer_signature = 1;
186
+ * @generated from field: thru.common.v1.Signature fee_payer_signature = 1;
166
187
  */
167
- feePayerSignature?: Signature;
188
+ feePayerSignature?: Signature$1;
168
189
  /**
169
190
  * @generated from field: uint32 version = 2;
170
191
  */
@@ -214,13 +235,13 @@ type TransactionHeader = Message<"thru.core.v1.TransactionHeader"> & {
214
235
  */
215
236
  startSlot: bigint;
216
237
  /**
217
- * @generated from field: thru.core.v1.Pubkey fee_payer_pubkey = 14;
238
+ * @generated from field: thru.common.v1.Pubkey fee_payer_pubkey = 14;
218
239
  */
219
- feePayerPubkey?: Pubkey;
240
+ feePayerPubkey?: Pubkey$1;
220
241
  /**
221
- * @generated from field: thru.core.v1.Pubkey program_pubkey = 15;
242
+ * @generated from field: thru.common.v1.Pubkey program_pubkey = 15;
222
243
  */
223
- programPubkey?: Pubkey;
244
+ programPubkey?: Pubkey$1;
224
245
  };
225
246
  /**
226
247
  * TransactionExecutionResult captures execution outcomes.
@@ -265,13 +286,13 @@ type TransactionExecutionResult = Message<"thru.core.v1.TransactionExecutionResu
265
286
  */
266
287
  eventsSize: number;
267
288
  /**
268
- * @generated from field: repeated thru.core.v1.Pubkey readwrite_accounts = 10;
289
+ * @generated from field: repeated thru.common.v1.Pubkey readwrite_accounts = 10;
269
290
  */
270
- readwriteAccounts: Pubkey[];
291
+ readwriteAccounts: Pubkey$1[];
271
292
  /**
272
- * @generated from field: repeated thru.core.v1.Pubkey readonly_accounts = 11;
293
+ * @generated from field: repeated thru.common.v1.Pubkey readonly_accounts = 11;
273
294
  */
274
- readonlyAccounts: Pubkey[];
295
+ readonlyAccounts: Pubkey$1[];
275
296
  /**
276
297
  * @generated from field: repeated thru.core.v1.TransactionEvent events = 12;
277
298
  */
@@ -296,9 +317,9 @@ type TransactionEvent = Message<"thru.core.v1.TransactionEvent"> & {
296
317
  */
297
318
  programIdx: number;
298
319
  /**
299
- * @generated from field: thru.core.v1.Pubkey program = 4;
320
+ * @generated from field: thru.common.v1.Pubkey program = 4;
300
321
  */
301
- program?: Pubkey;
322
+ program?: Pubkey$1;
302
323
  /**
303
324
  * @generated from field: bytes payload = 5;
304
325
  */
@@ -311,9 +332,9 @@ type TransactionEvent = Message<"thru.core.v1.TransactionEvent"> & {
311
332
  */
312
333
  type Transaction$1 = Message<"thru.core.v1.Transaction"> & {
313
334
  /**
314
- * @generated from field: thru.core.v1.Signature signature = 1;
335
+ * @generated from field: thru.common.v1.Signature signature = 1;
315
336
  */
316
- signature?: Signature;
337
+ signature?: Signature$1;
317
338
  /**
318
339
  * @generated from field: thru.core.v1.TransactionHeader header = 2;
319
340
  */
@@ -342,9 +363,9 @@ type Transaction$1 = Message<"thru.core.v1.Transaction"> & {
342
363
  */
343
364
  type RawTransaction = Message<"thru.core.v1.RawTransaction"> & {
344
365
  /**
345
- * @generated from field: thru.core.v1.Signature signature = 1;
366
+ * @generated from field: thru.common.v1.Signature signature = 1;
346
367
  */
347
- signature?: Signature;
368
+ signature?: Signature$1;
348
369
  /**
349
370
  * @generated from field: bytes raw_transaction = 2;
350
371
  */
@@ -608,10 +629,40 @@ type FilterParamValue$1 = Message<"thru.common.v1.FilterParamValue"> & {
608
629
  case: "intValue";
609
630
  } | {
610
631
  /**
611
- * @generated from field: double double_value = 5;
632
+ * @generated from field: uint64 uint_value = 5;
633
+ */
634
+ value: bigint;
635
+ case: "uintValue";
636
+ } | {
637
+ /**
638
+ * @generated from field: double double_value = 6;
612
639
  */
613
640
  value: number;
614
641
  case: "doubleValue";
642
+ } | {
643
+ /**
644
+ * @generated from field: thru.common.v1.Pubkey pubkey_value = 7;
645
+ */
646
+ value: Pubkey$1;
647
+ case: "pubkeyValue";
648
+ } | {
649
+ /**
650
+ * @generated from field: thru.common.v1.Signature signature_value = 8;
651
+ */
652
+ value: Signature$1;
653
+ case: "signatureValue";
654
+ } | {
655
+ /**
656
+ * @generated from field: thru.common.v1.TaPubkey ta_pubkey_value = 9;
657
+ */
658
+ value: TaPubkey;
659
+ case: "taPubkeyValue";
660
+ } | {
661
+ /**
662
+ * @generated from field: thru.common.v1.TsSignature ts_signature_value = 10;
663
+ */
664
+ value: TsSignature;
665
+ case: "tsSignatureValue";
615
666
  } | {
616
667
  case: undefined;
617
668
  value?: undefined;
@@ -683,9 +734,9 @@ type AccountMeta$1 = Message<"thru.core.v1.AccountMeta"> & {
683
734
  */
684
735
  seq: bigint;
685
736
  /**
686
- * @generated from field: thru.core.v1.Pubkey owner = 5;
737
+ * @generated from field: thru.common.v1.Pubkey owner = 5;
687
738
  */
688
- owner?: Pubkey;
739
+ owner?: Pubkey$1;
689
740
  /**
690
741
  * @generated from field: uint64 balance = 6;
691
742
  */
@@ -751,9 +802,9 @@ type VersionContextMetadata = Message<"thru.core.v1.VersionContextMetadata"> & {
751
802
  */
752
803
  type Account$1 = Message<"thru.core.v1.Account"> & {
753
804
  /**
754
- * @generated from field: thru.core.v1.Pubkey address = 1;
805
+ * @generated from field: thru.common.v1.Pubkey address = 1;
755
806
  */
756
- address?: Pubkey;
807
+ address?: Pubkey$1;
757
808
  /**
758
809
  * @generated from field: optional thru.core.v1.AccountMeta meta = 2;
759
810
  */
@@ -778,9 +829,9 @@ type Account$1 = Message<"thru.core.v1.Account"> & {
778
829
  */
779
830
  type RawAccount = Message<"thru.core.v1.RawAccount"> & {
780
831
  /**
781
- * @generated from field: thru.core.v1.Pubkey address = 1;
832
+ * @generated from field: thru.common.v1.Pubkey address = 1;
782
833
  */
783
- address?: Pubkey;
834
+ address?: Pubkey$1;
784
835
  /**
785
836
  * @generated from field: bytes raw_meta = 2;
786
837
  */
@@ -832,6 +883,20 @@ declare enum AccountView {
832
883
  FULL = 4
833
884
  }
834
885
 
886
+ /**
887
+ * BlockHash represents a 64-byte hash for block identifiers.
888
+ *
889
+ * @generated from message thru.core.v1.BlockHash
890
+ */
891
+ type BlockHash = Message<"thru.core.v1.BlockHash"> & {
892
+ /**
893
+ * 64-byte block hash buffer.
894
+ *
895
+ * @generated from field: bytes value = 1;
896
+ */
897
+ value: Uint8Array;
898
+ };
899
+
835
900
  /**
836
901
  * BlockHeader describes metadata about a block.
837
902
  *
@@ -847,17 +912,17 @@ type BlockHeader$1 = Message<"thru.core.v1.BlockHeader"> & {
847
912
  */
848
913
  blockHash?: BlockHash;
849
914
  /**
850
- * @generated from field: thru.core.v1.Signature header_signature = 3;
915
+ * @generated from field: thru.common.v1.Signature header_signature = 3;
851
916
  */
852
- headerSignature?: Signature;
917
+ headerSignature?: Signature$1;
853
918
  /**
854
919
  * @generated from field: uint32 version = 4;
855
920
  */
856
921
  version: number;
857
922
  /**
858
- * @generated from field: thru.core.v1.Pubkey producer = 5;
923
+ * @generated from field: thru.common.v1.Pubkey producer = 5;
859
924
  */
860
- producer?: Pubkey;
925
+ producer?: Pubkey$1;
861
926
  /**
862
927
  * @generated from field: google.protobuf.Timestamp expiry_timestamp = 6;
863
928
  */
@@ -886,6 +951,10 @@ type BlockHeader$1 = Message<"thru.core.v1.BlockHeader"> & {
886
951
  * @generated from field: uint64 price = 12;
887
952
  */
888
953
  price: bigint;
954
+ /**
955
+ * @generated from field: google.protobuf.Timestamp block_time = 13;
956
+ */
957
+ blockTime?: Timestamp;
889
958
  };
890
959
  /**
891
960
  * BlockFooter captures execution result metadata for a block.
@@ -894,9 +963,9 @@ type BlockHeader$1 = Message<"thru.core.v1.BlockHeader"> & {
894
963
  */
895
964
  type BlockFooter$1 = Message<"thru.core.v1.BlockFooter"> & {
896
965
  /**
897
- * @generated from field: thru.core.v1.Signature signature = 1;
966
+ * @generated from field: thru.common.v1.Signature signature = 1;
898
967
  */
899
- signature?: Signature;
968
+ signature?: Signature$1;
900
969
  /**
901
970
  * @generated from field: thru.core.v1.ExecutionStatus status = 2;
902
971
  */
@@ -1018,27 +1087,60 @@ type StreamEventsResponse = Message<"thru.services.v1.StreamEventsResponse"> & {
1018
1087
  */
1019
1088
  timestamp?: Timestamp;
1020
1089
  /**
1021
- * @generated from field: thru.core.v1.Pubkey program = 4;
1090
+ * @generated from field: thru.common.v1.Pubkey program = 4;
1022
1091
  */
1023
- program?: Pubkey;
1092
+ program?: Pubkey$1;
1024
1093
  /**
1025
1094
  * @generated from field: uint32 call_idx = 5;
1026
1095
  */
1027
1096
  callIdx: number;
1028
1097
  /**
1029
- * @generated from field: thru.core.v1.Signature signature = 6;
1098
+ * @generated from field: thru.common.v1.Signature signature = 6;
1030
1099
  */
1031
- signature?: Signature;
1100
+ signature?: Signature$1;
1032
1101
  /**
1033
1102
  * @generated from field: uint64 slot = 7;
1034
1103
  */
1035
1104
  slot: bigint;
1036
1105
  };
1037
1106
 
1038
- type Bytes32 = Uint8Array;
1039
- type Bytes64 = Uint8Array;
1040
- type AccountAddress = Bytes32;
1041
- type ProgramIdentifier = BytesLike;
1107
+ type PubkeyInput = Uint8Array | string | Pubkey;
1108
+ declare class Pubkey {
1109
+ private readonly bytes;
1110
+ private constructor();
1111
+ static from(value: PubkeyInput): Pubkey;
1112
+ static isThruFmt(value: string): boolean;
1113
+ toBytes(): Uint8Array;
1114
+ toBytesUnsafe(): Uint8Array;
1115
+ toThruFmt(): string;
1116
+ toHex(): string;
1117
+ equals(other: PubkeyInput): boolean;
1118
+ toProtoPubkey(): Pubkey$1;
1119
+ toProtoTaPubkey(): TaPubkey;
1120
+ static fromProtoPubkey(proto?: Pubkey$1): Pubkey;
1121
+ static fromProtoTaPubkey(proto?: TaPubkey): Pubkey;
1122
+ private static bytesFromString;
1123
+ }
1124
+
1125
+ type SignatureInput = Uint8Array | string | Signature;
1126
+ declare class Signature {
1127
+ private readonly bytes;
1128
+ private constructor();
1129
+ static from(value: SignatureInput): Signature;
1130
+ static fromProto(proto?: Signature$1): Signature;
1131
+ static isThruFmt(value: string): boolean;
1132
+ toBytes(): Uint8Array;
1133
+ toBytesUnsafe(): Uint8Array;
1134
+ toThruFmt(): string;
1135
+ toHex(): string;
1136
+ equals(other: SignatureInput): boolean;
1137
+ toProtoSignature(): Signature$1;
1138
+ toProtoTsSignature(): TsSignature;
1139
+ static fromProtoTsSignature(proto?: TsSignature): Signature;
1140
+ static fromProtoSignature(proto?: Signature$1): Signature;
1141
+ private static bytesFromString;
1142
+ }
1143
+
1042
1144
  interface ResourceLimits {
1043
1145
  computeUnits?: number;
1044
1146
  stateUnits?: number;
@@ -1056,8 +1158,8 @@ interface TransactionHeaderInput extends ResourceLimits {
1056
1158
  flags?: number;
1057
1159
  }
1058
1160
  interface TransactionAccountsInput {
1059
- readWriteAccounts?: AccountAddress[];
1060
- readOnlyAccounts?: AccountAddress[];
1161
+ readWriteAccounts?: PubkeyInput[];
1162
+ readOnlyAccounts?: PubkeyInput[];
1061
1163
  }
1062
1164
  /**
1063
1165
  * Context provided to instruction data functions.
@@ -1066,27 +1168,27 @@ interface TransactionAccountsInput {
1066
1168
  */
1067
1169
  interface InstructionContext {
1068
1170
  /** All accounts in final transaction order: [feePayer, program, ...readWrite, ...readOnly] */
1069
- accounts: AccountAddress[];
1171
+ accounts: Pubkey[];
1070
1172
  /** Get the index of an account by its public key. Throws if account is not found in transaction. */
1071
- getAccountIndex: (pubkey: AccountAddress) => number;
1173
+ getAccountIndex: (pubkey: PubkeyInput) => number;
1072
1174
  }
1073
1175
  interface FeePayerInput {
1074
- publicKey: AccountAddress;
1075
- privateKey?: Bytes32;
1176
+ publicKey: PubkeyInput;
1177
+ privateKey?: Uint8Array;
1076
1178
  }
1077
1179
  interface BuildTransactionParams {
1078
1180
  feePayer: FeePayerInput;
1079
- program: ProgramIdentifier;
1181
+ program: PubkeyInput;
1080
1182
  header: TransactionHeaderInput;
1081
1183
  accounts?: TransactionAccountsInput;
1082
- instructionData?: BytesLike;
1184
+ instructionData?: Uint8Array | string;
1083
1185
  proofs?: OptionalProofs;
1084
1186
  }
1085
1187
  interface BuiltTransactionResult {
1086
1188
  transaction: TransactionLike;
1087
1189
  }
1088
1190
  interface SignedTransactionResult extends BuiltTransactionResult {
1089
- signature: Bytes64;
1191
+ signature: Signature;
1090
1192
  rawTransaction: Uint8Array;
1091
1193
  }
1092
1194
  interface TransactionLike {
@@ -1097,7 +1199,7 @@ interface TransactionExecutionEvent {
1097
1199
  eventId: string;
1098
1200
  callIdx: number;
1099
1201
  programIdx: number;
1100
- program?: AccountAddress;
1202
+ program?: Pubkey;
1101
1203
  payload: Uint8Array;
1102
1204
  }
1103
1205
  interface TransactionExecutionResultData {
@@ -1110,14 +1212,14 @@ interface TransactionExecutionResultData {
1110
1212
  pagesUsed: number;
1111
1213
  eventsCount: number;
1112
1214
  eventsSize: number;
1113
- readwriteAccounts: AccountAddress[];
1114
- readonlyAccounts: AccountAddress[];
1215
+ readwriteAccounts: Pubkey[];
1216
+ readonlyAccounts: Pubkey[];
1115
1217
  events?: TransactionExecutionEvent[];
1116
1218
  }
1117
1219
  declare class Transaction {
1118
1220
  readonly version: number;
1119
- readonly feePayer: AccountAddress;
1120
- readonly program: AccountAddress;
1221
+ readonly feePayer: Pubkey;
1222
+ readonly program: Pubkey;
1121
1223
  readonly fee: bigint;
1122
1224
  readonly nonce: bigint;
1123
1225
  readonly startSlot: bigint;
@@ -1126,8 +1228,8 @@ declare class Transaction {
1126
1228
  readonly requestedStateUnits: number;
1127
1229
  readonly requestedMemoryUnits: number;
1128
1230
  readonly flags: number;
1129
- readonly readWriteAccounts: AccountAddress[];
1130
- readonly readOnlyAccounts: AccountAddress[];
1231
+ readonly readWriteAccounts: Pubkey[];
1232
+ readonly readOnlyAccounts: Pubkey[];
1131
1233
  readonly instructionData?: Uint8Array;
1132
1234
  readonly instructionDataSize?: number;
1133
1235
  readonly feePayerStateProof?: Uint8Array;
@@ -1138,8 +1240,8 @@ declare class Transaction {
1138
1240
  private signature?;
1139
1241
  constructor(params: {
1140
1242
  version?: number;
1141
- feePayer: AccountAddress;
1142
- program: AccountAddress;
1243
+ feePayer: PubkeyInput;
1244
+ program: PubkeyInput;
1143
1245
  header: TransactionHeaderInput;
1144
1246
  accounts?: TransactionAccountsInput;
1145
1247
  instructionData?: Uint8Array;
@@ -1154,9 +1256,9 @@ declare class Transaction {
1154
1256
  size: number;
1155
1257
  };
1156
1258
  static fromProto(proto: Transaction$1): Transaction;
1157
- getSignature(): Uint8Array | undefined;
1158
- setSignature(signature: Bytes64): void;
1159
- sign(privateKey: Uint8Array): Promise<Bytes64>;
1259
+ getSignature(): Signature | undefined;
1260
+ setSignature(signature: Signature): void;
1261
+ sign(privateKey: Uint8Array): Promise<Signature>;
1160
1262
  toWireForSigning(): Uint8Array;
1161
1263
  toWire(): Uint8Array;
1162
1264
  private createHeader;
@@ -1165,7 +1267,6 @@ declare class Transaction {
1165
1267
  private static ensureAvailable;
1166
1268
  private static parseStateProof;
1167
1269
  static executionResultFromProto(proto: TransactionExecutionResult): TransactionExecutionResultData;
1168
- private static convertExecutionResultToProto;
1169
1270
  }
1170
1271
 
1171
1272
  type StreamTransactionUpdate = {
@@ -1293,13 +1394,13 @@ type Event = Message<"thru.services.v1.Event"> & {
1293
1394
  */
1294
1395
  eventId: string;
1295
1396
  /**
1296
- * @generated from field: thru.core.v1.Signature transaction_signature = 2;
1397
+ * @generated from field: thru.common.v1.Signature transaction_signature = 2;
1297
1398
  */
1298
- transactionSignature?: Signature;
1399
+ transactionSignature?: Signature$1;
1299
1400
  /**
1300
- * @generated from field: optional thru.core.v1.Pubkey program = 3;
1401
+ * @generated from field: optional thru.common.v1.Pubkey program = 3;
1301
1402
  */
1302
- program?: Pubkey;
1403
+ program?: Pubkey$1;
1303
1404
  /**
1304
1405
  * @generated from field: optional bytes payload = 4;
1305
1406
  */
@@ -1320,6 +1421,14 @@ type Event = Message<"thru.services.v1.Event"> & {
1320
1421
  * @generated from field: optional uint32 payload_size = 8;
1321
1422
  */
1322
1423
  payloadSize?: number;
1424
+ /**
1425
+ * @generated from field: optional uint32 block_offset = 9;
1426
+ */
1427
+ blockOffset?: number;
1428
+ /**
1429
+ * @generated from field: optional google.protobuf.Timestamp timestamp = 10;
1430
+ */
1431
+ timestamp?: Timestamp;
1323
1432
  };
1324
1433
  /**
1325
1434
  * TransactionStatus captures status metadata for a transaction.
@@ -1328,9 +1437,9 @@ type Event = Message<"thru.services.v1.Event"> & {
1328
1437
  */
1329
1438
  type TransactionStatus = Message<"thru.services.v1.TransactionStatus"> & {
1330
1439
  /**
1331
- * @generated from field: thru.core.v1.Signature signature = 1;
1440
+ * @generated from field: thru.common.v1.Signature signature = 1;
1332
1441
  */
1333
- signature?: Signature;
1442
+ signature?: Signature$1;
1334
1443
  /**
1335
1444
  * @generated from field: optional thru.common.v1.ConsensusStatus consensus_status = 2;
1336
1445
  */
@@ -1364,9 +1473,9 @@ type BatchSendTransactionsResponse = Message<"thru.services.v1.BatchSendTransact
1364
1473
  /**
1365
1474
  * Signatures for each transaction (in same order as request).
1366
1475
  *
1367
- * @generated from field: repeated thru.core.v1.Signature signatures = 1;
1476
+ * @generated from field: repeated thru.common.v1.Signature signatures = 1;
1368
1477
  */
1369
- signatures: Signature[];
1478
+ signatures: Signature$1[];
1370
1479
  /**
1371
1480
  * Acceptance status for each transaction (true if accepted, false if not).
1372
1481
  *
@@ -1375,18 +1484,24 @@ type BatchSendTransactionsResponse = Message<"thru.services.v1.BatchSendTransact
1375
1484
  accepted: boolean[];
1376
1485
  };
1377
1486
 
1487
+ type PartialTransportOptions = Partial<GrpcWebTransportOptions>;
1378
1488
  interface ThruClientConfig {
1379
1489
  baseUrl?: string;
1490
+ transport?: Transport;
1491
+ transportOptions?: PartialTransportOptions;
1492
+ interceptors?: Interceptor[];
1493
+ callOptions?: CallOptions;
1380
1494
  }
1381
1495
  type QueryClient = ReturnType<typeof createClient<typeof QueryService>>;
1382
1496
  type CommandClient = ReturnType<typeof createClient<typeof CommandService>>;
1383
1497
  type StreamingClient = ReturnType<typeof createClient<typeof StreamingService>>;
1384
1498
  interface ThruClientContext {
1385
1499
  baseUrl: string;
1386
- transport: ReturnType<typeof createGrpcWebTransport>;
1500
+ transport: Transport;
1387
1501
  query: QueryClient;
1388
1502
  command: CommandClient;
1389
1503
  streaming: StreamingClient;
1504
+ callOptions?: CallOptions;
1390
1505
  }
1391
1506
 
1392
1507
  interface AccountFlagsData {
@@ -1414,7 +1529,7 @@ declare class AccountMeta {
1414
1529
  readonly flags: AccountFlags;
1415
1530
  readonly dataSize: number;
1416
1531
  readonly seq: bigint;
1417
- readonly owner?: AccountAddress;
1532
+ readonly owner?: Pubkey;
1418
1533
  readonly balance: bigint;
1419
1534
  readonly nonce?: bigint;
1420
1535
  constructor(params: {
@@ -1422,7 +1537,7 @@ declare class AccountMeta {
1422
1537
  flags?: AccountFlags;
1423
1538
  dataSize: number;
1424
1539
  seq: bigint;
1425
- owner?: AccountAddress;
1540
+ owner?: Pubkey;
1426
1541
  balance: bigint;
1427
1542
  nonce?: bigint;
1428
1543
  });
@@ -1444,13 +1559,13 @@ interface AccountVersionContext {
1444
1559
  blockTimestampNs?: bigint;
1445
1560
  }
1446
1561
  declare class Account {
1447
- readonly address: AccountAddress;
1562
+ readonly address: Pubkey;
1448
1563
  readonly meta?: AccountMeta;
1449
1564
  readonly data?: AccountData;
1450
1565
  readonly versionContext?: AccountVersionContext;
1451
1566
  readonly consensusStatus?: ConsensusStatus;
1452
1567
  constructor(params: {
1453
- address: AccountAddress;
1568
+ address: Pubkey;
1454
1569
  meta?: AccountMeta;
1455
1570
  data?: AccountData;
1456
1571
  versionContext?: AccountVersionContext;
@@ -1483,7 +1598,7 @@ type StreamAccountUpdate = {
1483
1598
  update: AccountUpdateDelta;
1484
1599
  };
1485
1600
 
1486
- type FilterParamValueCase = "stringValue" | "bytesValue" | "boolValue" | "intValue" | "doubleValue";
1601
+ type FilterParamValueCase = "stringValue" | "bytesValue" | "boolValue" | "intValue" | "doubleValue" | "uintValue" | "pubkeyValue" | "signatureValue" | "taPubkeyValue" | "tsSignatureValue";
1487
1602
  declare class FilterParamValue {
1488
1603
  private readonly case?;
1489
1604
  private readonly value?;
@@ -1494,6 +1609,11 @@ declare class FilterParamValue {
1494
1609
  static bool(value: boolean): FilterParamValue;
1495
1610
  static int(value: bigint): FilterParamValue;
1496
1611
  static double(value: number): FilterParamValue;
1612
+ static uint(value: number | bigint): FilterParamValue;
1613
+ static pubkey(value: PubkeyInput): FilterParamValue;
1614
+ static signature(value: SignatureInput): FilterParamValue;
1615
+ static taPubkey(value: PubkeyInput | string): FilterParamValue;
1616
+ static tsSignature(value: SignatureInput): FilterParamValue;
1497
1617
  static fromProto(proto: FilterParamValue$1): FilterParamValue;
1498
1618
  toProto(): FilterParamValue$1;
1499
1619
  getCase(): FilterParamValueCase | undefined;
@@ -1501,7 +1621,12 @@ declare class FilterParamValue {
1501
1621
  getBytes(): Uint8Array | undefined;
1502
1622
  getBool(): boolean | undefined;
1503
1623
  getInt(): bigint | undefined;
1624
+ getUint(): bigint | undefined;
1504
1625
  getDouble(): number | undefined;
1626
+ getPubkey(): Uint8Array | undefined;
1627
+ getSignature(): Uint8Array | undefined;
1628
+ getTaPubkey(): string | undefined;
1629
+ getTsSignature(): string | undefined;
1505
1630
  }
1506
1631
  interface FilterParamsInit {
1507
1632
  [key: string]: FilterParamValue;
@@ -1554,7 +1679,7 @@ declare class PageResponse {
1554
1679
 
1555
1680
  interface CreateAccountOptions {
1556
1681
  /** The new account's public key (fee payer). */
1557
- publicKey: Pubkey$1;
1682
+ publicKey: PubkeyInput;
1558
1683
  /** Optional overrides for the transaction header. */
1559
1684
  header?: Partial<TransactionHeaderInput>;
1560
1685
  }
@@ -1580,8 +1705,8 @@ interface AccountList {
1580
1705
  accounts: Account[];
1581
1706
  page?: PageResponse;
1582
1707
  }
1583
- declare function getAccount(ctx: ThruClientContext, address: Pubkey$1, options?: AccountQueryOptions): Promise<Account>;
1584
- declare function getRawAccount(ctx: ThruClientContext, address: Pubkey$1, options?: RawAccountQueryOptions): Promise<RawAccount>;
1708
+ declare function getAccount(ctx: ThruClientContext, address: PubkeyInput, options?: AccountQueryOptions): Promise<Account>;
1709
+ declare function getRawAccount(ctx: ThruClientContext, address: PubkeyInput, options?: RawAccountQueryOptions): Promise<RawAccount>;
1585
1710
  declare function listAccounts(ctx: ThruClientContext, options: ListAccountsOptions): Promise<AccountList>;
1586
1711
  declare function createAccount(ctx: ThruClientContext, options: CreateAccountOptions): Promise<Transaction>;
1587
1712
 
@@ -1673,12 +1798,11 @@ declare class Block {
1673
1798
  type BlockSelector = {
1674
1799
  slot: number | bigint;
1675
1800
  } | {
1676
- blockHash: BytesLike;
1801
+ blockHash: Uint8Array | string;
1677
1802
  };
1678
- declare function toPubkey(value: Pubkey$1, field: string): Pubkey;
1679
1803
  interface DeriveProgramAddressOptions {
1680
- programAddress: Pubkey$1;
1681
- seed: BytesLike;
1804
+ programAddress: PubkeyInput;
1805
+ seed: Uint8Array | string;
1682
1806
  ephemeral?: boolean;
1683
1807
  }
1684
1808
  interface DeriveProgramAddressResult {
@@ -1719,6 +1843,39 @@ declare namespace blocks {
1719
1843
  export { type blocks_BlockList as BlockList, type blocks_BlockQueryOptions as BlockQueryOptions, type blocks_ListBlocksOptions as ListBlocksOptions, type blocks_RawBlockQueryOptions as RawBlockQueryOptions, blocks_getBlock as getBlock, blocks_getRawBlock as getRawBlock, blocks_listBlocks as listBlocks };
1720
1844
  }
1721
1845
 
1846
+ declare function consensusStatusToString(status: ConsensusStatus): string;
1847
+
1848
+ type VersionContextInput = VersionContext | {
1849
+ current: true;
1850
+ } | {
1851
+ currentOrHistorical: true;
1852
+ } | {
1853
+ slot: number | bigint;
1854
+ } | {
1855
+ timestamp: Date | number | Timestamp;
1856
+ } | {
1857
+ seq: number | bigint;
1858
+ };
1859
+
1860
+ declare function currentVersionContext(): VersionContext;
1861
+ declare function currentOrHistoricalVersionContext(): VersionContext;
1862
+ declare function slotVersionContext(slot: number | bigint): VersionContext;
1863
+ declare function timestampVersionContext(value: Date | number | Timestamp): VersionContext;
1864
+ declare function seqVersionContext(seq: number | bigint): VersionContext;
1865
+ declare function versionContext(input?: VersionContextInput): VersionContext;
1866
+
1867
+ type consensus_VersionContextInput = VersionContextInput;
1868
+ declare const consensus_consensusStatusToString: typeof consensusStatusToString;
1869
+ declare const consensus_currentOrHistoricalVersionContext: typeof currentOrHistoricalVersionContext;
1870
+ declare const consensus_currentVersionContext: typeof currentVersionContext;
1871
+ declare const consensus_seqVersionContext: typeof seqVersionContext;
1872
+ declare const consensus_slotVersionContext: typeof slotVersionContext;
1873
+ declare const consensus_timestampVersionContext: typeof timestampVersionContext;
1874
+ declare const consensus_versionContext: typeof versionContext;
1875
+ declare namespace consensus {
1876
+ export { type consensus_VersionContextInput as VersionContextInput, consensus_consensusStatusToString as consensusStatusToString, consensus_currentOrHistoricalVersionContext as currentOrHistoricalVersionContext, consensus_currentVersionContext as currentVersionContext, consensus_seqVersionContext as seqVersionContext, consensus_slotVersionContext as slotVersionContext, consensus_timestampVersionContext as timestampVersionContext, consensus_versionContext as versionContext };
1877
+ }
1878
+
1722
1879
  interface ChainEventParams {
1723
1880
  id: string;
1724
1881
  transactionSignature?: Uint8Array;
@@ -1814,9 +1971,9 @@ declare class StateProof {
1814
1971
  }
1815
1972
 
1816
1973
  type GenerateStateProofOptions = {
1817
- address?: Pubkey$1;
1974
+ address?: PubkeyInput;
1818
1975
  proofType: StateProofType;
1819
- targetSlot: bigint;
1976
+ targetSlot?: bigint;
1820
1977
  };
1821
1978
 
1822
1979
  declare function generateStateProof(ctx: ThruClientContext, options: GenerateStateProofOptions): Promise<StateProof>;
@@ -1849,7 +2006,7 @@ interface StreamAccountUpdatesOptions {
1849
2006
  interface StreamAccountUpdatesResult {
1850
2007
  update: StreamAccountUpdate;
1851
2008
  }
1852
- declare function streamAccountUpdates(ctx: ThruClientContext, address: Pubkey$1, options?: StreamAccountUpdatesOptions): AsyncIterable<StreamAccountUpdatesResult>;
2009
+ declare function streamAccountUpdates(ctx: ThruClientContext, address: PubkeyInput, options?: StreamAccountUpdatesOptions): AsyncIterable<StreamAccountUpdatesResult>;
1853
2010
  interface StreamTransactionsOptions {
1854
2011
  filter?: Filter;
1855
2012
  minConsensus?: ConsensusStatus;
@@ -1865,8 +2022,20 @@ interface StreamEventsResult {
1865
2022
  event: ChainEvent;
1866
2023
  }
1867
2024
  declare function streamEvents(ctx: ThruClientContext, options?: StreamEventsOptions): AsyncIterable<StreamEventsResult>;
1868
- declare function trackTransaction(ctx: ThruClientContext, signature: BytesLike, options?: TrackTransactionOptions): AsyncIterable<TrackTransactionUpdate>;
2025
+ declare function trackTransaction(ctx: ThruClientContext, signature: SignatureInput, options?: TrackTransactionOptions): AsyncIterable<TrackTransactionUpdate>;
2026
+ interface CollectStreamOptions {
2027
+ limit?: number;
2028
+ signal?: AbortSignal;
2029
+ }
2030
+ declare function collectStream<T>(iterable: AsyncIterable<T>, options?: CollectStreamOptions): Promise<T[]>;
2031
+ declare function firstStreamValue<T>(iterable: AsyncIterable<T>, options?: {
2032
+ signal?: AbortSignal;
2033
+ }): Promise<T | undefined>;
2034
+ declare function forEachStreamValue<T>(iterable: AsyncIterable<T>, handler: (value: T, index: number) => void | Promise<void>, options?: {
2035
+ signal?: AbortSignal;
2036
+ }): Promise<void>;
1869
2037
 
2038
+ type streaming_CollectStreamOptions = CollectStreamOptions;
1870
2039
  type streaming_StreamAccountUpdatesOptions = StreamAccountUpdatesOptions;
1871
2040
  type streaming_StreamAccountUpdatesResult = StreamAccountUpdatesResult;
1872
2041
  type streaming_StreamBlocksOptions = StreamBlocksOptions;
@@ -1878,22 +2047,25 @@ type streaming_StreamTransactionsOptions = StreamTransactionsOptions;
1878
2047
  type streaming_StreamTransactionsResult = StreamTransactionsResult;
1879
2048
  type streaming_TrackTransactionOptions = TrackTransactionOptions;
1880
2049
  type streaming_TrackTransactionUpdate = TrackTransactionUpdate;
2050
+ declare const streaming_collectStream: typeof collectStream;
2051
+ declare const streaming_firstStreamValue: typeof firstStreamValue;
2052
+ declare const streaming_forEachStreamValue: typeof forEachStreamValue;
1881
2053
  declare const streaming_streamAccountUpdates: typeof streamAccountUpdates;
1882
2054
  declare const streaming_streamBlocks: typeof streamBlocks;
1883
2055
  declare const streaming_streamEvents: typeof streamEvents;
1884
2056
  declare const streaming_streamTransactions: typeof streamTransactions;
1885
2057
  declare const streaming_trackTransaction: typeof trackTransaction;
1886
2058
  declare namespace streaming {
1887
- export { type streaming_StreamAccountUpdatesOptions as StreamAccountUpdatesOptions, type streaming_StreamAccountUpdatesResult as StreamAccountUpdatesResult, type streaming_StreamBlocksOptions as StreamBlocksOptions, type streaming_StreamBlocksResult as StreamBlocksResult, type streaming_StreamEventsOptions as StreamEventsOptions, type streaming_StreamEventsResult as StreamEventsResult, type streaming_StreamTransactionUpdate as StreamTransactionUpdate, type streaming_StreamTransactionsOptions as StreamTransactionsOptions, type streaming_StreamTransactionsResult as StreamTransactionsResult, type streaming_TrackTransactionOptions as TrackTransactionOptions, type streaming_TrackTransactionUpdate as TrackTransactionUpdate, streaming_streamAccountUpdates as streamAccountUpdates, streaming_streamBlocks as streamBlocks, streaming_streamEvents as streamEvents, streaming_streamTransactions as streamTransactions, streaming_trackTransaction as trackTransaction };
2059
+ export { type streaming_CollectStreamOptions as CollectStreamOptions, type streaming_StreamAccountUpdatesOptions as StreamAccountUpdatesOptions, type streaming_StreamAccountUpdatesResult as StreamAccountUpdatesResult, type streaming_StreamBlocksOptions as StreamBlocksOptions, type streaming_StreamBlocksResult as StreamBlocksResult, type streaming_StreamEventsOptions as StreamEventsOptions, type streaming_StreamEventsResult as StreamEventsResult, type streaming_StreamTransactionUpdate as StreamTransactionUpdate, type streaming_StreamTransactionsOptions as StreamTransactionsOptions, type streaming_StreamTransactionsResult as StreamTransactionsResult, type streaming_TrackTransactionOptions as TrackTransactionOptions, type streaming_TrackTransactionUpdate as TrackTransactionUpdate, streaming_collectStream as collectStream, streaming_firstStreamValue as firstStreamValue, streaming_forEachStreamValue as forEachStreamValue, streaming_streamAccountUpdates as streamAccountUpdates, streaming_streamBlocks as streamBlocks, streaming_streamEvents as streamEvents, streaming_streamTransactions as streamTransactions, streaming_trackTransaction as trackTransaction };
1888
2060
  }
1889
2061
 
1890
2062
  interface TransactionFeePayerConfig {
1891
- publicKey: Pubkey$1;
2063
+ publicKey: PubkeyInput;
1892
2064
  privateKey?: Uint8Array;
1893
2065
  }
1894
2066
  interface TransactionAccountsConfig {
1895
- readWrite?: Pubkey$1[];
1896
- readOnly?: Pubkey$1[];
2067
+ readWrite?: PubkeyInput[];
2068
+ readOnly?: PubkeyInput[];
1897
2069
  }
1898
2070
  interface TransactionHeaderConfig {
1899
2071
  fee?: bigint;
@@ -1910,13 +2082,13 @@ interface TransactionHeaderConfig {
1910
2082
  * - A Uint8Array directly
1911
2083
  * - A function that takes an InstructionContext and returns a Uint8Array
1912
2084
  */
1913
- type InstructionData = Uint8Array | ((context: InstructionContext) => Promise<Uint8Array>);
2085
+ type InstructionData = Uint8Array | string | ((context: InstructionContext) => Promise<Uint8Array>);
1914
2086
  interface BuildTransactionOptions {
1915
2087
  feePayer: TransactionFeePayerConfig;
1916
- program: ProgramIdentifier;
2088
+ program: PubkeyInput;
1917
2089
  header?: TransactionHeaderConfig;
1918
2090
  accounts?: TransactionAccountsConfig;
1919
- instructionData?: InstructionData | BytesLike;
2091
+ instructionData?: InstructionData;
1920
2092
  feePayerStateProof?: Uint8Array;
1921
2093
  feePayerAccountMetaRaw?: Uint8Array;
1922
2094
  }
@@ -1943,10 +2115,10 @@ interface TransactionList {
1943
2115
  transactions: Transaction[];
1944
2116
  page?: PageResponse;
1945
2117
  }
1946
- declare function getTransaction(ctx: ThruClientContext, signature: BytesLike, options?: TransactionQueryOptions): Promise<Transaction>;
1947
- declare function getRawTransaction(ctx: ThruClientContext, signature: BytesLike, options?: RawTransactionQueryOptions): Promise<RawTransaction>;
1948
- declare function getTransactionStatus(ctx: ThruClientContext, signature: BytesLike): Promise<TransactionStatusSnapshot>;
1949
- declare function listTransactionsForAccount(ctx: ThruClientContext, account: Pubkey$1, options?: ListTransactionsForAccountOptions): Promise<TransactionList>;
2118
+ declare function getTransaction(ctx: ThruClientContext, signature: SignatureInput, options?: TransactionQueryOptions): Promise<Transaction>;
2119
+ declare function getRawTransaction(ctx: ThruClientContext, signature: SignatureInput, options?: RawTransactionQueryOptions): Promise<RawTransaction>;
2120
+ declare function getTransactionStatus(ctx: ThruClientContext, signature: SignatureInput): Promise<TransactionStatusSnapshot>;
2121
+ declare function listTransactionsForAccount(ctx: ThruClientContext, account: PubkeyInput, options?: ListTransactionsForAccountOptions): Promise<TransactionList>;
1950
2122
  declare function buildTransaction(ctx: ThruClientContext, options: BuildTransactionOptions): Promise<Transaction>;
1951
2123
  declare function buildAndSignTransaction(ctx: ThruClientContext, options: BuildAndSignTransactionOptions): Promise<SignedTransactionResult>;
1952
2124
  declare function sendTransaction(ctx: ThruClientContext, transaction: Transaction | Uint8Array): Promise<string>;
@@ -1985,4 +2157,4 @@ declare class VersionInfo {
1985
2157
  get(component: string): string | undefined;
1986
2158
  }
1987
2159
 
1988
- export { type StreamEventsOptions as $, Account as A, type BuildTransactionParams as B, ChainEvent as C, type BlockList as D, ExecutionStatus as E, Filter as F, type BlockQueryOptions as G, HeightSnapshot as H, type ListBlocksOptions as I, type RawBlockQueryOptions as J, type GetEventOptions as K, type ListAccountsOptions as L, type BlockSelector as M, type DeriveProgramAddressOptions as N, type DeriveProgramAddressResult as O, PageRequest as P, type GeneratedKeyPair as Q, type RawAccountQueryOptions as R, type SignedTransactionResult as S, Transaction as T, type StreamAccountUpdate as U, VersionInfo as V, type HeightSnapshotParams as W, type StreamAccountUpdatesOptions as X, type StreamAccountUpdatesResult as Y, type StreamBlocksOptions as Z, type StreamBlocksResult as _, accounts as a, type StreamEventsResult as a0, type StreamTransactionsOptions as a1, type StreamTransactionsResult as a2, type StreamTransactionUpdate as a3, type TrackTransactionOptions as a4, type TrackTransactionUpdate as a5, type TransactionExecutionEvent as a6, type TransactionExecutionResultData as a7, type InstructionContext as a8, type ProgramIdentifier as a9, listTransactionsForAccount as aA, streamTransactions as aB, buildTransaction as aC, buildAndSignTransaction as aD, sendTransaction as aE, batchSendTransactions as aF, trackTransaction as aG, getEvent as aH, streamEvents as aI, generateStateProof as aJ, generateKeyPair as aK, fromPrivateKey as aL, type Signature as aM, type Pubkey as aN, type BlockHash as aO, type ThruClientConfig as aP, type BatchSendTransactionsOptions as aa, type BuildAndSignTransactionOptions as ab, type BuildTransactionOptions as ac, type InstructionData as ad, type ListTransactionsForAccountOptions as ae, type RawTransactionQueryOptions as af, type TransactionAccountsConfig as ag, type TransactionFeePayerConfig as ah, type TransactionHeaderConfig as ai, type TransactionList as aj, type TransactionQueryOptions as ak, type GenerateStateProofOptions as al, type ThruClientContext as am, getBlock as an, getRawBlock as ao, listBlocks as ap, streamBlocks as aq, getBlockHeight as ar, getAccount as as, getRawAccount as at, listAccounts as au, streamAccountUpdates as av, createAccount as aw, getTransaction as ax, getRawTransaction as ay, getTransactionStatus as az, blocks as b, Block as c, FilterParamValue as d, events as e, PageResponse as f, StateProof as g, height as h, TransactionStatusSnapshot as i, deriveProgramAddress as j, keys as k, toPubkey as l, ConsensusStatus as m, FilterParamValueSchema as n, FilterSchema as o, proofs as p, AccountView as q, BlockView as r, streaming as s, transactions as t, TransactionView as u, TransactionVmError as v, type PageRequestParams as w, type PageResponseParams as x, type AccountQueryOptions as y, type CreateAccountOptions as z };
2160
+ export { type DeriveProgramAddressResult as $, Account as A, type BuildTransactionParams as B, ChainEvent as C, TransactionVmError as D, ExecutionStatus as E, Filter as F, type PageRequestParams as G, HeightSnapshot as H, type PageResponseParams as I, type PubkeyInput as J, type SignatureInput as K, type VersionContextInput as L, type AccountQueryOptions as M, type CreateAccountOptions as N, type ListAccountsOptions as O, PageRequest as P, type BlockList as Q, type RawAccountQueryOptions as R, type SignedTransactionResult as S, Transaction as T, type BlockQueryOptions as U, VersionInfo as V, type ListBlocksOptions as W, type RawBlockQueryOptions as X, type GetEventOptions as Y, type BlockSelector as Z, type DeriveProgramAddressOptions as _, accounts as a, type GeneratedKeyPair as a0, type StreamAccountUpdate as a1, type HeightSnapshotParams as a2, type StreamAccountUpdatesOptions as a3, type StreamAccountUpdatesResult as a4, type StreamBlocksOptions as a5, type StreamBlocksResult as a6, type StreamEventsOptions as a7, type StreamEventsResult as a8, type StreamTransactionsOptions as a9, getRawAccount as aA, listAccounts as aB, streamAccountUpdates as aC, createAccount as aD, getTransaction as aE, getRawTransaction as aF, getTransactionStatus as aG, listTransactionsForAccount as aH, streamTransactions as aI, buildTransaction as aJ, buildAndSignTransaction as aK, sendTransaction as aL, batchSendTransactions as aM, trackTransaction as aN, getEvent as aO, streamEvents as aP, generateStateProof as aQ, generateKeyPair as aR, fromPrivateKey as aS, consensusStatusToString as aT, versionContext as aU, currentVersionContext as aV, currentOrHistoricalVersionContext as aW, slotVersionContext as aX, timestampVersionContext as aY, seqVersionContext as aZ, type ThruClientConfig as a_, type StreamTransactionsResult as aa, type StreamTransactionUpdate as ab, type TrackTransactionOptions as ac, type TrackTransactionUpdate as ad, type TransactionExecutionEvent as ae, type TransactionExecutionResultData as af, type InstructionContext as ag, type BatchSendTransactionsOptions as ah, type BuildAndSignTransactionOptions as ai, type BuildTransactionOptions as aj, type InstructionData as ak, type ListTransactionsForAccountOptions as al, type RawTransactionQueryOptions as am, type TransactionAccountsConfig as an, type TransactionFeePayerConfig as ao, type TransactionHeaderConfig as ap, type TransactionList as aq, type TransactionQueryOptions as ar, type GenerateStateProofOptions as as, type ThruClientContext as at, getBlock as au, getRawBlock as av, listBlocks as aw, streamBlocks as ax, getBlockHeight as ay, getAccount as az, blocks as b, consensus as c, Block as d, events as e, FilterParamValue as f, PageResponse as g, height as h, Pubkey as i, Signature as j, keys as k, StateProof as l, TransactionStatusSnapshot as m, deriveProgramAddress as n, collectStream as o, proofs as p, firstStreamValue as q, forEachStreamValue as r, streaming as s, transactions as t, ConsensusStatus as u, FilterParamValueSchema as v, FilterSchema as w, AccountView as x, BlockView as y, TransactionView as z };