Skip to content

Commit c912724

Browse files
committed
feat: podsi and filecoin support
1 parent efc730d commit c912724

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

.vscode/settings.json

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"drep",
1818
"dreps",
1919
"emurgo",
20+
"filecoin",
2021
"id",
2122
"io",
2223
"ipfs",

CHANGELOG.MD

+8
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,21 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
### Added
11+
12+
- support for filecoin pinning with `BlockFrostIPFS.pin(cid: string, options: {filecoin: boolean})` method
13+
1014
### Changed
1115

1216
- Dropped Byron support from `deriveAddress` util
1317
- `isTestnet` parameter changed to `network` (mainnet/preprod/preview)
1418
- Updated Cardano-Serialization-Lib to v13
1519
- Updated Blockfrost OpenAPI to 0.1.71
1620

21+
### Fixed
22+
23+
- Return type for `BlockFrostIPFS.list` `BlockFrostIPFS.listByPath` methods
24+
1725
## [5.7.0] - 2024-11-05
1826

1927
### Added

src/endpoints/ipfs/index.ts

+6-1
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,14 @@ export async function gateway(
7373
export async function pin(
7474
this: BlockFrostIPFS,
7575
path: string,
76+
options?: { filecoin?: boolean },
7677
): Promise<PinResponse> {
7778
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+
});
7984
return res.body;
8085
} catch (error) {
8186
throw handleError(error);

0 commit comments

Comments
 (0)