id: id.into(),
amount: 0,
output: 1,
}],
..Default::default()
}
.encipher(),
),
..Default::default()
});
context.mine_blocks(1);
context.assert_runes(
[(
id,
RuneEntry {
etching: txid0,
rune: Rune(RUNE),
supply: u128::max_value(),
timestamp: 2,
..Default::default()
},
)],
[(
OutPoint {
txid: txid1,
vout: 1,
},
vec![(id, u128::max_value())],
)],
);
}
#[test]
fn max_limit() {
MAX_LIMIT
.checked_mul(u128::from(u16::max_value()) * 144 * 365 * 1_000_000_000)
.unwrap();
}
#[test]
fn etching_with_limit_can_be_minted() {
let context = Context::builder()
.arg("--index-runes-pre-alpha-i-agree-to-get-rekt")
.build();
context.mine_blocks(1);
let txid0 = context.rpc_server.broadcast_tx(TransactionTemplate {
inputs: &[(1, 0, 0, Witness::new())],