on afdb680 help sign in
bridge/src/lib/types/L2Transaction.ts
41 lines 831 B history raw
1import RollerRPCAPI, { EthAddress, Proxy, Ship } from '@urbit/roller-api';
3export type TransactionType =
4 | 'transferPoint'
5 | 'spawn'
6 | 'configureKeys'
7 | 'escape';
9export interface SendL2Params {
10 address?: string; // Destination address
11 breach?: boolean;
12 networkSeed?: any;
13 newSponsor?: Ship;
14 nonce: number;
15 pointToSpawn?: number;
16 proxy: Proxy;
17 proxyAddressType?: string;
18 reset?: boolean;
19 ship: Ship;
20 type: TransactionType;
23export interface L2TransactionArgs extends SendL2Params {
24 api: RollerRPCAPI;
25 wallet: any;
26 walletType: symbol;
27 web3: any;
30export interface TransactionData {
31 data: any;
32 method: Function;
35export interface ReticketParams {
36 point: Ship;
37 to: EthAddress;
38 manager: EthAddress;
39 fromWallet: any; // TODO: wallet type
40 toWallet: any; // TODO: wallet type