@fun-xyz/fiat-contract 0.36.0-uda.5 → 0.36.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/{chunk-S6CA2WGQ.mjs → chunk-IUWLHJ37.mjs} +1 -1
- package/dist/index.js +4 -4
- package/dist/index.mjs +4 -4
- package/dist/table.js +1 -1
- package/dist/table.mjs +1 -1
- package/dist/types.d.ts +4 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1081,7 +1081,7 @@ var $evmDestinationAsset = obj({
|
|
|
1081
1081
|
}),
|
|
1082
1082
|
obj({
|
|
1083
1083
|
kind: import_zod.z.literal("NON_FUNGIBLE"),
|
|
1084
|
-
|
|
1084
|
+
address: $evmAddress,
|
|
1085
1085
|
tokenId: import_zod.z.string().regex(/^(0|[1-9]\d*)$/, "must be a decimal integer")
|
|
1086
1086
|
})
|
|
1087
1087
|
])
|
|
@@ -1093,10 +1093,10 @@ var $solanaDestinationAsset = obj({
|
|
|
1093
1093
|
kind: import_zod.z.literal("FUNGIBLE"),
|
|
1094
1094
|
token: import_zod.z.discriminatedUnion("type", [
|
|
1095
1095
|
obj({ type: import_zod.z.literal("NATIVE") }),
|
|
1096
|
-
obj({ type: import_zod.z.literal("SPL"),
|
|
1096
|
+
obj({ type: import_zod.z.literal("SPL"), address: $solanaAddress })
|
|
1097
1097
|
])
|
|
1098
1098
|
}),
|
|
1099
|
-
obj({ kind: import_zod.z.literal("NON_FUNGIBLE"),
|
|
1099
|
+
obj({ kind: import_zod.z.literal("NON_FUNGIBLE"), address: $solanaAddress })
|
|
1100
1100
|
])
|
|
1101
1101
|
});
|
|
1102
1102
|
var $destinationAsset = import_zod.z.discriminatedUnion("vm", [$evmDestinationAsset, $solanaDestinationAsset]);
|
|
@@ -1291,7 +1291,7 @@ var $stepResponse = import_zod.z.union([$providerBoundStepResponse, $blockedStep
|
|
|
1291
1291
|
var FiatStepResponseSchema = $stepResponse;
|
|
1292
1292
|
|
|
1293
1293
|
// package.json
|
|
1294
|
-
var version = "0.36.0
|
|
1294
|
+
var version = "0.36.0";
|
|
1295
1295
|
|
|
1296
1296
|
// src/table.ts
|
|
1297
1297
|
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-
|
|
15
|
+
} from "./chunk-IUWLHJ37.mjs";
|
|
16
16
|
import {
|
|
17
17
|
MOONPAY_ENDPOINTS
|
|
18
18
|
} from "./chunk-TIEGTTFY.mjs";
|
|
@@ -931,7 +931,7 @@ var $evmDestinationAsset = obj({
|
|
|
931
931
|
}),
|
|
932
932
|
obj({
|
|
933
933
|
kind: z.literal("NON_FUNGIBLE"),
|
|
934
|
-
|
|
934
|
+
address: $evmAddress,
|
|
935
935
|
tokenId: z.string().regex(/^(0|[1-9]\d*)$/, "must be a decimal integer")
|
|
936
936
|
})
|
|
937
937
|
])
|
|
@@ -943,10 +943,10 @@ var $solanaDestinationAsset = obj({
|
|
|
943
943
|
kind: z.literal("FUNGIBLE"),
|
|
944
944
|
token: z.discriminatedUnion("type", [
|
|
945
945
|
obj({ type: z.literal("NATIVE") }),
|
|
946
|
-
obj({ type: z.literal("SPL"),
|
|
946
|
+
obj({ type: z.literal("SPL"), address: $solanaAddress })
|
|
947
947
|
])
|
|
948
948
|
}),
|
|
949
|
-
obj({ kind: z.literal("NON_FUNGIBLE"),
|
|
949
|
+
obj({ kind: z.literal("NON_FUNGIBLE"), address: $solanaAddress })
|
|
950
950
|
])
|
|
951
951
|
});
|
|
952
952
|
var $destinationAsset = z.discriminatedUnion("vm", [$evmDestinationAsset, $solanaDestinationAsset]);
|
package/dist/table.js
CHANGED
package/dist/table.mjs
CHANGED
package/dist/types.d.ts
CHANGED
|
@@ -794,24 +794,24 @@ export type DestinationAsset = {
|
|
|
794
794
|
};
|
|
795
795
|
} | {
|
|
796
796
|
kind: 'NON_FUNGIBLE';
|
|
797
|
-
|
|
797
|
+
address: `0x${string}`;
|
|
798
798
|
/** A decimal integer string, so a uint256 id keeps its precision. */
|
|
799
799
|
tokenId: string;
|
|
800
800
|
};
|
|
801
801
|
} | {
|
|
802
802
|
vm: 'SOLANA';
|
|
803
|
-
/** Every `
|
|
803
|
+
/** Every `address` is a base58 mint address. */
|
|
804
804
|
asset: {
|
|
805
805
|
kind: 'FUNGIBLE';
|
|
806
806
|
token: {
|
|
807
807
|
type: 'NATIVE';
|
|
808
808
|
} | {
|
|
809
809
|
type: 'SPL';
|
|
810
|
-
|
|
810
|
+
address: string;
|
|
811
811
|
};
|
|
812
812
|
} | {
|
|
813
813
|
kind: 'NON_FUNGIBLE';
|
|
814
|
-
|
|
814
|
+
address: string;
|
|
815
815
|
};
|
|
816
816
|
};
|
|
817
817
|
/** The geo endpoint's response, sent on every `/next` request. `alpha2` is ISO 3166-1 alpha-2. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fun-xyz/fiat-contract",
|
|
3
|
-
"version": "0.36.0
|
|
3
|
+
"version": "0.36.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": {
|