@agoric/orchestration 0.1.1-dev-0fbe81c.0 → 0.1.1-dev-67275c2.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-67275c2.0+67275c2",
|
|
4
4
|
"description": "Chain abstraction for Agoric's orchestration clients",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.js",
|
|
@@ -33,19 +33,19 @@
|
|
|
33
33
|
},
|
|
34
34
|
"homepage": "https://github.com/Agoric/agoric-sdk#readme",
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@agoric/async-flow": "0.1.1-dev-
|
|
37
|
-
"@agoric/cosmic-proto": "0.4.1-dev-
|
|
38
|
-
"@agoric/ertp": "0.16.3-dev-
|
|
39
|
-
"@agoric/internal": "0.3.3-dev-
|
|
40
|
-
"@agoric/network": "0.1.1-dev-
|
|
41
|
-
"@agoric/notifier": "0.6.3-dev-
|
|
42
|
-
"@agoric/store": "0.9.3-dev-
|
|
43
|
-
"@agoric/time": "0.3.3-dev-
|
|
44
|
-
"@agoric/vat-data": "0.5.3-dev-
|
|
45
|
-
"@agoric/vats": "0.15.2-dev-
|
|
46
|
-
"@agoric/vow": "0.1.1-dev-
|
|
47
|
-
"@agoric/zoe": "0.26.3-dev-
|
|
48
|
-
"@agoric/zone": "0.2.3-dev-
|
|
36
|
+
"@agoric/async-flow": "0.1.1-dev-67275c2.0+67275c2",
|
|
37
|
+
"@agoric/cosmic-proto": "0.4.1-dev-67275c2.0+67275c2",
|
|
38
|
+
"@agoric/ertp": "0.16.3-dev-67275c2.0+67275c2",
|
|
39
|
+
"@agoric/internal": "0.3.3-dev-67275c2.0+67275c2",
|
|
40
|
+
"@agoric/network": "0.1.1-dev-67275c2.0+67275c2",
|
|
41
|
+
"@agoric/notifier": "0.6.3-dev-67275c2.0+67275c2",
|
|
42
|
+
"@agoric/store": "0.9.3-dev-67275c2.0+67275c2",
|
|
43
|
+
"@agoric/time": "0.3.3-dev-67275c2.0+67275c2",
|
|
44
|
+
"@agoric/vat-data": "0.5.3-dev-67275c2.0+67275c2",
|
|
45
|
+
"@agoric/vats": "0.15.2-dev-67275c2.0+67275c2",
|
|
46
|
+
"@agoric/vow": "0.1.1-dev-67275c2.0+67275c2",
|
|
47
|
+
"@agoric/zoe": "0.26.3-dev-67275c2.0+67275c2",
|
|
48
|
+
"@agoric/zone": "0.2.3-dev-67275c2.0+67275c2",
|
|
49
49
|
"@endo/base64": "^1.0.7",
|
|
50
50
|
"@endo/errors": "^1.2.5",
|
|
51
51
|
"@endo/far": "^1.1.5",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"@noble/hashes": "^1.5.0"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
|
-
"@agoric/swingset-liveslots": "0.10.3-dev-
|
|
57
|
+
"@agoric/swingset-liveslots": "0.10.3-dev-67275c2.0+67275c2",
|
|
58
58
|
"@chain-registry/client": "^1.47.4",
|
|
59
59
|
"@cosmjs/amino": "^0.32.3",
|
|
60
60
|
"@cosmjs/proto-signing": "^0.32.3",
|
|
@@ -94,5 +94,5 @@
|
|
|
94
94
|
"typeCoverage": {
|
|
95
95
|
"atLeast": 98.1
|
|
96
96
|
},
|
|
97
|
-
"gitHead": "
|
|
97
|
+
"gitHead": "67275c2ac643b53bb74422cc92fe1f3565150d12"
|
|
98
98
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"staking-combinations.contract.d.ts","sourceRoot":"","sources":["staking-combinations.contract.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"staking-combinations.contract.d.ts","sourceRoot":"","sources":["staking-combinations.contract.js"],"names":[],"mappings":"AA8HA;iBArFkB,OAAO,OAAO,CAAC;gBAChB,OAAO,UAAU,CAAC;0BACR,OAAO,uBAAuB,CAAC;iBACxC,OAAO,WAAW,CAAC;gBACpB,UAAU;kBACR,OAAO,YAAY,CAAC;;;;;;;GAgFU;6BA1GvB,cAAc;4BAEf,kBAAkB;gCAHd,gCAAgC;6CAKnB,sCAAsC;kCANjD,cAAc;2CADL,mCAAmC;yBAIrD,aAAa"}
|
|
@@ -6,7 +6,6 @@
|
|
|
6
6
|
* actions with an ICA account.
|
|
7
7
|
*/
|
|
8
8
|
import { AmountShape } from '@agoric/ertp';
|
|
9
|
-
import { VowShape } from '@agoric/vow';
|
|
10
9
|
import { M } from '@endo/patterns';
|
|
11
10
|
import { prepareCombineInvitationMakers } from '../exos/combine-invitation-makers.js';
|
|
12
11
|
import { CosmosOrchestrationInvitationMakersInterface } from '../exos/cosmos-orchestration-account.js';
|
|
@@ -50,15 +49,10 @@ const emptyOfferShape = harden({
|
|
|
50
49
|
* @param {Zone} zone
|
|
51
50
|
* @param {OrchestrationTools} tools
|
|
52
51
|
*/
|
|
53
|
-
const contract = async (
|
|
54
|
-
zcf,
|
|
55
|
-
privateArgs,
|
|
56
|
-
zone,
|
|
57
|
-
{ orchestrateAll, vowTools },
|
|
58
|
-
) => {
|
|
52
|
+
const contract = async (zcf, privateArgs, zone, { orchestrateAll }) => {
|
|
59
53
|
const ExtraInvitationMakerInterface = M.interface('', {
|
|
60
|
-
DepositAndDelegate: M.call(M.array()).returns(
|
|
61
|
-
UndelegateAndTransfer: M.call(M.array()).returns(
|
|
54
|
+
DepositAndDelegate: M.call(M.array()).returns(M.promise()),
|
|
55
|
+
UndelegateAndTransfer: M.call(M.array()).returns(M.promise()),
|
|
62
56
|
});
|
|
63
57
|
/** @type {any} XXX async membrane */
|
|
64
58
|
const makeExtraInvitationMaker = zone.exoClass(
|
|
@@ -72,7 +66,7 @@ const contract = async (
|
|
|
72
66
|
DepositAndDelegate() {
|
|
73
67
|
const { account } = this.state;
|
|
74
68
|
|
|
75
|
-
|
|
69
|
+
return zcf.makeInvitation(
|
|
76
70
|
(seat, validatorAddr, amountArg) =>
|
|
77
71
|
// eslint-disable-next-line no-use-before-define -- defined by orchestrateAll, necessarily after this
|
|
78
72
|
orchFns.depositAndDelegate(account, seat, validatorAddr, amountArg),
|
|
@@ -84,8 +78,6 @@ const contract = async (
|
|
|
84
78
|
},
|
|
85
79
|
},
|
|
86
80
|
);
|
|
87
|
-
|
|
88
|
-
return vowTools.watch(invP);
|
|
89
81
|
},
|
|
90
82
|
/**
|
|
91
83
|
* @param {Omit<Delegation, 'delegatorAddress'>[]} delegations
|
|
@@ -93,15 +85,13 @@ const contract = async (
|
|
|
93
85
|
UndelegateAndTransfer(delegations) {
|
|
94
86
|
const { account } = this.state;
|
|
95
87
|
|
|
96
|
-
|
|
88
|
+
return zcf.makeInvitation(
|
|
97
89
|
// eslint-disable-next-line no-use-before-define -- defined by orchestrateAll, necessarily after this
|
|
98
90
|
() => orchFns.undelegateAndTransfer(account, delegations),
|
|
99
91
|
'Undelegate and transfer',
|
|
100
92
|
undefined,
|
|
101
93
|
emptyOfferShape,
|
|
102
94
|
);
|
|
103
|
-
|
|
104
|
-
return vowTools.watch(invP);
|
|
105
95
|
},
|
|
106
96
|
},
|
|
107
97
|
);
|