@cityofzion/bs-neo3 3.1.8 → 3.1.9
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 +1 -0
- package/dist/services/blockchain-data/DoraBDSNeo3.js +1 -0
- package/dist/services/claim/ClaimServiceNeo3.d.ts +2 -2
- package/dist/services/full-transactions-data/DoraFullTransactionsDataServiceNeo3.js +1 -0
- package/dist/services/neo3-neox-bridge/Neo3NeoXBridgeService.d.ts +2 -2
- package/dist/services/vote/VoteServiceNeo3.d.ts +2 -2
- package/dist/services/vote/VoteServiceNeo3.js +1 -0
- package/dist/types.d.ts +2 -2
- package/package.json +2 -2
package/dist/BSNeo3.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { IBSNeo3, TBSNeo3Name } from '../../types';
|
|
2
|
-
import type { IClaimService, TBSAccount, TClaimServiceTransactionData,
|
|
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:
|
|
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
|
|
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:
|
|
16
|
+
getTransactionData(transaction: TTransactionBase): TNeo3NeoXBridgeTransactionData<TBSNeo3Name> | undefined;
|
|
17
17
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TTransactionDefault, type
|
|
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:
|
|
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>>;
|
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,
|
|
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:
|
|
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.
|
|
3
|
+
"version": "3.1.9",
|
|
4
4
|
"repository": "https://github.com/CityOfZion/blockchain-services",
|
|
5
5
|
"license": "GPL-3.0-only",
|
|
6
6
|
"author": "Coz",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"@cityofzion/neon-dappkit": "~0.6.0",
|
|
20
20
|
"@cityofzion/neon-js": "~5.7.0",
|
|
21
21
|
"axios": "~1.13.5",
|
|
22
|
-
"@cityofzion/blockchain-service": "3.1.
|
|
22
|
+
"@cityofzion/blockchain-service": "3.1.9"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@cityofzion/neon-dappkit-types": "~0.5.0",
|