Package com.klaytn.caver.kct
Class KIP7
- java.lang.Object
-
- com.klaytn.caver.tx.ManagedTransaction
-
- com.klaytn.caver.tx.SmartContract
-
- com.klaytn.caver.kct.KIP7
-
@Deprecated public class KIP7 extends SmartContract
Deprecated.Please useKIP7
instead.- See Also:
KIP7
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
KIP7.ApprovalEventResponse
Deprecated.static class
KIP7.MinterAddedEventResponse
Deprecated.static class
KIP7.MinterRemovedEventResponse
Deprecated.static class
KIP7.PausedEventResponse
Deprecated.static class
KIP7.PauserAddedEventResponse
Deprecated.static class
KIP7.PauserRemovedEventResponse
Deprecated.static class
KIP7.TransferEventResponse
Deprecated.static class
KIP7.UnpausedEventResponse
Deprecated.-
Nested classes/interfaces inherited from class com.klaytn.caver.tx.SmartContract
SmartContract.EventValuesWithLog
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.util.HashMap<java.lang.String,java.lang.String>
_addresses
Deprecated.static org.web3j.abi.datatypes.Event
APPROVAL_EVENT
Deprecated.static java.lang.String
FUNC_ADDMINTER
Deprecated.static java.lang.String
FUNC_ADDPAUSER
Deprecated.static java.lang.String
FUNC_ALLOWANCE
Deprecated.static java.lang.String
FUNC_APPROVE
Deprecated.static java.lang.String
FUNC_BALANCEOF
Deprecated.static java.lang.String
FUNC_BURN
Deprecated.static java.lang.String
FUNC_BURNFROM
Deprecated.static java.lang.String
FUNC_DECIMALS
Deprecated.static java.lang.String
FUNC_ISMINTER
Deprecated.static java.lang.String
FUNC_ISPAUSER
Deprecated.static java.lang.String
FUNC_MINT
Deprecated.static java.lang.String
FUNC_NAME
Deprecated.static java.lang.String
FUNC_PAUSE
Deprecated.static java.lang.String
FUNC_PAUSED
Deprecated.static java.lang.String
FUNC_RENOUNCEMINTER
Deprecated.static java.lang.String
FUNC_RENOUNCEPAUSER
Deprecated.static java.lang.String
FUNC_SAFETRANSFER
Deprecated.static java.lang.String
FUNC_SAFETRANSFERFROM
Deprecated.static java.lang.String
FUNC_SUPPORTSINTERFACE
Deprecated.static java.lang.String
FUNC_SYMBOL
Deprecated.static java.lang.String
FUNC_TOTALSUPPLY
Deprecated.static java.lang.String
FUNC_TRANSFER
Deprecated.static java.lang.String
FUNC_TRANSFERFROM
Deprecated.static java.lang.String
FUNC_UNPAUSE
Deprecated.static org.web3j.abi.datatypes.Event
MINTERADDED_EVENT
Deprecated.static org.web3j.abi.datatypes.Event
MINTERREMOVED_EVENT
Deprecated.static org.web3j.abi.datatypes.Event
PAUSED_EVENT
Deprecated.static org.web3j.abi.datatypes.Event
PAUSERADDED_EVENT
Deprecated.static org.web3j.abi.datatypes.Event
PAUSERREMOVED_EVENT
Deprecated.static org.web3j.abi.datatypes.Event
TRANSFER_EVENT
Deprecated.static org.web3j.abi.datatypes.Event
UNPAUSED_EVENT
Deprecated.-
Fields inherited from class com.klaytn.caver.tx.SmartContract
BIN_NOT_PROVIDED, contractAddress, contractBinary, defaultBlockParameter, deployedAddresses, FUNC_DEPLOY, GAS_LIMIT, gasProvider, transactionReceipt
-
Fields inherited from class com.klaytn.caver.tx.ManagedTransaction
caver, GAS_PRICE, transactionManager
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
KIP7(java.lang.String contractAddress, Caver caver, KlayCredentials credentials, int chainId, org.web3j.tx.gas.ContractGasProvider contractGasProvider)
Deprecated.protected
KIP7(java.lang.String contractAddress, Caver caver, TransactionManager transactionManager, org.web3j.tx.gas.ContractGasProvider contractGasProvider)
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description org.web3j.protocol.core.RemoteCall<KlayTransactionReceipt.TransactionReceipt>
addMinter(java.lang.String account)
Deprecated.Instance method for calling method "addMinter" in KIP-7 Standard Token Function Caller must have "Minter" permissionorg.web3j.protocol.core.RemoteCall<KlayTransactionReceipt.TransactionReceipt>
addPauser(java.lang.String account)
Deprecated.Instance method for calling method "addPauser" in KIP-7 Standard Token Function Caller must have "Pauser" permissionorg.web3j.protocol.core.RemoteCall<java.math.BigInteger>
allowance(java.lang.String owner, java.lang.String spender)
Deprecated.Instance method for calling method "allowance" in KIP-7 Standard Tokenorg.web3j.protocol.core.RemoteCall<KlayTransactionReceipt.TransactionReceipt>
approve(java.lang.String spender, java.math.BigInteger value)
Deprecated.Instance method for calling method "approve" in KIP-7 Standard Tokenorg.web3j.protocol.core.RemoteCall<java.math.BigInteger>
balanceOf(java.lang.String account)
Deprecated.Instance method for calling method "balanceOf" in KIP-7 Standard Tokenorg.web3j.protocol.core.RemoteCall<KlayTransactionReceipt.TransactionReceipt>
burn(java.math.BigInteger amount)
Deprecated.Instance method for calling method "burn" in KIP-7 Standard Tokenorg.web3j.protocol.core.RemoteCall<KlayTransactionReceipt.TransactionReceipt>
burnFrom(java.lang.String account, java.math.BigInteger amount)
Deprecated.Instance method for calling method "burnFrom" in KIP-7 Standard Tokenorg.web3j.protocol.core.RemoteCall<java.math.BigInteger>
decimals()
Deprecated.Instance method for calling method "decimals" in KIP-7 Standard Tokenstatic org.web3j.protocol.core.RemoteCall<KIP7>
deploy(Caver caver, KlayCredentials credentials, int chainId, org.web3j.tx.gas.ContractGasProvider contractGasProvider, java.lang.String name, java.lang.String symbol, java.math.BigInteger decimals, java.math.BigInteger initialSupply)
Deprecated.Static method for deploying KIP-7 Standard Tokenstatic org.web3j.protocol.core.RemoteCall<KIP7>
deploy(Caver caver, TransactionManager transactionManager, org.web3j.tx.gas.ContractGasProvider contractGasProvider, java.lang.String name, java.lang.String symbol, java.math.BigInteger decimals, java.math.BigInteger initialSupply)
Deprecated.Static method for deploying KIP-7 Standard Tokenjava.util.List<KIP7.ApprovalEventResponse>
getApprovalEvents(KlayTransactionReceipt.TransactionReceipt transactionReceipt)
Deprecated.Instance method for getting Event "Approval" in KIP-7 Standard Tokenjava.util.List<KIP7.MinterAddedEventResponse>
getMinterAddedEvents(KlayTransactionReceipt.TransactionReceipt transactionReceipt)
Deprecated.Instance method for getting Event "MinterAdded" in KIP-7 Standard Tokenjava.util.List<KIP7.MinterRemovedEventResponse>
getMinterRemovedEvents(KlayTransactionReceipt.TransactionReceipt transactionReceipt)
Deprecated.Instance method for getting Event "MinterRemoved" in KIP-7 Standard Tokenjava.util.List<KIP7.PausedEventResponse>
getPausedEvents(KlayTransactionReceipt.TransactionReceipt transactionReceipt)
Deprecated.Instance method for getting Event "Paused" in KIP-7 Standard Tokenjava.util.List<KIP7.PauserAddedEventResponse>
getPauserAddedEvents(KlayTransactionReceipt.TransactionReceipt transactionReceipt)
Deprecated.Instance method for getting Event "PauserAdded" in KIP-7 Standard Tokenjava.util.List<KIP7.PauserRemovedEventResponse>
getPauserRemovedEvents(KlayTransactionReceipt.TransactionReceipt transactionReceipt)
Deprecated.Instance method for getting Event "PauserRemoved" in KIP-7 Standard Tokenstatic java.lang.String
getPreviouslyDeployedAddress(java.lang.String networkId)
Deprecated.protected java.lang.String
getStaticDeployedAddress(java.lang.String networkId)
Deprecated.Subclasses should implement this method to return pre-existing addresses for deployed contracts.java.util.List<KIP7.TransferEventResponse>
getTransferEvents(KlayTransactionReceipt.TransactionReceipt transactionReceipt)
Deprecated.Instance method for getting Event "Transfer" in KIP-7 Standard Tokenjava.util.List<KIP7.UnpausedEventResponse>
getUnpausedEvents(KlayTransactionReceipt.TransactionReceipt transactionReceipt)
Deprecated.Instance method for getting Event "Unpaused" in KIP-7 Standard Tokenorg.web3j.protocol.core.RemoteCall<java.lang.Boolean>
isMinter(java.lang.String account)
Deprecated.Instance method for calling method "isMinter" in KIP-7 Standard Tokenorg.web3j.protocol.core.RemoteCall<java.lang.Boolean>
isPauser(java.lang.String account)
Deprecated.Instance method for calling method "isPauser" in KIP-7 Standard Tokenstatic KIP7
load(java.lang.String contractAddress, Caver caver, KlayCredentials credentials, int chainId, org.web3j.tx.gas.ContractGasProvider contractGasProvider)
Deprecated.Static method create KIP-7 Standard Token handler connecting existed Contract The credential with the "KlayCredential Object" passed as a function parameter will control the contractstatic KIP7
load(java.lang.String contractAddress, Caver caver, TransactionManager transactionManager, org.web3j.tx.gas.ContractGasProvider contractGasProvider)
Deprecated.Static method create KIP-7 Standard Token handler connecting existed Contract The default credential in transactionManager passed as a function parameter will control the contractorg.web3j.protocol.core.RemoteCall<KlayTransactionReceipt.TransactionReceipt>
mint(java.lang.String account, java.math.BigInteger amount)
Deprecated.Instance method for calling method "mint" in KIP-7 Standard Token Caller must have "Minter" Permission.org.web3j.protocol.core.RemoteCall<java.lang.String>
name()
Deprecated.Instance method for calling method "name" in KIP-7 Standard Tokenorg.web3j.protocol.core.RemoteCall<KlayTransactionReceipt.TransactionReceipt>
pause()
Deprecated.Instance method for calling method "pause" in KIP-7 Standard Token Caller must have "Pauser" Permission.org.web3j.protocol.core.RemoteCall<java.lang.Boolean>
paused()
Deprecated.Instance method for calling method "paused" in KIP-7 Standard Tokenorg.web3j.protocol.core.RemoteCall<KlayTransactionReceipt.TransactionReceipt>
renounceMinter()
Deprecated.Instance method for calling method "renounceMinter" in KIP-7 Standard Token Caller must have "Minter" Permission.org.web3j.protocol.core.RemoteCall<KlayTransactionReceipt.TransactionReceipt>
renouncePauser()
Deprecated.Instance method for calling method "renounceMinter" in KIP-7 Standard Token Caller must have "Pauser" Permission.org.web3j.protocol.core.RemoteCall<KlayTransactionReceipt.TransactionReceipt>
safeTransfer(java.lang.String recipient, java.math.BigInteger amount)
Deprecated.Instance method for calling method "safeTransfer" in KIP-7 Standard Tokenorg.web3j.protocol.core.RemoteCall<KlayTransactionReceipt.TransactionReceipt>
safeTransfer(java.lang.String recipient, java.math.BigInteger amount, byte[] data)
Deprecated.Instance method for calling method "safeTransfer" in KIP-7 Standard Tokenorg.web3j.protocol.core.RemoteCall<KlayTransactionReceipt.TransactionReceipt>
safeTransferFrom(java.lang.String sender, java.lang.String recipient, java.math.BigInteger amount)
Deprecated.Instance method for calling method "safeTransferFrom" in KIP-7 Standard Tokenorg.web3j.protocol.core.RemoteCall<KlayTransactionReceipt.TransactionReceipt>
safeTransferFrom(java.lang.String sender, java.lang.String recipient, java.math.BigInteger amount, byte[] data)
Deprecated.Instance method for calling method "safeTransferFrom" in KIP-7 Standard Tokenorg.web3j.protocol.core.RemoteCall<java.lang.Boolean>
supportsInterface(byte[] interfaceId)
Deprecated.Instance method for calling method "supportsInterface" in KIP-13 Standard check whether interface(extension) is supported or notorg.web3j.protocol.core.RemoteCall<java.lang.String>
symbol()
Deprecated.Instance method for calling method "symbol" in KIP-7 Standard Tokenorg.web3j.protocol.core.RemoteCall<java.math.BigInteger>
totalSupply()
Deprecated.Instance method for calling method "totalSupply" in KIP-7 Standard Tokenorg.web3j.protocol.core.RemoteCall<KlayTransactionReceipt.TransactionReceipt>
transfer(java.lang.String to, java.math.BigInteger value)
Deprecated.Instance method for calling method "transfer" in KIP-7 Standard Tokenorg.web3j.protocol.core.RemoteCall<KlayTransactionReceipt.TransactionReceipt>
transferFrom(java.lang.String from, java.lang.String to, java.math.BigInteger value)
Deprecated.Instance method for calling method "transferFrom" in KIP-7 Standard Tokenorg.web3j.protocol.core.RemoteCall<KlayTransactionReceipt.TransactionReceipt>
unpause()
Deprecated.Instance method for calling method "unpause" in KIP-7 Standard Token Function call must have "Pauser" permission.-
Methods inherited from class com.klaytn.caver.tx.SmartContract
convertToNative, create, create, deploy, deploy, deployRemoteCall, deployRemoteCall, deployRemoteCall, deployRemoteCall, executeCallMultipleValueReturn, executeCallSingleValueReturn, executeCallSingleValueReturn, executeRemoteCallMultipleValueReturn, executeRemoteCallSingleValueReturn, executeRemoteCallSingleValueReturn, executeRemoteCallTransaction, executeRemoteCallTransaction, executeTransaction, extractEventParameters, extractEventParameters, extractEventParametersWithLog, extractEventParametersWithLog, getContractAddress, getContractBinary, getDeployedAddress, getGasPrice, getTransactionReceipt, isValid, sendDeployTransaction, sendDeployTransaction, sendDeployTransaction, sendExecutionTransaction, sendExecutionTransaction, sendExecutionTransaction, setContractAddress, setDefaultBlockParameter, setDeployedAddress, setGasPrice, setGasProvider, setTransactionReceipt, staticExtractEventParameters
-
Methods inherited from class com.klaytn.caver.tx.ManagedTransaction
send
-
-
-
-
Field Detail
-
FUNC_ADDMINTER
public static final java.lang.String FUNC_ADDMINTER
Deprecated.- See Also:
- Constant Field Values
-
FUNC_ADDPAUSER
public static final java.lang.String FUNC_ADDPAUSER
Deprecated.- See Also:
- Constant Field Values
-
FUNC_ALLOWANCE
public static final java.lang.String FUNC_ALLOWANCE
Deprecated.- See Also:
- Constant Field Values
-
FUNC_APPROVE
public static final java.lang.String FUNC_APPROVE
Deprecated.- See Also:
- Constant Field Values
-
FUNC_BALANCEOF
public static final java.lang.String FUNC_BALANCEOF
Deprecated.- See Also:
- Constant Field Values
-
FUNC_BURN
public static final java.lang.String FUNC_BURN
Deprecated.- See Also:
- Constant Field Values
-
FUNC_BURNFROM
public static final java.lang.String FUNC_BURNFROM
Deprecated.- See Also:
- Constant Field Values
-
FUNC_DECIMALS
public static final java.lang.String FUNC_DECIMALS
Deprecated.- See Also:
- Constant Field Values
-
FUNC_ISMINTER
public static final java.lang.String FUNC_ISMINTER
Deprecated.- See Also:
- Constant Field Values
-
FUNC_ISPAUSER
public static final java.lang.String FUNC_ISPAUSER
Deprecated.- See Also:
- Constant Field Values
-
FUNC_MINT
public static final java.lang.String FUNC_MINT
Deprecated.- See Also:
- Constant Field Values
-
FUNC_NAME
public static final java.lang.String FUNC_NAME
Deprecated.- See Also:
- Constant Field Values
-
FUNC_PAUSE
public static final java.lang.String FUNC_PAUSE
Deprecated.- See Also:
- Constant Field Values
-
FUNC_PAUSED
public static final java.lang.String FUNC_PAUSED
Deprecated.- See Also:
- Constant Field Values
-
FUNC_RENOUNCEMINTER
public static final java.lang.String FUNC_RENOUNCEMINTER
Deprecated.- See Also:
- Constant Field Values
-
FUNC_RENOUNCEPAUSER
public static final java.lang.String FUNC_RENOUNCEPAUSER
Deprecated.- See Also:
- Constant Field Values
-
FUNC_SAFETRANSFER
public static final java.lang.String FUNC_SAFETRANSFER
Deprecated.- See Also:
- Constant Field Values
-
FUNC_SAFETRANSFERFROM
public static final java.lang.String FUNC_SAFETRANSFERFROM
Deprecated.- See Also:
- Constant Field Values
-
FUNC_SUPPORTSINTERFACE
public static final java.lang.String FUNC_SUPPORTSINTERFACE
Deprecated.- See Also:
- Constant Field Values
-
FUNC_SYMBOL
public static final java.lang.String FUNC_SYMBOL
Deprecated.- See Also:
- Constant Field Values
-
FUNC_TOTALSUPPLY
public static final java.lang.String FUNC_TOTALSUPPLY
Deprecated.- See Also:
- Constant Field Values
-
FUNC_TRANSFER
public static final java.lang.String FUNC_TRANSFER
Deprecated.- See Also:
- Constant Field Values
-
FUNC_TRANSFERFROM
public static final java.lang.String FUNC_TRANSFERFROM
Deprecated.- See Also:
- Constant Field Values
-
FUNC_UNPAUSE
public static final java.lang.String FUNC_UNPAUSE
Deprecated.- See Also:
- Constant Field Values
-
APPROVAL_EVENT
public static final org.web3j.abi.datatypes.Event APPROVAL_EVENT
Deprecated.
-
MINTERADDED_EVENT
public static final org.web3j.abi.datatypes.Event MINTERADDED_EVENT
Deprecated.
-
MINTERREMOVED_EVENT
public static final org.web3j.abi.datatypes.Event MINTERREMOVED_EVENT
Deprecated.
-
PAUSED_EVENT
public static final org.web3j.abi.datatypes.Event PAUSED_EVENT
Deprecated.
-
PAUSERADDED_EVENT
public static final org.web3j.abi.datatypes.Event PAUSERADDED_EVENT
Deprecated.
-
PAUSERREMOVED_EVENT
public static final org.web3j.abi.datatypes.Event PAUSERREMOVED_EVENT
Deprecated.
-
TRANSFER_EVENT
public static final org.web3j.abi.datatypes.Event TRANSFER_EVENT
Deprecated.
-
UNPAUSED_EVENT
public static final org.web3j.abi.datatypes.Event UNPAUSED_EVENT
Deprecated.
-
_addresses
protected static final java.util.HashMap<java.lang.String,java.lang.String> _addresses
Deprecated.
-
-
Constructor Detail
-
KIP7
protected KIP7(java.lang.String contractAddress, Caver caver, KlayCredentials credentials, int chainId, org.web3j.tx.gas.ContractGasProvider contractGasProvider)
Deprecated.
-
KIP7
protected KIP7(java.lang.String contractAddress, Caver caver, TransactionManager transactionManager, org.web3j.tx.gas.ContractGasProvider contractGasProvider)
Deprecated.
-
-
Method Detail
-
getApprovalEvents
public java.util.List<KIP7.ApprovalEventResponse> getApprovalEvents(KlayTransactionReceipt.TransactionReceipt transactionReceipt)
Deprecated.Instance method for getting Event "Approval" in KIP-7 Standard Token- Parameters:
transactionReceipt
- transactionReceipt after sending SmartContractExecution Transaction invoking "Approval" event- Returns:
- List Object to Approval Event Response
-
getMinterAddedEvents
public java.util.List<KIP7.MinterAddedEventResponse> getMinterAddedEvents(KlayTransactionReceipt.TransactionReceipt transactionReceipt)
Deprecated.Instance method for getting Event "MinterAdded" in KIP-7 Standard Token- Parameters:
transactionReceipt
- transactionReceipt after sending SmartContractExecution Transaction invoking "MinterAdded" event- Returns:
- List Object to MinterAdded Event Response
-
getMinterRemovedEvents
public java.util.List<KIP7.MinterRemovedEventResponse> getMinterRemovedEvents(KlayTransactionReceipt.TransactionReceipt transactionReceipt)
Deprecated.Instance method for getting Event "MinterRemoved" in KIP-7 Standard Token- Parameters:
transactionReceipt
- transactionReceipt after sending SmartContractExecution Transaction invoking "MinterRemoved" event- Returns:
- List Object to MinerRemoved Event Response
-
getPausedEvents
public java.util.List<KIP7.PausedEventResponse> getPausedEvents(KlayTransactionReceipt.TransactionReceipt transactionReceipt)
Deprecated.Instance method for getting Event "Paused" in KIP-7 Standard Token- Parameters:
transactionReceipt
- transactionReceipt after sending SmartContractExecution Transaction invoking "Paused" event- Returns:
- List Object to Paused Event Response
-
getPauserAddedEvents
public java.util.List<KIP7.PauserAddedEventResponse> getPauserAddedEvents(KlayTransactionReceipt.TransactionReceipt transactionReceipt)
Deprecated.Instance method for getting Event "PauserAdded" in KIP-7 Standard Token- Parameters:
transactionReceipt
- transactionReceipt after sending SmartContractExecution Transaction invoking "PauserAdded" event- Returns:
- List Object to PauserAdded Event Response
-
getPauserRemovedEvents
public java.util.List<KIP7.PauserRemovedEventResponse> getPauserRemovedEvents(KlayTransactionReceipt.TransactionReceipt transactionReceipt)
Deprecated.Instance method for getting Event "PauserRemoved" in KIP-7 Standard Token- Parameters:
transactionReceipt
- transactionReceipt after sending SmartContractExecution Transaction invoking "PauserRemoved" event- Returns:
- List Object to PauserRemoved Event Response
-
getTransferEvents
public java.util.List<KIP7.TransferEventResponse> getTransferEvents(KlayTransactionReceipt.TransactionReceipt transactionReceipt)
Deprecated.Instance method for getting Event "Transfer" in KIP-7 Standard Token- Parameters:
transactionReceipt
- transactionReceipt after sending SmartContractExecution Transaction invoking "Transfer" event- Returns:
- List Object to Transfer Event Response
-
getUnpausedEvents
public java.util.List<KIP7.UnpausedEventResponse> getUnpausedEvents(KlayTransactionReceipt.TransactionReceipt transactionReceipt)
Deprecated.Instance method for getting Event "Unpaused" in KIP-7 Standard Token- Parameters:
transactionReceipt
- transactionReceipt after sending SmartContractExecution Transaction invoking "Unpaused" event- Returns:
- List Object to Unpaused Event Response
-
addMinter
public org.web3j.protocol.core.RemoteCall<KlayTransactionReceipt.TransactionReceipt> addMinter(java.lang.String account)
Deprecated.Instance method for calling method "addMinter" in KIP-7 Standard Token Function Caller must have "Minter" permission- Parameters:
account
- The account to be given the minting permission- Returns:
- RemoteCall
-
addPauser
public org.web3j.protocol.core.RemoteCall<KlayTransactionReceipt.TransactionReceipt> addPauser(java.lang.String account)
Deprecated.Instance method for calling method "addPauser" in KIP-7 Standard Token Function Caller must have "Pauser" permission- Parameters:
account
- The account to be given the pausing permission- Returns:
- RemoteCall
-
allowance
public org.web3j.protocol.core.RemoteCall<java.math.BigInteger> allowance(java.lang.String owner, java.lang.String spender)
Deprecated.Instance method for calling method "allowance" in KIP-7 Standard Token- Parameters:
owner
- The account allowed `spender` to withdraw the tokens from the account.spender
- The address is approved to withdraw the tokens.- Returns:
- RemoteCall
-
approve
public org.web3j.protocol.core.RemoteCall<KlayTransactionReceipt.TransactionReceipt> approve(java.lang.String spender, java.math.BigInteger value)
Deprecated.Instance method for calling method "approve" in KIP-7 Standard Token- Parameters:
spender
- The address is approved to withdraw the tokens.value
- amount The token amount will be approved.- Returns:
- RemoteCall
-
balanceOf
public org.web3j.protocol.core.RemoteCall<java.math.BigInteger> balanceOf(java.lang.String account)
Deprecated.Instance method for calling method "balanceOf" in KIP-7 Standard Token- Parameters:
account
- An address for whom to query the balance- Returns:
- RemoteCall
-
burn
public org.web3j.protocol.core.RemoteCall<KlayTransactionReceipt.TransactionReceipt> burn(java.math.BigInteger amount)
Deprecated.Instance method for calling method "burn" in KIP-7 Standard Token- Parameters:
amount
- The token amount to be burned- Returns:
- RemoteCall
-
burnFrom
public org.web3j.protocol.core.RemoteCall<KlayTransactionReceipt.TransactionReceipt> burnFrom(java.lang.String account, java.math.BigInteger amount)
Deprecated.Instance method for calling method "burnFrom" in KIP-7 Standard Token- Parameters:
account
- The account will be deducted is the The token amount to be burnedamount
- The token amount to be burned- Returns:
- RemoteCall
-
decimals
public org.web3j.protocol.core.RemoteCall<java.math.BigInteger> decimals()
Deprecated.Instance method for calling method "decimals" in KIP-7 Standard Token- Returns:
- RemoteCall
-
isMinter
public org.web3j.protocol.core.RemoteCall<java.lang.Boolean> isMinter(java.lang.String account)
Deprecated.Instance method for calling method "isMinter" in KIP-7 Standard Token- Parameters:
account
- The account to check the minting permission- Returns:
- RemoteCall
-
isPauser
public org.web3j.protocol.core.RemoteCall<java.lang.Boolean> isPauser(java.lang.String account)
Deprecated.Instance method for calling method "isPauser" in KIP-7 Standard Token- Parameters:
account
- The account to check the pausing permission- Returns:
- RemoteCall
-
mint
public org.web3j.protocol.core.RemoteCall<KlayTransactionReceipt.TransactionReceipt> mint(java.lang.String account, java.math.BigInteger amount)
Deprecated.Instance method for calling method "mint" in KIP-7 Standard Token Caller must have "Minter" Permission.- Parameters:
account
- The account that will receive the minted tokenamount
- The token amount to mint- Returns:
- RemoteCall
-
name
public org.web3j.protocol.core.RemoteCall<java.lang.String> name()
Deprecated.Instance method for calling method "name" in KIP-7 Standard Token- Returns:
- RemoteCall
-
pause
public org.web3j.protocol.core.RemoteCall<KlayTransactionReceipt.TransactionReceipt> pause()
Deprecated.Instance method for calling method "pause" in KIP-7 Standard Token Caller must have "Pauser" Permission.- Returns:
- RemoteCall
-
paused
public org.web3j.protocol.core.RemoteCall<java.lang.Boolean> paused()
Deprecated.Instance method for calling method "paused" in KIP-7 Standard Token- Returns:
- RemoteCall
-
renounceMinter
public org.web3j.protocol.core.RemoteCall<KlayTransactionReceipt.TransactionReceipt> renounceMinter()
Deprecated.Instance method for calling method "renounceMinter" in KIP-7 Standard Token Caller must have "Minter" Permission.- Returns:
- RemoteCall
-
renouncePauser
public org.web3j.protocol.core.RemoteCall<KlayTransactionReceipt.TransactionReceipt> renouncePauser()
Deprecated.Instance method for calling method "renounceMinter" in KIP-7 Standard Token Caller must have "Pauser" Permission.- Returns:
- RemoteCall
-
safeTransfer
public org.web3j.protocol.core.RemoteCall<KlayTransactionReceipt.TransactionReceipt> safeTransfer(java.lang.String recipient, java.math.BigInteger amount)
Deprecated.Instance method for calling method "safeTransfer" in KIP-7 Standard Token- Parameters:
recipient
- The address of the account to receive the token.amount
- The token amount will be transferred.- Returns:
- RemoteCall
-
safeTransfer
public org.web3j.protocol.core.RemoteCall<KlayTransactionReceipt.TransactionReceipt> safeTransfer(java.lang.String recipient, java.math.BigInteger amount, byte[] data)
Deprecated.Instance method for calling method "safeTransfer" in KIP-7 Standard Token- Parameters:
recipient
- The address of the account to receive the token.amount
- The token amount will be transferred.data
- Additional data with no specified format, sent in call to `_to`- Returns:
- RemoteCall
-
safeTransferFrom
public org.web3j.protocol.core.RemoteCall<KlayTransactionReceipt.TransactionReceipt> safeTransferFrom(java.lang.String sender, java.lang.String recipient, java.math.BigInteger amount)
Deprecated.Instance method for calling method "safeTransferFrom" in KIP-7 Standard Token- Parameters:
sender
- The current owner of the tokens.recipient
- The address of the account to receive the token.amount
- The token amount will be transferred.- Returns:
- RemoteCall
-
safeTransferFrom
public org.web3j.protocol.core.RemoteCall<KlayTransactionReceipt.TransactionReceipt> safeTransferFrom(java.lang.String sender, java.lang.String recipient, java.math.BigInteger amount, byte[] data)
Deprecated.Instance method for calling method "safeTransferFrom" in KIP-7 Standard Token- Parameters:
sender
- The current owner of the tokens.recipient
- The address of the account to receive the token.amount
- The token amount will be transferred.data
- Additional data with no specified format, sent in call to `_to`- Returns:
- RemoteCall
-
supportsInterface
public org.web3j.protocol.core.RemoteCall<java.lang.Boolean> supportsInterface(byte[] interfaceId)
Deprecated.Instance method for calling method "supportsInterface" in KIP-13 Standard check whether interface(extension) is supported or not- Parameters:
interfaceId
- interface identifier- Returns:
- RemoteCall
-
symbol
public org.web3j.protocol.core.RemoteCall<java.lang.String> symbol()
Deprecated.Instance method for calling method "symbol" in KIP-7 Standard Token- Returns:
- RemoteCall
-
totalSupply
public org.web3j.protocol.core.RemoteCall<java.math.BigInteger> totalSupply()
Deprecated.Instance method for calling method "totalSupply" in KIP-7 Standard Token- Returns:
- RemoteCall
-
transfer
public org.web3j.protocol.core.RemoteCall<KlayTransactionReceipt.TransactionReceipt> transfer(java.lang.String to, java.math.BigInteger value)
Deprecated.Instance method for calling method "transfer" in KIP-7 Standard Token- Parameters:
to
- The address of the account to receive the token.value
- The token amount will be transferred.- Returns:
- RemoteCall
-
transferFrom
public org.web3j.protocol.core.RemoteCall<KlayTransactionReceipt.TransactionReceipt> transferFrom(java.lang.String from, java.lang.String to, java.math.BigInteger value)
Deprecated.Instance method for calling method "transferFrom" in KIP-7 Standard Token- Parameters:
from
- The current owner of the tokens.to
- The address of the account to receive the token.value
- The token amount will be transferred.- Returns:
- RemoteCall
-
unpause
public org.web3j.protocol.core.RemoteCall<KlayTransactionReceipt.TransactionReceipt> unpause()
Deprecated.Instance method for calling method "unpause" in KIP-7 Standard Token Function call must have "Pauser" permission.- Returns:
- RemoteCall
-
load
public static KIP7 load(java.lang.String contractAddress, Caver caver, KlayCredentials credentials, int chainId, org.web3j.tx.gas.ContractGasProvider contractGasProvider)
Deprecated.Static method create KIP-7 Standard Token handler connecting existed Contract The credential with the "KlayCredential Object" passed as a function parameter will control the contract- Parameters:
contractAddress
- KIP-7 Standard Token Addresscaver
- Caver Objectcredentials
- KlayCredential Object to control ContractchainId
- Klaytn network IDcontractGasProvider
- GasProvider- Returns:
- KIP7
-
load
public static KIP7 load(java.lang.String contractAddress, Caver caver, TransactionManager transactionManager, org.web3j.tx.gas.ContractGasProvider contractGasProvider)
Deprecated.Static method create KIP-7 Standard Token handler connecting existed Contract The default credential in transactionManager passed as a function parameter will control the contract- Parameters:
contractAddress
- KIP-7 Standard Token Addresscaver
- Caver ObjecttransactionManager
- transactionManger Object to control ContractcontractGasProvider
- GasProvider- Returns:
- KIP7
-
deploy
public static org.web3j.protocol.core.RemoteCall<KIP7> deploy(Caver caver, KlayCredentials credentials, int chainId, org.web3j.tx.gas.ContractGasProvider contractGasProvider, java.lang.String name, java.lang.String symbol, java.math.BigInteger decimals, java.math.BigInteger initialSupply)
Deprecated.Static method for deploying KIP-7 Standard Token- Parameters:
caver
- Caver Objectcredentials
- KlayCredential Object to deploy and control contractchainId
- Klaytn Network IDcontractGasProvider
- GasProvidername
- Contract Constructor parametersymbol
- Contract Constructor parameterdecimals
- Contract Constructor parameterinitialSupply
- Contract Constructor parameter- Returns:
- KIP7
-
deploy
public static org.web3j.protocol.core.RemoteCall<KIP7> deploy(Caver caver, TransactionManager transactionManager, org.web3j.tx.gas.ContractGasProvider contractGasProvider, java.lang.String name, java.lang.String symbol, java.math.BigInteger decimals, java.math.BigInteger initialSupply)
Deprecated.Static method for deploying KIP-7 Standard Token- Parameters:
caver
- Caver ObjecttransactionManager
- TransactionManager Object for deploy and control contractcontractGasProvider
- GasProvidername
- Contract Constructor parametersymbol
- Contract Constructor parameterdecimals
- Contract Constructor parameterinitialSupply
- Contract Constructor parameter- Returns:
- KIP7
-
getStaticDeployedAddress
protected java.lang.String getStaticDeployedAddress(java.lang.String networkId)
Deprecated.Description copied from class:SmartContract
Subclasses should implement this method to return pre-existing addresses for deployed contracts.- Overrides:
getStaticDeployedAddress
in classSmartContract
- Parameters:
networkId
- the network id, for example "1" for the main-net, "1001" for baobab.- Returns:
- the deployed address of the contract, if known, and null otherwise.
-
getPreviouslyDeployedAddress
public static java.lang.String getPreviouslyDeployedAddress(java.lang.String networkId)
Deprecated.
-
-