Skip to content

Add ETH estimates#28

Merged
pcothenet merged 2 commits into
mainfrom
pc/171
Jul 21, 2021
Merged

Add ETH estimates#28
pcothenet merged 2 commits into
mainfrom
pc/171

Conversation

@pcothenet

@pcothenet pcothenet commented Jul 15, 2021

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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
Copy Markdown
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

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
Copy Markdown
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?

@kleinjm kleinjm left a comment

Copy link
Copy Markdown
Contributor

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