@cityofzion/bs-multichain 3.0.5 → 3.0.6

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.
@@ -1,4 +1,4 @@
1
- import { TBSAccount, IBlockchainService, TUntilIndexRecord } from '@cityofzion/blockchain-service';
1
+ import { type TBSAccount, type IBlockchainService, type TUntilIndexRecord } from '@cityofzion/blockchain-service';
2
2
  export declare class BSAggregator<N extends string> {
3
3
  readonly blockchainServicesByName: Record<N, IBlockchainService<N>>;
4
4
  readonly blockchainServices: IBlockchainService<N>[];
@@ -1,8 +1,8 @@
1
- import { TBSAccount, TBalanceResponse, IBridgeOrchestrator, TBridgeOrchestratorEvents, TBridgeToken } from '@cityofzion/blockchain-service';
1
+ import { type TBSAccount, type TBalanceResponse, type IBridgeOrchestrator, type TBridgeOrchestratorEvents, type TBridgeToken } from '@cityofzion/blockchain-service';
2
2
  import { BSNeo3 } from '@cityofzion/bs-neo3';
3
3
  import { BSNeoX } from '@cityofzion/bs-neox';
4
4
  import TypedEmitter from 'typed-emitter';
5
- import { TNeo3NeoXBridgeOrchestratorInitParams, TNeo3NeoXBridgeOrchestratorWaitParams } from './types';
5
+ import type { TNeo3NeoXBridgeOrchestratorInitParams, TNeo3NeoXBridgeOrchestratorWaitParams } from './types';
6
6
  export declare class Neo3NeoXBridgeOrchestrator<N extends string> implements IBridgeOrchestrator<N> {
7
7
  #private;
8
8
  eventEmitter: TypedEmitter<TBridgeOrchestratorEvents<N>>;
@@ -1,4 +1,4 @@
1
- import { TBridgeToken } from '@cityofzion/blockchain-service';
1
+ import type { TBridgeToken } from '@cityofzion/blockchain-service';
2
2
  import { BSNeo3 } from '@cityofzion/bs-neo3';
3
3
  import { BSNeoX } from '@cityofzion/bs-neox';
4
4
  export type TNeo3NeoXBridgeOrchestratorInitParams<N extends string> = {
@@ -1,4 +1,4 @@
1
- import { TSimpleSwapApiCreateExchangeParams, TSimpleSwapApiCurrency, TSimpleSwapOrchestratorInitParams } from './types';
1
+ import type { TSimpleSwapApiCreateExchangeParams, TSimpleSwapApiCurrency, TSimpleSwapOrchestratorInitParams } from './types';
2
2
  export declare class SimpleSwapApi<N extends string> {
3
3
  #private;
4
4
  getCurrencies(options: TSimpleSwapOrchestratorInitParams<N>): Promise<TSimpleSwapApiCurrency<N>[]>;
@@ -172,7 +172,7 @@ _SimpleSwapApi_tickersBySimpleSwapBlockchain = new WeakMap(), _SimpleSwapApi_api
172
172
  }, _SimpleSwapApi_createAddressTemplateUrl = function _SimpleSwapApi_createAddressTemplateUrl(blockchainService, explorer) {
173
173
  explorer = !explorer ? undefined : explorer.replace('{}', '{address}');
174
174
  if (blockchainService && (0, blockchain_service_1.hasExplorerService)(blockchainService))
175
- return blockchainService.explorerService.getAddressTemplateUrl() ?? explorer;
175
+ return blockchainService.explorerService.getAddressTemplateUrl() || explorer;
176
176
  return explorer;
177
177
  }, _SimpleSwapApi_createTxTemplateUrl = function _SimpleSwapApi_createTxTemplateUrl(blockchainService, explorer) {
178
178
  explorer = !explorer ? undefined : explorer.replace('{}', '{txId}');
@@ -1,6 +1,6 @@
1
- import { TBSAccount, ISwapOrchestrator, TSwapOrchestratorEvents, TSwapResult, TSwapToken } from '@cityofzion/blockchain-service';
1
+ import { type TBSAccount, type ISwapOrchestrator, type TSwapOrchestratorEvents, type TSwapResult, type TSwapToken } from '@cityofzion/blockchain-service';
2
2
  import TypedEmitter from 'typed-emitter';
3
- import { TSimpleSwapOrchestratorInitParams } from './types';
3
+ import type { TSimpleSwapOrchestratorInitParams } from './types';
4
4
  export declare class SimpleSwapOrchestrator<N extends string = string> implements ISwapOrchestrator<N> {
5
5
  #private;
6
6
  eventEmitter: TypedEmitter<TSwapOrchestratorEvents<N>>;
@@ -1,4 +1,4 @@
1
- import { ISwapService, TSwapServiceStatusResponse } from '@cityofzion/blockchain-service';
1
+ import type { ISwapService, TSwapServiceStatusResponse } from '@cityofzion/blockchain-service';
2
2
  export declare class SimpleSwapService<BSName extends string = string> implements ISwapService {
3
3
  #private;
4
4
  constructor();
@@ -1,4 +1,4 @@
1
- import { IBlockchainService, TSwapToken } from '@cityofzion/blockchain-service';
1
+ import type { IBlockchainService, TSwapToken } from '@cityofzion/blockchain-service';
2
2
  export type TSimpleSwapOrchestratorInitParams<N extends string = string> = {
3
3
  blockchainServicesByName: Record<N, IBlockchainService<N>>;
4
4
  chainsByServiceName: Partial<Record<N, string[]>>;
@@ -1,8 +1,8 @@
1
- import { IBlockchainService, IBSWithWalletConnect } from '@cityofzion/blockchain-service';
1
+ import { type IBlockchainService, type IBSWithWalletConnect } from '@cityofzion/blockchain-service';
2
2
  import { ErrorResponse } from '@walletconnect/jsonrpc-utils';
3
3
  import type { PendingRequestTypes, SessionTypes } from '@walletconnect/types';
4
4
  import { SdkErrorKey } from '@walletconnect/utils';
5
- import { type TWalletKitHelperFilterSessionsParams, type TWalletKitHelperGetProposalDetailsParams, type TWalletKitHelperGetSessionDetailsParams, type TWalletKitHelperProcessRequestParams, type TWalletKitHelperProposalDetails, type TWalletKitHelperSessionDetails, type TWalletKitHelperGetProposalServicesParams } from './types';
5
+ import type { TWalletKitHelperFilterSessionsParams, TWalletKitHelperGetProposalDetailsParams, TWalletKitHelperGetSessionDetailsParams, TWalletKitHelperProcessRequestParams, TWalletKitHelperProposalDetails, TWalletKitHelperSessionDetails, TWalletKitHelperGetProposalServicesParams } from './types';
6
6
  export declare class WalletKitHelper {
7
7
  static getProposalDetails<N extends string>({ address, proposal, service, }: TWalletKitHelperGetProposalDetailsParams<N>): TWalletKitHelperProposalDetails<N>;
8
8
  static getProposalServices<N extends string>({ proposal, services }: TWalletKitHelperGetProposalServicesParams<N>): (IBlockchainService<N, string> & IBSWithWalletConnect<N>)[];
@@ -1,5 +1,5 @@
1
- import { IBlockchainService, IBSWithWalletConnect, TBSAccount } from '@cityofzion/blockchain-service';
2
- import { PendingRequestTypes, ProposalTypes, SessionTypes } from '@walletconnect/types';
1
+ import type { IBlockchainService, IBSWithWalletConnect, TBSAccount } from '@cityofzion/blockchain-service';
2
+ import type { PendingRequestTypes, ProposalTypes, SessionTypes } from '@walletconnect/types';
3
3
  export type TWalletKitHelperGetProposalDetailsParams<N extends string = string> = {
4
4
  proposal: ProposalTypes.Struct;
5
5
  address: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cityofzion/bs-multichain",
3
- "version": "3.0.5",
3
+ "version": "3.0.6",
4
4
  "repository": "https://github.com/CityOfZion/blockchain-services",
5
5
  "license": "GPL-3.0-only",
6
6
  "author": "Coz",
@@ -10,10 +10,10 @@
10
10
  "/dist"
11
11
  ],
12
12
  "dependencies": {
13
- "@walletconnect/jsonrpc-utils": "~1.0.8",
14
13
  "@walletconnect/utils": "~2.21.9",
15
- "axios": "~1.12.2",
16
- "@cityofzion/blockchain-service": "3.0.5"
14
+ "@walletconnect/jsonrpc-utils": "~1.0.8",
15
+ "axios": "~1.13.5",
16
+ "@cityofzion/blockchain-service": "3.0.6"
17
17
  },
18
18
  "devDependencies": {
19
19
  "@types/node": "~24.5.2",
@@ -23,9 +23,9 @@
23
23
  "typed-emitter": "~2.1.0",
24
24
  "typescript": "~5.9.2",
25
25
  "vitest": "~4.0.18",
26
- "@cityofzion/bs-ethereum": "3.0.5",
27
- "@cityofzion/bs-neo3": "3.0.5",
28
- "@cityofzion/bs-neox": "3.0.5"
26
+ "@cityofzion/bs-neo3": "3.0.6",
27
+ "@cityofzion/bs-neox": "3.0.6",
28
+ "@cityofzion/bs-ethereum": "3.0.6"
29
29
  },
30
30
  "scripts": {
31
31
  "build": "rm -rf ./dist && npm run typecheck && tsc --project tsconfig.build.json",