Skip to content

Commit

Permalink
Merge pull request #328 from Once-Upon/feature/pseudotransaction-type
Browse files Browse the repository at this point in the history
Allow transaction type to contain pseudotransactions
  • Loading branch information
pcowgill authored Apr 18, 2024
2 parents 535b0a4 + cb78cfb commit 1c1aa19
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/types/transaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ export type TransactionContextType = {
// MongoDB document
export type Transaction = BaseTransaction & {
assetTransfers?: AssetTransfer[];
pseudotransactions?: PseudoTransaction[];
sigHash: string;
internalSigHashes: SigHash[];
parties: string[];
Expand All @@ -92,7 +93,7 @@ export type Transaction = BaseTransaction & {
isoTimestamp: string;
};

export type PartialTransaction = Omit<BaseTransaction, "hash"> & {
export type PartialTransaction = Omit<BaseTransaction, 'hash'> & {
receipt: RawReceipt;
traces: RawTrace[];

Expand All @@ -115,7 +116,7 @@ export type PartialTransaction = Omit<BaseTransaction, "hash"> & {

export type PseudoTransaction = PartialTransaction & {
meta: {
type: "ERC4337";
type: 'ERC4337';
key: string;
} & Record<string, any>;
};
Expand Down

0 comments on commit 1c1aa19

Please sign in to comment.