@cityofzion/bs-neo3 1.17.6 → 1.17.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/BSNeo3.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { TBSAccount, TGetLedgerTransport, IBlockchainDataService, IClaimDataService, IExchangeDataService, IExplorerService, INeo3NeoXBridgeService, INftDataService, ITokenService, TBSNetwork, TBSToken, TTransferParam, TPingNetworkResponse, IWalletConnectService } from '@cityofzion/blockchain-service';
1
+ import { IBlockchainDataService, IClaimDataService, IExchangeDataService, IExplorerService, INeo3NeoXBridgeService, INftDataService, ITokenService, IWalletConnectService, TBSAccount, TBSNetwork, TBSToken, TGetLedgerTransport, TPingNetworkResponse, TTransferParam } from '@cityofzion/blockchain-service';
2
2
  import { NeonDappKitLedgerServiceNeo3 } from './services/ledger/NeonDappKitLedgerServiceNeo3';
3
3
  import { IBSNeo3, IVoteService, TBSNeo3NetworkId } from './types';
4
4
  import { api, wallet } from './helpers/BSNeo3NeonJsSingletonHelper';
@@ -14,7 +14,7 @@ export declare class BSNeo3<N extends string = string> implements IBSNeo3<N> {
14
14
  readonly claimToken: TBSToken;
15
15
  readonly burnToken: TBSToken;
16
16
  network: TBSNetwork<TBSNeo3NetworkId>;
17
- availableNetworkURLs: string[];
17
+ rpcNetworkUrls: string[];
18
18
  readonly defaultNetwork: TBSNetwork<TBSNeo3NetworkId>;
19
19
  readonly availableNetworks: TBSNetwork<TBSNeo3NetworkId>[];
20
20
  blockchainDataService: IBlockchainDataService;
package/dist/BSNeo3.js CHANGED
@@ -52,21 +52,21 @@ class BSNeo3 {
52
52
  this.setNetwork(network !== null && network !== void 0 ? network : this.defaultNetwork);
53
53
  }
54
54
  setNetwork(network) {
55
- const availableURLs = BSNeo3Constants_1.BSNeo3Constants.RPC_LIST_BY_NETWORK_ID[network.id] || [];
55
+ const rpcNetworkUrls = BSNeo3Constants_1.BSNeo3Constants.RPC_LIST_BY_NETWORK_ID[network.id] || [];
56
56
  if (network.type === 'custom') {
57
57
  if (typeof network.url !== 'string' || network.url.length === 0) {
58
58
  throw new Error('You must provide a valid url to use a custom network');
59
59
  }
60
60
  }
61
61
  else {
62
- const isValidNetwork = blockchain_service_1.BSUtilsHelper.validateNetwork(network, this.availableNetworks, availableURLs);
62
+ const isValidNetwork = blockchain_service_1.BSUtilsHelper.validateNetwork(network, this.availableNetworks, rpcNetworkUrls);
63
63
  if (!isValidNetwork) {
64
64
  throw new Error(`Network with id ${network.id} is not available for ${this.name}`);
65
65
  }
66
66
  }
67
67
  __classPrivateFieldGet(this, _BSNeo3_instances, "m", _BSNeo3_setTokens).call(this, network);
68
68
  this.network = network;
69
- this.availableNetworkURLs = availableURLs;
69
+ this.rpcNetworkUrls = rpcNetworkUrls;
70
70
  this.tokenService = new TokenServiceNeo3_1.TokenServiceNeo3();
71
71
  this.nftDataService = new GhostMarketNDSNeo3_1.GhostMarketNDSNeo3(this);
72
72
  this.explorerService = new DoraESNeo3_1.DoraESNeo3(this);
@@ -246,8 +246,7 @@ class BSNeo3 {
246
246
  }
247
247
  exports.BSNeo3 = BSNeo3;
248
248
  _BSNeo3_instances = new WeakSet(), _BSNeo3_setTokens = function _BSNeo3_setTokens(network) {
249
- const tokens = BSNeo3Helper_1.BSNeo3Helper.getTokens(network);
250
- this.tokens = tokens;
249
+ this.tokens = BSNeo3Helper_1.BSNeo3Helper.getTokens(network);
251
250
  }, _BSNeo3_buildTransferInvocation = function _BSNeo3_buildTransferInvocation(_a, account_1) {
252
251
  return __awaiter(this, arguments, void 0, function* ({ intents, tipIntent }, account) {
253
252
  const concatIntents = [...intents, ...(tipIntent ? [tipIntent] : [])];
@@ -5,7 +5,7 @@ export declare class BSNeo3Constants {
5
5
  static readonly GAS_TOKEN: TBSToken;
6
6
  static readonly NEO_TOKEN: TBSToken;
7
7
  static readonly NATIVE_ASSETS: TBSToken[];
8
- static readonly RPC_LIST_BY_NETWORK_ID: Partial<Record<TBSNeo3NetworkId, string[]>>;
8
+ static readonly RPC_LIST_BY_NETWORK_ID: Record<TBSNeo3NetworkId, string[]>;
9
9
  static readonly MAINNET_NETWORK: TBSNetwork<TBSNeo3NetworkId>;
10
10
  static readonly TESTNET_NETWORK: TBSNetwork<TBSNeo3NetworkId>;
11
11
  static readonly ALL_NETWORKS: TBSNetwork<TBSNeo3NetworkId>[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cityofzion/bs-neo3",
3
- "version": "1.17.6",
3
+ "version": "1.17.8",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "repository": "https://github.com/CityOfZion/blockchain-services",
@@ -15,7 +15,7 @@
15
15
  "@cityofzion/neon-core": "~5.7.0",
16
16
  "@cityofzion/neon-dappkit": "~0.6.0",
17
17
  "axios": "~1.12.2",
18
- "@cityofzion/blockchain-service": "1.22.5"
18
+ "@cityofzion/blockchain-service": "1.22.7"
19
19
  },
20
20
  "devDependencies": {
21
21
  "@cityofzion/neon-dappkit-types": "~0.5.0",