-
Notifications
You must be signed in to change notification settings - Fork 191
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(cosmos): add some x/swingset fee charging params
- Loading branch information
1 parent
41ca6dc
commit 53e43bb
Showing
4 changed files
with
389 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package types | ||
|
||
import ( | ||
sdk "github.com/cosmos/cosmos-sdk/types" | ||
) | ||
|
||
// This should roughly match the values in | ||
// `agoric-sdk/packages/cosmic-swingset/src/sim-params.js`. | ||
// | ||
// Nothing bad happens if they diverge, but it makes for a better simulation | ||
// experience if they don't. | ||
var ( | ||
// This is how many computrons we allow before starting a new block. | ||
// Some analysis (#3459) suggests this leads to about 2/3rds utilization, | ||
// based on 5 sec voting time and up to 10 sec of computation. | ||
DefaultMaxComputronsPerBlock = sdk.NewInt(8000000) | ||
// observed: 0.385 sec | ||
DefaultEstimatedComputronsPerVatCreation = sdk.NewInt(300000) | ||
|
||
// These fee defaults are denominated in urun. | ||
DefaultFeeDenom = "urun" | ||
|
||
DefaultFeePerInboundTx = sdk.MustNewDecFromStr("100") | ||
DefaultFeePerMessage = sdk.MustNewDecFromStr("10") | ||
DefaultFeePerMessageSlot = sdk.MustNewDecFromStr("1") | ||
DefaultFeePerMessageByte = sdk.MustNewDecFromStr("0.02") | ||
) |
Oops, something went wrong.