Skip to content

Commit

Permalink
ci: fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven2505 committed Jan 24, 2025
1 parent 5406436 commit 8b148c7
Show file tree
Hide file tree
Showing 6 changed files with 163 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ jobs:
- name: Download built binaries
uses: actions/download-artifact@v4
with:
name: *_binaries
name: "*_binaries"
path: tests/elfs/

- name: Install node
Expand Down
Empty file.
21 changes: 21 additions & 0 deletions tests/networks/arbitrum/stakekit/b2c.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,27 @@
}
}
}
{
"address": "0x00669a4cf01450b64e8a2a20e9b1fcb71e61ef03",
"contractName": "GraphProxy",
"selectors": {
"0x026e402b": {
"erc20OfInterest": [],
"method": "delegate",
"plugin": "StakeKit"
},
"0x4d99dd16": {
"erc20OfInterest": [],
"method": "undelegate",
"plugin": "StakeKit"
},
"0x51a60b02": {
"erc20OfInterest": [],
"method": "withdrawDelegated",
"plugin": "StakeKit"
}
}
}
],
"name": "StakeKit"
}
47 changes: 47 additions & 0 deletions tests/src/arbitrum/arbitrum_grt_delegate.test.js
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)
);
47 changes: 47 additions & 0 deletions tests/src/arbitrum/arbitrum_grt_undelegate.test.js
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 tests/src/arbitrum/arbitrum_grt_withdraw_delegated.test.js
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)
);

0 comments on commit 8b148c7

Please sign in to comment.