@glamsystems/glam-sdk 0.1.20 → 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.
- package/index.cjs.js +1366 -155
- package/index.esm.js +1314 -153
- package/package.json +1 -3
- package/src/client/drift.d.ts +75 -60
- package/src/client/kamino.d.ts +1 -1
- package/src/client/meteora.d.ts +1 -1
- package/src/client/price.d.ts +0 -1
- package/src/index.d.ts +3 -0
- package/src/react/glam.d.ts +2 -2
- package/src/utils/driftOrderParams.d.ts +28 -0
- package/src/utils/driftTypes.d.ts +1422 -0
- package/src/utils/driftUser.d.ts +2 -0
- package/src/utils/helpers.d.ts +1 -0
- package/target/idl/glam_protocol.json +7 -2
- package/target/types/glam_protocol.d.ts +7 -2
- package/target/types/glam_protocol.ts +7 -2
package/src/utils/helpers.d.ts
CHANGED
|
@@ -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;
|
|
@@ -9184,16 +9184,21 @@
|
|
|
9184
9184
|
},
|
|
9185
9185
|
{
|
|
9186
9186
|
"code": 50004,
|
|
9187
|
+
"name": "InvalidPlatformFeeForSwap",
|
|
9188
|
+
"msg": "Invalid platform fee"
|
|
9189
|
+
},
|
|
9190
|
+
{
|
|
9191
|
+
"code": 50005,
|
|
9187
9192
|
"name": "InvalidTokenAccount",
|
|
9188
9193
|
"msg": "Invalid token account"
|
|
9189
9194
|
},
|
|
9190
9195
|
{
|
|
9191
|
-
"code":
|
|
9196
|
+
"code": 50006,
|
|
9192
9197
|
"name": "InvalidVoteSide",
|
|
9193
9198
|
"msg": "Invalid vote side"
|
|
9194
9199
|
},
|
|
9195
9200
|
{
|
|
9196
|
-
"code":
|
|
9201
|
+
"code": 50007,
|
|
9197
9202
|
"name": "MultipleStakeAccountsDisallowed",
|
|
9198
9203
|
"msg": "Multiple stake accounts disallowed"
|
|
9199
9204
|
},
|
|
@@ -9190,16 +9190,21 @@ export type GlamProtocol = {
|
|
|
9190
9190
|
},
|
|
9191
9191
|
{
|
|
9192
9192
|
"code": 50004;
|
|
9193
|
+
"name": "invalidPlatformFeeForSwap";
|
|
9194
|
+
"msg": "Invalid platform fee";
|
|
9195
|
+
},
|
|
9196
|
+
{
|
|
9197
|
+
"code": 50005;
|
|
9193
9198
|
"name": "invalidTokenAccount";
|
|
9194
9199
|
"msg": "Invalid token account";
|
|
9195
9200
|
},
|
|
9196
9201
|
{
|
|
9197
|
-
"code":
|
|
9202
|
+
"code": 50006;
|
|
9198
9203
|
"name": "invalidVoteSide";
|
|
9199
9204
|
"msg": "Invalid vote side";
|
|
9200
9205
|
},
|
|
9201
9206
|
{
|
|
9202
|
-
"code":
|
|
9207
|
+
"code": 50007;
|
|
9203
9208
|
"name": "multipleStakeAccountsDisallowed";
|
|
9204
9209
|
"msg": "Multiple stake accounts disallowed";
|
|
9205
9210
|
},
|
|
@@ -9190,16 +9190,21 @@ export type GlamProtocol = {
|
|
|
9190
9190
|
},
|
|
9191
9191
|
{
|
|
9192
9192
|
"code": 50004,
|
|
9193
|
+
"name": "invalidPlatformFeeForSwap",
|
|
9194
|
+
"msg": "Invalid platform fee"
|
|
9195
|
+
},
|
|
9196
|
+
{
|
|
9197
|
+
"code": 50005,
|
|
9193
9198
|
"name": "invalidTokenAccount",
|
|
9194
9199
|
"msg": "Invalid token account"
|
|
9195
9200
|
},
|
|
9196
9201
|
{
|
|
9197
|
-
"code":
|
|
9202
|
+
"code": 50006,
|
|
9198
9203
|
"name": "invalidVoteSide",
|
|
9199
9204
|
"msg": "Invalid vote side"
|
|
9200
9205
|
},
|
|
9201
9206
|
{
|
|
9202
|
-
"code":
|
|
9207
|
+
"code": 50007,
|
|
9203
9208
|
"name": "multipleStakeAccountsDisallowed",
|
|
9204
9209
|
"msg": "Multiple stake accounts disallowed"
|
|
9205
9210
|
},
|