
Product
Introducing Custom Pull Request Alert Comment Headers
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
@defichain/jellyfish-api-core
Advanced tools
SDK & Ecosystem for building modern lite DeFi Applications at scale.
@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 405 weekly downloads. As such, @defichain/jellyfish-api-core popularity was classified as not popular.
We found that @defichain/jellyfish-api-core demonstrated a not healthy version release cadence and project activity because the last version was released 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 lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.