mirror of
https://github.com/logos-storage/logos-storage-nim-cs-dist-tests.git
synced 2026-01-07 16:03:07 +00:00
Makes testnet block explorer link format configurable in discordbot
This commit is contained in:
parent
7456f5c51a
commit
52f6941244
@ -98,9 +98,7 @@ namespace BiblioTech.Commands
|
|||||||
|
|
||||||
private string FormatTransactionLink(string transaction)
|
private string FormatTransactionLink(string transaction)
|
||||||
{
|
{
|
||||||
TODO! this needs to be configurable when we switch to devnet.
|
var url = Program.Config.TransactionLinkFormat.Replace("<ID>", transaction);
|
||||||
|
|
||||||
var url = $"https://explorer.testnet.codex.storage/tx/{transaction}";
|
|
||||||
return $"- [View on block explorer](<{url}>){Environment.NewLine}Transaction ID - `{transaction}`";
|
return $"- [View on block explorer](<{url}>){Environment.NewLine}Transaction ID - `{transaction}`";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -44,6 +44,9 @@ namespace BiblioTech
|
|||||||
[Uniform("codex-endpoint-auth", "cea", "CODEXENDPOINTAUTH", false, "Codex endpoint basic auth. Colon separated username and password. (default: empty, no auth used.)")]
|
[Uniform("codex-endpoint-auth", "cea", "CODEXENDPOINTAUTH", false, "Codex endpoint basic auth. Colon separated username and password. (default: empty, no auth used.)")]
|
||||||
public string CodexEndpointAuth { get; set; } = "";
|
public string CodexEndpointAuth { get; set; } = "";
|
||||||
|
|
||||||
|
[Uniform("transaction-link-format", "tlf", "TRANSACTIONLINKFORMAT", false, "Format of links to transactions on the blockchain. Use '<ID>' to inject the transaction ID into this string. (default 'https://explorer.testnet.codex.storage/tx/<ID>')")]
|
||||||
|
public string TransactionLinkFormat { get; set; } = "https://explorer.testnet.codex.storage/tx/<ID>";
|
||||||
|
|
||||||
#region Role Rewards
|
#region Role Rewards
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user