@layerzerolabs/lz-corekit-solana 3.0.53 → 3.0.56
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/CHANGELOG.md +29 -0
- package/dist/index.cjs +87 -97
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +35 -62
- package/dist/index.d.ts +35 -62
- package/dist/index.mjs +89 -98
- package/dist/index.mjs.map +1 -1
- package/package.json +12 -5
package/dist/index.d.mts
CHANGED
|
@@ -1,33 +1,29 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { RpcInterface, RpcSendTransactionOptions, RpcConfirmTransactionOptions, TransactionBuilderSendAndConfirmOptions, KeypairSigner, PublicKey } from '@metaplex-foundation/umi';
|
|
2
|
+
import { Connection } from '@solana/web3.js';
|
|
2
3
|
import { Provider, Block, Finality, TransactionResponse, TransactionReceipt, BlockTag, BlockWithTransactions, SignedTransaction, TransactionPending, Signer, TransactionRequest } from '@layerzerolabs/lz-core';
|
|
3
4
|
|
|
4
|
-
/**
|
|
5
|
-
* Represents a Solana blockchain provider.
|
|
6
|
-
* Implements the Provider interface for interacting with Solana-compatible blockchains.
|
|
7
|
-
*/
|
|
8
5
|
declare class SolanaProvider implements Provider {
|
|
9
|
-
url: string;
|
|
10
|
-
nativeProvider:
|
|
6
|
+
readonly url: string;
|
|
7
|
+
readonly nativeProvider: RpcInterface & {
|
|
8
|
+
connection: Connection;
|
|
9
|
+
};
|
|
11
10
|
/**
|
|
12
11
|
* Creates an instance of SolanaProvider.
|
|
13
12
|
*
|
|
14
|
-
* @param {string} url - The URL of the Solana node.
|
|
13
|
+
* @param {string | Connection} url - The URL of the Solana node.
|
|
15
14
|
*/
|
|
16
|
-
constructor(url: string);
|
|
15
|
+
constructor(url: string | Connection);
|
|
17
16
|
/**
|
|
18
|
-
* Creates an instance of SolanaProvider from the given URL.
|
|
17
|
+
* Creates an instance of SolanaProvider from the given URL or Connection.
|
|
19
18
|
*
|
|
20
|
-
* @param {string}
|
|
19
|
+
* @param {string | Connection} source - The URL of the Solana node.
|
|
21
20
|
* @returns {SolanaProvider} The created SolanaProvider instance.
|
|
22
21
|
* @throws {Error} If the URL parameter is invalid.
|
|
23
22
|
*/
|
|
24
|
-
static from(
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
* @returns {Connection} The native Solana provider instance.
|
|
29
|
-
*/
|
|
30
|
-
get native(): Connection;
|
|
23
|
+
static from(source: string | Connection): SolanaProvider;
|
|
24
|
+
get native(): RpcInterface & {
|
|
25
|
+
connection: Connection;
|
|
26
|
+
};
|
|
31
27
|
/**
|
|
32
28
|
* Gets the balance of the specified address.
|
|
33
29
|
*
|
|
@@ -69,15 +65,15 @@ declare class SolanaProvider implements Provider {
|
|
|
69
65
|
* @param {string} txHash - The transaction hash is TransactionSignature in Solana
|
|
70
66
|
* @returns {Promise<TransactionResponse>} A promise that resolves to the transaction response
|
|
71
67
|
*/
|
|
72
|
-
getTransaction(txHash: string): Promise<TransactionResponse>;
|
|
68
|
+
getTransaction(txHash: string | Uint8Array): Promise<TransactionResponse>;
|
|
73
69
|
/**
|
|
74
70
|
* Gets the receipt of a transaction.
|
|
75
71
|
*
|
|
76
|
-
* @param {string} txHash - The transaction hash is TransactionSignature in Solana
|
|
72
|
+
* @param {string | Uint8Array} txHash - The transaction hash is TransactionSignature in Solana
|
|
77
73
|
* @returns {Promise<TransactionReceipt>} A promise that resolves to the transaction receipt.
|
|
78
74
|
* @throws {Error} If the transaction is not found.
|
|
79
75
|
*/
|
|
80
|
-
getTransactionReceipt(txHash: string): Promise<TransactionReceipt>;
|
|
76
|
+
getTransactionReceipt(txHash: string | Uint8Array): Promise<TransactionReceipt>;
|
|
81
77
|
/**
|
|
82
78
|
* Gets the number of transactions sent from the specified address.
|
|
83
79
|
*
|
|
@@ -99,10 +95,10 @@ declare class SolanaProvider implements Provider {
|
|
|
99
95
|
* Sends a signed transaction to the blockchain.
|
|
100
96
|
*
|
|
101
97
|
* @param {SignedTransaction} transaction - The signed transaction to send.
|
|
102
|
-
* @param {
|
|
98
|
+
* @param {RpcSendTransactionOptions} [options] - Optional parameters for sending the transaction.
|
|
103
99
|
* @returns {Promise<TransactionPending>} A promise that resolves to the pending transaction.
|
|
104
100
|
*/
|
|
105
|
-
sendTransaction(transaction: SignedTransaction,
|
|
101
|
+
sendTransaction(transaction: SignedTransaction, options?: RpcSendTransactionOptions): Promise<TransactionPending>;
|
|
106
102
|
/**
|
|
107
103
|
* Confirms a pending transaction.
|
|
108
104
|
*
|
|
@@ -111,7 +107,7 @@ declare class SolanaProvider implements Provider {
|
|
|
111
107
|
* @returns {Promise<TransactionReceipt>} A promise that resolves to the transaction receipt.
|
|
112
108
|
* @throws {Error} If the transaction fails.
|
|
113
109
|
*/
|
|
114
|
-
confirmTransaction(pending: TransactionPending,
|
|
110
|
+
confirmTransaction(pending: TransactionPending, options?: Partial<RpcConfirmTransactionOptions>): Promise<TransactionReceipt>;
|
|
115
111
|
/**
|
|
116
112
|
* Sends a signed transaction and waits for confirmation.
|
|
117
113
|
*
|
|
@@ -119,10 +115,7 @@ declare class SolanaProvider implements Provider {
|
|
|
119
115
|
* @param {object} [opts] - Optional parameters for sending and confirming the transaction.
|
|
120
116
|
* @returns {Promise<TransactionReceipt>} A promise that resolves to the transaction receipt.
|
|
121
117
|
*/
|
|
122
|
-
sendAndConfirm(transaction: SignedTransaction,
|
|
123
|
-
confirm?: TransactionConfirmationStrategy;
|
|
124
|
-
send?: SendOptions;
|
|
125
|
-
}): Promise<TransactionReceipt>;
|
|
118
|
+
sendAndConfirm(transaction: SignedTransaction, options?: TransactionBuilderSendAndConfirmOptions): Promise<TransactionReceipt>;
|
|
126
119
|
}
|
|
127
120
|
|
|
128
121
|
/**
|
|
@@ -135,16 +128,16 @@ declare class SolanaSigner implements Signer {
|
|
|
135
128
|
/**
|
|
136
129
|
* Creates an instance of SolanaSigner.
|
|
137
130
|
*
|
|
138
|
-
* @param {
|
|
131
|
+
* @param {KeypairSigner} keypair - The Solana keypair to use as the signer.
|
|
139
132
|
*/
|
|
140
133
|
private constructor();
|
|
141
134
|
/**
|
|
142
|
-
* Creates an instance of SolanaSigner from a
|
|
135
|
+
* Creates an instance of SolanaSigner from a KeypairSigner.
|
|
143
136
|
*
|
|
144
|
-
* @param {
|
|
137
|
+
* @param {KeypairSigner} source - The Solana keypair to create the signer from.
|
|
145
138
|
* @returns {SolanaSigner} The created SolanaSigner instance.
|
|
146
139
|
*/
|
|
147
|
-
static from(source:
|
|
140
|
+
static from(source: KeypairSigner): SolanaSigner;
|
|
148
141
|
/**
|
|
149
142
|
* Creates an instance of SolanaSigner from a mnemonic and derivation path.
|
|
150
143
|
*
|
|
@@ -156,17 +149,17 @@ declare class SolanaSigner implements Signer {
|
|
|
156
149
|
/**
|
|
157
150
|
* Gets the native Solana keypair instance.
|
|
158
151
|
*
|
|
159
|
-
* @returns {
|
|
152
|
+
* @returns {KeypairSigner} The native Solana keypair instance.
|
|
160
153
|
*/
|
|
161
|
-
get native():
|
|
154
|
+
get native(): KeypairSigner;
|
|
162
155
|
/**
|
|
163
156
|
* Connects the signer to a provider.
|
|
164
157
|
*
|
|
165
|
-
* @param {Provider} provider - The provider to connect to.
|
|
158
|
+
* @param {Provider | Connection} provider - The provider to connect to.
|
|
166
159
|
* @returns {this} The connected signer.
|
|
167
160
|
* @throws {Error} If the provider is not an instance of Connection.
|
|
168
161
|
*/
|
|
169
|
-
connect(provider: Provider): this;
|
|
162
|
+
connect(provider: Connection | Provider): this;
|
|
170
163
|
/**
|
|
171
164
|
* Gets the address of the signer.
|
|
172
165
|
*
|
|
@@ -195,18 +188,18 @@ declare class SolanaSigner implements Signer {
|
|
|
195
188
|
* Sends a signed transaction and waits for confirmation.
|
|
196
189
|
*
|
|
197
190
|
* @param {SignedTransaction} transaction - The signed transaction to send.
|
|
198
|
-
* @param {
|
|
191
|
+
* @param {TransactionBuilderSendAndConfirmOptions} [opts] - Optional parameters for sending and confirming the transaction.
|
|
199
192
|
* @returns {Promise<TransactionReceipt>} A promise that resolves to the transaction receipt.
|
|
200
193
|
*/
|
|
201
|
-
sendAndConfirm(transaction: SignedTransaction, opts?:
|
|
194
|
+
sendAndConfirm(transaction: SignedTransaction, opts?: TransactionBuilderSendAndConfirmOptions): Promise<TransactionReceipt>;
|
|
202
195
|
/**
|
|
203
196
|
* Sends a signed transaction.
|
|
204
197
|
*
|
|
205
198
|
* @param {SignedTransaction} transaction - The signed transaction to send.
|
|
206
|
-
* @param {
|
|
199
|
+
* @param {RpcSendTransactionOptions} [opts] - Optional parameters for sending the transaction.
|
|
207
200
|
* @returns {Promise<TransactionPending>} A promise that resolves to the pending transaction.
|
|
208
201
|
*/
|
|
209
|
-
sendTransaction(transaction: SignedTransaction,
|
|
202
|
+
sendTransaction(transaction: SignedTransaction, opts?: RpcSendTransactionOptions): Promise<TransactionPending>;
|
|
210
203
|
/**
|
|
211
204
|
* Signs a transaction.
|
|
212
205
|
*
|
|
@@ -214,7 +207,7 @@ declare class SolanaSigner implements Signer {
|
|
|
214
207
|
* @param {Commitment | GetLatestBlockhashConfig} [opts] - Optional parameters for signing the transaction.
|
|
215
208
|
* @returns {Promise<SignedTransaction>} A promise that resolves to the signed transaction.
|
|
216
209
|
*/
|
|
217
|
-
signTransaction(transaction: TransactionRequest
|
|
210
|
+
signTransaction(transaction: TransactionRequest): Promise<SignedTransaction>;
|
|
218
211
|
/**
|
|
219
212
|
* Signs a buffer (e.g., a message hash) using the native Solana signer.
|
|
220
213
|
*
|
|
@@ -223,27 +216,7 @@ declare class SolanaSigner implements Signer {
|
|
|
223
216
|
* @throws {Error} Method not implemented.
|
|
224
217
|
*/
|
|
225
218
|
signBuffer(_buffer: Uint8Array): Promise<Uint8Array>;
|
|
226
|
-
/**
|
|
227
|
-
* Partially signs a transaction.
|
|
228
|
-
*
|
|
229
|
-
* @param {Transaction | VersionedTransaction} tx - The transaction to partially sign.
|
|
230
|
-
*/
|
|
231
|
-
partialSign(tx: Transaction | VersionedTransaction): void;
|
|
232
|
-
/**
|
|
233
|
-
* Asserts that the provider is connected and returns it.
|
|
234
|
-
*
|
|
235
|
-
* @returns {Connection} The connected provider.
|
|
236
|
-
* @throws {Error} If the provider is not connected.
|
|
237
|
-
*/
|
|
238
219
|
private assertAndGetProvider;
|
|
239
220
|
}
|
|
240
|
-
/**
|
|
241
|
-
* Check if a transaction object is a VersionedTransaction or not
|
|
242
|
-
* This function is not exported from @coral-xyz/anchor currently.
|
|
243
|
-
*
|
|
244
|
-
* @param {Transaction | VersionedTransaction} tx - The transaction to check.
|
|
245
|
-
* @returns {boolean} True if the transaction is a VersionedTransaction, false otherwise.
|
|
246
|
-
*/
|
|
247
|
-
declare const isVersionedTransaction: (tx: Transaction | VersionedTransaction) => tx is VersionedTransaction;
|
|
248
221
|
|
|
249
|
-
export { SolanaProvider, SolanaSigner
|
|
222
|
+
export { SolanaProvider, SolanaSigner };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,33 +1,29 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { RpcInterface, RpcSendTransactionOptions, RpcConfirmTransactionOptions, TransactionBuilderSendAndConfirmOptions, KeypairSigner, PublicKey } from '@metaplex-foundation/umi';
|
|
2
|
+
import { Connection } from '@solana/web3.js';
|
|
2
3
|
import { Provider, Block, Finality, TransactionResponse, TransactionReceipt, BlockTag, BlockWithTransactions, SignedTransaction, TransactionPending, Signer, TransactionRequest } from '@layerzerolabs/lz-core';
|
|
3
4
|
|
|
4
|
-
/**
|
|
5
|
-
* Represents a Solana blockchain provider.
|
|
6
|
-
* Implements the Provider interface for interacting with Solana-compatible blockchains.
|
|
7
|
-
*/
|
|
8
5
|
declare class SolanaProvider implements Provider {
|
|
9
|
-
url: string;
|
|
10
|
-
nativeProvider:
|
|
6
|
+
readonly url: string;
|
|
7
|
+
readonly nativeProvider: RpcInterface & {
|
|
8
|
+
connection: Connection;
|
|
9
|
+
};
|
|
11
10
|
/**
|
|
12
11
|
* Creates an instance of SolanaProvider.
|
|
13
12
|
*
|
|
14
|
-
* @param {string} url - The URL of the Solana node.
|
|
13
|
+
* @param {string | Connection} url - The URL of the Solana node.
|
|
15
14
|
*/
|
|
16
|
-
constructor(url: string);
|
|
15
|
+
constructor(url: string | Connection);
|
|
17
16
|
/**
|
|
18
|
-
* Creates an instance of SolanaProvider from the given URL.
|
|
17
|
+
* Creates an instance of SolanaProvider from the given URL or Connection.
|
|
19
18
|
*
|
|
20
|
-
* @param {string}
|
|
19
|
+
* @param {string | Connection} source - The URL of the Solana node.
|
|
21
20
|
* @returns {SolanaProvider} The created SolanaProvider instance.
|
|
22
21
|
* @throws {Error} If the URL parameter is invalid.
|
|
23
22
|
*/
|
|
24
|
-
static from(
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
* @returns {Connection} The native Solana provider instance.
|
|
29
|
-
*/
|
|
30
|
-
get native(): Connection;
|
|
23
|
+
static from(source: string | Connection): SolanaProvider;
|
|
24
|
+
get native(): RpcInterface & {
|
|
25
|
+
connection: Connection;
|
|
26
|
+
};
|
|
31
27
|
/**
|
|
32
28
|
* Gets the balance of the specified address.
|
|
33
29
|
*
|
|
@@ -69,15 +65,15 @@ declare class SolanaProvider implements Provider {
|
|
|
69
65
|
* @param {string} txHash - The transaction hash is TransactionSignature in Solana
|
|
70
66
|
* @returns {Promise<TransactionResponse>} A promise that resolves to the transaction response
|
|
71
67
|
*/
|
|
72
|
-
getTransaction(txHash: string): Promise<TransactionResponse>;
|
|
68
|
+
getTransaction(txHash: string | Uint8Array): Promise<TransactionResponse>;
|
|
73
69
|
/**
|
|
74
70
|
* Gets the receipt of a transaction.
|
|
75
71
|
*
|
|
76
|
-
* @param {string} txHash - The transaction hash is TransactionSignature in Solana
|
|
72
|
+
* @param {string | Uint8Array} txHash - The transaction hash is TransactionSignature in Solana
|
|
77
73
|
* @returns {Promise<TransactionReceipt>} A promise that resolves to the transaction receipt.
|
|
78
74
|
* @throws {Error} If the transaction is not found.
|
|
79
75
|
*/
|
|
80
|
-
getTransactionReceipt(txHash: string): Promise<TransactionReceipt>;
|
|
76
|
+
getTransactionReceipt(txHash: string | Uint8Array): Promise<TransactionReceipt>;
|
|
81
77
|
/**
|
|
82
78
|
* Gets the number of transactions sent from the specified address.
|
|
83
79
|
*
|
|
@@ -99,10 +95,10 @@ declare class SolanaProvider implements Provider {
|
|
|
99
95
|
* Sends a signed transaction to the blockchain.
|
|
100
96
|
*
|
|
101
97
|
* @param {SignedTransaction} transaction - The signed transaction to send.
|
|
102
|
-
* @param {
|
|
98
|
+
* @param {RpcSendTransactionOptions} [options] - Optional parameters for sending the transaction.
|
|
103
99
|
* @returns {Promise<TransactionPending>} A promise that resolves to the pending transaction.
|
|
104
100
|
*/
|
|
105
|
-
sendTransaction(transaction: SignedTransaction,
|
|
101
|
+
sendTransaction(transaction: SignedTransaction, options?: RpcSendTransactionOptions): Promise<TransactionPending>;
|
|
106
102
|
/**
|
|
107
103
|
* Confirms a pending transaction.
|
|
108
104
|
*
|
|
@@ -111,7 +107,7 @@ declare class SolanaProvider implements Provider {
|
|
|
111
107
|
* @returns {Promise<TransactionReceipt>} A promise that resolves to the transaction receipt.
|
|
112
108
|
* @throws {Error} If the transaction fails.
|
|
113
109
|
*/
|
|
114
|
-
confirmTransaction(pending: TransactionPending,
|
|
110
|
+
confirmTransaction(pending: TransactionPending, options?: Partial<RpcConfirmTransactionOptions>): Promise<TransactionReceipt>;
|
|
115
111
|
/**
|
|
116
112
|
* Sends a signed transaction and waits for confirmation.
|
|
117
113
|
*
|
|
@@ -119,10 +115,7 @@ declare class SolanaProvider implements Provider {
|
|
|
119
115
|
* @param {object} [opts] - Optional parameters for sending and confirming the transaction.
|
|
120
116
|
* @returns {Promise<TransactionReceipt>} A promise that resolves to the transaction receipt.
|
|
121
117
|
*/
|
|
122
|
-
sendAndConfirm(transaction: SignedTransaction,
|
|
123
|
-
confirm?: TransactionConfirmationStrategy;
|
|
124
|
-
send?: SendOptions;
|
|
125
|
-
}): Promise<TransactionReceipt>;
|
|
118
|
+
sendAndConfirm(transaction: SignedTransaction, options?: TransactionBuilderSendAndConfirmOptions): Promise<TransactionReceipt>;
|
|
126
119
|
}
|
|
127
120
|
|
|
128
121
|
/**
|
|
@@ -135,16 +128,16 @@ declare class SolanaSigner implements Signer {
|
|
|
135
128
|
/**
|
|
136
129
|
* Creates an instance of SolanaSigner.
|
|
137
130
|
*
|
|
138
|
-
* @param {
|
|
131
|
+
* @param {KeypairSigner} keypair - The Solana keypair to use as the signer.
|
|
139
132
|
*/
|
|
140
133
|
private constructor();
|
|
141
134
|
/**
|
|
142
|
-
* Creates an instance of SolanaSigner from a
|
|
135
|
+
* Creates an instance of SolanaSigner from a KeypairSigner.
|
|
143
136
|
*
|
|
144
|
-
* @param {
|
|
137
|
+
* @param {KeypairSigner} source - The Solana keypair to create the signer from.
|
|
145
138
|
* @returns {SolanaSigner} The created SolanaSigner instance.
|
|
146
139
|
*/
|
|
147
|
-
static from(source:
|
|
140
|
+
static from(source: KeypairSigner): SolanaSigner;
|
|
148
141
|
/**
|
|
149
142
|
* Creates an instance of SolanaSigner from a mnemonic and derivation path.
|
|
150
143
|
*
|
|
@@ -156,17 +149,17 @@ declare class SolanaSigner implements Signer {
|
|
|
156
149
|
/**
|
|
157
150
|
* Gets the native Solana keypair instance.
|
|
158
151
|
*
|
|
159
|
-
* @returns {
|
|
152
|
+
* @returns {KeypairSigner} The native Solana keypair instance.
|
|
160
153
|
*/
|
|
161
|
-
get native():
|
|
154
|
+
get native(): KeypairSigner;
|
|
162
155
|
/**
|
|
163
156
|
* Connects the signer to a provider.
|
|
164
157
|
*
|
|
165
|
-
* @param {Provider} provider - The provider to connect to.
|
|
158
|
+
* @param {Provider | Connection} provider - The provider to connect to.
|
|
166
159
|
* @returns {this} The connected signer.
|
|
167
160
|
* @throws {Error} If the provider is not an instance of Connection.
|
|
168
161
|
*/
|
|
169
|
-
connect(provider: Provider): this;
|
|
162
|
+
connect(provider: Connection | Provider): this;
|
|
170
163
|
/**
|
|
171
164
|
* Gets the address of the signer.
|
|
172
165
|
*
|
|
@@ -195,18 +188,18 @@ declare class SolanaSigner implements Signer {
|
|
|
195
188
|
* Sends a signed transaction and waits for confirmation.
|
|
196
189
|
*
|
|
197
190
|
* @param {SignedTransaction} transaction - The signed transaction to send.
|
|
198
|
-
* @param {
|
|
191
|
+
* @param {TransactionBuilderSendAndConfirmOptions} [opts] - Optional parameters for sending and confirming the transaction.
|
|
199
192
|
* @returns {Promise<TransactionReceipt>} A promise that resolves to the transaction receipt.
|
|
200
193
|
*/
|
|
201
|
-
sendAndConfirm(transaction: SignedTransaction, opts?:
|
|
194
|
+
sendAndConfirm(transaction: SignedTransaction, opts?: TransactionBuilderSendAndConfirmOptions): Promise<TransactionReceipt>;
|
|
202
195
|
/**
|
|
203
196
|
* Sends a signed transaction.
|
|
204
197
|
*
|
|
205
198
|
* @param {SignedTransaction} transaction - The signed transaction to send.
|
|
206
|
-
* @param {
|
|
199
|
+
* @param {RpcSendTransactionOptions} [opts] - Optional parameters for sending the transaction.
|
|
207
200
|
* @returns {Promise<TransactionPending>} A promise that resolves to the pending transaction.
|
|
208
201
|
*/
|
|
209
|
-
sendTransaction(transaction: SignedTransaction,
|
|
202
|
+
sendTransaction(transaction: SignedTransaction, opts?: RpcSendTransactionOptions): Promise<TransactionPending>;
|
|
210
203
|
/**
|
|
211
204
|
* Signs a transaction.
|
|
212
205
|
*
|
|
@@ -214,7 +207,7 @@ declare class SolanaSigner implements Signer {
|
|
|
214
207
|
* @param {Commitment | GetLatestBlockhashConfig} [opts] - Optional parameters for signing the transaction.
|
|
215
208
|
* @returns {Promise<SignedTransaction>} A promise that resolves to the signed transaction.
|
|
216
209
|
*/
|
|
217
|
-
signTransaction(transaction: TransactionRequest
|
|
210
|
+
signTransaction(transaction: TransactionRequest): Promise<SignedTransaction>;
|
|
218
211
|
/**
|
|
219
212
|
* Signs a buffer (e.g., a message hash) using the native Solana signer.
|
|
220
213
|
*
|
|
@@ -223,27 +216,7 @@ declare class SolanaSigner implements Signer {
|
|
|
223
216
|
* @throws {Error} Method not implemented.
|
|
224
217
|
*/
|
|
225
218
|
signBuffer(_buffer: Uint8Array): Promise<Uint8Array>;
|
|
226
|
-
/**
|
|
227
|
-
* Partially signs a transaction.
|
|
228
|
-
*
|
|
229
|
-
* @param {Transaction | VersionedTransaction} tx - The transaction to partially sign.
|
|
230
|
-
*/
|
|
231
|
-
partialSign(tx: Transaction | VersionedTransaction): void;
|
|
232
|
-
/**
|
|
233
|
-
* Asserts that the provider is connected and returns it.
|
|
234
|
-
*
|
|
235
|
-
* @returns {Connection} The connected provider.
|
|
236
|
-
* @throws {Error} If the provider is not connected.
|
|
237
|
-
*/
|
|
238
219
|
private assertAndGetProvider;
|
|
239
220
|
}
|
|
240
|
-
/**
|
|
241
|
-
* Check if a transaction object is a VersionedTransaction or not
|
|
242
|
-
* This function is not exported from @coral-xyz/anchor currently.
|
|
243
|
-
*
|
|
244
|
-
* @param {Transaction | VersionedTransaction} tx - The transaction to check.
|
|
245
|
-
* @returns {boolean} True if the transaction is a VersionedTransaction, false otherwise.
|
|
246
|
-
*/
|
|
247
|
-
declare const isVersionedTransaction: (tx: Transaction | VersionedTransaction) => tx is VersionedTransaction;
|
|
248
221
|
|
|
249
|
-
export { SolanaProvider, SolanaSigner
|
|
222
|
+
export { SolanaProvider, SolanaSigner };
|