@haven-fi/solauto-sdk 1.0.16 → 1.0.17
Sign up to get free protection for your applications and to get access to all the features.
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"transactionsManager.d.ts","sourceRoot":"","sources":["../../src/transactions/transactionsManager.ts"],"names":[],"mappings":"AACA,OAAO,EAGL,kBAAkB,EACnB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;
|
1
|
+
{"version":3,"file":"transactionsManager.d.ts","sourceRoot":"","sources":["../../src/transactions/transactionsManager.ts"],"names":[],"mappings":"AACA,OAAO,EAGL,kBAAkB,EACnB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAwCzD,qBAAa,eAAe;IAKjB,OAAO,EAAE,CACd,UAAU,EAAE,MAAM,KACf,OAAO,CACV;QAAE,EAAE,EAAE,kBAAkB,CAAC;QAAC,oBAAoB,CAAC,EAAE,MAAM,EAAE,CAAA;KAAE,GAAG,SAAS,CACxE;IACM,IAAI,CAAC;IATd,oBAAoB,EAAG,MAAM,EAAE,CAAC;IAChC,EAAE,CAAC,EAAE,kBAAkB,CAAC;gBAGf,OAAO,EAAE,CACd,UAAU,EAAE,MAAM,KACf,OAAO,CACV;QAAE,EAAE,EAAE,kBAAkB,CAAC;QAAC,oBAAoB,CAAC,EAAE,MAAM,EAAE,CAAA;KAAE,GAAG,SAAS,CACxE,EACM,IAAI,CAAC,oBAAQ;IAGhB,UAAU;IAIV,OAAO,CAAC,UAAU,EAAE,MAAM;IAMhC,cAAc,IAAI,MAAM,EAAE;CAY3B;AAgFD,oBAAY,iBAAiB;IAC3B,OAAO,YAAY;IACnB,UAAU,eAAe;IACzB,MAAM,WAAW;IACjB,UAAU,eAAe;CAC1B;AAED,MAAM,MAAM,0BAA0B,GAAG;IACvC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,iBAAiB,CAAC;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,EAAE,CAAC;AAEJ,qBAAa,mBAAmB;IAK5B,OAAO,CAAC,MAAM;IACd,OAAO,CAAC,KAAK;IACb,OAAO,CAAC,cAAc,CAAC;IACvB,OAAO,CAAC,YAAY,CAAC;IACrB,OAAO,CAAC,YAAY,CAAC;IARvB,OAAO,CAAC,QAAQ,CAAkC;IAClD,OAAO,CAAC,YAAY,CAAe;gBAGzB,MAAM,EAAE,aAAa,EACrB,KAAK,EAAE,eAAe,EAAE,EACxB,cAAc,CAAC,6CAA4C,IAAI,aAAA,EAC/D,YAAY,CAAC,qBAAS,EACtB,YAAY,CAAC,qBAAS;YAKlB,uBAAuB;IAsCrC,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,iBAAiB,EAAE,KAAK,CAAC,EAAE,MAAM;IAgB9D,IAAI;CAuIX"}
|
@@ -16,12 +16,11 @@ class LookupTables {
|
|
16
16
|
this.defaultLuts = [];
|
17
17
|
this.cache = [];
|
18
18
|
this.defaultLuts = [
|
19
|
-
client.authorityLutAddress.toString(),
|
20
19
|
...client.defaultLookupTables(),
|
21
20
|
];
|
22
21
|
}
|
23
22
|
async getLutInputs(additionalAddresses) {
|
24
|
-
const addresses = [...this.defaultLuts, ...additionalAddresses];
|
23
|
+
const addresses = [...this.defaultLuts, this.client.authorityLutAddress.toString(), ...additionalAddresses];
|
25
24
|
const currentCacheAddresses = this.cache.map((x) => x.publicKey.toString());
|
26
25
|
const missingAddresses = addresses.filter((x) => !currentCacheAddresses.includes(x));
|
27
26
|
if (missingAddresses) {
|
package/package.json
CHANGED
@@ -19,7 +19,6 @@ class LookupTables {
|
|
19
19
|
|
20
20
|
constructor(private client: SolautoClient) {
|
21
21
|
this.defaultLuts = [
|
22
|
-
client.authorityLutAddress!.toString(),
|
23
22
|
...client.defaultLookupTables(),
|
24
23
|
];
|
25
24
|
}
|
@@ -27,7 +26,7 @@ class LookupTables {
|
|
27
26
|
async getLutInputs(
|
28
27
|
additionalAddresses: string[]
|
29
28
|
): Promise<AddressLookupTableInput[]> {
|
30
|
-
const addresses = [...this.defaultLuts, ...additionalAddresses];
|
29
|
+
const addresses = [...this.defaultLuts, this.client.authorityLutAddress!.toString(), ...additionalAddresses];
|
31
30
|
const currentCacheAddresses = this.cache.map((x) => x.publicKey.toString());
|
32
31
|
|
33
32
|
const missingAddresses = addresses.filter(
|