signet.js 0.0.10-beta1 → 0.0.10-beta11

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/types/index.d.ts 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
  *
@@ -104,10 +107,12 @@ declare const ENVS: {
104
107
  readonly TESTNET_DEV: "TESTNET_DEV";
105
108
  readonly TESTNET: "TESTNET";
106
109
  readonly MAINNET: "MAINNET";
110
+ readonly SOLANA_STUB: "SOLANA_STUB";
107
111
  };
108
112
  declare const CHAINS: {
109
113
  readonly ETHEREUM: "ETHEREUM";
110
114
  readonly NEAR: "NEAR";
115
+ readonly SOLANA: "SOLANA";
111
116
  };
112
117
  /**
113
118
  * Root public keys for the Sig Network Smart Contracts across different environments.
@@ -124,6 +129,7 @@ declare const ROOT_PUBLIC_KEYS: Record<keyof typeof ENVS, NajPublicKey>;
124
129
  declare const KDF_CHAIN_IDS: {
125
130
  readonly ETHEREUM: "0x1";
126
131
  readonly NEAR: "0x18d";
132
+ readonly SOLANA: "0x800001f5";
127
133
  };
128
134
  /**
129
135
  * Contract addresses for different chains and environments.
@@ -134,7 +140,7 @@ declare const KDF_CHAIN_IDS: {
134
140
  *
135
141
  * @see ChainSignatureContract documentation for implementation details
136
142
  */
137
- declare const CONTRACT_ADDRESSES: Record<keyof typeof CHAINS, Record<keyof typeof ENVS, string>>;
143
+ declare const CONTRACT_ADDRESSES: Record<keyof typeof CHAINS, Partial<Record<keyof typeof ENVS, string>>>;
138
144
 
139
145
  declare const constants_CHAINS: typeof CHAINS;
140
146
  declare const constants_CONTRACT_ADDRESSES: typeof CONTRACT_ADDRESSES;
@@ -182,9 +188,9 @@ declare namespace cryptography {
182
188
  export { cryptography_compressPubKey as compressPubKey, cryptography_deriveChildPublicKey as deriveChildPublicKey, cryptography_najToUncompressedPubKeySEC1 as najToUncompressedPubKeySEC1, cryptography_toRSV as toRSV };
183
189
  }
184
190
 
185
- declare const index$7_cryptography: typeof cryptography;
186
- declare namespace index$7 {
187
- 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 };
188
194
  }
189
195
 
190
196
  declare abstract class ChainAdapter<TransactionRequest, UnsignedTransaction> {
@@ -382,15 +388,15 @@ interface EVMFeeProperties {
382
388
  }
383
389
  declare function fetchEVMFeeProperties(client: PublicClient, transaction: TransactionRequest): Promise<EVMFeeProperties>;
384
390
 
385
- type index$6_EVM = EVM;
386
- declare const index$6_EVM: typeof EVM;
387
- type index$6_EVMMessage = EVMMessage;
388
- type index$6_EVMTransactionRequest = EVMTransactionRequest;
389
- type index$6_EVMTypedData = EVMTypedData;
390
- type index$6_EVMUnsignedTransaction = EVMUnsignedTransaction;
391
- declare const index$6_fetchEVMFeeProperties: typeof fetchEVMFeeProperties;
392
- declare namespace index$6 {
393
- 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 };
394
400
  }
395
401
 
396
402
  interface BTCTransaction$1 {
@@ -528,18 +534,18 @@ declare class Bitcoin extends ChainAdapter<BTCTransactionRequest, BTCUnsignedTra
528
534
  broadcastTx(txSerialized: string): Promise<string>;
529
535
  }
530
536
 
531
- type index$5_BTCInput = BTCInput;
532
- type index$5_BTCNetworkIds = BTCNetworkIds;
533
- type index$5_BTCOutput = BTCOutput;
534
- type index$5_BTCRpcAdapter = BTCRpcAdapter;
535
- declare const index$5_BTCRpcAdapter: typeof BTCRpcAdapter;
536
- declare const index$5_BTCRpcAdapters: typeof BTCRpcAdapters;
537
- type index$5_BTCTransactionRequest = BTCTransactionRequest;
538
- type index$5_BTCUnsignedTransaction = BTCUnsignedTransaction;
539
- type index$5_Bitcoin = Bitcoin;
540
- declare const index$5_Bitcoin: typeof Bitcoin;
541
- declare namespace index$5 {
542
- 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 };
543
549
  }
544
550
 
545
551
  type CosmosNetworkIds = string;
@@ -601,19 +607,19 @@ declare class Cosmos extends ChainAdapter<CosmosTransactionRequest, CosmosUnsign
601
607
  broadcastTx(txSerialized: string): Promise<string>;
602
608
  }
603
609
 
604
- type index$4_Cosmos = Cosmos;
605
- declare const index$4_Cosmos: typeof Cosmos;
606
- type index$4_CosmosNetworkIds = CosmosNetworkIds;
607
- type index$4_CosmosTransactionRequest = CosmosTransactionRequest;
608
- type index$4_CosmosUnsignedTransaction = CosmosUnsignedTransaction;
609
- declare namespace index$4 {
610
- 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 };
611
617
  }
612
618
 
613
- type index$3_ChainAdapter<TransactionRequest, UnsignedTransaction> = ChainAdapter<TransactionRequest, UnsignedTransaction>;
614
- declare const index$3_ChainAdapter: typeof ChainAdapter;
615
- declare namespace index$3 {
616
- 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 };
617
623
  }
618
624
 
619
625
  type ChainSignatureContractIds = string;
@@ -734,7 +740,7 @@ interface ChainSignatureContractArgs {
734
740
  *
735
741
  * @extends AbstractChainSignatureContract
736
742
  */
737
- declare class ChainSignatureContract$1 extends ChainSignatureContract$2 {
743
+ declare class ChainSignatureContract$2 extends ChainSignatureContract$3 {
738
744
  private readonly networkId;
739
745
  private readonly contractId;
740
746
  private readonly accountId;
@@ -766,13 +772,13 @@ declare class ChainSignatureContract$1 extends ChainSignatureContract$2 {
766
772
  private requireAccount;
767
773
  }
768
774
 
769
- declare const utils$1: {
775
+ declare const utils$2: {
770
776
  transaction: typeof transaction;
771
777
  signAndSend: typeof signAndSend;
772
778
  };
773
779
 
774
- declare namespace index$2 {
775
- export { ChainSignatureContract$1 as ChainSignatureContract, utils$1 as utils };
780
+ declare namespace index$3 {
781
+ export { ChainSignatureContract$2 as ChainSignatureContract, utils$2 as utils };
776
782
  }
777
783
 
778
784
  declare const abi: ({
@@ -893,28 +899,22 @@ declare class ChainSignatureError extends Error {
893
899
  receipt: TransactionReceipt;
894
900
  constructor(message: string, requestId: `0x${string}`, receipt: TransactionReceipt);
895
901
  }
896
- declare class SignatureNotFoundError extends ChainSignatureError {
902
+ declare class SignatureNotFoundError$1 extends ChainSignatureError {
897
903
  constructor(requestId: `0x${string}`, receipt: TransactionReceipt);
898
904
  }
899
- declare class SignatureContractError extends ChainSignatureError {
905
+ declare class SignatureContractError$1 extends ChainSignatureError {
900
906
  errorCode: string;
901
907
  constructor(errorCode: string, requestId: `0x${string}`, receipt: TransactionReceipt);
902
908
  }
903
- declare class SigningError extends ChainSignatureError {
909
+ declare class SigningError$1 extends ChainSignatureError {
904
910
  originalError?: Error;
905
911
  constructor(requestId: `0x${string}`, receipt: TransactionReceipt, originalError?: Error);
906
912
  }
907
913
 
908
- type errors_ChainSignatureError = ChainSignatureError;
909
- declare const errors_ChainSignatureError: typeof ChainSignatureError;
910
- type errors_SignatureContractError = SignatureContractError;
911
- declare const errors_SignatureContractError: typeof SignatureContractError;
912
- type errors_SignatureNotFoundError = SignatureNotFoundError;
913
- declare const errors_SignatureNotFoundError: typeof SignatureNotFoundError;
914
- type errors_SigningError = SigningError;
915
- declare const errors_SigningError: typeof SigningError;
916
- declare namespace errors {
917
- 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 };
918
918
  }
919
919
 
920
920
  interface RetryOptions {
@@ -929,21 +929,11 @@ interface SignOptions {
929
929
  };
930
930
  retry: RetryOptions;
931
931
  }
932
- interface SignatureErrorData {
932
+ interface SignatureErrorData$1 {
933
933
  requestId: string;
934
934
  responder: string;
935
935
  error: string;
936
936
  }
937
- interface RequestIdArgs {
938
- address: Address;
939
- payload: Hex;
940
- path: string;
941
- keyVersion: number;
942
- chainId: bigint;
943
- algo: string;
944
- dest: string;
945
- params: string;
946
- }
947
937
 
948
938
  /**
949
939
  * Implementation of the ChainSignatureContract for EVM chains.
@@ -953,7 +943,7 @@ interface RequestIdArgs {
953
943
  * once it's available. The sign method handles this process automatically by polling
954
944
  * for the signature using the requestId.
955
945
  */
956
- declare class ChainSignatureContract extends ChainSignatureContract$2 {
946
+ declare class ChainSignatureContract$1 extends ChainSignatureContract$3 {
957
947
  private readonly publicClient;
958
948
  private readonly walletClient;
959
949
  private readonly contractAddress;
@@ -992,8 +982,8 @@ declare class ChainSignatureContract extends ChainSignatureContract$2 {
992
982
  path: string;
993
983
  fromBlock: bigint;
994
984
  options?: RetryOptions;
995
- }): Promise<RSVSignature | SignatureErrorData | undefined>;
996
- getCallData(args: SignArgs, options?: SignOptions['sign']): Promise<{
985
+ }): Promise<RSVSignature | SignatureErrorData$1 | undefined>;
986
+ getSignRequestParams(args: SignArgs, options?: SignOptions['sign']): Promise<{
997
987
  target: Hex;
998
988
  data: Hex;
999
989
  value: bigint;
@@ -1001,34 +991,28 @@ declare class ChainSignatureContract extends ChainSignatureContract$2 {
1001
991
  /**
1002
992
  * Generates the request ID for a signature request allowing to track the response.
1003
993
  *
1004
- * @param request - The signature request object containing:
1005
- * @param request.address - The contract/wallet address calling the signing contract
1006
- * @param request.payload - The data payload to be signed as a hex string
1007
- * @param request.path - The derivation path for the key
1008
- * @param request.keyVersion - The version of the key to use
1009
- * @param request.chainId - The chain ID as a bigint
1010
- * @param request.algo - The signing algorithm to use
1011
- * @param request.dest - The destination for the signature
1012
- * @param request.params - Additional parameters for the signing process
994
+ * @param args - The signature request object containing:
995
+ * @param args.payload - The data payload to be signed as a hex string
996
+ * @param args.path - The derivation path for the key
997
+ * @param args.keyVersion - The version of the key to use
998
+ * @param options - The signature request object containing:
999
+ * @param options.algo - The signing algorithm to use
1000
+ * @param options.dest - The destination for the signature
1001
+ * @param options.params - Additional parameters for the signing process
1013
1002
  * @returns A hex string representing the unique request ID
1014
1003
  *
1015
1004
  * @example
1016
1005
  * ```typescript
1017
1006
  * const requestId = ChainSignatureContract.getRequestId({
1018
- * address: walletClient.account.address,
1019
1007
  * payload: payload: `0x${Buffer.from(args.payload).toString('hex')}`,,
1020
1008
  * path: '',
1021
- * keyVersion: 0,
1022
- * chainId: 1n,
1023
- * algo: '',
1024
- * dest: '',
1025
- * params: ''
1009
+ * keyVersion: 0
1026
1010
  * });
1027
1011
  * console.log(requestId); // 0x...
1028
1012
  * ```
1029
1013
  */
1030
- getRequestId(request: RequestIdArgs): Hex;
1031
- getErrorFromEvents(requestId: Hex, fromBlock: bigint): Promise<SignatureErrorData | undefined>;
1014
+ getRequestId(args: SignArgs, options?: SignOptions['sign']): Hex;
1015
+ getErrorFromEvents(requestId: Hex, fromBlock: bigint): Promise<SignatureErrorData$1 | undefined>;
1032
1016
  /**
1033
1017
  * Searches for SignatureResponded events that match the given requestId.
1034
1018
  * It works in conjunction with the getRequestId method which generates the unique
@@ -1041,8 +1025,325 @@ declare class ChainSignatureContract extends ChainSignatureContract$2 {
1041
1025
  getSignatureFromEvents(requestId: Hex, fromBlock: bigint): Promise<RSVSignature | undefined>;
1042
1026
  }
1043
1027
 
1044
- declare const utils: {
1028
+ declare const utils$1: {
1045
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
+ /**
1123
+ * Listens for signature or error events matching the given requestId.
1124
+ * Sets up listeners for both event types and returns a promise that resolves when
1125
+ * either a valid signature or an error is received.
1126
+ */
1127
+ listenForSignatureEvents({ requestId, payload, path, options, }: {
1128
+ requestId: string;
1129
+ payload: number[];
1130
+ path: string;
1131
+ options?: RetryOptions;
1132
+ }): Promise<RSVSignature | SignatureErrorData$1 | undefined>;
1133
+ /**
1134
+ * Generates the request ID for a signature request allowing to track the response.
1135
+ */
1136
+ getRequestId(args: SignArgs, options?: SignOptions['sign'] & {
1137
+ requesterAddress?: string;
1138
+ }): string;
1139
+ }
1140
+
1141
+ declare const utils: {
1142
+ ChainSignaturesContractIdl: {
1143
+ address: string;
1144
+ metadata: {
1145
+ name: string;
1146
+ version: string;
1147
+ spec: string;
1148
+ description: string;
1149
+ };
1150
+ instructions: ({
1151
+ name: string;
1152
+ discriminator: number[];
1153
+ accounts: {
1154
+ name: string;
1155
+ signer: boolean;
1156
+ }[];
1157
+ args: ({
1158
+ name: string;
1159
+ type: {
1160
+ vec: {
1161
+ array: (string | number)[];
1162
+ defined?: undefined;
1163
+ };
1164
+ };
1165
+ } | {
1166
+ name: string;
1167
+ type: {
1168
+ vec: {
1169
+ defined: {
1170
+ name: string;
1171
+ };
1172
+ array?: undefined;
1173
+ };
1174
+ };
1175
+ })[];
1176
+ } | {
1177
+ name: string;
1178
+ discriminator: number[];
1179
+ accounts: {
1180
+ name: string;
1181
+ signer: boolean;
1182
+ }[];
1183
+ args: ({
1184
+ name: string;
1185
+ type: {
1186
+ vec: {
1187
+ array: (string | number)[];
1188
+ };
1189
+ };
1190
+ } | {
1191
+ name: string;
1192
+ type: {
1193
+ vec: string;
1194
+ };
1195
+ })[];
1196
+ } | {
1197
+ name: string;
1198
+ discriminator: number[];
1199
+ accounts: ({
1200
+ name: string;
1201
+ writable: boolean;
1202
+ pda: {
1203
+ seeds: {
1204
+ kind: string;
1205
+ value: number[];
1206
+ }[];
1207
+ };
1208
+ signer?: undefined;
1209
+ optional?: undefined;
1210
+ address?: undefined;
1211
+ } | {
1212
+ name: string;
1213
+ writable: boolean;
1214
+ signer: boolean;
1215
+ pda?: undefined;
1216
+ optional?: undefined;
1217
+ address?: undefined;
1218
+ } | {
1219
+ name: string;
1220
+ writable: boolean;
1221
+ signer: boolean;
1222
+ optional: boolean;
1223
+ pda?: undefined;
1224
+ address?: undefined;
1225
+ } | {
1226
+ name: string;
1227
+ address: string;
1228
+ writable?: undefined;
1229
+ pda?: undefined;
1230
+ signer?: undefined;
1231
+ optional?: undefined;
1232
+ })[];
1233
+ args: ({
1234
+ name: string;
1235
+ type: {
1236
+ array: (string | number)[];
1237
+ };
1238
+ } | {
1239
+ name: string;
1240
+ type: string;
1241
+ })[];
1242
+ } | {
1243
+ name: string;
1244
+ discriminator: number[];
1245
+ accounts: ({
1246
+ name: string;
1247
+ writable: boolean;
1248
+ pda: {
1249
+ seeds: {
1250
+ kind: string;
1251
+ value: number[];
1252
+ }[];
1253
+ };
1254
+ signer?: undefined;
1255
+ relations?: undefined;
1256
+ docs?: undefined;
1257
+ address?: undefined;
1258
+ } | {
1259
+ name: string;
1260
+ writable: boolean;
1261
+ signer: boolean;
1262
+ relations: string[];
1263
+ pda?: undefined;
1264
+ docs?: undefined;
1265
+ address?: undefined;
1266
+ } | {
1267
+ name: string;
1268
+ docs: string[];
1269
+ writable: boolean;
1270
+ pda?: undefined;
1271
+ signer?: undefined;
1272
+ relations?: undefined;
1273
+ address?: undefined;
1274
+ } | {
1275
+ name: string;
1276
+ address: string;
1277
+ writable?: undefined;
1278
+ pda?: undefined;
1279
+ signer?: undefined;
1280
+ relations?: undefined;
1281
+ docs?: undefined;
1282
+ })[];
1283
+ args: {
1284
+ name: string;
1285
+ type: string;
1286
+ }[];
1287
+ })[];
1288
+ accounts: {
1289
+ name: string;
1290
+ discriminator: number[];
1291
+ }[];
1292
+ events: {
1293
+ name: string;
1294
+ discriminator: number[];
1295
+ }[];
1296
+ errors: {
1297
+ code: number;
1298
+ name: string;
1299
+ msg: string;
1300
+ }[];
1301
+ types: ({
1302
+ name: string;
1303
+ type: {
1304
+ kind: string;
1305
+ fields: ({
1306
+ name: string;
1307
+ type: {
1308
+ defined: {
1309
+ name: string;
1310
+ };
1311
+ array?: undefined;
1312
+ };
1313
+ } | {
1314
+ name: string;
1315
+ type: {
1316
+ array: (string | number)[];
1317
+ defined?: undefined;
1318
+ };
1319
+ } | {
1320
+ name: string;
1321
+ type: string;
1322
+ })[];
1323
+ };
1324
+ } | {
1325
+ name: string;
1326
+ type: {
1327
+ kind: string;
1328
+ fields: ({
1329
+ name: string;
1330
+ type: string;
1331
+ } | {
1332
+ name: string;
1333
+ type: {
1334
+ array: (string | number)[];
1335
+ option?: undefined;
1336
+ };
1337
+ } | {
1338
+ name: string;
1339
+ type: {
1340
+ option: string;
1341
+ array?: undefined;
1342
+ };
1343
+ })[];
1344
+ };
1345
+ })[];
1346
+ };
1046
1347
  errors: typeof errors;
1047
1348
  };
1048
1349
 
@@ -1055,7 +1356,7 @@ declare namespace index$1 {
1055
1356
 
1056
1357
  type index_SignArgs = SignArgs;
1057
1358
  declare namespace index {
1058
- export { ChainSignatureContract$2 as ChainSignatureContract, type index_SignArgs as SignArgs, index$1 as evm, index$2 as near };
1359
+ export { ChainSignatureContract$3 as ChainSignatureContract, type index_SignArgs as SignArgs, index$2 as evm, index$3 as near, index$1 as solana };
1059
1360
  }
1060
1361
 
1061
- 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 };
1362
+ 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 };