public class Oep8 extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
String |
balancesOf(String address) |
String |
getContractAddress() |
Transaction |
makeApprove(String owner,
String spender,
byte[] tokenId,
long amount,
Account payerAcct,
long gaslimit,
long gasprice) |
Transaction |
makeApproveMulti(Oep8State[] states,
String payerAcct,
long gaslimit,
long gasprice) |
Transaction |
makeTransfer(String sendAddr,
String recvAddr,
byte[] tokenId,
long amount,
Account payerAcct,
long gaslimit,
long gasprice) |
Transaction |
makeTransferFrom(String sender,
String from,
String to,
byte[] tokenId,
long amount,
Account payerAcct,
long gaslimit,
long gasprice) |
Transaction |
makeTransferFromMulti(TransferFrom[] states,
String payerAcct,
long gaslimit,
long gasprice) |
Transaction |
makeTransferMulti(Oep8State[] states,
Account payerAcct,
long gaslimit,
long gasprice) |
String |
mint(Account adminAccount,
byte[] tokenId,
long amount,
Account payer,
long gaslimit,
long gasprice) |
String |
queryAllowance(String owner,
String spender,
byte[] tokenId) |
String |
queryBalanceOf(String addr,
byte[] tokenId) |
String |
queryName(byte[] tokenId) |
String |
querySymbol(byte[] tokenId) |
String |
queryTotalSupply(byte[] tokenId) |
String |
sendApprove(Account owner,
String spender,
byte[] tokenId,
long amount,
Account payerAcct,
long gaslimit,
long gasprice) |
String |
sendApproveMulti(Account[] owner,
Oep8State[] states,
Account payerAcct,
long gaslimit,
long gasprice) |
String |
sendCompound(Account account,
long compoundOneOrAll,
Account payerAcct,
long gaslimit,
long gasprice) |
String |
sendInit(Account acct,
Account payerAcct,
long gaslimit,
long gasprice) |
long |
sendInitPreExec(Account acct,
Account payerAcct,
long gaslimit,
long gasprice) |
String |
sendTransfer(Account acct,
String recvAddr,
byte[] tokenId,
long amount,
Account payerAcct,
long gaslimit,
long gasprice) |
String |
sendTransferFrom(Account sender,
String from,
String to,
byte[] tokenId,
long amount,
Account payerAcct,
long gaslimit,
long gasprice) |
String |
sendTransferFromMulti(Account[] sender,
TransferFrom[] states,
Account payerAcct,
long gaslimit,
long gasprice) |
String |
sendTransferMulti(Account[] accounts,
Oep8State[] states,
Account payerAcct,
long gaslimit,
long gasprice) |
long |
sendTransferPreExec(Account acct,
String recvAddr,
byte[] tokenId,
long amount) |
void |
setContractAddress(String codeHash) |
String |
totalBalanceOf(String address) |
public Oep8(DnaSdk sdk)
public void setContractAddress(String codeHash)
public String getContractAddress()
public String sendInit(Account acct, Account payerAcct, long gaslimit, long gasprice) throws Exception
Exceptionpublic long sendInitPreExec(Account acct, Account payerAcct, long gaslimit, long gasprice) throws Exception
Exceptionpublic String sendTransfer(Account acct, String recvAddr, byte[] tokenId, long amount, Account payerAcct, long gaslimit, long gasprice) throws Exception
Exceptionpublic long sendTransferPreExec(Account acct, String recvAddr, byte[] tokenId, long amount) throws Exception
Exceptionpublic Transaction makeTransfer(String sendAddr, String recvAddr, byte[] tokenId, long amount, Account payerAcct, long gaslimit, long gasprice) throws Exception
Exceptionpublic String sendTransferMulti(Account[] accounts, Oep8State[] states, Account payerAcct, long gaslimit, long gasprice) throws Exception
Exceptionpublic Transaction makeTransferMulti(Oep8State[] states, Account payerAcct, long gaslimit, long gasprice) throws Exception
Exceptionpublic String sendApprove(Account owner, String spender, byte[] tokenId, long amount, Account payerAcct, long gaslimit, long gasprice) throws Exception
Exceptionpublic Transaction makeApprove(String owner, String spender, byte[] tokenId, long amount, Account payerAcct, long gaslimit, long gasprice) throws Exception
Exceptionpublic String sendApproveMulti(Account[] owner, Oep8State[] states, Account payerAcct, long gaslimit, long gasprice) throws Exception
Exceptionpublic Transaction makeApproveMulti(Oep8State[] states, String payerAcct, long gaslimit, long gasprice) throws Exception
Exceptionpublic String sendTransferFromMulti(Account[] sender, TransferFrom[] states, Account payerAcct, long gaslimit, long gasprice) throws Exception
Exceptionpublic Transaction makeTransferFromMulti(TransferFrom[] states, String payerAcct, long gaslimit, long gasprice) throws Exception
Exceptionpublic String sendTransferFrom(Account sender, String from, String to, byte[] tokenId, long amount, Account payerAcct, long gaslimit, long gasprice) throws Exception
Exceptionpublic Transaction makeTransferFrom(String sender, String from, String to, byte[] tokenId, long amount, Account payerAcct, long gaslimit, long gasprice) throws Exception
Exceptionpublic String sendCompound(Account account, long compoundOneOrAll, Account payerAcct, long gaslimit, long gasprice) throws Exception
Exceptionpublic String queryAllowance(String owner, String spender, byte[] tokenId) throws Exception
Exceptionpublic String queryBalanceOf(String addr, byte[] tokenId) throws Exception
ExceptionCopyright © 2021. All rights reserved.