@agoric/portfolio-api 0.1.1-dev-1fb72a5.0.1fb72a5 → 0.1.1-dev-add30af.0.add30af

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/portfolio-api",
3
- "version": "0.1.1-dev-1fb72a5.0.1fb72a5",
3
+ "version": "0.1.1-dev-add30af.0.add30af",
4
4
  "description": "API for Portfolio management",
5
5
  "type": "module",
6
6
  "files": [
@@ -27,8 +27,8 @@
27
27
  "generate:ymax-machine": "npx tsx scripts/gen-ymax-machine.mts"
28
28
  },
29
29
  "dependencies": {
30
- "@agoric/internal": "0.3.3-dev-1fb72a5.0.1fb72a5",
31
- "@agoric/orchestration": "0.1.1-dev-1fb72a5.0.1fb72a5",
30
+ "@agoric/internal": "0.3.3-dev-add30af.0.add30af",
31
+ "@agoric/orchestration": "0.1.1-dev-add30af.0.add30af",
32
32
  "@endo/common": "^1.2.13",
33
33
  "@endo/errors": "^1.2.13",
34
34
  "@endo/patterns": "^1.7.0"
@@ -69,5 +69,5 @@
69
69
  "engines": {
70
70
  "node": "^20.9 || ^22.11"
71
71
  },
72
- "gitHead": "1fb72a589391ac4a32b526585a22fc0b4b3c6853"
72
+ "gitHead": "add30afd04e322b6ba1935ee63723fdd0e394ed7"
73
73
  }
package/src/resolver.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  /**
2
- * Tx statuses for published transactions. Exhaustive state machine flows:
2
+ * Statuses for published transactions. Exhaustive state machine transitions:
3
+ * - setup -> pending (when transaction information is assembled and sent)
3
4
  * - pending -> success (when cross-chain operation completes successfully)
4
5
  * - pending -> failed (when operation fails or times out)
5
6
  */
@@ -28,40 +29,64 @@ export const TxType: import("@agoric/internal").KeyMirrorResult<{
28
29
  MAKE_ACCOUNT: null;
29
30
  /**
30
31
  * Placeholder for ProgressTracker protocols not yet recognized by the
31
- * resolver, just so they can be published to vstorage, but not processed any
32
- * further. If these appear, it means the resolver source code needs to be
33
- * updated.
32
+ * resolver client, just so they can be published to vstorage, but not
33
+ * processed any further. If these appear, it means the resolver client
34
+ * source code needs to be updated.
34
35
  */
35
36
  UNKNOWN: null;
36
37
  }>;
37
38
  /**
38
- * Represents a published transaction with its type, optional amount, destination, and status.
39
+ * Adapt orchestration TrafficEntry to the portfolio's PublishedTx type.
40
+ * - Rename 'dst' to 'dest' for consistency with portfolio-contract.
41
+ * - Add optional 'amount' property.
39
42
  */
40
- export type PublishedTx = {
43
+ export type PublishedTrafficTxDetails = Partial<Omit<TrafficEntry, "dst">> & {
44
+ type: TxType & ("IBC_FROM_AGORIC" | "IBC_FROM_REMOTE");
45
+ dest?: TrafficEntry["dst"];
46
+ amount?: bigint;
47
+ };
48
+ /**
49
+ * Represents a transaction published in vstorage at
50
+ * `published.${contractInstance}.pendingTxs.tx${number}`
51
+ * with its type, optional amount, destination, and status.
52
+ */
53
+ export type PublishedPortfolioTxDetails = {
41
54
  /**
42
- * - The type of transaction (CCTP_TO_EVM, GMP, CCTP_TO_AGORIC, or MAKE_ACCOUNT)
55
+ * - The type of
56
+ * transaction (CCTP_TO_EVM, GMP, CCTP_TO_AGORIC, or MAKE_ACCOUNT)
43
57
  */
44
- type: TxType;
58
+ type: Exclude<TxType, PublishedTrafficTxDetails["type"]>;
45
59
  /**
46
- * - Optional transaction amount as a bigint
60
+ * - Optional transaction amount as a bigint, currently in micro-USDC (6 decimal fixed-point)
47
61
  */
48
62
  amount?: bigint | undefined;
49
63
  /**
50
- * - The destination account identifier for the transaction
64
+ * - The destination account
65
+ * identifier for the transaction
51
66
  */
52
67
  destinationAddress?: `${string}:${string}:${string}` | undefined;
53
68
  /**
54
- * - The source LCA address initiating the transaction (required for GMP and MAKE_ACCOUNT transactions)
69
+ * - The source LCA address initiating the
70
+ * transaction (required for GMP and MAKE_ACCOUNT transactions)
55
71
  */
56
72
  sourceAddress?: `${string}:${string}:${string}` | undefined;
57
73
  /**
58
- * - The expected smart wallet hex address to be created (for MAKE_ACCOUNT only, format: 0x...)
74
+ * - The expected address of the EVM smart
75
+ * wallet to be created (only for type "MAKE_ACCOUNT")
59
76
  */
60
- expectedAddr?: string | undefined;
77
+ expectedAddr?: `0x${string}` | undefined;
61
78
  /**
62
- * - The smart wallet factory address (for MAKE_ACCOUNT only, format: 0x...)
79
+ * - The address of the EVM smart wallet
80
+ * factory contract responsible for creating the smart wallet (only for type
81
+ * "MAKE_ACCOUNT")
63
82
  */
64
- factoryAddr?: string | undefined;
83
+ factoryAddr?: `0x${string}` | undefined;
84
+ };
85
+ export type PublishedTxBase = {
86
+ /**
87
+ * - The type of transaction (CCTP_TO_EVM, GMP, CCTP_TO_AGORIC, or MAKE_ACCOUNT)
88
+ */
89
+ type: TxType;
65
90
  /**
66
91
  * - Current status of the transaction (pending, success, or failed)
67
92
  */
@@ -71,8 +96,10 @@ export type PublishedTx = {
71
96
  */
72
97
  rejectionReason?: string | undefined;
73
98
  /**
74
- * - Optional ID of the next transaction in operation
99
+ * - DEPRECATED in favor of {@link import ('./types.js').FlowStep['phases']}. Optional ID of the next transaction in a sequence
75
100
  */
76
101
  nextTxId?: `tx${number}` | undefined;
77
102
  };
103
+ export type PublishedTx = PublishedTxBase & (PublishedTrafficTxDetails | PublishedPortfolioTxDetails);
104
+ import type { TrafficEntry } from '@agoric/orchestration';
78
105
  //# sourceMappingURL=resolver.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"resolver.d.ts","sourceRoot":"","sources":["resolver.js"],"names":[],"mappings":";;;;;uBA2BU,CAAC,OAAO,QAAQ,EAAE,MAAM,OAAO,QAAQ,CAAC;;;;;;;;;;qBAaxC,QAAQ,CAAC,CAAC,OAAO,MAAM,EAAE,MAAM,OAAO,MAAM,CAAC,CAAC;AAHxD;;;;GAIG;AAEH;;;;;;;IAOE;;;;;OAKG;;GAEF;;;;;;;;UA9CW,MAAM;;;;;;;;;;;;;;;;;;;;;;;;YAMN,QAAQ"}
1
+ {"version":3,"file":"resolver.d.ts","sourceRoot":"","sources":["resolver.js"],"names":[],"mappings":";;;;;;uBAaU,CAAC,OAAO,QAAQ,EAAE,MAAM,OAAO,QAAQ,CAAC;;;;;;;;;;qBAaxC,QAAQ,CAAC,CAAC,OAAO,MAAM,EAAE,MAAM,OAAO,MAAM,CAAC,CAAC;AAHxD;;;;GAIG;AACH;;;;;;;IAOE;;;;;OAKG;;GAEF;;;;;;wCAIU,OAAO,CAAC,IAAI,CAAC,YAAY,EAAE,KAAK,CAAC,CAAC,GAAG;IAC7C,IAAI,EAAE,MAAM,GAAG,CAAC,iBAAiB,GAAG,iBAAiB,CAAC,CAAC;IACvD,IAAI,CAAC,EAAE,YAAY,CAAC,KAAK,CAAC,CAAA;IAC1B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;;;;;;;;;;;UAYU,OAAO,CAAC,MAAM,EAAE,yBAAyB,CAAC,MAAM,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAiBlD,MAAM;;;;YACN,QAAQ;;;;;;;;;;0BAMT,eAAe,GAAG,CAAC,yBAAyB,GAAG,2BAA2B,CAAC;kCAnFlC,uBAAuB"}
package/src/resolver.js CHANGED
@@ -1,27 +1,13 @@
1
1
  import { keyMirror } from '@agoric/internal';
2
2
 
3
3
  /**
4
- * @import {AccountId} from '@agoric/orchestration';
4
+ * @import {AccountId, HexAddress, TrafficEntry} from '@agoric/orchestration';
5
5
  * @import {TxId} from './types.js';
6
6
  */
7
7
 
8
8
  /**
9
- * Represents a published transaction with its type, optional amount, destination, and status.
10
- *
11
- * @typedef {object} PublishedTx
12
- * @property {TxType} type - The type of transaction (CCTP_TO_EVM, GMP, CCTP_TO_AGORIC, or MAKE_ACCOUNT)
13
- * @property {bigint} [amount] - Optional transaction amount as a bigint
14
- * @property {AccountId} [destinationAddress] - The destination account identifier for the transaction
15
- * @property {AccountId} [sourceAddress] - The source LCA address initiating the transaction (required for GMP and MAKE_ACCOUNT transactions)
16
- * @property {string} [expectedAddr] - The expected smart wallet hex address to be created (for MAKE_ACCOUNT only, format: 0x...)
17
- * @property {string} [factoryAddr] - The smart wallet factory address (for MAKE_ACCOUNT only, format: 0x...)
18
- * @property {TxStatus} status - Current status of the transaction (pending, success, or failed)
19
- * @property {string} [rejectionReason] - Optional reason for failure (only present when status is 'failed')
20
- * @property {TxId} [nextTxId] - Optional ID of the next transaction in operation
21
- */
22
-
23
- /**
24
- * Tx statuses for published transactions. Exhaustive state machine flows:
9
+ * Statuses for published transactions. Exhaustive state machine transitions:
10
+ * - setup -> pending (when transaction information is assembled and sent)
25
11
  * - pending -> success (when cross-chain operation completes successfully)
26
12
  * - pending -> failed (when operation fails or times out)
27
13
  *
@@ -40,7 +26,6 @@ harden(TxStatus);
40
26
  *
41
27
  * @enum {Readonly<(typeof TxType)[keyof typeof TxType]>}
42
28
  */
43
-
44
29
  export const TxType = keyMirror({
45
30
  CCTP_TO_EVM: null,
46
31
  GMP: null,
@@ -50,10 +35,54 @@ export const TxType = keyMirror({
50
35
  MAKE_ACCOUNT: null,
51
36
  /**
52
37
  * Placeholder for ProgressTracker protocols not yet recognized by the
53
- * resolver, just so they can be published to vstorage, but not processed any
54
- * further. If these appear, it means the resolver source code needs to be
55
- * updated.
38
+ * resolver client, just so they can be published to vstorage, but not
39
+ * processed any further. If these appear, it means the resolver client
40
+ * source code needs to be updated.
56
41
  */
57
42
  UNKNOWN: null,
58
43
  });
59
44
  harden(TxType);
45
+
46
+ /**
47
+ * @typedef {Partial<Omit<TrafficEntry, 'dst'>> & {
48
+ * type: TxType & ('IBC_FROM_AGORIC' | 'IBC_FROM_REMOTE');
49
+ * dest?: TrafficEntry['dst']
50
+ * amount?: bigint;
51
+ * }} PublishedTrafficTxDetails
52
+ * Adapt orchestration TrafficEntry to the portfolio's PublishedTx type.
53
+ * - Rename 'dst' to 'dest' for consistency with portfolio-contract.
54
+ * - Add optional 'amount' property.
55
+ */
56
+
57
+ /**
58
+ * Represents a transaction published in vstorage at
59
+ * `published.${contractInstance}.pendingTxs.tx${number}`
60
+ * with its type, optional amount, destination, and status.
61
+ *
62
+ * @typedef {object} PublishedPortfolioTxDetails
63
+ * @property {Exclude<TxType, PublishedTrafficTxDetails['type']>} type - The type of
64
+ * transaction (CCTP_TO_EVM, GMP, CCTP_TO_AGORIC, or MAKE_ACCOUNT)
65
+ * @property {bigint} [amount] - Optional transaction amount as a bigint, currently in micro-USDC (6 decimal fixed-point)
66
+ * @property {AccountId} [destinationAddress] - The destination account
67
+ * identifier for the transaction
68
+ * @property {AccountId} [sourceAddress] - The source LCA address initiating the
69
+ * transaction (required for GMP and MAKE_ACCOUNT transactions)
70
+ * @property {HexAddress} [expectedAddr] - The expected address of the EVM smart
71
+ * wallet to be created (only for type "MAKE_ACCOUNT")
72
+ * @property {HexAddress} [factoryAddr] - The address of the EVM smart wallet
73
+ * factory contract responsible for creating the smart wallet (only for type
74
+ * "MAKE_ACCOUNT")
75
+ */
76
+
77
+ // eslint-disable-next-line @agoric/group-jsdoc-imports
78
+ /**
79
+ * @typedef {object} PublishedTxBase
80
+ * @property {TxType} type - The type of transaction (CCTP_TO_EVM, GMP, CCTP_TO_AGORIC, or MAKE_ACCOUNT)
81
+ * @property {TxStatus} status - Current status of the transaction (pending, success, or failed)
82
+ * @property {string} [rejectionReason] - Optional reason for failure (only present when status is 'failed')
83
+ * @property {TxId} [nextTxId] - DEPRECATED in favor of {@link import('./types.js').FlowStep['phases']}. Optional ID of the next transaction in a sequence
84
+ */
85
+
86
+ /**
87
+ * @typedef {PublishedTxBase & (PublishedTrafficTxDetails | PublishedPortfolioTxDetails)} PublishedTx
88
+ */
package/src/types.d.ts CHANGED
@@ -142,7 +142,19 @@ export type FlowStep = {
142
142
  amount: NatAmount;
143
143
  src: AssetPlaceRef;
144
144
  dest: AssetPlaceRef;
145
- phases?: Record<TxPhase, TxId[]>;
145
+ /**
146
+ * A single FlowStep can have an arbitrary number of associated pendingTxs
147
+ * entries. They are tracked by grouping them into "phases", containing an
148
+ * array of TxIds in order of execution.
149
+ *
150
+ * It is valid for the phases record
151
+ * - to be omitted,
152
+ * - to have one property,
153
+ * - to have no properties,
154
+ * - to have more than one property.
155
+ * and for each property, to have an array of zero or more TxIds.
156
+ */
157
+ phases?: Partial<Record<TxPhase, TxId[]>>;
146
158
  };
147
159
  /**
148
160
  * Each step in the `flow` of a FundsFlowPlan can depend upon any number of
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EACL,KAAK,SAAS,EACd,KAAK,aAAa,EAClB,KAAK,kBAAkB,EACvB,KAAK,YAAY,EAClB,MAAM,uBAAuB,CAAC;AAK/B,OAAO,KAAK,EACV,WAAW,EACX,cAAc,EACd,aAAa,EACd,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,KAAK,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAErE;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG;IACzB,yCAAyC;IACzC,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG;IACvB,QAAQ,CAAC,EAAE,YAAY,CAAC;CACzB,CAAC;AACF,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,SAAS,CAAC;AAE7C;;;GAGG;AACH,MAAM,MAAM,oBAAoB,GAAG,SAAS,CAAC;AAE7C;;;GAGG;AACH,MAAM,MAAM,mBAAmB,GAAG,IAAI,WAAW,EAAE,CAAC;AAEpD;;;GAGG;AACH,MAAM,MAAM,kBAAkB,GAAG,IAAI,WAAW,EAAE,CAAC;AAEnD,MAAM,MAAM,oBAAoB,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