@cityofzion/blockchain-service 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/interfaces.d.ts +8 -6
- package/package.json +1 -1
package/dist/interfaces.d.ts
CHANGED
|
@@ -131,7 +131,7 @@ export type TTransactionUtxoInputOutput = {
|
|
|
131
131
|
amount: string;
|
|
132
132
|
token: TBSToken;
|
|
133
133
|
};
|
|
134
|
-
type TTransactionBase
|
|
134
|
+
export type TTransactionBase = {
|
|
135
135
|
txId: string;
|
|
136
136
|
txIdUrl?: string;
|
|
137
137
|
block?: number;
|
|
@@ -141,15 +141,18 @@ type TTransactionBase<N extends string> = {
|
|
|
141
141
|
networkFeeAmount?: string;
|
|
142
142
|
systemFeeAmount?: string;
|
|
143
143
|
data?: any;
|
|
144
|
+
};
|
|
145
|
+
export type TTransactionFullBase<N extends string> = TTransactionBase & {
|
|
144
146
|
isPending: boolean;
|
|
145
147
|
blockchain: N;
|
|
148
|
+
relatedAddress?: string;
|
|
146
149
|
};
|
|
147
150
|
export type TTransactionDefaultEvent = TTransactionDefaultNftEvent | TTransactionDefaultTokenEvent | TTransactionDefaultGenericEvent;
|
|
148
|
-
export type TTransactionDefault<N extends string> =
|
|
151
|
+
export type TTransactionDefault<N extends string> = TTransactionFullBase<N> & {
|
|
149
152
|
view: 'default';
|
|
150
153
|
events: TTransactionDefaultEvent[];
|
|
151
154
|
};
|
|
152
|
-
export type TTransactionUtxo<N extends string> =
|
|
155
|
+
export type TTransactionUtxo<N extends string> = TTransactionFullBase<N> & {
|
|
153
156
|
view: 'utxo';
|
|
154
157
|
hex: string;
|
|
155
158
|
totalAmount: string;
|
|
@@ -208,7 +211,7 @@ export interface IClaimService<N extends string> {
|
|
|
208
211
|
getUnclaimed(address: string): Promise<string>;
|
|
209
212
|
calculateFee(account: TBSAccount<N>): Promise<string>;
|
|
210
213
|
claim(account: TBSAccount<N>): Promise<TTransactionDefault<N>>;
|
|
211
|
-
getTransactionData(transaction:
|
|
214
|
+
getTransactionData(transaction: TTransactionBase): TClaimServiceTransactionData | undefined;
|
|
212
215
|
}
|
|
213
216
|
export type TTokenPricesResponse = {
|
|
214
217
|
usdPrice: number;
|
|
@@ -438,7 +441,7 @@ export interface INeo3NeoXBridgeService<N extends TBSBridgeName> {
|
|
|
438
441
|
getNonce(params: TNeo3NeoXBridgeServiceGetNonceParams<N>): Promise<string>;
|
|
439
442
|
getTransactionHashByNonce(params: TNeo3NeoXBridgeServiceGetTransactionHashByNonceParams<N>): Promise<string>;
|
|
440
443
|
getTokenByMultichainId(multichainId: string): TBridgeToken<N> | undefined;
|
|
441
|
-
getTransactionData(transaction:
|
|
444
|
+
getTransactionData(transaction: TTransactionBase): TNeo3NeoXBridgeTransactionData<N> | undefined;
|
|
442
445
|
}
|
|
443
446
|
export type TTokenServicePredicateParams = {
|
|
444
447
|
hash: string;
|
|
@@ -474,4 +477,3 @@ export interface IWalletConnectService<N extends string> {
|
|
|
474
477
|
calculateRequestFee(args: TWalletConnectServiceRequestMethodParams<N>): Promise<string>;
|
|
475
478
|
[methodName: string]: any | TWalletConnectServiceRequestMethod<N>;
|
|
476
479
|
}
|
|
477
|
-
export {};
|