![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.
@arianee/core
Advanced tools
The Core class is a TypeScript class that provides an interface for signing messages and transactions on the Ethereum blockchain. It uses the [ethers library](https://ethers.org/), which is a popular library for interacting with Ethereum.
Readme
The Core class is a TypeScript class that provides an interface for signing messages and transactions on the Ethereum blockchain. It uses the ethers library, which is a popular library for interacting with Ethereum.
You can instantiate core with :
Example :
import { Core } from '@arianee/core';
Core.fromMnemonic(mnemonic);
Core.fromPassPhrase(passphrase);
Core.fromPrivateKey(privateKey);
Core.fromRandom();
The returned instance will have 4 methods (see TransactionLike):
signMessage(message:string)
signTransaction(transaction: TransactionLike))
sendTransaction(transaction: TransactionRequest) : Promise<TransactionResponse | { skipResponse: true }>
getAddress():string
Note: If you are using sendTransaction
in an asynchronous context (e.g. adding the transaction to a queue instead of sending it directly), you must return { skipResponse: true }
instead of a TransactionResponse
so that the @arianee/*
packages won't try to fetch the transaction receipt.
If you need to implement core with an external wallet (like metamask), you need to instantiate the class with 3 functions:
import { Core } from '@arianee/core';
const core = new Core(signMessage, signTransaction, getAddress);
FAQs
The Core class is a TypeScript class that provides an interface for signing messages and transactions on the Ethereum blockchain. It uses the [ethers library](https://ethers.org/), which is a popular library for interacting with Ethereum.
The npm package @arianee/core receives a total of 243 weekly downloads. As such, @arianee/core popularity was classified as not popular.
We found that @arianee/core demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 8 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.