@bitgo/public-types 6.86.0 → 6.87.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.
@@ -1 +1 @@
1
- {"version":3,"file":"icpPaymentIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/icpPaymentIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,mDAAgD;AAChD,0CAAgD;AAKnC,QAAA,gBAAgB,GAAG,CAAC,CAAC,YAAY,CAAC;IAC7C,6BAAa;IACb,CAAC,CAAC,OAAO,CAAC;QACR,IAAI,EAAE,sBAAc;KACrB,CAAC;CACH,CAAC,CAAC"}
1
+ {"version":3,"file":"icpPaymentIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/icpPaymentIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,mDAAgD;AAChD,0CAAgD;AAUnC,QAAA,gBAAgB,GAAG,CAAC,CAAC,YAAY,CAAC;IAC7C,6BAAa;IACb,CAAC,CAAC,OAAO,CAAC;QAOR,IAAI,EAAE,sBAAc;KACrB,CAAC;CACH,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"icpSignatures.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/icpSignatures.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAE3B,MAAM,oBAAoB,GAAG,CAAC,CAAC,OAAO,CAAC;IACrC,OAAO,EAAE,CAAC,CAAC,MAAM;CAClB,CAAC,CAAC;AAEU,QAAA,cAAc,GAAG,CAAC,CAAC,OAAO,CAAC;IACtC,kBAAkB,EAAE,oBAAoB;IACxC,SAAS,EAAE,CAAC,CAAC,MAAM;IACnB,cAAc,EAAE,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC;CACnC,CAAC,CAAC;AAEH,MAAM,YAAY,GAAG,CAAC,CAAC,OAAO,CAAC;IAC7B,SAAS,EAAE,CAAC,CAAC,MAAM;IACnB,UAAU,EAAE,CAAC,CAAC,MAAM;CACrB,CAAC,CAAC;AAEU,QAAA,UAAU,GAAG,CAAC,CAAC,OAAO,CAAC;IAClC,eAAe,EAAE,sBAAc;IAC/B,cAAc,EAAE,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC;IAClC,UAAU,EAAE,YAAY;IACxB,SAAS,EAAE,CAAC,CAAC,MAAM;CACpB,CAAC,CAAC"}
1
+ {"version":3,"file":"icpSignatures.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/icpSignatures.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAE3B,MAAM,oBAAoB,GAAG,CAAC,CAAC,OAAO,CAAC;IACrC,OAAO,EAAE,CAAC,CAAC,MAAM;CAClB,CAAC,CAAC;AAKU,QAAA,cAAc,GAAG,CAAC,CAAC,OAAO,CAAC;IAEtC,kBAAkB,EAAE,oBAAoB;IAExC,SAAS,EAAE,CAAC,CAAC,MAAM;IAEnB,cAAc,EAAE,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC;CACnC,CAAC,CAAC;AAEH,MAAM,YAAY,GAAG,CAAC,CAAC,OAAO,CAAC;IAC7B,SAAS,EAAE,CAAC,CAAC,MAAM;IACnB,UAAU,EAAE,CAAC,CAAC,MAAM;CACrB,CAAC,CAAC;AAMU,QAAA,UAAU,GAAG,CAAC,CAAC,OAAO,CAAC;IAElC,eAAe,EAAE,sBAAc;IAE/B,cAAc,EAAE,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC;IAElC,UAAU,EAAE,YAAY;IAExB,SAAS,EAAE,CAAC,CAAC,MAAM;CACpB,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitgo/public-types",
3
- "version": "6.86.0",
3
+ "version": "6.87.0",
4
4
  "description": "Collection of types exposed externally as part of the BitGo public API",
5
5
  "license": "UNLICENSED",
6
6
  "author": "",
@@ -3,11 +3,22 @@ import { PaymentIntent } from "./paymentIntent";
3
3
  import { optionalString } from "../../../utils";
4
4
 
5
5
  /**
6
+ * Transfer ICP tokens to a single recipient on the Internet Computer network.
7
+ * The wallet's root account identifier is the sender. Supports an optional
8
+ * numeric memo for sub-address routing (e.g. exchange deposit tags). Only one
9
+ * recipient is supported per transaction.
10
+ *
6
11
  * @title ICP Payment Intent
7
12
  */
8
13
  export const IcpPaymentIntent = t.intersection([
9
14
  PaymentIntent,
10
15
  t.partial({
16
+ /**
17
+ * Numeric sub-address memo encoded as a string (e.g. "42"). Used to
18
+ * distinguish deposits to the same root account identifier, similar to
19
+ * exchange deposit tags. Must parse as a non-negative integer —
20
+ * non-numeric strings are rejected at transaction build time.
21
+ */
11
22
  memo: optionalString,
12
23
  }),
13
24
  ]);
@@ -4,9 +4,15 @@ const IcpAccountIdentifier = t.partial({
4
4
  address: t.string,
5
5
  });
6
6
 
7
+ /**
8
+ * The payload submitted for signing in the ICP transaction flow.
9
+ */
7
10
  export const SigningPayload = t.partial({
11
+ /** Account identifier of the signing account. */
8
12
  account_identifier: IcpAccountIdentifier,
13
+ /** Raw hex bytes of the payload. */
9
14
  hex_bytes: t.string,
15
+ /** Signature scheme used to sign the payload. Always "ecdsa". */
10
16
  signature_type: t.literal("ecdsa"),
11
17
  });
12
18
 
@@ -15,10 +21,18 @@ const IcpPublicKey = t.partial({
15
21
  curve_type: t.string,
16
22
  });
17
23
 
24
+ /**
25
+ * ECDSA signature produced by the ICP signing flow. Contains the raw hex
26
+ * bytes, the public key of the signer, and the payload that was signed.
27
+ */
18
28
  export const Signatures = t.partial({
29
+ /** The payload that was signed. */
19
30
  signing_payload: SigningPayload,
31
+ /** Signature scheme used. Always "ecdsa". */
20
32
  signature_type: t.literal("ecdsa"),
33
+ /** Public key of the signer. */
21
34
  public_key: IcpPublicKey,
35
+ /** Raw hex bytes of the signature. */
22
36
  hex_bytes: t.string,
23
37
  });
24
38