@wireio/stake 0.3.0 → 0.3.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/lib/stake.browser.js +5 -5
- package/lib/stake.browser.js.map +1 -1
- package/lib/stake.d.ts +3 -4
- package/lib/stake.js +5 -5
- package/lib/stake.js.map +1 -1
- package/lib/stake.m.js +5 -5
- package/lib/stake.m.js.map +1 -1
- package/package.json +1 -1
- package/src/networks/ethereum/utils.ts +1 -1
- package/src/networks/solana/solana.ts +2 -1
- package/src/networks/solana/types.ts +2 -3
- package/src/networks/solana/utils.ts +5 -5
- package/src/types.ts +1 -1
package/lib/stake.browser.js
CHANGED
|
@@ -5818,7 +5818,7 @@ function buildSolanaTrancheSnapshot(options) {
|
|
|
5818
5818
|
const currentTranche = trancheState.currentTrancheNumber.toNumber();
|
|
5819
5819
|
const currentTrancheSupply = toBigint(trancheState.currentTrancheSupply);
|
|
5820
5820
|
const initialTrancheSupply = toBigint(trancheState.initialTrancheSupply);
|
|
5821
|
-
const
|
|
5821
|
+
const totalWarrantsSold = toBigint(trancheState.totalWarrantsSold);
|
|
5822
5822
|
const currentPriceUsd = toBigint(trancheState.currentTranchePriceUsd);
|
|
5823
5823
|
const supplyGrowthBps = trancheState.supplyGrowthBps;
|
|
5824
5824
|
const priceGrowthBps = trancheState.priceGrowthBps;
|
|
@@ -5828,7 +5828,7 @@ function buildSolanaTrancheSnapshot(options) {
|
|
|
5828
5828
|
currentTranche,
|
|
5829
5829
|
initialTrancheSupply,
|
|
5830
5830
|
currentTrancheSupply,
|
|
5831
|
-
|
|
5831
|
+
totalWarrantsSold,
|
|
5832
5832
|
currentPriceUsd,
|
|
5833
5833
|
supplyGrowthBps,
|
|
5834
5834
|
priceGrowthBps,
|
|
@@ -5845,7 +5845,7 @@ function buildSolanaTrancheSnapshot(options) {
|
|
|
5845
5845
|
priceGrowthBps,
|
|
5846
5846
|
currentTrancheSupply,
|
|
5847
5847
|
initialTrancheSupply,
|
|
5848
|
-
|
|
5848
|
+
totalWarrantsSold,
|
|
5849
5849
|
nativePriceUsd: solPriceUsd,
|
|
5850
5850
|
nativePriceTimestamp,
|
|
5851
5851
|
ladder
|
|
@@ -6701,7 +6701,7 @@ class SolanaStakingClient {
|
|
|
6701
6701
|
const trancheState = snapshot?.trancheState ?? null;
|
|
6702
6702
|
const globalState = snapshot?.globalState ?? null;
|
|
6703
6703
|
const stakedAmountStr = wireReceipt?.stakedLiqsol?.toString() ?? "0";
|
|
6704
|
-
const wireSharesStr = userWarrantRecord?.
|
|
6704
|
+
const wireSharesStr = userWarrantRecord?.totalWarrantsPurchased?.toString() ?? "0";
|
|
6705
6705
|
return {
|
|
6706
6706
|
native: {
|
|
6707
6707
|
amount: BigInt(nativeLamports),
|
|
@@ -25876,7 +25876,7 @@ async function buildEthereumTrancheSnapshot(options) {
|
|
|
25876
25876
|
priceGrowthBps,
|
|
25877
25877
|
currentTrancheSupply,
|
|
25878
25878
|
initialTrancheSupply,
|
|
25879
|
-
|
|
25879
|
+
totalWarrantsSold: totalTrancheSupply,
|
|
25880
25880
|
nativePriceUsd: ethPriceUsd,
|
|
25881
25881
|
nativePriceTimestamp,
|
|
25882
25882
|
ladder
|