Skip to content

Commit

Permalink
fixup! Add Filecoin
Browse files Browse the repository at this point in the history
  • Loading branch information
samholmes committed Aug 28, 2023
1 parent 2c1b87c commit e3e11fd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/filecoin/Filscan.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import { EdgeFetchFunction } from 'edge-core-js/types'
export interface FilscanOkResponse<Result> {
result: Result
}
export const asFilscanOkResponse = <Result extends any>(
export const asFilscanOkResponse = <Result>(
asResult: Cleaner<Result>
): Cleaner<FilscanOkResponse<Result>> =>
asObject({
Expand All @@ -36,7 +36,7 @@ export const asFilscanError = asJSON(
)

export type FilscanEnvelope<Result> = FilscanOkResponse<Result> | FilscanError
export const asFilscanEnvelope = <Result extends any>(
export const asFilscanEnvelope = <Result>(
asResult: Cleaner<Result>
): Cleaner<FilscanEnvelope<Result>> =>
asJSON(asEither(asFilscanError, asFilscanOkResponse(asResult)))
Expand Down
4 changes: 2 additions & 2 deletions src/filecoin/RpcExtra.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import { EdgeFetchFunction } from 'edge-core-js/types'
export interface RpcOkResponse<Result> {
result: Result
}
export const asRpcOkResponse = <Result extends any>(
export const asRpcOkResponse = <Result>(
asResult: Cleaner<Result>
): Cleaner<RpcOkResponse<Result>> =>
asObject({
Expand All @@ -39,7 +39,7 @@ export const asRpcError = asObject({
})

export type RpcEnvelope<Result> = RpcOkResponse<Result> | RpcError
export const asRpcEnvelope = <Result extends any>(
export const asRpcEnvelope = <Result>(
asResult: Cleaner<Result>
): Cleaner<RpcEnvelope<Result>> =>
asJSON(asEither(asRpcError, asRpcOkResponse(asResult)))
Expand Down
2 changes: 1 addition & 1 deletion src/filecoin/filecoinTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export interface FilecoinNetworkInfo {
filscanUrl: string
hdPathCoinType: number
rpcNode: {
networkName: Network // Network
networkName: Network
url: string
}
}
Expand Down

0 comments on commit e3e11fd

Please sign in to comment.