-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathschema.graphql
60 lines (56 loc) · 1.16 KB
/
schema.graphql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
enum Side {
Sell
Buy
}
type Swap @entity {
id: ID!
uuid: Bytes
augustus: Bytes! # address
augustusVersion: String!
side: Side!
method: String!
initiator: Bytes # address
beneficiary: Bytes! # address
srcToken: Bytes! # address
destToken: Bytes! # address
srcAmount: BigInt!
destAmount: BigInt!
expectedAmount: BigInt
referrer: String
referrerFee: BigInt
paraswapFee: BigInt
referralProgram: Boolean
feeToken: Bytes
feeCode: BigInt
txHash: Bytes!
txOrigin: Bytes! # address
txTarget: Bytes # address
txGasUsed: BigInt!
txGasPrice: BigInt!
blockHash: Bytes!
blockNumber: BigInt!
timestamp: BigInt!
}
type Fee @entity {
id: ID!
augustus: Bytes!
augustusVersion: String!
fee: BigInt! # uint256
partnerShare: BigInt! # uint256
paraswapShare: BigInt! # uint256
txHash: Bytes!
blockNumber: BigInt!
timestamp: BigInt!
}
type ReferrerFee @entity {
id: ID! # referrerAddress + "-" + tokenAddress
referrerAddress: Bytes!
tokenAddress: Bytes!
totalRewards: BigInt!
}
type PartnerFee @entity {
id: ID! # partnerAddress + "-" + tokenAddress
partnerAddress: Bytes!
tokenAddress: Bytes!
totalRewards: BigInt!
}