@cryptorubic/web3 0.8.17-alpha.solana.6 → 0.8.17-alpha.solana.8

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
@@ -1,17 +1,17 @@
1
1
  {
2
2
  "name": "@cryptorubic/web3",
3
- "version": "0.8.17-alpha.solana.6",
3
+ "version": "v0.8.17-alpha.solana.8",
4
4
  "dependencies": {
5
5
  "tslib": "^2.3.0",
6
6
  "bignumber.js": "9.1.2",
7
- "@cryptorubic/core": "0.8.17-alpha.solana.6",
7
+ "@cryptorubic/core": "v0.8.17-alpha.solana.8",
8
8
  "viem": "^2.19.1",
9
9
  "web3-utils": "^4.3.1",
10
10
  "@ton/ton": "^15.1.0",
11
11
  "@solana/web3.js": "1.95.3",
12
12
  "@solflare-wallet/utl-sdk": "^1.4.0",
13
13
  "@ethersproject/bignumber": "^5.7.0",
14
- "@cryptorubic/tron-types": "0.8.17-alpha.solana.6",
14
+ "@cryptorubic/tron-types": "v0.8.17-alpha.solana.8",
15
15
  "bitcoin-address-validation": "^2.2.3",
16
16
  "axios": "0.27.2",
17
17
  "crc-32": "^1.2.2",
@@ -43,6 +43,7 @@ class EvmAdapter extends abstract_adapter_1.AbstractAdapter {
43
43
  timeout: 5_000
44
44
  }));
45
45
  const chain = viem_blockchain_mapping_1.viemBlockchainMapping[this.blockchain];
46
+ // @ts-ignore
46
47
  return (0, viem_1.createPublicClient)({
47
48
  // @ts-ignore
48
49
  chain,
@@ -80,7 +81,8 @@ class EvmAdapter extends abstract_adapter_1.AbstractAdapter {
80
81
  to: to,
81
82
  value: (0, viem_1.parseEther)(value),
82
83
  data: data,
83
- chain: this.public.chain
84
+ chain: this.public.chain,
85
+ kzg: undefined
84
86
  });
85
87
  return result;
86
88
  }
@@ -11,7 +11,7 @@ export declare const NATIVE_SOLANA_MINT_ADDRESS = "So111111111111111111111111111
11
11
  export declare const DEFAULT_CU_LIMIT = 600000;
12
12
  export declare class SolanaAdapter extends AbstractAdapter<Connection, Connection, SolanaBlockchainName> {
13
13
  private readonly httpClient;
14
- readonly apiService: SolanaGasService;
14
+ readonly gasService: SolanaGasService;
15
15
  constructor(rpcList: string[], httpClient: HttpClient, solanaConfig: SolanaAdapterConfig, logger?: ICustomLogger);
16
16
  private createPublicClient;
17
17
  read<T>(_address: string, _abi: Abi, _method: string, _methodArgs?: unknown[]): Promise<T>;
@@ -18,7 +18,7 @@ class SolanaAdapter extends abstract_adapter_1.AbstractAdapter {
18
18
  super(core_1.BLOCKCHAIN_NAME.SOLANA, logger);
19
19
  this.httpClient = httpClient;
20
20
  this.public = this.createPublicClient(rpcList);
21
- this.apiService = new solana_gas_service_1.SolanaGasService(httpClient, this.public, solanaConfig);
21
+ this.gasService = new solana_gas_service_1.SolanaGasService(httpClient, this.public, solanaConfig);
22
22
  }
23
23
  createPublicClient(rpcList) {
24
24
  if (!rpcList?.[0]) {
@@ -36,6 +36,7 @@ class SolanaGasService {
36
36
  if (!this.HELIUS_API_KEY) {
37
37
  console.warn('[SolanaApiService_getConsumedUnitsPrice] heliusApiKey is not provided in "createFactory"');
38
38
  }
39
+ // @ts-ignore
39
40
  const cuPrice = await Promise.any([this.calculateCUPriceHelius(txData), this.calculateCUPriceSolWeb3()]);
40
41
  return cuPrice;
41
42
  }