@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.
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.
|
|
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({
|
|
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-
|
|
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({
|
|
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
package/dist/table.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fun-xyz/fiat-contract",
|
|
3
|
-
"version": "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": {
|