1.1.72 • Published 1 year ago
@cryptodo-temp/frontend-sdk v1.1.72
@cryptodo/frontend-sdk
Reusable module for cryptodo web3 logic based on ethers and usedApp. For now module contains: 1. Hooks 1.1 useAuth - handle authorization logic (Metamask only for now) 1.2 useWallet - used for checking and setting wallet balance (Metamask only for now) 1.3 useContractWeb3 - contains specific logic for creating and deploying contracts
- switchToRightNetwork - function that checks and refreshesh network (Metamask only for now)
- Web3Provider - wrapper for main app
Usage
1. Install module
npm install --save @cryptodo/frontend-sdk2. Make sure you install all peer dependencies
{
"@usedapp/core": ">=1.1.5",
"ethers": ">=5.7.1",
"react": ">=18.2.0",
"react-use": ">=17.4.0"
}npm install --save @usedapp/core ethers react react-useDevelopment
Project usage
Install all modules in project root folder
npm installPublish new version
To publish new library versions you need to create and configure npm user
- You should install all dependencies in project root folder
npm install- Increase version field in package.json
- Build module with
npm run publish:prepare - Publish new version with
npm publish ./dist.publish
1.1.72
1 year ago
1.1.71
1 year ago
1.1.67
2 years ago
1.1.66
2 years ago
1.1.65
2 years ago
1.1.64
2 years ago
1.1.68
2 years ago
1.1.63
2 years ago
1.1.62
2 years ago
1.1.61
2 years ago
1.1.60
2 years ago
1.1.59
2 years ago
1.1.56
2 years ago
1.1.55
2 years ago
1.1.58
2 years ago
1.1.57
2 years ago
1.1.54
2 years ago
1.1.53
2 years ago
1.1.52
2 years ago