@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 =
|
|
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 =
|
|
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);
|
|
@@ -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;
|
|
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"}
|