Commit c912724 1 parent efc730d commit c912724 Copy full SHA for c912724
File tree 3 files changed +15
-1
lines changed
3 files changed +15
-1
lines changed Original file line number Diff line number Diff line change 17
17
" drep" ,
18
18
" dreps" ,
19
19
" emurgo" ,
20
+ " filecoin" ,
20
21
" id" ,
21
22
" io" ,
22
23
" ipfs" ,
Original file line number Diff line number Diff line change @@ -7,13 +7,21 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
8
8
## [ Unreleased]
9
9
10
+ ### Added
11
+
12
+ - support for filecoin pinning with ` BlockFrostIPFS.pin(cid: string, options: {filecoin: boolean}) ` method
13
+
10
14
### Changed
11
15
12
16
- Dropped Byron support from ` deriveAddress ` util
13
17
- ` isTestnet ` parameter changed to ` network ` (mainnet/preprod/preview)
14
18
- Updated Cardano-Serialization-Lib to v13
15
19
- Updated Blockfrost OpenAPI to 0.1.71
16
20
21
+ ### Fixed
22
+
23
+ - Return type for ` BlockFrostIPFS.list ` ` BlockFrostIPFS.listByPath ` methods
24
+
17
25
## [ 5.7.0] - 2024-11-05
18
26
19
27
### Added
Original file line number Diff line number Diff line change @@ -73,9 +73,14 @@ export async function gateway(
73
73
export async function pin (
74
74
this : BlockFrostIPFS ,
75
75
path : string ,
76
+ options ?: { filecoin ?: boolean } ,
76
77
) : Promise < PinResponse > {
77
78
try {
78
- const res = await this . instance . post < PinResponse > ( `ipfs/pin/add/${ path } ` ) ;
79
+ const res = await this . instance . post < PinResponse > ( `ipfs/pin/add/${ path } ` , {
80
+ searchParams : {
81
+ ...( options ?. filecoin !== undefined && { filecoin : options . filecoin } ) ,
82
+ } ,
83
+ } ) ;
79
84
return res . body ;
80
85
} catch ( error ) {
81
86
throw handleError ( error ) ;
You can’t perform that action at this time.
0 commit comments