@0xtorch/core 0.0.3 → 0.0.5
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/_cjs/actions/schemas/income/atomicArbitrage.js +4 -1
- package/_cjs/actions/schemas/income/atomicArbitrage.js.map +1 -1
- package/_cjs/actions/schemas/replace/swapNft.js +2 -8
- package/_cjs/actions/schemas/replace/swapNft.js.map +1 -1
- package/_esm/actions/schemas/income/atomicArbitrage.js +5 -2
- package/_esm/actions/schemas/income/atomicArbitrage.js.map +1 -1
- package/_esm/actions/schemas/replace/swapNft.js +3 -9
- package/_esm/actions/schemas/replace/swapNft.js.map +1 -1
- package/_types/actions/schemas/action.d.ts +460 -774
- package/_types/actions/schemas/action.d.ts.map +1 -1
- package/_types/actions/schemas/income/atomicArbitrage.d.ts +412 -10
- package/_types/actions/schemas/income/atomicArbitrage.d.ts.map +1 -1
- package/_types/actions/schemas/replace/swapNft.d.ts +48 -764
- package/_types/actions/schemas/replace/swapNft.d.ts.map +1 -1
- package/actions/schemas/income/atomicArbitrage.ts +7 -1
- package/actions/schemas/replace/swapNft.ts +4 -14
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"swapNft.d.ts","sourceRoot":"","sources":["../../../../actions/schemas/replace/swapNft.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAQvB,eAAO,MAAM,yBAAyB
|
|
1
|
+
{"version":3,"file":"swapNft.d.ts","sourceRoot":"","sources":["../../../../actions/schemas/replace/swapNft.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAQvB,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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
|
@@ -3,12 +3,18 @@ import {
|
|
|
3
3
|
normalAccountActionDefaultSchema,
|
|
4
4
|
normalActionDefaultSchema,
|
|
5
5
|
transferCryptoCurrencyInSchema,
|
|
6
|
+
transferCryptoCurrencyOutSchema,
|
|
6
7
|
} from '../default'
|
|
7
8
|
|
|
8
9
|
export const normalActionAtomicArbitrageSchema = normalActionDefaultSchema
|
|
9
10
|
.extend({
|
|
10
11
|
action: z.literal('atomic-arbitrage'),
|
|
11
|
-
transfers: z.array(
|
|
12
|
+
transfers: z.array(
|
|
13
|
+
z.union([
|
|
14
|
+
transferCryptoCurrencyInSchema,
|
|
15
|
+
transferCryptoCurrencyOutSchema,
|
|
16
|
+
]),
|
|
17
|
+
),
|
|
12
18
|
})
|
|
13
19
|
.transform((v) => ({
|
|
14
20
|
...v,
|
|
@@ -2,19 +2,14 @@ import { z } from 'zod'
|
|
|
2
2
|
import {
|
|
3
3
|
normalAccountActionDefaultSchema,
|
|
4
4
|
normalActionDefaultSchema,
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
transferNftInSchema,
|
|
6
|
+
transferNftOutSchema,
|
|
7
7
|
} from '../default'
|
|
8
8
|
|
|
9
9
|
export const normalActionSwapNftSchema = normalActionDefaultSchema
|
|
10
10
|
.extend({
|
|
11
11
|
action: z.literal('swap-nft'),
|
|
12
|
-
transfers: z.array(
|
|
13
|
-
z.union([
|
|
14
|
-
transferCryptoCurrencyInSchema,
|
|
15
|
-
transferCryptoCurrencyOutSchema,
|
|
16
|
-
]),
|
|
17
|
-
),
|
|
12
|
+
transfers: z.array(z.union([transferNftInSchema, transferNftOutSchema])),
|
|
18
13
|
})
|
|
19
14
|
.transform((v) => ({
|
|
20
15
|
...v,
|
|
@@ -25,12 +20,7 @@ export const normalActionSwapNftSchema = normalActionDefaultSchema
|
|
|
25
20
|
export const accountActionSwapNftSchema = normalAccountActionDefaultSchema
|
|
26
21
|
.extend({
|
|
27
22
|
action: z.literal('swap-nft'),
|
|
28
|
-
transfers: z.array(
|
|
29
|
-
z.union([
|
|
30
|
-
transferCryptoCurrencyInSchema,
|
|
31
|
-
transferCryptoCurrencyOutSchema,
|
|
32
|
-
]),
|
|
33
|
-
),
|
|
23
|
+
transfers: z.array(z.union([transferNftInSchema, transferNftOutSchema])),
|
|
34
24
|
})
|
|
35
25
|
.transform((v) => ({
|
|
36
26
|
...v,
|