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

🗞️ Add Aptos CLI example directories and stubs #1080

Open
wants to merge 184 commits into
base: main
Choose a base branch
from

Conversation

ryandgoulding
Copy link
Contributor

@ryandgoulding ryandgoulding commented Nov 25, 2024

In this PR:

  • added stubs for all relevant aptos-examples, including adding them to create-lz-oapp under the flag LZ_ENABLE_EXPERIMENTAL_APTOS_EXAMPLES:
// ./packages/create-lz-oapp/src/config.ts
...(process.env.LZ_ENABLE_EXPERIMENTAL_APTOS_EXAMPLES
            ? [
                  {
                      id: 'oft-aptos',
                      label: 'OFT (Aptos Fungible Asset)',
                      repository,
                      directory: 'examples/oft-aptos',
                      ref,
                  },
                  {
                      id: 'oft-adapter-aptos',
                      label: 'OFT Adapter (Aptos Fungible Asset)',
                      repository,
                      directory: 'examples/oft-adapter-aptos',
                      ref,
                  },
                  {
                      id: 'oft-adapter-aptos-coin',
                      label: 'OFT Adapter (Aptos Coin)',
                      repository,
                      directory: 'examples/oft-adapter-aptos-coin',
                      ref,
                  },
                  {
                      id: 'oft-aptos-coin',
                      label: 'OFT (Aptos Coin)',
                      repository,
                      directory: 'examples/oft-aptos-coin',
                      ref,
                  },
              ]
            : []),

This PR should be used for shipping the final version of the Aptos CLI SDK.

To-Do:

Copy link

socket-security bot commented Nov 25, 2024

🚨 Potential security issues detected. Learn more about Socket for GitHub ↗︎

To accept the risk, merge this PR and you will not be notified again.

Alert Package NoteSourceCI
Protestware or potentially unwanted behavior npm/[email protected]
  • Note: This package prints a protestware console message on install regarding Ukraine for users with Russian language locale
⚠︎
Protestware or potentially unwanted behavior npm/[email protected]
  • Note: The script attempts to run a local post-install script, which could potentially contain malicious code. The error handling suggests that it is designed to fail silently, which is a common tactic in malicious scripts.
⚠︎
Unstable ownership npm/@nomicfoundation/[email protected] ⚠︎
Unpopular package npm/@layerzerolabs/[email protected] ⚠︎
Unpopular package npm/@layerzerolabs/[email protected] ⚠︎
Unpopular package npm/@layerzerolabs/[email protected] ⚠︎
Unpopular package npm/@layerzerolabs/[email protected] ⚠︎
Unpopular package npm/@layerzerolabs/[email protected] ⚠︎
Unpopular package npm/@layerzerolabs/[email protected] ⚠︎
Unpopular package npm/@layerzerolabs/[email protected] ⚠︎
Unpopular package npm/@layerzerolabs/[email protected] ⚠︎
Unpopular package npm/@layerzerolabs/[email protected] ⚠︎
Unpopular package npm/@layerzerolabs/[email protected] ⚠︎
Unpopular package npm/@layerzerolabs/[email protected] ⚠︎
Unpopular package npm/@layerzerolabs/[email protected] ⚠︎
Unpopular package npm/@layerzerolabs/[email protected] ⚠︎
Unpopular package npm/@layerzerolabs/[email protected] ⚠︎
Unpopular package npm/@layerzerolabs/[email protected] ⚠︎
Unpopular package npm/@layerzerolabs/[email protected] ⚠︎
Unpopular package npm/@layerzerolabs/[email protected] ⚠︎

View full report↗︎

Next steps

What is protestware?

This package is a joke, parody, or includes undocumented or hidden behavior unrelated to its primary function.

Consider that consuming this package may come along with functionality unrelated to its primary purpose.

What is unstable ownership?

A new collaborator has begun publishing package versions. Package stability and security risk may be elevated.

Try to reduce the number of authors you depend on to reduce the risk to malicious actors gaining access to your supply chain. Packages should remove inactive collaborators with publishing rights from packages on npm.

What are unpopular packages?

This package is not very popular.

Unpopular packages may have less maintenance and contain other problems.

Take a deeper look at the dependency

Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support [AT] socket [DOT] dev.

Remove the package

If you happen to install a dependency that Socket reports as Known Malware you should immediately remove it and select a different dependency. For other alert types, you may may wish to investigate alternative packages or consider if there are other ways to mitigate the specific risk posed by the dependency.

Mark a package as acceptable risk

To ignore an alert, reply with a comment starting with @SocketSecurity ignore followed by a space separated list of ecosystem/package-name@version specifiers. e.g. @SocketSecurity ignore npm/[email protected] or ignore all packages with @SocketSecurity ignore-all

@St0rmBr3w St0rmBr3w mentioned this pull request Dec 10, 2024
@St0rmBr3w St0rmBr3w force-pushed the goulding/krak/aptops-v2-examples branch from b389051 to 0055df2 Compare December 10, 2024 21:38
@St0rmBr3w St0rmBr3w changed the title Goulding/krak/aptops v2 examples 🗞️ Add Aptos CLI example directories and stubs Dec 10, 2024
Copy link

socket-security bot commented Dec 11, 2024

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

Package New capabilities Transitives Size Publisher
npm/@aptos-labs/[email protected] network Transitive: environment, filesystem +33 14.4 MB aptos-labs
npm/@babel/[email protected] Transitive: environment, filesystem, shell +37 11.3 MB existentialism, hzoo, jlhwung, ...1 more
npm/@layerzerolabs/[email protected] Transitive: environment, eval, filesystem, network +65 13.6 MB layerzero-bot
npm/@layerzerolabs/[email protected] Transitive: environment, eval, filesystem, network, unsafe +198 16.2 MB layerzero-bot
npm/@layerzerolabs/[email protected] Transitive: environment, filesystem, network +15 9 MB layerzero-bot
npm/@layerzerolabs/[email protected] None 0 629 kB layerzero-bot
npm/@layerzerolabs/[email protected] None 0 164 MB layerzero-bot
npm/@layerzerolabs/[email protected] None 0 392 kB layerzero-bot
npm/@layerzerolabs/[email protected] Transitive: environment, eval, filesystem, network, shell, unsafe +124 36.3 MB layerzero-bot
npm/@layerzerolabs/[email protected] None 0 166 kB layerzero-bot
npm/@layerzerolabs/[email protected] None +9 655 kB layerzero-bot
npm/@layerzerolabs/[email protected] None 0 27.7 kB layerzero-bot
npm/@layerzerolabs/[email protected] None 0 7.49 MB layerzero-bot
npm/@layerzerolabs/[email protected] None 0 481 kB layerzero-bot
npm/@layerzerolabs/[email protected] None 0 11.7 kB layerzero-bot
npm/@layerzerolabs/[email protected] None 0 1.29 MB layerzero-bot
npm/@layerzerolabs/[email protected] None 0 913 kB layerzero-bot
npm/@layerzerolabs/[email protected] environment Transitive: eval, filesystem, network, unsafe +277 52.4 MB layerzero-bot
npm/@nomicfoundation/[email protected] Transitive: environment, filesystem +16 14.3 MB kanej
npm/@openzeppelin/[email protected] None 0 1.34 MB ernestognw
npm/@openzeppelin/[email protected] None 0 2.16 MB amxx, cairoeth, ericglau, ...2 more
npm/@rushstack/[email protected] None 0 256 kB octogonz, odspnpm, rushstack-admin
npm/@types/[email protected] None 0 8.22 kB types
npm/@types/[email protected] Transitive: environment, filesystem +25 4.07 MB types
npm/@types/[email protected] None 0 96.1 kB types
npm/[email protected] environment, filesystem, shell +14 2.19 MB gustavohenke
npm/[email protected] filesystem, unsafe Transitive: environment, eval +34 6.62 MB rumpl
npm/[email protected] environment, filesystem 0 75.8 kB motdotla
npm/[email protected] filesystem Transitive: environment +25 987 kB mattphillips
npm/[email protected] environment, filesystem, network, shell Transitive: eval, unsafe +110 153 MB kanej
npm/[email protected] None 0 30.5 kB benjamn
npm/[email protected] environment, eval, filesystem +41 3.9 MB voxpelli
npm/[email protected] filesystem Transitive: environment, eval, network, shell, unsafe +62 23.7 MB diego.bale.arg
npm/[email protected] environment, filesystem, unsafe Transitive: eval, shell +69 11.6 MB kul
npm/[email protected] eval, filesystem Transitive: environment, network, shell, unsafe +110 312 MB egoist
npm/[email protected] None 0 22.7 MB typescript-bot
npm/[email protected] None 0 681 kB eemeli

View full report↗︎

@ryandgoulding ryandgoulding force-pushed the goulding/krak/aptops-v2-examples branch from e6d28b9 to 24ecbda Compare January 29, 2025 00:18
@ryandgoulding ryandgoulding force-pushed the goulding/krak/aptops-v2-examples branch from ecd3b2e to f39611f Compare January 29, 2025 00:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants