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

EVM howtos for L1 -> L2 in js/ts #1383

Closed
wants to merge 25 commits into from

Conversation

anistark
Copy link
Contributor

@anistark anistark commented Oct 3, 2023

Description of change

How to guide to send base, native and nft tokens from L1 to L2 in js/ts.

Links to any relevant issues

Part of wiki issue #1155

Type of change

Choose a type of change, and delete any options that are not relevant.

  • Enhancement (a non-breaking change which adds functionality)

How the change has been tested

Ran each example.
Running examples are added in each file.

Change checklist

Tick the boxes that are relevant to your changes, and delete any items that are not.

  • I have followed the contribution guidelines for this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas

Copy link
Member

@thibault-martinez thibault-martinez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Conflicts

Copy link
Contributor

@kwek20 kwek20 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure about this cursor/util thing,we need to find a way to do this using the sdk.
not sure if thats in scope for now tho

bindings/nodejs/.gitignore Outdated Show resolved Hide resolved
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Many things aren't even called in the examples, why are they here?

Copy link
Contributor Author

@anistark anistark Oct 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The entire file was in evm-toolkit. Thought can move it all inside sdk sometime rust side once we've a helper function of sorts for this later.

This is just temporary till then for ref.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we don't want to put EVM stuff into the SDK itself, apart from address generation and signing for stronghold, this can be done with separated libraries
Would still remove everything that's not actually required and for reference just put a link to the source where you copied at the top

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree, we should have the strictly required minimum in the SDK regarding EVM

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So, should the separate library be something like @iota/evm-sdk or should it be a separate external library maintained by community or something?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whatever new library is created or added to sdk itself, will then be used both in evm-toolkit and in firefly later.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do you mean it's a standalone code ? That it's not published ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, I mean it's live but it's not part of any library as such.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As discussed on Slack, it looks like we won't be adding EVM-related stuff in the SDK. Let's close this PR and when you have a place where to add them, we'll probably also move the already existing examples there.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good. Closing it for now.

@anistark anistark closed this Oct 27, 2023
@kwek20 kwek20 mentioned this pull request Nov 3, 2023
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.

4 participants