![Introducing Enhanced Alert Actions and Triage Functionality](https://cdn.sanity.io/images/cgdhsj6q/production/fe71306d515f85de6139b46745ea7180362324f0-2530x946.png?w=800&fit=max&auto=format)
Product
Introducing Enhanced Alert Actions and Triage Functionality
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
@alephium/sdk
Advanced tools
Readme
A JavaScript/TypeScript library for building applications that interact the Alephium platform.
npm install @alephium/sdk
💥 Until our SDK is stable, breaking changes will be introduced in minor versions (instead of the traditional major versions of semver). We recommend allowing patch-level updates and to always read the release notes for breaking changes.
// package.json
{
"dependencies": {
"@alephium/sdk": "~X.Y.Z"
}
}
All you have to do is to include the library in your HTML document. The alephium
global variable will be available.
<script src="alephium.min.js"></script>
<script>
const { walletGenerate } = alephium
const wallet = walletGenerate()
console.log(wallet)
</script>
You can either build the library by cloning this repo and running the build script (the file will be located at /dist/alephium.min.js
), or simply using a CDN.
npm run build
<script src="https://unpkg.com/@alephium/sdk@X.Y.Z/dist/alephium.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@alephium/sdk@X.Y.Z/dist/alephium.min.js"></script>
To release a new version:
Create a commit that updates the package version in package.json and package-lock.json and a tag with:
npm version patch # if you want to bump the patch version, without breaking changes
npm version minor # if you want to bump the minor version, with breaking changes
npm version prerelease --preid=rc # if you want to create a release candidate
Push the tag to GitHub and trigger the publish workflow that will publish it on NPM with:
git push [remote] <tag>
Unless you are on master
, create a new branch and push it to GitHub so that the tagged commit belongs to a branch of this repo with:
git checkout -b <tag>
git push
Otherwise, just push to master
.
Compile the TypeScript files into JavaScript:
npm run build
npm run devnet:start # this will start a devnet for smart contract tests
npm test
or, to watch for changes:
npm run test:watch
FAQs
A JS/TS library to interact with the Alephium platform
The npm package @alephium/sdk receives a total of 1 weekly downloads. As such, @alephium/sdk popularity was classified as not popular.
We found that @alephium/sdk demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
Security News
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
Security News
OpenSSF is warning open source maintainers to stay vigilant against reputation farming on GitHub, where users artificially inflate their status by manipulating interactions on closed issues and PRs.