@kamino-finance/klend-sdk 7.1.3 → 7.1.4-beta.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/@codegen/klend/accounts/LendingMarket.d.ts +144 -3
- package/dist/@codegen/klend/accounts/LendingMarket.d.ts.map +1 -1
- package/dist/@codegen/klend/accounts/LendingMarket.js +105 -3
- package/dist/@codegen/klend/accounts/LendingMarket.js.map +1 -1
- package/dist/@codegen/klend/accounts/Obligation.d.ts +30 -15
- package/dist/@codegen/klend/accounts/Obligation.d.ts.map +1 -1
- package/dist/@codegen/klend/accounts/Obligation.js +31 -21
- package/dist/@codegen/klend/accounts/Obligation.js.map +1 -1
- package/dist/@codegen/klend/accounts/PoolState.d.ts +53 -0
- package/dist/@codegen/klend/accounts/PoolState.d.ts.map +1 -0
- package/dist/@codegen/klend/accounts/PoolState.js +167 -0
- package/dist/@codegen/klend/accounts/PoolState.js.map +1 -0
- package/dist/@codegen/klend/accounts/Reserve.d.ts +6 -0
- package/dist/@codegen/klend/accounts/Reserve.d.ts.map +1 -1
- package/dist/@codegen/klend/accounts/Reserve.js +9 -2
- package/dist/@codegen/klend/accounts/Reserve.js.map +1 -1
- package/dist/@codegen/klend/accounts/UnstakeTicket.d.ts +41 -0
- package/dist/@codegen/klend/accounts/UnstakeTicket.d.ts.map +1 -0
- package/dist/@codegen/klend/accounts/UnstakeTicket.js +143 -0
- package/dist/@codegen/klend/accounts/UnstakeTicket.js.map +1 -0
- package/dist/@codegen/klend/accounts/UserState.d.ts +0 -75
- package/dist/@codegen/klend/accounts/UserState.d.ts.map +1 -1
- package/dist/@codegen/klend/accounts/UserState.js +0 -25
- package/dist/@codegen/klend/accounts/UserState.js.map +1 -1
- package/dist/@codegen/klend/accounts/WithdrawTicket.d.ts +132 -0
- package/dist/@codegen/klend/accounts/WithdrawTicket.d.ts.map +1 -0
- package/dist/@codegen/klend/accounts/WithdrawTicket.js +191 -0
- package/dist/@codegen/klend/accounts/WithdrawTicket.js.map +1 -0
- package/dist/@codegen/klend/accounts/index.d.ts +6 -0
- package/dist/@codegen/klend/accounts/index.d.ts.map +1 -1
- package/dist/@codegen/klend/accounts/index.js +7 -1
- package/dist/@codegen/klend/accounts/index.js.map +1 -1
- package/dist/@codegen/klend/errors/custom.d.ts +226 -2
- package/dist/@codegen/klend/errors/custom.d.ts.map +1 -1
- package/dist/@codegen/klend/errors/custom.js +396 -3
- package/dist/@codegen/klend/errors/custom.js.map +1 -1
- package/dist/@codegen/klend/instructions/enqueueToWithdraw.d.ts +39 -0
- package/dist/@codegen/klend/instructions/enqueueToWithdraw.d.ts.map +1 -0
- package/dist/@codegen/klend/instructions/enqueueToWithdraw.js +67 -0
- package/dist/@codegen/klend/instructions/enqueueToWithdraw.js.map +1 -0
- package/dist/@codegen/klend/instructions/fillBorrowOrder.d.ts +36 -0
- package/dist/@codegen/klend/instructions/fillBorrowOrder.d.ts.map +1 -0
- package/dist/@codegen/klend/instructions/fillBorrowOrder.js +49 -0
- package/dist/@codegen/klend/instructions/fillBorrowOrder.js.map +1 -0
- package/dist/@codegen/klend/instructions/idlMissingTypes.d.ts +1 -2
- package/dist/@codegen/klend/instructions/idlMissingTypes.d.ts.map +1 -1
- package/dist/@codegen/klend/instructions/idlMissingTypes.js +6 -2
- package/dist/@codegen/klend/instructions/idlMissingTypes.js.map +1 -1
- package/dist/@codegen/klend/instructions/index.d.ts +16 -0
- package/dist/@codegen/klend/instructions/index.d.ts.map +1 -1
- package/dist/@codegen/klend/instructions/index.js +18 -1
- package/dist/@codegen/klend/instructions/index.js.map +1 -1
- package/dist/@codegen/klend/instructions/initReserve.d.ts +1 -1
- package/dist/@codegen/klend/instructions/initReserve.d.ts.map +1 -1
- package/dist/@codegen/klend/instructions/initReserve.js +1 -5
- package/dist/@codegen/klend/instructions/initReserve.js.map +1 -1
- package/dist/@codegen/klend/instructions/liquidateObligationAndRedeemReserveCollateral.js +1 -1
- package/dist/@codegen/klend/instructions/recoverInvalidTicketCollateral.d.ts +47 -0
- package/dist/@codegen/klend/instructions/recoverInvalidTicketCollateral.d.ts.map +1 -0
- package/dist/@codegen/klend/instructions/recoverInvalidTicketCollateral.js +66 -0
- package/dist/@codegen/klend/instructions/recoverInvalidTicketCollateral.js.map +1 -0
- package/dist/@codegen/klend/instructions/setBorrowOrder.d.ts +31 -0
- package/dist/@codegen/klend/instructions/setBorrowOrder.d.ts.map +1 -0
- package/dist/@codegen/klend/instructions/setBorrowOrder.js +64 -0
- package/dist/@codegen/klend/instructions/setBorrowOrder.js.map +1 -0
- package/dist/@codegen/klend/instructions/unstakeLstCollateralEnd.d.ts +53 -0
- package/dist/@codegen/klend/instructions/unstakeLstCollateralEnd.d.ts.map +1 -0
- package/dist/@codegen/klend/instructions/unstakeLstCollateralEnd.js +190 -0
- package/dist/@codegen/klend/instructions/unstakeLstCollateralEnd.js.map +1 -0
- package/dist/@codegen/klend/instructions/unstakeLstCollateralStart.d.ts +70 -0
- package/dist/@codegen/klend/instructions/unstakeLstCollateralStart.d.ts.map +1 -0
- package/dist/@codegen/klend/instructions/unstakeLstCollateralStart.js +261 -0
- package/dist/@codegen/klend/instructions/unstakeLstCollateralStart.js.map +1 -0
- package/dist/@codegen/klend/instructions/updateGlobalConfig.d.ts +1 -1
- package/dist/@codegen/klend/instructions/updateGlobalConfig.d.ts.map +1 -1
- package/dist/@codegen/klend/instructions/updateGlobalConfig.js +1 -0
- package/dist/@codegen/klend/instructions/updateGlobalConfig.js.map +1 -1
- package/dist/@codegen/klend/instructions/updateReserveConfig.d.ts +1 -1
- package/dist/@codegen/klend/instructions/updateReserveConfig.d.ts.map +1 -1
- package/dist/@codegen/klend/instructions/updateReserveConfig.js +1 -0
- package/dist/@codegen/klend/instructions/updateReserveConfig.js.map +1 -1
- package/dist/@codegen/klend/instructions/withdrawObligationCollateral.js +1 -1
- package/dist/@codegen/klend/instructions/withdrawObligationCollateralV2.js +1 -1
- package/dist/@codegen/klend/instructions/withdrawObligationUsol.d.ts +41 -0
- package/dist/@codegen/klend/instructions/withdrawObligationUsol.d.ts.map +1 -0
- package/dist/@codegen/klend/instructions/withdrawObligationUsol.js +135 -0
- package/dist/@codegen/klend/instructions/withdrawObligationUsol.js.map +1 -0
- package/dist/@codegen/klend/instructions/withdrawQueuedLiquidity.d.ts +51 -0
- package/dist/@codegen/klend/instructions/withdrawQueuedLiquidity.d.ts.map +1 -0
- package/dist/@codegen/klend/instructions/withdrawQueuedLiquidity.js +28 -0
- package/dist/@codegen/klend/instructions/withdrawQueuedLiquidity.js.map +1 -0
- package/dist/@codegen/klend/types/BorrowOrder.d.ts +192 -0
- package/dist/@codegen/klend/types/BorrowOrder.d.ts.map +1 -0
- package/dist/@codegen/klend/types/BorrowOrder.js +194 -0
- package/dist/@codegen/klend/types/BorrowOrder.js.map +1 -0
- package/dist/@codegen/klend/types/BorrowOrderConfigArgs.d.ts +39 -0
- package/dist/@codegen/klend/types/BorrowOrderConfigArgs.d.ts.map +1 -0
- package/dist/@codegen/klend/types/BorrowOrderConfigArgs.js +100 -0
- package/dist/@codegen/klend/types/BorrowOrderConfigArgs.js.map +1 -0
- package/dist/@codegen/klend/types/ObligationLiquidity.d.ts +35 -5
- package/dist/@codegen/klend/types/ObligationLiquidity.d.ts.map +1 -1
- package/dist/@codegen/klend/types/ObligationLiquidity.js +17 -7
- package/dist/@codegen/klend/types/ObligationLiquidity.js.map +1 -1
- package/dist/@codegen/klend/types/ObligationOrder.d.ts +4 -4
- package/dist/@codegen/klend/types/ObligationOrder.js +2 -2
- package/dist/@codegen/klend/types/ReserveConfig.d.ts +141 -29
- package/dist/@codegen/klend/types/ReserveConfig.d.ts.map +1 -1
- package/dist/@codegen/klend/types/ReserveConfig.js +89 -25
- package/dist/@codegen/klend/types/ReserveConfig.js.map +1 -1
- package/dist/@codegen/klend/types/ReserveFees.d.ts +8 -8
- package/dist/@codegen/klend/types/ReserveFees.d.ts.map +1 -1
- package/dist/@codegen/klend/types/ReserveFees.js +8 -8
- package/dist/@codegen/klend/types/ReserveFees.js.map +1 -1
- package/dist/@codegen/klend/types/ReserveLiquidity.d.ts +26 -8
- package/dist/@codegen/klend/types/ReserveLiquidity.d.ts.map +1 -1
- package/dist/@codegen/klend/types/ReserveLiquidity.js +14 -8
- package/dist/@codegen/klend/types/ReserveLiquidity.js.map +1 -1
- package/dist/@codegen/klend/types/UpdateConfigMode.d.ts +92 -14
- package/dist/@codegen/klend/types/UpdateConfigMode.d.ts.map +1 -1
- package/dist/@codegen/klend/types/UpdateConfigMode.js +168 -23
- package/dist/@codegen/klend/types/UpdateConfigMode.js.map +1 -1
- package/dist/@codegen/klend/types/UpdateLendingMarketMode.d.ts +130 -0
- package/dist/@codegen/klend/types/UpdateLendingMarketMode.d.ts.map +1 -1
- package/dist/@codegen/klend/types/UpdateLendingMarketMode.js +241 -1
- package/dist/@codegen/klend/types/UpdateLendingMarketMode.js.map +1 -1
- package/dist/@codegen/klend/types/WithdrawQueue.d.ts +64 -0
- package/dist/@codegen/klend/types/WithdrawQueue.d.ts.map +1 -0
- package/dist/@codegen/klend/types/WithdrawQueue.js +104 -0
- package/dist/@codegen/klend/types/WithdrawQueue.js.map +1 -0
- package/dist/@codegen/klend/types/index.d.ts +10 -8
- package/dist/@codegen/klend/types/index.d.ts.map +1 -1
- package/dist/@codegen/klend/types/index.js +7 -3
- package/dist/@codegen/klend/types/index.js.map +1 -1
- package/dist/@codegen/klend/zero_padding/ObligationZP.d.ts +9 -4
- package/dist/@codegen/klend/zero_padding/ObligationZP.d.ts.map +1 -1
- package/dist/@codegen/klend/zero_padding/ObligationZP.js +22 -13
- package/dist/@codegen/klend/zero_padding/ObligationZP.js.map +1 -1
- package/dist/classes/action.d.ts +30 -3
- package/dist/classes/action.d.ts.map +1 -1
- package/dist/classes/action.js +364 -10
- package/dist/classes/action.js.map +1 -1
- package/dist/classes/manager.d.ts.map +1 -1
- package/dist/classes/manager.js +10 -0
- package/dist/classes/manager.js.map +1 -1
- package/dist/classes/market.d.ts +6 -2
- package/dist/classes/market.d.ts.map +1 -1
- package/dist/classes/market.js +26 -6
- package/dist/classes/market.js.map +1 -1
- package/dist/classes/obligation.js +1 -1
- package/dist/classes/obligation.js.map +1 -1
- package/dist/classes/reserve.d.ts.map +1 -1
- package/dist/classes/reserve.js +13 -7
- package/dist/classes/reserve.js.map +1 -1
- package/dist/classes/unstakingPool.d.ts +20 -3
- package/dist/classes/unstakingPool.d.ts.map +1 -1
- package/dist/classes/unstakingPool.js +62 -8
- package/dist/classes/unstakingPool.js.map +1 -1
- package/dist/idl/klend.json +2125 -232
- package/dist/lending_operations/index.d.ts +1 -0
- package/dist/lending_operations/index.d.ts.map +1 -1
- package/dist/lending_operations/index.js +1 -0
- package/dist/lending_operations/index.js.map +1 -1
- package/dist/lending_operations/unstake_lst_collateral.d.ts +12 -0
- package/dist/lending_operations/unstake_lst_collateral.d.ts.map +1 -0
- package/dist/lending_operations/unstake_lst_collateral.js +104 -0
- package/dist/lending_operations/unstake_lst_collateral.js.map +1 -0
- package/dist/manager/client_kamino_manager.js +11 -8
- package/dist/manager/client_kamino_manager.js.map +1 -1
- package/dist/utils/managerTypes.d.ts.map +1 -1
- package/dist/utils/managerTypes.js +9 -4
- package/dist/utils/managerTypes.js.map +1 -1
- package/dist/utils/seeds.d.ts +10 -14
- package/dist/utils/seeds.d.ts.map +1 -1
- package/dist/utils/seeds.js +25 -22
- package/dist/utils/seeds.js.map +1 -1
- package/package.json +1 -1
- package/src/@codegen/klend/accounts/LendingMarket.ts +210 -5
- package/src/@codegen/klend/accounts/Obligation.ts +53 -31
- package/src/@codegen/klend/accounts/PoolState.ts +192 -0
- package/src/@codegen/klend/accounts/Reserve.ts +13 -2
- package/src/@codegen/klend/accounts/UnstakeTicket.ts +160 -0
- package/src/@codegen/klend/accounts/UserState.ts +0 -75
- package/src/@codegen/klend/accounts/WithdrawTicket.ts +256 -0
- package/src/@codegen/klend/accounts/index.ts +6 -0
- package/src/@codegen/klend/errors/custom.ts +427 -2
- package/src/@codegen/klend/instructions/enqueueToWithdraw.ts +89 -0
- package/src/@codegen/klend/instructions/fillBorrowOrder.ts +96 -0
- package/src/@codegen/klend/instructions/idlMissingTypes.ts +7 -4
- package/src/@codegen/klend/instructions/index.ts +34 -0
- package/src/@codegen/klend/instructions/initReserve.ts +2 -6
- package/src/@codegen/klend/instructions/liquidateObligationAndRedeemReserveCollateral.ts +1 -1
- package/src/@codegen/klend/instructions/recoverInvalidTicketCollateral.ts +96 -0
- package/src/@codegen/klend/instructions/setBorrowOrder.ts +77 -0
- package/src/@codegen/klend/instructions/unstakeLstCollateralEnd.ts +251 -0
- package/src/@codegen/klend/instructions/unstakeLstCollateralStart.ts +353 -0
- package/src/@codegen/klend/instructions/updateGlobalConfig.ts +2 -1
- package/src/@codegen/klend/instructions/updateReserveConfig.ts +2 -1
- package/src/@codegen/klend/instructions/withdrawObligationCollateral.ts +1 -1
- package/src/@codegen/klend/instructions/withdrawObligationCollateralV2.ts +1 -1
- package/src/@codegen/klend/instructions/withdrawObligationUsol.ts +168 -0
- package/src/@codegen/klend/instructions/withdrawQueuedLiquidity.ts +92 -0
- package/src/@codegen/klend/types/BorrowOrder.ts +267 -0
- package/src/@codegen/klend/types/BorrowOrderConfigArgs.ts +87 -0
- package/src/@codegen/klend/types/ObligationLiquidity.ts +39 -9
- package/src/@codegen/klend/types/ObligationOrder.ts +4 -4
- package/src/@codegen/klend/types/ReserveConfig.ts +171 -39
- package/src/@codegen/klend/types/ReserveFees.ts +12 -12
- package/src/@codegen/klend/types/ReserveLiquidity.ts +30 -12
- package/src/@codegen/klend/types/UpdateConfigMode.ts +206 -26
- package/src/@codegen/klend/types/UpdateLendingMarketMode.ts +300 -0
- package/src/@codegen/klend/types/WithdrawQueue.ts +117 -0
- package/src/@codegen/klend/types/index.ts +45 -16
- package/src/@codegen/klend/zero_padding/ObligationZP.ts +22 -13
- package/src/classes/action.ts +577 -8
- package/src/classes/manager.ts +11 -0
- package/src/classes/market.ts +36 -5
- package/src/classes/obligation.ts +1 -1
- package/src/classes/reserve.ts +13 -8
- package/src/classes/unstakingPool.ts +83 -6
- package/src/idl/klend.json +2126 -233
- package/src/lending_operations/index.ts +1 -0
- package/src/lending_operations/unstake_lst_collateral.ts +174 -0
- package/src/manager/client_kamino_manager.ts +11 -8
- package/src/utils/managerTypes.ts +9 -4
- package/src/utils/seeds.ts +28 -26
- package/dist/@codegen/klend/types/AssetTier.d.ts +0 -45
- package/dist/@codegen/klend/types/AssetTier.d.ts.map +0 -1
- package/dist/@codegen/klend/types/AssetTier.js +0 -132
- package/dist/@codegen/klend/types/AssetTier.js.map +0 -1
- package/src/@codegen/klend/types/AssetTier.ts +0 -119
|
@@ -119,25 +119,25 @@ export class UpdateProtocolTakeRate {
|
|
|
119
119
|
}
|
|
120
120
|
}
|
|
121
121
|
|
|
122
|
-
export interface
|
|
123
|
-
kind: "
|
|
122
|
+
export interface UpdateFeesOriginationFeeJSON {
|
|
123
|
+
kind: "UpdateFeesOriginationFee"
|
|
124
124
|
}
|
|
125
125
|
|
|
126
|
-
export class
|
|
126
|
+
export class UpdateFeesOriginationFee {
|
|
127
127
|
static readonly discriminator = 5
|
|
128
|
-
static readonly kind = "
|
|
128
|
+
static readonly kind = "UpdateFeesOriginationFee"
|
|
129
129
|
readonly discriminator = 5
|
|
130
|
-
readonly kind = "
|
|
130
|
+
readonly kind = "UpdateFeesOriginationFee"
|
|
131
131
|
|
|
132
|
-
toJSON():
|
|
132
|
+
toJSON(): UpdateFeesOriginationFeeJSON {
|
|
133
133
|
return {
|
|
134
|
-
kind: "
|
|
134
|
+
kind: "UpdateFeesOriginationFee",
|
|
135
135
|
}
|
|
136
136
|
}
|
|
137
137
|
|
|
138
138
|
toEncodable() {
|
|
139
139
|
return {
|
|
140
|
-
|
|
140
|
+
UpdateFeesOriginationFee: {},
|
|
141
141
|
}
|
|
142
142
|
}
|
|
143
143
|
}
|
|
@@ -763,25 +763,25 @@ export class UpdateBorrowFactor {
|
|
|
763
763
|
}
|
|
764
764
|
}
|
|
765
765
|
|
|
766
|
-
export interface
|
|
767
|
-
kind: "
|
|
766
|
+
export interface DeprecatedUpdateAssetTierJSON {
|
|
767
|
+
kind: "DeprecatedUpdateAssetTier"
|
|
768
768
|
}
|
|
769
769
|
|
|
770
|
-
export class
|
|
770
|
+
export class DeprecatedUpdateAssetTier {
|
|
771
771
|
static readonly discriminator = 33
|
|
772
|
-
static readonly kind = "
|
|
772
|
+
static readonly kind = "DeprecatedUpdateAssetTier"
|
|
773
773
|
readonly discriminator = 33
|
|
774
|
-
readonly kind = "
|
|
774
|
+
readonly kind = "DeprecatedUpdateAssetTier"
|
|
775
775
|
|
|
776
|
-
toJSON():
|
|
776
|
+
toJSON(): DeprecatedUpdateAssetTierJSON {
|
|
777
777
|
return {
|
|
778
|
-
kind: "
|
|
778
|
+
kind: "DeprecatedUpdateAssetTier",
|
|
779
779
|
}
|
|
780
780
|
}
|
|
781
781
|
|
|
782
782
|
toEncodable() {
|
|
783
783
|
return {
|
|
784
|
-
|
|
784
|
+
DeprecatedUpdateAssetTier: {},
|
|
785
785
|
}
|
|
786
786
|
}
|
|
787
787
|
}
|
|
@@ -1154,6 +1154,144 @@ export class UpdateProtocolOrderExecutionFee {
|
|
|
1154
1154
|
}
|
|
1155
1155
|
}
|
|
1156
1156
|
|
|
1157
|
+
export interface UpdateDebtMaturityTimestampJSON {
|
|
1158
|
+
kind: "UpdateDebtMaturityTimestamp"
|
|
1159
|
+
}
|
|
1160
|
+
|
|
1161
|
+
export class UpdateDebtMaturityTimestamp {
|
|
1162
|
+
static readonly discriminator = 50
|
|
1163
|
+
static readonly kind = "UpdateDebtMaturityTimestamp"
|
|
1164
|
+
readonly discriminator = 50
|
|
1165
|
+
readonly kind = "UpdateDebtMaturityTimestamp"
|
|
1166
|
+
|
|
1167
|
+
toJSON(): UpdateDebtMaturityTimestampJSON {
|
|
1168
|
+
return {
|
|
1169
|
+
kind: "UpdateDebtMaturityTimestamp",
|
|
1170
|
+
}
|
|
1171
|
+
}
|
|
1172
|
+
|
|
1173
|
+
toEncodable() {
|
|
1174
|
+
return {
|
|
1175
|
+
UpdateDebtMaturityTimestamp: {},
|
|
1176
|
+
}
|
|
1177
|
+
}
|
|
1178
|
+
}
|
|
1179
|
+
|
|
1180
|
+
export interface UpdateDebtTermSecondsJSON {
|
|
1181
|
+
kind: "UpdateDebtTermSeconds"
|
|
1182
|
+
}
|
|
1183
|
+
|
|
1184
|
+
export class UpdateDebtTermSeconds {
|
|
1185
|
+
static readonly discriminator = 51
|
|
1186
|
+
static readonly kind = "UpdateDebtTermSeconds"
|
|
1187
|
+
readonly discriminator = 51
|
|
1188
|
+
readonly kind = "UpdateDebtTermSeconds"
|
|
1189
|
+
|
|
1190
|
+
toJSON(): UpdateDebtTermSecondsJSON {
|
|
1191
|
+
return {
|
|
1192
|
+
kind: "UpdateDebtTermSeconds",
|
|
1193
|
+
}
|
|
1194
|
+
}
|
|
1195
|
+
|
|
1196
|
+
toEncodable() {
|
|
1197
|
+
return {
|
|
1198
|
+
UpdateDebtTermSeconds: {},
|
|
1199
|
+
}
|
|
1200
|
+
}
|
|
1201
|
+
}
|
|
1202
|
+
|
|
1203
|
+
export interface UpdateProposerAuthorityLockJSON {
|
|
1204
|
+
kind: "UpdateProposerAuthorityLock"
|
|
1205
|
+
}
|
|
1206
|
+
|
|
1207
|
+
export class UpdateProposerAuthorityLock {
|
|
1208
|
+
static readonly discriminator = 52
|
|
1209
|
+
static readonly kind = "UpdateProposerAuthorityLock"
|
|
1210
|
+
readonly discriminator = 52
|
|
1211
|
+
readonly kind = "UpdateProposerAuthorityLock"
|
|
1212
|
+
|
|
1213
|
+
toJSON(): UpdateProposerAuthorityLockJSON {
|
|
1214
|
+
return {
|
|
1215
|
+
kind: "UpdateProposerAuthorityLock",
|
|
1216
|
+
}
|
|
1217
|
+
}
|
|
1218
|
+
|
|
1219
|
+
toEncodable() {
|
|
1220
|
+
return {
|
|
1221
|
+
UpdateProposerAuthorityLock: {},
|
|
1222
|
+
}
|
|
1223
|
+
}
|
|
1224
|
+
}
|
|
1225
|
+
|
|
1226
|
+
export interface UpdateMinDeleveragingBonusBpsJSON {
|
|
1227
|
+
kind: "UpdateMinDeleveragingBonusBps"
|
|
1228
|
+
}
|
|
1229
|
+
|
|
1230
|
+
export class UpdateMinDeleveragingBonusBps {
|
|
1231
|
+
static readonly discriminator = 53
|
|
1232
|
+
static readonly kind = "UpdateMinDeleveragingBonusBps"
|
|
1233
|
+
readonly discriminator = 53
|
|
1234
|
+
readonly kind = "UpdateMinDeleveragingBonusBps"
|
|
1235
|
+
|
|
1236
|
+
toJSON(): UpdateMinDeleveragingBonusBpsJSON {
|
|
1237
|
+
return {
|
|
1238
|
+
kind: "UpdateMinDeleveragingBonusBps",
|
|
1239
|
+
}
|
|
1240
|
+
}
|
|
1241
|
+
|
|
1242
|
+
toEncodable() {
|
|
1243
|
+
return {
|
|
1244
|
+
UpdateMinDeleveragingBonusBps: {},
|
|
1245
|
+
}
|
|
1246
|
+
}
|
|
1247
|
+
}
|
|
1248
|
+
|
|
1249
|
+
export interface UpdateCanUnstakeLstCollateralJSON {
|
|
1250
|
+
kind: "UpdateCanUnstakeLstCollateral"
|
|
1251
|
+
}
|
|
1252
|
+
|
|
1253
|
+
export class UpdateCanUnstakeLstCollateral {
|
|
1254
|
+
static readonly discriminator = 54
|
|
1255
|
+
static readonly kind = "UpdateCanUnstakeLstCollateral"
|
|
1256
|
+
readonly discriminator = 54
|
|
1257
|
+
readonly kind = "UpdateCanUnstakeLstCollateral"
|
|
1258
|
+
|
|
1259
|
+
toJSON(): UpdateCanUnstakeLstCollateralJSON {
|
|
1260
|
+
return {
|
|
1261
|
+
kind: "UpdateCanUnstakeLstCollateral",
|
|
1262
|
+
}
|
|
1263
|
+
}
|
|
1264
|
+
|
|
1265
|
+
toEncodable() {
|
|
1266
|
+
return {
|
|
1267
|
+
UpdateCanUnstakeLstCollateral: {},
|
|
1268
|
+
}
|
|
1269
|
+
}
|
|
1270
|
+
}
|
|
1271
|
+
|
|
1272
|
+
export interface UpdateLtvLamportsMarginJSON {
|
|
1273
|
+
kind: "UpdateLtvLamportsMargin"
|
|
1274
|
+
}
|
|
1275
|
+
|
|
1276
|
+
export class UpdateLtvLamportsMargin {
|
|
1277
|
+
static readonly discriminator = 55
|
|
1278
|
+
static readonly kind = "UpdateLtvLamportsMargin"
|
|
1279
|
+
readonly discriminator = 55
|
|
1280
|
+
readonly kind = "UpdateLtvLamportsMargin"
|
|
1281
|
+
|
|
1282
|
+
toJSON(): UpdateLtvLamportsMarginJSON {
|
|
1283
|
+
return {
|
|
1284
|
+
kind: "UpdateLtvLamportsMargin",
|
|
1285
|
+
}
|
|
1286
|
+
}
|
|
1287
|
+
|
|
1288
|
+
toEncodable() {
|
|
1289
|
+
return {
|
|
1290
|
+
UpdateLtvLamportsMargin: {},
|
|
1291
|
+
}
|
|
1292
|
+
}
|
|
1293
|
+
}
|
|
1294
|
+
|
|
1157
1295
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1158
1296
|
export function fromDecoded(obj: any): types.UpdateConfigModeKind {
|
|
1159
1297
|
if (typeof obj !== "object") {
|
|
@@ -1175,8 +1313,8 @@ export function fromDecoded(obj: any): types.UpdateConfigModeKind {
|
|
|
1175
1313
|
if ("UpdateProtocolTakeRate" in obj) {
|
|
1176
1314
|
return new UpdateProtocolTakeRate()
|
|
1177
1315
|
}
|
|
1178
|
-
if ("
|
|
1179
|
-
return new
|
|
1316
|
+
if ("UpdateFeesOriginationFee" in obj) {
|
|
1317
|
+
return new UpdateFeesOriginationFee()
|
|
1180
1318
|
}
|
|
1181
1319
|
if ("UpdateFeesFlashLoanFee" in obj) {
|
|
1182
1320
|
return new UpdateFeesFlashLoanFee()
|
|
@@ -1259,8 +1397,8 @@ export function fromDecoded(obj: any): types.UpdateConfigModeKind {
|
|
|
1259
1397
|
if ("UpdateBorrowFactor" in obj) {
|
|
1260
1398
|
return new UpdateBorrowFactor()
|
|
1261
1399
|
}
|
|
1262
|
-
if ("
|
|
1263
|
-
return new
|
|
1400
|
+
if ("DeprecatedUpdateAssetTier" in obj) {
|
|
1401
|
+
return new DeprecatedUpdateAssetTier()
|
|
1264
1402
|
}
|
|
1265
1403
|
if ("UpdateElevationGroup" in obj) {
|
|
1266
1404
|
return new UpdateElevationGroup()
|
|
@@ -1310,6 +1448,24 @@ export function fromDecoded(obj: any): types.UpdateConfigModeKind {
|
|
|
1310
1448
|
if ("UpdateProtocolOrderExecutionFee" in obj) {
|
|
1311
1449
|
return new UpdateProtocolOrderExecutionFee()
|
|
1312
1450
|
}
|
|
1451
|
+
if ("UpdateDebtMaturityTimestamp" in obj) {
|
|
1452
|
+
return new UpdateDebtMaturityTimestamp()
|
|
1453
|
+
}
|
|
1454
|
+
if ("UpdateDebtTermSeconds" in obj) {
|
|
1455
|
+
return new UpdateDebtTermSeconds()
|
|
1456
|
+
}
|
|
1457
|
+
if ("UpdateProposerAuthorityLock" in obj) {
|
|
1458
|
+
return new UpdateProposerAuthorityLock()
|
|
1459
|
+
}
|
|
1460
|
+
if ("UpdateMinDeleveragingBonusBps" in obj) {
|
|
1461
|
+
return new UpdateMinDeleveragingBonusBps()
|
|
1462
|
+
}
|
|
1463
|
+
if ("UpdateCanUnstakeLstCollateral" in obj) {
|
|
1464
|
+
return new UpdateCanUnstakeLstCollateral()
|
|
1465
|
+
}
|
|
1466
|
+
if ("UpdateLtvLamportsMargin" in obj) {
|
|
1467
|
+
return new UpdateLtvLamportsMargin()
|
|
1468
|
+
}
|
|
1313
1469
|
|
|
1314
1470
|
throw new Error("Invalid enum object")
|
|
1315
1471
|
}
|
|
@@ -1333,8 +1489,8 @@ export function fromJSON(
|
|
|
1333
1489
|
case "UpdateProtocolTakeRate": {
|
|
1334
1490
|
return new UpdateProtocolTakeRate()
|
|
1335
1491
|
}
|
|
1336
|
-
case "
|
|
1337
|
-
return new
|
|
1492
|
+
case "UpdateFeesOriginationFee": {
|
|
1493
|
+
return new UpdateFeesOriginationFee()
|
|
1338
1494
|
}
|
|
1339
1495
|
case "UpdateFeesFlashLoanFee": {
|
|
1340
1496
|
return new UpdateFeesFlashLoanFee()
|
|
@@ -1417,8 +1573,8 @@ export function fromJSON(
|
|
|
1417
1573
|
case "UpdateBorrowFactor": {
|
|
1418
1574
|
return new UpdateBorrowFactor()
|
|
1419
1575
|
}
|
|
1420
|
-
case "
|
|
1421
|
-
return new
|
|
1576
|
+
case "DeprecatedUpdateAssetTier": {
|
|
1577
|
+
return new DeprecatedUpdateAssetTier()
|
|
1422
1578
|
}
|
|
1423
1579
|
case "UpdateElevationGroup": {
|
|
1424
1580
|
return new UpdateElevationGroup()
|
|
@@ -1468,6 +1624,24 @@ export function fromJSON(
|
|
|
1468
1624
|
case "UpdateProtocolOrderExecutionFee": {
|
|
1469
1625
|
return new UpdateProtocolOrderExecutionFee()
|
|
1470
1626
|
}
|
|
1627
|
+
case "UpdateDebtMaturityTimestamp": {
|
|
1628
|
+
return new UpdateDebtMaturityTimestamp()
|
|
1629
|
+
}
|
|
1630
|
+
case "UpdateDebtTermSeconds": {
|
|
1631
|
+
return new UpdateDebtTermSeconds()
|
|
1632
|
+
}
|
|
1633
|
+
case "UpdateProposerAuthorityLock": {
|
|
1634
|
+
return new UpdateProposerAuthorityLock()
|
|
1635
|
+
}
|
|
1636
|
+
case "UpdateMinDeleveragingBonusBps": {
|
|
1637
|
+
return new UpdateMinDeleveragingBonusBps()
|
|
1638
|
+
}
|
|
1639
|
+
case "UpdateCanUnstakeLstCollateral": {
|
|
1640
|
+
return new UpdateCanUnstakeLstCollateral()
|
|
1641
|
+
}
|
|
1642
|
+
case "UpdateLtvLamportsMargin": {
|
|
1643
|
+
return new UpdateLtvLamportsMargin()
|
|
1644
|
+
}
|
|
1471
1645
|
}
|
|
1472
1646
|
}
|
|
1473
1647
|
|
|
@@ -1478,7 +1652,7 @@ export function layout(property?: string) {
|
|
|
1478
1652
|
borsh.struct([], "UpdateLiquidationThresholdPct"),
|
|
1479
1653
|
borsh.struct([], "UpdateProtocolLiquidationFee"),
|
|
1480
1654
|
borsh.struct([], "UpdateProtocolTakeRate"),
|
|
1481
|
-
borsh.struct([], "
|
|
1655
|
+
borsh.struct([], "UpdateFeesOriginationFee"),
|
|
1482
1656
|
borsh.struct([], "UpdateFeesFlashLoanFee"),
|
|
1483
1657
|
borsh.struct([], "DeprecatedUpdateFeesReferralFeeBps"),
|
|
1484
1658
|
borsh.struct([], "UpdateDepositLimit"),
|
|
@@ -1506,7 +1680,7 @@ export function layout(property?: string) {
|
|
|
1506
1680
|
borsh.struct([], "UpdateMinLiquidationBonusBps"),
|
|
1507
1681
|
borsh.struct([], "UpdateDeleveragingMarginCallPeriod"),
|
|
1508
1682
|
borsh.struct([], "UpdateBorrowFactor"),
|
|
1509
|
-
borsh.struct([], "
|
|
1683
|
+
borsh.struct([], "DeprecatedUpdateAssetTier"),
|
|
1510
1684
|
borsh.struct([], "UpdateElevationGroup"),
|
|
1511
1685
|
borsh.struct([], "UpdateDeleveragingThresholdDecreaseBpsPerDay"),
|
|
1512
1686
|
borsh.struct([], "DeprecatedUpdateMultiplierSideBoost"),
|
|
@@ -1523,6 +1697,12 @@ export function layout(property?: string) {
|
|
|
1523
1697
|
borsh.struct([], "UpdateAutodeleverageEnabled"),
|
|
1524
1698
|
borsh.struct([], "UpdateDeleveragingBonusIncreaseBpsPerDay"),
|
|
1525
1699
|
borsh.struct([], "UpdateProtocolOrderExecutionFee"),
|
|
1700
|
+
borsh.struct([], "UpdateDebtMaturityTimestamp"),
|
|
1701
|
+
borsh.struct([], "UpdateDebtTermSeconds"),
|
|
1702
|
+
borsh.struct([], "UpdateProposerAuthorityLock"),
|
|
1703
|
+
borsh.struct([], "UpdateMinDeleveragingBonusBps"),
|
|
1704
|
+
borsh.struct([], "UpdateCanUnstakeLstCollateral"),
|
|
1705
|
+
borsh.struct([], "UpdateLtvLamportsMargin"),
|
|
1526
1706
|
])
|
|
1527
1707
|
if (property !== undefined) {
|
|
1528
1708
|
return ret.replicate(property)
|
|
@@ -579,6 +579,236 @@ export class UpdateObligationOrderCreationEnabled {
|
|
|
579
579
|
}
|
|
580
580
|
}
|
|
581
581
|
|
|
582
|
+
export interface UpdateMatureReserveDebtLiquidationEnabledJSON {
|
|
583
|
+
kind: "UpdateMatureReserveDebtLiquidationEnabled"
|
|
584
|
+
}
|
|
585
|
+
|
|
586
|
+
export class UpdateMatureReserveDebtLiquidationEnabled {
|
|
587
|
+
static readonly discriminator = 25
|
|
588
|
+
static readonly kind = "UpdateMatureReserveDebtLiquidationEnabled"
|
|
589
|
+
readonly discriminator = 25
|
|
590
|
+
readonly kind = "UpdateMatureReserveDebtLiquidationEnabled"
|
|
591
|
+
|
|
592
|
+
toJSON(): UpdateMatureReserveDebtLiquidationEnabledJSON {
|
|
593
|
+
return {
|
|
594
|
+
kind: "UpdateMatureReserveDebtLiquidationEnabled",
|
|
595
|
+
}
|
|
596
|
+
}
|
|
597
|
+
|
|
598
|
+
toEncodable() {
|
|
599
|
+
return {
|
|
600
|
+
UpdateMatureReserveDebtLiquidationEnabled: {},
|
|
601
|
+
}
|
|
602
|
+
}
|
|
603
|
+
}
|
|
604
|
+
|
|
605
|
+
export interface UpdateObligationBorrowDebtTermLiquidationEnabledJSON {
|
|
606
|
+
kind: "UpdateObligationBorrowDebtTermLiquidationEnabled"
|
|
607
|
+
}
|
|
608
|
+
|
|
609
|
+
export class UpdateObligationBorrowDebtTermLiquidationEnabled {
|
|
610
|
+
static readonly discriminator = 26
|
|
611
|
+
static readonly kind = "UpdateObligationBorrowDebtTermLiquidationEnabled"
|
|
612
|
+
readonly discriminator = 26
|
|
613
|
+
readonly kind = "UpdateObligationBorrowDebtTermLiquidationEnabled"
|
|
614
|
+
|
|
615
|
+
toJSON(): UpdateObligationBorrowDebtTermLiquidationEnabledJSON {
|
|
616
|
+
return {
|
|
617
|
+
kind: "UpdateObligationBorrowDebtTermLiquidationEnabled",
|
|
618
|
+
}
|
|
619
|
+
}
|
|
620
|
+
|
|
621
|
+
toEncodable() {
|
|
622
|
+
return {
|
|
623
|
+
UpdateObligationBorrowDebtTermLiquidationEnabled: {},
|
|
624
|
+
}
|
|
625
|
+
}
|
|
626
|
+
}
|
|
627
|
+
|
|
628
|
+
export interface UpdateProposerAuthorityJSON {
|
|
629
|
+
kind: "UpdateProposerAuthority"
|
|
630
|
+
}
|
|
631
|
+
|
|
632
|
+
export class UpdateProposerAuthority {
|
|
633
|
+
static readonly discriminator = 27
|
|
634
|
+
static readonly kind = "UpdateProposerAuthority"
|
|
635
|
+
readonly discriminator = 27
|
|
636
|
+
readonly kind = "UpdateProposerAuthority"
|
|
637
|
+
|
|
638
|
+
toJSON(): UpdateProposerAuthorityJSON {
|
|
639
|
+
return {
|
|
640
|
+
kind: "UpdateProposerAuthority",
|
|
641
|
+
}
|
|
642
|
+
}
|
|
643
|
+
|
|
644
|
+
toEncodable() {
|
|
645
|
+
return {
|
|
646
|
+
UpdateProposerAuthority: {},
|
|
647
|
+
}
|
|
648
|
+
}
|
|
649
|
+
}
|
|
650
|
+
|
|
651
|
+
export interface UpdateBorrowOrderCreationEnabledJSON {
|
|
652
|
+
kind: "UpdateBorrowOrderCreationEnabled"
|
|
653
|
+
}
|
|
654
|
+
|
|
655
|
+
export class UpdateBorrowOrderCreationEnabled {
|
|
656
|
+
static readonly discriminator = 28
|
|
657
|
+
static readonly kind = "UpdateBorrowOrderCreationEnabled"
|
|
658
|
+
readonly discriminator = 28
|
|
659
|
+
readonly kind = "UpdateBorrowOrderCreationEnabled"
|
|
660
|
+
|
|
661
|
+
toJSON(): UpdateBorrowOrderCreationEnabledJSON {
|
|
662
|
+
return {
|
|
663
|
+
kind: "UpdateBorrowOrderCreationEnabled",
|
|
664
|
+
}
|
|
665
|
+
}
|
|
666
|
+
|
|
667
|
+
toEncodable() {
|
|
668
|
+
return {
|
|
669
|
+
UpdateBorrowOrderCreationEnabled: {},
|
|
670
|
+
}
|
|
671
|
+
}
|
|
672
|
+
}
|
|
673
|
+
|
|
674
|
+
export interface UpdateBorrowOrderExecutionEnabledJSON {
|
|
675
|
+
kind: "UpdateBorrowOrderExecutionEnabled"
|
|
676
|
+
}
|
|
677
|
+
|
|
678
|
+
export class UpdateBorrowOrderExecutionEnabled {
|
|
679
|
+
static readonly discriminator = 29
|
|
680
|
+
static readonly kind = "UpdateBorrowOrderExecutionEnabled"
|
|
681
|
+
readonly discriminator = 29
|
|
682
|
+
readonly kind = "UpdateBorrowOrderExecutionEnabled"
|
|
683
|
+
|
|
684
|
+
toJSON(): UpdateBorrowOrderExecutionEnabledJSON {
|
|
685
|
+
return {
|
|
686
|
+
kind: "UpdateBorrowOrderExecutionEnabled",
|
|
687
|
+
}
|
|
688
|
+
}
|
|
689
|
+
|
|
690
|
+
toEncodable() {
|
|
691
|
+
return {
|
|
692
|
+
UpdateBorrowOrderExecutionEnabled: {},
|
|
693
|
+
}
|
|
694
|
+
}
|
|
695
|
+
}
|
|
696
|
+
|
|
697
|
+
export interface UpdatePriceTriggeredLiquidationDisabledJSON {
|
|
698
|
+
kind: "UpdatePriceTriggeredLiquidationDisabled"
|
|
699
|
+
}
|
|
700
|
+
|
|
701
|
+
export class UpdatePriceTriggeredLiquidationDisabled {
|
|
702
|
+
static readonly discriminator = 30
|
|
703
|
+
static readonly kind = "UpdatePriceTriggeredLiquidationDisabled"
|
|
704
|
+
readonly discriminator = 30
|
|
705
|
+
readonly kind = "UpdatePriceTriggeredLiquidationDisabled"
|
|
706
|
+
|
|
707
|
+
toJSON(): UpdatePriceTriggeredLiquidationDisabledJSON {
|
|
708
|
+
return {
|
|
709
|
+
kind: "UpdatePriceTriggeredLiquidationDisabled",
|
|
710
|
+
}
|
|
711
|
+
}
|
|
712
|
+
|
|
713
|
+
toEncodable() {
|
|
714
|
+
return {
|
|
715
|
+
UpdatePriceTriggeredLiquidationDisabled: {},
|
|
716
|
+
}
|
|
717
|
+
}
|
|
718
|
+
}
|
|
719
|
+
|
|
720
|
+
export interface UpdateWithdrawTicketIssuanceEnabledJSON {
|
|
721
|
+
kind: "UpdateWithdrawTicketIssuanceEnabled"
|
|
722
|
+
}
|
|
723
|
+
|
|
724
|
+
export class UpdateWithdrawTicketIssuanceEnabled {
|
|
725
|
+
static readonly discriminator = 31
|
|
726
|
+
static readonly kind = "UpdateWithdrawTicketIssuanceEnabled"
|
|
727
|
+
readonly discriminator = 31
|
|
728
|
+
readonly kind = "UpdateWithdrawTicketIssuanceEnabled"
|
|
729
|
+
|
|
730
|
+
toJSON(): UpdateWithdrawTicketIssuanceEnabledJSON {
|
|
731
|
+
return {
|
|
732
|
+
kind: "UpdateWithdrawTicketIssuanceEnabled",
|
|
733
|
+
}
|
|
734
|
+
}
|
|
735
|
+
|
|
736
|
+
toEncodable() {
|
|
737
|
+
return {
|
|
738
|
+
UpdateWithdrawTicketIssuanceEnabled: {},
|
|
739
|
+
}
|
|
740
|
+
}
|
|
741
|
+
}
|
|
742
|
+
|
|
743
|
+
export interface UpdateWithdrawTicketRedemptionEnabledJSON {
|
|
744
|
+
kind: "UpdateWithdrawTicketRedemptionEnabled"
|
|
745
|
+
}
|
|
746
|
+
|
|
747
|
+
export class UpdateWithdrawTicketRedemptionEnabled {
|
|
748
|
+
static readonly discriminator = 32
|
|
749
|
+
static readonly kind = "UpdateWithdrawTicketRedemptionEnabled"
|
|
750
|
+
readonly discriminator = 32
|
|
751
|
+
readonly kind = "UpdateWithdrawTicketRedemptionEnabled"
|
|
752
|
+
|
|
753
|
+
toJSON(): UpdateWithdrawTicketRedemptionEnabledJSON {
|
|
754
|
+
return {
|
|
755
|
+
kind: "UpdateWithdrawTicketRedemptionEnabled",
|
|
756
|
+
}
|
|
757
|
+
}
|
|
758
|
+
|
|
759
|
+
toEncodable() {
|
|
760
|
+
return {
|
|
761
|
+
UpdateWithdrawTicketRedemptionEnabled: {},
|
|
762
|
+
}
|
|
763
|
+
}
|
|
764
|
+
}
|
|
765
|
+
|
|
766
|
+
export interface UpdateMinWithdrawQueuedLiquidityValueJSON {
|
|
767
|
+
kind: "UpdateMinWithdrawQueuedLiquidityValue"
|
|
768
|
+
}
|
|
769
|
+
|
|
770
|
+
export class UpdateMinWithdrawQueuedLiquidityValue {
|
|
771
|
+
static readonly discriminator = 33
|
|
772
|
+
static readonly kind = "UpdateMinWithdrawQueuedLiquidityValue"
|
|
773
|
+
readonly discriminator = 33
|
|
774
|
+
readonly kind = "UpdateMinWithdrawQueuedLiquidityValue"
|
|
775
|
+
|
|
776
|
+
toJSON(): UpdateMinWithdrawQueuedLiquidityValueJSON {
|
|
777
|
+
return {
|
|
778
|
+
kind: "UpdateMinWithdrawQueuedLiquidityValue",
|
|
779
|
+
}
|
|
780
|
+
}
|
|
781
|
+
|
|
782
|
+
toEncodable() {
|
|
783
|
+
return {
|
|
784
|
+
UpdateMinWithdrawQueuedLiquidityValue: {},
|
|
785
|
+
}
|
|
786
|
+
}
|
|
787
|
+
}
|
|
788
|
+
|
|
789
|
+
export interface UpdateUnstakingPoolStateJSON {
|
|
790
|
+
kind: "UpdateUnstakingPoolState"
|
|
791
|
+
}
|
|
792
|
+
|
|
793
|
+
export class UpdateUnstakingPoolState {
|
|
794
|
+
static readonly discriminator = 34
|
|
795
|
+
static readonly kind = "UpdateUnstakingPoolState"
|
|
796
|
+
readonly discriminator = 34
|
|
797
|
+
readonly kind = "UpdateUnstakingPoolState"
|
|
798
|
+
|
|
799
|
+
toJSON(): UpdateUnstakingPoolStateJSON {
|
|
800
|
+
return {
|
|
801
|
+
kind: "UpdateUnstakingPoolState",
|
|
802
|
+
}
|
|
803
|
+
}
|
|
804
|
+
|
|
805
|
+
toEncodable() {
|
|
806
|
+
return {
|
|
807
|
+
UpdateUnstakingPoolState: {},
|
|
808
|
+
}
|
|
809
|
+
}
|
|
810
|
+
}
|
|
811
|
+
|
|
582
812
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
583
813
|
export function fromDecoded(obj: any): types.UpdateLendingMarketModeKind {
|
|
584
814
|
if (typeof obj !== "object") {
|
|
@@ -660,6 +890,36 @@ export function fromDecoded(obj: any): types.UpdateLendingMarketModeKind {
|
|
|
660
890
|
if ("UpdateObligationOrderCreationEnabled" in obj) {
|
|
661
891
|
return new UpdateObligationOrderCreationEnabled()
|
|
662
892
|
}
|
|
893
|
+
if ("UpdateMatureReserveDebtLiquidationEnabled" in obj) {
|
|
894
|
+
return new UpdateMatureReserveDebtLiquidationEnabled()
|
|
895
|
+
}
|
|
896
|
+
if ("UpdateObligationBorrowDebtTermLiquidationEnabled" in obj) {
|
|
897
|
+
return new UpdateObligationBorrowDebtTermLiquidationEnabled()
|
|
898
|
+
}
|
|
899
|
+
if ("UpdateProposerAuthority" in obj) {
|
|
900
|
+
return new UpdateProposerAuthority()
|
|
901
|
+
}
|
|
902
|
+
if ("UpdateBorrowOrderCreationEnabled" in obj) {
|
|
903
|
+
return new UpdateBorrowOrderCreationEnabled()
|
|
904
|
+
}
|
|
905
|
+
if ("UpdateBorrowOrderExecutionEnabled" in obj) {
|
|
906
|
+
return new UpdateBorrowOrderExecutionEnabled()
|
|
907
|
+
}
|
|
908
|
+
if ("UpdatePriceTriggeredLiquidationDisabled" in obj) {
|
|
909
|
+
return new UpdatePriceTriggeredLiquidationDisabled()
|
|
910
|
+
}
|
|
911
|
+
if ("UpdateWithdrawTicketIssuanceEnabled" in obj) {
|
|
912
|
+
return new UpdateWithdrawTicketIssuanceEnabled()
|
|
913
|
+
}
|
|
914
|
+
if ("UpdateWithdrawTicketRedemptionEnabled" in obj) {
|
|
915
|
+
return new UpdateWithdrawTicketRedemptionEnabled()
|
|
916
|
+
}
|
|
917
|
+
if ("UpdateMinWithdrawQueuedLiquidityValue" in obj) {
|
|
918
|
+
return new UpdateMinWithdrawQueuedLiquidityValue()
|
|
919
|
+
}
|
|
920
|
+
if ("UpdateUnstakingPoolState" in obj) {
|
|
921
|
+
return new UpdateUnstakingPoolState()
|
|
922
|
+
}
|
|
663
923
|
|
|
664
924
|
throw new Error("Invalid enum object")
|
|
665
925
|
}
|
|
@@ -743,6 +1003,36 @@ export function fromJSON(
|
|
|
743
1003
|
case "UpdateObligationOrderCreationEnabled": {
|
|
744
1004
|
return new UpdateObligationOrderCreationEnabled()
|
|
745
1005
|
}
|
|
1006
|
+
case "UpdateMatureReserveDebtLiquidationEnabled": {
|
|
1007
|
+
return new UpdateMatureReserveDebtLiquidationEnabled()
|
|
1008
|
+
}
|
|
1009
|
+
case "UpdateObligationBorrowDebtTermLiquidationEnabled": {
|
|
1010
|
+
return new UpdateObligationBorrowDebtTermLiquidationEnabled()
|
|
1011
|
+
}
|
|
1012
|
+
case "UpdateProposerAuthority": {
|
|
1013
|
+
return new UpdateProposerAuthority()
|
|
1014
|
+
}
|
|
1015
|
+
case "UpdateBorrowOrderCreationEnabled": {
|
|
1016
|
+
return new UpdateBorrowOrderCreationEnabled()
|
|
1017
|
+
}
|
|
1018
|
+
case "UpdateBorrowOrderExecutionEnabled": {
|
|
1019
|
+
return new UpdateBorrowOrderExecutionEnabled()
|
|
1020
|
+
}
|
|
1021
|
+
case "UpdatePriceTriggeredLiquidationDisabled": {
|
|
1022
|
+
return new UpdatePriceTriggeredLiquidationDisabled()
|
|
1023
|
+
}
|
|
1024
|
+
case "UpdateWithdrawTicketIssuanceEnabled": {
|
|
1025
|
+
return new UpdateWithdrawTicketIssuanceEnabled()
|
|
1026
|
+
}
|
|
1027
|
+
case "UpdateWithdrawTicketRedemptionEnabled": {
|
|
1028
|
+
return new UpdateWithdrawTicketRedemptionEnabled()
|
|
1029
|
+
}
|
|
1030
|
+
case "UpdateMinWithdrawQueuedLiquidityValue": {
|
|
1031
|
+
return new UpdateMinWithdrawQueuedLiquidityValue()
|
|
1032
|
+
}
|
|
1033
|
+
case "UpdateUnstakingPoolState": {
|
|
1034
|
+
return new UpdateUnstakingPoolState()
|
|
1035
|
+
}
|
|
746
1036
|
}
|
|
747
1037
|
}
|
|
748
1038
|
|
|
@@ -773,6 +1063,16 @@ export function layout(property?: string) {
|
|
|
773
1063
|
borsh.struct([], "UpdateObligationOrderExecutionEnabled"),
|
|
774
1064
|
borsh.struct([], "UpdateImmutableFlag"),
|
|
775
1065
|
borsh.struct([], "UpdateObligationOrderCreationEnabled"),
|
|
1066
|
+
borsh.struct([], "UpdateMatureReserveDebtLiquidationEnabled"),
|
|
1067
|
+
borsh.struct([], "UpdateObligationBorrowDebtTermLiquidationEnabled"),
|
|
1068
|
+
borsh.struct([], "UpdateProposerAuthority"),
|
|
1069
|
+
borsh.struct([], "UpdateBorrowOrderCreationEnabled"),
|
|
1070
|
+
borsh.struct([], "UpdateBorrowOrderExecutionEnabled"),
|
|
1071
|
+
borsh.struct([], "UpdatePriceTriggeredLiquidationDisabled"),
|
|
1072
|
+
borsh.struct([], "UpdateWithdrawTicketIssuanceEnabled"),
|
|
1073
|
+
borsh.struct([], "UpdateWithdrawTicketRedemptionEnabled"),
|
|
1074
|
+
borsh.struct([], "UpdateMinWithdrawQueuedLiquidityValue"),
|
|
1075
|
+
borsh.struct([], "UpdateUnstakingPoolState"),
|
|
776
1076
|
])
|
|
777
1077
|
if (property !== undefined) {
|
|
778
1078
|
return ret.replicate(property)
|