-
Notifications
You must be signed in to change notification settings - Fork 0
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
WIP: integrating oracle #2
base: main
Are you sure you want to change the base?
Changes from 8 commits
aedc45f
a629152
a5ec437
ebb4045
7852308
e0b06dc
be740cb
4c8753c
2dbff67
86e0a94
dc0c6a7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,8 +21,8 @@ query-gas-limit = "0" | |
pruning = "nothing" | ||
|
||
# These are applied if and only if the pruning strategy is custom. | ||
# pruning-keep-recent = "2" | ||
# pruning-interval = "10" | ||
pruning-keep-recent = "0" | ||
pruning-interval = "0" | ||
|
||
# HaltHeight contains a non-zero block height at which a node will gracefully | ||
# halt and shutdown that can be used to assist upgrades and testing. | ||
|
@@ -133,7 +133,7 @@ enable = true | |
swagger = false | ||
|
||
# Address defines the API server to listen on. | ||
address = "tcp://0.0.0.0:1317" | ||
address = "tcp://localhost:1317" | ||
|
||
# MaxOpenConnections defines the number of maximum open connections. | ||
max-open-connections = 1000 | ||
|
@@ -191,7 +191,7 @@ enable = true | |
|
||
# snapshot-interval specifies the block interval at which local state sync snapshots are | ||
# taken (0 to disable). | ||
snapshot-interval = 2000 | ||
snapshot-interval = 0 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Reconsider disabling state sync snapshots Setting
Consider setting a non-zero value (e.g., 1000 or 2000) to enable state sync snapshots, which can significantly reduce the time for new nodes to join the network. If disabling snapshots is intentional, please ensure this aligns with your network's operational requirements. |
||
|
||
# snapshot-keep-recent specifies the number of recent snapshots to keep and serve (0 to keep all). | ||
snapshot-keep-recent = 2 | ||
|
@@ -262,7 +262,7 @@ enable = true | |
address = "0.0.0.0:8545" | ||
|
||
# Address defines the EVM WebSocket server address to bind to. | ||
ws-address = "0.0.0.0:8546" | ||
ws-address = "127.0.0.1:8546" | ||
|
||
# API defines a list of JSON-RPC namespaces that should be enabled | ||
# Example: "eth,txpool,personal,net,debug,web3" | ||
|
@@ -331,3 +331,37 @@ key-path = "" | |
[aspect] | ||
apply-pool-size = 0 | ||
query-pool-size = 0 | ||
|
||
|
||
############################################################################### | ||
### Oracle ### | ||
############################################################################### | ||
[oracle] | ||
# Enabled indicates whether the oracle is enabled. | ||
enabled = "true" | ||
|
||
# Oracle Address is the URL of the out of process oracle sidecar. This is used to | ||
# connect to the oracle sidecar when the application boots up. Note that the address | ||
# can be modified at any point, but will only take effect after the application is | ||
# restarted. This can be the address of an oracle container running on the same | ||
# machine or a remote machine. | ||
oracle_address = "localhost:8080" | ||
|
||
# Client Timeout is the time that the client is willing to wait for responses from | ||
# the oracle before timing out. The recommended timeout is 3 seconds (3000ms). | ||
client_timeout = "2s" | ||
|
||
# MetricsEnabled determines whether oracle metrics are enabled. Specifically | ||
# this enables instrumentation of the oracle client and the interaction between | ||
# the oracle and the app. | ||
metrics_enabled = "true" | ||
|
||
# PriceTTL is the maximum age of the latest price response before it is considered stale. | ||
# The recommended max age is 10 seconds (10s). If this is greater than 1 minute (1m), the app | ||
# will not start. | ||
price_ttl = "0s" | ||
|
||
# Interval is the time between each price update request. The recommended interval | ||
# is the block time of the chain. Otherwise, 1.5 seconds (1500ms) is a good default. If this | ||
# is greater than 1 minute (1m), the app will not start. | ||
interval = "0s" |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,15 @@ | ||
{ | ||
"app_name": "artela-rollkitd", | ||
"app_version": "", | ||
"genesis_time": "2024-08-19T02:50:07.087678Z", | ||
"genesis_time": "2024-10-31T09:32:52.04732Z", | ||
"chain_id": "artroll_11820-1", | ||
"initial_height": 1, | ||
"app_hash": null, | ||
"app_state": { | ||
"contract_config": { | ||
"deployer_private_key": "0xe7214230c789c557cdd730d210a5ab0c05ee77e1990262caf9be8f6b2918bb9c", | ||
"oracle_address": "0xd9688b956ca93049a5686f6f88ab7dc910fab635" | ||
}, | ||
Comment on lines
+9
to
+12
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Security Risk: Private key exposed in genesis configuration The Consider:
🧰 Tools🪛 Gitleaks10-10: Detected a Generic API Key, potentially exposing access to various services and sensitive operations. (generic-api-key) |
||
"06-solomachine": null, | ||
"07-tendermint": null, | ||
"auth": { | ||
|
@@ -29,31 +33,10 @@ | |
}, | ||
{ | ||
"@type": "/cosmos.auth.v1beta1.BaseAccount", | ||
"address": "art1dq4gtx924wn6k034qfxel0klacty2gd7cktd2j", | ||
"address": "art1m95gh9tv4ycynftgdahc32maeyg04d34wteys4", | ||
"pub_key": null, | ||
"account_number": "1", | ||
"sequence": "0" | ||
}, | ||
{ | ||
"@type": "/cosmos.auth.v1beta1.BaseAccount", | ||
"address": "art1a2flg0np0fcrjuygyzgzuf6xc3mxct8d9rukzd", | ||
"pub_key": null, | ||
"account_number": "2", | ||
"sequence": "0" | ||
}, | ||
{ | ||
"@type": "/cosmos.auth.v1beta1.BaseAccount", | ||
"address": "art1z5jgh3an6hrl7ghdcdftpdztksjxl0gpjsg03v", | ||
"pub_key": null, | ||
"account_number": "3", | ||
"sequence": "0" | ||
}, | ||
{ | ||
"@type": "/cosmos.auth.v1beta1.BaseAccount", | ||
"address": "art12uhkvq0axk452ctlvn0q55zgnymq6clml5064g", | ||
"pub_key": null, | ||
"account_number": "4", | ||
"sequence": "0" | ||
} | ||
] | ||
}, | ||
|
@@ -71,34 +54,7 @@ | |
"coins": [] | ||
}, | ||
{ | ||
"address": "art1z5jgh3an6hrl7ghdcdftpdztksjxl0gpjsg03v", | ||
"coins": [ | ||
{ | ||
"denom": "aart", | ||
"amount": "100000000000000000000000000" | ||
} | ||
] | ||
}, | ||
{ | ||
"address": "art12uhkvq0axk452ctlvn0q55zgnymq6clml5064g", | ||
"coins": [ | ||
{ | ||
"denom": "aart", | ||
"amount": "100000000000000000000000000" | ||
} | ||
] | ||
}, | ||
{ | ||
"address": "art1dq4gtx924wn6k034qfxel0klacty2gd7cktd2j", | ||
"coins": [ | ||
{ | ||
"denom": "aart", | ||
"amount": "100000000000000000000000000" | ||
} | ||
] | ||
}, | ||
{ | ||
"address": "art1a2flg0np0fcrjuygyzgzuf6xc3mxct8d9rukzd", | ||
"address": "art1m95gh9tv4ycynftgdahc32maeyg04d34wteys4", | ||
"coins": [ | ||
{ | ||
"denom": "aart", | ||
|
@@ -177,7 +133,7 @@ | |
"shanghai_block": "0", | ||
"cancun_block": "0" | ||
}, | ||
"allow_unprotected_txs": true | ||
"allow_unprotected_txs": false | ||
}, | ||
"accounts": [ | ||
{ | ||
|
@@ -230,18 +186,18 @@ | |
}, | ||
"min_self_delegation": "1", | ||
"delegator_address": "", | ||
"validator_address": "artvaloper1dq4gtx924wn6k034qfxel0klacty2gd7k6rtfd", | ||
"validator_address": "artvaloper1m95gh9tv4ycynftgdahc32maeyg04d34q83zn2", | ||
"pubkey": { | ||
"@type": "/cosmos.crypto.ed25519.PubKey", | ||
"key": "+SrfTnc7KUBAvp1s2LdutuDBc6kr6+nBCXtzPG7t4VM=" | ||
"key": "14petMmAddY+HnS8hpa3UOJMDYHO7TC1ulmzX0zmyM0=" | ||
}, | ||
"value": { | ||
"denom": "aart", | ||
"amount": "1000000000000000000000" | ||
} | ||
} | ||
], | ||
"memo": "[email protected]:26656", | ||
"memo": "[email protected]:26656", | ||
"timeout_height": "0", | ||
"extension_options": [], | ||
"non_critical_extension_options": [] | ||
|
@@ -251,7 +207,7 @@ | |
{ | ||
"public_key": { | ||
"@type": "/artela.crypto.ethsecp256k1.PubKey", | ||
"key": "Awf7YAGa6sZwRCo/iEUoCubZd1dPVYgf5VPGDmjPmNzk" | ||
"key": "AgTodyD8tzCtnJzTAYSmXgve2r74/JUJ57L/Ua0Gh+JK" | ||
}, | ||
"mode_info": { | ||
"single": { | ||
|
@@ -275,7 +231,7 @@ | |
"tip": null | ||
}, | ||
"signatures": [ | ||
"SjrsqJaKSLJj/Q6zaV4E5h86YYtfkLpb+fCmCfxyz6hgGKRJ7guAC4fBTi0YrbU+wJJZeNZF3akMP+I7k/Pp8AE=" | ||
"mzSE1bxWoL0QUzwnd3diKzRDc0nlL6ztm479bLf5Ho8PIH4OjNNg4tHyFqSOrqKMFyI2zAq7AtZ+dtPCY86WRAA=" | ||
] | ||
} | ||
] | ||
|
@@ -396,6 +352,18 @@ | |
} | ||
} | ||
}, | ||
"marketmap": { | ||
"market_map": { | ||
"markets": {} | ||
}, | ||
"last_updated": "0", | ||
"params": { | ||
"market_authorities": [ | ||
"art10d07y265gmmuvt4z0w9aw880jnsr700jv60jp4" | ||
], | ||
"admin": "art10d07y265gmmuvt4z0w9aw880jnsr700jv60jp4" | ||
} | ||
}, | ||
"mint": { | ||
"minter": { | ||
"inflation": "0.130000000000000000", | ||
|
@@ -414,6 +382,10 @@ | |
"classes": [], | ||
"entries": [] | ||
}, | ||
"oracle": { | ||
"currency_pair_genesis": [], | ||
"next_id": "0" | ||
}, | ||
"params": null, | ||
"runtime": null, | ||
"slashing": { | ||
|
@@ -459,10 +431,10 @@ | |
"consensus": { | ||
"validators": [ | ||
{ | ||
"address": "CF9A8D94CC8941E4963EA1D441C4BD801C3ADE80", | ||
"address": "18B914CD81014883F3DF29E36C57EEB3652BE7D3", | ||
"pub_key": { | ||
"type": "tendermint/PubKeyEd25519", | ||
"value": "+SrfTnc7KUBAvp1s2LdutuDBc6kr6+nBCXtzPG7t4VM=" | ||
"value": "14petMmAddY+HnS8hpa3UOJMDYHO7TC1ulmzX0zmyM0=" | ||
}, | ||
"power": "1000000000000000", | ||
"name": "Rollkit Sequencer" | ||
|
@@ -491,4 +463,4 @@ | |
} | ||
} | ||
} | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"body":{"messages":[{"@type":"/cosmos.staking.v1beta1.MsgCreateValidator","description":{"moniker":"localtestnet","identity":"","website":"","security_contact":"","details":""},"commission":{"rate":"0.100000000000000000","max_rate":"0.200000000000000000","max_change_rate":"0.010000000000000000"},"min_self_delegation":"1","delegator_address":"","validator_address":"artvaloper1m95gh9tv4ycynftgdahc32maeyg04d34q83zn2","pubkey":{"@type":"/cosmos.crypto.ed25519.PubKey","key":"14petMmAddY+HnS8hpa3UOJMDYHO7TC1ulmzX0zmyM0="},"value":{"denom":"aart","amount":"1000000000000000000000"}}],"memo":"[email protected]:26656","timeout_height":"0","extension_options":[],"non_critical_extension_options":[]},"auth_info":{"signer_infos":[{"public_key":{"@type":"/artela.crypto.ethsecp256k1.PubKey","key":"AgTodyD8tzCtnJzTAYSmXgve2r74/JUJ57L/Ua0Gh+JK"},"mode_info":{"single":{"mode":"SIGN_MODE_DIRECT"}},"sequence":"0"}],"fee":{"amount":[{"denom":"aart","amount":"4000000000000000"}],"gas_limit":"200000","payer":"","granter":""},"tip":null},"signatures":["mzSE1bxWoL0QUzwnd3diKzRDc0nlL6ztm479bLf5Ho8PIH4OjNNg4tHyFqSOrqKMFyI2zAq7AtZ+dtPCY86WRAA="]} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Critical: Empty delegator_address field needs to be populated. The Apply this change (replace with your actual delegator address): -"delegator_address":"",
+"delegator_address":"artela1..."
|
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"priv_key":{"type":"tendermint/PrivKeyEd25519","value":"/TpLlf6Fl3NxKpur44PVcJvKMs8Qh3dfZaTXeMtOo8sgVj3f4bPC//uYQyqqpKlffUX3t8oDo3AMvIIjds3SdA=="}} | ||
{"priv_key":{"type":"tendermint/PrivKeyEd25519","value":"4uUQGWGyOzgioBcmMpSVNo11Rg45f4mk28y213iIsdHA51G+kAzM9Mjs00nQJe4DwtagDcgbFwE4My2NObL8Lw=="}} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
{ | ||
"address": "CF9A8D94CC8941E4963EA1D441C4BD801C3ADE80", | ||
"address": "18B914CD81014883F3DF29E36C57EEB3652BE7D3", | ||
"pub_key": { | ||
"type": "tendermint/PubKeyEd25519", | ||
"value": "+SrfTnc7KUBAvp1s2LdutuDBc6kr6+nBCXtzPG7t4VM=" | ||
"value": "14petMmAddY+HnS8hpa3UOJMDYHO7TC1ulmzX0zmyM0=" | ||
}, | ||
"priv_key": { | ||
"type": "tendermint/PrivKeyEd25519", | ||
"value": "yZyMb4PieN4JlHekxUcdy+UTtHMySUar40Wk+JQw9k75Kt9OdzspQEC+nWzYt2624MFzqSvr6cEJe3M8bu3hUw==" | ||
"value": "0qBF29p7Z9W2zGPukaadCchc8V4Kprob6FcMEZaOTjrXil60yYB11j4edLyGlrdQ4kwNgc7tMLW6WbNfTObIzQ==" | ||
} | ||
} |
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyNC0xMC0zMSAxMDozMjo1MS45OTc2MzYgKzAxMDAgQ0VUIG09KzAuMDQ2NTI5MjUxIiwiZW5jIjoiQTI1NkdDTSIsInAyYyI6ODE5MiwicDJzIjoiMzFaY3UwbGJWUEM2Zll0byJ9.5VspzZSIdQjyxhSklYgxen4X3GxTMCXYbYh-k-fsaxxKk_n1vgNvwA.DRxwSn0er3wt9Y0n.qo0A0RYIPdmYiPZhPzYVDPMN0Yvk26e9HVDzm5iSZnEYExPCiaW3FiE2oeBvIHoYResadJcKn3t3QHs8V5qoq-M9l40dRRo340Vmugsg5O9w4T1ImmCq16LKY3WbHGGwaaV3ByN1tW4ypJXCwcP3qk6U2RoTmZx-bJFlrB_2VusICIpLpfGGxIS36TgM_VeON62p8vTsZxeSCdWW7xdj3JjzQ3zDPfPVqx8gR8xuJzvsmQTtcfM.65PDrihz55cJTyf5jsBwrA |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyNC0wOC0xOSAxMDo1MDowNi44Mjg4OTQgKzA4MDAgQ1NUIG09KzAuMDUxNjMyODc2IiwiZW5jIjoiQTI1NkdDTSIsInAyYyI6ODE5MiwicDJzIjoiaEJZVFJzRU8zQmpxdFZTbiJ9.VP0GUlPTbO5v-u8svOFT86aZHK_11kuDr9UGe9OFPCg0LKvK5WNeVA.t4nkzVN3HUxQp_Br.6i3MWktkEEdWk39G0s4GEV2v-W4sNym0tYCMO7KMYp0tEwUV5hqNtnffxTwJgtFyKurIc85dKdu_LUCZGZvX__T_EKCHciSKCfIMXlmOSKN5HfIhFgRfiDw-rWEDT8kBrIlLJuYJSUmiiEOOak2th_JToA3k4D41N4n2b1gmAREuAVfv39BAogEW1kMXT2wM7xLQie_x7N_mkCxLb3TthqqdqjsM1kRNNJ8gnosKGc4j9s6EQs8HecD8WCJFzTlsaetZdj1M7II3LZtEzapi9mJl4-y4sdBScXLoK6tFjrnXPSExk5mZyYx1ZIleDr4tOu8KcLXsV3e9Ei6d8rn5y172Pz5w_hwUlk247_z-xdWUtP17jvCg7yqf6F4M0iEXZsyLNxYXFoulOq9GmxsBXT6krs4lY7ASrCSBQdqjoYrTrHBBWvf3yFOuko_5-M2gJkXKLQ.TbA6Hh0-6vVgUtQeDKaM1g | ||
eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyNC0xMC0zMSAxMDozMjo1MS45OTY1NDYgKzAxMDAgQ0VUIG09KzAuMDQ1NDM5NzA5IiwiZW5jIjoiQTI1NkdDTSIsInAyYyI6ODE5MiwicDJzIjoiV1hZQk9ESk91aWkzUVdvZSJ9.rbd-TYmXXNRrx5mki2VlvCTVCU3cJtxuY-Ag0uML6c2pgHtsSr2voQ.1x_6Lyuxm3hhN2lt.LV6cIO6hPBJ1ZciXsS_jWX0hjbRN-CoJrChDdXAGZkuphXbGcoU5qN1m_nUpQ26rlKSDCtatyCtdc25r-T1fCipHFii7DgoNLaFJq0evq56Hkul_0PTDW2SyZqgaOLO9MCUKKrNQaE13oQvW2EQjzuTCNRqnqpQbY8YMbPxtWlRHfC3d2cPbZ30SXgcHTD-n3SpimmanXgKtWRD0LS9l-7M-lVRHr9TpI7FAUIuh11iAWB5iuZ7nC0quD81klZcbrBymDx7ydgKSpUhxVVPmo6Bto4yCAVbaUtKtHP2H71S-MNCrlDSInOWtbn2WV8w3vPZMra7gLRPImjyhQjQ9XqXpI9E9-cRB_3cOycMCaBQ3kbPfuNS3Qp70fpzTT5M8zEExEtOWrTQ0tovLp8sbmPgwugfuXd8zL6K2IMf0uwzAhSnu6u7dZ_vRKVhhyfTkgoaIXQ.OrSO3ewroxIYyz4XT7Z4GA |
This file was deleted.
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove redundant pruning configuration
The
pruning-keep-recent
andpruning-interval
settings are only applied whenpruning="custom"
, but currentlypruning="nothing"
is set. These settings are redundant and should be removed or commented out.Additionally, keeping all historical states (
pruning="nothing"
) could lead to significant disk usage over time. Consider if this aligns with your operational requirements.📝 Committable suggestion