@compass-labs/api-sdk 2.1.10-rc.2 → 2.1.10-rc.4
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/README.md +2 -2
- package/dist/commonjs/funcs/cctpCCTPBurn.d.ts +10 -4
- package/dist/commonjs/funcs/cctpCCTPBurn.d.ts.map +1 -1
- package/dist/commonjs/funcs/cctpCCTPBurn.js +10 -4
- package/dist/commonjs/funcs/cctpCCTPBurn.js.map +1 -1
- package/dist/commonjs/models/components/depositforburnrequest.d.ts +18 -5
- package/dist/commonjs/models/components/depositforburnrequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/depositforburnrequest.js +12 -3
- package/dist/commonjs/models/components/depositforburnrequest.js.map +1 -1
- package/dist/commonjs/models/components/depositforburnresponse.d.ts +29 -0
- package/dist/commonjs/models/components/depositforburnresponse.d.ts.map +1 -1
- package/dist/commonjs/models/components/depositforburnresponse.js +15 -1
- package/dist/commonjs/models/components/depositforburnresponse.js.map +1 -1
- package/dist/commonjs/models/components/mintpreparerequest.d.ts +8 -5
- package/dist/commonjs/models/components/mintpreparerequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/mintpreparerequest.js +2 -0
- package/dist/commonjs/models/components/mintpreparerequest.js.map +1 -1
- package/dist/commonjs/sdk/cctp.d.ts +10 -4
- package/dist/commonjs/sdk/cctp.d.ts.map +1 -1
- package/dist/commonjs/sdk/cctp.js +10 -4
- package/dist/commonjs/sdk/cctp.js.map +1 -1
- package/dist/esm/funcs/cctpCCTPBurn.d.ts +10 -4
- package/dist/esm/funcs/cctpCCTPBurn.d.ts.map +1 -1
- package/dist/esm/funcs/cctpCCTPBurn.js +10 -4
- package/dist/esm/funcs/cctpCCTPBurn.js.map +1 -1
- package/dist/esm/models/components/depositforburnrequest.d.ts +18 -5
- package/dist/esm/models/components/depositforburnrequest.d.ts.map +1 -1
- package/dist/esm/models/components/depositforburnrequest.js +11 -2
- package/dist/esm/models/components/depositforburnrequest.js.map +1 -1
- package/dist/esm/models/components/depositforburnresponse.d.ts +29 -0
- package/dist/esm/models/components/depositforburnresponse.d.ts.map +1 -1
- package/dist/esm/models/components/depositforburnresponse.js +14 -0
- package/dist/esm/models/components/depositforburnresponse.js.map +1 -1
- package/dist/esm/models/components/mintpreparerequest.d.ts +8 -5
- package/dist/esm/models/components/mintpreparerequest.d.ts.map +1 -1
- package/dist/esm/models/components/mintpreparerequest.js +2 -0
- package/dist/esm/models/components/mintpreparerequest.js.map +1 -1
- package/dist/esm/sdk/cctp.d.ts +10 -4
- package/dist/esm/sdk/cctp.d.ts.map +1 -1
- package/dist/esm/sdk/cctp.js +10 -4
- package/dist/esm/sdk/cctp.js.map +1 -1
- package/examples/node_modules/.package-lock.json +36 -36
- package/examples/node_modules/@esbuild/linux-x64/package.json +1 -1
- package/examples/node_modules/esbuild/lib/main.js +8 -8
- package/examples/node_modules/esbuild/package.json +27 -27
- package/examples/node_modules/tsx/dist/cli.mjs +1 -1
- package/examples/node_modules/tsx/dist/package-CeBgXWuR.mjs +1 -0
- package/examples/node_modules/tsx/dist/repl.mjs +1 -1
- package/examples/node_modules/tsx/package.json +2 -2
- package/examples/package-lock.json +111 -111
- package/package.json +1 -1
- package/src/funcs/cctpCCTPBurn.ts +10 -4
- package/src/models/components/depositforburnrequest.ts +26 -7
- package/src/models/components/depositforburnresponse.ts +40 -0
- package/src/models/components/mintpreparerequest.ts +10 -5
- package/src/sdk/cctp.ts +10 -4
- package/examples/node_modules/tsx/dist/package-DqlROeDy.mjs +0 -1
|
@@ -28,6 +28,17 @@ export declare const DestinationChain: {
|
|
|
28
28
|
* The destination chain where USDC will be minted.
|
|
29
29
|
*/
|
|
30
30
|
export type DestinationChain = ClosedEnum<typeof DestinationChain>;
|
|
31
|
+
/**
|
|
32
|
+
* Transfer speed mode. 'fast': ~30 second transfers using confirmed finality (requires a small fee taken from transfer amount). 'standard': ~15-19 minute transfers using full finality (free, no fee). Default is 'standard'.
|
|
33
|
+
*/
|
|
34
|
+
export declare const DepositForBurnRequestTransferMode: {
|
|
35
|
+
readonly Fast: "fast";
|
|
36
|
+
readonly Standard: "standard";
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* Transfer speed mode. 'fast': ~30 second transfers using confirmed finality (requires a small fee taken from transfer amount). 'standard': ~15-19 minute transfers using full finality (free, no fee). Default is 'standard'.
|
|
40
|
+
*/
|
|
41
|
+
export type DepositForBurnRequestTransferMode = ClosedEnum<typeof DepositForBurnRequestTransferMode>;
|
|
31
42
|
/**
|
|
32
43
|
* Request model for CCTP depositForBurn transaction from a smart account.
|
|
33
44
|
*
|
|
@@ -63,14 +74,14 @@ export type DepositForBurnRequest = {
|
|
|
63
74
|
* The destination chain where USDC will be minted.
|
|
64
75
|
*/
|
|
65
76
|
destinationChain: DestinationChain;
|
|
66
|
-
/**
|
|
67
|
-
* The recipient address on the destination chain.
|
|
68
|
-
*/
|
|
69
|
-
destinationAddress: string;
|
|
70
77
|
/**
|
|
71
78
|
* Optionally request gas sponsorship. If set to `true`, EIP-712 typed data will be returned that must be signed by the `owner` and submitted to the 'Prepare gas-sponsored transaction' endpoint (`/gas_sponsorship/prepare`).
|
|
72
79
|
*/
|
|
73
80
|
gasSponsorship?: boolean | undefined;
|
|
81
|
+
/**
|
|
82
|
+
* Transfer speed mode. 'fast': ~30 second transfers using confirmed finality (requires a small fee taken from transfer amount). 'standard': ~15-19 minute transfers using full finality (free, no fee). Default is 'standard'.
|
|
83
|
+
*/
|
|
84
|
+
transferMode?: DepositForBurnRequestTransferMode | undefined;
|
|
74
85
|
};
|
|
75
86
|
/** @internal */
|
|
76
87
|
export declare const DepositForBurnRequestChain$outboundSchema: z.ZodNativeEnum<typeof DepositForBurnRequestChain>;
|
|
@@ -82,13 +93,15 @@ export declare function depositForBurnRequestAmountToJSON(depositForBurnRequestA
|
|
|
82
93
|
/** @internal */
|
|
83
94
|
export declare const DestinationChain$outboundSchema: z.ZodNativeEnum<typeof DestinationChain>;
|
|
84
95
|
/** @internal */
|
|
96
|
+
export declare const DepositForBurnRequestTransferMode$outboundSchema: z.ZodNativeEnum<typeof DepositForBurnRequestTransferMode>;
|
|
97
|
+
/** @internal */
|
|
85
98
|
export type DepositForBurnRequest$Outbound = {
|
|
86
99
|
owner: string;
|
|
87
100
|
chain: string;
|
|
88
101
|
amount: number | string;
|
|
89
102
|
destination_chain: string;
|
|
90
|
-
destination_address: string;
|
|
91
103
|
gas_sponsorship?: boolean | undefined;
|
|
104
|
+
transfer_mode?: string | undefined;
|
|
92
105
|
};
|
|
93
106
|
/** @internal */
|
|
94
107
|
export declare const DepositForBurnRequest$outboundSchema: z.ZodType<DepositForBurnRequest$Outbound, z.ZodTypeDef, DepositForBurnRequest>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"depositforburnrequest.d.ts","sourceRoot":"","sources":["../../../../src/models/components/depositforburnrequest.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,0BAA0B;;;;CAI7B,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,0BAA0B,GAAG,UAAU,CACjD,OAAO,0BAA0B,CAClC,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,2BAA2B,GAAG,MAAM,GAAG,MAAM,CAAC;AAE1D;;GAEG;AACH,eAAO,MAAM,gBAAgB;;;;CAInB,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAEnE;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,KAAK,EAAE,0BAA0B,CAAC;IAClC;;OAEG;IACH,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB;;OAEG;IACH,gBAAgB,EAAE,gBAAgB,CAAC;IACnC;;OAEG;IACH,
|
|
1
|
+
{"version":3,"file":"depositforburnrequest.d.ts","sourceRoot":"","sources":["../../../../src/models/components/depositforburnrequest.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,0BAA0B;;;;CAI7B,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,0BAA0B,GAAG,UAAU,CACjD,OAAO,0BAA0B,CAClC,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,2BAA2B,GAAG,MAAM,GAAG,MAAM,CAAC;AAE1D;;GAEG;AACH,eAAO,MAAM,gBAAgB;;;;CAInB,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAEnE;;GAEG;AACH,eAAO,MAAM,iCAAiC;;;CAGpC,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,iCAAiC,GAAG,UAAU,CACxD,OAAO,iCAAiC,CACzC,CAAC;AAEF;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,KAAK,EAAE,0BAA0B,CAAC;IAClC;;OAEG;IACH,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB;;OAEG;IACH,gBAAgB,EAAE,gBAAgB,CAAC;IACnC;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IACrC;;OAEG;IACH,YAAY,CAAC,EAAE,iCAAiC,GAAG,SAAS,CAAC;CAC9D,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,yCAAyC,EAAE,CAAC,CAAC,aAAa,CACrE,OAAO,0BAA0B,CACS,CAAC;AAE7C,gBAAgB;AAChB,MAAM,MAAM,oCAAoC,GAAG,MAAM,GAAG,MAAM,CAAC;AAEnE,gBAAgB;AAChB,eAAO,MAAM,0CAA0C,EAAE,CAAC,CAAC,OAAO,CAChE,oCAAoC,EACpC,CAAC,CAAC,UAAU,EACZ,2BAA2B,CACQ,CAAC;AAEtC,wBAAgB,iCAAiC,CAC/C,2BAA2B,EAAE,2BAA2B,GACvD,MAAM,CAMR;AAED,gBAAgB;AAChB,eAAO,MAAM,+BAA+B,EAAE,CAAC,CAAC,aAAa,CAC3D,OAAO,gBAAgB,CACS,CAAC;AAEnC,gBAAgB;AAChB,eAAO,MAAM,gDAAgD,EAAE,CAAC,CAAC,aAAa,CAC5E,OAAO,iCAAiC,CACS,CAAC;AAEpD,gBAAgB;AAChB,MAAM,MAAM,8BAA8B,GAAG;IAC3C,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,eAAe,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IACtC,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACpC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,oCAAoC,EAAE,CAAC,CAAC,OAAO,CAC1D,8BAA8B,EAC9B,CAAC,CAAC,UAAU,EACZ,qBAAqB,CAcrB,CAAC;AAEH,wBAAgB,2BAA2B,CACzC,qBAAqB,EAAE,qBAAqB,GAC3C,MAAM,CAIR"}
|
|
@@ -19,6 +19,13 @@ export const DestinationChain = {
|
|
|
19
19
|
Arbitrum: "arbitrum",
|
|
20
20
|
Base: "base",
|
|
21
21
|
};
|
|
22
|
+
/**
|
|
23
|
+
* Transfer speed mode. 'fast': ~30 second transfers using confirmed finality (requires a small fee taken from transfer amount). 'standard': ~15-19 minute transfers using full finality (free, no fee). Default is 'standard'.
|
|
24
|
+
*/
|
|
25
|
+
export const DepositForBurnRequestTransferMode = {
|
|
26
|
+
Fast: "fast",
|
|
27
|
+
Standard: "standard",
|
|
28
|
+
};
|
|
22
29
|
/** @internal */
|
|
23
30
|
export const DepositForBurnRequestChain$outboundSchema = z.nativeEnum(DepositForBurnRequestChain);
|
|
24
31
|
/** @internal */
|
|
@@ -29,18 +36,20 @@ export function depositForBurnRequestAmountToJSON(depositForBurnRequestAmount) {
|
|
|
29
36
|
/** @internal */
|
|
30
37
|
export const DestinationChain$outboundSchema = z.nativeEnum(DestinationChain);
|
|
31
38
|
/** @internal */
|
|
39
|
+
export const DepositForBurnRequestTransferMode$outboundSchema = z.nativeEnum(DepositForBurnRequestTransferMode);
|
|
40
|
+
/** @internal */
|
|
32
41
|
export const DepositForBurnRequest$outboundSchema = z.object({
|
|
33
42
|
owner: z.string(),
|
|
34
43
|
chain: DepositForBurnRequestChain$outboundSchema,
|
|
35
44
|
amount: z.union([z.number(), z.string()]),
|
|
36
45
|
destinationChain: DestinationChain$outboundSchema,
|
|
37
|
-
destinationAddress: z.string(),
|
|
38
46
|
gasSponsorship: z.boolean().optional(),
|
|
47
|
+
transferMode: DepositForBurnRequestTransferMode$outboundSchema.optional(),
|
|
39
48
|
}).transform((v) => {
|
|
40
49
|
return remap$(v, {
|
|
41
50
|
destinationChain: "destination_chain",
|
|
42
|
-
destinationAddress: "destination_address",
|
|
43
51
|
gasSponsorship: "gas_sponsorship",
|
|
52
|
+
transferMode: "transfer_mode",
|
|
44
53
|
});
|
|
45
54
|
});
|
|
46
55
|
export function depositForBurnRequestToJSON(depositForBurnRequest) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"depositforburnrequest.js","sourceRoot":"","sources":["../../../../src/models/components/depositforburnrequest.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAG1D;;GAEG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAG;IACxC,QAAQ,EAAE,UAAU;IACpB,QAAQ,EAAE,UAAU;IACpB,IAAI,EAAE,MAAM;CACJ,CAAC;AAaX;;GAEG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,QAAQ,EAAE,UAAU;IACpB,QAAQ,EAAE,UAAU;IACpB,IAAI,EAAE,MAAM;CACJ,CAAC;
|
|
1
|
+
{"version":3,"file":"depositforburnrequest.js","sourceRoot":"","sources":["../../../../src/models/components/depositforburnrequest.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAG1D;;GAEG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAG;IACxC,QAAQ,EAAE,UAAU;IACpB,QAAQ,EAAE,UAAU;IACpB,IAAI,EAAE,MAAM;CACJ,CAAC;AAaX;;GAEG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,QAAQ,EAAE,UAAU;IACpB,QAAQ,EAAE,UAAU;IACpB,IAAI,EAAE,MAAM;CACJ,CAAC;AAMX;;GAEG;AACH,MAAM,CAAC,MAAM,iCAAiC,GAAG;IAC/C,IAAI,EAAE,MAAM;IACZ,QAAQ,EAAE,UAAU;CACZ,CAAC;AAqDX,gBAAgB;AAChB,MAAM,CAAC,MAAM,yCAAyC,GAElD,CAAC,CAAC,UAAU,CAAC,0BAA0B,CAAC,CAAC;AAK7C,gBAAgB;AAChB,MAAM,CAAC,MAAM,0CAA0C,GAInD,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;AAEtC,MAAM,UAAU,iCAAiC,CAC/C,2BAAwD;IAExD,OAAO,IAAI,CAAC,SAAS,CACnB,0CAA0C,CAAC,KAAK,CAC9C,2BAA2B,CAC5B,CACF,CAAC;AACJ,CAAC;AAED,gBAAgB;AAChB,MAAM,CAAC,MAAM,+BAA+B,GAExC,CAAC,CAAC,UAAU,CAAC,gBAAgB,CAAC,CAAC;AAEnC,gBAAgB;AAChB,MAAM,CAAC,MAAM,gDAAgD,GAEzD,CAAC,CAAC,UAAU,CAAC,iCAAiC,CAAC,CAAC;AAYpD,gBAAgB;AAChB,MAAM,CAAC,MAAM,oCAAoC,GAI7C,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,KAAK,EAAE,yCAAyC;IAChD,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC;IACzC,gBAAgB,EAAE,+BAA+B;IACjD,cAAc,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IACtC,YAAY,EAAE,gDAAgD,CAAC,QAAQ,EAAE;CAC1E,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,gBAAgB,EAAE,mBAAmB;QACrC,cAAc,EAAE,iBAAiB;QACjC,YAAY,EAAE,eAAe;KAC9B,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,MAAM,UAAU,2BAA2B,CACzC,qBAA4C;IAE5C,OAAO,IAAI,CAAC,SAAS,CACnB,oCAAoC,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAClE,CAAC;AACJ,CAAC"}
|
|
@@ -1,8 +1,20 @@
|
|
|
1
1
|
import * as z from "zod/v3";
|
|
2
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
2
3
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
4
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
5
|
import { BatchedSafeOperationsResponseOutput } from "./batchedsafeoperationsresponseoutput.js";
|
|
5
6
|
import { UnsignedTransaction } from "./unsignedtransaction.js";
|
|
7
|
+
/**
|
|
8
|
+
* The transfer speed mode used. 'fast' uses confirmed finality (~30s), 'standard' uses full finality (~15-19 min).
|
|
9
|
+
*/
|
|
10
|
+
export declare const DepositForBurnResponseTransferMode: {
|
|
11
|
+
readonly Fast: "fast";
|
|
12
|
+
readonly Standard: "standard";
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* The transfer speed mode used. 'fast' uses confirmed finality (~30s), 'standard' uses full finality (~15-19 min).
|
|
16
|
+
*/
|
|
17
|
+
export type DepositForBurnResponseTransferMode = ClosedEnum<typeof DepositForBurnResponseTransferMode>;
|
|
6
18
|
/**
|
|
7
19
|
* Response model for CCTP depositForBurn transaction from a smart account.
|
|
8
20
|
*
|
|
@@ -22,6 +34,9 @@ import { UnsignedTransaction } from "./unsignedtransaction.js";
|
|
|
22
34
|
* eip_712: EIP-712 typed data for off-chain signing. The owner signs this
|
|
23
35
|
* data and submits it to /gas_sponsorship/prepare for a relayer to execute.
|
|
24
36
|
* Present when gas_sponsorship=True.
|
|
37
|
+
* transfer_mode: The transfer speed mode used for this bridge operation.
|
|
38
|
+
* fee: Fee amount in USDC (only charged for fast mode, None for standard).
|
|
39
|
+
* estimated_time_seconds: Estimated time to complete the bridge in seconds.
|
|
25
40
|
*/
|
|
26
41
|
export type DepositForBurnResponse = {
|
|
27
42
|
/**
|
|
@@ -30,8 +45,22 @@ export type DepositForBurnResponse = {
|
|
|
30
45
|
bridgeId?: string | null | undefined;
|
|
31
46
|
transaction: UnsignedTransaction | null;
|
|
32
47
|
eip712: BatchedSafeOperationsResponseOutput | null;
|
|
48
|
+
/**
|
|
49
|
+
* The transfer speed mode used. 'fast' uses confirmed finality (~30s), 'standard' uses full finality (~15-19 min).
|
|
50
|
+
*/
|
|
51
|
+
transferMode: DepositForBurnResponseTransferMode;
|
|
52
|
+
/**
|
|
53
|
+
* Fee amount in USDC charged for this transfer. Only present for fast mode. Standard mode transfers are free (fee is None or 0).
|
|
54
|
+
*/
|
|
55
|
+
fee?: string | null | undefined;
|
|
56
|
+
/**
|
|
57
|
+
* Estimated time to complete the bridge in seconds.
|
|
58
|
+
*/
|
|
59
|
+
estimatedTimeSeconds: number;
|
|
33
60
|
};
|
|
34
61
|
/** @internal */
|
|
62
|
+
export declare const DepositForBurnResponseTransferMode$inboundSchema: z.ZodNativeEnum<typeof DepositForBurnResponseTransferMode>;
|
|
63
|
+
/** @internal */
|
|
35
64
|
export declare const DepositForBurnResponse$inboundSchema: z.ZodType<DepositForBurnResponse, z.ZodTypeDef, unknown>;
|
|
36
65
|
export declare function depositForBurnResponseFromJSON(jsonString: string): SafeParseResult<DepositForBurnResponse, SDKValidationError>;
|
|
37
66
|
//# sourceMappingURL=depositforburnresponse.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"depositforburnresponse.d.ts","sourceRoot":"","sources":["../../../../src/models/components/depositforburnresponse.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,mCAAmC,EAEpC,MAAM,0CAA0C,CAAC;AAClD,OAAO,EACL,mBAAmB,EAEpB,MAAM,0BAA0B,CAAC;AAElC
|
|
1
|
+
{"version":3,"file":"depositforburnresponse.d.ts","sourceRoot":"","sources":["../../../../src/models/components/depositforburnresponse.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,mCAAmC,EAEpC,MAAM,0CAA0C,CAAC;AAClD,OAAO,EACL,mBAAmB,EAEpB,MAAM,0BAA0B,CAAC;AAElC;;GAEG;AACH,eAAO,MAAM,kCAAkC;;;CAGrC,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,kCAAkC,GAAG,UAAU,CACzD,OAAO,kCAAkC,CAC1C,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAM,MAAM,sBAAsB,GAAG;IACnC;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACrC,WAAW,EAAE,mBAAmB,GAAG,IAAI,CAAC;IACxC,MAAM,EAAE,mCAAmC,GAAG,IAAI,CAAC;IACnD;;OAEG;IACH,YAAY,EAAE,kCAAkC,CAAC;IACjD;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAChC;;OAEG;IACH,oBAAoB,EAAE,MAAM,CAAC;CAC9B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,gDAAgD,EAAE,CAAC,CAAC,aAAa,CAC5E,OAAO,kCAAkC,CACS,CAAC;AAErD,gBAAgB;AAChB,eAAO,MAAM,oCAAoC,EAAE,CAAC,CAAC,OAAO,CAC1D,sBAAsB,EACtB,CAAC,CAAC,UAAU,EACZ,OAAO,CAeP,CAAC;AAEH,wBAAgB,8BAA8B,CAC5C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,sBAAsB,EAAE,kBAAkB,CAAC,CAM7D"}
|
|
@@ -6,15 +6,29 @@ import { remap as remap$ } from "../../lib/primitives.js";
|
|
|
6
6
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
7
|
import { BatchedSafeOperationsResponseOutput$inboundSchema, } from "./batchedsafeoperationsresponseoutput.js";
|
|
8
8
|
import { UnsignedTransaction$inboundSchema, } from "./unsignedtransaction.js";
|
|
9
|
+
/**
|
|
10
|
+
* The transfer speed mode used. 'fast' uses confirmed finality (~30s), 'standard' uses full finality (~15-19 min).
|
|
11
|
+
*/
|
|
12
|
+
export const DepositForBurnResponseTransferMode = {
|
|
13
|
+
Fast: "fast",
|
|
14
|
+
Standard: "standard",
|
|
15
|
+
};
|
|
16
|
+
/** @internal */
|
|
17
|
+
export const DepositForBurnResponseTransferMode$inboundSchema = z.nativeEnum(DepositForBurnResponseTransferMode);
|
|
9
18
|
/** @internal */
|
|
10
19
|
export const DepositForBurnResponse$inboundSchema = z.object({
|
|
11
20
|
bridge_id: z.nullable(z.string()).optional(),
|
|
12
21
|
transaction: z.nullable(UnsignedTransaction$inboundSchema),
|
|
13
22
|
eip_712: z.nullable(BatchedSafeOperationsResponseOutput$inboundSchema),
|
|
23
|
+
transfer_mode: DepositForBurnResponseTransferMode$inboundSchema,
|
|
24
|
+
fee: z.nullable(z.string()).optional(),
|
|
25
|
+
estimated_time_seconds: z.number().int(),
|
|
14
26
|
}).transform((v) => {
|
|
15
27
|
return remap$(v, {
|
|
16
28
|
"bridge_id": "bridgeId",
|
|
17
29
|
"eip_712": "eip712",
|
|
30
|
+
"transfer_mode": "transferMode",
|
|
31
|
+
"estimated_time_seconds": "estimatedTimeSeconds",
|
|
18
32
|
});
|
|
19
33
|
});
|
|
20
34
|
export function depositForBurnResponseFromJSON(jsonString) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"depositforburnresponse.js","sourceRoot":"","sources":["../../../../src/models/components/depositforburnresponse.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"depositforburnresponse.js","sourceRoot":"","sources":["../../../../src/models/components/depositforburnresponse.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAIjD,OAAO,EAEL,iDAAiD,GAClD,MAAM,0CAA0C,CAAC;AAClD,OAAO,EAEL,iCAAiC,GAClC,MAAM,0BAA0B,CAAC;AAElC;;GAEG;AACH,MAAM,CAAC,MAAM,kCAAkC,GAAG;IAChD,IAAI,EAAE,MAAM;IACZ,QAAQ,EAAE,UAAU;CACZ,CAAC;AAoDX,gBAAgB;AAChB,MAAM,CAAC,MAAM,gDAAgD,GAEzD,CAAC,CAAC,UAAU,CAAC,kCAAkC,CAAC,CAAC;AAErD,gBAAgB;AAChB,MAAM,CAAC,MAAM,oCAAoC,GAI7C,CAAC,CAAC,MAAM,CAAC;IACX,SAAS,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC5C,WAAW,EAAE,CAAC,CAAC,QAAQ,CAAC,iCAAiC,CAAC;IAC1D,OAAO,EAAE,CAAC,CAAC,QAAQ,CAAC,iDAAiD,CAAC;IACtE,aAAa,EAAE,gDAAgD;IAC/D,GAAG,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACtC,sBAAsB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;CACzC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,WAAW,EAAE,UAAU;QACvB,SAAS,EAAE,QAAQ;QACnB,eAAe,EAAE,cAAc;QAC/B,wBAAwB,EAAE,sBAAsB;KACjD,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,MAAM,UAAU,8BAA8B,CAC5C,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,oCAAoC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAChE,oDAAoD,CACrD,CAAC;AACJ,CAAC"}
|
|
@@ -4,20 +4,22 @@ import * as z from "zod/v3";
|
|
|
4
4
|
*
|
|
5
5
|
* @remarks
|
|
6
6
|
*
|
|
7
|
-
* The mint/prepare endpoint uses the bridge_id to:
|
|
7
|
+
* The mint/prepare endpoint uses the bridge_id and burn_tx_hash to:
|
|
8
8
|
* 1. Look up the bridge session created during burn/prepare
|
|
9
|
-
* 2. Find the DepositForBurn event
|
|
9
|
+
* 2. Find the DepositForBurn event using the burn transaction hash
|
|
10
10
|
* 3. Extract the CCTP message and compute its hash
|
|
11
11
|
* 4. Check if Circle's attestation is ready
|
|
12
12
|
* 5. Return the mint transaction wrapped in Safe execTransaction
|
|
13
|
-
*
|
|
14
|
-
* This eliminates the need for users to provide the burn transaction hash.
|
|
15
13
|
*/
|
|
16
14
|
export type MintPrepareRequest = {
|
|
17
15
|
/**
|
|
18
|
-
* The bridge identifier returned from /burn endpoint. This is used to look up the bridge session
|
|
16
|
+
* The bridge identifier returned from /burn endpoint. This is used to look up the bridge session.
|
|
19
17
|
*/
|
|
20
18
|
bridgeId: string;
|
|
19
|
+
/**
|
|
20
|
+
* The transaction hash of the burn transaction on the source chain. This is used to find the DepositForBurn event and extract the CCTP message.
|
|
21
|
+
*/
|
|
22
|
+
burnTxHash: string;
|
|
21
23
|
/**
|
|
22
24
|
* The primary wallet address that owns and controls the Earn Account (Safe) on the destination chain. This is used to determine the Safe address that will receive and execute the receiveMessage transaction.
|
|
23
25
|
*/
|
|
@@ -30,6 +32,7 @@ export type MintPrepareRequest = {
|
|
|
30
32
|
/** @internal */
|
|
31
33
|
export type MintPrepareRequest$Outbound = {
|
|
32
34
|
bridge_id: string;
|
|
35
|
+
burn_tx_hash: string;
|
|
33
36
|
owner: string;
|
|
34
37
|
gas_sponsorship?: boolean | undefined;
|
|
35
38
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mintpreparerequest.d.ts","sourceRoot":"","sources":["../../../../src/models/components/mintpreparerequest.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B
|
|
1
|
+
{"version":3,"file":"mintpreparerequest.d.ts","sourceRoot":"","sources":["../../../../src/models/components/mintpreparerequest.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B;;;;;;;;;;;GAWG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CACtC,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,2BAA2B,GAAG;IACxC,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,eAAe,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CACvC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,iCAAiC,EAAE,CAAC,CAAC,OAAO,CACvD,2BAA2B,EAC3B,CAAC,CAAC,UAAU,EACZ,kBAAkB,CAYlB,CAAC;AAEH,wBAAgB,wBAAwB,CACtC,kBAAkB,EAAE,kBAAkB,GACrC,MAAM,CAIR"}
|
|
@@ -6,11 +6,13 @@ import { remap as remap$ } from "../../lib/primitives.js";
|
|
|
6
6
|
/** @internal */
|
|
7
7
|
export const MintPrepareRequest$outboundSchema = z.object({
|
|
8
8
|
bridgeId: z.string(),
|
|
9
|
+
burnTxHash: z.string(),
|
|
9
10
|
owner: z.string(),
|
|
10
11
|
gasSponsorship: z.boolean().optional(),
|
|
11
12
|
}).transform((v) => {
|
|
12
13
|
return remap$(v, {
|
|
13
14
|
bridgeId: "bridge_id",
|
|
15
|
+
burnTxHash: "burn_tx_hash",
|
|
14
16
|
gasSponsorship: "gas_sponsorship",
|
|
15
17
|
});
|
|
16
18
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mintpreparerequest.js","sourceRoot":"","sources":["../../../../src/models/components/mintpreparerequest.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"mintpreparerequest.js","sourceRoot":"","sources":["../../../../src/models/components/mintpreparerequest.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAyC1D,gBAAgB;AAChB,MAAM,CAAC,MAAM,iCAAiC,GAI1C,CAAC,CAAC,MAAM,CAAC;IACX,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,cAAc,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;CACvC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,QAAQ,EAAE,WAAW;QACrB,UAAU,EAAE,cAAc;QAC1B,cAAc,EAAE,iBAAiB;KAClC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,MAAM,UAAU,wBAAwB,CACtC,kBAAsC;IAEtC,OAAO,IAAI,CAAC,SAAS,CACnB,iCAAiC,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAC5D,CAAC;AACJ,CAAC"}
|
package/dist/esm/sdk/cctp.d.ts
CHANGED
|
@@ -3,11 +3,17 @@ import * as components from "../models/components/index.js";
|
|
|
3
3
|
import * as operations from "../models/operations/index.js";
|
|
4
4
|
export declare class Cctp extends ClientSDK {
|
|
5
5
|
/**
|
|
6
|
-
* Build depositForBurn transaction for Earn Account
|
|
6
|
+
* Build depositForBurn transaction for Earn Account (CCTP V2)
|
|
7
7
|
*
|
|
8
8
|
* @remarks
|
|
9
9
|
* Build a transaction to burn USDC from an Earn Account (Safe) on the source chain
|
|
10
|
-
* and initiate a cross-chain transfer via Circle's CCTP (Cross-Chain Transfer Protocol).
|
|
10
|
+
* and initiate a cross-chain transfer via Circle's CCTP V2 (Cross-Chain Transfer Protocol).
|
|
11
|
+
*
|
|
12
|
+
* **Transfer modes:**
|
|
13
|
+
* - `standard` (default): ~15-19 minute transfers, **free** (no fee)
|
|
14
|
+
* - `fast`: ~30 second transfers, requires a small fee (typically ~0.01%)
|
|
15
|
+
*
|
|
16
|
+
* The fee for fast mode is automatically calculated based on Circle's current rates.
|
|
11
17
|
*
|
|
12
18
|
* **Flow:**
|
|
13
19
|
* 1. Call this endpoint with `gas_sponsorship=false` to get an unsigned transaction,
|
|
@@ -15,7 +21,7 @@ export declare class Cctp extends ClientSDK {
|
|
|
15
21
|
* 2. Owner signs the transaction or typed data
|
|
16
22
|
* 3. Broadcast the transaction on the source chain (or submit to `/gas_sponsorship/prepare`)
|
|
17
23
|
* 4. Wait for Circle's attestation service to attest the burn
|
|
18
|
-
* 5. Call the mint endpoint
|
|
24
|
+
* 5. Call the mint endpoint to receive USDC on the destination chain
|
|
19
25
|
*
|
|
20
26
|
* **Supported chains:**
|
|
21
27
|
* - Ethereum (domain 0)
|
|
@@ -23,7 +29,7 @@ export declare class Cctp extends ClientSDK {
|
|
|
23
29
|
* - Base (domain 6)
|
|
24
30
|
*
|
|
25
31
|
* **Note:** The USDC must already be deposited in the Earn Account. If approval is needed
|
|
26
|
-
* for the
|
|
32
|
+
* for the TokenMessengerV2 contract, it will be included in the transaction automatically.
|
|
27
33
|
*
|
|
28
34
|
* **Gas estimate:** ~200,000 gas units (includes Safe execTransaction overhead)
|
|
29
35
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cctp.d.ts","sourceRoot":"","sources":["../../../src/sdk/cctp.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,IAAK,SAAQ,SAAS;IACjC
|
|
1
|
+
{"version":3,"file":"cctp.d.ts","sourceRoot":"","sources":["../../../src/sdk/cctp.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,IAAK,SAAQ,SAAS;IACjC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA8BG;IACG,QAAQ,CACZ,OAAO,EAAE,UAAU,CAAC,qBAAqB,EACzC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,sBAAsB,CAAC;IAQ7C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAsCG;IACG,QAAQ,CACZ,OAAO,EAAE,UAAU,CAAC,kBAAkB,EACtC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,kBAAkB,CAAC;CAO1C"}
|
package/dist/esm/sdk/cctp.js
CHANGED
|
@@ -7,11 +7,17 @@ import { ClientSDK } from "../lib/sdks.js";
|
|
|
7
7
|
import { unwrapAsync } from "../types/fp.js";
|
|
8
8
|
export class Cctp extends ClientSDK {
|
|
9
9
|
/**
|
|
10
|
-
* Build depositForBurn transaction for Earn Account
|
|
10
|
+
* Build depositForBurn transaction for Earn Account (CCTP V2)
|
|
11
11
|
*
|
|
12
12
|
* @remarks
|
|
13
13
|
* Build a transaction to burn USDC from an Earn Account (Safe) on the source chain
|
|
14
|
-
* and initiate a cross-chain transfer via Circle's CCTP (Cross-Chain Transfer Protocol).
|
|
14
|
+
* and initiate a cross-chain transfer via Circle's CCTP V2 (Cross-Chain Transfer Protocol).
|
|
15
|
+
*
|
|
16
|
+
* **Transfer modes:**
|
|
17
|
+
* - `standard` (default): ~15-19 minute transfers, **free** (no fee)
|
|
18
|
+
* - `fast`: ~30 second transfers, requires a small fee (typically ~0.01%)
|
|
19
|
+
*
|
|
20
|
+
* The fee for fast mode is automatically calculated based on Circle's current rates.
|
|
15
21
|
*
|
|
16
22
|
* **Flow:**
|
|
17
23
|
* 1. Call this endpoint with `gas_sponsorship=false` to get an unsigned transaction,
|
|
@@ -19,7 +25,7 @@ export class Cctp extends ClientSDK {
|
|
|
19
25
|
* 2. Owner signs the transaction or typed data
|
|
20
26
|
* 3. Broadcast the transaction on the source chain (or submit to `/gas_sponsorship/prepare`)
|
|
21
27
|
* 4. Wait for Circle's attestation service to attest the burn
|
|
22
|
-
* 5. Call the mint endpoint
|
|
28
|
+
* 5. Call the mint endpoint to receive USDC on the destination chain
|
|
23
29
|
*
|
|
24
30
|
* **Supported chains:**
|
|
25
31
|
* - Ethereum (domain 0)
|
|
@@ -27,7 +33,7 @@ export class Cctp extends ClientSDK {
|
|
|
27
33
|
* - Base (domain 6)
|
|
28
34
|
*
|
|
29
35
|
* **Note:** The USDC must already be deposited in the Earn Account. If approval is needed
|
|
30
|
-
* for the
|
|
36
|
+
* for the TokenMessengerV2 contract, it will be included in the transaction automatically.
|
|
31
37
|
*
|
|
32
38
|
* **Gas estimate:** ~200,000 gas units (includes Safe execTransaction overhead)
|
|
33
39
|
*/
|
package/dist/esm/sdk/cctp.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cctp.js","sourceRoot":"","sources":["../../../src/sdk/cctp.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,SAAS,EAAkB,MAAM,gBAAgB,CAAC;AAG3D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,MAAM,OAAO,IAAK,SAAQ,SAAS;IACjC
|
|
1
|
+
{"version":3,"file":"cctp.js","sourceRoot":"","sources":["../../../src/sdk/cctp.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,SAAS,EAAkB,MAAM,gBAAgB,CAAC;AAG3D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,MAAM,OAAO,IAAK,SAAQ,SAAS;IACjC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA8BG;IACH,KAAK,CAAC,QAAQ,CACZ,OAAyC,EACzC,OAAwB;QAExB,OAAO,WAAW,CAAC,YAAY,CAC7B,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAsCG;IACH,KAAK,CAAC,QAAQ,CACZ,OAAsC,EACtC,OAAwB;QAExB,OAAO,WAAW,CAAC,YAAY,CAC7B,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -24,9 +24,9 @@
|
|
|
24
24
|
"link": true
|
|
25
25
|
},
|
|
26
26
|
"node_modules/@esbuild/linux-x64": {
|
|
27
|
-
"version": "0.
|
|
28
|
-
"resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.
|
|
29
|
-
"integrity": "sha512-
|
|
27
|
+
"version": "0.27.0",
|
|
28
|
+
"resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.27.0.tgz",
|
|
29
|
+
"integrity": "sha512-1hBWx4OUJE2cab++aVZ7pObD6s+DK4mPGpemtnAORBvb5l/g5xFGk0vc0PjSkrDs0XaXj9yyob3d14XqvnQ4gw==",
|
|
30
30
|
"cpu": [
|
|
31
31
|
"x64"
|
|
32
32
|
],
|
|
@@ -64,9 +64,9 @@
|
|
|
64
64
|
}
|
|
65
65
|
},
|
|
66
66
|
"node_modules/esbuild": {
|
|
67
|
-
"version": "0.
|
|
68
|
-
"resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.
|
|
69
|
-
"integrity": "sha512-
|
|
67
|
+
"version": "0.27.0",
|
|
68
|
+
"resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.27.0.tgz",
|
|
69
|
+
"integrity": "sha512-jd0f4NHbD6cALCyGElNpGAOtWxSq46l9X/sWB0Nzd5er4Kz2YTm+Vl0qKFT9KUJvD8+fiO8AvoHhFvEatfVixA==",
|
|
70
70
|
"dev": true,
|
|
71
71
|
"hasInstallScript": true,
|
|
72
72
|
"license": "MIT",
|
|
@@ -77,32 +77,32 @@
|
|
|
77
77
|
"node": ">=18"
|
|
78
78
|
},
|
|
79
79
|
"optionalDependencies": {
|
|
80
|
-
"@esbuild/aix-ppc64": "0.
|
|
81
|
-
"@esbuild/android-arm": "0.
|
|
82
|
-
"@esbuild/android-arm64": "0.
|
|
83
|
-
"@esbuild/android-x64": "0.
|
|
84
|
-
"@esbuild/darwin-arm64": "0.
|
|
85
|
-
"@esbuild/darwin-x64": "0.
|
|
86
|
-
"@esbuild/freebsd-arm64": "0.
|
|
87
|
-
"@esbuild/freebsd-x64": "0.
|
|
88
|
-
"@esbuild/linux-arm": "0.
|
|
89
|
-
"@esbuild/linux-arm64": "0.
|
|
90
|
-
"@esbuild/linux-ia32": "0.
|
|
91
|
-
"@esbuild/linux-loong64": "0.
|
|
92
|
-
"@esbuild/linux-mips64el": "0.
|
|
93
|
-
"@esbuild/linux-ppc64": "0.
|
|
94
|
-
"@esbuild/linux-riscv64": "0.
|
|
95
|
-
"@esbuild/linux-s390x": "0.
|
|
96
|
-
"@esbuild/linux-x64": "0.
|
|
97
|
-
"@esbuild/netbsd-arm64": "0.
|
|
98
|
-
"@esbuild/netbsd-x64": "0.
|
|
99
|
-
"@esbuild/openbsd-arm64": "0.
|
|
100
|
-
"@esbuild/openbsd-x64": "0.
|
|
101
|
-
"@esbuild/openharmony-arm64": "0.
|
|
102
|
-
"@esbuild/sunos-x64": "0.
|
|
103
|
-
"@esbuild/win32-arm64": "0.
|
|
104
|
-
"@esbuild/win32-ia32": "0.
|
|
105
|
-
"@esbuild/win32-x64": "0.
|
|
80
|
+
"@esbuild/aix-ppc64": "0.27.0",
|
|
81
|
+
"@esbuild/android-arm": "0.27.0",
|
|
82
|
+
"@esbuild/android-arm64": "0.27.0",
|
|
83
|
+
"@esbuild/android-x64": "0.27.0",
|
|
84
|
+
"@esbuild/darwin-arm64": "0.27.0",
|
|
85
|
+
"@esbuild/darwin-x64": "0.27.0",
|
|
86
|
+
"@esbuild/freebsd-arm64": "0.27.0",
|
|
87
|
+
"@esbuild/freebsd-x64": "0.27.0",
|
|
88
|
+
"@esbuild/linux-arm": "0.27.0",
|
|
89
|
+
"@esbuild/linux-arm64": "0.27.0",
|
|
90
|
+
"@esbuild/linux-ia32": "0.27.0",
|
|
91
|
+
"@esbuild/linux-loong64": "0.27.0",
|
|
92
|
+
"@esbuild/linux-mips64el": "0.27.0",
|
|
93
|
+
"@esbuild/linux-ppc64": "0.27.0",
|
|
94
|
+
"@esbuild/linux-riscv64": "0.27.0",
|
|
95
|
+
"@esbuild/linux-s390x": "0.27.0",
|
|
96
|
+
"@esbuild/linux-x64": "0.27.0",
|
|
97
|
+
"@esbuild/netbsd-arm64": "0.27.0",
|
|
98
|
+
"@esbuild/netbsd-x64": "0.27.0",
|
|
99
|
+
"@esbuild/openbsd-arm64": "0.27.0",
|
|
100
|
+
"@esbuild/openbsd-x64": "0.27.0",
|
|
101
|
+
"@esbuild/openharmony-arm64": "0.27.0",
|
|
102
|
+
"@esbuild/sunos-x64": "0.27.0",
|
|
103
|
+
"@esbuild/win32-arm64": "0.27.0",
|
|
104
|
+
"@esbuild/win32-ia32": "0.27.0",
|
|
105
|
+
"@esbuild/win32-x64": "0.27.0"
|
|
106
106
|
}
|
|
107
107
|
},
|
|
108
108
|
"node_modules/get-tsconfig": {
|
|
@@ -129,13 +129,13 @@
|
|
|
129
129
|
}
|
|
130
130
|
},
|
|
131
131
|
"node_modules/tsx": {
|
|
132
|
-
"version": "4.
|
|
133
|
-
"resolved": "https://registry.npmjs.org/tsx/-/tsx-4.
|
|
134
|
-
"integrity": "sha512-
|
|
132
|
+
"version": "4.21.0",
|
|
133
|
+
"resolved": "https://registry.npmjs.org/tsx/-/tsx-4.21.0.tgz",
|
|
134
|
+
"integrity": "sha512-5C1sg4USs1lfG0GFb2RLXsdpXqBSEhAaA/0kPL01wxzpMqLILNxIxIOKiILz+cdg/pLnOUxFYOR5yhHU666wbw==",
|
|
135
135
|
"dev": true,
|
|
136
136
|
"license": "MIT",
|
|
137
137
|
"dependencies": {
|
|
138
|
-
"esbuild": "~0.
|
|
138
|
+
"esbuild": "~0.27.0",
|
|
139
139
|
"get-tsconfig": "^4.7.5"
|
|
140
140
|
},
|
|
141
141
|
"bin": {
|
|
@@ -643,8 +643,8 @@ function createChannel(streamIn) {
|
|
|
643
643
|
if (isFirstPacket) {
|
|
644
644
|
isFirstPacket = false;
|
|
645
645
|
let binaryVersion = String.fromCharCode(...bytes);
|
|
646
|
-
if (binaryVersion !== "0.
|
|
647
|
-
throw new Error(`Cannot start service: Host version "${"0.
|
|
646
|
+
if (binaryVersion !== "0.27.0") {
|
|
647
|
+
throw new Error(`Cannot start service: Host version "${"0.27.0"}" does not match binary version ${quote(binaryVersion)}`);
|
|
648
648
|
}
|
|
649
649
|
return;
|
|
650
650
|
}
|
|
@@ -1770,7 +1770,7 @@ for your current platform.`);
|
|
|
1770
1770
|
"node_modules",
|
|
1771
1771
|
".cache",
|
|
1772
1772
|
"esbuild",
|
|
1773
|
-
`pnpapi-${pkg.replace("/", "-")}-${"0.
|
|
1773
|
+
`pnpapi-${pkg.replace("/", "-")}-${"0.27.0"}-${path.basename(subpath)}`
|
|
1774
1774
|
);
|
|
1775
1775
|
if (!fs.existsSync(binTargetPath)) {
|
|
1776
1776
|
fs.mkdirSync(path.dirname(binTargetPath), { recursive: true });
|
|
@@ -1805,7 +1805,7 @@ if (process.env.ESBUILD_WORKER_THREADS !== "0") {
|
|
|
1805
1805
|
}
|
|
1806
1806
|
}
|
|
1807
1807
|
var _a;
|
|
1808
|
-
var isInternalWorkerThread = ((_a = worker_threads == null ? void 0 : worker_threads.workerData) == null ? void 0 : _a.esbuildVersion) === "0.
|
|
1808
|
+
var isInternalWorkerThread = ((_a = worker_threads == null ? void 0 : worker_threads.workerData) == null ? void 0 : _a.esbuildVersion) === "0.27.0";
|
|
1809
1809
|
var esbuildCommandAndArgs = () => {
|
|
1810
1810
|
if ((!ESBUILD_BINARY_PATH || false) && (path2.basename(__filename) !== "main.js" || path2.basename(__dirname) !== "lib")) {
|
|
1811
1811
|
throw new Error(
|
|
@@ -1872,7 +1872,7 @@ var fsAsync = {
|
|
|
1872
1872
|
}
|
|
1873
1873
|
}
|
|
1874
1874
|
};
|
|
1875
|
-
var version = "0.
|
|
1875
|
+
var version = "0.27.0";
|
|
1876
1876
|
var build = (options) => ensureServiceIsRunning().build(options);
|
|
1877
1877
|
var context = (buildOptions) => ensureServiceIsRunning().context(buildOptions);
|
|
1878
1878
|
var transform = (input, options) => ensureServiceIsRunning().transform(input, options);
|
|
@@ -1975,7 +1975,7 @@ var stopService;
|
|
|
1975
1975
|
var ensureServiceIsRunning = () => {
|
|
1976
1976
|
if (longLivedService) return longLivedService;
|
|
1977
1977
|
let [command, args] = esbuildCommandAndArgs();
|
|
1978
|
-
let child = child_process.spawn(command, args.concat(`--service=${"0.
|
|
1978
|
+
let child = child_process.spawn(command, args.concat(`--service=${"0.27.0"}`, "--ping"), {
|
|
1979
1979
|
windowsHide: true,
|
|
1980
1980
|
stdio: ["pipe", "pipe", "inherit"],
|
|
1981
1981
|
cwd: defaultWD
|
|
@@ -2079,7 +2079,7 @@ var runServiceSync = (callback) => {
|
|
|
2079
2079
|
esbuild: node_exports
|
|
2080
2080
|
});
|
|
2081
2081
|
callback(service);
|
|
2082
|
-
let stdout = child_process.execFileSync(command, args.concat(`--service=${"0.
|
|
2082
|
+
let stdout = child_process.execFileSync(command, args.concat(`--service=${"0.27.0"}`), {
|
|
2083
2083
|
cwd: defaultWD,
|
|
2084
2084
|
windowsHide: true,
|
|
2085
2085
|
input: stdin,
|
|
@@ -2099,7 +2099,7 @@ var workerThreadService = null;
|
|
|
2099
2099
|
var startWorkerThreadService = (worker_threads2) => {
|
|
2100
2100
|
let { port1: mainPort, port2: workerPort } = new worker_threads2.MessageChannel();
|
|
2101
2101
|
let worker = new worker_threads2.Worker(__filename, {
|
|
2102
|
-
workerData: { workerPort, defaultWD, esbuildVersion: "0.
|
|
2102
|
+
workerData: { workerPort, defaultWD, esbuildVersion: "0.27.0" },
|
|
2103
2103
|
transferList: [workerPort],
|
|
2104
2104
|
// From node's documentation: https://nodejs.org/api/worker_threads.html
|
|
2105
2105
|
//
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "esbuild",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.27.0",
|
|
4
4
|
"description": "An extremely fast JavaScript and CSS bundler and minifier.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -18,32 +18,32 @@
|
|
|
18
18
|
"esbuild": "bin/esbuild"
|
|
19
19
|
},
|
|
20
20
|
"optionalDependencies": {
|
|
21
|
-
"@esbuild/aix-ppc64": "0.
|
|
22
|
-
"@esbuild/android-arm": "0.
|
|
23
|
-
"@esbuild/android-arm64": "0.
|
|
24
|
-
"@esbuild/android-x64": "0.
|
|
25
|
-
"@esbuild/darwin-arm64": "0.
|
|
26
|
-
"@esbuild/darwin-x64": "0.
|
|
27
|
-
"@esbuild/freebsd-arm64": "0.
|
|
28
|
-
"@esbuild/freebsd-x64": "0.
|
|
29
|
-
"@esbuild/linux-arm": "0.
|
|
30
|
-
"@esbuild/linux-arm64": "0.
|
|
31
|
-
"@esbuild/linux-ia32": "0.
|
|
32
|
-
"@esbuild/linux-loong64": "0.
|
|
33
|
-
"@esbuild/linux-mips64el": "0.
|
|
34
|
-
"@esbuild/linux-ppc64": "0.
|
|
35
|
-
"@esbuild/linux-riscv64": "0.
|
|
36
|
-
"@esbuild/linux-s390x": "0.
|
|
37
|
-
"@esbuild/linux-x64": "0.
|
|
38
|
-
"@esbuild/netbsd-arm64": "0.
|
|
39
|
-
"@esbuild/netbsd-x64": "0.
|
|
40
|
-
"@esbuild/openbsd-arm64": "0.
|
|
41
|
-
"@esbuild/openbsd-x64": "0.
|
|
42
|
-
"@esbuild/openharmony-arm64": "0.
|
|
43
|
-
"@esbuild/sunos-x64": "0.
|
|
44
|
-
"@esbuild/win32-arm64": "0.
|
|
45
|
-
"@esbuild/win32-ia32": "0.
|
|
46
|
-
"@esbuild/win32-x64": "0.
|
|
21
|
+
"@esbuild/aix-ppc64": "0.27.0",
|
|
22
|
+
"@esbuild/android-arm": "0.27.0",
|
|
23
|
+
"@esbuild/android-arm64": "0.27.0",
|
|
24
|
+
"@esbuild/android-x64": "0.27.0",
|
|
25
|
+
"@esbuild/darwin-arm64": "0.27.0",
|
|
26
|
+
"@esbuild/darwin-x64": "0.27.0",
|
|
27
|
+
"@esbuild/freebsd-arm64": "0.27.0",
|
|
28
|
+
"@esbuild/freebsd-x64": "0.27.0",
|
|
29
|
+
"@esbuild/linux-arm": "0.27.0",
|
|
30
|
+
"@esbuild/linux-arm64": "0.27.0",
|
|
31
|
+
"@esbuild/linux-ia32": "0.27.0",
|
|
32
|
+
"@esbuild/linux-loong64": "0.27.0",
|
|
33
|
+
"@esbuild/linux-mips64el": "0.27.0",
|
|
34
|
+
"@esbuild/linux-ppc64": "0.27.0",
|
|
35
|
+
"@esbuild/linux-riscv64": "0.27.0",
|
|
36
|
+
"@esbuild/linux-s390x": "0.27.0",
|
|
37
|
+
"@esbuild/linux-x64": "0.27.0",
|
|
38
|
+
"@esbuild/netbsd-arm64": "0.27.0",
|
|
39
|
+
"@esbuild/netbsd-x64": "0.27.0",
|
|
40
|
+
"@esbuild/openbsd-arm64": "0.27.0",
|
|
41
|
+
"@esbuild/openbsd-x64": "0.27.0",
|
|
42
|
+
"@esbuild/openharmony-arm64": "0.27.0",
|
|
43
|
+
"@esbuild/sunos-x64": "0.27.0",
|
|
44
|
+
"@esbuild/win32-arm64": "0.27.0",
|
|
45
|
+
"@esbuild/win32-ia32": "0.27.0",
|
|
46
|
+
"@esbuild/win32-x64": "0.27.0"
|
|
47
47
|
},
|
|
48
48
|
"license": "MIT"
|
|
49
49
|
}
|