-
Notifications
You must be signed in to change notification settings - Fork 7
/
AccountHoldable.java
57 lines (47 loc) · 990 Bytes
/
AccountHoldable.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
/*
* @copyright defined in LICENSE.txt
*/
package hera.wallet;
import hera.api.model.Account;
import hera.api.model.AccountState;
import hera.api.model.AccountTotalVote;
import hera.api.model.StakeInfo;
@Deprecated
public interface AccountHoldable {
/**
* Get a current account.
*
* @return an account
*/
Account getAccount();
/**
* Get state of current account.
*
* @return a state of current account
*/
AccountState getAccountState();
/**
* Get staking information of current account.
*
* @return a staking information of current account
*/
StakeInfo getStakingInfo();
/**
* Get votes which current account votes for.
*
* @return votes list
*/
AccountTotalVote getVotes();
/**
* Get recently used nonce value.
*
* @return a recently used nonce
*/
long getRecentlyUsedNonce();
/**
* Increment an nonce and get it.
*
* @return an incremented nonce
*/
long incrementAndGetNonce();
}