@glamsystems/glam-sdk 0.1.19 → 0.1.21

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.
@@ -0,0 +1,2 @@
1
+ import { UserAccount } from "./driftTypes";
2
+ export declare function decodeUser(buffer: Buffer): UserAccount;
@@ -14,3 +14,4 @@ export declare const parseMeteoraPosition: (connection: Connection, position: Pu
14
14
  binArrayUpper: PublicKey;
15
15
  }>;
16
16
  export declare const getSimulationComputeUnits: (connection: Connection, instructions: Array<TransactionInstruction>, payer: PublicKey, lookupTables?: Array<AddressLookupTableAccount>) => Promise<number | undefined>;
17
+ export declare const setsAreEqual: (a: Set<any>, b: Set<any>) => boolean;
@@ -1,3 +1,3 @@
1
1
  import { VersionedTransaction } from "@solana/web3.js";
2
- export type PriorityLevel = "Min" | "Low" | "Medium" | "High" | "VeryHigh" | "UnsafeMax" | "Default";
2
+ export type PriorityLevel = "Recommended" | "Min" | "Low" | "Medium" | "High" | "VeryHigh" | "UnsafeMax" | "Default";
3
3
  export declare const getPriorityFeeEstimate: (heliusApiKey: string, tx?: VersionedTransaction, accountKeys?: string[], priorityLevel?: PriorityLevel) => Promise<number>;
@@ -3219,6 +3219,7 @@
3219
3219
  },
3220
3220
  {
3221
3221
  "name": "glam_vault",
3222
+ "writable": true,
3222
3223
  "pda": {
3223
3224
  "seeds": [
3224
3225
  {
@@ -9183,16 +9184,21 @@
9183
9184
  },
9184
9185
  {
9185
9186
  "code": 50004,
9187
+ "name": "InvalidPlatformFeeForSwap",
9188
+ "msg": "Invalid platform fee"
9189
+ },
9190
+ {
9191
+ "code": 50005,
9186
9192
  "name": "InvalidTokenAccount",
9187
9193
  "msg": "Invalid token account"
9188
9194
  },
9189
9195
  {
9190
- "code": 50005,
9196
+ "code": 50006,
9191
9197
  "name": "InvalidVoteSide",
9192
9198
  "msg": "Invalid vote side"
9193
9199
  },
9194
9200
  {
9195
- "code": 50006,
9201
+ "code": 50007,
9196
9202
  "name": "MultipleStakeAccountsDisallowed",
9197
9203
  "msg": "Multiple stake accounts disallowed"
9198
9204
  },
@@ -3225,6 +3225,7 @@ export type GlamProtocol = {
3225
3225
  },
3226
3226
  {
3227
3227
  "name": "glamVault";
3228
+ "writable": true;
3228
3229
  "pda": {
3229
3230
  "seeds": [
3230
3231
  {
@@ -9189,16 +9190,21 @@ export type GlamProtocol = {
9189
9190
  },
9190
9191
  {
9191
9192
  "code": 50004;
9193
+ "name": "invalidPlatformFeeForSwap";
9194
+ "msg": "Invalid platform fee";
9195
+ },
9196
+ {
9197
+ "code": 50005;
9192
9198
  "name": "invalidTokenAccount";
9193
9199
  "msg": "Invalid token account";
9194
9200
  },
9195
9201
  {
9196
- "code": 50005;
9202
+ "code": 50006;
9197
9203
  "name": "invalidVoteSide";
9198
9204
  "msg": "Invalid vote side";
9199
9205
  },
9200
9206
  {
9201
- "code": 50006;
9207
+ "code": 50007;
9202
9208
  "name": "multipleStakeAccountsDisallowed";
9203
9209
  "msg": "Multiple stake accounts disallowed";
9204
9210
  },
@@ -3225,6 +3225,7 @@ export type GlamProtocol = {
3225
3225
  },
3226
3226
  {
3227
3227
  "name": "glamVault",
3228
+ "writable": true,
3228
3229
  "pda": {
3229
3230
  "seeds": [
3230
3231
  {
@@ -9189,16 +9190,21 @@ export type GlamProtocol = {
9189
9190
  },
9190
9191
  {
9191
9192
  "code": 50004,
9193
+ "name": "invalidPlatformFeeForSwap",
9194
+ "msg": "Invalid platform fee"
9195
+ },
9196
+ {
9197
+ "code": 50005,
9192
9198
  "name": "invalidTokenAccount",
9193
9199
  "msg": "Invalid token account"
9194
9200
  },
9195
9201
  {
9196
- "code": 50005,
9202
+ "code": 50006,
9197
9203
  "name": "invalidVoteSide",
9198
9204
  "msg": "Invalid vote side"
9199
9205
  },
9200
9206
  {
9201
- "code": 50006,
9207
+ "code": 50007,
9202
9208
  "name": "multipleStakeAccountsDisallowed",
9203
9209
  "msg": "Multiple stake accounts disallowed"
9204
9210
  },