-
Notifications
You must be signed in to change notification settings - Fork 359
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
Update Fee tables #399
Conversation
c0a4d97
to
a913974
Compare
ba7b7c8
to
9abaa6e
Compare
*/ | ||
export interface FeeTable { | ||
export interface CosmWasmFeeTable extends FeeTable { |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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)?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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. 😄
e47486c
to
8089c16
Compare
b387b44
to
a737df0
Compare
a737df0
to
47018d2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Beautiful
Closes #396
Opening this draft PR now to get feedback on the design. Still to do:
Decimal
classSigningCosmWasmClient