- Updated dependencies []:
- @moralisweb3/[email protected]
- @moralisweb3/[email protected]
- @moralisweb3/[email protected]
-
#1102
700a64f6a
Thanks @b4rtaz! - Added thentfTokenApprovals
property to theEvmStreamResult
class. ThenftApprovals
property is depreciated now. -
#1098
393291c73
Thanks @b4rtaz! - Fixed importing interop modules for CJS bundles. -
Updated dependencies [
586a71133
,586a71133
,586a71133
,586a71133
,393291c73
]:- @moralisweb3/[email protected]
- @moralisweb3/[email protected]
- @moralisweb3/[email protected]
- Updated dependencies []:
- @moralisweb3/[email protected]
- @moralisweb3/[email protected]
- @moralisweb3/[email protected]
- Updated dependencies [
6e1fc78fd
,27d62491b
,a3c5e35fe
]:- @moralisweb3/[email protected]
- @moralisweb3/[email protected]
- @moralisweb3/[email protected]
- Updated dependencies [
8caf91365
]:- @moralisweb3/[email protected]
- @moralisweb3/[email protected]
- @moralisweb3/[email protected]
- Updated dependencies [
98a35355f
]:- @moralisweb3/[email protected]
- @moralisweb3/[email protected]
- @moralisweb3/[email protected]
-
#1054
121a903de
Thanks @ErnoW! - Implement getLogs endpoint atStreams.getLogs
-
#1066
9fba6e55a
Thanks @ErnoW! - Add processed media for nfts
- Updated dependencies [
2f102c48c
,4ad15182b
,44971d0f8
,3e031685b
,2d99b05c7
,9fba6e55a
,6d8dbacb7
,ecc414aaf
]:- @moralisweb3/[email protected]
- @moralisweb3/[email protected]
- @moralisweb3/[email protected]
-
#1055
d9b9587be
Thanks @ErnoW! - Update Streams webhook types to reflect api changes -
#1055
f5d0bdd62
Thanks @ErnoW! - AddincludeAllTxLogs
in all relevant Streams models -
Updated dependencies [
e96c34ab4
]:- @moralisweb3/[email protected]
- @moralisweb3/[email protected]
- @moralisweb3/[email protected]
-
Updated dependencies [
8981730d6
]:- @moralisweb3/[email protected]
- @moralisweb3/[email protected]
- @moralisweb3/[email protected]
- Updated dependencies []:
- @moralisweb3/[email protected]
- @moralisweb3/[email protected]
- @moralisweb3/[email protected]
-
#1039
310558392
Thanks @b4rtaz! - Theupdate
method for the EVM Streams API has thechains
property optional now. -
Updated dependencies [
36ebc0d82
,521534f81
,ad4925518
]:- @moralisweb3/[email protected]
- @moralisweb3/[email protected]
- @moralisweb3/[email protected]
- Updated dependencies []:
- @moralisweb3/[email protected]
- @moralisweb3/[email protected]
- @moralisweb3/[email protected]
- Updated dependencies []:
- @moralisweb3/[email protected]
- @moralisweb3/[email protected]
- @moralisweb3/[email protected]
- Updated dependencies []:
- @moralisweb3/[email protected]
- @moralisweb3/[email protected]
- @moralisweb3/[email protected]
- Updated dependencies [
055f0f47a
]:- @moralisweb3/[email protected]
- @moralisweb3/[email protected]
- @moralisweb3/[email protected]
- #989
cdd111033
Thanks @FedericoAmura! - Added support for new Aptos streams endpoints
- Updated dependencies [
cdd111033
]:- @moralisweb3/[email protected]
- @moralisweb3/[email protected]
- @moralisweb3/[email protected]
- Updated dependencies [
a16b47566
,301490a3d
]:- @moralisweb3/[email protected]
- @moralisweb3/[email protected]
- Updated dependencies []:
- @moralisweb3/[email protected]
- @moralisweb3/[email protected]
- Updated dependencies [
98bd66b8e
,98bd66b8e
,98bd66b8e
]:- @moralisweb3/[email protected]
- @moralisweb3/[email protected]
- Updated dependencies []:
- @moralisweb3/[email protected]
- @moralisweb3/[email protected]
-
#912
26848dc2d
Thanks @ErnoW! - Update api types to include latest features and fixes of evmApi and streams. This includes:- removal of deprecated
subdomain
andproviderUrl
params - evm endpooint for
getMultipleNFTs
- evm endpoint updated for
getNFTContractTransfers
to includefromBlock
,toBlock
,fromDate
andtoDate
params - streams support for
getNativeBalances
- removal of deprecated
-
Updated dependencies [
26848dc2d
]:- @moralisweb3/[email protected]
- @moralisweb3/[email protected]
- Updated dependencies [
33230c43c
]:- @moralisweb3/[email protected]
- @moralisweb3/[email protected]
- #879
52a8160d9
Thanks @FedericoAmura! - Add support for stream triggers
- Updated dependencies [
439d6e564
,2dcf75f8a
,52a8160d9
,b703c5517
]:- @moralisweb3/[email protected]
- @moralisweb3/[email protected]
- Updated dependencies [
a8c2175c2
,338ee39e8
,f709e1179
,31ef229ad
,248089ffa
]:- @moralisweb3/[email protected]
- @moralisweb3/[email protected]
- Updated dependencies [
0cefcef6
,0cefcef6
]:- @moralisweb3/[email protected]
- @moralisweb3/[email protected]
- Updated dependencies []:
- @moralisweb3/[email protected]
- @moralisweb3/[email protected]
-
#846
1374573d
Thanks @ErnoW! - # Api responses (breaking change)For any api call, you get a resultAdapter response. The value of the
toJSON()
value has changed. Now it is the same value as.raw
. Previously this caused a lot of confusion, and as both return a json. The value of this method has changed. So if you used.toJSON()
on an api result you can:- Use
.result
, this will probably contain dataTypes with lots of utility functions. If you only care about the data, you can call.format()
or.toJSON()
on this datatype. This is the prefered way as it provides you wilt additional utilites and extra properties. We suggest you to use Typescript, to easily see the available properties/methods on these datatypes. - Or. use the new values (or values from
.raw
), these values are identical as they are provided by the internal api, without any data transformation. The types might be different than before, so please check this (we suggest to use Typescript, as all responses are typed, otherwise you can log the output and see any differences)
If you're using some of our internal packages @moralisweb3/core for example then these names have been changed to differentiate between server-side packages, and packages that are compatible with client-side and server-side. We name these common-*. This is a first step to provide better client-side support:
@moralisweb3/core
->@moralisweb3/common-core
@moralisweb3/evm-utils
->@moralisweb3/common-evm-utils
@moralisweb3/sol-utils
->@moralisweb3/common-sol-utils
Change your dependencies in package.json and the corresponding imports in your code to the new names.
For the time being, the old packages will remain, and we use them to forward to the common-* package, this will be removed in a future version, so please update to the new package name.
For easy integration we created a nextJs package. See
packages/next
. This contains:- hooks to all api endpoints
- adapter to integrate into NextJs authentication via Moralis Auth
For a demo check out
demos/nextjs
The parameters and return types are now exported for every api operation. These are exported from
moralis/common-evm-utils
for evm api methodsmoralis/common-sol-utils
for sol api methodsmoralis/common-auth-utils
for auth methodsmoralis/common-streams-utils
for streams methods
For example:
import Moralis from 'moralis'; import { GetContractNFTsRequest, EvmChain, GetContractNFTsResponse } from 'moralis/common-evm-utils'; const getBlockOptions: GetContractNFTsRequest = { address: '0xd8da6bf26964af9d7eed9e03e53415d37aa96045', chain: EvmChain.ETHEREUM, }; let result: GetContractNFTsResponse; const response = await Moralis.EvmApi.nft.getContractNFTs(getBlockOptions); result = response.result;
As a first step to provide better client-side support, all datatypes are now usable in server-side and client-side.
- Use
- Updated dependencies [
f1336a35
,62036ef3
,1374573d
]:- @moralisweb3/[email protected]
- @moralisweb3/[email protected]