-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(claimSelfApeCoin): Implemented the claimSelfApeCoin test
- Loading branch information
1 parent
d998984
commit e00fdd7
Showing
21 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
Binary file added
BIN
+374 Bytes
tests/snapshots/ethereum_nanos_ethereum_claim_self_apecoin/00000.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+434 Bytes
tests/snapshots/ethereum_nanos_ethereum_claim_self_apecoin/00001.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+519 Bytes
tests/snapshots/ethereum_nanos_ethereum_claim_self_apecoin/00002.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+513 Bytes
tests/snapshots/ethereum_nanos_ethereum_claim_self_apecoin/00003.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+417 Bytes
tests/snapshots/ethereum_nanos_ethereum_claim_self_apecoin/00004.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+358 Bytes
tests/snapshots/ethereum_nanos_ethereum_claim_self_apecoin/00005.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+414 Bytes
tests/snapshots/ethereum_nanos_ethereum_claim_self_apecoin/00006.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+349 Bytes
tests/snapshots/ethereum_nanos_ethereum_claim_self_apecoin/00007.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+414 Bytes
tests/snapshots/ethereum_nanosp_ethereum_claim_self_apecoin/00000.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+485 Bytes
tests/snapshots/ethereum_nanosp_ethereum_claim_self_apecoin/00001.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+837 Bytes
tests/snapshots/ethereum_nanosp_ethereum_claim_self_apecoin/00002.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+417 Bytes
tests/snapshots/ethereum_nanosp_ethereum_claim_self_apecoin/00003.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+472 Bytes
tests/snapshots/ethereum_nanosp_ethereum_claim_self_apecoin/00004.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+382 Bytes
tests/snapshots/ethereum_nanosp_ethereum_claim_self_apecoin/00005.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+414 Bytes
tests/snapshots/ethereum_nanox_ethereum_claim_self_apecoin/00000.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+482 Bytes
tests/snapshots/ethereum_nanox_ethereum_claim_self_apecoin/00001.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+835 Bytes
tests/snapshots/ethereum_nanox_ethereum_claim_self_apecoin/00002.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+415 Bytes
tests/snapshots/ethereum_nanox_ethereum_claim_self_apecoin/00003.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+472 Bytes
tests/snapshots/ethereum_nanox_ethereum_claim_self_apecoin/00004.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+381 Bytes
tests/snapshots/ethereum_nanox_ethereum_claim_self_apecoin/00005.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
import { processTest, populateTransaction } from "../test.fixture"; | ||
|
||
const contractName = "ApeCoinStaking"; // <= Name of the smart contract | ||
|
||
const testLabel = "ethereum_claim_self_apecoin"; // <= Name of the test | ||
const testDirSuffix = "ethereum_claim_self_apecoin"; // <= directory to compare device snapshots to | ||
const testNetwork = "ethereum"; | ||
const signedPlugin = false; | ||
|
||
const contractAddr = "0x5954ab967bc958940b7eb73ee84797dc8a2afbb9"; // <= Address of the smart contract | ||
const chainID = 1; | ||
|
||
// From : https://etherscan.io/tx/0x85a7d0b00086ca41356c548e054ab3b1a5c74cd590a1e43737840637dc298458 | ||
const inputData = "0x8279e760"; | ||
|
||
// Create serializedTx and remove the "0x" prefix | ||
const serializedTx = populateTransaction(contractAddr, inputData, chainID); | ||
|
||
const devices = [ | ||
{ | ||
name: "nanos", | ||
label: "Nano S", | ||
steps: 6, // <= Define the number of steps for this test case and this device | ||
}, | ||
{ | ||
name: "nanox", | ||
label: "Nano X", | ||
steps: 4, // <= Define the number of steps for this test case and this device | ||
}, | ||
{ | ||
name: "nanosp", | ||
label: "Nano S+", | ||
steps: 4, // <= Define the number of steps for this test case and this device | ||
} | ||
]; | ||
|
||
devices.forEach((device) => | ||
processTest(device, contractName, testLabel, testDirSuffix, "", signedPlugin, serializedTx, testNetwork) | ||
); |