From a7738d63335947876a5724e05e53e90d7cf96dea Mon Sep 17 00:00:00 2001 From: Erno Wever Date: Fri, 27 May 2022 13:40:25 +0100 Subject: [PATCH 1/3] docs: fix chain param value --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 9b364f5..f92dfc3 100644 --- a/README.md +++ b/README.md @@ -1021,7 +1021,7 @@ It calls Moralis API and doesn't require web3 to be enabled. - `address` : The contract address (i.e. 0x1a2b3x...). - `functionName` : The name of the contract's function that you want to call. - `abi` : The contract's abi. -- `chain` (optional): The blockchain to get data from. Valid values are listed on the intro page in the Transactions and Balances section. Default value: current chain. +- `chain` (optional): The blockchain to get data from. Valid values are listed on the intro page in the Transactions and Balances section. Default value: 'eth'. - `params` (optional): Any parameter you want to send with the function. **Example** From 4cd48f775a785f7f238693ba93363b0c89e2edf4 Mon Sep 17 00:00:00 2001 From: Erno Wever Date: Sun, 29 May 2022 20:53:46 +0200 Subject: [PATCH 2/3] feat: add Cronos support (#251) * feat: add Cronos support * fix: update moralis dependency version --- package.json | 4 ++-- src/config/index.ts | 1 + src/data/blockExplorers.ts | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 1d3b692..aaaa3e6 100644 --- a/package.json +++ b/package.json @@ -64,7 +64,7 @@ "husky": "^7.0.4", "jest": "^27.4.5", "lint-staged": "^12.1.2", - "moralis": "1.1.0", + "moralis": "1.8.0", "prettier": "^2.5.1", "rollup": "^2.61.1", "rollup-plugin-cleaner": "^1.0.0", @@ -77,7 +77,7 @@ "typescript": "^4.5.4" }, "peerDependencies": { - "moralis": ">=1.3.5", + "moralis": ">=1.8.0", "react": ">=17.0.0", "react-dom": ">=17.0.0" }, diff --git a/src/config/index.ts b/src/config/index.ts index 3b6d20c..4d7ef06 100644 --- a/src/config/index.ts +++ b/src/config/index.ts @@ -24,4 +24,5 @@ export const supportedChains = [ "0xa86a", "0xa869", "0x539", + "0x19", ]; diff --git a/src/data/blockExplorers.ts b/src/data/blockExplorers.ts index 5dc65eb..c0c1b7a 100644 --- a/src/data/blockExplorers.ts +++ b/src/data/blockExplorers.ts @@ -12,4 +12,5 @@ export const blockExplorers: Record = { "0x89": "https://explorer-mainnet.maticvigil.com", "0x13881": "https://mumbai.polygonscan.com", "0xfa": "https://ftmscan.com/", + "0x19": "https://cronoscan.com/", }; From 9da7f40e4b74ba6f4a86e38616b3e489cee05fa4 Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Sun, 29 May 2022 18:55:05 +0000 Subject: [PATCH 3/3] chore(release): set `package.json` to 1.4.0 [skip ci] # [1.4.0](https://github.com/MoralisWeb3/react-moralis/compare/v1.3.5...v1.4.0) (2022-05-29) ### Features * add Cronos support ([#251](https://github.com/MoralisWeb3/react-moralis/issues/251)) ([4cd48f7](https://github.com/MoralisWeb3/react-moralis/commit/4cd48f775a785f7f238693ba93363b0c89e2edf4)) --- CHANGELOG.md | 7 +++++++ package.json | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index af3659a..55b33f2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +# [1.4.0](https://github.com/MoralisWeb3/react-moralis/compare/v1.3.5...v1.4.0) (2022-05-29) + + +### Features + +* add Cronos support ([#251](https://github.com/MoralisWeb3/react-moralis/issues/251)) ([4cd48f7](https://github.com/MoralisWeb3/react-moralis/commit/4cd48f775a785f7f238693ba93363b0c89e2edf4)) + ## [1.3.5](https://github.com/MoralisWeb3/react-moralis/compare/v1.3.4...v1.3.5) (2022-03-29) diff --git a/package.json b/package.json index aaaa3e6..7b20af4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-moralis", - "version": "1.3.5", + "version": "1.4.0", "description": "Hooks and components to use Moralis in a React app", "keywords": [ "moralis",