@metamask/stake-sdk
Advanced tools
Comparing version 0.2.12 to 0.2.13
@@ -10,2 +10,10 @@ # Changelog | ||
## [0.2.13] | ||
### Added | ||
- Remove axios in favor of fetch ([#37](https://github.com/MetaMask/stake-sdk/pull/37)) | ||
- fix: export again the contract types ([#36](https://github.com/MetaMask/stake-sdk/pull/36)) | ||
- feat: add StakingApiService export ([#35](https://github.com/MetaMask/stake-sdk/pull/35)) | ||
## [0.2.12] | ||
@@ -105,3 +113,4 @@ | ||
[Unreleased]: https://github.com/MetaMask/stake-sdk/compare/v0.2.12...HEAD | ||
[Unreleased]: https://github.com/MetaMask/stake-sdk/compare/v0.2.13...HEAD | ||
[0.2.13]: https://github.com/MetaMask/stake-sdk/compare/v0.2.12...v0.2.13 | ||
[0.2.12]: https://github.com/MetaMask/stake-sdk/compare/v0.2.11...v0.2.12 | ||
@@ -108,0 +117,0 @@ [0.2.11]: https://github.com/MetaMask/stake-sdk/compare/v0.2.10...v0.2.11 |
{ | ||
"name": "@metamask/stake-sdk", | ||
"version": "0.2.12", | ||
"version": "0.2.13", | ||
"description": "The MetaMask Stake SDK", | ||
@@ -49,5 +49,2 @@ "homepage": "https://github.com/MetaMask/stake-sdk#readme", | ||
}, | ||
"dependencies": { | ||
"axios": "^1.7.7" | ||
}, | ||
"devDependencies": { | ||
@@ -54,0 +51,0 @@ "@ethersproject/abstract-provider": "^5.7.0", |
@@ -72,1 +72,9 @@ # Stake SDK | ||
- Once the `publish-npm` job has finished, check npm to verify that it has been published. | ||
### Folder structure and exports | ||
The code is located in the src folder. | ||
In src, there are two folders: 'contracts' which is used to store on chain contract interactions and 'api' used to store backend service interactions. | ||
'api' and 'contracts' folders are structured by type of staking ('pooledStaking', 'validatorStaking' and probably more to come like 'third party staking' for lido or rocket pool staking). | ||
Since we compile with ts-bridge, it's recommended for both 'api' and 'contracts' folders to export what's needed in the api/types.ts and contracts/types.ts files. | ||
While the Sdk is exporting globally everything in the src/index.ts. |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
164745
0
107
1069
80
2
- Removedaxios@^1.7.7
- Removedasynckit@0.4.0(transitive)
- Removedaxios@1.7.8(transitive)
- Removedcombined-stream@1.0.8(transitive)
- Removeddelayed-stream@1.0.0(transitive)
- Removedfollow-redirects@1.15.9(transitive)
- Removedform-data@4.0.1(transitive)
- Removedmime-db@1.52.0(transitive)
- Removedmime-types@2.1.35(transitive)
- Removedproxy-from-env@1.1.0(transitive)