@agoric/cosmos 0.34.2-dev-8a5cf5c.0 → 0.34.2-dev-e15db76.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/daemon/cmd/root.go +1 -1
- package/git-revision.txt +1 -1
- package/package.json +2 -2
- package/x/swingset/types/default-params.go +24 -16
package/daemon/cmd/root.go
CHANGED
|
@@ -131,7 +131,7 @@ func initAppConfig() (string, interface{}) {
|
|
|
131
131
|
// FIXME: We may want a non-zero min gas price.
|
|
132
132
|
// For now, we set it to zero to reduce friction (the default "" fails
|
|
133
133
|
// startup, forcing each validator to set their own value).
|
|
134
|
-
srvCfg.MinGasPrices = "
|
|
134
|
+
srvCfg.MinGasPrices = "0ubld"
|
|
135
135
|
|
|
136
136
|
customAppConfig := CustomAppConfig{
|
|
137
137
|
Config: *srvCfg,
|
package/git-revision.txt
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
e15db76
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agoric/cosmos",
|
|
3
|
-
"version": "0.34.2-dev-
|
|
3
|
+
"version": "0.34.2-dev-e15db76.0+e15db76",
|
|
4
4
|
"description": "Connect JS to the Cosmos blockchain SDK",
|
|
5
5
|
"parsers": {
|
|
6
6
|
"js": "mjs"
|
|
@@ -38,5 +38,5 @@
|
|
|
38
38
|
"typeCoverage": {
|
|
39
39
|
"atLeast": 0
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "e15db76ad75211d1373ea756d400508568595357"
|
|
42
42
|
}
|
|
@@ -11,15 +11,16 @@ import (
|
|
|
11
11
|
// experience if they don't.
|
|
12
12
|
|
|
13
13
|
const (
|
|
14
|
+
BeansPerBlockComputeLimit = "blockComputeLimit"
|
|
15
|
+
BeansPerVatCreation = "vatCreation"
|
|
16
|
+
BeansPerXsnapComputron = "xsnapComputron"
|
|
17
|
+
|
|
14
18
|
BeansPerFeeUnit = "feeUnit"
|
|
15
19
|
BeansPerInboundTx = "inboundTx"
|
|
16
|
-
BeansPerBlockComputeLimit = "blockComputeLimit"
|
|
17
20
|
BeansPerMessage = "message"
|
|
18
21
|
BeansPerMessageByte = "messageByte"
|
|
19
22
|
BeansPerMinFeeDebit = "minFeeDebit"
|
|
20
23
|
BeansPerStorageByte = "storageByte"
|
|
21
|
-
BeansPerVatCreation = "vatCreation"
|
|
22
|
-
BeansPerXsnapComputron = "xsnapComputron"
|
|
23
24
|
BeansPerSmartWalletProvision = "smartWalletProvision"
|
|
24
25
|
|
|
25
26
|
// PowerFlags.
|
|
@@ -52,18 +53,24 @@ var (
|
|
|
52
53
|
// observed: 0.385 sec
|
|
53
54
|
DefaultBeansPerVatCreation = sdk.NewUint(300000).Mul(DefaultBeansPerXsnapComputron)
|
|
54
55
|
|
|
55
|
-
// Fees are
|
|
56
|
-
|
|
57
|
-
|
|
56
|
+
// Fees are represented as integer "beans", where each bean is a uniform
|
|
57
|
+
// fraction of this `fee_unit_price` as controlled by the below
|
|
58
|
+
// `beans_per_unit` "feeUnit".
|
|
58
59
|
// TODO: create the cost model we want, and update these to be more principled.
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
60
|
+
DefaultFeeUnitPrice = sdk.NewCoins(sdk.NewInt64Coin("ubld", 1_000_000)) // 1 BLD
|
|
61
|
+
|
|
62
|
+
// The count of "beans" into which `fee_unit_price` is divided.
|
|
63
|
+
// Larger numbers make for smaller beans, and we expect values to be rather
|
|
64
|
+
// large for representing fees precisely in beans that each approximate
|
|
65
|
+
// a "picoUSD"--one trillionth of a USD.
|
|
66
|
+
DefaultBeansPerFeeUnit = sdk.NewUint(1_000_000_000_000) // 1e12 (assumes $1 per BLD)
|
|
67
|
+
|
|
68
|
+
DefaultBeansPerInboundTx = DefaultBeansPerFeeUnit.Quo(sdk.NewUint(100)) // 10e09, ~$0.01
|
|
69
|
+
DefaultBeansPerMessage = DefaultBeansPerFeeUnit.Quo(sdk.NewUint(1_000)) // 1e09, ~$0.001
|
|
70
|
+
DefaultBeansPerMessageByte = DefaultBeansPerFeeUnit.Quo(sdk.NewUint(50_000)) // 20e06, ~$0.00002
|
|
71
|
+
DefaultBeansPerMinFeeDebit = DefaultBeansPerFeeUnit.Quo(sdk.NewUint(5)) // 200e09, ~$0.2
|
|
72
|
+
DefaultBeansPerStorageByte = DefaultBeansPerFeeUnit.Quo(sdk.NewUint(500)) // 2e09, ~$0.002
|
|
73
|
+
DefaultBeansPerSmartWalletProvision = DefaultBeansPerFeeUnit // 1e12, ~$1
|
|
67
74
|
|
|
68
75
|
DefaultBootstrapVatConfig = "@agoric/vm-config/decentral-core-config.json"
|
|
69
76
|
|
|
@@ -97,15 +104,16 @@ var (
|
|
|
97
104
|
// move DefaultBeansPerUnit to a function to allow for boot overriding of the Default params
|
|
98
105
|
func DefaultBeansPerUnit() []StringBeans {
|
|
99
106
|
return []StringBeans{
|
|
107
|
+
NewStringBeans(BeansPerXsnapComputron, DefaultBeansPerXsnapComputron),
|
|
100
108
|
NewStringBeans(BeansPerBlockComputeLimit, DefaultBeansPerBlockComputeLimit),
|
|
109
|
+
NewStringBeans(BeansPerVatCreation, DefaultBeansPerVatCreation),
|
|
110
|
+
|
|
101
111
|
NewStringBeans(BeansPerFeeUnit, DefaultBeansPerFeeUnit),
|
|
102
112
|
NewStringBeans(BeansPerInboundTx, DefaultBeansPerInboundTx),
|
|
103
113
|
NewStringBeans(BeansPerMessage, DefaultBeansPerMessage),
|
|
104
114
|
NewStringBeans(BeansPerMessageByte, DefaultBeansPerMessageByte),
|
|
105
115
|
NewStringBeans(BeansPerMinFeeDebit, DefaultBeansPerMinFeeDebit),
|
|
106
116
|
NewStringBeans(BeansPerStorageByte, DefaultBeansPerStorageByte),
|
|
107
|
-
NewStringBeans(BeansPerVatCreation, DefaultBeansPerVatCreation),
|
|
108
|
-
NewStringBeans(BeansPerXsnapComputron, DefaultBeansPerXsnapComputron),
|
|
109
117
|
NewStringBeans(BeansPerSmartWalletProvision, DefaultBeansPerSmartWalletProvision),
|
|
110
118
|
}
|
|
111
119
|
}
|