-
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.
- Loading branch information
1 parent
5406436
commit 8b148c7
Showing
6 changed files
with
163 additions
and
1 deletion.
There are no files selected for viewing
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
Empty file.
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
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,47 @@ | ||
import { processTest, populateTransaction } from "../test.fixture"; | ||
|
||
const contractName = "TransparentUpgradeableProxy"; // <= Name of the smart contract | ||
|
||
const testLabel = "arbitrum_grt_delegate"; // <= Name of the test | ||
const testDirSuffix = "arbitrum_grt_delegate"; // <= directory to compare device snapshots to | ||
const testNetwork = "arbitrum"; | ||
const signedPlugin = false; | ||
|
||
const contractAddr = "0x00669a4cf01450b64e8a2a20e9b1fcb71e61ef03"; // <= Address of the smart contract | ||
const chainID = 42161; | ||
|
||
// From : https://arbiscan.io/tx/0xf421b54e8fe9a2d0ae3a1c0d668ca2cca4ba6ac1ace5ff03ce3b0a449a6e2331 | ||
const inputData = "0x026e402b0000000000000000000000001b7e0068ca1d7929c8c56408d766e1510e54d98d000000000000000000000000000000000000000000001535cd06d1a3268e0f8a"; | ||
|
||
// Create serializedTx and remove the "0x" prefix | ||
const serializedTx = populateTransaction(contractAddr, inputData, chainID); | ||
|
||
const devices = [ | ||
{ | ||
name: "nanos", | ||
label: "Nano S", | ||
steps: 7, // <= Define the number of steps for this test case and this device | ||
}, | ||
{ | ||
name: "nanox", | ||
label: "Nano X", | ||
steps: 5, // <= Define the number of steps for this test case and this device | ||
}, | ||
{ | ||
name: "nanosp", | ||
label: "Nano S+", | ||
steps: 5, // <= Define the number of steps for this test case and this device | ||
}, | ||
{ | ||
name: "stax", | ||
label: "Stax", | ||
}, | ||
{ | ||
name: "flex", | ||
label: "Flex", | ||
} | ||
]; | ||
|
||
devices.forEach((device) => | ||
processTest(device, contractName, testLabel, testDirSuffix, "", signedPlugin, serializedTx, testNetwork) | ||
); |
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,47 @@ | ||
import { processTest, populateTransaction } from "../test.fixture"; | ||
|
||
const contractName = "TransparentUpgradeableProxy"; // <= Name of the smart contract | ||
|
||
const testLabel = "arbitrum_grt_undelegate"; // <= Name of the test | ||
const testDirSuffix = "arbitrum_grt_undelegate"; // <= directory to compare device snapshots to | ||
const testNetwork = "arbitrum"; | ||
const signedPlugin = false; | ||
|
||
const contractAddr = "0x00669a4cf01450b64e8a2a20e9b1fcb71e61ef03"; // <= Address of the smart contract | ||
const chainID = 42161; | ||
|
||
// From : https://arbiscan.io/tx/0x8149e6fe2a13bef12dc0652720cd5856163138af6c4f6545a92cd651495139ad | ||
const inputData = "0x4d99dd16000000000000000000000000feff9093f6b32d0e5cddba743b06a1fedb87c004000000000000000000000000000000000000000000000000049e5e12b47b88bd"; | ||
|
||
// 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 | ||
}, | ||
{ | ||
name: "stax", | ||
label: "Stax", | ||
}, | ||
{ | ||
name: "flex", | ||
label: "Flex", | ||
} | ||
]; | ||
|
||
devices.forEach((device) => | ||
processTest(device, contractName, testLabel, testDirSuffix, "", signedPlugin, serializedTx, testNetwork) | ||
); |
47 changes: 47 additions & 0 deletions
47
tests/src/arbitrum/arbitrum_grt_withdraw_delegated.test.js
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,47 @@ | ||
import { processTest, populateTransaction } from "../test.fixture"; | ||
|
||
const contractName = "TransparentUpgradeableProxy"; // <= Name of the smart contract | ||
|
||
const testLabel = "arbitrum_grt_withdraw_delegated"; // <= Name of the test | ||
const testDirSuffix = "arbitrum_grt_withdraw_delegated"; // <= directory to compare device snapshots to | ||
const testNetwork = "arbitrum"; | ||
const signedPlugin = false; | ||
|
||
const contractAddr = "0x00669a4cf01450b64e8a2a20e9b1fcb71e61ef03"; // <= Address of the smart contract | ||
const chainID = 42161; | ||
|
||
// From : https://arbiscan.io/tx/0x94ff11c4144b4823a39acd6e861670d54010436c93f50608f2d84db8ac87941c | ||
const inputData = "0x51a60b020000000000000000000000001b7e0068ca1d7929c8c56408d766e1510e54d98d0000000000000000000000000000000000000000000000000000000000000000"; | ||
|
||
// 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 | ||
}, | ||
{ | ||
name: "stax", | ||
label: "Stax", | ||
}, | ||
{ | ||
name: "flex", | ||
label: "Flex", | ||
} | ||
]; | ||
|
||
devices.forEach((device) => | ||
processTest(device, contractName, testLabel, testDirSuffix, "", signedPlugin, serializedTx, testNetwork) | ||
); |