@lifi/types 1.7.0 → 1.9.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 +8 -0
- package/dist/api.d.ts +24 -0
- package/dist/base.d.ts +4 -0
- package/dist/base.js +4 -0
- package/dist/chains/supported.chains.js +24 -1
- package/dist/cjs/api.d.ts +24 -0
- package/dist/cjs/base.d.ts +4 -0
- package/dist/cjs/base.js +4 -0
- package/dist/cjs/chains/supported.chains.js +24 -1
- package/dist/cjs/coins.js +60 -5
- package/dist/cjs/exchanges.js +77 -0
- package/dist/cjs/multicall.js +16 -4
- package/dist/coins.js +60 -5
- package/dist/exchanges.js +77 -0
- package/dist/multicall.js +16 -4
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,14 @@
|
|
|
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
|
+
## [1.8.0](https://github.com/lifinance/types/compare/v1.7.0...v1.8.0) (2022-09-30)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* add Swapr on Gnosis and OKCSwap on OKT ([#97](https://github.com/lifinance/types/issues/97)) ([9abab9b](https://github.com/lifinance/types/commit/9abab9bbe500355de07b61bf8cdb7100e868cf76))
|
|
11
|
+
* add Wagyu Dex on Velas ([#98](https://github.com/lifinance/types/issues/98)) ([d3201a2](https://github.com/lifinance/types/commit/d3201a2c8eaf4a385d79333c3b0ce4923ac58ead))
|
|
12
|
+
|
|
5
13
|
## [1.7.0](https://github.com/lifinance/types/compare/v1.6.0...v1.7.0) (2022-09-13)
|
|
6
14
|
|
|
7
15
|
|
package/dist/api.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { TransactionRequest } from '@ethersproject/providers';
|
|
1
2
|
import { BridgeDefinition, Chain, ChainId, ExchangeDefinition, Step, Token } from '.';
|
|
2
3
|
import { ToolError } from './apiErrors';
|
|
3
4
|
import { Bridge } from './bridges';
|
|
@@ -201,6 +202,27 @@ export declare type TokensResponse = {
|
|
|
201
202
|
export declare type RequestOptions = {
|
|
202
203
|
signal?: AbortSignal;
|
|
203
204
|
};
|
|
205
|
+
export interface Integrator {
|
|
206
|
+
integratorId: string;
|
|
207
|
+
feeBalances: FeeBalance[];
|
|
208
|
+
}
|
|
209
|
+
export declare type FeeBalance = {
|
|
210
|
+
chainId: ChainId;
|
|
211
|
+
tokenBalances: TokenBalance[];
|
|
212
|
+
};
|
|
213
|
+
export declare type TokenBalance = {
|
|
214
|
+
token: Token;
|
|
215
|
+
amount: string;
|
|
216
|
+
amountUsd: string;
|
|
217
|
+
};
|
|
218
|
+
export interface IntegratorWithdrawalRequest {
|
|
219
|
+
address: string;
|
|
220
|
+
chainId: string;
|
|
221
|
+
tokens: string[] | undefined;
|
|
222
|
+
}
|
|
223
|
+
export interface IntegratorWithdrawalTransactionResponse {
|
|
224
|
+
transactionRequest: TransactionRequest;
|
|
225
|
+
}
|
|
204
226
|
export declare class LifiAPI {
|
|
205
227
|
getRoutes(request: RoutesRequest): Promise<RoutesResponse>;
|
|
206
228
|
getPossibilities(request?: PossibilitiesRequest): Promise<PossibilitiesResponse>;
|
|
@@ -215,5 +237,7 @@ export declare class LifiAPI {
|
|
|
215
237
|
getTools(request: ToolsRequest): Promise<ToolsResponse>;
|
|
216
238
|
getChains(): ChainsResponse;
|
|
217
239
|
getConnections(request: ConnectionsRequest): Promise<ConnectionsResponse>;
|
|
240
|
+
getIntegratorData(integratorAddress: string): Promise<Integrator>;
|
|
241
|
+
getIntegratorWithdrawalTransaction(request: IntegratorWithdrawalRequest): Promise<IntegratorWithdrawalTransactionResponse>;
|
|
218
242
|
}
|
|
219
243
|
export {};
|
package/dist/base.d.ts
CHANGED
|
@@ -81,6 +81,7 @@ export declare enum ChainKey {
|
|
|
81
81
|
OAS = "oas",
|
|
82
82
|
SOL = "sol",
|
|
83
83
|
EVM = "evm",
|
|
84
|
+
ARN = "arn",
|
|
84
85
|
ROP = "rop",
|
|
85
86
|
RIN = "rin",
|
|
86
87
|
GOR = "gor",
|
|
@@ -89,6 +90,7 @@ export declare enum ChainKey {
|
|
|
89
90
|
KOV = "kov",
|
|
90
91
|
MUM = "mum",
|
|
91
92
|
ARBT = "arbt",
|
|
93
|
+
ARBG = "arbg",
|
|
92
94
|
OPTT = "optt",
|
|
93
95
|
OPTG = "optg",
|
|
94
96
|
BSCT = "bsct",
|
|
@@ -141,6 +143,7 @@ export declare enum ChainId {
|
|
|
141
143
|
TER = 1161011141099710,
|
|
142
144
|
OAS = 111971151099710,
|
|
143
145
|
EVM = 9001,
|
|
146
|
+
ARN = 42170,
|
|
144
147
|
ROP = 3,
|
|
145
148
|
RIN = 4,
|
|
146
149
|
GOR = 5,
|
|
@@ -149,6 +152,7 @@ export declare enum ChainId {
|
|
|
149
152
|
KOV = 42,
|
|
150
153
|
MUM = 80001,
|
|
151
154
|
ARBT = 421611,
|
|
155
|
+
ARBG = 421613,
|
|
152
156
|
OPTT = 69,
|
|
153
157
|
OPTG = 420,
|
|
154
158
|
BSCT = 97,
|
package/dist/base.js
CHANGED
|
@@ -84,6 +84,7 @@ export var ChainKey;
|
|
|
84
84
|
ChainKey["OAS"] = "oas";
|
|
85
85
|
ChainKey["SOL"] = "sol";
|
|
86
86
|
ChainKey["EVM"] = "evm";
|
|
87
|
+
ChainKey["ARN"] = "arn";
|
|
87
88
|
// Testnets
|
|
88
89
|
ChainKey["ROP"] = "rop";
|
|
89
90
|
ChainKey["RIN"] = "rin";
|
|
@@ -93,6 +94,7 @@ export var ChainKey;
|
|
|
93
94
|
ChainKey["KOV"] = "kov";
|
|
94
95
|
ChainKey["MUM"] = "mum";
|
|
95
96
|
ChainKey["ARBT"] = "arbt";
|
|
97
|
+
ChainKey["ARBG"] = "arbg";
|
|
96
98
|
ChainKey["OPTT"] = "optt";
|
|
97
99
|
ChainKey["OPTG"] = "optg";
|
|
98
100
|
ChainKey["BSCT"] = "bsct";
|
|
@@ -146,6 +148,7 @@ export var ChainId;
|
|
|
146
148
|
ChainId[ChainId["TER"] = 1161011141099710] = "TER";
|
|
147
149
|
ChainId[ChainId["OAS"] = 111971151099710] = "OAS";
|
|
148
150
|
ChainId[ChainId["EVM"] = 9001] = "EVM";
|
|
151
|
+
ChainId[ChainId["ARN"] = 42170] = "ARN";
|
|
149
152
|
// Testnets
|
|
150
153
|
ChainId[ChainId["ROP"] = 3] = "ROP";
|
|
151
154
|
ChainId[ChainId["RIN"] = 4] = "RIN";
|
|
@@ -155,6 +158,7 @@ export var ChainId;
|
|
|
155
158
|
ChainId[ChainId["KOV"] = 42] = "KOV";
|
|
156
159
|
ChainId[ChainId["MUM"] = 80001] = "MUM";
|
|
157
160
|
ChainId[ChainId["ARBT"] = 421611] = "ARBT";
|
|
161
|
+
ChainId[ChainId["ARBG"] = 421613] = "ARBG";
|
|
158
162
|
ChainId[ChainId["OPTT"] = 69] = "OPTT";
|
|
159
163
|
ChainId[ChainId["OPTG"] = 420] = "OPTG";
|
|
160
164
|
ChainId[ChainId["BSCT"] = 97] = "BSCT";
|
|
@@ -682,6 +682,8 @@ export const supportedEVMChains = [
|
|
|
682
682
|
id: 106,
|
|
683
683
|
mainnet: true,
|
|
684
684
|
multicallAddress: multicallAddresses[ChainId.VEL],
|
|
685
|
+
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/velas.png',
|
|
686
|
+
faucetUrls: ['https://stakely.io/faucet/velas-vlx'],
|
|
685
687
|
metamask: {
|
|
686
688
|
chainId: prefixChainId(106),
|
|
687
689
|
blockExplorerUrls: ['https://evmexplorer.velas.com/'],
|
|
@@ -958,6 +960,28 @@ export const supportedEVMChains = [
|
|
|
958
960
|
rpcUrls: ['https://rinkeby.arbitrum.io/rpc'],
|
|
959
961
|
},
|
|
960
962
|
},
|
|
963
|
+
{
|
|
964
|
+
key: ChainKey.ARBG,
|
|
965
|
+
chainType: ChainType.EVM,
|
|
966
|
+
name: 'Arbitrum Görli',
|
|
967
|
+
coin: CoinKey.ETH,
|
|
968
|
+
id: 421613,
|
|
969
|
+
mainnet: false,
|
|
970
|
+
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/arbitrum_test.png',
|
|
971
|
+
faucetUrls: ['https://bridge.arbitrum.io/'],
|
|
972
|
+
multicallAddress: multicallAddresses[ChainId.ARBG],
|
|
973
|
+
metamask: {
|
|
974
|
+
chainId: prefixChainId(421613),
|
|
975
|
+
blockExplorerUrls: ['https://goerli-rollup-explorer.arbitrum.io'],
|
|
976
|
+
chainName: 'Arbitrum Görli',
|
|
977
|
+
nativeCurrency: {
|
|
978
|
+
name: 'AGOR',
|
|
979
|
+
symbol: 'AGOR',
|
|
980
|
+
decimals: 18,
|
|
981
|
+
},
|
|
982
|
+
rpcUrls: ['https://goerli-rollup.arbitrum.io/rpc/ '],
|
|
983
|
+
},
|
|
984
|
+
},
|
|
961
985
|
// 69 - Optimistic Ethereum (Kovan)
|
|
962
986
|
{
|
|
963
987
|
key: ChainKey.OPTT,
|
|
@@ -1172,7 +1196,6 @@ export const supportedEVMChains = [
|
|
|
1172
1196
|
// FTMT = 4002,
|
|
1173
1197
|
// https://faucet.buni.finance/
|
|
1174
1198
|
// kucoin faucet: https://stakely.io/faucet/kucoin-kcc-kcs
|
|
1175
|
-
// Velas faucet: https://stakely.io/faucet/velas-vlx
|
|
1176
1199
|
];
|
|
1177
1200
|
export const supportedSolanaChains = [
|
|
1178
1201
|
{
|
package/dist/cjs/api.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { TransactionRequest } from '@ethersproject/providers';
|
|
1
2
|
import { BridgeDefinition, Chain, ChainId, ExchangeDefinition, Step, Token } from '.';
|
|
2
3
|
import { ToolError } from './apiErrors';
|
|
3
4
|
import { Bridge } from './bridges';
|
|
@@ -201,6 +202,27 @@ export declare type TokensResponse = {
|
|
|
201
202
|
export declare type RequestOptions = {
|
|
202
203
|
signal?: AbortSignal;
|
|
203
204
|
};
|
|
205
|
+
export interface Integrator {
|
|
206
|
+
integratorId: string;
|
|
207
|
+
feeBalances: FeeBalance[];
|
|
208
|
+
}
|
|
209
|
+
export declare type FeeBalance = {
|
|
210
|
+
chainId: ChainId;
|
|
211
|
+
tokenBalances: TokenBalance[];
|
|
212
|
+
};
|
|
213
|
+
export declare type TokenBalance = {
|
|
214
|
+
token: Token;
|
|
215
|
+
amount: string;
|
|
216
|
+
amountUsd: string;
|
|
217
|
+
};
|
|
218
|
+
export interface IntegratorWithdrawalRequest {
|
|
219
|
+
address: string;
|
|
220
|
+
chainId: string;
|
|
221
|
+
tokens: string[] | undefined;
|
|
222
|
+
}
|
|
223
|
+
export interface IntegratorWithdrawalTransactionResponse {
|
|
224
|
+
transactionRequest: TransactionRequest;
|
|
225
|
+
}
|
|
204
226
|
export declare class LifiAPI {
|
|
205
227
|
getRoutes(request: RoutesRequest): Promise<RoutesResponse>;
|
|
206
228
|
getPossibilities(request?: PossibilitiesRequest): Promise<PossibilitiesResponse>;
|
|
@@ -215,5 +237,7 @@ export declare class LifiAPI {
|
|
|
215
237
|
getTools(request: ToolsRequest): Promise<ToolsResponse>;
|
|
216
238
|
getChains(): ChainsResponse;
|
|
217
239
|
getConnections(request: ConnectionsRequest): Promise<ConnectionsResponse>;
|
|
240
|
+
getIntegratorData(integratorAddress: string): Promise<Integrator>;
|
|
241
|
+
getIntegratorWithdrawalTransaction(request: IntegratorWithdrawalRequest): Promise<IntegratorWithdrawalTransactionResponse>;
|
|
218
242
|
}
|
|
219
243
|
export {};
|
package/dist/cjs/base.d.ts
CHANGED
|
@@ -81,6 +81,7 @@ export declare enum ChainKey {
|
|
|
81
81
|
OAS = "oas",
|
|
82
82
|
SOL = "sol",
|
|
83
83
|
EVM = "evm",
|
|
84
|
+
ARN = "arn",
|
|
84
85
|
ROP = "rop",
|
|
85
86
|
RIN = "rin",
|
|
86
87
|
GOR = "gor",
|
|
@@ -89,6 +90,7 @@ export declare enum ChainKey {
|
|
|
89
90
|
KOV = "kov",
|
|
90
91
|
MUM = "mum",
|
|
91
92
|
ARBT = "arbt",
|
|
93
|
+
ARBG = "arbg",
|
|
92
94
|
OPTT = "optt",
|
|
93
95
|
OPTG = "optg",
|
|
94
96
|
BSCT = "bsct",
|
|
@@ -141,6 +143,7 @@ export declare enum ChainId {
|
|
|
141
143
|
TER = 1161011141099710,
|
|
142
144
|
OAS = 111971151099710,
|
|
143
145
|
EVM = 9001,
|
|
146
|
+
ARN = 42170,
|
|
144
147
|
ROP = 3,
|
|
145
148
|
RIN = 4,
|
|
146
149
|
GOR = 5,
|
|
@@ -149,6 +152,7 @@ export declare enum ChainId {
|
|
|
149
152
|
KOV = 42,
|
|
150
153
|
MUM = 80001,
|
|
151
154
|
ARBT = 421611,
|
|
155
|
+
ARBG = 421613,
|
|
152
156
|
OPTT = 69,
|
|
153
157
|
OPTG = 420,
|
|
154
158
|
BSCT = 97,
|
package/dist/cjs/base.js
CHANGED
|
@@ -87,6 +87,7 @@ var ChainKey;
|
|
|
87
87
|
ChainKey["OAS"] = "oas";
|
|
88
88
|
ChainKey["SOL"] = "sol";
|
|
89
89
|
ChainKey["EVM"] = "evm";
|
|
90
|
+
ChainKey["ARN"] = "arn";
|
|
90
91
|
// Testnets
|
|
91
92
|
ChainKey["ROP"] = "rop";
|
|
92
93
|
ChainKey["RIN"] = "rin";
|
|
@@ -96,6 +97,7 @@ var ChainKey;
|
|
|
96
97
|
ChainKey["KOV"] = "kov";
|
|
97
98
|
ChainKey["MUM"] = "mum";
|
|
98
99
|
ChainKey["ARBT"] = "arbt";
|
|
100
|
+
ChainKey["ARBG"] = "arbg";
|
|
99
101
|
ChainKey["OPTT"] = "optt";
|
|
100
102
|
ChainKey["OPTG"] = "optg";
|
|
101
103
|
ChainKey["BSCT"] = "bsct";
|
|
@@ -149,6 +151,7 @@ var ChainId;
|
|
|
149
151
|
ChainId[ChainId["TER"] = 1161011141099710] = "TER";
|
|
150
152
|
ChainId[ChainId["OAS"] = 111971151099710] = "OAS";
|
|
151
153
|
ChainId[ChainId["EVM"] = 9001] = "EVM";
|
|
154
|
+
ChainId[ChainId["ARN"] = 42170] = "ARN";
|
|
152
155
|
// Testnets
|
|
153
156
|
ChainId[ChainId["ROP"] = 3] = "ROP";
|
|
154
157
|
ChainId[ChainId["RIN"] = 4] = "RIN";
|
|
@@ -158,6 +161,7 @@ var ChainId;
|
|
|
158
161
|
ChainId[ChainId["KOV"] = 42] = "KOV";
|
|
159
162
|
ChainId[ChainId["MUM"] = 80001] = "MUM";
|
|
160
163
|
ChainId[ChainId["ARBT"] = 421611] = "ARBT";
|
|
164
|
+
ChainId[ChainId["ARBG"] = 421613] = "ARBG";
|
|
161
165
|
ChainId[ChainId["OPTT"] = 69] = "OPTT";
|
|
162
166
|
ChainId[ChainId["OPTG"] = 420] = "OPTG";
|
|
163
167
|
ChainId[ChainId["BSCT"] = 97] = "BSCT";
|
|
@@ -685,6 +685,8 @@ exports.supportedEVMChains = [
|
|
|
685
685
|
id: 106,
|
|
686
686
|
mainnet: true,
|
|
687
687
|
multicallAddress: multicall_1.multicallAddresses[base_1.ChainId.VEL],
|
|
688
|
+
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/velas.png',
|
|
689
|
+
faucetUrls: ['https://stakely.io/faucet/velas-vlx'],
|
|
688
690
|
metamask: {
|
|
689
691
|
chainId: (0, EVMChain_1.prefixChainId)(106),
|
|
690
692
|
blockExplorerUrls: ['https://evmexplorer.velas.com/'],
|
|
@@ -961,6 +963,28 @@ exports.supportedEVMChains = [
|
|
|
961
963
|
rpcUrls: ['https://rinkeby.arbitrum.io/rpc'],
|
|
962
964
|
},
|
|
963
965
|
},
|
|
966
|
+
{
|
|
967
|
+
key: base_1.ChainKey.ARBG,
|
|
968
|
+
chainType: Chain_1.ChainType.EVM,
|
|
969
|
+
name: 'Arbitrum Görli',
|
|
970
|
+
coin: base_1.CoinKey.ETH,
|
|
971
|
+
id: 421613,
|
|
972
|
+
mainnet: false,
|
|
973
|
+
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/arbitrum_test.png',
|
|
974
|
+
faucetUrls: ['https://bridge.arbitrum.io/'],
|
|
975
|
+
multicallAddress: multicall_1.multicallAddresses[base_1.ChainId.ARBG],
|
|
976
|
+
metamask: {
|
|
977
|
+
chainId: (0, EVMChain_1.prefixChainId)(421613),
|
|
978
|
+
blockExplorerUrls: ['https://goerli-rollup-explorer.arbitrum.io'],
|
|
979
|
+
chainName: 'Arbitrum Görli',
|
|
980
|
+
nativeCurrency: {
|
|
981
|
+
name: 'AGOR',
|
|
982
|
+
symbol: 'AGOR',
|
|
983
|
+
decimals: 18,
|
|
984
|
+
},
|
|
985
|
+
rpcUrls: ['https://goerli-rollup.arbitrum.io/rpc/ '],
|
|
986
|
+
},
|
|
987
|
+
},
|
|
964
988
|
// 69 - Optimistic Ethereum (Kovan)
|
|
965
989
|
{
|
|
966
990
|
key: base_1.ChainKey.OPTT,
|
|
@@ -1175,7 +1199,6 @@ exports.supportedEVMChains = [
|
|
|
1175
1199
|
// FTMT = 4002,
|
|
1176
1200
|
// https://faucet.buni.finance/
|
|
1177
1201
|
// kucoin faucet: https://stakely.io/faucet/kucoin-kcc-kcs
|
|
1178
|
-
// Velas faucet: https://stakely.io/faucet/velas-vlx
|
|
1179
1202
|
];
|
|
1180
1203
|
exports.supportedSolanaChains = [
|
|
1181
1204
|
{
|
package/dist/cjs/coins.js
CHANGED
|
@@ -79,6 +79,11 @@ const basicCoins = [
|
|
|
79
79
|
symbol: 'AETH',
|
|
80
80
|
name: 'AETH',
|
|
81
81
|
},
|
|
82
|
+
// https://evmexplorer.velas.com/token/0x85219708c49aa701871Ad330A94EA0f41dFf24Ca
|
|
83
|
+
[base_1.ChainId.VEL]: {
|
|
84
|
+
address: '0x85219708c49aa701871ad330a94ea0f41dff24ca',
|
|
85
|
+
decimals: 18,
|
|
86
|
+
},
|
|
82
87
|
// Testnets
|
|
83
88
|
[base_1.ChainId.ROP]: {
|
|
84
89
|
address: '0x0000000000000000000000000000000000000000',
|
|
@@ -144,6 +149,11 @@ const basicCoins = [
|
|
|
144
149
|
decimals: 18,
|
|
145
150
|
name: 'Matic Token on xDai',
|
|
146
151
|
},
|
|
152
|
+
// https://evmexplorer.velas.com/token/0x6ab0B8C1a35F9F4Ce107cCBd05049CB1Dbd99Ec5/
|
|
153
|
+
[base_1.ChainId.VEL]: {
|
|
154
|
+
address: '0x6ab0b8c1a35f9f4ce107ccbd05049cb1dbd99ec5',
|
|
155
|
+
decimals: 18,
|
|
156
|
+
},
|
|
147
157
|
// Testnet
|
|
148
158
|
[base_1.ChainId.MUM]: {
|
|
149
159
|
address: '0x0000000000000000000000000000000000000000',
|
|
@@ -185,6 +195,11 @@ const basicCoins = [
|
|
|
185
195
|
address: '0xc9baa8cfdde8e328787e29b4b078abf2dadc2055',
|
|
186
196
|
decimals: 18,
|
|
187
197
|
},
|
|
198
|
+
// https://evmexplorer.velas.com/token/0x2B8e9cD44C9e09D936149549a8d207c918ecB5C4
|
|
199
|
+
[base_1.ChainId.VEL]: {
|
|
200
|
+
address: '0x2b8e9cd44c9e09d936149549a8d207c918ecb5c4',
|
|
201
|
+
decimals: 18,
|
|
202
|
+
},
|
|
188
203
|
// Testnet
|
|
189
204
|
[base_1.ChainId.BSCT]: {
|
|
190
205
|
address: '0x0000000000000000000000000000000000000000',
|
|
@@ -274,7 +289,7 @@ const basicCoins = [
|
|
|
274
289
|
name: 'Dai Stablecoin',
|
|
275
290
|
},
|
|
276
291
|
[base_1.ChainId.MOO]: {
|
|
277
|
-
address: '
|
|
292
|
+
address: '0x765277eebeca2e31912c9946eae1021199b39c61',
|
|
278
293
|
decimals: 18,
|
|
279
294
|
name: 'Dai Stablecoin',
|
|
280
295
|
},
|
|
@@ -290,6 +305,12 @@ const basicCoins = [
|
|
|
290
305
|
symbol: 'DAI',
|
|
291
306
|
name: 'Dai Stablecoin',
|
|
292
307
|
},
|
|
308
|
+
// https://evmexplorer.velas.com/token/0xE3F5a90F9cb311505cd691a46596599aA1A0AD7D
|
|
309
|
+
[base_1.ChainId.VEL]: {
|
|
310
|
+
address: '0xe3f5a90f9cb311505cd691a46596599aa1a0ad7d',
|
|
311
|
+
decimals: 18,
|
|
312
|
+
name: 'Dai Stablecoin',
|
|
313
|
+
},
|
|
293
314
|
// Testnets
|
|
294
315
|
[base_1.ChainId.ROP]: {
|
|
295
316
|
address: '0x31f42841c2db5173425b5223809cf3a38fede360',
|
|
@@ -490,7 +511,7 @@ const basicCoins = [
|
|
|
490
511
|
decimals: 6,
|
|
491
512
|
},
|
|
492
513
|
[base_1.ChainId.MOO]: {
|
|
493
|
-
address: '
|
|
514
|
+
address: '0xefaeee334f0fd1712f9a8cc375f427d9cdd40d73',
|
|
494
515
|
decimals: 6,
|
|
495
516
|
},
|
|
496
517
|
[base_1.ChainId.BOB]: {
|
|
@@ -505,6 +526,12 @@ const basicCoins = [
|
|
|
505
526
|
address: '0x4988a896b1227218e4A686fdE5EabdcAbd91571f',
|
|
506
527
|
decimals: 6,
|
|
507
528
|
},
|
|
529
|
+
// https://evmexplorer.velas.com/token/0x01445C31581c354b7338AC35693AB2001B50b9aE
|
|
530
|
+
[base_1.ChainId.VEL]: {
|
|
531
|
+
address: '0x01445c31581c354b7338ac35693ab2001b50b9ae',
|
|
532
|
+
decimals: 6,
|
|
533
|
+
name: 'Multichain USDT',
|
|
534
|
+
},
|
|
508
535
|
// Testnets
|
|
509
536
|
[base_1.ChainId.ROP]: {
|
|
510
537
|
address: '0x110a13fc3efe6a245b50102d2d79b3e76125ae83',
|
|
@@ -590,7 +617,7 @@ const basicCoins = [
|
|
|
590
617
|
decimals: 6,
|
|
591
618
|
},
|
|
592
619
|
[base_1.ChainId.MOO]: {
|
|
593
|
-
address: '
|
|
620
|
+
address: '0x818ec0a7fe18ff94269904fced6ae3dae6d6dc0b',
|
|
594
621
|
decimals: 6,
|
|
595
622
|
},
|
|
596
623
|
[base_1.ChainId.BOB]: {
|
|
@@ -605,6 +632,12 @@ const basicCoins = [
|
|
|
605
632
|
address: '0xB12BFcA5A55806AaF64E99521918A4bf0fC40802',
|
|
606
633
|
decimals: 6,
|
|
607
634
|
},
|
|
635
|
+
// https://evmexplorer.velas.com/token/0xe2C120f188eBd5389F71Cf4d9C16d05b62A58993
|
|
636
|
+
[base_1.ChainId.VEL]: {
|
|
637
|
+
address: '0xe2c120f188ebd5389f71cf4d9c16d05b62a58993',
|
|
638
|
+
decimals: 6,
|
|
639
|
+
name: 'Multichain USDC',
|
|
640
|
+
},
|
|
608
641
|
// Testnets
|
|
609
642
|
[base_1.ChainId.ROP]: {
|
|
610
643
|
address: '0x07865c6e87b9f70255377e024ace6630c1eaa37f',
|
|
@@ -722,7 +755,7 @@ const basicCoins = [
|
|
|
722
755
|
decimals: 8,
|
|
723
756
|
},
|
|
724
757
|
[base_1.ChainId.MOO]: {
|
|
725
|
-
address: '
|
|
758
|
+
address: '0x922d641a426dcffaef11680e5358f34d97d112e1',
|
|
726
759
|
decimals: 8,
|
|
727
760
|
},
|
|
728
761
|
[base_1.ChainId.BOB]: {
|
|
@@ -805,7 +838,7 @@ const basicCoins = [
|
|
|
805
838
|
decimals: 18,
|
|
806
839
|
},
|
|
807
840
|
[base_1.ChainId.MOO]: {
|
|
808
|
-
address: '
|
|
841
|
+
address: '0xfA9343C3897324496A05fC75abeD6bAC29f8A40f',
|
|
809
842
|
decimals: 18,
|
|
810
843
|
},
|
|
811
844
|
[base_1.ChainId.BOB]: {
|
|
@@ -1070,6 +1103,19 @@ const basicCoins = [
|
|
|
1070
1103
|
},
|
|
1071
1104
|
},
|
|
1072
1105
|
},
|
|
1106
|
+
// > VEL
|
|
1107
|
+
{
|
|
1108
|
+
key: base_1.CoinKey.VLX,
|
|
1109
|
+
name: 'Velas',
|
|
1110
|
+
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/tokens/vlx.png',
|
|
1111
|
+
verified: true,
|
|
1112
|
+
chains: {
|
|
1113
|
+
[base_1.ChainId.VEL]: {
|
|
1114
|
+
address: '0x0000000000000000000000000000000000000000',
|
|
1115
|
+
decimals: 18,
|
|
1116
|
+
},
|
|
1117
|
+
},
|
|
1118
|
+
},
|
|
1073
1119
|
];
|
|
1074
1120
|
exports.defaultCoins = basicCoins.map((coin) => {
|
|
1075
1121
|
var _a, _b;
|
|
@@ -1281,6 +1327,15 @@ exports.wrappedTokens = {
|
|
|
1281
1327
|
name: 'AETH',
|
|
1282
1328
|
logoURI: 'https://static.debank.com/image/aurora_token/logo_url/aurora/d61441782d4a08a7479d54aea211679e.png',
|
|
1283
1329
|
},
|
|
1330
|
+
[base_1.ChainId.VEL]: {
|
|
1331
|
+
address: '0xc579d1f3cf86749e05cd06f7ade17856c2ce3126',
|
|
1332
|
+
symbol: 'WVLX',
|
|
1333
|
+
decimals: 18,
|
|
1334
|
+
chainId: base_1.ChainId.VEL,
|
|
1335
|
+
coinKey: 'WVLX',
|
|
1336
|
+
name: 'Wrapped VLX',
|
|
1337
|
+
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/tokens/vlx.png',
|
|
1338
|
+
},
|
|
1284
1339
|
// Testnets
|
|
1285
1340
|
[base_1.ChainId.ROP]: {
|
|
1286
1341
|
// https://ropsten.etherscan.io/token/0xc778417e063141139fce010982780140aa0cd5ab
|
package/dist/cjs/exchanges.js
CHANGED
|
@@ -281,6 +281,26 @@ exports.supportedExchanges = [
|
|
|
281
281
|
(0, _1.findDefaultToken)(_1.CoinKey.SUSHI, _1.ChainId.DAI),
|
|
282
282
|
],
|
|
283
283
|
},
|
|
284
|
+
{
|
|
285
|
+
key: 'swapr-dai',
|
|
286
|
+
name: 'Swapr',
|
|
287
|
+
chainId: _1.ChainId.DAI,
|
|
288
|
+
webUrl: 'https://swapr.eth.limo/',
|
|
289
|
+
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/swapr.png',
|
|
290
|
+
tokenlistUrl: 'https://gist.githubusercontent.com/mathiasmoeller/03525afe098af3d45b9aff1f8a04acd9/raw/76d9b818659fe1fe90c8f0f0edc36f23160d4dc1/swapr-token-list.json',
|
|
291
|
+
routerAddress: '0xE43e60736b1cb4a75ad25240E2f9a62Bff65c0C0',
|
|
292
|
+
factoryAddress: '0x5D48C95AdfFD4B40c1AAADc4e08fc44117E02179',
|
|
293
|
+
initCodeHash: '0xd306a548755b9295ee49cc729e13ca4a45e00199bbd890fa146da43a50571776',
|
|
294
|
+
baseTokens: [
|
|
295
|
+
(0, _1.findWrappedGasOnChain)(_1.ChainId.DAI),
|
|
296
|
+
{
|
|
297
|
+
address: '0x532801ed6f82fffd2dab70a19fc2d7b2772c4f4b',
|
|
298
|
+
symbol: 'SWPR',
|
|
299
|
+
decimals: 18,
|
|
300
|
+
chainId: _1.ChainId.DAI,
|
|
301
|
+
},
|
|
302
|
+
],
|
|
303
|
+
},
|
|
284
304
|
// 250 - Fantom
|
|
285
305
|
{
|
|
286
306
|
key: 'spookyswap-ftm',
|
|
@@ -641,6 +661,31 @@ exports.supportedExchanges = [
|
|
|
641
661
|
},
|
|
642
662
|
],
|
|
643
663
|
},
|
|
664
|
+
{
|
|
665
|
+
key: 'okcswap-okt',
|
|
666
|
+
name: 'OKCSwap',
|
|
667
|
+
chainId: _1.ChainId.OKT,
|
|
668
|
+
webUrl: 'https://www.okx.com/okc/swap',
|
|
669
|
+
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/okx.png',
|
|
670
|
+
tokenlistUrl: 'https://www.okx.com/okc/openapi/swap/tokens',
|
|
671
|
+
routerAddress: '0xc97b81B8a38b9146010Df85f1Ac714aFE1554343',
|
|
672
|
+
factoryAddress: '0x7b9F0a56cA7D20A44f603C03C6f45Db95b31e539',
|
|
673
|
+
initCodeHash: '0x00c49b7a1b728b8f0185f09df0b8487b8f4fd0fc3b133cb58039e67a16acb657',
|
|
674
|
+
baseTokens: [
|
|
675
|
+
{
|
|
676
|
+
address: '0x8f8526dbfd6e38e3d8307702ca8469bae6c56c15',
|
|
677
|
+
symbol: 'WOKT',
|
|
678
|
+
decimals: 18,
|
|
679
|
+
chainId: _1.ChainId.OKT,
|
|
680
|
+
},
|
|
681
|
+
{
|
|
682
|
+
address: '0x382bB369d343125BfB2117af9c149795C6C65C50',
|
|
683
|
+
symbol: _1.CoinKey.USDT,
|
|
684
|
+
decimals: 18,
|
|
685
|
+
chainId: _1.ChainId.OKT,
|
|
686
|
+
},
|
|
687
|
+
],
|
|
688
|
+
},
|
|
644
689
|
// 25 - Cronos Mainnet Beta
|
|
645
690
|
{
|
|
646
691
|
key: 'cronaswap-cro',
|
|
@@ -1052,6 +1097,38 @@ exports.supportedExchanges = [
|
|
|
1052
1097
|
initCodeHash: '0xe18a34eb0e04b04f7a0ac29a6e80748dca96319b42c54d679cb821dca90c6303',
|
|
1053
1098
|
baseTokens: [(0, _1.findWrappedGasOnChain)(_1.ChainId.ONET)],
|
|
1054
1099
|
},
|
|
1100
|
+
// 106 Velas
|
|
1101
|
+
{
|
|
1102
|
+
key: 'wagyuswap-vel',
|
|
1103
|
+
name: 'Wagyuswap',
|
|
1104
|
+
chainId: _1.ChainId.VEL,
|
|
1105
|
+
webUrl: 'https://exchange.wagyuswap.app',
|
|
1106
|
+
tokenlistUrl: 'https://github.com/wagyuswapapp/wagyu-frontend/blob/wagyu/src/config/constants/tokenLists/pancake-default.tokenlist.json',
|
|
1107
|
+
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/wagyu.png',
|
|
1108
|
+
routerAddress: '0x3D1c58B6d4501E34DF37Cf0f664A58059a188F00',
|
|
1109
|
+
factoryAddress: '0x69f3212344A38b35844cCe4864C2af9c717F35e3',
|
|
1110
|
+
initCodeHash: '0x3f7eace9f1c10ecce400030e19a86fd03c98c3770ce239a9cdef3b33fb40e933',
|
|
1111
|
+
baseTokens: [
|
|
1112
|
+
{
|
|
1113
|
+
address: '0xabf26902fd7b624e0db40d31171ea9dddf078351',
|
|
1114
|
+
symbol: 'WAG',
|
|
1115
|
+
decimals: 18,
|
|
1116
|
+
chainId: _1.ChainId.VEL,
|
|
1117
|
+
},
|
|
1118
|
+
{
|
|
1119
|
+
symbol: 'WVLX',
|
|
1120
|
+
address: '0xc579d1f3cf86749e05cd06f7ade17856c2ce3126',
|
|
1121
|
+
decimals: 18,
|
|
1122
|
+
chainId: _1.ChainId.VEL,
|
|
1123
|
+
},
|
|
1124
|
+
{
|
|
1125
|
+
symbol: 'ASTRO',
|
|
1126
|
+
address: '0x72eb7ca07399ec402c5b7aa6a65752b6a1dc0c27',
|
|
1127
|
+
decimals: 18,
|
|
1128
|
+
chainId: _1.ChainId.VEL,
|
|
1129
|
+
},
|
|
1130
|
+
],
|
|
1131
|
+
},
|
|
1055
1132
|
];
|
|
1056
1133
|
/**
|
|
1057
1134
|
* @deprecated
|
package/dist/cjs/multicall.js
CHANGED
|
@@ -7,6 +7,7 @@ const _1 = require(".");
|
|
|
7
7
|
// - https://github.com/sushiswap/sushiswap-sdk/blob/canary/src/constants/addresses.ts#L323
|
|
8
8
|
// - https://github.com/joshstevens19/ethereum-multicall#multicall-contracts
|
|
9
9
|
// '0xcA11bde05977b3631167028862bE2a173976CA11' is a Multicall3 contract
|
|
10
|
+
// export const multicallAddresses: Record<ChainId, string> = {
|
|
10
11
|
exports.multicallAddresses = {
|
|
11
12
|
// Mainnet
|
|
12
13
|
[_1.ChainId.ETH]: '0xcA11bde05977b3631167028862bE2a173976CA11',
|
|
@@ -30,17 +31,19 @@ exports.multicallAddresses = {
|
|
|
30
31
|
[_1.ChainId.MAM]: '0xcA11bde05977b3631167028862bE2a173976CA11',
|
|
31
32
|
[_1.ChainId.AUR]: '0xcA11bde05977b3631167028862bE2a173976CA11',
|
|
32
33
|
[_1.ChainId.EVM]: '0xcA11bde05977b3631167028862bE2a173976CA11',
|
|
34
|
+
[_1.ChainId.MET]: '0xcA11bde05977b3631167028862bE2a173976CA11',
|
|
35
|
+
[_1.ChainId.RSK]: '0xcA11bde05977b3631167028862bE2a173976CA11',
|
|
36
|
+
[_1.ChainId.VEL]: '0x6ede559F2Bd951777470595761672091CCD21Ac6',
|
|
37
|
+
// TODO
|
|
38
|
+
// [ChainId.ARN]: '', // TODO
|
|
33
39
|
// [ChainId.EXP]: '', // TODO
|
|
34
40
|
// [ChainId.TCH]: '', // TODO
|
|
35
41
|
// [ChainId.UBQ]: '', // TODO
|
|
36
|
-
// [ChainId.MET]: '', // TODO
|
|
37
42
|
// [ChainId.DIO]: '', // TODO
|
|
38
43
|
// [ChainId.TLO]: '', // TODO
|
|
39
44
|
// [ChainId.SHI]: '', // TODO
|
|
40
45
|
// [ChainId.GL1]: '', // TODO
|
|
41
|
-
// [ChainId.RSK]: '', // TODO
|
|
42
46
|
// [ChainId.TBW]: '', // TODO
|
|
43
|
-
// [ChainId.VEL]: '', // TODO
|
|
44
47
|
// [ChainId.PALM]: '0x0769fd68dFb93167989C6f7254cd0D766Fb2841F',
|
|
45
48
|
// [ChainId.TELOS]: '0xdDCbf776dF3dE60163066A5ddDF2277cB445E0F3',
|
|
46
49
|
// Testnet
|
|
@@ -58,10 +61,19 @@ exports.multicallAddresses = {
|
|
|
58
61
|
[_1.ChainId.EVMT]: '0xcA11bde05977b3631167028862bE2a173976CA11',
|
|
59
62
|
[_1.ChainId.MORT]: '0xcA11bde05977b3631167028862bE2a173976CA11',
|
|
60
63
|
[_1.ChainId.FTMT]: '0xcA11bde05977b3631167028862bE2a173976CA11',
|
|
64
|
+
[_1.ChainId.RSKT]: '0xcA11bde05977b3631167028862bE2a173976CA11',
|
|
65
|
+
[_1.ChainId.ARBG]: '0xcA11bde05977b3631167028862bE2a173976CA11',
|
|
66
|
+
// TODO
|
|
61
67
|
// [ChainId.METT]: '', // TODO
|
|
62
68
|
// [ChainId.DIOT]: '', // TODO
|
|
63
69
|
// [ChainId.HECT]: '', // TODO
|
|
64
70
|
// [ChainId.FUST]: '', // TODO
|
|
65
71
|
// [ChainId.TLOT]: '', // TODO
|
|
66
|
-
//
|
|
72
|
+
// none EVM
|
|
73
|
+
// [ChainId.SOL]: '', // NOT NEEDED
|
|
74
|
+
// [ChainId.TER]: '', // NOT NEEDED
|
|
75
|
+
// [ChainId.OAS]: '', // NOT NEEDED
|
|
76
|
+
// [ChainId.SOLT]: '', // NOT NEEDED
|
|
77
|
+
// [ChainId.TERT]: '', // NOT NEEDED
|
|
78
|
+
// [ChainId.OAST]: '', // NOT NEEDED
|
|
67
79
|
};
|
package/dist/coins.js
CHANGED
|
@@ -76,6 +76,11 @@ const basicCoins = [
|
|
|
76
76
|
symbol: 'AETH',
|
|
77
77
|
name: 'AETH',
|
|
78
78
|
},
|
|
79
|
+
// https://evmexplorer.velas.com/token/0x85219708c49aa701871Ad330A94EA0f41dFf24Ca
|
|
80
|
+
[ChainId.VEL]: {
|
|
81
|
+
address: '0x85219708c49aa701871ad330a94ea0f41dff24ca',
|
|
82
|
+
decimals: 18,
|
|
83
|
+
},
|
|
79
84
|
// Testnets
|
|
80
85
|
[ChainId.ROP]: {
|
|
81
86
|
address: '0x0000000000000000000000000000000000000000',
|
|
@@ -141,6 +146,11 @@ const basicCoins = [
|
|
|
141
146
|
decimals: 18,
|
|
142
147
|
name: 'Matic Token on xDai',
|
|
143
148
|
},
|
|
149
|
+
// https://evmexplorer.velas.com/token/0x6ab0B8C1a35F9F4Ce107cCBd05049CB1Dbd99Ec5/
|
|
150
|
+
[ChainId.VEL]: {
|
|
151
|
+
address: '0x6ab0b8c1a35f9f4ce107ccbd05049cb1dbd99ec5',
|
|
152
|
+
decimals: 18,
|
|
153
|
+
},
|
|
144
154
|
// Testnet
|
|
145
155
|
[ChainId.MUM]: {
|
|
146
156
|
address: '0x0000000000000000000000000000000000000000',
|
|
@@ -182,6 +192,11 @@ const basicCoins = [
|
|
|
182
192
|
address: '0xc9baa8cfdde8e328787e29b4b078abf2dadc2055',
|
|
183
193
|
decimals: 18,
|
|
184
194
|
},
|
|
195
|
+
// https://evmexplorer.velas.com/token/0x2B8e9cD44C9e09D936149549a8d207c918ecB5C4
|
|
196
|
+
[ChainId.VEL]: {
|
|
197
|
+
address: '0x2b8e9cd44c9e09d936149549a8d207c918ecb5c4',
|
|
198
|
+
decimals: 18,
|
|
199
|
+
},
|
|
185
200
|
// Testnet
|
|
186
201
|
[ChainId.BSCT]: {
|
|
187
202
|
address: '0x0000000000000000000000000000000000000000',
|
|
@@ -271,7 +286,7 @@ const basicCoins = [
|
|
|
271
286
|
name: 'Dai Stablecoin',
|
|
272
287
|
},
|
|
273
288
|
[ChainId.MOO]: {
|
|
274
|
-
address: '
|
|
289
|
+
address: '0x765277eebeca2e31912c9946eae1021199b39c61',
|
|
275
290
|
decimals: 18,
|
|
276
291
|
name: 'Dai Stablecoin',
|
|
277
292
|
},
|
|
@@ -287,6 +302,12 @@ const basicCoins = [
|
|
|
287
302
|
symbol: 'DAI',
|
|
288
303
|
name: 'Dai Stablecoin',
|
|
289
304
|
},
|
|
305
|
+
// https://evmexplorer.velas.com/token/0xE3F5a90F9cb311505cd691a46596599aA1A0AD7D
|
|
306
|
+
[ChainId.VEL]: {
|
|
307
|
+
address: '0xe3f5a90f9cb311505cd691a46596599aa1a0ad7d',
|
|
308
|
+
decimals: 18,
|
|
309
|
+
name: 'Dai Stablecoin',
|
|
310
|
+
},
|
|
290
311
|
// Testnets
|
|
291
312
|
[ChainId.ROP]: {
|
|
292
313
|
address: '0x31f42841c2db5173425b5223809cf3a38fede360',
|
|
@@ -487,7 +508,7 @@ const basicCoins = [
|
|
|
487
508
|
decimals: 6,
|
|
488
509
|
},
|
|
489
510
|
[ChainId.MOO]: {
|
|
490
|
-
address: '
|
|
511
|
+
address: '0xefaeee334f0fd1712f9a8cc375f427d9cdd40d73',
|
|
491
512
|
decimals: 6,
|
|
492
513
|
},
|
|
493
514
|
[ChainId.BOB]: {
|
|
@@ -502,6 +523,12 @@ const basicCoins = [
|
|
|
502
523
|
address: '0x4988a896b1227218e4A686fdE5EabdcAbd91571f',
|
|
503
524
|
decimals: 6,
|
|
504
525
|
},
|
|
526
|
+
// https://evmexplorer.velas.com/token/0x01445C31581c354b7338AC35693AB2001B50b9aE
|
|
527
|
+
[ChainId.VEL]: {
|
|
528
|
+
address: '0x01445c31581c354b7338ac35693ab2001b50b9ae',
|
|
529
|
+
decimals: 6,
|
|
530
|
+
name: 'Multichain USDT',
|
|
531
|
+
},
|
|
505
532
|
// Testnets
|
|
506
533
|
[ChainId.ROP]: {
|
|
507
534
|
address: '0x110a13fc3efe6a245b50102d2d79b3e76125ae83',
|
|
@@ -587,7 +614,7 @@ const basicCoins = [
|
|
|
587
614
|
decimals: 6,
|
|
588
615
|
},
|
|
589
616
|
[ChainId.MOO]: {
|
|
590
|
-
address: '
|
|
617
|
+
address: '0x818ec0a7fe18ff94269904fced6ae3dae6d6dc0b',
|
|
591
618
|
decimals: 6,
|
|
592
619
|
},
|
|
593
620
|
[ChainId.BOB]: {
|
|
@@ -602,6 +629,12 @@ const basicCoins = [
|
|
|
602
629
|
address: '0xB12BFcA5A55806AaF64E99521918A4bf0fC40802',
|
|
603
630
|
decimals: 6,
|
|
604
631
|
},
|
|
632
|
+
// https://evmexplorer.velas.com/token/0xe2C120f188eBd5389F71Cf4d9C16d05b62A58993
|
|
633
|
+
[ChainId.VEL]: {
|
|
634
|
+
address: '0xe2c120f188ebd5389f71cf4d9c16d05b62a58993',
|
|
635
|
+
decimals: 6,
|
|
636
|
+
name: 'Multichain USDC',
|
|
637
|
+
},
|
|
605
638
|
// Testnets
|
|
606
639
|
[ChainId.ROP]: {
|
|
607
640
|
address: '0x07865c6e87b9f70255377e024ace6630c1eaa37f',
|
|
@@ -719,7 +752,7 @@ const basicCoins = [
|
|
|
719
752
|
decimals: 8,
|
|
720
753
|
},
|
|
721
754
|
[ChainId.MOO]: {
|
|
722
|
-
address: '
|
|
755
|
+
address: '0x922d641a426dcffaef11680e5358f34d97d112e1',
|
|
723
756
|
decimals: 8,
|
|
724
757
|
},
|
|
725
758
|
[ChainId.BOB]: {
|
|
@@ -802,7 +835,7 @@ const basicCoins = [
|
|
|
802
835
|
decimals: 18,
|
|
803
836
|
},
|
|
804
837
|
[ChainId.MOO]: {
|
|
805
|
-
address: '
|
|
838
|
+
address: '0xfA9343C3897324496A05fC75abeD6bAC29f8A40f',
|
|
806
839
|
decimals: 18,
|
|
807
840
|
},
|
|
808
841
|
[ChainId.BOB]: {
|
|
@@ -1067,6 +1100,19 @@ const basicCoins = [
|
|
|
1067
1100
|
},
|
|
1068
1101
|
},
|
|
1069
1102
|
},
|
|
1103
|
+
// > VEL
|
|
1104
|
+
{
|
|
1105
|
+
key: CoinKey.VLX,
|
|
1106
|
+
name: 'Velas',
|
|
1107
|
+
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/tokens/vlx.png',
|
|
1108
|
+
verified: true,
|
|
1109
|
+
chains: {
|
|
1110
|
+
[ChainId.VEL]: {
|
|
1111
|
+
address: '0x0000000000000000000000000000000000000000',
|
|
1112
|
+
decimals: 18,
|
|
1113
|
+
},
|
|
1114
|
+
},
|
|
1115
|
+
},
|
|
1070
1116
|
];
|
|
1071
1117
|
export const defaultCoins = basicCoins.map((coin) => {
|
|
1072
1118
|
var _a, _b;
|
|
@@ -1278,6 +1324,15 @@ export const wrappedTokens = {
|
|
|
1278
1324
|
name: 'AETH',
|
|
1279
1325
|
logoURI: 'https://static.debank.com/image/aurora_token/logo_url/aurora/d61441782d4a08a7479d54aea211679e.png',
|
|
1280
1326
|
},
|
|
1327
|
+
[ChainId.VEL]: {
|
|
1328
|
+
address: '0xc579d1f3cf86749e05cd06f7ade17856c2ce3126',
|
|
1329
|
+
symbol: 'WVLX',
|
|
1330
|
+
decimals: 18,
|
|
1331
|
+
chainId: ChainId.VEL,
|
|
1332
|
+
coinKey: 'WVLX',
|
|
1333
|
+
name: 'Wrapped VLX',
|
|
1334
|
+
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/tokens/vlx.png',
|
|
1335
|
+
},
|
|
1281
1336
|
// Testnets
|
|
1282
1337
|
[ChainId.ROP]: {
|
|
1283
1338
|
// https://ropsten.etherscan.io/token/0xc778417e063141139fce010982780140aa0cd5ab
|
package/dist/exchanges.js
CHANGED
|
@@ -278,6 +278,26 @@ export const supportedExchanges = [
|
|
|
278
278
|
findDefaultToken(CoinKey.SUSHI, ChainId.DAI),
|
|
279
279
|
],
|
|
280
280
|
},
|
|
281
|
+
{
|
|
282
|
+
key: 'swapr-dai',
|
|
283
|
+
name: 'Swapr',
|
|
284
|
+
chainId: ChainId.DAI,
|
|
285
|
+
webUrl: 'https://swapr.eth.limo/',
|
|
286
|
+
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/swapr.png',
|
|
287
|
+
tokenlistUrl: 'https://gist.githubusercontent.com/mathiasmoeller/03525afe098af3d45b9aff1f8a04acd9/raw/76d9b818659fe1fe90c8f0f0edc36f23160d4dc1/swapr-token-list.json',
|
|
288
|
+
routerAddress: '0xE43e60736b1cb4a75ad25240E2f9a62Bff65c0C0',
|
|
289
|
+
factoryAddress: '0x5D48C95AdfFD4B40c1AAADc4e08fc44117E02179',
|
|
290
|
+
initCodeHash: '0xd306a548755b9295ee49cc729e13ca4a45e00199bbd890fa146da43a50571776',
|
|
291
|
+
baseTokens: [
|
|
292
|
+
findWrappedGasOnChain(ChainId.DAI),
|
|
293
|
+
{
|
|
294
|
+
address: '0x532801ed6f82fffd2dab70a19fc2d7b2772c4f4b',
|
|
295
|
+
symbol: 'SWPR',
|
|
296
|
+
decimals: 18,
|
|
297
|
+
chainId: ChainId.DAI,
|
|
298
|
+
},
|
|
299
|
+
],
|
|
300
|
+
},
|
|
281
301
|
// 250 - Fantom
|
|
282
302
|
{
|
|
283
303
|
key: 'spookyswap-ftm',
|
|
@@ -638,6 +658,31 @@ export const supportedExchanges = [
|
|
|
638
658
|
},
|
|
639
659
|
],
|
|
640
660
|
},
|
|
661
|
+
{
|
|
662
|
+
key: 'okcswap-okt',
|
|
663
|
+
name: 'OKCSwap',
|
|
664
|
+
chainId: ChainId.OKT,
|
|
665
|
+
webUrl: 'https://www.okx.com/okc/swap',
|
|
666
|
+
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/okx.png',
|
|
667
|
+
tokenlistUrl: 'https://www.okx.com/okc/openapi/swap/tokens',
|
|
668
|
+
routerAddress: '0xc97b81B8a38b9146010Df85f1Ac714aFE1554343',
|
|
669
|
+
factoryAddress: '0x7b9F0a56cA7D20A44f603C03C6f45Db95b31e539',
|
|
670
|
+
initCodeHash: '0x00c49b7a1b728b8f0185f09df0b8487b8f4fd0fc3b133cb58039e67a16acb657',
|
|
671
|
+
baseTokens: [
|
|
672
|
+
{
|
|
673
|
+
address: '0x8f8526dbfd6e38e3d8307702ca8469bae6c56c15',
|
|
674
|
+
symbol: 'WOKT',
|
|
675
|
+
decimals: 18,
|
|
676
|
+
chainId: ChainId.OKT,
|
|
677
|
+
},
|
|
678
|
+
{
|
|
679
|
+
address: '0x382bB369d343125BfB2117af9c149795C6C65C50',
|
|
680
|
+
symbol: CoinKey.USDT,
|
|
681
|
+
decimals: 18,
|
|
682
|
+
chainId: ChainId.OKT,
|
|
683
|
+
},
|
|
684
|
+
],
|
|
685
|
+
},
|
|
641
686
|
// 25 - Cronos Mainnet Beta
|
|
642
687
|
{
|
|
643
688
|
key: 'cronaswap-cro',
|
|
@@ -1049,6 +1094,38 @@ export const supportedExchanges = [
|
|
|
1049
1094
|
initCodeHash: '0xe18a34eb0e04b04f7a0ac29a6e80748dca96319b42c54d679cb821dca90c6303',
|
|
1050
1095
|
baseTokens: [findWrappedGasOnChain(ChainId.ONET)],
|
|
1051
1096
|
},
|
|
1097
|
+
// 106 Velas
|
|
1098
|
+
{
|
|
1099
|
+
key: 'wagyuswap-vel',
|
|
1100
|
+
name: 'Wagyuswap',
|
|
1101
|
+
chainId: ChainId.VEL,
|
|
1102
|
+
webUrl: 'https://exchange.wagyuswap.app',
|
|
1103
|
+
tokenlistUrl: 'https://github.com/wagyuswapapp/wagyu-frontend/blob/wagyu/src/config/constants/tokenLists/pancake-default.tokenlist.json',
|
|
1104
|
+
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/wagyu.png',
|
|
1105
|
+
routerAddress: '0x3D1c58B6d4501E34DF37Cf0f664A58059a188F00',
|
|
1106
|
+
factoryAddress: '0x69f3212344A38b35844cCe4864C2af9c717F35e3',
|
|
1107
|
+
initCodeHash: '0x3f7eace9f1c10ecce400030e19a86fd03c98c3770ce239a9cdef3b33fb40e933',
|
|
1108
|
+
baseTokens: [
|
|
1109
|
+
{
|
|
1110
|
+
address: '0xabf26902fd7b624e0db40d31171ea9dddf078351',
|
|
1111
|
+
symbol: 'WAG',
|
|
1112
|
+
decimals: 18,
|
|
1113
|
+
chainId: ChainId.VEL,
|
|
1114
|
+
},
|
|
1115
|
+
{
|
|
1116
|
+
symbol: 'WVLX',
|
|
1117
|
+
address: '0xc579d1f3cf86749e05cd06f7ade17856c2ce3126',
|
|
1118
|
+
decimals: 18,
|
|
1119
|
+
chainId: ChainId.VEL,
|
|
1120
|
+
},
|
|
1121
|
+
{
|
|
1122
|
+
symbol: 'ASTRO',
|
|
1123
|
+
address: '0x72eb7ca07399ec402c5b7aa6a65752b6a1dc0c27',
|
|
1124
|
+
decimals: 18,
|
|
1125
|
+
chainId: ChainId.VEL,
|
|
1126
|
+
},
|
|
1127
|
+
],
|
|
1128
|
+
},
|
|
1052
1129
|
];
|
|
1053
1130
|
/**
|
|
1054
1131
|
* @deprecated
|
package/dist/multicall.js
CHANGED
|
@@ -4,6 +4,7 @@ import { ChainId } from '.';
|
|
|
4
4
|
// - https://github.com/sushiswap/sushiswap-sdk/blob/canary/src/constants/addresses.ts#L323
|
|
5
5
|
// - https://github.com/joshstevens19/ethereum-multicall#multicall-contracts
|
|
6
6
|
// '0xcA11bde05977b3631167028862bE2a173976CA11' is a Multicall3 contract
|
|
7
|
+
// export const multicallAddresses: Record<ChainId, string> = {
|
|
7
8
|
export const multicallAddresses = {
|
|
8
9
|
// Mainnet
|
|
9
10
|
[ChainId.ETH]: '0xcA11bde05977b3631167028862bE2a173976CA11',
|
|
@@ -27,17 +28,19 @@ export const multicallAddresses = {
|
|
|
27
28
|
[ChainId.MAM]: '0xcA11bde05977b3631167028862bE2a173976CA11',
|
|
28
29
|
[ChainId.AUR]: '0xcA11bde05977b3631167028862bE2a173976CA11',
|
|
29
30
|
[ChainId.EVM]: '0xcA11bde05977b3631167028862bE2a173976CA11',
|
|
31
|
+
[ChainId.MET]: '0xcA11bde05977b3631167028862bE2a173976CA11',
|
|
32
|
+
[ChainId.RSK]: '0xcA11bde05977b3631167028862bE2a173976CA11',
|
|
33
|
+
[ChainId.VEL]: '0x6ede559F2Bd951777470595761672091CCD21Ac6',
|
|
34
|
+
// TODO
|
|
35
|
+
// [ChainId.ARN]: '', // TODO
|
|
30
36
|
// [ChainId.EXP]: '', // TODO
|
|
31
37
|
// [ChainId.TCH]: '', // TODO
|
|
32
38
|
// [ChainId.UBQ]: '', // TODO
|
|
33
|
-
// [ChainId.MET]: '', // TODO
|
|
34
39
|
// [ChainId.DIO]: '', // TODO
|
|
35
40
|
// [ChainId.TLO]: '', // TODO
|
|
36
41
|
// [ChainId.SHI]: '', // TODO
|
|
37
42
|
// [ChainId.GL1]: '', // TODO
|
|
38
|
-
// [ChainId.RSK]: '', // TODO
|
|
39
43
|
// [ChainId.TBW]: '', // TODO
|
|
40
|
-
// [ChainId.VEL]: '', // TODO
|
|
41
44
|
// [ChainId.PALM]: '0x0769fd68dFb93167989C6f7254cd0D766Fb2841F',
|
|
42
45
|
// [ChainId.TELOS]: '0xdDCbf776dF3dE60163066A5ddDF2277cB445E0F3',
|
|
43
46
|
// Testnet
|
|
@@ -55,10 +58,19 @@ export const multicallAddresses = {
|
|
|
55
58
|
[ChainId.EVMT]: '0xcA11bde05977b3631167028862bE2a173976CA11',
|
|
56
59
|
[ChainId.MORT]: '0xcA11bde05977b3631167028862bE2a173976CA11',
|
|
57
60
|
[ChainId.FTMT]: '0xcA11bde05977b3631167028862bE2a173976CA11',
|
|
61
|
+
[ChainId.RSKT]: '0xcA11bde05977b3631167028862bE2a173976CA11',
|
|
62
|
+
[ChainId.ARBG]: '0xcA11bde05977b3631167028862bE2a173976CA11',
|
|
63
|
+
// TODO
|
|
58
64
|
// [ChainId.METT]: '', // TODO
|
|
59
65
|
// [ChainId.DIOT]: '', // TODO
|
|
60
66
|
// [ChainId.HECT]: '', // TODO
|
|
61
67
|
// [ChainId.FUST]: '', // TODO
|
|
62
68
|
// [ChainId.TLOT]: '', // TODO
|
|
63
|
-
//
|
|
69
|
+
// none EVM
|
|
70
|
+
// [ChainId.SOL]: '', // NOT NEEDED
|
|
71
|
+
// [ChainId.TER]: '', // NOT NEEDED
|
|
72
|
+
// [ChainId.OAS]: '', // NOT NEEDED
|
|
73
|
+
// [ChainId.SOLT]: '', // NOT NEEDED
|
|
74
|
+
// [ChainId.TERT]: '', // NOT NEEDED
|
|
75
|
+
// [ChainId.OAST]: '', // NOT NEEDED
|
|
64
76
|
};
|