public class CommitteeManager extends Contract
Contract.EventValuesWithLog| 限定符和类型 | 字段和说明 |
|---|---|
static java.lang.String |
ABI |
static java.lang.String[] |
ABI_ARRAY |
static java.lang.String |
BINARY |
static java.lang.String[] |
BINARY_ARRAY |
static java.lang.String |
FUNC__COMMITTEE |
static java.lang.String |
FUNC__CONTRACTPRECOMPILED |
static java.lang.String |
FUNC__PROPOSALMGR |
static java.lang.String |
FUNC_CREATEMODIFYDEPLOYAUTHPROPOSAL |
static java.lang.String |
FUNC_CREATERESETADMINPROPOSAL |
static java.lang.String |
FUNC_CREATESETDEPLOYAUTHTYPEPROPOSAL |
static java.lang.String |
FUNC_CREATESETRATEPROPOSAL |
static java.lang.String |
FUNC_CREATEUPDATEGOVERNORPROPOSAL |
static java.lang.String |
FUNC_GETPROPOSALTYPE |
static java.lang.String |
FUNC_ISGOVERNOR |
static java.lang.String |
FUNC_REVOKEPROPOSAL |
static java.lang.String |
FUNC_VOTEPROPOSAL |
static java.lang.String |
SM_BINARY |
static java.lang.String[] |
SM_BINARY_ARRAY |
client, contractAddress, contractBinary, credential, cryptoSuite, deployReceipt, eventEncoder, FUNC_DEPLOY, functionEncoder, functionReturnDecoder, LATEST_BLOCK, logger, transactionProcessor| 限定符 | 构造器和说明 |
|---|---|
protected |
CommitteeManager(java.lang.String contractAddress,
Client client,
CryptoKeyPair credential) |
| 限定符和类型 | 方法和说明 |
|---|---|
java.lang.String |
_committee() |
java.lang.String |
_proposalMgr() |
TransactionReceipt |
createModifyDeployAuthProposal(java.lang.String account,
java.lang.Boolean openFlag,
java.math.BigInteger blockNumberInterval) |
void |
createModifyDeployAuthProposal(java.lang.String account,
java.lang.Boolean openFlag,
java.math.BigInteger blockNumberInterval,
TransactionCallback callback) |
TransactionReceipt |
createResetAdminProposal(java.lang.String newAdmin,
java.lang.String contractAddr,
java.math.BigInteger blockNumberInterval) |
void |
createResetAdminProposal(java.lang.String newAdmin,
java.lang.String contractAddr,
java.math.BigInteger blockNumberInterval,
TransactionCallback callback) |
TransactionReceipt |
createSetDeployAuthTypeProposal(java.math.BigInteger deployAuthType,
java.math.BigInteger blockNumberInterval) |
void |
createSetDeployAuthTypeProposal(java.math.BigInteger deployAuthType,
java.math.BigInteger blockNumberInterval,
TransactionCallback callback) |
TransactionReceipt |
createSetRateProposal(java.math.BigInteger participatesRate,
java.math.BigInteger winRate,
java.math.BigInteger blockNumberInterval) |
void |
createSetRateProposal(java.math.BigInteger participatesRate,
java.math.BigInteger winRate,
java.math.BigInteger blockNumberInterval,
TransactionCallback callback) |
TransactionReceipt |
createUpdateGovernorProposal(java.lang.String account,
java.math.BigInteger weight,
java.math.BigInteger blockNumberInterval) |
void |
createUpdateGovernorProposal(java.lang.String account,
java.math.BigInteger weight,
java.math.BigInteger blockNumberInterval,
TransactionCallback callback) |
static CommitteeManager |
deploy(Client client,
CryptoKeyPair credential,
java.util.List<java.lang.String> initGovernors,
java.util.List<java.math.BigInteger> weights,
java.math.BigInteger participatesRate,
java.math.BigInteger winRate) |
static java.lang.String |
getABI() |
static java.lang.String |
getBinary(CryptoSuite cryptoSuite) |
Tuple3<java.lang.String,java.lang.Boolean,java.math.BigInteger> |
getCreateModifyDeployAuthProposalInput(TransactionReceipt transactionReceipt) |
Tuple1<java.math.BigInteger> |
getCreateModifyDeployAuthProposalOutput(TransactionReceipt transactionReceipt) |
Tuple3<java.lang.String,java.lang.String,java.math.BigInteger> |
getCreateResetAdminProposalInput(TransactionReceipt transactionReceipt) |
Tuple1<java.math.BigInteger> |
getCreateResetAdminProposalOutput(TransactionReceipt transactionReceipt) |
Tuple2<java.math.BigInteger,java.math.BigInteger> |
getCreateSetDeployAuthTypeProposalInput(TransactionReceipt transactionReceipt) |
Tuple1<java.math.BigInteger> |
getCreateSetDeployAuthTypeProposalOutput(TransactionReceipt transactionReceipt) |
Tuple3<java.math.BigInteger,java.math.BigInteger,java.math.BigInteger> |
getCreateSetRateProposalInput(TransactionReceipt transactionReceipt) |
Tuple1<java.math.BigInteger> |
getCreateSetRateProposalOutput(TransactionReceipt transactionReceipt) |
Tuple3<java.lang.String,java.math.BigInteger,java.math.BigInteger> |
getCreateUpdateGovernorProposalInput(TransactionReceipt transactionReceipt) |
Tuple1<java.math.BigInteger> |
getCreateUpdateGovernorProposalOutput(TransactionReceipt transactionReceipt) |
java.math.BigInteger |
getProposalType(java.math.BigInteger proposalId) |
Tuple1<java.math.BigInteger> |
getRevokeProposalInput(TransactionReceipt transactionReceipt) |
java.lang.String |
getSignedTransactionForCreateModifyDeployAuthProposal(java.lang.String account,
java.lang.Boolean openFlag,
java.math.BigInteger blockNumberInterval) |
java.lang.String |
getSignedTransactionForCreateResetAdminProposal(java.lang.String newAdmin,
java.lang.String contractAddr,
java.math.BigInteger blockNumberInterval) |
java.lang.String |
getSignedTransactionForCreateSetDeployAuthTypeProposal(java.math.BigInteger deployAuthType,
java.math.BigInteger blockNumberInterval) |
java.lang.String |
getSignedTransactionForCreateSetRateProposal(java.math.BigInteger participatesRate,
java.math.BigInteger winRate,
java.math.BigInteger blockNumberInterval) |
java.lang.String |
getSignedTransactionForCreateUpdateGovernorProposal(java.lang.String account,
java.math.BigInteger weight,
java.math.BigInteger blockNumberInterval) |
java.lang.String |
getSignedTransactionForRevokeProposal(java.math.BigInteger proposalId) |
java.lang.String |
getSignedTransactionForVoteProposal(java.math.BigInteger proposalId,
java.lang.Boolean agree) |
Tuple2<java.math.BigInteger,java.lang.Boolean> |
getVoteProposalInput(TransactionReceipt transactionReceipt) |
java.lang.Boolean |
isGovernor(java.lang.String account) |
static CommitteeManager |
load(java.lang.String contractAddress,
Client client,
CryptoKeyPair credential) |
TransactionReceipt |
revokeProposal(java.math.BigInteger proposalId) |
void |
revokeProposal(java.math.BigInteger proposalId,
TransactionCallback callback) |
TransactionReceipt |
voteProposal(java.math.BigInteger proposalId,
java.lang.Boolean agree) |
void |
voteProposal(java.math.BigInteger proposalId,
java.lang.Boolean agree,
TransactionCallback callback) |
asyncExecuteTransaction, asyncExecuteTransaction, convertToNative, createSignedTransaction, createSignedTransaction, deploy, deploy, executeCallWithMultipleValueReturn, executeCallWithSingleValueReturn, executeCallWithSingleValueReturn, executeTransaction, executeTransaction, extractEventParameters, extractEventParameters, extractEventParametersWithLog, extractEventParametersWithLog, extractEventParametersWithLog, getContractAddress, getCurrentExternalAccountAddress, getDeployReceipt, getTransactionProcessor, setContractAddress, setDeployReceipt, staticExtractEventParameterspublic static final java.lang.String[] BINARY_ARRAY
public static final java.lang.String BINARY
public static final java.lang.String[] SM_BINARY_ARRAY
public static final java.lang.String SM_BINARY
public static final java.lang.String[] ABI_ARRAY
public static final java.lang.String ABI
public static final java.lang.String FUNC__COMMITTEE
public static final java.lang.String FUNC__CONTRACTPRECOMPILED
public static final java.lang.String FUNC__PROPOSALMGR
public static final java.lang.String FUNC_CREATEMODIFYDEPLOYAUTHPROPOSAL
public static final java.lang.String FUNC_CREATERESETADMINPROPOSAL
public static final java.lang.String FUNC_CREATESETDEPLOYAUTHTYPEPROPOSAL
public static final java.lang.String FUNC_CREATESETRATEPROPOSAL
public static final java.lang.String FUNC_CREATEUPDATEGOVERNORPROPOSAL
public static final java.lang.String FUNC_GETPROPOSALTYPE
public static final java.lang.String FUNC_ISGOVERNOR
public static final java.lang.String FUNC_REVOKEPROPOSAL
public static final java.lang.String FUNC_VOTEPROPOSAL
protected CommitteeManager(java.lang.String contractAddress,
Client client,
CryptoKeyPair credential)
public static java.lang.String getBinary(CryptoSuite cryptoSuite)
public static java.lang.String getABI()
public java.lang.String _committee()
throws ContractException
public java.lang.String _proposalMgr()
throws ContractException
public TransactionReceipt createModifyDeployAuthProposal(java.lang.String account, java.lang.Boolean openFlag, java.math.BigInteger blockNumberInterval)
public void createModifyDeployAuthProposal(java.lang.String account,
java.lang.Boolean openFlag,
java.math.BigInteger blockNumberInterval,
TransactionCallback callback)
public java.lang.String getSignedTransactionForCreateModifyDeployAuthProposal(java.lang.String account,
java.lang.Boolean openFlag,
java.math.BigInteger blockNumberInterval)
public Tuple3<java.lang.String,java.lang.Boolean,java.math.BigInteger> getCreateModifyDeployAuthProposalInput(TransactionReceipt transactionReceipt)
public Tuple1<java.math.BigInteger> getCreateModifyDeployAuthProposalOutput(TransactionReceipt transactionReceipt)
public TransactionReceipt createResetAdminProposal(java.lang.String newAdmin, java.lang.String contractAddr, java.math.BigInteger blockNumberInterval)
public void createResetAdminProposal(java.lang.String newAdmin,
java.lang.String contractAddr,
java.math.BigInteger blockNumberInterval,
TransactionCallback callback)
public java.lang.String getSignedTransactionForCreateResetAdminProposal(java.lang.String newAdmin,
java.lang.String contractAddr,
java.math.BigInteger blockNumberInterval)
public Tuple3<java.lang.String,java.lang.String,java.math.BigInteger> getCreateResetAdminProposalInput(TransactionReceipt transactionReceipt)
public Tuple1<java.math.BigInteger> getCreateResetAdminProposalOutput(TransactionReceipt transactionReceipt)
public TransactionReceipt createSetDeployAuthTypeProposal(java.math.BigInteger deployAuthType, java.math.BigInteger blockNumberInterval)
public void createSetDeployAuthTypeProposal(java.math.BigInteger deployAuthType,
java.math.BigInteger blockNumberInterval,
TransactionCallback callback)
public java.lang.String getSignedTransactionForCreateSetDeployAuthTypeProposal(java.math.BigInteger deployAuthType,
java.math.BigInteger blockNumberInterval)
public Tuple2<java.math.BigInteger,java.math.BigInteger> getCreateSetDeployAuthTypeProposalInput(TransactionReceipt transactionReceipt)
public Tuple1<java.math.BigInteger> getCreateSetDeployAuthTypeProposalOutput(TransactionReceipt transactionReceipt)
public TransactionReceipt createSetRateProposal(java.math.BigInteger participatesRate, java.math.BigInteger winRate, java.math.BigInteger blockNumberInterval)
public void createSetRateProposal(java.math.BigInteger participatesRate,
java.math.BigInteger winRate,
java.math.BigInteger blockNumberInterval,
TransactionCallback callback)
public java.lang.String getSignedTransactionForCreateSetRateProposal(java.math.BigInteger participatesRate,
java.math.BigInteger winRate,
java.math.BigInteger blockNumberInterval)
public Tuple3<java.math.BigInteger,java.math.BigInteger,java.math.BigInteger> getCreateSetRateProposalInput(TransactionReceipt transactionReceipt)
public Tuple1<java.math.BigInteger> getCreateSetRateProposalOutput(TransactionReceipt transactionReceipt)
public TransactionReceipt createUpdateGovernorProposal(java.lang.String account, java.math.BigInteger weight, java.math.BigInteger blockNumberInterval)
public void createUpdateGovernorProposal(java.lang.String account,
java.math.BigInteger weight,
java.math.BigInteger blockNumberInterval,
TransactionCallback callback)
public java.lang.String getSignedTransactionForCreateUpdateGovernorProposal(java.lang.String account,
java.math.BigInteger weight,
java.math.BigInteger blockNumberInterval)
public Tuple3<java.lang.String,java.math.BigInteger,java.math.BigInteger> getCreateUpdateGovernorProposalInput(TransactionReceipt transactionReceipt)
public Tuple1<java.math.BigInteger> getCreateUpdateGovernorProposalOutput(TransactionReceipt transactionReceipt)
public java.math.BigInteger getProposalType(java.math.BigInteger proposalId)
throws ContractException
public java.lang.Boolean isGovernor(java.lang.String account)
throws ContractException
public TransactionReceipt revokeProposal(java.math.BigInteger proposalId)
public void revokeProposal(java.math.BigInteger proposalId,
TransactionCallback callback)
public java.lang.String getSignedTransactionForRevokeProposal(java.math.BigInteger proposalId)
public Tuple1<java.math.BigInteger> getRevokeProposalInput(TransactionReceipt transactionReceipt)
public TransactionReceipt voteProposal(java.math.BigInteger proposalId, java.lang.Boolean agree)
public void voteProposal(java.math.BigInteger proposalId,
java.lang.Boolean agree,
TransactionCallback callback)
public java.lang.String getSignedTransactionForVoteProposal(java.math.BigInteger proposalId,
java.lang.Boolean agree)
public Tuple2<java.math.BigInteger,java.lang.Boolean> getVoteProposalInput(TransactionReceipt transactionReceipt)
public static CommitteeManager load(java.lang.String contractAddress, Client client, CryptoKeyPair credential)
public static CommitteeManager deploy(Client client, CryptoKeyPair credential, java.util.List<java.lang.String> initGovernors, java.util.List<java.math.BigInteger> weights, java.math.BigInteger participatesRate, java.math.BigInteger winRate) throws ContractException