Added deposit

This commit is contained in:
Aleksandr Kraiz
2022-04-22 01:27:32 +04:00
parent c2e21d8e7e
commit 945ef60a5f
9 changed files with 289 additions and 137 deletions

View File

@@ -30,7 +30,7 @@ const wallet = new Wallet(privateKey);
const orionUnit = initOrionUnit(chain, env);
// Make market swap
orionUnit
orionUnit.exchange
.swapMarket({
type: "exactSpend",
assetIn: "ORN",
@@ -153,7 +153,7 @@ orionUnit.orionAggregator.ws.subscribe(
d: swapRequestId, // generated by client
i: assetIn, // asset in
o: assetOut, // asset out
e: true, // true when type of swap is exactSpend, can be omitted (true bu default)
e: true, // true when type of swap is exactSpend, can be omitted (true by default)
a: 5.62345343, // amount
},
// Handle data update in your way