@owney/sdk 0.7.23-beta.0 → 0.7.23-beta.1

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/dist/index.d.cts CHANGED
@@ -75,6 +75,38 @@ type SwapQuote = {
75
75
  * signature-only after their one-time approval.
76
76
  */
77
77
  requiresOnchainOrder: boolean;
78
+ /**
79
+ * What the swap costs, as the provider reports it on this quote.
80
+ *
81
+ * Surfaced rather than derived: a fee the UI computes from its own constant
82
+ * drifts from the one actually charged the moment the two disagree, and they
83
+ * did — the integrator fee was configured on our side for days while the
84
+ * provider had it switched off, so the real charge was zero.
85
+ *
86
+ * Cross-chain only. The classic rail reports no breakdown.
87
+ */
88
+ feeInfo?: {
89
+ /** Owney's cut. Absent until a fee receiver is configured. */
90
+ integratorFee?: {
91
+ receiver: string;
92
+ bps: number;
93
+ share: number;
94
+ };
95
+ /** The filler's cut, charged either way. */
96
+ resolverFee?: {
97
+ receiver: string;
98
+ bps: number;
99
+ };
100
+ };
101
+ /**
102
+ * Owney's cut in basis points, for display.
103
+ *
104
+ * Distinct from `feeInfo`, which is what the provider measured on this
105
+ * quote. When the provider applies the fee at settlement it reports nothing
106
+ * here, and this carries the agreed figure instead so the UI can still name
107
+ * one. Stated, not verified.
108
+ */
109
+ integratorFeeBps?: number;
78
110
  };
79
111
  /**
80
112
  * Terminal states are `executed`, `expired`, `cancelled` and `refunded`.
package/dist/index.d.ts CHANGED
@@ -75,6 +75,38 @@ type SwapQuote = {
75
75
  * signature-only after their one-time approval.
76
76
  */
77
77
  requiresOnchainOrder: boolean;
78
+ /**
79
+ * What the swap costs, as the provider reports it on this quote.
80
+ *
81
+ * Surfaced rather than derived: a fee the UI computes from its own constant
82
+ * drifts from the one actually charged the moment the two disagree, and they
83
+ * did — the integrator fee was configured on our side for days while the
84
+ * provider had it switched off, so the real charge was zero.
85
+ *
86
+ * Cross-chain only. The classic rail reports no breakdown.
87
+ */
88
+ feeInfo?: {
89
+ /** Owney's cut. Absent until a fee receiver is configured. */
90
+ integratorFee?: {
91
+ receiver: string;
92
+ bps: number;
93
+ share: number;
94
+ };
95
+ /** The filler's cut, charged either way. */
96
+ resolverFee?: {
97
+ receiver: string;
98
+ bps: number;
99
+ };
100
+ };
101
+ /**
102
+ * Owney's cut in basis points, for display.
103
+ *
104
+ * Distinct from `feeInfo`, which is what the provider measured on this
105
+ * quote. When the provider applies the fee at settlement it reports nothing
106
+ * here, and this carries the agreed figure instead so the UI can still name
107
+ * one. Stated, not verified.
108
+ */
109
+ integratorFeeBps?: number;
78
110
  };
79
111
  /**
80
112
  * Terminal states are `executed`, `expired`, `cancelled` and `refunded`.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@owney/sdk",
3
- "version": "0.7.23-beta.0",
3
+ "version": "0.7.23-beta.1",
4
4
  "type": "module",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",