signet.js 0.0.10-beta6 → 0.0.10-beta8
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/browser/index.browser.cjs +2 -2
- package/browser/index.browser.cjs.map +1 -1
- package/browser/index.browser.js +2 -2
- package/browser/index.browser.js.map +1 -1
- package/node/index.node.cjs +2 -2
- package/node/index.node.cjs.map +1 -1
- package/node/index.node.js +2 -2
- package/node/index.node.js.map +1 -1
- package/package.json +1 -1
- package/types/index.d.cts +367 -60
- package/types/index.d.ts +367 -60
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$
|
|
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$
|
|
189
|
-
declare namespace index$
|
|
190
|
-
export { index$
|
|
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$
|
|
389
|
-
declare const index$
|
|
390
|
-
type index$
|
|
391
|
-
type index$
|
|
392
|
-
type index$
|
|
393
|
-
type index$
|
|
394
|
-
declare const index$
|
|
395
|
-
declare namespace index$
|
|
396
|
-
export { index$
|
|
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$
|
|
535
|
-
type index$
|
|
536
|
-
type index$
|
|
537
|
-
type index$
|
|
538
|
-
declare const index$
|
|
539
|
-
declare const index$
|
|
540
|
-
type index$
|
|
541
|
-
type index$
|
|
542
|
-
type index$
|
|
543
|
-
declare const index$
|
|
544
|
-
declare namespace index$
|
|
545
|
-
export { type index$
|
|
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$
|
|
608
|
-
declare const index$
|
|
609
|
-
type index$
|
|
610
|
-
type index$
|
|
611
|
-
type index$
|
|
612
|
-
declare namespace index$
|
|
613
|
-
export { index$
|
|
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$
|
|
617
|
-
declare const index$
|
|
618
|
-
declare namespace index$
|
|
619
|
-
export { index$
|
|
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$
|
|
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$
|
|
775
|
+
declare const utils$2: {
|
|
773
776
|
transaction: typeof transaction;
|
|
774
777
|
signAndSend: typeof signAndSend;
|
|
775
778
|
};
|
|
776
779
|
|
|
777
|
-
declare namespace index$
|
|
778
|
-
export { ChainSignatureContract$
|
|
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
|
|
912
|
-
declare const
|
|
913
|
-
|
|
914
|
-
|
|
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$
|
|
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,318 @@ 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
|
+
}
|
|
1133
|
+
|
|
1134
|
+
declare const utils: {
|
|
1135
|
+
ChainSignaturesContractIdl: {
|
|
1136
|
+
address: string;
|
|
1137
|
+
metadata: {
|
|
1138
|
+
name: string;
|
|
1139
|
+
version: string;
|
|
1140
|
+
spec: string;
|
|
1141
|
+
description: string;
|
|
1142
|
+
};
|
|
1143
|
+
instructions: ({
|
|
1144
|
+
name: string;
|
|
1145
|
+
discriminator: number[];
|
|
1146
|
+
accounts: {
|
|
1147
|
+
name: string;
|
|
1148
|
+
signer: boolean;
|
|
1149
|
+
}[];
|
|
1150
|
+
args: ({
|
|
1151
|
+
name: string;
|
|
1152
|
+
type: {
|
|
1153
|
+
vec: {
|
|
1154
|
+
array: (string | number)[];
|
|
1155
|
+
defined?: undefined;
|
|
1156
|
+
};
|
|
1157
|
+
};
|
|
1158
|
+
} | {
|
|
1159
|
+
name: string;
|
|
1160
|
+
type: {
|
|
1161
|
+
vec: {
|
|
1162
|
+
defined: {
|
|
1163
|
+
name: string;
|
|
1164
|
+
};
|
|
1165
|
+
array?: undefined;
|
|
1166
|
+
};
|
|
1167
|
+
};
|
|
1168
|
+
})[];
|
|
1169
|
+
} | {
|
|
1170
|
+
name: string;
|
|
1171
|
+
discriminator: number[];
|
|
1172
|
+
accounts: {
|
|
1173
|
+
name: string;
|
|
1174
|
+
signer: boolean;
|
|
1175
|
+
}[];
|
|
1176
|
+
args: ({
|
|
1177
|
+
name: string;
|
|
1178
|
+
type: {
|
|
1179
|
+
vec: {
|
|
1180
|
+
array: (string | number)[];
|
|
1181
|
+
};
|
|
1182
|
+
};
|
|
1183
|
+
} | {
|
|
1184
|
+
name: string;
|
|
1185
|
+
type: {
|
|
1186
|
+
vec: string;
|
|
1187
|
+
};
|
|
1188
|
+
})[];
|
|
1189
|
+
} | {
|
|
1190
|
+
name: string;
|
|
1191
|
+
discriminator: number[];
|
|
1192
|
+
accounts: ({
|
|
1193
|
+
name: string;
|
|
1194
|
+
writable: boolean;
|
|
1195
|
+
pda: {
|
|
1196
|
+
seeds: {
|
|
1197
|
+
kind: string;
|
|
1198
|
+
value: number[];
|
|
1199
|
+
}[];
|
|
1200
|
+
};
|
|
1201
|
+
signer?: undefined;
|
|
1202
|
+
optional?: undefined;
|
|
1203
|
+
address?: undefined;
|
|
1204
|
+
} | {
|
|
1205
|
+
name: string;
|
|
1206
|
+
writable: boolean;
|
|
1207
|
+
signer: boolean;
|
|
1208
|
+
pda?: undefined;
|
|
1209
|
+
optional?: undefined;
|
|
1210
|
+
address?: undefined;
|
|
1211
|
+
} | {
|
|
1212
|
+
name: string;
|
|
1213
|
+
writable: boolean;
|
|
1214
|
+
signer: boolean;
|
|
1215
|
+
optional: boolean;
|
|
1216
|
+
pda?: undefined;
|
|
1217
|
+
address?: undefined;
|
|
1218
|
+
} | {
|
|
1219
|
+
name: string;
|
|
1220
|
+
address: string;
|
|
1221
|
+
writable?: undefined;
|
|
1222
|
+
pda?: undefined;
|
|
1223
|
+
signer?: undefined;
|
|
1224
|
+
optional?: undefined;
|
|
1225
|
+
})[];
|
|
1226
|
+
args: ({
|
|
1227
|
+
name: string;
|
|
1228
|
+
type: {
|
|
1229
|
+
array: (string | number)[];
|
|
1230
|
+
};
|
|
1231
|
+
} | {
|
|
1232
|
+
name: string;
|
|
1233
|
+
type: string;
|
|
1234
|
+
})[];
|
|
1235
|
+
} | {
|
|
1236
|
+
name: string;
|
|
1237
|
+
discriminator: number[];
|
|
1238
|
+
accounts: ({
|
|
1239
|
+
name: string;
|
|
1240
|
+
writable: boolean;
|
|
1241
|
+
pda: {
|
|
1242
|
+
seeds: {
|
|
1243
|
+
kind: string;
|
|
1244
|
+
value: number[];
|
|
1245
|
+
}[];
|
|
1246
|
+
};
|
|
1247
|
+
signer?: undefined;
|
|
1248
|
+
relations?: undefined;
|
|
1249
|
+
docs?: undefined;
|
|
1250
|
+
address?: undefined;
|
|
1251
|
+
} | {
|
|
1252
|
+
name: string;
|
|
1253
|
+
writable: boolean;
|
|
1254
|
+
signer: boolean;
|
|
1255
|
+
relations: string[];
|
|
1256
|
+
pda?: undefined;
|
|
1257
|
+
docs?: undefined;
|
|
1258
|
+
address?: undefined;
|
|
1259
|
+
} | {
|
|
1260
|
+
name: string;
|
|
1261
|
+
docs: string[];
|
|
1262
|
+
writable: boolean;
|
|
1263
|
+
pda?: undefined;
|
|
1264
|
+
signer?: undefined;
|
|
1265
|
+
relations?: undefined;
|
|
1266
|
+
address?: undefined;
|
|
1267
|
+
} | {
|
|
1268
|
+
name: string;
|
|
1269
|
+
address: string;
|
|
1270
|
+
writable?: undefined;
|
|
1271
|
+
pda?: undefined;
|
|
1272
|
+
signer?: undefined;
|
|
1273
|
+
relations?: undefined;
|
|
1274
|
+
docs?: undefined;
|
|
1275
|
+
})[];
|
|
1276
|
+
args: {
|
|
1277
|
+
name: string;
|
|
1278
|
+
type: string;
|
|
1279
|
+
}[];
|
|
1280
|
+
})[];
|
|
1281
|
+
accounts: {
|
|
1282
|
+
name: string;
|
|
1283
|
+
discriminator: number[];
|
|
1284
|
+
}[];
|
|
1285
|
+
events: {
|
|
1286
|
+
name: string;
|
|
1287
|
+
discriminator: number[];
|
|
1288
|
+
}[];
|
|
1289
|
+
errors: {
|
|
1290
|
+
code: number;
|
|
1291
|
+
name: string;
|
|
1292
|
+
msg: string;
|
|
1293
|
+
}[];
|
|
1294
|
+
types: ({
|
|
1295
|
+
name: string;
|
|
1296
|
+
type: {
|
|
1297
|
+
kind: string;
|
|
1298
|
+
fields: ({
|
|
1299
|
+
name: string;
|
|
1300
|
+
type: {
|
|
1301
|
+
defined: {
|
|
1302
|
+
name: string;
|
|
1303
|
+
};
|
|
1304
|
+
array?: undefined;
|
|
1305
|
+
};
|
|
1306
|
+
} | {
|
|
1307
|
+
name: string;
|
|
1308
|
+
type: {
|
|
1309
|
+
array: (string | number)[];
|
|
1310
|
+
defined?: undefined;
|
|
1311
|
+
};
|
|
1312
|
+
} | {
|
|
1313
|
+
name: string;
|
|
1314
|
+
type: string;
|
|
1315
|
+
})[];
|
|
1316
|
+
};
|
|
1317
|
+
} | {
|
|
1318
|
+
name: string;
|
|
1319
|
+
type: {
|
|
1320
|
+
kind: string;
|
|
1321
|
+
fields: ({
|
|
1322
|
+
name: string;
|
|
1323
|
+
type: string;
|
|
1324
|
+
} | {
|
|
1325
|
+
name: string;
|
|
1326
|
+
type: {
|
|
1327
|
+
array: (string | number)[];
|
|
1328
|
+
option?: undefined;
|
|
1329
|
+
};
|
|
1330
|
+
} | {
|
|
1331
|
+
name: string;
|
|
1332
|
+
type: {
|
|
1333
|
+
option: string;
|
|
1334
|
+
array?: undefined;
|
|
1335
|
+
};
|
|
1336
|
+
})[];
|
|
1337
|
+
};
|
|
1338
|
+
})[];
|
|
1339
|
+
};
|
|
1033
1340
|
errors: typeof errors;
|
|
1034
1341
|
};
|
|
1035
1342
|
|
|
@@ -1042,7 +1349,7 @@ declare namespace index$1 {
|
|
|
1042
1349
|
|
|
1043
1350
|
type index_SignArgs = SignArgs;
|
|
1044
1351
|
declare namespace index {
|
|
1045
|
-
export { ChainSignatureContract$
|
|
1352
|
+
export { ChainSignatureContract$3 as ChainSignatureContract, type index_SignArgs as SignArgs, index$2 as evm, index$3 as near, index$1 as solana };
|
|
1046
1353
|
}
|
|
1047
1354
|
|
|
1048
|
-
export { type CompressedPubKeySEC1, type HashToSign, type KeyDerivationPath, type MPCSignature, type NajPublicKey, type NearNearMpcSignature, type RSVSignature, type SigNetEvmMpcSignature, type SigNetNearMpcSignature, type UncompressedPubKeySEC1, index$
|
|
1355
|
+
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 };
|