File tree Expand file tree Collapse file tree 6 files changed +25
-10
lines changed
src/main/java/network/minter/blockchain Expand file tree Collapse file tree 6 files changed +25
-10
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ project build.gradle
24
24
``` groovy
25
25
26
26
ext {
27
- minterBlockchainSDK = "0.5.5 "
27
+ minterBlockchainSDK = "0.5.6 "
28
28
}
29
29
30
30
dependencies {
Original file line number Diff line number Diff line change 1
1
# Release notes
2
2
3
+ ## 0.5.6
4
+ - Changed ` stake ` to ` value ` in delegate/unbound transactions
5
+
3
6
## 0.5.5
4
7
- Fixed sending transaction: now blockchain requires 0x before transaction sign
5
8
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ apply plugin: 'com.jfrog.bintray'
58
58
59
59
60
60
group = ' network.minter.android'
61
- version = ' 0.5.5 '
61
+ version = ' 0.5.6 '
62
62
63
63
ext {
64
64
minterMinSdk = 16
Original file line number Diff line number Diff line change @@ -128,6 +128,9 @@ public static void initialize(String baseNodeApiUrl) {
128
128
}
129
129
130
130
public static MinterBlockChainApi getInstance () {
131
+ if (INSTANCE == null ) {
132
+ throw new IllegalStateException ("You forget to call MinterBlockchainApi.initialize" );
133
+ }
131
134
return INSTANCE ;
132
135
}
133
136
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright (C) by MinterTeam. 2018
2
+ * Copyright (C) by MinterTeam. 2019
3
3
* @link <a href="https://github.com/MinterTeam">Org Github</a>
4
4
* @link <a href="https://github.com/edwardstock">Maintainer Github</a>
5
5
*
@@ -301,18 +301,27 @@ public static class TxDelegateUnbondResult extends TxBaseResult {
301
301
@ SerializedName ("pub_key" )
302
302
public MinterPublicKey publicKey ;
303
303
public String coin ;
304
- public String stake ;
304
+ public String value ;
305
305
306
306
public MinterPublicKey getPublicKey () {
307
307
return publicKey ;
308
308
}
309
309
310
- public BigDecimal getStake () {
311
- if (stake == null || stake .isEmpty ()) {
312
- stake = "0" ;
310
+ public BigDecimal getValue () {
311
+ if (value == null || value .isEmpty ()) {
312
+ value = "0" ;
313
313
}
314
314
315
- return new BigDecimal (stake );
315
+ return new BigDecimal (value );
316
+ }
317
+
318
+ /**
319
+ * @return
320
+ * @deprecated use {@link #getValue()}
321
+ */
322
+ @ Deprecated
323
+ public BigDecimal getStake () {
324
+ return getValue ();
316
325
}
317
326
318
327
public String getCoin () {
Original file line number Diff line number Diff line change @@ -156,7 +156,7 @@ public TxDeclareCandidacy setCoin(String coinName) {
156
156
}
157
157
158
158
/**
159
- * Get normalized stake
159
+ * Get normalized value
160
160
*
161
161
* @return big decimal value
162
162
*/
@@ -170,7 +170,7 @@ public TxDeclareCandidacy setStake(String stakeBigInteger) {
170
170
}
171
171
172
172
/**
173
- * Get normalized stake in double value
173
+ * Get normalized value in double value
174
174
* Be carefully! Value can be overflowed
175
175
*
176
176
* @return normalized double value
You can’t perform that action at this time.
0 commit comments