@@ -100,6 +100,13 @@ private static class DynamicResourceProperties {
100100
101101 private static final byte [] ASSET_ISSUE_FEE = "ASSET_ISSUE_FEE" .getBytes ();
102102
103+ private static final byte [] UPDATE_ACCOUNT_PERMISSION_FEE = "UPDATE_ACCOUNT_PERMISSION_FEE"
104+ .getBytes ();
105+
106+ private static final byte [] MULTI_SIGN_FEE = "MULTI_SIGN_FEE"
107+ .getBytes ();
108+
109+
103110 private static final byte [] EXCHANGE_CREATE_FEE = "EXCHANGE_CREATE_FEE" .getBytes ();
104111
105112 private static final byte [] EXCHANGE_BALANCE_LIMIT = "EXCHANGE_BALANCE_LIMIT" .getBytes ();
@@ -397,6 +404,20 @@ private DynamicPropertiesStore(@Value("properties") String dbName) {
397404 this .saveAssetIssueFee (1024000000L );
398405 }
399406
407+ try {
408+ this .getUpdateAccountPermissionFee ();
409+ } catch (IllegalArgumentException e ) {
410+ this .saveUpdateAccountPermissionFee (100000000L );
411+ }
412+
413+ try {
414+ this .getMultiSignFee ();
415+ } catch (IllegalArgumentException e ) {
416+ this .saveMultiSignFee (1000000L );
417+ }
418+
419+
420+
400421 try {
401422 this .getExchangeCreateFee ();
402423 } catch (IllegalArgumentException e ) {
@@ -1029,6 +1050,17 @@ public void saveAssetIssueFee(long fee) {
10291050 new BytesCapsule (ByteArray .fromLong (fee )));
10301051 }
10311052
1053+ public void saveUpdateAccountPermissionFee (long fee ) {
1054+ this .put (UPDATE_ACCOUNT_PERMISSION_FEE ,
1055+ new BytesCapsule (ByteArray .fromLong (fee )));
1056+ }
1057+
1058+ public void saveMultiSignFee (long fee ) {
1059+ this .put (MULTI_SIGN_FEE ,
1060+ new BytesCapsule (ByteArray .fromLong (fee )));
1061+ }
1062+
1063+
10321064 public long getAssetIssueFee () {
10331065 return Optional .ofNullable (getUnchecked (ASSET_ISSUE_FEE ))
10341066 .map (BytesCapsule ::getData )
@@ -1037,6 +1069,24 @@ public long getAssetIssueFee() {
10371069 () -> new IllegalArgumentException ("not found ASSET_ISSUE_FEE" ));
10381070 }
10391071
1072+ public long getUpdateAccountPermissionFee () {
1073+ return Optional .ofNullable (getUnchecked (UPDATE_ACCOUNT_PERMISSION_FEE ))
1074+ .map (BytesCapsule ::getData )
1075+ .map (ByteArray ::toLong )
1076+ .orElseThrow (
1077+ () -> new IllegalArgumentException ("not found UPDATE_ACCOUNT_PERMISSION_FEE" ));
1078+ }
1079+
1080+ public long getMultiSignFee () {
1081+ return Optional .ofNullable (getUnchecked (MULTI_SIGN_FEE ))
1082+ .map (BytesCapsule ::getData )
1083+ .map (ByteArray ::toLong )
1084+ .orElseThrow (
1085+ () -> new IllegalArgumentException ("not found MULTI_SIGN_FEE" ));
1086+ }
1087+
1088+
1089+
10401090 public void saveExchangeCreateFee (long fee ) {
10411091 this .put (EXCHANGE_CREATE_FEE ,
10421092 new BytesCapsule (ByteArray .fromLong (fee )));
0 commit comments