Migration to 13.0.0
Wallet
onSign, onMessageSign callbacks were removed on the wallet side
onSign, onMessageSign callbacks were removed on the wallet sideAepp
All wallet provided nodes have the same name
Select option removed from connectToWallet
Contract
ACI format used the same as returned by aesophia_cli
{
"encoded_aci": { contract: <1> },
"external_encoded_aci": [<2>]
}params argument in $deploy and $call is required
params argument in $deploy and $call is requiredContract methods accessible on the instance itself
contract.methods.<name>.get,send removed
contract.methods.<name>.get,send removedcontract.bytecode,sourceCode moved to contract.$options
contract.bytecode,sourceCode moved to contract.$optionscontract.calldata renamed to contract._calldata
contract.calldata renamed to contract._calldatacontract.options renamed to contract.$options
contract.options renamed to contract.$optionscontract.deployInfo removed
contract.deployInfo removedcontract.decodeEvents renamed to contract.$decodeEvents
contract.decodeEvents renamed to contract.$decodeEventscontract.call renamed to contract.$call
contract.call renamed to contract.$callcontract.compile renamed to contract.$compile
contract.compile renamed to contract.$compilecontract.deploy renamed to contract.$deploy
contract.deploy renamed to contract.$deploycreateAensDelegationSignature, createOracleDelegationSignature removed
createAensDelegationSignature, createOracleDelegationSignature removeduse sourceCode instead of source
sourceCode instead of sourcegetContractInstance accepts address instead of contractAddress
getContractInstance accepts address instead of contractAddressgetContractInstance function replaced with Contract class
getContractInstance function replaced with Contract classAeSdk.getContractInstance renamed to AeSdk.initializeContract
AeSdk.getContractInstance renamed to AeSdk.initializeContractprepareTxParams, getVmVersion are not exported anymore
prepareTxParams, getVmVersion are not exported anymoreisGA method removed
isGA method removedTransaction builder
writeInt function removed
writeInt function removedreturnType of contract call result structure is a value of CallReturnType enum
returnType of contract call result structure is a value of CallReturnType enumwriteId, readId functions removed
writeId, readId functions removedreadPointers, buildPointers functions removed
readPointers, buildPointers functions removedformatSalt function removed
formatSalt function removedvalidateParams, unpackRawTx functions removed
validateParams, unpackRawTx functions removedAMOUNT constant removed
AMOUNT constant removedStateTrees fields decoded as objects mapping key to decoded entry instead of internals
The content of Tag.*Mtree entries decoded and moved to payload field
payload fieldTX_SCHEMA, TxParamsCommon, TxSchema, TxTypeSchemas are not exported anymore
TX_TTL is not exported anymore
TX_TTL is not exported anymoreEnum FIELD_TYPES is not exported anymore
FIELD_TYPES is not exported anymoreNot able to build/unpack CompilerSophia entry (tag 70)
Enums PROTOCOL_VM_ABI, interface CtVersion not exported anymore
PROTOCOL_VM_ABI, interface CtVersion not exported anymoreEnums VM_VERSIONS, ABI_VERSIONS, PROTOCOL_VERSIONS renamed
VM_VERSIONS, ABI_VERSIONS, PROTOCOL_VERSIONS renamedstateHash of Channel entry decoded as st_-prefixed string instead of hex
stateHash of Channel entry decoded as st_-prefixed string instead of hexSpendTx payload doesn't accept arbitrary strings anymore
payload doesn't accept arbitrary strings anymoreverifyTransaction doesn't accept parent tx types anymore
verifyTransaction doesn't accept parent tx types anymorebuildTx doesn't accept excludeKeys option anymore
buildTx doesn't accept excludeKeys option anymoreUse version instead of VSN, vsn in unpackTx, buildTx
version instead of VSN, vsn in unpackTx, buildTxbuildTx accepts transaction type and version in the first argument
buildTx accepts transaction type and version in the first argumentAeSdk.buildTx accepts tag in options
tag in optionssync buildTx accepts denomination in the first argument
buildTx accepts denomination in the first argumentunpackTx return an object of transaction parameters
unpackTx return an object of transaction parametersunpackTx doesn't return rlpEncoded anymore
unpackTx doesn't return rlpEncoded anymoreunpackTx doesn't return txType anymore
unpackTx doesn't return txType anymorebuildTx return string instead of object
buildTx return string instead of objectbuildTx doesn't return txObject anymore
buildTx doesn't return txObject anymorebuildTx doesn't return binary anymore
buildTx doesn't return binary anymorebuildTx doesn't return rlpEncoded anymore
buildTx doesn't return rlpEncoded anymorekey of MtreeValue entry decoded as a buffer instead of a hex
key of MtreeValue entry decoded as a buffer instead of a hexTxBuilder accepts and returns poi field unpacked as TreesPoi
poi field unpacked as TreesPoiget method of MPTree accepts and returns typed values
get method of MPTree accepts and returns typed valuesCompiler
Compiler export renamed to CompilerHttp
Compiler export renamed to CompilerHttpremoved AeSdk:compilerUrl, AeSdk:setCompilerUrl
Methods of CompilerHttp moved to api property
CompilerHttp moved to api propertyDropped compatibility with aesophia_http below 7.1.1, aesophia_cli below 7.0.1
Account
createGeneralizedAccount accepts sourceCode in options
createGeneralizedAccount accepts sourceCode in optionscreateMetaTx removed
createMetaTx removedAccountRpc constructor accepts arguments one by one
AccountRpc constructor accepts arguments one by oneAccountMemory requires networkId in signTransaction
AccountMemory requires networkId in signTransactionAccountBase simplified
AccountBase simplifiedaddress in AccountBase is a property
address in AccountBase is a propertyMemoryAccount accepts only secretKey
MemoryAccount is not compatible with GA
Node
url property of Node removed
url property of Node removedOracle
QUERY_FEE is not exported anymore
QUERY_FEE is not exported anymoreOracles created without queryFee by default
AeSdk:extendOracleTtl, AeSdk:respondToQuery doesn't accept oracleId
onQuery callback of pollForQueries, oracle.pollQueries accepts a single query
onQuery callback of pollForQueries, oracle.pollQueries accepts a single queryChain
send inlined into sendTransaction
send inlined into sendTransactionAENS
height removed from the output of aensPreclaim
height removed from the output of aensPreclaimChannel
Channel:state returns unpacked entries
All channel events emitted in snakeCase
Channel:poi returns unpacked TreesPoi
Other
onAccount doesn't accept keypair
onAccount doesn't accept keypairbigNumberToByteArray removed
bigNumberToByteArray removedstr2buf function removed
str2buf function removedgetAddressFromPriv doesn't accept private key as base64-encoded or raw string
getAddressFromPriv doesn't accept private key as base64-encoded or raw stringisValidKeypair doesn't accept public key as base64-encoded string
isValidKeypair doesn't accept public key as base64-encoded stringbytesToHex function removed
bytesToHex function removedhexToBytes function removed
hexToBytes function removedrename umd export to Aeternity
AeternitySubpaths imports of SDK are not allowed
Removed getNetworkId from AeSdkBase
getNetworkId from AeSdkBaseaddress a getter in AeSdkBase
address a getter in AeSdkBaseaddAccount is a sync function
addAccount is a sync functionverifyMessage removed from accounts and AeSdkBase
verifyMessage removed from accounts and AeSdkBaseverify and verifyMessage accepts address instead of hex string or Uint8Array
verify and verifyMessage accepts address instead of hex string or Uint8Arraynode@12 not supported
removeAccount throws an error if the account is not found
removeAccount throws an error if the account is not foundsignMessage always returns Uint8Array
signMessage always returns Uint8ArrayencryptKey, decryptKey are not exported anymore
encryptKey, decryptKey are not exported anymoresha256hash is not exported anymore
sha256hash is not exported anymoreheight method removed
height method removedsignUsingGA method removed
signUsingGA method removedPOINTER_KEY_BY_PREFIX removed
POINTER_KEY_BY_PREFIX removedID_TAG_PREFIX, PREFIX_ID_TAG, ID_TAG removed
ID_TAG_PREFIX, PREFIX_ID_TAG, ID_TAG removedTX_TYPE removed.
TX_TYPE removed.GAS_MAX removed
GAS_MAX removedcalculateMinFee removed
calculateMinFee removedsalt, createSalt removed
salt, createSalt removedPointer removed
Pointer removedLast updated
Was this helpful?