@lifi/types 5.2.2 → 6.0.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/CHANGELOG.md +19 -0
- package/dist/api.d.ts +16 -1
- package/dist/base.d.ts +5 -0
- package/dist/base.js +6 -0
- package/dist/cjs/api.d.ts +16 -1
- package/dist/cjs/base.d.ts +5 -0
- package/dist/cjs/base.js +6 -0
- package/dist/cjs/coins.js +102 -0
- package/dist/cjs/index.d.ts +1 -0
- package/dist/cjs/index.js +1 -0
- package/dist/coins.js +102 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,25 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
## [6.0.0](https://github.com/lifinance/types/compare/v5.3.0...v6.0.0) (2023-05-09)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### ⚠ BREAKING CHANGES
|
|
9
|
+
|
|
10
|
+
* **explainableFailures:** added supporting types
|
|
11
|
+
|
|
12
|
+
### Features
|
|
13
|
+
|
|
14
|
+
* error reporting ([8120a4e](https://github.com/lifinance/types/commit/8120a4efe26c19d7fdc95ac9d72b91d1dc988fbc))
|
|
15
|
+
* **explainableFailures:** added supporting types ([50310b9](https://github.com/lifinance/types/commit/50310b93e3f55e3185b7234821fbf19efb5dd8d4))
|
|
16
|
+
|
|
17
|
+
## [5.3.0](https://github.com/lifinance/types/compare/v5.2.2...v5.3.0) (2023-05-05)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
* add stargate testnet tokens ([#170](https://github.com/lifinance/types/issues/170)) ([20566ad](https://github.com/lifinance/types/commit/20566ad2e3b4485c25f715b26f7e95a4d5222e81))
|
|
23
|
+
|
|
5
24
|
### [5.2.2](https://github.com/lifinance/types/compare/v5.2.1...v5.2.2) (2023-05-02)
|
|
6
25
|
|
|
7
26
|
|
package/dist/api.d.ts
CHANGED
|
@@ -76,9 +76,24 @@ export interface Route {
|
|
|
76
76
|
steps: LifiStep[];
|
|
77
77
|
tags?: Order[];
|
|
78
78
|
}
|
|
79
|
+
export type ErroredPaths = {
|
|
80
|
+
[subpath: string]: ToolError[];
|
|
81
|
+
};
|
|
82
|
+
export type ErroredRoute = {
|
|
83
|
+
overallPath: string;
|
|
84
|
+
subpaths: ErroredPaths;
|
|
85
|
+
};
|
|
86
|
+
export type FilteredResult = {
|
|
87
|
+
overallPath: string;
|
|
88
|
+
reason: string;
|
|
89
|
+
};
|
|
90
|
+
export type UnavailableRoutes = {
|
|
91
|
+
filteredOut: FilteredResult[];
|
|
92
|
+
failed: ErroredRoute[];
|
|
93
|
+
};
|
|
79
94
|
export interface RoutesResponse {
|
|
80
95
|
routes: Route[];
|
|
81
|
-
|
|
96
|
+
unavailableRoutes: UnavailableRoutes;
|
|
82
97
|
}
|
|
83
98
|
export type PossibilityTopic = 'chains' | 'tokens' | 'bridges' | 'exchanges';
|
|
84
99
|
/**
|
package/dist/base.d.ts
CHANGED
|
@@ -44,6 +44,11 @@ export declare enum CoinKey {
|
|
|
44
44
|
SPARK = "SPARK",
|
|
45
45
|
TRBTC = "TRBTC",
|
|
46
46
|
CXTT = "CXTT",
|
|
47
|
+
sgMETIS = "sgMETIS",
|
|
48
|
+
sgWOO = "sgWOO",
|
|
49
|
+
sgUSDT = "sgUSDT",
|
|
50
|
+
sgBUSD = "sgBUSD",
|
|
51
|
+
sgUSDC = "sgUSDC",
|
|
47
52
|
WBTC = "WBTC",
|
|
48
53
|
WETH = "WETH",
|
|
49
54
|
SUSHI = "SUSHI",
|
package/dist/base.js
CHANGED
|
@@ -45,6 +45,12 @@ export var CoinKey;
|
|
|
45
45
|
CoinKey["SPARK"] = "SPARK";
|
|
46
46
|
CoinKey["TRBTC"] = "TRBTC";
|
|
47
47
|
CoinKey["CXTT"] = "CXTT";
|
|
48
|
+
// stargate testnet tokens
|
|
49
|
+
CoinKey["sgMETIS"] = "sgMETIS";
|
|
50
|
+
CoinKey["sgWOO"] = "sgWOO";
|
|
51
|
+
CoinKey["sgUSDT"] = "sgUSDT";
|
|
52
|
+
CoinKey["sgBUSD"] = "sgBUSD";
|
|
53
|
+
CoinKey["sgUSDC"] = "sgUSDC";
|
|
48
54
|
// Other tokens
|
|
49
55
|
CoinKey["WBTC"] = "WBTC";
|
|
50
56
|
CoinKey["WETH"] = "WETH";
|
package/dist/cjs/api.d.ts
CHANGED
|
@@ -76,9 +76,24 @@ export interface Route {
|
|
|
76
76
|
steps: LifiStep[];
|
|
77
77
|
tags?: Order[];
|
|
78
78
|
}
|
|
79
|
+
export type ErroredPaths = {
|
|
80
|
+
[subpath: string]: ToolError[];
|
|
81
|
+
};
|
|
82
|
+
export type ErroredRoute = {
|
|
83
|
+
overallPath: string;
|
|
84
|
+
subpaths: ErroredPaths;
|
|
85
|
+
};
|
|
86
|
+
export type FilteredResult = {
|
|
87
|
+
overallPath: string;
|
|
88
|
+
reason: string;
|
|
89
|
+
};
|
|
90
|
+
export type UnavailableRoutes = {
|
|
91
|
+
filteredOut: FilteredResult[];
|
|
92
|
+
failed: ErroredRoute[];
|
|
93
|
+
};
|
|
79
94
|
export interface RoutesResponse {
|
|
80
95
|
routes: Route[];
|
|
81
|
-
|
|
96
|
+
unavailableRoutes: UnavailableRoutes;
|
|
82
97
|
}
|
|
83
98
|
export type PossibilityTopic = 'chains' | 'tokens' | 'bridges' | 'exchanges';
|
|
84
99
|
/**
|
package/dist/cjs/base.d.ts
CHANGED
|
@@ -44,6 +44,11 @@ export declare enum CoinKey {
|
|
|
44
44
|
SPARK = "SPARK",
|
|
45
45
|
TRBTC = "TRBTC",
|
|
46
46
|
CXTT = "CXTT",
|
|
47
|
+
sgMETIS = "sgMETIS",
|
|
48
|
+
sgWOO = "sgWOO",
|
|
49
|
+
sgUSDT = "sgUSDT",
|
|
50
|
+
sgBUSD = "sgBUSD",
|
|
51
|
+
sgUSDC = "sgUSDC",
|
|
47
52
|
WBTC = "WBTC",
|
|
48
53
|
WETH = "WETH",
|
|
49
54
|
SUSHI = "SUSHI",
|
package/dist/cjs/base.js
CHANGED
|
@@ -48,6 +48,12 @@ var CoinKey;
|
|
|
48
48
|
CoinKey["SPARK"] = "SPARK";
|
|
49
49
|
CoinKey["TRBTC"] = "TRBTC";
|
|
50
50
|
CoinKey["CXTT"] = "CXTT";
|
|
51
|
+
// stargate testnet tokens
|
|
52
|
+
CoinKey["sgMETIS"] = "sgMETIS";
|
|
53
|
+
CoinKey["sgWOO"] = "sgWOO";
|
|
54
|
+
CoinKey["sgUSDT"] = "sgUSDT";
|
|
55
|
+
CoinKey["sgBUSD"] = "sgBUSD";
|
|
56
|
+
CoinKey["sgUSDC"] = "sgUSDC";
|
|
51
57
|
// Other tokens
|
|
52
58
|
CoinKey["WBTC"] = "WBTC";
|
|
53
59
|
CoinKey["WETH"] = "WETH";
|
package/dist/cjs/coins.js
CHANGED
|
@@ -562,6 +562,108 @@ const basicCoins = [
|
|
|
562
562
|
},
|
|
563
563
|
},
|
|
564
564
|
},
|
|
565
|
+
// ======= STARGATE TESTNET TOKENS =======
|
|
566
|
+
// stargate USDC testtoken
|
|
567
|
+
{
|
|
568
|
+
key: base_1.CoinKey.sgUSDC,
|
|
569
|
+
name: base_1.CoinKey.sgUSDC,
|
|
570
|
+
logoURI: 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48/logo.png',
|
|
571
|
+
verified: true,
|
|
572
|
+
chains: {
|
|
573
|
+
[base_1.ChainId.GOR]: {
|
|
574
|
+
address: '0xDf0360Ad8C5ccf25095Aa97ee5F2785c8d848620',
|
|
575
|
+
decimals: 6,
|
|
576
|
+
},
|
|
577
|
+
[base_1.ChainId.MUM]: {
|
|
578
|
+
address: '0x742DfA5Aa70a8212857966D491D67B09Ce7D6ec7',
|
|
579
|
+
decimals: 6,
|
|
580
|
+
},
|
|
581
|
+
[base_1.ChainId.ARBG]: {
|
|
582
|
+
address: '0x6aad876244e7a1ad44ec4824ce813729e5b6c291',
|
|
583
|
+
decimals: 6,
|
|
584
|
+
},
|
|
585
|
+
},
|
|
586
|
+
},
|
|
587
|
+
// stargate BUSD testtoken
|
|
588
|
+
{
|
|
589
|
+
key: base_1.CoinKey.sgBUSD,
|
|
590
|
+
name: base_1.CoinKey.sgBUSD,
|
|
591
|
+
logoURI: 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48/logo.png',
|
|
592
|
+
verified: true,
|
|
593
|
+
chains: {
|
|
594
|
+
[base_1.ChainId.BSCT]: {
|
|
595
|
+
address: '0x1010Bb1b9Dff29e6233E7947e045e0ba58f6E92e',
|
|
596
|
+
decimals: 6,
|
|
597
|
+
},
|
|
598
|
+
},
|
|
599
|
+
},
|
|
600
|
+
// stargate USDT testtoken
|
|
601
|
+
{
|
|
602
|
+
key: base_1.CoinKey.sgUSDT,
|
|
603
|
+
name: base_1.CoinKey.sgUSDT,
|
|
604
|
+
logoURI: 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48/logo.png',
|
|
605
|
+
verified: true,
|
|
606
|
+
chains: {
|
|
607
|
+
[base_1.ChainId.GOR]: {
|
|
608
|
+
address: '0x5bcc22abec37337630c0e0dd41d64fd86caee951',
|
|
609
|
+
decimals: 6,
|
|
610
|
+
},
|
|
611
|
+
[base_1.ChainId.MUM]: {
|
|
612
|
+
address: '0x6fc340be8e378c2ff56476409ef48da9a3b781a0',
|
|
613
|
+
decimals: 6,
|
|
614
|
+
},
|
|
615
|
+
[base_1.ChainId.BSCT]: {
|
|
616
|
+
address: '0xf49e250aeb5abdf660d643583adfd0be41464efd',
|
|
617
|
+
decimals: 6,
|
|
618
|
+
},
|
|
619
|
+
[base_1.ChainId.ARBG]: {
|
|
620
|
+
address: '0x533046f316590c19d99c74ee661c6d541b64471c',
|
|
621
|
+
decimals: 6,
|
|
622
|
+
},
|
|
623
|
+
},
|
|
624
|
+
},
|
|
625
|
+
// stargate USDT testtoken
|
|
626
|
+
{
|
|
627
|
+
key: base_1.CoinKey.sgMETIS,
|
|
628
|
+
name: base_1.CoinKey.sgMETIS,
|
|
629
|
+
logoURI: 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48/logo.png',
|
|
630
|
+
verified: true,
|
|
631
|
+
chains: {
|
|
632
|
+
[base_1.ChainId.GOR]: {
|
|
633
|
+
address: '0x9874a71b976daa037741d18b86bc6b2f9957fc8a',
|
|
634
|
+
decimals: 18,
|
|
635
|
+
},
|
|
636
|
+
[base_1.ChainId.BSCT]: {
|
|
637
|
+
address: '0x8362af3426e6c7a77438f29bdc81c8f27cd541ab',
|
|
638
|
+
decimals: 18,
|
|
639
|
+
},
|
|
640
|
+
},
|
|
641
|
+
},
|
|
642
|
+
// stargate WOO testtoken
|
|
643
|
+
{
|
|
644
|
+
key: base_1.CoinKey.sgWOO,
|
|
645
|
+
name: base_1.CoinKey.sgWOO,
|
|
646
|
+
logoURI: 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48/logo.png',
|
|
647
|
+
verified: true,
|
|
648
|
+
chains: {
|
|
649
|
+
[base_1.ChainId.GOR]: {
|
|
650
|
+
address: '0xc9ba30be110864264577ad091c47f986318b213e',
|
|
651
|
+
decimals: 18,
|
|
652
|
+
},
|
|
653
|
+
[base_1.ChainId.MUM]: {
|
|
654
|
+
address: '0xb9C468f4308f3f937B4Fc79946244459bBC3cf65',
|
|
655
|
+
decimals: 18,
|
|
656
|
+
},
|
|
657
|
+
[base_1.ChainId.BSCT]: {
|
|
658
|
+
address: '0x6df6db769dd1c845596f7e65a1c86c98d6147cc3',
|
|
659
|
+
decimals: 18,
|
|
660
|
+
},
|
|
661
|
+
[base_1.ChainId.ARBG]: {
|
|
662
|
+
address: '0xac9da6d889e82d08de63f5752f91b151ffe059fb',
|
|
663
|
+
decimals: 18,
|
|
664
|
+
},
|
|
665
|
+
},
|
|
666
|
+
},
|
|
565
667
|
// cBridge CELER testtoken
|
|
566
668
|
{
|
|
567
669
|
key: base_1.CoinKey.cbtCELR,
|
package/dist/cjs/index.d.ts
CHANGED
package/dist/cjs/index.js
CHANGED
|
@@ -21,5 +21,6 @@ __exportStar(require("./coins"), exports);
|
|
|
21
21
|
__exportStar(require("./exchanges"), exports);
|
|
22
22
|
__exportStar(require("./step"), exports);
|
|
23
23
|
__exportStar(require("./api"), exports);
|
|
24
|
+
__exportStar(require("./apiErrors"), exports);
|
|
24
25
|
__exportStar(require("./multicall"), exports);
|
|
25
26
|
__exportStar(require("./quests"), exports);
|
package/dist/coins.js
CHANGED
|
@@ -559,6 +559,108 @@ const basicCoins = [
|
|
|
559
559
|
},
|
|
560
560
|
},
|
|
561
561
|
},
|
|
562
|
+
// ======= STARGATE TESTNET TOKENS =======
|
|
563
|
+
// stargate USDC testtoken
|
|
564
|
+
{
|
|
565
|
+
key: CoinKey.sgUSDC,
|
|
566
|
+
name: CoinKey.sgUSDC,
|
|
567
|
+
logoURI: 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48/logo.png',
|
|
568
|
+
verified: true,
|
|
569
|
+
chains: {
|
|
570
|
+
[ChainId.GOR]: {
|
|
571
|
+
address: '0xDf0360Ad8C5ccf25095Aa97ee5F2785c8d848620',
|
|
572
|
+
decimals: 6,
|
|
573
|
+
},
|
|
574
|
+
[ChainId.MUM]: {
|
|
575
|
+
address: '0x742DfA5Aa70a8212857966D491D67B09Ce7D6ec7',
|
|
576
|
+
decimals: 6,
|
|
577
|
+
},
|
|
578
|
+
[ChainId.ARBG]: {
|
|
579
|
+
address: '0x6aad876244e7a1ad44ec4824ce813729e5b6c291',
|
|
580
|
+
decimals: 6,
|
|
581
|
+
},
|
|
582
|
+
},
|
|
583
|
+
},
|
|
584
|
+
// stargate BUSD testtoken
|
|
585
|
+
{
|
|
586
|
+
key: CoinKey.sgBUSD,
|
|
587
|
+
name: CoinKey.sgBUSD,
|
|
588
|
+
logoURI: 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48/logo.png',
|
|
589
|
+
verified: true,
|
|
590
|
+
chains: {
|
|
591
|
+
[ChainId.BSCT]: {
|
|
592
|
+
address: '0x1010Bb1b9Dff29e6233E7947e045e0ba58f6E92e',
|
|
593
|
+
decimals: 6,
|
|
594
|
+
},
|
|
595
|
+
},
|
|
596
|
+
},
|
|
597
|
+
// stargate USDT testtoken
|
|
598
|
+
{
|
|
599
|
+
key: CoinKey.sgUSDT,
|
|
600
|
+
name: CoinKey.sgUSDT,
|
|
601
|
+
logoURI: 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48/logo.png',
|
|
602
|
+
verified: true,
|
|
603
|
+
chains: {
|
|
604
|
+
[ChainId.GOR]: {
|
|
605
|
+
address: '0x5bcc22abec37337630c0e0dd41d64fd86caee951',
|
|
606
|
+
decimals: 6,
|
|
607
|
+
},
|
|
608
|
+
[ChainId.MUM]: {
|
|
609
|
+
address: '0x6fc340be8e378c2ff56476409ef48da9a3b781a0',
|
|
610
|
+
decimals: 6,
|
|
611
|
+
},
|
|
612
|
+
[ChainId.BSCT]: {
|
|
613
|
+
address: '0xf49e250aeb5abdf660d643583adfd0be41464efd',
|
|
614
|
+
decimals: 6,
|
|
615
|
+
},
|
|
616
|
+
[ChainId.ARBG]: {
|
|
617
|
+
address: '0x533046f316590c19d99c74ee661c6d541b64471c',
|
|
618
|
+
decimals: 6,
|
|
619
|
+
},
|
|
620
|
+
},
|
|
621
|
+
},
|
|
622
|
+
// stargate USDT testtoken
|
|
623
|
+
{
|
|
624
|
+
key: CoinKey.sgMETIS,
|
|
625
|
+
name: CoinKey.sgMETIS,
|
|
626
|
+
logoURI: 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48/logo.png',
|
|
627
|
+
verified: true,
|
|
628
|
+
chains: {
|
|
629
|
+
[ChainId.GOR]: {
|
|
630
|
+
address: '0x9874a71b976daa037741d18b86bc6b2f9957fc8a',
|
|
631
|
+
decimals: 18,
|
|
632
|
+
},
|
|
633
|
+
[ChainId.BSCT]: {
|
|
634
|
+
address: '0x8362af3426e6c7a77438f29bdc81c8f27cd541ab',
|
|
635
|
+
decimals: 18,
|
|
636
|
+
},
|
|
637
|
+
},
|
|
638
|
+
},
|
|
639
|
+
// stargate WOO testtoken
|
|
640
|
+
{
|
|
641
|
+
key: CoinKey.sgWOO,
|
|
642
|
+
name: CoinKey.sgWOO,
|
|
643
|
+
logoURI: 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48/logo.png',
|
|
644
|
+
verified: true,
|
|
645
|
+
chains: {
|
|
646
|
+
[ChainId.GOR]: {
|
|
647
|
+
address: '0xc9ba30be110864264577ad091c47f986318b213e',
|
|
648
|
+
decimals: 18,
|
|
649
|
+
},
|
|
650
|
+
[ChainId.MUM]: {
|
|
651
|
+
address: '0xb9C468f4308f3f937B4Fc79946244459bBC3cf65',
|
|
652
|
+
decimals: 18,
|
|
653
|
+
},
|
|
654
|
+
[ChainId.BSCT]: {
|
|
655
|
+
address: '0x6df6db769dd1c845596f7e65a1c86c98d6147cc3',
|
|
656
|
+
decimals: 18,
|
|
657
|
+
},
|
|
658
|
+
[ChainId.ARBG]: {
|
|
659
|
+
address: '0xac9da6d889e82d08de63f5752f91b151ffe059fb',
|
|
660
|
+
decimals: 18,
|
|
661
|
+
},
|
|
662
|
+
},
|
|
663
|
+
},
|
|
562
664
|
// cBridge CELER testtoken
|
|
563
665
|
{
|
|
564
666
|
key: CoinKey.cbtCELR,
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED