@xoxno/sdk-js 1.0.134 → 1.0.135
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/index.bundled.d.cts
CHANGED
|
@@ -2663,7 +2663,8 @@ export declare const toBase64Xdr: (scv: {
|
|
|
2663
2663
|
}) => string;
|
|
2664
2664
|
/** Build the `"<domain>:<action>"` dispatch key from the event topic ScVals. */
|
|
2665
2665
|
export declare const stellarLendingDispatchKey: (topicsB64: readonly string[]) => string;
|
|
2666
|
-
/** Topic keys this SDK can decode (the
|
|
2666
|
+
/** Topic keys this SDK can decode (19 of the controller's 20 contractevents;
|
|
2667
|
+
* `config:min_borrow_collateral` is intentionally not decoded). */
|
|
2667
2668
|
export declare const STELLAR_LENDING_TOPICS: readonly string[];
|
|
2668
2669
|
/**
|
|
2669
2670
|
* Decode a Stellar lending controller event from its base64-XDR topics and
|
package/dist/index.bundled.d.ts
CHANGED
|
@@ -2663,7 +2663,8 @@ export declare const toBase64Xdr: (scv: {
|
|
|
2663
2663
|
}) => string;
|
|
2664
2664
|
/** Build the `"<domain>:<action>"` dispatch key from the event topic ScVals. */
|
|
2665
2665
|
export declare const stellarLendingDispatchKey: (topicsB64: readonly string[]) => string;
|
|
2666
|
-
/** Topic keys this SDK can decode (the
|
|
2666
|
+
/** Topic keys this SDK can decode (19 of the controller's 20 contractevents;
|
|
2667
|
+
* `config:min_borrow_collateral` is intentionally not decoded). */
|
|
2667
2668
|
export declare const STELLAR_LENDING_TOPICS: readonly string[];
|
|
2668
2669
|
/**
|
|
2669
2670
|
* Decode a Stellar lending controller event from its base64-XDR topics and
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Decoders for the
|
|
2
|
+
* Decoders for the Stellar lending controller `#[contractevent]`s.
|
|
3
|
+
*
|
|
4
|
+
* The controller defines 20 contractevents; this SDK decodes 19. The lone
|
|
5
|
+
* omission is `config:min_borrow_collateral` (a single global `i128` floor with
|
|
6
|
+
* no indexing/UI consumer — the governance `SetMinBorrowCollateral` proposal
|
|
7
|
+
* already surfaces the value), so `decodeStellarLendingEvent` returns `null` for
|
|
8
|
+
* it like any other unhandled topic.
|
|
3
9
|
*
|
|
4
10
|
* The public API takes base64-XDR strings (`decodeStellarLendingEvent(topicsB64,
|
|
5
11
|
* dataB64)`) and parses them with this SDK's bundled `@stellar/stellar-sdk`, so
|
|
@@ -27,7 +33,8 @@ export declare const toBase64Xdr: (scv: {
|
|
|
27
33
|
}) => string;
|
|
28
34
|
/** Build the `"<domain>:<action>"` dispatch key from the event topic ScVals. */
|
|
29
35
|
export declare const stellarLendingDispatchKey: (topicsB64: readonly string[]) => string;
|
|
30
|
-
/** Topic keys this SDK can decode (the
|
|
36
|
+
/** Topic keys this SDK can decode (19 of the controller's 20 contractevents;
|
|
37
|
+
* `config:min_borrow_collateral` is intentionally not decoded). */
|
|
31
38
|
export declare const STELLAR_LENDING_TOPICS: readonly string[];
|
|
32
39
|
/**
|
|
33
40
|
* Decode a Stellar lending controller event from its base64-XDR topics and
|