@glamsystems/glam-sdk 0.1.5 → 0.1.7

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.
@@ -1,44 +0,0 @@
1
- import * as anchor from "@coral-xyz/anchor";
2
- import { PublicKey, TransactionSignature } from "@solana/web3.js";
3
- import { BaseClient, TokenAccount, TxOptions } from "./base";
4
- export declare class ShareClassClient {
5
- readonly base: BaseClient;
6
- constructor(base: BaseClient);
7
- getHolders(state: PublicKey, shareClassId?: number): Promise<TokenAccount[]>;
8
- closeShareClassIx(state: PublicKey, shareClassId?: number): Promise<anchor.web3.TransactionInstruction>;
9
- closeShareClass(state: PublicKey, shareClassId?: number, txOptions?: TxOptions): Promise<string>;
10
- /**
11
- * Create a share class token account for a specific user
12
- *
13
- * @param state
14
- * @param owner
15
- * @param shareClassId
16
- * @param txOptions
17
- * @returns
18
- */
19
- createTokenAccount(state: PublicKey, owner: PublicKey, shareClassId?: number, setFrozen?: boolean, txOptions?: TxOptions): Promise<string>;
20
- /**
21
- * Freeze or thaw token accounts of a share class
22
- *
23
- * @param state
24
- * @param shareClassId
25
- * @param frozen
26
- * @param txOptions
27
- * @returns
28
- */
29
- setTokenAccountsStates(state: PublicKey, shareClassId: number, tokenAccounts: PublicKey[], frozen: boolean, txOptions?: TxOptions): Promise<string>;
30
- /**
31
- * Mint share to recipient
32
- *
33
- * @param state
34
- * @param shareClassId
35
- * @param recipient Recipient's wallet address
36
- * @param amount Amount of shares to mint
37
- * @param forceThaw If true, force thaw token account before minting
38
- * @param txOptions
39
- * @returns Transaction signature
40
- */
41
- mintShare(state: PublicKey, shareClassId: number, recipient: PublicKey, amount: anchor.BN, forceThaw?: boolean, txOptions?: TxOptions): Promise<TransactionSignature>;
42
- burnShare(state: PublicKey, shareClassId: number, amount: anchor.BN, from: PublicKey, forceThaw?: boolean, txOptions?: TxOptions): Promise<TransactionSignature>;
43
- forceTransferShare(state: PublicKey, shareClassId: number, amount: anchor.BN, from: PublicKey, to: PublicKey, forceThaw?: boolean, txOptions?: TxOptions): Promise<TransactionSignature>;
44
- }