Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refiner proxy #28

Merged
merged 4 commits into from
Sep 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions contrib/config/docker/mainnet_datalake.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ services:
- ./data/relayer:/data/relayer
- ./data/refiner:/data/refiner
- ./near:/near
- ./sockets:/sockets
logging:
driver: "json-file"
options:
Expand All @@ -40,6 +41,7 @@ services:
- ./config/refiner:/config # config files
- ./data/refiner:/data # Output directory
- "%%AWS%%:/root/.aws/credentials:ro"
- ./sockets:/sockets
logging:
driver: "json-file"
options:
Expand Down
2 changes: 2 additions & 0 deletions contrib/config/docker/mainnet_nearcore.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ services:
- ./data/relayer:/data/relayer
- ./data/refiner:/data/refiner
- ./near:/near
- ./sockets:/sockets
logging:
driver: "json-file"
options:
Expand All @@ -41,6 +42,7 @@ services:
- ./data/refiner:/data # Output directory
- ./near:/near # Path to Nearcore data
- ./engine:/engine
- ./sockets:/sockets
logging:
driver: "json-file"
options:
Expand Down
2 changes: 2 additions & 0 deletions contrib/config/docker/silo_datalake.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ services:
- ./data/relayer:/data/relayer
- ./data/refiner:/data/refiner
- ./near:/near
- ./sockets:/sockets
logging:
driver: "json-file"
options:
Expand All @@ -41,6 +42,7 @@ services:
- ./config/refiner:/config # config files
- ./data/refiner:/data # Output directory
- "%%AWS%%:/root/.aws/credentials:ro"
- ./sockets:/sockets
logging:
driver: "json-file"
options:
Expand Down
2 changes: 2 additions & 0 deletions contrib/config/docker/silo_nearcore.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ services:
- ./data/relayer:/data/relayer
- ./data/refiner:/data/refiner
- ./near:/near
- ./sockets:/sockets
logging:
driver: "json-file"
options:
Expand All @@ -42,6 +43,7 @@ services:
- ./data/refiner:/data # Output directory
- ./near:/near # Path to Nearcore data
- ./engine:/engine
- ./sockets:/sockets
logging:
driver: "json-file"
options:
Expand Down
2 changes: 2 additions & 0 deletions contrib/config/docker/testnet_datalake.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ services:
- ./data/relayer:/data/relayer
- ./data/refiner:/data/refiner
- ./near:/near
- ./sockets:/sockets
logging:
driver: "json-file"
options:
Expand All @@ -40,6 +41,7 @@ services:
- ./config/refiner:/config # config files
- ./data/refiner:/data # Output directory
- "%%AWS%%:/root/.aws/credentials:ro"
- ./sockets:/sockets
logging:
driver: "json-file"
options:
Expand Down
2 changes: 2 additions & 0 deletions contrib/config/docker/testnet_nearcore.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ services:
- ./data/relayer:/data/relayer
- ./data/refiner:/data/refiner
- ./near:/near
- ./sockets:/sockets
logging:
driver: "json-file"
options:
Expand All @@ -41,6 +42,7 @@ services:
- ./data/refiner:/data # Output directory
- ./near:/near # Path to Nearcore data
- ./engine:/engine
- ./sockets:/sockets
logging:
driver: "json-file"
options:
Expand Down
4 changes: 4 additions & 0 deletions contrib/config/refiner/mainnet_datalake.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,9 @@
"output_storage": {
"path": "/data",
"batch_size": 10000
},
"socket_server": {
"path": "/sockets/refiner.sock"

}
}
3 changes: 3 additions & 0 deletions contrib/config/refiner/mainnet_nearcore.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,8 @@
"output_storage": {
"path": "/data",
"batch_size": 10000
},
"socket_server": {
"path": "/sockets/refiner.sock"
}
}
3 changes: 3 additions & 0 deletions contrib/config/refiner/silo_datalake.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,8 @@
"output_storage": {
"path": "/data",
"batch_size": 10000
},
"socket_server": {
"path": "/sockets/refiner.sock"
}
}
3 changes: 3 additions & 0 deletions contrib/config/refiner/silo_nearcore.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,8 @@
"output_storage": {
"path": "/data",
"batch_size": 10000
},
"socket_server": {
"path": "/sockets/refiner.sock"
}
}
3 changes: 3 additions & 0 deletions contrib/config/refiner/testnet_datalake.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,8 @@
"output_storage": {
"path": "/data",
"batch_size": 10000
},
"socket_server": {
"path": "/sockets/refiner.sock"
}
}
3 changes: 3 additions & 0 deletions contrib/config/refiner/testnet_nearcore.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,8 @@
"output_storage": {
"path": "/data",
"batch_size": 10000
},
"socket_server": {
"path": "/sockets/refiner.sock"
}
}
2 changes: 1 addition & 1 deletion contrib/config/relayer/filter.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
filter:
IP:
policy: "deny"
list:
list: []
EOA:
CA:
7 changes: 5 additions & 2 deletions contrib/config/relayer/mainnet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,11 @@ endpoint:
filterFilePath: /config/filter.yaml
engine:
nearNetworkID: mainnet
nearNodeURL: https://archival-rpc.mainnet.near.org
nearArchivalNodeURL: https://archival-rpc.mainnet.near.org
nearNodeURL: http://srpc2-refiner:3030
signer: %%SIGNER%%
signerKey: /config/relayer.json
asyncSendRawTxs: true
asyncSendRawTxs: false
minGasPrice: 0
minGasLimit: 21000
gasForNearTxsCall: 300000000000000
Expand All @@ -42,6 +43,8 @@ endpoint:
- debug_traceTransaction
disabledEndpoints:
-
standaloneproxy:
address: "/sockets/refiner.sock"
rpcNode:
httpHost: 0.0.0.0
httpPort: 8545
Expand Down
7 changes: 5 additions & 2 deletions contrib/config/relayer/silo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,11 @@ endpoint:
filterFilePath: /config/filter.yaml
engine:
nearNetworkID: %%SILO_NETWORK%%
nearNodeURL: https://archival-rpc.%%SILO_NETWORK%%.near.org
nearArchivalNodeURL: https://archival-rpc.%%SILO_NETWORK%%.near.org
nearNodeURL: http://srpc2-refiner:3030
signer: %%SIGNER%%
signerKey: /config/relayer.json
asyncSendRawTxs: true
asyncSendRawTxs: false
minGasPrice: 0
minGasLimit: 21000
gasForNearTxsCall: 300000000000000
Expand All @@ -42,6 +43,8 @@ endpoint:
- debug_traceTransaction
disabledEndpoints:
-
standaloneproxy:
address: "/sockets/refiner.sock"
rpcNode:
httpHost: 0.0.0.0
httpPort: 8545
Expand Down
5 changes: 4 additions & 1 deletion contrib/config/relayer/testnet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ endpoint:
filterFilePath: config/filter.yaml
engine:
nearNetworkID: testnet
nearNodeURL: https://archival-rpc.testnet.near.org
nearArchivalNodeURL: https://archival-rpc.testnet.near.org
nearNodeURL: http://srpc2-refiner:3030
signer: %%SIGNER%%
signerKey: /config/relayer.json
asyncSendRawTxs: false
Expand All @@ -42,6 +43,8 @@ endpoint:
- debug_traceTransaction
disabledEndpoints:
-
standaloneproxy:
address: "/sockets/refiner.sock"
rpcNode:
httpHost: 0.0.0.0
httpPort: 8545
Expand Down