@lifi/types 1.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/dist/api.d.ts ADDED
@@ -0,0 +1,176 @@
1
+ import { BridgeDefinition, Chain, ChainId, ExchangeDefinition, Step, Token } from '.';
2
+ import { ToolError } from './apiErrors';
3
+ import { Bridge } from './bridges';
4
+ import { Exchange, ExchangeAggregator } from './exchanges';
5
+ export declare const Orders: readonly ["RECOMMENDED", "FASTEST", "CHEAPEST", "SAFEST"];
6
+ export declare type Order = typeof Orders[number];
7
+ export interface AllowDenyPrefer {
8
+ allow?: string[];
9
+ deny?: string[];
10
+ prefer?: string[];
11
+ }
12
+ export interface RouteOptions {
13
+ order?: Order;
14
+ slippage?: number;
15
+ infiniteApproval?: boolean;
16
+ allowSwitchChain?: boolean;
17
+ integrator?: string;
18
+ referrer?: string;
19
+ bridges?: AllowDenyPrefer;
20
+ exchanges?: AllowDenyPrefer;
21
+ }
22
+ export interface RoutesRequest {
23
+ fromChainId: number;
24
+ fromAmount: string;
25
+ fromTokenAddress: string;
26
+ fromAddress?: string;
27
+ toChainId: number;
28
+ toTokenAddress: string;
29
+ toAddress?: string;
30
+ options?: RouteOptions;
31
+ }
32
+ export interface Route {
33
+ id: string;
34
+ fromChainId: number;
35
+ fromAmountUSD: string;
36
+ fromAmount: string;
37
+ fromToken: Token;
38
+ fromAddress?: string;
39
+ toChainId: number;
40
+ toAmountUSD: string;
41
+ toAmount: string;
42
+ toAmountMin: string;
43
+ toToken: Token;
44
+ toAddress?: string;
45
+ gasCostUSD?: string;
46
+ containsSwitchChain?: boolean;
47
+ infiniteApproval?: boolean;
48
+ steps: Step[];
49
+ tags?: Order[];
50
+ }
51
+ export interface RoutesResponse {
52
+ routes: Route[];
53
+ errors: ToolError[];
54
+ }
55
+ export declare type PossibilityTopic = 'chains' | 'tokens' | 'bridges' | 'exchanges';
56
+ export interface PossibilitiesRequest {
57
+ chains?: number[];
58
+ bridges?: AllowDenyPrefer;
59
+ exchanges?: AllowDenyPrefer;
60
+ include?: PossibilityTopic[];
61
+ }
62
+ export interface PossibilitiesResponse {
63
+ chains?: Chain[];
64
+ tokens?: Token[];
65
+ bridges?: BridgeDefinition[];
66
+ exchanges?: ExchangeDefinition[];
67
+ }
68
+ export interface GetTokenRequest {
69
+ chain: number | string;
70
+ token: string;
71
+ }
72
+ interface ToolConfiguration {
73
+ allowBridges?: string[];
74
+ denyBridges?: string[];
75
+ preferBridges?: string[];
76
+ allowExchanges?: string[];
77
+ denyExchanges?: string[];
78
+ preferExchanges?: string[];
79
+ }
80
+ export interface QuoteRequest extends ToolConfiguration {
81
+ fromChain: number | string;
82
+ fromToken: string;
83
+ fromAddress: string;
84
+ fromAmount: string;
85
+ toChain: number | string;
86
+ toToken: string;
87
+ toAddress?: string;
88
+ order?: Order;
89
+ slippage?: number | string;
90
+ integrator?: string;
91
+ referrer?: string;
92
+ }
93
+ export interface ConnectionsRequest extends ToolConfiguration {
94
+ fromChain?: number | string;
95
+ fromToken?: string;
96
+ toChain?: number | string;
97
+ toToken?: string;
98
+ }
99
+ export interface Connection {
100
+ fromChainId: number;
101
+ toChainId: number;
102
+ fromTokens: Token[];
103
+ toTokens: Token[];
104
+ }
105
+ export interface ConnectionsResponse {
106
+ connections: Connection[];
107
+ }
108
+ export interface GetStatusRequest {
109
+ txHash: string;
110
+ bridge?: string;
111
+ fromChain: number | string;
112
+ toChain: number | string;
113
+ }
114
+ export interface TransactionInfo {
115
+ txHash: string;
116
+ txLink?: string;
117
+ amount?: string;
118
+ token?: Token;
119
+ chainId?: ChainId;
120
+ gasPrice?: string;
121
+ gasUsed?: string;
122
+ }
123
+ declare const _StatusMessage: readonly ["NOT_FOUND", "INVALID", "PENDING", "DONE", "FAILED"];
124
+ export declare type StatusMessage = typeof _StatusMessage[number];
125
+ declare const _SubstatusPending: readonly ["WAIT_SOURCE_CONFIRMATIONS", "WAIT_DESTINATION_TRANSACTION", "BRIDGE_NOT_AVAILABLE", "CHAIN_NOT_AVAILABLE", "NOT_PROCESSABLE_REFUND_NEEDED", "REFUND_IN_PROGRESS", "UNKNOWN_ERROR"];
126
+ export declare type SubstatusPending = typeof _SubstatusPending[number];
127
+ declare const _SubstatusDone: readonly ["COMPLETED", "PARTIAL", "REFUNDED"];
128
+ export declare type SubstatusDone = typeof _SubstatusDone[number];
129
+ export declare type Substatus = SubstatusPending | SubstatusDone;
130
+ export declare const isSubstatusPending: (substatus: Substatus) => substatus is "WAIT_SOURCE_CONFIRMATIONS" | "WAIT_DESTINATION_TRANSACTION" | "BRIDGE_NOT_AVAILABLE" | "CHAIN_NOT_AVAILABLE" | "NOT_PROCESSABLE_REFUND_NEEDED" | "REFUND_IN_PROGRESS" | "UNKNOWN_ERROR";
131
+ export declare const isSubstatusDone: (substatus: Substatus) => substatus is "COMPLETED" | "PARTIAL" | "REFUNDED";
132
+ export interface StatusInformation {
133
+ status: StatusMessage;
134
+ substatus?: Substatus;
135
+ substatusMessage?: string;
136
+ }
137
+ export interface StatusResponse extends StatusInformation {
138
+ sending: TransactionInfo;
139
+ receiving?: TransactionInfo;
140
+ tool?: string;
141
+ }
142
+ export interface ChainsResponse {
143
+ chains: Chain[];
144
+ }
145
+ export interface ToolsRequest {
146
+ chains?: ChainId[];
147
+ }
148
+ export declare type ToolsResponse = {
149
+ exchanges: Pick<Exchange | ExchangeAggregator, 'key' | 'name' | 'logoURI'>[];
150
+ bridges: Pick<Bridge, 'key' | 'name' | 'logoURI'>[];
151
+ };
152
+ export declare type TokensRequest = {
153
+ chains?: ChainId[];
154
+ };
155
+ export declare type TokensResponse = {
156
+ tokens: {
157
+ [chainId: number]: Token[];
158
+ };
159
+ };
160
+ export declare type RequestOptions = {
161
+ signal?: AbortSignal;
162
+ };
163
+ export declare class LifiAPI {
164
+ getRoutes(request: RoutesRequest): Promise<RoutesResponse>;
165
+ getPossibilities(request?: PossibilitiesRequest): Promise<PossibilitiesResponse>;
166
+ updateRoute(route: Route): Promise<Route>;
167
+ getStepTransaction(step: Step): Promise<Step>;
168
+ getToken(request: GetTokenRequest): Promise<Token>;
169
+ getTokens(request: TokensRequest): Promise<TokensResponse>;
170
+ getQuote(request: QuoteRequest): Promise<Step>;
171
+ getStatus(request: GetStatusRequest): Promise<StatusResponse>;
172
+ getTools(request: ToolsRequest): Promise<ToolsResponse>;
173
+ getChains(): ChainsResponse;
174
+ getConnections(request: ConnectionsRequest): Promise<ConnectionsResponse>;
175
+ }
176
+ export {};
package/dist/api.js ADDED
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isSubstatusDone = exports.isSubstatusPending = exports.Orders = void 0;
4
+ exports.Orders = ['RECOMMENDED', 'FASTEST', 'CHEAPEST', 'SAFEST'];
5
+ var _StatusMessage = [
6
+ // The transaction was not found -- likely not mined yet
7
+ 'NOT_FOUND',
8
+ // A third party service is not available
9
+ 'INVALID',
10
+ // The transfer is pending
11
+ 'PENDING',
12
+ // The transfer is done
13
+ 'DONE',
14
+ // The transfer failed
15
+ 'FAILED',
16
+ ];
17
+ var _SubstatusPending = [
18
+ // The bridge is waiting for additional confirmations
19
+ 'WAIT_SOURCE_CONFIRMATIONS',
20
+ // The off-chain logic is in progress, waiting for the destination tx to be mined
21
+ 'WAIT_DESTINATION_TRANSACTION',
22
+ // The bridge API / subgraph is temporarily unavailable
23
+ 'BRIDGE_NOT_AVAILABLE',
24
+ // The RPC for source/destination chain is temporarily unavailable
25
+ 'CHAIN_NOT_AVAILABLE',
26
+ // The transfer cannot be completed, a refund is required
27
+ 'NOT_PROCESSABLE_REFUND_NEEDED',
28
+ // A refund has been requested and is in progress
29
+ 'REFUND_IN_PROGRESS',
30
+ // We cannot determine the status of the transfer
31
+ 'UNKNOWN_ERROR',
32
+ ];
33
+ var _SubstatusDone = [
34
+ // The transfer was successful
35
+ 'COMPLETED',
36
+ // The transfer was partially successful
37
+ // This can happen for specific bridges like Across
38
+ // which may provide alternative tokens in case of low liquidity
39
+ 'PARTIAL',
40
+ // The transfer was not successful but it has been refunded
41
+ 'REFUNDED',
42
+ ];
43
+ var isSubstatusPending = function (substatus) {
44
+ return _SubstatusPending.includes(substatus);
45
+ };
46
+ exports.isSubstatusPending = isSubstatusPending;
47
+ var isSubstatusDone = function (substatus) {
48
+ return _SubstatusDone.includes(substatus);
49
+ };
50
+ exports.isSubstatusDone = isSubstatusDone;
@@ -0,0 +1,9 @@
1
+ import { Action } from './step';
2
+ export declare type ToolErrorType = 'NO_QUOTE';
3
+ export interface ToolError {
4
+ errorType: ToolErrorType;
5
+ code: string;
6
+ action: Action;
7
+ tool: string;
8
+ message: string;
9
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/dist/base.d.ts ADDED
@@ -0,0 +1,204 @@
1
+ import { BridgeTool } from './bridges';
2
+ import { ExchangeTools } from './exchanges';
3
+ export declare enum CoinKey {
4
+ ETH = "ETH",
5
+ MATIC = "MATIC",
6
+ BNB = "BNB",
7
+ DAI = "XDAI",
8
+ FTM = "FTM",
9
+ OKT = "OKT",
10
+ AVAX = "AVAX",
11
+ HT = "HT",
12
+ ONE = "ONE",
13
+ FSN = "FSN",
14
+ MOVR = "MOVR",
15
+ EXP = "EXP",
16
+ TCH = "TCH",
17
+ UBQ = "UBQ",
18
+ META = "META",
19
+ DIODE = "DIODE",
20
+ CELO = "CELO",
21
+ FUSE = "FUSE",
22
+ TLOS = "TLOS",
23
+ CRO = "CRO",
24
+ SHIB = "SHIB",
25
+ L1 = "L1",
26
+ RBTC = "RBTC",
27
+ TBG = "TBG",
28
+ VLX = "VLX",
29
+ GLMR = "GLMR",
30
+ METIS = "METIS",
31
+ SOL = "SOL",
32
+ EVM = "EVM",
33
+ USDT = "USDT",
34
+ USDC = "USDC",
35
+ TEST = "TEST",
36
+ KAL = "KAL",
37
+ SDIODE = "SDIODE",
38
+ SPARK = "SPARK",
39
+ TRBTC = "TRBTC",
40
+ WBTC = "WBTC",
41
+ WETH = "WETH",
42
+ SUSHI = "SUSHI",
43
+ DODO = "DODO",
44
+ MCB = "MCB",
45
+ CELR = "CELR",
46
+ IF = "IF"
47
+ }
48
+ export declare enum ChainKey {
49
+ ETH = "eth",
50
+ POL = "pol",
51
+ BSC = "bsc",
52
+ DAI = "dai",
53
+ OKT = "okt",
54
+ FTM = "ftm",
55
+ AVA = "ava",
56
+ ARB = "arb",
57
+ HEC = "hec",
58
+ OPT = "opt",
59
+ ONE = "one",
60
+ FSN = "fsn",
61
+ MOR = "mor",
62
+ EXP = "exp",
63
+ TCH = "tch",
64
+ UBQ = "ubq",
65
+ MET = "met",
66
+ DIO = "dio",
67
+ CEL = "cel",
68
+ FUS = "fus",
69
+ TLO = "tlo",
70
+ CRO = "cro",
71
+ BOB = "bob",
72
+ SHI = "shi",
73
+ GL1 = "gl1",
74
+ RSK = "rsk",
75
+ TBW = "tbw",
76
+ VEL = "vel",
77
+ MOO = "moo",
78
+ MAM = "mam",
79
+ AUR = "aur",
80
+ TER = "ter",
81
+ OAS = "oas",
82
+ SOL = "sol",
83
+ EVM = "evm",
84
+ ROP = "rop",
85
+ RIN = "rin",
86
+ GOR = "gor",
87
+ METT = "mett",
88
+ DIOT = "diot",
89
+ KOV = "kov",
90
+ MUM = "mum",
91
+ ARBT = "arbt",
92
+ OPTT = "optt",
93
+ BSCT = "bsct",
94
+ HECT = "hect",
95
+ ONET = "onet",
96
+ FUST = "fust",
97
+ TLOT = "tlot",
98
+ RSKT = "rskt",
99
+ SOLT = "solt",
100
+ OAST = "oast",
101
+ TERT = "tert",
102
+ AVAT = "avat",
103
+ EVMT = "evmt",
104
+ MORT = "mort",
105
+ FTMT = "ftmt"
106
+ }
107
+ export declare enum ChainId {
108
+ ETH = 1,
109
+ POL = 137,
110
+ BSC = 56,
111
+ DAI = 100,
112
+ OKT = 66,
113
+ FTM = 250,
114
+ AVA = 43114,
115
+ ARB = 42161,
116
+ HEC = 128,
117
+ OPT = 10,
118
+ ONE = 1666600000,
119
+ FSN = 32659,
120
+ MOR = 1285,
121
+ EXP = 2,
122
+ TCH = 7,
123
+ UBQ = 8,
124
+ MET = 11,
125
+ DIO = 15,
126
+ CEL = 42220,
127
+ FUS = 122,
128
+ TLO = 40,
129
+ CRO = 25,
130
+ BOB = 288,
131
+ SHI = 27,
132
+ GL1 = 29,
133
+ RSK = 30,
134
+ TBW = 35,
135
+ VEL = 106,
136
+ MOO = 1284,
137
+ MAM = 1088,
138
+ AUR = 1313161554,
139
+ SOL = 1151111081099710,
140
+ TER = 1161011141099710,
141
+ OAS = 111971151099710,
142
+ EVM = 9001,
143
+ ROP = 3,
144
+ RIN = 4,
145
+ GOR = 5,
146
+ METT = 12,
147
+ DIOT = 13,
148
+ KOV = 42,
149
+ MUM = 80001,
150
+ ARBT = 421611,
151
+ OPTT = 69,
152
+ BSCT = 97,
153
+ HECT = 256,
154
+ ONET = 1666700000,
155
+ FUST = 123,
156
+ TLOT = 41,
157
+ RSKT = 31,
158
+ SOLT = 1151111081161011,
159
+ TERT = 1161011141161011,
160
+ OAST = 1119711511610111,
161
+ AVAT = 43113,
162
+ EVMT = 9000,
163
+ MORT = 1287,
164
+ FTMT = 4002
165
+ }
166
+ export interface Token {
167
+ address: string;
168
+ symbol: string;
169
+ decimals: number;
170
+ chainId: number;
171
+ name: string;
172
+ coinKey?: CoinKey;
173
+ priceUSD?: string;
174
+ logoURI?: string;
175
+ }
176
+ export interface TokenAmount extends Token {
177
+ amount: string;
178
+ blockNumber?: number;
179
+ }
180
+ export interface Coin {
181
+ key: CoinKey;
182
+ name: string;
183
+ logoURI: string;
184
+ verified: boolean;
185
+ chains: {
186
+ [ChainId: string]: Token;
187
+ };
188
+ }
189
+ export interface ExchangeDefinition {
190
+ tool: ExchangeTools;
191
+ chains: number[];
192
+ }
193
+ export interface BridgeDefinition {
194
+ tool: BridgeTool;
195
+ fromChainId: number;
196
+ fromToken: Token;
197
+ toChainId: number;
198
+ toToken: Token;
199
+ maximumTransfer: string;
200
+ minimumTransfer: string;
201
+ swapFeeRate: string;
202
+ swapFeeMinimum: string;
203
+ swapFeeMaximum: string;
204
+ }
package/dist/base.js ADDED
@@ -0,0 +1,174 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ChainId = exports.ChainKey = exports.CoinKey = void 0;
4
+ var CoinKey;
5
+ (function (CoinKey) {
6
+ CoinKey["ETH"] = "ETH";
7
+ CoinKey["MATIC"] = "MATIC";
8
+ CoinKey["BNB"] = "BNB";
9
+ CoinKey["DAI"] = "XDAI";
10
+ CoinKey["FTM"] = "FTM";
11
+ CoinKey["OKT"] = "OKT";
12
+ CoinKey["AVAX"] = "AVAX";
13
+ CoinKey["HT"] = "HT";
14
+ CoinKey["ONE"] = "ONE";
15
+ CoinKey["FSN"] = "FSN";
16
+ CoinKey["MOVR"] = "MOVR";
17
+ CoinKey["EXP"] = "EXP";
18
+ CoinKey["TCH"] = "TCH";
19
+ CoinKey["UBQ"] = "UBQ";
20
+ CoinKey["META"] = "META";
21
+ CoinKey["DIODE"] = "DIODE";
22
+ CoinKey["CELO"] = "CELO";
23
+ CoinKey["FUSE"] = "FUSE";
24
+ CoinKey["TLOS"] = "TLOS";
25
+ CoinKey["CRO"] = "CRO";
26
+ CoinKey["SHIB"] = "SHIB";
27
+ CoinKey["L1"] = "L1";
28
+ CoinKey["RBTC"] = "RBTC";
29
+ CoinKey["TBG"] = "TBG";
30
+ CoinKey["VLX"] = "VLX";
31
+ CoinKey["GLMR"] = "GLMR";
32
+ CoinKey["METIS"] = "METIS";
33
+ CoinKey["SOL"] = "SOL";
34
+ CoinKey["EVM"] = "EVM";
35
+ // Stable coins
36
+ CoinKey["USDT"] = "USDT";
37
+ CoinKey["USDC"] = "USDC";
38
+ // Testnet
39
+ CoinKey["TEST"] = "TEST";
40
+ CoinKey["KAL"] = "KAL";
41
+ CoinKey["SDIODE"] = "SDIODE";
42
+ CoinKey["SPARK"] = "SPARK";
43
+ CoinKey["TRBTC"] = "TRBTC";
44
+ // Other tokens
45
+ CoinKey["WBTC"] = "WBTC";
46
+ CoinKey["WETH"] = "WETH";
47
+ CoinKey["SUSHI"] = "SUSHI";
48
+ CoinKey["DODO"] = "DODO";
49
+ CoinKey["MCB"] = "MCB";
50
+ CoinKey["CELR"] = "CELR";
51
+ CoinKey["IF"] = "IF";
52
+ })(CoinKey = exports.CoinKey || (exports.CoinKey = {}));
53
+ var ChainKey;
54
+ (function (ChainKey) {
55
+ ChainKey["ETH"] = "eth";
56
+ ChainKey["POL"] = "pol";
57
+ ChainKey["BSC"] = "bsc";
58
+ ChainKey["DAI"] = "dai";
59
+ ChainKey["OKT"] = "okt";
60
+ ChainKey["FTM"] = "ftm";
61
+ ChainKey["AVA"] = "ava";
62
+ ChainKey["ARB"] = "arb";
63
+ ChainKey["HEC"] = "hec";
64
+ ChainKey["OPT"] = "opt";
65
+ ChainKey["ONE"] = "one";
66
+ ChainKey["FSN"] = "fsn";
67
+ ChainKey["MOR"] = "mor";
68
+ ChainKey["EXP"] = "exp";
69
+ ChainKey["TCH"] = "tch";
70
+ ChainKey["UBQ"] = "ubq";
71
+ ChainKey["MET"] = "met";
72
+ ChainKey["DIO"] = "dio";
73
+ ChainKey["CEL"] = "cel";
74
+ ChainKey["FUS"] = "fus";
75
+ ChainKey["TLO"] = "tlo";
76
+ ChainKey["CRO"] = "cro";
77
+ ChainKey["BOB"] = "bob";
78
+ ChainKey["SHI"] = "shi";
79
+ ChainKey["GL1"] = "gl1";
80
+ ChainKey["RSK"] = "rsk";
81
+ ChainKey["TBW"] = "tbw";
82
+ ChainKey["VEL"] = "vel";
83
+ ChainKey["MOO"] = "moo";
84
+ ChainKey["MAM"] = "mam";
85
+ ChainKey["AUR"] = "aur";
86
+ ChainKey["TER"] = "ter";
87
+ ChainKey["OAS"] = "oas";
88
+ ChainKey["SOL"] = "sol";
89
+ ChainKey["EVM"] = "evm";
90
+ // Testnets
91
+ ChainKey["ROP"] = "rop";
92
+ ChainKey["RIN"] = "rin";
93
+ ChainKey["GOR"] = "gor";
94
+ ChainKey["METT"] = "mett";
95
+ ChainKey["DIOT"] = "diot";
96
+ ChainKey["KOV"] = "kov";
97
+ ChainKey["MUM"] = "mum";
98
+ ChainKey["ARBT"] = "arbt";
99
+ ChainKey["OPTT"] = "optt";
100
+ ChainKey["BSCT"] = "bsct";
101
+ ChainKey["HECT"] = "hect";
102
+ ChainKey["ONET"] = "onet";
103
+ ChainKey["FUST"] = "fust";
104
+ ChainKey["TLOT"] = "tlot";
105
+ ChainKey["RSKT"] = "rskt";
106
+ ChainKey["SOLT"] = "solt";
107
+ ChainKey["OAST"] = "oast";
108
+ ChainKey["TERT"] = "tert";
109
+ ChainKey["AVAT"] = "avat";
110
+ ChainKey["EVMT"] = "evmt";
111
+ ChainKey["MORT"] = "mort";
112
+ ChainKey["FTMT"] = "ftmt";
113
+ })(ChainKey = exports.ChainKey || (exports.ChainKey = {}));
114
+ var ChainId;
115
+ (function (ChainId) {
116
+ ChainId[ChainId["ETH"] = 1] = "ETH";
117
+ ChainId[ChainId["POL"] = 137] = "POL";
118
+ ChainId[ChainId["BSC"] = 56] = "BSC";
119
+ ChainId[ChainId["DAI"] = 100] = "DAI";
120
+ ChainId[ChainId["OKT"] = 66] = "OKT";
121
+ ChainId[ChainId["FTM"] = 250] = "FTM";
122
+ ChainId[ChainId["AVA"] = 43114] = "AVA";
123
+ ChainId[ChainId["ARB"] = 42161] = "ARB";
124
+ ChainId[ChainId["HEC"] = 128] = "HEC";
125
+ ChainId[ChainId["OPT"] = 10] = "OPT";
126
+ ChainId[ChainId["ONE"] = 1666600000] = "ONE";
127
+ ChainId[ChainId["FSN"] = 32659] = "FSN";
128
+ ChainId[ChainId["MOR"] = 1285] = "MOR";
129
+ ChainId[ChainId["EXP"] = 2] = "EXP";
130
+ ChainId[ChainId["TCH"] = 7] = "TCH";
131
+ ChainId[ChainId["UBQ"] = 8] = "UBQ";
132
+ ChainId[ChainId["MET"] = 11] = "MET";
133
+ ChainId[ChainId["DIO"] = 15] = "DIO";
134
+ ChainId[ChainId["CEL"] = 42220] = "CEL";
135
+ ChainId[ChainId["FUS"] = 122] = "FUS";
136
+ ChainId[ChainId["TLO"] = 40] = "TLO";
137
+ ChainId[ChainId["CRO"] = 25] = "CRO";
138
+ ChainId[ChainId["BOB"] = 288] = "BOB";
139
+ ChainId[ChainId["SHI"] = 27] = "SHI";
140
+ ChainId[ChainId["GL1"] = 29] = "GL1";
141
+ ChainId[ChainId["RSK"] = 30] = "RSK";
142
+ ChainId[ChainId["TBW"] = 35] = "TBW";
143
+ ChainId[ChainId["VEL"] = 106] = "VEL";
144
+ ChainId[ChainId["MOO"] = 1284] = "MOO";
145
+ ChainId[ChainId["MAM"] = 1088] = "MAM";
146
+ ChainId[ChainId["AUR"] = 1313161554] = "AUR";
147
+ ChainId[ChainId["SOL"] = 1151111081099710] = "SOL";
148
+ ChainId[ChainId["TER"] = 1161011141099710] = "TER";
149
+ ChainId[ChainId["OAS"] = 111971151099710] = "OAS";
150
+ ChainId[ChainId["EVM"] = 9001] = "EVM";
151
+ // Testnets
152
+ ChainId[ChainId["ROP"] = 3] = "ROP";
153
+ ChainId[ChainId["RIN"] = 4] = "RIN";
154
+ ChainId[ChainId["GOR"] = 5] = "GOR";
155
+ ChainId[ChainId["METT"] = 12] = "METT";
156
+ ChainId[ChainId["DIOT"] = 13] = "DIOT";
157
+ ChainId[ChainId["KOV"] = 42] = "KOV";
158
+ ChainId[ChainId["MUM"] = 80001] = "MUM";
159
+ ChainId[ChainId["ARBT"] = 421611] = "ARBT";
160
+ ChainId[ChainId["OPTT"] = 69] = "OPTT";
161
+ ChainId[ChainId["BSCT"] = 97] = "BSCT";
162
+ ChainId[ChainId["HECT"] = 256] = "HECT";
163
+ ChainId[ChainId["ONET"] = 1666700000] = "ONET";
164
+ ChainId[ChainId["FUST"] = 123] = "FUST";
165
+ ChainId[ChainId["TLOT"] = 41] = "TLOT";
166
+ ChainId[ChainId["RSKT"] = 31] = "RSKT";
167
+ ChainId[ChainId["SOLT"] = 1151111081161011] = "SOLT";
168
+ ChainId[ChainId["TERT"] = 1161011141161011] = "TERT";
169
+ ChainId[ChainId["OAST"] = 1119711511610111] = "OAST";
170
+ ChainId[ChainId["AVAT"] = 43113] = "AVAT";
171
+ ChainId[ChainId["EVMT"] = 9000] = "EVMT";
172
+ ChainId[ChainId["MORT"] = 1287] = "MORT";
173
+ ChainId[ChainId["FTMT"] = 4002] = "FTMT";
174
+ })(ChainId = exports.ChainId || (exports.ChainId = {}));
@@ -0,0 +1,34 @@
1
+ /**
2
+ * @deprecated
3
+ * These values are now obtainable from the LI.FI API
4
+ */
5
+ export declare enum BridgeTool {
6
+ connext = "connext",
7
+ hop = "hop",
8
+ multichain = "multichain",
9
+ cbridge = "cbridge",
10
+ hyphen = "hyphen",
11
+ polygon = "polygon",
12
+ arbitrum = "arbitrum",
13
+ avalanche = "avalanche",
14
+ optimism = "optimism",
15
+ across = "across",
16
+ portal = "portal",
17
+ stargate = "stargate"
18
+ }
19
+ export interface Bridge {
20
+ key: BridgeTool;
21
+ name: string;
22
+ logoURI: string;
23
+ bridgeUrl?: string;
24
+ discordUrl?: string;
25
+ supportUrl?: string;
26
+ docsUrl?: string;
27
+ explorerUrl?: string;
28
+ analyticsUrl?: string;
29
+ }
30
+ /**
31
+ * @deprecated
32
+ * These values are now obtainable from the LI.FI API
33
+ */
34
+ export declare const supportedBridges: Array<Bridge>;