@fun-xyz/fiat-contract 0.47.0 → 0.48.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,5 +1,5 @@
1
1
  // package.json
2
- var version = "0.47.0";
2
+ var version = "0.48.0";
3
3
 
4
4
  // src/table.ts
5
5
  var TABLE_VERSION = version;
package/dist/index.js CHANGED
@@ -1397,7 +1397,7 @@ var $stepResponse = import_zod.z.union([$providerBoundStepResponse, $funAuthStep
1397
1397
  var FiatStepResponseSchema = $stepResponse;
1398
1398
 
1399
1399
  // package.json
1400
- var version = "0.47.0";
1400
+ var version = "0.48.0";
1401
1401
 
1402
1402
  // src/table.ts
1403
1403
  var TABLE_VERSION = version;
@@ -3702,7 +3702,12 @@ var $nextRequest3 = import_zod3.z.union([
3702
3702
  obj3({ ...envelope, ...orderFields })
3703
3703
  ]);
3704
3704
  var CoinbaseNextRequestSchema = $nextRequest3;
3705
- var $price = obj3({ total: FiatAmountSchema, fees: import_zod3.z.array(FeeLineSchema), cryptoAmount: $nonEmpty2 });
3705
+ var $price = obj3({
3706
+ total: FiatAmountSchema,
3707
+ fees: import_zod3.z.array(FeeLineSchema),
3708
+ cryptoAmount: $nonEmpty2,
3709
+ feeSubsidy: FiatAmountSchema.optional()
3710
+ });
3706
3711
  var CoinbasePriceSchema = $price;
3707
3712
  var $reask2 = obj3({
3708
3713
  requirements: import_zod3.z.array(KycFieldIdSchema).min(1).refine(hasUniqueIds3, "requirements must be unique"),
package/dist/index.mjs CHANGED
@@ -13,7 +13,7 @@ import {
13
13
  tableEntry,
14
14
  unofferedEndpoints,
15
15
  unreachableStates
16
- } from "./chunk-JMJ45E27.mjs";
16
+ } from "./chunk-4ZHY4P3K.mjs";
17
17
  import {
18
18
  MOONPAY_ENDPOINTS
19
19
  } from "./chunk-TIEGTTFY.mjs";
@@ -2819,7 +2819,12 @@ var $nextRequest3 = z3.union([
2819
2819
  obj3({ ...envelope, ...orderFields })
2820
2820
  ]);
2821
2821
  var CoinbaseNextRequestSchema = $nextRequest3;
2822
- var $price = obj3({ total: FiatAmountSchema, fees: z3.array(FeeLineSchema), cryptoAmount: $nonEmpty2 });
2822
+ var $price = obj3({
2823
+ total: FiatAmountSchema,
2824
+ fees: z3.array(FeeLineSchema),
2825
+ cryptoAmount: $nonEmpty2,
2826
+ feeSubsidy: FiatAmountSchema.optional()
2827
+ });
2823
2828
  var CoinbasePriceSchema = $price;
2824
2829
  var $reask2 = obj3({
2825
2830
  requirements: z3.array(KycFieldIdSchema).min(1).refine(hasUniqueIds3, "requirements must be unique"),
@@ -107,11 +107,16 @@ export type CoinbaseWaitNextAction = {
107
107
  next: 'wait';
108
108
  retryAfterMs: number;
109
109
  };
110
- /** The order's price: Coinbase's own totals, never Fun's. */
110
+ /** The order's price: Coinbase's own totals, never Fun's, and the fee subsidy Fun decided on them. */
111
111
  export interface CoinbasePrice {
112
112
  total: FiatAmount;
113
113
  fees: FeeLine[];
114
114
  cryptoAmount: string;
115
+ /**
116
+ * The fee the partner reimburses after settlement, as on `Quote.feeSubsidy`. Absent when this deposit is not
117
+ * subsidized. A prediction: settlement decides again.
118
+ */
119
+ feeSubsidy?: FiatAmount;
115
120
  }
116
121
  /**
117
122
  * Coinbase priced the checkout. `orderId` is minted for this answer: send it back on `placeOrder`, and on every
package/dist/table.js CHANGED
@@ -37,7 +37,7 @@ __export(table_exports, {
37
37
  module.exports = __toCommonJS(table_exports);
38
38
 
39
39
  // package.json
40
- var version = "0.47.0";
40
+ var version = "0.48.0";
41
41
 
42
42
  // src/table.ts
43
43
  var TABLE_VERSION = version;
package/dist/table.mjs CHANGED
@@ -12,7 +12,7 @@ import {
12
12
  tableEntry,
13
13
  unofferedEndpoints,
14
14
  unreachableStates
15
- } from "./chunk-JMJ45E27.mjs";
15
+ } from "./chunk-4ZHY4P3K.mjs";
16
16
  export {
17
17
  DOCUMENTED_ENDPOINTS,
18
18
  FUN_AUTH_ERROR_CODES,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fun-xyz/fiat-contract",
3
- "version": "0.47.0",
3
+ "version": "0.48.0",
4
4
  "description": "Published conformance contract for Fun's headless fiat onramp: FlowState/Transition types, zod schemas, the transition table as data, recorded fixtures, assertion helpers.",
5
5
  "license": "MIT",
6
6
  "repository": {