on b6873da help sign in
bridge/src/lib/types/L2Transaction.ts
43 lines 917 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';
10export interface SendL2Params {
11 address?: string; // Destination address
12 breach?: boolean;
13 networkSeed?: any;
14 newSponsor?: Ship;
15 nonce: number;
16 pointToSpawn?: number;
17 proxy: Proxy;
18 proxyAddressType?: string;
19 reset?: boolean;
20 ship: Ship;
21 type: TransactionType;
24export interface L2TransactionArgs extends SendL2Params {
25 api: RollerRPCAPI;
26 wallet: any;
27 walletType: symbol;
28 web3: any;
29 connector: WalletConnect | null;
32export interface TransactionData {
33 data: any;
34 method: Function;
37export interface ReticketParams {
38 point: Ship;
39 to: EthAddress;
40 manager: EthAddress;
41 fromWallet: any; // TODO: wallet type
42 toWallet: any; // TODO: wallet type