@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.
@@ -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
- executionChainId?: number;
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
- executionChainId?: number;
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.2",
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": {