@quartz-labs/sdk 0.14.1 → 0.14.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/dist/client.js CHANGED
@@ -135,7 +135,7 @@ export class QuartzClient {
135
135
  const orders = await this.program.account.spendLimitsOrder.all(query);
136
136
  return orders.sort((a, b) => a.account.timeLock.releaseSlot.cmp(b.account.timeLock.releaseSlot));
137
137
  }
138
- async parseOpenWithdrawOrder(order, retries = 3) {
138
+ async parseOpenWithdrawOrder(order, retries = 5) {
139
139
  const orderAccount = await retryWithBackoff(async () => {
140
140
  return await this.program.account.withdrawOrder.fetch(order);
141
141
  }, retries);
@@ -144,7 +144,7 @@ export class QuartzClient {
144
144
  driftMarketIndex: new BN(orderAccount.driftMarketIndex)
145
145
  };
146
146
  }
147
- async parseOpenSpendLimitsOrder(order, retries = 3) {
147
+ async parseOpenSpendLimitsOrder(order, retries = 5) {
148
148
  const orderAccount = await retryWithBackoff(async () => {
149
149
  return await this.program.account.spendLimitsOrder.fetch(order);
150
150
  }, retries);
@@ -5,6 +5,7 @@ export interface WithdrawOrder extends TimeLocked {
5
5
  amountBaseUnits: BN;
6
6
  driftMarketIndex: BN;
7
7
  reduceOnly: boolean;
8
+ destination: PublicKey;
8
9
  }
9
10
  export interface WithdrawOrderAccount {
10
11
  publicKey: PublicKey;
@@ -1 +1 @@
1
- {"version":3,"file":"WithdrawOrder.account.d.ts","sourceRoot":"","sources":["../../../src/types/accounts/WithdrawOrder.account.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,OAAO,CAAC;AAC5B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qCAAqC,CAAC;AACtE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAEjD,MAAM,WAAW,aAAc,SAAQ,UAAU;IAC7C,eAAe,EAAE,EAAE,CAAC;IACpB,gBAAgB,EAAE,EAAE,CAAC;IACrB,UAAU,EAAE,OAAO,CAAC;CACvB;AAED,MAAM,WAAW,oBAAoB;IACjC,SAAS,EAAE,SAAS,CAAC;IACrB,OAAO,EAAE,aAAa,CAAC;CAC1B"}
1
+ {"version":3,"file":"WithdrawOrder.account.d.ts","sourceRoot":"","sources":["../../../src/types/accounts/WithdrawOrder.account.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,OAAO,CAAC;AAC5B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qCAAqC,CAAC;AACtE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAEjD,MAAM,WAAW,aAAc,SAAQ,UAAU;IAC7C,eAAe,EAAE,EAAE,CAAC;IACpB,gBAAgB,EAAE,EAAE,CAAC;IACrB,UAAU,EAAE,OAAO,CAAC;IACpB,WAAW,EAAE,SAAS,CAAC;CAC1B;AAED,MAAM,WAAW,oBAAoB;IACjC,SAAS,EAAE,SAAS,CAAC;IACrB,OAAO,EAAE,aAAa,CAAC;CAC1B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quartz-labs/sdk",
3
- "version": "0.14.1",
3
+ "version": "0.14.2",
4
4
  "description": "SDK for interacting with the Quartz Protocol",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",