@0dotxyz/p0-ts-sdk 1.0.0 → 1.0.1
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/README.md +7 -4
- package/dist/{dto-farm.types-D9Q3c7Q7.d.cts → dto-farm.types-DvTDZThL.d.cts} +101 -101
- package/dist/{dto-farm.types-D9Q3c7Q7.d.ts → dto-farm.types-DvTDZThL.d.ts} +101 -101
- package/dist/index.cjs +140 -142
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +139 -141
- package/dist/index.js.map +1 -1
- package/dist/vendor.cjs +115 -117
- 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 +111 -113
- package/dist/vendor.js.map +1 -1
- package/package.json +5 -5
package/dist/index.d.cts
CHANGED
|
@@ -2,10 +2,10 @@ import * as superstruct from 'superstruct';
|
|
|
2
2
|
import { Infer } from 'superstruct';
|
|
3
3
|
import * as _solana_web3_js from '@solana/web3.js';
|
|
4
4
|
import { VersionedTransaction, Transaction, PublicKey, TransactionError, TransactionInstruction, Keypair, Signer, AddressLookupTableAccount, Blockhash, TransactionMessage, Connection, AccountInfo } from '@solana/web3.js';
|
|
5
|
-
import { Idl, Instruction, AnchorProvider, Address, Program as Program$1
|
|
5
|
+
import { Idl, Instruction, AnchorProvider, Address, Program as Program$1 } from '@coral-xyz/anchor';
|
|
6
6
|
import BigNumber$1 from 'bignumber.js';
|
|
7
7
|
import BN from 'bn.js';
|
|
8
|
-
import { F as FeedResponse, R as ReserveRaw, O as ObligationRaw, a as FarmStateRaw, b as ReserveJSON, c as ObligationJSON, d as FarmStateJSON } from './dto-farm.types-
|
|
8
|
+
import { F as FeedResponse, R as ReserveRaw, O as ObligationRaw, a as FarmStateRaw, b as ReserveJSON, c as ObligationJSON, d as FarmStateJSON } from './dto-farm.types-DvTDZThL.cjs';
|
|
9
9
|
import { QuoteGetRequest, QuoteResponse } from '@jup-ag/api';
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -12631,16 +12631,16 @@ declare function toNumber(amount: Amount): number;
|
|
|
12631
12631
|
/**
|
|
12632
12632
|
* Converts a ui representation of a token amount into its native value as `BN`, given the specified mint decimal amount (default to 6 for USDC).
|
|
12633
12633
|
*/
|
|
12634
|
-
declare function toBigNumber(amount: Amount | BN
|
|
12634
|
+
declare function toBigNumber(amount: Amount | BN): BigNumber$1;
|
|
12635
12635
|
/**
|
|
12636
12636
|
* Converts a UI representation of a token amount into its native value as `BN`, given the specified mint decimal amount (default to 6 for USDC).
|
|
12637
12637
|
*/
|
|
12638
|
-
declare function uiToNative(amount: Amount, decimals: number): BN
|
|
12638
|
+
declare function uiToNative(amount: Amount, decimals: number): BN;
|
|
12639
12639
|
declare function uiToNativeBigNumber(amount: Amount, decimals: number): BigNumber$1;
|
|
12640
12640
|
/**
|
|
12641
12641
|
* Converts a native representation of a token amount into its UI value as `number`, given the specified mint decimal amount.
|
|
12642
12642
|
*/
|
|
12643
|
-
declare function nativeToUi(amount: Amount | BN
|
|
12643
|
+
declare function nativeToUi(amount: Amount | BN, decimals: number): number;
|
|
12644
12644
|
declare function shortenAddress(pubkey: Address, chars?: number): string;
|
|
12645
12645
|
/**
|
|
12646
12646
|
* Converts basis points (bps) to a decimal percentage value.
|
package/dist/index.d.ts
CHANGED
|
@@ -2,10 +2,10 @@ import * as superstruct from 'superstruct';
|
|
|
2
2
|
import { Infer } from 'superstruct';
|
|
3
3
|
import * as _solana_web3_js from '@solana/web3.js';
|
|
4
4
|
import { VersionedTransaction, Transaction, PublicKey, TransactionError, TransactionInstruction, Keypair, Signer, AddressLookupTableAccount, Blockhash, TransactionMessage, Connection, AccountInfo } from '@solana/web3.js';
|
|
5
|
-
import { Idl, Instruction, AnchorProvider, Address, Program as Program$1
|
|
5
|
+
import { Idl, Instruction, AnchorProvider, Address, Program as Program$1 } from '@coral-xyz/anchor';
|
|
6
6
|
import BigNumber$1 from 'bignumber.js';
|
|
7
7
|
import BN from 'bn.js';
|
|
8
|
-
import { F as FeedResponse, R as ReserveRaw, O as ObligationRaw, a as FarmStateRaw, b as ReserveJSON, c as ObligationJSON, d as FarmStateJSON } from './dto-farm.types-
|
|
8
|
+
import { F as FeedResponse, R as ReserveRaw, O as ObligationRaw, a as FarmStateRaw, b as ReserveJSON, c as ObligationJSON, d as FarmStateJSON } from './dto-farm.types-DvTDZThL.js';
|
|
9
9
|
import { QuoteGetRequest, QuoteResponse } from '@jup-ag/api';
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -12631,16 +12631,16 @@ declare function toNumber(amount: Amount): number;
|
|
|
12631
12631
|
/**
|
|
12632
12632
|
* Converts a ui representation of a token amount into its native value as `BN`, given the specified mint decimal amount (default to 6 for USDC).
|
|
12633
12633
|
*/
|
|
12634
|
-
declare function toBigNumber(amount: Amount | BN
|
|
12634
|
+
declare function toBigNumber(amount: Amount | BN): BigNumber$1;
|
|
12635
12635
|
/**
|
|
12636
12636
|
* Converts a UI representation of a token amount into its native value as `BN`, given the specified mint decimal amount (default to 6 for USDC).
|
|
12637
12637
|
*/
|
|
12638
|
-
declare function uiToNative(amount: Amount, decimals: number): BN
|
|
12638
|
+
declare function uiToNative(amount: Amount, decimals: number): BN;
|
|
12639
12639
|
declare function uiToNativeBigNumber(amount: Amount, decimals: number): BigNumber$1;
|
|
12640
12640
|
/**
|
|
12641
12641
|
* Converts a native representation of a token amount into its UI value as `number`, given the specified mint decimal amount.
|
|
12642
12642
|
*/
|
|
12643
|
-
declare function nativeToUi(amount: Amount | BN
|
|
12643
|
+
declare function nativeToUi(amount: Amount | BN, decimals: number): number;
|
|
12644
12644
|
declare function shortenAddress(pubkey: Address, chars?: number): string;
|
|
12645
12645
|
/**
|
|
12646
12646
|
* Converts basis points (bps) to a decimal percentage value.
|