How to determine the cost of deploying bundles? #8285
-
I am trying to figure out the cost for deploying bundles, via something like Using the addCollateral bundles from inter protocol as a reference point, I have come up with these numbers:
|
Beta Was this translation helpful? Give feedback.
Replies: 5 comments
-
Contract Bundle Storage Currently 0.002 IST/byte
Yes, it's effectively 0.002 IST/byte currently. The value of that Storage Price Subject To Governance
I say "currently" because it can be changed by the BLD stakers using a Parameter Change governance proposal. The value should be sufficient to recover the the cost of storing bundles on the chain forever / indefinitely. For comparison, storage on Ethereum currently costs about 10x as much:
Storage fees go to the reserve accountThe on agoricdev-20 it has 16,407.6 IST from recent deployment of bundles. Querying Storage Price
yes: If you don't have a local node running, for mainnet, you could use: to get just the per-byte cost: {
"key": "storageByte",
"beans": "2000000000"
} The {
"key": "feeUnit",
"beans": "1000000000000"
}
{
"key": "storageByte",
"beans": "2000000000"
} |
Beta Was this translation helpful? Give feedback.
-
How to reduce bundle size?In due course, you should only need to pay for new modules: in the shorter term, there's some possible clean-up we are looking into: |
Beta Was this translation helpful? Give feedback.
-
TIL:
using |
Beta Was this translation helpful? Give feedback.
-
Also on the topic of storage cost...
|
Beta Was this translation helpful? Give feedback.
-
99% reduction under discussionSpeaking of Subject to Governance: UI for on-chain proposalAn on-chain proposal involves just the right So this time, it would be nice to have a friendly UI for it. To that end, I opened an issue on the nifty new gov-proposal-hub: And this weekend I mostly got it working: Reference Doc for Swingset ParamsIt's still a little opaque. It seems like there should be some reference documentation for things like storageByte. I can't find any. All I find is the code of the chargeAdmission function along with the PR and issue whence it came:
The swingset Params message doesn't specify |
Beta Was this translation helpful? Give feedback.
Contract Bundle Storage Currently 0.002 IST/byte
Yes, it's effectively 0.002 IST/byte currently. The value of that
storageByte
param is actually 2000000000 in units of "beans", and the ratio of beans to IST isfeeUnit
= 1000000000000.Storage Price Subject To Governance
I say "currently" because it can be changed by the BLD stakers using a Parameter Change governance proposal.
The value should be sufficient to recover the the cost of storing bundles on the chain forever / indefinitely.
For comparison, storage on Ethereum currently costs about 10x as much: