diff --git a/.gitignore b/.gitignore index 3a9bf12..67f3212 100644 --- a/.gitignore +++ b/.gitignore @@ -84,5 +84,3 @@ android/generated # React Native Nitro Modules nitrogen/ - -.npmrc \ No newline at end of file diff --git a/src/services/wdk-service/index.ts b/src/services/wdk-service/index.ts index 5ae8528..ca33fe5 100644 --- a/src/services/wdk-service/index.ts +++ b/src/services/wdk-service/index.ts @@ -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', }, }; @@ -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: @@ -407,6 +411,8 @@ class WDKService { networkAddresses[NetworkType.ETHEREUM]; networkAddresses[NetworkType.ARBITRUM] = networkAddresses[NetworkType.ETHEREUM]; + networkAddresses[NetworkType.PLASMA] = + networkAddresses[NetworkType.ETHEREUM]; return networkAddresses; } @@ -438,6 +444,7 @@ class WDKService { NetworkType.ETHEREUM, NetworkType.POLYGON, NetworkType.ARBITRUM, + NetworkType.PLASMA, NetworkType.TON, ].includes(network) ) { @@ -525,6 +532,7 @@ class WDKService { NetworkType.ETHEREUM, NetworkType.POLYGON, NetworkType.ARBITRUM, + NetworkType.PLASMA, NetworkType.TON, ].includes(network) ) { diff --git a/src/services/wdk-service/types.ts b/src/services/wdk-service/types.ts index 6663b0e..ad707a8 100644 --- a/src/services/wdk-service/types.ts +++ b/src/services/wdk-service/types.ts @@ -13,6 +13,7 @@ export enum NetworkType { TON = 'ton', POLYGON = 'polygon', ARBITRUM = 'arbitrum', + PLASMA = 'plasma', } export const AssetAddressMap = { @@ -23,6 +24,7 @@ export const AssetAddressMap = { [NetworkType.ETHEREUM]: 'ethereum', [NetworkType.POLYGON]: 'polygon', [NetworkType.ARBITRUM]: 'arbitrum', + [NetworkType.PLASMA]: 'plasma', [NetworkType.TON]: 'ton', }, [AssetTicker.XAUT]: { @@ -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', }, }; @@ -131,7 +135,8 @@ export interface ChainsConfig { ethereum?: EVMChainConfig; arbitrum?: EVMChainConfig; polygon?: EVMChainConfig; - ton?: TONChainConfig; + plasma?: EVMChainConfig; bitcoin?: BitcoinChainConfig; tron?: TronChainConfig; + ton?: TONChainConfig; }