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

Implement new vechain sdk #276

Merged
merged 11 commits into from
Dec 12, 2024
Merged

Implement new vechain sdk #276

merged 11 commits into from
Dec 12, 2024

Conversation

Valazan
Copy link
Collaborator

@Valazan Valazan commented Sep 3, 2024

No description provided.

@Valazan Valazan marked this pull request as draft September 3, 2024 14:26
Copy link

socket-security bot commented Sep 3, 2024

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/@angular-devkit/[email protected] environment, filesystem, network, shell, unsafe Transitive: eval +601 665 MB google-wombot
npm/@angular/[email protected] None 0 1.73 MB google-wombot
npm/@angular/[email protected] environment, filesystem, network, shell, unsafe Transitive: eval +177 26.6 MB google-wombot
npm/@angular/[email protected] None 0 11.5 MB google-wombot
npm/@angular/[email protected] Transitive: environment, filesystem, network, shell, unsafe +38 31.1 MB google-wombot
npm/@angular/[email protected] None 0 9.24 MB google-wombot
npm/@angular/[email protected] None +1 23.2 MB google-wombot
npm/@angular/[email protected] None 0 1.98 MB google-wombot
npm/@angular/[email protected] Transitive: environment, filesystem, network, shell, unsafe +37 6.7 MB google-wombot
npm/@angular/[email protected] None 0 81 kB google-wombot
npm/@angular/[email protected] None 0 766 kB google-wombot
npm/@angular/[email protected] None 0 2.44 MB google-wombot
npm/@babel/[email protected] None 0 248 kB nicolo-ribaudo
npm/@changesets/[email protected] filesystem 0 187 kB changesets-release-bot
npm/@changesets/[email protected] None 0 157 kB changesets-release-bot
npm/@changesets/[email protected] None 0 127 kB changesets-release-bot
npm/@changesets/[email protected] filesystem 0 41.3 kB changesets-release-bot
npm/@changesets/[email protected] None 0 27.5 kB changesets-release-bot
npm/@changesets/[email protected] None 0 26.3 kB changesets-release-bot
npm/@changesets/[email protected] filesystem 0 71 kB changesets-release-bot
npm/@changesets/[email protected] None 0 10.1 kB changesets-release-bot
npm/@changesets/[email protected] filesystem 0 25.7 kB changesets-release-bot
npm/@changesets/[email protected] filesystem 0 33.5 kB changesets-release-bot
npm/@changesets/[email protected] None 0 3.31 kB changesets-release-bot
npm/@changesets/[email protected] filesystem 0 17.5 kB changesets-release-bot
npm/@cucumber/[email protected] environment Transitive: filesystem, shell +51 11.8 MB cukebot
npm/@eslint-community/[email protected] None 0 378 kB eslint-community-bot, michaeldeboey
npm/@eslint-community/[email protected] None 0 473 kB eslint-community-bot, michaeldeboey
npm/@eslint/[email protected] None 0 13.9 kB eslintbot
npm/@humanwhocodes/[email protected] None 0 58.4 kB nzakas
npm/@vechain/[email protected] Transitive: network +22 82.4 MB
npm/@vechain/[email protected] Transitive: environment, network +19 74.4 MB
npm/[email protected] None 0 12.6 kB codex-
npm/[email protected] environment, filesystem Transitive: shell +3 3.22 MB eslintbot
npm/[email protected] None 0 108 kB climba03003, delvedor, eomm, ...7 more
npm/[email protected] None 0 15.7 kB sindresorhus
npm/[email protected] network, shell, unsafe +2 12.3 MB davidortner
npm/[email protected] None +1 166 kB okonet
npm/[email protected] None 0 276 kB cenk1cenk2
npm/[email protected] None 0 56.6 kB doowb
npm/[email protected] environment, filesystem, network, shell, unsafe Transitive: eval +41 1.44 GB vercel-release-bot
npm/[email protected] None 0 36.4 kB antfu, benmccann, userquin
npm/[email protected] None 0 13 kB kemitchell, shinnn
npm/[email protected] None 0 29.6 MB turbobot
npm/[email protected] None 0 26 MB turbobot
npm/[email protected] None 0 30.9 MB turbobot
npm/[email protected] None 0 27.2 MB turbobot
npm/[email protected] None 0 39.2 MB turbobot
npm/[email protected] None 0 39.2 MB turbobot
npm/[email protected] None 0 14.9 kB jaredpalmer, turbobot, vercel-release-bot
npm/[email protected] environment 0 675 kB eemeli

🚮 Removed packages: npm/@angular-devkit/[email protected], npm/@angular/[email protected], npm/@angular/[email protected], npm/@angular/[email protected], npm/@angular/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@changesets/[email protected], npm/@changesets/[email protected], npm/@changesets/[email protected], npm/@changesets/[email protected], npm/@changesets/[email protected], npm/@changesets/[email protected], npm/@changesets/[email protected], npm/@changesets/[email protected], npm/@changesets/[email protected], npm/@changesets/[email protected], npm/@changesets/[email protected], npm/@changesets/[email protected], npm/@cucumber/[email protected], npm/@eslint-community/[email protected], npm/@eslint-community/[email protected], npm/@eslint/[email protected], npm/@humanwhocodes/[email protected], npm/@vechain/[email protected], npm/@vechain/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected]

View full report↗︎

* refactor: remove connex and init signer within dappkit

* chore(deps): remove connex

* fix: gha syntax error

* chore(deps): remove connex

* fix: tests

* fix: build errors

* revert: add sync2 back int

* fix: tests

* refactor: yarn, e2e and eslint (#311)

* refactor: yarn, e2e and eslint

* fix(GHA): install before install:all

* fix(GHA): install before install:all

* fix(extension): bug in extension

* fix(extension): bug in extension

* fix: update cucumber

* fix: run stop preview after e2e

* fix: lint errors

* fix: sync errors

* fix: sync2 not connecting

* fix: sync2 txs broken

* fix: tests

* fix: tests

* fix: yarn

* fix: yarn workspaces

* fix: missing declarations in test

* fix: missing declarations in test

* fix: missing declarations in test

* fix: missing declarations in test

* fix: dapp-kit-react tsx

* fix: add exports to package.json

* fix: ignore cucumber in examples

* fix: set type to module

* fix: package.jsons

* fix: add type module

* fix: package.jsons

* fix: package.jsons

* fix: fix angular

* chore: documenation
@@ -20,5 +20,5 @@
'..',
'veworld-dist.zip',
);
await asyncExec(`unzip ${zipPath} -d ${distPath}`);
await asyncExec(`unzip -o ${zipPath}`);

Check warning

Code scanning / CodeQL

Shell command built from environment values Medium test

This shell command depends on an uncontrolled
absolute path
.

Copilot Autofix AI 29 days ago

To fix the problem, we should avoid constructing the shell command as a single string that the shell interprets. Instead, we should use execFile or execFileSync to pass the command and its arguments separately. This approach ensures that the file path is treated as a literal argument and not subject to shell interpretation.

Specifically, we will:

  1. Replace the use of exec with execFile.
  2. Pass the command (unzip) and its arguments (-o and the file path) as separate parameters to execFile.
Suggested changeset 1
tests/e2e/src/config/hooks/ExtensionHook.ts

Autofix patch

Autofix patch
Run the following command in your local git repository to apply this patch
cat << 'EOF' | git apply
diff --git a/tests/e2e/src/config/hooks/ExtensionHook.ts b/tests/e2e/src/config/hooks/ExtensionHook.ts
--- a/tests/e2e/src/config/hooks/ExtensionHook.ts
+++ b/tests/e2e/src/config/hooks/ExtensionHook.ts
@@ -3,6 +3,6 @@
 import * as util from 'node:util';
-import { exec } from 'node:child_process';
+import { execFile } from 'node:child_process';
 import { BeforeAll } from '@cucumber/cucumber';
 
-const asyncExec = util.promisify(exec);
+const asyncExecFile = util.promisify(execFile);
 
@@ -22,3 +22,3 @@
     );
-    await asyncExec(`unzip -o ${zipPath}`);
+    await asyncExecFile('unzip', ['-o', zipPath]);
 });
EOF
@@ -3,6 +3,6 @@
import * as util from 'node:util';
import { exec } from 'node:child_process';
import { execFile } from 'node:child_process';
import { BeforeAll } from '@cucumber/cucumber';

const asyncExec = util.promisify(exec);
const asyncExecFile = util.promisify(execFile);

@@ -22,3 +22,3 @@
);
await asyncExec(`unzip -o ${zipPath}`);
await asyncExecFile('unzip', ['-o', zipPath]);
});
Copilot is powered by AI and may make mistakes. Always verify output.
Positive Feedback
Negative Feedback

Provide additional feedback

Please help us improve GitHub Copilot by sharing more details about this comment.

Please select one or more of the options
@fabiorigam fabiorigam marked this pull request as ready for review December 12, 2024 15:43
@fabiorigam fabiorigam merged commit 1f8b872 into main-v2 Dec 12, 2024
8 checks passed
@fabiorigam fabiorigam deleted the implement-new-vechain-sdk branch December 12, 2024 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants