@lightprotocol/stateless.js 0.9.0 → 0.10.0
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/dist/cjs/browser/index.cjs +6 -4
- package/dist/cjs/browser/index.cjs.map +1 -1
- package/dist/cjs/node/index.cjs +6 -4
- package/dist/cjs/node/index.cjs.map +1 -1
- package/dist/es/browser/index.js +6 -4
- package/dist/es/browser/index.js.map +1 -1
- package/dist/types/index.d.ts +5 -3
- package/package.json +1 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _solana_web3_js from '@solana/web3.js';
|
|
2
|
-
import { PublicKey, Connection, Commitment, Keypair, TransactionInstruction, VersionedTransaction, ConfirmOptions, TransactionSignature, RpcResponseAndContext, SignatureResult, Signer, MemcmpFilter, DataSizeFilter, ConnectionConfig, AccountMeta, ParsedTransactionWithMeta } from '@solana/web3.js';
|
|
2
|
+
import { PublicKey, Connection, Commitment, Keypair, TransactionInstruction, AddressLookupTableAccount, VersionedTransaction, ConfirmOptions, TransactionSignature, RpcResponseAndContext, SignatureResult, Signer, MemcmpFilter, DataSizeFilter, ConnectionConfig, AccountMeta, ParsedTransactionWithMeta } from '@solana/web3.js';
|
|
3
3
|
import { Buffer as Buffer$1 } from 'buffer';
|
|
4
4
|
import * as superstruct_dist_utils from 'superstruct/dist/utils';
|
|
5
5
|
import { Struct } from 'superstruct';
|
|
@@ -128,10 +128,11 @@ declare function pipe<T, R>(initialFunction: (arg: T) => R, ...functions: ((arg:
|
|
|
128
128
|
* @param instructions instructions to include
|
|
129
129
|
* @param payerPublicKey fee payer public key
|
|
130
130
|
* @param blockhash blockhash to use
|
|
131
|
+
* @param lookupTableAccounts lookup table accounts to include
|
|
131
132
|
*
|
|
132
133
|
* @return VersionedTransaction
|
|
133
134
|
*/
|
|
134
|
-
declare function buildTx(instructions: TransactionInstruction[], payerPublicKey: PublicKey, blockhash: string): VersionedTransaction;
|
|
135
|
+
declare function buildTx(instructions: TransactionInstruction[], payerPublicKey: PublicKey, blockhash: string, lookupTableAccounts?: AddressLookupTableAccount[]): VersionedTransaction;
|
|
135
136
|
/**
|
|
136
137
|
* Sends a versioned transaction and confirms it.
|
|
137
138
|
*
|
|
@@ -166,8 +167,9 @@ declare function confirmTx(rpc: Rpc, txId: string, confirmOptions?: ConfirmOptio
|
|
|
166
167
|
* @param payer payer of the transaction
|
|
167
168
|
* @param blockhash recent blockhash to use in the transaction
|
|
168
169
|
* @param additionalSigners non-feepayer signers to include in the transaction
|
|
170
|
+
* @param lookupTableAccounts lookup table accounts to include in the transaction
|
|
169
171
|
*/
|
|
170
|
-
declare function buildAndSignTx(instructions: TransactionInstruction[], payer: Signer, blockhash: string, additionalSigners?: Signer[]): VersionedTransaction;
|
|
172
|
+
declare function buildAndSignTx(instructions: TransactionInstruction[], payer: Signer, blockhash: string, additionalSigners?: Signer[], lookupTableAccounts?: AddressLookupTableAccount[]): VersionedTransaction;
|
|
171
173
|
|
|
172
174
|
declare function sleep(ms: number): Promise<void>;
|
|
173
175
|
|