UNPKG

2.3 kBTypeScriptView Raw
1/**
2 * @prettier
3 */
4import * as Bluebird from 'bluebird';
5import { BitGo } from '../bitgo';
6import { BaseCoin } from './baseCoin';
7import { NodeCallback } from './types';
8import { Wallet } from './wallet';
9import { Settlements } from './trading/settlements';
10import { Affirmations } from './trading/affirmations';
11export declare class Enterprise {
12 private readonly bitgo;
13 private readonly baseCoin;
14 readonly id: string;
15 readonly name: string;
16 constructor(bitgo: BitGo, baseCoin: BaseCoin, enterpriseData: {
17 id: string;
18 name: string;
19 });
20 /**
21 * Enterprise URL for v1 methods, such as getting users
22 * @param query
23 */
24 url(query?: string): string;
25 /**
26 * Enterprise URL for v2 methods, such as getting fee address balances
27 * @param query
28 */
29 coinUrl(query?: string): string;
30 /**
31 * Get the wallets associated with this Enterprise
32 * @param params
33 * @param callback
34 */
35 coinWallets(params?: Record<string, never>, callback?: NodeCallback<Wallet[]>): Bluebird<Wallet[]>;
36 /**
37 * Get the users associated with this Enterprise
38 * @param params
39 * @param callback
40 */
41 users(params?: Record<string, never>, callback?: NodeCallback<any>): Bluebird<any>;
42 /**
43 * Get the fee address balance for this Enterprise
44 * @param _params
45 * @param callback
46 */
47 getFeeAddressBalance(params?: Record<string, never>, callback?: NodeCallback<any>): Bluebird<any>;
48 /**
49 * Add a user to this Enterprise
50 * @param params
51 * @param callback
52 */
53 addUser(params?: any, callback?: NodeCallback<any>): Bluebird<any>;
54 /**
55 * Remove a user from this Enterprise
56 * @param params
57 * @param callback
58 */
59 removeUser(params?: any, callback?: NodeCallback<any>): Bluebird<any>;
60 /**
61 * Get the first pending transaction for this Enterprise
62 * @param params
63 * @param callback
64 */
65 getFirstPendingTransaction(params?: Record<string, never>, callback?: NodeCallback<any>): Bluebird<any>;
66 /**
67 * Manage settlements for an enterprise
68 */
69 settlements(): Settlements;
70 /**
71 * Manage affirmations for an enterprise
72 */
73 affirmations(): Affirmations;
74}
75//# sourceMappingURL=enterprise.d.ts.map
\No newline at end of file