Skip to content
This repository has been archived by the owner on Aug 27, 2024. It is now read-only.

Commit

Permalink
chore(devnet): devnet setup init
Browse files Browse the repository at this point in the history
  • Loading branch information
Aman-zishan committed Jan 16, 2024
1 parent 50c3f8d commit 37863a1
Show file tree
Hide file tree
Showing 20 changed files with 620 additions and 48 deletions.
22 changes: 11 additions & 11 deletions Clarinet.simnet.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,33 +3,33 @@ name = 'taral-bank-mvp'
description = 'Taral MVP bank contracts'
authors = ["Taral team"]
telemetry = false
cache_dir = 'contracts/external'
cache_dir = 'cache'
boot_contracts = ["pox", "costs-v2"]

[contracts.trait-ownable]
path = 'simnet-contracts/trait-ownable.clar'
path = './simnet-contracts/trait-ownable.clar'
clarity_version = 2
epoch = 2.4
epoch = 2.1

[contracts.trait-sip-010]
path = 'simnet-contracts/trait-sip-010.clar'
path = './simnet-contracts/trait-sip-010.clar'
clarity_version = 2
epoch = 2.4
epoch = 2.1

[contracts.token-susdt]
path = 'simnet-contracts/token-susdt.clar'
path = './simnet-contracts/token-susdt.clar'
clarity_version = 2
epoch = 2.4
epoch = 2.1

[contracts.taral-bank-storage]
path = 'simnet-contracts/taral-bank-storage.clar'
path = './simnet-contracts/taral-bank-storage.clar'
clarity_version = 2
epoch = 2.4
epoch = 2.1

[contracts.taral-bank]
path = 'simnet-contracts/taral-bank.clar'
path = './simnet-contracts/taral-bank.clar'
clarity_version = 2
epoch = 2.4
epoch = 2.1

[repl.analysis]
passes = ['check_checker']
Expand Down
112 changes: 112 additions & 0 deletions cache/stacks-devnet-1705387029/conf/Stacks.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@

[node]
working_dir = "/devnet"
rpc_bind = "0.0.0.0:20443"
p2p_bind = "0.0.0.0:20444"
miner = true
seed = "3b68e410cc7f9b8bae76f2f2991b69ecd0627c95da22a904065dfb2a73d0585f01"
local_peer_seed = "3b68e410cc7f9b8bae76f2f2991b69ecd0627c95da22a904065dfb2a73d0585f01"
pox_sync_sample_secs = 0
wait_time_for_blocks = 0
wait_time_for_microblocks = 50
microblock_frequency = 1000

[connection_options]
# inv_sync_interval = 10
# download_interval = 10
# walk_interval = 10
disable_block_download = true
disable_inbound_handshakes = true
disable_inbound_walks = true
public_ip_address = "1.1.1.1:1234"

[miner]
first_attempt_time_ms = 500
subsequent_attempt_time_ms = 1000
block_reward_recipient = "ST3Q96TFVE6E0Q91XVX6S8RWAJW5R8XTZ8YEBM8RQ"
# microblock_attempt_time_ms = 15000

[[ustx_balance]]
address = "ST1PQHQKV0RJXZFY1DGX8MNSNYVE3VGZJSRTPGZGM"
amount = 100000000000000

[[ustx_balance]]
address = "ST1SJ3DTE5DN7X54YDH5D64R3BCB6A2AG2ZQ8YPD5"
amount = 100000000000000

[[ustx_balance]]
address = "ST2CY5V39NHDPWSXMW9QDT3HC3GD6Q6XX4CFRK9AG"
amount = 100000000000000

[[ustx_balance]]
address = "ST2JHG361ZXG51QTKY2NQCVBPPRRE2KZB1HR05NNC"
amount = 100000000000000

[[ustx_balance]]
address = "ST2NEB84ASENDXKYGJPQW86YXQCEFEX2ZQPG87ND"
amount = 100000000000000

[[ustx_balance]]
address = "ST2REHHS5J3CERCRBEPMGH7921Q6PYKAADT7JP2VB"
amount = 100000000000000

[[ustx_balance]]
address = "ST3AM1A56AK2C1XAFJ4115ZSV26EB49BVQ10MGCS0"
amount = 100000000000000

[[ustx_balance]]
address = "ST3PF13W7Z0RRM42A8VZRVFQ75SV1K26RXEP8YGKJ"
amount = 100000000000000

[[ustx_balance]]
address = "ST3NBRSFKX28FQ2ZJ1MAKX58HKHSDGNV5N7R21XCP"
amount = 100000000000000

[[ustx_balance]]
address = "STNHKEPYEPJ8ET55ZZ0M5A34J0R3N5FM2CMMMAZ6"
amount = 100000000000000

# Add orchestrator (docker-host) as an event observer
[[events_observer]]
endpoint = "host.docker.internal:20445"
retry_count = 255
include_data_events = true
events_keys = ["*"]

# Add stacks-api as an event observer
[[events_observer]]
endpoint = "stacks-api.taral-bank-mvp.devnet:3700"
retry_count = 255
include_data_events = false
events_keys = ["*"]

[burnchain]
chain = "bitcoin"
mode = "krypton"
poll_time_secs = 1
timeout = 30
peer_host = "host.docker.internal"
rpc_ssl = false
wallet_name = "devnet"
username = "devnet"
password = "devnet"
rpc_port = 20445
peer_port = 18444
pox_2_activation = 109

[[burnchain.epochs]]
epoch_name = "1.0"
start_height = 0

[[burnchain.epochs]]
epoch_name = "2.0"
start_height = 100

[[burnchain.epochs]]
epoch_name = "2.05"
start_height = 102

[[burnchain.epochs]]
epoch_name = "2.1"
start_height = 106

22 changes: 22 additions & 0 deletions cache/stacks-devnet-1705387029/conf/bitcoin.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@

server=1
regtest=1
rpcallowip=0.0.0.0/0
rpcallowip=::/0
rpcuser=devnet
rpcpassword=devnet
txindex=1
listen=1
discover=0
dns=0
dnsseed=0
listenonion=0
rpcworkqueue=100
rpcserialversion=1
disablewallet=0
fallbackfee=0.00001

[regtest]
bind=0.0.0.0:18444
rpcbind=0.0.0.0:18443
rpcport=18443
Binary file added cache/stacks-devnet-1705387029/ordinal_index.redb
Binary file not shown.
22 changes: 22 additions & 0 deletions cache/stacks-devnet-1705387634/conf/bitcoin.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@

server=1
regtest=1
rpcallowip=0.0.0.0/0
rpcallowip=::/0
rpcuser=devnet
rpcpassword=devnet
txindex=1
listen=1
discover=0
dns=0
dnsseed=0
listenonion=0
rpcworkqueue=100
rpcserialversion=1
disablewallet=0
fallbackfee=0.00001

[regtest]
bind=0.0.0.0:18444
rpcbind=0.0.0.0:18443
rpcport=18443
Binary file added cache/stacks-devnet-1705387634/ordinal_index.redb
Binary file not shown.
22 changes: 22 additions & 0 deletions cache/stacks-devnet-1705387667/conf/bitcoin.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@

server=1
regtest=1
rpcallowip=0.0.0.0/0
rpcallowip=::/0
rpcuser=devnet
rpcpassword=devnet
txindex=1
listen=1
discover=0
dns=0
dnsseed=0
listenonion=0
rpcworkqueue=100
rpcserialversion=1
disablewallet=0
fallbackfee=0.00001

[regtest]
bind=0.0.0.0:18444
rpcbind=0.0.0.0:18443
rpcport=18443
Binary file added cache/stacks-devnet-1705387667/ordinal_index.redb
Binary file not shown.
112 changes: 112 additions & 0 deletions cache/stacks-devnet-1705387737/conf/Stacks.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@

[node]
working_dir = "/devnet"
rpc_bind = "0.0.0.0:20443"
p2p_bind = "0.0.0.0:20444"
miner = true
seed = "3b68e410cc7f9b8bae76f2f2991b69ecd0627c95da22a904065dfb2a73d0585f01"
local_peer_seed = "3b68e410cc7f9b8bae76f2f2991b69ecd0627c95da22a904065dfb2a73d0585f01"
pox_sync_sample_secs = 0
wait_time_for_blocks = 0
wait_time_for_microblocks = 50
microblock_frequency = 1000

[connection_options]
# inv_sync_interval = 10
# download_interval = 10
# walk_interval = 10
disable_block_download = true
disable_inbound_handshakes = true
disable_inbound_walks = true
public_ip_address = "1.1.1.1:1234"

[miner]
first_attempt_time_ms = 500
subsequent_attempt_time_ms = 1000
block_reward_recipient = "ST3Q96TFVE6E0Q91XVX6S8RWAJW5R8XTZ8YEBM8RQ"
# microblock_attempt_time_ms = 15000

[[ustx_balance]]
address = "ST1PQHQKV0RJXZFY1DGX8MNSNYVE3VGZJSRTPGZGM"
amount = 100000000000000

[[ustx_balance]]
address = "ST1SJ3DTE5DN7X54YDH5D64R3BCB6A2AG2ZQ8YPD5"
amount = 100000000000000

[[ustx_balance]]
address = "ST2CY5V39NHDPWSXMW9QDT3HC3GD6Q6XX4CFRK9AG"
amount = 100000000000000

[[ustx_balance]]
address = "ST2JHG361ZXG51QTKY2NQCVBPPRRE2KZB1HR05NNC"
amount = 100000000000000

[[ustx_balance]]
address = "ST2NEB84ASENDXKYGJPQW86YXQCEFEX2ZQPG87ND"
amount = 100000000000000

[[ustx_balance]]
address = "ST2REHHS5J3CERCRBEPMGH7921Q6PYKAADT7JP2VB"
amount = 100000000000000

[[ustx_balance]]
address = "ST3AM1A56AK2C1XAFJ4115ZSV26EB49BVQ10MGCS0"
amount = 100000000000000

[[ustx_balance]]
address = "ST3PF13W7Z0RRM42A8VZRVFQ75SV1K26RXEP8YGKJ"
amount = 100000000000000

[[ustx_balance]]
address = "ST3NBRSFKX28FQ2ZJ1MAKX58HKHSDGNV5N7R21XCP"
amount = 100000000000000

[[ustx_balance]]
address = "STNHKEPYEPJ8ET55ZZ0M5A34J0R3N5FM2CMMMAZ6"
amount = 100000000000000

# Add orchestrator (docker-host) as an event observer
[[events_observer]]
endpoint = "host.docker.internal:20445"
retry_count = 255
include_data_events = true
events_keys = ["*"]

# Add stacks-api as an event observer
[[events_observer]]
endpoint = "stacks-api.taral-bank-mvp.devnet:3700"
retry_count = 255
include_data_events = false
events_keys = ["*"]

[burnchain]
chain = "bitcoin"
mode = "krypton"
poll_time_secs = 1
timeout = 30
peer_host = "host.docker.internal"
rpc_ssl = false
wallet_name = "devnet"
username = "devnet"
password = "devnet"
rpc_port = 20445
peer_port = 18444
pox_2_activation = 109

[[burnchain.epochs]]
epoch_name = "1.0"
start_height = 0

[[burnchain.epochs]]
epoch_name = "2.0"
start_height = 100

[[burnchain.epochs]]
epoch_name = "2.05"
start_height = 102

[[burnchain.epochs]]
epoch_name = "2.1"
start_height = 106

22 changes: 22 additions & 0 deletions cache/stacks-devnet-1705387737/conf/bitcoin.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@

server=1
regtest=1
rpcallowip=0.0.0.0/0
rpcallowip=::/0
rpcuser=devnet
rpcpassword=devnet
txindex=1
listen=1
discover=0
dns=0
dnsseed=0
listenonion=0
rpcworkqueue=100
rpcserialversion=1
disablewallet=0
fallbackfee=0.00001

[regtest]
bind=0.0.0.0:18444
rpcbind=0.0.0.0:18443
rpcport=18443
Binary file added cache/stacks-devnet-1705387737/ordinal_index.redb
Binary file not shown.
Loading

0 comments on commit 37863a1

Please sign in to comment.