@agoric/orchestration 0.1.1-dev-5d70529.0 → 0.1.1-dev-c87930e.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-5d70529.0+5d70529",
3
+ "version": "0.1.1-dev-c87930e.0+c87930e",
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-5d70529.0+5d70529",
37
- "@agoric/cosmic-proto": "0.4.1-dev-5d70529.0+5d70529",
38
- "@agoric/ertp": "0.16.3-dev-5d70529.0+5d70529",
39
- "@agoric/internal": "0.3.3-dev-5d70529.0+5d70529",
40
- "@agoric/network": "0.1.1-dev-5d70529.0+5d70529",
41
- "@agoric/notifier": "0.6.3-dev-5d70529.0+5d70529",
42
- "@agoric/store": "0.9.3-dev-5d70529.0+5d70529",
43
- "@agoric/time": "0.3.3-dev-5d70529.0+5d70529",
44
- "@agoric/vat-data": "0.5.3-dev-5d70529.0+5d70529",
45
- "@agoric/vats": "0.15.2-dev-5d70529.0+5d70529",
46
- "@agoric/vow": "0.1.1-dev-5d70529.0+5d70529",
47
- "@agoric/zoe": "0.26.3-dev-5d70529.0+5d70529",
48
- "@agoric/zone": "0.2.3-dev-5d70529.0+5d70529",
36
+ "@agoric/async-flow": "0.1.1-dev-c87930e.0+c87930e",
37
+ "@agoric/cosmic-proto": "0.4.1-dev-c87930e.0+c87930e",
38
+ "@agoric/ertp": "0.16.3-dev-c87930e.0+c87930e",
39
+ "@agoric/internal": "0.3.3-dev-c87930e.0+c87930e",
40
+ "@agoric/network": "0.1.1-dev-c87930e.0+c87930e",
41
+ "@agoric/notifier": "0.6.3-dev-c87930e.0+c87930e",
42
+ "@agoric/store": "0.9.3-dev-c87930e.0+c87930e",
43
+ "@agoric/time": "0.3.3-dev-c87930e.0+c87930e",
44
+ "@agoric/vat-data": "0.5.3-dev-c87930e.0+c87930e",
45
+ "@agoric/vats": "0.15.2-dev-c87930e.0+c87930e",
46
+ "@agoric/vow": "0.1.1-dev-c87930e.0+c87930e",
47
+ "@agoric/zoe": "0.26.3-dev-c87930e.0+c87930e",
48
+ "@agoric/zone": "0.2.3-dev-c87930e.0+c87930e",
49
49
  "@endo/base64": "^1.0.5",
50
50
  "@endo/errors": "^1.2.2",
51
51
  "@endo/far": "^1.1.2",
@@ -54,7 +54,7 @@
54
54
  "@noble/hashes": "github:paulmillr/noble-hashes#ae060da"
55
55
  },
56
56
  "devDependencies": {
57
- "@agoric/swingset-liveslots": "0.10.3-dev-5d70529.0+5d70529",
57
+ "@agoric/swingset-liveslots": "0.10.3-dev-c87930e.0+c87930e",
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.05
96
96
  },
97
- "gitHead": "5d705299d437b90b473274c5eb073185c23f51cb"
97
+ "gitHead": "c87930eadf94cb146f054d5f31429c5156c7dacd"
98
98
  }
@@ -26,7 +26,7 @@ import { withOrchestration } from '../utils/start-helper.js';
26
26
  * @param {Amount<'nat'>} offerArgs.staked
27
27
  * @param {CosmosValidatorAddress} offerArgs.validator
28
28
  */
29
- const stackAndSwapFn = async (orch, { localTransfer }, seat, offerArgs) => {
29
+ const stakeAndSwapFn = async (orch, { localTransfer }, seat, offerArgs) => {
30
30
  const { give } = seat.getProposal();
31
31
 
32
32
  const omni = await orch.getChain('omniflixhub');
@@ -52,12 +52,12 @@ const stackAndSwapFn = async (orch, { localTransfer }, seat, offerArgs) => {
52
52
  slippage: 0.03,
53
53
  });
54
54
 
55
- await localAccount
56
- .transferSteps(give.Stable, transferMsg)
57
- .then(_txResult =>
58
- omniAccount.delegate(offerArgs.validator, offerArgs.staked),
59
- )
60
- .catch(e => console.error(e));
55
+ try {
56
+ await localAccount.transferSteps(give.Stable, transferMsg);
57
+ await omniAccount.delegate(offerArgs.validator, offerArgs.staked);
58
+ } catch (e) {
59
+ console.error(e);
60
+ }
61
61
  };
62
62
 
63
63
  /** @type {ContractMeta<typeof start>} */
@@ -105,7 +105,7 @@ const contract = async (zcf, privateArgs, zone, { orchestrate, zoeTools }) => {
105
105
  const swapAndStakeHandler = orchestrate(
106
106
  'LSTTia',
107
107
  { zcf, localTransfer: zoeTools.localTransfer },
108
- stackAndSwapFn,
108
+ stakeAndSwapFn,
109
109
  );
110
110
 
111
111
  const publicFacet = zone.exo('publicFacet', undefined, {