public SwitcheoRepositoryTests() { TestObjects objs = new TestObjects(); _address = objs.GetAddress(); _privateKey = objs.GetWIF(); _scriptHash = objs.GetScriptHash(); _repo = new SwitcheoRepository(); _repoAuth = new SwitcheoRepository(_privateKey, true); _helper = new Helper(); _dtHelper = new DateTimeHelper(); }
/// <summary> /// Constructor, with authorization /// </summary> /// <param name="loginValue">Neo public address or private key</param> /// <param name="testRegion">Boolean to use test region (default = false)</param> /// <param name="version">Contract version (default latest)</param> /// <param name="blockchain">Blockchain (default = neo)</param> public SwitcheoApiClient(string loginValue, bool testRegion = false, string version = "", Blockchain blockchain = Blockchain.neo) { _repository = new SwitcheoRepository(loginValue, testRegion, version, blockchain); }
/// <summary> /// Constructor, with authorization /// </summary> /// <param name="loginValue">Neo public address or private key</param> /// <param name="blockchain">Blockchain (neo, eth, qtum)</param> public SwitcheoApiClient(string loginValue, Blockchain blockchain) { _repository = new SwitcheoRepository(loginValue, false, "", blockchain); }
/// <summary> /// Constructor, no authorization /// </summary> /// <param name="testRegion">Boolean to use test region (default = false)</param> /// <param name="version">Contract version (default latest)</param> /// <param name="blockchain">Blockchain (default = neo)</param> public SwitcheoApiClient(bool testRegion = false, string version = "", Blockchain blockchain = Blockchain.neo) { _switcheoRepository = new SwitcheoRepository(testRegion, version, blockchain); _repository = new SwitcheoRepository(testRegion, version, blockchain); }
/// <summary> /// Constructor, no authorization /// </summary> public SwitcheoApiClient() { _switcheoRepository = new SwitcheoRepository(false); _repository = new SwitcheoRepository(false); }