public class SideChainGovernance extends Object
| 构造器和说明 |
|---|
SideChainGovernance(OntSdk sdk) |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
approveInflation(Account[] accounts,
byte[][] allPubkeys,
int M,
String sideChainId,
Account payer,
long gaslimit,
long gasprice) |
String |
approveQuitSideChain(Account[] accounts,
byte[][] allPubkeys,
int M,
QuitSideChainParam param,
Account payer,
long gaslimit,
long gasprice) |
String |
approveSideChain(Account[] accounts,
byte[][] allPubkeys,
int M,
String sideChainID,
Account payer,
long gaslimit,
long gasprice) |
String |
getSideChain(String sideChainId) |
SideChainNodeInfo |
getSideChainNodeInfo(String sideChainId) |
String |
getSyncAddress() |
String |
inflation(Account account,
InflationParam param,
Account payer,
long gaslimit,
long gasprice) |
String |
ongSwap(Account account,
SwapParam param,
Account payer,
long gaslimit,
long gasprice) |
String |
ongxSwap(Account account,
SwapParam[] params,
Account payer,
long gaslimit,
long gasprice) |
String |
quitNodeToSideChain(Account account,
NodeToSideChainParams params,
Account payer,
long gaslimit,
long gasprice) |
String |
quitSideChain(Account account,
QuitSideChainParam param,
Account payer,
long gaslimit,
long gasprice) |
String |
registerNodeToSideChain(Account account,
NodeToSideChainParams params,
Account payer,
long gaslimit,
long gasprice) |
String |
registerSideChain(Account account,
RegisterSideChainParam param,
Identity identity,
String password,
Account payer,
long gaslimit,
long gasprice) |
String |
rejectInflation(Account[] accounts,
byte[][] allPubkeys,
int M,
String sideChainId,
Account payer,
long gaslimit,
long gasprice) |
String |
rejectSideChain(Account[] accounts,
byte[][] allPubkeys,
int M,
String sideChainID,
Account payer,
long gaslimit,
long gasprice) |
String |
setGlobalParams(Account[] accounts,
byte[][] allPubkeys,
int M,
Address swapAddress,
Account payer,
long gaslimit,
long gasprice) |
public SideChainGovernance(OntSdk sdk)
public String getSideChain(String sideChainId) throws ConnectorException, IOException
public SideChainNodeInfo getSideChainNodeInfo(String sideChainId) throws ConnectorException, IOException
public String registerSideChain(Account account, RegisterSideChainParam param, Identity identity, String password, Account payer, long gaslimit, long gasprice) throws Exception
Exceptionpublic String approveSideChain(Account[] accounts, byte[][] allPubkeys, int M, String sideChainID, Account payer, long gaslimit, long gasprice) throws Exception
Exceptionpublic String rejectSideChain(Account[] accounts, byte[][] allPubkeys, int M, String sideChainID, Account payer, long gaslimit, long gasprice) throws Exception
Exceptionpublic String quitSideChain(Account account, QuitSideChainParam param, Account payer, long gaslimit, long gasprice) throws Exception
Exceptionpublic String approveQuitSideChain(Account[] accounts, byte[][] allPubkeys, int M, QuitSideChainParam param, Account payer, long gaslimit, long gasprice) throws Exception
Exceptionpublic String ongSwap(Account account, SwapParam param, Account payer, long gaslimit, long gasprice) throws Exception
Exceptionpublic String ongxSwap(Account account, SwapParam[] params, Account payer, long gaslimit, long gasprice) throws Exception
Exceptionpublic String inflation(Account account, InflationParam param, Account payer, long gaslimit, long gasprice) throws Exception
Exceptionpublic String approveInflation(Account[] accounts, byte[][] allPubkeys, int M, String sideChainId, Account payer, long gaslimit, long gasprice) throws Exception
Exceptionpublic String rejectInflation(Account[] accounts, byte[][] allPubkeys, int M, String sideChainId, Account payer, long gaslimit, long gasprice) throws Exception
Exceptionpublic String setGlobalParams(Account[] accounts, byte[][] allPubkeys, int M, Address swapAddress, Account payer, long gaslimit, long gasprice) throws Exception
Exceptionpublic String getSyncAddress() throws ConnectorException, IOException, IllegalAccessException, InstantiationException
public String registerNodeToSideChain(Account account, NodeToSideChainParams params, Account payer, long gaslimit, long gasprice) throws Exception
ExceptionCopyright © 2022. All rights reserved.