![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.
@defichain/jellyfish-api-core
Advanced tools
Readme
@defichain/jellyfish-api-core
is a protocol agnostic DeFiChain client implementation with APIs separated into their
category.
Promise<T>
first implementation to prevent callback hell.lossless
, bignumber
or number
.*.d.ts
too.client.call('getbalance', [], 'bignumber')
const result = await client.mining.getMiningInfo()
// or
client.mining.getMiningInfo().then((result) => {
console.log(result)
}).catch((err) => {
console.log('panic!')
}).finally(() => {
console.log('cleanup')
})
ApiClient
being an abstract class allows the ability to adapt to any protocol when introduced (e.g. ws, https)
while being simple to use. This implementation structure can be observed in ContainerAdapterClient where it is used to
test jellyfish-api-core implementations.
RPC categories are grouped into jellyfish-api-core/src/category/*.ts
(e.g. category/mining.ts
) this allows a
protocol agnostic implementation of the RPC. All concerns are grouped within one ts
file for better developer
experience of browsing and maintaining the code.
ApiError
encapsulate RPC errors from DeFiChain within a structure. This allows for instanceof
or type of error
handling with rich structure.
JellyfishJSON
allows parsing of JSON with 'lossless', 'bignumber' and 'number' numeric precision.
jest
As the RPC is implemented on jellyfish-api-core
, all testing of RPC implementation should be done
on jellyfish-api-core
. ContainerAdapterClient
is created to facilitate testing via an adapter implementation with
all RPCs proxied into a @defichain/testcontainers
.
FAQs
SDK & Ecosystem for building modern lite DeFi Applications at scale.
The npm package @defichain/jellyfish-api-core receives a total of 1,444 weekly downloads. As such, @defichain/jellyfish-api-core popularity was classified as popular.
We found that @defichain/jellyfish-api-core demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 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.