on bb22285 help sign in
bridge/src/lib/types/L2Transaction.ts
48 lines 992 B history raw
1import RollerRPCAPI, { EthAddress, Proxy, Ship } from '@urbit/roller-api';
2import WalletConnect from '@walletconnect/client';
4export type TransactionType =
5 | 'transferPoint'
6 | 'spawn'
7 | 'configureKeys'
8 | 'escape'
9 | 'cancelEscape'
10 | 'adopt'
11 | 'detach'
12 | 'reject';
14export interface SendL2Params {
15 address?: string; // Destination address
16 breach?: boolean;
17 networkSeed?: any;
18 newSponsor?: Ship;
19 sponsee?: Ship;
20 nonce: number;
21 pointToSpawn?: number;
22 proxy: Proxy;
23 proxyAddressType?: string;
24 reset?: boolean;
25 ship: Ship;
26 type: TransactionType;
29export interface L2TransactionArgs extends SendL2Params {
30 api: RollerRPCAPI;
31 wallet: any;
32 walletType: symbol;
33 web3: any;
34 connector: WalletConnect | null;
37export interface TransactionData {
38 data: any;
39 method: Function;
42export interface ReticketParams {
43 point: Ship;
44 to: EthAddress;
45 manager: EthAddress;
46 fromWallet: any; // TODO: wallet type
47 toWallet: any; // TODO: wallet type