@cryptorubic/web3 1.1.0-alpha-stellar.27 → 1.1.0-alpha-stellar.28
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/package.json
CHANGED
|
@@ -32,7 +32,7 @@ class BlockchainAdapterFactoryService {
|
|
|
32
32
|
// @TODO Add default logger
|
|
33
33
|
const loggerFn = params.createLogger || undefined;
|
|
34
34
|
const resolvedHttpClient = params.httpClient ?? (await Promise.resolve().then(() => require('axios')));
|
|
35
|
-
return new this(params.rpcList, resolvedHttpClient, params.createLogger, params.tonParams, params.clientParams);
|
|
35
|
+
return new this(params.rpcList, resolvedHttpClient, params.createLogger, params.tonParams, params.clientParams, params.stellarParams);
|
|
36
36
|
}
|
|
37
37
|
getAdapter(blockchain) {
|
|
38
38
|
const adapter = this.adapterStore?.[blockchain];
|
|
@@ -3,6 +3,7 @@ import { EnvType } from '../constants/models/env-type';
|
|
|
3
3
|
import { TronWebProvider } from '../adapters/adapter-tron/models/tron-web-provider';
|
|
4
4
|
import { TonAdapterConfig } from '../adapters/models/ton-adapter-config';
|
|
5
5
|
import { FallbackTransportConfig, HttpTransportConfig } from 'viem';
|
|
6
|
+
import { StellarProviderUrl } from '../adapters/adapter-stellar/models/stellar-provider-url';
|
|
6
7
|
export type RpcListType = Record<EvmBlockchainName, string[]> & Record<TronBlockchainName, TronWebProvider[]> & Record<SolanaBlockchainName, string[]> & Record<SuiBlockchainName, string[]>;
|
|
7
8
|
export interface AdapterFactoryParams {
|
|
8
9
|
rpcList: RpcListType;
|
|
@@ -10,6 +11,7 @@ export interface AdapterFactoryParams {
|
|
|
10
11
|
tonParams?: TonAdapterConfig;
|
|
11
12
|
createLogger?: (label: string) => ICustomLogger;
|
|
12
13
|
clientParams?: ClientAdaptersFactoryParams;
|
|
14
|
+
stellarParams: StellarProviderUrl;
|
|
13
15
|
}
|
|
14
16
|
export interface ClientAdaptersFactoryParams {
|
|
15
17
|
envType: EnvType;
|