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

Split library into modules #589

Merged

Conversation

yaroslavyaroslav
Copy link
Collaborator

No description provided.

@JeneaVranceanu
Copy link
Collaborator

@yaroslavyaroslav I'll probably throw some additional comments into this PR. 🙂

extension APIRequest {
var method: REST {
switch self {
default: return .POST
Copy link
Collaborator

Choose a reason for hiding this comment

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

That's a weird computed variable.
Is it correct that it always returns .POST?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Actually yes, since none of Eth API uses any other REST method. But i'd either think that it's redundant, and could be just dropped in a favor of hardcoding this method in URLSession configuration.

Sources/web3swift/Web3/Web3+GasOracle.swift Outdated Show resolved Hide resolved
Sources/web3swift/Tokens/ST20/Web3+ST20.swift Show resolved Hide resolved
@JeneaVranceanu
Copy link
Collaborator

I didn't want to leave more comments like this as there are a lot of ERC/EIP standards in the project.

We have two options here:

  1. you can add appropriate links to the protocols in this PR;
  2. we can open it as a separate issue for a later date as this is not something that must be fixed right now.

@yaroslavyaroslav
Copy link
Collaborator Author

@JeneaVranceanu thank you for your feedback, it's really helpful, i'll dig it deeply in few days ahead.

Delete redundant `APIRequestParameterElementType` protocol.
Dropping redundant `RequestParameter`.
Add Web3Error.clientError(code: Int)
Format EventLog comment
Delete outdated comment.
Change `EventFilterParameters` initializer to appropriate one
@yaroslavyaroslav
Copy link
Collaborator Author

I didn't want to leave more comments like this as there are a lot of ERC/EIP standards in the project.

We have two options here:

  1. you can add appropriate links to the protocols in this PR;
  2. we can open it as a separate issue for a later date as this is not something that must be fixed right now.

I'd prefer second one, because I'm planning to dedicate one or two last RC to improving documentation.

@JeneaVranceanu
Copy link
Collaborator

JeneaVranceanu commented Jul 15, 2022

I'd prefer second one, because I'm planning to dedicate one or two last RC to improving documentation.

@yaroslavyaroslav

Opened an issue for documentation - #592
Please edit the items in the list as you see the need to and add more items if some are missing.

@yaroslavyaroslav
Copy link
Collaborator Author

@JeneaVranceanu please take a look at the PR updates that I've made up to your issues. All that've marked with thumb up emoji should be done. And if so mark them as resolved one please.

@JeneaVranceanu
Copy link
Collaborator

@JeneaVranceanu please take a look at the PR updates that I've made up to your issues. All that've marked with thumb up emoji should be done. And if so mark them as resolved one please.

Great! Thanks for taking time to update things.
I cannot resolve these comments as I do not have rights but at this point in time I've no additional comments and all of the comments above with a 👍 can indeed be marked as resolved. If you have that permission feel free to do so.
For me there is simply no such button 🙂

@yaroslavyaroslav yaroslavyaroslav merged commit 7665ff5 into web3swift-team:unstable Jul 19, 2022
@yaroslavyaroslav yaroslavyaroslav deleted the network-split branch July 19, 2022 04:45
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.

None yet

2 participants