Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update beta. #764

Merged
merged 18 commits into from
Oct 20, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions .changeset/two-sloths-remember.md

This file was deleted.

2 changes: 1 addition & 1 deletion demos/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
},
"dependencies": {
"dotenv": "^16.0.1",
"moralis": "^2.6.5"
"moralis": "^2.6.6"
},
"devDependencies": {
"@moralisweb3/eslint-config": "^1.0.1",
Expand Down
4 changes: 2 additions & 2 deletions demos/express-proxy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"main": "dist/index.js",
"private": true,
"dependencies": {
"@moralisweb3/core": "^2.6.5",
"@moralisweb3/core": "^2.6.6",
"@types/express-rate-limit": "^6.0.0",
"dotenv": "^16.0.1",
"envalid": "7.3.1",
"express": "^4.18.1",
"express-rate-limit": "^6.5.1",
"moralis": "^2.6.5",
"moralis": "^2.6.6",
"redis": "^4.2.0",
"cors": "^2.8.5"
},
Expand Down
6 changes: 3 additions & 3 deletions demos/firebase-auth-ext/hosting/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
"private": true,
"dependencies": {
"@ethersproject/providers": "^5.7.1",
"@moralisweb3/client-firebase-auth-utils": "^2.6.5",
"@moralisweb3/client-firebase-evm-auth": "^2.6.5",
"@moralisweb3/client-firebase-sol-auth": "^2.6.5",
"@moralisweb3/client-firebase-auth-utils": "^2.6.6",
"@moralisweb3/client-firebase-evm-auth": "^2.6.6",
"@moralisweb3/client-firebase-sol-auth": "^2.6.6",
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^13.4.0",
"@testing-library/user-event": "^13.5.0",
Expand Down
2 changes: 1 addition & 1 deletion demos/firebase-proxy/functions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"firebase-admin": "^10.0.2",
"firebase-functions": "^3.18.0",
"firebase-functions-rate-limiter": "^3.9.1",
"moralis": "^2.6.5"
"moralis": "^2.6.6"
},
"devDependencies": {
"@firebase/app-types": "^0.7.0",
Expand Down
4 changes: 2 additions & 2 deletions demos/moralis-stream/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
"main": "dist/index.js",
"private": true,
"dependencies": {
"@moralisweb3/core": "^2.6.5",
"@moralisweb3/core": "^2.6.6",
"dotenv": "^16.0.1",
"envalid": "7.3.1",
"express": "^4.18.1",
"moralis": "^2.6.5",
"moralis": "^2.6.6",
"ngrok": "^4.3.3",
"redis": "^4.2.0",
"web3-utils": "^1.7.5",
Expand Down
2 changes: 1 addition & 1 deletion demos/nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"axios": "^0.27.2",
"eslint": "^8.22.0",
"ethers": "5.6.9",
"moralis": "^2.6.5",
"moralis": "^2.6.6",
"next": "12.2.5",
"next-auth": "4.10.3",
"react": "^18.2.0",
Expand Down
4 changes: 2 additions & 2 deletions demos/parse-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
"private": true,
"dependencies": {
"@codemirror/language": "^0.20.0",
"@moralisweb3/core": "^2.6.5",
"@moralisweb3/core": "^2.6.6",
"dotenv": "^16.0.1",
"envalid": "7.3.1",
"express": "^4.18.1",
"express-rate-limit": "^6.5.1",
"graphql": "^16.6.0",
"graphql-ws": "^5.10.1",
"moralis": "^2.6.5",
"moralis": "^2.6.6",
"parse-dashboard": "^4.1.4",
"parse-server": "^5.2.7"
},
Expand Down
4 changes: 2 additions & 2 deletions demos/supabase-auth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"main": "dist/index.js",
"private": true,
"dependencies": {
"@moralisweb3/core": "^2.6.5",
"@moralisweb3/core": "^2.6.6",
"@supabase/supabase-js": "^1.35.4",
"dotenv": "^16.0.1",
"envalid": "7.3.1",
"express": "^4.18.1",
"jsonwebtoken": "^8.5.1",
"moralis": "^2.6.5",
"moralis": "^2.6.6",
"uuid": "^8.3.2",
"cors": "^2.8.5"
},
Expand Down
7 changes: 7 additions & 0 deletions packages/apiUtils/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @moralisweb3/api-utils

## 2.6.6

### Patch Changes

- Updated dependencies []:
- @moralisweb3/[email protected]

## 2.6.5

### Patch Changes
Expand Down
8 changes: 4 additions & 4 deletions packages/apiUtils/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@moralisweb3/api-utils",
"author": "Moralis",
"version": "2.6.5",
"version": "2.6.6",
"license": "MIT",
"private": false,
"main": "./lib/index.js",
Expand All @@ -15,16 +15,16 @@
"test:coverage": "yarn run test --coverage --coverageReporters json-summary",
"test:watch": "yarn run test --watch",
"lint": "eslint . --ext .js,.ts,.tsx,jsx",
"clean": "rm -rf lib && rm -rf tsconfig.tsbuildinfo && rm -rf ./node_modules/.cache/nx",
"clean": "rm -rf lib && rm -rf tsconfig.tsbuildinfo && rm -rf tsconfig.build.tsbuildinfo && rm -rf ./node_modules/.cache/nx",
"build": "tsc",
"dev": "tsc --watch"
},
"devDependencies": {
"prettier": "^2.5.1",
"typescript": "^4.5.5",
"@moralisweb3/evm-utils": "^2.6.5"
"@moralisweb3/evm-utils": "^2.6.6"
},
"dependencies": {
"@moralisweb3/core": "^2.6.5"
"@moralisweb3/core": "^2.6.6"
}
}
10 changes: 10 additions & 0 deletions packages/auth/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# @moralisweb3/auth

## 2.6.6

### Patch Changes

- Updated dependencies [[`11ba50f7`](https://github.com/MoralisWeb3/Moralis-JS-SDK/commit/11ba50f7ad4b43dd22eeb227452bc1be6c8888e4), [`d87f37c5`](https://github.com/MoralisWeb3/Moralis-JS-SDK/commit/d87f37c5a56d5db5ca79ede9bb463d6ad20a13ab)]:
- @moralisweb3/[email protected]
- @moralisweb3/[email protected]
- @moralisweb3/[email protected]
- @moralisweb3/[email protected]

## 2.6.5

### Patch Changes
Expand Down
12 changes: 6 additions & 6 deletions packages/auth/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@moralisweb3/auth",
"author": "Moralis",
"version": "2.6.5",
"version": "2.6.6",
"license": "MIT",
"private": false,
"main": "./lib/index.js",
Expand All @@ -15,7 +15,7 @@
"test:coverage": "yarn run test --coverage --coverageReporters json-summary",
"test:watch": "yarn run test --watch",
"lint": "eslint . --ext .js,.ts,.tsx,jsx",
"clean": "rm -rf lib && rm -rf tsconfig.tsbuildinfo && rm -rf ./node_modules/.cache/nx",
"clean": "rm -rf lib && rm -rf tsconfig.tsbuildinfo && rm -rf tsconfig.build.tsbuildinfo && rm -rf ./node_modules/.cache/nx",
"gen:api-typeses": "openapi-typescript https://authapi.moralis.io/api-docs-json --output src/generated/types.ts",
"build": "tsc -p tsconfig.build.json",
"dev": "tsc --watch"
Expand All @@ -28,9 +28,9 @@
"typescript": "^4.5.5"
},
"dependencies": {
"@moralisweb3/api-utils": "^2.6.5",
"@moralisweb3/core": "^2.6.5",
"@moralisweb3/evm-utils": "^2.6.5",
"@moralisweb3/sol-utils": "^2.6.5"
"@moralisweb3/api-utils": "^2.6.6",
"@moralisweb3/core": "^2.6.6",
"@moralisweb3/evm-utils": "^2.6.6",
"@moralisweb3/sol-utils": "^2.6.6"
}
}
2 changes: 2 additions & 0 deletions packages/client/firebaseAuthUtils/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# @moralisweb3/client-firebase-auth-utils

## 2.6.6

## 2.6.5

## 2.6.4
Expand Down
2 changes: 1 addition & 1 deletion packages/client/firebaseAuthUtils/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@moralisweb3/client-firebase-auth-utils",
"author": "Moralis",
"version": "2.6.5",
"version": "2.6.6",
"license": "MIT",
"private": false,
"main": "./lib/index.js",
Expand Down
7 changes: 7 additions & 0 deletions packages/client/firebaseEvmAuth/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @moralisweb3/client-firebase-evm-auth

## 2.6.6

### Patch Changes

- Updated dependencies []:
- @moralisweb3/[email protected]

## 2.6.5

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/client/firebaseEvmAuth/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@moralisweb3/client-firebase-evm-auth",
"author": "Moralis",
"version": "2.6.5",
"version": "2.6.6",
"license": "MIT",
"private": false,
"main": "./lib/index.js",
Expand All @@ -22,7 +22,7 @@
},
"dependencies": {
"firebase": "^9.10.0",
"@moralisweb3/client-firebase-auth-utils": "^2.6.5",
"@moralisweb3/client-firebase-auth-utils": "^2.6.6",
"@ethersproject/providers": "^5.7.1",
"@metamask/detect-provider": "^1.2.0"
}
Expand Down
7 changes: 7 additions & 0 deletions packages/client/firebaseSolAuth/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @moralisweb3/client-firebase-sol-auth

## 2.6.6

### Patch Changes

- Updated dependencies []:
- @moralisweb3/[email protected]

## 2.6.5

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/client/firebaseSolAuth/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@moralisweb3/client-firebase-sol-auth",
"author": "Moralis",
"version": "2.6.5",
"version": "2.6.6",
"license": "MIT",
"private": false,
"main": "./lib/index.js",
Expand All @@ -22,7 +22,7 @@
},
"dependencies": {
"firebase": "^9.10.0",
"@moralisweb3/client-firebase-auth-utils": "^2.6.5",
"@moralisweb3/client-firebase-auth-utils": "^2.6.6",
"bs58": "^5.0.0"
}
}
2 changes: 2 additions & 0 deletions packages/core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# @moralisweb3/core

## 2.6.6

## 2.6.5

## 2.6.4
Expand Down
4 changes: 2 additions & 2 deletions packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@moralisweb3/core",
"author": "Moralis",
"version": "2.6.5",
"version": "2.6.6",
"license": "MIT",
"private": false,
"main": "./lib/index.js",
Expand All @@ -15,7 +15,7 @@
"test:coverage": "yarn run test --coverage --coverageReporters json-summary",
"test:watch": "yarn run test --watch",
"lint": "eslint . --ext .js,.ts,.tsx,jsx",
"clean": "rm -rf lib && rm -rf tsconfig.tsbuildinfo && rm -rf ./node_modules/.cache/nx",
"clean": "rm -rf lib && rm -rf tsconfig.tsbuildinfo && rm -rf tsconfig.build.tsbuildinfo && rm -rf ./node_modules/.cache/nx",
"prebuild": "node -p \"'export const LIB_VERSION = ' + JSON.stringify(require('./package.json').version) + ';'\" > src/version.ts",
"build": "tsc -p tsconfig.build.json",
"dev": "tsc --watch"
Expand Down
11 changes: 11 additions & 0 deletions packages/evmApi/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# @moralisweb3/evm-api

## 2.6.6

### Patch Changes

- [#749](https://github.com/MoralisWeb3/Moralis-JS-SDK/pull/749) [`d87f37c5`](https://github.com/MoralisWeb3/Moralis-JS-SDK/commit/d87f37c5a56d5db5ca79ede9bb463d6ad20a13ab) Thanks [@ErnoW](https://github.com/ErnoW)! - Due to inconsistencies in the api regarding `contractType` on NFT datatypes, we have removed the tight validation check. This means that the type is not 'ERC721' | 'ERC1155' anymore, but a string. This allows other contractTypes to be parsed without throwing errors

- Updated dependencies [[`11ba50f7`](https://github.com/MoralisWeb3/Moralis-JS-SDK/commit/11ba50f7ad4b43dd22eeb227452bc1be6c8888e4), [`d87f37c5`](https://github.com/MoralisWeb3/Moralis-JS-SDK/commit/d87f37c5a56d5db5ca79ede9bb463d6ad20a13ab)]:
- @moralisweb3/[email protected]
- @moralisweb3/[email protected]
- @moralisweb3/[email protected]

## 2.6.5

### Patch Changes
Expand Down
10 changes: 5 additions & 5 deletions packages/evmApi/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@moralisweb3/evm-api",
"author": "Moralis",
"version": "2.6.5",
"version": "2.6.6",
"license": "MIT",
"private": false,
"main": "./lib/index.js",
Expand All @@ -15,7 +15,7 @@
"test:coverage": "yarn run test --coverage --coverageReporters json-summary",
"test:watch": "yarn run test --watch",
"lint": "eslint . --ext .js,.ts,.tsx,jsx",
"clean": "rm -rf lib && rm -rf tsconfig.tsbuildinfo && rm -rf ./node_modules/.cache/nx",
"clean": "rm -rf lib && rm -rf tsconfig.tsbuildinfo && rm -rf tsconfig.build.tsbuildinfo && rm -rf ./node_modules/.cache/nx",
"gen:api-types": "openapi-typescript https://deep-index.moralis.io/api-docs-2.1/v2.1/swagger.json --output src/generated/types.ts",
"build": "tsc -p tsconfig.build.json",
"dev": "tsc --watch"
Expand All @@ -26,8 +26,8 @@
"typescript": "^4.5.5"
},
"dependencies": {
"@moralisweb3/api-utils": "^2.6.5",
"@moralisweb3/core": "^2.6.5",
"@moralisweb3/evm-utils": "^2.6.5"
"@moralisweb3/api-utils": "^2.6.6",
"@moralisweb3/core": "^2.6.6",
"@moralisweb3/evm-utils": "^2.6.6"
}
}
10 changes: 10 additions & 0 deletions packages/evmApi/src/generated/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,11 @@ export interface components {
topic2: string;
/** @example null */
topic3: string;
/**
* @description Respective Chain Id
* @example 1
*/
chainId: string;
};
logEvent: {
/**
Expand Down Expand Up @@ -290,6 +295,11 @@ export interface components {
};
};
log: {
/**
* @description Respective Chain Id
* @example 1
*/
chainId: string;
/** @example 273 */
log_index: string;
/**
Expand Down
1 change: 1 addition & 0 deletions packages/evmApi/src/resolvers/block/getBlock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ const apiToResult = (core: MoralisCore, apiData: ApiResult, params: Params) => {
blockTimestamp: log.blockTimestamp,
logIndex: +log.logIndex,
transactionIndex: +log.transactionIndex,
chain: log.chainId,
}),
),
},
Expand Down
1 change: 1 addition & 0 deletions packages/evmApi/src/resolvers/events/getContractLogs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export const getContractLogs = createPaginatedEndpointFactory((core) =>
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
topics: [log.topic0, log.topic1!, log.topic2!, log.topic3!],
blockNumber: Number(log.block_number),
chain: log.chainId,
},
core,
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ export const getTransaction = createEndpointFactory((core) =>
blockTimestamp: log.block_timestamp,
logIndex: +log.log_index,
transactionIndex: +log.transaction_index,
chain: EvmChainResolver.resolve(log.chainId, core),
},
core,
),
Expand Down
Loading