File tree Expand file tree Collapse file tree 4 files changed +14
-9
lines changed Expand file tree Collapse file tree 4 files changed +14
-9
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " @fileverse/heartbit-core " : minor
3
+ ---
4
+
5
+ Updated Interfaces
Original file line number Diff line number Diff line change @@ -61,10 +61,10 @@ async function main() {
61
61
const totalSupply = await coreSDK .getTotalHeartBitCountByHash ({ hash });
62
62
63
63
// Get Total Mints By User
64
- const address = " 0x...ethaddress" ;
64
+ const account = " 0x...ethaddress" ;
65
65
const mintsByUser = await coreSDK .getHeartBitByUser ({
66
66
hash,
67
- address ,
67
+ account ,
68
68
});
69
69
}
70
70
```
@@ -81,15 +81,15 @@ async function main() {
81
81
const endTime = 1706898251 ;
82
82
const hash = " ipfs://cid" ; // unique identifier for token. eg ipfs://somecid
83
83
const apiKey = " hello" ;
84
- const address = " 0x...ethaddress" ;
84
+ const account = " 0x...ethaddress" ;
85
85
86
86
// Mint HeartBit
87
87
88
88
await coreSDK .unSignedMintHeartBit ({
89
89
startTime,
90
90
endTime,
91
91
hash,
92
- account: address ,
92
+ account,
93
93
apiKey,
94
94
});
95
95
@@ -100,7 +100,7 @@ async function main() {
100
100
// Get Total Mints By User
101
101
const mintsByUser = await coreSDK .getHeartBitByUser ({
102
102
hash,
103
- address ,
103
+ account ,
104
104
});
105
105
}
106
106
```
@@ -121,7 +121,7 @@ interface TotalHeartBitCountArgs {
121
121
122
122
interface HeartBitCountByUserArgs {
123
123
hash: string; // unique identifier for token. eg ipfs://somecid
124
- address : string; // ethereum wallet address
124
+ account : string; // ethereum wallet address
125
125
}
126
126
127
127
interface MintHeartBitArgs {
Original file line number Diff line number Diff line change @@ -84,10 +84,10 @@ export class HeartBitCore {
84
84
}
85
85
86
86
async getHeartBitByUser ( opts : HeartBitCountByUserArgs ) : Promise < number > {
87
- const { address , hash } = opts ;
87
+ const { account , hash } = opts ;
88
88
const tokenId = await this . getHeartbitHashTokenMap ( hash ) ;
89
89
90
- const balance = await this . #contract. balanceOf ?.( address , tokenId ) ;
90
+ const balance = await this . #contract. balanceOf ?.( account , tokenId ) ;
91
91
return parseInt ( balance ) ;
92
92
}
93
93
}
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ export interface TotalHeartBitCountArgs {
33
33
34
34
export interface HeartBitCountByUserArgs {
35
35
hash : string ;
36
- address : string ;
36
+ account : string ;
37
37
}
38
38
39
39
export interface HeartBitCoreOptions {
You can’t perform that action at this time.
0 commit comments