-
Notifications
You must be signed in to change notification settings - Fork 172
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
Set upload fees for contracts higher #85
Comments
Governance can change it later but what do you think the initial cost per byte should be? To make a simple token via junomint, how much do we expect it to cost? |
Will have a look at this later today to work out what the param change would be. I think we also are going to need to document the param changes that this and #82 mean we will need to do on mainnet before we can upgrade. Moneta is gradually becoming quite hairy and we should have a pretty foolproof checklist for the upgrade to run imo with backout points if possible |
...which I guess in practical terms means I need to write the checklist lol |
Appreciate all your help on this. 🙏 |
Let's try to keep the list here in GitHub issues. Let's try to use this Milestone: https://github.com/CosmosContracts/juno/milestone/1 |
okay so there's also the upload size to consider too. In wasm; // DefaultMaxWasmCodeSize limit max bytes read to prevent gzip bombs
DefaultMaxWasmCodeSize = 600 * 1024 * 2 and
confirms we are using default
|
While the various costs are specified https://github.com/CosmWasm/wasmd/blob/57517b0c333e23aedd2bbccf80579cf75081241b/x/wasm/keeper/gas_register.go#L13 With reasoning https://github.com/CosmWasm/cosmwasm/blob/v1.0.0-beta/docs/GAS.md And some further discussion: CosmWasm/wasmd#634 (comment) |
Good find! Looks like this is maybe what we want:
|
Yup, although it's hard coded AFAICT which would mean forking. AFAIUI changes there are consensus-breaking, hence why they aren't params. That said, it's lateish in the day and my caffiene level is drooping so may have that wrong. |
hate that caffeine drooping feeling |
I have a path to doing this, but given that Confio (as per the reasoning & discussion links above) have thought about this a fair bit, I am... still not sold on overriding these values. Moreover, if we were to override these values we'd have to do a few more rounds of testing. Which isn't necessarily a bad thing, but November is flying by... |
Confio thought about these values in the context on Confio and tgrade, we need to think about them in the context of Juno.
Well, we already have a fork. Would be great to make some of these params and contribute that upstream. Having |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
FWIW I'm not against changing this and then testing, it's a bunch more stuff to test. It's potentially doable in base Juno, no fork required - but I am against making them params. At the minute I'm dubious about exposing something that's an obvious attack vector to governance. Could be convinced in future however. |
Okay have spiked something on https://github.com/CosmosContracts/juno/tree/override_cw_default_compile_costs - don't think it's quite there yet. Need to test a couple of things before PR |
It should cost more to upload a contract. I believe there is already a parameter for this? Let's update it on the Uni testnet.
If there is not a parameter, we should add this feature. Transactions should be cheap, but uploading a contract should be expensive.
The text was updated successfully, but these errors were encountered: