public class NewTokenDemo
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
java.util.List<Account> |
createAccounts(java.lang.Integer num) |
java.lang.String |
deployContract(Account issuer,
java.lang.String bytecode,
java.math.BigInteger value,
java.util.List<org.web3j.abi.datatypes.Type> constructorPrams) |
GetTokenResp |
getToken(java.lang.String user,
byte[] hash) |
GetWalletResp |
getWallet(java.lang.String user) |
IssueTokenResp |
issueToken(Account issuer,
java.lang.String toUser,
byte[] data) |
static void |
main(java.lang.String[] args) |
ShiftResp |
shift(Account issuer,
java.lang.String fromUser,
java.lang.String toUser,
byte[] hash) |
void |
tranferBasicValue(java.util.List<Account> accounts,
java.math.BigInteger value) |
public java.util.List<Account> createAccounts(java.lang.Integer num)
public void tranferBasicValue(java.util.List<Account> accounts, java.math.BigInteger value) throws java.io.IOException
java.io.IOExceptionpublic java.lang.String deployContract(Account issuer, java.lang.String bytecode, java.math.BigInteger value, java.util.List<org.web3j.abi.datatypes.Type> constructorPrams) throws java.io.IOException, java.lang.InterruptedException
java.io.IOExceptionjava.lang.InterruptedExceptionpublic IssueTokenResp issueToken(Account issuer, java.lang.String toUser, byte[] data) throws java.io.IOException, java.lang.InterruptedException
java.io.IOExceptionjava.lang.InterruptedExceptionpublic GetWalletResp getWallet(java.lang.String user) throws java.io.IOException
java.io.IOExceptionpublic GetTokenResp getToken(java.lang.String user, byte[] hash) throws java.io.IOException
java.io.IOExceptionpublic ShiftResp shift(Account issuer, java.lang.String fromUser, java.lang.String toUser, byte[] hash) throws java.io.IOException, java.lang.InterruptedException
java.io.IOExceptionjava.lang.InterruptedExceptionpublic static void main(java.lang.String[] args)
throws java.io.IOException,
java.lang.InterruptedException
java.io.IOExceptionjava.lang.InterruptedExceptionCopyright © 2020. All Rights Reserved.