@0dotxyz/p0-ts-sdk 2.3.2 → 2.4.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/dto-rate-model.types-DWB7J91n.d.cts +860 -0
- package/dist/dto-rate-model.types-DWB7J91n.d.ts +860 -0
- package/dist/index.cjs +353 -738
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +99 -20
- package/dist/index.d.ts +99 -20
- package/dist/index.js +345 -737
- package/dist/index.js.map +1 -1
- package/dist/instructions.d.cts +2 -2
- package/dist/instructions.d.ts +2 -2
- package/dist/{types-Cxl2AUvk.d.ts → types-DDP4jEc9.d.cts} +10 -10
- package/dist/{types-DtUR-yHt.d.cts → types-rBQYamIi.d.ts} +10 -10
- package/dist/vendor.cjs +256 -722
- package/dist/vendor.cjs.map +1 -1
- package/dist/vendor.d.cts +605 -26
- package/dist/vendor.d.ts +605 -26
- package/dist/vendor.js +247 -713
- package/dist/vendor.js.map +1 -1
- package/package.json +1 -1
- package/dist/dto-rate-model.types-DveIB9Ll.d.cts +0 -1726
- package/dist/dto-rate-model.types-DveIB9Ll.d.ts +0 -1726
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-DDP4jEc9.cjs';
|
|
5
5
|
import '@coral-xyz/anchor';
|
|
6
6
|
import 'bignumber.js';
|
|
7
|
-
import './dto-rate-model.types-
|
|
7
|
+
import './dto-rate-model.types-DWB7J91n.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-rBQYamIi.js';
|
|
5
5
|
import '@coral-xyz/anchor';
|
|
6
6
|
import 'bignumber.js';
|
|
7
|
-
import './dto-rate-model.types-
|
|
7
|
+
import './dto-rate-model.types-DWB7J91n.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 {
|
|
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-DWB7J91n.cjs';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Program IDL in camelCase format in order to be used in JS/TS.
|
|
@@ -15379,15 +15379,15 @@ declare enum AccountType {
|
|
|
15379
15379
|
Bank = "bank"
|
|
15380
15380
|
}
|
|
15381
15381
|
type KaminoStates = {
|
|
15382
|
-
reserveState:
|
|
15383
|
-
obligationState:
|
|
15384
|
-
farmState?:
|
|
15382
|
+
reserveState: KaminoReserve;
|
|
15383
|
+
obligationState: KaminoObligation;
|
|
15384
|
+
farmState?: KaminoFarmState;
|
|
15385
15385
|
};
|
|
15386
15386
|
type BankIntegrationMetadata = {
|
|
15387
15387
|
kaminoStates?: {
|
|
15388
|
-
reserveState:
|
|
15389
|
-
obligationState:
|
|
15390
|
-
farmState?:
|
|
15388
|
+
reserveState: KaminoReserve;
|
|
15389
|
+
obligationState: KaminoObligation;
|
|
15390
|
+
farmState?: KaminoFarmState;
|
|
15391
15391
|
};
|
|
15392
15392
|
driftStates?: {
|
|
15393
15393
|
spotMarketState: DriftSpotMarket;
|
|
@@ -15405,9 +15405,9 @@ type BankIntegrationMetadata = {
|
|
|
15405
15405
|
};
|
|
15406
15406
|
type BankIntegrationMetadataDto = {
|
|
15407
15407
|
kaminoStates?: {
|
|
15408
|
-
reserveState:
|
|
15409
|
-
obligationState:
|
|
15410
|
-
farmState?:
|
|
15408
|
+
reserveState: KaminoReserveJSON;
|
|
15409
|
+
obligationState: KaminoObligationJSON;
|
|
15410
|
+
farmState?: KaminoFarmStateJSON;
|
|
15411
15411
|
};
|
|
15412
15412
|
driftStates?: {
|
|
15413
15413
|
spotMarketState: DriftSpotMarketJSON;
|
|
@@ -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 {
|
|
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-DWB7J91n.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Program IDL in camelCase format in order to be used in JS/TS.
|
|
@@ -15379,15 +15379,15 @@ declare enum AccountType {
|
|
|
15379
15379
|
Bank = "bank"
|
|
15380
15380
|
}
|
|
15381
15381
|
type KaminoStates = {
|
|
15382
|
-
reserveState:
|
|
15383
|
-
obligationState:
|
|
15384
|
-
farmState?:
|
|
15382
|
+
reserveState: KaminoReserve;
|
|
15383
|
+
obligationState: KaminoObligation;
|
|
15384
|
+
farmState?: KaminoFarmState;
|
|
15385
15385
|
};
|
|
15386
15386
|
type BankIntegrationMetadata = {
|
|
15387
15387
|
kaminoStates?: {
|
|
15388
|
-
reserveState:
|
|
15389
|
-
obligationState:
|
|
15390
|
-
farmState?:
|
|
15388
|
+
reserveState: KaminoReserve;
|
|
15389
|
+
obligationState: KaminoObligation;
|
|
15390
|
+
farmState?: KaminoFarmState;
|
|
15391
15391
|
};
|
|
15392
15392
|
driftStates?: {
|
|
15393
15393
|
spotMarketState: DriftSpotMarket;
|
|
@@ -15405,9 +15405,9 @@ type BankIntegrationMetadata = {
|
|
|
15405
15405
|
};
|
|
15406
15406
|
type BankIntegrationMetadataDto = {
|
|
15407
15407
|
kaminoStates?: {
|
|
15408
|
-
reserveState:
|
|
15409
|
-
obligationState:
|
|
15410
|
-
farmState?:
|
|
15408
|
+
reserveState: KaminoReserveJSON;
|
|
15409
|
+
obligationState: KaminoObligationJSON;
|
|
15410
|
+
farmState?: KaminoFarmStateJSON;
|
|
15411
15411
|
};
|
|
15412
15412
|
driftStates?: {
|
|
15413
15413
|
spotMarketState: DriftSpotMarketJSON;
|