Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: fix typo #44

Draft
wants to merge 4 commits into
base: develop
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions .github/workflows/ci-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ jobs:
- name: Upload binary
uses: actions/upload-artifact@v4
with:
name: plugin_binaries
name: plugin_binary_${{ matrix.name }}
path: plugin_${{ matrix.name }}.elf

job_build_debug_app:
Expand Down Expand Up @@ -119,7 +119,7 @@ jobs:
- name: Upload binary
uses: actions/upload-artifact@v4
with:
name: ethereum_binaries
name: ethereum_binary_${{ matrix.name }}
path: ethereum_${{ matrix.name }}.elf

jobs-e2e-tests:
Expand All @@ -133,8 +133,9 @@ jobs:
- name: Download built binaries
uses: actions/download-artifact@v4
with:
name: *_binaries
pattern: "*_binary_*"
path: tests/elfs/
merge-multiple: true

- name: Install node
uses: actions/setup-node@v3
Expand Down
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)
);
Loading