feat: erc1155 tests with screen

This commit is contained in:
Coline
2022-06-28 13:16:57 +02:00
parent 3491bd5fa2
commit f9673dfca7
22 changed files with 171 additions and 11 deletions

View File

@@ -7,16 +7,16 @@ SIGN_FIRST = apdu_as_string("e004000096058000002c8000003c80000000000000000000000
SIGN_MORE = apdu_as_string("e00480000b0000000000112999018080")
PLUGIN = Plugin(
type=1,
version=1,
name="ERC721",
addr="0x60f80121c31a0d46b5279700f9df786054aa5ee5",
selector=0x42842e0e,
chainID=1,
keyID=0,
algorithm=1,
sign=b"\x30\x45\x02\x20\x2e\x22\x82\xd7\xd3\xea\x71\x4d\xa2\x83\x01\x0f\x51\x7a\xf4\x69\xe1\xd5\x96\x54\xaa\xee\x0f\xc4\x38\xf0\x17\xaa\x55\x7e\xae\xa5\x02\x21\x00\x8b\x36\x96\x79\x38\x10\x65\xbb\xe0\x11\x35\x72\x3a\x4f\x9a\xdb\x22\x92\x95\x01\x7d\x37\xc4\xd3\x01\x38\xb9\x0a\x51\xcf\x6a\xb6",
)
type=1,
version=1,
name="ERC721",
addr="0x60f80121c31a0d46b5279700f9df786054aa5ee5",
selector=0x42842e0e,
chainID=1,
keyID=0,
algorithm=1,
sign=b"\x30\x45\x02\x20\x2e\x22\x82\xd7\xd3\xea\x71\x4d\xa2\x83\x01\x0f\x51\x7a\xf4\x69\xe1\xd5\x96\x54\xaa\xee\x0f\xc4\x38\xf0\x17\xaa\x55\x7e\xae\xa5\x02\x21\x00\x8b\x36\x96\x79\x38\x10\x65\xbb\xe0\x11\x35\x72\x3a\x4f\x9a\xdb\x22\x92\x95\x01\x7d\x37\xc4\xd3\x01\x38\xb9\x0a\x51\xcf\x6a\xb6",
)
PROVIDE_NFT_INFORMATION = Plugin(
type=1,
@@ -27,7 +27,7 @@ PROVIDE_NFT_INFORMATION = Plugin(
keyID=0,
algorithm=1,
sign=b"\x30\x45\x02\x20\x25\x69\x69\x86\xef\x5f\x0e\xe2\xf7\x2d\x9c\x6e\x41\xd7\xe2\xbf\x2e\x4f\x06\x37\x3a\xb2\x6d\x73\xeb\xe3\x26\xc7\xfd\x4c\x7a\x66\x02\x21\x00\x84\xf6\xb0\x64\xd8\x75\x0a\xe6\x8e\xd5\xdd\x01\x22\x96\xf3\x70\x30\x39\x0e\xc0\x6f\xf5\x34\xc5\xda\x6f\x0f\x4a\x44\x60\xaf\x33",
)
)
def test_transfer_erc721(cmd):
result: list = []