File tree Expand file tree Collapse file tree 2 files changed +22
-23
lines changed Expand file tree Collapse file tree 2 files changed +22
-23
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ import { HOME_URL } from '~envs'
6
6
import { SEO } from '~app/layout/seo'
7
7
import { API } from '~constants/api'
8
8
import dynamic from 'next/dynamic'
9
- import { TransactionGraphData , TransactionEdge } from '~types/mochi-schema'
10
9
import { GraphData , NodeObject } from 'react-force-graph-2d'
11
10
import { useMemo , useState } from 'react'
12
11
import { ProfileBar } from '~components/TipNetwork/ProfileBar'
@@ -18,6 +17,28 @@ import {
18
17
TipNetworkData ,
19
18
} from '~types/tip-graph'
20
19
import { useDisclosure } from '@dwarvesf/react-hooks'
20
+ import { Profile } from '@consolelabs/mochi-rest'
21
+
22
+ export interface TransactionNode {
23
+ profile_id : string
24
+ total_volume : number
25
+ spend_volume : number
26
+ receive_volume : number
27
+ profile : Profile
28
+ }
29
+
30
+ export interface TransactionEdge {
31
+ from_profile_id : string
32
+ to_profile_id : string
33
+ total_volume : number
34
+ spend : number
35
+ receive : number
36
+ }
37
+
38
+ export interface TransactionGraphData {
39
+ nodes : TransactionNode [ ]
40
+ edges : TransactionEdge [ ]
41
+ }
21
42
22
43
const TipNetworkGraph = dynamic (
23
44
( ) =>
Original file line number Diff line number Diff line change 9
9
* ---------------------------------------------------------------
10
10
*/
11
11
12
- import { Profile } from '@consolelabs/mochi-rest'
13
12
export interface ModelActivity {
14
13
guild_default ?: boolean
15
14
id ?: number
@@ -2537,24 +2536,3 @@ export interface UuidNullUUID {
2537
2536
/** Valid is true if UUID is not NULL */
2538
2537
valid ?: boolean
2539
2538
}
2540
-
2541
- export interface TransactionNode {
2542
- profile_id : string
2543
- total_volume : number
2544
- spend_volume : number
2545
- receive_volume : number
2546
- profile : Profile
2547
- }
2548
-
2549
- export interface TransactionEdge {
2550
- from_profile_id : string
2551
- to_profile_id : string
2552
- total_volume : number
2553
- spend : number
2554
- receive : number
2555
- }
2556
-
2557
- export interface TransactionGraphData {
2558
- nodes : TransactionNode [ ]
2559
- edges : TransactionEdge [ ]
2560
- }
You can’t perform that action at this time.
0 commit comments