@haven-fi/solauto-sdk 1.0.257 → 1.0.259
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/clients/solautoClient.d.ts.map +1 -1
- package/dist/clients/solautoClient.js +0 -4
- package/dist/transactions/transactionsManager.d.ts +1 -0
- package/dist/transactions/transactionsManager.d.ts.map +1 -1
- package/dist/transactions/transactionsManager.js +8 -1
- package/package.json +1 -1
- package/src/clients/solautoClient.ts +0 -7
- package/src/transactions/transactionsManager.ts +16 -2
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"solautoClient.d.ts","sourceRoot":"","sources":["../../src/clients/solautoClient.ts"],"names":[],"mappings":"AAAA,OAAO,gCAAgC,CAAC;AACxC,OAAO,EAA6B,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACvE,OAAO,EACL,MAAM,EACN,kBAAkB,EAMnB,MAAM,0BAA0B,CAAC;AAElC,OAAO,EACL,WAAW,EACX,kBAAkB,EAClB,eAAe,EACf,aAAa,EACb,iBAAiB,EACjB,eAAe,EACf,wBAAwB,EACxB,yBAAyB,EACzB,gCAAgC,EAEhC,sBAAsB,EAKvB,MAAM,cAAc,CAAC;AAUtB,OAAO,EACL,gBAAgB,EAChB,eAAe,EAChB,MAAM,iCAAiC,CAAC;AAMzC,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACpE,OAAO,EACL,oBAAoB,EACpB,wBAAwB,EACzB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAE5C,MAAM,WAAW,iBAAkB,SAAQ,wBAAwB;IACjE,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED,8BAAsB,aAAc,SAAQ,oBAAoB;IACvD,eAAe,CAAC,EAAE,eAAe,CAAC;IAElC,SAAS,EAAG,SAAS,CAAC;IACtB,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EAAE,gBAAgB,EAC5B,2BAA2B,CAAC,EAAE,MAAM,GACnC,kBAAkB;IAEf,qBAAqB,IAAI,OAAO,CAAC,aAAa,GAAG,SAAS,CAAC;CAalE"}
|
@@ -97,9 +97,6 @@ class SolautoClient extends referralStateManager_1.ReferralStateManager {
|
|
97
97
|
];
|
98
98
|
}
|
99
99
|
lutAccountsToAdd() {
|
100
|
-
const newReferral = this.referredBy &&
|
101
|
-
(!this.referralStateData ||
|
102
|
-
(0, umi_web3js_adapters_1.toWeb3JsPublicKey)(this.referralStateData.referredByState).equals(web3_js_1.PublicKey.default));
|
103
100
|
return [
|
104
101
|
this.authority,
|
105
102
|
...((0, umi_web3js_adapters_1.toWeb3JsPublicKey)(this.signer.publicKey).equals(this.authority)
|
@@ -114,7 +111,6 @@ class SolautoClient extends referralStateManager_1.ReferralStateManager {
|
|
114
111
|
this.referralState,
|
115
112
|
...(this.referredBySupplyTa() ? [this.referredBySupplyTa()] : []),
|
116
113
|
...(this.referredByDebtTa() ? [this.referredByDebtTa()] : []),
|
117
|
-
...(newReferral ? [this.referredBy] : []), // Minimizes risk of exceeding tx size limit on next tx
|
118
114
|
];
|
119
115
|
}
|
120
116
|
async fetchExistingAuthorityLutAccounts() {
|
@@ -41,6 +41,7 @@ export declare class TransactionsManager {
|
|
41
41
|
private retries;
|
42
42
|
private retryDelay;
|
43
43
|
private statuses;
|
44
|
+
private statusesStartIdx;
|
44
45
|
private lookupTables;
|
45
46
|
constructor(txHandler: SolautoClient | ReferralStateManager, statusCallback?: ((statuses: TransactionManagerStatuses) => void) | undefined, txType?: TransactionRunType | undefined, priorityFeeSetting?: PriorityFeeSetting, errorsToThrow?: ErrorsToThrow | undefined, retries?: number, retryDelay?: number);
|
46
47
|
private assembleTransactionSets;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"transactionsManager.d.ts","sourceRoot":"","sources":["../../src/transactions/transactionsManager.ts"],"names":[],"mappings":"AACA,OAAO,EAGL,kBAAkB,EAEnB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B;IAM5B,OAAO,CAAC,SAAS;IACjB,OAAO,CAAC,cAAc,CAAC;IACvB,OAAO,CAAC,MAAM,CAAC;IACf,OAAO,CAAC,kBAAkB;IAC1B,OAAO,CAAC,aAAa,CAAC;IACtB,OAAO,CAAC,OAAO;IACf,OAAO,CAAC,UAAU;IAXpB,OAAO,CAAC,QAAQ,CAAkC;IAClD,OAAO,CAAC,gBAAgB,CAAa;IACrC,OAAO,CAAC,YAAY,CAAe;gBAGzB,SAAS,EAAE,aAAa,GAAG,oBAAoB,EAC/C,cAAc,CAAC,GAAE,CAAC,QAAQ,EAAE,0BAA0B,KAAK,IAAI,aAAA,EAC/D,MAAM,CAAC,EAAE,kBAAkB,YAAA,EAC3B,kBAAkB,GAAE,kBAA2C,EAC/D,aAAa,CAAC,EAAE,aAAa,YAAA,EAC7B,OAAO,GAAE,MAAU,EACnB,UAAU,GAAE,MAAY;YAQpB,uBAAuB;IAwCrC,OAAO,CAAC,YAAY;YA8CN,aAAa;IAoB3B,OAAO,CAAC,4BAA4B;IAUpC,OAAO,CAAC,mBAAmB;YAMb,SAAS;IAgBV,UAAU,CACrB,YAAY,EAAE,eAAe,EAAE,GAC9B,OAAO,CAAC,0BAA0B,CAAC;IA+DzB,IAAI,CACf,KAAK,EAAE,eAAe,EAAE,GACvB,OAAO,CAAC,0BAA0B,CAAC;YAgCxB,qBAAqB;YAiDrB,cAAc;YAkCd,eAAe;CAkD9B"}
|
@@ -116,7 +116,7 @@ class TransactionSet {
|
|
116
116
|
.filter((x) => x.tx && x.name !== undefined)
|
117
117
|
.map((x) => x.name.toLowerCase());
|
118
118
|
if (names.length > 1) {
|
119
|
-
names = names.filter(x => x !== CHORES_TX_NAME);
|
119
|
+
names = names.filter((x) => x !== CHORES_TX_NAME);
|
120
120
|
}
|
121
121
|
if (names.length >= 3) {
|
122
122
|
return [names.slice(0, -1).join(", "), names[names.length - 1]].join(", and ");
|
@@ -144,6 +144,7 @@ class TransactionsManager {
|
|
144
144
|
this.retries = retries;
|
145
145
|
this.retryDelay = retryDelay;
|
146
146
|
this.statuses = [];
|
147
|
+
this.statusesStartIdx = 0;
|
147
148
|
this.lookupTables = new LookupTables(this.txHandler.defaultLookupTables(), this.txHandler.umi);
|
148
149
|
}
|
149
150
|
async assembleTransactionSets(items) {
|
@@ -294,6 +295,7 @@ class TransactionsManager {
|
|
294
295
|
}
|
295
296
|
this.txHandler.log("Transaction items:", items.length);
|
296
297
|
const itemSets = await this.assembleTransactionSets(items);
|
298
|
+
this.statusesStartIdx = this.statuses.length;
|
297
299
|
this.updateStatusForSets(itemSets);
|
298
300
|
this.txHandler.log("Initial item sets:", itemSets.length);
|
299
301
|
if (this.txType === "only-simulate" && itemSets.length > 1) {
|
@@ -338,6 +340,11 @@ class TransactionsManager {
|
|
338
340
|
...itemSets.slice(currentIndex + 1).flatMap((set) => set.items),
|
339
341
|
]);
|
340
342
|
if (newItemSets.length > 1) {
|
343
|
+
this.statuses.splice(this.statusesStartIdx + 1, itemSets.length - 1, ...newItemSets.map((x, i) => ({
|
344
|
+
name: x.name(),
|
345
|
+
status: TransactionStatus.Queued,
|
346
|
+
attemptNum: i === 0 ? attemptNum : 0,
|
347
|
+
})));
|
341
348
|
itemSets.splice(currentIndex + 1, itemSets.length - currentIndex - 1, ...newItemSets.slice(1));
|
342
349
|
this.updateStatusForSets(newItemSets.slice(1));
|
343
350
|
}
|
package/package.json
CHANGED
@@ -216,12 +216,6 @@ export abstract class SolautoClient extends ReferralStateManager {
|
|
216
216
|
}
|
217
217
|
|
218
218
|
lutAccountsToAdd(): PublicKey[] {
|
219
|
-
const newReferral =
|
220
|
-
this.referredBy &&
|
221
|
-
(!this.referralStateData ||
|
222
|
-
toWeb3JsPublicKey(this.referralStateData.referredByState).equals(
|
223
|
-
PublicKey.default
|
224
|
-
));
|
225
219
|
return [
|
226
220
|
this.authority,
|
227
221
|
...(toWeb3JsPublicKey(this.signer.publicKey).equals(this.authority)
|
@@ -236,7 +230,6 @@ export abstract class SolautoClient extends ReferralStateManager {
|
|
236
230
|
this.referralState,
|
237
231
|
...(this.referredBySupplyTa() ? [this.referredBySupplyTa()!] : []),
|
238
232
|
...(this.referredByDebtTa() ? [this.referredByDebtTa()!] : []),
|
239
|
-
...(newReferral ? [this.referredBy!] : []), // Minimizes risk of exceeding tx size limit on next tx
|
240
233
|
];
|
241
234
|
}
|
242
235
|
|
@@ -177,7 +177,7 @@ class TransactionSet {
|
|
177
177
|
.filter((x) => x.tx && x.name !== undefined)
|
178
178
|
.map((x) => x.name!.toLowerCase());
|
179
179
|
if (names.length > 1) {
|
180
|
-
names = names.filter(x => x !== CHORES_TX_NAME);
|
180
|
+
names = names.filter((x) => x !== CHORES_TX_NAME);
|
181
181
|
}
|
182
182
|
if (names.length >= 3) {
|
183
183
|
return [names.slice(0, -1).join(", "), names[names.length - 1]].join(
|
@@ -208,6 +208,7 @@ export type TransactionManagerStatuses = {
|
|
208
208
|
|
209
209
|
export class TransactionsManager {
|
210
210
|
private statuses: TransactionManagerStatuses = [];
|
211
|
+
private statusesStartIdx: number = 0;
|
211
212
|
private lookupTables: LookupTables;
|
212
213
|
|
213
214
|
constructor(
|
@@ -404,7 +405,10 @@ export class TransactionsManager {
|
|
404
405
|
);
|
405
406
|
}
|
406
407
|
if (choresAfter.getInstructions().length > 0) {
|
407
|
-
const chore = new TransactionItem(
|
408
|
+
const chore = new TransactionItem(
|
409
|
+
async () => ({ tx: choresAfter }),
|
410
|
+
CHORES_TX_NAME
|
411
|
+
);
|
408
412
|
await chore.initialize();
|
409
413
|
items.push(chore);
|
410
414
|
this.txHandler.log(
|
@@ -439,6 +443,7 @@ export class TransactionsManager {
|
|
439
443
|
|
440
444
|
this.txHandler.log("Transaction items:", items.length);
|
441
445
|
const itemSets = await this.assembleTransactionSets(items);
|
446
|
+
this.statusesStartIdx = this.statuses.length;
|
442
447
|
this.updateStatusForSets(itemSets);
|
443
448
|
this.txHandler.log("Initial item sets:", itemSets.length);
|
444
449
|
|
@@ -521,6 +526,15 @@ export class TransactionsManager {
|
|
521
526
|
]);
|
522
527
|
|
523
528
|
if (newItemSets.length > 1) {
|
529
|
+
this.statuses.splice(
|
530
|
+
this.statusesStartIdx + 1,
|
531
|
+
itemSets.length - 1,
|
532
|
+
...newItemSets.map((x, i) => ({
|
533
|
+
name: x.name(),
|
534
|
+
status: TransactionStatus.Queued,
|
535
|
+
attemptNum: i === 0 ? attemptNum : 0,
|
536
|
+
}))
|
537
|
+
);
|
524
538
|
itemSets.splice(
|
525
539
|
currentIndex + 1,
|
526
540
|
itemSets.length - currentIndex - 1,
|