@0xtorch/core 0.0.14 → 0.0.16
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 -1
- package/_cjs/actions/index.js.map +1 -1
- package/_cjs/actions/schemas/crossActionBundle.js +8 -2
- package/_cjs/actions/schemas/crossActionBundle.js.map +1 -1
- package/_cjs/actions/utils.js +1318 -1
- package/_cjs/actions/utils.js.map +1 -1
- package/_cjs/index.js +3 -1
- package/_cjs/index.js.map +1 -1
- package/_esm/actions/index.js +1 -1
- package/_esm/actions/index.js.map +1 -1
- package/_esm/actions/schemas/crossActionBundle.js +8 -2
- package/_esm/actions/schemas/crossActionBundle.js.map +1 -1
- package/_esm/actions/utils.js +1389 -0
- package/_esm/actions/utils.js.map +1 -1
- package/_esm/index.js +1 -1
- package/_esm/index.js.map +1 -1
- package/_types/actions/index.d.ts +2 -2
- package/_types/actions/index.d.ts.map +1 -1
- package/_types/actions/parsers/default.d.ts +1 -1
- package/_types/actions/schemas/action.d.ts +950 -950
- package/_types/actions/schemas/borrow/borrow.d.ts +16 -16
- package/_types/actions/schemas/borrow/borrowWithDebt.d.ts +16 -16
- package/_types/actions/schemas/crossActionBundle.d.ts +1578 -45107
- package/_types/actions/schemas/crossActionBundle.d.ts.map +1 -1
- package/_types/actions/schemas/crossReplace/bridgeFrom.d.ts +16 -16
- package/_types/actions/schemas/crossReplace/bridgeTo.d.ts +16 -16
- package/_types/actions/schemas/crossReplace/crossReplace.d.ts +16 -16
- package/_types/actions/schemas/crossTrade/crossTrade.d.ts +16 -16
- package/_types/actions/schemas/default/accountAction.d.ts +18 -18
- package/_types/actions/schemas/default/normalAction.d.ts +18 -18
- package/_types/actions/schemas/deposit/addLiquidity.d.ts +16 -16
- package/_types/actions/schemas/deposit/deposit.d.ts +16 -16
- package/_types/actions/schemas/deposit/depositWithBond.d.ts +16 -16
- package/_types/actions/schemas/deposit/stake.d.ts +16 -16
- package/_types/actions/schemas/fee/fee.d.ts +16 -16
- package/_types/actions/schemas/fee/transactionFee.d.ts +16 -16
- package/_types/actions/schemas/ignore/approve.d.ts +16 -16
- package/_types/actions/schemas/ignore/failTx.d.ts +16 -16
- package/_types/actions/schemas/ignore/ignore.d.ts +8 -8
- package/_types/actions/schemas/ignore/move.d.ts +8 -8
- package/_types/actions/schemas/ignore/receiveFromCex.d.ts +16 -16
- package/_types/actions/schemas/ignore/revoke.d.ts +16 -16
- package/_types/actions/schemas/ignore/sendToCex.d.ts +16 -16
- package/_types/actions/schemas/ignore/spam.d.ts +16 -16
- package/_types/actions/schemas/income/atomicArbitrage.d.ts +16 -16
- package/_types/actions/schemas/income/freeMintNft.d.ts +16 -16
- package/_types/actions/schemas/income/income.d.ts +16 -16
- package/_types/actions/schemas/income/nftRoyalty.d.ts +8 -8
- package/_types/actions/schemas/income/swapIncome.d.ts +8 -8
- package/_types/actions/schemas/reduce/reduce.d.ts +8 -8
- package/_types/actions/schemas/repayment/repayment.d.ts +16 -16
- package/_types/actions/schemas/repayment/repaymentWithDebt.d.ts +16 -16
- package/_types/actions/schemas/replace/replace.d.ts +16 -16
- package/_types/actions/schemas/replace/swapNft.d.ts +16 -16
- package/_types/actions/schemas/replace/unwrap.d.ts +16 -16
- package/_types/actions/schemas/replace/wrap.d.ts +16 -16
- package/_types/actions/schemas/trade/buyCrypto.d.ts +16 -16
- package/_types/actions/schemas/trade/buyNft.d.ts +16 -16
- package/_types/actions/schemas/trade/mintNft.d.ts +16 -16
- package/_types/actions/schemas/trade/sellCrypto.d.ts +16 -16
- package/_types/actions/schemas/trade/sellNft.d.ts +16 -16
- package/_types/actions/schemas/trade/trade.d.ts +16 -16
- package/_types/actions/schemas/transfer/swapTransfer.d.ts +8 -8
- package/_types/actions/schemas/transfer/transfer.d.ts +16 -16
- package/_types/actions/schemas/valuedown/valuedown.d.ts +16 -16
- package/_types/actions/schemas/valueup/valueup.d.ts +16 -16
- package/_types/actions/schemas/withdraw/removeLiquidity.d.ts +16 -16
- package/_types/actions/schemas/withdraw/unstake.d.ts +16 -16
- package/_types/actions/schemas/withdraw/withdraw.d.ts +16 -16
- package/_types/actions/schemas/withdraw/withdrawWithBond.d.ts +16 -16
- package/_types/actions/types/action.d.ts +17 -1
- package/_types/actions/types/action.d.ts.map +1 -1
- package/_types/actions/types/index.d.ts +1 -1
- package/_types/actions/types/index.d.ts.map +1 -1
- package/_types/actions/utils.d.ts +3 -0
- package/_types/actions/utils.d.ts.map +1 -1
- package/_types/apps/schemas.d.ts +4 -4
- package/_types/index.d.ts +2 -2
- package/_types/index.d.ts.map +1 -1
- package/actions/index.ts +4 -0
- package/actions/schemas/crossActionBundle.ts +14 -2
- package/actions/types/action.ts +26 -1
- package/actions/types/index.ts +2 -0
- package/actions/utils.ts +1951 -0
- package/index.ts +4 -0
- package/package.json +1 -1
|
@@ -13,15 +13,15 @@ export declare const normalActionUnstakeSchema: z.ZodEffects<z.ZodObject<{
|
|
|
13
13
|
icon: z.ZodOptional<z.ZodString>;
|
|
14
14
|
}, "strip", z.ZodTypeAny, {
|
|
15
15
|
id: string;
|
|
16
|
-
categories: ("bridge" | "cex" | "cross-chain" | "dex" | "gaming" | "lending" | "nft-marketplace" | "other")[];
|
|
17
16
|
name: string;
|
|
17
|
+
categories: ("bridge" | "cex" | "cross-chain" | "dex" | "gaming" | "lending" | "nft-marketplace" | "other")[];
|
|
18
18
|
description?: string | undefined;
|
|
19
19
|
website?: string | undefined;
|
|
20
20
|
icon?: string | undefined;
|
|
21
21
|
}, {
|
|
22
22
|
id: string;
|
|
23
|
-
categories: ("bridge" | "cex" | "cross-chain" | "dex" | "gaming" | "lending" | "nft-marketplace" | "other")[];
|
|
24
23
|
name: string;
|
|
24
|
+
categories: ("bridge" | "cex" | "cross-chain" | "dex" | "gaming" | "lending" | "nft-marketplace" | "other")[];
|
|
25
25
|
description?: string | undefined;
|
|
26
26
|
website?: string | undefined;
|
|
27
27
|
icon?: string | undefined;
|
|
@@ -30,12 +30,12 @@ export declare const normalActionUnstakeSchema: z.ZodEffects<z.ZodObject<{
|
|
|
30
30
|
website: string | undefined;
|
|
31
31
|
icon: string | undefined;
|
|
32
32
|
id: string;
|
|
33
|
-
categories: ("bridge" | "cex" | "cross-chain" | "dex" | "gaming" | "lending" | "nft-marketplace" | "other")[];
|
|
34
33
|
name: string;
|
|
34
|
+
categories: ("bridge" | "cex" | "cross-chain" | "dex" | "gaming" | "lending" | "nft-marketplace" | "other")[];
|
|
35
35
|
}, {
|
|
36
36
|
id: string;
|
|
37
|
-
categories: ("bridge" | "cex" | "cross-chain" | "dex" | "gaming" | "lending" | "nft-marketplace" | "other")[];
|
|
38
37
|
name: string;
|
|
38
|
+
categories: ("bridge" | "cex" | "cross-chain" | "dex" | "gaming" | "lending" | "nft-marketplace" | "other")[];
|
|
39
39
|
description?: string | undefined;
|
|
40
40
|
website?: string | undefined;
|
|
41
41
|
icon?: string | undefined;
|
|
@@ -522,8 +522,8 @@ export declare const normalActionUnstakeSchema: z.ZodEffects<z.ZodObject<{
|
|
|
522
522
|
website: string | undefined;
|
|
523
523
|
icon: string | undefined;
|
|
524
524
|
id: string;
|
|
525
|
-
categories: ("bridge" | "cex" | "cross-chain" | "dex" | "gaming" | "lending" | "nft-marketplace" | "other")[];
|
|
526
525
|
name: string;
|
|
526
|
+
categories: ("bridge" | "cex" | "cross-chain" | "dex" | "gaming" | "lending" | "nft-marketplace" | "other")[];
|
|
527
527
|
} | undefined;
|
|
528
528
|
}, {
|
|
529
529
|
type: "LoanNormalAction";
|
|
@@ -588,8 +588,8 @@ export declare const normalActionUnstakeSchema: z.ZodEffects<z.ZodObject<{
|
|
|
588
588
|
comment?: string | undefined;
|
|
589
589
|
app?: {
|
|
590
590
|
id: string;
|
|
591
|
-
categories: ("bridge" | "cex" | "cross-chain" | "dex" | "gaming" | "lending" | "nft-marketplace" | "other")[];
|
|
592
591
|
name: string;
|
|
592
|
+
categories: ("bridge" | "cex" | "cross-chain" | "dex" | "gaming" | "lending" | "nft-marketplace" | "other")[];
|
|
593
593
|
description?: string | undefined;
|
|
594
594
|
website?: string | undefined;
|
|
595
595
|
icon?: string | undefined;
|
|
@@ -601,8 +601,8 @@ export declare const normalActionUnstakeSchema: z.ZodEffects<z.ZodObject<{
|
|
|
601
601
|
website: string | undefined;
|
|
602
602
|
icon: string | undefined;
|
|
603
603
|
id: string;
|
|
604
|
-
categories: ("bridge" | "cex" | "cross-chain" | "dex" | "gaming" | "lending" | "nft-marketplace" | "other")[];
|
|
605
604
|
name: string;
|
|
605
|
+
categories: ("bridge" | "cex" | "cross-chain" | "dex" | "gaming" | "lending" | "nft-marketplace" | "other")[];
|
|
606
606
|
} | undefined;
|
|
607
607
|
type: "LoanNormalAction";
|
|
608
608
|
timestamp: number;
|
|
@@ -726,8 +726,8 @@ export declare const normalActionUnstakeSchema: z.ZodEffects<z.ZodObject<{
|
|
|
726
726
|
comment?: string | undefined;
|
|
727
727
|
app?: {
|
|
728
728
|
id: string;
|
|
729
|
-
categories: ("bridge" | "cex" | "cross-chain" | "dex" | "gaming" | "lending" | "nft-marketplace" | "other")[];
|
|
730
729
|
name: string;
|
|
730
|
+
categories: ("bridge" | "cex" | "cross-chain" | "dex" | "gaming" | "lending" | "nft-marketplace" | "other")[];
|
|
731
731
|
description?: string | undefined;
|
|
732
732
|
website?: string | undefined;
|
|
733
733
|
icon?: string | undefined;
|
|
@@ -749,15 +749,15 @@ export declare const accountActionUnstakeSchema: z.ZodEffects<z.ZodObject<{
|
|
|
749
749
|
icon: z.ZodOptional<z.ZodString>;
|
|
750
750
|
}, "strip", z.ZodTypeAny, {
|
|
751
751
|
id: string;
|
|
752
|
-
categories: ("bridge" | "cex" | "cross-chain" | "dex" | "gaming" | "lending" | "nft-marketplace" | "other")[];
|
|
753
752
|
name: string;
|
|
753
|
+
categories: ("bridge" | "cex" | "cross-chain" | "dex" | "gaming" | "lending" | "nft-marketplace" | "other")[];
|
|
754
754
|
description?: string | undefined;
|
|
755
755
|
website?: string | undefined;
|
|
756
756
|
icon?: string | undefined;
|
|
757
757
|
}, {
|
|
758
758
|
id: string;
|
|
759
|
-
categories: ("bridge" | "cex" | "cross-chain" | "dex" | "gaming" | "lending" | "nft-marketplace" | "other")[];
|
|
760
759
|
name: string;
|
|
760
|
+
categories: ("bridge" | "cex" | "cross-chain" | "dex" | "gaming" | "lending" | "nft-marketplace" | "other")[];
|
|
761
761
|
description?: string | undefined;
|
|
762
762
|
website?: string | undefined;
|
|
763
763
|
icon?: string | undefined;
|
|
@@ -766,12 +766,12 @@ export declare const accountActionUnstakeSchema: z.ZodEffects<z.ZodObject<{
|
|
|
766
766
|
website: string | undefined;
|
|
767
767
|
icon: string | undefined;
|
|
768
768
|
id: string;
|
|
769
|
-
categories: ("bridge" | "cex" | "cross-chain" | "dex" | "gaming" | "lending" | "nft-marketplace" | "other")[];
|
|
770
769
|
name: string;
|
|
770
|
+
categories: ("bridge" | "cex" | "cross-chain" | "dex" | "gaming" | "lending" | "nft-marketplace" | "other")[];
|
|
771
771
|
}, {
|
|
772
772
|
id: string;
|
|
773
|
-
categories: ("bridge" | "cex" | "cross-chain" | "dex" | "gaming" | "lending" | "nft-marketplace" | "other")[];
|
|
774
773
|
name: string;
|
|
774
|
+
categories: ("bridge" | "cex" | "cross-chain" | "dex" | "gaming" | "lending" | "nft-marketplace" | "other")[];
|
|
775
775
|
description?: string | undefined;
|
|
776
776
|
website?: string | undefined;
|
|
777
777
|
icon?: string | undefined;
|
|
@@ -1260,8 +1260,8 @@ export declare const accountActionUnstakeSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1260
1260
|
website: string | undefined;
|
|
1261
1261
|
icon: string | undefined;
|
|
1262
1262
|
id: string;
|
|
1263
|
-
categories: ("bridge" | "cex" | "cross-chain" | "dex" | "gaming" | "lending" | "nft-marketplace" | "other")[];
|
|
1264
1263
|
name: string;
|
|
1264
|
+
categories: ("bridge" | "cex" | "cross-chain" | "dex" | "gaming" | "lending" | "nft-marketplace" | "other")[];
|
|
1265
1265
|
} | undefined;
|
|
1266
1266
|
}, {
|
|
1267
1267
|
type: "LoanAccountAction";
|
|
@@ -1328,8 +1328,8 @@ export declare const accountActionUnstakeSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1328
1328
|
comment?: string | undefined;
|
|
1329
1329
|
app?: {
|
|
1330
1330
|
id: string;
|
|
1331
|
-
categories: ("bridge" | "cex" | "cross-chain" | "dex" | "gaming" | "lending" | "nft-marketplace" | "other")[];
|
|
1332
1331
|
name: string;
|
|
1332
|
+
categories: ("bridge" | "cex" | "cross-chain" | "dex" | "gaming" | "lending" | "nft-marketplace" | "other")[];
|
|
1333
1333
|
description?: string | undefined;
|
|
1334
1334
|
website?: string | undefined;
|
|
1335
1335
|
icon?: string | undefined;
|
|
@@ -1341,8 +1341,8 @@ export declare const accountActionUnstakeSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1341
1341
|
website: string | undefined;
|
|
1342
1342
|
icon: string | undefined;
|
|
1343
1343
|
id: string;
|
|
1344
|
-
categories: ("bridge" | "cex" | "cross-chain" | "dex" | "gaming" | "lending" | "nft-marketplace" | "other")[];
|
|
1345
1344
|
name: string;
|
|
1345
|
+
categories: ("bridge" | "cex" | "cross-chain" | "dex" | "gaming" | "lending" | "nft-marketplace" | "other")[];
|
|
1346
1346
|
} | undefined;
|
|
1347
1347
|
type: "LoanAccountAction";
|
|
1348
1348
|
timestamp: number;
|
|
@@ -1470,8 +1470,8 @@ export declare const accountActionUnstakeSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1470
1470
|
comment?: string | undefined;
|
|
1471
1471
|
app?: {
|
|
1472
1472
|
id: string;
|
|
1473
|
-
categories: ("bridge" | "cex" | "cross-chain" | "dex" | "gaming" | "lending" | "nft-marketplace" | "other")[];
|
|
1474
1473
|
name: string;
|
|
1474
|
+
categories: ("bridge" | "cex" | "cross-chain" | "dex" | "gaming" | "lending" | "nft-marketplace" | "other")[];
|
|
1475
1475
|
description?: string | undefined;
|
|
1476
1476
|
website?: string | undefined;
|
|
1477
1477
|
icon?: string | undefined;
|
|
@@ -13,15 +13,15 @@ export declare const normalActionWithdrawSchema: z.ZodEffects<z.ZodObject<{
|
|
|
13
13
|
icon: z.ZodOptional<z.ZodString>;
|
|
14
14
|
}, "strip", z.ZodTypeAny, {
|
|
15
15
|
id: string;
|
|
16
|
-
categories: ("bridge" | "cex" | "cross-chain" | "dex" | "gaming" | "lending" | "nft-marketplace" | "other")[];
|
|
17
16
|
name: string;
|
|
17
|
+
categories: ("bridge" | "cex" | "cross-chain" | "dex" | "gaming" | "lending" | "nft-marketplace" | "other")[];
|
|
18
18
|
description?: string | undefined;
|
|
19
19
|
website?: string | undefined;
|
|
20
20
|
icon?: string | undefined;
|
|
21
21
|
}, {
|
|
22
22
|
id: string;
|
|
23
|
-
categories: ("bridge" | "cex" | "cross-chain" | "dex" | "gaming" | "lending" | "nft-marketplace" | "other")[];
|
|
24
23
|
name: string;
|
|
24
|
+
categories: ("bridge" | "cex" | "cross-chain" | "dex" | "gaming" | "lending" | "nft-marketplace" | "other")[];
|
|
25
25
|
description?: string | undefined;
|
|
26
26
|
website?: string | undefined;
|
|
27
27
|
icon?: string | undefined;
|
|
@@ -30,12 +30,12 @@ export declare const normalActionWithdrawSchema: z.ZodEffects<z.ZodObject<{
|
|
|
30
30
|
website: string | undefined;
|
|
31
31
|
icon: string | undefined;
|
|
32
32
|
id: string;
|
|
33
|
-
categories: ("bridge" | "cex" | "cross-chain" | "dex" | "gaming" | "lending" | "nft-marketplace" | "other")[];
|
|
34
33
|
name: string;
|
|
34
|
+
categories: ("bridge" | "cex" | "cross-chain" | "dex" | "gaming" | "lending" | "nft-marketplace" | "other")[];
|
|
35
35
|
}, {
|
|
36
36
|
id: string;
|
|
37
|
-
categories: ("bridge" | "cex" | "cross-chain" | "dex" | "gaming" | "lending" | "nft-marketplace" | "other")[];
|
|
38
37
|
name: string;
|
|
38
|
+
categories: ("bridge" | "cex" | "cross-chain" | "dex" | "gaming" | "lending" | "nft-marketplace" | "other")[];
|
|
39
39
|
description?: string | undefined;
|
|
40
40
|
website?: string | undefined;
|
|
41
41
|
icon?: string | undefined;
|
|
@@ -522,8 +522,8 @@ export declare const normalActionWithdrawSchema: z.ZodEffects<z.ZodObject<{
|
|
|
522
522
|
website: string | undefined;
|
|
523
523
|
icon: string | undefined;
|
|
524
524
|
id: string;
|
|
525
|
-
categories: ("bridge" | "cex" | "cross-chain" | "dex" | "gaming" | "lending" | "nft-marketplace" | "other")[];
|
|
526
525
|
name: string;
|
|
526
|
+
categories: ("bridge" | "cex" | "cross-chain" | "dex" | "gaming" | "lending" | "nft-marketplace" | "other")[];
|
|
527
527
|
} | undefined;
|
|
528
528
|
}, {
|
|
529
529
|
type: "LoanNormalAction";
|
|
@@ -588,8 +588,8 @@ export declare const normalActionWithdrawSchema: z.ZodEffects<z.ZodObject<{
|
|
|
588
588
|
comment?: string | undefined;
|
|
589
589
|
app?: {
|
|
590
590
|
id: string;
|
|
591
|
-
categories: ("bridge" | "cex" | "cross-chain" | "dex" | "gaming" | "lending" | "nft-marketplace" | "other")[];
|
|
592
591
|
name: string;
|
|
592
|
+
categories: ("bridge" | "cex" | "cross-chain" | "dex" | "gaming" | "lending" | "nft-marketplace" | "other")[];
|
|
593
593
|
description?: string | undefined;
|
|
594
594
|
website?: string | undefined;
|
|
595
595
|
icon?: string | undefined;
|
|
@@ -601,8 +601,8 @@ export declare const normalActionWithdrawSchema: z.ZodEffects<z.ZodObject<{
|
|
|
601
601
|
website: string | undefined;
|
|
602
602
|
icon: string | undefined;
|
|
603
603
|
id: string;
|
|
604
|
-
categories: ("bridge" | "cex" | "cross-chain" | "dex" | "gaming" | "lending" | "nft-marketplace" | "other")[];
|
|
605
604
|
name: string;
|
|
605
|
+
categories: ("bridge" | "cex" | "cross-chain" | "dex" | "gaming" | "lending" | "nft-marketplace" | "other")[];
|
|
606
606
|
} | undefined;
|
|
607
607
|
type: "LoanNormalAction";
|
|
608
608
|
timestamp: number;
|
|
@@ -726,8 +726,8 @@ export declare const normalActionWithdrawSchema: z.ZodEffects<z.ZodObject<{
|
|
|
726
726
|
comment?: string | undefined;
|
|
727
727
|
app?: {
|
|
728
728
|
id: string;
|
|
729
|
-
categories: ("bridge" | "cex" | "cross-chain" | "dex" | "gaming" | "lending" | "nft-marketplace" | "other")[];
|
|
730
729
|
name: string;
|
|
730
|
+
categories: ("bridge" | "cex" | "cross-chain" | "dex" | "gaming" | "lending" | "nft-marketplace" | "other")[];
|
|
731
731
|
description?: string | undefined;
|
|
732
732
|
website?: string | undefined;
|
|
733
733
|
icon?: string | undefined;
|
|
@@ -749,15 +749,15 @@ export declare const accountActionWithdrawSchema: z.ZodEffects<z.ZodObject<{
|
|
|
749
749
|
icon: z.ZodOptional<z.ZodString>;
|
|
750
750
|
}, "strip", z.ZodTypeAny, {
|
|
751
751
|
id: string;
|
|
752
|
-
categories: ("bridge" | "cex" | "cross-chain" | "dex" | "gaming" | "lending" | "nft-marketplace" | "other")[];
|
|
753
752
|
name: string;
|
|
753
|
+
categories: ("bridge" | "cex" | "cross-chain" | "dex" | "gaming" | "lending" | "nft-marketplace" | "other")[];
|
|
754
754
|
description?: string | undefined;
|
|
755
755
|
website?: string | undefined;
|
|
756
756
|
icon?: string | undefined;
|
|
757
757
|
}, {
|
|
758
758
|
id: string;
|
|
759
|
-
categories: ("bridge" | "cex" | "cross-chain" | "dex" | "gaming" | "lending" | "nft-marketplace" | "other")[];
|
|
760
759
|
name: string;
|
|
760
|
+
categories: ("bridge" | "cex" | "cross-chain" | "dex" | "gaming" | "lending" | "nft-marketplace" | "other")[];
|
|
761
761
|
description?: string | undefined;
|
|
762
762
|
website?: string | undefined;
|
|
763
763
|
icon?: string | undefined;
|
|
@@ -766,12 +766,12 @@ export declare const accountActionWithdrawSchema: z.ZodEffects<z.ZodObject<{
|
|
|
766
766
|
website: string | undefined;
|
|
767
767
|
icon: string | undefined;
|
|
768
768
|
id: string;
|
|
769
|
-
categories: ("bridge" | "cex" | "cross-chain" | "dex" | "gaming" | "lending" | "nft-marketplace" | "other")[];
|
|
770
769
|
name: string;
|
|
770
|
+
categories: ("bridge" | "cex" | "cross-chain" | "dex" | "gaming" | "lending" | "nft-marketplace" | "other")[];
|
|
771
771
|
}, {
|
|
772
772
|
id: string;
|
|
773
|
-
categories: ("bridge" | "cex" | "cross-chain" | "dex" | "gaming" | "lending" | "nft-marketplace" | "other")[];
|
|
774
773
|
name: string;
|
|
774
|
+
categories: ("bridge" | "cex" | "cross-chain" | "dex" | "gaming" | "lending" | "nft-marketplace" | "other")[];
|
|
775
775
|
description?: string | undefined;
|
|
776
776
|
website?: string | undefined;
|
|
777
777
|
icon?: string | undefined;
|
|
@@ -1260,8 +1260,8 @@ export declare const accountActionWithdrawSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1260
1260
|
website: string | undefined;
|
|
1261
1261
|
icon: string | undefined;
|
|
1262
1262
|
id: string;
|
|
1263
|
-
categories: ("bridge" | "cex" | "cross-chain" | "dex" | "gaming" | "lending" | "nft-marketplace" | "other")[];
|
|
1264
1263
|
name: string;
|
|
1264
|
+
categories: ("bridge" | "cex" | "cross-chain" | "dex" | "gaming" | "lending" | "nft-marketplace" | "other")[];
|
|
1265
1265
|
} | undefined;
|
|
1266
1266
|
}, {
|
|
1267
1267
|
type: "LoanAccountAction";
|
|
@@ -1328,8 +1328,8 @@ export declare const accountActionWithdrawSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1328
1328
|
comment?: string | undefined;
|
|
1329
1329
|
app?: {
|
|
1330
1330
|
id: string;
|
|
1331
|
-
categories: ("bridge" | "cex" | "cross-chain" | "dex" | "gaming" | "lending" | "nft-marketplace" | "other")[];
|
|
1332
1331
|
name: string;
|
|
1332
|
+
categories: ("bridge" | "cex" | "cross-chain" | "dex" | "gaming" | "lending" | "nft-marketplace" | "other")[];
|
|
1333
1333
|
description?: string | undefined;
|
|
1334
1334
|
website?: string | undefined;
|
|
1335
1335
|
icon?: string | undefined;
|
|
@@ -1341,8 +1341,8 @@ export declare const accountActionWithdrawSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1341
1341
|
website: string | undefined;
|
|
1342
1342
|
icon: string | undefined;
|
|
1343
1343
|
id: string;
|
|
1344
|
-
categories: ("bridge" | "cex" | "cross-chain" | "dex" | "gaming" | "lending" | "nft-marketplace" | "other")[];
|
|
1345
1344
|
name: string;
|
|
1345
|
+
categories: ("bridge" | "cex" | "cross-chain" | "dex" | "gaming" | "lending" | "nft-marketplace" | "other")[];
|
|
1346
1346
|
} | undefined;
|
|
1347
1347
|
type: "LoanAccountAction";
|
|
1348
1348
|
timestamp: number;
|
|
@@ -1470,8 +1470,8 @@ export declare const accountActionWithdrawSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1470
1470
|
comment?: string | undefined;
|
|
1471
1471
|
app?: {
|
|
1472
1472
|
id: string;
|
|
1473
|
-
categories: ("bridge" | "cex" | "cross-chain" | "dex" | "gaming" | "lending" | "nft-marketplace" | "other")[];
|
|
1474
1473
|
name: string;
|
|
1474
|
+
categories: ("bridge" | "cex" | "cross-chain" | "dex" | "gaming" | "lending" | "nft-marketplace" | "other")[];
|
|
1475
1475
|
description?: string | undefined;
|
|
1476
1476
|
website?: string | undefined;
|
|
1477
1477
|
icon?: string | undefined;
|
|
@@ -13,15 +13,15 @@ export declare const normalActionWithdrawWithBondSchema: z.ZodEffects<z.ZodObjec
|
|
|
13
13
|
icon: z.ZodOptional<z.ZodString>;
|
|
14
14
|
}, "strip", z.ZodTypeAny, {
|
|
15
15
|
id: string;
|
|
16
|
-
categories: ("bridge" | "cex" | "cross-chain" | "dex" | "gaming" | "lending" | "nft-marketplace" | "other")[];
|
|
17
16
|
name: string;
|
|
17
|
+
categories: ("bridge" | "cex" | "cross-chain" | "dex" | "gaming" | "lending" | "nft-marketplace" | "other")[];
|
|
18
18
|
description?: string | undefined;
|
|
19
19
|
website?: string | undefined;
|
|
20
20
|
icon?: string | undefined;
|
|
21
21
|
}, {
|
|
22
22
|
id: string;
|
|
23
|
-
categories: ("bridge" | "cex" | "cross-chain" | "dex" | "gaming" | "lending" | "nft-marketplace" | "other")[];
|
|
24
23
|
name: string;
|
|
24
|
+
categories: ("bridge" | "cex" | "cross-chain" | "dex" | "gaming" | "lending" | "nft-marketplace" | "other")[];
|
|
25
25
|
description?: string | undefined;
|
|
26
26
|
website?: string | undefined;
|
|
27
27
|
icon?: string | undefined;
|
|
@@ -30,12 +30,12 @@ export declare const normalActionWithdrawWithBondSchema: z.ZodEffects<z.ZodObjec
|
|
|
30
30
|
website: string | undefined;
|
|
31
31
|
icon: string | undefined;
|
|
32
32
|
id: string;
|
|
33
|
-
categories: ("bridge" | "cex" | "cross-chain" | "dex" | "gaming" | "lending" | "nft-marketplace" | "other")[];
|
|
34
33
|
name: string;
|
|
34
|
+
categories: ("bridge" | "cex" | "cross-chain" | "dex" | "gaming" | "lending" | "nft-marketplace" | "other")[];
|
|
35
35
|
}, {
|
|
36
36
|
id: string;
|
|
37
|
-
categories: ("bridge" | "cex" | "cross-chain" | "dex" | "gaming" | "lending" | "nft-marketplace" | "other")[];
|
|
38
37
|
name: string;
|
|
38
|
+
categories: ("bridge" | "cex" | "cross-chain" | "dex" | "gaming" | "lending" | "nft-marketplace" | "other")[];
|
|
39
39
|
description?: string | undefined;
|
|
40
40
|
website?: string | undefined;
|
|
41
41
|
icon?: string | undefined;
|
|
@@ -988,8 +988,8 @@ export declare const normalActionWithdrawWithBondSchema: z.ZodEffects<z.ZodObjec
|
|
|
988
988
|
website: string | undefined;
|
|
989
989
|
icon: string | undefined;
|
|
990
990
|
id: string;
|
|
991
|
-
categories: ("bridge" | "cex" | "cross-chain" | "dex" | "gaming" | "lending" | "nft-marketplace" | "other")[];
|
|
992
991
|
name: string;
|
|
992
|
+
categories: ("bridge" | "cex" | "cross-chain" | "dex" | "gaming" | "lending" | "nft-marketplace" | "other")[];
|
|
993
993
|
} | undefined;
|
|
994
994
|
}, {
|
|
995
995
|
type: "LoanNormalAction";
|
|
@@ -1107,8 +1107,8 @@ export declare const normalActionWithdrawWithBondSchema: z.ZodEffects<z.ZodObjec
|
|
|
1107
1107
|
comment?: string | undefined;
|
|
1108
1108
|
app?: {
|
|
1109
1109
|
id: string;
|
|
1110
|
-
categories: ("bridge" | "cex" | "cross-chain" | "dex" | "gaming" | "lending" | "nft-marketplace" | "other")[];
|
|
1111
1110
|
name: string;
|
|
1111
|
+
categories: ("bridge" | "cex" | "cross-chain" | "dex" | "gaming" | "lending" | "nft-marketplace" | "other")[];
|
|
1112
1112
|
description?: string | undefined;
|
|
1113
1113
|
website?: string | undefined;
|
|
1114
1114
|
icon?: string | undefined;
|
|
@@ -1120,8 +1120,8 @@ export declare const normalActionWithdrawWithBondSchema: z.ZodEffects<z.ZodObjec
|
|
|
1120
1120
|
website: string | undefined;
|
|
1121
1121
|
icon: string | undefined;
|
|
1122
1122
|
id: string;
|
|
1123
|
-
categories: ("bridge" | "cex" | "cross-chain" | "dex" | "gaming" | "lending" | "nft-marketplace" | "other")[];
|
|
1124
1123
|
name: string;
|
|
1124
|
+
categories: ("bridge" | "cex" | "cross-chain" | "dex" | "gaming" | "lending" | "nft-marketplace" | "other")[];
|
|
1125
1125
|
} | undefined;
|
|
1126
1126
|
type: "LoanNormalAction";
|
|
1127
1127
|
timestamp: number;
|
|
@@ -1351,8 +1351,8 @@ export declare const normalActionWithdrawWithBondSchema: z.ZodEffects<z.ZodObjec
|
|
|
1351
1351
|
comment?: string | undefined;
|
|
1352
1352
|
app?: {
|
|
1353
1353
|
id: string;
|
|
1354
|
-
categories: ("bridge" | "cex" | "cross-chain" | "dex" | "gaming" | "lending" | "nft-marketplace" | "other")[];
|
|
1355
1354
|
name: string;
|
|
1355
|
+
categories: ("bridge" | "cex" | "cross-chain" | "dex" | "gaming" | "lending" | "nft-marketplace" | "other")[];
|
|
1356
1356
|
description?: string | undefined;
|
|
1357
1357
|
website?: string | undefined;
|
|
1358
1358
|
icon?: string | undefined;
|
|
@@ -1374,15 +1374,15 @@ export declare const accountActionWithdrawWithBondSchema: z.ZodEffects<z.ZodObje
|
|
|
1374
1374
|
icon: z.ZodOptional<z.ZodString>;
|
|
1375
1375
|
}, "strip", z.ZodTypeAny, {
|
|
1376
1376
|
id: string;
|
|
1377
|
-
categories: ("bridge" | "cex" | "cross-chain" | "dex" | "gaming" | "lending" | "nft-marketplace" | "other")[];
|
|
1378
1377
|
name: string;
|
|
1378
|
+
categories: ("bridge" | "cex" | "cross-chain" | "dex" | "gaming" | "lending" | "nft-marketplace" | "other")[];
|
|
1379
1379
|
description?: string | undefined;
|
|
1380
1380
|
website?: string | undefined;
|
|
1381
1381
|
icon?: string | undefined;
|
|
1382
1382
|
}, {
|
|
1383
1383
|
id: string;
|
|
1384
|
-
categories: ("bridge" | "cex" | "cross-chain" | "dex" | "gaming" | "lending" | "nft-marketplace" | "other")[];
|
|
1385
1384
|
name: string;
|
|
1385
|
+
categories: ("bridge" | "cex" | "cross-chain" | "dex" | "gaming" | "lending" | "nft-marketplace" | "other")[];
|
|
1386
1386
|
description?: string | undefined;
|
|
1387
1387
|
website?: string | undefined;
|
|
1388
1388
|
icon?: string | undefined;
|
|
@@ -1391,12 +1391,12 @@ export declare const accountActionWithdrawWithBondSchema: z.ZodEffects<z.ZodObje
|
|
|
1391
1391
|
website: string | undefined;
|
|
1392
1392
|
icon: string | undefined;
|
|
1393
1393
|
id: string;
|
|
1394
|
-
categories: ("bridge" | "cex" | "cross-chain" | "dex" | "gaming" | "lending" | "nft-marketplace" | "other")[];
|
|
1395
1394
|
name: string;
|
|
1395
|
+
categories: ("bridge" | "cex" | "cross-chain" | "dex" | "gaming" | "lending" | "nft-marketplace" | "other")[];
|
|
1396
1396
|
}, {
|
|
1397
1397
|
id: string;
|
|
1398
|
-
categories: ("bridge" | "cex" | "cross-chain" | "dex" | "gaming" | "lending" | "nft-marketplace" | "other")[];
|
|
1399
1398
|
name: string;
|
|
1399
|
+
categories: ("bridge" | "cex" | "cross-chain" | "dex" | "gaming" | "lending" | "nft-marketplace" | "other")[];
|
|
1400
1400
|
description?: string | undefined;
|
|
1401
1401
|
website?: string | undefined;
|
|
1402
1402
|
icon?: string | undefined;
|
|
@@ -2351,8 +2351,8 @@ export declare const accountActionWithdrawWithBondSchema: z.ZodEffects<z.ZodObje
|
|
|
2351
2351
|
website: string | undefined;
|
|
2352
2352
|
icon: string | undefined;
|
|
2353
2353
|
id: string;
|
|
2354
|
-
categories: ("bridge" | "cex" | "cross-chain" | "dex" | "gaming" | "lending" | "nft-marketplace" | "other")[];
|
|
2355
2354
|
name: string;
|
|
2355
|
+
categories: ("bridge" | "cex" | "cross-chain" | "dex" | "gaming" | "lending" | "nft-marketplace" | "other")[];
|
|
2356
2356
|
} | undefined;
|
|
2357
2357
|
}, {
|
|
2358
2358
|
type: "LoanAccountAction";
|
|
@@ -2472,8 +2472,8 @@ export declare const accountActionWithdrawWithBondSchema: z.ZodEffects<z.ZodObje
|
|
|
2472
2472
|
comment?: string | undefined;
|
|
2473
2473
|
app?: {
|
|
2474
2474
|
id: string;
|
|
2475
|
-
categories: ("bridge" | "cex" | "cross-chain" | "dex" | "gaming" | "lending" | "nft-marketplace" | "other")[];
|
|
2476
2475
|
name: string;
|
|
2476
|
+
categories: ("bridge" | "cex" | "cross-chain" | "dex" | "gaming" | "lending" | "nft-marketplace" | "other")[];
|
|
2477
2477
|
description?: string | undefined;
|
|
2478
2478
|
website?: string | undefined;
|
|
2479
2479
|
icon?: string | undefined;
|
|
@@ -2485,8 +2485,8 @@ export declare const accountActionWithdrawWithBondSchema: z.ZodEffects<z.ZodObje
|
|
|
2485
2485
|
website: string | undefined;
|
|
2486
2486
|
icon: string | undefined;
|
|
2487
2487
|
id: string;
|
|
2488
|
-
categories: ("bridge" | "cex" | "cross-chain" | "dex" | "gaming" | "lending" | "nft-marketplace" | "other")[];
|
|
2489
2488
|
name: string;
|
|
2489
|
+
categories: ("bridge" | "cex" | "cross-chain" | "dex" | "gaming" | "lending" | "nft-marketplace" | "other")[];
|
|
2490
2490
|
} | undefined;
|
|
2491
2491
|
type: "LoanAccountAction";
|
|
2492
2492
|
timestamp: number;
|
|
@@ -2720,8 +2720,8 @@ export declare const accountActionWithdrawWithBondSchema: z.ZodEffects<z.ZodObje
|
|
|
2720
2720
|
comment?: string | undefined;
|
|
2721
2721
|
app?: {
|
|
2722
2722
|
id: string;
|
|
2723
|
-
categories: ("bridge" | "cex" | "cross-chain" | "dex" | "gaming" | "lending" | "nft-marketplace" | "other")[];
|
|
2724
2723
|
name: string;
|
|
2724
|
+
categories: ("bridge" | "cex" | "cross-chain" | "dex" | "gaming" | "lending" | "nft-marketplace" | "other")[];
|
|
2725
2725
|
description?: string | undefined;
|
|
2726
2726
|
website?: string | undefined;
|
|
2727
2727
|
icon?: string | undefined;
|
|
@@ -1,8 +1,24 @@
|
|
|
1
1
|
import type { z } from 'zod';
|
|
2
|
-
import type {
|
|
2
|
+
import type { Nft } from '../../assets';
|
|
3
|
+
import type { accountActionSchema, crossTypeSchema, normalActionSchema } from '../schemas';
|
|
4
|
+
import type { Transfer } from './default';
|
|
3
5
|
export type NormalAction = z.infer<typeof normalActionSchema>;
|
|
4
6
|
export type AccountAction = z.infer<typeof accountActionSchema>;
|
|
5
7
|
export type ActionType = NormalAction['action'];
|
|
6
8
|
export type AccountActionType = AccountAction['action'];
|
|
7
9
|
export type Evidence = AccountAction['evidence'];
|
|
10
|
+
export type BaseNormalAction = Omit<NormalAction, 'type' | 'loanId' | 'crossId' | 'crossType' | 'target' | 'transfers'> & {
|
|
11
|
+
loanId: string | undefined;
|
|
12
|
+
crossId: string | undefined;
|
|
13
|
+
crossType: z.infer<typeof crossTypeSchema> | undefined;
|
|
14
|
+
target: Nft | undefined;
|
|
15
|
+
transfers: readonly Transfer[];
|
|
16
|
+
};
|
|
17
|
+
export type BaseAccountAction = Omit<AccountAction, 'type' | 'transfers'> & {
|
|
18
|
+
loanId: string | undefined;
|
|
19
|
+
crossId: string | undefined;
|
|
20
|
+
crossType: z.infer<typeof crossTypeSchema> | undefined;
|
|
21
|
+
target: Nft | undefined;
|
|
22
|
+
transfers: readonly Transfer[];
|
|
23
|
+
};
|
|
8
24
|
//# sourceMappingURL=action.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action.d.ts","sourceRoot":"","sources":["../../../actions/types/action.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAC5B,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"action.d.ts","sourceRoot":"","sources":["../../../actions/types/action.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAC5B,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,cAAc,CAAA;AACvC,OAAO,KAAK,EACV,mBAAmB,EACnB,eAAe,EACf,kBAAkB,EACnB,MAAM,YAAY,CAAA;AACnB,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAA;AAEzC,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAA;AAE7D,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAA;AAE/D,MAAM,MAAM,UAAU,GAAG,YAAY,CAAC,QAAQ,CAAC,CAAA;AAE/C,MAAM,MAAM,iBAAiB,GAAG,aAAa,CAAC,QAAQ,CAAC,CAAA;AAEvD,MAAM,MAAM,QAAQ,GAAG,aAAa,CAAC,UAAU,CAAC,CAAA;AAEhD,MAAM,MAAM,gBAAgB,GAAG,IAAI,CACjC,YAAY,EACZ,MAAM,GAAG,QAAQ,GAAG,SAAS,GAAG,WAAW,GAAG,QAAQ,GAAG,WAAW,CACrE,GAAG;IACF,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,OAAO,EAAE,MAAM,GAAG,SAAS,CAAA;IAC3B,SAAS,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,GAAG,SAAS,CAAA;IACtD,MAAM,EAAE,GAAG,GAAG,SAAS,CAAA;IACvB,SAAS,EAAE,SAAS,QAAQ,EAAE,CAAA;CAC/B,CAAA;AAED,MAAM,MAAM,iBAAiB,GAAG,IAAI,CAAC,aAAa,EAAE,MAAM,GAAG,WAAW,CAAC,GAAG;IAC1E,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,OAAO,EAAE,MAAM,GAAG,SAAS,CAAA;IAC3B,SAAS,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,GAAG,SAAS,CAAA;IACtD,MAAM,EAAE,GAAG,GAAG,SAAS,CAAA;IACvB,SAAS,EAAE,SAAS,QAAQ,EAAE,CAAA;CAC/B,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type { AccountAction, AccountActionType, ActionType, Evidence, NormalAction, } from './action';
|
|
1
|
+
export type { AccountAction, AccountActionType, ActionType, BaseAccountAction, BaseNormalAction, Evidence, NormalAction, } from './action';
|
|
2
2
|
export type { AccountActionAddLiquidity, NormalActionAddLiquidity, } from './addLiquidity';
|
|
3
3
|
export type { AccountActionApprove, NormalActionApprove } from './approve';
|
|
4
4
|
export type { AccountActionAtomicArbitrage, NormalActionAtomicArbitrage, } from './atomicArbitrage';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../actions/types/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,aAAa,EACb,iBAAiB,EACjB,UAAU,EACV,QAAQ,EACR,YAAY,GACb,MAAM,UAAU,CAAA;AACjB,YAAY,EACV,yBAAyB,EACzB,wBAAwB,GACzB,MAAM,gBAAgB,CAAA;AACvB,YAAY,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAA;AAC1E,YAAY,EACV,4BAA4B,EAC5B,2BAA2B,GAC5B,MAAM,mBAAmB,CAAA;AAC1B,YAAY,EA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AE,oBAAoB,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAA;AAC1E,YAAY,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAA;AAC7E,YAAY,EACV,6BAA6B,EAC7B,4BAA4B,GAC7B,MAAM,oBAAoB,CAAA;AAC3B,YAAY,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,QAAQ,CAAA"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { Transfer } from './types';
|
|
2
|
+
import type { AccountAction, BaseAccountAction, BaseNormalAction, NormalAction } from './types/action';
|
|
2
3
|
export declare const isTransferCryptoCurrencyIn: (transfer: Transfer) => transfer is {
|
|
3
4
|
from: string | undefined;
|
|
4
5
|
to: string | undefined;
|
|
@@ -239,4 +240,6 @@ export declare const isTransferFiatCurrencyNone: (transfer: Transfer) => transfe
|
|
|
239
240
|
};
|
|
240
241
|
direction: "none";
|
|
241
242
|
};
|
|
243
|
+
export declare const parseBaseNormalActionToNormalAction: (action: BaseNormalAction) => NormalAction;
|
|
244
|
+
export declare const parseBaseAccountActionToAccountAction: (action: BaseAccountAction) => AccountAction;
|
|
242
245
|
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../actions/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../actions/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAuFV,QAAQ,EAUT,MAAM,SAAS,CAAA;AAChB,OAAO,KAAK,EACV,aAAa,EACb,iBAAiB,EACjB,gBAAgB,EAChB,YAAY,EACb,MAAM,gBAAgB,CAAA;AAEvB,eAAO,MAAM,0BAA0B,aAC3B,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAEqD,CAAA;AAEzE,eAAO,MAAM,2BAA2B,aAC5B,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAEsD,CAAA;AAE1E,eAAO,MAAM,4BAA4B,aAC7B,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAEuD,CAAA;AAE3E,eAAO,MAAM,eAAe,aAChB,QAAQ;;;;;;;;;;;;;;;;;;;;;CAE0C,CAAA;AAE9D,eAAO,MAAM,gBAAgB,aACjB,QAAQ;;;;;;;;;;;;;;;;;;;;;CAE2C,CAAA;AAE/D,eAAO,MAAM,iBAAiB,aAClB,QAAQ;;;;;;;;;;;;;;;;;;;;;CAE4C,CAAA;AAEhE,eAAO,MAAM,wBAAwB,aACzB,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;CAEmD,CAAA;AAEvE,eAAO,MAAM,yBAAyB,aAC1B,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;CAEoD,CAAA;AAExE,eAAO,MAAM,0BAA0B,aAC3B,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;CAEqD,CAAA;AAEzE,eAAO,MAAM,mCAAmC,WACtC,gBAAgB,KACvB,YA00BF,CAAA;AAED,eAAO,MAAM,qCAAqC,WACxC,iBAAiB,KACxB,aAi/BF,CAAA"}
|
package/_types/apps/schemas.d.ts
CHANGED
|
@@ -10,15 +10,15 @@ export declare const appSchema: z.ZodEffects<z.ZodObject<{
|
|
|
10
10
|
icon: z.ZodOptional<z.ZodString>;
|
|
11
11
|
}, "strip", z.ZodTypeAny, {
|
|
12
12
|
id: string;
|
|
13
|
-
categories: ("bridge" | "cex" | "cross-chain" | "dex" | "gaming" | "lending" | "nft-marketplace" | "other")[];
|
|
14
13
|
name: string;
|
|
14
|
+
categories: ("bridge" | "cex" | "cross-chain" | "dex" | "gaming" | "lending" | "nft-marketplace" | "other")[];
|
|
15
15
|
description?: string | undefined;
|
|
16
16
|
website?: string | undefined;
|
|
17
17
|
icon?: string | undefined;
|
|
18
18
|
}, {
|
|
19
19
|
id: string;
|
|
20
|
-
categories: ("bridge" | "cex" | "cross-chain" | "dex" | "gaming" | "lending" | "nft-marketplace" | "other")[];
|
|
21
20
|
name: string;
|
|
21
|
+
categories: ("bridge" | "cex" | "cross-chain" | "dex" | "gaming" | "lending" | "nft-marketplace" | "other")[];
|
|
22
22
|
description?: string | undefined;
|
|
23
23
|
website?: string | undefined;
|
|
24
24
|
icon?: string | undefined;
|
|
@@ -27,12 +27,12 @@ export declare const appSchema: z.ZodEffects<z.ZodObject<{
|
|
|
27
27
|
website: string | undefined;
|
|
28
28
|
icon: string | undefined;
|
|
29
29
|
id: string;
|
|
30
|
-
categories: ("bridge" | "cex" | "cross-chain" | "dex" | "gaming" | "lending" | "nft-marketplace" | "other")[];
|
|
31
30
|
name: string;
|
|
31
|
+
categories: ("bridge" | "cex" | "cross-chain" | "dex" | "gaming" | "lending" | "nft-marketplace" | "other")[];
|
|
32
32
|
}, {
|
|
33
33
|
id: string;
|
|
34
|
-
categories: ("bridge" | "cex" | "cross-chain" | "dex" | "gaming" | "lending" | "nft-marketplace" | "other")[];
|
|
35
34
|
name: string;
|
|
35
|
+
categories: ("bridge" | "cex" | "cross-chain" | "dex" | "gaming" | "lending" | "nft-marketplace" | "other")[];
|
|
36
36
|
description?: string | undefined;
|
|
37
37
|
website?: string | undefined;
|
|
38
38
|
icon?: string | undefined;
|
package/_types/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export type { Account } from './accounts';
|
|
2
|
-
export { accountActionAddLiquiditySchema, accountActionApproveSchema, accountActionAtomicArbitrageSchema, accountActionBorrowSchema, accountActionBorrowWithDebtSchema, accountActionBridgeFromSchema, accountActionBridgeToSchema, accountActionBuyCryptoSchema, accountActionBuyNftSchema, accountActionCrossReplaceSchema, accountActionCrossTradeSchema, accountActionDepositSchema, accountActionDepositWithBondSchema, accountActionFailTxSchema, accountActionFeeSchema, accountActionFreeMintNftSchema, accountActionIgnoreSchema, accountActionIncomeSchema, accountActionMintNftSchema, accountActionMoveSchema, accountActionNftRoyaltySchema, accountActionReceiveFromCexSchema, accountActionReduceSchema, accountActionRemoveLiquiditySchema, accountActionRepaymentSchema, accountActionRepaymentWithDebtSchema, accountActionReplaceSchema, accountActionRevokeSchema, accountActionSchema, accountActionSellCryptoSchema, accountActionSellNftSchema, accountActionSendToCexSchema, accountActionSpamSchema, accountActionStakeSchema, accountActionSwapIncomeSchema, accountActionSwapNftSchema, accountActionSwapTransferSchema, accountActionTradeSchema, accountActionTransactionFeeSchema, accountActionTransferSchema, accountActionUnstakeSchema, accountActionUnwrapSchema, accountActionValuedownSchema, accountActionValueupSchema, accountActionWithdrawSchema, accountActionWithdrawWithBondSchema, accountActionWrapSchema, crossActionBundleSchema, crossTypeSchema, isTransferCryptoCurrencyIn, isTransferCryptoCurrencyNone, isTransferCryptoCurrencyOut, isTransferFiatCurrencyIn, isTransferFiatCurrencyNone, isTransferFiatCurrencyOut, isTransferNftIn, isTransferNftNone, isTransferNftOut, normalActionActionSchema, normalActionAddLiquiditySchema, normalActionApproveSchema, normalActionAtomicArbitrageSchema, normalActionBorrowSchema, normalActionBorrowWithDebtSchema, normalActionBridgeFromSchema, normalActionBridgeToSchema, normalActionBuyCryptoSchema, normalActionBuyNftSchema, normalActionCrossReplaceSchema, normalActionCrossTradeSchema, normalActionDepositSchema, normalActionDepositWithBondSchema, normalActionFailTxSchema, normalActionFeeSchema, normalActionFreeMintNftSchema, normalActionIncomeSchema, normalActionMintNftSchema, normalActionReceiveFromCexSchema, normalActionRemoveLiquiditySchema, normalActionRepaymentSchema, normalActionRepaymentWithDebtSchema, normalActionReplaceSchema, normalActionRevokeSchema, normalActionSchema, normalActionSellCryptoSchema, normalActionSellNftSchema, normalActionSendToCexSchema, normalActionSpamSchema, normalActionStakeSchema, normalActionSwapNftSchema, normalActionTradeSchema, normalActionTransactionFeeSchema, normalActionTransferSchema, normalActionUnstakeSchema, normalActionUnwrapSchema, normalActionValuedownSchema, normalActionValueupSchema, normalActionWithdrawSchema, normalActionWithdrawWithBondSchema, normalActionWrapSchema, parseNormalActionToAccountActions, } from './actions';
|
|
3
|
-
export type { AccountAction, AccountActionAddLiquidity, AccountActionApprove, AccountActionAtomicArbitrage, AccountActionBorrow, AccountActionBorrowWithDebt, AccountActionBridgeFrom, AccountActionBridgeTo, AccountActionBuyCrypto, AccountActionBuyNft, AccountActionCrossReplace, AccountActionCrossTrade, AccountActionDeposit, AccountActionDepositWithBond, AccountActionFailTx, AccountActionFee, AccountActionFreeMintNft, AccountActionIgnore, AccountActionIncome, AccountActionMintNft, AccountActionMove, AccountActionNftRoyalty, AccountActionReceiveFromCex, AccountActionReduce, AccountActionRemoveLiquidity, AccountActionRepayment, AccountActionRepaymentWithDebt, AccountActionReplace, AccountActionRevoke, AccountActionSellCrypto, AccountActionSellNft, AccountActionSendToCex, AccountActionSpam, AccountActionStake, AccountActionSwapIncome, AccountActionSwapNft, AccountActionSwapTransfer, AccountActionTrade, AccountActionTransactionFee, AccountActionTransfer, AccountActionType, AccountActionUnstake, AccountActionUnwrap, AccountActionValuedown, AccountActionValueup, AccountActionWithdraw, AccountActionWithdrawWithBond, AccountActionWrap, ActionType, CrossActionBundle, Evidence, NormalAction, NormalActionAddLiquidity, NormalActionApprove, NormalActionAtomicArbitrage, NormalActionBorrow, NormalActionBorrowWithDebt, NormalActionBridgeFrom, NormalActionBridgeTo, NormalActionBuyCrypto, NormalActionBuyNft, NormalActionCrossReplace, NormalActionCrossTrade, NormalActionDeposit, NormalActionDepositWithBond, NormalActionFailTx, NormalActionFee, NormalActionFreeMintNft, NormalActionIncome, NormalActionMintNft, NormalActionReceiveFromCex, NormalActionRemoveLiquidity, NormalActionRepayment, NormalActionRepaymentWithDebt, NormalActionReplace, NormalActionRevoke, NormalActionSellCrypto, NormalActionSellNft, NormalActionSendToCex, NormalActionSpam, NormalActionStake, NormalActionSwapNft, NormalActionTrade, NormalActionTransactionFee, NormalActionTransfer, NormalActionUnstake, NormalActionUnwrap, NormalActionValuedown, NormalActionValueup, NormalActionWithdraw, NormalActionWithdrawWithBond, NormalActionWrap, Transfer, TransferCryptoCurrencyIn, TransferCryptoCurrencyNone, TransferCryptoCurrencyOut, TransferFiatCurrencyIn, TransferFiatCurrencyNone, TransferFiatCurrencyOut, TransferIn, TransferNftIn, TransferNftNone, TransferNftOut, TransferNone, TransferOut, } from './actions';
|
|
2
|
+
export { accountActionAddLiquiditySchema, accountActionApproveSchema, accountActionAtomicArbitrageSchema, accountActionBorrowSchema, accountActionBorrowWithDebtSchema, accountActionBridgeFromSchema, accountActionBridgeToSchema, accountActionBuyCryptoSchema, accountActionBuyNftSchema, accountActionCrossReplaceSchema, accountActionCrossTradeSchema, accountActionDepositSchema, accountActionDepositWithBondSchema, accountActionFailTxSchema, accountActionFeeSchema, accountActionFreeMintNftSchema, accountActionIgnoreSchema, accountActionIncomeSchema, accountActionMintNftSchema, accountActionMoveSchema, accountActionNftRoyaltySchema, accountActionReceiveFromCexSchema, accountActionReduceSchema, accountActionRemoveLiquiditySchema, accountActionRepaymentSchema, accountActionRepaymentWithDebtSchema, accountActionReplaceSchema, accountActionRevokeSchema, accountActionSchema, accountActionSellCryptoSchema, accountActionSellNftSchema, accountActionSendToCexSchema, accountActionSpamSchema, accountActionStakeSchema, accountActionSwapIncomeSchema, accountActionSwapNftSchema, accountActionSwapTransferSchema, accountActionTradeSchema, accountActionTransactionFeeSchema, accountActionTransferSchema, accountActionUnstakeSchema, accountActionUnwrapSchema, accountActionValuedownSchema, accountActionValueupSchema, accountActionWithdrawSchema, accountActionWithdrawWithBondSchema, accountActionWrapSchema, crossActionBundleSchema, crossTypeSchema, isTransferCryptoCurrencyIn, isTransferCryptoCurrencyNone, isTransferCryptoCurrencyOut, isTransferFiatCurrencyIn, isTransferFiatCurrencyNone, isTransferFiatCurrencyOut, isTransferNftIn, isTransferNftNone, isTransferNftOut, normalActionActionSchema, normalActionAddLiquiditySchema, normalActionApproveSchema, normalActionAtomicArbitrageSchema, normalActionBorrowSchema, normalActionBorrowWithDebtSchema, normalActionBridgeFromSchema, normalActionBridgeToSchema, normalActionBuyCryptoSchema, normalActionBuyNftSchema, normalActionCrossReplaceSchema, normalActionCrossTradeSchema, normalActionDepositSchema, normalActionDepositWithBondSchema, normalActionFailTxSchema, normalActionFeeSchema, normalActionFreeMintNftSchema, normalActionIncomeSchema, normalActionMintNftSchema, normalActionReceiveFromCexSchema, normalActionRemoveLiquiditySchema, normalActionRepaymentSchema, normalActionRepaymentWithDebtSchema, normalActionReplaceSchema, normalActionRevokeSchema, normalActionSchema, normalActionSellCryptoSchema, normalActionSellNftSchema, normalActionSendToCexSchema, normalActionSpamSchema, normalActionStakeSchema, normalActionSwapNftSchema, normalActionTradeSchema, normalActionTransactionFeeSchema, normalActionTransferSchema, normalActionUnstakeSchema, normalActionUnwrapSchema, normalActionValuedownSchema, normalActionValueupSchema, normalActionWithdrawSchema, normalActionWithdrawWithBondSchema, normalActionWrapSchema, parseBaseAccountActionToAccountAction, parseBaseNormalActionToNormalAction, parseNormalActionToAccountActions, } from './actions';
|
|
3
|
+
export type { AccountAction, AccountActionAddLiquidity, AccountActionApprove, AccountActionAtomicArbitrage, AccountActionBorrow, AccountActionBorrowWithDebt, AccountActionBridgeFrom, AccountActionBridgeTo, AccountActionBuyCrypto, AccountActionBuyNft, AccountActionCrossReplace, AccountActionCrossTrade, AccountActionDeposit, AccountActionDepositWithBond, AccountActionFailTx, AccountActionFee, AccountActionFreeMintNft, AccountActionIgnore, AccountActionIncome, AccountActionMintNft, AccountActionMove, AccountActionNftRoyalty, AccountActionReceiveFromCex, AccountActionReduce, AccountActionRemoveLiquidity, AccountActionRepayment, AccountActionRepaymentWithDebt, AccountActionReplace, AccountActionRevoke, AccountActionSellCrypto, AccountActionSellNft, AccountActionSendToCex, AccountActionSpam, AccountActionStake, AccountActionSwapIncome, AccountActionSwapNft, AccountActionSwapTransfer, AccountActionTrade, AccountActionTransactionFee, AccountActionTransfer, AccountActionType, AccountActionUnstake, AccountActionUnwrap, AccountActionValuedown, AccountActionValueup, AccountActionWithdraw, AccountActionWithdrawWithBond, AccountActionWrap, ActionType, BaseAccountAction, BaseNormalAction, CrossActionBundle, Evidence, NormalAction, NormalActionAddLiquidity, NormalActionApprove, NormalActionAtomicArbitrage, NormalActionBorrow, NormalActionBorrowWithDebt, NormalActionBridgeFrom, NormalActionBridgeTo, NormalActionBuyCrypto, NormalActionBuyNft, NormalActionCrossReplace, NormalActionCrossTrade, NormalActionDeposit, NormalActionDepositWithBond, NormalActionFailTx, NormalActionFee, NormalActionFreeMintNft, NormalActionIncome, NormalActionMintNft, NormalActionReceiveFromCex, NormalActionRemoveLiquidity, NormalActionRepayment, NormalActionRepaymentWithDebt, NormalActionReplace, NormalActionRevoke, NormalActionSellCrypto, NormalActionSellNft, NormalActionSendToCex, NormalActionSpam, NormalActionStake, NormalActionSwapNft, NormalActionTrade, NormalActionTransactionFee, NormalActionTransfer, NormalActionUnstake, NormalActionUnwrap, NormalActionValuedown, NormalActionValueup, NormalActionWithdraw, NormalActionWithdrawWithBond, NormalActionWrap, Transfer, TransferCryptoCurrencyIn, TransferCryptoCurrencyNone, TransferCryptoCurrencyOut, TransferFiatCurrencyIn, TransferFiatCurrencyNone, TransferFiatCurrencyOut, TransferIn, TransferNftIn, TransferNftNone, TransferNftOut, TransferNone, TransferOut, } from './actions';
|
|
4
4
|
export { appCategories } from './apps';
|
|
5
5
|
export type { App, AppCategory } from './apps';
|
|
6
6
|
export { assetSchema, astar, avalanche, bnb, coingeckoCryptoCurrencyDataSource, createCryptoCurrency, cryptoCurrencySchema, ethereum, eur, fantom, fiatCurrencyDecimals, fiatCurrencySchema, jpy, kava, mantle, maticNetwork, metis, moonbeam, moonriver, nftSchema, ronin, usd, } from './assets';
|
package/_types/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AACzC,OAAO,EACL,+BAA+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,KAAK,EACL,QAAQ,EACR,SAAS,EACT,SAAS,EACT,KAAK,EACL,GAAG,GACJ,MAAM,UAAU,CAAA;AACjB,YAAY,EACV,cAAc,EACd,wBAAwB,EACxB,mBAAmB,EACnB,YAAY,EACZ,GAAG,GACJ,MAAM,UAAU,CAAA;AACjB,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AAC9C,YAAY,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAC7C,YAAY,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,SAAS,CAAA;AAC7C,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AACzC,YAAY,EAAE,MAAM,EAAE,MAAM,SAAS,CAAA"}
|
package/actions/index.ts
CHANGED
|
@@ -184,6 +184,8 @@ export type {
|
|
|
184
184
|
AccountActionWithdrawWithBond,
|
|
185
185
|
AccountActionWrap,
|
|
186
186
|
ActionType,
|
|
187
|
+
BaseAccountAction,
|
|
188
|
+
BaseNormalAction,
|
|
187
189
|
CrossActionBundle,
|
|
188
190
|
Evidence,
|
|
189
191
|
NormalAction,
|
|
@@ -251,4 +253,6 @@ export {
|
|
|
251
253
|
isTransferNftIn,
|
|
252
254
|
isTransferNftNone,
|
|
253
255
|
isTransferNftOut,
|
|
256
|
+
parseBaseAccountActionToAccountAction,
|
|
257
|
+
parseBaseNormalActionToNormalAction,
|
|
254
258
|
} from './utils'
|