@agoric/cosmic-swingset 0.41.4-dev-8a5cf5c.0 → 0.41.4-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/package.json +12 -12
- package/src/sim-params.js +22 -12
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agoric/cosmic-swingset",
|
|
3
|
-
"version": "0.41.4-dev-
|
|
3
|
+
"version": "0.41.4-dev-e15db76.0+e15db76",
|
|
4
4
|
"description": "Agoric's Cosmos blockchain integration",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -22,15 +22,15 @@
|
|
|
22
22
|
"author": "Agoric",
|
|
23
23
|
"license": "Apache-2.0",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@agoric/builders": "0.1.1-dev-
|
|
26
|
-
"@agoric/cosmos": "0.34.2-dev-
|
|
27
|
-
"@agoric/deploy-script-support": "0.10.4-dev-
|
|
28
|
-
"@agoric/internal": "0.3.3-dev-
|
|
29
|
-
"@agoric/store": "0.9.3-dev-
|
|
30
|
-
"@agoric/swing-store": "0.9.2-dev-
|
|
31
|
-
"@agoric/swingset-vat": "0.32.3-dev-
|
|
32
|
-
"@agoric/telemetry": "0.6.3-dev-
|
|
33
|
-
"@agoric/vm-config": "0.1.1-dev-
|
|
25
|
+
"@agoric/builders": "0.1.1-dev-e15db76.0+e15db76",
|
|
26
|
+
"@agoric/cosmos": "0.34.2-dev-e15db76.0+e15db76",
|
|
27
|
+
"@agoric/deploy-script-support": "0.10.4-dev-e15db76.0+e15db76",
|
|
28
|
+
"@agoric/internal": "0.3.3-dev-e15db76.0+e15db76",
|
|
29
|
+
"@agoric/store": "0.9.3-dev-e15db76.0+e15db76",
|
|
30
|
+
"@agoric/swing-store": "0.9.2-dev-e15db76.0+e15db76",
|
|
31
|
+
"@agoric/swingset-vat": "0.32.3-dev-e15db76.0+e15db76",
|
|
32
|
+
"@agoric/telemetry": "0.6.3-dev-e15db76.0+e15db76",
|
|
33
|
+
"@agoric/vm-config": "0.1.1-dev-e15db76.0+e15db76",
|
|
34
34
|
"@endo/bundle-source": "^4.0.0",
|
|
35
35
|
"@endo/env-options": "^1.1.8",
|
|
36
36
|
"@endo/errors": "^1.2.10",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"tmp": "^0.2.1"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@agoric/kmarshal": "0.1.1-dev-
|
|
55
|
+
"@agoric/kmarshal": "0.1.1-dev-e15db76.0+e15db76",
|
|
56
56
|
"ava": "^5.3.0",
|
|
57
57
|
"better-sqlite3": "^10.1.0",
|
|
58
58
|
"c8": "^10.1.3"
|
|
@@ -83,5 +83,5 @@
|
|
|
83
83
|
"typeCoverage": {
|
|
84
84
|
"atLeast": 86.88
|
|
85
85
|
},
|
|
86
|
-
"gitHead": "
|
|
86
|
+
"gitHead": "e15db76ad75211d1373ea756d400508568595357"
|
|
87
87
|
}
|
package/src/sim-params.js
CHANGED
|
@@ -18,14 +18,17 @@ const makeQueueSize = (key, size) => ({ key, size });
|
|
|
18
18
|
// Nothing bad happens if they diverge, but it makes for a truer simulation
|
|
19
19
|
// experience if they don't.
|
|
20
20
|
|
|
21
|
+
export const BeansPerXsnapComputron = 'xsnapComputron';
|
|
21
22
|
export const BeansPerBlockComputeLimit = 'blockComputeLimit';
|
|
23
|
+
export const BeansPerVatCreation = 'vatCreation';
|
|
24
|
+
|
|
22
25
|
export const BeansPerFeeUnit = 'feeUnit';
|
|
23
26
|
export const BeansPerInboundTx = 'inboundTx';
|
|
24
27
|
export const BeansPerMessage = 'message';
|
|
25
28
|
export const BeansPerMessageByte = 'messageByte';
|
|
26
29
|
export const BeansPerMinFeeDebit = 'minFeeDebit';
|
|
27
|
-
export const
|
|
28
|
-
export const
|
|
30
|
+
export const BeansPerStorageByte = 'storageByte';
|
|
31
|
+
export const BeansPerSmartWalletProvision = 'smartWalletProvision';
|
|
29
32
|
|
|
30
33
|
export const defaultBeansPerXsnapComputron = 100n;
|
|
31
34
|
|
|
@@ -40,25 +43,32 @@ export const defaultBeansPerVatCreation =
|
|
|
40
43
|
300_000n * defaultBeansPerXsnapComputron;
|
|
41
44
|
|
|
42
45
|
// Fees are denominated in this unit.
|
|
43
|
-
export const defaultFeeUnitPrice = [makeCoin('
|
|
46
|
+
export const defaultFeeUnitPrice = [makeCoin('ubld', 1_000_000n)]; // 1 BLD
|
|
44
47
|
|
|
45
48
|
// TODO: create the cost model we want, and update these to be more principled.
|
|
46
|
-
|
|
47
|
-
export const
|
|
48
|
-
export const
|
|
49
|
-
export const
|
|
50
|
-
export const
|
|
51
|
-
export const
|
|
49
|
+
export const defaultBeansPerFeeUnit = 1_000_000_000_000n; // 1e12
|
|
50
|
+
export const defaultBeansPerInboundTx = defaultBeansPerFeeUnit / 100n; // 10e9, ~$0.01
|
|
51
|
+
export const defaultBeansPerMessage = defaultBeansPerFeeUnit / 1_000n; // 1e9, ~$0.001
|
|
52
|
+
export const defaultBeansPerMessageByte = defaultBeansPerFeeUnit / 50_000n; // 20e6, ~$0.0002
|
|
53
|
+
export const defaultBeansPerMinFeeDebit = defaultBeansPerFeeUnit / 5n; // 200e9, ~$0.2
|
|
54
|
+
export const defaultBeansPerStorageByte = defaultBeansPerFeeUnit / 500n; // 2e9, ~$0.002
|
|
55
|
+
export const defaultBeansPerSmartWalletProvision = defaultBeansPerFeeUnit; // 1e12, ~$1
|
|
52
56
|
|
|
53
57
|
export const defaultBeansPerUnit = [
|
|
58
|
+
makeStringBeans(BeansPerXsnapComputron, defaultBeansPerXsnapComputron),
|
|
59
|
+
makeStringBeans(BeansPerBlockComputeLimit, defaultBeansPerBlockComputeLimit),
|
|
60
|
+
makeStringBeans(BeansPerVatCreation, defaultBeansPerVatCreation),
|
|
61
|
+
|
|
54
62
|
makeStringBeans(BeansPerFeeUnit, defaultBeansPerFeeUnit),
|
|
55
63
|
makeStringBeans(BeansPerInboundTx, defaultBeansPerInboundTx),
|
|
56
|
-
makeStringBeans(BeansPerBlockComputeLimit, defaultBeansPerBlockComputeLimit),
|
|
57
64
|
makeStringBeans(BeansPerMessage, defaultBeansPerMessage),
|
|
58
65
|
makeStringBeans(BeansPerMessageByte, defaultBeansPerMessageByte),
|
|
59
66
|
makeStringBeans(BeansPerMinFeeDebit, defaultBeansPerMinFeeDebit),
|
|
60
|
-
makeStringBeans(
|
|
61
|
-
makeStringBeans(
|
|
67
|
+
makeStringBeans(BeansPerStorageByte, defaultBeansPerStorageByte),
|
|
68
|
+
makeStringBeans(
|
|
69
|
+
BeansPerSmartWalletProvision,
|
|
70
|
+
defaultBeansPerSmartWalletProvision,
|
|
71
|
+
),
|
|
62
72
|
];
|
|
63
73
|
|
|
64
74
|
const defaultBootstrapVatConfig =
|