Migration to 11.0.0
This guide describes all breaking changes introduced with v11.0.0
.
Changes to decodeEvents
method
decodeEvents
methodRemoved
decodeEvents
from contract ACI methods (a84d781).
rewrite
to
Removed raw fields from the
decodeEvents
response (45bae5f) use processed fields for the same.Renamed decoded events response field
decoded
toargs
old response
new response
Transaction poll
method now checks if Tx is in the node pool (690db5b)
poll
method now checks if Tx is in the node pool (690db5b)The default polling interval of 5000
is replaced by a method which calculates the default interval using expected mine rate and micro block cycle (d9c6cf9)
5000
is replaced by a method which calculates the default interval using expected mine rate and micro block cycle (d9c6cf9)Following contract instance methods are dropped(#1368)
topBlock
use
aeSdk.api.getTopHeader()
instead
contractCall
replace
await aeSdk.contractCall(identityContract, contractId, 'getArg', [42])
with
(await aeSdk.getContractInstance({ source, contractAddress: contractId })).methods.getArg(42)
contractCompile
replace
await aeSdk.contractCompile(CONTRACT_SOURCE)
with
(await aeSdk.getContractInstance({ source: CONTRACT_SOURCE })).compile()
contractDeploy
replace
await aeSdk.contractDeploy(bytecode, identityContract)
with
(await aeSdk.getContractInstance({ bytecode, source: identityContract })).deploy()
contractCallStatic
replace
await aeSdk.contractCallStatic(identityContract, null, 'init', [], { bytecode })
with
await contract.deploy([], { callStatic: true })
Removed property
createdAt
fromcontract.deploy
method responsecall/callStatic
removed
call
andcallStatic
methods from deploy response
rewrite
to
The default gas
of 25000 limit has been dropped. Instead, SDK attempts to estimate the gas using dry-run feature (#1367)
gas
of 25000 limit has been dropped. Instead, SDK attempts to estimate the gas using dry-run feature (#1367)See documentation on transaction-options.md for detailed explanation.
Removed Wrappers around CompilerApi
(#1363)
CompilerApi
(#1363)Removed
getBytecodeCompilerVersion
method.Removed
encodeCall
method fromcontractCompile
response.Removed
getCompilerVersion
method, useaeSdk. sdk.compilerVersion
instead.Removed
contractDecodeCallDataByCodeAPI
method.Removed
contractDecodeCallResultAPI
method.Removed
getFateAssembler
method.Removed
compileContractAPI
method.
rewrite
to
Removed
contractEncodeCallDataAPI
:
rewrite
to
Removed
contractGetACI
:
rewrite
to
Removed
validateByteCodeAPI
:
rewrite
to
Native build of claim tx now accepts unencoded name
instead of encoded name (eea92be)
name
instead of encoded name (eea92be)rewrite
to
Renamed hd-wallet
methods (f6243ad)
hd-wallet
methods (f6243ad)Renamed
generateSaveHDWallet
togenerateSaveHDWalletFromSeed
Renamed
getHdWalletAccountFromMnemonic
togetHdWalletAccountFromSeed
Last updated