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

Update Fee tables #399

Merged
merged 19 commits into from
Aug 19, 2020
Merged

Update Fee tables #399

merged 19 commits into from
Aug 19, 2020

Conversation

willclarktech
Copy link
Contributor

Closes #396

Opening this draft PR now to get feedback on the design. Still to do:

  • Update and use Decimal class
  • Apply same design to SigningCosmWasmClient

@willclarktech willclarktech marked this pull request as ready for review August 18, 2020 16:02
@willclarktech willclarktech force-pushed the 396-fee-table branch 2 times, most recently from ba7b7c8 to 9abaa6e Compare August 18, 2020 16:38
*/
export interface FeeTable {
export interface CosmWasmFeeTable extends FeeTable {
Copy link
Member

Choose a reason for hiding this comment

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

If we use extend here (assuming the CosmWasmClient can do everything the CosmosClient can), then we can remove the send field here, right?

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. Do you think we have any need for the completely generic FeeTable (e.g. to support clients which turn off some Cosmos SDK functionality)?

Copy link
Member

Choose a reason for hiding this comment

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

No, this is good for now.

I wanted to have CosmWasmClient extending CosmosClient but that does not work because there is no multi inheritance in JS and we need inheritance for SigningCosmWasmClient and SigningCosmosClient.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

OK, well we have FeeTable anyway. 😄

@willclarktech willclarktech force-pushed the 396-fee-table branch 2 times, most recently from b387b44 to a737df0 Compare August 19, 2020 09:43
Copy link
Member

@webmaster128 webmaster128 left a comment

Choose a reason for hiding this comment

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

Beautiful

@webmaster128 webmaster128 merged commit 0bd8d5e into master Aug 19, 2020
@webmaster128 webmaster128 deleted the 396-fee-table branch August 19, 2020 10:16
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.

Update Fee tables to take a global gas price + gas limit per operation
2 participants