@glacislabs/stablegenie-zerodelta 3.0.2 → 3.1.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/README.md +1 -1
- package/dist/{chunk-TR2XMP7X.js → chunk-NSH3PT2J.js} +6 -4
- package/dist/{chunk-AZPTL3KD.js → chunk-OOURZ5DL.js} +191 -58
- package/dist/core/index.cjs +196 -57
- package/dist/core/index.d.cts +60 -7
- package/dist/core/index.d.ts +60 -7
- package/dist/core/index.js +1 -1
- package/dist/index.cjs +195 -60
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/{mount-BC5gY1X6.d.cts → mount-DNvmtX0y.d.cts} +1 -1
- package/dist/{mount-8nchcNbL.d.ts → mount-jxrT-DMe.d.ts} +1 -1
- package/dist/mount.cjs +195 -60
- package/dist/mount.d.cts +2 -2
- package/dist/mount.d.ts +2 -2
- package/dist/mount.js +2 -2
- package/dist/standalone.global.js +6 -6
- package/dist/{verify-DFTuQ2g3.d.cts → verify-7lk90Ado.d.cts} +11 -3
- package/dist/{verify-DFTuQ2g3.d.ts → verify-7lk90Ado.d.ts} +11 -3
- package/package.json +2 -1
|
@@ -43,8 +43,9 @@ interface OrderRequest {
|
|
|
43
43
|
askTokenAmount?: string | number;
|
|
44
44
|
destinationReceiver?: string;
|
|
45
45
|
destinationChainId?: string | number;
|
|
46
|
+
/** Chain the escrow executes the order on. Mandatory on-chain; the gateway always issues it. */
|
|
47
|
+
executionChainId?: string | number;
|
|
46
48
|
deadline?: string | number;
|
|
47
|
-
data?: string;
|
|
48
49
|
}
|
|
49
50
|
interface NormalizedOrder {
|
|
50
51
|
owner: string;
|
|
@@ -54,8 +55,8 @@ interface NormalizedOrder {
|
|
|
54
55
|
askTokenAmount: string;
|
|
55
56
|
destinationReceiver: string;
|
|
56
57
|
destinationChainId: string;
|
|
58
|
+
executionChainId: string;
|
|
57
59
|
deadline: string;
|
|
58
|
-
data: string;
|
|
59
60
|
}
|
|
60
61
|
interface Quote {
|
|
61
62
|
fromChainId: number;
|
|
@@ -71,7 +72,14 @@ interface Quote {
|
|
|
71
72
|
gasCostSource?: string;
|
|
72
73
|
gasCostDest?: string;
|
|
73
74
|
escrowAddress?: string;
|
|
74
|
-
|
|
75
|
+
/** Escrow on the execution chain. Informational: approve/submitOrder go to the SOURCE-chain
|
|
76
|
+
* escrow, which is what checkEscrow binds. */
|
|
77
|
+
executionEscrowAddress?: string;
|
|
78
|
+
executionChainId?: number | string;
|
|
79
|
+
/** Every leg of the order, first to last. A plain swap is one leg; a chained (RWA) quote is
|
|
80
|
+
* two or more, all encoded into one submitOrder call. */
|
|
81
|
+
orderRequests?: OrderRequest[] | null;
|
|
82
|
+
/** Legacy single-leg shape, accepted for backward compatibility. */
|
|
75
83
|
orderRequest?: OrderRequest | null;
|
|
76
84
|
[k: string]: unknown;
|
|
77
85
|
}
|
|
@@ -43,8 +43,9 @@ interface OrderRequest {
|
|
|
43
43
|
askTokenAmount?: string | number;
|
|
44
44
|
destinationReceiver?: string;
|
|
45
45
|
destinationChainId?: string | number;
|
|
46
|
+
/** Chain the escrow executes the order on. Mandatory on-chain; the gateway always issues it. */
|
|
47
|
+
executionChainId?: string | number;
|
|
46
48
|
deadline?: string | number;
|
|
47
|
-
data?: string;
|
|
48
49
|
}
|
|
49
50
|
interface NormalizedOrder {
|
|
50
51
|
owner: string;
|
|
@@ -54,8 +55,8 @@ interface NormalizedOrder {
|
|
|
54
55
|
askTokenAmount: string;
|
|
55
56
|
destinationReceiver: string;
|
|
56
57
|
destinationChainId: string;
|
|
58
|
+
executionChainId: string;
|
|
57
59
|
deadline: string;
|
|
58
|
-
data: string;
|
|
59
60
|
}
|
|
60
61
|
interface Quote {
|
|
61
62
|
fromChainId: number;
|
|
@@ -71,7 +72,14 @@ interface Quote {
|
|
|
71
72
|
gasCostSource?: string;
|
|
72
73
|
gasCostDest?: string;
|
|
73
74
|
escrowAddress?: string;
|
|
74
|
-
|
|
75
|
+
/** Escrow on the execution chain. Informational: approve/submitOrder go to the SOURCE-chain
|
|
76
|
+
* escrow, which is what checkEscrow binds. */
|
|
77
|
+
executionEscrowAddress?: string;
|
|
78
|
+
executionChainId?: number | string;
|
|
79
|
+
/** Every leg of the order, first to last. A plain swap is one leg; a chained (RWA) quote is
|
|
80
|
+
* two or more, all encoded into one submitOrder call. */
|
|
81
|
+
orderRequests?: OrderRequest[] | null;
|
|
82
|
+
/** Legacy single-leg shape, accepted for backward compatibility. */
|
|
75
83
|
orderRequest?: OrderRequest | null;
|
|
76
84
|
[k: string]: unknown;
|
|
77
85
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@glacislabs/stablegenie-zerodelta",
|
|
3
|
-
"version": "3.0
|
|
3
|
+
"version": "3.1.0",
|
|
4
4
|
"description": "Lightweight embeddable ZeroDelta payment + swap widget (exact-receive Pay and exact-in Swap). Wallet always owns the final signature.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -89,6 +89,7 @@
|
|
|
89
89
|
"semantic-release": "^25.0.3",
|
|
90
90
|
"tsup": "^8.3.5",
|
|
91
91
|
"typescript": "~5.8.2",
|
|
92
|
+
"viem": "^2.56.3",
|
|
92
93
|
"vitest": "^3.2.4"
|
|
93
94
|
},
|
|
94
95
|
"engines": {
|