@codex-data/sdk 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/resources/generated_queries/BackfillWalletState.graphql +3 -0
- package/dist/resources/generated_queries/GetTokenEvents.graphql +2 -0
- package/dist/resources/generated_queries/GetTokenEventsForMaker.graphql +2 -0
- package/dist/resources/generated_queries/Holders.graphql +1 -0
- package/dist/resources/generated_queries/PairMetadata.graphql +126 -0
- package/dist/resources/generated_queries/Top10HoldersPercent.graphql +3 -0
- package/dist/resources/generated_subscriptions/OnEventsCreated.graphql +2 -0
- package/dist/resources/generated_subscriptions/OnPairMetadataUpdated.graphql +126 -0
- package/dist/resources/generated_subscriptions/OnTokenEventsCreated.graphql +2 -0
- package/dist/resources/graphql.d.ts +52 -2
- package/dist/resources/graphql.d.ts.map +1 -1
- package/dist/resources/graphql.js +9 -2
- package/dist/resources/graphql.js.map +1 -1
- package/dist/resources/graphql.schema.json +485 -13
- package/dist/resources/graphql.ts +56 -2
- package/dist/resources/schema.graphql +77 -3
- package/dist/sdk/Query.d.ts +3 -1
- package/dist/sdk/Query.d.ts.map +1 -1
- package/dist/sdk/Query.js +2 -0
- package/dist/sdk/Query.js.map +1 -1
- package/dist/sdk/Subscribe.js +3 -3
- package/dist/sdk/generated/gql.d.ts +28 -14
- package/dist/sdk/generated/gql.d.ts.map +1 -1
- package/dist/sdk/generated/gql.js +9 -7
- package/dist/sdk/generated/gql.js.map +1 -1
- package/dist/sdk/generated/graphql.d.ts +349 -2
- package/dist/sdk/generated/graphql.d.ts.map +1 -1
- package/dist/sdk/generated/graphql.js +20 -11
- package/dist/sdk/generated/graphql.js.map +1 -1
- package/package.json +1 -1
- package/src/resources/generated_queries/BackfillWalletState.graphql +3 -0
- package/src/resources/generated_queries/GetTokenEvents.graphql +2 -0
- package/src/resources/generated_queries/GetTokenEventsForMaker.graphql +2 -0
- package/src/resources/generated_queries/Holders.graphql +1 -0
- package/src/resources/generated_queries/PairMetadata.graphql +126 -0
- package/src/resources/generated_queries/Top10HoldersPercent.graphql +3 -0
- package/src/resources/generated_subscriptions/OnEventsCreated.graphql +2 -0
- package/src/resources/generated_subscriptions/OnPairMetadataUpdated.graphql +126 -0
- package/src/resources/generated_subscriptions/OnTokenEventsCreated.graphql +2 -0
- package/src/resources/graphql.schema.json +485 -13
- package/src/resources/graphql.ts +56 -2
- package/src/resources/schema.graphql +77 -3
- package/src/sdk/Query.ts +8 -0
- package/src/sdk/Subscribe.ts +3 -3
- package/src/sdk/generated/gql.ts +24 -14
- package/src/sdk/generated/graphql.ts +84 -16
|
@@ -8,6 +8,132 @@ query PairMetadata(
|
|
|
8
8
|
quoteToken: $quoteToken
|
|
9
9
|
statsType: $statsType
|
|
10
10
|
) {
|
|
11
|
+
enhancedToken0 {
|
|
12
|
+
address
|
|
13
|
+
cmcId
|
|
14
|
+
createBlockNumber
|
|
15
|
+
createTransactionHash
|
|
16
|
+
createdAt
|
|
17
|
+
creatorAddress
|
|
18
|
+
decimals
|
|
19
|
+
exchanges {
|
|
20
|
+
address
|
|
21
|
+
color
|
|
22
|
+
exchangeVersion
|
|
23
|
+
iconUrl
|
|
24
|
+
id
|
|
25
|
+
name
|
|
26
|
+
networkId
|
|
27
|
+
tradeUrl
|
|
28
|
+
}
|
|
29
|
+
freezable
|
|
30
|
+
id
|
|
31
|
+
info {
|
|
32
|
+
address
|
|
33
|
+
circulatingSupply
|
|
34
|
+
cmcId
|
|
35
|
+
description
|
|
36
|
+
id
|
|
37
|
+
imageBannerUrl
|
|
38
|
+
imageLargeUrl
|
|
39
|
+
imageSmallUrl
|
|
40
|
+
imageThumbUrl
|
|
41
|
+
isScam
|
|
42
|
+
name
|
|
43
|
+
networkId
|
|
44
|
+
symbol
|
|
45
|
+
totalSupply
|
|
46
|
+
}
|
|
47
|
+
isScam
|
|
48
|
+
mintable
|
|
49
|
+
name
|
|
50
|
+
networkId
|
|
51
|
+
socialLinks {
|
|
52
|
+
bitcointalk
|
|
53
|
+
blog
|
|
54
|
+
coingecko
|
|
55
|
+
coinmarketcap
|
|
56
|
+
discord
|
|
57
|
+
email
|
|
58
|
+
facebook
|
|
59
|
+
github
|
|
60
|
+
instagram
|
|
61
|
+
linkedin
|
|
62
|
+
reddit
|
|
63
|
+
slack
|
|
64
|
+
telegram
|
|
65
|
+
twitch
|
|
66
|
+
twitter
|
|
67
|
+
website
|
|
68
|
+
wechat
|
|
69
|
+
whitepaper
|
|
70
|
+
youtube
|
|
71
|
+
}
|
|
72
|
+
symbol
|
|
73
|
+
}
|
|
74
|
+
enhancedToken1 {
|
|
75
|
+
address
|
|
76
|
+
cmcId
|
|
77
|
+
createBlockNumber
|
|
78
|
+
createTransactionHash
|
|
79
|
+
createdAt
|
|
80
|
+
creatorAddress
|
|
81
|
+
decimals
|
|
82
|
+
exchanges {
|
|
83
|
+
address
|
|
84
|
+
color
|
|
85
|
+
exchangeVersion
|
|
86
|
+
iconUrl
|
|
87
|
+
id
|
|
88
|
+
name
|
|
89
|
+
networkId
|
|
90
|
+
tradeUrl
|
|
91
|
+
}
|
|
92
|
+
freezable
|
|
93
|
+
id
|
|
94
|
+
info {
|
|
95
|
+
address
|
|
96
|
+
circulatingSupply
|
|
97
|
+
cmcId
|
|
98
|
+
description
|
|
99
|
+
id
|
|
100
|
+
imageBannerUrl
|
|
101
|
+
imageLargeUrl
|
|
102
|
+
imageSmallUrl
|
|
103
|
+
imageThumbUrl
|
|
104
|
+
isScam
|
|
105
|
+
name
|
|
106
|
+
networkId
|
|
107
|
+
symbol
|
|
108
|
+
totalSupply
|
|
109
|
+
}
|
|
110
|
+
isScam
|
|
111
|
+
mintable
|
|
112
|
+
name
|
|
113
|
+
networkId
|
|
114
|
+
socialLinks {
|
|
115
|
+
bitcointalk
|
|
116
|
+
blog
|
|
117
|
+
coingecko
|
|
118
|
+
coinmarketcap
|
|
119
|
+
discord
|
|
120
|
+
email
|
|
121
|
+
facebook
|
|
122
|
+
github
|
|
123
|
+
instagram
|
|
124
|
+
linkedin
|
|
125
|
+
reddit
|
|
126
|
+
slack
|
|
127
|
+
telegram
|
|
128
|
+
twitch
|
|
129
|
+
twitter
|
|
130
|
+
website
|
|
131
|
+
wechat
|
|
132
|
+
whitepaper
|
|
133
|
+
youtube
|
|
134
|
+
}
|
|
135
|
+
symbol
|
|
136
|
+
}
|
|
11
137
|
exchangeId
|
|
12
138
|
fee
|
|
13
139
|
highPrice1
|
|
@@ -8,6 +8,132 @@ subscription OnPairMetadataUpdated(
|
|
|
8
8
|
quoteToken: $quoteToken
|
|
9
9
|
statsType: $statsType
|
|
10
10
|
) {
|
|
11
|
+
enhancedToken0 {
|
|
12
|
+
address
|
|
13
|
+
cmcId
|
|
14
|
+
createBlockNumber
|
|
15
|
+
createTransactionHash
|
|
16
|
+
createdAt
|
|
17
|
+
creatorAddress
|
|
18
|
+
decimals
|
|
19
|
+
exchanges {
|
|
20
|
+
address
|
|
21
|
+
color
|
|
22
|
+
exchangeVersion
|
|
23
|
+
iconUrl
|
|
24
|
+
id
|
|
25
|
+
name
|
|
26
|
+
networkId
|
|
27
|
+
tradeUrl
|
|
28
|
+
}
|
|
29
|
+
freezable
|
|
30
|
+
id
|
|
31
|
+
info {
|
|
32
|
+
address
|
|
33
|
+
circulatingSupply
|
|
34
|
+
cmcId
|
|
35
|
+
description
|
|
36
|
+
id
|
|
37
|
+
imageBannerUrl
|
|
38
|
+
imageLargeUrl
|
|
39
|
+
imageSmallUrl
|
|
40
|
+
imageThumbUrl
|
|
41
|
+
isScam
|
|
42
|
+
name
|
|
43
|
+
networkId
|
|
44
|
+
symbol
|
|
45
|
+
totalSupply
|
|
46
|
+
}
|
|
47
|
+
isScam
|
|
48
|
+
mintable
|
|
49
|
+
name
|
|
50
|
+
networkId
|
|
51
|
+
socialLinks {
|
|
52
|
+
bitcointalk
|
|
53
|
+
blog
|
|
54
|
+
coingecko
|
|
55
|
+
coinmarketcap
|
|
56
|
+
discord
|
|
57
|
+
email
|
|
58
|
+
facebook
|
|
59
|
+
github
|
|
60
|
+
instagram
|
|
61
|
+
linkedin
|
|
62
|
+
reddit
|
|
63
|
+
slack
|
|
64
|
+
telegram
|
|
65
|
+
twitch
|
|
66
|
+
twitter
|
|
67
|
+
website
|
|
68
|
+
wechat
|
|
69
|
+
whitepaper
|
|
70
|
+
youtube
|
|
71
|
+
}
|
|
72
|
+
symbol
|
|
73
|
+
}
|
|
74
|
+
enhancedToken1 {
|
|
75
|
+
address
|
|
76
|
+
cmcId
|
|
77
|
+
createBlockNumber
|
|
78
|
+
createTransactionHash
|
|
79
|
+
createdAt
|
|
80
|
+
creatorAddress
|
|
81
|
+
decimals
|
|
82
|
+
exchanges {
|
|
83
|
+
address
|
|
84
|
+
color
|
|
85
|
+
exchangeVersion
|
|
86
|
+
iconUrl
|
|
87
|
+
id
|
|
88
|
+
name
|
|
89
|
+
networkId
|
|
90
|
+
tradeUrl
|
|
91
|
+
}
|
|
92
|
+
freezable
|
|
93
|
+
id
|
|
94
|
+
info {
|
|
95
|
+
address
|
|
96
|
+
circulatingSupply
|
|
97
|
+
cmcId
|
|
98
|
+
description
|
|
99
|
+
id
|
|
100
|
+
imageBannerUrl
|
|
101
|
+
imageLargeUrl
|
|
102
|
+
imageSmallUrl
|
|
103
|
+
imageThumbUrl
|
|
104
|
+
isScam
|
|
105
|
+
name
|
|
106
|
+
networkId
|
|
107
|
+
symbol
|
|
108
|
+
totalSupply
|
|
109
|
+
}
|
|
110
|
+
isScam
|
|
111
|
+
mintable
|
|
112
|
+
name
|
|
113
|
+
networkId
|
|
114
|
+
socialLinks {
|
|
115
|
+
bitcointalk
|
|
116
|
+
blog
|
|
117
|
+
coingecko
|
|
118
|
+
coinmarketcap
|
|
119
|
+
discord
|
|
120
|
+
email
|
|
121
|
+
facebook
|
|
122
|
+
github
|
|
123
|
+
instagram
|
|
124
|
+
linkedin
|
|
125
|
+
reddit
|
|
126
|
+
slack
|
|
127
|
+
telegram
|
|
128
|
+
twitch
|
|
129
|
+
twitter
|
|
130
|
+
website
|
|
131
|
+
wechat
|
|
132
|
+
whitepaper
|
|
133
|
+
youtube
|
|
134
|
+
}
|
|
135
|
+
symbol
|
|
136
|
+
}
|
|
11
137
|
exchangeId
|
|
12
138
|
fee
|
|
13
139
|
highPrice1
|
|
@@ -74,9 +74,11 @@ subscription OnTokenEventsCreated($input: OnTokenEventsCreatedInput!) {
|
|
|
74
74
|
networkId
|
|
75
75
|
quoteToken
|
|
76
76
|
timestamp
|
|
77
|
+
token0Address
|
|
77
78
|
token0PoolValueUsd
|
|
78
79
|
token0SwapValueUsd
|
|
79
80
|
token0ValueBase
|
|
81
|
+
token1Address
|
|
80
82
|
token1PoolValueUsd
|
|
81
83
|
token1SwapValueUsd
|
|
82
84
|
token1ValueBase
|
|
@@ -125,6 +125,11 @@ export type AddUserAchievementInput = {
|
|
|
125
125
|
quantity: Scalars['Int']['input'];
|
|
126
126
|
userId: Scalars['String']['input'];
|
|
127
127
|
};
|
|
128
|
+
export declare enum AddressType {
|
|
129
|
+
Evm = "EVM",
|
|
130
|
+
Sol = "SOL",
|
|
131
|
+
Tron = "TRON"
|
|
132
|
+
}
|
|
128
133
|
/** The recurrence of the webhook. Can be `INDEFINITE` or `ONCE`. */
|
|
129
134
|
export declare enum AlertRecurrence {
|
|
130
135
|
Indefinite = "INDEFINITE",
|
|
@@ -907,12 +912,16 @@ export type Event = {
|
|
|
907
912
|
quoteToken?: Maybe<QuoteToken>;
|
|
908
913
|
/** The unix timestamp for when the transaction occurred. */
|
|
909
914
|
timestamp: Scalars['Int']['output'];
|
|
915
|
+
/** The address of the event's token0. */
|
|
916
|
+
token0Address?: Maybe<Scalars['String']['output']>;
|
|
910
917
|
/** The updated price of `token0` in USD, calculated after the transaction. */
|
|
911
918
|
token0PoolValueUsd?: Maybe<Scalars['String']['output']>;
|
|
912
919
|
/** The price of `token0` paid/received in USD, including any fees. */
|
|
913
920
|
token0SwapValueUsd?: Maybe<Scalars['String']['output']>;
|
|
914
921
|
/** The price of `token0` paid/received in the network's base token, including fees. */
|
|
915
922
|
token0ValueBase?: Maybe<Scalars['String']['output']>;
|
|
923
|
+
/** The address of the event's token1. */
|
|
924
|
+
token1Address?: Maybe<Scalars['String']['output']>;
|
|
916
925
|
/** The updated price of `token1` in USD, calculated after the transaction. */
|
|
917
926
|
token1PoolValueUsd?: Maybe<Scalars['String']['output']>;
|
|
918
927
|
/** The price of `token1` paid/received in USD, including any fees. */
|
|
@@ -1366,6 +1375,8 @@ export type HoldersResponse = {
|
|
|
1366
1375
|
items: Array<Balance>;
|
|
1367
1376
|
/** Status of holder. Disabled if on unsupported network or there is insufficient holder data. */
|
|
1368
1377
|
status: HoldersStatus;
|
|
1378
|
+
/** What percentage of the total supply do the top 10 holders hold */
|
|
1379
|
+
top10HoldersPercent?: Maybe<Scalars['Float']['output']>;
|
|
1369
1380
|
};
|
|
1370
1381
|
export declare enum HoldersSortAttribute {
|
|
1371
1382
|
Balance = "BALANCE",
|
|
@@ -1692,12 +1703,20 @@ export type MakerEventConnection = {
|
|
|
1692
1703
|
items?: Maybe<Array<Maybe<Event>>>;
|
|
1693
1704
|
};
|
|
1694
1705
|
export type MakerEventsQueryInput = {
|
|
1706
|
+
/** The specific event type to filter by. */
|
|
1707
|
+
eventType?: InputMaybe<EventType>;
|
|
1695
1708
|
/** The specific wallet address to filter by. */
|
|
1696
1709
|
maker: Scalars['String']['input'];
|
|
1697
1710
|
/** The network ID to filter by. */
|
|
1698
|
-
networkId
|
|
1699
|
-
/** The
|
|
1711
|
+
networkId?: InputMaybe<Scalars['Int']['input']>;
|
|
1712
|
+
/** The total amount of `quoteToken` involved in the swap in USD (`amountNonLiquidityToken` x `priceUsd`). */
|
|
1713
|
+
priceUsdTotal?: InputMaybe<NumberFilter>;
|
|
1714
|
+
/** docs: hide */
|
|
1700
1715
|
quoteToken?: InputMaybe<QuoteToken>;
|
|
1716
|
+
/** The time range to filter by. */
|
|
1717
|
+
timestamp?: InputMaybe<EventQueryTimestampInput>;
|
|
1718
|
+
/** The token involved in the event. */
|
|
1719
|
+
tokenAddress?: InputMaybe<Scalars['String']['input']>;
|
|
1701
1720
|
};
|
|
1702
1721
|
/** The status for a network supported on Defined. */
|
|
1703
1722
|
export type MetadataResponse = {
|
|
@@ -4677,6 +4696,8 @@ export type PairFilters = {
|
|
|
4677
4696
|
};
|
|
4678
4697
|
export type PairMetadata = {
|
|
4679
4698
|
__typename?: 'PairMetadata';
|
|
4699
|
+
enhancedToken0?: Maybe<EnhancedToken>;
|
|
4700
|
+
enhancedToken1?: Maybe<EnhancedToken>;
|
|
4680
4701
|
exchangeId?: Maybe<Scalars['String']['output']>;
|
|
4681
4702
|
fee?: Maybe<Scalars['Int']['output']>;
|
|
4682
4703
|
highPrice1?: Maybe<Scalars['String']['output']>;
|
|
@@ -5625,6 +5646,7 @@ export type Query = {
|
|
|
5625
5646
|
apiToken: ApiToken;
|
|
5626
5647
|
/** Get all active short-lived api tokens for this api key */
|
|
5627
5648
|
apiTokens: Array<ApiToken>;
|
|
5649
|
+
backfillWalletState: Scalars['Boolean']['output'];
|
|
5628
5650
|
/** Returns list of token balances that a wallet has */
|
|
5629
5651
|
balances: BalancesResponse;
|
|
5630
5652
|
/** Returns a URL for a pair chart. */
|
|
@@ -5710,6 +5732,7 @@ export type Query = {
|
|
|
5710
5732
|
getTokenCount: Scalars['String']['output'];
|
|
5711
5733
|
/** Returns transactions for a pair. */
|
|
5712
5734
|
getTokenEvents?: Maybe<EventConnection>;
|
|
5735
|
+
/** Returns a list of token events for a given maker. */
|
|
5713
5736
|
getTokenEventsForMaker?: Maybe<MakerEventConnection>;
|
|
5714
5737
|
/** Returns metadata for a given token. */
|
|
5715
5738
|
getTokenInfo?: Maybe<TokenInfo>;
|
|
@@ -5758,6 +5781,8 @@ export type Query = {
|
|
|
5758
5781
|
tokenSparklines: Array<TokenSparkline>;
|
|
5759
5782
|
/** Find a list of tokens by their addresses & network id, with pagination. */
|
|
5760
5783
|
tokens: Array<Maybe<EnhancedToken>>;
|
|
5784
|
+
/** What percent of the total supply do the top 10 holders of a token hold */
|
|
5785
|
+
top10HoldersPercent?: Maybe<Scalars['Float']['output']>;
|
|
5761
5786
|
/** Returns list of NFT assets held by a given wallet for a single collection. */
|
|
5762
5787
|
walletNftCollectionAssets: WalletNftCollectionAssetsResponse;
|
|
5763
5788
|
/** Returns list of collections and quantity of NFTs held by a given wallet. */
|
|
@@ -6130,6 +6155,9 @@ export type QueryTokenSparklinesArgs = {
|
|
|
6130
6155
|
export type QueryTokensArgs = {
|
|
6131
6156
|
ids?: InputMaybe<Array<TokenInput>>;
|
|
6132
6157
|
};
|
|
6158
|
+
export type QueryTop10HoldersPercentArgs = {
|
|
6159
|
+
tokenId: Scalars['String']['input'];
|
|
6160
|
+
};
|
|
6133
6161
|
export type QueryWalletNftCollectionAssetsArgs = {
|
|
6134
6162
|
input: WalletNftCollectionAssetsInput;
|
|
6135
6163
|
};
|
|
@@ -6724,6 +6752,25 @@ export type SubscriptionOnUnconfirmedEventsCreatedArgs = {
|
|
|
6724
6752
|
id?: InputMaybe<Scalars['String']['input']>;
|
|
6725
6753
|
quoteToken?: InputMaybe<QuoteToken>;
|
|
6726
6754
|
};
|
|
6755
|
+
export type SuiNetworkConfig = {
|
|
6756
|
+
__typename?: 'SuiNetworkConfig';
|
|
6757
|
+
baseTokenAddress: Scalars['String']['output'];
|
|
6758
|
+
baseTokenSymbol: Scalars['String']['output'];
|
|
6759
|
+
color?: Maybe<Scalars['String']['output']>;
|
|
6760
|
+
defaultPairAddress: Scalars['String']['output'];
|
|
6761
|
+
defaultPairQuoteToken: QuoteToken;
|
|
6762
|
+
enabled: Scalars['Boolean']['output'];
|
|
6763
|
+
id: Scalars['ID']['output'];
|
|
6764
|
+
mainnet: Scalars['Boolean']['output'];
|
|
6765
|
+
name: Scalars['String']['output'];
|
|
6766
|
+
networkIconUrl: Scalars['String']['output'];
|
|
6767
|
+
networkId: Scalars['Int']['output'];
|
|
6768
|
+
networkName: Scalars['String']['output'];
|
|
6769
|
+
networkShortName: Scalars['String']['output'];
|
|
6770
|
+
newTokensEnabled?: Maybe<Scalars['Boolean']['output']>;
|
|
6771
|
+
stableCoinAddresses?: Maybe<Array<Scalars['String']['output']>>;
|
|
6772
|
+
wrappedBaseTokenSymbol: Scalars['String']['output'];
|
|
6773
|
+
};
|
|
6727
6774
|
/** Event data for a token swap event. */
|
|
6728
6775
|
export type SwapEventData = {
|
|
6729
6776
|
__typename?: 'SwapEventData';
|
|
@@ -7098,6 +7145,8 @@ export type TokenFilters = {
|
|
|
7098
7145
|
marketCap?: InputMaybe<NumberFilter>;
|
|
7099
7146
|
/** The list of network IDs to filter by. Applied in conjunction with `exchangeId` filter using an OR condition. When used together, the query returns results that match either the specified exchanges or the specified network. */
|
|
7100
7147
|
network?: InputMaybe<Array<InputMaybe<Scalars['Int']['input']>>>;
|
|
7148
|
+
/** docs: hide */
|
|
7149
|
+
notableHolderCount?: InputMaybe<NumberFilter>;
|
|
7101
7150
|
/** Filter potential Scams */
|
|
7102
7151
|
potentialScam?: InputMaybe<Scalars['Boolean']['input']>;
|
|
7103
7152
|
/** The token price in USD. */
|
|
@@ -7357,6 +7406,7 @@ export declare enum TokenRankingAttribute {
|
|
|
7357
7406
|
Low12 = "low12",
|
|
7358
7407
|
Low24 = "low24",
|
|
7359
7408
|
MarketCap = "marketCap",
|
|
7409
|
+
NotableHolderCount = "notableHolderCount",
|
|
7360
7410
|
PriceUsd = "priceUSD",
|
|
7361
7411
|
SellCount1 = "sellCount1",
|
|
7362
7412
|
SellCount4 = "sellCount4",
|