示例#1
0
        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();
        }
示例#2
0
 /// <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);
 }
示例#3
0
 /// <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);
 }
示例#4
0
 /// <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);
 }
示例#5
0
 /// <summary>
 /// Constructor, no authorization
 /// </summary>
 public SwitcheoApiClient()
 {
     _switcheoRepository = new SwitcheoRepository(false);
     _repository         = new SwitcheoRepository(false);
 }