Class KIP7


  • @Deprecated
    public class KIP7
    extends SmartContract
    Deprecated.
    Please use KIP7 instead.
    See Also:
    KIP7
    • 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_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_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 burned
        amount - 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 token
        amount - 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 Address
        caver - Caver Object
        credentials - KlayCredential Object to control Contract
        chainId - Klaytn network ID
        contractGasProvider - 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 Address
        caver - Caver Object
        transactionManager - transactionManger Object to control Contract
        contractGasProvider - 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 Object
        credentials - KlayCredential Object to deploy and control contract
        chainId - Klaytn Network ID
        contractGasProvider - GasProvider
        name - Contract Constructor parameter
        symbol - Contract Constructor parameter
        decimals - Contract Constructor parameter
        initialSupply - 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 Object
        transactionManager - TransactionManager Object for deploy and control contract
        contractGasProvider - GasProvider
        name - Contract Constructor parameter
        symbol - Contract Constructor parameter
        decimals - Contract Constructor parameter
        initialSupply - 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 class SmartContract
        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.