@kamino-finance/klend-sdk 5.7.0 → 5.9.0
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/idl_codegen/zero_padding/ObligationZP.d.ts +2 -2
- package/dist/idl_codegen/zero_padding/ObligationZP.d.ts.map +1 -1
- package/dist/idl_codegen/zero_padding/ObligationZP.js +8 -4
- package/dist/idl_codegen/zero_padding/ObligationZP.js.map +1 -1
- package/package.json +4 -3
- package/src/idl.json +4698 -0
- package/src/idl_codegen/zero_padding/ObligationZP.ts +5 -5
- package/src/idl_kamino_vault.json +2157 -0
- package/src/jupiter_perps_idl.json +1324 -0
|
@@ -50,8 +50,8 @@ export class ObligationZP {
|
|
|
50
50
|
readonly borrowingDisabled: number
|
|
51
51
|
/** A target LTV set by the risk council when marking this obligation for deleveraging. Only effective when `deleveraging_margin_call_started_slot != 0`. */
|
|
52
52
|
readonly autodeleverageTargetLtvPct: number
|
|
53
|
-
reserved: Array<BN
|
|
54
|
-
highestBorrowFactorPct: BN
|
|
53
|
+
readonly reserved: Array<BN>;
|
|
54
|
+
readonly highestBorrowFactorPct: BN
|
|
55
55
|
/** A timestamp at which the risk council most-recently marked this obligation for deleveraging. Zero if not currently subject to deleveraging. */
|
|
56
56
|
readonly autodeleverageMarginCallStartedTimestamp: BN
|
|
57
57
|
padding3: Array<BN> = new Array(0)
|
|
@@ -77,7 +77,7 @@ export class ObligationZP {
|
|
|
77
77
|
borsh.publicKey("referrer"),
|
|
78
78
|
borsh.u8("borrowingDisabled"),
|
|
79
79
|
borsh.u8("autodeleverageTargetLtvPct"),
|
|
80
|
-
borsh.array(borsh.u8(),
|
|
80
|
+
borsh.array(borsh.u8(), 6, "reserved"),
|
|
81
81
|
borsh.u64("highestBorrowFactorPct"),
|
|
82
82
|
borsh.u64("autodeleverageMarginCallStartedTimestamp"),
|
|
83
83
|
])
|
|
@@ -109,7 +109,7 @@ export class ObligationZP {
|
|
|
109
109
|
this.referrer = fields.referrer
|
|
110
110
|
this.borrowingDisabled = fields.borrowingDisabled
|
|
111
111
|
this.autodeleverageTargetLtvPct = fields.autodeleverageTargetLtvPct
|
|
112
|
-
this.reserved = new
|
|
112
|
+
this.reserved = fields.reserved.map((num) => new BN(num))
|
|
113
113
|
this.highestBorrowFactorPct = fields.highestBorrowFactorPct
|
|
114
114
|
this.autodeleverageMarginCallStartedTimestamp = fields.autodeleverageMarginCallStartedTimestamp
|
|
115
115
|
this.padding3 = new Array<BN>(0);
|
|
@@ -187,9 +187,9 @@ export class ObligationZP {
|
|
|
187
187
|
referrer: dec.referrer,
|
|
188
188
|
borrowingDisabled: dec.borrowingDisabled,
|
|
189
189
|
autodeleverageTargetLtvPct: dec.autodeleverageTargetLtvPct,
|
|
190
|
+
reserved: dec.reserved,
|
|
190
191
|
highestBorrowFactorPct: dec.highestBorrowFactorPct,
|
|
191
192
|
autodeleverageMarginCallStartedTimestamp: dec.autodeleverageMarginCallStartedTimestamp,
|
|
192
|
-
reserved: [],
|
|
193
193
|
padding3: [],
|
|
194
194
|
})
|
|
195
195
|
}
|