-
Notifications
You must be signed in to change notification settings - Fork 100
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
31 changed files
with
1,424 additions
and
127 deletions.
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
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
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
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
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,41 @@ | ||
//go:build harness | ||
|
||
package zcl | ||
|
||
// Regnet tests expect the ZEC test harness to be running. | ||
|
||
import ( | ||
"testing" | ||
|
||
"decred.org/dcrdex/client/asset/btc/livetest" | ||
"decred.org/dcrdex/dex" | ||
dexzec "decred.org/dcrdex/dex/networks/zec" | ||
) | ||
|
||
var ( | ||
tLotSize uint64 = 1e6 | ||
tZCL = &dex.Asset{ | ||
ID: BipID, | ||
Symbol: "zcl", | ||
SwapSize: dexzec.InitTxSize, | ||
SwapSizeBase: dexzec.InitTxSizeBase, | ||
MaxFeeRate: 100, | ||
SwapConf: 1, | ||
} | ||
) | ||
|
||
func TestWallet(t *testing.T) { | ||
livetest.Run(t, &livetest.Config{ | ||
NewWallet: NewWallet, | ||
LotSize: tLotSize, | ||
Asset: tZCL, | ||
FirstWallet: &livetest.WalletName{ | ||
Node: "alpha", | ||
Filename: "alpha.conf", | ||
}, | ||
SecondWallet: &livetest.WalletName{ | ||
Node: "beta", | ||
Filename: "beta.conf", | ||
}, | ||
}) | ||
} |
Oops, something went wrong.