@haven-fi/solauto-sdk 1.0.242 → 1.0.243
Sign up to get free protection for your applications and to get access to all the features.
@@ -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,MAAM,EAAG,MAAM,CAAC;IAEhB,UAAU,EAAG,MAAM,CAAC;IACpB,WAAW,EAAG,OAAO,CAAC;IACtB,eAAe,EAAG,SAAS,CAAC;IAC5B,mBAAmB,EAAG,eAAe,GAAG,IAAI,CAAC;IAC7C,oBAAoB,EAAG,aAAa,GAAG,SAAS,CAAC;IAEjD,SAAS,CAAC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S,EAAE;IAqBzB,iCAAiC,IAAI,OAAO,CAAC,SAAS,EAAE,CAAC;IAUzD,iBAAiB,IAAI,OAAO,CAChC;QAAE,WAAW,EAAE,kBAAkB,CAAC;QAAC,iBAAiB,EAAE,OAAO,CAAA;KAAE,GAAG,SAAS,CAC5E;IAoDD,uBAAuB,IAAI,yBAAyB,GAAG,SAAS;IAOhE,wBAAwB,IAAI,WAAW,GAAG,SAAS;IAO7C,wBAAwB,IAAI,OAAO,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,SAAS,CAAC;IAOvE,YAAY,CACV,aAAa,CAAC,EAAE,gCAAgC,EAChD,GAAG,CAAC,EAAE,kBAAkB,GACvB,kBAAkB;IA0BrB,gBAAgB,CAAC,IAAI,EAAE,sBAAsB,GAAG,kBAAkB;IAwDlE,eAAe,IAAI,kBAAkB;IAYrC,WAAW,IAAI,kBAAkB;IAgCjC,QAAQ,CAAC,OAAO,IAAI,kBAAkB;IAEtC,mBAAmB,CAAC,IAAI,EAAE,iBAAiB,GAAG,kBAAkB;IAuFhE,QAAQ,CAAC,WAAW,CAClB,gBAAgB,EAAE,gBAAgB,EAClC,uBAAuB,EAAE,SAAS,GACjC,kBAAkB;IAErB,QAAQ,CAAC,UAAU,CAAC,gBAAgB,EAAE,gBAAgB,GAAG,kBAAkB;IAE3E,QAAQ,CAAC,SAAS,CAChB,aAAa,EAAE,GAAG,GAAG,GAAG,EACxB,QAAQ,EAAE,aAAa,EACvB,aAAa,EAAE,wBAAwB,EACvC,eAAe,EAAE,eAAe,EAChC,SAAS,CAAC,EAAE,gBAAgB,EAC5B,2BAA2B,CAAC,EAAE,MAAM,GACnC,kBAAkB;IAEf,qBAAqB,IAAI,OAAO,CAAC,aAAa,GAAG,SAAS,CAAC;CAalE"}
|
@@ -111,6 +111,9 @@ class SolautoClient extends referralStateManager_1.ReferralStateManager {
|
|
111
111
|
this.referralState,
|
112
112
|
...(this.referredBySupplyTa() ? [this.referredBySupplyTa()] : []),
|
113
113
|
...(this.referredByDebtTa() ? [this.referredByDebtTa()] : []),
|
114
|
+
...(this.referredBy && !this.referralStateData?.referredByState
|
115
|
+
? [this.referredBy]
|
116
|
+
: []),
|
114
117
|
];
|
115
118
|
}
|
116
119
|
async fetchExistingAuthorityLutAccounts() {
|
@@ -150,11 +153,10 @@ class SolautoClient extends referralStateManager_1.ReferralStateManager {
|
|
150
153
|
addresses: accountsToAdd,
|
151
154
|
})));
|
152
155
|
}
|
153
|
-
const addingReferredBy = accountsToAdd.length <= 2;
|
154
156
|
if (tx.getInstructions().length > 0) {
|
155
157
|
this.log("Updating authority lookup table...");
|
156
158
|
}
|
157
|
-
return { updateLutTx: tx, needsToBeIsolated:
|
159
|
+
return { updateLutTx: tx, needsToBeIsolated: true };
|
158
160
|
}
|
159
161
|
solautoPositionSettings() {
|
160
162
|
return (this.livePositionUpdates.settings ??
|
package/package.json
CHANGED
@@ -230,6 +230,9 @@ export abstract class SolautoClient extends ReferralStateManager {
|
|
230
230
|
this.referralState,
|
231
231
|
...(this.referredBySupplyTa() ? [this.referredBySupplyTa()!] : []),
|
232
232
|
...(this.referredByDebtTa() ? [this.referredByDebtTa()!] : []),
|
233
|
+
...(this.referredBy && !this.referralStateData?.referredByState
|
234
|
+
? [this.referredBy]
|
235
|
+
: []),
|
233
236
|
];
|
234
237
|
}
|
235
238
|
|
@@ -290,13 +293,11 @@ export abstract class SolautoClient extends ReferralStateManager {
|
|
290
293
|
);
|
291
294
|
}
|
292
295
|
|
293
|
-
const addingReferredBy = accountsToAdd.length <= 2;
|
294
|
-
|
295
296
|
if (tx.getInstructions().length > 0) {
|
296
297
|
this.log("Updating authority lookup table...");
|
297
298
|
}
|
298
299
|
|
299
|
-
return { updateLutTx: tx, needsToBeIsolated:
|
300
|
+
return { updateLutTx: tx, needsToBeIsolated: true };
|
300
301
|
}
|
301
302
|
|
302
303
|
solautoPositionSettings(): SolautoSettingsParameters | undefined {
|