-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #75 from Vovke/api-specs
fix: server_status returns instance_id
- Loading branch information
Showing
13 changed files
with
185 additions
and
15 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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,7 +1,7 @@ | ||
[package] | ||
name = "kalatori" | ||
authors = ["Alzymologist Oy <[email protected]>"] | ||
version = "0.2.1" | ||
version = "0.2.2" | ||
edition = "2021" | ||
description = "A gateway daemon for Kalatori." | ||
license = "GPL-3.0-or-later" | ||
|
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,14 @@ | ||
# Dockerfile | ||
FROM node:16-alpine | ||
|
||
# Set the working directory | ||
WORKDIR /app | ||
|
||
# Install Chopsticks | ||
RUN npm install -g @acala-network/chopsticks | ||
|
||
# Expose ports for both instances | ||
EXPOSE 8000 8500 9000 9500 | ||
|
||
# Default command (this will be overridden by docker-compose) | ||
CMD ["chopsticks", "-c", "/app/config.yml", "-p", "9000"] |
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,46 @@ | ||
version: '3.8' | ||
|
||
services: | ||
chopsticks-polkadot: | ||
build: | ||
context: . | ||
dockerfile: Dockerfile | ||
container_name: chopsticks-polkadot | ||
ports: | ||
- "8000:8000" | ||
volumes: | ||
- ./pd.yml:/app/config.yml | ||
command: ["chopsticks", "-c", "/app/config.yml", "-p", "8000", "--addr", "0.0.0.0"] | ||
|
||
chopsticks-polkadot-2: | ||
build: | ||
context: . | ||
dockerfile: Dockerfile | ||
container_name: chopsticks-polkadot-2 | ||
ports: | ||
- "8500:8500" | ||
volumes: | ||
- ./pd-2.yml:/app/config.yml | ||
command: [ "chopsticks", "-c", "/app/config.yml", "-p", "8500", "--addr", "0.0.0.0" ] | ||
|
||
chopsticks-statemint: | ||
build: | ||
context: . | ||
dockerfile: Dockerfile | ||
container_name: chopsticks-statemint | ||
ports: | ||
- "9000:9000" | ||
volumes: | ||
- ./pd-ah.yml:/app/config.yml | ||
command: ["chopsticks", "-c", "/app/config.yml", "-p", "9000", "--addr", "0.0.0.0"] | ||
|
||
chopsticks-statemint-2: | ||
build: | ||
context: . | ||
dockerfile: Dockerfile | ||
container_name: chopsticks-statemint-2 | ||
ports: | ||
- "9500:9500" | ||
volumes: | ||
- ./pd-ah-2.yml:/app/config.yml | ||
command: [ "chopsticks", "-c", "/app/config.yml", "-p", "9500", "--addr", "0.0.0.0" ] |
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,11 @@ | ||
endpoint: wss://1rpc.io/dot | ||
|
||
import-storage: | ||
System: | ||
Account: | ||
- | ||
- | ||
- 5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY | ||
- providers: 1 | ||
data: | ||
free: 1000000000000000 |
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,15 @@ | ||
endpoint: wss://statemint-rpc.dwellir.com | ||
|
||
import-storage: | ||
System: | ||
Account: | ||
- | ||
- | ||
- 5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY | ||
- providers: 1 | ||
data: | ||
free: 1000000000000000 | ||
Assets: | ||
Account: | ||
- [[1984, 5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY], { balance: 1000000000 }] | ||
- [[1337, 5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY], { balance: 1000000000 }] |
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,18 +1,28 @@ | ||
account-lifetime = 86400000 # 1 day. | ||
depth = 3600000 # 1 hour. | ||
debug = true | ||
in-memory-db = true | ||
|
||
[[chain]] | ||
name = "polkadot" | ||
native-token = "DOT" | ||
decimals = 10 | ||
endpoints = [ | ||
"ws://localhost:8000", | ||
"ws://localhost:8500", | ||
] | ||
|
||
[[chain]] | ||
name = "statemint" | ||
decimals = 6 | ||
endpoints = [ | ||
"ws://localhost:8000" | ||
"ws://localhost:9000", | ||
"ws://localhost:9500", | ||
] | ||
|
||
[[chain.asset]] | ||
name = "USDC" | ||
id = 1337 | ||
|
||
[[chain.asset]] | ||
name = "USDT" | ||
name = "USDt" | ||
id = 1984 |
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