@agoric/orchestration 0.1.1-dev-4c9a859.0 → 0.1.1-dev-c74c628.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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agoric/orchestration",
|
|
3
|
-
"version": "0.1.1-dev-
|
|
3
|
+
"version": "0.1.1-dev-c74c628.0+c74c628",
|
|
4
4
|
"description": "Chain abstraction for Agoric's orchestration clients",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.js",
|
|
@@ -29,16 +29,17 @@
|
|
|
29
29
|
},
|
|
30
30
|
"homepage": "https://github.com/Agoric/agoric-sdk#readme",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@agoric/assert": "0.6.1-dev-
|
|
33
|
-
"@agoric/
|
|
34
|
-
"@agoric/
|
|
35
|
-
"@agoric/
|
|
36
|
-
"@agoric/
|
|
37
|
-
"@agoric/
|
|
38
|
-
"@agoric/
|
|
39
|
-
"@agoric/
|
|
40
|
-
"@agoric/
|
|
41
|
-
"@agoric/
|
|
32
|
+
"@agoric/assert": "0.6.1-dev-c74c628.0+c74c628",
|
|
33
|
+
"@agoric/cosmic-proto": "0.4.1-dev-c74c628.0+c74c628",
|
|
34
|
+
"@agoric/ertp": "0.16.3-dev-c74c628.0+c74c628",
|
|
35
|
+
"@agoric/internal": "0.3.3-dev-c74c628.0+c74c628",
|
|
36
|
+
"@agoric/network": "0.1.1-dev-c74c628.0+c74c628",
|
|
37
|
+
"@agoric/notifier": "0.6.3-dev-c74c628.0+c74c628",
|
|
38
|
+
"@agoric/store": "0.9.3-dev-c74c628.0+c74c628",
|
|
39
|
+
"@agoric/vat-data": "0.5.3-dev-c74c628.0+c74c628",
|
|
40
|
+
"@agoric/vats": "0.15.2-dev-c74c628.0+c74c628",
|
|
41
|
+
"@agoric/zoe": "0.26.3-dev-c74c628.0+c74c628",
|
|
42
|
+
"@agoric/zone": "0.2.3-dev-c74c628.0+c74c628",
|
|
42
43
|
"@endo/far": "^1.1.1",
|
|
43
44
|
"@endo/marshal": "^1.4.1",
|
|
44
45
|
"@endo/patterns": "^1.3.1"
|
|
@@ -80,5 +81,5 @@
|
|
|
80
81
|
"typeCoverage": {
|
|
81
82
|
"atLeast": 96.96
|
|
82
83
|
},
|
|
83
|
-
"gitHead": "
|
|
84
|
+
"gitHead": "c74c62863bb9de77e66f8d909058804912e72528"
|
|
84
85
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// @ts-check
|
|
2
2
|
/** @file Use-object for the owner of a localchain account */
|
|
3
|
+
import { typedJson } from '@agoric/cosmic-proto/vatsafe';
|
|
3
4
|
import { AmountShape } from '@agoric/ertp';
|
|
4
5
|
import { makeTracer } from '@agoric/internal';
|
|
5
6
|
import { UnguardedHelperI } from '@agoric/internal/src/typeGuards.js';
|
|
@@ -114,7 +115,7 @@ export const prepareAccountHolder = (baggage, makeRecorderKit, zcf) => {
|
|
|
114
115
|
// FIXME get values from proposal or args
|
|
115
116
|
// FIXME brand handling and amount scaling
|
|
116
117
|
const amount = {
|
|
117
|
-
amount: ertpAmount.value,
|
|
118
|
+
amount: String(ertpAmount.value),
|
|
118
119
|
denom: 'ubld',
|
|
119
120
|
};
|
|
120
121
|
|
|
@@ -126,12 +127,11 @@ export const prepareAccountHolder = (baggage, makeRecorderKit, zcf) => {
|
|
|
126
127
|
const delegatorAddress = await E(lca).getAddress();
|
|
127
128
|
trace('delegatorAddress', delegatorAddress);
|
|
128
129
|
const result = await E(lca).executeTx([
|
|
129
|
-
{
|
|
130
|
-
'@type': '/cosmos.staking.v1beta1.MsgDelegate',
|
|
130
|
+
typedJson('/cosmos.staking.v1beta1.MsgDelegate', {
|
|
131
131
|
amount,
|
|
132
132
|
validatorAddress,
|
|
133
133
|
delegatorAddress,
|
|
134
|
-
},
|
|
134
|
+
}),
|
|
135
135
|
]);
|
|
136
136
|
trace('got result', result);
|
|
137
137
|
return result;
|