com.github.DNAProject.core.sidechaingovernance.SwapParam Maven / Gradle / Ivy
The newest version!
package com.github.DNAProject.core.sidechaingovernance;
import com.alibaba.fastjson.JSON;
import com.github.DNAProject.common.Address;
import java.util.HashMap;
import java.util.Map;
public class SwapParam {
public String sideChainId;
public Address address;
public long ongXAccount;
public SwapParam(String sideChainId, Address address, long ongXAccount){
this.sideChainId = sideChainId;
this.address = address;
this.ongXAccount = ongXAccount;
}
public String toJson(){
Map map = new HashMap<>();
map.put("sideChainId", sideChainId);
map.put("address", address.toBase58());
map.put("ongXAccount",ongXAccount);
return JSON.toJSONString(map);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy