-
#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/api-utils@2.10.2
- @moralisweb3/common-core@2.10.2
- @moralisweb3/common-evm-utils@2.10.2
- @moralisweb3/common-streams-utils@2.10.2
- Updated dependencies [
33230c43c
]:- @moralisweb3/common-evm-utils@2.10.1
- @moralisweb3/api-utils@2.10.1
- @moralisweb3/common-core@2.10.1
- @moralisweb3/common-streams-utils@2.10.1
- Updated dependencies [
439d6e564
,2dcf75f8a
,52a8160d9
,b703c5517
]:- @moralisweb3/common-core@2.10.0
- @moralisweb3/api-utils@2.10.0
- @moralisweb3/common-evm-utils@2.10.0
- @moralisweb3/common-streams-utils@2.10.0
-
#885
aa86dc0f1
Thanks @b4rtaz! - TheLogParser
class supports now a case when the parser from the@ethersproject/abi
package returns an instance of theIndexed
class. -
Updated dependencies [
a8c2175c2
,338ee39e8
,f709e1179
,31ef229ad
,248089ffa
]:- @moralisweb3/common-evm-utils@2.9.0
- @moralisweb3/common-core@2.9.0
- @moralisweb3/api-utils@2.9.0
- @moralisweb3/common-streams-utils@2.9.0
- Updated dependencies [
0cefcef6
,0cefcef6
]:- @moralisweb3/common-evm-utils@2.8.2
- @moralisweb3/api-utils@2.8.2
- @moralisweb3/common-core@2.8.2
- @moralisweb3/common-streams-utils@2.8.2
- Updated dependencies []:
- @moralisweb3/api-utils@2.8.1
- @moralisweb3/common-core@2.8.1
- @moralisweb3/common-evm-utils@2.8.1
- @moralisweb3/common-streams-utils@2.8.1
-
#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
-
#804
6382cc1c
Thanks @b4rtaz! - Fix errors due to changes in webhook data for log parser function and update parse server streams docs -
Updated dependencies [
f1336a35
,62036ef3
,1374573d
]:- @moralisweb3/api-utils@2.8.0
- @moralisweb3/common-core@2.8.0
- @moralisweb3/common-evm-utils@2.8.0
- @moralisweb3/common-streams-utils@2.8.0
-
#818
bc293674
Thanks @ErnoW! - Update api types for streams: include types for stream usage -
Updated dependencies [
a18b46ae
,08622cd9
]:- @moralisweb3/evm-utils@2.7.4
- @moralisweb3/core@2.7.4
- @moralisweb3/api-utils@2.7.4
- Updated dependencies []:
- @moralisweb3/core@2.7.3
- @moralisweb3/api-utils@2.7.3
- @moralisweb3/evm-utils@2.7.3
-
#784
a1bbd61f
Thanks @sogunshola! - Fix errors due to changes in webhook data for log parser function and update parse server streams docs -
Updated dependencies []:
- @moralisweb3/core@2.7.2
- @moralisweb3/api-utils@2.7.2
- @moralisweb3/evm-utils@2.7.2
-
#790
2f938764
Thanks @b4rtaz! - Add missing dependency to the@moralisweb3/streams
package. -
Updated dependencies []:
- @moralisweb3/core@2.7.1
- @moralisweb3/api-utils@2.7.1
- @moralisweb3/evm-utils@2.7.1
- #782
07c8ca69
Thanks @sogunshola! - Incuded parse server package with streams plugin implementation and added document builder to streams package.
- #782
07c8ca69
Thanks @sogunshola! - Included parse server package and added document builder logic to streams package
- Updated dependencies []:
- @moralisweb3/core@2.7.0
- @moralisweb3/api-utils@2.7.0
- @moralisweb3/evm-utils@2.7.0
-
#768
6701030e
Thanks @sogunshola! - Move streams-typings from dev dependencies to dependencies in streams package and also correct export name in umbrella package -
Updated dependencies []:
- @moralisweb3/core@2.6.7
- @moralisweb3/api-utils@2.6.7
- @moralisweb3/evm-utils@2.6.7
- Updated dependencies [
11ba50f7
,d87f37c5
]:- @moralisweb3/evm-utils@2.6.6
- @moralisweb3/core@2.6.6
- @moralisweb3/api-utils@2.6.6
-
#744
9953a791
Thanks @ErnoW! - Update types and endpoints for Moralis.Streams to reflect the api changes. Some types have changes,Moralis.Streams.retry
now accepts an id and is fixed. And return types from webhooks have been updated. -
Updated dependencies []:
- @moralisweb3/core@2.6.5
- @moralisweb3/api-utils@2.6.5
- @moralisweb3/evm-utils@2.6.5
-
4af4eb8a
Thanks @ErnoW! - Fix dependency/dev-dependency issue with streams-typings -
Updated dependencies [
77eb29bf
]:- @moralisweb3/api-utils@2.6.4
- @moralisweb3/core@2.6.4
- @moralisweb3/evm-utils@2.6.4
-
Updated dependencies []:
- @moralisweb3/core@2.6.3
- @moralisweb3/api-utils@2.6.3
- @moralisweb3/evm-utils@2.6.3
-
Updated dependencies []:
- @moralisweb3/core@2.6.2
- @moralisweb3/api-utils@2.6.2
- @moralisweb3/evm-utils@2.6.2
- #715
f3cd2b5c
Thanks @ErnoW! - Update types according to api changes: removeaddress
andtokenAddress
, add includeContractLogs, includeInternalTxs and allAddresses flags, and mapetopic0
an array
- #714
42893723
Thanks @ErnoW! - Renamenetwork
param tonetworkType
forMoralis.Streams
andMoralis.Auth
, to communicate more clearly the purpose of this param. Also make this value optional and default to"evm"
-
#722
36a4096d
Thanks @ErnoW! - Add advancedOptions to Morlais.Streams (and remove filter) -
Updated dependencies [
bfea2ba5
,42893723
]:- @moralisweb3/evm-utils@2.6.1
- @moralisweb3/core@2.6.1
- @moralisweb3/api-utils@2.6.1
- #707
683b6ce8
Thanks @ErnoW! - Add endpoints to attach, delete or get addresses to streams viaMoralis.Streams.addAddress
,Moralis.Streams.getAddresses
, andMoralis.Streams.deleteAddress
- Updated dependencies []:
- @moralisweb3/core@2.6.0
- @moralisweb3/api-utils@2.6.0
- @moralisweb3/evm-utils@2.6.0
- Updated dependencies []:
- @moralisweb3/core@2.5.8
- @moralisweb3/api-utils@2.5.8
- @moralisweb3/evm-utils@2.5.8
- Updated dependencies []:
- @moralisweb3/core@2.5.7
- @moralisweb3/api-utils@2.5.7
- @moralisweb3/evm-utils@2.5.7
- Updated dependencies []:
- @moralisweb3/core@2.5.6
- @moralisweb3/api-utils@2.5.6
- @moralisweb3/evm-utils@2.5.6
-
#699
d79800ad
Thanks @ErnoW! - Fix parsing of API error messages, now the MoralisError will show themessage
that is returned from the api. -
Updated dependencies [
d79800ad
]:- @moralisweb3/core@2.5.5
- @moralisweb3/api-utils@2.5.5
- @moralisweb3/evm-utils@2.5.5
- Updated dependencies [
62275677
]:- @moralisweb3/evm-utils@2.5.4
- @moralisweb3/core@2.5.4
- @moralisweb3/api-utils@2.5.4
-
#692
008de89f
Thanks @ErnoW! - Update typings for streams: update @moralisweb3/streams-typings to v1.0.2 -
Updated dependencies []:
- @moralisweb3/core@2.5.3
- @moralisweb3/api-utils@2.5.3
- @moralisweb3/evm-utils@2.5.3
- #687
d6ed8ce0
Thanks @locothedev! - update base url
-
#689
500ddaf3
Thanks @ErnoW! - Export types for returned webhooks -
Updated dependencies []:
- @moralisweb3/core@2.5.2
- @moralisweb3/api-utils@2.5.2
- @moralisweb3/evm-utils@2.5.2
-
#685
688dc414
Thanks @ErnoW! - Fix for providing a custom type toMoralis.Streams.parsedLogs<MyEvent>()
. This now works as expected, and the returned type is ofMyEvent[]
-
Updated dependencies []:
- @moralisweb3/core@2.5.1
- @moralisweb3/api-utils@2.5.1
- @moralisweb3/evm-utils@2.5.1
- #674
c719cc2f
Thanks @sogunshola! - Added verifySignature utility function
- #678
72ad17b7
Thanks @sogunshola! - Added funtion to decode webhook logs
- #683
cd9a9ce5
Thanks @ErnoW! - AddMoralis.Streams.retry()
to retry failed webhooks, and addMoralis.Streams.updateStatus()
to update the status of a webhook.
- Updated dependencies [
c719cc2f
]:- @moralisweb3/core@2.5.0
- @moralisweb3/api-utils@2.5.0
- @moralisweb3/evm-utils@2.5.0
- #658
7fffd1e4
Thanks @sogunshola! - Intergrating stream API in code base, creating a new package @moralisweb3/streams
- Updated dependencies [
7fffd1e4
]:- @moralisweb3/api-utils@2.4.0
- @moralisweb3/core@2.4.0
- @moralisweb3/evm-utils@2.4.0