Skip to content

Commit 00609f2

Browse files
committed
update tx status receipt
1 parent 0dc34c7 commit 00609f2

File tree

8 files changed

+8
-8
lines changed

8 files changed

+8
-8
lines changed

src/services/atom.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ export class AtomService extends Service {
177177
const tx = await client.getTx(transactionHash);
178178
return tx ? {
179179
status: tx.code === 0 ? 'success' : 'error',
180-
txReceipt: tx,
180+
receipt: tx,
181181
} : null;
182182
} catch (e: any) {
183183
throw new Error(e);

src/services/near.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ export class NearService extends Service {
251251
const status = Object.keys(receipt.status).includes('SuccessValue') ? 'success' : 'error';
252252
return {
253253
status: status,
254-
txReceipt: receipt,
254+
receipt: receipt,
255255
};
256256
} catch (e: any) {
257257
throw new Error(e);

src/types/atom.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ export type AtomStakeOptions = {
1414

1515
export type AtomTxStatus = {
1616
status: 'success' | 'error',
17-
txReceipt: IndexedTx,
17+
receipt: IndexedTx,
1818
}

src/types/eth.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ export type EthKilnStats = {
8989
export type EthTxStatus = {
9090
data: {
9191
status: 'success' | 'error' | 'pending_confirmation';
92-
txReceipt: TransactionReceipt | null;
92+
receipt: TransactionReceipt | null;
9393
}
9494
}
9595
export type EthSignedTx = {

src/types/matic.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export type MaticTxHash = {
2020
export type MaticTxStatus = {
2121
data: {
2222
status: 'success' | 'error' | 'pending_confirmation';
23-
txReceipt: TransactionReceipt | null;
23+
receipt: TransactionReceipt | null;
2424
}
2525
}
2626
export type MaticSignedTx = {

src/types/near.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ export type NearStakeOptions = {
66

77
export type NearTxStatus = {
88
status: 'success' | 'error';
9-
txReceipt: FinalExecutionOutcome;
9+
receipt: FinalExecutionOutcome;
1010
}

src/types/sol.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,6 @@ export type SolStakeOptions = {
6969
export type SolTxStatus = {
7070
data: {
7171
status: 'success' | 'error';
72-
txReceipt: TransactionResponse | null;
72+
receipt: TransactionResponse | null;
7373
}
7474
}

src/types/xtz.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export type XtzTxHash = {
2626
export type XtzTxStatus = {
2727
data: {
2828
status: string;
29-
txReceipt: OperationEntry;
29+
receipt: OperationEntry;
3030
}
3131
};
3232

0 commit comments

Comments
 (0)