@0dotxyz/p0-ts-sdk 2.4.1 → 2.4.2
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/{dto-rate-model.types-CfqbDcgG.d.cts → dto-rate-model.types-IT8wckYH.d.cts} +7 -38
- package/dist/{dto-rate-model.types-CfqbDcgG.d.ts → dto-rate-model.types-IT8wckYH.d.ts} +7 -38
- package/dist/index.cjs +4 -32
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +4 -32
- package/dist/index.js.map +1 -1
- package/dist/instructions.d.cts +2 -2
- package/dist/instructions.d.ts +2 -2
- package/dist/{types-BnW15JjT.d.cts → types-BkXrDBCr.d.cts} +1 -1
- package/dist/{types-CviIoob4.d.ts → types-Ci3ayYQ2.d.ts} +1 -1
- package/dist/vendor.cjs +4 -32
- package/dist/vendor.cjs.map +1 -1
- package/dist/vendor.d.cts +2 -2
- package/dist/vendor.d.ts +2 -2
- package/dist/vendor.js +4 -32
- package/dist/vendor.js.map +1 -1
- package/package.json +1 -1
package/dist/instructions.d.cts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as _solana_web3_js from '@solana/web3.js';
|
|
2
2
|
import { PublicKey, AccountMeta } from '@solana/web3.js';
|
|
3
3
|
import BN from 'bn.js';
|
|
4
|
-
import { M as MarginfiProgram, B as BankConfigCompactRaw, a as BankConfigOptRaw } from './types-
|
|
4
|
+
import { M as MarginfiProgram, B as BankConfigCompactRaw, a as BankConfigOptRaw } from './types-BkXrDBCr.cjs';
|
|
5
5
|
import '@coral-xyz/anchor';
|
|
6
6
|
import 'bignumber.js';
|
|
7
|
-
import './dto-rate-model.types-
|
|
7
|
+
import './dto-rate-model.types-IT8wckYH.cjs';
|
|
8
8
|
|
|
9
9
|
declare function makeInitMarginfiAccountIx(mfProgram: MarginfiProgram, accounts: {
|
|
10
10
|
marginfiGroup: PublicKey;
|
package/dist/instructions.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as _solana_web3_js from '@solana/web3.js';
|
|
2
2
|
import { PublicKey, AccountMeta } from '@solana/web3.js';
|
|
3
3
|
import BN from 'bn.js';
|
|
4
|
-
import { M as MarginfiProgram, B as BankConfigCompactRaw, a as BankConfigOptRaw } from './types-
|
|
4
|
+
import { M as MarginfiProgram, B as BankConfigCompactRaw, a as BankConfigOptRaw } from './types-Ci3ayYQ2.js';
|
|
5
5
|
import '@coral-xyz/anchor';
|
|
6
6
|
import 'bignumber.js';
|
|
7
|
-
import './dto-rate-model.types-
|
|
7
|
+
import './dto-rate-model.types-IT8wckYH.js';
|
|
8
8
|
|
|
9
9
|
declare function makeInitMarginfiAccountIx(mfProgram: MarginfiProgram, accounts: {
|
|
10
10
|
marginfiGroup: PublicKey;
|
|
@@ -2,7 +2,7 @@ import { PublicKey, Transaction, VersionedTransaction } from '@solana/web3.js';
|
|
|
2
2
|
import { Idl, Program as Program$1, AnchorProvider } from '@coral-xyz/anchor';
|
|
3
3
|
import BN from 'bn.js';
|
|
4
4
|
import BigNumber$1 from 'bignumber.js';
|
|
5
|
-
import { K as KaminoReserve, a as KaminoObligation, b as KaminoFarmState, D as DriftSpotMarket, c as DriftUser, d as DriftRewards, e as DriftUserStats, J as JupLendingState, f as JupTokenReserve, g as JupLendingRewardsRateModel, h as JupRateModel, i as KaminoReserveJSON, j as KaminoObligationJSON, k as KaminoFarmStateJSON, l as DriftSpotMarketJSON, m as DriftUserJSON, n as DriftRewardsJSON, o as DriftUserStatsJSON, p as JupLendingStateJSON, q as JupTokenReserveJSON, r as JupLendingRewardsRateModelJSON, s as JupRateModelJSON } from './dto-rate-model.types-
|
|
5
|
+
import { K as KaminoReserve, a as KaminoObligation, b as KaminoFarmState, D as DriftSpotMarket, c as DriftUser, d as DriftRewards, e as DriftUserStats, J as JupLendingState, f as JupTokenReserve, g as JupLendingRewardsRateModel, h as JupRateModel, i as KaminoReserveJSON, j as KaminoObligationJSON, k as KaminoFarmStateJSON, l as DriftSpotMarketJSON, m as DriftUserJSON, n as DriftRewardsJSON, o as DriftUserStatsJSON, p as JupLendingStateJSON, q as JupTokenReserveJSON, r as JupLendingRewardsRateModelJSON, s as JupRateModelJSON } from './dto-rate-model.types-IT8wckYH.cjs';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Program IDL in camelCase format in order to be used in JS/TS.
|
|
@@ -2,7 +2,7 @@ import { PublicKey, Transaction, VersionedTransaction } from '@solana/web3.js';
|
|
|
2
2
|
import { Idl, Program as Program$1, AnchorProvider } from '@coral-xyz/anchor';
|
|
3
3
|
import BN from 'bn.js';
|
|
4
4
|
import BigNumber$1 from 'bignumber.js';
|
|
5
|
-
import { K as KaminoReserve, a as KaminoObligation, b as KaminoFarmState, D as DriftSpotMarket, c as DriftUser, d as DriftRewards, e as DriftUserStats, J as JupLendingState, f as JupTokenReserve, g as JupLendingRewardsRateModel, h as JupRateModel, i as KaminoReserveJSON, j as KaminoObligationJSON, k as KaminoFarmStateJSON, l as DriftSpotMarketJSON, m as DriftUserJSON, n as DriftRewardsJSON, o as DriftUserStatsJSON, p as JupLendingStateJSON, q as JupTokenReserveJSON, r as JupLendingRewardsRateModelJSON, s as JupRateModelJSON } from './dto-rate-model.types-
|
|
5
|
+
import { K as KaminoReserve, a as KaminoObligation, b as KaminoFarmState, D as DriftSpotMarket, c as DriftUser, d as DriftRewards, e as DriftUserStats, J as JupLendingState, f as JupTokenReserve, g as JupLendingRewardsRateModel, h as JupRateModel, i as KaminoReserveJSON, j as KaminoObligationJSON, k as KaminoFarmStateJSON, l as DriftSpotMarketJSON, m as DriftUserJSON, n as DriftRewardsJSON, o as DriftUserStatsJSON, p as JupLendingStateJSON, q as JupTokenReserveJSON, r as JupLendingRewardsRateModelJSON, s as JupRateModelJSON } from './dto-rate-model.types-IT8wckYH.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Program IDL in camelCase format in order to be used in JS/TS.
|
package/dist/vendor.cjs
CHANGED
|
@@ -31002,41 +31002,27 @@ function jupLendingStateRawToDto(raw) {
|
|
|
31002
31002
|
function jupTokenReserveRawToDto(raw) {
|
|
31003
31003
|
return {
|
|
31004
31004
|
pubkey: raw.pubkey.toBase58(),
|
|
31005
|
-
mint: raw.mint.toBase58(),
|
|
31006
|
-
vault: raw.vault.toBase58(),
|
|
31007
31005
|
borrowRate: raw.borrowRate,
|
|
31008
31006
|
feeOnInterest: raw.feeOnInterest,
|
|
31009
31007
|
lastUtilization: raw.lastUtilization,
|
|
31010
|
-
lastUpdateTimestamp: raw.lastUpdateTimestamp.toString(),
|
|
31011
31008
|
supplyExchangePrice: raw.supplyExchangePrice.toString(),
|
|
31012
31009
|
borrowExchangePrice: raw.borrowExchangePrice.toString(),
|
|
31013
|
-
maxUtilization: raw.maxUtilization,
|
|
31014
31010
|
totalSupplyWithInterest: raw.totalSupplyWithInterest.toString(),
|
|
31015
31011
|
totalSupplyInterestFree: raw.totalSupplyInterestFree.toString(),
|
|
31016
31012
|
totalBorrowWithInterest: raw.totalBorrowWithInterest.toString(),
|
|
31017
|
-
totalBorrowInterestFree: raw.totalBorrowInterestFree.toString()
|
|
31018
|
-
totalClaimAmount: raw.totalClaimAmount.toString(),
|
|
31019
|
-
interactingProtocol: raw.interactingProtocol.toBase58(),
|
|
31020
|
-
interactingTimestamp: raw.interactingTimestamp.toString(),
|
|
31021
|
-
interactingBalance: raw.interactingBalance.toString()
|
|
31013
|
+
totalBorrowInterestFree: raw.totalBorrowInterestFree.toString()
|
|
31022
31014
|
};
|
|
31023
31015
|
}
|
|
31024
31016
|
function jupLendingRewardsRateModelRawToDto(raw) {
|
|
31025
31017
|
return {
|
|
31026
|
-
pubkey: raw.pubkey.toBase58(),
|
|
31027
|
-
mint: raw.mint.toBase58(),
|
|
31028
31018
|
startTvl: raw.startTvl.toString(),
|
|
31029
31019
|
duration: raw.duration.toString(),
|
|
31030
31020
|
startTime: raw.startTime.toString(),
|
|
31031
|
-
yearlyReward: raw.yearlyReward.toString()
|
|
31032
|
-
nextDuration: raw.nextDuration.toString(),
|
|
31033
|
-
nextRewardAmount: raw.nextRewardAmount.toString()
|
|
31021
|
+
yearlyReward: raw.yearlyReward.toString()
|
|
31034
31022
|
};
|
|
31035
31023
|
}
|
|
31036
31024
|
function jupRateModelRawToDto(raw) {
|
|
31037
31025
|
return {
|
|
31038
|
-
pubkey: raw.pubkey.toBase58(),
|
|
31039
|
-
mint: raw.mint.toBase58(),
|
|
31040
31026
|
version: raw.version,
|
|
31041
31027
|
rateAtZero: raw.rateAtZero,
|
|
31042
31028
|
kink1Utilization: raw.kink1Utilization,
|
|
@@ -31193,41 +31179,27 @@ function dtoToJupLendingStateRaw(dto) {
|
|
|
31193
31179
|
function dtoToJupTokenReserveRaw(dto) {
|
|
31194
31180
|
return {
|
|
31195
31181
|
pubkey: new web3_js.PublicKey(dto.pubkey),
|
|
31196
|
-
mint: new web3_js.PublicKey(dto.mint),
|
|
31197
|
-
vault: new web3_js.PublicKey(dto.vault),
|
|
31198
31182
|
borrowRate: dto.borrowRate,
|
|
31199
31183
|
feeOnInterest: dto.feeOnInterest,
|
|
31200
31184
|
lastUtilization: dto.lastUtilization,
|
|
31201
|
-
lastUpdateTimestamp: new BN5__default.default(dto.lastUpdateTimestamp),
|
|
31202
31185
|
supplyExchangePrice: new BN5__default.default(dto.supplyExchangePrice),
|
|
31203
31186
|
borrowExchangePrice: new BN5__default.default(dto.borrowExchangePrice),
|
|
31204
|
-
maxUtilization: dto.maxUtilization,
|
|
31205
31187
|
totalSupplyWithInterest: new BN5__default.default(dto.totalSupplyWithInterest),
|
|
31206
31188
|
totalSupplyInterestFree: new BN5__default.default(dto.totalSupplyInterestFree),
|
|
31207
31189
|
totalBorrowWithInterest: new BN5__default.default(dto.totalBorrowWithInterest),
|
|
31208
|
-
totalBorrowInterestFree: new BN5__default.default(dto.totalBorrowInterestFree)
|
|
31209
|
-
totalClaimAmount: new BN5__default.default(dto.totalClaimAmount),
|
|
31210
|
-
interactingProtocol: new web3_js.PublicKey(dto.interactingProtocol),
|
|
31211
|
-
interactingTimestamp: new BN5__default.default(dto.interactingTimestamp),
|
|
31212
|
-
interactingBalance: new BN5__default.default(dto.interactingBalance)
|
|
31190
|
+
totalBorrowInterestFree: new BN5__default.default(dto.totalBorrowInterestFree)
|
|
31213
31191
|
};
|
|
31214
31192
|
}
|
|
31215
31193
|
function dtoToJupLendingRewardsRateModelRaw(dto) {
|
|
31216
31194
|
return {
|
|
31217
|
-
pubkey: new web3_js.PublicKey(dto.pubkey),
|
|
31218
|
-
mint: new web3_js.PublicKey(dto.mint),
|
|
31219
31195
|
startTvl: new BN5__default.default(dto.startTvl),
|
|
31220
31196
|
duration: new BN5__default.default(dto.duration),
|
|
31221
31197
|
startTime: new BN5__default.default(dto.startTime),
|
|
31222
|
-
yearlyReward: new BN5__default.default(dto.yearlyReward)
|
|
31223
|
-
nextDuration: new BN5__default.default(dto.nextDuration),
|
|
31224
|
-
nextRewardAmount: new BN5__default.default(dto.nextRewardAmount)
|
|
31198
|
+
yearlyReward: new BN5__default.default(dto.yearlyReward)
|
|
31225
31199
|
};
|
|
31226
31200
|
}
|
|
31227
31201
|
function dtoToJupRateModelRaw(dto) {
|
|
31228
31202
|
return {
|
|
31229
|
-
pubkey: new web3_js.PublicKey(dto.pubkey),
|
|
31230
|
-
mint: new web3_js.PublicKey(dto.mint),
|
|
31231
31203
|
version: dto.version,
|
|
31232
31204
|
rateAtZero: dto.rateAtZero,
|
|
31233
31205
|
kink1Utilization: dto.kink1Utilization,
|