@fun-xyz/fiat-contract 0.36.0-uda.0 → 0.36.0-uda.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.
@@ -1,5 +1,5 @@
1
1
  // package.json
2
- var version = "0.36.0-uda.0";
2
+ var version = "0.36.0-uda.1";
3
3
 
4
4
  // src/table.ts
5
5
  var TABLE_VERSION = version;
package/dist/index.js CHANGED
@@ -1098,7 +1098,9 @@ var $routingTableProvider = obj({
1098
1098
  provider: $routingProvider,
1099
1099
  next: import_zod.z.enum(["READY", "AUTH", "DECLARATIVE_KYC", "DOCUMENTARY_KYC", "PENDING_REVIEW"]),
1100
1100
  visibility: import_zod.z.enum(["COMPLETE", "PARTIAL", "AUTH_GATED"]),
1101
- currentLimit: $decimalAmount.nullable()
1101
+ currentLimit: $decimalAmount.nullable(),
1102
+ railAsset: $destination.optional(),
1103
+ deliveryMode: import_zod.z.enum(["DIRECT", "UDA"]).optional()
1102
1104
  });
1103
1105
  var $routingTableInterval = obj({
1104
1106
  min: $decimalAmount,
@@ -1254,7 +1256,7 @@ var $stepResponse = import_zod.z.union([$providerBoundStepResponse, $blockedStep
1254
1256
  var FiatStepResponseSchema = $stepResponse;
1255
1257
 
1256
1258
  // package.json
1257
- var version = "0.36.0-uda.0";
1259
+ var version = "0.36.0-uda.1";
1258
1260
 
1259
1261
  // src/table.ts
1260
1262
  var TABLE_VERSION = version;
package/dist/index.mjs CHANGED
@@ -12,7 +12,7 @@ import {
12
12
  tableEntry,
13
13
  unofferedEndpoints,
14
14
  unreachableStates
15
- } from "./chunk-PWC3WN74.mjs";
15
+ } from "./chunk-KZZ4JA33.mjs";
16
16
  import {
17
17
  MOONPAY_ENDPOINTS
18
18
  } from "./chunk-TIEGTTFY.mjs";
@@ -949,7 +949,9 @@ var $routingTableProvider = obj({
949
949
  provider: $routingProvider,
950
950
  next: z.enum(["READY", "AUTH", "DECLARATIVE_KYC", "DOCUMENTARY_KYC", "PENDING_REVIEW"]),
951
951
  visibility: z.enum(["COMPLETE", "PARTIAL", "AUTH_GATED"]),
952
- currentLimit: $decimalAmount.nullable()
952
+ currentLimit: $decimalAmount.nullable(),
953
+ railAsset: $destination.optional(),
954
+ deliveryMode: z.enum(["DIRECT", "UDA"]).optional()
953
955
  });
954
956
  var $routingTableInterval = obj({
955
957
  min: $decimalAmount,
package/dist/routing.d.ts CHANGED
@@ -80,7 +80,26 @@ export interface RoutingTableProvider {
80
80
  * table's currency. `null` when unknown. The interval edges are the most after every step on offer.
81
81
  */
82
82
  currentLimit: string | null;
83
+ /**
84
+ * The asset this provider delivers on the order: the request's `cryptoCurrencyCode` on `chainId`,
85
+ * or, when the request names a `destination`, the asset the backend chose to buy for it. Quote this
86
+ * asset. Absent from a backend that predates it.
87
+ */
88
+ railAsset?: RoutingTableRailAsset;
89
+ /** How the order reaches the user. Absent from a backend that predates it. */
90
+ deliveryMode?: RoutingDeliveryMode;
91
+ }
92
+ /** An asset by chain and token address, in `FiatDestination`'s format. */
93
+ export interface RoutingTableRailAsset {
94
+ chainId: string;
95
+ tokenAddress: string;
83
96
  }
97
+ /**
98
+ * `DIRECT`: the provider pays `railAsset` to the user's wallet, so the purchase is done when it
99
+ * settles. `UDA`: the provider pays a deposit address that swaps `railAsset` into the request's
100
+ * `destination`, so the purchase is done only at `FINAL_ASSET_DELIVERED`.
101
+ */
102
+ export type RoutingDeliveryMode = 'DIRECT' | 'UDA';
84
103
  /**
85
104
  * A `QuoteLimitRange` with two decimals (`"20.00"`) and the providers that serve it. The next
86
105
  * interval starts one cent above `max`. Adjacent intervals always rank differently.
package/dist/table.js CHANGED
@@ -36,7 +36,7 @@ __export(table_exports, {
36
36
  module.exports = __toCommonJS(table_exports);
37
37
 
38
38
  // package.json
39
- var version = "0.36.0-uda.0";
39
+ var version = "0.36.0-uda.1";
40
40
 
41
41
  // src/table.ts
42
42
  var TABLE_VERSION = version;
package/dist/table.mjs CHANGED
@@ -11,7 +11,7 @@ import {
11
11
  tableEntry,
12
12
  unofferedEndpoints,
13
13
  unreachableStates
14
- } from "./chunk-PWC3WN74.mjs";
14
+ } from "./chunk-KZZ4JA33.mjs";
15
15
  export {
16
16
  DOCUMENTED_ENDPOINTS,
17
17
  STATE_KEYS,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fun-xyz/fiat-contract",
3
- "version": "0.36.0-uda.0",
3
+ "version": "0.36.0-uda.1",
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": {