@fileverse/heartbit-react
Advanced tools
Comparing version 2.2.0 to 2.3.0
@@ -23,3 +23,3 @@ /// <reference types="react" /> | ||
hash: string; | ||
address?: string; | ||
account?: string; | ||
showTotalMintsByHash?: boolean; | ||
@@ -26,0 +26,0 @@ showTotalMintsByUser?: boolean; |
{ | ||
"name": "@fileverse/heartbit-react", | ||
"version": "2.2.0", | ||
"version": "2.3.0", | ||
"type": "module", | ||
@@ -11,2 +11,11 @@ "main": "./dist/index.umd.js", | ||
], | ||
"keywords": [ | ||
"ethereum", | ||
"erc-4337", | ||
"eip-4337", | ||
"Safe SDK API", | ||
"React" | ||
], | ||
"repository": "https://github.com/fileverse/HeartBitSDK/tree/main/packages/heartbit-react", | ||
"homepage": "https://portal.fileverse.io/#/0x3d3dcEd1cb7676cbd90C4C4339D50AD52Bac37Fa/file/4?chainId=100", | ||
"exports": { | ||
@@ -50,5 +59,5 @@ ".": { | ||
"dependencies": { | ||
"@fileverse/heartbit-core": "^2.3.0", | ||
"@fileverse/heartbit-core": "^2.4.0", | ||
"classnames": "^2.5.1" | ||
} | ||
} |
@@ -101,3 +101,3 @@ # HeartBit React | ||
const address = '0x...someaddress' | ||
const account = '0x...someaddress' | ||
const hash = 'ipfs://cid' // This is an identifier for the token, if this hash changes you mint a new token eg: ipfs://cid | ||
@@ -107,3 +107,3 @@ useEffect(() => { | ||
const totalMintsByHash = await getTotalHeartBitByHash({ hash }); // Total Supply for a hash | ||
const totalMintsByUser = await getTotalHeartMintsByUser({ address, hash }); // Total mints for a user by hash | ||
const totalMintsByUser = await getTotalHeartMintsByUser({ account, hash }); // Total mints for a user by hash | ||
@@ -149,3 +149,3 @@ console.log({ totalMintsByHash, totalMintsByUser}) | ||
hash: string; // This is an identifier for the token, if this hash changes you mint a new token. eg: ipfs://cid | ||
address?: string; // user wallet address | ||
account?: string; // user wallet address | ||
showTotalMintsByHash?: boolean; // Default to false, if true will show total mints for a hash to the right of component | ||
@@ -169,3 +169,3 @@ showTotalMintsByUser?: boolean; // Defaults to false, if true will show total mints by a user on a hash to right of the component | ||
hash: string; // This is an identifier for the token, if this hash changes you mint a new token. eg: ipfs://cid | ||
address: string; // ethereum wallet address | ||
account: string; // ethereum wallet address | ||
} | ||
@@ -172,0 +172,0 @@ interface MintHeartBitArgs { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
3127311
1