@glamsystems/glam-sdk 1.1.0-alpha.1 → 1.1.0-alpha.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/index.cjs.js +6583 -2920
- package/index.esm.js +6575 -2909
- package/package.json +2 -2
- package/target/idl/glam_mint-staging.json +18 -15
- package/target/idl/glam_protocol-staging.json +5 -0
- package/target/idl/glam_protocol.json +5 -0
- package/target/types/glam_mint-staging.ts +18 -15
- package/target/types/glam_protocol-staging.ts +5 -0
- package/target/types/glam_protocol.ts +5 -0
- package/src/assets.d.ts +0 -39
- package/src/client/access.d.ts +0 -57
- package/src/client/base.d.ts +0 -184
- package/src/client/bridge.d.ts +0 -183
- package/src/client/bridgeRegistry.d.ts +0 -32
- package/src/client/cctp.d.ts +0 -156
- package/src/client/epi.d.ts +0 -78
- package/src/client/fees.d.ts +0 -33
- package/src/client/invest.d.ts +0 -37
- package/src/client/jupiter.d.ts +0 -45
- package/src/client/kamino/farm.d.ts +0 -39
- package/src/client/kamino/index.d.ts +0 -4
- package/src/client/kamino/lending.d.ts +0 -86
- package/src/client/kamino/types.d.ts +0 -56
- package/src/client/kamino/vaults.d.ts +0 -31
- package/src/client/loopscale.d.ts +0 -84
- package/src/client/marinade.d.ts +0 -42
- package/src/client/mint.d.ts +0 -127
- package/src/client/neutral.d.ts +0 -109
- package/src/client/price.d.ts +0 -138
- package/src/client/stake-pool.d.ts +0 -39
- package/src/client/stake.d.ts +0 -34
- package/src/client/state.d.ts +0 -56
- package/src/client/timelock.d.ts +0 -31
- package/src/client/vault.d.ts +0 -90
- package/src/client.d.ts +0 -68
- package/src/clientConfig.d.ts +0 -29
- package/src/constants.d.ts +0 -84
- package/src/deser/base.d.ts +0 -18
- package/src/deser/index.d.ts +0 -3
- package/src/deser/integrationPolicies.d.ts +0 -120
- package/src/deser/kaminoLayouts.d.ts +0 -264
- package/src/deser/tokenAclLayouts.d.ts +0 -67
- package/src/error.d.ts +0 -29
- package/src/glamExports.d.ts +0 -5116
- package/src/globalConfig.d.ts +0 -27
- package/src/index.d.ts +0 -20
- package/src/models/acl.d.ts +0 -43
- package/src/models/index.d.ts +0 -8
- package/src/models/mint.d.ts +0 -64
- package/src/models/state.d.ts +0 -104
- package/src/models/types.d.ts +0 -28
- package/src/react/cluster-provider.d.ts +0 -22
- package/src/react/glam.d.ts +0 -47
- package/src/react/index.d.ts +0 -5
- package/src/react/query-keys.d.ts +0 -38
- package/src/react/useVaultBalanceSubscription.d.ts +0 -17
- package/src/utils/accounts.d.ts +0 -72
- package/src/utils/bitmask.d.ts +0 -53
- package/src/utils/blockhash.d.ts +0 -11
- package/src/utils/common.d.ts +0 -37
- package/src/utils/computeBudget.d.ts +0 -15
- package/src/utils/evm.d.ts +0 -10
- package/src/utils/fraction.d.ts +0 -29
- package/src/utils/glamPDAs.d.ts +0 -15
- package/src/utils/index.d.ts +0 -16
- package/src/utils/jupiterApi.d.ts +0 -89
- package/src/utils/lookupTables.d.ts +0 -53
- package/src/utils/pkmap.d.ts +0 -87
- package/src/utils/pkset.d.ts +0 -73
- package/src/utils/positionCategorizer.d.ts +0 -36
- package/src/utils/rpc.d.ts +0 -33
- package/src/utils/timelock.d.ts +0 -52
- package/src/utils/transaction.d.ts +0 -13
- package/target/types/ext_bridge.d.ts +0 -2385
- package/target/types/ext_cctp.d.ts +0 -1268
- package/target/types/ext_epi.d.ts +0 -2175
- package/target/types/ext_kamino.d.ts +0 -3433
- package/target/types/ext_loopscale.d.ts +0 -3547
- package/target/types/ext_marinade.d.ts +0 -1593
- package/target/types/ext_neutral.d.ts +0 -1670
- package/target/types/ext_spl.d.ts +0 -1274
- package/target/types/ext_stake_pool.d.ts +0 -1622
- package/target/types/glam_config.d.ts +0 -755
- package/target/types/glam_mint.d.ts +0 -6106
- package/target/types/glam_protocol.d.ts +0 -2708
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import { BN } from "@coral-xyz/anchor";
|
|
2
|
-
import { PublicKey } from "@solana/web3.js";
|
|
3
|
-
import { Decodable } from "./base";
|
|
4
|
-
/**
|
|
5
|
-
* Token ACL Gate ListConfig account layout.
|
|
6
|
-
*
|
|
7
|
-
* Onchain repr(C):
|
|
8
|
-
* discriminator: u8
|
|
9
|
-
* authority: Pubkey
|
|
10
|
-
* seed: Pubkey
|
|
11
|
-
* mode: u8
|
|
12
|
-
* wallets_count: u64 (LE)
|
|
13
|
-
*
|
|
14
|
-
* PDA seeds: ["list_config", authority, seed]
|
|
15
|
-
* Program: Token ACL Gate
|
|
16
|
-
*/
|
|
17
|
-
export declare class TokenAclListConfig extends Decodable {
|
|
18
|
-
discriminator: number;
|
|
19
|
-
authority: PublicKey;
|
|
20
|
-
seed: PublicKey;
|
|
21
|
-
mode: number;
|
|
22
|
-
walletsCount: BN;
|
|
23
|
-
static _layout: any;
|
|
24
|
-
get modeName(): string;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Token ACL Gate WalletEntry account layout.
|
|
28
|
-
*
|
|
29
|
-
* Onchain repr(C):
|
|
30
|
-
* discriminator: u8
|
|
31
|
-
* wallet_address: Pubkey
|
|
32
|
-
* list_config: Pubkey
|
|
33
|
-
*
|
|
34
|
-
* PDA seeds: ["wallet_entry", list_config, wallet]
|
|
35
|
-
* Program: Token ACL Gate
|
|
36
|
-
*/
|
|
37
|
-
export declare class TokenAclWalletEntry extends Decodable {
|
|
38
|
-
discriminator: number;
|
|
39
|
-
wallet: PublicKey;
|
|
40
|
-
listConfig: PublicKey;
|
|
41
|
-
static _layout: any;
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* Token ACL MintConfig account layout.
|
|
45
|
-
*
|
|
46
|
-
* Onchain repr(C):
|
|
47
|
-
* discriminator: u8
|
|
48
|
-
* bump: u8
|
|
49
|
-
* enable_permissionless_thaw: PodBool (u8)
|
|
50
|
-
* enable_permissionless_freeze: PodBool (u8)
|
|
51
|
-
* mint: Pubkey
|
|
52
|
-
* freeze_authority: Pubkey
|
|
53
|
-
* gating_program: Pubkey
|
|
54
|
-
*
|
|
55
|
-
* PDA seeds: ["MINT_CONFIG", mint]
|
|
56
|
-
* Program: Token ACL
|
|
57
|
-
*/
|
|
58
|
-
export declare class TokenAclMintConfig extends Decodable {
|
|
59
|
-
discriminator: number;
|
|
60
|
-
bump: number;
|
|
61
|
-
enablePermissionlessThaw: number;
|
|
62
|
-
enablePermissionlessFreeze: number;
|
|
63
|
-
mint: PublicKey;
|
|
64
|
-
freezeAuthority: PublicKey;
|
|
65
|
-
gatingProgram: PublicKey;
|
|
66
|
-
static _layout: any;
|
|
67
|
-
}
|
package/src/error.d.ts
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { TransactionError } from "@solana/web3.js";
|
|
2
|
-
export declare class GlamError extends Error {
|
|
3
|
-
message: string;
|
|
4
|
-
rawError: TransactionError | null | undefined;
|
|
5
|
-
programLogs?: string[];
|
|
6
|
-
constructor(message: string, rawError: TransactionError | null | undefined, programLogs?: string[]);
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* Extract the program ID that failed from transaction logs.
|
|
10
|
-
* Looks for "Program <ID> failed:" log lines and returns the first match,
|
|
11
|
-
* which corresponds to the innermost CPI that produced the root cause.
|
|
12
|
-
*/
|
|
13
|
-
export declare function extractFailedProgramId(logs?: string[] | null): string | undefined;
|
|
14
|
-
/**
|
|
15
|
-
* Resolve a custom program error code to a human-readable message.
|
|
16
|
-
* When programId is provided, matches against the specific program's IDL
|
|
17
|
-
* to avoid collisions between programs using the same error code range.
|
|
18
|
-
* Accepts either a decimal number or a hex string (e.g. "0xBB80").
|
|
19
|
-
*/
|
|
20
|
-
export declare function resolveErrorCode(code: number | string, staging?: boolean, programId?: string): string | undefined;
|
|
21
|
-
/**
|
|
22
|
-
* Parse the error message from a transaction error.
|
|
23
|
-
* Environment-agnostic: handles Anchor errors, program error codes,
|
|
24
|
-
* simulation failures, and common RPC/network errors.
|
|
25
|
-
*
|
|
26
|
-
* Callers (GUI, CLI) can handle environment-specific error types
|
|
27
|
-
* (e.g. WalletSignTransactionError) before delegating to this function.
|
|
28
|
-
*/
|
|
29
|
-
export declare function parseTxError(error: any): string;
|