@agoric/orchestration 0.1.1-dev-0705f2c.0 → 0.1.1-dev-a9680dd.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-0705f2c.0+0705f2c",
3
+ "version": "0.1.1-dev-a9680dd.0+a9680dd",
4
4
  "description": "Chain abstraction for Agoric's orchestration clients",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -33,20 +33,19 @@
33
33
  },
34
34
  "homepage": "https://github.com/Agoric/agoric-sdk#readme",
35
35
  "dependencies": {
36
- "@agoric/assert": "0.6.1-dev-0705f2c.0+0705f2c",
37
- "@agoric/async-flow": "0.1.1-dev-0705f2c.0+0705f2c",
38
- "@agoric/cosmic-proto": "0.4.1-dev-0705f2c.0+0705f2c",
39
- "@agoric/ertp": "0.16.3-dev-0705f2c.0+0705f2c",
40
- "@agoric/internal": "0.3.3-dev-0705f2c.0+0705f2c",
41
- "@agoric/network": "0.1.1-dev-0705f2c.0+0705f2c",
42
- "@agoric/notifier": "0.6.3-dev-0705f2c.0+0705f2c",
43
- "@agoric/store": "0.9.3-dev-0705f2c.0+0705f2c",
44
- "@agoric/time": "0.3.3-dev-0705f2c.0+0705f2c",
45
- "@agoric/vat-data": "0.5.3-dev-0705f2c.0+0705f2c",
46
- "@agoric/vats": "0.15.2-dev-0705f2c.0+0705f2c",
47
- "@agoric/vow": "0.1.1-dev-0705f2c.0+0705f2c",
48
- "@agoric/zoe": "0.26.3-dev-0705f2c.0+0705f2c",
49
- "@agoric/zone": "0.2.3-dev-0705f2c.0+0705f2c",
36
+ "@agoric/async-flow": "0.1.1-dev-a9680dd.0+a9680dd",
37
+ "@agoric/cosmic-proto": "0.4.1-dev-a9680dd.0+a9680dd",
38
+ "@agoric/ertp": "0.16.3-dev-a9680dd.0+a9680dd",
39
+ "@agoric/internal": "0.3.3-dev-a9680dd.0+a9680dd",
40
+ "@agoric/network": "0.1.1-dev-a9680dd.0+a9680dd",
41
+ "@agoric/notifier": "0.6.3-dev-a9680dd.0+a9680dd",
42
+ "@agoric/store": "0.9.3-dev-a9680dd.0+a9680dd",
43
+ "@agoric/time": "0.3.3-dev-a9680dd.0+a9680dd",
44
+ "@agoric/vat-data": "0.5.3-dev-a9680dd.0+a9680dd",
45
+ "@agoric/vats": "0.15.2-dev-a9680dd.0+a9680dd",
46
+ "@agoric/vow": "0.1.1-dev-a9680dd.0+a9680dd",
47
+ "@agoric/zoe": "0.26.3-dev-a9680dd.0+a9680dd",
48
+ "@agoric/zone": "0.2.3-dev-a9680dd.0+a9680dd",
50
49
  "@endo/base64": "^1.0.5",
51
50
  "@endo/errors": "^1.2.2",
52
51
  "@endo/far": "^1.1.2",
@@ -91,5 +90,5 @@
91
90
  "typeCoverage": {
92
91
  "atLeast": 97.1
93
92
  },
94
- "gitHead": "0705f2c34da9a89c2b3441b47f8e5bfca53a9590"
93
+ "gitHead": "a9680dd04485e4a63c4fcd588ec38d2558243877"
95
94
  }
@@ -38,7 +38,7 @@ const { entries } = Object;
38
38
  * @param {object} ctx
39
39
  * @param {ZCF} ctx.zcf
40
40
  * @param {any} ctx.agoricNamesTools TODO Give this a better type
41
- * @param {{ account: OrchestrationAccount<any> }} ctx.contractState
41
+ * @param {{ account: OrchestrationAccount<any> | undefined }} ctx.contractState
42
42
  * @param {ZCFSeat} seat
43
43
  * @param {object} offerArgs
44
44
  * @param {string} offerArgs.chainName
@@ -68,8 +68,8 @@ const sendItFn = async (
68
68
  const { chainId } = info;
69
69
  assert(typeof chainId === 'string', 'bad chainId');
70
70
  const { [kw]: pmtP } = await withdrawFromSeat(zcf, seat, give);
71
- await E.when(pmtP, pmt => contractState.account.deposit(pmt));
72
- await contractState.account.transfer(
71
+ await E.when(pmtP, pmt => contractState.account?.deposit(pmt));
72
+ await contractState.account?.transfer(
73
73
  { denom, value: amt.value },
74
74
  {
75
75
  address: destAddr,
@@ -1 +1 @@
1
- {"version":3,"file":"chain-account-kit.d.ts","sourceRoot":"","sources":["chain-account-kit.js"],"names":[],"mappings":"AA8BA;;;;;;;;;;;GAaG;AAkBI,6CAHI,IAAI,oBACJ,QAAQ;;QA+BX,0BAA0B;yBAAd,MAAM;;;QAMlB,8BAA8B;sBAAhB,YAAY;;;;;;;QAmC1B;;;;;;;;;WASG;+BALQ,OAAO,EAAE,gDAEP,IAAI,MAAM,CAAC;QAcxB;;;;;WAKG;iBAFU,IAAI,IAAI,CAAC;QAatB;;;;WAIG;wBADQ,KAAK;;;QAQhB;;;;WAIG;2BAHQ,OAAO,UAAU,CAAC,aAClB,eAAe,cACf,gBAAgB;QAe3B;;;WAGG;6BAFQ,OAAO,UAAU,CAAC,UAClB,OAAO;;GASvB;qCApLW,0BAA0B;oBAmB3B;IACZ,OAAW,EAAE,MAAM,CAAC;IACpB,IAAQ,EAAE,IAAI,CAAC;IACf,UAAc,EAAE,OAAO,UAAU,CAAC,GAAG,SAAS,CAAC;IAC/C,YAAgB,EAAE,eAAe,GAAG,SAAS,CAAC;IAC9C,sBAA0B,EAAE,MAAM,CAAC;IACnC,aAAiB,EAAE,gBAAgB,GAAG,SAAS,CAAC;IAChD,YAAgB,EAAE,YAAY,GAAG,SAAS,CAAC;CACxC;8BA2JU,UAAU,CAAC,UAAU,CAAC,OAAO,sBAAsB,CAAC,CAAC;0BAlM5C,mBAAmB;8BAEF,aAAa;0BADlB,iBAAiB;kCAKrB,aAAa;yBAJJ,aAAa;6BAC3B,sBAAsB;4BACvB,8CAA8C;gCAHpC,iBAAiB;4BACZ,aAAa;qCAGD,iCAAiC;sCAAjC,iCAAiC"}
1
+ {"version":3,"file":"chain-account-kit.d.ts","sourceRoot":"","sources":["chain-account-kit.js"],"names":[],"mappings":"AA6BA;;;;;;;;;;;GAaG;AAkBI,6CAHI,IAAI,oBACJ,QAAQ;;QA+BX,0BAA0B;yBAAd,MAAM;;;QAMlB,8BAA8B;sBAAhB,YAAY;;;;;;;QAmC1B;;;;;;;;;WASG;+BALQ,OAAO,EAAE,gDAEP,IAAI,MAAM,CAAC;QAcxB;;;;;WAKG;iBAFU,IAAI,IAAI,CAAC;QAatB;;;;WAIG;wBADQ,KAAK;;;QAQhB;;;;WAIG;2BAHQ,OAAO,UAAU,CAAC,aAClB,eAAe,cACf,gBAAgB;QAe3B;;;WAGG;6BAFQ,OAAO,UAAU,CAAC,UAClB,OAAO;;GASvB;qCApLW,0BAA0B;oBAmB3B;IACZ,OAAW,EAAE,MAAM,CAAC;IACpB,IAAQ,EAAE,IAAI,CAAC;IACf,UAAc,EAAE,OAAO,UAAU,CAAC,GAAG,SAAS,CAAC;IAC/C,YAAgB,EAAE,eAAe,GAAG,SAAS,CAAC;IAC9C,sBAA0B,EAAE,MAAM,CAAC;IACnC,aAAiB,EAAE,gBAAgB,GAAG,SAAS,CAAC;IAChD,YAAgB,EAAE,YAAY,GAAG,SAAS,CAAC;CACxC;8BA2JU,UAAU,CAAC,UAAU,CAAC,OAAO,sBAAsB,CAAC,CAAC;0BAjM5C,mBAAmB;8BAEF,aAAa;0BADlB,iBAAiB;kCAKrB,aAAa;yBAJJ,aAAa;6BAC3B,sBAAsB;4BACvB,8CAA8C;gCAHpC,iBAAiB;4BACZ,aAAa;qCAGD,iCAAiC;sCAAjC,iCAAiC"}
@@ -1,9 +1,9 @@
1
1
  /** @file ChainAccount exo */
2
- import { NonNullish } from '@agoric/assert';
3
- import { makeTracer } from '@agoric/internal';
4
- import { VowShape } from '@agoric/vow';
2
+ import { Fail } from '@endo/errors';
5
3
  import { E } from '@endo/far';
6
4
  import { M } from '@endo/patterns';
5
+ import { NonNullish, makeTracer } from '@agoric/internal';
6
+ import { VowShape } from '@agoric/vow';
7
7
  import {
8
8
  ChainAddressShape,
9
9
  OutboundConnectionHandlerI,
@@ -22,7 +22,6 @@ import { makeTxPacket, parseTxPacket } from '../utils/packet.js';
22
22
  * @import {ChainAddress} from '../types.js';
23
23
  */
24
24
 
25
- const { Fail } = assert;
26
25
  const trace = makeTracer('ChainAccountKit');
27
26
 
28
27
  /** @typedef {'UNPARSABLE_CHAIN_ADDRESS'} UnparsableChainAddress */
@@ -1,17 +1,17 @@
1
+ import { Fail, makeError } from '@endo/errors';
2
+ import { E } from '@endo/far';
3
+ import { M } from '@endo/patterns';
4
+
1
5
  import { VowShape } from '@agoric/vow';
2
6
  // eslint-disable-next-line no-restricted-syntax
3
7
  import { heapVowTools } from '@agoric/vow/vat.js';
4
8
  import { makeHeapZone } from '@agoric/zone';
5
- import { E } from '@endo/far';
6
- import { M } from '@endo/patterns';
7
9
  import { CosmosChainInfoShape, IBCConnectionInfoShape } from '../typeGuards.js';
8
10
 
9
11
  // FIXME test thoroughly whether heap suffices for ChainHub
10
12
  // eslint-disable-next-line no-restricted-syntax
11
13
  const { allVows, watch } = heapVowTools;
12
14
 
13
- const { Fail } = assert;
14
-
15
15
  /**
16
16
  * @import {NameHub} from '@agoric/vats';
17
17
  * @import {Vow} from '@agoric/vow';
@@ -143,7 +143,7 @@ export const makeChainHub = (agoricNames, zone = makeHeapZone()) => {
143
143
  return chainInfo;
144
144
  },
145
145
  onRejected: _cause => {
146
- throw assert.error(`chain not found:${chainName}`);
146
+ throw makeError(`chain not found:${chainName}`);
147
147
  },
148
148
  });
149
149
  },
@@ -176,7 +176,7 @@ export const makeChainHub = (agoricNames, zone = makeHeapZone()) => {
176
176
  return connectionInfo;
177
177
  },
178
178
  onRejected: _cause => {
179
- throw assert.error(`connection not found: ${chainId1}<->${chainId2}`);
179
+ throw makeError(`connection not found: ${chainId1}<->${chainId2}`);
180
180
  },
181
181
  });
182
182
  },
@@ -1 +1 @@
1
- {"version":3,"file":"cosmos-orchestration-account.d.ts","sourceRoot":"","sources":["cosmos-orchestration-account.js"],"names":[],"mappings":"AAqDA;;;GAGG;AAEH;;;;;;;;;GASG;AAEH,mCAAmC;AACnC;;;;;;;;;;;;;;;GAmBG;AAgBI,2DALI,IAAI,mBACJ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,EAAE,YAAY,CAAC;IAC/B,aAAiB,EAAE,aAAa,GAAG,SAAS,CAAC;IAC7C,SAAa,EAAE,MAAM,CAAC;IACtB,KAAS,EAAE,OAAO,YAAY,CAAC,CAAC;CAC7B;4CAubS,UAAU,CACtB,UAAc,CAAC,OAAO,oCAAoC,CAAC,CACxD;yCA4BU,6BAA6B,CAAC,QAAQ,CAAC;0BA3e9B,cAAc;qCANU,6CAA6C;8BAK5D,aAAa;kCANqH,aAAa;gCAAb,aAAa;4BAItJ,kBAAkB;mCAJuH,aAAa;kCAKhJ,cAAc;+BALqH,aAAa;0BAExJ,kDAAkD;mCAMzC,+CAA+C;8BACpD,sBAAsB;iCATiH,aAAa;yBAM/I,aAAa;4CANqH,aAAa;gCAGlJ,wDAAwD;8BAH6E,aAAa;iCAChI,6CAA6C"}
@@ -1,4 +1,7 @@
1
1
  /** @file Use-object for the owner of a staking account */
2
+ import { Fail } from '@endo/errors';
3
+ import { decodeBase64 } from '@endo/base64';
4
+ import { E } from '@endo/far';
2
5
  import { toRequestQueryJson } from '@agoric/cosmic-proto';
3
6
  import {
4
7
  QueryBalanceRequest,
@@ -20,8 +23,6 @@ import { Shape as NetworkShape } from '@agoric/network';
20
23
  import { M } from '@agoric/vat-data';
21
24
  import { VowShape } from '@agoric/vow';
22
25
  import { TopicsRecordShape } from '@agoric/zoe/src/contractSupport/index.js';
23
- import { decodeBase64 } from '@endo/base64';
24
- import { E } from '@endo/far';
25
26
  import {
26
27
  AmountArgShape,
27
28
  ChainAddressShape,
@@ -48,7 +49,6 @@ import { dateInSeconds } from '../utils/time.js';
48
49
 
49
50
  const trace = makeTracer('ComosOrchestrationAccountHolder');
50
51
 
51
- const { Fail } = assert;
52
52
  const { Vow$ } = NetworkShape; // TODO #9611
53
53
 
54
54
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"icq-connection-kit.d.ts","sourceRoot":"","sources":["icq-connection-kit.js"],"names":[],"mappings":"AAoBA,2DAGE;AAEF;;;;GAIG;AA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C;+BAgGU,UAAU,CAAC,UAAU,CAAC,OAAO,uBAAuB,CAAC,CAAC;4BACtD,gBAAgB,CAAC,YAAY,CAAC;0BA5HrB,mBAAmB;8BAEP,aAAa;0BADb,iBAAiB;kCAGN,+CAA+C;8BADlE,sBAAsB;mCACH,+CAA+C;gCAH1D,iBAAiB;4BACjB,aAAa;qCAGI,iCAAiC;sCAAjC,iCAAiC"}
@@ -1,8 +1,8 @@
1
1
  /** @file ICQConnection Exo */
2
- import { NonNullish } from '@agoric/assert';
3
- import { makeTracer } from '@agoric/internal';
2
+ import { Fail } from '@endo/errors';
4
3
  import { E } from '@endo/far';
5
4
  import { M } from '@endo/patterns';
5
+ import { NonNullish, makeTracer } from '@agoric/internal';
6
6
  import { makeQueryPacket, parseQueryPacket } from '../utils/packet.js';
7
7
  import { OutboundConnectionHandlerI } from '../typeGuards.js';
8
8
 
@@ -15,7 +15,6 @@ import { OutboundConnectionHandlerI } from '../typeGuards.js';
15
15
  * @import {LocalIbcAddress, RemoteIbcAddress} from '@agoric/vats/tools/ibc-utils.js';
16
16
  */
17
17
 
18
- const { Fail } = assert;
19
18
  const trace = makeTracer('Orchestration:ICQConnection');
20
19
 
21
20
  export const ICQMsgShape = M.splitRecord(
package/src/facade.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /** @file Orchestration service */
2
2
 
3
- import { Fail } from '@agoric/assert';
3
+ import { Fail } from '@endo/errors';
4
4
  import { pickFacet } from '@agoric/vat-data';
5
5
  import { prepareOrchestratorKit } from './exos/orchestrator.js';
6
6
 
@@ -1,7 +1,7 @@
1
- import { makeTracer } from '@agoric/internal';
1
+ import { Fail } from '@endo/errors';
2
2
  import { E, Far } from '@endo/far';
3
3
  import { makeMarshal } from '@endo/marshal';
4
- import { Fail } from '@agoric/assert';
4
+ import { makeTracer } from '@agoric/internal';
5
5
  import { registerChainNamespace } from '../chain-info.js';
6
6
  import { CHAIN_KEY, CONNECTIONS_KEY } from '../exos/chain-hub.js';
7
7
 
@@ -1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AD1C,kBAAkB;sCAKoC,YAAY;qCAAZ,YAAY"}
package/src/service.js CHANGED
@@ -1,5 +1,6 @@
1
1
  /** @file Orchestration service */
2
2
 
3
+ import { Fail, b } from '@endo/errors';
3
4
  import { E } from '@endo/far';
4
5
  import { M } from '@endo/patterns';
5
6
  import { Shape as NetworkShape } from '@agoric/network';
@@ -20,7 +21,6 @@ import {
20
21
  * @import {ICQConnection, IcaAccount, ICQConnectionKit, ChainAccountKit} from './types.js';
21
22
  */
22
23
 
23
- const { Fail, bare } = assert;
24
24
  const { Vow$ } = NetworkShape; // TODO #9611
25
25
  /**
26
26
  * @typedef {object} OrchestrationPowers
@@ -48,7 +48,7 @@ const { Vow$ } = NetworkShape; // TODO #9611
48
48
  * @param {K} name
49
49
  */
50
50
  const getPower = (powers, name) => {
51
- powers.has(name) || Fail`need powers.${bare(name)} for this method`;
51
+ powers.has(name) || Fail`need powers.${b(name)} for this method`;
52
52
  return /** @type {OrchestrationPowers[K]} */ (powers.get(name));
53
53
  };
54
54
 
@@ -1,4 +1,4 @@
1
- import { Fail } from '@agoric/assert';
1
+ import { Fail } from '@endo/errors';
2
2
 
3
3
  /**
4
4
  * @import {IBCConnectionID} from '@agoric/vats';
@@ -1 +1 @@
1
- {"version":3,"file":"cosmos.d.ts","sourceRoot":"","sources":["cosmos.js"],"names":[],"mappings":"AAIA,mFAAmF;AACnF,kCAAsC;AAO/B,2CAJI,OAAO,cACP,CAAC,GAAG,EAAE,GAAG,KAAK,GAAG,GACf,MAAM,CAQlB;AAOM,kCAJM,CAAC,UACH,MAAM,gBACN,CAAC,CAAC,EAAE;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,UAAU,CAAA;CAAE,KAAK,CAAC,KAY1D;oBAlCmB,6CAA6C"}
1
+ {"version":3,"file":"cosmos.d.ts","sourceRoot":"","sources":["cosmos.js"],"names":[],"mappings":"AAIA,mFAAmF;AACnF,kCAAsC;AAO/B,2CAJI,OAAO,cACP,CAAC,GAAG,EAAE,GAAG,KAAK,GAAG,GACf,MAAM,CAQlB;AAOM,kCAJM,CAAC,UACH,MAAM,gBACN,CAAC,CAAC,EAAE;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,UAAU,CAAA;CAAE,KAAK,CAAC,KAY1D;oBAjCmB,6CAA6C"}
@@ -1,6 +1,6 @@
1
- import { assert } from '@agoric/assert';
2
- import { Any } from '@agoric/cosmic-proto/google/protobuf/any.js';
1
+ import { makeError } from '@endo/errors';
3
2
  import { decodeBase64, encodeBase64 } from '@endo/base64';
3
+ import { Any } from '@agoric/cosmic-proto/google/protobuf/any.js';
4
4
 
5
5
  /** maximum clock skew, in seconds, for unbonding time reported from other chain */
6
6
  export const maxClockSkew = 10n * 60n;
@@ -31,6 +31,6 @@ export const tryDecodeResponse = (ackStr, fromProtoMsg) => {
31
31
  const msg = fromProtoMsg(protoMsg);
32
32
  return msg;
33
33
  } catch (cause) {
34
- throw assert.error(`bad response: ${ackStr}`, undefined, { cause });
34
+ throw makeError(`bad response: ${ackStr}`, undefined, { cause });
35
35
  }
36
36
  };
@@ -1 +1 @@
1
- {"version":3,"file":"start-helper.d.ts","sourceRoot":"","sources":["start-helper.js"],"names":[],"mappings":"AAwCO,0CALI,GAAG,WACH,OAAO,gBACP,mBAAmB,cACnB,UAAU;;;;;;;;;;;;;;;;;wCAyCV,GAAG;;;;4PA6BS,GACjB,4CAA4E,GAAG;;;;;;EAFpF;kCArFY;IACZ,UAAc,EAAE,OAAO,UAAU,CAAC,CAAC;IACnC,oBAAwB,EAAE,OAAO,oBAAoB,CAAC,CAAC;IACvD,WAAe,EAAE,OAAO,WAAW,CAAC,CAAC;IACrC,YAAgB,EAAE,OAAO,YAAY,CAAC,CAAC;IACvC,WAAe,EAAE,OAAO,OAAO,CAAC,CAAC;CAC9B;6BAbsB,kBAAkB;gCAFf,gCAAgC;4BAIpC,aAAa;0CACC,eAAe;kCAJX,cAAc;6BAE/B,cAAc"}
1
+ {"version":3,"file":"start-helper.d.ts","sourceRoot":"","sources":["start-helper.js"],"names":[],"mappings":"AAwCO,0CALI,GAAG,WACH,OAAO,gBACP,mBAAmB,cACnB,UAAU;;;;;;;;;;;;;;;;;wCAyCV,GAAG;;;;4PA6BO,GACjB,4CAA4E,GAAG;;;;;;EAFlF;kCArFY;IACZ,UAAc,EAAE,OAAO,UAAU,CAAC,CAAC;IACnC,oBAAwB,EAAE,OAAO,oBAAoB,CAAC,CAAC;IACvD,WAAe,EAAE,OAAO,WAAW,CAAC,CAAC;IACrC,YAAgB,EAAE,OAAO,YAAY,CAAC,CAAC;IACvC,WAAe,EAAE,OAAO,OAAO,CAAC,CAAC;CAC9B;6BAbsB,kBAAkB;gCAFf,gCAAgC;4BAIpC,aAAa;0CACC,eAAe;kCAJX,cAAc;6BAE/B,cAAc"}
@@ -1 +1 @@
1
- {"version":3,"file":"vat-orchestration.d.ts","sourceRoot":"","sources":["vat-orchestration.js"],"names":[],"mappings":"AAOO;IASH,4DAA4D;;;;;;;;;;;;;;;;;;iCAQ01J,CAAC;;;;;;;;;IARv5J,4DAA4D;;;;;;;;;;;;;;;;;;iCAQ01J,CAAC;;;;;;;;GAH15J;+BAEa,UAAU,CAAC,OAAO,eAAe,CAAC;yCAlBT,cAAc"}
1
+ {"version":3,"file":"vat-orchestration.d.ts","sourceRoot":"","sources":["vat-orchestration.js"],"names":[],"mappings":"AAOO;IASH,4DAA4D;;;;;;;;;;;;;;;;;;iCAQg2J,CAAC;;;;;;;;;IAR75J,4DAA4D;;;;;;;;;;;;;;;;;;iCAQg2J,CAAC;;;;;;;;GAHh6J;+BAEa,UAAU,CAAC,OAAO,eAAe,CAAC;yCAlBT,cAAc"}