Socket
Socket
Sign inDemoInstall

@fileverse/heartbit-core

Package Overview
Dependencies
11
Maintainers
4
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.22 to 1.0.0

2

package.json
{
"name": "@fileverse/heartbit-core",
"version": "0.0.22",
"version": "1.0.0",
"description": "",

@@ -5,0 +5,0 @@ "type": "module",

@@ -5,3 +5,3 @@ # HeartBit Core

This is the core of the HeartBit functionality. It exposes the APIs that are crucial for implementing HeartBit functionalities.
This is the core of the [HeartBit](https://github.com/fileverse/HeartBitSDK) functionality. It exposes the APIs that are crucial for implementing HeartBit functionalities.

@@ -48,3 +48,3 @@ ## Getting Started

const endTime = 1706898251;
const hash = "Hello World"; // keccak256 hash of a string
const hash = "Hello World"; // This is an identifier for the token, if this hash changes you mint a new token in that case

@@ -75,1 +75,31 @@ // Mint HeartBit

[Here](https://codesandbox.io/p/devbox/heartbit-core-sdk-example-37h7hw) is a link to a working example using `HeartBitCore`.
### Interfaces
```javascript
type SupportedChain = "0xaa36a7" | "0x2105";
interface HeartBitCoreOptions {
chain: SupportedChain;
rpcUrl?: string;
}
interface TotalHeartBitCountArgs {
hash: string; // keccak256 hash of a string
}
interface HeartBitCountByUserArgs {
hash: string; // keccak256 hash of a string
address: string; // ethereum wallet address
}
interface MintHeartBitArgs {
message: string;
signature: string;
startTime: number; // in seconds
endTime: number; // in seconds
hash: string; // keccak256 hash of a string
}
```
Checkout [HeartBit React](https://github.com/fileverse/HeartBitSDK/edit/main/packages/heartbit-react) which uses the `HeartBitCore` to integrate HeartBit functionality in a react app.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc