Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -84,5 +84,3 @@ android/generated

# React Native Nitro Modules
nitrogen/

.npmrc
8 changes: 8 additions & 0 deletions src/services/wdk-service/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,14 @@ export const SMART_CONTRACT_BALANCE_ADDRESSES = {
polygon: '0xc2132d05d31c914a87c6611c10748aeb04b58e8f',
arbitrum: '0xfd086bc7cd5c481dcc9c85ebe478a1c0b69fcbb9',
ton: 'EQCxE6mUtQJKFnGfaROTKOt1lZbDiiX1kCixRv7Nw2Id_sDs',
plasma: '0xB8CE59FC3717ada4C02eaDF9682A9e934F625ebb',
},
[AssetTicker.XAUT]: {
ethereum: '0x68749665FF8D2d112Fa859AA293F07A622782F38',
polygon: '0xF1815bd50389c46847f0Bda824eC8da914045D14',
arbitrum: '0x40461291347e1eCbb09499F3371D3f17f10d7159',
ton: 'EQA1R_LuQCLHlMgOo1S4G7Y7W1cd0FrAkbA10Zq7rddKxi9k',
plasma: '0x1B64B9025EEbb9A6239575dF9Ea4b9Ac46D4d193',
},
};

Expand All @@ -49,6 +51,8 @@ const toNetwork = (n: NetworkType): string => {
return 'polygon';
case NetworkType.ARBITRUM:
return 'arbitrum';
case NetworkType.PLASMA:
return 'plasma';
case NetworkType.SOLANA:
return 'solana';
case NetworkType.TRON:
Expand Down Expand Up @@ -407,6 +411,8 @@ class WDKService {
networkAddresses[NetworkType.ETHEREUM];
networkAddresses[NetworkType.ARBITRUM] =
networkAddresses[NetworkType.ETHEREUM];
networkAddresses[NetworkType.PLASMA] =
networkAddresses[NetworkType.ETHEREUM];

return networkAddresses;
}
Expand Down Expand Up @@ -438,6 +444,7 @@ class WDKService {
NetworkType.ETHEREUM,
NetworkType.POLYGON,
NetworkType.ARBITRUM,
NetworkType.PLASMA,
NetworkType.TON,
].includes(network)
) {
Expand Down Expand Up @@ -525,6 +532,7 @@ class WDKService {
NetworkType.ETHEREUM,
NetworkType.POLYGON,
NetworkType.ARBITRUM,
NetworkType.PLASMA,
NetworkType.TON,
].includes(network)
) {
Expand Down
7 changes: 6 additions & 1 deletion src/services/wdk-service/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export enum NetworkType {
TON = 'ton',
POLYGON = 'polygon',
ARBITRUM = 'arbitrum',
PLASMA = 'plasma',
}

export const AssetAddressMap = {
Expand All @@ -23,6 +24,7 @@ export const AssetAddressMap = {
[NetworkType.ETHEREUM]: 'ethereum',
[NetworkType.POLYGON]: 'polygon',
[NetworkType.ARBITRUM]: 'arbitrum',
[NetworkType.PLASMA]: 'plasma',
[NetworkType.TON]: 'ton',
},
[AssetTicker.XAUT]: {
Expand All @@ -38,10 +40,12 @@ export const AssetBalanceMap = {
[NetworkType.ETHEREUM]: 'ethereum',
[NetworkType.POLYGON]: 'polygon',
[NetworkType.ARBITRUM]: 'arbitrum',
[NetworkType.PLASMA]: 'plasma',
[NetworkType.TON]: 'ton',
},
[AssetTicker.XAUT]: {
[NetworkType.ETHEREUM]: 'ethereum',
[NetworkType.PLASMA]: 'plasma',
},
};

Expand Down Expand Up @@ -131,7 +135,8 @@ export interface ChainsConfig {
ethereum?: EVMChainConfig;
arbitrum?: EVMChainConfig;
polygon?: EVMChainConfig;
ton?: TONChainConfig;
plasma?: EVMChainConfig;
bitcoin?: BitcoinChainConfig;
tron?: TronChainConfig;
ton?: TONChainConfig;
}