tests

package
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 1, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	//WsFullApiUrl = "wss://node.market.rudex.org"
	//WsFullApiUrl = "wss://api.bts.blckchnd.com"
	WsFullApiUrl  = "wss://bitshares.openledger.info/ws"
	WsTestApiUrl  = "wss://node.testnet.bitshares.eu/ws"
	RpcFullApiUrl = "http://localhost:8095"
	RpcTestApiUrl = "http://localhost:8094"
)

Variables

View Source
var (
	UserID1         = types.NewAccountID("1.2.282")  // xeroc user account
	UserID2         = types.NewAccountID("1.2.253")  // stan user account
	UserID3         = types.NewAccountID("1.2.0")    // committee-account user account
	UserID4         = types.NewAccountID("1.2.1751") // denkhaus user account
	AssetCNY        = types.NewAssetID("1.3.113")    // cny asset
	AssetBTS        = types.NewAssetID("1.3.0")      // bts asset
	AssetUSD        = types.NewAssetID("1.3.121")    // usd asset
	AssetTEST       = types.NewAssetID("1.3.0")      // test asset
	AssetPEGFAKEUSD = types.NewAssetID("1.3.22")     // test asset
	AssetBTC        = types.NewAssetID("1.3.103")
	AssetSILVER     = types.NewAssetID("1.3.105")
	AssetGOLD       = types.NewAssetID("1.3.106")
	AssetEUR        = types.NewAssetID("1.3.120")
	AssetOBITS      = types.NewAssetID("1.3.562")
	AssetOpenETH    = types.NewAssetID("1.3.850")
	AssetOpenLTC    = types.NewAssetID("1.3.859")
	AssetOpenBTC    = types.NewAssetID("1.3.861")
	AssetOpenSTEEM  = types.NewAssetID("1.3.973")
	AssetOpenUSDT   = types.NewAssetID("1.3.1042")
	AssetYOYOW      = types.NewAssetID("1.3.1093")
	AssetRUBEL      = types.NewAssetID("1.3.1325")
	AssetHERO       = types.NewAssetID("1.3.1362")

	SettleOrder1      = types.NewForceSettlementID("1.4.1655")        // random SettleOrder ObjectID
	CommitteeMember1  = types.NewCommitteeMemberID("1.5.15")          // random CommitteeMember ObjectID
	LimitOrder1       = types.NewLimitOrderID("1.7.75961600")         // random LimitOrder ObjectID
	CallOrder1        = types.NewCallOrderID("1.8.4582")              // random CallOrder ObjectID
	OperationHistory1 = types.NewOperationHistoryID("1.11.187698971") // random OperationHistory ObjectID
	Balance1          = types.NewBalanceID("1.15.1")                  // random Balance ObjectID
	BitAssetDataCNY   = types.NewAssetBitAssetDataID("2.4.13")        // cny bitasset data id

	TestAccount1UserName      = "denk-haus"
	TestAccount1Password      = "denkhaus-testnet"
	TestAccount1PubKeyActive  = "TEST5zzvbDtkbUVU1gFFsKqCE55U7JbjTp6mTh1usFv7KGgXL7HDQk"
	TestAccount1PrivKeyActive = "5Hx8KiHLnc3pDLkwe2jujkTTJev72n3Qx7xtyaRNBsJDuejzh9u"
	TestAccount1PubKeyOwner   = "TEST5yXqEBShUgcVm7Mve8Fg4RzQ2ftPpmo77aMbz884eX9aeGVvwD"
	TestAccount1PrivKeyOwner  = "5JyuWmopuyxFyvM9xm8fxXyujzfVnsg9cvE6z3pcib5NW1Av4rP"
	TestAccount1PubKeyMemo    = "TEST5zzvbDtkbUVU1gFFsKqCE55U7JbjTp6mTh1usFv7KGgXL7HDQk"
	TestAccount1ID            = types.NewAccountID("1.2.3464")

	TestAccount2UserName      = "denk-baum"
	TestAccount2Password      = "denkhaus-testnet"
	TestAccount2PubKeyActive  = "TEST5Z3vsgH6xj6HLXcsU38yo4TyoZs9AUzpfbaXbuxsAYPbutWvEP"
	TestAccount2PrivKeyActive = "5KRZv3ZmkcE71K9KwEKG6pV6pyufkMQgCJrCu8xKLf2y7R7J8YK"
	TestAccount2PubKeyOwner   = "TEST8Yqc82JvQfThZJLSMKdhJ1ZhsT9L58tB47ETiJQrB1yg1ygtwu"
	TestAccount2PrivKeyOwner  = "5K55UKUQicrdnNdnmfoSoW8zZNhCdkP2jcT73sLxn8tu8K2N58p"
	TestAccount2PubKeyMemo    = "TEST5Z3vsgH6xj6HLXcsU38yo4TyoZs9AUzpfbaXbuxsAYPbutWvEP"
	TestAccount2ID            = types.NewAccountID("1.2.3496")

	TestAccount3UserName      = "bs-test"
	TestAccount3Password      = "denkhaus-test"
	TestAccount3PubKeyActive  = "BTS5shffTjVoT4J8Zrj3f2mQJw4UVKrnbx5FWYhVgov45EpBf2NYi"
	TestAccount3PrivKeyActive = "5JTge2oTwFqfNPhUrrm6upheByG2VXvaXBAqWdDUvK2CsygMG3Z"
	TestAccount3PubKeyOwner   = "BTS56fy8qpkLzNoguGMPgPNkkznxnx2woEg1qPq7E6gF2SeGSRyK5"
	TestAccount3PrivKeyOwner  = "5JqmjeakPoTz3ComQ7Jgg11jHxywfkJHZPhMJoBomZLrZSfRAvr"
	TestAccount3ID            = types.NewAccountID("1.2.391614")
)

Functions

func CompareTransactions

func CompareTransactions(api bitshares.WalletAPI, tx *types.SignedTransaction, debug bool) (string, string, error)

func CreateRefTransaction

func CreateRefTransaction(t *testing.T) *types.SignedTransaction

func NewWalletTestAPI added in v0.6.0

func NewWalletTestAPI(t *testing.T, rpcEndpoint string) bitshares.WalletAPI

func NewWebsocketTestAPI added in v0.6.0

func NewWebsocketTestAPI(t *testing.T, wsAPIEndpoint string) bitshares.WebsocketAPI

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL