This repository was archived by the owner on Jul 23, 2024. It is now read-only.
Releases: klaytn/caver-java
Releases · klaytn/caver-java
Release v1.6.2
v1.6.2 Release Notes
New Features
- Added
caver.utils.decodeSignature()method to decode the raw signature data from executing klay_sign RPC API. (#248)
Fixes
- Fixed an issue that the sourceCompatibility and targetCompatibility options were not being applied properly. (#243)
- Updated decrypting logic for keystore file. (#247)
- Modified logic in the
caver.utils.hashMessage()method. (#248)
Others
- Added RPC field setter of Caver. (#246)
Release v1.6.1
v1.6.1 Release Notes
New Features
-
Supported wrapper classes to provide the same usability as caver-js SDK.
- Created a wrapper class of Account Layer supported through
caver.account.wrapperpackage.(#219)- Created and added an
AccountWrapperclass toCaverasaccount.- The
caver.account.createcreates anAccountinstance. - The
caver.account.xxxxexecutes static methods in theAccountclass.- e.g.
caver.account.createWithAccountKeyLegacyfeatures the same asAccount.createWithAccountKeyLegacy.
- e.g.
- The
- Created and added an
AccountKeyWrapperclass toAccountWrapperasaccountKey.- The
caver.account.accountKey.accountKeyXXX.createcreates anAccountKeyXXXinstance.
- The
- Created and added an
- Created a wrapper class of Transaction Layer supported through
caver.transaction.wrapperpackage.(#220)- Created and added a
TransactionWrapperclass toCaverastransaction.- The
caver.transaction.[transactionType].createcreates a transaction instance with the corresponding transactionType.- e.g.
caver.transaction.valueTransfer.createcreates a TxTypeValueTransfer transaction instance.
- e.g.
- The
caver.transacgtion.[transactionType].xxxxexecutes a static method in theTransactionTypeclass.- e.g
caver.transaction.valueTransfer.decodefeatures the same asValueTransfer.decode().
- e.g
- The
- Created and added a
- Created a wrapper class of Contract Layer supported through
caver.contract.wrapperpackage.(#221)- Created and added a
ContractWrapperclass toCaverascontract.- The
caver.contract.createcreates aContractinstance.
- The
- Created and added a
- Created a wrapper class of ABI Layer supported through
caver.abi.wrapperpackage.(#222)- Created and added an
ABIWrapperclass toCaverasabi.- The
caver.abi.xxxexecutes a static method in theABIclass.- e.g.
caver.abi.encodeABIfeatures the same asABI.encodeABI.
- e.g.
- The
- Created and added an
- Created a wrapper class of KCT Layer supported through
caver.kct.wrapperpackage.(#223)- Created and added a
KCTWrapperclass toCaveraskct. - Created and added a
KIP7Wrapperclass toKCTWrapperaskip7.- The
caver.kct.kip7.createcreates aKIP7instance. - The
caver.kct.kip7.xxxxexecutes a static method in theKIP7class.- e.g.
caver.kct.kip7.deploy()
- e.g.
- The
- Created and added a
KIP17Wrapperclass toKCTWrapperaskip17.- The
caver.kct.kip17.createcreates aKIP17instance. - The
caver.kct.kip17.xxxxexecutes a static method in theKIP17class.- e.g.
caver.kct.kip17.deploy()
- e.g.
- The
- Created and added a
KIP37Wrapperclass toKCTWrapperaskip37.- The
caver.kct.kip37.createcreates aKIP37instance. - The
caver.kct.kip37.xxxxexecutes a static method in theKIP37class.- e.g.
caver.kct.kip37.deploy()
- e.g.
- The
- Created and added a
- Created a wrapper class of Utils Layer supported through
caver.utils.wrapperpackage.(#224)- Created and added a
UtilsWrapperclass toCaverasutils.- The
caver.utils.xxxxexecutes a static method in theUtilsclass.- e.g.
caver.utils.isAddress()
- e.g.
- The
- Created and added a
- Created a wrapper class of IPFS Layer supported through
caver.ipfs.wrapperpackage.(#224)- Created and added an
IPFSWrapperclass toCaverasipfs.- The
caver.ipfs.xxxxexecutes a static method in theIPFSclass.- e.g.
caver.ipfs.fromHex()
- e.g.
- The
- Created and added an
- Created a wrapper class of Account Layer supported through
-
Supported fee-delegation feature with
caver.contract.(#233)- To support fee-delegation, add the additional fields related to fee-delegation defined in the
SendOptionsclass.- Defined a
feeDelegationfield to use a fee-delegation transaction.- If
false, it creates a basic transaction (SmartContractDeploy, SmartContractExecution).
- If
- Defined a
feePayerfield to use a fee payer address. - Defined a
feeRatiofield to use a fee ratio. - If you want to set and use a
SendOptionsinstance, a fee-delegation value as a default with aContractinstance, you can define theSendOptionsinstance by configuring fee-delegation-related field and set it incaver.contracts.setDefaultsOptions.
- Defined a
- You can define additional fields in the
SendOptionsinstance to use fee-delegation feature when deploying a smart contract viaContractclass.- You can use
contract.deploymethod likecontract.deploy(sendOptions, byteCode, argument...) - You can use
contract.sendmethod likecontract.send(sendOptions, "constructor", byteCode, argument...)
- You can use
- You can define additional fields in the
SendOptionsinstance to use fee-delegation feature when executing a smart contract viaContractclass.- You can use
contract.sendmethod likecontract.send(snedOptions, "function name", argumet...) - You can use
contract.getMethod("method name").sendmethod likecontract.method("function name").send(Arrays.asList(argumet...), sendOptions)
- You can use
- You can define additional fields in
sendOptionsinstance to use fee-delegation when signing a TxTypeFeeDelegatedSmartContractDeploy or TxTypeFeeDelegatedSmartContractDeployWithRatio as a sender.- You can create and sign a transaction like
contract.sign(sendOptions, "constructor", byteCode, argument...) - If you want to create a TxTypeFeeDelegatedSmartContractDeploy and sign it, you should define a
feeDelegation,feePayerfield inSendOptions. - If you want to create a TxTypeFeeDelegatedSmartContractDeployWithRatio and sign it, you should define a
feeDelegation,feePayerfield inSendOptions.
- You can create and sign a transaction like
- You can define additional fields in sendOptions to use fee-delegation when signing a TxTypeFeeDelegatedSmartContractExecution or TxTypeFeeDelegatedSmartContractExecutionWithRatio as a sender.
- You can create and sign a transaction like
contract.sign(sendOptions, "function name", byteCode, argument...) - You can create and sign a transaction as a feePayer like
contract.signAssFeePayer(sendOptions, "function name", byteCode, argument...) - If you want to create a TxTypeFeeDelegatedSmartContractDeploy and sign it, you should define a
feeDelegation,feePayerfield inSendOptions. - If you want to create a TxTypeFeeDelegatedSmartContractDeployWithRatio and sign it, you should define a
feeDelegation,feePayerfield inSendOptions.
- You can create and sign a transaction like
- To support fee-delegation, add the additional fields related to fee-delegation defined in the
-
Supported fee-delegation feature with
caver.kct.(#238)- You can pass sendOptions to
deployfunction to define additional fields to use fee-delegation when deploying a KCT viacaver.kct.- You can pass sendOptions instead of deployerAddress with
caver.kct.kip7likecaver.kct.kip7.deploy(sendOptions, name, symbol, decimals, initialSupply). - You can pass sendOptions instead of deployerAddress with
caver.kct.kip17likecaver.kct.kip17.deploy(sendOptions, name, symbol). - You can pass sendOptions instead of deployerAddress with
caver.kct.ki37likecaver.kct.kip37.deploy(sendOptions, uri).
- You can pass sendOptions instead of deployerAddress with
- You can use the
signfunction to sign a transaction related to deployment as a sender, and define additional fields to use fee-delegation.- You can use
kip7.signto sign a transaction likekip7.sign(sendOptions, "constructor", KIP7ConstantData.BINARY, arguments…). - You can use
kip17.signto sign a transaction likekip17.sign(sendOptions, "constructor", KIP17ConstantData.BINARY, arguments…). - You can use
kip37.signto sign a transaction likekip37.sign(sendOptions, "constructor", KIP37ConstantData.BINARY, arguments…).
- You can use
- You can use the
signAsFeePayerfunction to sign a transaction related to deployment as a fee payer, and define additional fields to use fee-delegation.- You can use
kip7.signAsFeePayerto sign a transaction as a fee payer likekip7.signAsFeePayer(sendOptions, "constructor", KIP7ConstantData.BINARY, arguments…). - You can use
kip17.signAsFeePayerto sign a transaction as a fee payer likekip17.signAsFeePayer(sendOptions, "constructor", KIP17ConstantData.BINARY, arguments…). - You can use
kip37.signAsFeePayerto sign a transaction as a fee payer likekip37.signAsFeePayer(sendOptions, "constructor", KIP37ConstantData.BINARY, arguments…).
- You can use
- You can use the
signfunction to sign a transaction related to executing smart contract functions as a sender, and define additional fields to use fee-delegation.- You can use
kip7.signto sign a transaction likekip7.sign(sendOptions, "function name", arguments…). - You can use
kip17.signto sign a transaction likekip17.sign(sendOptions, "function name", arguments…). - You can use
kip37.signto sign a transaction likekip37.sign(sendOptions, "function name", arguments…).
- You can use
- You can use the
signAsFeePayerfunction to sign a transaction related to executing smart contract functions as a fee payer, and define additional fields to use fee-delegation.- You can use
kip7.signAsFeePayerto sign a transaction as a fee payer likekip7.signAsFeePayer(sendOptions, "function name", arguments…). - You can use
kip17.signAsFeePayerto sign a transaction as a fee payer likekip17.signAsFeePayer(sendOptions, "function name", arguments…). - You can use
kip37.signAsFeePayerto sign a transaction as a fee payer likekip37.signAsFeePayer(sendOptions, "function name", arguments…).
- You can use
- You can pass sendOptions to
Fixed
- Fixed "Duplicated Account" problem caused by
KeyringContainer.remove()(#227) - Modified to return...
Release v1.6.1-rc.3
v1.6.1-rc.3 Release Notes
New Features
-
Supported wrapper classes to provide the same usability as caver-js SDK.
- Created a wrapper class of Account Layer supported through
caver.account.wrapperpackage.(#219)- Created and added an
AccountWrapperclass toCaverasaccount.- The
caver.account.createcreates anAccountinstance. - The
caver.account.xxxxexecutes static methods in theAccountclass.- e.g.
caver.account.createWithAccountKeyLegacyfeatures the same asAccount.createWithAccountKeyLegacy.
- e.g.
- The
- Created and added an
AccountKeyWrapperclass toAccountWrapperasaccountKey.- The
caver.account.accountKey.accountKeyXXX.createcreates anAccountKeyXXXinstance.
- The
- Created and added an
- Created a wrapper class of Transaction Layer supported through
caver.transaction.wrapperpackage.(#220)- Created and added a
TransactionWrapperclass toCaverastransaction.- The
caver.transaction.[transactionType].createcreates a transaction instance with the corresponding transactionType.- e.g.
caver.transaction.valueTransfer.createcreates a TxTypeValueTransfer transaction instance.
- e.g.
- The
caver.transacgtion.[transactionType].xxxxexecutes a static method in theTransactionTypeclass.- e.g
caver.transaction.valueTransfer.decodefeatures the same asValueTransfer.decode().
- e.g
- The
- Created and added a
- Created a wrapper class of Contract Layer supported through
caver.contract.wrapperpackage.(#221)- Created and added a
ContractWrapperclass toCaverascontract.- The
caver.contract.createcreates aContractinstance.
- The
- Created and added a
- Created a wrapper class of ABI Layer supported through
caver.abi.wrapperpackage.(#222)- Created and added an
ABIWrapperclass toCaverasabi.- The
caver.abi.xxxexecutes a static method in theABIclass.- e.g.
caver.abi.encodeABIfeatures the same asABI.encodeABI.
- e.g.
- The
- Created and added an
- Created a wrapper class of KCT Layer supported through
caver.kct.wrapperpackage.(#223)- Created and added a
KCTWrapperclass toCaveraskct. - Created and added a
KIP7Wrapperclass toKCTWrapperaskip7.- The
caver.kct.kip7.createcreates aKIP7instance. - The
caver.kct.kip7.xxxxexecutes a static method in theKIP7class.- e.g.
caver.kct.kip7.deploy()
- e.g.
- The
- Created and added a
KIP17Wrapperclass toKCTWrapperaskip17.- The
caver.kct.kip17.createcreates aKIP17instance. - The
caver.kct.kip17.xxxxexecutes a static method in theKIP17class.- e.g.
caver.kct.kip17.deploy()
- e.g.
- The
- Created and added a
KIP37Wrapperclass toKCTWrapperaskip37.- The
caver.kct.kip37.createcreates aKIP37instance. - The
caver.kct.kip37.xxxxexecutes a static method in theKIP37class.- e.g.
caver.kct.kip37.deploy()
- e.g.
- The
- Created and added a
- Created a wrapper class of Utils Layer supported through
caver.utils.wrapperpackage.(#224)- Created and added a
UtilsWrapperclass toCaverasutils.- The
caver.utils.xxxxexecutes a static method in theUtilsclass.- e.g.
caver.utils.isAddress()
- e.g.
- The
- Created and added a
- Created a wrapper class of IPFS Layer supported through
caver.ipfs.wrapperpackage.(#224)- Created and added an
IPFSWrapperclass toCaverasipfs.- The
caver.ipfs.xxxxexecutes a static method in theIPFSclass.- e.g.
caver.ipfs.fromHex()
- e.g.
- The
- Created and added an
- Created a wrapper class of Account Layer supported through
-
Supported fee-delegation feature with
caver.contract.(#233)- To support fee-delegation, add the additional fields related to fee-delegation defined in the
SendOptionsclass.- Defined a
feeDelegationfield to use a fee-delegation transaction.- If
false, it creates a basic transaction (SmartContractDeploy, SmartContractExecution).
- If
- Defined a
feePayerfield to use a fee payer address. - Defined a
feeRatiofield to use a fee ratio. - If you want to set and use a
SendOptionsinstance, a fee-delegation value as a default with aContractinstance, you can define theSendOptionsinstance by configuring fee-delegation-related field and set it incaver.contracts.setDefaultsOptions.
- Defined a
- You can define additional fields in the
SendOptionsinstance to use fee-delegation feature when deploying a smart contract viaContractclass.- You can use
contract.deploymethod likecontract.deploy(sendOptions, byteCode, argument...) - You can use
contract.sendmethod likecontract.send(sendOptions, "constructor", byteCode, argument...)
- You can use
- You can define additional fields in the
SendOptionsinstance to use fee-delegation feature when executing a smart contract viaContractclass.- You can use
contract.sendmethod likecontract.send(snedOptions, "function name", argumet...) - You can use
contract.getMethod("method name").sendmethod likecontract.method("function name").send(Arrays.asList(argumet...), sendOptions)
- You can use
- You can define additional fields in
sendOptionsinstance to use fee-delegation when signing a TxTypeFeeDelegatedSmartContractDeploy or TxTypeFeeDelegatedSmartContractDeployWithRatio as a sender.- You can create and sign a transaction like
contract.sign(sendOptions, "constructor", byteCode, argument...) - If you want to create a TxTypeFeeDelegatedSmartContractDeploy and sign it, you should define a
feeDelegation,feePayerfield inSendOptions. - If you want to create a TxTypeFeeDelegatedSmartContractDeployWithRatio and sign it, you should define a
feeDelegation,feePayerfield inSendOptions.
- You can create and sign a transaction like
- You can define additional fields in sendOptions to use fee-delegation when signing a TxTypeFeeDelegatedSmartContractExecution or TxTypeFeeDelegatedSmartContractExecutionWithRatio as a sender.
- You can create and sign a transaction like
contract.sign(sendOptions, "function name", byteCode, argument...) - You can create and sign a transaction as a feePayer like
contract.signAssFeePayer(sendOptions, "function name", byteCode, argument...) - If you want to create a TxTypeFeeDelegatedSmartContractDeploy and sign it, you should define a
feeDelegation,feePayerfield inSendOptions. - If you want to create a TxTypeFeeDelegatedSmartContractDeployWithRatio and sign it, you should define a
feeDelegation,feePayerfield inSendOptions.
- You can create and sign a transaction like
- To support fee-delegation, add the additional fields related to fee-delegation defined in the
-
Supported fee-delegation feature with
caver.kct.(#238)- You can pass sendOptions to
deployfunction to define additional fields to use fee-delegation when deploying a KCT viacaver.kct.- You can pass sendOptions instead of deployerAddress with
caver.kct.kip7likecaver.kct.kip7.deploy(sendOptions, name, symbol, decimals, initialSupply). - You can pass sendOptions instead of deployerAddress with
caver.kct.kip17likecaver.kct.kip17.deploy(sendOptions, name, symbol). - You can pass sendOptions instead of deployerAddress with
caver.kct.ki37likecaver.kct.kip37.deploy(sendOptions, uri).
- You can pass sendOptions instead of deployerAddress with
- You can use the
signfunction to sign a transaction related to deployment as a sender, and define additional fields to use fee-delegation.- You can use
kip7.signto sign a transaction likekip7.sign(sendOptions, "constructor", KIP7ConstantData.BINARY, arguments…). - You can use
kip17.signto sign a transaction likekip17.sign(sendOptions, "constructor", KIP17ConstantData.BINARY, arguments…). - You can use
kip37.signto sign a transaction likekip37.sign(sendOptions, "constructor", KIP37ConstantData.BINARY, arguments…).
- You can use
- You can use the
signAsFeePayerfunction to sign a transaction related to deployment as a fee payer, and define additional fields to use fee-delegation.- You can use
kip7.signAsFeePayerto sign a transaction as a fee payer likekip7.signAsFeePayer(sendOptions, "constructor", KIP7ConstantData.BINARY, arguments…). - You can use
kip17.signAsFeePayerto sign a transaction as a fee payer likekip17.signAsFeePayer(sendOptions, "constructor", KIP17ConstantData.BINARY, arguments…). - You can use
kip37.signAsFeePayerto sign a transaction as a fee payer likekip37.signAsFeePayer(sendOptions, "constructor", KIP37ConstantData.BINARY, arguments…).
- You can use
- You can use the
signfunction to sign a transaction related to executing smart contract functions as a sender, and define additional fields to use fee-delegation.- You can use
kip7.signto sign a transaction likekip7.sign(sendOptions, "function name", arguments…). - You can use
kip17.signto sign a transaction likekip17.sign(sendOptions, "function name", arguments…). - You can use
kip37.signto sign a transaction likekip37.sign(sendOptions, "function name", arguments…).
- You can use
- You can use the
signAsFeePayerfunction to sign a transaction related to executing smart contract functions as a fee payer, and define additional fields to use fee-delegation.- You can use
kip7.signAsFeePayerto sign a transaction as a fee payer likekip7.signAsFeePayer(sendOptions, "function name", arguments…). - You can use
kip17.signAsFeePayerto sign a transaction as a fee payer likekip17.signAsFeePayer(sendOptions, "function name", arguments…). - You can use
kip37.signAsFeePayerto sign a transaction as a fee payer likekip37.signAsFeePayer(sendOptions, "function name", arguments…).
- You can use
- You can pass sendOptions to
Fixed
- Fixed "Duplicated Account" problem caused by
KeyringContainer.remove()(#227) - Modified to r...
Release v1.6.1-rc.2
v1.6.1-rc.2 Release Notes
New Features
-
Supported wrapper classes to provide the same usability as caver-js SDK.
- Created a wrapper class of Account Layer supported through
caver.account.wrapperpackage.(#219)- Created and added an
AccountWrapperclass toCaverasaccount.- The
caver.account.createcreates anAccountinstance. - The
caver.account.xxxxexecutes static methods in theAccountclass.- e.g.
caver.account.createWithAccountKeyLegacyfeatures the same asAccount.createWithAccountKeyLegacy.
- e.g.
- The
- Created and added an
AccountKeyWrapperclass toAccountWrapperasaccountKey.- The
caver.account.accountKey.accountKeyXXX.createcreates anAccountKeyXXXinstance.
- The
- Created and added an
- Created a wrapper class of Transaction Layer supported through
caver.transaction.wrapperpackage.(#220)- Created and added a
TransactionWrapperclass toCaverastransaction.- The
caver.transaction.[transactionType].createcreates a transaction instance with the corresponding transactionType.- e.g.
caver.transaction.valueTransfer.createcreates a TxTypeValueTransfer transaction instance.
- e.g.
- The
caver.transacgtion.[transactionType].xxxxexecutes a static method in theTransactionTypeclass.- e.g
caver.transaction.valueTransfer.decodefeatures the same asValueTransfer.decode().
- e.g
- The
- Created and added a
- Created a wrapper class of Contract Layer supported through
caver.contract.wrapperpackage.(#221)- Created and added a
ContractWrapperclass toCaverascontract.- The
caver.contract.createcreates aContractinstance.
- The
- Created and added a
- Created a wrapper class of ABI Layer supported through
caver.abi.wrapperpackage.(#222)- Created and added an
ABIWrapperclass toCaverasabi.- The
caver.abi.xxxexecutes a static method in theABIclass.- e.g.
caver.abi.encodeABIfeatures the same asABI.encodeABI.
- e.g.
- The
- Created and added an
- Created a wrapper class of KCT Layer supported through
caver.kct.wrapperpackage.(#223)- Created and added a
KCTWrapperclass toCaveraskct. - Created and added a
KIP7Wrapperclass toKCTWrapperaskip7.- The
caver.kct.kip7.createcreates aKIP7instance. - The
caver.kct.kip7.xxxxexecutes a static method in theKIP7class.- e.g.
caver.kct.kip7.deploy()
- e.g.
- The
- Created and added a
KIP17Wrapperclass toKCTWrapperaskip17.- The
caver.kct.kip17.createcreates aKIP17instance. - The
caver.kct.kip17.xxxxexecutes a static method in theKIP17class.- e.g.
caver.kct.kip17.deploy()
- e.g.
- The
- Created and added a
KIP37Wrapperclass toKCTWrapperaskip37.- The
caver.kct.kip37.createcreates aKIP37instance. - The
caver.kct.kip37.xxxxexecutes a static method in theKIP37class.- e.g.
caver.kct.kip37.deploy()
- e.g.
- The
- Created and added a
- Created a wrapper class of Utils Layer supported through
caver.utils.wrapperpackage.(#224)- Created and added a
UtilsWrapperclass toCaverasutils.- The
caver.utils.xxxxexecutes a static method in theUtilsclass.- e.g.
caver.utils.isAddress()
- e.g.
- The
- Created and added a
- Created a wrapper class of IPFS Layer supported through
caver.ipfs.wrapperpackage.(#224)- Created and added an
IPFSWrapperclass toCaverasipfs.- The
caver.ipfs.xxxxexecutes a static method in theIPFSclass.- e.g.
caver.ipfs.fromHex()
- e.g.
- The
- Created and added an
- Created a wrapper class of Account Layer supported through
-
Supported fee-delegation feature with
caver.contract.(#233)- To support fee-delegation, add the additional fields related to fee-delegation defined in the
SendOptionsclass.- Defined a
feeDelegationfield to use a fee-delegation transaction.- If
false, it creates a basic transaction (SmartContractDeploy, SmartContractExecution).
- If
- Defined a
feePayerfield to use a fee payer address. - Defined a
feeRatiofield to use a fee ratio. - If you want to set and use a
SendOptionsinstance, a fee-delegation value as a default with aContractinstance, you can define theSendOptionsinstance by configuring fee-delegation-related field and set it incaver.contracts.setDefaultsOptions.
- Defined a
- You can define additional fields in the
SendOptionsinstance to use fee-delegation feature when deploying a smart contract viaContractclass.- You can use
contract.deploymethod likecontract.deploy(sendOptions, byteCode, argument...) - You can use
contract.sendmethod likecontract.send(sendOptions, "constructor", byteCode, argument...)
- You can use
- You can define additional fields in the
SendOptionsinstance to use fee-delegation feature when executing a smart contract viaContractclass.- You can use
contract.sendmethod likecontract.send(snedOptions, "function name", argumet...) - You can use
contract.getMethod("method name").sendmethod likecontract.method("function name").send(Arrays.asList(argumet...), sendOptions)
- You can use
- You can define additional fields in
sendOptionsinstance to use fee-delegation when signing a TxTypeFeeDelegatedSmartContractDeploy or TxTypeFeeDelegatedSmartContractDeployWithRatio as a sender.- You can create and sign a transaction like
contract.sign(sendOptions, "constructor", byteCode, argument...) - If you want to create a TxTypeFeeDelegatedSmartContractDeploy and sign it, you should define a
feeDelegation,feePayerfield inSendOptions. - If you want to create a TxTypeFeeDelegatedSmartContractDeployWithRatio and sign it, you should define a
feeDelegation,feePayerfield inSendOptions.
- You can create and sign a transaction like
- You can define additional fields in sendOptions to use fee-delegation when signing a TxTypeFeeDelegatedSmartContractExecution or TxTypeFeeDelegatedSmartContractExecutionWithRatio as a sender.
- You can create and sign a transaction like
contract.sign(sendOptions, "function name", byteCode, argument...) - You can create and sign a transaction as a feePayer like
contract.signAssFeePayer(sendOptions, "function name", byteCode, argument...) - If you want to create a TxTypeFeeDelegatedSmartContractDeploy and sign it, you should define a
feeDelegation,feePayerfield inSendOptions. - If you want to create a TxTypeFeeDelegatedSmartContractDeployWithRatio and sign it, you should define a
feeDelegation,feePayerfield inSendOptions.
- You can create and sign a transaction like
- To support fee-delegation, add the additional fields related to fee-delegation defined in the
-
Supported fee-delegation feature with
caver.kct.(#238)- You can pass sendOptions to
deployfunction to define additional fields to use fee-delegation when deploying a KCT viacaver.kct.- You can pass sendOptions instead of deployerAddress with
caver.kct.kip7likecaver.kct.kip7.deploy(sendOptions, name, symbol, decimals, initialSupply). - You can pass sendOptions instead of deployerAddress with
caver.kct.kip17likecaver.kct.kip17.deploy(sendOptions, name, symbol). - You can pass sendOptions instead of deployerAddress with
caver.kct.ki37likecaver.kct.kip37.deploy(sendOptions, uri).
- You can pass sendOptions instead of deployerAddress with
- You can use the
signfunction to sign a transaction related to deployment as a sender, and define additional fields to use fee-delegation.- You can use
kip7.signto sign a transaction likekip7.sign(sendOptions, "constructor", KIP7ConstantData.BINARY, arguments…). - You can use
kip17.signto sign a transaction likekip17.sign(sendOptions, "constructor", KIP17ConstantData.BINARY, arguments…). - You can use
kip37.signto sign a transaction likekip37.sign(sendOptions, "constructor", KIP37ConstantData.BINARY, arguments…).
- You can use
- You can use the
signAsFeePayerfunction to sign a transaction related to deployment as a fee payer, and define additional fields to use fee-delegation.- You can use
kip7.signAsFeePayerto sign a transaction as a fee payer likekip7.signAsFeePayer(sendOptions, "constructor", KIP7ConstantData.BINARY, arguments…). - You can use
kip17.signAsFeePayerto sign a transaction as a fee payer likekip17.signAsFeePayer(sendOptions, "constructor", KIP17ConstantData.BINARY, arguments…). - You can use
kip37.signAsFeePayerto sign a transaction as a fee payer likekip37.signAsFeePayer(sendOptions, "constructor", KIP37ConstantData.BINARY, arguments…).
- You can use
- You can use the
signfunction to sign a transaction related to executing smart contract functions as a sender, and define additional fields to use fee-delegation.- You can use
kip7.signto sign a transaction likekip7.sign(sendOptions, "function name", arguments…). - You can use
kip17.signto sign a transaction likekip17.sign(sendOptions, "function name", arguments…). - You can use
kip37.signto sign a transaction likekip37.sign(sendOptions, "function name", arguments…).
- You can use
- You can use the
signAsFeePayerfunction to sign a transaction related to executing smart contract functions as a fee payer, and define additional fields to use fee-delegation.- You can use
kip7.signAsFeePayerto sign a transaction as a fee payer likekip7.signAsFeePayer(sendOptions, "function name", arguments…). - You can use
kip17.signAsFeePayerto sign a transaction as a fee payer likekip17.signAsFeePayer(sendOptions, "function name", arguments…). - You can use
kip37.signAsFeePayerto sign a transaction as a fee payer likekip37.signAsFeePayer(sendOptions, "function name", arguments…).
- You can use
- You can pass sendOptions to
Fixed
- Fixed "Duplicated Account" problem caused by
KeyringContainer.remove()(#227) - Modified to r...
v1.6.1-rc.1: Merge pull request #235 from sirano11/maven
[CI] add a Nexus credential
Release v1.6.0
v1.6.0 Release Notes
New Features
caver.abisupports tuple type.- You can encode and decode tuple-type parameters using the functions below.
- caver.abi.encodeParameter
- caver.abi.encodeParameters
- caver.abi.decodeParameter
- caver.abi.decodeParameters
- For more information on tuple types, please refer to Solidity document.
- You can encode and decode tuple-type parameters using the functions below.
Improvements
- Supported decoding of multidimensional arrays.(#214)
Fixed
- Fixed a logic to encode arrays of dynamic types defined by ABI specification.(#212, #216)
- Made fixes for
T[] for any type T - Made fixes for
T[k] for any dynamic T and any k >= 0
- Made fixes for
- Fixed a logic to decode arrays of dynamic types defined by ABI specification.(#214, #216)
- Made fixes for
T[] for any type T - Made fixes for
T[k] for any dynamic T and any k >= 0
- Made fixes for
- Added a left padding to
WeightedPublicKeywhen creating a public key string from x, y points.(#209)
Release v1.5.7
v1.5.7 Release Notes
New Features
KIP37class in caver.kct.kip37 package- Introduced
KIP37class to interact with a KIP-37 multi token contract. - Provided the following methods that conform to the KIP-37 multi token.
- KIP37.deploy
- clone
- supportInterface
- uri
- totalSupply
- balanceOf
- balanceOfBatch
- isApprovedForAll
- paused
- isPauser
- isMinter
- create
- setApprovalForAll
- safeTransferFrom
- safeBatchTransferFrom
- mint
- mintBatch
- addMinter
- renounceMinter
- burn
- burnBatch
- pause
- unpause
- addPauser
- renouncePauser
- For more details on the methods provided
KIP37class, please refer to API Reference.
- Introduced
- detectInterface
- Provided a method to detect what interface the token contract distributed to Klaytn implements.
- It is provided by detectInterface method in the
KIP7,KIP17, andKIP37class.KIP7class- KIP7.detectInterface
- detectInterface
KIP17class- KIP17.detectInterface
- detectInterface
KIP37class- KIP37.detectInterface
- detectInterface
Improvements
Release v1.5.6
v1.5.6 Release Notes
Breaking Changes
- Removed Public EN URL.(#182)
New features
- Introduction of
IWalletinterface to support various wallet types of Caver(#181, #185, #187, #189, #193)IWalletinterface defines a method for signing a transaction.- Sign using the
IWalletinterface in theKIP7,KIP17, andContractclasses that internally sign transactions. - Extending/replacing the sign function as needed now easier with the implementation of the
IWalletinterface.KeyringContainerclass corresponding to caver.wallet implementsIWalletinterface.KASWalletclass in caver-java-ext-kas implementsIWalletinterface.
Improvements
- Added a constructor with only the from field in SendOptions class.(#194)
- It should only be used when executing KIP7 / KIP7 class methods. Because if the gas parameter passed to the method is null, the KIP7 / KIP7 class method automatically estimates the gas.
Fixed
- Changed the default value of address.(#190)
- The default value of address changed from 0x to 0x0000000000000000000000000000000000000000 in 20 bytes. Since Klaytn's address has a fixed length of 20 bytes, it cannot have 0x as a default.
- When sending a transaction internally in the contract class, catch errors that occur during the execution of the sendRawTransaction API.(#191)
Others
- Added more waiting time for CircleCI to prepare for network build and test for caver-java.(#192)
Release v1.5.6-rc.6
v1.5.6-rc.6 Release Notes(#194)
Breaking Changes
- Remove Public EN url.(#182)
- changes the default value of the address(#190)
changes the default value of the address from 0x to 0x0000000000000000000000000000000000000000 in 20 bytes. Since Klaytn's address has a fixed length of 20 bytes, it cannot have 0x as a default.
New features
- Introduced a IWallet interface(#185)
- IWallet interface defines a method for signing a transaction.
- KeyringContainer class corresponding to caver.wallet implements this interface.
- sign using the IWallet interface in the KIP7, KIP17, and Contract classes that sign the transaction internally.
Improvement
- add encodeABI, estimateGas in Contract class(#180)
- Define throw exception class in IWallet interface's method.(#187)
- generate()
- isExisted()
- Clarify the exception class thrown by the method in IWallet interface(#189)
- Clarify throws exception in KIP7 / KIP17(#193)
- add a constructor with only from in SendOptions class(#194)
- It should only be used when executing KIP7 / KIP7 class methods. Because if gas passed to the method is null, the KIP7 / KIP7 class method automatically estimates gas.
Others
- Add more time waiting for Circle CI to prepare to build test network for testing caver-java.(#192)
Release v1.5.6-rc.5
v1.5.6-rc.5 Release Notes(#193)
Breaking Changes
- Remove Public EN url.(#182)
- changes the default value of the address(#190)
changes the default value of the address from 0x to 0x0000000000000000000000000000000000000000 in 20 bytes. Since Klaytn's address has a fixed length of 20 bytes, it cannot have 0x as a default.
New features
- Introduced a IWallet interface(#181, #185)
- IWallet interface defines a method for signing a transaction.
- KeyringContainer class corresponding to caver.wallet implements this interface.
- sign using the IWallet interface in the KIP7, KIP17, and Contract classes that sign the transaction internally.
Improvement
- add encodeABI, estimateGas in Contract class(#180)
- Define throw exception class in IWallet interface's method.(#187)
- generate()
- isExisted()
- Clarify the exception class thrown by the method in IWallet interface(#189)
- Clarify throws exception in KIP7 / KIP17(#193)
Others
- Add more time waiting for Circle CI to prepare to build test network for testing caver-java.(#192)