-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* switch to @farcasterxyz/rocksdb * update rocksdb in node package * fix typeroots * fix broken dependency & rebuild bcrypto * chore(release): 1.0.4-alpha
- Loading branch information
1 parent
e345246
commit 0522a07
Showing
17 changed files
with
184 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM node:18-alpine as build_src | ||
FROM --platform=${BUILDPLATFORM:-amd64} node:18-alpine as build_src | ||
WORKDIR /usr/app | ||
RUN apk update && apk add --no-cache g++ make python3 && rm -rf /var/cache/apk/* | ||
|
||
|
@@ -18,6 +18,8 @@ COPY --from=build_src /usr/app . | |
RUN yarn install --non-interactive --frozen-lockfile --production --force | ||
RUN npx [email protected] bootstrap --ignore-scripts -- --production --no-optional | ||
|
||
RUN cd node_modules/bcrypto && yarn install | ||
|
||
FROM node:18-alpine | ||
WORKDIR /usr/app | ||
COPY --from=build_deps /usr/app . | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "cli", | ||
"version": "1.0.3-alpha", | ||
"version": "1.0.4-alpha", | ||
"description": "> TODO: description", | ||
"author": "zincoshine <[email protected]>", | ||
"homepage": "https://https://github.com/etherspot/skandha#readme", | ||
|
@@ -38,14 +38,14 @@ | |
"@libp2p/peer-id-factory": "2.0.1", | ||
"@libp2p/prometheus-metrics": "1.1.3", | ||
"@multiformats/multiaddr": "12.1.3", | ||
"api": "1.0.3-alpha", | ||
"db": "1.0.3-alpha", | ||
"executor": "1.0.3-alpha", | ||
"api": "1.0.4-alpha", | ||
"db": "1.0.4-alpha", | ||
"executor": "1.0.4-alpha", | ||
"find-up": "5.0.0", | ||
"got": "12.5.3", | ||
"js-yaml": "4.1.0", | ||
"node": "1.0.3-alpha", | ||
"types": "1.0.3-alpha", | ||
"node": "1.0.4-alpha", | ||
"types": "1.0.4-alpha", | ||
"yargs": "17.6.2" | ||
}, | ||
"devDependencies": { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,122 @@ | ||
// Type definitions for @farcaster/rocksdb 3.0 | ||
// Project: https://github.com/farcasterxyz/rocksdb | ||
// Definitions by: Meirion Hughes <https://github.com/MeirionHughes> | ||
// Daniel Byrne <https://github.com/danwbyrne> | ||
// Paul Fletcher-Hill <https://github.com/pfletcherhill> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
// TypeScript Version: 2.3 | ||
|
||
/// <reference types="node" /> | ||
|
||
// If we ever start using the upstream rocksdb package again, remove this | ||
// wrapper `module` declaration. It's only needed because our forked package is | ||
// scoped to @farcaster. | ||
declare module "@farcaster/rocksdb" { | ||
import { | ||
AbstractBatch, | ||
AbstractChainedBatch, | ||
AbstractGetOptions, | ||
AbstractIterator, | ||
AbstractIteratorOptions, | ||
AbstractLevelDOWN, | ||
AbstractOpenOptions, | ||
AbstractOptions, | ||
ErrorCallback, | ||
ErrorValueCallback, | ||
} from "abstract-leveldown"; | ||
|
||
interface RocksDB extends AbstractLevelDOWN<RocksDB.Bytes, RocksDB.Bytes> { | ||
open(cb: ErrorCallback): void; | ||
open(options: RocksDB.OpenOptions, cb: ErrorCallback): void; | ||
|
||
get(key: RocksDB.Bytes, cb: ErrorValueCallback<RocksDB.Bytes>): void; | ||
get( | ||
key: RocksDB.Bytes, | ||
options: RocksDB.GetOptions, | ||
cb: ErrorValueCallback<RocksDB.Bytes> | ||
): void; | ||
|
||
put(key: RocksDB.Bytes, value: RocksDB.Bytes, cb: ErrorCallback): void; | ||
put( | ||
key: RocksDB.Bytes, | ||
value: RocksDB.Bytes, | ||
options: RocksDB.PutOptions, | ||
cb: ErrorCallback | ||
): void; | ||
|
||
del(key: RocksDB.Bytes, cb: ErrorCallback): void; | ||
del( | ||
key: RocksDB.Bytes, | ||
options: RocksDB.DelOptions, | ||
cb: ErrorCallback | ||
): void; | ||
|
||
batch(): AbstractChainedBatch<RocksDB.Bytes, RocksDB.Bytes>; | ||
batch( | ||
array: AbstractBatch[], | ||
cb: ErrorCallback | ||
): AbstractChainedBatch<RocksDB.Bytes, RocksDB.Bytes>; | ||
batch( | ||
array: AbstractBatch[], | ||
options: RocksDB.BatchOptions, | ||
cb: ErrorCallback | ||
): AbstractChainedBatch<RocksDB.Bytes, RocksDB.Bytes>; | ||
|
||
approximateSize( | ||
start: RocksDB.Bytes, | ||
end: RocksDB.Bytes, | ||
cb: RocksDB.ErrorSizeCallback | ||
): void; | ||
compactRange( | ||
start: RocksDB.Bytes, | ||
end: RocksDB.Bytes, | ||
cb: ErrorCallback | ||
): void; | ||
getProperty(property: string): string; | ||
iterator(options?: RocksDB.IteratorOptions): RocksDB.Iterator; | ||
} | ||
|
||
namespace RocksDB { | ||
type Bytes = string | Buffer; | ||
type ErrorSizeCallback = (err: Error | undefined, size: number) => void; | ||
type OpenOptions = AbstractOpenOptions; | ||
|
||
interface GetOptions extends AbstractGetOptions { | ||
fillCache?: boolean | undefined; | ||
} | ||
|
||
interface PutOptions extends AbstractOptions { | ||
sync?: boolean | undefined; | ||
} | ||
|
||
interface DelOptions extends AbstractOptions { | ||
sync?: boolean | undefined; | ||
} | ||
|
||
interface BatchOptions extends AbstractOptions { | ||
sync?: boolean | undefined; | ||
} | ||
|
||
interface IteratorOptions extends AbstractIteratorOptions<Bytes> { | ||
fillCache?: boolean | undefined; | ||
} | ||
|
||
interface Iterator extends AbstractIterator<Bytes, Bytes> { | ||
seek(key: Bytes): void; | ||
binding: any; | ||
cache: any; | ||
finished: any; | ||
fastFuture: any; | ||
} | ||
|
||
interface Constructor { | ||
new (location: string): RocksDB; | ||
(location: string): RocksDB; | ||
destroy(location: string, cb: ErrorCallback): void; | ||
repair(location: string, cb: ErrorCallback): void; | ||
} | ||
} | ||
|
||
const RocksDB: RocksDB.Constructor; | ||
export default RocksDB; | ||
} |
Oops, something went wrong.