
Security News
High Salaries No Longer Enough to Attract Top Cybersecurity Talent
A survey of 500 cybersecurity pros reveals high pay isn't enough—lack of growth and flexibility is driving attrition and risking organizational security.
@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 105 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.
Security News
A survey of 500 cybersecurity pros reveals high pay isn't enough—lack of growth and flexibility is driving attrition and risking organizational security.
Product
Socket, the leader in open source security, is now available on Google Cloud Marketplace for simplified procurement and enhanced protection against supply chain attacks.
Security News
Corepack will be phased out from future Node.js releases following a TSC vote.