@cityofzion/bs-neo3 3.1.8 → 3.1.10

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.js CHANGED
@@ -220,6 +220,7 @@ class BSNeo3 {
220
220
  return [
221
221
  {
222
222
  isPending: true,
223
+ relatedAddress: address,
223
224
  blockchain: this.name,
224
225
  txId,
225
226
  txIdUrl: this.explorerService.buildTransactionUrl(txId),
@@ -84,6 +84,7 @@ class DoraBDSNeo3 extends RpcBDSNeo3_1.RpcBDSNeo3 {
84
84
  const transaction = {
85
85
  blockchain: this._service.name,
86
86
  isPending: false,
87
+ relatedAddress: address,
87
88
  txId,
88
89
  txIdUrl,
89
90
  block: item.block,
@@ -1,5 +1,5 @@
1
1
  import type { IBSNeo3, TBSNeo3Name } from '../../types';
2
- import type { IClaimService, TBSAccount, TClaimServiceTransactionData, TTransaction, TTransactionDefault, TTransactionDefaultEvent, TTransactionDefaultTokenEvent } from '@cityofzion/blockchain-service';
2
+ import type { IClaimService, TBSAccount, TClaimServiceTransactionData, TTransactionBase, TTransactionDefault, TTransactionDefaultEvent, TTransactionDefaultTokenEvent } from '@cityofzion/blockchain-service';
3
3
  export declare class ClaimServiceNeo3 implements IClaimService<TBSNeo3Name> {
4
4
  #private;
5
5
  readonly _service: IBSNeo3;
@@ -11,5 +11,5 @@ export declare class ClaimServiceNeo3 implements IClaimService<TBSNeo3Name> {
11
11
  getUnclaimed(address: string): Promise<string>;
12
12
  calculateFee(senderAccount: TBSAccount<TBSNeo3Name>): Promise<string>;
13
13
  claim(senderAccount: TBSAccount<TBSNeo3Name>): Promise<TTransactionDefault<TBSNeo3Name>>;
14
- getTransactionData(transaction: TTransaction<TBSNeo3Name>): TClaimServiceTransactionData | undefined;
14
+ getTransactionData(transaction: TTransactionBase): TClaimServiceTransactionData | undefined;
15
15
  }
@@ -100,6 +100,7 @@ class DoraFullTransactionsDataServiceNeo3 {
100
100
  const newItem = {
101
101
  blockchain: __classPrivateFieldGet(this, _DoraFullTransactionsDataServiceNeo3_service, "f").name,
102
102
  isPending: false,
103
+ relatedAddress: params.address,
103
104
  txId,
104
105
  txIdUrl,
105
106
  block: item.block,
@@ -1,4 +1,4 @@
1
- import { INeo3NeoXBridgeService, TBridgeToken, TNeo3NeoXBridgeServiceBridgeParam, TNeo3NeoXBridgeServiceConstants, TNeo3NeoXBridgeServiceGetNonceParams, TNeo3NeoXBridgeServiceGetTransactionHashByNonceParams, type TNeo3NeoXBridgeTransactionData, type TTransaction } from '@cityofzion/blockchain-service';
1
+ import { INeo3NeoXBridgeService, TBridgeToken, TNeo3NeoXBridgeServiceBridgeParam, TNeo3NeoXBridgeServiceConstants, TNeo3NeoXBridgeServiceGetNonceParams, TNeo3NeoXBridgeServiceGetTransactionHashByNonceParams, type TNeo3NeoXBridgeTransactionData, type TTransactionBase } from '@cityofzion/blockchain-service';
2
2
  import type { IBSNeo3, TBSNeo3Name, TRpcBDSNeo3Notification } from '../../types';
3
3
  export declare class Neo3NeoXBridgeService implements INeo3NeoXBridgeService<TBSNeo3Name> {
4
4
  #private;
@@ -13,5 +13,5 @@ export declare class Neo3NeoXBridgeService implements INeo3NeoXBridgeService<TBS
13
13
  getNonce(params: TNeo3NeoXBridgeServiceGetNonceParams<TBSNeo3Name>): Promise<string>;
14
14
  getTransactionHashByNonce(params: TNeo3NeoXBridgeServiceGetTransactionHashByNonceParams<TBSNeo3Name>): Promise<string>;
15
15
  getTokenByMultichainId(multichainId: string): TBridgeToken<TBSNeo3Name> | undefined;
16
- getTransactionData(transaction: TTransaction<TBSNeo3Name>): TNeo3NeoXBridgeTransactionData<TBSNeo3Name> | undefined;
16
+ getTransactionData(transaction: TTransactionBase): TNeo3NeoXBridgeTransactionData<TBSNeo3Name> | undefined;
17
17
  }
@@ -1,4 +1,4 @@
1
- import { TTransactionDefault, type TTransaction, type TTransactionDefaultEvent, type TTransactionDefaultGenericEvent } from '@cityofzion/blockchain-service';
1
+ import { TTransactionDefault, type TTransactionBase, type TTransactionDefaultEvent, type TTransactionDefaultGenericEvent } from '@cityofzion/blockchain-service';
2
2
  import type { IBSNeo3, IVoteService, TBSNeo3Name, TVoteServiceCandidate, TVoteServiceDetailsByAddressResponse, TVoteServiceNeo3TransactionData, TVoteServiceVoteParams } from '../../types';
3
3
  export declare class VoteServiceNeo3 implements IVoteService {
4
4
  #private;
@@ -6,7 +6,7 @@ export declare class VoteServiceNeo3 implements IVoteService {
6
6
  constructor(service: IBSNeo3);
7
7
  _buildTransactionEvent(address: string, candidate: string): TTransactionDefaultGenericEvent;
8
8
  _getTransactionDataFromEvents(events: TTransactionDefaultEvent[]): TVoteServiceNeo3TransactionData | undefined;
9
- getTransactionData(transaction: TTransaction<TBSNeo3Name>): TVoteServiceNeo3TransactionData | undefined;
9
+ getTransactionData(transaction: TTransactionBase): TVoteServiceNeo3TransactionData | undefined;
10
10
  getCandidatesToVote(): Promise<TVoteServiceCandidate[]>;
11
11
  getVoteDetailsByAddress(address: string): Promise<TVoteServiceDetailsByAddressResponse>;
12
12
  vote({ account, candidatePubKey }: TVoteServiceVoteParams): Promise<TTransactionDefault<TBSNeo3Name>>;
@@ -109,6 +109,7 @@ class VoteServiceNeo3 {
109
109
  const data = { isVote: true };
110
110
  return {
111
111
  isPending: true,
112
+ relatedAddress: account.address,
112
113
  blockchain: this._service.name,
113
114
  txId,
114
115
  txIdUrl: this._service.explorerService.buildTransactionUrl(txId),
package/dist/types.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { TBSAccount, IBlockchainService, IBSWithClaim, IBSWithEncryption, IBSWithExplorer, IBSWithFee, IBSWithLedger, IBSWithNameService, IBSWithNeo3NeoXBridge, IBSWithNft, TBSNetworkId, IBSWithWalletConnect, IBSWithFullTransactions, TTransactionDefault, TTransferParams, TTransaction } from '@cityofzion/blockchain-service';
1
+ import type { TBSAccount, IBlockchainService, IBSWithClaim, IBSWithEncryption, IBSWithExplorer, IBSWithFee, IBSWithLedger, IBSWithNameService, IBSWithNeo3NeoXBridge, IBSWithNft, TBSNetworkId, IBSWithWalletConnect, IBSWithFullTransactions, TTransactionDefault, TTransferParams, TTransactionBase } from '@cityofzion/blockchain-service';
2
2
  import { wallet, api } from './helpers/BSNeo3NeonJsSingletonHelper';
3
3
  import type { Neo3NeoXBridgeService } from './services/neo3-neox-bridge/Neo3NeoXBridgeService';
4
4
  import type { ClaimServiceNeo3 } from './services/claim/ClaimServiceNeo3';
@@ -70,7 +70,7 @@ export interface IVoteService {
70
70
  getVoteDetailsByAddress(address: string): Promise<TVoteServiceDetailsByAddressResponse>;
71
71
  vote(params: TVoteServiceVoteParams): Promise<TTransactionDefault<TBSNeo3Name>>;
72
72
  calculateVoteFee(params: TVoteServiceVoteParams): Promise<string>;
73
- getTransactionData(transaction: TTransaction<TBSNeo3Name>): TVoteServiceNeo3TransactionData | undefined;
73
+ getTransactionData(transaction: TTransactionBase): TVoteServiceNeo3TransactionData | undefined;
74
74
  }
75
75
  export type TRpcVoteServiceNeo3GetVoteCIMParams = {
76
76
  address: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cityofzion/bs-neo3",
3
- "version": "3.1.8",
3
+ "version": "3.1.10",
4
4
  "repository": "https://github.com/CityOfZion/blockchain-services",
5
5
  "license": "GPL-3.0-only",
6
6
  "author": "Coz",
@@ -10,16 +10,16 @@
10
10
  "/dist"
11
11
  ],
12
12
  "overrides": {
13
- "@cityofzion/neon-core": "~5.7.0",
14
- "@cityofzion/neon-js": "~5.7.0"
13
+ "@cityofzion/neon-core": "~5.8.1",
14
+ "@cityofzion/neon-js": "~5.8.1"
15
15
  },
16
16
  "dependencies": {
17
17
  "@cityofzion/dora-ts": "0.6.2",
18
- "@cityofzion/neon-core": "~5.7.0",
18
+ "@cityofzion/neon-core": "~5.8.1",
19
19
  "@cityofzion/neon-dappkit": "~0.6.0",
20
- "@cityofzion/neon-js": "~5.7.0",
21
- "axios": "~1.13.5",
22
- "@cityofzion/blockchain-service": "3.1.8"
20
+ "@cityofzion/neon-js": "~5.8.1",
21
+ "axios": "~1.15.0",
22
+ "@cityofzion/blockchain-service": "3.1.10"
23
23
  },
24
24
  "devDependencies": {
25
25
  "@cityofzion/neon-dappkit-types": "~0.5.0",