# RewardPoolDepositHelper
RewardPoolDepositHelper
allows to easily create a DepositRewardPool
object.
# Provided Operations
fromWallet
, creates aRewardPoolDeposit
from the givenwallet
, and depositamount
.N.B.:
amount
is a list.static RewardPoolDeposit fromWallet({ required Wallet wallet, required List<StdCoin> amount, })
1
2
3
4
# Usage examples
final wallet = Wallet.derive(mnemonic, networkInfo);
final depositAmount = [
StdCoin(
denom: 'uccc',
amount: '10',
),
];
final rewardPoolDeposit = RewardPoolDepositHelper.fromWallet(
wallet: wallet,
amount: depositAmount,
);
1
2
3
4
5
6
7
8
9
10
11
2
3
4
5
6
7
8
9
10
11