@wireio/stake 0.1.2 → 0.1.3
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 -0
- package/lib/stake.browser.js.map +1 -1
- package/lib/stake.d.ts +2 -2
- package/lib/stake.js +5 -0
- package/lib/stake.js.map +1 -1
- package/lib/stake.m.js +5 -0
- package/lib/stake.m.js.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +1 -1
- package/src/networks/ethereum/ethereum.ts +10 -2
- package/src/staker/staker.ts +1 -1
- package/src/staker/types.ts +2 -2
package/lib/stake.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { PublicKey, ExternalNetwork, ChainID } from '@wireio/core';
|
|
|
3
3
|
import { BaseSignerWalletAdapter } from '@solana/wallet-adapter-base';
|
|
4
4
|
import * as _solana_web3_js from '@solana/web3.js';
|
|
5
5
|
import { PublicKey as PublicKey$1, Transaction, VersionedTransaction, TokenAmount, Connection, TransactionSignature, Keypair } from '@solana/web3.js';
|
|
6
|
-
import { ethers, BigNumberish,
|
|
6
|
+
import { BigNumber, ethers, BigNumberish, Signer, Contract } from 'ethers';
|
|
7
7
|
import { JsonFragment } from '@ethersproject/abi';
|
|
8
8
|
import { ErrorDescription } from '@ethersproject/abi/lib/interface';
|
|
9
9
|
import { AnchorProvider, Program, BN } from '@coral-xyz/anchor';
|
|
@@ -12,7 +12,7 @@ interface IStakingClient {
|
|
|
12
12
|
pubKey: PublicKey;
|
|
13
13
|
network: ExternalNetwork;
|
|
14
14
|
/** Amount is in the chain's smallest unit (lamports/wei, etc.) */
|
|
15
|
-
deposit(amount: number): Promise<string>;
|
|
15
|
+
deposit(amount: number | BigNumber): Promise<string>;
|
|
16
16
|
/** Register any untracked LIQ staked tokens */
|
|
17
17
|
/** Fetch the portfolio for the LIQ stake user */
|
|
18
18
|
getPortfolio(): Promise<Portfolio>;
|
package/lib/stake.js
CHANGED
|
@@ -13980,6 +13980,11 @@ class EthereumStakingClient {
|
|
|
13980
13980
|
decimals: liqDecimals,
|
|
13981
13981
|
symbol: liqSymbol
|
|
13982
13982
|
},
|
|
13983
|
+
tracked: {
|
|
13984
|
+
amount: liqBalance,
|
|
13985
|
+
decimals: liqDecimals,
|
|
13986
|
+
symbol: liqSymbol
|
|
13987
|
+
},
|
|
13983
13988
|
staked: {
|
|
13984
13989
|
amount: ethers.BigNumber.from(0),
|
|
13985
13990
|
decimals: liqDecimals,
|