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/build-angular@18.2.12 environment, filesystem, network, shell, unsafe Transitive: eval +601 665 MB google-wombot
npm/@angular/animations@18.2.12 None 0 1.73 MB google-wombot
npm/@angular/cli@18.2.12 environment, filesystem, network, shell, unsafe Transitive: eval +177 26.6 MB google-wombot
npm/@angular/common@18.2.12 None 0 11.5 MB google-wombot
npm/@angular/compiler-cli@18.2.12 Transitive: environment, filesystem, network, shell, unsafe +38 31.1 MB google-wombot
npm/@angular/compiler@18.2.12 None 0 9.24 MB google-wombot
npm/@angular/core@18.2.12 None +1 23.2 MB google-wombot
npm/@angular/forms@18.2.12 None 0 1.98 MB google-wombot
npm/@angular/localize@18.2.12 Transitive: environment, filesystem, network, shell, unsafe +37 6.7 MB google-wombot
npm/@angular/platform-browser-dynamic@18.2.12 None 0 81 kB google-wombot
npm/@angular/platform-browser@18.2.12 None 0 766 kB google-wombot
npm/@angular/router@18.2.12 None 0 2.44 MB google-wombot
npm/@babel/runtime@7.26.0 None 0 248 kB nicolo-ribaudo
npm/@changesets/apply-release-plan@7.0.5 filesystem 0 187 kB changesets-release-bot
npm/@changesets/assemble-release-plan@6.0.4 None 0 157 kB changesets-release-bot
npm/@changesets/cli@2.27.9 None 0 127 kB changesets-release-bot
npm/@changesets/config@3.0.3 filesystem 0 41.3 kB changesets-release-bot
npm/@changesets/get-dependents-graph@2.1.2 None 0 27.5 kB changesets-release-bot
npm/@changesets/get-release-plan@4.0.4 None 0 26.3 kB changesets-release-bot
npm/@changesets/git@3.0.1 filesystem 0 71 kB changesets-release-bot
npm/@changesets/logger@0.1.1 None 0 10.1 kB changesets-release-bot
npm/@changesets/pre@2.0.1 filesystem 0 25.7 kB changesets-release-bot
npm/@changesets/read@0.6.1 filesystem 0 33.5 kB changesets-release-bot
npm/@changesets/should-skip-package@0.1.1 None 0 3.31 kB changesets-release-bot
npm/@changesets/write@0.3.2 filesystem 0 17.5 kB changesets-release-bot
npm/@cucumber/cucumber@11.1.0 environment Transitive: filesystem, shell +51 11.8 MB cukebot
npm/@eslint-community/eslint-utils@4.4.1 None 0 378 kB eslint-community-bot, michaeldeboey
npm/@eslint-community/regexpp@4.12.1 None 0 473 kB eslint-community-bot, michaeldeboey
npm/@eslint/js@8.57.1 None 0 13.9 kB eslintbot
npm/@humanwhocodes/config-array@0.13.0 None 0 58.4 kB nzakas
npm/@vechain/sdk-core@1.0.0-rc.1 Transitive: network +22 82.4 MB
npm/@vechain/sdk-network@1.0.0-rc.1 Transitive: environment, network +19 74.4 MB
npm/cosmiconfig-typescript-loader@5.1.0 None 0 12.6 kB codex-
npm/eslint@8.57.1 environment, filesystem Transitive: shell +3 3.22 MB eslintbot
npm/fast-uri@3.0.3 None 0 108 kB climba03003, delvedor, eomm, ...7 more
npm/get-east-asian-width@1.3.0 None 0 15.7 kB sindresorhus
npm/happy-dom@15.11.6 network, shell, unsafe +2 12.3 MB davidortner
npm/lint-staged@15.2.10 None +1 166 kB okonet
npm/listr2@8.2.5 None 0 276 kB cenk1cenk2
npm/micromatch@4.0.8 None 0 56.6 kB doowb
npm/next@15.0.3 environment, filesystem, network, shell, unsafe Transitive: eval +41 1.44 GB vercel-release-bot
npm/package-manager-detector@0.2.2 None 0 36.4 kB antfu, benmccann, userquin
npm/spdx-license-ids@3.0.20 None 0 13 kB kemitchell, shinnn
npm/turbo-darwin-64@2.2.3 None 0 29.6 MB turbobot
npm/turbo-darwin-arm64@2.2.3 None 0 26 MB turbobot
npm/turbo-linux-64@2.2.3 None 0 30.9 MB turbobot
npm/turbo-linux-arm64@2.2.3 None 0 27.2 MB turbobot
npm/turbo-windows-64@2.2.3 None 0 39.2 MB turbobot
npm/turbo-windows-arm64@2.2.3 None 0 39.2 MB turbobot
npm/turbo@2.2.3 None 0 14.9 kB jaredpalmer, turbobot, vercel-release-bot
npm/yaml@2.5.1 environment 0 675 kB eemeli

🚮 Removed packages: npm/@angular-devkit/build-angular@16.2.16, npm/@angular/animations@16.2.12, npm/@angular/cli@16.2.16, npm/@angular/platform-browser-dynamic@16.2.12, npm/@angular/router@16.2.12, npm/@babel/helper-create-class-features-plugin@7.25.0, npm/@babel/helper-member-expression-to-functions@7.24.8, npm/@babel/helper-optimise-call-expression@7.24.7, npm/@babel/helper-plugin-utils@7.24.8, npm/@babel/helper-replace-supers@7.25.0, npm/@babel/helper-skip-transparent-expression-wrappers@7.24.7, npm/@babel/helper-string-parser@7.24.8, npm/@babel/helper-validator-identifier@7.24.7, npm/@babel/highlight@7.24.7, npm/@babel/parser@7.25.3, npm/@babel/template@7.25.0, npm/@babel/types@7.25.2, npm/@changesets/apply-release-plan@7.0.4, npm/@changesets/assemble-release-plan@6.0.3, npm/@changesets/cli@2.27.7, npm/@changesets/config@3.0.2, npm/@changesets/get-dependents-graph@2.1.1, npm/@changesets/get-release-plan@4.0.3, npm/@changesets/git@3.0.0, npm/@changesets/logger@0.1.0, npm/@changesets/pre@2.0.0, npm/@changesets/read@0.6.0, npm/@changesets/should-skip-package@0.1.0, npm/@changesets/write@0.3.1, npm/@cucumber/cucumber@10.9.0, npm/@eslint-community/eslint-utils@4.4.0, npm/@eslint-community/regexpp@4.11.0, npm/@eslint/js@8.57.0, npm/@humanwhocodes/config-array@0.11.14, npm/@vechain/sdk-core@1.0.0-beta.24, npm/@vechain/sdk-network@1.0.0-beta.29, npm/acorn@8.12.1, npm/cosmiconfig-typescript-loader@5.0.0, npm/debug@4.3.6, npm/escalade@3.1.2, npm/eslint@8.57.0, npm/fast-uri@3.0.1, npm/find-yarn-workspace-root2@1.2.16, npm/get-east-asian-width@1.2.0, npm/happy-dom@14.12.3, npm/is-core-module@2.15.0, npm/lint-staged@15.2.9, npm/load-yaml-file@0.2.0, npm/micromatch@4.0.7, npm/ms@2.1.2, npm/next@14.1.4, npm/picocolors@1.0.1, npm/pkg-dir@4.2.0, npm/preferred-pm@3.1.4, npm/spdx-license-ids@3.0.18, npm/to-fast-properties@2.0.0, npm/turbo-darwin-64@2.0.14, npm/turbo-darwin-arm64@2.0.14, npm/turbo-linux-64@2.0.14, npm/turbo-linux-arm64@2.0.14, npm/turbo-windows-64@2.0.14, npm/turbo-windows-arm64@2.0.14, npm/turbo@2.0.14, npm/typescript@4.9.5, npm/which-pm@2.2.0, npm/yaml@2.5.0

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 2 months 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