Skip to content

Add ETH estimates #28

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

Merged
merged 2 commits into from
Jul 21, 2021
Merged

Add ETH estimates #28

merged 2 commits into from
Jul 21, 2021

Conversation

pcothenet
Copy link
Contributor

@pcothenet pcothenet commented Jul 15, 2021

What

  • Add ETH estimates

Why

  • Proof of stake >> Proof of work

SDK Release Checklist

  • Have you added an integration test for the changes?
  • Have you built the library locally and made queries against it successfully?
  • Did you update the changelog?
  • Did you bump the package version?
  • For breaking changes, did you plan for the release of the new SDK versions and deploy the API to production?

Comment on lines +256 to +273
all_params.append("async_req")
all_params.append("_return_http_data_only")
all_params.append("_preload_content")
all_params.append("_request_timeout")
all_params.append("mass_g")
all_params.append("total_price_cents_usd")
all_params.append("project_id")
all_params.append("metadata")
all_params.append("distance_m")
all_params.append("transportation_method")
all_params.append("package_mass_g")
all_params.append("create_order")
all_params.append("make")
all_params.append("model")
all_params.append("year")
all_params.append("transaction_value_btc_sats")
all_params.append("timestamp")
all_params.append("gas_used")
Copy link
Contributor

Choose a reason for hiding this comment

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

seems like this list of params is defined for every request in this file and consist of all possible params rather than the ones needed just for this particular endpoint. Not a blocker but do you happen to know the reason for this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, this is a limitation of the current template / code generation.

I'm adding a tracker here: https://app.asana.com/0/1200609773402056/1200634505135525/f

@@ -142,6 +142,18 @@ def test_create_bitcoin_estimate_transaction_value(self):
estimate.data.mass_g, 200
) # not setting an exact value since this is changing daily

def test_create_ethereum_estimate_transaction_value(self):
Copy link
Contributor

Choose a reason for hiding this comment

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

Should there be tests for project_id,timestamp, and create_order params as well?

Copy link
Contributor

@kleinjm kleinjm left a comment

Choose a reason for hiding this comment

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

no blockers but we may want to beef up the tests to use the additional params

@pcothenet pcothenet merged commit 98757ec into main Jul 21, 2021
@pcothenet pcothenet deleted the pc/171 branch July 21, 2021 18: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.

2 participants