@lightprotocol/stateless.js 0.15.0 → 0.15.2
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/README.md +5 -21
- package/dist/cjs/browser/index.cjs +104 -1
- package/dist/cjs/browser/index.cjs.map +1 -1
- package/dist/cjs/node/index.cjs +104 -1
- package/dist/cjs/node/index.cjs.map +1 -1
- package/dist/es/browser/index.js +104 -1
- package/dist/es/browser/index.js.map +1 -1
- package/dist/types/index.d.ts +103 -0
- package/package.json +1 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -1723,6 +1723,9 @@ declare class Rpc extends Connection implements CompressionApiInterface {
|
|
|
1723
1723
|
* Fetch the current slot that the node is processing
|
|
1724
1724
|
*/
|
|
1725
1725
|
getIndexerSlot(): Promise<number>;
|
|
1726
|
+
/**
|
|
1727
|
+
* Fetch all the compressed token holders for a given mint. Paginated.
|
|
1728
|
+
*/
|
|
1726
1729
|
getCompressedMintTokenHolders(mint: PublicKey, options?: PaginatedOptions): Promise<WithContext<WithCursor<CompressedMintTokenHolders[]>>>;
|
|
1727
1730
|
/**
|
|
1728
1731
|
* Fetch the latest compression signatures on the cluster. Results are
|
|
@@ -5593,6 +5596,106 @@ type LightCompressedToken = {
|
|
|
5593
5596
|
}
|
|
5594
5597
|
];
|
|
5595
5598
|
},
|
|
5599
|
+
{
|
|
5600
|
+
name: 'compressSplTokenAccount';
|
|
5601
|
+
accounts: [
|
|
5602
|
+
{
|
|
5603
|
+
name: 'feePayer';
|
|
5604
|
+
isMut: true;
|
|
5605
|
+
isSigner: true;
|
|
5606
|
+
docs: ['UNCHECKED: only pays fees.'];
|
|
5607
|
+
},
|
|
5608
|
+
{
|
|
5609
|
+
name: 'authority';
|
|
5610
|
+
isMut: false;
|
|
5611
|
+
isSigner: true;
|
|
5612
|
+
docs: [
|
|
5613
|
+
'Authority is verified through proof since both owner and delegate',
|
|
5614
|
+
'are included in the token data hash, which is a public input to the',
|
|
5615
|
+
'validity proof.'
|
|
5616
|
+
];
|
|
5617
|
+
},
|
|
5618
|
+
{
|
|
5619
|
+
name: 'cpiAuthorityPda';
|
|
5620
|
+
isMut: false;
|
|
5621
|
+
isSigner: false;
|
|
5622
|
+
},
|
|
5623
|
+
{
|
|
5624
|
+
name: 'lightSystemProgram';
|
|
5625
|
+
isMut: false;
|
|
5626
|
+
isSigner: false;
|
|
5627
|
+
},
|
|
5628
|
+
{
|
|
5629
|
+
name: 'registeredProgramPda';
|
|
5630
|
+
isMut: false;
|
|
5631
|
+
isSigner: false;
|
|
5632
|
+
},
|
|
5633
|
+
{
|
|
5634
|
+
name: 'noopProgram';
|
|
5635
|
+
isMut: false;
|
|
5636
|
+
isSigner: false;
|
|
5637
|
+
},
|
|
5638
|
+
{
|
|
5639
|
+
name: 'accountCompressionAuthority';
|
|
5640
|
+
isMut: false;
|
|
5641
|
+
isSigner: false;
|
|
5642
|
+
},
|
|
5643
|
+
{
|
|
5644
|
+
name: 'accountCompressionProgram';
|
|
5645
|
+
isMut: false;
|
|
5646
|
+
isSigner: false;
|
|
5647
|
+
},
|
|
5648
|
+
{
|
|
5649
|
+
name: 'selfProgram';
|
|
5650
|
+
isMut: false;
|
|
5651
|
+
isSigner: false;
|
|
5652
|
+
docs: ['this program is the signer of the cpi.'];
|
|
5653
|
+
},
|
|
5654
|
+
{
|
|
5655
|
+
name: 'tokenPoolPda';
|
|
5656
|
+
isMut: true;
|
|
5657
|
+
isSigner: false;
|
|
5658
|
+
isOptional: true;
|
|
5659
|
+
},
|
|
5660
|
+
{
|
|
5661
|
+
name: 'compressOrDecompressTokenAccount';
|
|
5662
|
+
isMut: true;
|
|
5663
|
+
isSigner: false;
|
|
5664
|
+
isOptional: true;
|
|
5665
|
+
},
|
|
5666
|
+
{
|
|
5667
|
+
name: 'tokenProgram';
|
|
5668
|
+
isMut: false;
|
|
5669
|
+
isSigner: false;
|
|
5670
|
+
isOptional: true;
|
|
5671
|
+
},
|
|
5672
|
+
{
|
|
5673
|
+
name: 'systemProgram';
|
|
5674
|
+
isMut: false;
|
|
5675
|
+
isSigner: false;
|
|
5676
|
+
}
|
|
5677
|
+
];
|
|
5678
|
+
args: [
|
|
5679
|
+
{
|
|
5680
|
+
name: 'owner';
|
|
5681
|
+
type: 'publicKey';
|
|
5682
|
+
},
|
|
5683
|
+
{
|
|
5684
|
+
name: 'remainingAmount';
|
|
5685
|
+
type: {
|
|
5686
|
+
option: 'u64';
|
|
5687
|
+
};
|
|
5688
|
+
},
|
|
5689
|
+
{
|
|
5690
|
+
name: 'cpiContext';
|
|
5691
|
+
type: {
|
|
5692
|
+
option: {
|
|
5693
|
+
defined: 'CompressedCpiContext';
|
|
5694
|
+
};
|
|
5695
|
+
};
|
|
5696
|
+
}
|
|
5697
|
+
];
|
|
5698
|
+
},
|
|
5596
5699
|
{
|
|
5597
5700
|
name: 'transfer';
|
|
5598
5701
|
docs: [
|