feat: improve naming
Ref: EX-1124
Ref: EX-1124
sourceTxId: i.sourceTxHash,
value: Currency.Util.lovelacesToAda(i.value),
tokens: i.tokens
.filter((i) => i.assetName !== 'ada')
.filter(({ assetName }) => assetName !== 'ada')
.map((t) => ({
...t,
assetName: t.assetName || '-',
...i,
value: Currency.Util.lovelacesToAda(i.value),
tokens: i.tokens
.filter((i) => i.assetName !== 'ada')
.filter(({ assetName }) => assetName !== 'ada')
.map((t) => ({
...t,
assetName: t.assetName || '-',
tx.mint
?.filter((m) => m.quantity > '0')
.map((i) => ({
quantity: i.quantity || '-',
...i,
assetName: i.assetName || '-',
})) || [],
burn:
tx.mint
?.filter((m) => m.quantity < '0')
.map((i) => ({
quantity: i.quantity.substring(1) || '-',
quantity: i.quantity.substring(1),
assetName: i.assetName || '-',
})) || [],
});
const TokenList = (props: { tokens: IToken[]; value: string }) => (
<div className={styles.tokenList}>
{/* use "ada" asset instead of input/output value? */}
<div className={styles.amount}>{props.value} ADA</div>
{props.tokens.map((t) => (
<span className={styles.token}>{`${t.quantity} ${t.assetName}`}</span>
</LocalizedLink>
)}
{isEmpty(io.tokens) ? (
//use "ada" asset instead of input/output value?
<div className={styles.amount}>{io.value} ADA</div>
) : (
<TokenList tokens={io.tokens!} value={io.value} />
</div>
{/* ===== MINTED TOKENS ===== */}
{!isEmpty(props.mint) && (
<div className={classnames([styles.idRow, styles.row])}>
<div className={styles.label}>
)}
{/* ===== BURNED TOKENS ===== */}
{!isEmpty(props.burn) && (
<div className={classnames([styles.idRow, styles.row])}>
<div className={styles.label}>
db: Improve the way database inserts are done
2930: Add a self-issued predicate to the Consensus interface r=nfrisby a=nfrisby Fixes #2926. Co-authored-by: Nicolas Frisby <[email protected]>
This new component of the Consensus API satisfies Issue 2926 by providing a predicate for the new node metric that monitors forged blocks that didn't end up on the chain. See CAD-2371.
The old insert, for the most common case, required two round trips for a database insert. This has been reduced to a single trip. Closes: https://github.com/input-output-hk/cardano-db-sync/issues/529
* Consolidate tmp storage between scripts Utilize a common TMP_DIR set in `env` as base dir for temporary files. Scripts may create sub-folders to TMP_DIR(default /tmp/cnode) for further separation. TIMEOUT_LEDGER_STATE set in both cntools and cncli moved to env * Remove leading / from ${TMP_DIR} usage already defined in variable Co-authored-by: Priyank <[email protected]>
* github workflows * nix