-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstackr.config.ts
40 lines (37 loc) · 950 Bytes
/
stackr.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
import { DA, KeyPurpose, SignatureScheme, StackrConfig } from "@stackr/sdk";
import dotenv from "dotenv";
dotenv.config();
const stackrConfig: StackrConfig = {
isSandbox: process.env.NODE_ENV === "sandbox",
sequencer: {
blockSize: 16,
blockTime: 1_000,
},
syncer: {
slotTime: 1000,
vulcanRPC: process.env.VULCAN_RPC as string,
L1RPC: process.env.L1_RPC as string,
},
operator: {
accounts: [
{
privateKey: process.env.PRIVATE_KEY as string,
purpose: KeyPurpose.BATCH,
scheme: SignatureScheme.ECDSA,
},
],
},
domain: {
name: "Stackr MVP v0",
version: "1",
salt: "0x0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef",
},
datastore: {
type: "sqlite",
uri: process.env.DATABASE_URI as string,
},
registryContract: process.env.REGISTRY_CONTRACT as string,
preferredDA: DA.AVAIL,
logLevel: "debug",
};
export { stackrConfig };