@luxexchange/api 1.0.0 → 1.0.1

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.
Files changed (70) hide show
  1. package/dist/client.d.ts +22 -0
  2. package/dist/client.d.ts.map +1 -0
  3. package/dist/client.js +56 -0
  4. package/dist/hooks/index.d.ts +6 -0
  5. package/dist/hooks/index.d.ts.map +1 -0
  6. package/dist/hooks/index.js +5 -0
  7. package/dist/hooks/use-token-list.d.ts +22 -0
  8. package/dist/hooks/use-token-list.d.ts.map +1 -0
  9. package/dist/hooks/use-token-list.js +27 -0
  10. package/dist/hooks/use-token-price.d.ts +15 -0
  11. package/dist/hooks/use-token-price.d.ts.map +1 -0
  12. package/dist/hooks/use-token-price.js +63 -0
  13. package/dist/index.d.ts +6 -0
  14. package/dist/index.d.ts.map +1 -0
  15. package/dist/index.js +5 -0
  16. package/package.json +10 -11
  17. package/project.json +2 -8
  18. package/src/clients/base/SharedQueryClient.ts +2 -2
  19. package/src/clients/base/errors.test.ts +39 -0
  20. package/src/clients/base/errors.ts +9 -1
  21. package/src/clients/base/urls.test.ts +7 -7
  22. package/src/clients/base/urls.ts +5 -5
  23. package/src/clients/base/utils.test.ts +2 -2
  24. package/src/clients/blockaid/createBlockaidApiClient.ts +1 -1
  25. package/src/clients/compliance/createComplianceApiClient.ts +40 -0
  26. package/src/clients/compliance/types.ts +15 -0
  27. package/src/clients/data/createDataServiceApiClient.ts +1 -1
  28. package/src/clients/dataApi/createDataApiServiceClient.ts +4 -4
  29. package/src/clients/dataApi/getGetPortfolioQueryOptions.test.ts +4 -4
  30. package/src/clients/dataApi/getGetPortfolioQueryOptions.ts +10 -6
  31. package/src/clients/embeddedWallet/createEmbeddedWalletApiClient.ts +254 -82
  32. package/src/clients/for/createForApiClient.ts +4 -4
  33. package/src/clients/for/utils.ts +1 -1
  34. package/src/clients/gasService/createGasServiceClient.ts +21 -0
  35. package/src/clients/graphql/queries.graphql +0 -183
  36. package/src/clients/graphql/queries.ts +0 -2
  37. package/src/clients/graphql/schema.graphql +603 -594
  38. package/src/clients/graphql/web/activity.graphql +0 -6
  39. package/src/clients/graphql/web/landing.graphql +0 -20
  40. package/src/clients/graphql/web/token.graphql +21 -3
  41. package/src/clients/lux/createLuxApiClient.ts +4 -21
  42. package/src/clients/trading/api.json +1 -1
  43. package/src/clients/trading/createTradingApiClient.ts +8 -8
  44. package/src/clients/trading/types.ts +1 -1
  45. package/src/clients/unitags/createUnitagsApiClient.test.ts +1 -1
  46. package/src/clients/unitags/createUnitagsApiClient.ts +5 -5
  47. package/src/clients/x/createXVerificationServiceClient.ts +26 -0
  48. package/src/components/ApiInit.test.tsx +2 -2
  49. package/src/components/ApiInit.tsx +5 -5
  50. package/src/connectRpc/utils.ts +1 -1
  51. package/src/getEntryGatewayUrl.ts +1 -1
  52. package/src/getWebSocketUrl.ts +10 -7
  53. package/src/hooks/shared/useQueryWithImmediateGarbageCollection.ts +1 -1
  54. package/src/hooks/useIsSessionInitialized.ts +1 -1
  55. package/src/index.ts +86 -59
  56. package/src/provideSessionService.native.ts +2 -2
  57. package/src/provideSessionService.ts +3 -3
  58. package/src/provideSessionService.web.ts +8 -8
  59. package/src/session/createSessionTransport.test.ts +1 -1
  60. package/src/session/createWithSessionRetry.ts +1 -1
  61. package/src/session/index.ts +1 -1
  62. package/src/storage/createExtensionStorageDriver.ts +1 -1
  63. package/src/storage/getStorageDriver.ts +1 -1
  64. package/src/storage/getStorageDriver.web.ts +1 -1
  65. package/src/transport.ts +1 -1
  66. package/stubs/privy-service-pb.d.ts +150 -3
  67. package/.depcheckrc +0 -17
  68. package/.eslintrc.js +0 -30
  69. package/src/clients/graphql/web/nft/CollectionSearch.graphql +0 -34
  70. package/src/clients/graphql/web/portfolios.graphql +0 -68
@@ -57,189 +57,6 @@ query Nfts($ownerAddress: String!) {
57
57
  }
58
58
  }
59
59
 
60
- query NFTItemScreen(
61
- $contractAddress: String!
62
- $filter: NftAssetsFilterInput
63
- $activityFilter: NftActivityFilterInput
64
- ) {
65
- nftAssets(address: $contractAddress, filter: $filter) {
66
- edges {
67
- node {
68
- id
69
- ownerAddress
70
- collection {
71
- id
72
- collectionId
73
- description
74
- image {
75
- id
76
- url
77
- }
78
- isVerified
79
- name
80
- numAssets
81
- markets(currencies: [USD]) {
82
- id
83
- floorPrice {
84
- value
85
- }
86
- owners
87
- totalVolume {
88
- value
89
- }
90
- }
91
- nftContracts {
92
- id
93
- address
94
- }
95
- }
96
- description
97
- image {
98
- id
99
- url
100
- dimensions {
101
- width
102
- height
103
- }
104
- }
105
- name
106
- nftContract {
107
- id
108
- address
109
- chain
110
- standard
111
- }
112
- tokenId
113
- creator {
114
- id
115
- address
116
- username
117
- }
118
- traits {
119
- id
120
- name
121
- rarity
122
- value
123
- }
124
- listings(first: 1) {
125
- edges {
126
- node {
127
- id
128
- price {
129
- currency
130
- value
131
- }
132
- }
133
- }
134
- }
135
- }
136
- }
137
- }
138
- nftActivity(filter: $activityFilter) {
139
- edges {
140
- node {
141
- id
142
- quantity
143
- price {
144
- currency
145
- value
146
- }
147
- }
148
- }
149
- }
150
- }
151
-
152
- query NftCollectionScreen(
153
- $contractAddress: String!
154
- $first: Int
155
- $after: String
156
- ) {
157
- nftCollections(filter: { addresses: [$contractAddress] }) {
158
- edges {
159
- node {
160
- id
161
- bannerImage {
162
- id
163
- url
164
- }
165
- isVerified
166
- numAssets
167
- description
168
- homepageUrl
169
- twitterName
170
- image {
171
- id
172
- url
173
- }
174
- name
175
- markets(currencies: [USD]) {
176
- id
177
- floorPrice {
178
- value
179
- }
180
- owners
181
- volume24h {
182
- value
183
- }
184
- totalVolume {
185
- value
186
- }
187
- }
188
- }
189
- }
190
- }
191
- nftAssets(
192
- address: $contractAddress
193
- first: $first
194
- after: $after
195
- orderBy: PRICE
196
- asc: true
197
- ) {
198
- edges {
199
- node {
200
- ownerAddress
201
- id
202
- name
203
- tokenId
204
- nftContract {
205
- id
206
- address
207
- }
208
- collection {
209
- id
210
- collectionId
211
- name
212
- }
213
- image {
214
- id
215
- url
216
- dimensions {
217
- width
218
- height
219
- }
220
- }
221
- listings(first: 1) {
222
- edges {
223
- node {
224
- id
225
- price {
226
- currency
227
- value
228
- }
229
- }
230
- }
231
- }
232
- }
233
- }
234
- pageInfo {
235
- endCursor
236
- hasNextPage
237
- hasPreviousPage
238
- startCursor
239
- }
240
- }
241
- }
242
-
243
60
  query NftsTab(
244
61
  $ownerAddress: String!
245
62
  $first: Int
@@ -1,7 +1,5 @@
1
1
  export enum GQLQueries {
2
2
  Nfts = 'Nfts',
3
- NFTItemScreen = 'NFTItemScreen',
4
- NftCollectionScreen = 'NftCollectionScreen',
5
3
  NftsTab = 'NftsTab',
6
4
  PortfolioBalances = 'PortfolioBalances',
7
5
  SelectWalletScreen = 'SelectWalletScreen',