@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.
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EASlC,CAAA"}
@@ -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(transferCryptoCurrencyInSchema),
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
- transferCryptoCurrencyInSchema,
6
- transferCryptoCurrencyOutSchema,
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,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@0xtorch/core",
3
- "version": "0.0.3",
3
+ "version": "0.0.5",
4
4
  "description": "Cryptorch | TypeScript Analyze Interface for Crypto Data.",
5
5
  "keywords": [
6
6
  "cryptorch",