-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'refs/heads/development' into rt/feature/transactions
# Conflicts: # src/apiCalls/transactions/getTransactionByHash.ts # src/apiCalls/transactions/getTransactionsByHashes.ts # src/constants/transactions.constants.ts # src/store/actions/network/initializeNetwork.ts # src/store/selectors/networkSelectors.ts # src/store/slices/index.ts # src/store/store.types.ts # src/types/index.ts # src/types/transactions.types.ts # src/utils/account/index.ts # src/utils/transactions/dataDecoders/smartContractTransaction.ts
- Loading branch information
Showing
132 changed files
with
5,908 additions
and
2,687 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,5 +29,5 @@ out | |
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
|
||
.yarnrc | ||
coverage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "@multiversx/sdk-dapp-core", | ||
"version": "0.0.0-alpha.9", | ||
"version": "0.0.0-alpha.11", | ||
"main": "out/index.js", | ||
"module": "out/index.js", | ||
"types": "out/index.d.ts", | ||
|
@@ -19,74 +19,87 @@ | |
"url": "git+https://github.com/multiversx/mx-sdk-dapp-core.git" | ||
}, | ||
"scripts": { | ||
"unpublish-verdaccio": "npm unpublish @multiversx/sdk-dapp-core --force --registry http://localhost:4873", | ||
"publish-verdaccio": "npm run unpublish-verdaccio && npm run compile-next && npm publish --registry http://localhost:4873/", | ||
"compile": "tsc && tsc-alias", | ||
"build-esbuild": "rimraf out && node esbuild.js", | ||
"publish-verdaccio": "npm unpublish --registry http://localhost:4873 @multiversx/[email protected] && rimraf out && yarn compile && npm publish --registry http://localhost:4873", | ||
"build": "yarn build-esbuild && yarn compile", | ||
"test": "jest", | ||
"lint": "eslint --fix src", | ||
"compile-next": "rimraf out && tsc --p tsconfig.next.json && tsc-alias --project tsconfig.next.json" | ||
}, | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"dependencies": { | ||
"@lifeomic/axios-fetch": "3.0.1", | ||
"@multiversx/sdk-extension-provider": "3.0.0", | ||
"@multiversx/sdk-hw-provider": "6.4.0", | ||
"@multiversx/sdk-metamask-provider": "0.0.5", | ||
"@multiversx/sdk-extension-provider": "4.0.0", | ||
"@multiversx/sdk-hw-provider": "7.0.0", | ||
"@multiversx/sdk-metamask-provider": "0.0.7", | ||
"@multiversx/sdk-native-auth-client": "^1.0.8", | ||
"@multiversx/sdk-opera-provider": "1.0.0-alpha.1", | ||
"@multiversx/sdk-wallet": "4.5.1", | ||
"@multiversx/sdk-wallet-connect-provider": "4.1.2", | ||
"@multiversx/sdk-web-wallet-iframe-provider": "2.0.1", | ||
"@multiversx/sdk-web-wallet-provider": "3.2.1", | ||
"@types/lodash": "^4.17.4", | ||
"isomorphic-fetch": "^3.0.0", | ||
"lodash": "^4.17.21", | ||
"zustand": "^4.4.7" | ||
"isomorphic-fetch": "3.0.0", | ||
"lodash": "4.17.21", | ||
"protobufjs": "7.3.0", | ||
"socket.io-client": "4.7.5", | ||
"zustand": "4.4.7" | ||
}, | ||
"peerDependencies": { | ||
"@multiversx/sdk-core": ">= 13.0.0", | ||
"@multiversx/sdk-dapp-utils": ">= 0.1.0", | ||
"@multiversx/sdk-web-wallet-cross-window-provider": ">= 1.0.0", | ||
"@multiversx/sdk-core": ">= 13.5.0", | ||
"@multiversx/sdk-dapp-utils": ">= 1.0.0", | ||
"@multiversx/sdk-web-wallet-cross-window-provider": ">= 2.0.1", | ||
"axios": ">=1.6.5", | ||
"bignumber.js": "9.x" | ||
"bignumber.js": "9.x", | ||
"immer": "10.x" | ||
}, | ||
"optionalDependencies": { | ||
"@multiversx/sdk-dapp-core-ui": "file:../mx-sdk-dapp-core-ui" | ||
}, | ||
"resolutions": { | ||
"string-width": "4.1.0" | ||
}, | ||
"devDependencies": { | ||
"@multiversx/sdk-core": ">= 13.0.0", | ||
"@multiversx/sdk-dapp-utils": ">= 0.1.0", | ||
"@multiversx/sdk-web-wallet-cross-window-provider": ">= 1.0.0", | ||
"@eslint/js": "9.15.0", | ||
"@multiversx/sdk-core": ">= 13.5.0", | ||
"@multiversx/sdk-dapp-utils": "1.0.0", | ||
"@multiversx/sdk-web-wallet-cross-window-provider": ">= 2.0.1", | ||
"@swc/core": "^1.4.17", | ||
"@swc/jest": "^0.2.36", | ||
"@types/jest": "29.5.13", | ||
"@types/lodash": "4.17.4", | ||
"@types/node": "20.12.8", | ||
"@typescript-eslint/eslint-plugin": "7.8.0", | ||
"@typescript-eslint/parser": "7.8.0", | ||
"@typescript-eslint/eslint-plugin": "8.15.0", | ||
"@typescript-eslint/parser": "8.15.0", | ||
"axios": ">=1.6.5", | ||
"axios-mock-adapter": "^1.22.0", | ||
"axios-mock-adapter": "1.22.0", | ||
"bignumber.js": "9.x", | ||
"esbuild": "^0.21.1", | ||
"esbuild": "0.21.1", | ||
"esbuild-node-externals": "1.14.0", | ||
"eslint": "9.1.1", | ||
"eslint": "9.15.0", | ||
"eslint-config-prettier": "9.1.0", | ||
"eslint-config-standard": "17.1.0", | ||
"eslint-import-resolver-typescript": "3.6.1", | ||
"eslint-plugin-import": "2.29.1", | ||
"eslint-import-resolver-typescript": "3.6.3", | ||
"eslint-plugin-import": "2.31.0", | ||
"eslint-plugin-jest": "28.9.0", | ||
"eslint-plugin-node": "11.1.0", | ||
"eslint-plugin-prettier": "5.1.3", | ||
"eslint-plugin-promise": "6.1.1", | ||
"glob": "^10.3.14", | ||
"eslint-plugin-prettier": "5.2.1", | ||
"eslint-plugin-promise": "7.1.0", | ||
"glob": "10.3.14", | ||
"immer": "^10.1.1", | ||
"jest": "29.7.0", | ||
"jest-environment-jsdom": "29.7.0", | ||
"msw": "1.3.1", | ||
"node-stdlib-browser": "1.2.0", | ||
"prettier": "3.2.5", | ||
"protobufjs": "^7.3.0", | ||
"react": "^18.3.1", | ||
"rimraf": "^5.0.6", | ||
"ts-jest": "29.1.2", | ||
"tsc-alias": "^1.8.9", | ||
"typescript": "^5.4.5" | ||
"typescript": "5.4.5", | ||
"typescript-eslint": "8.15.0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import axios from 'axios'; | ||
|
||
export async function getWebsocketUrl(apiAddress: string) { | ||
try { | ||
const { data } = await axios.get<{ url: string }>( | ||
`${apiAddress}/websocket/config` | ||
); | ||
return `wss://${data.url}`; | ||
} catch (err) { | ||
console.error(err); | ||
throw new Error('Can not get websocket url'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from './getWebsocketUrl'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.