Skip to content
This repository was archived by the owner on Mar 12, 2024. It is now read-only.

Commit 548ec58

Browse files
author
NWilde4
committed
Rename cartesi-dex to order-book and update with latest features
1 parent 8b63cac commit 548ec58

37 files changed

Lines changed: 5813 additions & 2057 deletions

order-book/.dockerignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
config
2+
contracts/node_modules
3+
frontend-console
4+
server

order-book/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
machine
2+
.vscode
Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,27 @@ FROM node:16-buster-slim
22

33
# install git
44
RUN apt-get update && DEBIAN_FRONTEND="noninteractive" apt-get install -y \
5-
git \
5+
build-essential git python3 \
66
&& rm -rf /var/lib/apt/lists/*
77

88
WORKDIR /app
99

10+
# copy machine
11+
WORKDIR /app/machine
12+
COPY machine .
13+
1014
# build to bring node_modules
11-
COPY ["package.json", "yarn.lock", "./"]
15+
WORKDIR /app/contracts
16+
COPY ["contracts/package.json", "contracts/yarn.lock", "./"]
1217
RUN yarn install --non-interactive
1318

1419
# build app
15-
COPY . .
20+
COPY contracts .
1621
RUN yarn install --non-interactive
1722

1823
# expose hardhat node port
1924
EXPOSE 8545
2025

26+
WORKDIR /app/contracts
2127
ENTRYPOINT ["npx", "hardhat"]
22-
CMD ["node"]
28+
CMD ["node"]

order-book/README.md

Lines changed: 59 additions & 42 deletions
Large diffs are not rendered by default.

order-book/config/indexer-config.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[polling_config]
1+
[indexer_config]
22

33
# unique session identifier for machine manager
44
session_id = "default_rollups_id"
@@ -15,4 +15,4 @@ interval = 10
1515
# end points
1616
postgres_endpoint = "postgres://postgres:password@database/postgres"
1717
state_server_endpoint = "http://state_server:50051"
18-
mm_endpoint = "http://server_manager:5001"
18+
mm_endpoint = "http://server_manager:5001"

order-book/config/sf-config.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ genesis_block = "0x1"
1010
query_limit_error_codes = [-32005]
1111

1212
# number of blocks (depth) before considering state finalized
13-
safety_margin = 1
13+
safety_margin = 0

order-book/contracts/.DS_Store

-6 KB
Binary file not shown.

order-book/contracts/.dockerignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

order-book/contracts/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1+
.yalc
12
cache
23
coverage
34
deployments/localhost
45
deployments/*/solcInputs/*.json
56
dist
67
export/abi/localhost.json
78
node_modules
9+
yalc.lock

order-book/contracts/config/.dapprc.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@
22
"inputDuration": 86400,
33
"challengePeriod": 604800,
44
"inputLog2Size": 25,
5+
"feePerClaim": "1000000000000000000",
56
"validators": "0,1,2"
67
}

0 commit comments

Comments
 (0)