signet.js 0.0.10-beta6 → 0.0.10-beta7

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "signet.js",
3
- "version": "0.0.10-beta6",
3
+ "version": "0.0.10-beta7",
4
4
  "description": "A TypeScript library for handling multi-chain transactions and signatures using Signet MPC",
5
5
  "type": "module",
6
6
  "exports": {
package/types/index.d.cts CHANGED
@@ -8,6 +8,9 @@ import { Action as Action$1 } from '@near-js/transactions';
8
8
  import { TxExecutionStatus } from '@near-js/types';
9
9
  import { NetworkId, Action, FinalExecutionOutcome } from '@near-wallet-selector/core';
10
10
  import { KeyPair as KeyPair$1 } from 'near-api-js';
11
+ import * as _solana_web3_js from '@solana/web3.js';
12
+ import { PublicKey } from '@solana/web3.js';
13
+ import { AnchorProvider, Wallet } from '@coral-xyz/anchor';
11
14
 
12
15
  interface SignArgs {
13
16
  /** The payload to sign as an array of 32 bytes */
@@ -46,7 +49,7 @@ declare abstract class BaseChainSignatureContract {
46
49
  /**
47
50
  * Full contract interface that extends BaseChainSignatureContract to provide all Sig Network Smart Contract capabilities.
48
51
  */
49
- declare abstract class ChainSignatureContract$2 extends BaseChainSignatureContract {
52
+ declare abstract class ChainSignatureContract$3 extends BaseChainSignatureContract {
50
53
  /**
51
54
  * Signs a payload using Sig Network MPC.
52
55
  *
@@ -185,9 +188,9 @@ declare namespace cryptography {
185
188
  export { cryptography_compressPubKey as compressPubKey, cryptography_deriveChildPublicKey as deriveChildPublicKey, cryptography_najToUncompressedPubKeySEC1 as najToUncompressedPubKeySEC1, cryptography_toRSV as toRSV };
186
189
  }
187
190
 
188
- declare const index$7_cryptography: typeof cryptography;
189
- declare namespace index$7 {
190
- export { index$7_cryptography as cryptography };
191
+ declare const index$8_cryptography: typeof cryptography;
192
+ declare namespace index$8 {
193
+ export { index$8_cryptography as cryptography };
191
194
  }
192
195
 
193
196
  declare abstract class ChainAdapter<TransactionRequest, UnsignedTransaction> {
@@ -385,15 +388,15 @@ interface EVMFeeProperties {
385
388
  }
386
389
  declare function fetchEVMFeeProperties(client: PublicClient, transaction: TransactionRequest): Promise<EVMFeeProperties>;
387
390
 
388
- type index$6_EVM = EVM;
389
- declare const index$6_EVM: typeof EVM;
390
- type index$6_EVMMessage = EVMMessage;
391
- type index$6_EVMTransactionRequest = EVMTransactionRequest;
392
- type index$6_EVMTypedData = EVMTypedData;
393
- type index$6_EVMUnsignedTransaction = EVMUnsignedTransaction;
394
- declare const index$6_fetchEVMFeeProperties: typeof fetchEVMFeeProperties;
395
- declare namespace index$6 {
396
- export { index$6_EVM as EVM, type index$6_EVMMessage as EVMMessage, type index$6_EVMTransactionRequest as EVMTransactionRequest, type index$6_EVMTypedData as EVMTypedData, type index$6_EVMUnsignedTransaction as EVMUnsignedTransaction, index$6_fetchEVMFeeProperties as fetchEVMFeeProperties };
391
+ type index$7_EVM = EVM;
392
+ declare const index$7_EVM: typeof EVM;
393
+ type index$7_EVMMessage = EVMMessage;
394
+ type index$7_EVMTransactionRequest = EVMTransactionRequest;
395
+ type index$7_EVMTypedData = EVMTypedData;
396
+ type index$7_EVMUnsignedTransaction = EVMUnsignedTransaction;
397
+ declare const index$7_fetchEVMFeeProperties: typeof fetchEVMFeeProperties;
398
+ declare namespace index$7 {
399
+ export { index$7_EVM as EVM, type index$7_EVMMessage as EVMMessage, type index$7_EVMTransactionRequest as EVMTransactionRequest, type index$7_EVMTypedData as EVMTypedData, type index$7_EVMUnsignedTransaction as EVMUnsignedTransaction, index$7_fetchEVMFeeProperties as fetchEVMFeeProperties };
397
400
  }
398
401
 
399
402
  interface BTCTransaction$1 {
@@ -531,18 +534,18 @@ declare class Bitcoin extends ChainAdapter<BTCTransactionRequest, BTCUnsignedTra
531
534
  broadcastTx(txSerialized: string): Promise<string>;
532
535
  }
533
536
 
534
- type index$5_BTCInput = BTCInput;
535
- type index$5_BTCNetworkIds = BTCNetworkIds;
536
- type index$5_BTCOutput = BTCOutput;
537
- type index$5_BTCRpcAdapter = BTCRpcAdapter;
538
- declare const index$5_BTCRpcAdapter: typeof BTCRpcAdapter;
539
- declare const index$5_BTCRpcAdapters: typeof BTCRpcAdapters;
540
- type index$5_BTCTransactionRequest = BTCTransactionRequest;
541
- type index$5_BTCUnsignedTransaction = BTCUnsignedTransaction;
542
- type index$5_Bitcoin = Bitcoin;
543
- declare const index$5_Bitcoin: typeof Bitcoin;
544
- declare namespace index$5 {
545
- export { type index$5_BTCInput as BTCInput, type index$5_BTCNetworkIds as BTCNetworkIds, type index$5_BTCOutput as BTCOutput, index$5_BTCRpcAdapter as BTCRpcAdapter, index$5_BTCRpcAdapters as BTCRpcAdapters, type BTCTransaction$1 as BTCTransaction, type index$5_BTCTransactionRequest as BTCTransactionRequest, type index$5_BTCUnsignedTransaction as BTCUnsignedTransaction, index$5_Bitcoin as Bitcoin };
537
+ type index$6_BTCInput = BTCInput;
538
+ type index$6_BTCNetworkIds = BTCNetworkIds;
539
+ type index$6_BTCOutput = BTCOutput;
540
+ type index$6_BTCRpcAdapter = BTCRpcAdapter;
541
+ declare const index$6_BTCRpcAdapter: typeof BTCRpcAdapter;
542
+ declare const index$6_BTCRpcAdapters: typeof BTCRpcAdapters;
543
+ type index$6_BTCTransactionRequest = BTCTransactionRequest;
544
+ type index$6_BTCUnsignedTransaction = BTCUnsignedTransaction;
545
+ type index$6_Bitcoin = Bitcoin;
546
+ declare const index$6_Bitcoin: typeof Bitcoin;
547
+ declare namespace index$6 {
548
+ export { type index$6_BTCInput as BTCInput, type index$6_BTCNetworkIds as BTCNetworkIds, type index$6_BTCOutput as BTCOutput, index$6_BTCRpcAdapter as BTCRpcAdapter, index$6_BTCRpcAdapters as BTCRpcAdapters, type BTCTransaction$1 as BTCTransaction, type index$6_BTCTransactionRequest as BTCTransactionRequest, type index$6_BTCUnsignedTransaction as BTCUnsignedTransaction, index$6_Bitcoin as Bitcoin };
546
549
  }
547
550
 
548
551
  type CosmosNetworkIds = string;
@@ -604,19 +607,19 @@ declare class Cosmos extends ChainAdapter<CosmosTransactionRequest, CosmosUnsign
604
607
  broadcastTx(txSerialized: string): Promise<string>;
605
608
  }
606
609
 
607
- type index$4_Cosmos = Cosmos;
608
- declare const index$4_Cosmos: typeof Cosmos;
609
- type index$4_CosmosNetworkIds = CosmosNetworkIds;
610
- type index$4_CosmosTransactionRequest = CosmosTransactionRequest;
611
- type index$4_CosmosUnsignedTransaction = CosmosUnsignedTransaction;
612
- declare namespace index$4 {
613
- export { index$4_Cosmos as Cosmos, type index$4_CosmosNetworkIds as CosmosNetworkIds, type index$4_CosmosTransactionRequest as CosmosTransactionRequest, type index$4_CosmosUnsignedTransaction as CosmosUnsignedTransaction };
610
+ type index$5_Cosmos = Cosmos;
611
+ declare const index$5_Cosmos: typeof Cosmos;
612
+ type index$5_CosmosNetworkIds = CosmosNetworkIds;
613
+ type index$5_CosmosTransactionRequest = CosmosTransactionRequest;
614
+ type index$5_CosmosUnsignedTransaction = CosmosUnsignedTransaction;
615
+ declare namespace index$5 {
616
+ export { index$5_Cosmos as Cosmos, type index$5_CosmosNetworkIds as CosmosNetworkIds, type index$5_CosmosTransactionRequest as CosmosTransactionRequest, type index$5_CosmosUnsignedTransaction as CosmosUnsignedTransaction };
614
617
  }
615
618
 
616
- type index$3_ChainAdapter<TransactionRequest, UnsignedTransaction> = ChainAdapter<TransactionRequest, UnsignedTransaction>;
617
- declare const index$3_ChainAdapter: typeof ChainAdapter;
618
- declare namespace index$3 {
619
- export { index$3_ChainAdapter as ChainAdapter, index$5 as btc, index$4 as cosmos, index$6 as evm };
619
+ type index$4_ChainAdapter<TransactionRequest, UnsignedTransaction> = ChainAdapter<TransactionRequest, UnsignedTransaction>;
620
+ declare const index$4_ChainAdapter: typeof ChainAdapter;
621
+ declare namespace index$4 {
622
+ export { index$4_ChainAdapter as ChainAdapter, index$6 as btc, index$5 as cosmos, index$7 as evm };
620
623
  }
621
624
 
622
625
  type ChainSignatureContractIds = string;
@@ -737,7 +740,7 @@ interface ChainSignatureContractArgs {
737
740
  *
738
741
  * @extends AbstractChainSignatureContract
739
742
  */
740
- declare class ChainSignatureContract$1 extends ChainSignatureContract$2 {
743
+ declare class ChainSignatureContract$2 extends ChainSignatureContract$3 {
741
744
  private readonly networkId;
742
745
  private readonly contractId;
743
746
  private readonly accountId;
@@ -769,13 +772,13 @@ declare class ChainSignatureContract$1 extends ChainSignatureContract$2 {
769
772
  private requireAccount;
770
773
  }
771
774
 
772
- declare const utils$1: {
775
+ declare const utils$2: {
773
776
  transaction: typeof transaction;
774
777
  signAndSend: typeof signAndSend;
775
778
  };
776
779
 
777
- declare namespace index$2 {
778
- export { ChainSignatureContract$1 as ChainSignatureContract, utils$1 as utils };
780
+ declare namespace index$3 {
781
+ export { ChainSignatureContract$2 as ChainSignatureContract, utils$2 as utils };
779
782
  }
780
783
 
781
784
  declare const abi: ({
@@ -896,28 +899,22 @@ declare class ChainSignatureError extends Error {
896
899
  receipt: TransactionReceipt;
897
900
  constructor(message: string, requestId: `0x${string}`, receipt: TransactionReceipt);
898
901
  }
899
- declare class SignatureNotFoundError extends ChainSignatureError {
902
+ declare class SignatureNotFoundError$1 extends ChainSignatureError {
900
903
  constructor(requestId: `0x${string}`, receipt: TransactionReceipt);
901
904
  }
902
- declare class SignatureContractError extends ChainSignatureError {
905
+ declare class SignatureContractError$1 extends ChainSignatureError {
903
906
  errorCode: string;
904
907
  constructor(errorCode: string, requestId: `0x${string}`, receipt: TransactionReceipt);
905
908
  }
906
- declare class SigningError extends ChainSignatureError {
909
+ declare class SigningError$1 extends ChainSignatureError {
907
910
  originalError?: Error;
908
911
  constructor(requestId: `0x${string}`, receipt: TransactionReceipt, originalError?: Error);
909
912
  }
910
913
 
911
- type errors_ChainSignatureError = ChainSignatureError;
912
- declare const errors_ChainSignatureError: typeof ChainSignatureError;
913
- type errors_SignatureContractError = SignatureContractError;
914
- declare const errors_SignatureContractError: typeof SignatureContractError;
915
- type errors_SignatureNotFoundError = SignatureNotFoundError;
916
- declare const errors_SignatureNotFoundError: typeof SignatureNotFoundError;
917
- type errors_SigningError = SigningError;
918
- declare const errors_SigningError: typeof SigningError;
919
- declare namespace errors {
920
- export { errors_ChainSignatureError as ChainSignatureError, errors_SignatureContractError as SignatureContractError, errors_SignatureNotFoundError as SignatureNotFoundError, errors_SigningError as SigningError };
914
+ type errors$1_ChainSignatureError = ChainSignatureError;
915
+ declare const errors$1_ChainSignatureError: typeof ChainSignatureError;
916
+ declare namespace errors$1 {
917
+ export { errors$1_ChainSignatureError as ChainSignatureError, SignatureContractError$1 as SignatureContractError, SignatureNotFoundError$1 as SignatureNotFoundError, SigningError$1 as SigningError };
921
918
  }
922
919
 
923
920
  interface RetryOptions {
@@ -932,7 +929,7 @@ interface SignOptions {
932
929
  };
933
930
  retry: RetryOptions;
934
931
  }
935
- interface SignatureErrorData {
932
+ interface SignatureErrorData$1 {
936
933
  requestId: string;
937
934
  responder: string;
938
935
  error: string;
@@ -946,7 +943,7 @@ interface SignatureErrorData {
946
943
  * once it's available. The sign method handles this process automatically by polling
947
944
  * for the signature using the requestId.
948
945
  */
949
- declare class ChainSignatureContract extends ChainSignatureContract$2 {
946
+ declare class ChainSignatureContract$1 extends ChainSignatureContract$3 {
950
947
  private readonly publicClient;
951
948
  private readonly walletClient;
952
949
  private readonly contractAddress;
@@ -985,7 +982,7 @@ declare class ChainSignatureContract extends ChainSignatureContract$2 {
985
982
  path: string;
986
983
  fromBlock: bigint;
987
984
  options?: RetryOptions;
988
- }): Promise<RSVSignature | SignatureErrorData | undefined>;
985
+ }): Promise<RSVSignature | SignatureErrorData$1 | undefined>;
989
986
  getSignRequestParams(args: SignArgs, options?: SignOptions['sign']): Promise<{
990
987
  target: Hex;
991
988
  data: Hex;
@@ -1015,7 +1012,7 @@ declare class ChainSignatureContract extends ChainSignatureContract$2 {
1015
1012
  * ```
1016
1013
  */
1017
1014
  getRequestId(args: SignArgs, options?: SignOptions['sign']): Hex;
1018
- getErrorFromEvents(requestId: Hex, fromBlock: bigint): Promise<SignatureErrorData | undefined>;
1015
+ getErrorFromEvents(requestId: Hex, fromBlock: bigint): Promise<SignatureErrorData$1 | undefined>;
1019
1016
  /**
1020
1017
  * Searches for SignatureResponded events that match the given requestId.
1021
1018
  * It works in conjunction with the getRequestId method which generates the unique
@@ -1028,8 +1025,326 @@ declare class ChainSignatureContract extends ChainSignatureContract$2 {
1028
1025
  getSignatureFromEvents(requestId: Hex, fromBlock: bigint): Promise<RSVSignature | undefined>;
1029
1026
  }
1030
1027
 
1031
- declare const utils: {
1028
+ declare const utils$1: {
1032
1029
  ChainSignaturesContractABI: typeof ChainSignaturesContractABI;
1030
+ errors: typeof errors$1;
1031
+ };
1032
+
1033
+ declare namespace index$2 {
1034
+ export { ChainSignatureContract$1 as ChainSignatureContract, utils$1 as utils };
1035
+ }
1036
+
1037
+ type SignatureErrorData = {
1038
+ requestId: Uint8Array;
1039
+ responder: PublicKey;
1040
+ error: string;
1041
+ };
1042
+ declare class SignatureNotFoundError extends Error {
1043
+ readonly requestId?: string;
1044
+ readonly hash?: string;
1045
+ constructor(requestId?: string, metadata?: {
1046
+ hash?: string;
1047
+ });
1048
+ }
1049
+ declare class SignatureContractError extends Error {
1050
+ readonly requestId?: string;
1051
+ readonly hash?: string;
1052
+ readonly originalError?: any;
1053
+ constructor(message: string, requestId?: string, metadata?: {
1054
+ hash?: string;
1055
+ });
1056
+ }
1057
+ declare class SigningError extends Error {
1058
+ readonly requestId: string;
1059
+ readonly hash?: string;
1060
+ readonly originalError?: Error;
1061
+ constructor(requestId: string, metadata?: {
1062
+ hash?: string;
1063
+ }, originalError?: Error);
1064
+ }
1065
+ declare class ResponseError extends Error {
1066
+ constructor(message: string);
1067
+ }
1068
+
1069
+ type errors_ResponseError = ResponseError;
1070
+ declare const errors_ResponseError: typeof ResponseError;
1071
+ type errors_SignatureContractError = SignatureContractError;
1072
+ declare const errors_SignatureContractError: typeof SignatureContractError;
1073
+ type errors_SignatureErrorData = SignatureErrorData;
1074
+ type errors_SignatureNotFoundError = SignatureNotFoundError;
1075
+ declare const errors_SignatureNotFoundError: typeof SignatureNotFoundError;
1076
+ type errors_SigningError = SigningError;
1077
+ declare const errors_SigningError: typeof SigningError;
1078
+ declare namespace errors {
1079
+ export { errors_ResponseError as ResponseError, errors_SignatureContractError as SignatureContractError, type errors_SignatureErrorData as SignatureErrorData, errors_SignatureNotFoundError as SignatureNotFoundError, errors_SigningError as SigningError };
1080
+ }
1081
+
1082
+ declare class ChainSignatureContract extends ChainSignatureContract$3 {
1083
+ private readonly provider;
1084
+ private readonly program;
1085
+ private readonly programId;
1086
+ private readonly rootPublicKey;
1087
+ /**
1088
+ * Creates a new instance of the ChainSignatureContract for Solana chains.
1089
+ *
1090
+ * @param args - Configuration options for the contract
1091
+ * @param args.provider - An Anchor Provider for interacting with Solana
1092
+ * @param args.programId - The program ID as a string or PublicKey
1093
+ * @param args.rootPublicKey - Optional root public key. If not provided, it will be derived from the program ID
1094
+ */
1095
+ constructor(args: {
1096
+ provider: AnchorProvider;
1097
+ programId: string | PublicKey;
1098
+ rootPublicKey?: NajPublicKey;
1099
+ });
1100
+ /**
1101
+ * Gets the connection from the provider
1102
+ */
1103
+ get connection(): _solana_web3_js.Connection;
1104
+ getCurrentSignatureDeposit(): Promise<BN>;
1105
+ /**
1106
+ * Get the Program State PDA
1107
+ */
1108
+ getProgramStatePDA(): Promise<PublicKey>;
1109
+ getDerivedPublicKey(args: {
1110
+ path: string;
1111
+ predecessor: string;
1112
+ }): Promise<UncompressedPubKeySEC1>;
1113
+ getPublicKey(): Promise<UncompressedPubKeySEC1>;
1114
+ /**
1115
+ * Sends a transaction to the program to request a signature, then
1116
+ * polls for the signature result. If the signature is not found within the retry
1117
+ * parameters, it will throw an error.
1118
+ */
1119
+ sign(args: SignArgs & {
1120
+ feePayer?: Wallet;
1121
+ }, options?: SignOptions): Promise<RSVSignature>;
1122
+ pollForRequestId({ requestId, payload, path, options, }: {
1123
+ requestId: string;
1124
+ payload: number[];
1125
+ path: string;
1126
+ options?: RetryOptions;
1127
+ }): Promise<RSVSignature | SignatureErrorData$1 | undefined>;
1128
+ /**
1129
+ * Generates the request ID for a signature request allowing to track the response.
1130
+ */
1131
+ getRequestId(args: SignArgs, options?: SignOptions['sign']): string;
1132
+ getErrorFromEvents(requestId: string): Promise<SignatureErrorData$1 | undefined>;
1133
+ /**
1134
+ * Searches for SignatureResponded events that match the given requestId.
1135
+ *
1136
+ * @param requestId - The identifier for the signature request
1137
+ * @returns The RSV signature if found, undefined otherwise
1138
+ */
1139
+ getSignatureFromEvents(requestId: string): Promise<RSVSignature | undefined>;
1140
+ }
1141
+
1142
+ declare const utils: {
1143
+ ChainSignaturesContractIdl: {
1144
+ address: string;
1145
+ metadata: {
1146
+ name: string;
1147
+ version: string;
1148
+ spec: string;
1149
+ description: string;
1150
+ };
1151
+ instructions: ({
1152
+ name: string;
1153
+ discriminator: number[];
1154
+ accounts: {
1155
+ name: string;
1156
+ signer: boolean;
1157
+ }[];
1158
+ args: ({
1159
+ name: string;
1160
+ type: {
1161
+ vec: {
1162
+ array: (string | number)[];
1163
+ defined?: undefined;
1164
+ };
1165
+ };
1166
+ } | {
1167
+ name: string;
1168
+ type: {
1169
+ vec: {
1170
+ defined: {
1171
+ name: string;
1172
+ };
1173
+ array?: undefined;
1174
+ };
1175
+ };
1176
+ })[];
1177
+ } | {
1178
+ name: string;
1179
+ discriminator: number[];
1180
+ accounts: {
1181
+ name: string;
1182
+ signer: boolean;
1183
+ }[];
1184
+ args: ({
1185
+ name: string;
1186
+ type: {
1187
+ vec: {
1188
+ array: (string | number)[];
1189
+ };
1190
+ };
1191
+ } | {
1192
+ name: string;
1193
+ type: {
1194
+ vec: string;
1195
+ };
1196
+ })[];
1197
+ } | {
1198
+ name: string;
1199
+ discriminator: number[];
1200
+ accounts: ({
1201
+ name: string;
1202
+ writable: boolean;
1203
+ pda: {
1204
+ seeds: {
1205
+ kind: string;
1206
+ value: number[];
1207
+ }[];
1208
+ };
1209
+ signer?: undefined;
1210
+ optional?: undefined;
1211
+ address?: undefined;
1212
+ } | {
1213
+ name: string;
1214
+ writable: boolean;
1215
+ signer: boolean;
1216
+ pda?: undefined;
1217
+ optional?: undefined;
1218
+ address?: undefined;
1219
+ } | {
1220
+ name: string;
1221
+ writable: boolean;
1222
+ signer: boolean;
1223
+ optional: boolean;
1224
+ pda?: undefined;
1225
+ address?: undefined;
1226
+ } | {
1227
+ name: string;
1228
+ address: string;
1229
+ writable?: undefined;
1230
+ pda?: undefined;
1231
+ signer?: undefined;
1232
+ optional?: undefined;
1233
+ })[];
1234
+ args: ({
1235
+ name: string;
1236
+ type: {
1237
+ array: (string | number)[];
1238
+ };
1239
+ } | {
1240
+ name: string;
1241
+ type: string;
1242
+ })[];
1243
+ } | {
1244
+ name: string;
1245
+ discriminator: number[];
1246
+ accounts: ({
1247
+ name: string;
1248
+ writable: boolean;
1249
+ pda: {
1250
+ seeds: {
1251
+ kind: string;
1252
+ value: number[];
1253
+ }[];
1254
+ };
1255
+ signer?: undefined;
1256
+ relations?: undefined;
1257
+ docs?: undefined;
1258
+ address?: undefined;
1259
+ } | {
1260
+ name: string;
1261
+ writable: boolean;
1262
+ signer: boolean;
1263
+ relations: string[];
1264
+ pda?: undefined;
1265
+ docs?: undefined;
1266
+ address?: undefined;
1267
+ } | {
1268
+ name: string;
1269
+ docs: string[];
1270
+ writable: boolean;
1271
+ pda?: undefined;
1272
+ signer?: undefined;
1273
+ relations?: undefined;
1274
+ address?: undefined;
1275
+ } | {
1276
+ name: string;
1277
+ address: string;
1278
+ writable?: undefined;
1279
+ pda?: undefined;
1280
+ signer?: undefined;
1281
+ relations?: undefined;
1282
+ docs?: undefined;
1283
+ })[];
1284
+ args: {
1285
+ name: string;
1286
+ type: string;
1287
+ }[];
1288
+ })[];
1289
+ accounts: {
1290
+ name: string;
1291
+ discriminator: number[];
1292
+ }[];
1293
+ events: {
1294
+ name: string;
1295
+ discriminator: number[];
1296
+ }[];
1297
+ errors: {
1298
+ code: number;
1299
+ name: string;
1300
+ msg: string;
1301
+ }[];
1302
+ types: ({
1303
+ name: string;
1304
+ type: {
1305
+ kind: string;
1306
+ fields: ({
1307
+ name: string;
1308
+ type: {
1309
+ defined: {
1310
+ name: string;
1311
+ };
1312
+ array?: undefined;
1313
+ };
1314
+ } | {
1315
+ name: string;
1316
+ type: {
1317
+ array: (string | number)[];
1318
+ defined?: undefined;
1319
+ };
1320
+ } | {
1321
+ name: string;
1322
+ type: string;
1323
+ })[];
1324
+ };
1325
+ } | {
1326
+ name: string;
1327
+ type: {
1328
+ kind: string;
1329
+ fields: ({
1330
+ name: string;
1331
+ type: string;
1332
+ } | {
1333
+ name: string;
1334
+ type: {
1335
+ array: (string | number)[];
1336
+ option?: undefined;
1337
+ };
1338
+ } | {
1339
+ name: string;
1340
+ type: {
1341
+ option: string;
1342
+ array?: undefined;
1343
+ };
1344
+ })[];
1345
+ };
1346
+ })[];
1347
+ };
1033
1348
  errors: typeof errors;
1034
1349
  };
1035
1350
 
@@ -1042,7 +1357,7 @@ declare namespace index$1 {
1042
1357
 
1043
1358
  type index_SignArgs = SignArgs;
1044
1359
  declare namespace index {
1045
- export { ChainSignatureContract$2 as ChainSignatureContract, type index_SignArgs as SignArgs, index$1 as evm, index$2 as near };
1360
+ export { ChainSignatureContract$3 as ChainSignatureContract, type index_SignArgs as SignArgs, index$2 as evm, index$3 as near, index$1 as solana };
1046
1361
  }
1047
1362
 
1048
- export { type CompressedPubKeySEC1, type HashToSign, type KeyDerivationPath, type MPCSignature, type NajPublicKey, type NearNearMpcSignature, type RSVSignature, type SigNetEvmMpcSignature, type SigNetNearMpcSignature, type UncompressedPubKeySEC1, index$3 as chainAdapters, constants, index as contracts, index$7 as utils };
1363
+ export { type CompressedPubKeySEC1, type HashToSign, type KeyDerivationPath, type MPCSignature, type NajPublicKey, type NearNearMpcSignature, type RSVSignature, type SigNetEvmMpcSignature, type SigNetNearMpcSignature, type UncompressedPubKeySEC1, index$4 as chainAdapters, constants, index as contracts, index$8 as utils };