Skip to content

Commit

Permalink
feat(RawTransaction): create types
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonKozAllB committed Mar 7, 2024
1 parent 3686e2b commit ea0f317
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
3 changes: 3 additions & 0 deletions src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@ export {
Provider,
RawTransaction,
RawBridgeSolanaTransaction,
RawEvmTransaction,
RawTronTransaction,
RawPoolSolanaTransaction,
RawSorobanTransaction,
} from "../services/models/index";
export {
SwapAndBridgeCalculationData,
Expand Down
16 changes: 6 additions & 10 deletions src/services/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,15 @@ import { TransactionConfig } from "web3-core";
*/
export type Provider = Web3 | TronWeb;

/**
* EVM TransactionConfig
* Tron Object
* Soroban string
* Solana RawBridgeSolanaTransaction | RawPoolSolanaTransaction
*/
export type RawTransaction =
| Object
| TransactionConfig
| string
| RawTronTransaction
| RawEvmTransaction
| RawSorobanTransaction
| RawBridgeSolanaTransaction
| RawPoolSolanaTransaction;

export type RawEvmTransaction = TransactionConfig;
export type RawTronTransaction = Object;
export type RawSorobanTransaction = string;
export interface RawBridgeSolanaTransaction {
transaction: VersionedTransaction;
wormholeMessageSigner?: Keypair;
Expand Down

0 comments on commit ea0f317

Please sign in to comment.