Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/Makefile.version
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ APPVERSION_M=1
# Minor
APPVERSION_N=2
# Patch
APPVERSION_P=5
APPVERSION_P=6
155 changes: 142 additions & 13 deletions app/rust/src/parser/transactions/pvm/base_tx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ use crate::{
handlers::handle_ui_message,
parser::{
nano_avax_to_fp_str, BaseTxFields, DisplayableItem, FromBytes, Header, ParserError,
PvmOutput, MAX_ADDRESS_ENCODED_LEN, PVM_BASE_TX, PVM_BASE_TX_TRANSFER, U64_FORMATTED_SIZE
PvmOutput, MAX_ADDRESS_ENCODED_LEN, PVM_BASE_TX, PVM_BASE_TX_TRANSFER, U64_FORMATTED_SIZE,
},
};

Expand Down Expand Up @@ -79,7 +79,6 @@ impl DisplayableItem for PvmBaseTx<'_> {
message: &mut [u8],
page: u8,
) -> Result<u8, zemu_sys::ViewError> {

if item_n == 0 {
// render export title and network info
return self.render_description(title, message, page);
Expand Down Expand Up @@ -143,24 +142,20 @@ impl<'b> PvmBaseTx<'b> {
.base_output_with_item(item_n)
.map_err(|_| ViewError::NoData)?;

// BaseTx only supports secp_transfer types similar to import/exports?
let obj = (*obj).secp_transfer().ok_or(ViewError::NoData)?;
// BaseTx only supports secp_transfer types similar to import/exports
let _ = obj.output.secp_transfer().ok_or(ViewError::NoData)?;

// get the number of items for the obj wrapped up by PvmOutput
let num_inner_items = obj.num_items()?;
let num_inner_items = obj.output.num_inner_items()?;

// do a custom rendering of the first base_output_items
match obj_item_n {
0 => {
// render amount
obj.render_item(0, title, message, page)
}
// address rendering, according to avax team 99.99% of transactions only comes with one
// address, but we support rendering any
// For the first item (title), use PvmOutput's render_item
0 => obj.render_item(obj_item_n, title, message, page),
// For address items, handle encoding here
x @ 1.. if x < num_inner_items => {
// get the address index
let address_idx = x - 1;
let address = obj
.output
.get_address_at(address_idx as usize)
.ok_or(ViewError::NoData)?;
// render encoded address with proper hrp,
Expand All @@ -176,6 +171,8 @@ impl<'b> PvmBaseTx<'b> {

handle_ui_message(&encoded[..addr_len], message, page)
}
// For locked output info, use PvmOutput's render_item
x if x == num_inner_items => obj.render_item(obj_item_n, title, message, page),
_ => Err(ViewError::NoData),
}
}
Expand All @@ -184,6 +181,10 @@ impl<'b> PvmBaseTx<'b> {
#[cfg(test)]
mod tests {
use super::*;
use std::prelude::v1::*;

use crate::parser::snapshots_common::ReducedPage;
use zuit::Page;

const DATA: &[u8] = &[
0, 0, 0, 0, 0, 12, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
Expand All @@ -198,6 +199,112 @@ mod tests {
0, 0, 0, 238, 107, 40, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0,
];

// Transfer reference https://subnets.avax.network/p-chain/tx/2JLx1jintuSGJwEvQZZQk248S1rtzGk2V4xrPjjoKufF9oLX9Z
const DATA_LOCKED: &[u8] = &[
0, 0, 0, 34, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 24, 33, 230, 115, 23, 203, 196, 190, 42, 235, 0,
103, 122, 214, 70, 39, 120, 168, 245, 34, 116, 185, 214, 5, 223, 37, 145, 178, 48, 39, 168,
125, 255, 0, 0, 0, 7, 0, 0, 0, 0, 174, 9, 196, 118, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0,
0, 0, 1, 48, 8, 21, 124, 58, 182, 56, 173, 88, 219, 90, 246, 128, 254, 197, 82, 165, 58,
190, 174, 33, 230, 115, 23, 203, 196, 190, 42, 235, 0, 103, 122, 214, 70, 39, 120, 168,
245, 34, 116, 185, 214, 5, 223, 37, 145, 178, 48, 39, 168, 125, 255, 0, 0, 0, 22, 0, 0, 0,
0, 0, 0, 0, 1, 0, 0, 0, 7, 0, 0, 0, 0, 59, 154, 202, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1,
0, 0, 0, 1, 73, 8, 236, 115, 188, 94, 69, 220, 141, 93, 156, 54, 132, 95, 180, 55, 56, 137,
46, 10, 33, 230, 115, 23, 203, 196, 190, 42, 235, 0, 103, 122, 214, 70, 39, 120, 168, 245,
34, 116, 185, 214, 5, 223, 37, 145, 178, 48, 39, 168, 125, 255, 0, 0, 0, 22, 0, 0, 0, 0, 0,
0, 0, 1, 0, 0, 0, 7, 0, 0, 0, 0, 59, 154, 202, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0,
0, 1, 73, 8, 236, 115, 188, 94, 69, 220, 141, 93, 156, 54, 132, 95, 180, 55, 56, 137, 46,
10, 33, 230, 115, 23, 203, 196, 190, 42, 235, 0, 103, 122, 214, 70, 39, 120, 168, 245, 34,
116, 185, 214, 5, 223, 37, 145, 178, 48, 39, 168, 125, 255, 0, 0, 0, 22, 0, 0, 0, 0, 0, 0,
0, 1, 0, 0, 0, 7, 0, 0, 0, 0, 59, 154, 202, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0,
1, 73, 8, 236, 115, 188, 94, 69, 220, 141, 93, 156, 54, 132, 95, 180, 55, 56, 137, 46, 10,
33, 230, 115, 23, 203, 196, 190, 42, 235, 0, 103, 122, 214, 70, 39, 120, 168, 245, 34, 116,
185, 214, 5, 223, 37, 145, 178, 48, 39, 168, 125, 255, 0, 0, 0, 22, 0, 0, 0, 0, 0, 0, 0, 1,
0, 0, 0, 7, 0, 0, 0, 0, 59, 154, 202, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1,
73, 8, 236, 115, 188, 94, 69, 220, 141, 93, 156, 54, 132, 95, 180, 55, 56, 137, 46, 10, 33,
230, 115, 23, 203, 196, 190, 42, 235, 0, 103, 122, 214, 70, 39, 120, 168, 245, 34, 116,
185, 214, 5, 223, 37, 145, 178, 48, 39, 168, 125, 255, 0, 0, 0, 22, 0, 0, 0, 0, 0, 0, 0, 1,
0, 0, 0, 7, 0, 0, 0, 0, 59, 154, 202, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1,
73, 8, 236, 115, 188, 94, 69, 220, 141, 93, 156, 54, 132, 95, 180, 55, 56, 137, 46, 10, 33,
230, 115, 23, 203, 196, 190, 42, 235, 0, 103, 122, 214, 70, 39, 120, 168, 245, 34, 116,
185, 214, 5, 223, 37, 145, 178, 48, 39, 168, 125, 255, 0, 0, 0, 22, 0, 0, 0, 0, 0, 0, 0, 1,
0, 0, 0, 7, 0, 0, 0, 0, 59, 154, 202, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1,
73, 8, 236, 115, 188, 94, 69, 220, 141, 93, 156, 54, 132, 95, 180, 55, 56, 137, 46, 10, 33,
230, 115, 23, 203, 196, 190, 42, 235, 0, 103, 122, 214, 70, 39, 120, 168, 245, 34, 116,
185, 214, 5, 223, 37, 145, 178, 48, 39, 168, 125, 255, 0, 0, 0, 22, 0, 0, 0, 0, 0, 0, 0, 1,
0, 0, 0, 7, 0, 0, 0, 0, 59, 154, 202, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1,
73, 8, 236, 115, 188, 94, 69, 220, 141, 93, 156, 54, 132, 95, 180, 55, 56, 137, 46, 10, 33,
230, 115, 23, 203, 196, 190, 42, 235, 0, 103, 122, 214, 70, 39, 120, 168, 245, 34, 116,
185, 214, 5, 223, 37, 145, 178, 48, 39, 168, 125, 255, 0, 0, 0, 22, 0, 0, 0, 0, 0, 0, 0, 1,
0, 0, 0, 7, 0, 0, 0, 0, 59, 154, 202, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1,
73, 8, 236, 115, 188, 94, 69, 220, 141, 93, 156, 54, 132, 95, 180, 55, 56, 137, 46, 10, 33,
230, 115, 23, 203, 196, 190, 42, 235, 0, 103, 122, 214, 70, 39, 120, 168, 245, 34, 116,
185, 214, 5, 223, 37, 145, 178, 48, 39, 168, 125, 255, 0, 0, 0, 22, 0, 0, 0, 0, 0, 0, 0, 1,
0, 0, 0, 7, 0, 0, 0, 0, 59, 154, 202, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1,
73, 8, 236, 115, 188, 94, 69, 220, 141, 93, 156, 54, 132, 95, 180, 55, 56, 137, 46, 10, 33,
230, 115, 23, 203, 196, 190, 42, 235, 0, 103, 122, 214, 70, 39, 120, 168, 245, 34, 116,
185, 214, 5, 223, 37, 145, 178, 48, 39, 168, 125, 255, 0, 0, 0, 22, 0, 0, 0, 0, 0, 0, 0, 1,
0, 0, 0, 7, 0, 0, 0, 0, 59, 154, 202, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1,
73, 8, 236, 115, 188, 94, 69, 220, 141, 93, 156, 54, 132, 95, 180, 55, 56, 137, 46, 10, 33,
230, 115, 23, 203, 196, 190, 42, 235, 0, 103, 122, 214, 70, 39, 120, 168, 245, 34, 116,
185, 214, 5, 223, 37, 145, 178, 48, 39, 168, 125, 255, 0, 0, 0, 22, 0, 0, 0, 0, 0, 0, 0, 1,
0, 0, 0, 7, 0, 0, 0, 0, 59, 154, 202, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1,
73, 8, 236, 115, 188, 94, 69, 220, 141, 93, 156, 54, 132, 95, 180, 55, 56, 137, 46, 10, 33,
230, 115, 23, 203, 196, 190, 42, 235, 0, 103, 122, 214, 70, 39, 120, 168, 245, 34, 116,
185, 214, 5, 223, 37, 145, 178, 48, 39, 168, 125, 255, 0, 0, 0, 22, 0, 0, 0, 0, 0, 0, 0, 1,
0, 0, 0, 7, 0, 0, 0, 0, 59, 154, 202, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1,
73, 8, 236, 115, 188, 94, 69, 220, 141, 93, 156, 54, 132, 95, 180, 55, 56, 137, 46, 10, 33,
230, 115, 23, 203, 196, 190, 42, 235, 0, 103, 122, 214, 70, 39, 120, 168, 245, 34, 116,
185, 214, 5, 223, 37, 145, 178, 48, 39, 168, 125, 255, 0, 0, 0, 22, 0, 0, 0, 0, 0, 0, 0, 1,
0, 0, 0, 7, 0, 0, 0, 0, 59, 154, 202, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1,
73, 8, 236, 115, 188, 94, 69, 220, 141, 93, 156, 54, 132, 95, 180, 55, 56, 137, 46, 10, 33,
230, 115, 23, 203, 196, 190, 42, 235, 0, 103, 122, 214, 70, 39, 120, 168, 245, 34, 116,
185, 214, 5, 223, 37, 145, 178, 48, 39, 168, 125, 255, 0, 0, 0, 22, 0, 0, 0, 0, 0, 0, 0, 1,
0, 0, 0, 7, 0, 0, 0, 0, 59, 154, 202, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1,
73, 8, 236, 115, 188, 94, 69, 220, 141, 93, 156, 54, 132, 95, 180, 55, 56, 137, 46, 10, 33,
230, 115, 23, 203, 196, 190, 42, 235, 0, 103, 122, 214, 70, 39, 120, 168, 245, 34, 116,
185, 214, 5, 223, 37, 145, 178, 48, 39, 168, 125, 255, 0, 0, 0, 22, 0, 0, 0, 0, 0, 0, 0, 1,
0, 0, 0, 7, 0, 0, 0, 0, 59, 154, 202, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1,
73, 8, 236, 115, 188, 94, 69, 220, 141, 93, 156, 54, 132, 95, 180, 55, 56, 137, 46, 10, 33,
230, 115, 23, 203, 196, 190, 42, 235, 0, 103, 122, 214, 70, 39, 120, 168, 245, 34, 116,
185, 214, 5, 223, 37, 145, 178, 48, 39, 168, 125, 255, 0, 0, 0, 22, 0, 0, 0, 0, 0, 0, 0, 1,
0, 0, 0, 7, 0, 0, 0, 0, 59, 154, 202, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1,
73, 8, 236, 115, 188, 94, 69, 220, 141, 93, 156, 54, 132, 95, 180, 55, 56, 137, 46, 10, 33,
230, 115, 23, 203, 196, 190, 42, 235, 0, 103, 122, 214, 70, 39, 120, 168, 245, 34, 116,
185, 214, 5, 223, 37, 145, 178, 48, 39, 168, 125, 255, 0, 0, 0, 22, 0, 0, 0, 0, 0, 0, 0, 1,
0, 0, 0, 7, 0, 0, 0, 0, 59, 154, 202, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1,
73, 8, 236, 115, 188, 94, 69, 220, 141, 93, 156, 54, 132, 95, 180, 55, 56, 137, 46, 10, 33,
230, 115, 23, 203, 196, 190, 42, 235, 0, 103, 122, 214, 70, 39, 120, 168, 245, 34, 116,
185, 214, 5, 223, 37, 145, 178, 48, 39, 168, 125, 255, 0, 0, 0, 22, 0, 0, 0, 0, 0, 0, 0, 1,
0, 0, 0, 7, 0, 0, 0, 0, 59, 154, 202, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1,
73, 8, 236, 115, 188, 94, 69, 220, 141, 93, 156, 54, 132, 95, 180, 55, 56, 137, 46, 10, 33,
230, 115, 23, 203, 196, 190, 42, 235, 0, 103, 122, 214, 70, 39, 120, 168, 245, 34, 116,
185, 214, 5, 223, 37, 145, 178, 48, 39, 168, 125, 255, 0, 0, 0, 22, 0, 0, 0, 0, 0, 0, 0, 1,
0, 0, 0, 7, 0, 0, 0, 0, 59, 154, 202, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1,
73, 8, 236, 115, 188, 94, 69, 220, 141, 93, 156, 54, 132, 95, 180, 55, 56, 137, 46, 10, 33,
230, 115, 23, 203, 196, 190, 42, 235, 0, 103, 122, 214, 70, 39, 120, 168, 245, 34, 116,
185, 214, 5, 223, 37, 145, 178, 48, 39, 168, 125, 255, 0, 0, 0, 22, 0, 0, 0, 0, 0, 0, 0, 1,
0, 0, 0, 7, 0, 0, 0, 0, 59, 154, 202, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1,
73, 8, 236, 115, 188, 94, 69, 220, 141, 93, 156, 54, 132, 95, 180, 55, 56, 137, 46, 10, 33,
230, 115, 23, 203, 196, 190, 42, 235, 0, 103, 122, 214, 70, 39, 120, 168, 245, 34, 116,
185, 214, 5, 223, 37, 145, 178, 48, 39, 168, 125, 255, 0, 0, 0, 22, 0, 0, 0, 0, 0, 0, 0, 1,
0, 0, 0, 7, 0, 0, 0, 0, 59, 154, 202, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1,
73, 8, 236, 115, 188, 94, 69, 220, 141, 93, 156, 54, 132, 95, 180, 55, 56, 137, 46, 10, 33,
230, 115, 23, 203, 196, 190, 42, 235, 0, 103, 122, 214, 70, 39, 120, 168, 245, 34, 116,
185, 214, 5, 223, 37, 145, 178, 48, 39, 168, 125, 255, 0, 0, 0, 22, 0, 0, 0, 0, 0, 0, 0, 1,
0, 0, 0, 7, 0, 0, 0, 0, 59, 154, 202, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1,
73, 8, 236, 115, 188, 94, 69, 220, 141, 93, 156, 54, 132, 95, 180, 55, 56, 137, 46, 10, 33,
230, 115, 23, 203, 196, 190, 42, 235, 0, 103, 122, 214, 70, 39, 120, 168, 245, 34, 116,
185, 214, 5, 223, 37, 145, 178, 48, 39, 168, 125, 255, 0, 0, 0, 22, 0, 0, 0, 0, 0, 0, 0, 1,
0, 0, 0, 7, 0, 0, 0, 0, 59, 154, 202, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1,
73, 8, 236, 115, 188, 94, 69, 220, 141, 93, 156, 54, 132, 95, 180, 55, 56, 137, 46, 10, 0,
0, 0, 1, 68, 228, 213, 25, 55, 221, 41, 64, 91, 122, 130, 247, 80, 248, 192, 121, 125, 238,
59, 68, 88, 116, 235, 90, 107, 37, 252, 196, 15, 171, 33, 0, 0, 0, 0, 0, 33, 230, 115, 23,
203, 196, 190, 42, 235, 0, 103, 122, 214, 70, 39, 120, 168, 245, 34, 116, 185, 214, 5, 223,
37, 145, 178, 48, 39, 168, 125, 255, 0, 0, 0, 5, 0, 0, 0, 6, 8, 243, 64, 211, 0, 0, 0, 1,
0, 0, 0, 0, 0, 0, 0, 0, //29, 148, 191, 172,
];

#[test]
fn parse_pvm_base_tx() {
let (rem, tx) = PvmBaseTx::from_bytes(DATA).unwrap();
Expand All @@ -215,4 +322,26 @@ mod tests {
let fee = tx.fee().unwrap();
assert_eq!(fee, 1000000);
}

#[test]
fn parse_pvm_base_tx_locked() {
println!("-------------------- Base TX Locked ------------------------");

let (_, tx) = PvmBaseTx::from_bytes(DATA_LOCKED).unwrap();

let items = tx.num_items().expect("Overflow?");

let mut pages = Vec::<Page<18, 1024>>::with_capacity(items as usize);
for i in 0..items {
let mut page = Page::default();

tx.render_item(i as _, &mut page.title, &mut page.message, 0)
.unwrap();

pages.push(page);
}

let reduced = pages.iter().map(ReducedPage::from).collect::<Vec<_>>();
insta::assert_debug_snapshot!(reduced);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
---
source: src/parser/transactions/pvm/base_tx.rs
assertion_line: 341
expression: reduced
---
[
"P-Chain": "BaseTx",
"Amount": "2.919875702 AVAX to ",
"Address": "avax1xqyp2lp6kcu26kxmttmgplk922jn404w9wtr75",
"Amount": "1 AVAX to ",
"Address": "avax1fyywcuautezaer2ansmggha5xuugjts2pmnyga",
"Funds locked": "1 AVAX until 1970-01-01 00:00:01 UTC",
"Amount": "1 AVAX to ",
"Address": "avax1fyywcuautezaer2ansmggha5xuugjts2pmnyga",
"Funds locked": "1 AVAX until 1970-01-01 00:00:01 UTC",
"Amount": "1 AVAX to ",
"Address": "avax1fyywcuautezaer2ansmggha5xuugjts2pmnyga",
"Funds locked": "1 AVAX until 1970-01-01 00:00:01 UTC",
"Amount": "1 AVAX to ",
"Address": "avax1fyywcuautezaer2ansmggha5xuugjts2pmnyga",
"Funds locked": "1 AVAX until 1970-01-01 00:00:01 UTC",
"Amount": "1 AVAX to ",
"Address": "avax1fyywcuautezaer2ansmggha5xuugjts2pmnyga",
"Funds locked": "1 AVAX until 1970-01-01 00:00:01 UTC",
"Amount": "1 AVAX to ",
"Address": "avax1fyywcuautezaer2ansmggha5xuugjts2pmnyga",
"Funds locked": "1 AVAX until 1970-01-01 00:00:01 UTC",
"Amount": "1 AVAX to ",
"Address": "avax1fyywcuautezaer2ansmggha5xuugjts2pmnyga",
"Funds locked": "1 AVAX until 1970-01-01 00:00:01 UTC",
"Amount": "1 AVAX to ",
"Address": "avax1fyywcuautezaer2ansmggha5xuugjts2pmnyga",
"Funds locked": "1 AVAX until 1970-01-01 00:00:01 UTC",
"Amount": "1 AVAX to ",
"Address": "avax1fyywcuautezaer2ansmggha5xuugjts2pmnyga",
"Funds locked": "1 AVAX until 1970-01-01 00:00:01 UTC",
"Amount": "1 AVAX to ",
"Address": "avax1fyywcuautezaer2ansmggha5xuugjts2pmnyga",
"Funds locked": "1 AVAX until 1970-01-01 00:00:01 UTC",
"Amount": "1 AVAX to ",
"Address": "avax1fyywcuautezaer2ansmggha5xuugjts2pmnyga",
"Funds locked": "1 AVAX until 1970-01-01 00:00:01 UTC",
"Amount": "1 AVAX to ",
"Address": "avax1fyywcuautezaer2ansmggha5xuugjts2pmnyga",
"Funds locked": "1 AVAX until 1970-01-01 00:00:01 UTC",
"Amount": "1 AVAX to ",
"Address": "avax1fyywcuautezaer2ansmggha5xuugjts2pmnyga",
"Funds locked": "1 AVAX until 1970-01-01 00:00:01 UTC",
"Amount": "1 AVAX to ",
"Address": "avax1fyywcuautezaer2ansmggha5xuugjts2pmnyga",
"Funds locked": "1 AVAX until 1970-01-01 00:00:01 UTC",
"Amount": "1 AVAX to ",
"Address": "avax1fyywcuautezaer2ansmggha5xuugjts2pmnyga",
"Funds locked": "1 AVAX until 1970-01-01 00:00:01 UTC",
"Amount": "1 AVAX to ",
"Address": "avax1fyywcuautezaer2ansmggha5xuugjts2pmnyga",
"Funds locked": "1 AVAX until 1970-01-01 00:00:01 UTC",
"Amount": "1 AVAX to ",
"Address": "avax1fyywcuautezaer2ansmggha5xuugjts2pmnyga",
"Funds locked": "1 AVAX until 1970-01-01 00:00:01 UTC",
"Amount": "1 AVAX to ",
"Address": "avax1fyywcuautezaer2ansmggha5xuugjts2pmnyga",
"Funds locked": "1 AVAX until 1970-01-01 00:00:01 UTC",
"Amount": "1 AVAX to ",
"Address": "avax1fyywcuautezaer2ansmggha5xuugjts2pmnyga",
"Funds locked": "1 AVAX until 1970-01-01 00:00:01 UTC",
"Amount": "1 AVAX to ",
"Address": "avax1fyywcuautezaer2ansmggha5xuugjts2pmnyga",
"Funds locked": "1 AVAX until 1970-01-01 00:00:01 UTC",
"Amount": "1 AVAX to ",
"Address": "avax1fyywcuautezaer2ansmggha5xuugjts2pmnyga",
"Funds locked": "1 AVAX until 1970-01-01 00:00:01 UTC",
"Amount": "1 AVAX to ",
"Address": "avax1fyywcuautezaer2ansmggha5xuugjts2pmnyga",
"Funds locked": "1 AVAX until 1970-01-01 00:00:01 UTC",
"Amount": "1 AVAX to ",
"Address": "avax1fyywcuautezaer2ansmggha5xuugjts2pmnyga",
"Funds locked": "1 AVAX until 1970-01-01 00:00:01 UTC",
"Fee(AVAX)": "0.000087645",
]
20 changes: 10 additions & 10 deletions tests_zemu/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
},
"dependencies": {
"@ethersproject/wallet": "^5.8.0",
"@types/node": "^22.13.14",
"@types/node": "^22.14.1",
"@zondax/ledger-avalanche-app": "link:../js",
"@zondax/zemu": "0.55.3",
"ethers": "^6.13.5"
Expand All @@ -27,34 +27,34 @@
"@ethereumjs/rlp": "^5.0.2",
"@ethereumjs/tx": "^5.4.0",
"@ethereumjs/util": "^9.1.0",
"@ledgerhq/hw-app-eth": "6.43.1",
"@ledgerhq/hw-app-eth": "6.45.2",
"@ledgerhq/hw-transport-node-hid": "^6.29.5",
"@ledgerhq/logs": "^6.12.0",
"@matteoh2o1999/github-actions-jest-reporter": "^3.0.0",
"@types/bs58": "^4.0.4",
"@types/bs58": "^5.0.0",
"@types/elliptic": "^6.4.18",
"@types/jest": "^29.5.14",
"@types/ledgerhq__hw-transport": "^6.0.0",
"@typescript-eslint/eslint-plugin": "^8.28.0",
"@typescript-eslint/parser": "^8.28.0",
"@typescript-eslint/eslint-plugin": "^8.31.0",
"@typescript-eslint/parser": "^8.31.0",
"bn.js": "^5.2.1",
"bs58": "^6.0.0",
"crypto-js": "4.2.0",
"ed25519-supercop": "^2.0.1",
"elliptic": "^6.6.1",
"eslint": "^9.23.0",
"eslint-config-prettier": "^10.1.1",
"eslint": "^9.25.1",
"eslint-config-prettier": "^10.1.2",
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-jest": "^28.11.0",
"eslint-plugin-prettier": "^5.2.5",
"eslint-plugin-prettier": "^5.2.6",
"jest": "^29.7.0",
"jest-serial-runner": "^1.2.1",
"js-sha256": "0.11.0",
"jssha": "^3.3.1",
"prettier": "^3.5.3",
"secp256k1": "^5.0.1",
"ts-jest": "^29.3.0",
"ts-jest": "^29.3.2",
"ts-node": "^10.9.2",
"typescript": "^5.8.2"
"typescript": "^5.8.3"
}
}
Binary file modified tests_zemu/snapshots/fl-mainmenu/00004.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/sp-mainmenu/00004.png
Binary file modified tests_zemu/snapshots/sp-mainmenu/00010.png
Binary file modified tests_zemu/snapshots/st-mainmenu/00004.png
Binary file modified tests_zemu/snapshots/x-mainmenu/00004.png
Binary file modified tests_zemu/snapshots/x-mainmenu/00010.png
Binary file added tests_zemu/snapshots/x-sign-base_tx_locked/00000.png
Binary file added tests_zemu/snapshots/x-sign-base_tx_locked/00001.png
Binary file added tests_zemu/snapshots/x-sign-base_tx_locked/00002.png
Binary file added tests_zemu/snapshots/x-sign-base_tx_locked/00003.png
Binary file added tests_zemu/snapshots/x-sign-base_tx_locked/00004.png
Binary file added tests_zemu/snapshots/x-sign-base_tx_locked/00005.png
Binary file added tests_zemu/snapshots/x-sign-base_tx_locked/00006.png
Binary file added tests_zemu/snapshots/x-sign-base_tx_locked/00007.png
Binary file added tests_zemu/snapshots/x-sign-base_tx_locked/00008.png
Binary file added tests_zemu/snapshots/x-sign-base_tx_locked/00009.png
Binary file added tests_zemu/snapshots/x-sign-base_tx_locked/00010.png
Binary file added tests_zemu/snapshots/x-sign-base_tx_locked/00011.png
Binary file added tests_zemu/snapshots/x-sign-base_tx_locked/00012.png
Binary file added tests_zemu/snapshots/x-sign-base_tx_locked/00013.png
Binary file added tests_zemu/snapshots/x-sign-base_tx_locked/00014.png
Binary file added tests_zemu/snapshots/x-sign-base_tx_locked/00015.png
Binary file added tests_zemu/snapshots/x-sign-base_tx_locked/00016.png
Binary file added tests_zemu/snapshots/x-sign-base_tx_locked/00017.png
Binary file added tests_zemu/snapshots/x-sign-base_tx_locked/00018.png
Binary file added tests_zemu/snapshots/x-sign-base_tx_locked/00019.png
Binary file added tests_zemu/snapshots/x-sign-base_tx_locked/00020.png
Binary file added tests_zemu/snapshots/x-sign-base_tx_locked/00021.png
Binary file added tests_zemu/snapshots/x-sign-base_tx_locked/00022.png
Binary file added tests_zemu/snapshots/x-sign-base_tx_locked/00023.png
Binary file added tests_zemu/snapshots/x-sign-base_tx_locked/00024.png
Binary file added tests_zemu/snapshots/x-sign-base_tx_locked/00025.png
Binary file added tests_zemu/snapshots/x-sign-base_tx_locked/00026.png
Binary file added tests_zemu/snapshots/x-sign-base_tx_locked/00027.png
Binary file added tests_zemu/snapshots/x-sign-base_tx_locked/00028.png
Binary file added tests_zemu/snapshots/x-sign-base_tx_locked/00029.png
Binary file added tests_zemu/snapshots/x-sign-base_tx_locked/00030.png
Binary file added tests_zemu/snapshots/x-sign-base_tx_locked/00031.png
Binary file added tests_zemu/snapshots/x-sign-base_tx_locked/00032.png
Binary file added tests_zemu/snapshots/x-sign-base_tx_locked/00033.png
Binary file added tests_zemu/snapshots/x-sign-base_tx_locked/00034.png
Binary file added tests_zemu/snapshots/x-sign-base_tx_locked/00035.png
Binary file added tests_zemu/snapshots/x-sign-base_tx_locked/00036.png
Binary file added tests_zemu/snapshots/x-sign-base_tx_locked/00037.png
Binary file added tests_zemu/snapshots/x-sign-base_tx_locked/00038.png
Binary file added tests_zemu/snapshots/x-sign-base_tx_locked/00039.png
Binary file added tests_zemu/snapshots/x-sign-base_tx_locked/00040.png
Binary file added tests_zemu/snapshots/x-sign-base_tx_locked/00041.png
Binary file added tests_zemu/snapshots/x-sign-base_tx_locked/00042.png
Binary file added tests_zemu/snapshots/x-sign-base_tx_locked/00043.png
Binary file added tests_zemu/snapshots/x-sign-base_tx_locked/00044.png
Binary file added tests_zemu/snapshots/x-sign-base_tx_locked/00045.png
Binary file added tests_zemu/snapshots/x-sign-base_tx_locked/00046.png
Binary file added tests_zemu/snapshots/x-sign-base_tx_locked/00047.png
Binary file added tests_zemu/snapshots/x-sign-base_tx_locked/00048.png
Binary file added tests_zemu/snapshots/x-sign-base_tx_locked/00049.png
Binary file added tests_zemu/snapshots/x-sign-base_tx_locked/00050.png
Binary file added tests_zemu/snapshots/x-sign-base_tx_locked/00051.png
Binary file added tests_zemu/snapshots/x-sign-base_tx_locked/00052.png
Binary file added tests_zemu/snapshots/x-sign-base_tx_locked/00053.png
Binary file added tests_zemu/snapshots/x-sign-base_tx_locked/00054.png
Binary file added tests_zemu/snapshots/x-sign-base_tx_locked/00055.png
Binary file added tests_zemu/snapshots/x-sign-base_tx_locked/00056.png
Binary file added tests_zemu/snapshots/x-sign-base_tx_locked/00057.png
Binary file added tests_zemu/snapshots/x-sign-base_tx_locked/00058.png
Binary file added tests_zemu/snapshots/x-sign-base_tx_locked/00059.png
Binary file added tests_zemu/snapshots/x-sign-base_tx_locked/00060.png
Binary file added tests_zemu/snapshots/x-sign-base_tx_locked/00061.png
Binary file added tests_zemu/snapshots/x-sign-base_tx_locked/00062.png
Binary file added tests_zemu/snapshots/x-sign-base_tx_locked/00063.png
Binary file added tests_zemu/snapshots/x-sign-base_tx_locked/00064.png
Binary file added tests_zemu/snapshots/x-sign-base_tx_locked/00065.png
Binary file added tests_zemu/snapshots/x-sign-base_tx_locked/00066.png
Binary file added tests_zemu/snapshots/x-sign-base_tx_locked/00067.png
Binary file added tests_zemu/snapshots/x-sign-base_tx_locked/00068.png
Binary file added tests_zemu/snapshots/x-sign-base_tx_locked/00069.png
Binary file added tests_zemu/snapshots/x-sign-base_tx_locked/00070.png
Binary file added tests_zemu/snapshots/x-sign-base_tx_locked/00071.png
Binary file added tests_zemu/snapshots/x-sign-base_tx_locked/00072.png
Binary file added tests_zemu/snapshots/x-sign-base_tx_locked/00073.png
Binary file added tests_zemu/snapshots/x-sign-base_tx_locked/00074.png
Binary file added tests_zemu/snapshots/x-sign-base_tx_locked/00075.png
Loading
Loading