@glamsystems/glam-cli 1.0.12-alpha.0 → 1.0.12-alpha.1
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/main.js +5 -2
- package/package.json +2 -2
package/main.js
CHANGED
|
@@ -3554,7 +3554,7 @@ class JupiterApiClient {
|
|
|
3554
3554
|
}
|
|
3555
3555
|
return await response.json();
|
|
3556
3556
|
}
|
|
3557
|
-
async getSwapInstructions(quoteResponse, from) {
|
|
3557
|
+
async getSwapInstructions(quoteResponse, from, trackingAccount) {
|
|
3558
3558
|
if (!this.isCustomSwapApi && !this.apiKey) {
|
|
3559
3559
|
throw new Error("Jupiter API key must be set");
|
|
3560
3560
|
}
|
|
@@ -3569,6 +3569,9 @@ class JupiterApiClient {
|
|
|
3569
3569
|
body: JSON.stringify({
|
|
3570
3570
|
quoteResponse,
|
|
3571
3571
|
userPublicKey: from.toBase58(),
|
|
3572
|
+
...(trackingAccount && {
|
|
3573
|
+
trackingAccount: trackingAccount.toBase58(),
|
|
3574
|
+
}),
|
|
3572
3575
|
}),
|
|
3573
3576
|
});
|
|
3574
3577
|
if (!response.ok) {
|
|
@@ -50316,7 +50319,7 @@ program
|
|
|
50316
50319
|
initialize(config, skipSimulation);
|
|
50317
50320
|
await (0, idl_1.idlCheck)(context.glamClient);
|
|
50318
50321
|
})
|
|
50319
|
-
.version("1.0.12-alpha.
|
|
50322
|
+
.version("1.0.12-alpha.1");
|
|
50320
50323
|
program
|
|
50321
50324
|
.command("env")
|
|
50322
50325
|
.description("Display current environment setup")
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@glamsystems/glam-cli",
|
|
3
|
-
"version": "1.0.12-alpha.
|
|
3
|
+
"version": "1.0.12-alpha.1",
|
|
4
4
|
"description": "CLI for interacting with the GLAM Protocol",
|
|
5
5
|
"main": "./main.js",
|
|
6
6
|
"bin": {
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"node": ">=20.20.0"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@glamsystems/glam-sdk": "1.0.12-alpha.
|
|
24
|
+
"@glamsystems/glam-sdk": "1.0.12-alpha.1",
|
|
25
25
|
"@switchboard-xyz/common": "^3.0.0",
|
|
26
26
|
"commander": "^11.1.0",
|
|
27
27
|
"decimal.js": "^10.6.0",
|