@agoric/portfolio-api 0.1.1-dev-b95c1c8.0.b95c1c8 → 0.1.1-dev-6070e33.0.6070e33

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-b95c1c8.0.b95c1c8",
3
+ "version": "0.1.1-dev-6070e33.0.6070e33",
4
4
  "description": "API for Portfolio management",
5
5
  "type": "module",
6
6
  "files": [
@@ -22,11 +22,11 @@
22
22
  "lint:types": "yarn run -T tsc"
23
23
  },
24
24
  "dependencies": {
25
- "@agoric/orchestration": "0.1.1-dev-b95c1c8.0.b95c1c8",
25
+ "@agoric/orchestration": "0.1.1-dev-6070e33.0.6070e33",
26
26
  "@endo/common": "^1.2.13"
27
27
  },
28
28
  "devDependencies": {
29
- "@agoric/internal": "0.3.3-dev-b95c1c8.0.b95c1c8",
29
+ "@agoric/internal": "0.3.3-dev-6070e33.0.6070e33",
30
30
  "ava": "^5.3.0",
31
31
  "c8": "^10.1.3",
32
32
  "ts-blank-space": "^0.6.2",
@@ -56,5 +56,5 @@
56
56
  "engines": {
57
57
  "node": "^20.9 || ^22.11"
58
58
  },
59
- "gitHead": "b95c1c8ea955b25f16fa2582bd9878d99f73fed1"
59
+ "gitHead": "6070e33569f98451c4fa8a029d6a780c9baf872e"
60
60
  }
package/src/resolver.d.ts CHANGED
@@ -17,13 +17,14 @@ export namespace TxType {
17
17
  let CCTP_TO_EVM: "CCTP_TO_EVM";
18
18
  let GMP: "GMP";
19
19
  let CCTP_TO_AGORIC: "CCTP_TO_AGORIC";
20
+ let MAKE_ACCOUNT: "MAKE_ACCOUNT";
20
21
  }
21
22
  /**
22
23
  * Represents a published transaction with its type, optional amount, destination, and status.
23
24
  */
24
25
  export type PublishedTx = {
25
26
  /**
26
- * - The type of transaction (CCTP_TO_EVM, GMP or CCTP_TO_AGORIC)
27
+ * - The type of transaction (CCTP_TO_EVM, GMP, CCTP_TO_AGORIC, or MAKE_ACCOUNT)
27
28
  */
28
29
  type: TxType;
29
30
  /**
@@ -31,9 +32,13 @@ export type PublishedTx = {
31
32
  */
32
33
  amount?: bigint | undefined;
33
34
  /**
34
- * - The destination account identifier for the transaction
35
+ * - The destination account identifier for the transaction (CCTP/GMP destination, or MAKE_ACCOUNT factory address in CAIP format)
35
36
  */
36
37
  destinationAddress: AccountId;
38
+ /**
39
+ * - The expected smart wallet hex address to be created (for MAKE_ACCOUNT only, format: 0x...)
40
+ */
41
+ expectedAddr?: string | undefined;
37
42
  /**
38
43
  * - Current status of the transaction (pending, success, or failed)
39
44
  */
@@ -1 +1 @@
1
- {"version":3,"file":"resolver.d.ts","sourceRoot":"","sources":["resolver.js"],"names":[],"mappings":";;;;;uBAmBU,CAAC,OAAO,QAAQ,EAAE,MAAM,OAAO,QAAQ,CAAC;;;;;;;;;qBAYxC,CAAC,OAAO,MAAM,EAAE,MAAM,OAAO,MAAM,CAAC;;;;;;;;;;;;;UAvBhC,MAAM;;;;;;;;wBAEN,SAAS;;;;YACT,QAAQ;;+BAVM,uBAAuB"}
1
+ {"version":3,"file":"resolver.d.ts","sourceRoot":"","sources":["resolver.js"],"names":[],"mappings":";;;;;uBAoBU,CAAC,OAAO,QAAQ,EAAE,MAAM,OAAO,QAAQ,CAAC;;;;;;;;;qBAYxC,CAAC,OAAO,MAAM,EAAE,MAAM,OAAO,MAAM,CAAC;;;;;;;;;;;;;;UAxBhC,MAAM;;;;;;;;wBAEN,SAAS;;;;;;;;YAET,QAAQ;;+BAXM,uBAAuB"}
package/src/resolver.js CHANGED
@@ -6,9 +6,10 @@
6
6
  * Represents a published transaction with its type, optional amount, destination, and status.
7
7
  *
8
8
  * @typedef {object} PublishedTx
9
- * @property {TxType} type - The type of transaction (CCTP_TO_EVM, GMP or CCTP_TO_AGORIC)
9
+ * @property {TxType} type - The type of transaction (CCTP_TO_EVM, GMP, CCTP_TO_AGORIC, or MAKE_ACCOUNT)
10
10
  * @property {bigint} [amount] - Optional transaction amount as a bigint
11
- * @property {AccountId} destinationAddress - The destination account identifier for the transaction
11
+ * @property {AccountId} destinationAddress - The destination account identifier for the transaction (CCTP/GMP destination, or MAKE_ACCOUNT factory address in CAIP format)
12
+ * @property {string} [expectedAddr] - The expected smart wallet hex address to be created (for MAKE_ACCOUNT only, format: 0x...)
12
13
  * @property {TxStatus} status - Current status of the transaction (pending, success, or failed)
13
14
  */
14
15
 
@@ -35,5 +36,6 @@ export const TxType = /** @type {const} */ ({
35
36
  CCTP_TO_EVM: 'CCTP_TO_EVM',
36
37
  GMP: 'GMP',
37
38
  CCTP_TO_AGORIC: 'CCTP_TO_AGORIC',
39
+ MAKE_ACCOUNT: 'MAKE_ACCOUNT',
38
40
  });
39
41
  harden(TxType);