示例#1
0
 public TronClient(ILogger <TronClient> logger, IOptions <TronNetOptions> options, IGrpcChannelClient channelClient, IWalletClient walletClient)
 {
     _logger        = logger;
     _options       = options;
     _channelClient = channelClient;
     _walletClient  = walletClient;
 }
 public TransactionClient(IWalletClient walletClient, IOptions <TronNetOptions> options)
 {
     _walletClient = walletClient;
     _options      = options;
 }
示例#3
0
 public WalletService(IWalletClient walletClient)
 {
     _walletClient = walletClient;
 }
示例#4
0
 public TRC20ContractClient(ILogger <TRC20ContractClient> logger, IWalletClient walletClient, ITransactionClient transactionClient)
 {
     _logger            = logger;
     _walletClient      = walletClient;
     _transactionClient = transactionClient;
 }
示例#5
0
 public TRC20ContractClientTest()
 {
     _record = TronTestServiceExtension.GetTestRecord();
     _wallet = _record.ServiceProvider.GetService <IWalletClient>();
     _contractClientFactory = _record.ServiceProvider.GetService <IContractClientFactory>();
 }