diff --git a/.github/workflows/reusable_swap_functional_tests.yml b/.github/workflows/reusable_swap_functional_tests.yml index 4dde2f8d..9576ee9a 100644 --- a/.github/workflows/reusable_swap_functional_tests.yml +++ b/.github/workflows/reusable_swap_functional_tests.yml @@ -93,6 +93,15 @@ on: default: 'LedgerHQ/app-tron' type: string + branch_for_near: + required: false + default: 'y333_241015/add_swap_support' + type: string + repo_for_near: + required: false + default: 'LedgerHQ/app-near' + type: string + test_filter: required: false default: '""' @@ -146,6 +155,9 @@ jobs: - name: tron repo: ${{ inputs.repo_for_tron }} branch: ${{ inputs.branch_for_tron }} + - name: near + repo: ${{ inputs.repo_for_near }} + branch: ${{ inputs.branch_for_near }} uses: LedgerHQ/ledger-app-workflows/.github/workflows/reusable_build.yml@v1 with: @@ -156,6 +168,7 @@ jobs: flags: "COIN=${{ matrix.coin.name }} CHAIN=${{ matrix.coin.name }} CAL_TEST_KEY=1 DOMAIN_NAME_TEST_KEY=1 SET_PLUGIN_TEST_KEY=1 NFT_TEST_KEY=1" upload_app_binaries_artifact: libraries_binaries-${{ matrix.coin.name }}-${{ strategy.job-index }} upload_as_lib_artifact: ${{ matrix.coin.name }} + builder: ledger-app-builder merge_libraries_build: name: Merge built libraries diff --git a/src/parse_check_address_message.c b/src/parse_check_address_message.c index b83b9938..11870d81 100644 --- a/src/parse_check_address_message.c +++ b/src/parse_check_address_message.c @@ -59,10 +59,12 @@ int parse_check_address_message(const command_t *cmd, } // Read address parameters + PRINTF("Read Address Parameters\n"); if (!parse_to_sized_buffer(cmd->data.bytes, cmd->data.size, 1, address_parameters, &read)) { PRINTF("Cannot read the address_parameters\n"); return 0; } + PRINTF("Address Parameters size: %d\n", address_parameters->size); if (address_parameters->size < 1) { PRINTF("Invalid address_parameters size %d\n", address_parameters->size); return 0; diff --git a/test/python/apps/cal.py b/test/python/apps/cal.py index 2ad1c807..47039250 100644 --- a/test/python/apps/cal.py +++ b/test/python/apps/cal.py @@ -20,6 +20,7 @@ from .polkadot import DOT_PACKED_DERIVATION_PATH, DOT_CONF from .tron import TRX_PACKED_DERIVATION_PATH, TRX_CONF from .tron import TRX_USDT_CONF, TRX_USDC_CONF, TRX_TUSD_CONF, TRX_USDD_CONF +from .near import NEAR_PACKED_DERIVATION_PATH, NEAR_CONF @dataclass class CurrencyConfiguration: @@ -51,6 +52,7 @@ def get_conf_for_ticker(self, overload_signer: Optional[SigningAuthority]=None) USDC_CURRENCY_CONFIGURATION = CurrencyConfiguration(ticker="USDC", conf=TRX_USDC_CONF, packed_derivation_path=TRX_PACKED_DERIVATION_PATH) TUSD_CURRENCY_CONFIGURATION = CurrencyConfiguration(ticker="TUSD", conf=TRX_TUSD_CONF, packed_derivation_path=TRX_PACKED_DERIVATION_PATH) USDD_CURRENCY_CONFIGURATION = CurrencyConfiguration(ticker="USDD", conf=TRX_USDD_CONF, packed_derivation_path=TRX_PACKED_DERIVATION_PATH) +NEAR_CURRENCY_CONFIGURATION = CurrencyConfiguration(ticker="NEAR", conf=NEAR_CONF, packed_derivation_path=NEAR_PACKED_DERIVATION_PATH) # Helper that can be called from outside if we want to generate errors easily diff --git a/test/python/apps/near.py b/test/python/apps/near.py new file mode 100644 index 00000000..0a39e7c0 --- /dev/null +++ b/test/python/apps/near.py @@ -0,0 +1,60 @@ +from enum import IntEnum + +from ragger.bip import pack_derivation_path +from ragger.utils import create_currency_config, RAPDU +from py_near.transactions import create_transfer_action, Transaction +import ed25519 +import base58 + + +ED25519_KEYPAIR = "188d2ce61071d477a2400558c3612ee68957a80aa2e56c29dc4da2dace58e7d8c4f5941e81e071c2fd1dae2e71fd3d859d462484391d9a90bf219211dcbb320f" +PRIVATE_KEY = ed25519.SigningKey(bytes.fromhex(ED25519_KEYPAIR)) +PUBLIC_KEY = PRIVATE_KEY.get_verifying_key() + +NEAR_CONF = create_currency_config("NEAR", "NEAR") + +NEAR_PACKED_DERIVATION_PATH = pack_derivation_path("m/44'/397'/0'/0'/1'") +SIGNER_ID = "blablatest.testnet" +NONCE = 96520360000015 +BLOCK_HASH = base58.b58decode("C32rfeBkSMT1xnsrArkV9Mu81ww9qK7n6Kw17NhEbVuK") + + +class Ins(): + SIGN = 0x02 + + +class P1(): + START = 0x00 + MORE = 0x80 + + +class P2(): + UNUSED = 0x57 + + +class NearErrors(IntEnum): + SW_DENY = 0x6985 + SW_SWAP_CHECKING_FAIL = 0x6A88 + + +class NearClient: + CLA = 0x80 + + def __init__(self, backend): + self._backend = backend + + def send_simple_sign_tx(self, path: str, destination: str, send_amount: int) -> RAPDU: + packed_path = pack_derivation_path(path) + + tx = Transaction( + signer_id="blablatest.testnet", + public_key=PUBLIC_KEY.to_bytes(), + nonce=NONCE, + receiver_id=destination, + actions=[create_transfer_action(send_amount * 10**24)], + block_hash=BLOCK_HASH + ) + + serialized_tx = bytes(tx.to_vec(PRIVATE_KEY.to_bytes())) + + return self._backend.exchange(self.CLA, Ins.SIGN, P1.MORE, P2.UNUSED, packed_path[1:] + serialized_tx) diff --git a/test/python/conftest.py b/test/python/conftest.py index df123d5a..9ae490b0 100644 --- a/test/python/conftest.py +++ b/test/python/conftest.py @@ -25,6 +25,7 @@ "solana": "Solana", "DOT": "Polkadot", "tron": "Tron", + "near": "NEAR", } configuration.OPTIONAL.SIDELOADED_APPS_DIR = "test/python/lib_binaries/" diff --git a/test/python/requirements.txt b/test/python/requirements.txt index 6d674fa8..88b2642b 100644 --- a/test/python/requirements.txt +++ b/test/python/requirements.txt @@ -6,4 +6,5 @@ xrpl-py scalecodec bip32 embit +py-near ledger_app_clients.ethereum @ https://github.com/LedgerHQ/app-ethereum/archive/develop.zip#subdirectory=client diff --git a/test/python/snapshots/nanos/test_near_fund_refuse_double_sign/00000.png b/test/python/snapshots/nanos/test_near_fund_refuse_double_sign/00000.png new file mode 100644 index 00000000..8d84cc70 Binary files /dev/null and b/test/python/snapshots/nanos/test_near_fund_refuse_double_sign/00000.png differ diff --git a/test/python/snapshots/nanos/test_near_fund_refuse_double_sign/00001.png b/test/python/snapshots/nanos/test_near_fund_refuse_double_sign/00001.png new file mode 100644 index 00000000..f68ce8a9 Binary files /dev/null and b/test/python/snapshots/nanos/test_near_fund_refuse_double_sign/00001.png differ diff --git a/test/python/snapshots/nanos/test_near_fund_refuse_double_sign/00002.png b/test/python/snapshots/nanos/test_near_fund_refuse_double_sign/00002.png new file mode 100644 index 00000000..85d6bfe9 Binary files /dev/null and b/test/python/snapshots/nanos/test_near_fund_refuse_double_sign/00002.png differ diff --git a/test/python/snapshots/nanos/test_near_fund_refuse_double_sign/00003.png b/test/python/snapshots/nanos/test_near_fund_refuse_double_sign/00003.png new file mode 100644 index 00000000..68d0d6bd Binary files /dev/null and b/test/python/snapshots/nanos/test_near_fund_refuse_double_sign/00003.png differ diff --git a/test/python/snapshots/nanos/test_near_fund_refuse_double_sign/00004.png b/test/python/snapshots/nanos/test_near_fund_refuse_double_sign/00004.png new file mode 100644 index 00000000..cfab0d2c Binary files /dev/null and b/test/python/snapshots/nanos/test_near_fund_refuse_double_sign/00004.png differ diff --git a/test/python/snapshots/nanos/test_near_fund_refuse_double_sign/00005.png b/test/python/snapshots/nanos/test_near_fund_refuse_double_sign/00005.png new file mode 100644 index 00000000..1c9156c3 Binary files /dev/null and b/test/python/snapshots/nanos/test_near_fund_refuse_double_sign/00005.png differ diff --git a/test/python/snapshots/nanos/test_near_fund_refuse_double_sign/00006.png b/test/python/snapshots/nanos/test_near_fund_refuse_double_sign/00006.png new file mode 100644 index 00000000..a0aef4de Binary files /dev/null and b/test/python/snapshots/nanos/test_near_fund_refuse_double_sign/00006.png differ diff --git a/test/python/snapshots/nanos/test_near_fund_valid_1/00000.png b/test/python/snapshots/nanos/test_near_fund_valid_1/00000.png new file mode 100644 index 00000000..8d84cc70 Binary files /dev/null and b/test/python/snapshots/nanos/test_near_fund_valid_1/00000.png differ diff --git a/test/python/snapshots/nanos/test_near_fund_valid_1/00001.png b/test/python/snapshots/nanos/test_near_fund_valid_1/00001.png new file mode 100644 index 00000000..f68ce8a9 Binary files /dev/null and b/test/python/snapshots/nanos/test_near_fund_valid_1/00001.png differ diff --git a/test/python/snapshots/nanos/test_near_fund_valid_1/00002.png b/test/python/snapshots/nanos/test_near_fund_valid_1/00002.png new file mode 100644 index 00000000..85d6bfe9 Binary files /dev/null and b/test/python/snapshots/nanos/test_near_fund_valid_1/00002.png differ diff --git a/test/python/snapshots/nanos/test_near_fund_valid_1/00003.png b/test/python/snapshots/nanos/test_near_fund_valid_1/00003.png new file mode 100644 index 00000000..68d0d6bd Binary files /dev/null and b/test/python/snapshots/nanos/test_near_fund_valid_1/00003.png differ diff --git a/test/python/snapshots/nanos/test_near_fund_valid_1/00004.png b/test/python/snapshots/nanos/test_near_fund_valid_1/00004.png new file mode 100644 index 00000000..cfab0d2c Binary files /dev/null and b/test/python/snapshots/nanos/test_near_fund_valid_1/00004.png differ diff --git a/test/python/snapshots/nanos/test_near_fund_valid_1/00005.png b/test/python/snapshots/nanos/test_near_fund_valid_1/00005.png new file mode 100644 index 00000000..1c9156c3 Binary files /dev/null and b/test/python/snapshots/nanos/test_near_fund_valid_1/00005.png differ diff --git a/test/python/snapshots/nanos/test_near_fund_valid_1/00006.png b/test/python/snapshots/nanos/test_near_fund_valid_1/00006.png new file mode 100644 index 00000000..a0aef4de Binary files /dev/null and b/test/python/snapshots/nanos/test_near_fund_valid_1/00006.png differ diff --git a/test/python/snapshots/nanos/test_near_fund_valid_2/00000.png b/test/python/snapshots/nanos/test_near_fund_valid_2/00000.png new file mode 100644 index 00000000..8d84cc70 Binary files /dev/null and b/test/python/snapshots/nanos/test_near_fund_valid_2/00000.png differ diff --git a/test/python/snapshots/nanos/test_near_fund_valid_2/00001.png b/test/python/snapshots/nanos/test_near_fund_valid_2/00001.png new file mode 100644 index 00000000..f68ce8a9 Binary files /dev/null and b/test/python/snapshots/nanos/test_near_fund_valid_2/00001.png differ diff --git a/test/python/snapshots/nanos/test_near_fund_valid_2/00002.png b/test/python/snapshots/nanos/test_near_fund_valid_2/00002.png new file mode 100644 index 00000000..f2470491 Binary files /dev/null and b/test/python/snapshots/nanos/test_near_fund_valid_2/00002.png differ diff --git a/test/python/snapshots/nanos/test_near_fund_valid_2/00003.png b/test/python/snapshots/nanos/test_near_fund_valid_2/00003.png new file mode 100644 index 00000000..68d0d6bd Binary files /dev/null and b/test/python/snapshots/nanos/test_near_fund_valid_2/00003.png differ diff --git a/test/python/snapshots/nanos/test_near_fund_valid_2/00004.png b/test/python/snapshots/nanos/test_near_fund_valid_2/00004.png new file mode 100644 index 00000000..cfab0d2c Binary files /dev/null and b/test/python/snapshots/nanos/test_near_fund_valid_2/00004.png differ diff --git a/test/python/snapshots/nanos/test_near_fund_valid_2/00005.png b/test/python/snapshots/nanos/test_near_fund_valid_2/00005.png new file mode 100644 index 00000000..1c9156c3 Binary files /dev/null and b/test/python/snapshots/nanos/test_near_fund_valid_2/00005.png differ diff --git a/test/python/snapshots/nanos/test_near_fund_valid_2/00006.png b/test/python/snapshots/nanos/test_near_fund_valid_2/00006.png new file mode 100644 index 00000000..a0aef4de Binary files /dev/null and b/test/python/snapshots/nanos/test_near_fund_valid_2/00006.png differ diff --git a/test/python/snapshots/nanos/test_near_fund_wrong_amount/00000.png b/test/python/snapshots/nanos/test_near_fund_wrong_amount/00000.png new file mode 100644 index 00000000..8d84cc70 Binary files /dev/null and b/test/python/snapshots/nanos/test_near_fund_wrong_amount/00000.png differ diff --git a/test/python/snapshots/nanos/test_near_fund_wrong_amount/00001.png b/test/python/snapshots/nanos/test_near_fund_wrong_amount/00001.png new file mode 100644 index 00000000..f68ce8a9 Binary files /dev/null and b/test/python/snapshots/nanos/test_near_fund_wrong_amount/00001.png differ diff --git a/test/python/snapshots/nanos/test_near_fund_wrong_amount/00002.png b/test/python/snapshots/nanos/test_near_fund_wrong_amount/00002.png new file mode 100644 index 00000000..85d6bfe9 Binary files /dev/null and b/test/python/snapshots/nanos/test_near_fund_wrong_amount/00002.png differ diff --git a/test/python/snapshots/nanos/test_near_fund_wrong_amount/00003.png b/test/python/snapshots/nanos/test_near_fund_wrong_amount/00003.png new file mode 100644 index 00000000..68d0d6bd Binary files /dev/null and b/test/python/snapshots/nanos/test_near_fund_wrong_amount/00003.png differ diff --git a/test/python/snapshots/nanos/test_near_fund_wrong_amount/00004.png b/test/python/snapshots/nanos/test_near_fund_wrong_amount/00004.png new file mode 100644 index 00000000..cfab0d2c Binary files /dev/null and b/test/python/snapshots/nanos/test_near_fund_wrong_amount/00004.png differ diff --git a/test/python/snapshots/nanos/test_near_fund_wrong_amount/00005.png b/test/python/snapshots/nanos/test_near_fund_wrong_amount/00005.png new file mode 100644 index 00000000..1c9156c3 Binary files /dev/null and b/test/python/snapshots/nanos/test_near_fund_wrong_amount/00005.png differ diff --git a/test/python/snapshots/nanos/test_near_fund_wrong_amount/00006.png b/test/python/snapshots/nanos/test_near_fund_wrong_amount/00006.png new file mode 100644 index 00000000..a0aef4de Binary files /dev/null and b/test/python/snapshots/nanos/test_near_fund_wrong_amount/00006.png differ diff --git a/test/python/snapshots/nanos/test_near_fund_wrong_destination/00000.png b/test/python/snapshots/nanos/test_near_fund_wrong_destination/00000.png new file mode 100644 index 00000000..8d84cc70 Binary files /dev/null and b/test/python/snapshots/nanos/test_near_fund_wrong_destination/00000.png differ diff --git a/test/python/snapshots/nanos/test_near_fund_wrong_destination/00001.png b/test/python/snapshots/nanos/test_near_fund_wrong_destination/00001.png new file mode 100644 index 00000000..f68ce8a9 Binary files /dev/null and b/test/python/snapshots/nanos/test_near_fund_wrong_destination/00001.png differ diff --git a/test/python/snapshots/nanos/test_near_fund_wrong_destination/00002.png b/test/python/snapshots/nanos/test_near_fund_wrong_destination/00002.png new file mode 100644 index 00000000..85d6bfe9 Binary files /dev/null and b/test/python/snapshots/nanos/test_near_fund_wrong_destination/00002.png differ diff --git a/test/python/snapshots/nanos/test_near_fund_wrong_destination/00003.png b/test/python/snapshots/nanos/test_near_fund_wrong_destination/00003.png new file mode 100644 index 00000000..68d0d6bd Binary files /dev/null and b/test/python/snapshots/nanos/test_near_fund_wrong_destination/00003.png differ diff --git a/test/python/snapshots/nanos/test_near_fund_wrong_destination/00004.png b/test/python/snapshots/nanos/test_near_fund_wrong_destination/00004.png new file mode 100644 index 00000000..cfab0d2c Binary files /dev/null and b/test/python/snapshots/nanos/test_near_fund_wrong_destination/00004.png differ diff --git a/test/python/snapshots/nanos/test_near_fund_wrong_destination/00005.png b/test/python/snapshots/nanos/test_near_fund_wrong_destination/00005.png new file mode 100644 index 00000000..1c9156c3 Binary files /dev/null and b/test/python/snapshots/nanos/test_near_fund_wrong_destination/00005.png differ diff --git a/test/python/snapshots/nanos/test_near_fund_wrong_destination/00006.png b/test/python/snapshots/nanos/test_near_fund_wrong_destination/00006.png new file mode 100644 index 00000000..a0aef4de Binary files /dev/null and b/test/python/snapshots/nanos/test_near_fund_wrong_destination/00006.png differ diff --git a/test/python/snapshots/nanos/test_near_fund_wrong_memo/00000.png b/test/python/snapshots/nanos/test_near_fund_wrong_memo/00000.png new file mode 100644 index 00000000..8d84cc70 Binary files /dev/null and b/test/python/snapshots/nanos/test_near_fund_wrong_memo/00000.png differ diff --git a/test/python/snapshots/nanos/test_near_fund_wrong_memo/00001.png b/test/python/snapshots/nanos/test_near_fund_wrong_memo/00001.png new file mode 100644 index 00000000..f68ce8a9 Binary files /dev/null and b/test/python/snapshots/nanos/test_near_fund_wrong_memo/00001.png differ diff --git a/test/python/snapshots/nanos/test_near_fund_wrong_memo/00002.png b/test/python/snapshots/nanos/test_near_fund_wrong_memo/00002.png new file mode 100644 index 00000000..85d6bfe9 Binary files /dev/null and b/test/python/snapshots/nanos/test_near_fund_wrong_memo/00002.png differ diff --git a/test/python/snapshots/nanos/test_near_fund_wrong_memo/00003.png b/test/python/snapshots/nanos/test_near_fund_wrong_memo/00003.png new file mode 100644 index 00000000..68d0d6bd Binary files /dev/null and b/test/python/snapshots/nanos/test_near_fund_wrong_memo/00003.png differ diff --git a/test/python/snapshots/nanos/test_near_fund_wrong_memo/00004.png b/test/python/snapshots/nanos/test_near_fund_wrong_memo/00004.png new file mode 100644 index 00000000..cfab0d2c Binary files /dev/null and b/test/python/snapshots/nanos/test_near_fund_wrong_memo/00004.png differ diff --git a/test/python/snapshots/nanos/test_near_fund_wrong_memo/00005.png b/test/python/snapshots/nanos/test_near_fund_wrong_memo/00005.png new file mode 100644 index 00000000..1c9156c3 Binary files /dev/null and b/test/python/snapshots/nanos/test_near_fund_wrong_memo/00005.png differ diff --git a/test/python/snapshots/nanos/test_near_fund_wrong_memo/00006.png b/test/python/snapshots/nanos/test_near_fund_wrong_memo/00006.png new file mode 100644 index 00000000..a0aef4de Binary files /dev/null and b/test/python/snapshots/nanos/test_near_fund_wrong_memo/00006.png differ diff --git a/test/python/snapshots/nanos/test_near_sell_refuse_double_sign/00000.png b/test/python/snapshots/nanos/test_near_sell_refuse_double_sign/00000.png new file mode 100644 index 00000000..8d84cc70 Binary files /dev/null and b/test/python/snapshots/nanos/test_near_sell_refuse_double_sign/00000.png differ diff --git a/test/python/snapshots/nanos/test_near_sell_refuse_double_sign/00001.png b/test/python/snapshots/nanos/test_near_sell_refuse_double_sign/00001.png new file mode 100644 index 00000000..ae0a2947 Binary files /dev/null and b/test/python/snapshots/nanos/test_near_sell_refuse_double_sign/00001.png differ diff --git a/test/python/snapshots/nanos/test_near_sell_refuse_double_sign/00002.png b/test/python/snapshots/nanos/test_near_sell_refuse_double_sign/00002.png new file mode 100644 index 00000000..85d6bfe9 Binary files /dev/null and b/test/python/snapshots/nanos/test_near_sell_refuse_double_sign/00002.png differ diff --git a/test/python/snapshots/nanos/test_near_sell_refuse_double_sign/00003.png b/test/python/snapshots/nanos/test_near_sell_refuse_double_sign/00003.png new file mode 100644 index 00000000..01f7f182 Binary files /dev/null and b/test/python/snapshots/nanos/test_near_sell_refuse_double_sign/00003.png differ diff --git a/test/python/snapshots/nanos/test_near_sell_refuse_double_sign/00004.png b/test/python/snapshots/nanos/test_near_sell_refuse_double_sign/00004.png new file mode 100644 index 00000000..cfab0d2c Binary files /dev/null and b/test/python/snapshots/nanos/test_near_sell_refuse_double_sign/00004.png differ diff --git a/test/python/snapshots/nanos/test_near_sell_refuse_double_sign/00005.png b/test/python/snapshots/nanos/test_near_sell_refuse_double_sign/00005.png new file mode 100644 index 00000000..1c9156c3 Binary files /dev/null and b/test/python/snapshots/nanos/test_near_sell_refuse_double_sign/00005.png differ diff --git a/test/python/snapshots/nanos/test_near_sell_refuse_double_sign/00006.png b/test/python/snapshots/nanos/test_near_sell_refuse_double_sign/00006.png new file mode 100644 index 00000000..a0aef4de Binary files /dev/null and b/test/python/snapshots/nanos/test_near_sell_refuse_double_sign/00006.png differ diff --git a/test/python/snapshots/nanos/test_near_sell_valid_1/00000.png b/test/python/snapshots/nanos/test_near_sell_valid_1/00000.png new file mode 100644 index 00000000..8d84cc70 Binary files /dev/null and b/test/python/snapshots/nanos/test_near_sell_valid_1/00000.png differ diff --git a/test/python/snapshots/nanos/test_near_sell_valid_1/00001.png b/test/python/snapshots/nanos/test_near_sell_valid_1/00001.png new file mode 100644 index 00000000..ae0a2947 Binary files /dev/null and b/test/python/snapshots/nanos/test_near_sell_valid_1/00001.png differ diff --git a/test/python/snapshots/nanos/test_near_sell_valid_1/00002.png b/test/python/snapshots/nanos/test_near_sell_valid_1/00002.png new file mode 100644 index 00000000..85d6bfe9 Binary files /dev/null and b/test/python/snapshots/nanos/test_near_sell_valid_1/00002.png differ diff --git a/test/python/snapshots/nanos/test_near_sell_valid_1/00003.png b/test/python/snapshots/nanos/test_near_sell_valid_1/00003.png new file mode 100644 index 00000000..01f7f182 Binary files /dev/null and b/test/python/snapshots/nanos/test_near_sell_valid_1/00003.png differ diff --git a/test/python/snapshots/nanos/test_near_sell_valid_1/00004.png b/test/python/snapshots/nanos/test_near_sell_valid_1/00004.png new file mode 100644 index 00000000..cfab0d2c Binary files /dev/null and b/test/python/snapshots/nanos/test_near_sell_valid_1/00004.png differ diff --git a/test/python/snapshots/nanos/test_near_sell_valid_1/00005.png b/test/python/snapshots/nanos/test_near_sell_valid_1/00005.png new file mode 100644 index 00000000..1c9156c3 Binary files /dev/null and b/test/python/snapshots/nanos/test_near_sell_valid_1/00005.png differ diff --git a/test/python/snapshots/nanos/test_near_sell_valid_1/00006.png b/test/python/snapshots/nanos/test_near_sell_valid_1/00006.png new file mode 100644 index 00000000..a0aef4de Binary files /dev/null and b/test/python/snapshots/nanos/test_near_sell_valid_1/00006.png differ diff --git a/test/python/snapshots/nanos/test_near_sell_valid_2/00000.png b/test/python/snapshots/nanos/test_near_sell_valid_2/00000.png new file mode 100644 index 00000000..8d84cc70 Binary files /dev/null and b/test/python/snapshots/nanos/test_near_sell_valid_2/00000.png differ diff --git a/test/python/snapshots/nanos/test_near_sell_valid_2/00001.png b/test/python/snapshots/nanos/test_near_sell_valid_2/00001.png new file mode 100644 index 00000000..ae0a2947 Binary files /dev/null and b/test/python/snapshots/nanos/test_near_sell_valid_2/00001.png differ diff --git a/test/python/snapshots/nanos/test_near_sell_valid_2/00002.png b/test/python/snapshots/nanos/test_near_sell_valid_2/00002.png new file mode 100644 index 00000000..f2470491 Binary files /dev/null and b/test/python/snapshots/nanos/test_near_sell_valid_2/00002.png differ diff --git a/test/python/snapshots/nanos/test_near_sell_valid_2/00003.png b/test/python/snapshots/nanos/test_near_sell_valid_2/00003.png new file mode 100644 index 00000000..01f7f182 Binary files /dev/null and b/test/python/snapshots/nanos/test_near_sell_valid_2/00003.png differ diff --git a/test/python/snapshots/nanos/test_near_sell_valid_2/00004.png b/test/python/snapshots/nanos/test_near_sell_valid_2/00004.png new file mode 100644 index 00000000..cfab0d2c Binary files /dev/null and b/test/python/snapshots/nanos/test_near_sell_valid_2/00004.png differ diff --git a/test/python/snapshots/nanos/test_near_sell_valid_2/00005.png b/test/python/snapshots/nanos/test_near_sell_valid_2/00005.png new file mode 100644 index 00000000..1c9156c3 Binary files /dev/null and b/test/python/snapshots/nanos/test_near_sell_valid_2/00005.png differ diff --git a/test/python/snapshots/nanos/test_near_sell_valid_2/00006.png b/test/python/snapshots/nanos/test_near_sell_valid_2/00006.png new file mode 100644 index 00000000..a0aef4de Binary files /dev/null and b/test/python/snapshots/nanos/test_near_sell_valid_2/00006.png differ diff --git a/test/python/snapshots/nanos/test_near_sell_wrong_amount/00000.png b/test/python/snapshots/nanos/test_near_sell_wrong_amount/00000.png new file mode 100644 index 00000000..8d84cc70 Binary files /dev/null and b/test/python/snapshots/nanos/test_near_sell_wrong_amount/00000.png differ diff --git a/test/python/snapshots/nanos/test_near_sell_wrong_amount/00001.png b/test/python/snapshots/nanos/test_near_sell_wrong_amount/00001.png new file mode 100644 index 00000000..ae0a2947 Binary files /dev/null and b/test/python/snapshots/nanos/test_near_sell_wrong_amount/00001.png differ diff --git a/test/python/snapshots/nanos/test_near_sell_wrong_amount/00002.png b/test/python/snapshots/nanos/test_near_sell_wrong_amount/00002.png new file mode 100644 index 00000000..85d6bfe9 Binary files /dev/null and b/test/python/snapshots/nanos/test_near_sell_wrong_amount/00002.png differ diff --git a/test/python/snapshots/nanos/test_near_sell_wrong_amount/00003.png b/test/python/snapshots/nanos/test_near_sell_wrong_amount/00003.png new file mode 100644 index 00000000..01f7f182 Binary files /dev/null and b/test/python/snapshots/nanos/test_near_sell_wrong_amount/00003.png differ diff --git a/test/python/snapshots/nanos/test_near_sell_wrong_amount/00004.png b/test/python/snapshots/nanos/test_near_sell_wrong_amount/00004.png new file mode 100644 index 00000000..cfab0d2c Binary files /dev/null and b/test/python/snapshots/nanos/test_near_sell_wrong_amount/00004.png differ diff --git a/test/python/snapshots/nanos/test_near_sell_wrong_amount/00005.png b/test/python/snapshots/nanos/test_near_sell_wrong_amount/00005.png new file mode 100644 index 00000000..1c9156c3 Binary files /dev/null and b/test/python/snapshots/nanos/test_near_sell_wrong_amount/00005.png differ diff --git a/test/python/snapshots/nanos/test_near_sell_wrong_amount/00006.png b/test/python/snapshots/nanos/test_near_sell_wrong_amount/00006.png new file mode 100644 index 00000000..a0aef4de Binary files /dev/null and b/test/python/snapshots/nanos/test_near_sell_wrong_amount/00006.png differ diff --git a/test/python/snapshots/nanos/test_near_sell_wrong_destination/00000.png b/test/python/snapshots/nanos/test_near_sell_wrong_destination/00000.png new file mode 100644 index 00000000..8d84cc70 Binary files /dev/null and b/test/python/snapshots/nanos/test_near_sell_wrong_destination/00000.png differ diff --git a/test/python/snapshots/nanos/test_near_sell_wrong_destination/00001.png b/test/python/snapshots/nanos/test_near_sell_wrong_destination/00001.png new file mode 100644 index 00000000..ae0a2947 Binary files /dev/null and b/test/python/snapshots/nanos/test_near_sell_wrong_destination/00001.png differ diff --git a/test/python/snapshots/nanos/test_near_sell_wrong_destination/00002.png b/test/python/snapshots/nanos/test_near_sell_wrong_destination/00002.png new file mode 100644 index 00000000..85d6bfe9 Binary files /dev/null and b/test/python/snapshots/nanos/test_near_sell_wrong_destination/00002.png differ diff --git a/test/python/snapshots/nanos/test_near_sell_wrong_destination/00003.png b/test/python/snapshots/nanos/test_near_sell_wrong_destination/00003.png new file mode 100644 index 00000000..01f7f182 Binary files /dev/null and b/test/python/snapshots/nanos/test_near_sell_wrong_destination/00003.png differ diff --git a/test/python/snapshots/nanos/test_near_sell_wrong_destination/00004.png b/test/python/snapshots/nanos/test_near_sell_wrong_destination/00004.png new file mode 100644 index 00000000..cfab0d2c Binary files /dev/null and b/test/python/snapshots/nanos/test_near_sell_wrong_destination/00004.png differ diff --git a/test/python/snapshots/nanos/test_near_sell_wrong_destination/00005.png b/test/python/snapshots/nanos/test_near_sell_wrong_destination/00005.png new file mode 100644 index 00000000..1c9156c3 Binary files /dev/null and b/test/python/snapshots/nanos/test_near_sell_wrong_destination/00005.png differ diff --git a/test/python/snapshots/nanos/test_near_sell_wrong_destination/00006.png b/test/python/snapshots/nanos/test_near_sell_wrong_destination/00006.png new file mode 100644 index 00000000..a0aef4de Binary files /dev/null and b/test/python/snapshots/nanos/test_near_sell_wrong_destination/00006.png differ diff --git a/test/python/snapshots/nanos/test_near_sell_wrong_memo/00000.png b/test/python/snapshots/nanos/test_near_sell_wrong_memo/00000.png new file mode 100644 index 00000000..8d84cc70 Binary files /dev/null and b/test/python/snapshots/nanos/test_near_sell_wrong_memo/00000.png differ diff --git a/test/python/snapshots/nanos/test_near_sell_wrong_memo/00001.png b/test/python/snapshots/nanos/test_near_sell_wrong_memo/00001.png new file mode 100644 index 00000000..ae0a2947 Binary files /dev/null and b/test/python/snapshots/nanos/test_near_sell_wrong_memo/00001.png differ diff --git a/test/python/snapshots/nanos/test_near_sell_wrong_memo/00002.png b/test/python/snapshots/nanos/test_near_sell_wrong_memo/00002.png new file mode 100644 index 00000000..85d6bfe9 Binary files /dev/null and b/test/python/snapshots/nanos/test_near_sell_wrong_memo/00002.png differ diff --git a/test/python/snapshots/nanos/test_near_sell_wrong_memo/00003.png b/test/python/snapshots/nanos/test_near_sell_wrong_memo/00003.png new file mode 100644 index 00000000..01f7f182 Binary files /dev/null and b/test/python/snapshots/nanos/test_near_sell_wrong_memo/00003.png differ diff --git a/test/python/snapshots/nanos/test_near_sell_wrong_memo/00004.png b/test/python/snapshots/nanos/test_near_sell_wrong_memo/00004.png new file mode 100644 index 00000000..cfab0d2c Binary files /dev/null and b/test/python/snapshots/nanos/test_near_sell_wrong_memo/00004.png differ diff --git a/test/python/snapshots/nanos/test_near_sell_wrong_memo/00005.png b/test/python/snapshots/nanos/test_near_sell_wrong_memo/00005.png new file mode 100644 index 00000000..1c9156c3 Binary files /dev/null and b/test/python/snapshots/nanos/test_near_sell_wrong_memo/00005.png differ diff --git a/test/python/snapshots/nanos/test_near_sell_wrong_memo/00006.png b/test/python/snapshots/nanos/test_near_sell_wrong_memo/00006.png new file mode 100644 index 00000000..a0aef4de Binary files /dev/null and b/test/python/snapshots/nanos/test_near_sell_wrong_memo/00006.png differ diff --git a/test/python/snapshots/nanos/test_near_swap_refuse_double_sign/00000.png b/test/python/snapshots/nanos/test_near_swap_refuse_double_sign/00000.png new file mode 100644 index 00000000..8d84cc70 Binary files /dev/null and b/test/python/snapshots/nanos/test_near_swap_refuse_double_sign/00000.png differ diff --git a/test/python/snapshots/nanos/test_near_swap_refuse_double_sign/00001.png b/test/python/snapshots/nanos/test_near_swap_refuse_double_sign/00001.png new file mode 100644 index 00000000..85d6bfe9 Binary files /dev/null and b/test/python/snapshots/nanos/test_near_swap_refuse_double_sign/00001.png differ diff --git a/test/python/snapshots/nanos/test_near_swap_refuse_double_sign/00002.png b/test/python/snapshots/nanos/test_near_swap_refuse_double_sign/00002.png new file mode 100644 index 00000000..b744ccf6 Binary files /dev/null and b/test/python/snapshots/nanos/test_near_swap_refuse_double_sign/00002.png differ diff --git a/test/python/snapshots/nanos/test_near_swap_refuse_double_sign/00003.png b/test/python/snapshots/nanos/test_near_swap_refuse_double_sign/00003.png new file mode 100644 index 00000000..cfab0d2c Binary files /dev/null and b/test/python/snapshots/nanos/test_near_swap_refuse_double_sign/00003.png differ diff --git a/test/python/snapshots/nanos/test_near_swap_refuse_double_sign/00004.png b/test/python/snapshots/nanos/test_near_swap_refuse_double_sign/00004.png new file mode 100644 index 00000000..1c9156c3 Binary files /dev/null and b/test/python/snapshots/nanos/test_near_swap_refuse_double_sign/00004.png differ diff --git a/test/python/snapshots/nanos/test_near_swap_refuse_double_sign/00005.png b/test/python/snapshots/nanos/test_near_swap_refuse_double_sign/00005.png new file mode 100644 index 00000000..a0aef4de Binary files /dev/null and b/test/python/snapshots/nanos/test_near_swap_refuse_double_sign/00005.png differ diff --git a/test/python/snapshots/nanos/test_near_swap_valid_1/00000.png b/test/python/snapshots/nanos/test_near_swap_valid_1/00000.png new file mode 100644 index 00000000..8d84cc70 Binary files /dev/null and b/test/python/snapshots/nanos/test_near_swap_valid_1/00000.png differ diff --git a/test/python/snapshots/nanos/test_near_swap_valid_1/00001.png b/test/python/snapshots/nanos/test_near_swap_valid_1/00001.png new file mode 100644 index 00000000..85d6bfe9 Binary files /dev/null and b/test/python/snapshots/nanos/test_near_swap_valid_1/00001.png differ diff --git a/test/python/snapshots/nanos/test_near_swap_valid_1/00002.png b/test/python/snapshots/nanos/test_near_swap_valid_1/00002.png new file mode 100644 index 00000000..b744ccf6 Binary files /dev/null and b/test/python/snapshots/nanos/test_near_swap_valid_1/00002.png differ diff --git a/test/python/snapshots/nanos/test_near_swap_valid_1/00003.png b/test/python/snapshots/nanos/test_near_swap_valid_1/00003.png new file mode 100644 index 00000000..cfab0d2c Binary files /dev/null and b/test/python/snapshots/nanos/test_near_swap_valid_1/00003.png differ diff --git a/test/python/snapshots/nanos/test_near_swap_valid_1/00004.png b/test/python/snapshots/nanos/test_near_swap_valid_1/00004.png new file mode 100644 index 00000000..1c9156c3 Binary files /dev/null and b/test/python/snapshots/nanos/test_near_swap_valid_1/00004.png differ diff --git a/test/python/snapshots/nanos/test_near_swap_valid_1/00005.png b/test/python/snapshots/nanos/test_near_swap_valid_1/00005.png new file mode 100644 index 00000000..a0aef4de Binary files /dev/null and b/test/python/snapshots/nanos/test_near_swap_valid_1/00005.png differ diff --git a/test/python/snapshots/nanos/test_near_swap_valid_2/00000.png b/test/python/snapshots/nanos/test_near_swap_valid_2/00000.png new file mode 100644 index 00000000..8d84cc70 Binary files /dev/null and b/test/python/snapshots/nanos/test_near_swap_valid_2/00000.png differ diff --git a/test/python/snapshots/nanos/test_near_swap_valid_2/00001.png b/test/python/snapshots/nanos/test_near_swap_valid_2/00001.png new file mode 100644 index 00000000..f2470491 Binary files /dev/null and b/test/python/snapshots/nanos/test_near_swap_valid_2/00001.png differ diff --git a/test/python/snapshots/nanos/test_near_swap_valid_2/00002.png b/test/python/snapshots/nanos/test_near_swap_valid_2/00002.png new file mode 100644 index 00000000..b744ccf6 Binary files /dev/null and b/test/python/snapshots/nanos/test_near_swap_valid_2/00002.png differ diff --git a/test/python/snapshots/nanos/test_near_swap_valid_2/00003.png b/test/python/snapshots/nanos/test_near_swap_valid_2/00003.png new file mode 100644 index 00000000..cfab0d2c Binary files /dev/null and b/test/python/snapshots/nanos/test_near_swap_valid_2/00003.png differ diff --git a/test/python/snapshots/nanos/test_near_swap_valid_2/00004.png b/test/python/snapshots/nanos/test_near_swap_valid_2/00004.png new file mode 100644 index 00000000..1c9156c3 Binary files /dev/null and b/test/python/snapshots/nanos/test_near_swap_valid_2/00004.png differ diff --git a/test/python/snapshots/nanos/test_near_swap_valid_2/00005.png b/test/python/snapshots/nanos/test_near_swap_valid_2/00005.png new file mode 100644 index 00000000..a0aef4de Binary files /dev/null and b/test/python/snapshots/nanos/test_near_swap_valid_2/00005.png differ diff --git a/test/python/snapshots/nanos/test_near_swap_wrong_amount/00000.png b/test/python/snapshots/nanos/test_near_swap_wrong_amount/00000.png new file mode 100644 index 00000000..8d84cc70 Binary files /dev/null and b/test/python/snapshots/nanos/test_near_swap_wrong_amount/00000.png differ diff --git a/test/python/snapshots/nanos/test_near_swap_wrong_amount/00001.png b/test/python/snapshots/nanos/test_near_swap_wrong_amount/00001.png new file mode 100644 index 00000000..85d6bfe9 Binary files /dev/null and b/test/python/snapshots/nanos/test_near_swap_wrong_amount/00001.png differ diff --git a/test/python/snapshots/nanos/test_near_swap_wrong_amount/00002.png b/test/python/snapshots/nanos/test_near_swap_wrong_amount/00002.png new file mode 100644 index 00000000..b744ccf6 Binary files /dev/null and b/test/python/snapshots/nanos/test_near_swap_wrong_amount/00002.png differ diff --git a/test/python/snapshots/nanos/test_near_swap_wrong_amount/00003.png b/test/python/snapshots/nanos/test_near_swap_wrong_amount/00003.png new file mode 100644 index 00000000..cfab0d2c Binary files /dev/null and b/test/python/snapshots/nanos/test_near_swap_wrong_amount/00003.png differ diff --git a/test/python/snapshots/nanos/test_near_swap_wrong_amount/00004.png b/test/python/snapshots/nanos/test_near_swap_wrong_amount/00004.png new file mode 100644 index 00000000..1c9156c3 Binary files /dev/null and b/test/python/snapshots/nanos/test_near_swap_wrong_amount/00004.png differ diff --git a/test/python/snapshots/nanos/test_near_swap_wrong_amount/00005.png b/test/python/snapshots/nanos/test_near_swap_wrong_amount/00005.png new file mode 100644 index 00000000..a0aef4de Binary files /dev/null and b/test/python/snapshots/nanos/test_near_swap_wrong_amount/00005.png differ diff --git a/test/python/snapshots/nanos/test_near_swap_wrong_destination/00000.png b/test/python/snapshots/nanos/test_near_swap_wrong_destination/00000.png new file mode 100644 index 00000000..8d84cc70 Binary files /dev/null and b/test/python/snapshots/nanos/test_near_swap_wrong_destination/00000.png differ diff --git a/test/python/snapshots/nanos/test_near_swap_wrong_destination/00001.png b/test/python/snapshots/nanos/test_near_swap_wrong_destination/00001.png new file mode 100644 index 00000000..85d6bfe9 Binary files /dev/null and b/test/python/snapshots/nanos/test_near_swap_wrong_destination/00001.png differ diff --git a/test/python/snapshots/nanos/test_near_swap_wrong_destination/00002.png b/test/python/snapshots/nanos/test_near_swap_wrong_destination/00002.png new file mode 100644 index 00000000..b744ccf6 Binary files /dev/null and b/test/python/snapshots/nanos/test_near_swap_wrong_destination/00002.png differ diff --git a/test/python/snapshots/nanos/test_near_swap_wrong_destination/00003.png b/test/python/snapshots/nanos/test_near_swap_wrong_destination/00003.png new file mode 100644 index 00000000..cfab0d2c Binary files /dev/null and b/test/python/snapshots/nanos/test_near_swap_wrong_destination/00003.png differ diff --git a/test/python/snapshots/nanos/test_near_swap_wrong_destination/00004.png b/test/python/snapshots/nanos/test_near_swap_wrong_destination/00004.png new file mode 100644 index 00000000..1c9156c3 Binary files /dev/null and b/test/python/snapshots/nanos/test_near_swap_wrong_destination/00004.png differ diff --git a/test/python/snapshots/nanos/test_near_swap_wrong_destination/00005.png b/test/python/snapshots/nanos/test_near_swap_wrong_destination/00005.png new file mode 100644 index 00000000..a0aef4de Binary files /dev/null and b/test/python/snapshots/nanos/test_near_swap_wrong_destination/00005.png differ diff --git a/test/python/snapshots/nanos/test_near_swap_wrong_memo/00000.png b/test/python/snapshots/nanos/test_near_swap_wrong_memo/00000.png new file mode 100644 index 00000000..8d84cc70 Binary files /dev/null and b/test/python/snapshots/nanos/test_near_swap_wrong_memo/00000.png differ diff --git a/test/python/snapshots/nanos/test_near_swap_wrong_memo/00001.png b/test/python/snapshots/nanos/test_near_swap_wrong_memo/00001.png new file mode 100644 index 00000000..85d6bfe9 Binary files /dev/null and b/test/python/snapshots/nanos/test_near_swap_wrong_memo/00001.png differ diff --git a/test/python/snapshots/nanos/test_near_swap_wrong_memo/00002.png b/test/python/snapshots/nanos/test_near_swap_wrong_memo/00002.png new file mode 100644 index 00000000..b744ccf6 Binary files /dev/null and b/test/python/snapshots/nanos/test_near_swap_wrong_memo/00002.png differ diff --git a/test/python/snapshots/nanos/test_near_swap_wrong_memo/00003.png b/test/python/snapshots/nanos/test_near_swap_wrong_memo/00003.png new file mode 100644 index 00000000..cfab0d2c Binary files /dev/null and b/test/python/snapshots/nanos/test_near_swap_wrong_memo/00003.png differ diff --git a/test/python/snapshots/nanos/test_near_swap_wrong_memo/00004.png b/test/python/snapshots/nanos/test_near_swap_wrong_memo/00004.png new file mode 100644 index 00000000..1c9156c3 Binary files /dev/null and b/test/python/snapshots/nanos/test_near_swap_wrong_memo/00004.png differ diff --git a/test/python/snapshots/nanos/test_near_swap_wrong_memo/00005.png b/test/python/snapshots/nanos/test_near_swap_wrong_memo/00005.png new file mode 100644 index 00000000..a0aef4de Binary files /dev/null and b/test/python/snapshots/nanos/test_near_swap_wrong_memo/00005.png differ diff --git a/test/python/snapshots/nanosp/test_near_fund_refuse_double_sign/00000.png b/test/python/snapshots/nanosp/test_near_fund_refuse_double_sign/00000.png new file mode 100644 index 00000000..487ea10f Binary files /dev/null and b/test/python/snapshots/nanosp/test_near_fund_refuse_double_sign/00000.png differ diff --git a/test/python/snapshots/nanosp/test_near_fund_refuse_double_sign/00001.png b/test/python/snapshots/nanosp/test_near_fund_refuse_double_sign/00001.png new file mode 100644 index 00000000..fcfe2eb5 Binary files /dev/null and b/test/python/snapshots/nanosp/test_near_fund_refuse_double_sign/00001.png differ diff --git a/test/python/snapshots/nanosp/test_near_fund_refuse_double_sign/00002.png b/test/python/snapshots/nanosp/test_near_fund_refuse_double_sign/00002.png new file mode 100644 index 00000000..c788c8e4 Binary files /dev/null and b/test/python/snapshots/nanosp/test_near_fund_refuse_double_sign/00002.png differ diff --git a/test/python/snapshots/nanosp/test_near_fund_refuse_double_sign/00003.png b/test/python/snapshots/nanosp/test_near_fund_refuse_double_sign/00003.png new file mode 100644 index 00000000..ce6b87af Binary files /dev/null and b/test/python/snapshots/nanosp/test_near_fund_refuse_double_sign/00003.png differ diff --git a/test/python/snapshots/nanosp/test_near_fund_refuse_double_sign/00004.png b/test/python/snapshots/nanosp/test_near_fund_refuse_double_sign/00004.png new file mode 100644 index 00000000..339766b1 Binary files /dev/null and b/test/python/snapshots/nanosp/test_near_fund_refuse_double_sign/00004.png differ diff --git a/test/python/snapshots/nanosp/test_near_fund_refuse_double_sign/00005.png b/test/python/snapshots/nanosp/test_near_fund_refuse_double_sign/00005.png new file mode 100644 index 00000000..570ce28d Binary files /dev/null and b/test/python/snapshots/nanosp/test_near_fund_refuse_double_sign/00005.png differ diff --git a/test/python/snapshots/nanosp/test_near_fund_refuse_double_sign/00006.png b/test/python/snapshots/nanosp/test_near_fund_refuse_double_sign/00006.png new file mode 100644 index 00000000..7713012e Binary files /dev/null and b/test/python/snapshots/nanosp/test_near_fund_refuse_double_sign/00006.png differ diff --git a/test/python/snapshots/nanosp/test_near_fund_valid_1/00000.png b/test/python/snapshots/nanosp/test_near_fund_valid_1/00000.png new file mode 100644 index 00000000..487ea10f Binary files /dev/null and b/test/python/snapshots/nanosp/test_near_fund_valid_1/00000.png differ diff --git a/test/python/snapshots/nanosp/test_near_fund_valid_1/00001.png b/test/python/snapshots/nanosp/test_near_fund_valid_1/00001.png new file mode 100644 index 00000000..fcfe2eb5 Binary files /dev/null and b/test/python/snapshots/nanosp/test_near_fund_valid_1/00001.png differ diff --git a/test/python/snapshots/nanosp/test_near_fund_valid_1/00002.png b/test/python/snapshots/nanosp/test_near_fund_valid_1/00002.png new file mode 100644 index 00000000..c788c8e4 Binary files /dev/null and b/test/python/snapshots/nanosp/test_near_fund_valid_1/00002.png differ diff --git a/test/python/snapshots/nanosp/test_near_fund_valid_1/00003.png b/test/python/snapshots/nanosp/test_near_fund_valid_1/00003.png new file mode 100644 index 00000000..ce6b87af Binary files /dev/null and b/test/python/snapshots/nanosp/test_near_fund_valid_1/00003.png differ diff --git a/test/python/snapshots/nanosp/test_near_fund_valid_1/00004.png b/test/python/snapshots/nanosp/test_near_fund_valid_1/00004.png new file mode 100644 index 00000000..339766b1 Binary files /dev/null and b/test/python/snapshots/nanosp/test_near_fund_valid_1/00004.png differ diff --git a/test/python/snapshots/nanosp/test_near_fund_valid_1/00005.png b/test/python/snapshots/nanosp/test_near_fund_valid_1/00005.png new file mode 100644 index 00000000..570ce28d Binary files /dev/null and b/test/python/snapshots/nanosp/test_near_fund_valid_1/00005.png differ diff --git a/test/python/snapshots/nanosp/test_near_fund_valid_1/00006.png b/test/python/snapshots/nanosp/test_near_fund_valid_1/00006.png new file mode 100644 index 00000000..7713012e Binary files /dev/null and b/test/python/snapshots/nanosp/test_near_fund_valid_1/00006.png differ diff --git a/test/python/snapshots/nanosp/test_near_fund_valid_2/00000.png b/test/python/snapshots/nanosp/test_near_fund_valid_2/00000.png new file mode 100644 index 00000000..487ea10f Binary files /dev/null and b/test/python/snapshots/nanosp/test_near_fund_valid_2/00000.png differ diff --git a/test/python/snapshots/nanosp/test_near_fund_valid_2/00001.png b/test/python/snapshots/nanosp/test_near_fund_valid_2/00001.png new file mode 100644 index 00000000..fcfe2eb5 Binary files /dev/null and b/test/python/snapshots/nanosp/test_near_fund_valid_2/00001.png differ diff --git a/test/python/snapshots/nanosp/test_near_fund_valid_2/00002.png b/test/python/snapshots/nanosp/test_near_fund_valid_2/00002.png new file mode 100644 index 00000000..42a4c604 Binary files /dev/null and b/test/python/snapshots/nanosp/test_near_fund_valid_2/00002.png differ diff --git a/test/python/snapshots/nanosp/test_near_fund_valid_2/00003.png b/test/python/snapshots/nanosp/test_near_fund_valid_2/00003.png new file mode 100644 index 00000000..ce6b87af Binary files /dev/null and b/test/python/snapshots/nanosp/test_near_fund_valid_2/00003.png differ diff --git a/test/python/snapshots/nanosp/test_near_fund_valid_2/00004.png b/test/python/snapshots/nanosp/test_near_fund_valid_2/00004.png new file mode 100644 index 00000000..339766b1 Binary files /dev/null and b/test/python/snapshots/nanosp/test_near_fund_valid_2/00004.png differ diff --git a/test/python/snapshots/nanosp/test_near_fund_valid_2/00005.png b/test/python/snapshots/nanosp/test_near_fund_valid_2/00005.png new file mode 100644 index 00000000..570ce28d Binary files /dev/null and b/test/python/snapshots/nanosp/test_near_fund_valid_2/00005.png differ diff --git a/test/python/snapshots/nanosp/test_near_fund_valid_2/00006.png b/test/python/snapshots/nanosp/test_near_fund_valid_2/00006.png new file mode 100644 index 00000000..7713012e Binary files /dev/null and b/test/python/snapshots/nanosp/test_near_fund_valid_2/00006.png differ diff --git a/test/python/snapshots/nanosp/test_near_fund_wrong_amount/00000.png b/test/python/snapshots/nanosp/test_near_fund_wrong_amount/00000.png new file mode 100644 index 00000000..487ea10f Binary files /dev/null and b/test/python/snapshots/nanosp/test_near_fund_wrong_amount/00000.png differ diff --git a/test/python/snapshots/nanosp/test_near_fund_wrong_amount/00001.png b/test/python/snapshots/nanosp/test_near_fund_wrong_amount/00001.png new file mode 100644 index 00000000..fcfe2eb5 Binary files /dev/null and b/test/python/snapshots/nanosp/test_near_fund_wrong_amount/00001.png differ diff --git a/test/python/snapshots/nanosp/test_near_fund_wrong_amount/00002.png b/test/python/snapshots/nanosp/test_near_fund_wrong_amount/00002.png new file mode 100644 index 00000000..c788c8e4 Binary files /dev/null and b/test/python/snapshots/nanosp/test_near_fund_wrong_amount/00002.png differ diff --git a/test/python/snapshots/nanosp/test_near_fund_wrong_amount/00003.png b/test/python/snapshots/nanosp/test_near_fund_wrong_amount/00003.png new file mode 100644 index 00000000..ce6b87af Binary files /dev/null and b/test/python/snapshots/nanosp/test_near_fund_wrong_amount/00003.png differ diff --git a/test/python/snapshots/nanosp/test_near_fund_wrong_amount/00004.png b/test/python/snapshots/nanosp/test_near_fund_wrong_amount/00004.png new file mode 100644 index 00000000..339766b1 Binary files /dev/null and b/test/python/snapshots/nanosp/test_near_fund_wrong_amount/00004.png differ diff --git a/test/python/snapshots/nanosp/test_near_fund_wrong_amount/00005.png b/test/python/snapshots/nanosp/test_near_fund_wrong_amount/00005.png new file mode 100644 index 00000000..570ce28d Binary files /dev/null and b/test/python/snapshots/nanosp/test_near_fund_wrong_amount/00005.png differ diff --git a/test/python/snapshots/nanosp/test_near_fund_wrong_amount/00006.png b/test/python/snapshots/nanosp/test_near_fund_wrong_amount/00006.png new file mode 100644 index 00000000..7713012e Binary files /dev/null and b/test/python/snapshots/nanosp/test_near_fund_wrong_amount/00006.png differ diff --git a/test/python/snapshots/nanosp/test_near_fund_wrong_destination/00000.png b/test/python/snapshots/nanosp/test_near_fund_wrong_destination/00000.png new file mode 100644 index 00000000..487ea10f Binary files /dev/null and b/test/python/snapshots/nanosp/test_near_fund_wrong_destination/00000.png differ diff --git a/test/python/snapshots/nanosp/test_near_fund_wrong_destination/00001.png b/test/python/snapshots/nanosp/test_near_fund_wrong_destination/00001.png new file mode 100644 index 00000000..fcfe2eb5 Binary files /dev/null and b/test/python/snapshots/nanosp/test_near_fund_wrong_destination/00001.png differ diff --git a/test/python/snapshots/nanosp/test_near_fund_wrong_destination/00002.png b/test/python/snapshots/nanosp/test_near_fund_wrong_destination/00002.png new file mode 100644 index 00000000..c788c8e4 Binary files /dev/null and b/test/python/snapshots/nanosp/test_near_fund_wrong_destination/00002.png differ diff --git a/test/python/snapshots/nanosp/test_near_fund_wrong_destination/00003.png b/test/python/snapshots/nanosp/test_near_fund_wrong_destination/00003.png new file mode 100644 index 00000000..ce6b87af Binary files /dev/null and b/test/python/snapshots/nanosp/test_near_fund_wrong_destination/00003.png differ diff --git a/test/python/snapshots/nanosp/test_near_fund_wrong_destination/00004.png b/test/python/snapshots/nanosp/test_near_fund_wrong_destination/00004.png new file mode 100644 index 00000000..339766b1 Binary files /dev/null and b/test/python/snapshots/nanosp/test_near_fund_wrong_destination/00004.png differ diff --git a/test/python/snapshots/nanosp/test_near_fund_wrong_destination/00005.png b/test/python/snapshots/nanosp/test_near_fund_wrong_destination/00005.png new file mode 100644 index 00000000..570ce28d Binary files /dev/null and b/test/python/snapshots/nanosp/test_near_fund_wrong_destination/00005.png differ diff --git a/test/python/snapshots/nanosp/test_near_fund_wrong_destination/00006.png b/test/python/snapshots/nanosp/test_near_fund_wrong_destination/00006.png new file mode 100644 index 00000000..7713012e Binary files /dev/null and b/test/python/snapshots/nanosp/test_near_fund_wrong_destination/00006.png differ diff --git a/test/python/snapshots/nanosp/test_near_fund_wrong_memo/00000.png b/test/python/snapshots/nanosp/test_near_fund_wrong_memo/00000.png new file mode 100644 index 00000000..487ea10f Binary files /dev/null and b/test/python/snapshots/nanosp/test_near_fund_wrong_memo/00000.png differ diff --git a/test/python/snapshots/nanosp/test_near_fund_wrong_memo/00001.png b/test/python/snapshots/nanosp/test_near_fund_wrong_memo/00001.png new file mode 100644 index 00000000..fcfe2eb5 Binary files /dev/null and b/test/python/snapshots/nanosp/test_near_fund_wrong_memo/00001.png differ diff --git a/test/python/snapshots/nanosp/test_near_fund_wrong_memo/00002.png b/test/python/snapshots/nanosp/test_near_fund_wrong_memo/00002.png new file mode 100644 index 00000000..c788c8e4 Binary files /dev/null and b/test/python/snapshots/nanosp/test_near_fund_wrong_memo/00002.png differ diff --git a/test/python/snapshots/nanosp/test_near_fund_wrong_memo/00003.png b/test/python/snapshots/nanosp/test_near_fund_wrong_memo/00003.png new file mode 100644 index 00000000..ce6b87af Binary files /dev/null and b/test/python/snapshots/nanosp/test_near_fund_wrong_memo/00003.png differ diff --git a/test/python/snapshots/nanosp/test_near_fund_wrong_memo/00004.png b/test/python/snapshots/nanosp/test_near_fund_wrong_memo/00004.png new file mode 100644 index 00000000..339766b1 Binary files /dev/null and b/test/python/snapshots/nanosp/test_near_fund_wrong_memo/00004.png differ diff --git a/test/python/snapshots/nanosp/test_near_fund_wrong_memo/00005.png b/test/python/snapshots/nanosp/test_near_fund_wrong_memo/00005.png new file mode 100644 index 00000000..570ce28d Binary files /dev/null and b/test/python/snapshots/nanosp/test_near_fund_wrong_memo/00005.png differ diff --git a/test/python/snapshots/nanosp/test_near_fund_wrong_memo/00006.png b/test/python/snapshots/nanosp/test_near_fund_wrong_memo/00006.png new file mode 100644 index 00000000..7713012e Binary files /dev/null and b/test/python/snapshots/nanosp/test_near_fund_wrong_memo/00006.png differ diff --git a/test/python/snapshots/nanosp/test_near_sell_refuse_double_sign/00000.png b/test/python/snapshots/nanosp/test_near_sell_refuse_double_sign/00000.png new file mode 100644 index 00000000..487ea10f Binary files /dev/null and b/test/python/snapshots/nanosp/test_near_sell_refuse_double_sign/00000.png differ diff --git a/test/python/snapshots/nanosp/test_near_sell_refuse_double_sign/00001.png b/test/python/snapshots/nanosp/test_near_sell_refuse_double_sign/00001.png new file mode 100644 index 00000000..a7dec8ea Binary files /dev/null and b/test/python/snapshots/nanosp/test_near_sell_refuse_double_sign/00001.png differ diff --git a/test/python/snapshots/nanosp/test_near_sell_refuse_double_sign/00002.png b/test/python/snapshots/nanosp/test_near_sell_refuse_double_sign/00002.png new file mode 100644 index 00000000..c788c8e4 Binary files /dev/null and b/test/python/snapshots/nanosp/test_near_sell_refuse_double_sign/00002.png differ diff --git a/test/python/snapshots/nanosp/test_near_sell_refuse_double_sign/00003.png b/test/python/snapshots/nanosp/test_near_sell_refuse_double_sign/00003.png new file mode 100644 index 00000000..6749f273 Binary files /dev/null and b/test/python/snapshots/nanosp/test_near_sell_refuse_double_sign/00003.png differ diff --git a/test/python/snapshots/nanosp/test_near_sell_refuse_double_sign/00004.png b/test/python/snapshots/nanosp/test_near_sell_refuse_double_sign/00004.png new file mode 100644 index 00000000..339766b1 Binary files /dev/null and b/test/python/snapshots/nanosp/test_near_sell_refuse_double_sign/00004.png differ diff --git a/test/python/snapshots/nanosp/test_near_sell_refuse_double_sign/00005.png b/test/python/snapshots/nanosp/test_near_sell_refuse_double_sign/00005.png new file mode 100644 index 00000000..570ce28d Binary files /dev/null and b/test/python/snapshots/nanosp/test_near_sell_refuse_double_sign/00005.png differ diff --git a/test/python/snapshots/nanosp/test_near_sell_refuse_double_sign/00006.png b/test/python/snapshots/nanosp/test_near_sell_refuse_double_sign/00006.png new file mode 100644 index 00000000..7713012e Binary files /dev/null and b/test/python/snapshots/nanosp/test_near_sell_refuse_double_sign/00006.png differ diff --git a/test/python/snapshots/nanosp/test_near_sell_valid_1/00000.png b/test/python/snapshots/nanosp/test_near_sell_valid_1/00000.png new file mode 100644 index 00000000..487ea10f Binary files /dev/null and b/test/python/snapshots/nanosp/test_near_sell_valid_1/00000.png differ diff --git a/test/python/snapshots/nanosp/test_near_sell_valid_1/00001.png b/test/python/snapshots/nanosp/test_near_sell_valid_1/00001.png new file mode 100644 index 00000000..a7dec8ea Binary files /dev/null and b/test/python/snapshots/nanosp/test_near_sell_valid_1/00001.png differ diff --git a/test/python/snapshots/nanosp/test_near_sell_valid_1/00002.png b/test/python/snapshots/nanosp/test_near_sell_valid_1/00002.png new file mode 100644 index 00000000..c788c8e4 Binary files /dev/null and b/test/python/snapshots/nanosp/test_near_sell_valid_1/00002.png differ diff --git a/test/python/snapshots/nanosp/test_near_sell_valid_1/00003.png b/test/python/snapshots/nanosp/test_near_sell_valid_1/00003.png new file mode 100644 index 00000000..6749f273 Binary files /dev/null and b/test/python/snapshots/nanosp/test_near_sell_valid_1/00003.png differ diff --git a/test/python/snapshots/nanosp/test_near_sell_valid_1/00004.png b/test/python/snapshots/nanosp/test_near_sell_valid_1/00004.png new file mode 100644 index 00000000..339766b1 Binary files /dev/null and b/test/python/snapshots/nanosp/test_near_sell_valid_1/00004.png differ diff --git a/test/python/snapshots/nanosp/test_near_sell_valid_1/00005.png b/test/python/snapshots/nanosp/test_near_sell_valid_1/00005.png new file mode 100644 index 00000000..570ce28d Binary files /dev/null and b/test/python/snapshots/nanosp/test_near_sell_valid_1/00005.png differ diff --git a/test/python/snapshots/nanosp/test_near_sell_valid_1/00006.png b/test/python/snapshots/nanosp/test_near_sell_valid_1/00006.png new file mode 100644 index 00000000..7713012e Binary files /dev/null and b/test/python/snapshots/nanosp/test_near_sell_valid_1/00006.png differ diff --git a/test/python/snapshots/nanosp/test_near_sell_valid_2/00000.png b/test/python/snapshots/nanosp/test_near_sell_valid_2/00000.png new file mode 100644 index 00000000..487ea10f Binary files /dev/null and b/test/python/snapshots/nanosp/test_near_sell_valid_2/00000.png differ diff --git a/test/python/snapshots/nanosp/test_near_sell_valid_2/00001.png b/test/python/snapshots/nanosp/test_near_sell_valid_2/00001.png new file mode 100644 index 00000000..a7dec8ea Binary files /dev/null and b/test/python/snapshots/nanosp/test_near_sell_valid_2/00001.png differ diff --git a/test/python/snapshots/nanosp/test_near_sell_valid_2/00002.png b/test/python/snapshots/nanosp/test_near_sell_valid_2/00002.png new file mode 100644 index 00000000..42a4c604 Binary files /dev/null and b/test/python/snapshots/nanosp/test_near_sell_valid_2/00002.png differ diff --git a/test/python/snapshots/nanosp/test_near_sell_valid_2/00003.png b/test/python/snapshots/nanosp/test_near_sell_valid_2/00003.png new file mode 100644 index 00000000..6749f273 Binary files /dev/null and b/test/python/snapshots/nanosp/test_near_sell_valid_2/00003.png differ diff --git a/test/python/snapshots/nanosp/test_near_sell_valid_2/00004.png b/test/python/snapshots/nanosp/test_near_sell_valid_2/00004.png new file mode 100644 index 00000000..339766b1 Binary files /dev/null and b/test/python/snapshots/nanosp/test_near_sell_valid_2/00004.png differ diff --git a/test/python/snapshots/nanosp/test_near_sell_valid_2/00005.png b/test/python/snapshots/nanosp/test_near_sell_valid_2/00005.png new file mode 100644 index 00000000..570ce28d Binary files /dev/null and b/test/python/snapshots/nanosp/test_near_sell_valid_2/00005.png differ diff --git a/test/python/snapshots/nanosp/test_near_sell_valid_2/00006.png b/test/python/snapshots/nanosp/test_near_sell_valid_2/00006.png new file mode 100644 index 00000000..7713012e Binary files /dev/null and b/test/python/snapshots/nanosp/test_near_sell_valid_2/00006.png differ diff --git a/test/python/snapshots/nanosp/test_near_sell_wrong_amount/00000.png b/test/python/snapshots/nanosp/test_near_sell_wrong_amount/00000.png new file mode 100644 index 00000000..487ea10f Binary files /dev/null and b/test/python/snapshots/nanosp/test_near_sell_wrong_amount/00000.png differ diff --git a/test/python/snapshots/nanosp/test_near_sell_wrong_amount/00001.png b/test/python/snapshots/nanosp/test_near_sell_wrong_amount/00001.png new file mode 100644 index 00000000..a7dec8ea Binary files /dev/null and b/test/python/snapshots/nanosp/test_near_sell_wrong_amount/00001.png differ diff --git a/test/python/snapshots/nanosp/test_near_sell_wrong_amount/00002.png b/test/python/snapshots/nanosp/test_near_sell_wrong_amount/00002.png new file mode 100644 index 00000000..c788c8e4 Binary files /dev/null and b/test/python/snapshots/nanosp/test_near_sell_wrong_amount/00002.png differ diff --git a/test/python/snapshots/nanosp/test_near_sell_wrong_amount/00003.png b/test/python/snapshots/nanosp/test_near_sell_wrong_amount/00003.png new file mode 100644 index 00000000..6749f273 Binary files /dev/null and b/test/python/snapshots/nanosp/test_near_sell_wrong_amount/00003.png differ diff --git a/test/python/snapshots/nanosp/test_near_sell_wrong_amount/00004.png b/test/python/snapshots/nanosp/test_near_sell_wrong_amount/00004.png new file mode 100644 index 00000000..339766b1 Binary files /dev/null and b/test/python/snapshots/nanosp/test_near_sell_wrong_amount/00004.png differ diff --git a/test/python/snapshots/nanosp/test_near_sell_wrong_amount/00005.png b/test/python/snapshots/nanosp/test_near_sell_wrong_amount/00005.png new file mode 100644 index 00000000..570ce28d Binary files /dev/null and b/test/python/snapshots/nanosp/test_near_sell_wrong_amount/00005.png differ diff --git a/test/python/snapshots/nanosp/test_near_sell_wrong_amount/00006.png b/test/python/snapshots/nanosp/test_near_sell_wrong_amount/00006.png new file mode 100644 index 00000000..7713012e Binary files /dev/null and b/test/python/snapshots/nanosp/test_near_sell_wrong_amount/00006.png differ diff --git a/test/python/snapshots/nanosp/test_near_sell_wrong_destination/00000.png b/test/python/snapshots/nanosp/test_near_sell_wrong_destination/00000.png new file mode 100644 index 00000000..487ea10f Binary files /dev/null and b/test/python/snapshots/nanosp/test_near_sell_wrong_destination/00000.png differ diff --git a/test/python/snapshots/nanosp/test_near_sell_wrong_destination/00001.png b/test/python/snapshots/nanosp/test_near_sell_wrong_destination/00001.png new file mode 100644 index 00000000..a7dec8ea Binary files /dev/null and b/test/python/snapshots/nanosp/test_near_sell_wrong_destination/00001.png differ diff --git a/test/python/snapshots/nanosp/test_near_sell_wrong_destination/00002.png b/test/python/snapshots/nanosp/test_near_sell_wrong_destination/00002.png new file mode 100644 index 00000000..c788c8e4 Binary files /dev/null and b/test/python/snapshots/nanosp/test_near_sell_wrong_destination/00002.png differ diff --git a/test/python/snapshots/nanosp/test_near_sell_wrong_destination/00003.png b/test/python/snapshots/nanosp/test_near_sell_wrong_destination/00003.png new file mode 100644 index 00000000..6749f273 Binary files /dev/null and b/test/python/snapshots/nanosp/test_near_sell_wrong_destination/00003.png differ diff --git a/test/python/snapshots/nanosp/test_near_sell_wrong_destination/00004.png b/test/python/snapshots/nanosp/test_near_sell_wrong_destination/00004.png new file mode 100644 index 00000000..339766b1 Binary files /dev/null and b/test/python/snapshots/nanosp/test_near_sell_wrong_destination/00004.png differ diff --git a/test/python/snapshots/nanosp/test_near_sell_wrong_destination/00005.png b/test/python/snapshots/nanosp/test_near_sell_wrong_destination/00005.png new file mode 100644 index 00000000..570ce28d Binary files /dev/null and b/test/python/snapshots/nanosp/test_near_sell_wrong_destination/00005.png differ diff --git a/test/python/snapshots/nanosp/test_near_sell_wrong_destination/00006.png b/test/python/snapshots/nanosp/test_near_sell_wrong_destination/00006.png new file mode 100644 index 00000000..7713012e Binary files /dev/null and b/test/python/snapshots/nanosp/test_near_sell_wrong_destination/00006.png differ diff --git a/test/python/snapshots/nanosp/test_near_sell_wrong_memo/00000.png b/test/python/snapshots/nanosp/test_near_sell_wrong_memo/00000.png new file mode 100644 index 00000000..487ea10f Binary files /dev/null and b/test/python/snapshots/nanosp/test_near_sell_wrong_memo/00000.png differ diff --git a/test/python/snapshots/nanosp/test_near_sell_wrong_memo/00001.png b/test/python/snapshots/nanosp/test_near_sell_wrong_memo/00001.png new file mode 100644 index 00000000..a7dec8ea Binary files /dev/null and b/test/python/snapshots/nanosp/test_near_sell_wrong_memo/00001.png differ diff --git a/test/python/snapshots/nanosp/test_near_sell_wrong_memo/00002.png b/test/python/snapshots/nanosp/test_near_sell_wrong_memo/00002.png new file mode 100644 index 00000000..c788c8e4 Binary files /dev/null and b/test/python/snapshots/nanosp/test_near_sell_wrong_memo/00002.png differ diff --git a/test/python/snapshots/nanosp/test_near_sell_wrong_memo/00003.png b/test/python/snapshots/nanosp/test_near_sell_wrong_memo/00003.png new file mode 100644 index 00000000..6749f273 Binary files /dev/null and b/test/python/snapshots/nanosp/test_near_sell_wrong_memo/00003.png differ diff --git a/test/python/snapshots/nanosp/test_near_sell_wrong_memo/00004.png b/test/python/snapshots/nanosp/test_near_sell_wrong_memo/00004.png new file mode 100644 index 00000000..339766b1 Binary files /dev/null and b/test/python/snapshots/nanosp/test_near_sell_wrong_memo/00004.png differ diff --git a/test/python/snapshots/nanosp/test_near_sell_wrong_memo/00005.png b/test/python/snapshots/nanosp/test_near_sell_wrong_memo/00005.png new file mode 100644 index 00000000..570ce28d Binary files /dev/null and b/test/python/snapshots/nanosp/test_near_sell_wrong_memo/00005.png differ diff --git a/test/python/snapshots/nanosp/test_near_sell_wrong_memo/00006.png b/test/python/snapshots/nanosp/test_near_sell_wrong_memo/00006.png new file mode 100644 index 00000000..7713012e Binary files /dev/null and b/test/python/snapshots/nanosp/test_near_sell_wrong_memo/00006.png differ diff --git a/test/python/snapshots/nanosp/test_near_swap_refuse_double_sign/00000.png b/test/python/snapshots/nanosp/test_near_swap_refuse_double_sign/00000.png new file mode 100644 index 00000000..487ea10f Binary files /dev/null and b/test/python/snapshots/nanosp/test_near_swap_refuse_double_sign/00000.png differ diff --git a/test/python/snapshots/nanosp/test_near_swap_refuse_double_sign/00001.png b/test/python/snapshots/nanosp/test_near_swap_refuse_double_sign/00001.png new file mode 100644 index 00000000..c788c8e4 Binary files /dev/null and b/test/python/snapshots/nanosp/test_near_swap_refuse_double_sign/00001.png differ diff --git a/test/python/snapshots/nanosp/test_near_swap_refuse_double_sign/00002.png b/test/python/snapshots/nanosp/test_near_swap_refuse_double_sign/00002.png new file mode 100644 index 00000000..2d2fc70b Binary files /dev/null and b/test/python/snapshots/nanosp/test_near_swap_refuse_double_sign/00002.png differ diff --git a/test/python/snapshots/nanosp/test_near_swap_refuse_double_sign/00003.png b/test/python/snapshots/nanosp/test_near_swap_refuse_double_sign/00003.png new file mode 100644 index 00000000..339766b1 Binary files /dev/null and b/test/python/snapshots/nanosp/test_near_swap_refuse_double_sign/00003.png differ diff --git a/test/python/snapshots/nanosp/test_near_swap_refuse_double_sign/00004.png b/test/python/snapshots/nanosp/test_near_swap_refuse_double_sign/00004.png new file mode 100644 index 00000000..570ce28d Binary files /dev/null and b/test/python/snapshots/nanosp/test_near_swap_refuse_double_sign/00004.png differ diff --git a/test/python/snapshots/nanosp/test_near_swap_refuse_double_sign/00005.png b/test/python/snapshots/nanosp/test_near_swap_refuse_double_sign/00005.png new file mode 100644 index 00000000..7713012e Binary files /dev/null and b/test/python/snapshots/nanosp/test_near_swap_refuse_double_sign/00005.png differ diff --git a/test/python/snapshots/nanosp/test_near_swap_valid_1/00000.png b/test/python/snapshots/nanosp/test_near_swap_valid_1/00000.png new file mode 100644 index 00000000..487ea10f Binary files /dev/null and b/test/python/snapshots/nanosp/test_near_swap_valid_1/00000.png differ diff --git a/test/python/snapshots/nanosp/test_near_swap_valid_1/00001.png b/test/python/snapshots/nanosp/test_near_swap_valid_1/00001.png new file mode 100644 index 00000000..c788c8e4 Binary files /dev/null and b/test/python/snapshots/nanosp/test_near_swap_valid_1/00001.png differ diff --git a/test/python/snapshots/nanosp/test_near_swap_valid_1/00002.png b/test/python/snapshots/nanosp/test_near_swap_valid_1/00002.png new file mode 100644 index 00000000..2d2fc70b Binary files /dev/null and b/test/python/snapshots/nanosp/test_near_swap_valid_1/00002.png differ diff --git a/test/python/snapshots/nanosp/test_near_swap_valid_1/00003.png b/test/python/snapshots/nanosp/test_near_swap_valid_1/00003.png new file mode 100644 index 00000000..339766b1 Binary files /dev/null and b/test/python/snapshots/nanosp/test_near_swap_valid_1/00003.png differ diff --git a/test/python/snapshots/nanosp/test_near_swap_valid_1/00004.png b/test/python/snapshots/nanosp/test_near_swap_valid_1/00004.png new file mode 100644 index 00000000..570ce28d Binary files /dev/null and b/test/python/snapshots/nanosp/test_near_swap_valid_1/00004.png differ diff --git a/test/python/snapshots/nanosp/test_near_swap_valid_1/00005.png b/test/python/snapshots/nanosp/test_near_swap_valid_1/00005.png new file mode 100644 index 00000000..7713012e Binary files /dev/null and b/test/python/snapshots/nanosp/test_near_swap_valid_1/00005.png differ diff --git a/test/python/snapshots/nanosp/test_near_swap_valid_2/00000.png b/test/python/snapshots/nanosp/test_near_swap_valid_2/00000.png new file mode 100644 index 00000000..487ea10f Binary files /dev/null and b/test/python/snapshots/nanosp/test_near_swap_valid_2/00000.png differ diff --git a/test/python/snapshots/nanosp/test_near_swap_valid_2/00001.png b/test/python/snapshots/nanosp/test_near_swap_valid_2/00001.png new file mode 100644 index 00000000..42a4c604 Binary files /dev/null and b/test/python/snapshots/nanosp/test_near_swap_valid_2/00001.png differ diff --git a/test/python/snapshots/nanosp/test_near_swap_valid_2/00002.png b/test/python/snapshots/nanosp/test_near_swap_valid_2/00002.png new file mode 100644 index 00000000..2d2fc70b Binary files /dev/null and b/test/python/snapshots/nanosp/test_near_swap_valid_2/00002.png differ diff --git a/test/python/snapshots/nanosp/test_near_swap_valid_2/00003.png b/test/python/snapshots/nanosp/test_near_swap_valid_2/00003.png new file mode 100644 index 00000000..339766b1 Binary files /dev/null and b/test/python/snapshots/nanosp/test_near_swap_valid_2/00003.png differ diff --git a/test/python/snapshots/nanosp/test_near_swap_valid_2/00004.png b/test/python/snapshots/nanosp/test_near_swap_valid_2/00004.png new file mode 100644 index 00000000..570ce28d Binary files /dev/null and b/test/python/snapshots/nanosp/test_near_swap_valid_2/00004.png differ diff --git a/test/python/snapshots/nanosp/test_near_swap_valid_2/00005.png b/test/python/snapshots/nanosp/test_near_swap_valid_2/00005.png new file mode 100644 index 00000000..7713012e Binary files /dev/null and b/test/python/snapshots/nanosp/test_near_swap_valid_2/00005.png differ diff --git a/test/python/snapshots/nanosp/test_near_swap_wrong_amount/00000.png b/test/python/snapshots/nanosp/test_near_swap_wrong_amount/00000.png new file mode 100644 index 00000000..487ea10f Binary files /dev/null and b/test/python/snapshots/nanosp/test_near_swap_wrong_amount/00000.png differ diff --git a/test/python/snapshots/nanosp/test_near_swap_wrong_amount/00001.png b/test/python/snapshots/nanosp/test_near_swap_wrong_amount/00001.png new file mode 100644 index 00000000..c788c8e4 Binary files /dev/null and b/test/python/snapshots/nanosp/test_near_swap_wrong_amount/00001.png differ diff --git a/test/python/snapshots/nanosp/test_near_swap_wrong_amount/00002.png b/test/python/snapshots/nanosp/test_near_swap_wrong_amount/00002.png new file mode 100644 index 00000000..2d2fc70b Binary files /dev/null and b/test/python/snapshots/nanosp/test_near_swap_wrong_amount/00002.png differ diff --git a/test/python/snapshots/nanosp/test_near_swap_wrong_amount/00003.png b/test/python/snapshots/nanosp/test_near_swap_wrong_amount/00003.png new file mode 100644 index 00000000..339766b1 Binary files /dev/null and b/test/python/snapshots/nanosp/test_near_swap_wrong_amount/00003.png differ diff --git a/test/python/snapshots/nanosp/test_near_swap_wrong_amount/00004.png b/test/python/snapshots/nanosp/test_near_swap_wrong_amount/00004.png new file mode 100644 index 00000000..570ce28d Binary files /dev/null and b/test/python/snapshots/nanosp/test_near_swap_wrong_amount/00004.png differ diff --git a/test/python/snapshots/nanosp/test_near_swap_wrong_amount/00005.png b/test/python/snapshots/nanosp/test_near_swap_wrong_amount/00005.png new file mode 100644 index 00000000..7713012e Binary files /dev/null and b/test/python/snapshots/nanosp/test_near_swap_wrong_amount/00005.png differ diff --git a/test/python/snapshots/nanosp/test_near_swap_wrong_destination/00000.png b/test/python/snapshots/nanosp/test_near_swap_wrong_destination/00000.png new file mode 100644 index 00000000..487ea10f Binary files /dev/null and b/test/python/snapshots/nanosp/test_near_swap_wrong_destination/00000.png differ diff --git a/test/python/snapshots/nanosp/test_near_swap_wrong_destination/00001.png b/test/python/snapshots/nanosp/test_near_swap_wrong_destination/00001.png new file mode 100644 index 00000000..c788c8e4 Binary files /dev/null and b/test/python/snapshots/nanosp/test_near_swap_wrong_destination/00001.png differ diff --git a/test/python/snapshots/nanosp/test_near_swap_wrong_destination/00002.png b/test/python/snapshots/nanosp/test_near_swap_wrong_destination/00002.png new file mode 100644 index 00000000..2d2fc70b Binary files /dev/null and b/test/python/snapshots/nanosp/test_near_swap_wrong_destination/00002.png differ diff --git a/test/python/snapshots/nanosp/test_near_swap_wrong_destination/00003.png b/test/python/snapshots/nanosp/test_near_swap_wrong_destination/00003.png new file mode 100644 index 00000000..339766b1 Binary files /dev/null and b/test/python/snapshots/nanosp/test_near_swap_wrong_destination/00003.png differ diff --git a/test/python/snapshots/nanosp/test_near_swap_wrong_destination/00004.png b/test/python/snapshots/nanosp/test_near_swap_wrong_destination/00004.png new file mode 100644 index 00000000..570ce28d Binary files /dev/null and b/test/python/snapshots/nanosp/test_near_swap_wrong_destination/00004.png differ diff --git a/test/python/snapshots/nanosp/test_near_swap_wrong_destination/00005.png b/test/python/snapshots/nanosp/test_near_swap_wrong_destination/00005.png new file mode 100644 index 00000000..7713012e Binary files /dev/null and b/test/python/snapshots/nanosp/test_near_swap_wrong_destination/00005.png differ diff --git a/test/python/snapshots/nanosp/test_near_swap_wrong_memo/00000.png b/test/python/snapshots/nanosp/test_near_swap_wrong_memo/00000.png new file mode 100644 index 00000000..487ea10f Binary files /dev/null and b/test/python/snapshots/nanosp/test_near_swap_wrong_memo/00000.png differ diff --git a/test/python/snapshots/nanosp/test_near_swap_wrong_memo/00001.png b/test/python/snapshots/nanosp/test_near_swap_wrong_memo/00001.png new file mode 100644 index 00000000..c788c8e4 Binary files /dev/null and b/test/python/snapshots/nanosp/test_near_swap_wrong_memo/00001.png differ diff --git a/test/python/snapshots/nanosp/test_near_swap_wrong_memo/00002.png b/test/python/snapshots/nanosp/test_near_swap_wrong_memo/00002.png new file mode 100644 index 00000000..2d2fc70b Binary files /dev/null and b/test/python/snapshots/nanosp/test_near_swap_wrong_memo/00002.png differ diff --git a/test/python/snapshots/nanosp/test_near_swap_wrong_memo/00003.png b/test/python/snapshots/nanosp/test_near_swap_wrong_memo/00003.png new file mode 100644 index 00000000..339766b1 Binary files /dev/null and b/test/python/snapshots/nanosp/test_near_swap_wrong_memo/00003.png differ diff --git a/test/python/snapshots/nanosp/test_near_swap_wrong_memo/00004.png b/test/python/snapshots/nanosp/test_near_swap_wrong_memo/00004.png new file mode 100644 index 00000000..570ce28d Binary files /dev/null and b/test/python/snapshots/nanosp/test_near_swap_wrong_memo/00004.png differ diff --git a/test/python/snapshots/nanosp/test_near_swap_wrong_memo/00005.png b/test/python/snapshots/nanosp/test_near_swap_wrong_memo/00005.png new file mode 100644 index 00000000..7713012e Binary files /dev/null and b/test/python/snapshots/nanosp/test_near_swap_wrong_memo/00005.png differ diff --git a/test/python/snapshots/nanox/test_near_fund_refuse_double_sign/00000.png b/test/python/snapshots/nanox/test_near_fund_refuse_double_sign/00000.png new file mode 100644 index 00000000..487ea10f Binary files /dev/null and b/test/python/snapshots/nanox/test_near_fund_refuse_double_sign/00000.png differ diff --git a/test/python/snapshots/nanox/test_near_fund_refuse_double_sign/00001.png b/test/python/snapshots/nanox/test_near_fund_refuse_double_sign/00001.png new file mode 100644 index 00000000..28a5f8e3 Binary files /dev/null and b/test/python/snapshots/nanox/test_near_fund_refuse_double_sign/00001.png differ diff --git a/test/python/snapshots/nanox/test_near_fund_refuse_double_sign/00002.png b/test/python/snapshots/nanox/test_near_fund_refuse_double_sign/00002.png new file mode 100644 index 00000000..4855c870 Binary files /dev/null and b/test/python/snapshots/nanox/test_near_fund_refuse_double_sign/00002.png differ diff --git a/test/python/snapshots/nanox/test_near_fund_refuse_double_sign/00003.png b/test/python/snapshots/nanox/test_near_fund_refuse_double_sign/00003.png new file mode 100644 index 00000000..66adf0b4 Binary files /dev/null and b/test/python/snapshots/nanox/test_near_fund_refuse_double_sign/00003.png differ diff --git a/test/python/snapshots/nanox/test_near_fund_refuse_double_sign/00004.png b/test/python/snapshots/nanox/test_near_fund_refuse_double_sign/00004.png new file mode 100644 index 00000000..339766b1 Binary files /dev/null and b/test/python/snapshots/nanox/test_near_fund_refuse_double_sign/00004.png differ diff --git a/test/python/snapshots/nanox/test_near_fund_refuse_double_sign/00005.png b/test/python/snapshots/nanox/test_near_fund_refuse_double_sign/00005.png new file mode 100644 index 00000000..570ce28d Binary files /dev/null and b/test/python/snapshots/nanox/test_near_fund_refuse_double_sign/00005.png differ diff --git a/test/python/snapshots/nanox/test_near_fund_refuse_double_sign/00006.png b/test/python/snapshots/nanox/test_near_fund_refuse_double_sign/00006.png new file mode 100644 index 00000000..6c4d06b4 Binary files /dev/null and b/test/python/snapshots/nanox/test_near_fund_refuse_double_sign/00006.png differ diff --git a/test/python/snapshots/nanox/test_near_fund_valid_1/00000.png b/test/python/snapshots/nanox/test_near_fund_valid_1/00000.png new file mode 100644 index 00000000..487ea10f Binary files /dev/null and b/test/python/snapshots/nanox/test_near_fund_valid_1/00000.png differ diff --git a/test/python/snapshots/nanox/test_near_fund_valid_1/00001.png b/test/python/snapshots/nanox/test_near_fund_valid_1/00001.png new file mode 100644 index 00000000..28a5f8e3 Binary files /dev/null and b/test/python/snapshots/nanox/test_near_fund_valid_1/00001.png differ diff --git a/test/python/snapshots/nanox/test_near_fund_valid_1/00002.png b/test/python/snapshots/nanox/test_near_fund_valid_1/00002.png new file mode 100644 index 00000000..4855c870 Binary files /dev/null and b/test/python/snapshots/nanox/test_near_fund_valid_1/00002.png differ diff --git a/test/python/snapshots/nanox/test_near_fund_valid_1/00003.png b/test/python/snapshots/nanox/test_near_fund_valid_1/00003.png new file mode 100644 index 00000000..66adf0b4 Binary files /dev/null and b/test/python/snapshots/nanox/test_near_fund_valid_1/00003.png differ diff --git a/test/python/snapshots/nanox/test_near_fund_valid_1/00004.png b/test/python/snapshots/nanox/test_near_fund_valid_1/00004.png new file mode 100644 index 00000000..339766b1 Binary files /dev/null and b/test/python/snapshots/nanox/test_near_fund_valid_1/00004.png differ diff --git a/test/python/snapshots/nanox/test_near_fund_valid_1/00005.png b/test/python/snapshots/nanox/test_near_fund_valid_1/00005.png new file mode 100644 index 00000000..570ce28d Binary files /dev/null and b/test/python/snapshots/nanox/test_near_fund_valid_1/00005.png differ diff --git a/test/python/snapshots/nanox/test_near_fund_valid_1/00006.png b/test/python/snapshots/nanox/test_near_fund_valid_1/00006.png new file mode 100644 index 00000000..6c4d06b4 Binary files /dev/null and b/test/python/snapshots/nanox/test_near_fund_valid_1/00006.png differ diff --git a/test/python/snapshots/nanox/test_near_fund_valid_2/00000.png b/test/python/snapshots/nanox/test_near_fund_valid_2/00000.png new file mode 100644 index 00000000..487ea10f Binary files /dev/null and b/test/python/snapshots/nanox/test_near_fund_valid_2/00000.png differ diff --git a/test/python/snapshots/nanox/test_near_fund_valid_2/00001.png b/test/python/snapshots/nanox/test_near_fund_valid_2/00001.png new file mode 100644 index 00000000..28a5f8e3 Binary files /dev/null and b/test/python/snapshots/nanox/test_near_fund_valid_2/00001.png differ diff --git a/test/python/snapshots/nanox/test_near_fund_valid_2/00002.png b/test/python/snapshots/nanox/test_near_fund_valid_2/00002.png new file mode 100644 index 00000000..430fde60 Binary files /dev/null and b/test/python/snapshots/nanox/test_near_fund_valid_2/00002.png differ diff --git a/test/python/snapshots/nanox/test_near_fund_valid_2/00003.png b/test/python/snapshots/nanox/test_near_fund_valid_2/00003.png new file mode 100644 index 00000000..66adf0b4 Binary files /dev/null and b/test/python/snapshots/nanox/test_near_fund_valid_2/00003.png differ diff --git a/test/python/snapshots/nanox/test_near_fund_valid_2/00004.png b/test/python/snapshots/nanox/test_near_fund_valid_2/00004.png new file mode 100644 index 00000000..339766b1 Binary files /dev/null and b/test/python/snapshots/nanox/test_near_fund_valid_2/00004.png differ diff --git a/test/python/snapshots/nanox/test_near_fund_valid_2/00005.png b/test/python/snapshots/nanox/test_near_fund_valid_2/00005.png new file mode 100644 index 00000000..570ce28d Binary files /dev/null and b/test/python/snapshots/nanox/test_near_fund_valid_2/00005.png differ diff --git a/test/python/snapshots/nanox/test_near_fund_valid_2/00006.png b/test/python/snapshots/nanox/test_near_fund_valid_2/00006.png new file mode 100644 index 00000000..6c4d06b4 Binary files /dev/null and b/test/python/snapshots/nanox/test_near_fund_valid_2/00006.png differ diff --git a/test/python/snapshots/nanox/test_near_fund_wrong_amount/00000.png b/test/python/snapshots/nanox/test_near_fund_wrong_amount/00000.png new file mode 100644 index 00000000..487ea10f Binary files /dev/null and b/test/python/snapshots/nanox/test_near_fund_wrong_amount/00000.png differ diff --git a/test/python/snapshots/nanox/test_near_fund_wrong_amount/00001.png b/test/python/snapshots/nanox/test_near_fund_wrong_amount/00001.png new file mode 100644 index 00000000..28a5f8e3 Binary files /dev/null and b/test/python/snapshots/nanox/test_near_fund_wrong_amount/00001.png differ diff --git a/test/python/snapshots/nanox/test_near_fund_wrong_amount/00002.png b/test/python/snapshots/nanox/test_near_fund_wrong_amount/00002.png new file mode 100644 index 00000000..4855c870 Binary files /dev/null and b/test/python/snapshots/nanox/test_near_fund_wrong_amount/00002.png differ diff --git a/test/python/snapshots/nanox/test_near_fund_wrong_amount/00003.png b/test/python/snapshots/nanox/test_near_fund_wrong_amount/00003.png new file mode 100644 index 00000000..66adf0b4 Binary files /dev/null and b/test/python/snapshots/nanox/test_near_fund_wrong_amount/00003.png differ diff --git a/test/python/snapshots/nanox/test_near_fund_wrong_amount/00004.png b/test/python/snapshots/nanox/test_near_fund_wrong_amount/00004.png new file mode 100644 index 00000000..339766b1 Binary files /dev/null and b/test/python/snapshots/nanox/test_near_fund_wrong_amount/00004.png differ diff --git a/test/python/snapshots/nanox/test_near_fund_wrong_amount/00005.png b/test/python/snapshots/nanox/test_near_fund_wrong_amount/00005.png new file mode 100644 index 00000000..570ce28d Binary files /dev/null and b/test/python/snapshots/nanox/test_near_fund_wrong_amount/00005.png differ diff --git a/test/python/snapshots/nanox/test_near_fund_wrong_amount/00006.png b/test/python/snapshots/nanox/test_near_fund_wrong_amount/00006.png new file mode 100644 index 00000000..6c4d06b4 Binary files /dev/null and b/test/python/snapshots/nanox/test_near_fund_wrong_amount/00006.png differ diff --git a/test/python/snapshots/nanox/test_near_fund_wrong_destination/00000.png b/test/python/snapshots/nanox/test_near_fund_wrong_destination/00000.png new file mode 100644 index 00000000..487ea10f Binary files /dev/null and b/test/python/snapshots/nanox/test_near_fund_wrong_destination/00000.png differ diff --git a/test/python/snapshots/nanox/test_near_fund_wrong_destination/00001.png b/test/python/snapshots/nanox/test_near_fund_wrong_destination/00001.png new file mode 100644 index 00000000..28a5f8e3 Binary files /dev/null and b/test/python/snapshots/nanox/test_near_fund_wrong_destination/00001.png differ diff --git a/test/python/snapshots/nanox/test_near_fund_wrong_destination/00002.png b/test/python/snapshots/nanox/test_near_fund_wrong_destination/00002.png new file mode 100644 index 00000000..4855c870 Binary files /dev/null and b/test/python/snapshots/nanox/test_near_fund_wrong_destination/00002.png differ diff --git a/test/python/snapshots/nanox/test_near_fund_wrong_destination/00003.png b/test/python/snapshots/nanox/test_near_fund_wrong_destination/00003.png new file mode 100644 index 00000000..66adf0b4 Binary files /dev/null and b/test/python/snapshots/nanox/test_near_fund_wrong_destination/00003.png differ diff --git a/test/python/snapshots/nanox/test_near_fund_wrong_destination/00004.png b/test/python/snapshots/nanox/test_near_fund_wrong_destination/00004.png new file mode 100644 index 00000000..339766b1 Binary files /dev/null and b/test/python/snapshots/nanox/test_near_fund_wrong_destination/00004.png differ diff --git a/test/python/snapshots/nanox/test_near_fund_wrong_destination/00005.png b/test/python/snapshots/nanox/test_near_fund_wrong_destination/00005.png new file mode 100644 index 00000000..570ce28d Binary files /dev/null and b/test/python/snapshots/nanox/test_near_fund_wrong_destination/00005.png differ diff --git a/test/python/snapshots/nanox/test_near_fund_wrong_destination/00006.png b/test/python/snapshots/nanox/test_near_fund_wrong_destination/00006.png new file mode 100644 index 00000000..6c4d06b4 Binary files /dev/null and b/test/python/snapshots/nanox/test_near_fund_wrong_destination/00006.png differ diff --git a/test/python/snapshots/nanox/test_near_fund_wrong_memo/00000.png b/test/python/snapshots/nanox/test_near_fund_wrong_memo/00000.png new file mode 100644 index 00000000..487ea10f Binary files /dev/null and b/test/python/snapshots/nanox/test_near_fund_wrong_memo/00000.png differ diff --git a/test/python/snapshots/nanox/test_near_fund_wrong_memo/00001.png b/test/python/snapshots/nanox/test_near_fund_wrong_memo/00001.png new file mode 100644 index 00000000..28a5f8e3 Binary files /dev/null and b/test/python/snapshots/nanox/test_near_fund_wrong_memo/00001.png differ diff --git a/test/python/snapshots/nanox/test_near_fund_wrong_memo/00002.png b/test/python/snapshots/nanox/test_near_fund_wrong_memo/00002.png new file mode 100644 index 00000000..4855c870 Binary files /dev/null and b/test/python/snapshots/nanox/test_near_fund_wrong_memo/00002.png differ diff --git a/test/python/snapshots/nanox/test_near_fund_wrong_memo/00003.png b/test/python/snapshots/nanox/test_near_fund_wrong_memo/00003.png new file mode 100644 index 00000000..66adf0b4 Binary files /dev/null and b/test/python/snapshots/nanox/test_near_fund_wrong_memo/00003.png differ diff --git a/test/python/snapshots/nanox/test_near_fund_wrong_memo/00004.png b/test/python/snapshots/nanox/test_near_fund_wrong_memo/00004.png new file mode 100644 index 00000000..339766b1 Binary files /dev/null and b/test/python/snapshots/nanox/test_near_fund_wrong_memo/00004.png differ diff --git a/test/python/snapshots/nanox/test_near_fund_wrong_memo/00005.png b/test/python/snapshots/nanox/test_near_fund_wrong_memo/00005.png new file mode 100644 index 00000000..570ce28d Binary files /dev/null and b/test/python/snapshots/nanox/test_near_fund_wrong_memo/00005.png differ diff --git a/test/python/snapshots/nanox/test_near_fund_wrong_memo/00006.png b/test/python/snapshots/nanox/test_near_fund_wrong_memo/00006.png new file mode 100644 index 00000000..6c4d06b4 Binary files /dev/null and b/test/python/snapshots/nanox/test_near_fund_wrong_memo/00006.png differ diff --git a/test/python/snapshots/nanox/test_near_sell_refuse_double_sign/00000.png b/test/python/snapshots/nanox/test_near_sell_refuse_double_sign/00000.png new file mode 100644 index 00000000..487ea10f Binary files /dev/null and b/test/python/snapshots/nanox/test_near_sell_refuse_double_sign/00000.png differ diff --git a/test/python/snapshots/nanox/test_near_sell_refuse_double_sign/00001.png b/test/python/snapshots/nanox/test_near_sell_refuse_double_sign/00001.png new file mode 100644 index 00000000..60ee7698 Binary files /dev/null and b/test/python/snapshots/nanox/test_near_sell_refuse_double_sign/00001.png differ diff --git a/test/python/snapshots/nanox/test_near_sell_refuse_double_sign/00002.png b/test/python/snapshots/nanox/test_near_sell_refuse_double_sign/00002.png new file mode 100644 index 00000000..4855c870 Binary files /dev/null and b/test/python/snapshots/nanox/test_near_sell_refuse_double_sign/00002.png differ diff --git a/test/python/snapshots/nanox/test_near_sell_refuse_double_sign/00003.png b/test/python/snapshots/nanox/test_near_sell_refuse_double_sign/00003.png new file mode 100644 index 00000000..6749f273 Binary files /dev/null and b/test/python/snapshots/nanox/test_near_sell_refuse_double_sign/00003.png differ diff --git a/test/python/snapshots/nanox/test_near_sell_refuse_double_sign/00004.png b/test/python/snapshots/nanox/test_near_sell_refuse_double_sign/00004.png new file mode 100644 index 00000000..339766b1 Binary files /dev/null and b/test/python/snapshots/nanox/test_near_sell_refuse_double_sign/00004.png differ diff --git a/test/python/snapshots/nanox/test_near_sell_refuse_double_sign/00005.png b/test/python/snapshots/nanox/test_near_sell_refuse_double_sign/00005.png new file mode 100644 index 00000000..570ce28d Binary files /dev/null and b/test/python/snapshots/nanox/test_near_sell_refuse_double_sign/00005.png differ diff --git a/test/python/snapshots/nanox/test_near_sell_refuse_double_sign/00006.png b/test/python/snapshots/nanox/test_near_sell_refuse_double_sign/00006.png new file mode 100644 index 00000000..6c4d06b4 Binary files /dev/null and b/test/python/snapshots/nanox/test_near_sell_refuse_double_sign/00006.png differ diff --git a/test/python/snapshots/nanox/test_near_sell_valid_1/00000.png b/test/python/snapshots/nanox/test_near_sell_valid_1/00000.png new file mode 100644 index 00000000..487ea10f Binary files /dev/null and b/test/python/snapshots/nanox/test_near_sell_valid_1/00000.png differ diff --git a/test/python/snapshots/nanox/test_near_sell_valid_1/00001.png b/test/python/snapshots/nanox/test_near_sell_valid_1/00001.png new file mode 100644 index 00000000..60ee7698 Binary files /dev/null and b/test/python/snapshots/nanox/test_near_sell_valid_1/00001.png differ diff --git a/test/python/snapshots/nanox/test_near_sell_valid_1/00002.png b/test/python/snapshots/nanox/test_near_sell_valid_1/00002.png new file mode 100644 index 00000000..4855c870 Binary files /dev/null and b/test/python/snapshots/nanox/test_near_sell_valid_1/00002.png differ diff --git a/test/python/snapshots/nanox/test_near_sell_valid_1/00003.png b/test/python/snapshots/nanox/test_near_sell_valid_1/00003.png new file mode 100644 index 00000000..6749f273 Binary files /dev/null and b/test/python/snapshots/nanox/test_near_sell_valid_1/00003.png differ diff --git a/test/python/snapshots/nanox/test_near_sell_valid_1/00004.png b/test/python/snapshots/nanox/test_near_sell_valid_1/00004.png new file mode 100644 index 00000000..339766b1 Binary files /dev/null and b/test/python/snapshots/nanox/test_near_sell_valid_1/00004.png differ diff --git a/test/python/snapshots/nanox/test_near_sell_valid_1/00005.png b/test/python/snapshots/nanox/test_near_sell_valid_1/00005.png new file mode 100644 index 00000000..570ce28d Binary files /dev/null and b/test/python/snapshots/nanox/test_near_sell_valid_1/00005.png differ diff --git a/test/python/snapshots/nanox/test_near_sell_valid_1/00006.png b/test/python/snapshots/nanox/test_near_sell_valid_1/00006.png new file mode 100644 index 00000000..6c4d06b4 Binary files /dev/null and b/test/python/snapshots/nanox/test_near_sell_valid_1/00006.png differ diff --git a/test/python/snapshots/nanox/test_near_sell_valid_2/00000.png b/test/python/snapshots/nanox/test_near_sell_valid_2/00000.png new file mode 100644 index 00000000..487ea10f Binary files /dev/null and b/test/python/snapshots/nanox/test_near_sell_valid_2/00000.png differ diff --git a/test/python/snapshots/nanox/test_near_sell_valid_2/00001.png b/test/python/snapshots/nanox/test_near_sell_valid_2/00001.png new file mode 100644 index 00000000..60ee7698 Binary files /dev/null and b/test/python/snapshots/nanox/test_near_sell_valid_2/00001.png differ diff --git a/test/python/snapshots/nanox/test_near_sell_valid_2/00002.png b/test/python/snapshots/nanox/test_near_sell_valid_2/00002.png new file mode 100644 index 00000000..430fde60 Binary files /dev/null and b/test/python/snapshots/nanox/test_near_sell_valid_2/00002.png differ diff --git a/test/python/snapshots/nanox/test_near_sell_valid_2/00003.png b/test/python/snapshots/nanox/test_near_sell_valid_2/00003.png new file mode 100644 index 00000000..6749f273 Binary files /dev/null and b/test/python/snapshots/nanox/test_near_sell_valid_2/00003.png differ diff --git a/test/python/snapshots/nanox/test_near_sell_valid_2/00004.png b/test/python/snapshots/nanox/test_near_sell_valid_2/00004.png new file mode 100644 index 00000000..339766b1 Binary files /dev/null and b/test/python/snapshots/nanox/test_near_sell_valid_2/00004.png differ diff --git a/test/python/snapshots/nanox/test_near_sell_valid_2/00005.png b/test/python/snapshots/nanox/test_near_sell_valid_2/00005.png new file mode 100644 index 00000000..570ce28d Binary files /dev/null and b/test/python/snapshots/nanox/test_near_sell_valid_2/00005.png differ diff --git a/test/python/snapshots/nanox/test_near_sell_valid_2/00006.png b/test/python/snapshots/nanox/test_near_sell_valid_2/00006.png new file mode 100644 index 00000000..6c4d06b4 Binary files /dev/null and b/test/python/snapshots/nanox/test_near_sell_valid_2/00006.png differ diff --git a/test/python/snapshots/nanox/test_near_sell_wrong_amount/00000.png b/test/python/snapshots/nanox/test_near_sell_wrong_amount/00000.png new file mode 100644 index 00000000..487ea10f Binary files /dev/null and b/test/python/snapshots/nanox/test_near_sell_wrong_amount/00000.png differ diff --git a/test/python/snapshots/nanox/test_near_sell_wrong_amount/00001.png b/test/python/snapshots/nanox/test_near_sell_wrong_amount/00001.png new file mode 100644 index 00000000..60ee7698 Binary files /dev/null and b/test/python/snapshots/nanox/test_near_sell_wrong_amount/00001.png differ diff --git a/test/python/snapshots/nanox/test_near_sell_wrong_amount/00002.png b/test/python/snapshots/nanox/test_near_sell_wrong_amount/00002.png new file mode 100644 index 00000000..4855c870 Binary files /dev/null and b/test/python/snapshots/nanox/test_near_sell_wrong_amount/00002.png differ diff --git a/test/python/snapshots/nanox/test_near_sell_wrong_amount/00003.png b/test/python/snapshots/nanox/test_near_sell_wrong_amount/00003.png new file mode 100644 index 00000000..6749f273 Binary files /dev/null and b/test/python/snapshots/nanox/test_near_sell_wrong_amount/00003.png differ diff --git a/test/python/snapshots/nanox/test_near_sell_wrong_amount/00004.png b/test/python/snapshots/nanox/test_near_sell_wrong_amount/00004.png new file mode 100644 index 00000000..339766b1 Binary files /dev/null and b/test/python/snapshots/nanox/test_near_sell_wrong_amount/00004.png differ diff --git a/test/python/snapshots/nanox/test_near_sell_wrong_amount/00005.png b/test/python/snapshots/nanox/test_near_sell_wrong_amount/00005.png new file mode 100644 index 00000000..570ce28d Binary files /dev/null and b/test/python/snapshots/nanox/test_near_sell_wrong_amount/00005.png differ diff --git a/test/python/snapshots/nanox/test_near_sell_wrong_amount/00006.png b/test/python/snapshots/nanox/test_near_sell_wrong_amount/00006.png new file mode 100644 index 00000000..6c4d06b4 Binary files /dev/null and b/test/python/snapshots/nanox/test_near_sell_wrong_amount/00006.png differ diff --git a/test/python/snapshots/nanox/test_near_sell_wrong_destination/00000.png b/test/python/snapshots/nanox/test_near_sell_wrong_destination/00000.png new file mode 100644 index 00000000..487ea10f Binary files /dev/null and b/test/python/snapshots/nanox/test_near_sell_wrong_destination/00000.png differ diff --git a/test/python/snapshots/nanox/test_near_sell_wrong_destination/00001.png b/test/python/snapshots/nanox/test_near_sell_wrong_destination/00001.png new file mode 100644 index 00000000..60ee7698 Binary files /dev/null and b/test/python/snapshots/nanox/test_near_sell_wrong_destination/00001.png differ diff --git a/test/python/snapshots/nanox/test_near_sell_wrong_destination/00002.png b/test/python/snapshots/nanox/test_near_sell_wrong_destination/00002.png new file mode 100644 index 00000000..4855c870 Binary files /dev/null and b/test/python/snapshots/nanox/test_near_sell_wrong_destination/00002.png differ diff --git a/test/python/snapshots/nanox/test_near_sell_wrong_destination/00003.png b/test/python/snapshots/nanox/test_near_sell_wrong_destination/00003.png new file mode 100644 index 00000000..6749f273 Binary files /dev/null and b/test/python/snapshots/nanox/test_near_sell_wrong_destination/00003.png differ diff --git a/test/python/snapshots/nanox/test_near_sell_wrong_destination/00004.png b/test/python/snapshots/nanox/test_near_sell_wrong_destination/00004.png new file mode 100644 index 00000000..339766b1 Binary files /dev/null and b/test/python/snapshots/nanox/test_near_sell_wrong_destination/00004.png differ diff --git a/test/python/snapshots/nanox/test_near_sell_wrong_destination/00005.png b/test/python/snapshots/nanox/test_near_sell_wrong_destination/00005.png new file mode 100644 index 00000000..570ce28d Binary files /dev/null and b/test/python/snapshots/nanox/test_near_sell_wrong_destination/00005.png differ diff --git a/test/python/snapshots/nanox/test_near_sell_wrong_destination/00006.png b/test/python/snapshots/nanox/test_near_sell_wrong_destination/00006.png new file mode 100644 index 00000000..6c4d06b4 Binary files /dev/null and b/test/python/snapshots/nanox/test_near_sell_wrong_destination/00006.png differ diff --git a/test/python/snapshots/nanox/test_near_sell_wrong_memo/00000.png b/test/python/snapshots/nanox/test_near_sell_wrong_memo/00000.png new file mode 100644 index 00000000..487ea10f Binary files /dev/null and b/test/python/snapshots/nanox/test_near_sell_wrong_memo/00000.png differ diff --git a/test/python/snapshots/nanox/test_near_sell_wrong_memo/00001.png b/test/python/snapshots/nanox/test_near_sell_wrong_memo/00001.png new file mode 100644 index 00000000..60ee7698 Binary files /dev/null and b/test/python/snapshots/nanox/test_near_sell_wrong_memo/00001.png differ diff --git a/test/python/snapshots/nanox/test_near_sell_wrong_memo/00002.png b/test/python/snapshots/nanox/test_near_sell_wrong_memo/00002.png new file mode 100644 index 00000000..4855c870 Binary files /dev/null and b/test/python/snapshots/nanox/test_near_sell_wrong_memo/00002.png differ diff --git a/test/python/snapshots/nanox/test_near_sell_wrong_memo/00003.png b/test/python/snapshots/nanox/test_near_sell_wrong_memo/00003.png new file mode 100644 index 00000000..6749f273 Binary files /dev/null and b/test/python/snapshots/nanox/test_near_sell_wrong_memo/00003.png differ diff --git a/test/python/snapshots/nanox/test_near_sell_wrong_memo/00004.png b/test/python/snapshots/nanox/test_near_sell_wrong_memo/00004.png new file mode 100644 index 00000000..339766b1 Binary files /dev/null and b/test/python/snapshots/nanox/test_near_sell_wrong_memo/00004.png differ diff --git a/test/python/snapshots/nanox/test_near_sell_wrong_memo/00005.png b/test/python/snapshots/nanox/test_near_sell_wrong_memo/00005.png new file mode 100644 index 00000000..570ce28d Binary files /dev/null and b/test/python/snapshots/nanox/test_near_sell_wrong_memo/00005.png differ diff --git a/test/python/snapshots/nanox/test_near_sell_wrong_memo/00006.png b/test/python/snapshots/nanox/test_near_sell_wrong_memo/00006.png new file mode 100644 index 00000000..6c4d06b4 Binary files /dev/null and b/test/python/snapshots/nanox/test_near_sell_wrong_memo/00006.png differ diff --git a/test/python/snapshots/nanox/test_near_swap_refuse_double_sign/00000.png b/test/python/snapshots/nanox/test_near_swap_refuse_double_sign/00000.png new file mode 100644 index 00000000..487ea10f Binary files /dev/null and b/test/python/snapshots/nanox/test_near_swap_refuse_double_sign/00000.png differ diff --git a/test/python/snapshots/nanox/test_near_swap_refuse_double_sign/00001.png b/test/python/snapshots/nanox/test_near_swap_refuse_double_sign/00001.png new file mode 100644 index 00000000..4855c870 Binary files /dev/null and b/test/python/snapshots/nanox/test_near_swap_refuse_double_sign/00001.png differ diff --git a/test/python/snapshots/nanox/test_near_swap_refuse_double_sign/00002.png b/test/python/snapshots/nanox/test_near_swap_refuse_double_sign/00002.png new file mode 100644 index 00000000..2d2fc70b Binary files /dev/null and b/test/python/snapshots/nanox/test_near_swap_refuse_double_sign/00002.png differ diff --git a/test/python/snapshots/nanox/test_near_swap_refuse_double_sign/00003.png b/test/python/snapshots/nanox/test_near_swap_refuse_double_sign/00003.png new file mode 100644 index 00000000..339766b1 Binary files /dev/null and b/test/python/snapshots/nanox/test_near_swap_refuse_double_sign/00003.png differ diff --git a/test/python/snapshots/nanox/test_near_swap_refuse_double_sign/00004.png b/test/python/snapshots/nanox/test_near_swap_refuse_double_sign/00004.png new file mode 100644 index 00000000..570ce28d Binary files /dev/null and b/test/python/snapshots/nanox/test_near_swap_refuse_double_sign/00004.png differ diff --git a/test/python/snapshots/nanox/test_near_swap_refuse_double_sign/00005.png b/test/python/snapshots/nanox/test_near_swap_refuse_double_sign/00005.png new file mode 100644 index 00000000..6c4d06b4 Binary files /dev/null and b/test/python/snapshots/nanox/test_near_swap_refuse_double_sign/00005.png differ diff --git a/test/python/snapshots/nanox/test_near_swap_valid_1/00000.png b/test/python/snapshots/nanox/test_near_swap_valid_1/00000.png new file mode 100644 index 00000000..487ea10f Binary files /dev/null and b/test/python/snapshots/nanox/test_near_swap_valid_1/00000.png differ diff --git a/test/python/snapshots/nanox/test_near_swap_valid_1/00001.png b/test/python/snapshots/nanox/test_near_swap_valid_1/00001.png new file mode 100644 index 00000000..4855c870 Binary files /dev/null and b/test/python/snapshots/nanox/test_near_swap_valid_1/00001.png differ diff --git a/test/python/snapshots/nanox/test_near_swap_valid_1/00002.png b/test/python/snapshots/nanox/test_near_swap_valid_1/00002.png new file mode 100644 index 00000000..2d2fc70b Binary files /dev/null and b/test/python/snapshots/nanox/test_near_swap_valid_1/00002.png differ diff --git a/test/python/snapshots/nanox/test_near_swap_valid_1/00003.png b/test/python/snapshots/nanox/test_near_swap_valid_1/00003.png new file mode 100644 index 00000000..339766b1 Binary files /dev/null and b/test/python/snapshots/nanox/test_near_swap_valid_1/00003.png differ diff --git a/test/python/snapshots/nanox/test_near_swap_valid_1/00004.png b/test/python/snapshots/nanox/test_near_swap_valid_1/00004.png new file mode 100644 index 00000000..570ce28d Binary files /dev/null and b/test/python/snapshots/nanox/test_near_swap_valid_1/00004.png differ diff --git a/test/python/snapshots/nanox/test_near_swap_valid_1/00005.png b/test/python/snapshots/nanox/test_near_swap_valid_1/00005.png new file mode 100644 index 00000000..6c4d06b4 Binary files /dev/null and b/test/python/snapshots/nanox/test_near_swap_valid_1/00005.png differ diff --git a/test/python/snapshots/nanox/test_near_swap_valid_2/00000.png b/test/python/snapshots/nanox/test_near_swap_valid_2/00000.png new file mode 100644 index 00000000..487ea10f Binary files /dev/null and b/test/python/snapshots/nanox/test_near_swap_valid_2/00000.png differ diff --git a/test/python/snapshots/nanox/test_near_swap_valid_2/00001.png b/test/python/snapshots/nanox/test_near_swap_valid_2/00001.png new file mode 100644 index 00000000..430fde60 Binary files /dev/null and b/test/python/snapshots/nanox/test_near_swap_valid_2/00001.png differ diff --git a/test/python/snapshots/nanox/test_near_swap_valid_2/00002.png b/test/python/snapshots/nanox/test_near_swap_valid_2/00002.png new file mode 100644 index 00000000..2d2fc70b Binary files /dev/null and b/test/python/snapshots/nanox/test_near_swap_valid_2/00002.png differ diff --git a/test/python/snapshots/nanox/test_near_swap_valid_2/00003.png b/test/python/snapshots/nanox/test_near_swap_valid_2/00003.png new file mode 100644 index 00000000..339766b1 Binary files /dev/null and b/test/python/snapshots/nanox/test_near_swap_valid_2/00003.png differ diff --git a/test/python/snapshots/nanox/test_near_swap_valid_2/00004.png b/test/python/snapshots/nanox/test_near_swap_valid_2/00004.png new file mode 100644 index 00000000..570ce28d Binary files /dev/null and b/test/python/snapshots/nanox/test_near_swap_valid_2/00004.png differ diff --git a/test/python/snapshots/nanox/test_near_swap_valid_2/00005.png b/test/python/snapshots/nanox/test_near_swap_valid_2/00005.png new file mode 100644 index 00000000..6c4d06b4 Binary files /dev/null and b/test/python/snapshots/nanox/test_near_swap_valid_2/00005.png differ diff --git a/test/python/snapshots/nanox/test_near_swap_wrong_amount/00000.png b/test/python/snapshots/nanox/test_near_swap_wrong_amount/00000.png new file mode 100644 index 00000000..487ea10f Binary files /dev/null and b/test/python/snapshots/nanox/test_near_swap_wrong_amount/00000.png differ diff --git a/test/python/snapshots/nanox/test_near_swap_wrong_amount/00001.png b/test/python/snapshots/nanox/test_near_swap_wrong_amount/00001.png new file mode 100644 index 00000000..4855c870 Binary files /dev/null and b/test/python/snapshots/nanox/test_near_swap_wrong_amount/00001.png differ diff --git a/test/python/snapshots/nanox/test_near_swap_wrong_amount/00002.png b/test/python/snapshots/nanox/test_near_swap_wrong_amount/00002.png new file mode 100644 index 00000000..2d2fc70b Binary files /dev/null and b/test/python/snapshots/nanox/test_near_swap_wrong_amount/00002.png differ diff --git a/test/python/snapshots/nanox/test_near_swap_wrong_amount/00003.png b/test/python/snapshots/nanox/test_near_swap_wrong_amount/00003.png new file mode 100644 index 00000000..339766b1 Binary files /dev/null and b/test/python/snapshots/nanox/test_near_swap_wrong_amount/00003.png differ diff --git a/test/python/snapshots/nanox/test_near_swap_wrong_amount/00004.png b/test/python/snapshots/nanox/test_near_swap_wrong_amount/00004.png new file mode 100644 index 00000000..570ce28d Binary files /dev/null and b/test/python/snapshots/nanox/test_near_swap_wrong_amount/00004.png differ diff --git a/test/python/snapshots/nanox/test_near_swap_wrong_amount/00005.png b/test/python/snapshots/nanox/test_near_swap_wrong_amount/00005.png new file mode 100644 index 00000000..6c4d06b4 Binary files /dev/null and b/test/python/snapshots/nanox/test_near_swap_wrong_amount/00005.png differ diff --git a/test/python/snapshots/nanox/test_near_swap_wrong_destination/00000.png b/test/python/snapshots/nanox/test_near_swap_wrong_destination/00000.png new file mode 100644 index 00000000..487ea10f Binary files /dev/null and b/test/python/snapshots/nanox/test_near_swap_wrong_destination/00000.png differ diff --git a/test/python/snapshots/nanox/test_near_swap_wrong_destination/00001.png b/test/python/snapshots/nanox/test_near_swap_wrong_destination/00001.png new file mode 100644 index 00000000..4855c870 Binary files /dev/null and b/test/python/snapshots/nanox/test_near_swap_wrong_destination/00001.png differ diff --git a/test/python/snapshots/nanox/test_near_swap_wrong_destination/00002.png b/test/python/snapshots/nanox/test_near_swap_wrong_destination/00002.png new file mode 100644 index 00000000..2d2fc70b Binary files /dev/null and b/test/python/snapshots/nanox/test_near_swap_wrong_destination/00002.png differ diff --git a/test/python/snapshots/nanox/test_near_swap_wrong_destination/00003.png b/test/python/snapshots/nanox/test_near_swap_wrong_destination/00003.png new file mode 100644 index 00000000..339766b1 Binary files /dev/null and b/test/python/snapshots/nanox/test_near_swap_wrong_destination/00003.png differ diff --git a/test/python/snapshots/nanox/test_near_swap_wrong_destination/00004.png b/test/python/snapshots/nanox/test_near_swap_wrong_destination/00004.png new file mode 100644 index 00000000..570ce28d Binary files /dev/null and b/test/python/snapshots/nanox/test_near_swap_wrong_destination/00004.png differ diff --git a/test/python/snapshots/nanox/test_near_swap_wrong_destination/00005.png b/test/python/snapshots/nanox/test_near_swap_wrong_destination/00005.png new file mode 100644 index 00000000..6c4d06b4 Binary files /dev/null and b/test/python/snapshots/nanox/test_near_swap_wrong_destination/00005.png differ diff --git a/test/python/snapshots/nanox/test_near_swap_wrong_memo/00000.png b/test/python/snapshots/nanox/test_near_swap_wrong_memo/00000.png new file mode 100644 index 00000000..487ea10f Binary files /dev/null and b/test/python/snapshots/nanox/test_near_swap_wrong_memo/00000.png differ diff --git a/test/python/snapshots/nanox/test_near_swap_wrong_memo/00001.png b/test/python/snapshots/nanox/test_near_swap_wrong_memo/00001.png new file mode 100644 index 00000000..4855c870 Binary files /dev/null and b/test/python/snapshots/nanox/test_near_swap_wrong_memo/00001.png differ diff --git a/test/python/snapshots/nanox/test_near_swap_wrong_memo/00002.png b/test/python/snapshots/nanox/test_near_swap_wrong_memo/00002.png new file mode 100644 index 00000000..2d2fc70b Binary files /dev/null and b/test/python/snapshots/nanox/test_near_swap_wrong_memo/00002.png differ diff --git a/test/python/snapshots/nanox/test_near_swap_wrong_memo/00003.png b/test/python/snapshots/nanox/test_near_swap_wrong_memo/00003.png new file mode 100644 index 00000000..339766b1 Binary files /dev/null and b/test/python/snapshots/nanox/test_near_swap_wrong_memo/00003.png differ diff --git a/test/python/snapshots/nanox/test_near_swap_wrong_memo/00004.png b/test/python/snapshots/nanox/test_near_swap_wrong_memo/00004.png new file mode 100644 index 00000000..570ce28d Binary files /dev/null and b/test/python/snapshots/nanox/test_near_swap_wrong_memo/00004.png differ diff --git a/test/python/snapshots/nanox/test_near_swap_wrong_memo/00005.png b/test/python/snapshots/nanox/test_near_swap_wrong_memo/00005.png new file mode 100644 index 00000000..6c4d06b4 Binary files /dev/null and b/test/python/snapshots/nanox/test_near_swap_wrong_memo/00005.png differ diff --git a/test/python/snapshots/stax/test_near_fund_valid_1/post_sign/00000.png b/test/python/snapshots/stax/test_near_fund_valid_1/post_sign/00000.png new file mode 100644 index 00000000..cd2f5275 Binary files /dev/null and b/test/python/snapshots/stax/test_near_fund_valid_1/post_sign/00000.png differ diff --git a/test/python/snapshots/stax/test_near_fund_valid_1/post_sign/00001.png b/test/python/snapshots/stax/test_near_fund_valid_1/post_sign/00001.png new file mode 100644 index 00000000..3599465a Binary files /dev/null and b/test/python/snapshots/stax/test_near_fund_valid_1/post_sign/00001.png differ diff --git a/test/python/snapshots/stax/test_near_fund_valid_1/review/00000.png b/test/python/snapshots/stax/test_near_fund_valid_1/review/00000.png new file mode 100644 index 00000000..d1038540 Binary files /dev/null and b/test/python/snapshots/stax/test_near_fund_valid_1/review/00000.png differ diff --git a/test/python/snapshots/stax/test_near_fund_valid_1/review/00001.png b/test/python/snapshots/stax/test_near_fund_valid_1/review/00001.png new file mode 100644 index 00000000..505b4c89 Binary files /dev/null and b/test/python/snapshots/stax/test_near_fund_valid_1/review/00001.png differ diff --git a/test/python/snapshots/stax/test_near_fund_valid_1/review/00002.png b/test/python/snapshots/stax/test_near_fund_valid_1/review/00002.png new file mode 100644 index 00000000..425ea006 Binary files /dev/null and b/test/python/snapshots/stax/test_near_fund_valid_1/review/00002.png differ diff --git a/test/python/snapshots/stax/test_near_fund_valid_2/post_sign/00000.png b/test/python/snapshots/stax/test_near_fund_valid_2/post_sign/00000.png new file mode 100644 index 00000000..cd2f5275 Binary files /dev/null and b/test/python/snapshots/stax/test_near_fund_valid_2/post_sign/00000.png differ diff --git a/test/python/snapshots/stax/test_near_fund_valid_2/post_sign/00001.png b/test/python/snapshots/stax/test_near_fund_valid_2/post_sign/00001.png new file mode 100644 index 00000000..3599465a Binary files /dev/null and b/test/python/snapshots/stax/test_near_fund_valid_2/post_sign/00001.png differ diff --git a/test/python/snapshots/stax/test_near_fund_valid_2/review/00000.png b/test/python/snapshots/stax/test_near_fund_valid_2/review/00000.png new file mode 100644 index 00000000..d1038540 Binary files /dev/null and b/test/python/snapshots/stax/test_near_fund_valid_2/review/00000.png differ diff --git a/test/python/snapshots/stax/test_near_fund_valid_2/review/00001.png b/test/python/snapshots/stax/test_near_fund_valid_2/review/00001.png new file mode 100644 index 00000000..7c26829f Binary files /dev/null and b/test/python/snapshots/stax/test_near_fund_valid_2/review/00001.png differ diff --git a/test/python/snapshots/stax/test_near_fund_valid_2/review/00002.png b/test/python/snapshots/stax/test_near_fund_valid_2/review/00002.png new file mode 100644 index 00000000..425ea006 Binary files /dev/null and b/test/python/snapshots/stax/test_near_fund_valid_2/review/00002.png differ diff --git a/test/python/snapshots/stax/test_near_fund_wrong_amount/post_sign/00000.png b/test/python/snapshots/stax/test_near_fund_wrong_amount/post_sign/00000.png new file mode 100644 index 00000000..9b7239a1 Binary files /dev/null and b/test/python/snapshots/stax/test_near_fund_wrong_amount/post_sign/00000.png differ diff --git a/test/python/snapshots/stax/test_near_fund_wrong_amount/post_sign/00001.png b/test/python/snapshots/stax/test_near_fund_wrong_amount/post_sign/00001.png new file mode 100644 index 00000000..3599465a Binary files /dev/null and b/test/python/snapshots/stax/test_near_fund_wrong_amount/post_sign/00001.png differ diff --git a/test/python/snapshots/stax/test_near_fund_wrong_amount/review/00000.png b/test/python/snapshots/stax/test_near_fund_wrong_amount/review/00000.png new file mode 100644 index 00000000..d1038540 Binary files /dev/null and b/test/python/snapshots/stax/test_near_fund_wrong_amount/review/00000.png differ diff --git a/test/python/snapshots/stax/test_near_fund_wrong_amount/review/00001.png b/test/python/snapshots/stax/test_near_fund_wrong_amount/review/00001.png new file mode 100644 index 00000000..505b4c89 Binary files /dev/null and b/test/python/snapshots/stax/test_near_fund_wrong_amount/review/00001.png differ diff --git a/test/python/snapshots/stax/test_near_fund_wrong_amount/review/00002.png b/test/python/snapshots/stax/test_near_fund_wrong_amount/review/00002.png new file mode 100644 index 00000000..425ea006 Binary files /dev/null and b/test/python/snapshots/stax/test_near_fund_wrong_amount/review/00002.png differ diff --git a/test/python/snapshots/stax/test_near_fund_wrong_destination/post_sign/00000.png b/test/python/snapshots/stax/test_near_fund_wrong_destination/post_sign/00000.png new file mode 100644 index 00000000..9b7239a1 Binary files /dev/null and b/test/python/snapshots/stax/test_near_fund_wrong_destination/post_sign/00000.png differ diff --git a/test/python/snapshots/stax/test_near_fund_wrong_destination/post_sign/00001.png b/test/python/snapshots/stax/test_near_fund_wrong_destination/post_sign/00001.png new file mode 100644 index 00000000..3599465a Binary files /dev/null and b/test/python/snapshots/stax/test_near_fund_wrong_destination/post_sign/00001.png differ diff --git a/test/python/snapshots/stax/test_near_fund_wrong_destination/review/00000.png b/test/python/snapshots/stax/test_near_fund_wrong_destination/review/00000.png new file mode 100644 index 00000000..d1038540 Binary files /dev/null and b/test/python/snapshots/stax/test_near_fund_wrong_destination/review/00000.png differ diff --git a/test/python/snapshots/stax/test_near_fund_wrong_destination/review/00001.png b/test/python/snapshots/stax/test_near_fund_wrong_destination/review/00001.png new file mode 100644 index 00000000..505b4c89 Binary files /dev/null and b/test/python/snapshots/stax/test_near_fund_wrong_destination/review/00001.png differ diff --git a/test/python/snapshots/stax/test_near_fund_wrong_destination/review/00002.png b/test/python/snapshots/stax/test_near_fund_wrong_destination/review/00002.png new file mode 100644 index 00000000..425ea006 Binary files /dev/null and b/test/python/snapshots/stax/test_near_fund_wrong_destination/review/00002.png differ diff --git a/test/python/snapshots/stax/test_near_sell_valid_1/post_sign/00000.png b/test/python/snapshots/stax/test_near_sell_valid_1/post_sign/00000.png new file mode 100644 index 00000000..cd2f5275 Binary files /dev/null and b/test/python/snapshots/stax/test_near_sell_valid_1/post_sign/00000.png differ diff --git a/test/python/snapshots/stax/test_near_sell_valid_1/post_sign/00001.png b/test/python/snapshots/stax/test_near_sell_valid_1/post_sign/00001.png new file mode 100644 index 00000000..3599465a Binary files /dev/null and b/test/python/snapshots/stax/test_near_sell_valid_1/post_sign/00001.png differ diff --git a/test/python/snapshots/stax/test_near_sell_valid_1/review/00000.png b/test/python/snapshots/stax/test_near_sell_valid_1/review/00000.png new file mode 100644 index 00000000..75f2cc02 Binary files /dev/null and b/test/python/snapshots/stax/test_near_sell_valid_1/review/00000.png differ diff --git a/test/python/snapshots/stax/test_near_sell_valid_1/review/00001.png b/test/python/snapshots/stax/test_near_sell_valid_1/review/00001.png new file mode 100644 index 00000000..d450c35c Binary files /dev/null and b/test/python/snapshots/stax/test_near_sell_valid_1/review/00001.png differ diff --git a/test/python/snapshots/stax/test_near_sell_valid_1/review/00002.png b/test/python/snapshots/stax/test_near_sell_valid_1/review/00002.png new file mode 100644 index 00000000..93d4b393 Binary files /dev/null and b/test/python/snapshots/stax/test_near_sell_valid_1/review/00002.png differ diff --git a/test/python/snapshots/stax/test_near_sell_valid_2/post_sign/00000.png b/test/python/snapshots/stax/test_near_sell_valid_2/post_sign/00000.png new file mode 100644 index 00000000..cd2f5275 Binary files /dev/null and b/test/python/snapshots/stax/test_near_sell_valid_2/post_sign/00000.png differ diff --git a/test/python/snapshots/stax/test_near_sell_valid_2/post_sign/00001.png b/test/python/snapshots/stax/test_near_sell_valid_2/post_sign/00001.png new file mode 100644 index 00000000..3599465a Binary files /dev/null and b/test/python/snapshots/stax/test_near_sell_valid_2/post_sign/00001.png differ diff --git a/test/python/snapshots/stax/test_near_sell_valid_2/review/00000.png b/test/python/snapshots/stax/test_near_sell_valid_2/review/00000.png new file mode 100644 index 00000000..75f2cc02 Binary files /dev/null and b/test/python/snapshots/stax/test_near_sell_valid_2/review/00000.png differ diff --git a/test/python/snapshots/stax/test_near_sell_valid_2/review/00001.png b/test/python/snapshots/stax/test_near_sell_valid_2/review/00001.png new file mode 100644 index 00000000..114e16cf Binary files /dev/null and b/test/python/snapshots/stax/test_near_sell_valid_2/review/00001.png differ diff --git a/test/python/snapshots/stax/test_near_sell_valid_2/review/00002.png b/test/python/snapshots/stax/test_near_sell_valid_2/review/00002.png new file mode 100644 index 00000000..93d4b393 Binary files /dev/null and b/test/python/snapshots/stax/test_near_sell_valid_2/review/00002.png differ diff --git a/test/python/snapshots/stax/test_near_sell_wrong_amount/post_sign/00000.png b/test/python/snapshots/stax/test_near_sell_wrong_amount/post_sign/00000.png new file mode 100644 index 00000000..9b7239a1 Binary files /dev/null and b/test/python/snapshots/stax/test_near_sell_wrong_amount/post_sign/00000.png differ diff --git a/test/python/snapshots/stax/test_near_sell_wrong_amount/post_sign/00001.png b/test/python/snapshots/stax/test_near_sell_wrong_amount/post_sign/00001.png new file mode 100644 index 00000000..3599465a Binary files /dev/null and b/test/python/snapshots/stax/test_near_sell_wrong_amount/post_sign/00001.png differ diff --git a/test/python/snapshots/stax/test_near_sell_wrong_amount/review/00000.png b/test/python/snapshots/stax/test_near_sell_wrong_amount/review/00000.png new file mode 100644 index 00000000..75f2cc02 Binary files /dev/null and b/test/python/snapshots/stax/test_near_sell_wrong_amount/review/00000.png differ diff --git a/test/python/snapshots/stax/test_near_sell_wrong_amount/review/00001.png b/test/python/snapshots/stax/test_near_sell_wrong_amount/review/00001.png new file mode 100644 index 00000000..d450c35c Binary files /dev/null and b/test/python/snapshots/stax/test_near_sell_wrong_amount/review/00001.png differ diff --git a/test/python/snapshots/stax/test_near_sell_wrong_amount/review/00002.png b/test/python/snapshots/stax/test_near_sell_wrong_amount/review/00002.png new file mode 100644 index 00000000..93d4b393 Binary files /dev/null and b/test/python/snapshots/stax/test_near_sell_wrong_amount/review/00002.png differ diff --git a/test/python/snapshots/stax/test_near_sell_wrong_destination/post_sign/00000.png b/test/python/snapshots/stax/test_near_sell_wrong_destination/post_sign/00000.png new file mode 100644 index 00000000..9b7239a1 Binary files /dev/null and b/test/python/snapshots/stax/test_near_sell_wrong_destination/post_sign/00000.png differ diff --git a/test/python/snapshots/stax/test_near_sell_wrong_destination/post_sign/00001.png b/test/python/snapshots/stax/test_near_sell_wrong_destination/post_sign/00001.png new file mode 100644 index 00000000..3599465a Binary files /dev/null and b/test/python/snapshots/stax/test_near_sell_wrong_destination/post_sign/00001.png differ diff --git a/test/python/snapshots/stax/test_near_sell_wrong_destination/review/00000.png b/test/python/snapshots/stax/test_near_sell_wrong_destination/review/00000.png new file mode 100644 index 00000000..75f2cc02 Binary files /dev/null and b/test/python/snapshots/stax/test_near_sell_wrong_destination/review/00000.png differ diff --git a/test/python/snapshots/stax/test_near_sell_wrong_destination/review/00001.png b/test/python/snapshots/stax/test_near_sell_wrong_destination/review/00001.png new file mode 100644 index 00000000..d450c35c Binary files /dev/null and b/test/python/snapshots/stax/test_near_sell_wrong_destination/review/00001.png differ diff --git a/test/python/snapshots/stax/test_near_sell_wrong_destination/review/00002.png b/test/python/snapshots/stax/test_near_sell_wrong_destination/review/00002.png new file mode 100644 index 00000000..93d4b393 Binary files /dev/null and b/test/python/snapshots/stax/test_near_sell_wrong_destination/review/00002.png differ diff --git a/test/python/snapshots/stax/test_near_swap_valid_1/post_sign/00000.png b/test/python/snapshots/stax/test_near_swap_valid_1/post_sign/00000.png new file mode 100644 index 00000000..cd2f5275 Binary files /dev/null and b/test/python/snapshots/stax/test_near_swap_valid_1/post_sign/00000.png differ diff --git a/test/python/snapshots/stax/test_near_swap_valid_1/post_sign/00001.png b/test/python/snapshots/stax/test_near_swap_valid_1/post_sign/00001.png new file mode 100644 index 00000000..3599465a Binary files /dev/null and b/test/python/snapshots/stax/test_near_swap_valid_1/post_sign/00001.png differ diff --git a/test/python/snapshots/stax/test_near_swap_valid_1/review/00000.png b/test/python/snapshots/stax/test_near_swap_valid_1/review/00000.png new file mode 100644 index 00000000..cdb94476 Binary files /dev/null and b/test/python/snapshots/stax/test_near_swap_valid_1/review/00000.png differ diff --git a/test/python/snapshots/stax/test_near_swap_valid_1/review/00001.png b/test/python/snapshots/stax/test_near_swap_valid_1/review/00001.png new file mode 100644 index 00000000..97df2438 Binary files /dev/null and b/test/python/snapshots/stax/test_near_swap_valid_1/review/00001.png differ diff --git a/test/python/snapshots/stax/test_near_swap_valid_1/review/00002.png b/test/python/snapshots/stax/test_near_swap_valid_1/review/00002.png new file mode 100644 index 00000000..e7ccada0 Binary files /dev/null and b/test/python/snapshots/stax/test_near_swap_valid_1/review/00002.png differ diff --git a/test/python/snapshots/stax/test_near_swap_valid_2/post_sign/00000.png b/test/python/snapshots/stax/test_near_swap_valid_2/post_sign/00000.png new file mode 100644 index 00000000..cd2f5275 Binary files /dev/null and b/test/python/snapshots/stax/test_near_swap_valid_2/post_sign/00000.png differ diff --git a/test/python/snapshots/stax/test_near_swap_valid_2/post_sign/00001.png b/test/python/snapshots/stax/test_near_swap_valid_2/post_sign/00001.png new file mode 100644 index 00000000..3599465a Binary files /dev/null and b/test/python/snapshots/stax/test_near_swap_valid_2/post_sign/00001.png differ diff --git a/test/python/snapshots/stax/test_near_swap_valid_2/review/00000.png b/test/python/snapshots/stax/test_near_swap_valid_2/review/00000.png new file mode 100644 index 00000000..cdb94476 Binary files /dev/null and b/test/python/snapshots/stax/test_near_swap_valid_2/review/00000.png differ diff --git a/test/python/snapshots/stax/test_near_swap_valid_2/review/00001.png b/test/python/snapshots/stax/test_near_swap_valid_2/review/00001.png new file mode 100644 index 00000000..63cdf3f0 Binary files /dev/null and b/test/python/snapshots/stax/test_near_swap_valid_2/review/00001.png differ diff --git a/test/python/snapshots/stax/test_near_swap_valid_2/review/00002.png b/test/python/snapshots/stax/test_near_swap_valid_2/review/00002.png new file mode 100644 index 00000000..e7ccada0 Binary files /dev/null and b/test/python/snapshots/stax/test_near_swap_valid_2/review/00002.png differ diff --git a/test/python/snapshots/stax/test_near_swap_wrong_amount/post_sign/00000.png b/test/python/snapshots/stax/test_near_swap_wrong_amount/post_sign/00000.png new file mode 100644 index 00000000..9b7239a1 Binary files /dev/null and b/test/python/snapshots/stax/test_near_swap_wrong_amount/post_sign/00000.png differ diff --git a/test/python/snapshots/stax/test_near_swap_wrong_amount/post_sign/00001.png b/test/python/snapshots/stax/test_near_swap_wrong_amount/post_sign/00001.png new file mode 100644 index 00000000..3599465a Binary files /dev/null and b/test/python/snapshots/stax/test_near_swap_wrong_amount/post_sign/00001.png differ diff --git a/test/python/snapshots/stax/test_near_swap_wrong_amount/review/00000.png b/test/python/snapshots/stax/test_near_swap_wrong_amount/review/00000.png new file mode 100644 index 00000000..cdb94476 Binary files /dev/null and b/test/python/snapshots/stax/test_near_swap_wrong_amount/review/00000.png differ diff --git a/test/python/snapshots/stax/test_near_swap_wrong_amount/review/00001.png b/test/python/snapshots/stax/test_near_swap_wrong_amount/review/00001.png new file mode 100644 index 00000000..97df2438 Binary files /dev/null and b/test/python/snapshots/stax/test_near_swap_wrong_amount/review/00001.png differ diff --git a/test/python/snapshots/stax/test_near_swap_wrong_amount/review/00002.png b/test/python/snapshots/stax/test_near_swap_wrong_amount/review/00002.png new file mode 100644 index 00000000..e7ccada0 Binary files /dev/null and b/test/python/snapshots/stax/test_near_swap_wrong_amount/review/00002.png differ diff --git a/test/python/snapshots/stax/test_near_swap_wrong_destination/post_sign/00000.png b/test/python/snapshots/stax/test_near_swap_wrong_destination/post_sign/00000.png new file mode 100644 index 00000000..9b7239a1 Binary files /dev/null and b/test/python/snapshots/stax/test_near_swap_wrong_destination/post_sign/00000.png differ diff --git a/test/python/snapshots/stax/test_near_swap_wrong_destination/post_sign/00001.png b/test/python/snapshots/stax/test_near_swap_wrong_destination/post_sign/00001.png new file mode 100644 index 00000000..3599465a Binary files /dev/null and b/test/python/snapshots/stax/test_near_swap_wrong_destination/post_sign/00001.png differ diff --git a/test/python/snapshots/stax/test_near_swap_wrong_destination/review/00000.png b/test/python/snapshots/stax/test_near_swap_wrong_destination/review/00000.png new file mode 100644 index 00000000..cdb94476 Binary files /dev/null and b/test/python/snapshots/stax/test_near_swap_wrong_destination/review/00000.png differ diff --git a/test/python/snapshots/stax/test_near_swap_wrong_destination/review/00001.png b/test/python/snapshots/stax/test_near_swap_wrong_destination/review/00001.png new file mode 100644 index 00000000..97df2438 Binary files /dev/null and b/test/python/snapshots/stax/test_near_swap_wrong_destination/review/00001.png differ diff --git a/test/python/snapshots/stax/test_near_swap_wrong_destination/review/00002.png b/test/python/snapshots/stax/test_near_swap_wrong_destination/review/00002.png new file mode 100644 index 00000000..e7ccada0 Binary files /dev/null and b/test/python/snapshots/stax/test_near_swap_wrong_destination/review/00002.png differ diff --git a/test/python/test_near.py b/test/python/test_near.py new file mode 100644 index 00000000..00f28726 --- /dev/null +++ b/test/python/test_near.py @@ -0,0 +1,40 @@ +import pytest + +from .apps.exchange_test_runner import ExchangeTestRunner, ALL_TESTS_EXCEPT_MEMO_AND_FEES +from .apps.near import NearClient, NearErrors +from .apps import cal as cal + +# ExchangeTestRunner implementation for Near +class NearTests(ExchangeTestRunner): + + currency_configuration = cal.NEAR_CURRENCY_CONFIGURATION + valid_destination_1 = "speculos.testnet" + valid_destination_memo_1 = "" + valid_destination_2 = "speculo.testnet" + valid_destination_memo_2 = "" + valid_refund = "EFr6nRvgKKeteKoEH7hudt8UHYiu94Liq2yMM7x2AU9U" + valid_refund_memo = "" + valid_send_amount_1 = 1 + valid_send_amount_2 = 446739662 + valid_fees_1 = 0 + valid_fees_2 = 0 + fake_refund = "abcdabcd" + fake_refund_memo = "bla" + fake_payout = "abcdabcd" + fake_payout_memo = "bla" + signature_refusal_error_code = NearErrors.SW_SWAP_CHECKING_FAIL + + def perform_final_tx(self, destination, send_amount, fees, memo): + NearClient(self.backend).send_simple_sign_tx(path="m/44'/397'/0'/0'/1'", + destination=destination, + send_amount=send_amount) + + # TODO : assert signature validity + + +# Use a class to reuse the same Speculos instance +class TestsNear: + + @pytest.mark.parametrize('test_to_run', ALL_TESTS_EXCEPT_MEMO_AND_FEES) + def test_near(self, backend, exchange_navigation_helper, test_to_run): + NearTests(backend, exchange_navigation_helper).run_test(test_to_run)