Skip to content

Instantly share code, notes, and snippets.

@greenhat
greenhat / prof.txt
Created April 3, 2023 06:33
node rescan profiling
--- Execution profile ---
Total samples : 4040
unknown_Java : 95 (2.35%)
--- 5079812350 ns (12.57%), 508 samples
[ 0] scorex.util.encode.Base16$.encode
[ 1] scorex.core.utils.ScorexEncoder.encode
[ 2] org.ergoplatform.settings.ErgoAlgos.encode
[ 3] org.ergoplatform.settings.ErgoAlgos.encode$
[ 4] org.ergoplatform.settings.Algos$.encode
@greenhat
greenhat / pool_config.yaml
Created January 18, 2023 14:41
pool_config.yaml
data_point_source: NanoErgXau
oracle_contract_parameters:
ergo_tree_bytes: 100a040004000580dac409040004000e20f2f64bab1f2e9ab65c0e4a6a65eed0b26c5276eb5dda01d4a0e0ebe8a85bfbfc0402040204020402d804d601b2a5e4e3000400d602db63087201d603db6308a7d604e4c6a70407ea02d1ededed93b27202730000b2720373010093c27201c2a7e6c67201040792c172017302eb02cd7204d1ededededed938cb2db6308b2a4730300730400017305938cb27202730600018cb2720373070001918cb27202730800028cb272037309000293e4c672010407720492c17201c1a7efe6c672010561
pool_nft_index: 5
min_storage_rent_index: 2
min_storage_rent: 10000000
pool_contract_parameters:
ergo_tree_bytes: 1004040204000e20191f33f5b9f0baf6be69586b3319f818b2ebf8f562d41634ae188fe27426cfd70e20ff7619938af2c3e9ace2c0f19bbd3c8407305de85215b2f5044a96b9247bea29d801d6018cb2db6308b2a473000073010001d1ec93720173029372017303
refresh_nft_index: 2
update_nft_index: 3
@greenhat
greenhat / oracle_conf.yaml
Created December 2, 2022 09:00
testnet ERG/XAU oracle_conf.yaml
node_ip: 127.0.0.1
node_port: 9052
node_api_key: hello
base_fee: 1100000
log_level: INFO
core_api_port: 9010
oracle_address: 3Wy3BaCjGDWE3bjjZkNo3aWaMz3cYrePMFhchcKovY9uG9vhpAuW
data_point_source: NanoErgXau
data_point_source_custom_script: null
oracle_contract_parameters:
@greenhat
greenhat / bootstrap.yaml
Created December 2, 2022 08:49
Oracle pool v2 bootstrap for testnet on 2/11
oracle_contract_parameters:
ergo_tree_bytes: 100a040004000580dac409040004000e20472b4b6250655368566d597133743677397a24432646294a404d635166546a570402040204020402d804d601b2a5e4e3000400d602db63087201d603db6308a7d604e4c6a70407ea02d1ededed93b27202730000b2720373010093c27201c2a7e6c67201040792c172017302eb02cd7204d1ededededed938cb2db6308b2a4730300730400017305938cb27202730600018cb2720373070001918cb27202730800028cb272037309000293e4c672010407720492c17201c1a7efe6c672010561
pool_nft_index: 5
min_storage_rent_index: 2
min_storage_rent: 10000000
refresh_contract_parameters:
ergo_tree_bytes: 1016043c040004000e202a472d4a614e645267556b58703273357638792f423f4528482b4d625065536801000502010105000400040004020402040204080400040a05c8010e20472b4b6250655368566d597133743677397a24432646294a404d635166546a570400040404020408d80ed60199a37300d602b2a4730100d603b5a4d901036395e6c672030605eded928cc77203017201938cb2db6308720373020001730393e4c672030504e4c6720205047304d604b17203d605b0720386027305860273067307d901053c413d0563d803d607e4c68c720
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
#
# for_window [title="__focused__"] title_format "%title (%app_id)"
titlebar_padding 4 1
00:04:55.159 [DEBUG] [sway/ipc-server.c:219] Client 83 readable
00:04:55.159 [DEBUG] [sway/ipc-server.c:958] Added IPC reply of type 0x4 to client 83 queue: { "id": 1, "type": "root", "orientation": "horizontal", "percent": null, "urgent": false, "marks": [ ], "focused": false, "layout": "splith", "bor
der": "none", "current_border_width": 0, "rect": { "x": 0, "y": 0, "width": 7680, "height": 2160 }, "deco_rect": { "x": 0, "y": 0, "width": 0, "height": 0 }, "window_rect": { "x": 0, "y": 0, "width": 0, "height": 0 }, "geometry": { "x": 0,
"y": 0, "width": 0, "height": 0 }, "name": "root", "window": null, "nodes": [ { "id": 2147483647, "type": "output", "orientation": "horizontal", "percent": null, "urgent": false, "marks": [ ], "focused": false, "layout": "output", "border
": "none", "current_border_width": 0, "rect": { "x": 0, "y": 0, "width": 7680, "height": 2160 }, "deco_rect": { "x": 0, "y": 0, "width": 0, "height": 0 }, "window_rect": { "x": 0, "y": 0, "width": 0, "height": 0 }, "geometry": { "x": 0, "y
@greenhat
greenhat / tasks.json
Created March 24, 2020 16:13
VSCode test task to run bloop test
{
"version": "2.0.0",
"tasks": [
{
"type": "shell",
"label": "my tests",
"command": "bloop test [YOURPROJECT]-test --propagate",
"group": "test",
"presentation": {
"echo": true,
@greenhat
greenhat / dexCancelOrder.md
Created March 1, 2020 07:30
dex:CancelOrder output
java -jar ../target/scala-2.12/ergotool-3.1.1.jar --conf ergo_tool_config1.json dex:CancelOrder storage/secret.json "357bba87df0299ed692e3945fcf6ab88465e0dc7fff6db48957c939603ae23f0"
Storage password>
Creating prover...SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
 Ok
Loading order's box (357bba87df0299ed692e3945fcf6ab88465e0dc7fff6db48957c939603ae23f0)... Ok
Signing the transaction... Ok
Tx: {
@greenhat
greenhat / dexListMyOrders.md
Created March 1, 2020 07:26
dex:ShowMyList output
java -jar ../target/scala-2.12/ergotool-3.1.1.jar --conf ergo_tool_config1.json dex:ListMyOrders storage/secret.json
Storage password>
Creating prover...SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
 Ok
Loading seller boxes... Ok
Loading buyer boxes... Ok
Orders created with key 3WxrCKgrcmS7oPpWXgwuKNiB1JSNEmpyqaXPM1cBrXiJY1jhk4Ep :
@greenhat
greenhat / dexBuyOrder.md
Created February 27, 2020 12:35
dex:BuyOrder output
./ergo-tool dex:BuyOrder storage/secret.json 10000000 "d0105f7469be3ac90f16d943b29133f16c3bf4d85bd754656194cead849baf1e" 3 5000000
Storage password>
Creating prover...SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
 Ok
Loading unspent boxes from at address 3WxrCKgrcmS7oPpWXgwuKNiB1JSNEmpyqaXPM1cBrXiJY1jhk4Ep... Ok
Signing the transaction... Ok
Tx: {