-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
51 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
from typing import Generator | ||
|
||
from vega_sim.null_service import VegaServiceNull | ||
|
||
|
||
PROPOSER = "PROPOSER" | ||
|
||
|
||
def vega(): | ||
vega = VegaServiceNull(use_full_vega_wallet=True) | ||
vega.start() | ||
|
||
# Create the proposal key | ||
vega.create_key(PROPOSER) | ||
vega.wait_fn(1) | ||
vega.wait_for_total_catchup() | ||
# Mint to the proposal key | ||
vega.mint(PROPOSER, vega.find_asset_id(symbol="VOTE", enabled=True), 10000) | ||
vega.wait_fn(1) | ||
vega.wait_for_total_catchup() | ||
|
||
return vega | ||
|
||
|
||
def usdt(vega: VegaServiceNull) -> str: | ||
vega.create_asset(PROPOSER, "Tether", "USDT", 6, 1000000) | ||
vega.wait_fn(1) | ||
vega.wait_for_total_catchup() | ||
return vega.find_asset_id("USDT") | ||
|
||
|
||
def futr(vega): | ||
"""Creates a simple future market""" | ||
pass | ||
|
||
|
||
def spot(vega): | ||
"""Creates a simple spot market""" | ||
pass | ||
|
||
|
||
def perp(vega): | ||
"""Creates a simple perpetual market""" | ||
pass | ||
|
||
|
||
def epoch(vega): | ||
"""Creates a simple epoch""" | ||
pass |
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