From 3c065d1a871c33acb9b40c6c75be374a5f4d0b87 Mon Sep 17 00:00:00 2001 From: Nicolas de Douhet Date: Wed, 18 Sep 2024 15:29:44 +0200 Subject: [PATCH 1/8] feat(stax): add screens for safeTransferFrom(address,address,uint256) function --- ethereum/nft/parsers.json | 102 +++++++++++++++++++++++++++++++++++++- 1 file changed, 101 insertions(+), 1 deletion(-) diff --git a/ethereum/nft/parsers.json b/ethereum/nft/parsers.json index cba761a2..06796c4d 100644 --- a/ethereum/nft/parsers.json +++ b/ethereum/nft/parsers.json @@ -80,7 +80,107 @@ "title": "APPROVE CONTRACT DATA" } } - ] + ], + "stax_flow": { + "approve_question": "Approve NFT operation?", + "approved_text": "You approved the NFT operation", + "cancel_question": "Cancel NFT operation review?", + "canceled_text": "You canceled the NFT operation review", + "flow_icon": 21, + "properties_screens": [ + { + "properties": [ + { + "property_ref": { + "key": "account.name" + } + }, + { + "property_ref": { + "key": "sci.contractName", + "label": "Collection name" + } + }, + { + "property_ref": { + "key": "sci.serviceName", + "label": "Service name" + } + } + ] + }, + { + "properties": [ + { + "property_ref": { + "key": "amount" + } + }, + { + "property_ref": { + "key": "maxGasPrice", + "label": "Base fee + buffer" + } + }, + { + "property_ref": { + "key": "gasLimit" + } + } + ] + }, + { + "properties": [ + { + "property_ref": { + "key": "maxFees", + "label": "Max fee" + } + } + ] + }, + { + "properties": [ + { + "property_ref": { + "key": "addr", + "label": "NFT address" + } + }, + { + "static_entry": { + "label": "Function", + "value": "Transfer NFT" + } + }, + { + "property_ref": { + "key": "sci.eth.arg.tokenID", + "label": "Token ID" + } + } + ] + }, + { + "properties": [ + { + "property_ref": { + "key": "sci.eth.arg.from", + "label": "Token sender" + } + }, + { + "property_ref": { + "key": "sci.eth.arg.to", + "label": "Token recipient" + } + } + ] + } + ], + "request_subtitle_text": "Non-Fungible Tokens (NFTs) define ownership of unique digital items", + "request_text": "Review NFT operation" + } }, "selector": "0x42842e0e" }, From e5e80325c480d7e1d2e2d0223e9a120cfc7d92f8 Mon Sep 17 00:00:00 2001 From: Nicolas de Douhet Date: Wed, 18 Sep 2024 15:30:09 +0200 Subject: [PATCH 2/8] feat(stax): add screens for safeTransferFrom(address,address,uint256,bytes) function --- ethereum/nft/parsers.json | 102 +++++++++++++++++++++++++++++++++++++- 1 file changed, 101 insertions(+), 1 deletion(-) diff --git a/ethereum/nft/parsers.json b/ethereum/nft/parsers.json index 06796c4d..f6aed259 100644 --- a/ethereum/nft/parsers.json +++ b/ethereum/nft/parsers.json @@ -258,7 +258,107 @@ "title": "APPROVE CONTRACT DATA" } } - ] + ], + "stax_flow": { + "approve_question": "Approve NFT operation?", + "approved_text": "You approved the NFT operation", + "cancel_question": "Cancel NFT operation review?", + "canceled_text": "You canceled the NFT operation review", + "flow_icon": 21, + "properties_screens": [ + { + "properties": [ + { + "property_ref": { + "key": "account.name" + } + }, + { + "property_ref": { + "key": "sci.contractName", + "label": "Collection name" + } + }, + { + "property_ref": { + "key": "sci.serviceName", + "label": "Service name" + } + } + ] + }, + { + "properties": [ + { + "property_ref": { + "key": "amount" + } + }, + { + "property_ref": { + "key": "maxGasPrice", + "label": "Base fee + buffer" + } + }, + { + "property_ref": { + "key": "gasLimit" + } + } + ] + }, + { + "properties": [ + { + "property_ref": { + "key": "maxFees", + "label": "Max fee" + } + } + ] + }, + { + "properties": [ + { + "property_ref": { + "key": "addr", + "label": "NFT address" + } + }, + { + "static_entry": { + "label": "Function", + "value": "Transfer NFT" + } + }, + { + "property_ref": { + "key": "sci.eth.arg.tokenID", + "label": "Token ID" + } + } + ] + }, + { + "properties": [ + { + "property_ref": { + "key": "sci.eth.arg.from", + "label": "Token sender" + } + }, + { + "property_ref": { + "key": "sci.eth.arg.to", + "label": "Token recipient" + } + } + ] + } + ], + "request_subtitle_text": "Non-Fungible Tokens (NFTs) define ownership of unique digital items", + "request_text": "Review NFT operation" + } }, "selector": "0xb88d4fde" }, From 85ede53f298bd55ff1824281b73ba798a15ddab4 Mon Sep 17 00:00:00 2001 From: Nicolas de Douhet Date: Wed, 18 Sep 2024 15:30:39 +0200 Subject: [PATCH 3/8] feat(stax): add screens for approve(address,uint256) function --- ethereum/nft/parsers.json | 96 ++++++++++++++++++++++++++++++++++++++- 1 file changed, 95 insertions(+), 1 deletion(-) diff --git a/ethereum/nft/parsers.json b/ethereum/nft/parsers.json index f6aed259..aefd15a2 100644 --- a/ethereum/nft/parsers.json +++ b/ethereum/nft/parsers.json @@ -419,7 +419,101 @@ "title": "APPROVE CONTRACT DATA" } } - ] + ], + "stax_flow": { + "approve_question": "Approve NFT operation?", + "approved_text": "You approved the NFT operation", + "cancel_question": "Cancel NFT operation review?", + "canceled_text": "You canceled the NFT operation review", + "flow_icon": 21, + "properties_screens": [ + { + "properties": [ + { + "property_ref": { + "key": "account.name" + } + }, + { + "property_ref": { + "key": "sci.contractName", + "label": "Collection name" + } + }, + { + "property_ref": { + "key": "sci.serviceName", + "label": "Service name" + } + } + ] + }, + { + "properties": [ + { + "property_ref": { + "key": "amount" + } + }, + { + "property_ref": { + "key": "maxGasPrice", + "label": "Base fee + buffer" + } + }, + { + "property_ref": { + "key": "gasLimit" + } + } + ] + }, + { + "properties": [ + { + "property_ref": { + "key": "maxFees", + "label": "Max fee" + } + } + ] + }, + { + "properties": [ + { + "property_ref": { + "key": "addr", + "label": "NFT address" + } + }, + { + "static_entry": { + "label": "Function", + "value": "Approve NFT" + } + }, + { + "property_ref": { + "key": "sci.eth.arg.tokenID", + "label": "Token to approve" + } + } + ] + }, + { + "properties": [ + { + "property_ref": { + "key": "sci.eth.arg.to", + "label": "Address to approve" + } + } + ] + } + ], + "request_subtitle_text": "Non-Fungible Tokens (NFTs) define ownership of unique digital items", + "request_text": "Review NFT operation" + } }, "selector": "0x095ea7b3" }, From 550c61e9094b7e3b1d880cedfae99cb07027ac21 Mon Sep 17 00:00:00 2001 From: Nicolas de Douhet Date: Wed, 18 Sep 2024 15:30:58 +0200 Subject: [PATCH 4/8] feat(stax): add screens for setApprovalForAll(address,bool) function --- ethereum/nft/parsers.json | 96 ++++++++++++++++++++++++++++++++++++++- 1 file changed, 95 insertions(+), 1 deletion(-) diff --git a/ethereum/nft/parsers.json b/ethereum/nft/parsers.json index aefd15a2..9655512f 100644 --- a/ethereum/nft/parsers.json +++ b/ethereum/nft/parsers.json @@ -574,7 +574,101 @@ "title": "APPROVE CONTRACT DATA" } } - ] + ], + "stax_flow": { + "approve_question": "Approve NFT operation?", + "approved_text": "You approved the NFT operation", + "cancel_question": "Cancel NFT operation review?", + "canceled_text": "You canceled the NFT operation review", + "flow_icon": 21, + "properties_screens": [ + { + "properties": [ + { + "property_ref": { + "key": "account.name" + } + }, + { + "property_ref": { + "key": "sci.contractName", + "label": "Collection name" + } + }, + { + "property_ref": { + "key": "sci.serviceName", + "label": "Service name" + } + } + ] + }, + { + "properties": [ + { + "property_ref": { + "key": "amount" + } + }, + { + "property_ref": { + "key": "maxGasPrice", + "label": "Base fee + buffer" + } + }, + { + "property_ref": { + "key": "gasLimit" + } + } + ] + }, + { + "properties": [ + { + "property_ref": { + "key": "maxFees", + "label": "Max fee" + } + } + ] + }, + { + "properties": [ + { + "property_ref": { + "key": "addr", + "label": "NFT address" + } + }, + { + "static_entry": { + "label": "Function", + "value": "Set approval for all" + } + } + ] + }, + { + "properties": [ + { + "property_ref": { + "key": "sci.eth.arg.operator", + "label": "Operator" + } + }, + { + "property_ref": { + "key": "sci.eth.arg._approved", + "label": "Approved" + } + } + ] + } + ], + "request_subtitle_text": "Non-Fungible Tokens (NFTs) define ownership of unique digital items", + "request_text": "Review NFT operation" + } }, "selector": "0xa22cb465" }, From a6d06851b7f8d686359300db2288bd0b25dde223 Mon Sep 17 00:00:00 2001 From: Nicolas de Douhet Date: Wed, 18 Sep 2024 15:31:29 +0200 Subject: [PATCH 5/8] feat(stax): add screens for mint(address) function --- ethereum/nft/parsers.json | 90 ++++++++++++++++++++++++++++++++++++++- 1 file changed, 89 insertions(+), 1 deletion(-) diff --git a/ethereum/nft/parsers.json b/ethereum/nft/parsers.json index 9655512f..e0b125c4 100644 --- a/ethereum/nft/parsers.json +++ b/ethereum/nft/parsers.json @@ -712,7 +712,95 @@ "title": "APPROVE CONTRACT DATA" } } - ] + ], + "stax_flow": { + "approve_question": "Approve NFT operation?", + "approved_text": "You approved the NFT operation", + "cancel_question": "Cancel NFT operation review?", + "canceled_text": "You canceled the NFT operation review", + "flow_icon": 21, + "properties_screens": [ + { + "properties": [ + { + "property_ref": { + "key": "account.name" + } + }, + { + "property_ref": { + "key": "sci.contractName", + "label": "Collection name" + } + }, + { + "property_ref": { + "key": "sci.serviceName", + "label": "Service name" + } + } + ] + }, + { + "properties": [ + { + "property_ref": { + "key": "amount" + } + }, + { + "property_ref": { + "key": "maxGasPrice", + "label": "Base fee + buffer" + } + }, + { + "property_ref": { + "key": "gasLimit" + } + } + ] + }, + { + "properties": [ + { + "property_ref": { + "key": "maxFees", + "label": "Max fee" + } + } + ] + }, + { + "properties": [ + { + "property_ref": { + "key": "addr", + "label": "NFT address" + } + }, + { + "static_entry": { + "label": "Function", + "value": "Mint NFT" + } + } + ] + }, + { + "properties": [ + { + "property_ref": { + "key": "sci.eth.arg.to", + "label": "Receiver" + } + } + ] + } + ], + "request_subtitle_text": "Non-Fungible Tokens (NFTs) define ownership of unique digital items", + "request_text": "Review NFT operation" + } }, "selector": "0x6a627842" } From bb5349f3ea44c109b2ff327f0027d3a07c95f163 Mon Sep 17 00:00:00 2001 From: Nicolas de Douhet Date: Wed, 18 Sep 2024 15:31:47 +0200 Subject: [PATCH 6/8] feat(stax): add screens for safeTransferFrom(address,address,uint256,uint256,bytes) function --- ethereum/nft/parsers.json | 112 +++++++++++++++++++++++++++++++++++++- 1 file changed, 111 insertions(+), 1 deletion(-) diff --git a/ethereum/nft/parsers.json b/ethereum/nft/parsers.json index e0b125c4..404df1dc 100644 --- a/ethereum/nft/parsers.json +++ b/ethereum/nft/parsers.json @@ -901,7 +901,117 @@ "title": "APPROVE CONTRACT DATA" } } - ] + ], + "stax_flow": { + "approve_question": "Approve NFT operation?", + "approved_text": "You approved the NFT operation", + "cancel_question": "Cancel NFT operation review?", + "canceled_text": "You canceled the NFT operation review", + "flow_icon": 21, + "properties_screens": [ + { + "properties": [ + { + "property_ref": { + "key": "account.name" + } + }, + { + "property_ref": { + "key": "sci.contractName", + "label": "Collection name" + } + }, + { + "property_ref": { + "key": "sci.serviceName", + "label": "Service name" + } + } + ] + }, + { + "properties": [ + { + "property_ref": { + "key": "amount" + } + }, + { + "property_ref": { + "key": "maxGasPrice", + "label": "Base fee + buffer" + } + }, + { + "property_ref": { + "key": "gasLimit" + } + } + ] + }, + { + "properties": [ + { + "property_ref": { + "key": "maxFees", + "label": "Max fee" + } + } + ] + }, + { + "properties": [ + { + "property_ref": { + "key": "addr", + "label": "NFT address" + } + }, + { + "static_entry": { + "label": "Function", + "value": "Transfer NFT" + } + }, + { + "property_ref": { + "key": "sci.eth.arg.tokenID", + "label": "Token ID" + } + } + ] + }, + { + "properties": [ + { + "property_ref": { + "key": "sci.eth.arg.amount", + "label": "Quantity" + } + }, + { + "property_ref": { + "key": "sci.eth.arg.from", + "label": "Token sender" + } + } + ] + }, + { + "properties": [ + { + "property_ref": { + "key": "sci.eth.arg.to", + "label": "Token recipient" + } + } + ] + } + ], + "request_subtitle_text": "Non-Fungible Tokens (NFTs) define ownership of unique digital items", + "request_text": "Review NFT operation" + } }, "selector": "0xf242432a" }, From 4a347fe59d842875bbb42b8d7ed83c8505690a80 Mon Sep 17 00:00:00 2001 From: Nicolas de Douhet Date: Wed, 18 Sep 2024 15:32:04 +0200 Subject: [PATCH 7/8] feat(stax): add screens for safeTransferFrom(address,address,uint256,uint256) function --- ethereum/nft/parsers.json | 112 +++++++++++++++++++++++++++++++++++++- 1 file changed, 111 insertions(+), 1 deletion(-) diff --git a/ethereum/nft/parsers.json b/ethereum/nft/parsers.json index 404df1dc..5ef1da33 100644 --- a/ethereum/nft/parsers.json +++ b/ethereum/nft/parsers.json @@ -1106,7 +1106,117 @@ "title": "APPROVE CONTRACT DATA" } } - ] + ], + "stax_flow": { + "approve_question": "Approve NFT operation?", + "approved_text": "You approved the NFT operation", + "cancel_question": "Cancel NFT operation review?", + "canceled_text": "You canceled the NFT operation review", + "flow_icon": 21, + "properties_screens": [ + { + "properties": [ + { + "property_ref": { + "key": "account.name" + } + }, + { + "property_ref": { + "key": "sci.contractName", + "label": "Collection name" + } + }, + { + "property_ref": { + "key": "sci.serviceName", + "label": "Service name" + } + } + ] + }, + { + "properties": [ + { + "property_ref": { + "key": "amount" + } + }, + { + "property_ref": { + "key": "maxGasPrice", + "label": "Base fee + buffer" + } + }, + { + "property_ref": { + "key": "gasLimit" + } + } + ] + }, + { + "properties": [ + { + "property_ref": { + "key": "maxFees", + "label": "Max fee" + } + } + ] + }, + { + "properties": [ + { + "property_ref": { + "key": "addr", + "label": "NFT address" + } + }, + { + "static_entry": { + "label": "Function", + "value": "Transfer NFT" + } + }, + { + "property_ref": { + "key": "sci.eth.arg.tokenID", + "label": "Token ID" + } + } + ] + }, + { + "properties": [ + { + "property_ref": { + "key": "sci.eth.arg.amount", + "label": "Quantity" + } + }, + { + "property_ref": { + "key": "sci.eth.arg.from", + "label": "Token sender" + } + } + ] + }, + { + "properties": [ + { + "property_ref": { + "key": "sci.eth.arg.to", + "label": "Token recipient" + } + } + ] + } + ], + "request_subtitle_text": "Non-Fungible Tokens (NFTs) define ownership of unique digital items", + "request_text": "Review NFT operation" + } }, "selector": "0x0febdd49" }, From e677a8a77c1076ef29c463b8261c6821426205e8 Mon Sep 17 00:00:00 2001 From: Nicolas de Douhet Date: Wed, 18 Sep 2024 15:32:20 +0200 Subject: [PATCH 8/8] feat(stax): add screens for setApprovalForAll(address,bool) function --- ethereum/nft/parsers.json | 96 ++++++++++++++++++++++++++++++++++++++- 1 file changed, 95 insertions(+), 1 deletion(-) diff --git a/ethereum/nft/parsers.json b/ethereum/nft/parsers.json index 5ef1da33..c0037716 100644 --- a/ethereum/nft/parsers.json +++ b/ethereum/nft/parsers.json @@ -1277,7 +1277,101 @@ "title": "APPROVE CONTRACT DATA" } } - ] + ], + "stax_flow": { + "approve_question": "Approve NFT operation?", + "approved_text": "You approved the NFT operation", + "cancel_question": "Cancel NFT operation review?", + "canceled_text": "You canceled the NFT operation review", + "flow_icon": 21, + "properties_screens": [ + { + "properties": [ + { + "property_ref": { + "key": "account.name" + } + }, + { + "property_ref": { + "key": "sci.contractName", + "label": "Collection name" + } + }, + { + "property_ref": { + "key": "sci.serviceName", + "label": "Service name" + } + } + ] + }, + { + "properties": [ + { + "property_ref": { + "key": "amount" + } + }, + { + "property_ref": { + "key": "maxGasPrice", + "label": "Base fee + buffer" + } + }, + { + "property_ref": { + "key": "gasLimit" + } + } + ] + }, + { + "properties": [ + { + "property_ref": { + "key": "maxFees", + "label": "Max fee" + } + } + ] + }, + { + "properties": [ + { + "property_ref": { + "key": "addr", + "label": "NFT address" + } + }, + { + "static_entry": { + "label": "Function", + "value": "Set approval for all" + } + } + ] + }, + { + "properties": [ + { + "property_ref": { + "key": "sci.eth.arg.operator", + "label": "Operator" + } + }, + { + "property_ref": { + "key": "sci.eth.arg.approved", + "label": "Approved" + } + } + ] + } + ], + "request_subtitle_text": "Non-Fungible Tokens (NFTs) define ownership of unique digital items", + "request_text": "Review NFT operation" + } }, "selector": "0xa22cb465" }