コード例 #1
0
        public async Task CreateWalletAsync(WalletInfo walletInfo)
        {
            var existingWallet = await _walletRepo.GetWhereAsync(new List <WhereClause>
            {
                new WhereClause(nameof(WalletInfo.Location), "=", walletInfo.Location, "OR"),
                new WhereClause(nameof(WalletInfo.Name), "=", walletInfo.Name)
            });

            await _walletRepo.CreateAsync(walletInfo);
        }
コード例 #2
0
 public static string BuildConf(this WalletInfo info)
 {
     return($@"rpcuser={info.RpcUsername}
               rpcpassword={info.RpcPassword}
               rpcallowip=127.0.0.1");
 }