@cityofzion/bs-solana 3.1.7 → 3.1.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/dist/BSSolana.d.ts
CHANGED
|
@@ -17,7 +17,7 @@ export declare class BSSolana implements IBSSolana {
|
|
|
17
17
|
readonly defaultNetwork: TBSNetwork<TBSSolanaNetworkId>;
|
|
18
18
|
ledgerService: Web3LedgerServiceSolana;
|
|
19
19
|
exchangeDataService: IExchangeDataService;
|
|
20
|
-
blockchainDataService: IBlockchainDataService
|
|
20
|
+
blockchainDataService: IBlockchainDataService<TBSSolanaName>;
|
|
21
21
|
nftDataService: INftDataService;
|
|
22
22
|
explorerService: IExplorerService;
|
|
23
23
|
tokenService: ITokenService;
|
|
@@ -32,7 +32,7 @@ export declare class BSSolana implements IBSSolana {
|
|
|
32
32
|
generateAccountFromMnemonic(mnemonic: string, index: number): Promise<TBSAccount<TBSSolanaName>>;
|
|
33
33
|
generateAccountFromKey(key: string): Promise<TBSAccount<TBSSolanaName>>;
|
|
34
34
|
generateAccountFromPublicKey(publicKey: string): Promise<TBSAccount<TBSSolanaName>>;
|
|
35
|
-
transfer(params: TTransferParams<TBSSolanaName>): Promise<TTransactionDefault[]>;
|
|
35
|
+
transfer(params: TTransferParams<TBSSolanaName>): Promise<TTransactionDefault<TBSSolanaName>[]>;
|
|
36
36
|
calculateTransferFee(params: TTransferParams<TBSSolanaName>): Promise<string>;
|
|
37
37
|
resolveNameServiceDomain(domainName: string): Promise<string>;
|
|
38
38
|
validateNameServiceDomainFormat(domainName: string): boolean;
|
package/dist/BSSolana.js
CHANGED
|
@@ -182,6 +182,8 @@ class BSSolana {
|
|
|
182
182
|
const nativeTokenHash = BSSolanaConstants_1.BSSolanaConstants.NATIVE_TOKEN.hash;
|
|
183
183
|
return [
|
|
184
184
|
{
|
|
185
|
+
blockchain: this.name,
|
|
186
|
+
isPending: true,
|
|
185
187
|
txId,
|
|
186
188
|
txIdUrl: this.explorerService.buildTransactionUrl(txId),
|
|
187
189
|
date: new Date().toJSON(),
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { TBalanceResponse, IBlockchainDataService, TBSToken, type TContractResponse, type TGetTransactionsByAddressParams, type TGetTransactionsByAddressResponse, type TTransactionDefault } from '@cityofzion/blockchain-service';
|
|
2
|
-
import type { IBSSolana } from '../../types';
|
|
3
|
-
export declare class RpcBDSSolana implements IBlockchainDataService {
|
|
2
|
+
import type { IBSSolana, TBSSolanaName } from '../../types';
|
|
3
|
+
export declare class RpcBDSSolana implements IBlockchainDataService<TBSSolanaName> {
|
|
4
4
|
#private;
|
|
5
5
|
readonly maxTimeToConfirmTransactionInMs: number;
|
|
6
6
|
constructor(service: IBSSolana);
|
|
7
|
-
getTransaction(txid: string): Promise<TTransactionDefault
|
|
8
|
-
getTransactionsByAddress(params: TGetTransactionsByAddressParams): Promise<TGetTransactionsByAddressResponse<TTransactionDefault
|
|
7
|
+
getTransaction(txid: string): Promise<TTransactionDefault<TBSSolanaName>>;
|
|
8
|
+
getTransactionsByAddress(params: TGetTransactionsByAddressParams): Promise<TGetTransactionsByAddressResponse<TBSSolanaName, TTransactionDefault<TBSSolanaName>>>;
|
|
9
9
|
getContract(_contractHash: string): Promise<TContractResponse>;
|
|
10
10
|
getTokenInfo(tokenHash: string): Promise<TBSToken>;
|
|
11
11
|
getBalance(address: string): Promise<TBalanceResponse[]>;
|
|
@@ -356,6 +356,8 @@ _RpcBDSSolana_service = new WeakMap(), _RpcBDSSolana_tokenCache = new WeakMap(),
|
|
|
356
356
|
const txId = transaction.transaction.signatures[0];
|
|
357
357
|
const txIdUrl = __classPrivateFieldGet(this, _RpcBDSSolana_service, "f").explorerService.buildTransactionUrl(txId);
|
|
358
358
|
return {
|
|
359
|
+
blockchain: __classPrivateFieldGet(this, _RpcBDSSolana_service, "f").name,
|
|
360
|
+
isPending: false,
|
|
359
361
|
txId,
|
|
360
362
|
txIdUrl,
|
|
361
363
|
block: blockchain_service_1.BSBigNumberHelper.fromNumber(block).toNumber(),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cityofzion/bs-solana",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.8",
|
|
4
4
|
"repository": "https://github.com/CityOfZion/blockchain-services",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Coz",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"@solana/kit": "~6.1.0",
|
|
18
18
|
"axios": "~1.13.5",
|
|
19
19
|
"date-fns": "~4.1.0",
|
|
20
|
-
"@cityofzion/blockchain-service": "3.1.
|
|
20
|
+
"@cityofzion/blockchain-service": "3.1.8"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"@ledgerhq/hw-transport-node-hid": "~6.30.0",
|