Migration to 12.0.0
General
Universal, RpcAepp, RpcWallet, Ae stamps are removed
Universal, RpcAepp, RpcWallet, Ae stamps are removed-import { Universal } from '@aeternity/aepp-sdk'
+import { AeSdk } from '@aeternity/aepp-sdk'
-const aeSdk = await Universal(options)
+const aeSdk = new AeSdk(options)Node, RpcClient, BrowserWindowMessage classes are using private fields
Node, RpcClient, BrowserWindowMessage classes are using private fieldsall combined exports are inlined (require('@aeternity/aepp-sdk').generateKeyPair())
require('@aeternity/aepp-sdk').generateKeyPair())-import { Crypto } from '@aeternity/aepp-sdk'
+import { generateKeyPair } from '@aeternity/aepp-sdk'
-console.log(Crypto.generateKeyPair())
+console.log(generateKeyPair())AccountBase and inheritors are classes now
AccountBase and inheritors are classes nowChainNode, Contract, Oracle, Aens, GeneralizedAccount stamps not exported
ChainNode, Contract, Oracle, Aens, GeneralizedAccount stamps not exportedNode and Compiler
Node, Compiler (previously ContractCompilerHttp) are classes instead of a stamps
Node, Compiler (previously ContractCompilerHttp) are classes instead of a stampsNode, Compiler doesn't check version on the first request instead of init
Node, Compiler doesn't check version on the first request instead of initgetNetworkId returns a promise
getNetworkId returns a promisegetNetworkId ignores force option
getNetworkId ignores force optionapi is removed in Node
api is removed in Nodestatic properties are removed in Node
NodeNode returns BigInts for coin amount fields instead of string or number
Node returns BigInts for coin amount fields instead of string or numberNode not accepts internalUrl
Node not accepts internalUrlremoved mempool method in Node
mempool method in NodecompilerVersion is removed in Compiler
compilerVersion is removed in CompilersetCompilerUrl changes compiler URL in sync
setCompilerUrl changes compiler URL in syncmethods of Compiler requires options object according to their specification
Compiler requires options object according to their specificationmethods of Compiler returns and accepts keys named in camelCase instead of snake_case
Compiler returns and accepts keys named in camelCase instead of snake_caseTransaction builder
removed methods to generate a transaction of specific type
removed ability to generate transaction on the node side
nonce, ttl, gas decoded and accepted as numbers instead of strings
nonce, ttl, gas decoded and accepted as numbers instead of stringsgas renamed to gasLimit
gas renamed to gasLimitunpackTx not accepting transaction as Buffer, only as tx-encoded string
unpackTx not accepting transaction as Buffer, only as tx-encoded stringunpackTx doesn't have binary field in result
unpackTx doesn't have binary field in resultencode: since the prefix is evaluated by the type itself the required prefix parameter
calculateMinFee returns BigNumber instead of string
calculateMinFee returns BigNumber instead of stringFee helpers not exported anymore (BASE_GAS, GAS_PER_BYTE, KEY_BLOCK_INTERVAL,
BASE_GAS, GAS_PER_BYTE, KEY_BLOCK_INTERVAL,buildRawTx, calculateTtl not exported anymore
buildRawTx, calculateTtl not exported anymoreTX_TYPE mapped to tag (number) instead of string
TX_TYPE mapped to tag (number) instead of stringOBJECT_ID_TX_TYPE not exported anymore
OBJECT_ID_TX_TYPE not exported anymoreTX_SERIALIZATION_SCHEMA combined with TX_DESERIALIZATION_SCHEMA
TX_SERIALIZATION_SCHEMA combined with TX_DESERIALIZATION_SCHEMATransaction schemas doesn't contain tag anymore
AENS
computeBidFee accepts startFee, increment as options
computeBidFee accepts startFee, increment as optionsNAME_BID_TIMEOUTS not exposed anymore
NAME_BID_TIMEOUTS not exposed anymorecomputeAuctionEndBlock accepts and returns height as number
computeAuctionEndBlock accepts and returns height as numberremoved ensureNameValid
ensureNameValidname.update, name.revoke doesn't accept address in onAccount
name.update, name.revoke doesn't accept address in onAccountOracle
extendOracleTtl accepts oracle ttl in oracleTtlType and oracleTtlValue fields
extendOracleTtl accepts oracle ttl in oracleTtlType and oracleTtlValue fieldsdecode method of getQueryObject removed
decode method of getQueryObject removedContract
createAensDelegationSignature first argument not an object
createAensDelegationSignature first argument not an objectcreateOracleDelegationSignature first argument not an object
createOracleDelegationSignature first argument not an objectcall arguments in createGeneralizedAccount is required
createGeneralizedAccount is requiredfilesystem option renamed to fileSystem
filesystem option renamed to fileSystemContract instance doesn't accept address in onAccount
onAccountChain
removed balance method
balance methodremoved tx method
tx methodremoved getTxInfo method
getTxInfo methodOther
getAccountNonce removed
getAccountNonce removedAeSdk doesn't accept array of accounts
AeSdk doesn't accept array of accountsdestroyInstance method removed
destroyInstance method removedNodePool is removed
NodePool is removedAccountMultiple is removed
AccountMultiple is removedDENOMINATION_MAGNITUDE not exposed anymore
DENOMINATION_MAGNITUDE not exposed anymoreThe result of unpackTx returned instead of TxObject
unpackTx returned instead of TxObjectvalidateKeyObj removed
validateKeyObj removedderiveKeyUsingArgon2id removed
deriveKeyUsingArgon2id removedremoved extra implementation of getAddressFromPriv in keystore
getAddressFromPriv in keystoregenSwaggerClient removed
genSwaggerClient removedAepp Wallet communication
BrowserRuntimeConnection, BrowserWindowMessageConnection are classes
ContentScriptBridge, WalletDetector rewrited to plain functions
RpcClient: removed origin property
origin propertyRpcClient: sendMessage is a private method
sendMessage is a private methodRpcClient: handlers parameter is removed
handlers parameter is removedRpcClient: doesn't contain aepp info anymore
RpcClient: doesn't contain networkId anymore
networkId anymoreRPC helpers are not exposed anymore (isInIframe, sendMessage, getHandler, message,
isInIframe, sendMessage, getHandler, message,Aepp
connectToWallet accepts wallet connection as the first argument
connectToWallet accepts wallet connection as the first argumentdisconnectWallet runs in sync and sendDisconnect arg removed
disconnectWallet runs in sync and sendDisconnect arg removedsendConnectRequest removed
sendConnectRequest removeddoesn't accept connection anymore
connection anymoreremoved isConnected, isSubscribedAccount methods
isConnected, isSubscribedAccount methodssignMessage returns Buffer by default
signMessage returns Buffer by defaultWallet
BrowserRuntimeConnection requires port parameter
BrowserRuntimeConnection requires port parameterrequires id, type in params
id, type in paramsgetBrowserAPI helper removed
getBrowserAPI helper removedshareWalletInfo accepts rpc client id instead of callback
shareWalletInfo accepts rpc client id instead of callbackshareNode argument in accept callback of onConnection removed
shareNode argument in accept callback of onConnection removedcan't handle specific set of accounts for an app
txObject parameter of onSign callback is removed
txObject parameter of onSign callback is removedrpcClients in wallet is not exposed anymore
rpcClients in wallet is not exposed anymoreonDisconnect callback on wallet side accepts client id instead of RpcClient
onDisconnect callback on wallet side accepts client id instead of RpcClientwallet can't selectively notify aepps about selecting/adding account
wallet can't provide metadata for accounts
removed action.accept in permission callbacks
action.accept in permission callbacksremoved action.deny in permission callbacks
action.deny in permission callbackscallbacks accept client id, params, and origin
Last updated
Was this helpful?