@0xtorch/core 0.0.17 → 0.0.19
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/index.js +3 -6
- package/_cjs/actions/index.js.map +1 -1
- package/_cjs/actions/parsers/action.js +0 -8
- package/_cjs/actions/parsers/action.js.map +1 -1
- package/_cjs/actions/parsers/borrow/index.js +1 -3
- package/_cjs/actions/parsers/borrow/index.js.map +1 -1
- package/_cjs/actions/parsers/index.js +1 -2
- package/_cjs/actions/parsers/index.js.map +1 -1
- package/_cjs/actions/schemas/action.js +0 -3
- package/_cjs/actions/schemas/action.js.map +1 -1
- package/_cjs/actions/schemas/borrow/index.js +1 -4
- package/_cjs/actions/schemas/borrow/index.js.map +1 -1
- package/_cjs/actions/schemas/default/unions.js +0 -2
- package/_cjs/actions/schemas/default/unions.js.map +1 -1
- package/_cjs/actions/schemas/index.js +3 -5
- package/_cjs/actions/schemas/index.js.map +1 -1
- package/_cjs/actions/utils.js +0 -38
- package/_cjs/actions/utils.js.map +1 -1
- package/_cjs/index.js +5 -5
- package/_cjs/index.js.map +1 -1
- package/_cjs/setAccountActionPrices.js +73 -0
- package/_cjs/setAccountActionPrices.js.map +1 -0
- package/_esm/actions/index.js +2 -2
- package/_esm/actions/index.js.map +1 -1
- package/_esm/actions/parsers/action.js +1 -9
- package/_esm/actions/parsers/action.js.map +1 -1
- package/_esm/actions/parsers/borrow/index.js +0 -1
- package/_esm/actions/parsers/borrow/index.js.map +1 -1
- package/_esm/actions/parsers/index.js +1 -1
- package/_esm/actions/parsers/index.js.map +1 -1
- package/_esm/actions/schemas/action.js +1 -4
- package/_esm/actions/schemas/action.js.map +1 -1
- package/_esm/actions/schemas/borrow/index.js +0 -1
- package/_esm/actions/schemas/borrow/index.js.map +1 -1
- package/_esm/actions/schemas/default/unions.js +0 -2
- package/_esm/actions/schemas/default/unions.js.map +1 -1
- package/_esm/actions/schemas/index.js +1 -1
- package/_esm/actions/schemas/index.js.map +1 -1
- package/_esm/actions/utils.js +0 -42
- package/_esm/actions/utils.js.map +1 -1
- package/_esm/index.js +2 -1
- package/_esm/index.js.map +1 -1
- package/_esm/setAccountActionPrices.js +72 -0
- package/_esm/setAccountActionPrices.js.map +1 -0
- package/_types/actions/index.d.ts +3 -3
- package/_types/actions/index.d.ts.map +1 -1
- package/_types/actions/parsers/action.d.ts.map +1 -1
- package/_types/actions/parsers/borrow/index.d.ts +0 -1
- package/_types/actions/parsers/borrow/index.d.ts.map +1 -1
- package/_types/actions/parsers/index.d.ts +1 -1
- package/_types/actions/parsers/index.d.ts.map +1 -1
- package/_types/actions/schemas/action.d.ts +8818 -11544
- package/_types/actions/schemas/action.d.ts.map +1 -1
- package/_types/actions/schemas/borrow/index.d.ts +0 -1
- package/_types/actions/schemas/borrow/index.d.ts.map +1 -1
- package/_types/actions/schemas/default/accountAction.d.ts +9 -9
- package/_types/actions/schemas/default/normalAction.d.ts +9 -9
- package/_types/actions/schemas/default/unions.d.ts +2 -2
- package/_types/actions/schemas/default/unions.d.ts.map +1 -1
- package/_types/actions/schemas/index.d.ts +1 -1
- package/_types/actions/schemas/index.d.ts.map +1 -1
- package/_types/actions/types/index.d.ts +0 -1
- package/_types/actions/types/index.d.ts.map +1 -1
- package/_types/actions/utils.d.ts.map +1 -1
- package/_types/index.d.ts +3 -2
- package/_types/index.d.ts.map +1 -1
- package/_types/{actions/schemas/borrow/borrowWithDebt.d.ts → setAccountActionPrices.d.ts} +2271 -1370
- package/_types/{actions/schemas/borrow/borrowWithDebt.d.ts.map → setAccountActionPrices.d.ts.map} +1 -1
- package/actions/index.ts +0 -5
- package/actions/parsers/action.ts +1 -12
- package/actions/parsers/borrow/index.ts +0 -1
- package/actions/parsers/index.ts +1 -4
- package/actions/schemas/action.ts +1 -9
- package/actions/schemas/borrow/index.ts +0 -4
- package/actions/schemas/default/unions.ts +0 -2
- package/actions/schemas/index.ts +1 -6
- package/actions/types/index.ts +0 -4
- package/actions/utils.ts +0 -62
- package/index.ts +1 -4
- package/package.json +1 -1
- package/setAccountActionPrices.ts +123 -0
- package/_cjs/actions/parsers/borrow/borrowWithDebt.js +0 -23
- package/_cjs/actions/parsers/borrow/borrowWithDebt.js.map +0 -1
- package/_cjs/actions/schemas/borrow/borrowWithDebt.js +0 -36
- package/_cjs/actions/schemas/borrow/borrowWithDebt.js.map +0 -1
- package/_cjs/actions/types/borrowWithDebt.js +0 -3
- package/_cjs/actions/types/borrowWithDebt.js.map +0 -1
- package/_esm/actions/parsers/borrow/borrowWithDebt.js +0 -19
- package/_esm/actions/parsers/borrow/borrowWithDebt.js.map +0 -1
- package/_esm/actions/schemas/borrow/borrowWithDebt.js +0 -33
- package/_esm/actions/schemas/borrow/borrowWithDebt.js.map +0 -1
- package/_esm/actions/types/borrowWithDebt.js +0 -2
- package/_esm/actions/types/borrowWithDebt.js.map +0 -1
- package/_types/actions/parsers/borrow/borrowWithDebt.d.ts +0 -4
- package/_types/actions/parsers/borrow/borrowWithDebt.d.ts.map +0 -1
- package/_types/actions/types/borrowWithDebt.d.ts +0 -5
- package/_types/actions/types/borrowWithDebt.d.ts.map +0 -1
- package/actions/parsers/borrow/borrowWithDebt.ts +0 -47
- package/actions/schemas/borrow/borrowWithDebt.ts +0 -45
- package/actions/types/borrowWithDebt.ts +0 -13
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod'
|
|
2
|
-
import {
|
|
3
|
-
loanAccountActionDefaultSchema,
|
|
4
|
-
loanNormalActionDefaultSchema,
|
|
5
|
-
transferCryptoCurrencyInSchema,
|
|
6
|
-
transferCryptoCurrencyOutSchema,
|
|
7
|
-
transferNftInSchema,
|
|
8
|
-
transferNftOutSchema,
|
|
9
|
-
} from '../default'
|
|
10
|
-
|
|
11
|
-
export const normalActionBorrowWithDebtSchema = loanNormalActionDefaultSchema
|
|
12
|
-
.extend({
|
|
13
|
-
action: z.literal('borrow-with-debt'),
|
|
14
|
-
transfers: z.array(
|
|
15
|
-
z.union([
|
|
16
|
-
transferCryptoCurrencyInSchema,
|
|
17
|
-
transferNftInSchema,
|
|
18
|
-
transferCryptoCurrencyOutSchema,
|
|
19
|
-
transferNftOutSchema,
|
|
20
|
-
]),
|
|
21
|
-
),
|
|
22
|
-
})
|
|
23
|
-
.transform((v) => ({
|
|
24
|
-
...v,
|
|
25
|
-
comment: v.comment,
|
|
26
|
-
app: v.app,
|
|
27
|
-
}))
|
|
28
|
-
|
|
29
|
-
export const accountActionBorrowWithDebtSchema = loanAccountActionDefaultSchema
|
|
30
|
-
.extend({
|
|
31
|
-
action: z.literal('borrow-with-debt'),
|
|
32
|
-
transfers: z.array(
|
|
33
|
-
z.union([
|
|
34
|
-
transferCryptoCurrencyInSchema,
|
|
35
|
-
transferNftInSchema,
|
|
36
|
-
transferCryptoCurrencyOutSchema,
|
|
37
|
-
transferNftOutSchema,
|
|
38
|
-
]),
|
|
39
|
-
),
|
|
40
|
-
})
|
|
41
|
-
.transform((v) => ({
|
|
42
|
-
...v,
|
|
43
|
-
comment: v.comment,
|
|
44
|
-
app: v.app,
|
|
45
|
-
}))
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { z } from 'zod'
|
|
2
|
-
import type {
|
|
3
|
-
accountActionBorrowWithDebtSchema,
|
|
4
|
-
normalActionBorrowWithDebtSchema,
|
|
5
|
-
} from '../schemas'
|
|
6
|
-
|
|
7
|
-
export type NormalActionBorrowWithDebt = z.infer<
|
|
8
|
-
typeof normalActionBorrowWithDebtSchema
|
|
9
|
-
>
|
|
10
|
-
|
|
11
|
-
export type AccountActionBorrowWithDebt = z.infer<
|
|
12
|
-
typeof accountActionBorrowWithDebtSchema
|
|
13
|
-
>
|