@codex-data/sdk 1.0.3 → 1.0.4
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/FilterPairs.graphql +44 -0
- package/dist/resources/generated_queries/FilterTokens.graphql +44 -0
- package/dist/resources/generated_queries/GetBars.graphql +165 -0
- package/dist/resources/generated_queries/GetCommunityNotes.graphql +11 -0
- package/dist/resources/generated_queries/GetDetailedPairStats.graphql +22 -0
- package/dist/resources/generated_queries/GetDetailedPairsStats.graphql +22 -0
- package/dist/resources/generated_queries/ListPairsForToken.graphql +22 -0
- package/dist/resources/generated_queries/ListPairsWithMetadataForToken.graphql +44 -0
- package/dist/resources/generated_queries/PairMetadata.graphql +26 -0
- package/dist/resources/generated_queries/Token.graphql +11 -0
- package/dist/resources/generated_queries/Tokens.graphql +11 -0
- package/dist/resources/generated_subscriptions/OnHoldersUpdated.graphql +15 -0
- package/dist/resources/generated_subscriptions/OnPairMetadataUpdated.graphql +26 -0
- package/dist/resources/generated_subscriptions/OnUnconfirmedEventsCreated.graphql +1 -0
- package/dist/resources/graphql.d.ts +202 -109
- package/dist/resources/graphql.d.ts.map +1 -1
- package/dist/resources/graphql.js +18 -1
- package/dist/resources/graphql.js.map +1 -1
- package/dist/resources/graphql.schema.json +863 -760
- package/dist/resources/graphql.ts +208 -124
- package/dist/resources/schema.graphql +312 -154
- package/dist/sdk/Mutation.d.ts +2 -2
- package/dist/sdk/Mutation.js +2 -2
- package/dist/sdk/Query.d.ts +48 -57
- package/dist/sdk/Query.d.ts.map +1 -1
- package/dist/sdk/Query.js +47 -56
- package/dist/sdk/Query.js.map +1 -1
- package/dist/sdk/Subscribe.d.ts +13 -12
- package/dist/sdk/Subscribe.d.ts.map +1 -1
- package/dist/sdk/Subscribe.js +68 -61
- package/dist/sdk/Subscribe.js.map +1 -1
- package/dist/sdk/generated/gql.d.ts +34 -101
- package/dist/sdk/generated/gql.d.ts.map +1 -1
- package/dist/sdk/generated/gql.js +14 -22
- package/dist/sdk/generated/gql.js.map +1 -1
- package/dist/sdk/generated/graphql.d.ts +784 -499
- package/dist/sdk/generated/graphql.d.ts.map +1 -1
- package/dist/sdk/generated/graphql.js +34 -25
- package/dist/sdk/generated/graphql.js.map +1 -1
- package/package.json +1 -1
- package/src/resources/generated_queries/FilterPairs.graphql +44 -0
- package/src/resources/generated_queries/FilterTokens.graphql +44 -0
- package/src/resources/generated_queries/GetBars.graphql +165 -0
- package/src/resources/generated_queries/GetCommunityNotes.graphql +11 -0
- package/src/resources/generated_queries/GetDetailedPairStats.graphql +22 -0
- package/src/resources/generated_queries/GetDetailedPairsStats.graphql +22 -0
- package/src/resources/generated_queries/ListPairsForToken.graphql +22 -0
- package/src/resources/generated_queries/ListPairsWithMetadataForToken.graphql +44 -0
- package/src/resources/generated_queries/PairMetadata.graphql +26 -0
- package/src/resources/generated_queries/Token.graphql +11 -0
- package/src/resources/generated_queries/Tokens.graphql +11 -0
- package/src/resources/generated_subscriptions/OnHoldersUpdated.graphql +15 -0
- package/src/resources/generated_subscriptions/OnPairMetadataUpdated.graphql +26 -0
- package/src/resources/generated_subscriptions/OnUnconfirmedEventsCreated.graphql +1 -0
- package/src/resources/graphql.schema.json +863 -760
- package/src/resources/graphql.ts +208 -124
- package/src/resources/schema.graphql +312 -154
- package/src/sdk/Mutation.ts +4 -4
- package/src/sdk/Query.ts +100 -136
- package/src/sdk/Subscribe.ts +112 -97
- package/src/sdk/generated/gql.ts +31 -71
- package/src/sdk/generated/graphql.ts +246 -233
- package/dist/resources/generated_queries/BackfillWalletState.graphql +0 -3
- package/dist/resources/generated_queries/GetLatestPairs.graphql +0 -57
- package/dist/resources/generated_queries/GetParallelAssets.graphql +0 -50
- package/dist/resources/generated_queries/GetTokenCount.graphql +0 -3
- package/dist/resources/generated_queries/GetTokenInfo.graphql +0 -18
- package/dist/resources/generated_queries/GetTokensInfo.graphql +0 -18
- package/dist/resources/generated_queries/GetUniV3Ticks.graphql +0 -22
- package/dist/resources/generated_queries/ListFavoriteTokens.graphql +0 -59
- package/dist/resources/generated_queries/PrimeBalance.graphql +0 -12
- package/src/resources/generated_queries/BackfillWalletState.graphql +0 -3
- package/src/resources/generated_queries/GetLatestPairs.graphql +0 -57
- package/src/resources/generated_queries/GetParallelAssets.graphql +0 -50
- package/src/resources/generated_queries/GetTokenCount.graphql +0 -3
- package/src/resources/generated_queries/GetTokenInfo.graphql +0 -18
- package/src/resources/generated_queries/GetTokensInfo.graphql +0 -18
- package/src/resources/generated_queries/GetUniV3Ticks.graphql +0 -22
- package/src/resources/generated_queries/ListFavoriteTokens.graphql +0 -59
- package/src/resources/generated_queries/PrimeBalance.graphql +0 -12
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
query GetLatestPairs(
|
|
2
|
-
$cursor: String
|
|
3
|
-
$exchangeFilter: [String!]
|
|
4
|
-
$limit: Int
|
|
5
|
-
$minLiquidityFilter: Int
|
|
6
|
-
$networkFilter: [Int!]
|
|
7
|
-
) {
|
|
8
|
-
getLatestPairs(
|
|
9
|
-
cursor: $cursor
|
|
10
|
-
exchangeFilter: $exchangeFilter
|
|
11
|
-
limit: $limit
|
|
12
|
-
minLiquidityFilter: $minLiquidityFilter
|
|
13
|
-
networkFilter: $networkFilter
|
|
14
|
-
) {
|
|
15
|
-
cursor
|
|
16
|
-
items {
|
|
17
|
-
address
|
|
18
|
-
exchangeHash
|
|
19
|
-
id
|
|
20
|
-
initialPriceUsd
|
|
21
|
-
liquidAt
|
|
22
|
-
liquidity
|
|
23
|
-
liquidityToken
|
|
24
|
-
networkId
|
|
25
|
-
newToken
|
|
26
|
-
nonLiquidityToken
|
|
27
|
-
oldToken
|
|
28
|
-
priceChange
|
|
29
|
-
priceUsd
|
|
30
|
-
token0 {
|
|
31
|
-
address
|
|
32
|
-
currentPoolAmount
|
|
33
|
-
decimals
|
|
34
|
-
id
|
|
35
|
-
initialPoolAmount
|
|
36
|
-
name
|
|
37
|
-
networkId
|
|
38
|
-
pairId
|
|
39
|
-
poolVariation
|
|
40
|
-
symbol
|
|
41
|
-
}
|
|
42
|
-
token1 {
|
|
43
|
-
address
|
|
44
|
-
currentPoolAmount
|
|
45
|
-
decimals
|
|
46
|
-
id
|
|
47
|
-
initialPoolAmount
|
|
48
|
-
name
|
|
49
|
-
networkId
|
|
50
|
-
pairId
|
|
51
|
-
poolVariation
|
|
52
|
-
symbol
|
|
53
|
-
}
|
|
54
|
-
transactionHash
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
query GetParallelAssets($cursor: String, $limit: Int, $tokenIds: [String]) {
|
|
2
|
-
getParallelAssets(cursor: $cursor, limit: $limit, tokenIds: $tokenIds) {
|
|
3
|
-
cursor
|
|
4
|
-
items {
|
|
5
|
-
address
|
|
6
|
-
attributes {
|
|
7
|
-
class
|
|
8
|
-
css
|
|
9
|
-
displayType
|
|
10
|
-
maxValue
|
|
11
|
-
name
|
|
12
|
-
value
|
|
13
|
-
valueType
|
|
14
|
-
}
|
|
15
|
-
description
|
|
16
|
-
gameData {
|
|
17
|
-
attack
|
|
18
|
-
cardType
|
|
19
|
-
cost
|
|
20
|
-
functionText
|
|
21
|
-
health
|
|
22
|
-
parallel
|
|
23
|
-
passiveAbility
|
|
24
|
-
rarity
|
|
25
|
-
subtype
|
|
26
|
-
}
|
|
27
|
-
id
|
|
28
|
-
media {
|
|
29
|
-
image
|
|
30
|
-
processed
|
|
31
|
-
thumbLg
|
|
32
|
-
thumbSm
|
|
33
|
-
}
|
|
34
|
-
metadata {
|
|
35
|
-
artist
|
|
36
|
-
class
|
|
37
|
-
expansion
|
|
38
|
-
flavourText
|
|
39
|
-
parallelId
|
|
40
|
-
paraset
|
|
41
|
-
supply
|
|
42
|
-
}
|
|
43
|
-
name
|
|
44
|
-
networkId
|
|
45
|
-
originalImage
|
|
46
|
-
tokenId
|
|
47
|
-
uri
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
query GetTokenInfo($address: String!, $networkId: Int!) {
|
|
2
|
-
getTokenInfo(address: $address, networkId: $networkId) {
|
|
3
|
-
address
|
|
4
|
-
circulatingSupply
|
|
5
|
-
cmcId
|
|
6
|
-
description
|
|
7
|
-
id
|
|
8
|
-
imageBannerUrl
|
|
9
|
-
imageLargeUrl
|
|
10
|
-
imageSmallUrl
|
|
11
|
-
imageThumbUrl
|
|
12
|
-
isScam
|
|
13
|
-
name
|
|
14
|
-
networkId
|
|
15
|
-
symbol
|
|
16
|
-
totalSupply
|
|
17
|
-
}
|
|
18
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
query GetTokensInfo($input: [GetTokensInfoInput!]!) {
|
|
2
|
-
getTokensInfo(input: $input) {
|
|
3
|
-
address
|
|
4
|
-
circulatingSupply
|
|
5
|
-
cmcId
|
|
6
|
-
description
|
|
7
|
-
id
|
|
8
|
-
imageBannerUrl
|
|
9
|
-
imageLargeUrl
|
|
10
|
-
imageSmallUrl
|
|
11
|
-
imageThumbUrl
|
|
12
|
-
isScam
|
|
13
|
-
name
|
|
14
|
-
networkId
|
|
15
|
-
symbol
|
|
16
|
-
totalSupply
|
|
17
|
-
}
|
|
18
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
query GetUniV3Ticks(
|
|
2
|
-
$limit: Int
|
|
3
|
-
$networkId: Int!
|
|
4
|
-
$offset: Int
|
|
5
|
-
$poolAddress: String!
|
|
6
|
-
) {
|
|
7
|
-
getUniV3Ticks(
|
|
8
|
-
limit: $limit
|
|
9
|
-
networkId: $networkId
|
|
10
|
-
offset: $offset
|
|
11
|
-
poolAddress: $poolAddress
|
|
12
|
-
) {
|
|
13
|
-
count
|
|
14
|
-
offset
|
|
15
|
-
results {
|
|
16
|
-
liquidityNet
|
|
17
|
-
price0
|
|
18
|
-
price1
|
|
19
|
-
tick
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
query ListFavoriteTokens(
|
|
2
|
-
$keys: [String!]!
|
|
3
|
-
$networkFilter: [Int!]
|
|
4
|
-
$resolution: String
|
|
5
|
-
) {
|
|
6
|
-
listFavoriteTokens(
|
|
7
|
-
keys: $keys
|
|
8
|
-
networkFilter: $networkFilter
|
|
9
|
-
resolution: $resolution
|
|
10
|
-
) {
|
|
11
|
-
address
|
|
12
|
-
createdAt
|
|
13
|
-
decimals
|
|
14
|
-
exchanges {
|
|
15
|
-
address
|
|
16
|
-
color
|
|
17
|
-
exchangeVersion
|
|
18
|
-
iconUrl
|
|
19
|
-
id
|
|
20
|
-
name
|
|
21
|
-
networkId
|
|
22
|
-
tradeUrl
|
|
23
|
-
}
|
|
24
|
-
id
|
|
25
|
-
imageBannerUrl
|
|
26
|
-
imageLargeUrl
|
|
27
|
-
imageSmallUrl
|
|
28
|
-
imageThumbUrl
|
|
29
|
-
isScam
|
|
30
|
-
lastTransaction
|
|
31
|
-
liquidity
|
|
32
|
-
marketCap
|
|
33
|
-
name
|
|
34
|
-
networkId
|
|
35
|
-
price
|
|
36
|
-
priceChange
|
|
37
|
-
priceChange1
|
|
38
|
-
priceChange4
|
|
39
|
-
priceChange12
|
|
40
|
-
priceChange24
|
|
41
|
-
quoteToken
|
|
42
|
-
resolution
|
|
43
|
-
symbol
|
|
44
|
-
topPairId
|
|
45
|
-
txnCount1
|
|
46
|
-
txnCount4
|
|
47
|
-
txnCount12
|
|
48
|
-
txnCount24
|
|
49
|
-
uniqueBuys1
|
|
50
|
-
uniqueBuys4
|
|
51
|
-
uniqueBuys12
|
|
52
|
-
uniqueBuys24
|
|
53
|
-
uniqueSells1
|
|
54
|
-
uniqueSells4
|
|
55
|
-
uniqueSells12
|
|
56
|
-
uniqueSells24
|
|
57
|
-
volume
|
|
58
|
-
}
|
|
59
|
-
}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
query GetLatestPairs(
|
|
2
|
-
$cursor: String
|
|
3
|
-
$exchangeFilter: [String!]
|
|
4
|
-
$limit: Int
|
|
5
|
-
$minLiquidityFilter: Int
|
|
6
|
-
$networkFilter: [Int!]
|
|
7
|
-
) {
|
|
8
|
-
getLatestPairs(
|
|
9
|
-
cursor: $cursor
|
|
10
|
-
exchangeFilter: $exchangeFilter
|
|
11
|
-
limit: $limit
|
|
12
|
-
minLiquidityFilter: $minLiquidityFilter
|
|
13
|
-
networkFilter: $networkFilter
|
|
14
|
-
) {
|
|
15
|
-
cursor
|
|
16
|
-
items {
|
|
17
|
-
address
|
|
18
|
-
exchangeHash
|
|
19
|
-
id
|
|
20
|
-
initialPriceUsd
|
|
21
|
-
liquidAt
|
|
22
|
-
liquidity
|
|
23
|
-
liquidityToken
|
|
24
|
-
networkId
|
|
25
|
-
newToken
|
|
26
|
-
nonLiquidityToken
|
|
27
|
-
oldToken
|
|
28
|
-
priceChange
|
|
29
|
-
priceUsd
|
|
30
|
-
token0 {
|
|
31
|
-
address
|
|
32
|
-
currentPoolAmount
|
|
33
|
-
decimals
|
|
34
|
-
id
|
|
35
|
-
initialPoolAmount
|
|
36
|
-
name
|
|
37
|
-
networkId
|
|
38
|
-
pairId
|
|
39
|
-
poolVariation
|
|
40
|
-
symbol
|
|
41
|
-
}
|
|
42
|
-
token1 {
|
|
43
|
-
address
|
|
44
|
-
currentPoolAmount
|
|
45
|
-
decimals
|
|
46
|
-
id
|
|
47
|
-
initialPoolAmount
|
|
48
|
-
name
|
|
49
|
-
networkId
|
|
50
|
-
pairId
|
|
51
|
-
poolVariation
|
|
52
|
-
symbol
|
|
53
|
-
}
|
|
54
|
-
transactionHash
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
query GetParallelAssets($cursor: String, $limit: Int, $tokenIds: [String]) {
|
|
2
|
-
getParallelAssets(cursor: $cursor, limit: $limit, tokenIds: $tokenIds) {
|
|
3
|
-
cursor
|
|
4
|
-
items {
|
|
5
|
-
address
|
|
6
|
-
attributes {
|
|
7
|
-
class
|
|
8
|
-
css
|
|
9
|
-
displayType
|
|
10
|
-
maxValue
|
|
11
|
-
name
|
|
12
|
-
value
|
|
13
|
-
valueType
|
|
14
|
-
}
|
|
15
|
-
description
|
|
16
|
-
gameData {
|
|
17
|
-
attack
|
|
18
|
-
cardType
|
|
19
|
-
cost
|
|
20
|
-
functionText
|
|
21
|
-
health
|
|
22
|
-
parallel
|
|
23
|
-
passiveAbility
|
|
24
|
-
rarity
|
|
25
|
-
subtype
|
|
26
|
-
}
|
|
27
|
-
id
|
|
28
|
-
media {
|
|
29
|
-
image
|
|
30
|
-
processed
|
|
31
|
-
thumbLg
|
|
32
|
-
thumbSm
|
|
33
|
-
}
|
|
34
|
-
metadata {
|
|
35
|
-
artist
|
|
36
|
-
class
|
|
37
|
-
expansion
|
|
38
|
-
flavourText
|
|
39
|
-
parallelId
|
|
40
|
-
paraset
|
|
41
|
-
supply
|
|
42
|
-
}
|
|
43
|
-
name
|
|
44
|
-
networkId
|
|
45
|
-
originalImage
|
|
46
|
-
tokenId
|
|
47
|
-
uri
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
query GetTokenInfo($address: String!, $networkId: Int!) {
|
|
2
|
-
getTokenInfo(address: $address, networkId: $networkId) {
|
|
3
|
-
address
|
|
4
|
-
circulatingSupply
|
|
5
|
-
cmcId
|
|
6
|
-
description
|
|
7
|
-
id
|
|
8
|
-
imageBannerUrl
|
|
9
|
-
imageLargeUrl
|
|
10
|
-
imageSmallUrl
|
|
11
|
-
imageThumbUrl
|
|
12
|
-
isScam
|
|
13
|
-
name
|
|
14
|
-
networkId
|
|
15
|
-
symbol
|
|
16
|
-
totalSupply
|
|
17
|
-
}
|
|
18
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
query GetTokensInfo($input: [GetTokensInfoInput!]!) {
|
|
2
|
-
getTokensInfo(input: $input) {
|
|
3
|
-
address
|
|
4
|
-
circulatingSupply
|
|
5
|
-
cmcId
|
|
6
|
-
description
|
|
7
|
-
id
|
|
8
|
-
imageBannerUrl
|
|
9
|
-
imageLargeUrl
|
|
10
|
-
imageSmallUrl
|
|
11
|
-
imageThumbUrl
|
|
12
|
-
isScam
|
|
13
|
-
name
|
|
14
|
-
networkId
|
|
15
|
-
symbol
|
|
16
|
-
totalSupply
|
|
17
|
-
}
|
|
18
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
query GetUniV3Ticks(
|
|
2
|
-
$limit: Int
|
|
3
|
-
$networkId: Int!
|
|
4
|
-
$offset: Int
|
|
5
|
-
$poolAddress: String!
|
|
6
|
-
) {
|
|
7
|
-
getUniV3Ticks(
|
|
8
|
-
limit: $limit
|
|
9
|
-
networkId: $networkId
|
|
10
|
-
offset: $offset
|
|
11
|
-
poolAddress: $poolAddress
|
|
12
|
-
) {
|
|
13
|
-
count
|
|
14
|
-
offset
|
|
15
|
-
results {
|
|
16
|
-
liquidityNet
|
|
17
|
-
price0
|
|
18
|
-
price1
|
|
19
|
-
tick
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
query ListFavoriteTokens(
|
|
2
|
-
$keys: [String!]!
|
|
3
|
-
$networkFilter: [Int!]
|
|
4
|
-
$resolution: String
|
|
5
|
-
) {
|
|
6
|
-
listFavoriteTokens(
|
|
7
|
-
keys: $keys
|
|
8
|
-
networkFilter: $networkFilter
|
|
9
|
-
resolution: $resolution
|
|
10
|
-
) {
|
|
11
|
-
address
|
|
12
|
-
createdAt
|
|
13
|
-
decimals
|
|
14
|
-
exchanges {
|
|
15
|
-
address
|
|
16
|
-
color
|
|
17
|
-
exchangeVersion
|
|
18
|
-
iconUrl
|
|
19
|
-
id
|
|
20
|
-
name
|
|
21
|
-
networkId
|
|
22
|
-
tradeUrl
|
|
23
|
-
}
|
|
24
|
-
id
|
|
25
|
-
imageBannerUrl
|
|
26
|
-
imageLargeUrl
|
|
27
|
-
imageSmallUrl
|
|
28
|
-
imageThumbUrl
|
|
29
|
-
isScam
|
|
30
|
-
lastTransaction
|
|
31
|
-
liquidity
|
|
32
|
-
marketCap
|
|
33
|
-
name
|
|
34
|
-
networkId
|
|
35
|
-
price
|
|
36
|
-
priceChange
|
|
37
|
-
priceChange1
|
|
38
|
-
priceChange4
|
|
39
|
-
priceChange12
|
|
40
|
-
priceChange24
|
|
41
|
-
quoteToken
|
|
42
|
-
resolution
|
|
43
|
-
symbol
|
|
44
|
-
topPairId
|
|
45
|
-
txnCount1
|
|
46
|
-
txnCount4
|
|
47
|
-
txnCount12
|
|
48
|
-
txnCount24
|
|
49
|
-
uniqueBuys1
|
|
50
|
-
uniqueBuys4
|
|
51
|
-
uniqueBuys12
|
|
52
|
-
uniqueBuys24
|
|
53
|
-
uniqueSells1
|
|
54
|
-
uniqueSells4
|
|
55
|
-
uniqueSells12
|
|
56
|
-
uniqueSells24
|
|
57
|
-
volume
|
|
58
|
-
}
|
|
59
|
-
}
|