77import mobi .appcent .helium .response .validator .ValidatorsResponse ;
88import okhttp3 .Call ;
99
10- import java . io . IOException ;
10+ import mobi . appcent . helium . exception . ApiException ;
1111import java .lang .reflect .Type ;
1212import java .util .ArrayList ;
1313import java .util .Collections ;
@@ -21,111 +21,106 @@ public static AccountApi getInstance() {
2121 return new AccountApi ();
2222 }
2323
24- @ Override
25- String path () {
26- return BASE_URL + "/accounts" ;
27- }
28-
2924 //region getAccounts
3025 @ Override
31- public AccountsRequest getAccounts () throws IOException {
26+ public AccountsRequest getAccounts () {
3227 return new AccountsRequest (sdkClient );
3328 }
3429 //endregion
3530
3631 //region getRichestAccounts
3732 @ Override
38- public RichestAccountsRequest getRichestAccounts () throws IOException {
33+ public RichestAccountsRequest getRichestAccounts () {
3934 return new RichestAccountsRequest (sdkClient );
4035 }
4136 //endregion
4237
4338 //region getAccountForAddress
4439 @ Override
45- public AccountForAddressRequest getAccountForAddress (String address ) throws IOException {
40+ public AccountForAddressRequest getAccountForAddress (String address ) {
4641 return new AccountForAddressRequest (sdkClient , address );
4742 }
4843 //endregion
4944
5045 //region getHotspotsForAccount
5146 @ Override
52- public HotspotsForAccountRequest getHotspotsForAccount (String address ) throws IOException {
47+ public HotspotsForAccountRequest getHotspotsForAccount (String address ) {
5348 return new HotspotsForAccountRequest (sdkClient , address );
5449 }
5550 //endregion
5651
5752 //region getValidatorsForAccount
5853 @ Override
59- public ValidatorsForAccountRequest getValidatorsForAccount (String address ) throws IOException {
54+ public ValidatorsForAccountRequest getValidatorsForAccount (String address ) {
6055 return new ValidatorsForAccountRequest (sdkClient , address );
6156 }
6257 //endregion
6358
6459 //region getOUIsForAccount
6560 @ Override
66- public OUIsForAccountRequest getOUIsForAccount (String address ) throws IOException {
61+ public OUIsForAccountRequest getOUIsForAccount (String address ) {
6762 return new OUIsForAccountRequest (sdkClient , address );
6863 }
6964 //endregion
7065
7166 //region getRolesForAccount
7267 @ Override
73- public RolesForAccountRequest getRolesForAccount (String address ) throws IOException {
68+ public RolesForAccountRequest getRolesForAccount (String address ) {
7469 return new RolesForAccountRequest (sdkClient , address );
7570 }
7671 //endregion
7772
7873 //region getRolesCountsForAccount
7974 @ Override
80- public RolesCountsForAccountRequest getRolesCountsForAccount (String address ) throws IOException {
75+ public RolesCountsForAccountRequest getRolesCountsForAccount (String address ){
8176 return new RolesCountsForAccountRequest (sdkClient , address );
8277 }
8378 //endregion
8479
8580 //region getElectionsForAccount
8681 @ Override
87- public ElectionsForAccountRequest getElectionsForAccount (String address ) throws IOException {
82+ public ElectionsForAccountRequest getElectionsForAccount (String address ){
8883 return new ElectionsForAccountRequest (sdkClient , address );
8984 }
9085 //endregion
9186
9287 //region getChallengesForAccount
9388 @ Override
94- public ChallengesForAccountRequest getChallengesForAccount (String address ) throws IOException {
89+ public ChallengesForAccountRequest getChallengesForAccount (String address ){
9590 return new ChallengesForAccountRequest (sdkClient , address );
9691 }
9792 //endregion
9893
9994 //region getPendingTransactionsForAccount
10095 @ Override
101- public PendingTransactionsForAccountRequest getPendingTransactionsForAccount (String address ) throws IOException {
96+ public PendingTransactionsForAccountRequest getPendingTransactionsForAccount (String address ){
10297 return new PendingTransactionsForAccountRequest (sdkClient , address );
10398 }
10499 //endregion
105100
106101 //region getRewardsForAccount
107102 @ Override
108- public RewardsForAccountRequest getRewardsForAccount (String address , String minTime ) throws IOException {
103+ public RewardsForAccountRequest getRewardsForAccount (String address , String minTime ){
109104 return new RewardsForAccountRequest (sdkClient , address , minTime );
110105 }
111106 //endregion
112107
113108 //region getRewardsByRewardsBlockForAccount
114109 @ Override
115- public RewardsByRewardsBlockForAccountRequest getRewardsByRewardsBlockForAccount (String address , String block ) throws IOException {
110+ public RewardsByRewardsBlockForAccountRequest getRewardsByRewardsBlockForAccount (String address , String block ){
116111 return new RewardsByRewardsBlockForAccountRequest (sdkClient , address , block );
117112 }
118113 //endregion
119114
120115 //region getRewardTotalsForAccount
121116 @ Override
122- public RewardTotalsForAccountRequest getRewardTotalsForAccount (String address , String minTime ) throws IOException {
117+ public RewardTotalsForAccountRequest getRewardTotalsForAccount (String address , String minTime ){
123118 return new RewardTotalsForAccountRequest (sdkClient , address , minTime );
124119 }
125120 //endregion
126121
127122 //TODO: 500 response
128- private String getStatsForAccount (String address ) throws IOException {
123+ private String getStatsForAccount (String address ){
129124 return null ;
130125 }
131126}
0 commit comments